"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(N){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=N||[]};
(0,_._F_toggles_initialize)([0x400000, ]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

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

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (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 (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*
 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2018 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright Google Inc. 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.io/license
*/
/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
/*

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var NIu,ba9,PYp,HaY,sU9,K9I,bY,Oaa,cbs,Hs,vs,a_u,REb,Ff,Bs,W9s,nOE,dLb,lY,fa,TIf,tpo,Qu,BIu,ufE,oOY,JbY,jUp,zEo,XsL,Yeb,ybe,DLo,NS,K9,vk,eEL,C9,r9,$LU,ab,FN,qeL,wsb,Zl,j9,b9O,Kcf,vZE,Ed,G49,rVe,cVI,YZ,alY,RO_,nZf,WcI,dSa,Dl,O9u,e9,mSL,t9f,Lca,R6,flu,uNo,a6,Fco,rE,B9o,llI,jbO,AVo,Xko,M_,Yde,pkf,yVa,Ilu,DSL,gZI,eOI,qdU,wka,SaE,Hqf,KJY,rOf,aop,cOe,JO,RwL,TEO,jn,tnI,FJe,fob,lou,uiu,LJE,AO,V9b,Xi,Ea,I6,Q69,Vt,iqa,x_U,oQO,hO,JOe,U_Y,j6Y,AOE,zwE,X5f,EQE,p5e,en,yOs,D_e,gQe,$_E,vh,qap,bDU,G7,HDf,vIo,NcE,ODY,
G7p,rSf,mja,Rip,Tcb,MoE,Fku,lBI,LkU,xju,oIY,Uje,j$Y,Xh9,pha,YLu,IBL,Vo9,eia,whp,sXe,JS,vwE,C4e,GJL,XH,EL,yK,qj,Nt,b4,mtY,GJ,T$o,FRL,ldo,LRO,fdo,d$,uwE,kw,TJ,tv,Mt,xtE,owu,iga,Jvs,UtE,jXU,z8O,Avu,XMb,pMY,fg,Lg,YEu,yv9,IdO,VWY,DtU,gwp,e8e,$tE,zJ,Av,Xw,EE,Yw,qEY,y1,NYO,s_O,Dd,K0I,vou,Ozb,g$,Czs,Gne,rhE,eW,RUb,qt,dzb,mzo,w$,TYb,knI,tk_,MkE,F0E,BYL,Sk,l2u,L0b,PR,f2u,uKb,HR,sn,Kz,vR,Q__,ooY,xzI,On,JhI,UzY,ZzL,rY,a_,WR,nz,dY,m0,j_p,zUf,XR9,EoL,YnE,yhb,I2s,Dz_,Vke,gof,th,eUp,$zO,qnb,wRE,Nja,bTe,S5O,PwY,HTs,
BR,scu,fz,uz,KAL,Cwp,G6O,rgp,agO,RKe,WAo,k6e,TjU,tGa,MG9,FAe,Bjp,lgo,Qco,iz,xf9,oTu,iTY,Jge,Ufs,ZTp,zKo,$fb,hKI,q5_,bQL,SBO,Yo,PMu,Kbe,CMY,Gzf,re9,ceo,aqO,Ro9,WbE,nl_,m8a,kzb,vlI,TA_,tjp,Mjs,Fbo,BAp,lqa,Lbe,fqe,u1I,iQO,x8u,ZQa,Je_,U8s,Aea,XWu,Elb,jOb,YBL,zop,Iqu,vv,D8O,O5,G6,Vja,eo_,$8Y,wWu,CDI,bMI,N8s,PDL,suU,S2o,Wof,clu,nUe,dBf,mBo,kjE,T8f,M_e,t_f,FoY,B8L,lHf,Lo9,ugE,xBf,oUu,iMY,UBo,JlU,V_O,Rc,gUI,$Bb,hbu,q2U,wAL,N79,SlE,PQI,HEu,Mf,Fc,sNs,rze,LT,fT,W6a,dXE,fhs,iw,xXU,obY,ZE_,JzU,UXs,z6,jNu,ztY,
XqO,EbO,pqa,Yle,yzo,Ih9,DXO,gbp,Ic,etO,htb,$X_,Nk9,eG,$T,SuY,PSO,Hhe,sBY,KVu,v0_,CSu,r2Y,GiE,c2p,CQ,rA,MHs,WW,unp,QBI,nQ,o0b,xYo,E0f,pKI,Yuf,Ijb,e6L,h6Y,quu,wKu,NeO,bvu,kl,P5Y,BW,s0I,KjL,vho,C5I,Hv_,Svs,Ovu,te,rdI,Wjs,anL,mNI,kxf,Teo,Mdu,Fju,lna,fnu,uC9,Q09,xNa,iM,oho,Jdo,iv_,UNf,j0Y,Zq,Xle,Ae,EB,X1,ydo,Adp,eAs,bt9,Htp,PvE,v7p,IO,CvY,GQo,a7a,Ra9,$l,n79,q8,wA,AA9,pzf,yA_,I7O,Dc_,Vlp,g7Y,NB,$cY,hae,qX9,wzI,bx9,Sss,Px9,HxI,PA,KM,vXu,Oxo,CxE,c3f,aYY,RfU,tgf,MgE,mMb,B0u,lYf,LNU,d8,kU,Tj,xMp,oXf,MB,ixI,
J3b,UMe,Zxu,zfb,A3u,X_9,EXf,jeY,p_I,lD,y3I,efb,LM,gXp,$Mo,YsE,hfU,uD,w_E,Npu,b6s,SYe,H6a,PZf,svO,O6Y,Kiu,GkL,nye,myE,Tpo,Fiu,M0_,t09,Bpa,lVe,fVE,Qvb,uVI,oyf,Xg,JwL,Uyo,Z6u,jvE,Xib,pis,EyO,YYI,yw9,IVe,Dyb,gy_,$y9,wiO,bAU,NXf,GW,SRa,eMI,CCE,rZf,cZ9,apY,nE,Rze,nRa,kYu,Mt_,tte,LnL,fpb,u8o,QmE,oRa,jmf,iAe,U79,ZAf,zzb,AZs,ER9,XNb,YRe,pNa,QB,yZf,D7L,VtL,hzu,Az,XQ,qRI,wNO,El,SIs,Dh,VB,g7,KaO,eU,CVs,qX,GLa,r0O,c0o,ab9,bS,RV9,Wae,nG9,m6e,Tye,FaE,lb9,cK,LaY,fbe,ukf,Qpp,x6e,oGe,iuo,J0U,WK,jpb,zVL,A0u,XU9,EGU,
pUu,YI_,y0f,Iba,D6Y,VsU,gGI,eVp,Fn,vnE,OXO,BK,lS,Lh,C1s,GBo,rse,csI,aKp,RCp,Wyu,TQE,tZE,MZ_,Fyf,BQe,x0,iS,J2,Uu,zi,A2,Xn,Lyb,ph,u69,Y0,Q3_,xnu,yb,onI,iX9,Jsu,YKu,IKO,$no,NqU,wd_,ysY,b3E,H3U,mIo,Gds,Fds,c_s,t79,BqI,$0,LdY,wk,uEe,QAp,oq_,i3s,J_O,Z3b,Sd,zLs,A_I,X4s,Eqf,p4b,Yjs,y_I,jA9,V79,gqs,eLf,Hl,b7L,SZe,NGe,H7u,sqp,vHo,O7_,KtY,WtI,kSu,trU,R0,uAa,Lte,fNO,JMO,Z7p,jqs,zs_,AMY,X79,EHf,FC,$uf,qZa,gHa,Vr9,hse,YZ_,N5U,r8a,Pof,HUb,s7I,taU,FhL,T5u,Q7O,kR9,p7O,uMs,Sb_,GRU,Mae,w7I,IN9,yM9,Duf,esu,mEe,yE,y8e,
DEY,VaY,g9b,eJf,HfY,CKp,G8f,bv,c5s,WH9,k8L,mbE,tFY,MFY,Bxp,LHI,lzo,fzU,u$I,Q2b,xbu,ifU,oYE,rb,Xma,A5Y,z9f,y5a,EY_,Izo,YWU,Dbu,VF9,h9O,e9a,$bs,wmI,SxL,PFf,K8e,veL,OoU,CFs,rI_,aWI,TQ,RSU,dvL,W8I,mvu,M8e,F8p,L8O,uvE,Lt,ft,ioE,JIo,uv,Q9,UvO,x7,o5,Zof,iv,jJs,JA,zSO,AIE,Z7,XPb,Eeb,pPu,YxI,yII,Dvb,IW_,gef,hS_,$v_,qxf,wP_,V89,N6e,P0a,S_s,eSu,HSU,sTo,EX,Klb,OSe,vEf,C0Y,GNf,cPo,rPf,aMp,Y7,Wla,nEe,Rrb,m5u,kNu,T6_,B6f,fM_,iSb,jT9,y9,Xpf,EEs,I5,pp9,el,$7,gEe,V9,NM,er_,$5I,q_O,wp_,bmf,PJE,Hm9,s9U,Kwe,CJb,RqO,cmo,
OmO,Ww_,npO,H_,aCu,dWE,Cx,mWu,kuY,TVf,tMf,lCp,MMI,BVp,Q9o,xWL,Zmf,UWf,Ama,ICf,DWo,gpe,$W_,hqf,wep,NPO,bL9,P2a,HLe,sSe,OLa,c6s,aAe,C2_,WGb,dHu,nvO,Rpp,mH_,TPp,tOs,MOL,FGY,BP9,t3,MM,lAa,ux,xX,uJI,QSY,ova,UHE,oe,ix,ZLI,J3,A6u,XrU,EvU,ZY,DHa,$Ha,q7o,wr9,NCa,Sr9,PW_,HFs,vje,zb,OFU,r1I,A3,c1U,nj_,XG,k5s,Es,y6,Ie,TCI,MAE,tAU,BC_,lIo,LQO,fIa,FQo,iFp,J1s,ZFa,z5O,p$p,Ejs,YrI,IIo,DOL,VA9,gj_,e5U,$Os,h5u,N_f,qre,$X,S0e,h3,PAE,w0,Ny,H8I,sEs,Kro,vaO,O8E,bZ,CAo,GIU,rBI,cBL,RRI,Wrf,nau,dmf,mmp,T_U,kIa,S0,MyY,B_U,
lJO,Lr_,fJp,xmO,i8p,K6,UmY,jEa,zRO,ABo,X0a,Eaa,p0o,Y0p,yBu,oaa,JBa,IJp,DmU,$m_,hRu,q0o,w0o,Rdo,dka,mkf,kmu,nSI,la9,uIf,LKp,Qjs,iO_,UkI,jjY,ESu,XFa,IaO,n6,Dks,VVf,dp,gSe,mi,ed9,$ko,hd_,wFs,qyu,NKY,b2b,SHL,Pmp,GtL,cFs,RPb,aTO,vsu,soo,nso,m4s,FvY,BKU,fTa,JFs,Z2e,My,job,AFs,Xuu,puu,D4b,ePL,qH_,wuY,NR_,b1o,Kpb,Spu,G$u,rHb,cHu,R2e,L6,WpY,dPY,mPO,k$o,TRa,t2f,M29,Fpf,lto,Lpu,xy,fts,uXo,xPO,Jw,Qyp,i1b,jyo,j0,z2E,AH9,Xoo,Ype,yHI,EME,DP_,$PI,h29,qpU,Yy,woI,Pbp,HnI,Vh,v69,sQE,K3p,Gya,rju,cjY,n6f,kyp,mDf,dDo,
TaY,MDu,F3o,uru,BaL,QQb,o6e,xDs,zFb,E6b,Yc_,IsI,wSp,LA,bc9,srO,vD_,BN,UR,axu,dpu,nDu,kDL,TUp,M1o,t1p,FOa,BUI,zY,hCY,Rlb,mpu,WOE,iC,fxf,uyL,Qrf,et,JTY,$R,Ups,ZcI,jrO,zlI,ATs,q7,XC9,EDu,pCo,YwL,yTO,Ss,IxO,gDY,$pY,hlb,Hie,KWp,vAu,OiY,Gsp,rNY,ry,ays,Rxu,WWI,nAY,d$9,m$9,Ttb,McU,BtL,lyO,oAa,QwL,iiY,ZiY,jwu,ma,zx9,ANU,Xyp,YPE,Iye,yNp,Vc_,exY,M6,hxe,qPL,$$O,wyf,N29,SQE,HGa,Pn_,sfO,bGU,KD_,vge,OGY,CnL,Gla,rDs,cDe,aR9,RYe,dZ_,ngf,mZo,T2I,klo,Fk,t$o,B2u,uos,M$s,ogO,iGu,JDp,UZU,zYb,IR_,DZU,gg_,eYL,js,wto,P$U,
KLs,zL,GFU,vuE,ONp,C$e,rRb,nu_,y4,dJp,mJo,TD_,tza,Mzb,FLp,lis,LLO,ZNp,ouO,JR_,zuY,jHb,ARE,XcE,pcI,yR_,DJe,guU,euO,hue,vJU,Gr_,cC9,acU,Rmu,WTf,nJb,mTU,krs,M6p,FTa,B3Y,lcI,LTo,fca,uLO,Qnf,KqI,GqE,SZ,Pd,Hd,rJo,cJs,vd,Ryb,FqE,QD9,fuO,DhY,VEO,gtu,ntO,MEe,kqE,$hf,hyb,qD9,wnO,lu_,NZb,S$f,HHo,v3b,OHe,dQ,dqa,kgo,tJ9,MJL,BZf,FMe,fUo,Q8Y,j8O,Uqb,o3o,ZHo,iHb,z0L,p2u,i1,Js,h0s,g3p,w2O,Nlf,SUU,PUb,ZK,HCO,vNa,OCE,CUO,Gap,m1p,d1O,y7,Bl_,eZ,LmE,fS_,u3Y,QLb,x1p,oNL,iCI,Jab,U1L,ZCe,jLu,hs,z$9,AaO,X8O,ENY,p8e,YUu,yau,
ISO,wQ,D1a,VqE,gNI,e$Y,$1U,h$9,qUY,w8U,NSE,bZe,SJs,Prb,HZf,S7,KI_,OZu,GHa,a9I,n8O,dip,mi_,TSe,MIY,FI_,BS_,c4,QaY,f9b,xiE,o8Y,iZY,ZZI,ja_,z7p,Xf9,B4,pfU,MI,y$u,I9O,lI,DiY,VIu,g8p,e7o,f3,wfO,bYI,K7L,ssU,OYu,C6p,ZL,GOo,rne,aFo,W7p,n$E,mFI,kOL,RTf,TH_,lFu,Qs9,xFY,j7,o$p,iYs,zTu,Jn9,ZYU,jss,ynI,XZY,IFe,Vma,eTf,$FO,hT9,qmu,wZU,Nfb,S1E,PB9,Hwo,sYp,KYY,OwI,Gfp,arY,dV9,TfU,MCo,lrO,ys,LYO,frU,uuo,QYE,xVb,iw9,Jpp,UVU,Zwo,jY_,z3a,Apu,XL9,EPU,pLu,Y1p,Iro,ypo,gPY,$VE,Vs,h3u,Ni9,wLp,Pjp,Hjb,siI,Ojb,rcO,GU_,vFE,
Rgp,aw9,kUb,WXf,wq,d2f,LXI,MhU,FXO,BiI,lws,fwu,QiO,ubb,Nu,bH,jip,oFs,Zjf,U2L,ijU,Jco,X39,p3E,ycO,YSo,IwY,eg_,gF_,hg9,NTa,SzE,w3L,PfO,slO,H$f,vW_,G9e,K7,rio,cip,W1b,TTI,L1o,OZ,uZo,xeI,Rq,Jis,oWO,i$9,aq,zhb,Ueu,Z$b,AiI,EWs,XDL,yia,I49,Vva,gWa,ehL,$ep,hho,wDL,N1o,uH,SqE,KPe,vc9,iH,Od_,GXp,kXs,zS,Rcb,mRI,WPU,ncu,FPs,MRa,f6f,B1O,u2s,QgL,XA,xR9,ocp,ida,YH,J7L,EZ,jgf,zcE,A7Y,XYf,EcE,Yqu,VRu,gca,hco,qqs,Nge,PsE,beI,S8L,Hep,Kxp,vke,OeL,CsU,GeO,cLL,R1s,Wxf,doo,nkI,moU,keY,t4E,M49,okO,QGs,UoL,Zee,pxL,Y8O,yL_,
IPO,DoO,V4L,$oa,h1Y,q8U,NBf,bJu,Sfu,PeE,HJs,sPO,vL9,OJO,Cep,CU,aEe,cEI,rE9,G0u,W$u,map,nLb,TBY,tQb,F$Y,BBa,lEo,L$O,fE9,iJU,u9p,QP9,xab,JEo,Uaf,ZJL,oLU,a7,AEL,ELf,Xa9,WX,paE,yEO,IEE,DaI,Yfb,VQs,gLs,eka,$aI,hkO,wa9,Nnb,bls,StE,sIE,HlU,GKa,Pp_,d5,rtp,K4b,CpE,avs,RNo,W4p,nzo,dQs,kKY,TnL,tYb,F4o,BnO,L4s,utO,Jtu,ozE,ilb,xQe,QI9,UQL,fU,Zlb,uo,jIu,zNo,YtI,Ivf,DQE,VYY,gzE,eNa,$QY,Ub,ZG,bKs,qto,hNa,wTY,a8O,GCO,Nwu,Cga,kCY,TwL,tPp,MPe,FFL,LFL,uYY,xxu,iKp,JyL,Uxu,Ays,zBa,X6E,p6E,SF,I8u,Dx9,VPp,gia,eBa,$xf,hB9,
Hm,sW,NFp,bys,Pds,KUU,cUo,dCU,nfY,mCL,TFI,t5L,M5L,FUu,BFa,lXI,cm,LUI,JUE,UCa,xCY,QVf,iyL,of9,XJb,Efe,pJo,Y6O,yUo,IX_,gfs,V5f,DCf,P9p,bsa,Hsf,sFE,KBE,C9Y,rfY,vBO,Osb,kPI,twE,FBp,lmp,fmY,QFe,Jfo,UlU,ZsI,Af9,z4e,jFE,XHe,EBU,pHI,YA_,yfa,ImL,Dlp,VwE,gBI,e4e,h4u,qAa,wHU,NNe,b0Y,SCp,H0b,sz9,K2p,v__,O0b,Ccf,a$L,Rnb,n_u,mss,dsu,kGf,Lf,TNU,ti9,MiL,F2s,f$I,L2E,uds,Qz_,xsf,o_f,i0o,JQ_,Us9,Z0e,jzs,zna,AQb,XBe,E_p,pBY,YCe,I$e,yQ_,Dsu,Vio,g_f,enb,$sU,hnp,qCI,wBY,Zz,bpE,STI,Phu,Hpb,sxI,v4Y,OpL,Ch_,GA9,rKI,cKE,R_E,
WSU,dKo,X$,Tsa,l0f,FSO,MuU,tu_,Bsa,uPI,QxE,xK_,o49,JKu,UKY,Zpa,z_a,jx9,AKI,X9p,E4o,yKU,I0p,DKu,Vuo,g4u,e_e,qT9,w9u,$Y,Hru,sWo,vC9,GcU,CXf,roI,cos,h5,wx,RXI,WC_,S8,PP,kcf,nCe,dAf,MKu,FCL,BWu,le9,QWE,oCO,irp,Jo_,UAf,Zr9,zXf,Aoa,XEo,ECY,pEU,Y3U,yoa,Ko,Iee,DA_,Ox,VKI,gCb,eXs,$Aa,hXe,q3s,rO,cP,wEE,Nrf,aJ,bP9,SgO,POa,HPo,Kuu,vKo,COu,RIE,aO_,c9E,Wus,nKL,FuE,kVf,Tre,tbs,m3e,Mbp,Brf,lOE,fOO,Qko,WP,iP9,J9o,U3a,ZPu,jkf,A99,EKU,y9a,gKa,D3_,no,IOe,wb9,b4a,dO,SOO,Plo,H4a,sZY,KEf,O4U,Cl_,rW9,cWu,RHb,WEL,kh9,mgf,
tBI,MBe,FEs,Bhf,LEI,fke,uap,QZf,xgs,o2u,i4p,JWL,UgO,jZu,zHb,YOY,yWE,IkO,DgU,lF,eHf,hH9,qOL,wjE,Nv_,bRe,PyU,HRI,stY,KzU,ORp,Cys,GZY,uF,ruL,cuY,Wzo,nmf,Qc,xe,kZu,dUI,TvY,FzI,tTe,Bva,LzL,Ux,fDe,uRI,Qto,iRs,UUo,ZW,jtL,zeY,Au9,XV_,EmY,pVE,YV9,yub,IDf,eeU,$UE,Nma,heU,wVs,bkb,SF_,PNp,K5p,v5L,Okp,Gwp,rxO,dwa,n5u,F5b,L59,DW,ffp,uhf,ebI,Vc,Qhe,xwO,iks,Zko,jhE,yxf,Ifp,Dwp,Vfb,g5f,eWe,hWo,qFL,NzI,S9o,wG_,bVL,HVY,Pqf,KfE,Cqf,vVO,Gvp,rXU,cXU,aZY,Rvs,Wf9,dGa,nVI,tNu,Bzb,MNL,lZb,LfY,fZo,S3,uWI,QKY,Hp,oVO,xGu,iVO,
UGU,JX9,AXY,XIs,pIO,vp,yXE,IZo,DG9,VNs,$G_,q9_,bBY,NMp,Ska,PTY,HBe,OBE,mde,cGE,TMU,tLY,Fsf,BMs,upO,QCL,xdf,o1u,iB9,JGY,jCf,zDs,AGf,Xgf,Yk9,I5O,Dd9,yGU,g1_,VLE,wgE,NJb,b_U,Shp,P_b,H_p,sRp,vxY,Gpo,r4O,c4p,WgO,RZf,mru,TJo,txu,Mx9,Fgo,BJa,Lge,l3O,uma,J4I,zZu,jRs,A4Y,Xwp,Exb,YhL,QG,I3I,JP,Vxo,eZa,$rE,bbs,P7e,vr9,C7E,G19,cYL,aQ9,RGp,nrU,m9Y,k1b,tXp,BLs,F_p,MX9,AP,L_L,lQf,fQf,uUL,QMp,x9u,orI,ibp,JYo,Zbf,jMf,zGs,AYY,XQY,Erb,pQu,YoU,yY_,IQ_,VXO,grU,eGY,$9u,hGe,wQI,NoU,bIp,HI9,DM,GT9,rku,a1p,Rjp,WZE,ndE,d0o,
g6,l1O,Gz,e3,hP,LZo,f19,x0U,iIa,ods,w6,JkU,U0s,ZIs,j4s;NIu=function(){var N,b;return typeof CSS!=="undefined"&&((b=(N=CSS).supports)==null?void 0:b.call(N,"selector(:has(*))"))};
ba9=function(N){return N.visibility!=="hidden"&&N.display!=="none"};
PYp=function(N){if(NIu()||N.tagName!=="DETAILS"?!N.matches(Se_):N.querySelector("summary")!==null)return-1;N=N.getAttribute("tabindex")||"0";return Number(N)};
HaY=function(N){return N.some(function(b){return PYp(b)>0})};
sU9=function(N){if(N.textContent||N.ariaLabel)return!0;if(N instanceof HTMLInputElement){if(!N.labels)return!1;N=_.O(N.labels);for(var b=N.next();!b.done;b=N.next())if(b.value.textContent)return!0}return!1};
K9I=function(N){return N.sort(function(b,S){return PYp(S)-PYp(b)})};
_.vOO=function(N){N=Array.from(N.querySelectorAll(Se_)).filter(function(b){return(ba9(b.style)?ba9(window.getComputedStyle(b)):!1)&&sU9(b)});
return HaY(N)?K9I(N):N};
_.NL=function(N,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.NL);else{var S=Error().stack;S&&(this.stack=S)}N&&(this.message=String(N));b!==void 0&&(this.cause=b)};
bY=function(){throw Error("E");};
Oaa=function(N,b){b=String.fromCharCode.apply(null,b);return N==null?b:N+b};
cbs=function(N){var b=!1;b=b===void 0?!1:b;if(CYb){if(b&&(GoE?!N.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(N)))throw Error("F");N=(rbL||(rbL=new TextEncoder)).encode(N)}else{for(var S=0,P=new Uint8Array(3*N.length),H=0;H<N.length;H++){var K=N.charCodeAt(H);if(K<128)P[S++]=K;else{if(K<2048)P[S++]=K>>6|192;else{if(K>=55296&&K<=57343){if(K<=56319&&H<N.length){var C=N.charCodeAt(++H);if(C>=56320&&C<=57343){K=(K-55296)*1024+C-56320+65536;P[S++]=K>>18|
240;P[S++]=K>>12&63|128;P[S++]=K>>6&63|128;P[S++]=K&63|128;continue}else H--}if(b)throw Error("F");K=65533}P[S++]=K>>12|224;P[S++]=K>>6&63|128}P[S++]=K&63|128}}N=S===P.length?P:P.subarray(0,S)}return N};
Hs=function(N){_.Ps.setTimeout(function(){throw N;},0)};
_.Ka=function(N,b){return N.lastIndexOf(b,0)==0};
vs=function(N,b){var S=N.length-b.length;return S>=0&&N.indexOf(b,S)==S};
_.Oe=function(N){return/^[\s\xa0]*$/.test(N)};
_.Go=function(N,b){return N.indexOf(b)!=-1};
_.cs=function(N,b){return _.Go(N.toLowerCase(),b.toLowerCase())};
_.Ws=function(N,b){var S=0;N=aU(String(N)).split(".");b=aU(String(b)).split(".");for(var P=Math.max(N.length,b.length),H=0;S==0&&H<P;H++){var K=N[H]||"",C=b[H]||"";do{K=/(\d*)(\D*)(.*)/.exec(K)||["","","",""];C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];if(K[0].length==0&&C[0].length==0)break;S=a_u(K[1].length==0?0:parseInt(K[1],10),C[1].length==0?0:parseInt(C[1],10))||a_u(K[2].length==0,C[2].length==0)||a_u(K[2],C[2]);K=K[3];C=C[3]}while(S==0)}return S};
a_u=function(N,b){return N<b?-1:N>b?1:0};
_.dI=function(){var N=_.Ps.navigator;return N&&(N=N.userAgent)?N:""};
REb=function(N){if(!m9||!tb)return!1;for(var b=0;b<tb.brands.length;b++){var S=tb.brands[b].brand;if(S&&_.Go(S,N))return!0}return!1};
Ff=function(N){return _.Go(_.dI(),N)};
Bs=function(){return m9?!!tb&&tb.brands.length>0:!1};
W9s=function(){return Bs()?!1:Ff("Opera")};
nOE=function(){return Bs()?!1:Ff("Trident")||Ff("MSIE")};
dLb=function(){return Bs()?REb("Microsoft Edge"):Ff("Edg/")};
lY=function(){return Ff("Firefox")||Ff("FxiOS")};
_.mLO=function(){return Ff("Safari")&&!(fa()||(Bs()?0:Ff("Coast"))||W9s()||(Bs()?0:Ff("Edge"))||dLb()||(Bs()?REb("Opera"):Ff("OPR"))||lY()||Ff("Silk")||Ff("Android"))};
fa=function(){return Bs()?REb("Chromium"):(Ff("Chrome")||Ff("CriOS"))&&!(Bs()?0:Ff("Edge"))||Ff("Silk")};
_.koI=function(){return Ff("Android")&&!(fa()||lY()||W9s()||Ff("Silk"))};
TIf=function(N){var b={};N.forEach(function(S){b[S[0]]=S[1]});
return function(S){return b[S.find(function(P){return P in b})]||""}};
tpo=function(N){var b=_.dI();if(N==="Internet Explorer"){if(nOE())if((N=/rv: *([\d\.]*)/.exec(b))&&N[1])b=N[1];else{N="";var S=/MSIE +([\d\.]+)/.exec(b);if(S&&S[1])if(b=/Trident\/(\d.\d)/.exec(b),S[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":N="8.0";break;case "5.0":N="9.0";break;case "6.0":N="10.0";break;case "7.0":N="11.0"}else N="7.0";else N=S[1];b=N}else b="";return b}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");S=[];for(var H;H=P.exec(b);)S.push([H[1],H[2],H[3]||void 0]);
b=TIf(S);switch(N){case "Opera":if(W9s())return b(["Version","Opera"]);if(Bs()?REb("Opera"):Ff("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Bs()?0:Ff("Edge"))return b(["Edge"]);if(dLb())return b(["Edg"]);break;case "Chromium":if(fa())return b(["Chrome","CriOS","HeadlessChrome"])}return N==="Firefox"&&lY()||N==="Safari"&&_.mLO()||N==="Android Browser"&&_.koI()||N==="Silk"&&Ff("Silk")?(b=S[2])&&b[1]||"":""};
_.MpU=function(N){if(Bs()&&N!=="Silk"){var b=tb.brands.find(function(S){return S.brand===N});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=tpo(N);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Qu=function(){return m9?!!tb&&!!tb.platform:!1};
_.F9p=function(){return Qu()?tb.platform==="Android":Ff("Android")};
BIu=function(){return Ff("iPhone")&&!Ff("iPod")&&!Ff("iPad")};
_.xO=function(){return BIu()||Ff("iPad")||Ff("iPod")};
_.l_s=function(){return Qu()?tb.platform==="macOS":Ff("Macintosh")};
_.L9Y=function(){return Qu()?tb.platform==="Windows":Ff("Windows")};
_.f_Y=function(){return Qu()?tb.platform==="Chrome OS":Ff("CrOS")};
_.oU=function(N){return N[N.length-1]};
ufE=function(N){for(var b=_.iY,S=typeof N==="string"?N.split(""):N,P=N.length-1;P>=0;P--)if(P in S&&b.call(void 0,S[P],P,N))return P;return-1};
_.Z_=function(N,b){return _.Ue(N,b)>=0};
_.QUs=function(N,b){_.Z_(N,b)||N.push(b)};
_.zo=function(N,b){b=_.Ue(N,b);var S;(S=b>=0)&&_.xLa(N,b);return S};
_.xLa=function(N,b){Array.prototype.splice.call(N,b,1)};
_.pa=function(N){var b=N.length;if(b>0){for(var S=Array(b),P=0;P<b;P++)S[P]=N[P];return S}return[]};
_.IU=function(N,b){for(var S=1;S<arguments.length;S++){var P=arguments[S];if(_.yu(P)){var H=N.length||0,K=P.length||0;N.length=H+K;for(var C=0;C<K;C++)N[H+C]=P[C]}else N.push(P)}};
_.iaI=function(N,b,S,P){Array.prototype.splice.apply(N,oOY(arguments,1))};
oOY=function(N,b,S){return arguments.length<=2?Array.prototype.slice.call(N,b):Array.prototype.slice.call(N,b,S)};
JbY=function(N,b){b=b||N;for(var S=0,P=0,H={};P<N.length;){var K=N[P++],C=_.D_(K)?"o"+_.gI(K):(typeof K).charAt(0)+K;Object.prototype.hasOwnProperty.call(H,C)||(H[C]=!0,b[S++]=K)}b.length=S};
_.ZaI=function(N,b,S){S=S||_.ULO;for(var P=0,H=N.length,K;P<H;){var C=P+(H-P>>>1);var G=S(b,N[C]);G>0?P=C+1:(H=C,K=!G)}return K?P:-P-1};
_.hb=function(N,b,S){if(!_.yu(N)||!_.yu(b)||N.length!=b.length)return!1;var P=N.length;S=S||jUp;for(var H=0;H<P;H++)if(!S(N[H],b[H]))return!1;return!0};
_.ULO=function(N,b){return N>b?1:N<b?-1:0};
jUp=function(N,b){return N===b};
zEo=function(N,b,S){b=Array.prototype.splice.call(N,b,1);Array.prototype.splice.call(N,S,0,b[0])};
XsL=function(N){return Ab9[N]||""};
Yeb=function(N){if(!EOf)return _.qL(N);N=psI.test(N)?N.replace(psI,XsL):N;N=atob(N);for(var b=new Uint8Array(N.length),S=0;S<N.length;S++)b[S]=N.charCodeAt(S);return b};
ybe=function(N,b){N.__closure__error__context__984382||(N.__closure__error__context__984382={});N.__closure__error__context__984382.severity=b};
_.wI=function(N){N=Error(N);ybe(N,"warning");return N};
DLo=function(N,b){if(N!=null){var S;var P=(S=I_e)!=null?S:I_e={};S=P[N]||0;S>=b||(P[N]=S+1,N=Error(),ybe(N,"incident"),Hs(N))}};
NS=function(N,b,S){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(S===void 0?0:S)&&Symbol.for&&N?Symbol.for(N):N!=null?Symbol(N):Symbol():b};
K9=function(N,b){Pk||_.sd in N||VpU(N,gOU);N[_.sd]|=b};
vk=function(N,b){Pk||_.sd in N||VpU(N,gOU);N[_.sd]=b};
eEL=function(N){if(4&N)return 512&N?512:1024&N?1024:0};
C9=function(N){K9(N,34);return N};
r9=function(N){K9(N,8192);return N};
$LU=function(N){K9(N,32);return N};
ab=function(){return typeof BigInt==="function"};
FN=function(N,b){return b===void 0?N.copyOnWrite!==Rb&&!!(2&(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sd]|0)):!!(2&b)&&N.copyOnWrite!==Rb};
_.iE=function(N,b){if(N!=null)if(typeof N==="string")N=N?new L9(N,uE):_.xZ();else if(N.constructor!==L9)if(hE9&&N!=null&&N instanceof Uint8Array)N=N.length?new L9(new Uint8Array(N),uE):_.xZ();else{if(!b)throw Error();N=void 0}return N};
qeL=function(N,b){if(typeof b!=="number"||b<0||b>=N.length)throw Error();};
wsb=function(N,b,S){var P=b&128?0:-1,H=N.length,K;if(K=!!H)K=N[H-1],K=K!=null&&typeof K==="object"&&K.constructor===Object;var C=H+(K?-1:0);for(b=b&128?1:0;b<C;b++)S(b-P,N[b]);if(K){N=N[H-1];for(var G in N)!isNaN(G)&&S(+G,N[G])}};
Zl=function(N){return N&128?JV:void 0};
j9=function(N){N.isGuard_doNotManuallySetPrettyPlease=!0;return N};
b9O=function(){var N=N9U;return j9(function(b){for(var S in N)if(b===N[S]&&!/^[0-9]+$/.test(S))return!0;return!1})};
_.z4=function(N){var b=N;if(SdI(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(PEa(b)&&!Number.isSafeInteger(b))throw Error(String(b));return H9U?BigInt(N):N=sbI(N)?N?"1":"0":SdI(N)?N.trim()||"0":String(N)};
Kcf=function(N,b){if(N.length>b.length)return!1;if(N.length<b.length||N===b)return!0;for(var S=0;S<N.length;S++){var P=N[S],H=b[S];if(P>H)return!1;if(P<H)return!0}};
vZE=function(N){var b=N>>>0;AV=b;XN=(N-b)/4294967296>>>0};
Ed=function(N){if(N<0){vZE(-N);var b=_.O(O9u(AV,XN));N=b.next().value;b=b.next().value;AV=N>>>0;XN=b>>>0}else vZE(N)};
G49=function(N){var b=CEE||(CEE=new DataView(new ArrayBuffer(8)));b.setFloat32(0,+N,!0);XN=0;AV=b.getUint32(0,!0)};
rVe=function(N,b){var S=b*4294967296+(N>>>0);return Number.isSafeInteger(S)?S:_.p9(N,b)};
cVI=function(N,b){return _.z4(ab()?BigInt.asUintN(64,(BigInt(b>>>0)<<BigInt(32))+BigInt(N>>>0)):_.p9(N,b))};
YZ=function(N,b){var S=b&2147483648;S&&(N=~N+1>>>0,b=~b>>>0,N==0&&(b=b+1>>>0));N=rVe(N,b);return typeof N==="number"?S?-N:N:S?"-"+N:N};
alY=function(N,b){return ab()?_.z4(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<<BigInt(32))+BigInt.asUintN(32,BigInt(N)))):_.z4(_.yz(N,b))};
RO_=function(N){var b=AV,S=XN,P=S>>31;S=(S<<1|b>>>31)^P;N(b<<1^P,S)};
nZf=function(N,b){return WcI(N,b,YZ)};
WcI=function(N,b,S){var P=-(N&1);N=(N>>>1|b<<31)^P;b=b>>>1^P;return S(N,b)};
_.p9=function(N,b){b>>>=0;N>>>=0;if(b<=2097151)var S=""+(4294967296*b+N);else ab()?S=""+(BigInt(b)<<BigInt(32)|BigInt(N)):(S=(N>>>24|b<<8)&16777215,b=b>>16&65535,N=(N&16777215)+S*6777216+b*6710656,S+=b*8147497,b*=2,N>=1E7&&(S+=N/1E7>>>0,N%=1E7),S>=1E7&&(b+=S/1E7>>>0,S%=1E7),S=b+dSa(S)+dSa(N));return S};
dSa=function(N){N=String(N);return"0000000".slice(N.length)+N};
_.yz=function(N,b){b&2147483648?ab()?N=""+(BigInt(b|0)<<BigInt(32)|BigInt(N>>>0)):(b=_.O(O9u(N,b)),N=b.next().value,b=b.next().value,N="-"+_.p9(N,b)):N=_.p9(N,b);return N};
Dl=function(N){if(N.length<16)Ed(Number(N));else if(ab())N=BigInt(N),AV=Number(N&BigInt(4294967295))>>>0,XN=Number(N>>BigInt(32)&BigInt(4294967295));else{var b=+(N[0]==="-");XN=AV=0;for(var S=N.length,P=b,H=(S-b)%6+b;H<=S;P=H,H+=6)P=Number(N.slice(P,H)),XN*=1E6,AV=AV*1E6+P,AV>=4294967296&&(XN+=Math.trunc(AV/4294967296),XN>>>=0,AV>>>=0);b&&(b=_.O(O9u(AV,XN)),N=b.next().value,b=b.next().value,AV=N,XN=b)}};
O9u=function(N,b){b=~b;N?N=~N+1:b+=1;return[N,b]};
e9=function(N){return Array.prototype.slice.call(N)};
_.$Z=function(N,b){throw Error(b===void 0?"unexpected value "+N+"!":b);};
_.hV=function(N){if(N!=null&&typeof N!=="number")throw Error("L`"+typeof N+"`"+N);return N};
_.N_=function(N){if(N==null||typeof N==="number")return N;if(N==="NaN"||N==="Infinity"||N==="-Infinity")return Number(N)};
mSL=function(N){if(N!=null&&typeof N!=="boolean")throw Error("M`"+_.bL(N)+"`"+N);return N};
_.k4O=function(N){if(N==null||typeof N==="boolean")return N;if(typeof N==="number")return!!N};
_.P5=function(N){switch(typeof N){case "bigint":return!0;case "number":return Sn(N);case "string":return T9e.test(N);default:return!1}};
_.H5=function(N){if(!Sn(N))throw _.wI("enum");return N|0};
_.v5=function(N){return N==null?N:Sn(N)?N|0:void 0};
t9f=function(N){if(typeof N!=="number")throw _.wI("int32");if(!Sn(N))throw _.wI("int32");return N|0};
_.Cq=function(N){return N==null?N:t9f(N)};
_.GE=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return Sn(N)?N|0:void 0};
_.M9o=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return Sn(N)?N>>>0:void 0};
Lca=function(N){var b=0;b=b===void 0?0:b;if(!_.P5(N))throw _.wI("int64");var S=typeof N;switch(b){case 512:switch(S){case "string":return rE(N);case "bigint":return String(c5(64,N));default:return Fco(N)}case 1024:switch(S){case "string":return B9o(N);case "bigint":return _.z4(c5(64,N));default:return llI(N)}case 0:switch(S){case "string":return rE(N);case "bigint":return _.z4(c5(64,N));default:return a6(N)}default:return _.$Z(b,"Unknown format requested type for int64")}};
R6=function(N){return N==null?N:Lca(N)};
flu=function(N){var b=N.length;if(N[0]==="-"?b<20||b===20&&N<="-9223372036854775808":b<19||b===19&&N<="9223372036854775807")return N;Dl(N);return _.yz(AV,XN)};
uNo=function(N){if(N[0]==="-")var b=!1;else b=N.length,b=b<20?!0:b===20&&N<="18446744073709551615";if(b)return N;Dl(N);return _.p9(AV,XN)};
a6=function(N){N=W5(N);dE(N)||(Ed(N),N=YZ(AV,XN));return N};
_.Qbe=function(N){N=W5(N);N>=0&&dE(N)||(Ed(N),N=rVe(AV,XN));return N};
Fco=function(N){N=W5(N);dE(N)?N=String(N):(Ed(N),N=_.yz(AV,XN));return N};
_.xSp=function(N){N=W5(N);N>=0&&dE(N)?N=String(N):(Ed(N),N=_.p9(AV,XN));return N};
rE=function(N){var b=W5(Number(N));if(dE(b))return String(b);b=N.indexOf(".");b!==-1&&(N=N.substring(0,b));return flu(N)};
B9o=function(N){var b=W5(Number(N));if(dE(b))return _.z4(b);b=N.indexOf(".");b!==-1&&(N=N.substring(0,b));return ab()?_.z4(c5(64,BigInt(N))):_.z4(flu(N))};
llI=function(N){return dE(N)?_.z4(a6(N)):_.z4(Fco(N))};
_.oZf=function(N){return dE(N)?_.z4(_.Qbe(N)):_.z4(_.xSp(N))};
_.i9Y=function(N){var b=W5(Number(N));if(dE(b)&&b>=0)return String(b);b=N.indexOf(".");b!==-1&&(N=N.substring(0,b));return uNo(N)};
_.JVe=function(N){var b=W5(Number(N));if(dE(b)&&b>=0)return _.z4(b);b=N.indexOf(".");b!==-1&&(N=N.substring(0,b));return ab()?_.z4((0,_.kQ)(64,BigInt(N))):_.z4(uNo(N))};
_.Z99=function(N){if(N==null)return N;if(typeof N==="bigint")return USf(N)?N=Number(N):(N=c5(64,N),N=USf(N)?Number(N):String(N)),N;if(_.P5(N))return typeof N==="number"?a6(N):rE(N)};
jbO=function(N,b){b=b===void 0?!1:b;var S=typeof N;if(N==null)return N;if(S==="bigint")return String(c5(64,N));if(_.P5(N))return S==="string"?rE(N):b?Fco(N):a6(N)};
_.zOe=function(N){var b=typeof N;if(N==null)return N;if(b==="bigint")return _.z4(c5(64,N));if(_.P5(N))return b==="string"?B9o(N):llI(N)};
AVo=function(N){if(N==null)return N;var b=typeof N;if(b==="bigint")return String(c5(64,N));if(_.P5(N)){if(b==="string")return rE(N);if(b==="number")return a6(N)}};
Xko=function(N){if(N==null)return N;var b=typeof N;if(b==="bigint")return String((0,_.kQ)(64,N));if(_.P5(N)){if(b==="string")return _.i9Y(N);if(b==="number")return _.Qbe(N)}};
_.TE=function(N){if(typeof N!=="string")throw Error();return N};
M_=function(N){if(N!=null&&typeof N!=="string")throw Error();return N};
_.Fi=function(N){return N==null||typeof N==="string"?N:void 0};
Yde=function(N,b,S,P){if(N!=null&&N[B5]===uL)return N;if(!Array.isArray(N))return S?P&2?b[EZu]||(b[EZu]=pkf(b)):new b:void 0;S=N[_.sd]|0;P=S|P&32|P&2;P!==S&&vk(N,P);return new b(N)};
pkf=function(N){N=new N;C9(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
yVa=function(N,b,S){N=b?t9f(N):_.GE(N);return N==null?S?0:void 0:N|0};
Ilu=function(N){return N};
DSL=function(N){return N};
gZI=function(N,b,S,P,H,K){N=Yde(N,P,S,K);H&&(N=V9b(N));return N};
eOI=function(N){return[N,this.get(N)]};
qdU=function(){return $SU||($SU=new Qt(C9([]),void 0,void 0,void 0,hOa))};
wka=function(N){var b=xQ(o6);return b?N[b]:void 0};
SaE=function(N,b){var S=S===void 0?!1:S;if(xQ(NEI)&&xQ(o6)&&void 0===NEI){var P=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=P[o6];if(!H)return;if(H=H.reviveUnknownFields)try{H(P,b,bqp);return}catch(K){Hs(K)}}S&&(N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(S=xQ(o6))&&S in N&&(N=N[S])&&delete N[b])};
Hqf=function(N,b){var S=xQ(o6),P;Pk&&S&&((P=N[S])==null?void 0:P[b])!=null&&DLo(PLI,3)};
KJY=function(N,b){b<100||DLo(s6O,1)};
rOf=function(N,b,S,P){var H=P!==void 0;P=!!P;var K=xQ(o6),C;!H&&Pk&&K&&(C=N[K])&&vQU(C,KJY);K=[];var G=N.length;C=4294967295;var a=!1,R=!!(b&64),n=R?b&128?0:-1:void 0;if(!(b&1)){var d=G&&N[G-1];d!=null&&typeof d==="object"&&d.constructor===Object?(G--,C=G):d=void 0;if(R&&!(b&128)&&!H){a=!0;var m;C=((m=OqY)!=null?m:Ilu)(C-n,n,N,d,void 0)+n}}b=void 0;for(m=0;m<G;m++){var k=N[m];if(k!=null&&(k=S(k,P))!=null)if(R&&m>=C){var M=m-n,l=void 0;((l=b)!=null?l:b={})[M]=k}else K[m]=k}if(d)for(var u in d)G=d[u],
G!=null&&(G=S(G,P))!=null&&(m=+u,k=void 0,R&&!Number.isNaN(m)&&(k=m+n)<C?K[k]=G:(m=void 0,((m=b)!=null?m:b={})[u]=G));b&&(a?K.push(b):K[C]=b);H&&xQ(o6)&&(N=wka(N))&&N instanceof CLL&&(K[o6]=GEO(N));return K};
aop=function(N){N[0]=cOe(N[0]);N[1]=cOe(N[1]);return N};
cOe=function(N){switch(typeof N){case "number":return Number.isFinite(N)?N:""+N;case "bigint":return USf(N)?Number(N):""+N;case "boolean":return N?1:0;case "object":if(Array.isArray(N)){var b=N[_.sd]|0;return N.length===0&&b&1?void 0:rOf(N,b,cOe)}if(N!=null&&N[B5]===uL)return RwL(N);if(N instanceof L9){b=N.JSC$9053_value_;if(b==null)N="";else if(typeof b==="string")N=b;else{if(EOf){for(var S="",P=0,H=b.length-10240;P<H;)S+=String.fromCharCode.apply(null,b.subarray(P,P+=10240));S+=String.fromCharCode.apply(null,
P?b.subarray(P):b);b=btoa(S)}else b=_.iL(b);N=N.JSC$9053_value_=b}return N}if(N instanceof Qt)return N=N.size!==0?WJ9(N,aop):void 0,N;return}return N};
JO=function(N,b){if(b){OqY=b==null||b===Ilu||b[nQe]!==d_E?Ilu:b;try{return RwL(N)}finally{OqY=void 0}}return RwL(N)};
RwL=function(N){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rOf(N,N[_.sd]|0,cOe)};
TEO=function(N){switch(typeof N){case "boolean":return m_b||(m_b=[0,void 0,!0]);case "number":return N>0?void 0:N===0?kEb||(kEb=[0,void 0]):[-N,void 0];case "string":return[0,N];case "object":return N}};
jn=function(N,b){return tnI(N,b[0],b[1])};
_.zE=function(N,b,S){return tnI(N,b,S,2048)};
tnI=function(N,b,S,P){P=P===void 0?0:P;if(N==null){var H=32;S?(N=[S],H|=128):N=[];b&&(H=H&-16760833|(b&1023)<<14)}else{if(!Array.isArray(N))throw Error("O");H=N[_.sd]|0;if(Mnf&&1&H)throw Error("P");2048&H&&!(2&H)&&FJe();if(H&256)throw Error("Q");if(H&64)return(H|P)!==H&&vk(N,H|P),N;if(S&&(H|=128,S!==N[0]))throw Error("R");a:{S=N;H|=64;var K=S.length;if(K){var C=K-1,G=S[C];if(G!=null&&typeof G==="object"&&G.constructor===Object){b=H&128?0:-1;C-=b;if(C>=1024)throw Error("T");for(var a in G)K=+a,K<C&&
(S[K+b]=G[a],delete G[a]);H=H&-16760833|(C&1023)<<14;break a}}if(b){a=Math.max(b,K-(H&128?0:-1));if(a>1024)throw Error("U");H=H&-16760833|(a&1023)<<14}}}vk(N,H|64|P);return N};
FJe=function(){if(Mnf)throw Error("S");DLo(BEo,5)};
fob=function(N,b){if(typeof N!=="object")return N;if(Array.isArray(N)){var S=N[_.sd]|0;return N.length===0&&S&1?void 0:lou(N,S,b)}if(N!=null&&N[B5]===uL)return LJE(N);if(N instanceof Qt){b=N.arrayState;if(b&2)return N;if(!N.size)return;S=C9(WJ9(N));if(N.valueCtor)for(N=0;N<S.length;N++){var P=S[N],H=P[1];H==null||typeof H!=="object"?H=void 0:H!=null&&H[B5]===uL?H=LJE(H):Array.isArray(H)?H=lou(H,H[_.sd]|0,!!(b&32)):H=void 0;P[1]=H}return S}if(N instanceof L9)return N};
lou=function(N,b,S){if(b&2)return N;!S||4096&b||16&b?N=AO(N,b,!1,S&&!(b&16)):(K9(N,34),b&4&&Object.freeze(N));return N};
uiu=function(N,b,S){N=new N.constructor(b);S&&(N.copyOnWrite=Rb);N.noLegacyNull=Rb;return N};
LJE=function(N){var b=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=b[_.sd]|0;return FN(N,S)?N:Q69(N,b,S)?uiu(N,b):AO(b,S)};
AO=function(N,b,S,P){P!=null||(P=!!(34&b));N=rOf(N,b,fob,P);P=32;S&&(P|=2);b=b&16769217|P;vk(N,b);return N};
V9b=function(N){var b=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=b[_.sd]|0;return FN(N,S)?Q69(N,b,S)?uiu(N,b,!0):new N.constructor(AO(b,S,!1)):N};
Xi=function(N){if(N.copyOnWrite!==Rb)return!1;var b=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=AO(b,b[_.sd]|0);K9(b,2048);N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;N.copyOnWrite=void 0;N.noLegacyNull=void 0;return!0};
Ea=function(N){if(!Xi(N)&&FN(N,N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sd]|0))throw Error();};
I6=function(N,b){b===void 0&&(b=N[_.sd]|0);b&32&&!(b&4096)&&vk(N,b|4096)};
Q69=function(N,b,S){return S&2?!0:S&32&&!(S&4096)?(vk(b,S|2),N.copyOnWrite=Rb,!0):!1};
Vt=function(N,b,S,P,H){var K=S+(H?0:-1),C=N.length-1;if(C>=1+(H?0:-1)&&K>=C){var G=N[C];if(G!=null&&typeof G==="object"&&G.constructor===Object)return G[S]=P,b}if(K<=C)return N[K]=P,b;if(P!==void 0){var a;C=((a=b)!=null?a:b=N[_.sd]|0)>>14&1023||536870912;S>=C?P!=null&&(K={},N[C+(H?0:-1)]=(K[S]=P,K)):N[K]=P}return b};
_.$Q=function(N,b,S,P,H){var K=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=K[_.sd]|0;P=FN(N,C)?1:P;H=!!H||P===3;P===2&&Xi(N)&&(K=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=K[_.sd]|0);N=x_U(K,b);var G=N===gE?7:N[_.sd]|0,a=oQO(G,C);var R=4&a?!1:!0;if(R){4&a&&(N=e9(N),G=0,a=en(a,C),C=Vt(K,C,b,N));for(var n=0,d=0;n<N.length;n++){var m=S(N[n]);m!=null&&(N[d++]=m)}d<n&&(N.length=d);S=(a|4)&-513;a=S&=-1025;a&=-4097}a!==G&&(vk(N,a),2&a&&Object.freeze(N));return N=iqa(N,a,K,
C,b,P,R,H)};
iqa=function(N,b,S,P,H,K,C,G){var a=b;K===1||(K!==4?0:2&b||!(16&b)&&32&P)?hO(b)||(b|=!N.length||C&&!(4096&b)||32&P&&!(4096&b||16&b)?2:256,b!==a&&vk(N,b),Object.freeze(N)):(K===2&&hO(b)&&(N=e9(N),a=0,b=en(b,P),P=Vt(S,P,H,N)),hO(b)||(G||(b|=16),b!==a&&vk(N,b)));2&b||!(4096&b||16&b)||I6(S,P);return N};
x_U=function(N,b,S){N=wE(N,b,S);return Array.isArray(N)?N:gE};
oQO=function(N,b){2&b&&(N|=2);return N|1};
hO=function(N){return!!(2&N)&&!!(4&N)||!!(256&N)};
JOe=function(N){return _.iE(N,!0)};
U_Y=function(N){N=e9(N);for(var b=0;b<N.length;b++){var S=N[b]=e9(N[b]);Array.isArray(S[1])&&(S[1]=C9(S[1]))}return r9(N)};
_.Zq9=function(N,b,S,P,H){var K=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=K[_.sd]|0;var G=FN(N,C);a:{!G&&Xi(N)&&(K=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=K[_.sd]|0);var a=wE(K,b);N=!1;if(a==null){if(G){b=qdU();break a}a=[]}else if(a.constructor===Qt)if(a.arrayState&2&&!G)a=WJ9(a);else{b=a;break a}else Array.isArray(a)?N=!!((a[_.sd]|0)&2):a=[];if(G){if(!a.length){b=qdU();break a}N||(N=!0,C9(a))}else N&&(N=!1,r9(a),a=U_Y(a));!N&&C&32&&$LU(a);P=new Qt(a,S,P,H);C=
Vt(K,C,b,P);N||I6(K,C);b=P}!G&&S&&(b.callToMutableOnAccess=!0);return b};
_.bi=function(N,b,S,P){Ea(N);var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.sd]|0;if(S==null)return Vt(H,K,b),N;var C=S===gE?7:S[_.sd]|0,G=C,a=hO(C),R=a||Object.isFrozen(S);a||(C=0);R||(S=e9(S),G=0,C=en(C,K),R=!1);C|=5;var n;a=(n=eEL(C))!=null?n:0;for(n=0;n<S.length;n++){var d=S[n],m=P(d,a);Object.is(d,m)||(R&&(S=e9(S),G=0,C=en(C,K),R=!1),S[n]=m)}C!==G&&(R&&(S=e9(S),C=en(C,K)),vk(S,C));Vt(H,K,b,S);return N};
_.So=function(N,b,S,P,H){Ea(N);var K=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Vt(K,K[_.sd]|0,b,(P==="0"?Number(S)===0:S===P)?void 0:S,H);return N};
_.Ph=function(N,b,S){if(b&2)throw Error();var P=Zl(b),H=x_U(N,S,P),K=H===gE?7:H[_.sd]|0,C=oQO(K,b);if(2&C||hO(C)||16&C)C===K||hO(C)||vk(H,C),H=e9(H),K=0,C=en(C,b),Vt(N,b,S,H,P);C&=-13;C!==K&&vk(H,C);return H};
j6Y=function(N){if(Pk){var b;return(b=N[sL])!=null?b:N[sL]=new Map}if(sL in N)return N[sL];b=new Map;Object.defineProperty(N,sL,{value:b});return b};
AOE=function(N,b,S,P,H){var K=j6Y(N),C=zwE(K,N,b,S,H);C!==P&&(C&&(b=Vt(N,b,C,void 0,H)),K.set(S,P));return b};
zwE=function(N,b,S,P,H){var K=N.get(P);if(K!=null)return K;for(var C=K=0;C<P.length;C++){var G=P[C];wE(b,G,H)!=null&&(K!==0&&(S=Vt(b,S,K,void 0,H)),K=G)}N.set(P,K);return K};
X5f=function(N,b,S,P,H){var K=!1;P=wE(N,P,H,function(C){var G=Yde(C,S,!1,b);K=G!==C&&G!=null;return G});
if(P!=null)return K&&!FN(P)&&I6(N,b),P};
EQE=function(N,b,S,P,H,K,C,G){var a=FN(N,S);K=a?1:K;C=!!C||K===3;a=G&&!a;(K===2||a)&&Xi(N)&&(b=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=b[_.sd]|0);N=x_U(b,H);var R=N===gE?7:N[_.sd]|0,n=oQO(R,S);if(G=!(4&n)){var d=N,m=S,k=!!(2&n);k&&(m|=2);for(var M=!k,l=!0,u=0,J=0;u<d.length;u++){var Z=Yde(d[u],P,!1,m);if(Z instanceof P){if(!k){var D=FN(Z);M&&(M=!D);l&&(l=D)}d[J++]=Z}}J<u&&(d.length=J);n|=4;n=l?n&-4097:n|4096;n=M?n|8:n&-9}n!==R&&(vk(N,n),2&n&&Object.freeze(N));if(a&&!(8&n||!N.length&&
(K===1||(K!==4?0:2&n||!(16&n)&&32&S)))){hO(n)&&(N=e9(N),n=en(n,S),S=Vt(b,S,H,N));P=N;a=n;for(R=0;R<P.length;R++)d=P[R],n=V9b(d),d!==n&&(P[R]=n);a|=8;n=a=P.length?a|4096:a&-4097;vk(N,n)}return N=iqa(N,n,b,S,H,K,G,C)};
p5e=function(N){N==null&&(N=void 0);return N};
en=function(N,b){return N=(2&b?N|2:N&-3)&-273};
_.Yap=function(N,b,S,P,H){Ea(N);b=_.$Q(N,b,H,2,!0);var K;H=(K=eEL(b===gE?7:b[_.sd]|0))!=null?K:0;b.push(S(P,H));return N};
yOs=function(N,b,S,P,H,K,C){Ea(N);var G=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=EQE(N,G,G[_.sd]|0,S,b,2,!0);if(K&&C)H!=null||(H=N.length-1),qeL(N,H),N.splice(H,K),N.length||(N[_.sd]&=-4097);else{if(K){if(typeof H!=="number"||H<0||H>N.length)throw Error();}else P=P!=null?P:new S;H!=void 0?N.splice(H,K,P):N.push(P);H=S=N===gE?7:N[_.sd]|0;(P=FN(P))?(S&=-9,N.length===1&&(S&=-4097)):S|=4096;S!==H&&vk(N,S);P||I6(G)}};
D_e=function(N,b){if(typeof N==="string")return new KD(Yeb(N),b);if(Array.isArray(N))return new KD(new Uint8Array(N),b);if(N.constructor===Uint8Array)return new KD(N,!1);if(N.constructor===ArrayBuffer)return N=new Uint8Array(N),new KD(N,!1);if(N.constructor===L9)return b=Ioo(N)||new Uint8Array(0),new KD(b,!0,N);if(N instanceof Uint8Array)return N=N.constructor===Uint8Array?N:new Uint8Array(N.buffer,N.byteOffset,N.byteLength),new KD(N,!1);throw Error();};
gQe=function(N){switch(typeof N){case "string":VnL(N)}};
$_E=function(N){switch(typeof N){case "string":ewa(N)}};
vh=function(){var N=function(){throw Error();};
Object.setPrototypeOf(N,N.prototype);return N};
qap=function(N,b){var S=S===void 0?hwe:S;return new OL(N,b,S)};
bDU=function(N,b,S,P,H){w59(N,S,NcE(b,P),H)};
G7=function(N,b,S,P){var H=P[N];if(H)return H;H={};H.binaryFields=P;H.messageMetadata=TEO(P[0]);var K=P[1],C=1;K&&K.constructor===Object&&(H.extensions=K,K=P[++C],typeof K==="function"&&(H.isMessageSet=!0,SLu!=null||(SLu=K),Pi_!=null||(Pi_=P[C+1]),K=P[C+=2]));for(var G={};K&&HDf(K);){for(var a=0;a<K.length;a++)G[K[a]]=K;K=P[++C]}for(a=1;K!==void 0;){typeof K==="number"&&(a+=K,K=P[++C]);var R=void 0;if(K instanceof OL)var n=K;else n=s$O,C--;K=void 0;if((K=n)==null?0:K.$$isMsg){K=P[++C];R=P;var d=C;
typeof K==="function"&&(K=K(),R[d]=K);R=K}K=P[++C];d=a+1;typeof K==="number"&&K<0&&(d-=K,K=P[++C]);for(;a<d;a++){var m=G[a];R?S(H,a,n,R,m):b(H,a,n,m)}}return P[N]=H};
HDf=function(N){return Array.isArray(N)&&!!N.length&&typeof N[0]==="number"&&N[0]>0};
vIo=function(N){return Array.isArray(N)?N[0]instanceof OL?N:[Kkb,N]:[N,void 0]};
NcE=function(N,b){if(N instanceof _.rc)return N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(N))return jn(N,b)};
ODY=function(N,b,S,P){var H=S.$$binaryReaderFn;N[b]=P?function(K,C,G){return H(K,C,G,P)}:H};
G7p=function(N,b,S,P,H){var K=S.$$binaryReaderFn,C,G;N[b]=function(a,R,n){return K(a,R,n,G||(G=G7(Cio,ODY,G7p,P).messageMetadata),C||(C=rSf(P)),H)}};
rSf=function(N){var b=N[cSO];if(b!=null)return b;var S=G7(Cio,ODY,G7p,N);b=S.isMessageSet?function(P,H){return SLu(P,H,S)}:function(P,H){for(;aB9(H)&&H.nextWireType_!=4;){var K=H.nextField_,C=S[K];
if(C==null){var G=S.extensions;G&&(G=G[K])&&(G=Rip(G),G!=null&&(C=S[K]=G))}if(C==null||!C(H,P,K)){G=H;C=G.fieldCursor_;Wka(G);if(G.discardUnknownFields)var a=void 0;else{var R=G.decoder_.cursor_-C;G.decoder_.cursor_=C;a=nIp(G.decoder_,R)}R=G=C=void 0;var n=P;a&&((C=(G=(R=n[o6])!=null?R:n[o6]=new CLL)[K])!=null?C:G[K]=[]).push(a)}}if(P=wka(P))P.reviveUnknownFields=S.binaryFields[djI];return!0};
N[cSO]=b;N[djI]=mja.bind(N);return b};
mja=function(N,b,S,P){var H=this[Cio],K=this[cSO],C=jn(void 0,H.messageMetadata),G=wka(N);if(G){var a=!1,R=H.extensions;if(R){H=function(M,l,u){if(u.length!==0)if(R[l])for(M=_.O(u),l=M.next();!l.done;l=M.next()){l=k7I(l.value);try{a=!0,K(C,l)}finally{l.free()}}else P==null||P(N,l,u)};
if(b==null)vQU(G,H);else if(G!=null){var n=G[b];n&&H(G,b,n)}if(a){var d=N[_.sd]|0;if(d&2&&d&2048&&(S==null||!S.reviveIntoImmutable))throw Error();var m=Zl(d),k=function(M,l){if(wE(N,M,m)!=null)switch(S==null?void 0:S.resolutionBehavior){case 1:return;default:throw Error();}l!=null&&(d=Vt(N,d,M,l,m));delete G[M]};
b==null?wsb(C,C[_.sd]|0,function(M,l){k(M,l)}):k(b,wE(C,b,m))}}}};
Rip=function(N){N=vIo(N);var b=N[0].$$binaryReaderFn;if(N=N[1]){var S=rSf(N),P=G7(Cio,ODY,G7p,N).messageMetadata;return function(H,K,C){return b(H,K,C,P,S)}}return b};
Tcb=function(N,b,S){N[b]=S.$$binaryWriterFn};
MoE=function(N,b,S,P){var H,K,C=S.$$binaryWriterFn;N[b]=function(G,a,R){return C(G,a,R,K||(K=G7(tos,Tcb,MoE,P).messageMetadata),H||(H=Fku(P)))}};
Fku=function(N){var b=N[Bc_];if(!b){var S=G7(tos,Tcb,MoE,N);b=function(P,H){return lBI(P,H,S)};
N[Bc_]=b}return b};
lBI=function(N,b,S){wsb(N,N[_.sd]|0,function(P,H){if(H!=null){var K=LkU(S,P);K?K(b,H,P):P<500||DLo(fBp,3)}});
(N=wka(N))&&vQU(N,function(P,H,K){ch(b,b.encoder_.end());for(P=0;P<K.length;P++)ch(b,Ioo(K[P])||new Uint8Array(0))})};
LkU=function(N,b){var S=N[b];if(S)return S;if(S=N.extensions)if(S=S[b]){S=vIo(S);var P=S[0].$$binaryWriterFn;if(S=S[1]){var H=Fku(S),K=G7(tos,Tcb,MoE,S).messageMetadata;S=N.isMessageSet?Pi_(K,H):function(C,G,a){return P(C,G,a,K,H)}}else S=P;
return N[b]=S}};
_.uHE=function(N,b,S){if(Array.isArray(b)){var P=b[_.sd]|0;if(P&4)return b;for(var H=0,K=0;H<b.length;H++){var C=N(b[H]);C!=null&&(b[K++]=C)}K<H&&(b.length=K);N=P|1;S&&(N=(N|4)&-1537);N!==P&&vk(b,N);S&&N&2&&Object.freeze(b);return b}};
_.R$=function(N,b,S){return new OL(N,b,S)};
_.Q$O=function(N,b,S){return new OL(N,b,S)};
_.Wh=function(N,b,S){Vt(N,N[_.sd]|0,b,S,Zl(N[_.sd]|0))};
xju=function(N,b,S){b=_.N_(b);b!=null&&(_.nD(N,S,1),N=N.encoder_,S=CEE||(CEE=new DataView(new ArrayBuffer(8))),S.setFloat64(0,+b,!0),AV=S.getUint32(0,!0),XN=S.getUint32(4,!0),_.dc(N,AV),_.dc(N,XN))};
oIY=function(N,b,S){b=_.N_(b);b!=null&&(_.nD(N,S,5),N=N.encoder_,G49(b),_.dc(N,AV))};
_.kI=function(N,b,S){b=AVo(b);if(b!=null&&(gQe(b),b!=null))switch(_.nD(N,S,0),typeof b){case "number":N=N.encoder_;Ed(b);mk(N,AV,XN);break;case "bigint":S=BigInt.asUintN(64,b);S=new iD9(Number(S&BigInt(4294967295)),Number(S>>BigInt(32)));mk(N.encoder_,S.JSC$9096_lo,S.JSC$9096_hi);break;default:S=VnL(b),mk(N.encoder_,S.JSC$9096_lo,S.JSC$9096_hi)}};
Uje=function(N,b,S){b=Xko(b);if(b!=null&&($_E(b),b!=null))switch(_.nD(N,S,0),typeof b){case "number":N=N.encoder_;Ed(b);mk(N,AV,XN);break;case "bigint":S=JSI(b);mk(N.encoder_,S.JSC$9094_lo,S.JSC$9094_hi);break;default:S=ewa(b),mk(N.encoder_,S.JSC$9094_lo,S.JSC$9094_hi)}};
j$Y=function(N,b,S){b=_.GE(b);b!=null&&b!=null&&(_.nD(N,S,0),_.ZDE(N.encoder_,b))};
_.ASY=function(N,b,S){ziU(N,S,Xko(b))};
Xh9=function(N,b,S){b=_.k4O(b);b!=null&&(_.nD(N,S,0),N.encoder_.JSC$9098_buffer_.push(b?1:0))};
pha=function(N,b,S){b=_.Fi(b);b!=null&&EIe(N,S,cbs(b))};
YLu=function(N,b,S,P,H){w59(N,S,NcE(b,P),H)};
_.ySf=function(N,b,S){b=b==null||typeof b=="string"||b instanceof L9?b:void 0;b!=null&&EIe(N,S,D_e(b,!0).buffer)};
IBL=function(N,b,S){b=_.M9o(b);b!=null&&b!=null&&(_.nD(N,S,0),T7(N.encoder_,b))};
_.DjO=function(N,b,S){b=_.GE(b);b!=null&&(b=parseInt(b,10),_.nD(N,S,0),_.ZDE(N.encoder_,b))};
Vo9=function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,alY));return!0};
_.gIO=function(N,b,S,P){if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,_.tS(N.decoder_,alY));return!0};
eia=function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,cVI));return!0};
_.hiI=function(N,b,S){if(N.nextWireType_!==1)return!1;_.Wh(b,S,$js(N.decoder_));return!0};
_.FH=function(N,b){return function(S,P){var H={treatNewDataAsImmutable:!0};P&&Object.assign(H,P);S=k7I(S,void 0,void 0,H);try{var K=new N,C=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;rSf(b)(C,S);var G=K}finally{S.free()}return G}};
_.li=function(N){return function(b){return qLe(b,N)}};
whp=function(N){return function(){return qLe(this,N)}};
_.N$e=function(N){return j9(function(b){return b instanceof N&&!FN(b)})};
_.ui=function(N){return function(b){return bgL(N,b)}};
sXe=function(N,b){return SEe({child:N,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:P4E,getPayloadCase:function(S){return S.getPayloadCase()},
createInitMessage:function(S){var P=new QK,H=new Hgs;S=_.xI(H,1,S);return _.o$(P,5,ii,S)}})};
JS=function(N){return{valueOf:N}.valueOf()};
vwE=function(){var N=null;if(!KRU)return N;try{var b=function(S){return S};
N=KRU.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(S){}return N};
C4e=function(){OgO===void 0&&(OgO=vwE());return OgO};
_.ZB=function(N){var b=C4e();N=b?b.createScriptURL(N):N;return new UL(N)};
_.jo=function(N){if(N instanceof UL)return N.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.z7=function(N){return Object.isFrozen(N)&&Object.isFrozen(N.raw)};
GJL=function(N){return N.toString().indexOf("`")===-1};
XH=function(N){return new _.AS(rvf,N)};
EL=function(N){return N instanceof _.AS};
_.YI=function(N){if(EL(N))return N.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
yK=function(N){return new cvf(function(b){return b.substr(0,N.length+1).toLowerCase()===N+":"})};
_.I$=function(N,b){b=b===void 0?ad_:b;if(EL(N))return N;for(var S=0;S<b.length;++S){var P=b[S];if(P instanceof cvf&&P.isValid(N))return XH(N)}};
_.VK=function(N,b){b=b===void 0?ad_:b;return _.I$(N,b)||DB};
_.eo=function(N){var b=window;if(typeof MediaSource!=="undefined"&&N instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&N instanceof b.ManagedMediaSource)return XH(URL.createObjectURL(N));b=N.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("Z");return XH(URL.createObjectURL(N))};
_.R8U=function(N){for(var b=_.$I.apply(1,arguments),S=[N[0]],P=0;P<b.length;P++)S.push(String(b[P])),S.push(N[P+1]);return XH(S.join(""))};
_.nwI=function(N){if(!WRY){a:{var b=document.createElement("a");try{b.href=N}catch(S){N=void 0;break a}N=b.protocol;N=N===":"||N===""?"https:":N}return N}try{b=new URL(N)}catch(S){return"https:"}return b.protocol};
_.hS=function(N){N instanceof _.AS?N=_.YI(N):N=dt_.test(N)?N:void 0;return N};
qj=function(N,b){b=_.hS(b);b!==void 0&&(N.href=b)};
Nt=function(N){var b=C4e();N=b?b.createHTML(N):N;return new wc(N)};
b4=function(N){if(N instanceof wc)return N.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.SW=function(N,b){N.src=_.jo(b).toString()};
mtY=function(N,b){N.setAttribute("sandbox","");for(var S=0;S<b.length;S++)N.sandbox.supports&&!N.sandbox.supports(b[S])||N.sandbox.add(b[S])};
_.HM=function(N,b,S){N.removeAttribute("srcdoc");switch(b){case 0:if(S instanceof UL)throw new kJL("TrustedResourceUrl",0);mtY(N,[]);b=_.hS(S);b!==void 0&&(N.src=b);break;case 1:if(!(S instanceof UL))throw new kJL(typeof S,1);mtY(N,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.SW(N,S);break;case 2:if(S instanceof UL)throw new kJL("TrustedResourceUrl",2);mtY(N,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=_.hS(S);b!==void 0&&(N.src=b);break;default:_.$Z(b)}};
_.Kg=function(N,b,S,P){b=_.hS(b);return b!==void 0?N.open(b,S,P):null};
_.vM=function(N){N=N===void 0?document:N;var b,S;N=(S=(b=N).querySelector)==null?void 0:S.call(b,"script[nonce]");return N==null?"":N.nonce||N.getAttribute("nonce")||""};
_.Cg=function(N){var b=C4e();N=b?b.createScript(N):N;return new _.OE(N)};
GJ=function(N){if(N instanceof _.OE)return N.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
T$o=function(N){var b=_.vM(N.ownerDocument);b&&N.setAttribute("nonce",b)};
_.r$=function(N,b){N.textContent=GJ(b);T$o(N)};
_.cM=function(N,b){N.src=_.jo(b);T$o(N)};
_.aX=function(N,b){if(N.nodeType===1&&/^(script|style)$/i.test(N.tagName))throw Error("Z");N.innerHTML=b4(b)};
_.RX=function(N,b,S,P){if(N.length===0)throw Error("Z");N=N.map(function(K){if(K instanceof tWe)K=K.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return K});
var H=S.toLowerCase();if(N.every(function(K){return H.indexOf(K)!==0}))throw Error("aa`"+S);
b.setAttribute(S,P)};
_.WM=function(N,b,S){if(b instanceof UL)N.href=_.jo(b).toString(),N.rel=S;else{if(MWe.indexOf(S)===-1)throw Error("ba`"+S);b=_.hS(b);b!==void 0&&(N.href=b,N.rel=S)}};
FRL=function(N){if(N instanceof ng)return N.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.B$Y=function(N,b){b=_.hS(b);b!==void 0&&(N.href=b)};
ldo=function(N){return new Worker(_.jo(N),void 0)};
LRO=function(N){return _.ZB(N)};
fdo=function(N,b){N&&(b=N.indexOf(b),0<=b&&N.splice(b,1))};
d$=function(N){return typeof N==="function"};
uwE=function(N){return N instanceof mR||N&&"closed"in N&&d$(N.remove)&&d$(N.add)&&d$(N.unsubscribe)};
kw=function(){};
TJ=function(N){QX9(function(){throw N;})};
tv=function(N){return N};
Mt=function(){return xtE(_.$I.apply(0,arguments))};
xtE=function(N){return N.length===0?tv:N.length===1?N[0]:function(b){return N.reduce(function(S,P){return P(S)},b)}};
owu=function(N){var b;return(b=N!=null?N:void 0)!=null?b:Promise};
iga=function(N,b){return new BM(function(S){var P=0;return b.schedule(function(){P===N.length?S.complete():(S.next(N[P++]),S.closed||this.schedule())})})};
Jvs=function(N,b){if(!N)throw Error("ca");return new BM(function(S){var P=new mR;P.add(b.schedule(function(){var H=N[Symbol.asyncIterator]();P.add(b.schedule(function(){var K=this;H.next().then(function(C){C.done?S.complete():(S.next(C.value),K.schedule())})}))}));
return P})};
UtE=function(N,b,S){b=b.schedule(function(){try{S.call(this)}catch(P){N.error(P)}},0);
N.add(b)};
jXU=function(N,b){return new BM(function(S){var P;S.add(b.schedule(function(){P=N[ZgE]();UtE(S,b,function(){var H=P.next(),K=H.value;H.done?S.complete():(S.next(K),this.schedule())})}));
return function(){var H;return d$((H=P)==null?void 0:H.return)&&P.return()}})};
z8O=function(N,b){return new BM(function(S){var P=new mR;P.add(b.schedule(function(){var H=N[l4]();P.add(H.subscribe({next:function(K){P.add(b.schedule(function(){return S.next(K)}))},
error:function(K){P.add(b.schedule(function(){return S.error(K)}))},
complete:function(){P.add(b.schedule(function(){return S.complete()}))}}))}));
return P})};
Avu=function(N,b){return new BM(function(S){return b.schedule(function(){return N.then(function(P){S.add(b.schedule(function(){S.next(P);S.add(b.schedule(function(){return S.complete()}))}))},function(P){S.add(b.schedule(function(){return S.error(P)}))})})})};
XMb=function(N){return new TypeError("da`"+(N!==null&&typeof N==="object"?"an invalid object":"'"+N+"'"))};
pMY=function(N,b){if(N!=null){if(d$(N[l4]))return z8O(N,b);if(Ewo(N))return iga(N,b);if(d$(N==null?void 0:N.then))return Avu(N,b);if(Symbol.asyncIterator&&d$(N==null?void 0:N[Symbol.asyncIterator]))return Jvs(N,b);if(d$(N==null?void 0:N[ZgE]))return jXU(N,b)}throw XMb(N);};
fg=function(N,b){return b?pMY(N,b):Lg(N)};
Lg=function(N){if(N instanceof BM)return N;if(N!=null){if(d$(N[l4]))return YEu(N);if(Ewo(N))return yv9(N);if(d$(N==null?void 0:N.then))return IdO(N);if(Symbol.asyncIterator&&d$(N==null?void 0:N[Symbol.asyncIterator]))return DtU(N);if(d$(N==null?void 0:N[ZgE]))return VWY(N)}throw XMb(N);};
YEu=function(N){return new BM(function(b){var S=N[l4]();if(d$(S.subscribe))return S.subscribe(b);throw new TypeError("ea");})};
yv9=function(N){return new BM(function(b){for(var S=0;S<N.length&&!b.closed;S++)b.next(N[S]);b.complete()})};
IdO=function(N){return new BM(function(b){N.then(function(S){b.closed||(b.next(S),b.complete())},function(S){return b.error(S)}).then(null,TJ)})};
VWY=function(N){return new BM(function(b){for(var S=N[ZgE]();!b.closed;){var P=S.next(),H=P.value;P.done?b.complete():b.next(H)}return function(){return d$(S==null?void 0:S.return)&&S.return()}})};
DtU=function(N){return new BM(function(b){gwp(N,b).catch(function(S){return b.error(S)})})};
gwp=function(N,b){var S,P,H,K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:_.u4(a,2,3),K=_.Q1(N);case 5:return a.yield(K.next(),8);case 8:P=a.yieldResult;if(P.done){a.jumpTo(3);break}C=P.value;b.next(C);a.jumpTo(5);break;case 3:_.xw(a);_.oX(a,9);if(!P||P.done||!(H=K.return)){a.jumpTo(9);break}return a.yield(H.call(K),9);case 9:_.xw(a,0,0,1);if(S)throw S.error;_.Jv(a,10,1);break;case 10:_.Jv(a,4);break;case 2:G=_.UE(a);S={error:G};a.jumpTo(3);break;case 4:b.complete(),_.Zd(a)}})};
e8e=function(N,b){return b?iga(N,b):yv9(N)};
$tE=function(N){return d$(N[N.length-1])?N.pop():void 0};
zJ=function(N){var b=N[N.length-1];return b&&d$(b.schedule)?N.pop():void 0};
Av=function(){var N=_.$I.apply(0,arguments),b=zJ(N);return b?iga(N,b):e8e(N)};
Xw=function(N){var b=d$(N)?N:function(){return N};
return new BM(function(S){return S.error(b())})};
EE=function(N){return function(b){if(d$(b==null?void 0:b.lift))return b.lift(function(S){try{return N(S,this)}catch(P){this.error(P)}});
throw new TypeError("fa");}};
Yw=function(){return EE(function(N,b){var S=null;N._refCount++;var P=new pg(b,void 0,void 0,void 0,function(){if(!N||N._refCount<=0||0<--N._refCount)S=null;else{var H=N._connection,K=S;S=null;!H||K&&H!==K||H.unsubscribe();b.unsubscribe()}});
N.subscribe(P);P.closed||(S=N.connect())})};
qEY=function(){var N=h8E;var b=b===void 0?0:b;return EE(function(S,P){P.add(N.schedule(function(){return S.subscribe(P)},b))})};
y1=function(N){return EE(function(b,S){var P=0;b.subscribe(new pg(S,function(H){S.next(N.call(void 0,H,P++))}))})};
NYO=function(N){return y1(function(b){return wM9(b)?N.apply(null,_.IX(b)):N(b)})};
s_O=function(N){if(N.length===1){var b=N[0];if(bza(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Snu(b)===Pz9)return N=Hzb(b),{args:N.map(function(S){return b[S]}),
keys:N}}return{args:N,keys:null}};
Dd=function(){var N=_.$I.apply(0,arguments),b=zJ(N),S=$tE(N);N=s_O(N);var P=N.args,H=N.keys;if(P.length===0)return fg([],b);b=new BM(K0I(P,b,H?function(K){for(var C={},G=0;G<K.length;G++)C[H[G]]=K[G];return C}:tv));
return S?b.pipe(NYO(S)):b};
K0I=function(N,b,S){S=S===void 0?tv:S;return function(P){vou(b,function(){for(var H=N.length,K=Array(H),C=H,G=N.map(function(){return!1}),a=!0,R={i$jscomp$218:0};R.i$jscomp$218<H;R={i$jscomp$218:R.i$jscomp$218},R.i$jscomp$218++)vou(b,function(n){return function(){fg(N[n.i$jscomp$218],b).subscribe(new V1(P,function(d){K[n.i$jscomp$218]=d;
a&&(G[n.i$jscomp$218]=!0,a=!G.every(tv));a||P.next(S(K.slice()))},function(){return--C===0}))}}(R),P)},P)}};
vou=function(N,b,S){N?S.add(N.schedule(b)):b()};
Ozb=function(N,b,S,P){var H=[],K=0,C=0,G=!1,a=function(R){K++;Lg(S(R,C++)).subscribe(new pg(b,function(n){b.next(n)},void 0,function(){K--;
for(var n={};H.length&&K<P;n={bufferedValue:void 0})n.bufferedValue=H.shift(),a(n.bufferedValue);!G||H.length||K||b.complete()}))};
N.subscribe(new pg(b,function(R){return K<P?a(R):H.push(R)},void 0,function(){G=!0;
!G||H.length||K||b.complete()}));
return function(){H=null}};
g$=function(N,b){var S=S===void 0?Infinity:S;if(d$(b))return g$(function(P,H){return y1(function(K,C){return b(P,K,H,C)})(Lg(N(P,H)))},S);
typeof b==="number"&&(S=b);return EE(function(P,H){return Ozb(P,H,N,S)})};
Czs=function(N){N=N===void 0?Infinity:N;return g$(tv,N)};
Gne=function(){var N=_.$I.apply(0,arguments);return Czs(1)(e8e(N,zJ(N)))};
rhE=function(N){return new BM(function(b){Lg(N()).subscribe(b)})};
eW=function(N,b,S){if(d$(S)){var P=S;S=void 0}if(P)return eW(N,b,S).pipe(NYO(P));P=_.O(d$(N.addEventListener)&&d$(N.removeEventListener)?chb.map(function(C){return function(G){return N[C](b,G,S)}}):d$(N.addListener)&&d$(N.removeListener)?a2O.map(RUb(N,b)):d$(N.on)&&d$(N.off)?W0_.map(RUb(N,b)):[]);
var H=P.next().value,K=P.next().value;return!H&&Ewo(N)?g$(function(C){return eW(C,b,S)})(e8e(N)):new BM(function(C){if(!H)throw new TypeError("ga");
var G=function(){var a=_.$I.apply(0,arguments);return C.next(1<a.length?a:a[0])};
H(G);return function(){return K(G)}})};
RUb=function(N,b){return function(S){return function(P){return N[S](b,P)}}};
qt=function(){var N=_.$I.apply(0,arguments),b=zJ(N);var S=typeof N[N.length-1]==="number"?N.pop():Infinity;return N.length?N.length===1?Lg(N[0]):Czs(S)(e8e(N,b)):hv};
dzb=function(N){return N.length===1&&noI(N[0])?N[0]:N};
mzo=function(){var N=dzb(_.$I.apply(0,arguments));return EE(function(b,S){var P=[b].concat(_.IX(N)),H=function(){if(!S.closed)if(P.length>0){try{var K=Lg(P.shift())}catch(G){H();return}var C=new pg(S,void 0,kw,kw);S.add(K.subscribe(C));C.add(H)}else S.complete()};
H()})};
w$=function(N){return EE(function(b,S){var P=0;b.subscribe(new pg(S,function(H){return N.call(void 0,H,P++)&&S.next(H)}))})};
TYb=function(){var N=_.$I.apply(0,arguments);N=dzb(N);return N.length===1?Lg(N[0]):new BM(knI(N))};
knI=function(N){return function(b){for(var S=[],P={i$jscomp$221:0};S&&!b.closed&&P.i$jscomp$221<N.length;P={i$jscomp$221:P.i$jscomp$221},P.i$jscomp$221++)S.push(Lg(N[P.i$jscomp$221]).subscribe(new pg(b,function(H){return function(K){if(S){for(var C=0;C<S.length;C++)C!==H.i$jscomp$221&&S[C].unsubscribe();S=null}b.next(K)}}(P))))}};
tk_=function(){var N=_.$I.apply(0,arguments),b=$tE(N),S=dzb(N);return S.length?new BM(function(P){var H=S.map(function(){return[]}),K=S.map(function(){return!1});
P.add(function(){H=K=null});
for(var C={sourceIndex$jscomp$1:0};!P.closed&&C.sourceIndex$jscomp$1<S.length;C={sourceIndex$jscomp$1:C.sourceIndex$jscomp$1},C.sourceIndex$jscomp$1++)Lg(S[C.sourceIndex$jscomp$1]).subscribe(new pg(P,function(G){return function(a){H[G.sourceIndex$jscomp$1].push(a);H.every(function(R){return R.length})&&(a=H.map(function(R){return R.shift()}),P.next(b?b.apply(null,_.IX(a)):a),H.some(function(R,n){return!R.length&&K[n]})&&P.complete())}}(C),void 0,function(G){return function(){K[G.sourceIndex$jscomp$1]=
!0;
!H[G.sourceIndex$jscomp$1].length&&P.complete()}}(C)));
return function(){H=K=null}}):hv};
MkE=function(N){var b,S,P;return!!N&&typeof N.active==="boolean"&&typeof((b=N.clock)==null?void 0:b.now)==="function"&&((S=N.clock)==null?void 0:S.timeline)!==void 0&&!((P=N.lastMeasurement)==null||!P.timestamp)&&typeof N.equivalentTo==="function"&&typeof N.extrapolateToNow==="function"&&typeof N.extrapolateToTime==="function"&&typeof N.map==="function"&&typeof N.joinWith==="function"};
F0E=function(N){function b(S){return typeof S==="boolean"||typeof S==="string"||typeof S==="number"||S===void 0||S===null}
return b(N)?!0:Array.isArray(N)?N.every(b):typeof N==="object"?Object.keys(N).every(function(S){return typeof S==="string"})&&Object.values(N).every(function(S){return Array.isArray(S)?S.every(b):b(S)}):!1};
BYL=function(N){if(F0E(N))return N;if(MkE(N))return{lastMeasurement:{value:BYL(N.lastMeasurement.value),timestamp:Nz(N.lastMeasurement.timestamp,new bz(0,N.lastMeasurement.timestamp.timeline))},active:N.active};try{return JSON.parse(JSON.stringify(N))}catch(b){}return String(N)};
Sk=function(N,b){return function(S){return new BM(function(P){return S.subscribe(function(H){N.timeExecution(b,function(){P.next(H)})()},function(H){N.timeExecution(b,function(){P.error(H)})()},function(){N.timeExecution(b,function(){P.complete()})()})})}};
l2u=function(N,b){var S=!1;return new BM(function(P){var H=N.setTimeout(function(){S=!0;P.next(!0);P.complete()},b);
return function(){S||N.clearTimeout(H)}})};
L0b=function(N){N=N.global;if(N.fetchLater)return N.fetchLater.bind(N)};
PR=function(N){return EE(function(b,S){var P=null,H=!1,K;P=b.subscribe(new pg(S,void 0,function(C){K=Lg(N(C,PR(N)(b)));P?(P.unsubscribe(),P=null,K.subscribe(S)):H=!0}));
H&&(P.unsubscribe(),P=null,K.subscribe(S))})};
f2u=function(N,b,S){return function(P,H){var K=S,C=b,G=0;P.subscribe(new pg(H,function(a){var R=G++;C=K?N(C,a,R):(K=!0,a);H.next(C)},void 0,void 0))}};
uKb=function(N){N=N===void 0?null:N;return EE(function(b,S){var P=!1;b.subscribe(new pg(S,function(H){P=!0;S.next(H)},void 0,function(){P||S.next(N);
S.complete()}))})};
HR=function(){return EE(function(N,b){N.subscribe(new pg(b,kw))})};
sn=function(N){return EE(function(b,S){b.subscribe(new pg(S,function(){return S.next(N)}))})};
Kz=function(N){return N<=0?function(){return hv}:EE(function(b,S){var P=0;
b.subscribe(new pg(S,function(H){++P<=N&&(S.next(H),N<=P&&S.complete())}))})};
vR=function(N){var b=b===void 0?tv:b;var S;N=(S=N)!=null?S:Q__;return EE(function(P,H){var K,C=!0;P.subscribe(new pg(H,function(G){var a=b(G);if(C||!N(K,a))C=!1,K=a,H.next(G)}))})};
Q__=function(N,b){return N===b};
ooY=function(N){N=N===void 0?xzI:N;return EE(function(b,S){var P=!1;b.subscribe(new pg(S,function(H){P=!0;S.next(H)},void 0,function(){return P?S.complete():S.error(N())}))})};
xzI=function(){return new iz9};
On=function(){var N=_.$I.apply(0,arguments);return function(b){return Gne(b,Av.apply(null,_.IX(N)))}};
JhI=function(N){return EE(function(b,S){var P=0;b.subscribe(new pg(S,function(H){N.call(void 0,H,P++,b)||(S.next(!1),S.complete())},void 0,function(){S.next(!0);
S.complete()}))})};
UzY=function(){return EE(function(N,b){var S=[];N.subscribe(new pg(b,function(P){S.push(P);1<S.length&&S.shift()},void 0,function(){for(var P=_.O(S),H=P.next();!H.done;H=P.next())b.next(H.value);
b.complete()},function(){S=null}))})};
ZzL=function(N,b){var S=arguments.length>=2;return function(P){return P.pipe(N?w$(function(H,K){return N(H,K,P)}):tv,UzY(),S?uKb(b):ooY(function(){return new iz9}))}};
rY=function(N){var b=d$(N)?N:function(){return N};
return d$()?EE(function(S,P){var H=b();(void 0)(H).subscribe(P).add(S.subscribe(H))}):function(S){var P=new Cz(S,b);
d$(S==null?void 0:S.lift)&&(P.lift=S.lift);P.source=S;P.subjectFactory=b;return P}};
a_=function(N){var b=new cR(N,void 0,void 0);return function(S){return rY(function(){return b})(S)}};
WR=function(N,b){return EE(f2u(N,b,arguments.length>=2))};
nz=function(){var N=_.$I.apply(0,arguments),b=zJ(N);return EE(function(S,P){(b?Gne(N,S,b):Gne(N,S)).subscribe(P)})};
dY=function(N){return EE(function(b,S){var P=null,H=0,K=!1;b.subscribe(new pg(S,function(C){var G;(G=P)==null||G.unsubscribe();G=H++;Lg(N(C,G)).subscribe(P=new pg(S,function(a){return S.next(a)},void 0,function(){P=null;
K&&!P&&S.complete()}))},void 0,function(){(K=!0,!P)&&S.complete()}))})};
m0=function(N,b){b=b===void 0?!1:b;return EE(function(S,P){var H=0;S.subscribe(new pg(P,function(K){var C=N(K,H++);(C||b)&&P.next(K);!C&&P.complete()}))})};
j_p=function(N,b,S){var P=d$(N)||b||S?{next:N,error:b,complete:S}:N;return P?EE(function(H,K){H.subscribe(new pg(K,function(C){var G;(G=P.next)==null||G.call(P,C);K.next(C)},function(C){var G;
(G=P.error)==null||G.call(P,C);K.error(C)},function(){var C;
(C=P.complete)==null||C.call(P);K.complete()}))}):tv};
zUf=function(){var N=_.$I.apply(0,arguments),b=$tE(N);return EE(function(S,P){for(var H=N.length,K=Array(H),C=N.map(function(){return!1}),G=!1,a={i$jscomp$231:0};a.i$jscomp$231<H;a={i$jscomp$231:a.i$jscomp$231},a.i$jscomp$231++)Lg(N[a.i$jscomp$231]).subscribe(new pg(P,function(R){return function(n){K[R.i$jscomp$231]=n;
G||C[R.i$jscomp$231]||(C[R.i$jscomp$231]=!0,(G=C.every(tv))&&(C=null))}}(a),void 0,kw));
S.subscribe(new pg(P,function(R){G&&(R=[R].concat(_.IX(K)),P.next(b?b.apply(null,_.IX(R)):R))}))})};
XR9=function(N){var b=Ahu;if(b)for(var S in b)Object.prototype.hasOwnProperty.call(b,S)&&N(b[S],S,b)};
EoL=function(){var N=[];XR9(function(b){N.push(b)});
return N};
YnE=function(N){try{return!!N&&N.location.href!=null&&pRa(N,"foo")}catch(b){return!1}};
_.ko=function(N){return new tWe(N[0].toLowerCase())};
yhb=function(N){for(var b=_.$I.apply(1,arguments),S=N[0],P=0;P<N.length-1;P++)S+=String(b[P]),S+=N[P+1];b=document.implementation.createHTMLDocument("");P=b.createElement("style");b.head.appendChild(P);b=P.sheet;b.insertRule(S,0);if(b.cssRules.length===1&&(S=b.cssRules[0],S instanceof CSSStyleRule))return new ng(S.cssText.replace(/</g,"\\3C "))};
I2s=function(N){try{return new URL(N,window.document.baseURI)}catch(b){return new URL("about:invalid")}};
Dz_=function(N,b){var S=b.createRange();S.selectNode(b.body);N=Nt(N);return S.createContextualFragment(b4(N))};
Vke=function(N){N=N.nodeName;return typeof N==="string"?N:"FORM"};
gof=function(N){N=N.nodeType;return N===1||typeof N!=="number"};
th=function(N,b,S){N.setAttribute(b,S)};
eUp=function(N){return N.parts.map(function(b){var S=b.descriptor;return""+b.url+(S?" "+S:"")}).join(" , ")};
_.Mz=function(N){var b=_.$I.apply(1,arguments);if(b.length===0)return _.ZB(N[0]);for(var S=N[0],P=0;P<b.length;P++)S+=encodeURIComponent(b[P])+N[P+1];return _.ZB(S)};
_.FK=function(N,b){N=_.jo(N).toString();var S=N.split(/[?#]/),P=/[?]/.test(N)?"?"+S[1]:"";return $zO(S[0],P,/[#]/.test(N)?"#"+(P?S[2]:S[1]):"",b)};
$zO=function(N,b,S,P){function H(C,G){C!=null&&(Array.isArray(C)?C.forEach(function(a){return H(a,G)}):(b+=K+encodeURIComponent(G)+"="+encodeURIComponent(C),K="&"))}
var K=b.length?"&":"?";P.constructor===Object&&(P=Object.entries(P));Array.isArray(P)?P.forEach(function(C){return H(C[1],C[0])}):P.forEach(H);
return _.ZB(N+b+S)};
qnb=function(){var N=GJ(hUL).toString();return _.ZB(URL.createObjectURL(new Blob([N],{type:"text/javascript"})))};
wRE=function(N){var b=[],S=0,P;for(P in N)b[S++]=P;return b};
Nja=function(N,b){for(var S in N)if(N[S]==b)return!0;return!1};
bTe=function(N,b,S){for(var P in N)if(b.call(S,N[P],P,N))return P};
S5O=function(N){if(!N||typeof N!=="object")return N;if(typeof N.clone==="function")return N.clone();if(typeof Map!=="undefined"&&N instanceof Map)return new Map(N);if(typeof Set!=="undefined"&&N instanceof Set)return new Set(N);if(N instanceof Date)return new Date(N.getTime());var b=Array.isArray(N)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(N)||N instanceof DataView?{}:new N.constructor(N.length),S;for(S in N)b[S]=S5O(N[S]);return b};
PwY=function(N){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return PwY.apply(null,arguments[0]);if(b%2)throw Error("ma");for(var S={},P=0;P<b;P+=2)S[arguments[P]]=arguments[P+1];return S};
HTs=function(N){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return HTs.apply(null,arguments[0]);for(var S={},P=0;P<b;P++)S[arguments[P]]=!0;return S};
BR=function(N,b,S,P){this.top=N;this.right=b;this.bottom=S;this.left=P};
scu=function(N){N=N.global;if(N.PendingGetBeacon)return N.PendingGetBeacon};
fz=function(N){return function(b){return b.pipe(KAL(N,rY(new Lz)))}};
uz=function(N){return function(b){return b.pipe(KAL(N,a_(1)))}};
KAL=function(N,b){function S(P){return new BM(function(H){return P.subscribe(function(K){xo(N,function(){return void H.next(K)},3)},function(K){xo(N,function(){return void H.error(K)},3)},function(){xo(N,function(){return void H.complete()},3)})})}
return Mt(S,qEY(),b,Yw(),S)};
Cwp=function(N){var b=vTs(N);return b===null?new o_(null):b.pipe(y1(function(S){S=S.serialize();if(OTo)S=_.Ps.btoa(S);else{for(var P=[],H=0,K=0;K<S.length;K++){var C=S.charCodeAt(K);C>255&&(P[H++]=C&255,C>>=8);P[H++]=C}S=_.iL(P)}return S}),Kz(1),uz(N.queue))};
G6O=function(N){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(N,b);if(typeof document!=="undefined"){var S=document.createEvent("CustomEvent");S.initCustomEvent(N,b.bubbles||!1,b.cancelable||!1,b.detail);return S}throw Error();};
rgp=function(N){return typeof N==="string"?document.getElementById(N):N};
agO=function(N){var b=!1;b=b===void 0?!1:b;if(N.tagName==="IMG"){if(N.complete&&(!N.naturalWidth||!N.naturalHeight))return!0;var S;if(b&&((S=N.style)==null?void 0:S.display)==="none")return!0}var P,H;return cgf.test((P=N.getAttribute("width"))!=null?P:"")&&cgf.test((H=N.getAttribute("height"))!=null?H:"")};
RKe=function(N,b){if(N.tagName==="IMG")return N.naturalWidth&&N.naturalHeight?!0:!1;try{if(N.readyState)var S=N.readyState;else{var P,H;S=(P=N.contentWindow)==null?void 0:(H=P.document)==null?void 0:H.readyState}return S==="complete"}catch(K){return b===void 0?!1:b}};
WAo=function(N){N||(N=function(b,S,P){b.addEventListener(S,P)});
return N};
k6e=function(N,b){var S=nTe();S=S===void 0?new dfO:S;if(N=rgp(N)){var P=WAo(P);for(var H=!1,K=function(u){H||(H=!0,b(u))},C,G=2,a=0;a<mf9.length;++a)if(mf9[a]===N.tagName){G=3;
C=[N];break}C||(C=N.querySelectorAll(mf9.join(",")));var R=0,n=0,d=!0,m=N=!1;a={};for(var k=0;k<C.length;a={isImg:void 0},k++){var M=C[k];if(!agO(M))if(a.isImg=M.tagName==="IMG",RKe(M,S.crossDomainLoadedDefault))N=!0,a.isImg&&(d=!0);else{R++;var l=function(u){return function(J){R--;!R&&d&&K(G);u.isImg&&(J=J&&J.type==="error",n--,J||(d=!0),!n&&m&&d&&K(G))}}(a);
P(M,"load",l);a.isImg&&(n++,P(M,"error",l))}}n===0&&(d=!0);C=null;C=_.Ps.document.readyState==="complete";if(R===0&&!N&&C)G=5;else if(R||!N){P(_.Ps,"load",function(){!S.pendingImagesBlockLoad||!n&&d?K(4):m=!0});
return}K(G)}};
TjU=function(N,b,S){if(N)for(var P=0;N!=null&&P<500&&!S(N);++P)N=b(N)};
tGa=function(N,b){TjU(N,function(S){try{return S===S.parent?null:S.parent}catch(P){}return null},b)};
MG9=function(N,b){if(N.tagName=="IFRAME")b(N);else{N=N.querySelectorAll("IFRAME");for(var S=0;S<N.length&&!b(N[S]);++S);}};
FAe=function(N){return(N=N.ownerDocument)&&(N.parentWindow||N.defaultView)||null};
Bjp=function(N,b,S){try{var P=JSON.parse(S.data)}catch(C){}if(typeof P==="object"&&P&&P.type==="creativeLoad"){var H=FAe(N);if(S.source&&H){var K;tGa(S.source,function(C){try{if(C.parent===H)return K=C,!0}catch(G){}});
K&&MG9(N,function(C){if(C.contentWindow===K)return b(P),!0})}}};
lgo=function(N){return typeof N==="string"?document.getElementById(N):N};
Qco=function(){var N={};return N[0]=_.Mz(LAs,"current"),N[1]=_.Mz(fgs),N[2]=_.Mz(ucU),N};
iz=function(N,b){return N.left===b.left&&N.top===b.top&&N.width===b.width&&N.height===b.height};
xf9=function(N,b){return{left:Math.max(N.left,b.left),top:Math.max(N.top,b.top),width:Math.max(0,Math.min(N.left+N.width,b.left+b.width)-Math.max(N.left,b.left)),height:Math.max(0,Math.min(N.top+N.height,b.top+b.height)-Math.max(N.top,b.top))}};
oTu=function(N,b){return{left:Math.round(N.left+b.x),top:Math.round(N.top+b.y),width:N.width,height:N.height}};
iTY=function(N,b,S){if(N&&b!==null&&b!=b.top){if(!b.top)return new _.Jh(-12245933,-12245933);b=b.top}try{return(S===void 0?0:S)?(new _.Jh(b.innerWidth,b.innerHeight)).round():_.Z2(b).round()}catch(P){return new _.Jh(-12245933,-12245933)}};
Jge=function(N,b,S){try{if(N){if(!b.top)return new BR(-12245933,-12245933,-12245933,-12245933);b=b.top}var P=iTY(N,b,S),H=P.height,K=P.width;if(K===-12245933)return new BR(K,K,K,K);var C=jk(zn(b.document)),G=C.x,a=C.y;return new BR(a,G+K,a+H,G)}catch(R){return new BR(-12245933,-12245933,-12245933,-12245933)}};
Ufs=function(N){var b;return(b=N.google_tag_data)!=null?b:N.google_tag_data={}};
ZTp=function(N){var b,S;return typeof((b=N.navigator)==null?void 0:(S=b.userAgentData)==null?void 0:S.getHighEntropyValues)==="function"};
zKo=function(N){if(!ZTp(N))return null;var b=Ufs(N);if(b.uach_promise)return b.uach_promise;N=N.navigator.userAgentData.getHighEntropyValues(jcb).then(function(S){b.uach!=null||(b.uach=S);return S});
return b.uach_promise=N};
$fb=function(N){var b;return AgU(XvE(ETu(pvL(Y5s(yge(Ig_(Df9(VGf(new gTU,N.architecture||""),N.bitness||""),N.mobile||!1),N.model||""),N.platform||""),N.platformVersion||""),N.uaFullVersion||""),((b=N.fullVersionList)==null?void 0:b.map(function(S){var P=new eKE;P=_.En(P,1,S.brand);return _.En(P,2,S.version)}))||[]),N.wow64||!1)};
hKI=function(N){var b,S;return(S=(b=zKo(N))==null?void 0:b.then(function(P){return $fb(P)}))!=null?S:null};
q5_=function(N,b){return new BM(function(S){var P=!1,H=Array(b.length);H.fill(void 0);var K=new Set,C=new Set,G=function(d,m){N.running?(H[m]=d,K.add(m),P||(P=!0,xo(N,function(){P=!1;S.next(_.pa(H))},1))):S.error(new pz(m))},a=function(d,m){C.add(m);
K.add(m);xo(N,function(){S.error(d)},1)},R=function(d){C.add(d);
xo(N,function(){C.size===b.length&&S.complete()},1)},n=b.map(function(d,m){return d.subscribe(function(k){return void G(k,m)},function(k){return void a(k,m)},function(){return void R(m)})});
return function(){n.forEach(function(d){return void d.unsubscribe()})}})};
bQL=function(N,b,S){function P(){if(b.debugChannel){var u=b.debugChannel,J=u.next;var Z={creativeId:b.debugNames.getName(S),requiredSignals:H,signals:Object.assign({},K),hasPrematurelyCompleted:C,errorMessage:G,erroredSignalKey:a};Z={specMajor:2,specMinor:0,specPatch:0,timestamp:Nz(b.timeProvider.now(),new bz(0,b.timeProvider.timeline)),instanceId:b.debugNames.getName(b.symbol),creativeState:Z};J.call(u,Z)}}
for(var H=Object.keys(N),K={},C=!1,G=null,a=null,R={},n=new Set,d=[],m=[],k=_.O(H),M=k.next(),l={};!M.done;l={key$jscomp$394:void 0},M=k.next())l.key$jscomp$394=M.value,M=N[l.key$jscomp$394],M instanceof o_?(R[l.key$jscomp$394]=M.value,n.add(l.key$jscomp$394),b.debugChannel&&(K[String(l.key$jscomp$394)]=BYL(M.value))):(M=M.pipe(vR(function(u,J){return MkE(u)||MkE(J)?!1:u===J}),y1(function(u){return function(J){b.debugChannel&&(K[String(u.key$jscomp$394)]=BYL(J),P());
var Z={};return Z[u.key$jscomp$394]=J,Z}}(l)),PR(function(u){return function(J){if(J instanceof pz)throw new wvf(String(u.key$jscomp$394));
throw J;}}(l)),j_p(function(u){return function(){n.add(u.key$jscomp$394)}}(l),function(u){return function(J){a=String(u.key$jscomp$394);
G=String(J);P()}}(l),function(u){return function(){n.has(u.key$jscomp$394)||(C=!0,P())}}(l))),m.push(l.key$jscomp$394),d.push(M));
(N=Object.keys(K).length>0)&&P();k=q5_(b.queue,d).pipe(PR(function(u){if(u instanceof pz)throw new NAO(String(m[u.inputObservableIndex]));throw u;}),y1(function(u){return Object.freeze(Object.assign.apply(Object,[{},
R].concat(_.IX(u))))}));
return(d=d.length>0)&&N?qt(Av(Object.freeze(R)),k):d?k:Av(Object.freeze(R))};
SBO=function(N,b,S,P,H){return N.performanceMonitor.timeExecution.bind(N.performanceMonitor)(733,function(){var K={};try{return b.pipe(PR(function(C){P(Object.assign({},K,{error:C}));return hv}),g$(function(C){try{var G=S(N,C)}catch(R){return P(Object.assign({},K,{error:R instanceof Error?R:String(R)})),hv}var a={};
return bQL(G,N,C.symbol).pipe(j_p(function(R){a=R}),a_(1),Yw()).pipe(H,PR(function(R){P(Object.assign({},a,{error:R}));
return hv}),On(void 0),y1(function(){return!0}))})).pipe(WR(function(C){return C+1},0),PR(function(C){P(Object.assign({},K,{error:C}));
return hv}))}catch(C){return P(Object.assign({},K,{error:C})),hv}})()};
Yo=function(N){var b=new Map;if(typeof N!=="object"||N===null)return b;Object.values(N).forEach(function(S){S&&typeof S.extrapolateToNow==="function"&&(b.has(S.clock.timeline)||b.set(S.clock.timeline,S.clock.now()))});
return b};
PMu=function(N,b){return typeof N==="string"?encodeURIComponent(N):typeof N==="number"?String(N):Array.isArray(N)?N.map(function(S){return PMu(S,b)}).join(","):N instanceof bz?N.toString():N&&typeof N.extrapolateToNow==="function"?PMu(N.extrapolateUsingTimestampMap(b).value,b):N===!0?"1":N===!1?"0":N===void 0||N===null?null:N instanceof HQe?sOE(N):[N.top,
N.left,N.top+N.height,N.left+N.width].join()};
Kbe=function(N,b){N=Object.entries(N).map(function(S){var P=_.O(S);S=P.next().value;P=P.next().value;P=PMu(P,b);return P===null?"":S+"="+P}).filter(function(S){return S!==""});
return N.length?N.join("&"):""};
CMY=function(N,b){var S=vlI,P=OQU;b=b===void 0?.01:b;return function(H){b>0&&Math.random()<=b&&(N.global.HTMLFencedFrameElement&&N.global.fence&&typeof N.global.fence.reportEvent==="function"&&N.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),H=Object.assign({},H,{errorMessage:H.error instanceof Error&&H.error.message?H.error.message:String(H.error),errorStack:H.error instanceof Error&&H.error.stack?String(H.error.stack):null,errorName:H.error instanceof
Error&&H.error.name?String(H.error.name):null,errorContext:String(N.performanceMonitor.timedFunctionContext),errorEscapedQueryId:H.escapedQueryId}),S(Object.assign({},H,{payloadMapper:function(){return function(K){try{return P(Object.assign({},K))}catch(C){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Yo(H)).forEach(function(K){N.beaconFactory.makeBeacon(K).sendNow()}))}};
Gzf=function(){var N=_.$I.apply(0,arguments);return function(b){var S=b.pipe(a_(1),Yw());b=N.map(function(P){return S.pipe(P,On(!0))});
return Dd(b).pipe(Kz(1),HR())}};
re9=function(){var N=_.$I.apply(0,arguments);return function(b){var S=b.pipe(a_(1),Yw());b=N.map(function(P){return S.pipe(P,On(!0))});
return qt.apply(null,_.IX(b)).pipe(Kz(1),HR())}};
ceo=function(N,b){return function(S){var P=S.pipe(a_(1),Yw());S=P.pipe(N,On(!0));P=P.pipe(Mt(b,a_(),Yw()),On(!0));S=Dd([S,P]);return TYb(S,P).pipe(Kz(1),HR())}};
aqO=function(N,b,S){S(!0)};
Ro9=function(N,b){return Mt(dY(function(S){var P=N(S),H=b(S),K={};return P&&H&&K?new BM(function(C){H(P,K,function(G){C.next(Object.assign({},S,{canEmit:G}));C.complete()});
return function(){}}):ym}),w$(function(S){return S.canEmit}))};
WbE=function(N){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(S){return S.pipe(dY(function(P){return new BM(function(H){function K(){G.disconnect();a.unsubscribe()}
var C=N.MutationObserver;if(C&&P.ref!==void 0){var G=new C(function(R){H.next(R)});
G.observe(P.ref,b);var a=P.JSC$9593_released.subscribe(K);return K}})}))}};
nl_=function(N){if(N.measurementDeferralState===3)return null;if(N.timeOnScreenReason!==void 0){var b=N.creativeFound===!1?"n":null;if(b!==null)return b}return N.geometricMeasurementErrors instanceof I_?"msf":N.contextValidationErrors instanceof D2?"c":N.contextVisibilityKnown===!1?"pv":N.geometricMeasurementErrors||N.contextValidationErrors?"x":null};
m8a=function(N,b){return N.replace(d8b,function(S,P){try{var H=_.Vm.get(b,P);if(H==null||H.toString()==null)return S;H=H.toString();if(H==""||!_.Oe(H==null?"":String(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(K){}return S})};
kzb=function(N,b){var S=Object.assign({},N),P=N.userAgentClientHints;S=(delete S.userAgentClientHints,S);S=N.payloadMapper(S);var H=Kbe(S,b);return _.gY(N.urlPrefixes,function(K){var C="";typeof P==="string"&&(C="&"+Kbe({uach:P},b));var G={};return m8a(K,(G.VIEWABILITY=H,G))+C})};
vlI=function(N,b){var S=N.payloadMapper(N),P=Kbe(S,b);return P?_.gY(N.urlPrefixes,function(H){H=H.indexOf("?")>=0?H:H+"?";H="?&".indexOf(H.slice(-1))>=0?H:H+"&";return H+P}):N.urlPrefixes};
TA_=function(){return Mt(w$(function(N){return N!==void 0}),y1(function(N){return N}))};
tjp=function(N){return Mt(y1(function(){return!0}),nz(!1),uz(N))};
Mjs=function(N){return N.length<=0?hv:Dd(N.map(function(b){var S=0;return b.pipe(y1(function(P){return{index:S++,value:P}}))})).pipe(w$(function(b){return b.every(function(S){return S.index===b[0].index})}),y1(function(b){return b.map(function(S){return S.value})}))};
Fbo=function(N,b){N.currentState&&(N.previousState=N.currentState);N.currentState=b;N.previousState&&N.previousState.value?(b=Math.max(0,Nz(b.timestamp,N.previousState.timestamp)),N.totalTime+=b,N.consecutiveTime+=b):N.consecutiveTime=0;return N};
BAp=function(){return Mt(WR(Fbo,{totalTime:0,consecutiveTime:0}),y1(function(N){return N.totalTime}))};
lqa=function(){return Mt(WR(Fbo,{totalTime:0,consecutiveTime:0}),y1(function(N){return N.consecutiveTime}))};
Lbe=function(N,b){return function(S){return Mjs(b.map(function(P){return S.pipe(N(P))}))}};
fqe=function(){var N;return Mt(j_p(function(b){return void(N=b.timestamp)}),lqa(),y1(function(b){return{timestamp:N,
value:Math.round(b)}}))};
u1I=function(N,b){return iz(N.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&iz(N.elementGeometry,b.elementGeometry)&&iz(N.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&iz(N.intersectionGeometry,b.intersectionGeometry)&&N.elementGeometrySourceName===b.elementGeometrySourceName&&N.measurementRequests===b.measurementRequests&&N.viewportGeometrySourceName===b.viewportGeometrySourceName&&N.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&N.viewportLocalAppOffset.y===
b.viewportLocalAppOffset.y};
iQO=function(N,b){return function(S){return function(P){var H=P.pipe(rY(new Lz),Yw());P=S.element.pipe(vR());H=H.pipe(y1(function(K){return K.value}));
return Dd([P,H,b]).pipe(y1(function(K){var C=_.O(K);K=C.next().value;var G=C.next().value;C=C.next().value;if(K.ref===void 0)var a={top:0,left:0,width:0,height:0};else{a=K.ref.getBoundingClientRect();var R=K.ref,n=N.global,d=new _.ek(0,0),m=$o(_.hh(R));if(pRa(m,"parent")){do{if(m==n)var k=_.qz(R);else k=QOY(R),k=new _.ek(k.left,k.top);d.x+=k.x;d.y+=k.y}while(m&&m!=n&&m!=m.parent&&(R=m.frameElement)&&(m=m.parent))}a={top:d.y,left:d.x,width:a.width,height:a.height}}a=oTu(a,G.viewportLocalAppOffset);
n=xf9(a,G.exposedViewportLocalGeometry);d=N.timeProvider.now();m=Object;R=m.assign;if(C!==2||N.inCrossDomainIframe||n.width<=0||n.height<=0)var M=!1;else try{var l=N.document.elementFromPoint(n.left+n.width/2,n.top+n.height/2);M=l?!x8u(l,K):!1}catch(u){M=!1}return{timestamp:d,value:R.call(m,{},G,{elementGeometrySourceName:"geo",intersectionGeometry:M?ole.intersectionGeometry:n,elementGeometry:a})}}),fz(N.queue))}}};
x8u=function(N,b,S){S=S===void 0?0:S;return N.ref===void 0||b.ref===void 0?!1:N.ref===b.ref||_.wY(b.ref,function(P){return P===N.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:S<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?x8u(N,new Nf(b.ref.ownerDocument.defaultView.frameElement),S+1):!0};
ZQa=function(N){return function(b){return b.pipe(N.ResizeObserver?Je_(N):U8s(N),a_(1),Yw())}};
Je_=function(N){return function(b){return b.pipe(dY(function(S){var P=N.ResizeObserver;if(!P||S.ref===void 0)return Av(ole.elementGeometry);var H=(new BM(function(K){function C(){S.ref!==void 0&&G.unobserve(S.ref);G.disconnect();a.unsubscribe()}
if(S.ref===void 0)return K.complete(),function(){};
var G=new P(function(R){R.forEach(function(n){K.next(n)})});
G.observe(S.ref);var a=S.JSC$9593_released.subscribe(C);return C})).pipe(Sk(N.performanceMonitor,736),y1(function(K){return K.contentRect}));
return qt(Av(S.ref.getBoundingClientRect()),H)}),vR(iz))}};
U8s=function(N){return function(b){var S=b.pipe(WbE(N)),P=N.onResize;S=qt(b.pipe(y1(function(){return G6O("resize")})),S,P);
return Dd(b,S).pipe(Sk(N.performanceMonitor,737),y1(function(H){H=_.O(H).next().value;return H.ref===void 0?void 0:H.ref.getBoundingClientRect()}),TA_(),vR(iz))}};
Aea=function(N,b){var S=jOb(N,b).pipe(a_(1),Yw());return function(P){return function(H){H=H.pipe(dY(function(K){return K.element}),vR());
return Dd([S,H]).pipe(dY(function(K){var C=_.O(K);K=C.next().value;C=C.next().value;return zop(N,K.intersectionObserver,ZQa(N),K.observations,P,K.flushRecords,C)}),fz(N.queue))}}};
XWu=function(N){return y1(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:bw(N,!0),topWindowViewportExternalGeometry:bw(N,!0)})})})};
Elb=function(N,b){return Av(b).pipe(N,y1(function(){return b}))};
jOb=function(N,b){return N.timeProvider.timeline!==pWE?Xw(new I_(2)):N.MutationObserver?typeof IntersectionObserver==="undefined"?Xw(new I_(0)):(new BM(function(S){var P=new Lz,H=new SG(P.next.bind(P),{threshold:[].concat(_.IX(b))});S.next({observations:P.pipe(Sk(N.performanceMonitor,735)),intersectionObserver:H,flushRecords:function(K){K=H.takeRecords(K);K.length>0&&P.next(K)}})})).pipe(Kz(1),a_(1),Yw()):Xw(new I_(1))};
YBL=function(N){return pMY(N.sort(function(b,S){return b.time-S.time}),h8E)};
zop=function(N,b,S,P,H,K,C){return new BM(function(G){function a(){M||(M=!0,C.ref!==void 0&&b.unobserve(H,C.ref),n.unsubscribe(),k.unsubscribe(),m.unsubscribe(),l.unsubscribe())}
if(C.ref!==void 0){yeb(b,H);b.observe(H,C.ref);var R=new Pv({timestamp:N.timeProvider.now(),value:Object.assign({},ole,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),n=P.pipe(g$(function(u){return YBL(u)}),w$(function(u){return u.target===C.ref}),y1(function(u){return{timestamp:new bz(u.time,pWE),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:u.rootBounds||KT,topWindowViewportExternalGeometry:u.rootBounds||bw(N,!0),measurementRequests:d,elementGeometrySourceName:"nio",intersectionGeometry:u.intersectionRect,elementGeometry:u.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:u.isIntersecting,isV2Visible:u.isVisible}}}),rY(R),Yw()).subscribe(G),d=new Lz,m=d.subscribe(function(){K(H);
G.next({timestamp:N.timeProvider.now(),value:R.value.value});C.ref!==void 0&&(b.unobserve(H,C.ref),b.observe(H,C.ref))}),k=Elb(S,C).subscribe(function(){d.next()}),M=!1,l=C.JSC$9593_released.subscribe(function(){return a()});
return a}})};
Iqu=function(N,b){var S=N.getOnBackgrounded().pipe(y1(function(){return"b"}));
return TYb(b,S).pipe(Kz(1),uz(N.queue))};
vv=function(N){return function(b){var S;return b.pipe(j_p(function(P){return void(S=P.timestamp)}),y1(function(P){return P.value}),N,y1(function(P){return{timestamp:S,
value:P}}))}};
D8O=function(N){return N.intersectionGeometry.width*N.intersectionGeometry.height/(N.elementGeometry.width*N.elementGeometry.height)};
O5=function(N,b,S){S=S===void 0?function(P,H){return P===H}:S;
return N.timestamp.equals(b.timestamp)&&S(N.value,b.value)};
G6=function(N,b){return b.pipe(y1(function(S){return new CT(N.timeProvider,{timestamp:N.timeProvider.now(),value:S})}))};
Vja=function(N){return function(b){return b.pipe(zUf(N),y1(function(S){var P=_.O(S);S=P.next().value;P=P.next().value;var H=S.value;return{timestamp:S.timestamp,value:H>=1?!0:H<=0?!1:H>=P}}))}};
eo_=function(){return Mt(w$(function(N,b){return b>0}),glf,nz(-1),vR())};
$8Y=function(N,b,S){return N?Dd([b,S]).pipe(w$(function(P){var H=_.O(P);P=H.next().value;H=H.next().value;return P.timestamp.equals(H.timestamp)}),y1(function(P){var H=_.O(P);
P=H.next().value;H=H.next().value;return P.value>H.value?P:H})):b};
wWu=function(N){return function(b){var S=b.pipe(hoo),P=b.pipe(qBb);return N instanceof BM?N.pipe(dY(function(H){return $8Y(H,S,P)})):$8Y(N.value,S,P)}};
CDI=function(N,b,S,P){var H=P.geometryIsOccluded,K=P.exposureThreshold,C=P.wasLargeAdAtRender,G=P.allowLargeAdThreshold,a=P.largeAdExposureThreshold,R=P.mayUseViewportShareExposure,n=P.hasMeasurementStarted;P=P.useIntersectionObserverV2;b=N8s(N,S,b);S=bMI(N,S);P=S2o(b,P);var d=PDL(N,H,R,b),m=d.pipe(y1(function(V){return V.value}),vR(),uz(N),WR(function(V,g){return Math.max(V,g)},0)),k=d.pipe(y1(function(V){return V.value}),eo_(),uz(N)),M=b.pipe(HMa,y1(function(V){return V.value}),Kz(2),vR(),uz(N));
C=suU(N,b,C,G);var l=C.pipe(nz(!1),vR(),y1(function(V){return V?a:K}));
G=d.pipe(Vja(l),vR(),uz(N));var u=Dd([G,b]).pipe(w$(function(V){var g=_.O(V);V=g.next().value;g=g.next().value;return V.timestamp.equals(g.timestamp)}),y1(function(V){var g=_.O(V);
V=g.next().value;g=g.next().value;return{visible:V.value,geometry:g.value.elementGeometry}}),WR(function(V,g){return!g.visible&&V.visible?V:g},{visible:!1,
geometry:KT}),y1(function(V){return V.geometry}),nz(KT),uz(N),vR(iz));
R=R instanceof BM?R.pipe(vR(),sn()):ym;l=Dd([R,l]).pipe(sn());var J=b.pipe(w$(function(V){return V.value.viewportGeometrySourceName!=="ns"&&V.value.elementGeometrySourceName!=="ns"}),WR(function(V){return V+1},0),nz(0),uz(N)),Z=S.pipe(sn(!0),nz(!1),uz(N));
Z=Dd([n,Z]).pipe(y1(function(V){var g=_.O(V);V=g.next().value;g=g.next().value;return V&&!g}),uz(N));
var D=b.pipe(Kop,vR()),Y=D.pipe(y1(function(V){return V.value}),WR(function(V,g){return Math.max(V,g)},0),vR(),uz(N));
N=D.pipe(y1(function(V){return V.value}),eo_(),uz(N));
return{shouldResetExposureSignals:R,shouldResetViewabilitySignals:l,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe(vU_),creativePosition:u.pipe(vR(iz)),visible:G.pipe(vR(O5)),timestampedExposure:d.pipe(vR(O5)),maximumExposure:m,minimumExposure:k,browserSize:b.pipe(OMu,vR(_.hb)),timestampedScreenShare:D,maxScreenShare:Y,minScreenShare:N,geometricMeasurementErrors:S,measurementRequests:b.pipe(y1(function(V){return V.value.measurementRequests})),
isLargeAd:C,geometryIsOccluded:H,hasMeasurementStarted:n,geometryMeasurable:Z,validMeasurementCount:J,loadTimeExposure:M,v2VisibilityBitVector:P}}};
bMI=function(N,b){return b.pipe(w$(function(){return!1}),y1(function(S){return S}),PR(function(S){return rj(new o_(S),N)}))};
N8s=function(N,b,S){return b.pipe(mzo(ym),uz(N)).pipe(vR(function(P,H){return O5(P,H,u1I)}),nz({timestamp:S.now(),
value:ole}),uz(N))};
PDL=function(N,b,S,P){S=P.pipe(wWu(S),vv(y1(function(H){return Math.round(H*100)/100})),uz(N));
return b instanceof o_?S:Dd([S,b]).pipe(y1(function(H){var K=_.O(H);H=K.next().value;K=K.next().value;return{timestamp:K.timestamp.maximum(H.timestamp),value:K.value?0:H.value}}),vR(O5),uz(N))};
suU=function(N,b,S,P){b=[b.pipe(y1(function(H){return H.value.elementGeometry.width*H.value.elementGeometry.height>=242500}))];
S instanceof BM&&b.push(S.pipe(y1(function(H){return!!H})));
S=Dd(b);return P?S.pipe(y1(function(H){return H.some(function(K){return K})}),nz(!1),vR(),uz(N)):rj(new o_(!1),N)};
S2o=function(N,b){N=Dd([N,b]).pipe(y1(function(H){var K=_.O(H);H=K.next().value;if(K.next().value&&H.value.isIntersecting)return H.value.isV2Visible}),vR());
var S=N.pipe(y1(function(H){return H===void 0?!0:H}),WR(function(H,K){return H||!K},!1)),P=N.pipe(WR(function(H,K){return K===void 0?H:K?!1:H!=null?H:!0},void 0),y1(function(H){return!!H}));
return Dd([b,tk_(N,S,P)]).pipe(y1(function(H){var K=_.O(H);H=K.next().value;var C=_.O(K.next().value);K=C.next().value;var G=C.next().value;C=C.next().value;var a=0;if(!H)return 0;if(K===void 0)return 16;K&&(a|=1);K||(a|=2);G&&(a|=4);C&&(a|=8);return a}))};
Wof=function(N,b,S,P,H){var K=Gj_.timeThresholdMs;var C=C===void 0?new rlO(b,P):C;return(new BM(function(G){var a=S.pipe(nz(void 0),dY(function(){return clu(H)})).pipe(y1(function(R){var n=R.value;
R=R.timestamp;var d=n.visible;n=n.consecutiveViewTime;var m=n>=K;m||!d?aHp(C):(R=Math.max(0,Nz(b.now(),R)),RbY(C,Math.max(0,K-n-R)));return m}),WR(function(R,n){return n||R},!1),vR()).subscribe(G);
return function(){C.dispose();a.unsubscribe()}})).pipe(m0(function(G){return!G},!0),uz(N))};
clu=function(N){return Mjs([N,N.pipe(fqe())]).pipe(y1(function(b){var S=_.O(b);b=S.next().value;S=S.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:S.value}}}),vR(function(b,S){return O5(b,S,function(P,H){return P.consecutiveViewTime===H.consecutiveViewTime&&P.visible===H.visible})}))};
nUe=function(){return Mt(lqa(),WR(function(N,b){return Math.max(N,b)},0),y1(function(N){return Math.round(N)}))};
dBf=function(N){return Mt(Vja(Av(N)),nUe())};
mBo=function(N,b){return b instanceof BM?b.pipe(dY(function(S){return(S=S?15:null)?Xw(new I_(S)):N})):(b=b.value?15:null)?Xw(new I_(b)):N};
kjE=function(N){var b=new I_(13);if(N.length<1)return{chain:hv,capturedErrors:hv};var S=new Lz,P=N[0];return{chain:N.slice(1).reduce(function(H,K){return H.pipe(PR(function(C){S.next(C);return K}))},P).pipe(PR(function(H){S.next(H);
return Xw(b)}),rY(new Lz),Yw()),
capturedErrors:S}};
T8f=function(N,b){var S=N.pipe(rY(new Lz),Yw());return dY(function(P){return S.pipe(b(P))})};
M_e=function(N,b){if(N.inCrossDomainIframe)return Xw(new I_(6));var S=new Lz;return qt(Av({}),b,S).pipe(y1(function(){return{timestamp:N.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:t_f(N),topWindowViewportExternalGeometry:bw(N,!0),measurementRequests:S,viewportLocalAppOffset:{x:0,y:0}}}}),fz(N.queue))};
t_f=function(N){var b=bw(N,!1);if(!N.inIframe||!YnE(N.global.parent)||N.global.parent===N.global)return b;var S=new cv(N.global.parent,N.debugChannel);S.beaconFactory=N.beaconFactory;S=t_f(S);N=N.global.frameElement.getBoundingClientRect();return xf9(oTu(xf9(S,N),{x:b.left-N.left,y:b.top-N.top}),b)};
FoY=function(N){if(N.prerendering)return 3;var b;return(b={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[N.visibilityState||N.webkitVisibilityState||N.mozVisibilityState||""])!=null?b:0};
B8L=function(N){return N.document.JSC$9604_onVisibilityChange.pipe(y1(function(b){return b==="visible"}),vR(),uz(N.queue))};
lHf=function(N,b,S){var P;return b.pipe(vR(),dY(function(H){return S.pipe(y1(function(){if(!P){P=!0;try{H.next()}finally{P=!1}}return!0}))}),nz(!1),uz(N.queue))};
Lo9=function(N){return Mt(vv(y1(function(b){return b>=1?!0:b<=0?!1:b>=N})),BAp(),y1(function(b){return Math.round(b)}))};
ugE=function(N,b,S,P,H){var K=fHo;if(K.length>1)for(var C=0;C<K.length-1;C++)if(K[C]<K[C+1])throw Error();C=H.pipe(nz(void 0),dY(function(){return S.pipe(fqe())}),vR(),uz(N));
H=H.pipe(nz(void 0),dY(function(){return S.pipe(nUe())}),vR(),uz(N));
return{totalMeasurementTime:P.pipe(nz(void 0),dY(function(){return b.pipe(y1(function(G){return{timestamp:G.timestamp,value:!0}}),BAp())}),vR(),uz(N)),
totalUnviewedTime:P.pipe(nz(void 0),dY(function(){return b.pipe(y1(function(G){return{timestamp:G.timestamp,value:G.value===0}}),BAp())}),vR(),uz(N)),
maxTimeOnScreen:P.pipe(nz(void 0),dY(function(){return b.pipe(Lbe(dBf,K))}),vR(_.hb),uz(N)),
timeOnScreen:P.pipe(nz(void 0),dY(function(){return b.pipe(Lbe(Lo9,K),y1(function(G){return G.map(function(a,R){return R>0?a-G[R-1]:a})}))}),vR(_.hb),uz(N)),
maxConsecutiveViewTime:H,consecutiveViewTime:C.pipe(vR(O5),uz(N))}};
xBf=function(N){var b=!0;b=b===void 0?!1:b;return Mt(dY(function(S){return Quu(N.document,S,b)}),uz(N.queue))};
oUu=function(N,b,S){var P=S.pipe(y1(function(H){return{value:H,timestamp:N.timeProvider.now()}}),vR(O5));
return b instanceof BM?b.pipe(vR(),dY(function(H){return H?rj(new o_({value:!1,timestamp:N.timeProvider.now()}),N.queue):P})):b.value===!1?P:new o_(!1)};
iMY=function(N,b,S,P,H,K,C){var G=Gj_;b=b instanceof BM?b.pipe(nz(!1),vR()):b;var a=!N.isMobile();S=oUu(N,S,P);N=C.measurableCreative.pipe(tjp(N.queue));return Object.assign({},G,{geometryIsOccluded:S,wasLargeAdAtRender:H,allowLargeAdThreshold:a,mayUseViewportShareExposure:b,hasMeasurementStarted:N,useIntersectionObserverV2:K})};
UBo=function(N,b,S,P,H,K){var C=1;K=K===void 0?!0:K;C=C===void 0?.01:C;var G=G===void 0?N.timeProvider.intervalObservable(100).pipe(uz(N.queue)):G;return N.performanceMonitor.timeExecution(916,function(){return JlU(N,b.pipe(fz(N.queue)),S.pipe(fz(N.queue)),P,H,K,C,G)})()};
JlU=function(N,b,S,P,H,K,C,G){var a=B8L(N).pipe(y1(function(n){return!n})),R=new ZMu(N,[new ju9(N,fHo),
new zbI(N,G)]);G=Gzf(Als,XAE);return SBO(N,b,function(n,d){var m=rj(new o_(d.element),n.queue).pipe(xBf(n),uz(n.queue)),k={loadedElement:m,shouldMeasure:m.pipe(sn(!0)),measurableCreative:m.pipe(y1(function(V){var g=g===void 0?Symbol():g;return Object.freeze({symbol:g,element:rj(new o_(V),n.queue)})})),
creativeSearchResult:rj(new o_("mue"),n.queue)},M=new o_(!1),l=new o_(!1),u=new o_(17),J=new o_(!1),Z=new o_(!1),D=rj(ac,n.queue);M=R.buildGeometrySource(k,{inApp:M,useV2:!1,requestSource:rj(u,n.queue)}).geometrySource;k=iMY(n,J,l,a,Z,D,k);l=CDI(n.queue,n.timeProvider,M,k);k=l.geometrySignals;J=l.shouldResetViewabilitySignals;l=ugE(n.queue,k.timestampedExposure,k.visible,l.shouldResetExposureSignals,J);J=Wof(n.queue,n.timeProvider,J,k.measurementRequests,k.visible);Z=S.pipe(w$(function(V){return V===
d.element.ref}),y1(function(){return"ur"}));
D=l2u(n.timeProvider,H).pipe(sn("t"));Z=Iqu(n,qt(Z,D));D=lHf(n,k.measurementRequests,Z.pipe(w$(function(V){return V!==null})));
M=Z.pipe(w$(function(V){return V!==null}),y1(function(){return FoY(n.global.document)===1}));
var Y=EU9(n.document);return Object.assign({},{beaconFactory:new o_(n.beaconFactory),context:new o_(n),inferredPingId:new o_("lidar2"),timeOnScreenPingId:new o_("lidartos"),binaryContext:new o_(17),binaryVersion:new o_(P),requestSource:u,contextValidationErrors:new o_(n.validate()?null:new D2),contextVisibilityKnown:new o_(Y),payloadMapper:new o_(OQU),endOfSessionReason:Z,timeOnScreenReason:Z,requestMeasurementOnEndOfSession:D,hasImpressionFired:pAa,crossDomainIframeState:new o_(n.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:ac,inFetchLaterBeaconExperiment:ac,isTurtlex:ac,turtlexReportEventData:new o_(""),reportFencedFrameEvent:ym,isViewableAttributionEnabled:ac,inViewableAttributionExperiment:new o_(0),fetchBeaconFactory:ym,supportsPendingBeacon:ac,supportsFetchLater:ac,emit:new o_(aqO),beginToRenderEvent:new o_(Symbol()),activeViewUnmeasurableEvent:new o_(Symbol()),activeViewViewableEvent:new o_(Symbol()),creativeFound:pAa,immediateUrlPrefixes:new o_(d.immediateUrls),timeOnScreenUrlPrefixes:new o_(d.timeOnScreenUrls),
cpmavUrls:ym,viewableRelayUrls:ym,measurementDeferralState:new o_(2),urlSerializer:new o_(kzb),viewUrlSerializer:new o_(Y29),isCreativeLoaded:m.pipe(tjp(n.queue)),pageVisible:a.pipe(y1(function(V){return!V})),
eosPageVisible:M,timestampedExposureHistory:k.timestampedExposure.pipe(WR(function(V,g){V.push(g);return V},[]))},k,{viewable:G6(n,J),
maxTimeOnScreen:G6(n,l.maxTimeOnScreen),timeOnScreen:G6(n,l.timeOnScreen),maxConsecutiveViewTime:G6(n,l.maxConsecutiveViewTime),consecutiveViewTime:l.consecutiveViewTime.pipe(y1(function(V){return new CT(n.timeProvider,V)})),
totalMeasurementTime:G6(n,l.totalMeasurementTime),totalUnviewedTime:G6(n,l.totalUnviewedTime),userAgentClientHints:Cwp(n),clientOrderPingCounter:new o_(new HQe)})},CMY(N,C),re9(K?ceo(G,ylb):ceo(G,IHb),DBL))};
V_O=function(N){var b=_.$I.apply(1,arguments).filter(Boolean).join("&");if(!b)return N;var S=N.match(/[?&]adurl=/);return S?N.slice(0,S.index+1)+b+"&"+N.slice(S.index+1):N+(N.indexOf("?")<0?"?":"&")+b};
Rc=function(N,b){return b?"&"+N+"="+encodeURIComponent(b):""};
gUI=function(){try{var N,b;return!!((N=window)==null?0:(b=N.top)==null?0:b.location.href)&&!1}catch(S){return!0}};
_.Wv=function(N){N&&typeof N.dispose=="function"&&N.dispose()};
_.nT=function(N){for(var b=0,S=arguments.length;b<S;++b){var P=arguments[b];_.yu(P)?_.nT.apply(null,P):_.Wv(P)}};
$Bb=function(){var N=ebI();N=N===void 0?"bevasrsg":N;return new Promise(function(b){var S=window===window.top?window:gUI()?window:window.top,P=S[N],H;((H=P)==null?0:H.bevasrs)?b(new dj(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),S[N]=P),P.nqfbel.push(function(K){b(new dj(K))}))})};
hbu=function(N){var b={c:N.gW,e:N.h16,mc:N.o4w,me:N.jRR};N.v3&&(b.co={c:N.v3.a9D,a:N.v3.pLl,s:N.v3.n4B});return b};
q2U=function(N){var b,S,P={gW:N.c,h16:N.e,o4w:(b=N.mc)!=null?b:!1,jRR:(S=N.me)!=null?S:!1};N.co&&(P.v3={a9D:N.co.c,pLl:N.co.a,n4B:N.co.s});return P};
wAL=function(N){return function(){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N(),2);b=S.yieldResult;return S.return({f:function(){return b.bGG()},
c:function(P){return b.jED(P)},
m:function(P){return b.cE(q2U(P))},
mws:function(P){return b.wik(q2U(P))}})})}};
N79=function(N,b){var S=ebI();S=S===void 0?"bevasrsg":S;b={s:function(K){var C;return N.snapshot(Object.assign({},K.c&&{gW:K.c},K.s&&{xoQ:K.s},{psC:(C=K.p)!=null?C:!0}))},
e:function(K){var C;return void((C=N.zoN)==null?void 0:C.call(N,K))},
c:function(K,C){return N.usQ(K,C)},
p:N.abQ,l:function(){return N.djD()},
wpc:b?wAL(b):void 0};var P=window===window.top?window:gUI()?window:window.top,H=P[S];if(H){H.bevasrs=b;if(H.nqfbel!==void 0)for(S=_.O(H.nqfbel),P=S.next();!P.done;P=S.next())P=P.value,P(b);H.nqfbel=void 0}else H={},H=(H.bevasrs=b,H.nqfbel=void 0,H),P[S]=H};
SlE=function(N){var b=b===void 0?52:b;var S=[];_.kT(N,bE_,6,_.T6()).forEach(function(P){_.tg(P,2)<=b&&S.push(_.tg(P,1))});
return S};
PQI=function(N){var b=b===void 0?52:b;var S=[];_.kT(N,bE_,6,_.T6()).forEach(function(P){_.tg(P,2)>b&&S.push(_.tg(P,1))});
return S};
HEu=function(N){N.then(function(){},function(){})};
Mf=function(N){return{fieldType:1,fieldName:N}};
Fc=function(N){return{fieldType:2,fieldName:N}};
_.Bv=function(N){return{fieldType:3,fieldName:N}};
sNs=function(){function N(){H[0]=1732584193;H[1]=4023233417;H[2]=2562383102;H[3]=271733878;H[4]=3285377520;n=R=0}
function b(d){for(var m=C,k=0;k<64;k+=4)m[k/4]=d[k]<<24|d[k+1]<<16|d[k+2]<<8|d[k+3];for(k=16;k<80;k++)d=m[k-3]^m[k-8]^m[k-14]^m[k-16],m[k]=(d<<1|d>>>31)&4294967295;d=H[0];var M=H[1],l=H[2],u=H[3],J=H[4];for(k=0;k<80;k++){if(k<40)if(k<20){var Z=u^M&(l^u);var D=1518500249}else Z=M^l^u,D=1859775393;else k<60?(Z=M&l|u&(M|l),D=2400959708):(Z=M^l^u,D=3395469782);Z=((d<<5|d>>>27)&4294967295)+Z+J+D+m[k]&4294967295;J=u;u=l;l=(M<<30|M>>>2)&4294967295;M=d;d=Z}H[0]=H[0]+d&4294967295;H[1]=H[1]+M&4294967295;H[2]=
H[2]+l&4294967295;H[3]=H[3]+u&4294967295;H[4]=H[4]+J&4294967295}
function S(d,m){if(typeof d==="string"){d=unescape(encodeURIComponent(d));for(var k=[],M=0,l=d.length;M<l;++M)k.push(d.charCodeAt(M));d=k}m||(m=d.length);k=0;if(R==0)for(;k+64<m;)b(d.slice(k,k+64)),k+=64,n+=64;for(;k<m;)if(K[R++]=d[k++],n++,R==64)for(R=0,b(K);k+64<m;)b(d.slice(k,k+64)),k+=64,n+=64}
function P(){var d=[],m=n*8;R<56?S(G,56-R):S(G,64-(R-56));for(var k=63;k>=56;k--)K[k]=m&255,m>>>=8;b(K);for(k=m=0;k<5;k++)for(var M=24;M>=0;M-=8)d[m++]=H[k]>>M&255;return d}
for(var H=[],K=[],C=[],G=[128],a=1;a<64;++a)G[a]=0;var R,n;N();return{reset:N,update:S,digest:P,digestString:function(){for(var d=P(),m="",k=0;k<d.length;k++)m+="0123456789ABCDEF".charAt(Math.floor(d[k]/16))+"0123456789ABCDEF".charAt(d[k]%16);return m}}};
rze=function(N,b){b=b===void 0?K6f:b;if(!vbb){var S;N=(S=N.navigator)==null?void 0:S.userAgentData;if(!N||typeof N.getHighEntropyValues!=="function"||N.brands&&typeof N.brands.map!=="function")return Promise.reject(Error("ua"));OEI((N.brands||[]).map(function(H){var K=new CQU;K=_.En(K,1,H.brand);return _.En(K,2,H.version)}));
typeof N.mobile==="boolean"&&_.lw(GWo,2,N.mobile);vbb=N.getHighEntropyValues(b)}var P=new Set(b);return vbb.then(function(H){var K=GWo.clone();P.has("platform")&&_.En(K,3,H.platform);P.has("platformVersion")&&_.En(K,4,H.platformVersion);P.has("architecture")&&_.En(K,5,H.architecture);P.has("model")&&_.En(K,6,H.model);P.has("uaFullVersion")&&_.En(K,7,H.uaFullVersion);return K.serialize()}).catch(function(){return GWo.serialize()})};
LT=function(N,b,S,P){this.initialValue_=N;this.maxValue_=b;this.currBaseValue_=this.currValue_=N;this.randomFactor_=S||0;this.backoffFactor_=P||2};
fT=function(N){this.src=N;this.listeners={};this.typeCount_=0};
W6a=function(){for(var N;N=czY.remove();){try{N.fn.call(N.scope)}catch(b){Hs(b)}ahO.put(N)}Rtf=!1};
_.nbY=function(N){switch(N){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}};
dXE=function(N){switch(N){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""}};
_.mXo=function(){};
fhs=function(N,b,S,P){N=kW_(T7o(tUf(new _.uw(1828,"0"),N),new MUL)).disableWithCredentials();b.length&&F6f(N,B7o(new lhI,b));P!==void 0&&(N.destinationUrl=P);var H=new L6E(1828,"","",!1,"",N.build());_.QS(H,N);var K=new oc({flush:function(C){try{H.flush(C)}catch(G){S(G)}}});
K.addOnDisposeCallback(function(){setTimeout(function(){try{K.snapshotAndFlush()}finally{H.dispose()}})});
K.invocationLimit=1E5;K.flushInterval=3E4;K.JSC$10020_flushTimer.setInterval(3E4);return K};
iw=function(){var N,b,S;return(S=(N=globalThis.performance)==null?void 0:(b=N.now)==null?void 0:b.call(N))!=null?S:Date.now()};
xXU=function(N,b){if(N.disable)return new uQf;b=b?SlE(b):[];N={wL:N.wL,kTL:N.fUZ,ebO:N.jO7,destinationUrl:N.destinationUrl,omF:N.omF,hzd:N.hzd};b=b===void 0?[]:b;return new QNU(N,b)};
obY=function(N){if(!N)return null;N=_.Jg(N,2);return N===null||N===void 0?null:Nt(N)};
_.iEU=function(N){if(!N)return null;N=_.Jg(N,4);return N===null||N===void 0?null:_.ZB(N)};
ZE_=function(N,b){return b?JzU(b):N?UXs(N):Promise.resolve()};
JzU=function(N){return new Promise(function(b,S){var P=_.U5("SCRIPT"),H=_.iEU(N);_.cM(P,H);P.onload=function(){_.Zg(P);b()};
P.onerror=function(){_.Zg(P);S(Error("Fa"))};
(jG("HEAD")[0]||document.documentElement).appendChild(P)})};
UXs=function(N){return new Promise(function(b){var S=_.U5("SCRIPT");if(N){var P=_.Jg(N,6);P=P===null||P===void 0?null:_.Cg(P)}else P=null;_.r$(S,P);(jG("HEAD")[0]||document.documentElement).appendChild(S);_.Zg(S);b()})};
z6=function(N,b,S){var P,H=new Promise(function(K){P=setTimeout(K,b)});
return Promise.race([N.finally(function(){return void clearTimeout(P)}),
H.then(S)])};
jNu=function(N,b){try{return globalThis.sessionStorage.setItem(N,b),!0}catch(S){return!1}};
ztY=function(N,b,S,P){b=b===void 0?0:b;S=S===void 0?N.length:S;var H=0;for(P&&(H=ztY(P));b<S;b++)P=typeof N==="string"?N.charCodeAt(b):N[b],H=Az9(31,H)+P|0;return H};
XqO=function(N,b){return[ztY(N,0,N.length>>1,b),ztY(N,N.length>>1)]};
EbO=function(N){var b=_.O(XqO(N,Ag));N=b.next().value;b=b.next().value;return N.toString(16)+b.toString(16)};
pqa=function(N,b){var S=XqO(b);N=new Uint32Array(N.buffer);b=N[0];var P=_.O(S);S=P.next().value;P=P.next().value;for(var H=1;H<N.length;H+=2){for(var K=b,C=H,G=S,a=P,R=0;R<22;R++)C=C>>>8|C<<24,C+=K|0,C^=G+38293,K=K<<3|K>>>29,K^=C,a=a>>>8|a<<24,a+=G|0,a^=R+38293,G=G<<3|G>>>29,G^=a;K=[K,C];N[H]^=K[0];H+1<N.length&&(N[H+1]^=K[1])}};
Yle=function(N,b,S,P,H){var K=(4-(Ag.length+S.length)%4)%4,C=new Uint8Array(4+K+Ag.length+4+S.length),G=new DataView(C.buffer),a=0;G.setUint32(a,Math.random()*4294967295);a=a+4+K;C.set(Ag,a);a+=Ag.length;G.setUint32(a,H);C.set(S,a+4);pqa(C,P);return N.insert(b,function(R){return void globalThis.sessionStorage.removeItem(R)})?jNu(b,_.iL(C))?"s":"t":"i"};
yzo=function(N,b){var S=globalThis.sessionStorage.getItem(N);if(!S)return["m"];try{var P=_.qL(S);pqa(P,b)}catch(H){return globalThis.sessionStorage.removeItem(N),["c"]}for(b=4;b<7&&P[b]===0;)b++;for(S=0;S<Ag.length;S++)if(P[b++]!==Ag[S])return globalThis.sessionStorage.removeItem(N),["d"];S=(new DataView(P.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=S?(globalThis.sessionStorage.removeItem(N),["e"]):["a",new Uint8Array(P.buffer,b+4)]};
Ih9=function(N){return globalThis.TextEncoder?(new TextEncoder).encode(N):_.Xc(N)};
DXO=function(N){var b=N,S;return function(){if(b){var P=b;b=void 0;S=P.apply(this,arguments)}return S}};
gbp=function(N){return j9(function(b){if(b instanceof N)return!0;var S,P,H=b==null?void 0:(S=b.ownerDocument)==null?void 0:(P=S.defaultView)==null?void 0:P[N.name];return VU9(H)&&b instanceof H})};
_.yS=function(N,b,S){_.E5.call(this);this.JSC$10234_listener_=N;this.JSC$10234_interval_=b||0;this.handler_=S;this.callback_=(0,_.pT)(this.JSC$10236_doAction_,this)};
Ic=function(){_.E5.call(this);this.services_={}};
_.Dg=function(N){N=etO(N);return _.ZB(N)};
etO=function(N){return N===null?"null":N===void 0?"undefined":N};
htb=function(N){if(N&&N.focus)if(N!==document.activeElement)N.focus();else return $X_(function(){return _.r(function(b){document.activeElement&&document.activeElement.blur();return b.return($X_(function(){N.focus()}))})})};
_.qlf=function(N){var b=b===void 0?5:b;setTimeout(function(){var S;return _.r(function(P){P.nextAddress==1&&(S=document.activeElement);if(P.nextAddress!=5)return(document.activeElement===S||document.activeElement===document.body)&&b>=0&&N?P.yield(htb(N),5):P.jumpTo(0);if(document.activeElement===N)return P.return();N=N.parentElement;--b;return P.jumpTo(2)})},15)};
$X_=function(N){return new Promise(function(b){requestAnimationFrame(function(){b(N())})})};
Nk9=function(N){if(_.VS)N(_.VS);else{var b;((b=wqY)!=null?b:wqY=[]).push(N)}};
eG=function(){!_.VS&&_.gj&&_.bh_(_.gj());return _.VS};
_.bh_=function(N){_.VS=N;var b;(b=wqY)==null||b.forEach(Nk9);wqY=void 0};
$T=function(N){return USf(N)?Number(N):String(N)};
SuY=function(N){this.action=N;this.wfv=!1};
PSO=function(N,b){SuY.call(this,"set-drive-options");this.appId=N;this.appOrigin=b};
Hhe=function(N){SuY.call(this,"visibility");this.visible=N};
sBY=function(N,b,S){hg.call(this,N,b,S)};
KVu=function(N){qf.call(this,N)};
v0_=function(N){N=N&&N.getWindow()||window;return N.gadgets&&N.gadgets.rpc};
CSu=function(N,b){var S=b&&b.getWindow()||window;if(v0_(b))N();else if(OhI)OhI.push(N);else var P=OhI=[N],H=S.setInterval(function(){if(v0_(b)){S.clearInterval(H);for(var K=0;K<P.length;K++)P[K]();OhI=null}},100)};
r2Y=function(N,b){var S=new wj(N);_.QS(b,S);var P={passive:!1};b.listen(S,"mousewheel",function(H){return void GiE(N,H)},P).listen(N,"scroll",function(H){return void GiE(N,H)},P)};
GiE=function(N,b){var S;a:{for(S=b.target;S;){if(S.nodeType==1){var P=_.N8(S,"overflowY");if(P=="auto"||P=="scroll")break a}S=S.parentNode}S=null}if(!S||!_.Sj(N,S)||S.scrollHeight==S.clientHeight||b.deltaY>0&&Math.abs(S.scrollTop-(S.scrollHeight-S.clientHeight))<=1||b.deltaY<0&&S.scrollTop==0)b.preventDefault(),b.stopPropagation()};
c2p=function(){var N;if(N=N===void 0?window:N)return N!==N.parent&&N.hasOwnProperty("pangolinIframeGlobals");var b=Error("fb");setTimeout(function(){throw b;},1);
return!1};
CQ=function(N,b,S,P,H,K,C,G,a){G=G===void 0?!1:G;a=a===void 0?!1:a;hg.call(this,void 0,void 0,void 0);hg.call(this,K?K+" picker modal-dialog":"picker modal-dialog",!0,S);_.PW(N,"protocol");this.iframeManager_=new ajE;this.targetId_=HW();this.rpcToken_=HW();N=_.sB(N);_.KQ(N,"hostId");this.useGapi_=!a&&!c2p();G&&_.vW(N,"fv2","true");this.setUrl(N.toString());this.preferredDialogWidth_=P;this.preferredDialogHeight_=H;P!==void 0||H!==void 0?P=!0:(P=_.KQ(_.sB(N.toString()),"hostId"),R6Y||(R6Y=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
P=!R6Y.has(P));this.autoSizeDialog_=P;this.JSC$10424_gadgetsDomHelper_=C||this.JSC$10375_dom_;b&&(C=this.JSC$10424_gadgetsDomHelper_,b=_.KQ(_.sB(this.JSC$10426_url_),"grugl")=="true"?WVI:n0Y,v0_(C)||(C=C||zn(document),P=C.createElement("SCRIPT"),_.cM(P,b),P.type="text/javascript",C.JSC$9559_document_.body.appendChild(P)));N=N.toString();b=null;C=N.indexOf("/picker?");C>-1?b=N.substring(0,C+8-1):vs(N,"/picker")&&(b=N);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(N=this.buttons_,N.JSC$10409_element_=this.buttonEl_,N.render()):_.aX(this.buttonEl_,dYE),_.OB(this.buttonEl_,!!this.buttons_))};
_.tHf=function(N){var b=b===void 0?mYe:b;var S=_.gI(N),P=function(K){K=_.O(K);K.next();K=Gz(K);return b(S,K)},H=function(K){var C=_.O(K);
K=C.next().value;C=Gz(C);return N.apply(K,C)};
return function(){var K=_.$I.apply(0,arguments),C=this||_.Ps,G=kie.get(C);G||(G={},kie.set(C,G));return Tke(G,[this].concat(_.IX(K)),H,P)}};
rA=function(N){var b={};N=N.replace(/\r/g,"").split("\n");for(var S=0;S<N.length;S++){var P=N[S],H=P.indexOf(":");H<0||(b[P.substring(0,H)]=P.substring(H+2,P.length))}return b};
MHs=function(N,b,S){S=S===void 0?function(){}:S;
return N?b():S()};
_.Bke=function(N){var b;return((b=FVp.documentOverride)!=null?b:N).__wizdispatcher};
_.aO=function(N){var b=cW;cW=N;return b};
_.LVf=function(N){return N===ljf||(N==null?void 0:N.name)==="\u0275NotFound"};
_.RO=function(N,b){var S;if((S=N)==null?0:S.isDisposed)throw Error("kb`"+String(N.debugName));for(;N!==void 0;){S=N;if(S.retrieve)return S.retrieve(b,{optional:!0});N=N.parent}return ljf};
WW=function(N){return{"\u0275prov":{providedIn:"root",token:Symbol(N),factory:void 0,value:void 0}}};
_.fjf=function(N){var b=cW;if(!b){switch(N===void 0?3:N){case 0:N=Error("jb");break;case 1:N=Error("lb");break;case 2:N=Error("mb");break;default:N=Error("nb")}throw N;}return b};
unp=function(N){var b=_.aO(N);N={};return N[Symbol.dispose]=function(){_.aO(b)},N};
QBI=function(N,b){N.disposables||(N.disposables=[]);N.disposables.push(b)};
nQ=function(N){var b=cW;b&&!b.isDisposed&&(QBI(b,N),N.parent=b)};
o0b=function(N){if(N.disposables){for(var b=_.O(N.disposables),S=b.next();!S.done;S=b.next())S=S.value,typeof S==="function"?S():xYo(S);N.disposables.length=0}};
xYo=function(N){if(!N.isDisposed){N.isDisposed=!0;var b;(b=N[Symbol.dispose])==null||b.call(N);delete N.parent;o0b(N)}};
E0f=function(N){var b={retrieve:function(S){switch(S.\u0275prov.token){case ihU.\u0275prov.token:var P=N.asyncDeps;break;case _.J2e.\u0275prov.token:P=N.rootElement;break;case UYf.\u0275prov.token:P=N.modelRootElement;break;case Zha.\u0275prov.token:P=N.appContext;break;case jBb.\u0275prov.token:P=N.rendererData;break;case z6e.\u0275prov.token:P=N.injectingConstructor;break;case A2I.\u0275prov.token:P=N.dispatcher}if(P)S=P;else a:{for(P=b.parent;P;){var H=P;if(H.retrieve){S=H.retrieve(S);break a}P=
P.parent}P=S.\u0275prov.token;H=XKO[P];H!==void 0?S=H:(H=S.\u0275prov.providedIn,S.\u0275prov.factory?(S=S.\u0275prov.factory(),P&&H==="root"&&(XKO[P]=S)):S=ljf)}return S}};
nQ(b);return b};
pKI=function(){var N=_.fjf(1),b=_.RO(N,Zha);if(!_.LVf(b))return b;N=_.RO(N,A2I);if(!_.LVf(N))return N.getOptionalAppContext()};
Yuf=function(N){if(typeof document!=="undefined"&&document&&document.getElementById&&(N=document.getElementById(N))){var b=N.tagName.toUpperCase();if(b=="SCRIPT"||b=="LINK")return N}return null};
Ijb=function(N,b){if((N=N===void 0?"":N)&&b)throw Error("tb");var S="";var P=_.Ps._F_jsUrl;(N=b||Yuf(N))&&(S=N.src?N.src:N.getAttribute("href"));if(P&&S){if(P!=S)throw Error("ub`"+P+"`"+S);S=P}else S=P||S;if(!y2o(S))throw Error("vb");return S};
e6L=function(){if(!DYI){DYI=!0;try{var N=Ijb(_.Ps._F_jsUrl?"":"base-js")}catch(P){return}var b=VHY(g0f(N)),S=Object.keys(b);S.length!==0&&Nk9(function(P){for(var H=_.O(S),K=H.next();!K.done;K=H.next()){K=K.value;for(var C=_.O(Object.keys(b[K])),G=C.next();!G.done;G=C.next())P.addExtraEdge(K,G.value)}})}};
h6Y=function(){var N=Object.assign({},$Yu);Object.getOwnPropertyNames($Yu).forEach(function(b){dA[b]!==void 0&&(N[b]=dA[b])});
return N};
quu=function(N,b){if(dA.enablePerformanceTiming){var S,P;(P=(S=performance).mark)==null||P.call(S,N+"Start__"+b)}};
wKu=function(N,b){if(dA.enablePerformanceTiming){var S,P;(P=(S=performance).measure)==null||P.call(S,N+"__"+b,N+"Start__"+b)}};
NeO=function(N,b,S){var P;return N&&b?N+"__"+b:(P=N!=null?N:b)!=null?P:S};
bvu=function(N,b){return Object.is(N,b)};
kl=function(N){var b=mb;mb=N;return b};
P5Y=function(N){if(Tz)throw Error("Z");if(mb!==null){var b=mb.producersTail;if(b===void 0||b.producer!==N){var S=void 0,P=mb.recomputing;if(P&&(S=b!==void 0?b.nextProducer:mb.producers,S!==void 0&&S.producer===N)){mb.producersTail=S;S.lastReadVersion=N.version;return}var H=N.consumersTail,K;if(!(K=H===void 0||H.consumer!==mb)){if(P){a:{K=mb;P=K.producersTail;if(P!==void 0){K=K.producers;do{if(K===H){P=!0;break a}if(K===P)break;K=K.nextProducer}while(K!==void 0)}P=!1}P=!P}K=P}K&&(P=te(mb),S={producer:N,
consumer:mb,nextProducer:S,prevConsumer:H,lastReadVersion:N.version,nextConsumer:void 0},mb.producersTail=S,b!==void 0?b.nextProducer=S:mb.producers=S,P&&Svs(N,S))}}};
BW=function(N){if(!te(N)||N.dirty)if(N.dirty||N.lastCleanEpoch!==M8)(N.producerMustRecompute(N)||Hv_(N))&&N.producerRecomputeValue(N),N.dirty=!1,N.lastCleanEpoch=M8};
s0I=function(N){if(N.consumers!==void 0){var b=Tz;Tz=!0;try{for(var S=N.consumers;S!==void 0;S=S.nextConsumer){var P=S.consumer;P.dirty||(N=void 0,P.dirty=!0,s0I(P),(N=P.consumerMarkedDirty)==null||N.call(P,P))}}finally{Tz=b}}};
KjL=function(){var N;return((N=mb)==null?void 0:N.consumerAllowSignalWrites)!==!1};
vho=function(N){N&&(N.producersTail=void 0,N.recomputing=!0);return kl(N)};
C5I=function(N){N.recomputing=!1;var b=N.producersTail,S=b!==void 0?b.nextProducer:N.producers;if(S!==void 0){if(te(N)){do S=Ovu(S);while(S!==void 0)}b!==void 0?b.nextProducer=void 0:N.producers=void 0}};
Hv_=function(N){for(N=N.producers;N!==void 0;N=N.nextProducer){var b=N.producer,S=N.lastReadVersion;if(S!==b.version)return!0;BW(b);if(S!==b.version)return!0}return!1};
Svs=function(N,b){var S=N.consumersTail,P=te(N);S!==void 0?(b.nextConsumer=S.nextConsumer,S.nextConsumer=b):(b.nextConsumer=void 0,N.consumers=b);b.prevConsumer=S;N.consumersTail=b;if(!P)for(N=N.producers;N!==void 0;N=N.nextProducer)Svs(N.producer,N)};
Ovu=function(N){var b=N.producer,S=N.nextProducer,P=N.nextConsumer,H=N.prevConsumer;N.nextConsumer=void 0;N.prevConsumer=void 0;P!==void 0?P.prevConsumer=H:b.consumersTail=H;if(H!==void 0)H.nextConsumer=P;else if(b.consumers=P,!te(b))for(N=b.producers;N!==void 0;)N=Ovu(N);return S};
te=function(N){return N.consumerIsAlwaysLive||N.consumers!==void 0};
rdI=function(N){var b=Object.create(Gxa);b.computation=N;N=function(){BW(b);P5Y(b);if(b.value===lM)throw b.error;return b.value};
N[LQ]=b;return N};
Wjs=function(N,b){var S=Object.create(cdY);S.value=N;b!==void 0&&(S.equal=b);N=function(){P5Y(S);return S.value};
N[LQ]=S;return[N,function(P){return anL(S,P)},
function(P){KjL()||RA9(S);anL(S,P(S.value))}]};
anL=function(N,b){KjL()||RA9(N);if(!N.equal(N.value,b)){N.value=b;N.version++;M8++;s0I(N);var S;(S=nhp)==null||S(N)}};
mNI=function(N,b,S){var P=Object.create(dNf);P.source=N;P.computation=b;S!=void 0&&(P.equal=S);N=function(){BW(P);P5Y(P);if(P.value===lM)throw P.error;return P.value};
N[LQ]=P;return N};
_.fQ=function(N){var b=kl(null);try{return N()}finally{kl(b)}};
kxf=function(N,b){quu("signalSet",b.debugName);try{N()}finally{wKu("signalSet",b.debugName)}};
Teo=function(N,b,S){N=Wjs(N,b.equals);var P=N[0],H=P[LQ];H.debugName=NeO(b.debugName,S,"[signal]");if(!dA.enablePerformanceTiming)return N;var K=N[1],C=N[2];return[P,function(G){kxf(function(){return void K(G)},H)},
function(G){kxf(function(){return void C(G)},H)}]};
Mdu=function(N){var b=Object.create(tdu);b.debugName=N;!cW||nQ(b);return b};
Fju=function(N,b){var S=Mdu(b);b=_.aO(S);try{N(S)}finally{_.aO(b)}return function(){return void xYo(S)}};
lna=function(N){return uM(N)&&Be9 in N};
_.QF=function(N,b,S){return Teo(N,b!=null?b:{},S===void 0?"":S)};
fnu=function(N,b){var S=_.O(_.QF(N,void 0,"cPpJzc"));N=S.next().value;S=S.next().value;N[Ljp]=S;N[xl]=b;return N};
uC9=function(N){return!!N&&typeof N==="object"&&Object.getPrototypeOf(N)===Object.prototype};
Q09=function(N){return typeof N==="function"&&Ljp in N&&typeof N[Ljp]==="function"};
xNa=function(N,b){Object.defineProperty(N,xl,{get:function(){return b}})};
iM=function(N,b){if(oO(N)){var S=N.map(function(K){return iM(K,b)});
xNa(S,b);return S}if(uC9(N)){S={};N=_.O(Object.entries(N));for(var P=N.next();!P.done;P=N.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;S[P]=iM(H,b)}xNa(S,b);return S}return fnu(N,b)};
oho=function(N){if(oO(N))return N.map(function(H){return oho(H)});
if(uC9(N)){var b={};N=_.O(Object.entries(N));for(var S=N.next();!S.done;S=N.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;b[S]=oho(P)}return b}return Q09(N)?N():N};
Jdo=function(){var N={height:0,width:0};if(!uC9(N))throw Error("Kb");var b=Symbol("Lb");return[iM(N,b),function(S,P){if(S[xl]===b)if(typeof P==="function"){var H=[].concat(_.IX(oho(S)));P=P(H)||H;iv_(S,[].concat(_.IX(P)))}else iv_(S,P);else throw Error("Mb");}]};
iv_=function(N,b){if(Q09(N))N[Ljp](b);else if(oO(N)&&oO(b))b=iM(b,N[xl]),N.length=0,N.push.apply(N,_.IX(b));else if((uC9(N)||oO(N))&&(oO(b)||typeof b==="object"&&b!==null)){b=_.O(Object.entries(b));for(var S=b.next();!S.done;S=b.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;var H=N,K=H[S];Object.hasOwn(N,S)?iv_(K,P):H[S]=iM(P,N[xl])}}else throw Error("Nb");};
UNf=function(N){return Object.create(Object.assign({},Je,N))};
j0Y=function(){var N;return(N=Zvf)!=null?N:Zvf=UNf({consumerAllowSignalWrites:!0})};
_.UB=function(N,b,S){S=S===void 0?"":S;N=rdI(N);var P=N[LQ];P.debugName=NeO(b==null?void 0:b.debugName,S,"[computed]");(b==null?void 0:b.equals)!=null&&(P.equal=b.equals);return N};
Zq=function(N){var b=kl(zAO);try{N()}finally{kl(b)}};
Xle=function(N,b,S){var P=Adp(N);jj={name:S?P+" ("+S+")":P,isReactive:N.componentType!==zz,parent:jj};N=b();jj=jj.parent;return N};
Ae=function(){var N=jj;return N?N.isReactive:!1};
EB=function(N,b,S){var P=jj;b&&(jj=b);try{return S==null?N():N.call(S)}catch(K){N=K;X1(N,jj);if(N!==EhE){plL=jj;b=[];for(S=cW;S;){var H=void 0;b.push((H=S.debugName)!=null?H:"[context]");H=void 0;S=(H=S.parent)!=null?H:null}Yva=b.reverse()}EhE=N;throw N;}finally{jj=P}};
X1=function(N,b){try{var S=ydo(b);if(S&&!N.componentStack&&(N.componentStack=S,dA.enableComponentStacksInErrorMessages)){var P=N.message+"\n\nComponent stack: "+S;N.stack&&(N.stack=N.stack.replace(N.message,P));N.message=P}}catch(H){}};
ydo=function(N){if(uM(N)&&N.name!==void 0&&N.isReactive!==void 0&&N.parent!==void 0||N===null){for(var b=0,S="";b<20&&N;)S+=N.name+" > ",N=N.parent,b++;N=S.slice(0,-3)}else if(dA.enableContextBasedComponentStacks){a:{for(N=N===void 0?cW:N;N;){if(lna(N))break a;b=void 0;N=(b=N.parent)!=null?b:null}N=null}N=N.getComponentStack().slice(0,20).join(" > ")}else N="";return N};
Adp=function(N){return N.debugName||N.name||"[component]"};
eAs=function(N){switch(N.onInitType){case InU:DN_.schedule(N);break;case Vda:dA.enableQueueEffectAndOnInitInitialRuns?ghs.enqueue(N):ghs.schedule(N);break;default:_.$Z(N.onInitType)}};
bt9=function(N){if(!N.isDisposed)switch(N.effectType){case pQ:$Nu.schedule(N);break;case hAL:qvU.schedule(N);break;case wlE:dA.enableQueueEffectAndOnInitInitialRuns||N.version!==0?Nbo.enqueue(N):Nbo.schedule(N);break;default:_.$Z(N.effectType)}};
Htp=function(){if(Yl>0)dA.flushRenderEffectsDuringRender&&$Nu.flush();else{for(var N=_.O(SXe),b=N.next();!b.done;b=N.next())b.value.flush();PvE()}};
PvE=function(){_.r(function(N){if(N.nextAddress==1)return N.yield(Promise.resolve(),2);for(var b=_.O(s5p),S=b.next();!S.done;S=b.next())S.value.flush();_.Zd(N)})};
v7p=function(N){yF=!0;try{for(var b=_.O(N),S=b.next();!S.done;S=b.next()){for(var P=S.value,H=[P],K=P;K.parent!==void 0;)K=K.parent,KeU(K)&&N.has(K)&&H.push(K);for(;H.length>0;){var C=H.pop();N.delete(C);C.run()}}}finally{yF=!1}};
IO=function(N){Yl--;if(N){N=_.O(OtL);for(var b=N.next();!b.done;b=N.next())b.value.clear()}else Yl>0||yF&&!dA.flushRenderEffectsDuringRender||Htp()};
CvY=function(N,b,S){N=Object.create(N);b&&(N.fn=b);S&&(N.debugName=S);nQ(N);N.componentStack=jj;return N};
GQo=function(N){if(!N.isDisposed){if(Tz)throw Error("Rb");var b=_.aO(N);quu("effectRun",N.debugName);try{EB(function(){N.dirty=!1;if(!(N.version>0)||Hv_(N)){N.version++;var S=vho(N);try{N.cleanup(),N.fn()}finally{kl(S),N&&C5I(N)}}},N.componentStack,N)}catch(S){throw dA.enableContextBasedComponentStacks&&X1(S),S;
}finally{wKu("effectRun",N.debugName),_.aO(b)}}};
_.VF=function(N,b){N=CvY(rAo,N,b);bt9(N)};
_.gA=function(N,b){N=CvY(cAp,N,b);bt9(N)};
a7a=function(N){return N};
Ra9=function(N,b,S){function P(){return H()}
S=S===void 0?"":S;var H=typeof N==="function"?mNI(N,a7a,b==null?void 0:b.equals):mNI(N.source,N.computation,b==null?void 0:b.equals);var K=H[LQ];K.debugName=NeO(b==null?void 0:b.debugName,S,"[linkedSignal]");P[LQ]=K;return[P,function(C){kxf(function(){BW(K);anL(K,C);K.dirty=!1;K.lastCleanEpoch=M8},K)},
function(C){kxf(function(){BW(K);KjL()||RA9(K);anL(K,C(K.value));K.dirty=!1;K.lastCleanEpoch=M8},K)}]};
_.ej=function(N){var b=cW;if(b){var S=jj;QBI(b,function(){var P=kl(j0Y());try{EB(function(){return void N()},S)}catch(H){throw dA.enableContextBasedComponentStacks&&X1(H),H;
}finally{kl(P)}})}};
$l=function(N,b){var S={};(b===void 0||b)&&nQ(S);b=_.aO(S);try{N(S)}finally{_.aO(b)}return function(){return void xYo(S)}};
_.he=function(N){return typeof N==="function"?N():(N==null?0:N[We_])?N.get():N};
n79=function(N){if(cW)throw Error("ob");$l(N,!1)};
q8=function(N,b){N=_.aO(N);try{return _.fQ(b)}finally{_.aO(N)}};
wA=function(N,b){var S=ydo(plL),P,H;var K=(H=(P=Yva)==null?void 0:P.slice())!=null?H:[];b={componentStack:S,contextTrace:K,errorSeverity:3,featureFlags:h6Y(),tagName:b};return[N,b]};
AA9=function(N,b,S){if(Object.hasOwnProperty.call(dca,N)&&(N=dca[N],Object.hasOwnProperty.call(N,b)&&(N=N[b],N instanceof Array))){for(var P=null,H=!1,K=0,C=N.length;K<C;++K){var G=N[K],a=G.contingentAttribute;if(!a)return G.contract;P===null&&(P={});a=Object.hasOwnProperty.call(P,a)?P[a]:P[a]=S(a);if(a===G.requiredValue)return G.contract;a==null&&(H=!0)}if(H)return null}b=mcI[b];return typeof b==="number"?b:null};
pzf=function(N,b,S){var P=null;(N=Xzf[N])&&(P=N[b]);return typeof P!=="number"&&((N=Xzf["*"])&&(P=N[b]),typeof P!=="number")?!1:!0===E7U[P][String(S).toLowerCase()]};
yA_=function(N,b){b=AA9(N.toLowerCase(),b,function(){var P;(P=dA.handleError)==null||P.call.apply(P,[dA].concat(_.IX(wA(Error("Ub"),N.toLowerCase()))))});
if(b===null)return null;var S;return(S=YXE[b])!=null?S:null};
I7O=function(N,b,S){if(S===null||S===void 0)return S;b=b.toLowerCase();N=yA_(N,b);return N===null?S:N(b,S)};
Dc_=function(){};
Vlp=function(N,b){for(;N.length>b;)N.pop()};
g7Y=function(N){N=Array(N);Vlp(N,0);return N};
NB=function(N,b,S){if(S==null)N.removeAttribute(b);else{var P;(P=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?N.setAttributeNS(P,b,S):N.setAttribute(b,S)}};
$cY=function(N,b,S){N=N.style;if(typeof S==="string")N.cssText=S;else{N.cssText="";for(var P in S)if(eap.call(S,P)){b=N;var H=P,K=S[P];H.indexOf("-")>=0?b.setProperty(H,K):b[H]=K}}};
hae=function(N,b,S){var P=typeof S;P==="object"||P==="function"?N[b]=S:NB(N,b,S)};
qX9=function(){var N=new Dc_;N[bD.default]=hae;N.style=$cY;return N};
wzI=function(N,b,S,P){(P[b]||P[bD.default])(N,b,S)};
bx9=function(N,b,S){b=new N09(b,S);return N.__incrementalDOMData=b};
Sss=function(N,b){if(N.__incrementalDOMData)return N.__incrementalDOMData;var S=N.nodeType===1?N.localName:N.nodeName,P=N.nodeType===1?N.getAttribute("key"):null;b=bx9(N,S,N.nodeType===1?P||b:null);if(N.nodeType===1&&(N=N.attributes,S=N.length)){P=b._attrsArr||(b._attrsArr=g7Y(S*2));for(var H=0,K=0;H<S;H+=1,K+=2){var C=N[H],G=C.value;P[K]=C.name;P[K+1]=G}}return b};
Px9=function(N,b,S,P,H){return b==S&&P==H};
HxI=function(N){for(var b=S_,S=PA();S!==N;){var P=S.nextSibling;b.removeChild(S);HA.deleted.push(S);S=P}};
PA=function(){return s2?s2.nextSibling:S_.firstChild};
KM=function(){s2=PA()};
vXu=function(N,b){KM();var S;a:{if(S=s2){do{var P=S,H=N,K=b,C=Sss(P,K);if(se_(P,H,C.nameOrCtor,K,C.key))break a}while(b&&(S=S.nextSibling))}S=null}S||(N==="#text"?(N=vA.createTextNode(""),bx9(N,"#text",null)):(S=vA,P=S_,typeof N==="function"?S=new N:S=(P=N==="svg"?"http://www.w3.org/2000/svg":N==="math"?"http://www.w3.org/1998/Math/MathML":P==null||Sss(P).nameOrCtor==="foreignObject"?null:P.namespaceURI)?S.createElementNS(P,N):S.createElement(N),bx9(S,N,b),N=S),HA.created.push(N),S=N);N=S;if(N!==
s2){if(KNa.indexOf(N)>=0)for(b=S_,S=N.nextSibling,P=s2;P!==null&&P!==N;)H=P.nextSibling,b.insertBefore(P,S),P=H;else S_.insertBefore(N,s2);s2=N}};
Oxo=function(N,b){vXu(N,b);S_=s2;s2=null;return S_};
CxE=function(){HxI(null);s2=S_;S_=S_.parentNode};
c3f=function(N,b){b=b===void 0?{}:b;var S=b.matches===void 0?Px9:b.matches;return function(P,H,K){var C=HA,G=vA,a=KNa,R=Gj,n=s2,d=S_,m=se_;vA=P.ownerDocument;HA=new Gbb(P);se_=S;Gj=[];s2=null;var k=S_=P.parentNode,M,l=r3s.call(P);if((M=l.nodeType===11||l.nodeType===9?l.activeElement:null)&&P.contains(M)){for(l=[];M!==k;)l.push(M),M=M.parentNode||(k?M.host:null);k=l}else k=[];KNa=k;try{return N(P,H,K)}finally{P=HA,r8&&P.deleted.length>0&&r8(P.deleted),vA=G,HA=C,se_=m,Gj=R,s2=n,S_=d,KNa=a}}};
aYY=function(N,b,S,P){cA.push(wzI);cA.push(N);cA.push(b);cA.push(S);cA.push(P)};
RfU=function(N){vXu("#text",null);var b=s2;var S=Sss(b);if(S.text!==N){S=S.text=N;for(var P=1;P<arguments.length;P+=1)S=(0,arguments[P])(S);b.data!==S&&(b.data=S)}};
tgf=function(N,b,S){if(S===!1&&WNp.has(b))NB(N,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el")if(b.startsWith("on")){if(b[2]!==":")throw Error("Tb`"+b);if(S===void 0||S===null){var P;(P=dA.handleError)==null||P.call.apply(P,[dA].concat(_.IX(wA(Error("Yb`"+b),N.tagName))));N[b]=void 0}else{var H=b.slice(3);P=Ae();if(H==="jsaction"){S=Array.isArray(S)?S:[S];S=_.O(S);for(var K=S.next();!K.done;K=S.next()){K=K.value;if(typeof K!=="object"||K===null||typeof K.selfReg!==
"function")throw Error("ac`"+b);K.selfReg(0,N,P?_.ej:function(){})}}else{if(typeof S!=="object"||S===null)throw Error("Zb`"+b+"`"+typeof S);
if(typeof S.getFn!=="function")throw Error("$b`"+b+"`"+Object.keys(S));if(S.selfReg)S.selfReg(0,N,H,P?_.ej:function(){});
else if(P&&N["on"+H]===void 0){var C=S.getFn(0);N.addEventListener(H,C);_.ej(function(){return void N.removeEventListener(H,C)})}else if(P||!nXU.includes(H))N["on"+H]=S.getFn(0)}}}else{if(b.startsWith("data-")&&typeof S==="string")try{S=dMa(S)}catch(G){S="zSoyz"}typeof S!=="function"||N._disposeEffects!=null?((P=b.startsWith("prop:"))&&(b=b.slice(5)),dA.enableAttributeSanitization&&(P&&mMb(N.tagName)||(S=I7O(N.tagName,b,S))),b==="style"?("function"==typeof _.au&&S instanceof _.au&&(S=S.toString()),
kba(N,b,S)):P?N[b]=S:T0p(N,b,S)):(N._signalProps||(N._signalProps=[]),N._signalValues||(N._signalValues=[]),N._signalProps.push(b))}};
MgE=function(N,b,S){S=(S===void 0?{}:S).isReactive;if(b==null?0:b.el){var P=b.el,H;(H=P.onRender)==null||H.call(P,N);N._disposeRef||(N._disposeRef=function(){var K;(K=P.onUnmount)==null||K.call(P);delete N._disposeRef},S&&_.ej(function(){var K;
(K=N._disposeRef)==null||K.call(N)}))}};
mMb=function(N){return N.length>0&&N.includes("-")&&!FNY.includes(N.toLowerCase())};
B0u=function(N){return uM(N)&&Ru in N};
lYf=function(N){return B0u(N)?N[Ru].flattened:N};
LNU=function(N,b){var S=_.$I.apply(2,arguments),P;b=(P=b)!=null?P:{};P={};return P.type=N,P.props=b,P.children=S,P[WA]=!0,P};
_.nM=function(N){return N.children};
d8=function(N){var b=fYf!==LNU;fYf=N?uGo:LNU;return b};
_.mo=function(N){return _.D_(N)?"nodeType"in N:!1};
kU=function(){return document.createTextNode("")};
Tj=function(N){N=document.createTextNode(String(N));N._isSignalTextNode=!0;return N};
xMp=function(N){return N!=null&&N.contentKind===tl||N instanceof wc||QeL(N)};
oXf=function(N){var b=document.createElement("div");if(QeL(N)&&obY(N))_.aX(b,obY(N));else if(N instanceof wc)_.aX(b,N);else if(N!=null&&N.contentKind===tl){if(N.contentKind!==tl)throw Error("Xb");N=Nt(N.toString());_.aX(b,N)}N=_.O(b.childNodes);for(var S=N.next();!S.done;S=N.next())S.value._isSafeOrSanitizedHtmlNode=!0;return b};
MB=function(N){N=typeof N;return N==="string"||N==="number"||N==="boolean"};
ixI=function(N){return N instanceof UL||EL(N)||N instanceof ng||"function"==typeof _.au&&N instanceof _.au};
J3b=function(N,b){var S=N.parentElement;if(!S)return b;S.replaceChild(b,N);return b};
UMe=function(N,b){var S=N[0].parentElement;if(S)if(N[0].previousSibling||N[N.length-1].nextSibling){S.insertBefore(b,N[0]);for(var P=N.length-1;P>=0;P--)S.removeChild(N[P])}else S.textContent="",S.appendChild(b);return b};
Zxu=function(N,b){if(N[0].parentElement)for(var S=N[0].parentElement,P=b.length,H=N.length,K=P,C=0,G=0,a=N[H-1].nextSibling,R=null;C<H||G<K;)if(N[C]===b[G])C++,G++;else{for(;N[H-1]===b[K-1];)H--,K--;if(H===C)for(var n=K<P?G?b[G-1].nextSibling:b[K-G]:a;G<K;){var d=b[G++];S.insertBefore(d,n)}else if(K===G)for(;C<H;)n=N[C],R&&R.has(n)||S.removeChild(n),C++;else if(N[C]===b[K-1]&&b[G]===N[H-1])n=N[--H].nextSibling,S.insertBefore(b[G++],N[C++].nextSibling),S.insertBefore(b[--K],n),N[H]=b[K];else{if(!R)for(R=
new Map,n=G;n<K;)R.set(b[n],n++);n=R.get(N[C]);if(n==null)S.removeChild(N[C]),C++;else if(G<n&&n<K){d=C;for(var m=1,k=void 0;++d<H&&d<K&&(k=R.get(N[d]))!=null&&k===n+m;)m++;if(m>n-G)for(d=N[C];G<n;)S.insertBefore(b[G++],d);else S.replaceChild(b[G++],N[C++])}else C++}}return b};
zfb=function(N){if(Array.isArray(N)){if(N.length>1)throw Error("kc`"+N.length+"`"+N.map(jeY).join(", "));N=N[0]}if(N==null)return null;if(!(N instanceof _.OE)){var b,S;if((b=window)==null?0:(S=b.trustedTypes)==null?0:S.isScript(N))throw Error("jc");if(String(N).trim().length===0)return null;throw Error("lc`"+jeY(N));}return N};
A3u=function(N,b){b=zfb(b);b!==null&&_.r$(N,b)};
X_9=function(N){if(Array.isArray(N)){if(N.length>1)throw Error("mc`"+N.length+"`"+N.map(jeY).join(", "));N=N[0]}if(N==null)return null;if(!(N instanceof ng)){if(String(N).trim().length===0)return null;throw Error("nc`"+jeY(N));}return N};
EXf=function(N,b){b=X_9(b);b!==null&&(N.textContent=FRL(b))};
jeY=function(N){return"("+typeof N+") "+(N!=null&&typeof N==="object"?N.constructor.name:typeof N)+" "+N};
p_I=function(){};
lD=function(N,b){b=b===void 0?{}:b;var S=YsE(),P=!0,H,K=!!dA.legacyTriggerSoyRendererEvents;K&&(H=pKI());_.VF(function(){var C=!P&&b.isControlFlowComponent&&K,G=C?S[Ru].flattened[0].parentElement:void 0;P=!1;_.Fg.setUp();b.isControlFlowComponent&&Yl++;var a=S[0],R=S[Ru].flattened,n=d8(!0);try{var d=N(),m=y3I(a,d,S);Array.isArray(m)||(S[Ru].flattened=[m]);var k=S[Ru].flattened;if(R&&(!Array.isArray(R)||R.length!==0)){var M=Array.isArray(R)?R[0]:R,l=M[BA],u=M._disposeEffects;M._disposeEffects=void 0;
M=Array.isArray(k)?k[0]:k;M[BA]=l;M[BA]&&(M[BA].numNodes=M===k?1:k.length);M._disposeEffects=u}S[0]=m;b.isControlFlowComponent&&IO(!1)}catch(J){throw b.isControlFlowComponent&&IO(!0),J;}finally{d8(n),_.Fg.tearDown()}C&&(C=H,C!=null||(C=_.Bke(document).getAppContext()),C.get(IYb).JSC$29954_getEventTarget().dispatchEvent(new DMI(VgL,G,tl)))},b.debugName);
return S};
y3I=function(N,b,S){for(;typeof b==="function";)b=b();if(b!=null&&b[WA]){var P,H,K;(K=dA.handleError)==null||K.call.apply(K,[dA].concat(_.IX(wA(Error("oc`"+((P=b.type)==null?void 0:P.TAG_NAME)),(H=b.type)==null?void 0:H.TAG_NAME))))}if(N==null)return b==null?kU():MB(b)?Tj(b):ixI(b)?Tj(b.toString()):_.mo(b)?b:b.length===0?kU():gXp(b,S);if(_.mo(N)){if(b==null)return J3b(N,kU());if(MB(b))return efb(N,b);if(ixI(b))return efb(N,b.toString());if(_.mo(b))return J3b(N,b);if(b.length===0)return J3b(N,kU());
b=gXp(b,S);Zxu([N],S[Ru].flattened);return b}N=LM(N);if(b==null)return UMe(N,kU());if(MB(b))return UMe(N,Tj(b));if(ixI(b))return UMe(N,Tj(b.toString()));if(_.mo(b))return Zxu(N,[b])[0];if(b.length===0)return UMe(N,kU());b=gXp(b,S);Zxu(N,S[Ru].flattened);return b};
efb=function(N,b){N.nodeType===Node.TEXT_NODE?N.textContent!==String(b)&&(N.textContent=String(b)):N=J3b(N,Tj(b));return N};
LM=function(N,b,S){return $Mo(N,b!=null?b:[],S===void 0?!1:S)};
gXp=function(N,b){var S=LM(N,void 0,!0);if(S.length===0)return kU();b[Ru].flattened=S;return N};
$Mo=function(N,b,S,P,H){b=b===void 0?[]:b;S=S===void 0?!1:S;H=H===void 0?-1:H;if(N==null)return b;if(N instanceof fM){var K=N.render();return $Mo(K,b,S,P,H)}if(_.mo(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case "SCRIPT":A3u(b,N);return;case "STYLE":EXf(b,N);return}MB(N)&&(N=Tj(N),P&&S&&(P[H]=N));if(xMp(N)){S=oXf(N);S=Array.from(S.childNodes);S=_.O(S);for(K=S.next();!K.done;K=S.next())hfU(b,K.value);return b}ixI(N)&&(N=Tj(N.toString()),P&&S&&(P[H]=N));if(_.mo(N))return hfU(b,N);if(Array.isArray(N)){for(K=
0;K<N.length;K++)$Mo(N[K],b,S,N,K);return b}if(typeof N==="function"){K=lD(function(){var G=N();return G!=null&&!MB(G)&&xMp(G)?(G=oXf(G),Array.from(G.childNodes)):G},{debugName:"qmF2ne",
debugFn:N})[0];if(Array.isArray(K)){S=_.O(K);for(K=S.next();!K.done;K=S.next())hfU(b,K.value);return b}P&&S&&(P[H]=K);return hfU(b,K)}if(N!=null&&N[WA]){P=N;H=d8(!0);var C=fYf;try{K=C.apply(null,[P.type,P.props].concat(_.IX(P.children)))}finally{d8(H)}return $Mo(K,b,S)}(C=dA.handleError)==null||C.call.apply(C,[dA].concat(_.IX(wA(Error("pc")))));return b};
YsE=function(N){var b={};b=Object.assign([],(b[Ru]={flattened:[]},b));if(!N)return b;b[0]=gXp(N,b);return b};
hfU=function(N,b){Array.isArray(N)?N.push(b):N.appendChild(b);return N};
uD=function(N){if(!dA.enableLazyTsx)return N;if(Array.isArray(N)){for(var b=0;b<N.length;b++)N[b]=uD(N[b]);return N}return N instanceof fM?(N=N.render(),uD(N)):N};
w_E=function(N,b){var S,P,H=Adp(N),K=function(k){P=k;k=d8(!0);var M=kl(Qg);quu("render",H);try{S=uD(N(b))}finally{wKu("render",H),kl(M),d8(k)}};
K=dA.enableContextPerComponent?Fju(K,H):$l(K,dA.alwaysTrackContexts||!!cW);lna(P);if(!b.renderedFromIdom){var C=_.aO(P);try{return qsp(N,b,S),S}finally{_.aO(C)}}!B0u(S)&&Array.isArray(S)&&(S=YsE(S));var G=lYf(S);C=Array.isArray(G)?G[0]:G;var a=!1;if(C){var R,n=(R=b==null?void 0:b.idomKey)!=null?R:N;R=G!==C;C._disposeEffects=K;var d=C[BA]||{},m=B0u(S)?S:d.sourceDynamicRange;Object.assign(d,{key:n,numNodes:R?G.length:1,context:P,higherOrder:!!C[BA],sourceDynamicRange:m});C[BA]=d}else a=!0;(function(){var k=
_.aO(P);try{qsp(N,b,G)}finally{_.aO(k)}})();
a&&K();return S};
Npu=function(N){var b={},S;for(S in N)b={prev$jscomp$24:void 0,next$jscomp$33:void 0},b.prev$jscomp$24=xU[S],b.next$jscomp$33=N[S],xU[S]=function(P){return function(){var H=_.$I.apply(0,arguments);P.prev$jscomp$24.apply(null,_.IX(H));P.next$jscomp$33.apply(null,_.IX(H))}}(b)};
b6s=function(){if(Ae())throw Error("qc");return ou};
SYe=function(N,b){if(!N.__unmounted&&b){N.__unmounted=!0;try{N.didUnmount()}catch(H){var S,P;(P=dA.handleError)==null||P.call.apply(P,[dA].concat(_.IX(wA(H,(S=N.__type)==null?void 0:S.TAG_NAME))))}xU.didUnmount(N);N.el=null;b.__instance&&delete b.__instance}};
H6a=function(N,b,S){N._signalProps!=null&&N._disposeEffects==null&&((S===void 0?0:S)?N._disposeEffects=$l(function(){return void PZf(N,b)},dA.alwaysTrackContexts||!!cW):PZf(N,b))};
PZf=function(N,b){_.VF(function(){for(var S=N._signalProps,P=N._signalValues,H=0;H<S.length;H++){var K=S[H],C=b[K]();P[H]!==C&&(P[H]=C,tgf(N,K,C))}},"e3YVbb")};
svO=function(N,b,S){var P,H=[];N._disposeEffects=$l(function(){_.VF(function(){var K=S();if(K===null||K===void 0)K="";if(MB(K)||K===null)P!=null||(P=document.createTextNode("")),P.parentNode!==N&&(P._isSignalTextNode=!0,N.insertBefore(P,b)),P.textContent=String(K);else if(xMp(K)){for(var C=H.length>0?H[H.length-1].nextSibling:b,G=_.O(H),a=G.next();!a.done;a=G.next())N.removeChild(a.value);K=oXf(K);H=Array.from(K.childNodes);K=_.O(H);for(G=K.next();!G.done;G=K.next())N.insertBefore(G.value,C)}else throw a=
(G=(C=jj)==null?void 0:C.name)!=null?G:"unknown",Error("fc`"+a+"`"+typeof K);},"VvDgC")},dA.alwaysTrackContexts||!!cW)};
O6Y=function(N,b){var S=_.$I.apply(2,arguments);b!=null||(b={});return!dA.enableLazyTsx||jj!=null&&!Ae()?Kiu(N,b,S):new vyE(N,b,S)};
Kiu=function(N,b,S){if(N===_.nM)return S;if(typeof N==="function")return jj&&!Ae()&&(b.renderedFromIdom=!0),Xle(N,function(){var K=CZf(N,b,S);if(K)return K;S.length>0&&(b.children=S.length===1?S[0]:S);if(N.componentType===zz){var C;Fju(function(){var G=b;if(N.componentType!==zz)C=!1;else{G||(G={});var a=new iD(G,N),R=kl(Qg);try{var n=a.render(G)}finally{kl(R)}n instanceof HTMLElement?(n.__instance=a,a.el=n,a.__type=N,N.TAG_NAME=n.tagName.toLowerCase(),xU.didPatch(a),C=n):C=n}},N.name);
if(C)return C}return w_E(N,b)},b.debugInstance);
var P=GkL(N,b),H;for(H in b)tgf(P,H,b[H]);H6a(P,b);LM(S,P);MgE(P,b,{isReactive:!0});rwU(P,b);return P};
GkL=function(N,b){N=(cws.has(N.toLowerCase())?0:aVE.has(N.startsWith("svg:")?N.replace("svg:",""):N))?document.createElementNS("http://www.w3.org/2000/svg",N.startsWith("svg:")?N.replace("svg:",""):N):RMo(N,b)||document.createElement(N);N[Wis]=!0;return N};
nye=function(N){if(N){var b;(b=N._disposeRef)==null||b.call(N);var S;(S=N._disposeEffects)==null||S.call(N);N.__instance&&N.__instance instanceof Jl&&(b=N.__instance,SYe(b,N),b instanceof iD&&b.disposeEffects());for(b=0;b<N.childNodes.length;b++)nye(N.childNodes[b])}};
myE=function(N){dyL.push(N)===1&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(_.IX(dyL));dyL=[];b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;try{for(var P=0;P<S.length;P++)nye(S[P])}catch(H){P=S=void 0,(P=(S=dA).handleError)==null||P.call.apply(P,[S].concat(_.IX(wA(H))))}}})})};
_.c=function(N,b){return fYf.apply(null,[N,b].concat(_.IX(_.$I.apply(2,arguments))))};
_.ZH=function(N){return N};
_.j_=function(N){return{isDefault:!0,children:N.children}};
_.W=function(N){var b=N.cond;if(b===void 0)return N.else&&N.else();var S=_.UB(function(){return!!b()},void 0,"JHVi8"),P=function(){var H=b();
if(!H){var K;(K=dA.handleError)==null||K.call.apply(K,[dA].concat(_.IX(wA(kke.nonNullableCondIsNull()))))}return H};
return lD(function(){var H=S(),K;$l(function(){var C=kl(Qg);try{K=uD(H?N.then(P):N.else&&N.else())}finally{kl(C)}},!0);
return K},{debugName:N.debugInstance,
debugFn:N.then,isControlFlowComponent:!0})};
Tpo=function(N){return _.W(N)};
_.zj=function(N){return N.keyBy==="INDEX"?t09(N):M0_(N)};
Fiu=function(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next()){var S=void 0;(S=b.value)==null||S()}};
M0_=function(N){var b=N.keyBy===void 0||N.keyBy==="REFERENCE",S=b?function(n){return n}:N.keyBy,P=[],H=[],K=[],C=[],G=[],a=[],R=!0;
_.ej(function(){Fiu(C)});
return lD(function(){var n=Bpa(N),d=n.length;if(d===0){if(P.length===0&&!R)return K;Fiu(C);P=n;H=[];for(n=0;n<P.length;n++)H.push(S(P[n]));K=[];C=[];G=[];a=[];N.fallback&&(C[0]=lVe(function(){K[0]=uD(N.fallback())}));
R=!1;return K}for(var m=new Lip,k=P.length-1;k>=0;k--)m.push(H[k],k);k=Array(d);for(var M=Array(d),l=Array(d),u=Array(d),J=Array(b?0:d),Z={i$jscomp$451:0};Z.i$jscomp$451<d;Z={i$jscomp$451:Z.i$jscomp$451,item$jscomp$104:void 0,key$jscomp$563:void 0},Z.i$jscomp$451++){Z.item$jscomp$104=n[Z.i$jscomp$451];Z.key$jscomp$563=S(Z.item$jscomp$104);var D=m.pop(Z.key$jscomp$563);D!=null?(l[Z.i$jscomp$451]=K[D],M[Z.i$jscomp$451]=H[D],k[Z.i$jscomp$451]=C[D],u[Z.i$jscomp$451]=G[D],b||(J[Z.i$jscomp$451]=a[D]),Zq(function(Y){return function(){u[Y.i$jscomp$451](Y.i$jscomp$451);
if(!b)J[Y.i$jscomp$451](Y.item$jscomp$104)}}(Z)),delete C[D]):k[Z.i$jscomp$451]=lVe(function(Y){return function(){var V=_.O(_.QF(Y.i$jscomp$451,void 0,"Fqk1zd")),g=V.next().value;
V=V.next().value;u[Y.i$jscomp$451]=V;M[Y.i$jscomp$451]=Y.key$jscomp$563;if(b)l[Y.i$jscomp$451]=uD(N.children(Y.item$jscomp$104,g));else{var e=_.O(_.QF(Y.item$jscomp$104,void 0,"GBj5de"));V=e.next().value;e=e.next().value;J[Y.i$jscomp$451]=e;l[Y.i$jscomp$451]=uD(N.children(V,g))}}}(Z))}Fiu(C);
P=n;H=M;K=l;C=k;G=u;a=J;R=!1;return l},{debugName:N.debugInstance,
debugFn:N.each,isControlFlowComponent:!0})};
t09=function(N){var b=[],S=[],P=[],H=[],K=!1;_.ej(function(){Fiu(H)});
return lD(function(){var C=Bpa(N);K&&C.length>0&&(H.pop()(),b.pop(),K=!1);for(var G=Array(C.length),a={i$jscomp$452:0};a.i$jscomp$452<C.length;a={i$jscomp$452:a.i$jscomp$452},a.i$jscomp$452++)if(a.i$jscomp$452<b.length)b[a.i$jscomp$452]!==C[a.i$jscomp$452]&&(Zq(function(n){return function(){return void S[n.i$jscomp$452](C[n.i$jscomp$452])}}(a)),b[a.i$jscomp$452]=C[a.i$jscomp$452]),G[a.i$jscomp$452]=P[a.i$jscomp$452];
else{var R=lVe(function(n){return function(){b[n.i$jscomp$452]=C[n.i$jscomp$452];var d=_.O(_.QF(C[n.i$jscomp$452],void 0,"JMMLmd")),m=d.next().value;d=d.next().value;S[n.i$jscomp$452]=d;G[n.i$jscomp$452]=uD(N.children(m,n.i$jscomp$452))}}(a));
H[a.i$jscomp$452]=R}for(;b.length>C.length;)b.pop(),H.pop()(),S.pop();C.length===0&&!K&&N.fallback&&(a=lVe(function(){G[0]=uD(N.fallback())}),H[0]=a,K=!0);
return P=G},{debugName:N.debugInstance,
isControlFlowComponent:!0})};
Bpa=function(N){N=N.each();return Array.isArray(N)?N:Array.from(N)};
lVe=function(N){var b=cW;return $l(function(S){var P=kl(Qg);try{S.parent=b,N(S)}finally{kl(P)}},!1)};
_.Al=function(N){var b=fVE(N),S=_.UB(function(){return uVI(b)},void 0,"F1PF4");
return lD(function(){var P=S(),H;$l(function(){var K=kl(Qg);try{H=uD(P())}finally{kl(K)}});
return H},{debugName:N.debugInstance,
isControlFlowComponent:!0})};
fVE=function(N){N=N.children;return Array.isArray(N)?N:[N]};
Qvb=function(N){var b=N.props;N=N.getChildren()[0];return b.when?{when:b.when,children:N}:{isDefault:!0,children:N}};
uVI=function(N){var b=function(){return null};
N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S!=null&&S[WA]&&(S=S.type===_.j_?{isDefault:!0,children:S.children[0]}:{when:S.props.when,children:S.children[0]}),S instanceof fM&&(S=Qvb(S)),S.isDefault)b=S.children;else if(S.when())return S.children;return b};
oyf=function(N){var b=null,S,P={get value(){var K,C;(C=(K=H).validateGetValue)==null||C.call(K);return H.__value},set value(K){var C,G;(G=(C=H).validateSetValue)==null||G.call(C,K);H.__value=K;H.__hasBeenSet=!0}},H=(P.__value=null,P.__hasBeenSet=!1,P.__hasErrored=!1,P.onRender=function(K){if(S&&K!==S){S._disposeRef=void 0;var C;(C=b)==null||C()}S=K;b=N(K)||null},P.onUnmount=function(){var K;
(K=b)==null||K();b=H.value=null},P[_.xyU]=!0,P);
return H};
Xg=function(N){return typeof N==="symbol"};
JwL=function(N){var b=b6s();if(b==null)throw _.i6f.PRIMITIVE_INVALID_HOOK_CALL();var S=b.hookCounter++;b.hooks||(b.hooks=[]);var P=b.hooks;P[S]||(P[S]={key:N,host:b});if(N!==P[S].key){if(b.__type){var H;N=(H=b.__type)==null?void 0:H.name}else N=b instanceof iD?Adp(b.functionComponent):"<"+b.el.tagName.toLowerCase()+">";throw _.i6f.OUT_OF_ORDER_HOOK_CALL(N);}return P[S]};
Uyo=function(N,b){return!N||N.length!==(b==null?void 0:b.length)||N.some(function(S,P){return S!==b[P]})};
Z6u=function(N,b){var S=JwL("onChange"),P=b6s();Uyo(S.deps,b)&&(S.deps=b,S.pendingEffect=N,P.__syncEffects||(P.__syncEffects=[]),P.__syncEffects.push(S))};
_.E2=function(N,b,S){S!=null||(S={});S=S.appContext;var P=!!dA.legacyTriggerSoyRendererEvents;_.Fg.setUp();try{var H=jvE(N,b,S);P&&(b=S,b!=null||(b=_.Bke(document).getAppContext()),b.get(IYb).JSC$29954_getEventTarget().dispatchEvent(new DMI(zMO,N,tl)));_.Fg.log(N);return H}finally{_.Fg.tearDown()}};
jvE=function(N,b,S){var P=EB(function(){var H=kl(Qg);try{return $l(function(){var K=_.Bke(_.hh(N)),C;var G=E0f({rootElement:{value:N},appContext:S||(K==null?void 0:(C=K.getOptionalAppContext)==null?void 0:C.call(K)),dispatcher:K});K=_.aO(G);G=d8(!0);Yl++;try{LM(b(),N),IO(!1)}catch(a){throw IO(!0),a;}finally{d8(G),_.aO(K)}},!1)}catch(K){throw dA.enableContextBasedComponentStacks&&X1(K),K;
}finally{kl(H)}});
N[Awp]=!0;return function(){N.textContent="";P();N[Awp]=!1}};
_.pM=function(N){if(KeU(mb)){var b;(b=dA.handleError)==null||b.call.apply(b,[dA].concat(_.IX(wA(Error("ec")))))}var S=cW,P=jj;eAs({onInitType:Vda,run:function(){if(S&&!S.isDisposed){var H=_.aO(S);try{EB(function(){return void N()},P)}catch(K){throw dA.enableContextBasedComponentStacks&&X1(K),K;
}finally{_.aO(H)}}}})};
Xib=function(N,b){Z6u(function(){return _.fQ(N)},b)};
_.YU=function(N){Ae()?_.pM(function(){_.fQ(N)}):Z6u(function(){return _.fQ(N)},[])};
pis=function(N){var b=[].concat(_.IX(N));N.length=0;N=_.O(b);for(b=N.next();!b.done;b=N.next()){b=b.value;EyO(b);var S=b.pendingEffect;b.pendingEffect=null;if(S=S==null?void 0:S())b.pendingCleanup=S}};
EyO=function(N){var b=N.pendingCleanup;N.pendingCleanup=null;b==null||b()};
YYI=function(N,b){if(Ae())return N();var S=JwL("useMemoInternal");Uyo(S.deps,b)&&(S.deps=b,S.value=N());return S.value};
yw9=function(N,b){return YYI(N,b)};
IVe=function(N){return YYI(function(){return{value:N}},[])};
_.yg=function(N,b){if(!N)return null;N=Object.keys(N);N=_.O(N);for(var S=N.next();!S.done;S=N.next()){S=S.value;var P=S.toLowerCase();if(P.indexOf(b,P.length-b.length)>-1)return S}return null};
_.DH=function(){var N=arguments,b=_.Iu;N.length>1?b[N[0]]=N[1]:N.length===1&&Object.assign(b,N[0])};
_.Vg=function(N,b){return N in _.Iu?_.Iu[N]:b};
_.g8=function(N,b){return!!_.Vg(N,b)};
Dyb=function(N){var b=_.Iu.EXPERIMENT_FLAGS;return b?b[N]:void 0};
gy_=function(N){V0p.forEach(function(b){return b(N)})};
_.$U=function(N){return N&&window.yterr?function(){try{return N.apply(this,arguments)}catch(b){_.e_(b)}}:N};
_.e_=function(N){var b=_.hl("yt.logging.errors.log");b?b(N,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=_.Vg("ERRORS",[]),b.push([N,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.DH("ERRORS",b));gy_(N)};
_.qB=function(N,b,S,P,H){var K=_.hl("yt.logging.errors.log");K?K(N,"WARNING",b,S,P,void 0,H):(K=_.Vg("ERRORS",[]),K.push([N,"WARNING",b,S,P,void 0,H]),_.DH("ERRORS",K))};
$y9=function(N,b){b=N.split(b);for(var S={},P=0,H=b.length;P<H;P++){var K=b[P].split("=");if(K.length===1&&K[0]||K.length===2)try{var C=eMI(K[0]||""),G=eMI(K[1]||"");if(C in S){var a=S[C];Array.isArray(a)?_.IU(a,G):S[C]=[a,G]}else S[C]=G}catch(m){var R=m,n=K[0],d=String($y9);R.args=[{key:n,value:K[1],query:N,method:hML===d?"unchanged":d}];qY9.hasOwnProperty(n)||_.qB(R)}}return S};
wiO=function(N){var b=[];_.Vm.forEach(N,function(S,P){var H=_.w8(P);S=Array.isArray(S)?S:[S];_.NX(S,function(K){K==""?b.push(H):b.push(H+"="+_.w8(K))})});
return b.join("&")};
_.bQ=function(N){N.charAt(0)==="?"&&(N=N.substring(1));return $y9(N,"&")};
_.SU=function(N){return N.indexOf("?")!==-1?(N=(N||"").split("#")[0],N=N.split("?",2),_.bQ(N.length>1?N[1]:N[0])):{}};
_.Pq=function(N,b){return NXf(N,b||{},!0)};
bAU=function(N,b){return NXf(N,b||{},!1)};
NXf=function(N,b,S){var P=N.split("#",2);N=P[0];P=P.length>1?"#"+P[1]:"";var H=N.split("?",2);N=H[0];H=_.bQ(H[1]||"");for(var K in b)if(S||!_.Vm.containsKey(H,K))H[K]=b[K];return _.Hq(N,H)+P};
GW=function(N){if(!b)var b=window.location.href;var S=_.sl(N)[1]||null,P=_.Ol(N);return S&&P?CE(N,b):P?_.Ol(b)===P&&(Number(_.sl(b)[4]||null)||null)===(Number(_.sl(N)[4]||null)||null):!0};
_.PCO=function(N){N=SRa(N);return N===null?!1:N[0]==="com"&&N[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
SRa=function(N){N=_.Ol(N);return N!==null?N.split(".").reverse():null};
eMI=function(N){return N&&N.match(HAa)?N:r7(N)};
_.cq=function(N){return new smY(N)};
_.aN=function(){Kna||(Kna=new vRe);return Kna};
CCE=function(){var N=OAu;return function(){var b=_.aN();if(!b.resolve(_.cq(N))){var S={};b.addProvider((S.provide=N,S.useClass=N,S[RN]=void 0,S))}return b.resolve(N)}};
rZf=function(N){var b=_.Wq,S,P;_.r(function(H){S=_.aN();return(P=S.resolve(_.cq(b)))?(N(P),H.return(Promise.resolve(P))):H.return(S.resolve(new GY_(b)).then(function(K){N(K);return K}))})};
_.T=function(N){N=nE(N);return typeof N==="string"&&N==="false"?!1:!!N};
_.d7=function(N,b){N=nE(N);return N===void 0&&b!==void 0?b:Number(N||0)};
cZ9=function(N){N=nE(N);return Array.isArray(N)?_.gY(N,function(b){return Number(b||0)}):[Number(N||0)]};
_.m6=function(N){N=nE(N);return N!==void 0?String(N):""};
_.kb=function(N){N=nE(N);return Array.isArray(N)?_.gY(N,function(b){return String(b||"")}):[String(N||"")]};
apY=function(){return _.Vg("EXPERIMENTS_TOKEN","")};
nE=function(N){return _.Vg("EXPERIMENT_FLAGS",{})[N]};
Rze=function(){for(var N=[],b=_.Vg("EXPERIMENTS_FORCED_FLAGS",{}),S=_.O(Object.keys(b)),P=S.next();!P.done;P=S.next())P=P.value,N.push({key:P,value:String(b[P])});S=_.Vg("EXPERIMENT_FLAGS",{});P=_.O(Object.keys(S));for(var H=P.next();!H.done;H=P.next())H=H.value,H.startsWith("force_")&&b[H]===void 0&&N.push({key:H,value:String(S[H])});return N};
nRa=function(){if(!Wne)return null;var N=Wne();return"open"in N?N:null};
_.d7Y=function(N){switch(_.TW(N)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.TW=function(N){return N&&"status"in N?N.status:-1};
_.tz=function(N,b){typeof N==="function"&&(N=_.$U(N));return window.setTimeout(N,b)};
_.MX=function(N,b){typeof N==="function"&&(N=_.$U(N));return window.setInterval(N,b)};
_.FQ=function(N){window.clearTimeout(N)};
kYu=function(N){N=_.SU(N);for(var b=_.O(m7U),S=b.next();!S.done;S=b.next())if(N[S.value]!==void 0)return!0;return!1};
Mt_=function(N,b,S,P,H,K,C,G,a){S=S===void 0?"GET":S;P=P===void 0?"":P;G=G===void 0?!1:G;var R=nRa();if(!R)return null;var n=function(){(R&&"readyState"in R?R.readyState:0)===4&&b&&_.$U(b)(R)};
"onloadend"in R?R.addEventListener("loadend",n,!1):R.onreadystatechange=n;_.T("debug_forward_web_query_parameters")&&(N=TXE(N,window.location.search));R.open(S,N,!0);K&&(R.responseType=K);C&&(R.withCredentials=!0);S=S==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(H=tte(N,H))for(var d in H)R.setRequestHeader(d,H[d]),"content-type"===d.toLowerCase()&&(S=!1);S&&R.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a&&"onprogress"in R&&(R.onprogress=function(){a(R.responseText)});
if(G&&"setAttributionReporting"in XMLHttpRequest.prototype){N={eventSourceEligible:!0,triggerEligible:!1};try{R.setAttributionReporting(N)}catch(m){_.qB(m)}}R.send(P);return R};
tte=function(N,b){b=b===void 0?{}:b;var S=GW(N),P=_.Vg("INNERTUBE_CLIENT_NAME"),H=_.T("web_ajax_ignore_global_headers_if_set"),K;for(K in Fns){var C=_.Vg(Fns[K]),G=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||C||(C=_.Vg("VISITOR_DATA"));var a;if(!(a=!C)){if(!(a=S||(_.Ol(N)?!1:!0))){a=N;var R;if(R=_.T("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY"))R=SRa(a),R=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;R&&(a=_.Bq(a)||"",a=a.split("/"),a="/"+(a.length>1?a[1]:""),R=a==="/pagead");a=R?!0:!1}a=!a}a||H&&b[K]!==void 0||P==="TVHTML5_UNPLUGGED"&&G||(b[K]=C)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(S||!_.Ol(N))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(S||!_.Ol(N)){try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(d){}n&&(b["X-YouTube-Time-Zone"]=
n)}document.location.hostname.endsWith("youtubeeducation.com")||!S&&_.Ol(N)||(b["X-YouTube-Ad-Signals"]=wiO(BXa()));return b};
_.lpO=function(N,b){var S=_.Ol(N);_.T("debug_handle_relative_url_for_query_forward_killswitch")||!S&&GW(N)&&(S=document.location.hostname);var P=_.Bq(N);P=(S=S&&(S.endsWith("youtube.com")||S.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!S||P)return N;var H=_.bQ(b),K={};_.NX(m7U,function(C){H[C]&&(K[C]=H[C])});
return bAU(N,K)};
LnL=function(N,b){b.method="POST";b.postParams||(b.postParams={});return _.lQ(N,b)};
fpb=function(N,b){var S=_.Vg("XSRF_FIELD_NAME"),P;b.headers&&(P=b.headers["Content-Type"]);return!b.excludeXsrf&&(!_.Ol(N)||b.withCredentials||_.Ol(N)===document.location.hostname)&&b.method==="POST"&&(!P||P==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[S])};
_.lQ=function(N,b){var S=b.format||"JSON";N=u8o(N,b);var P=QmE(N,b),H=!1,K=x7a(N,function(a){if(!H){H=!0;G&&_.FQ(G);var R=_.d7Y(a),n=null,d=400<=a.status&&a.status<500,m=500<=a.status&&a.status<600;if(R||d||m)n=oRa(N,S,a,b.convertToSafeHtml);R&&(R=iAe(S,a,n));n=n||{};d=b.context||_.Ps;R?b.onSuccess&&b.onSuccess.call(d,a,n):b.onError&&b.onError.call(d,a,n);b.onFinish&&b.onFinish.call(d,a,n)}},b.method,P,b.headers,b.responseType,b.withCredentials,!1,b.onProgress);
P=b.timeout||0;if(b.onTimeout&&P>0){var C=b.onTimeout;var G=_.tz(function(){H||(H=!0,K.abort(),_.FQ(G),C.call(b.context||_.Ps,K))},P)}return K};
u8o=function(N,b){b.includeDomain&&(N=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+N);var S=_.Vg("XSRF_FIELD_NAME");if(b=b.urlParams)b[S]&&delete b[S],N=_.Pq(N,b);return N};
QmE=function(N,b){var S=_.Vg("XSRF_FIELD_NAME"),P=_.Vg("XSRF_TOKEN"),H=b.postBody||"",K=b.postParams;fpb(N,b)&&(K||(K={}),K[S]=P);(_.T("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof H==="string"&&(H=_.bQ(H),_.Vm.extend(H,K),H=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(H):_.LE(H));K=H||K&&!_.Vm.isEmpty(K);!JZI&&K&&b.method!=="POST"&&(JZI=!0,_.e_(Error("Kc")));return H};
oRa=function(N,b,S,P){var H=null;switch(b){case "JSON":try{var K=S.responseText}catch(C){throw P=Error("Lc"),P.params=N,_.qB(P),C;}N=S.getResponseHeader("Content-Type")||"";K&&N.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),H=JSON.parse(K));break;case "XML":if(N=(N=S.responseXML)?U79(N):null)H={},_.NX(N.getElementsByTagName("*"),function(C){H[C.tagName]=ZAf(C)})}P&&jmf(H);
return H};
jmf=function(N){if(_.D_(N))for(var b in N)b==="html_content"||vs(b,"_html")?N[b]=Nt(N[b]):jmf(N[b])};
iAe=function(N,b,S){if(b&&b.status===204)return!0;switch(N){case "JSON":return!!S;case "XML":return Number(S&&S.return_code)===0;case "RAW":return!0;default:return!!S}};
U79=function(N){return N?(N=("responseXML"in N?N.responseXML:N).getElementsByTagName("root"))&&N.length>0?N[0]:null:null};
ZAf=function(N){var b="";_.NX(N.childNodes,function(S){b+=S.nodeValue});
return b};
zzb=function(N){if(N.name==="JavaException")return!0;N=N.stack;return N.includes("chrome://")||N.includes("-extension://")||N.includes("webkit-masked-url://")};
AZs=function(N){if(!N.stack)return!0;var b=!N.stack.includes("\n");return b&&N.stack.includes("ErrorType: ")||b&&N.stack.includes("Anonymous function (Unknown script")||N.stack.toLowerCase()==="not available"||N.fileName==="user-script"||N.fileName.startsWith("user-script:")?!0:!1};
_.uQ=function(N){_.E5.call(this);this.JSC$10755_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!N};
ER9=function(N,b){var S=N.length,P=0,H=function(){return N.charCodeAt(P++)};
do{var K=XNb(H);if(K===Infinity)break;var C=K>>3;switch(K&7){case 0:K=XNb(H);if(C===b)return K;break;case 1:if(C===b)return;P+=8;break;case 2:K=XNb(H);if(C===b)return N.substr(P,K);P+=K;break;case 5:if(C===b)return;P+=4;break;default:return}}while(P<S)};
XNb=function(N){var b=N(),S=b&127;if(b<128)return S;b=N();S|=(b&127)<<7;if(b<128)return S;b=N();S|=(b&127)<<14;if(b<128)return S;b=N();return b<128?S|(b&127)<<21:Infinity};
YRe=function(N,b,S,P){if(N)if(Array.isArray(N)){var H=P;for(P=0;P<N.length&&!(N[P]&&(H+=pNa(P,N[P],b,S),H>500));P++);P=H}else if(typeof N==="object")for(H in N){if(N[H]){var K=H;var C=N[H],G=b,a=S;K=typeof C!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(C=ER9(atob(C.replace(/-/g,"+").replace(/_/g,"/")),2))?pNa(K+".ve",C,G,a):0;P+=K;P+=pNa(H,N[H],b,S);if(P>500)break}}else S[b]=QB(N),P+=S[b].length;else S[b]=QB(N),P+=S[b].length;return P};
pNa=function(N,b,S,P){S+="."+N;N=QB(b);P[S]=N;return S.length+N.length};
QB=function(N){try{return(typeof N==="string"?N:String(JSON.stringify(N))).substr(0,500)}catch(b){return"unable to serialize "+typeof N+" ("+b.message+")"}};
yZf=function(N){switch(N){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.iQ=function(N,b,S,P,H){_.xb.set(N,b,{maxAge:S,path:"/",domain:P===void 0?"youtube.com":P,secure:H===void 0?!1:H})};
_.IpU=function(N,b,S){_.xb.remove(N,b===void 0?"/":b,S===void 0?"youtube.com":S)};
_.Jz=function(){if(_.T("embeds_web_enable_cookie_detection_fix")){if(!_.Ps.navigator.cookieEnabled)return!1}else if(!_.xb.isEnabled())return!1;if(!_.xb.isEmpty())return!0;_.T("embeds_web_enable_cookie_detection_fix")?_.xb.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.xb.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.xb.get("TESTCOOKIESENABLED")!=="1")return!1;_.xb.remove("TESTCOOKIESENABLED");return!0};
D7L=function(){var N=_.Ps.navigator;return N?N.connection:void 0};
VtL=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}};
_.eze=function(){var N=D7L();if(N){var b=gRo[N.type||"unknown"]||"CONN_UNKNOWN";N=gRo[N.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&N!=="CONN_UNKNOWN"&&(b=N);if(b!=="CONN_UNKNOWN")return b;if(N!=="CONN_UNKNOWN")return N}};
hzu=function(){var N=D7L();if(N!=null&&N.effectiveType)return $7L.hasOwnProperty(N.effectiveType)?$7L[N.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Zh=function(){try{return _.Ul(),!0}catch(N){return!1}};
_.Ul=function(N){if(_.Vg("DATASYNC_ID")!==void 0)return _.Vg("DATASYNC_ID");throw new _.jU("Datasync ID not set",N===void 0?"unknown":N);};
_.zW=function(N){this.mechanism=N};
Az=function(N){this.mechanism=N};
XQ=function(N){this.storage_=N;this.cachedIsStorageAvailable_=null};
qRI=function(){var N=null;try{N=_.Ps.localStorage||null}catch(b){}XQ.call(this,N)};
wNO=function(){var N=null;try{N=_.Ps.sessionStorage||null}catch(b){}XQ.call(this,N)};
El=function(N,b){this.mechanism_=N;this.JSC$10858_prefix_=b+"::"};
_.pE=function(N){var b=new qRI;return b.isAvailable()?N?new El(b,N):b:null};
_.Ny_=function(N){var b=new wNO;return b.isAvailable()?N?new El(b,N):b:null};
SIs=function(){var N;return(N=buu())==null?void 0:N.get("LAST_RESULT_ENTRY_KEY",!0)};
_.IN=function(N){PVe||(_.Yb?_.Yb.logError(N):(_.yB.push({type:"ERROR",payload:N}),_.yB.length>10&&_.yB.shift()))};
Dh=function(N,b){PVe||(_.Yb?_.Yb.logEvent(N,b):(_.yB.push({type:"EVENT",eventType:N,payload:b}),_.yB.length>10&&_.yB.shift()))};
VB=function(N){if(N.indexOf(":")>=0)throw Error("Sc");};
g7=function(N){return N.substr(0,N.indexOf(":"))||N};
KaO=function(){return(Huo||spp)&&eU("applewebkit")&&!eU("version")&&(!eU("safari")||eU("gsa/"))};
eU=function(N){var b=_.dI();return b?b.toLowerCase().indexOf(N)>=0:!1};
CVs=function(N,b,S,P){b=g7(b);var H=N instanceof Error?N:Error("Tc`"+N);if(H instanceof $b)return H;N={objectStoreNames:S,dbName:b,dbVersion:P};if(H.name==="QuotaExceededError")return new $b("QUOTA_EXCEEDED",N);if(_.hz&&H.name==="UnknownError")return new $b("QUOTA_MAYBE_EXCEEDED",N);if(H instanceof vGp)return new $b("MISSING_INDEX",Object.assign({},N,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&OuI.some(function(K){return H.message.includes(K)}))return new $b("EXECUTE_TRANSACTION_ON_CLOSED_DB",
N);
if(H.name==="AbortError")return new $b("UNKNOWN_ABORT",N,H.message);H.args=[Object.assign({},N,{name:"IdbError",originalName:H.name})];H.level="WARNING";return H};
qX=function(N,b,S){var P=SIs();return new $b("IDB_NOT_SUPPORTED",{context:{caller:N,publicName:b,version:S,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})};
GLa=function(N){if(!N)throw Error();throw N;};
r0O=function(N){return N};
c0o=function(N,b,S){var P=function(){try{N.removeEventListener("success",H),N.removeEventListener("error",K)}catch(C){}},H=function(){b(N.result);
P()},K=function(){S(N.error);
P()};
N.addEventListener("success",H);N.addEventListener("error",K)};
ab9=function(N){return new Promise(function(b,S){c0o(N,b,S)})};
bS=function(N){return new w7(new NY(function(b,S){c0o(N,b,S)}))};
RV9=function(N,b){return new w7(new NY(function(S,P){var H=function(){var K=N?b(N):null;K?K.then(function(C){N=C;H()},P):S()};
H()}))};
Wae=function(N,b,S){return new Promise(function(P,H){var K=b!==void 0?self.indexedDB.open(N,b):self.indexedDB.open(N);var C=S.blocked,G=S.blocking,a=S.terminated,R=S.upgrade,n=S.closed,d,m=function(){d||(d=new PK(K.result,{closed:n}));return d};
K.addEventListener("upgradeneeded",function(k){try{if(k.newVersion===null)throw Error("Yc");if(K.transaction===null)throw Error("Zc");k.dataLoss&&k.dataLoss!=="none"&&Dh("IDB_DATA_CORRUPTED",{reason:k.dataLossMessage||"unknown reason",dbName:g7(N)});var M=m(),l=new HK(K.transaction);R&&R(M,function(u){return k.oldVersion<u&&k.newVersion>=u},l);
l.done.catch(function(u){H(u)})}catch(u){H(u)}});
K.addEventListener("success",function(){var k=K.result;G&&k.addEventListener("versionchange",function(){G(m())});
k.addEventListener("close",function(){Dh("IDB_UNEXPECTEDLY_CLOSED",{dbName:g7(N),dbVersion:k.version});a&&a()});
P(m())});
K.addEventListener("error",function(){H(K.error)});
C&&K.addEventListener("blocked",function(){C()})})};
nG9=function(N,b,S){S=S===void 0?{}:S;return Wae(N,b,S)};
_.Kh=function(N,b){b=b===void 0?{}:b;var S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return _.u4(C,2),S=self.indexedDB.deleteDatabase(N),P=b,(H=P.blocked)&&S.addEventListener("blocked",function(){H()}),C.yield(ab9(S),4);
if(C.nextAddress!=2)return _.su(C,0);K=_.UE(C);throw CVs(K,N,"",-1);})};
m6e=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.vK(d6I,b),2);S=P.yieldResult;return P.return(_.Ou(S,["databases"],{enableRetries:!0,mode:"readwrite"},function(H){var K=H.objectStore("databases");return K.get(N.actualName).then(function(C){if(C?N.actualName!==C.actualName||N.publicName!==C.publicName||N.userIdentifier!==C.userIdentifier:1)return K.put(N).then(function(){})})}))})};
_.Ch=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)return N?P.yield(_.vK(d6I,b),2):P.return();S=P.yieldResult;return P.return(S.delete("databases",N))})};
_.kLU=function(N,b){var S,P;return _.r(function(H){return H.nextAddress==1?(S=[],H.yield(_.vK(d6I,b),2)):H.nextAddress!=3?(P=H.yieldResult,H.yield(_.Ou(P,["databases"],{enableRetries:!0,mode:"readonly"},function(K){S.length=0;return Gi(K.objectStore("databases"),{},function(C){N(C.getValue())&&S.push(C.getValue());return C.continue()})}),3)):H.return(S)})};
Tye=function(N,b){return _.kLU(function(S){return S.publicName===N&&S.userIdentifier!==void 0},b)};
FaE=function(){var N,b,S,P;return _.r(function(H){switch(H.nextAddress){case 1:N=SIs();if((b=N)==null?0:b.hasSucceededOnce)return H.return(!0);var K;if(K=tsE)K=/WebKit\/([0-9]+)/.exec(_.dI()),K=!!(K&&parseInt(K[1],10)>=600);K&&(K=/WebKit\/([0-9]+)/.exec(_.dI()),K=!(K&&parseInt(K[1],10)>=602));if(K||rk)return H.return(!1);try{if(S=self,!(S.indexedDB&&S.IDBIndex&&S.IDBKeyRange&&S.IDBObjectStore))return H.return(!1)}catch(C){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);
_.u4(H,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return H.yield(m6e(P,MsU),4);case 4:return H.yield(_.Ch("yt-idb-test-do-not-use",MsU),5);case 5:return H.return(!0);case 2:return _.UE(H),H.return(!1)}})};
lb9=function(){if(Byb!==void 0)return Byb;PVe=!0;return Byb=FaE().then(function(N){PVe=!1;var b;if((b=buu())!=null&&b.hasLocalStorage()){var S;b={hasSucceededOnce:((S=SIs())==null?void 0:S.hasSucceededOnce)||N};var P;(P=buu())==null||P.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return N})};
cK=function(){return _.hl("ytglobal.idbToken_")||void 0};
_.RB=function(){var N=cK();return N?Promise.resolve(N):lb9().then(function(b){(b=b?MsU:void 0)&&_.aB("ytglobal.idbToken_",b);return b})};
LaY=function(N){if(!_.Zh())throw N=new $b("AUTH_INVALID",{dbName:N}),_.IN(N),N;var b=_.Ul();return{actualName:N+":"+b,publicName:N,userIdentifier:b}};
fbe=function(N,b,S,P){var H,K,C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:return K=(H=Error().stack)!=null?H:"",n.yield(_.RB(),2);case 2:C=n.yieldResult;if(!C)throw G=qX("openDbImpl",N,b),_.T("ytidb_async_stack_killswitch")||(G.stack=G.stack+"\n"+K.substring(K.indexOf("\n")+1)),_.IN(G),G;VB(N);a=S?{actualName:N,publicName:N,userIdentifier:void 0}:LaY(N);_.u4(n,3);return n.yield(m6e(a,C),5);case 5:return n.yield(nG9(a.actualName,b,P),6);case 6:return n.return(n.yieldResult);case 3:return R=
_.UE(n),_.u4(n,7),n.yield(_.Ch(a.actualName,C),9);case 9:_.su(n,8);break;case 7:_.UE(n);case 8:throw R;}})};
ukf=function(N,b,S){S=S===void 0?{}:S;return fbe(N,b,!1,S)};
Qpp=function(N,b,S){S=S===void 0?{}:S;return fbe(N,b,!0,S)};
x6e=function(N,b){b=b===void 0?{}:b;var S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(_.RB(),2);if(H.nextAddress!=3){S=H.yieldResult;if(!S)return H.return();VB(N);P=LaY(N);return H.yield(_.Kh(P.actualName,b),3)}return H.yield(_.Ch(P.actualName,S),0)})};
oGe=function(N,b,S){N=N.map(function(P){return _.r(function(H){return H.nextAddress==1?H.yield(_.Kh(P.actualName,b),2):H.yield(_.Ch(P.actualName,S),0)})});
return Promise.all(N).then(function(){})};
iuo=function(N){var b=b===void 0?{}:b;var S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(_.RB(),2);if(H.nextAddress!=3){S=H.yieldResult;if(!S)return H.return();VB(N);return H.yield(Tye(N,S),3)}P=H.yieldResult;return H.yield(oGe(P,b,S),0)})};
J0U=function(N,b){b=b===void 0?{}:b;var S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.RB(),2);if(P.nextAddress!=3){S=P.yieldResult;if(!S)return P.return();VB(N);return P.yield(_.Kh(N,b),3)}return P.yield(_.Ch(N,S),0)})};
WK=function(N,b){return U6U(N,b)};
jpb=function(N){return _.vK(Zua(),N)};
zVL=function(N,b,S,P){var H,K,C;return _.r(function(G){switch(G.nextAddress){case 1:return H={config:N,hashData:b,timestamp:P!==void 0?P:(0,_.nh)()},G.yield(jpb(S),2);case 2:return K=G.yieldResult,G.yield(K.clear("hotConfigStore"),3);case 3:return G.yield(K.put("hotConfigStore",H),4);case 4:return C=G.yieldResult,G.return(C)}})};
A0u=function(N,b,S,P,H){var K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:return K={config:N,hashData:b,configData:S,timestamp:H!==void 0?H:(0,_.nh)()},a.yield(jpb(P),2);case 2:return C=a.yieldResult,a.yield(C.clear("coldConfigStore"),3);case 3:return a.yield(C.put("coldConfigStore",K),4);case 4:return G=a.yieldResult,a.return(G)}})};
XU9=function(N){var b,S;return _.r(function(P){return P.nextAddress==1?P.yield(jpb(N),2):P.nextAddress!=3?(b=P.yieldResult,S=void 0,P.yield(_.Ou(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.dk(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){S=K.getValue()})}),3)):P.return(S)})};
EGU=function(N){var b,S;return _.r(function(P){return P.nextAddress==1?P.yield(jpb(N),2):P.nextAddress!=3?(b=P.yieldResult,S=void 0,P.yield(_.Ou(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.dk(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){S=K.getValue()})}),3)):P.return(S)})};
pUu=function(){return _.r(function(N){return N.yield(iuo("ytGcfConfig"),0)})};
YI_=function(){return"INNERTUBE_API_KEY"in _.Iu&&"INNERTUBE_API_VERSION"in _.Iu};
_.mV=function(){return{innertubeApiKey:_.Vg("INNERTUBE_API_KEY"),innertubeApiVersion:_.Vg("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Vg("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Vg("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Vg("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Vg("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.g8("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.g8("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Vg("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.$6f=function(N){var b={client:{hl:N.innertubeContextHostLanguage,gl:N.innertubeContextGeoLocation,clientName:N.innertubeContextClientName,clientVersion:N.innertubeContextClientVersion,configInfo:N.innertubeContextClientConfigInfo}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var S=_.Ps.devicePixelRatio;S&&S!=1&&(b.client.screenDensityFloat=String(S));S=apY();S!==""&&(b.client.experimentsToken=S);S=Rze();S.length>0&&(b.request={internalExperimentFlags:S});y0f(N,void 0,b);
Iba(void 0,b);D6Y(void 0,b);VsU(N,void 0,b);gGI(void 0,b);_.T("start_client_gcf")&&eVp(void 0,b);_.Vg("DELEGATED_SESSION_ID")&&!_.T("pageid_as_header_web")&&(b.user={onBehalfOfUser:_.Vg("DELEGATED_SESSION_ID")});!_.T("fill_delegate_context_in_gel_killswitch")&&(N=_.Vg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:N}));N=_.Vg("INNERTUBE_CONTEXT");var P;if(_.T("enable_persistent_device_token")&&(N==null?0:(P=N.client)==null?0:P.rolloutToken)){var H;
b.client.rolloutToken=N==null?void 0:(H=N.client)==null?void 0:H.rolloutToken}P=Object;H=P.assign;N=b.client;S={};for(var K=_.O(Object.entries(_.bQ(_.Vg("DEVICE","")))),C=K.next();!C.done;C=K.next()){var G=_.O(C.value);C=G.next().value;G=G.next().value;C==="cbrand"?S.deviceMake=G:C==="cmodel"?S.deviceModel=G:C==="cbr"?S.browserName=G:C==="cbrver"?S.browserVersion=G:C==="cos"?S.osName=G:C==="cosver"?S.osVersion=G:C==="cplatform"&&(S.platform=G)}b.client=H.call(P,N,S);return b};
y0f=function(N,b,S){N=N.innertubeContextClientName;if(N==="WEB"||N==="MWEB"||N===1||N===2)if(b){S=_.k0(b,hVU,96)||new hVU;var P=qIe();P=Object.keys(wUE).indexOf(P);P=P===-1?null:P;P!==null&&_.Ti(S,3,P);_.xI(b,96,S)}else S&&(S.client.mainAppWebInfo=(P=S.client.mainAppWebInfo)!=null?P:{},S.client.mainAppWebInfo.webDisplayMode=qIe())};
Iba=function(N,b){var S=_.hl("yt.embedded_player.embed_url");S&&(N?(b=_.k0(N,NQb,7)||new NQb,_.En(b,4,S),_.xI(N,7,b)):b&&(b.thirdParty={embedUrl:S}))};
D6Y=function(N,b){var S;if(_.T("web_log_memory_total_kbytes")&&((S=_.Ps.navigator)==null?0:S.deviceMemory)){var P;S=(P=_.Ps.navigator)==null?void 0:P.deviceMemory;N?_.t2(N,95,R6(S*1E6)):b&&(b.client.memoryTotalKbytes=""+S*1E6)}};
VsU=function(N,b,S){if(N.appInstallData)if(b){var P;S=(P=_.k0(b,MY,62))!=null?P:new MY;_.En(S,6,N.appInstallData);_.xI(b,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},S.client.configInfo.appInstallData=N.appInstallData)};
gGI=function(N,b){var S=_.eze();S&&(N?_.Ti(N,61,bXa[S]):b&&(b.client.connectionType=S));_.T("web_log_effective_connection_type")&&(S=hzu())&&(N?_.Ti(N,94,SKU[S]):b&&(b.client.effectiveConnectionType=S))};
_.s3a=function(N,b,S){S=S===void 0?{}:S;var P={};_.Vg("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":_.Vg("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":S.visitorData||_.Vg("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return P;b=S.authorization||_.Vg("AUTHORIZATION");b||(N?b="Bearer "+_.hl("gapi.auth.getToken")().access_token:(P1Y.instance||(P1Y.instance=new P1Y),N=HXO(),_.T("pageid_as_header_web")||delete N["X-Goog-PageId"],P=Object.assign({},P,N)));b&&(P.Authorization=b);return P};
eVp=function(N,b){var S=KyI();if(S){var P=S.coldConfigData,H=S.coldHashData;S=S.hotHashData;if(N){var K;b=(K=_.k0(N,MY,62))!=null?K:new MY;P=_.En(b,1,P);_.En(P,3,H).setHotHashData(S);_.xI(N,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},P&&(b.client.configInfo.coldConfigData=P),H&&(b.client.configInfo.coldHashData=H),S&&(b.client.configInfo.hotHashData=S))}};
Fn=function(N){for(var b=N.length;--b>=0;)N[b]=0};
vnE=function(N,b,S,P,H){this.static_tree=N;this.extra_bits=b;this.extra_base=S;this.elems=P;this.max_length=H;this.has_stree=N&&N.length};
OXO=function(N,b){this.dyn_tree=N;this.max_code=0;this.stat_desc=b};
BK=function(N,b){N.pending_buf[N.pending++]=b&255;N.pending_buf[N.pending++]=b>>>8&255};
lS=function(N,b,S){N.bi_valid>16-S?(N.bi_buf|=b<<N.bi_valid&65535,BK(N,N.bi_buf),N.bi_buf=b>>16-N.bi_valid,N.bi_valid+=S-16):(N.bi_buf|=b<<N.bi_valid&65535,N.bi_valid+=S)};
Lh=function(N,b,S){lS(N,S[b*2],S[b*2+1])};
C1s=function(N,b){var S=0;do S|=N&1,N>>>=1,S<<=1;while(--b>0);return S>>>1};
GBo=function(N,b,S){var P=Array(16),H=0,K;for(K=1;K<=15;K++)P[K]=H=H+S[K-1]<<1;for(S=0;S<=b;S++)H=N[S*2+1],H!==0&&(N[S*2]=C1s(P[H]++,H))};
rse=function(N){var b;for(b=0;b<286;b++)N.dyn_ltree[b*2]=0;for(b=0;b<30;b++)N.dyn_dtree[b*2]=0;for(b=0;b<19;b++)N.bl_tree[b*2]=0;N.dyn_ltree[512]=1;N.opt_len=N.static_len=0;N.last_lit=N.matches=0};
csI=function(N){N.bi_valid>8?BK(N,N.bi_buf):N.bi_valid>0&&(N.pending_buf[N.pending++]=N.bi_buf);N.bi_buf=0;N.bi_valid=0};
aKp=function(N,b,S){csI(N);BK(N,S);BK(N,~S);fh.arraySet(N.pending_buf,N.window,b,S,N.pending);N.pending+=S};
RCp=function(N,b,S,P){var H=b*2,K=S*2;return N[H]<N[K]||N[H]===N[K]&&P[b]<=P[S]};
Wyu=function(N,b,S){for(var P=N.heap[S],H=S<<1;H<=N.heap_len;){H<N.heap_len&&RCp(b,N.heap[H+1],N.heap[H],N.depth)&&H++;if(RCp(b,P,N.heap[H],N.depth))break;N.heap[S]=N.heap[H];S=H;H<<=1}N.heap[S]=P};
TQE=function(N,b,S){var P=0;if(N.last_lit!==0){do{var H=N.pending_buf[N.d_buf+P*2]<<8|N.pending_buf[N.d_buf+P*2+1];var K=N.pending_buf[N.l_buf+P];P++;if(H===0)Lh(N,K,b);else{var C=uS[K];Lh(N,C+256+1,b);var G=nn_[C];G!==0&&(K-=dn9[C],lS(N,K,G));H--;C=H<256?Qb[H]:Qb[256+(H>>>7)];Lh(N,C,S);G=mnf[C];G!==0&&(H-=kBf[C],lS(N,H,G))}}while(P<N.last_lit)}Lh(N,256,b)};
tZE=function(N,b){var S=b.dyn_tree,P=b.stat_desc.static_tree,H=b.stat_desc.has_stree,K=b.stat_desc.elems,C,G=-1;N.heap_len=0;N.heap_max=573;for(C=0;C<K;C++)S[C*2]!==0?(N.heap[++N.heap_len]=G=C,N.depth[C]=0):S[C*2+1]=0;for(;N.heap_len<2;){var a=N.heap[++N.heap_len]=G<2?++G:0;S[a*2]=1;N.depth[a]=0;N.opt_len--;H&&(N.static_len-=P[a*2+1])}b.max_code=G;for(C=N.heap_len>>1;C>=1;C--)Wyu(N,S,C);a=K;do C=N.heap[1],N.heap[1]=N.heap[N.heap_len--],Wyu(N,S,1),P=N.heap[1],N.heap[--N.heap_max]=C,N.heap[--N.heap_max]=
P,S[a*2]=S[C*2]+S[P*2],N.depth[a]=(N.depth[C]>=N.depth[P]?N.depth[C]:N.depth[P])+1,S[C*2+1]=S[P*2+1]=a,N.heap[1]=a++,Wyu(N,S,1);while(N.heap_len>=2);N.heap[--N.heap_max]=N.heap[1];C=b.dyn_tree;a=b.max_code;P=b.stat_desc.static_tree;H=b.stat_desc.has_stree;K=b.stat_desc.extra_bits;var R=b.stat_desc.extra_base,n=b.stat_desc.max_length,d,m=0;for(d=0;d<=15;d++)N.bl_count[d]=0;C[N.heap[N.heap_max]*2+1]=0;for(b=N.heap_max+1;b<573;b++){var k=N.heap[b];d=C[C[k*2+1]*2+1]+1;d>n&&(d=n,m++);C[k*2+1]=d;if(!(k>
a)){N.bl_count[d]++;var M=0;k>=R&&(M=K[k-R]);var l=C[k*2];N.opt_len+=l*(d+M);H&&(N.static_len+=l*(P[k*2+1]+M))}}if(m!==0){do{for(d=n-1;N.bl_count[d]===0;)d--;N.bl_count[d]--;N.bl_count[d+1]+=2;N.bl_count[n]--;m-=2}while(m>0);for(d=n;d!==0;d--)for(k=N.bl_count[d];k!==0;)P=N.heap[--b],P>a||(C[P*2+1]!==d&&(N.opt_len+=(d-C[P*2+1])*C[P*2],C[P*2+1]=d),k--)}GBo(S,G,N.bl_count)};
MZ_=function(N,b,S){var P,H=-1,K=b[1],C=0,G=7,a=4;K===0&&(G=138,a=3);b[(S+1)*2+1]=65535;for(P=0;P<=S;P++){var R=K;K=b[(P+1)*2+1];++C<G&&R===K||(C<a?N.bl_tree[R*2]+=C:R!==0?(R!==H&&N.bl_tree[R*2]++,N.bl_tree[32]++):C<=10?N.bl_tree[34]++:N.bl_tree[36]++,C=0,H=R,K===0?(G=138,a=3):R===K?(G=6,a=3):(G=7,a=4))}};
Fyf=function(N,b,S){var P,H=-1,K=b[1],C=0,G=7,a=4;K===0&&(G=138,a=3);for(P=0;P<=S;P++){var R=K;K=b[(P+1)*2+1];if(!(++C<G&&R===K)){if(C<a){do Lh(N,R,N.bl_tree);while(--C!==0)}else R!==0?(R!==H&&(Lh(N,R,N.bl_tree),C--),Lh(N,16,N.bl_tree),lS(N,C-3,2)):C<=10?(Lh(N,17,N.bl_tree),lS(N,C-3,3)):(Lh(N,18,N.bl_tree),lS(N,C-11,7));C=0;H=R;K===0?(G=138,a=3):R===K?(G=6,a=3):(G=7,a=4)}}};
BQe=function(N){var b=4093624447,S;for(S=0;S<=31;S++,b>>>=1)if(b&1&&N.dyn_ltree[S*2]!==0)return 0;if(N.dyn_ltree[18]!==0||N.dyn_ltree[20]!==0||N.dyn_ltree[26]!==0)return 1;for(S=32;S<256;S++)if(N.dyn_ltree[S*2]!==0)return 1;return 0};
x0=function(N,b,S){N.pending_buf[N.d_buf+N.last_lit*2]=b>>>8&255;N.pending_buf[N.d_buf+N.last_lit*2+1]=b&255;N.pending_buf[N.l_buf+N.last_lit]=S&255;N.last_lit++;b===0?N.dyn_ltree[S*2]++:(N.matches++,b--,N.dyn_ltree[(uS[S]+256+1)*2]++,N.dyn_dtree[(b<256?Qb[b]:Qb[256+(b>>>7)])*2]++);return N.last_lit===N.lit_bufsize-1};
iS=function(N,b){N.msg=oB[b];return b};
J2=function(N){for(var b=N.length;--b>=0;)N[b]=0};
Uu=function(N){var b=N.state,S=b.pending;S>N.avail_out&&(S=N.avail_out);S!==0&&(fh.arraySet(N.output,b.pending_buf,b.pending_out,S,N.next_out),N.next_out+=S,b.pending_out+=S,N.total_out+=S,N.avail_out-=S,b.pending-=S,b.pending===0&&(b.pending_out=0))};
zi=function(N,b){var S=N.block_start>=0?N.block_start:-1,P=N.strstart-N.block_start,H=0;if(N.level>0){N.strm.data_type===2&&(N.strm.data_type=BQe(N));tZE(N,N.l_desc);tZE(N,N.d_desc);MZ_(N,N.dyn_ltree,N.l_desc.max_code);MZ_(N,N.dyn_dtree,N.d_desc.max_code);tZE(N,N.bl_desc);for(H=18;H>=3&&N.bl_tree[lKI[H]*2+1]===0;H--);N.opt_len+=3*(H+1)+5+5+4;var K=N.opt_len+3+7>>>3;var C=N.static_len+3+7>>>3;C<=K&&(K=C)}else K=C=P+5;if(P+4<=K&&S!==-1)lS(N,b?1:0,3),aKp(N,S,P);else if(N.strategy===4||C===K)lS(N,2+(b?
1:0),3),TQE(N,Zj,jH);else{lS(N,4+(b?1:0),3);S=N.l_desc.max_code+1;P=N.d_desc.max_code+1;H+=1;lS(N,S-257,5);lS(N,P-1,5);lS(N,H-4,4);for(K=0;K<H;K++)lS(N,N.bl_tree[lKI[K]*2+1],3);Fyf(N,N.dyn_ltree,S-1);Fyf(N,N.dyn_dtree,P-1);TQE(N,N.dyn_ltree,N.dyn_dtree)}rse(N);b&&csI(N);N.block_start=N.strstart;Uu(N.strm)};
A2=function(N,b){N.pending_buf[N.pending++]=b};
Xn=function(N,b){N.pending_buf[N.pending++]=b>>>8&255;N.pending_buf[N.pending++]=b&255};
Lyb=function(N,b){var S=N.max_chain_length,P=N.strstart,H=N.prev_length,K=N.nice_match,C=N.strstart>N.w_size-262?N.strstart-(N.w_size-262):0,G=N.window,a=N.w_mask,R=N.prev,n=N.strstart+258,d=G[P+H-1],m=G[P+H];N.prev_length>=N.good_match&&(S>>=2);K>N.lookahead&&(K=N.lookahead);do{var k=b;if(G[k+H]===m&&G[k+H-1]===d&&G[k]===G[P]&&G[++k]===G[P+1]){P+=2;for(k++;G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&G[++P]===G[++k]&&P<n;);
k=258-(n-P);P=n-258;if(k>H){N.match_start=b;H=k;if(k>=K)break;d=G[P+H-1];m=G[P+H]}}}while((b=R[b&a])>C&&--S!==0);return H<=N.lookahead?H:N.lookahead};
ph=function(N){var b=N.w_size,S;do{var P=N.window_size-N.lookahead-N.strstart;if(N.strstart>=b+(b-262)){fh.arraySet(N.window,N.window,b,b,0);N.match_start-=b;N.strstart-=b;N.block_start-=b;var H=S=N.hash_size;do{var K=N.head[--H];N.head[H]=K>=b?K-b:0}while(--S);H=S=b;do K=N.prev[--H],N.prev[H]=K>=b?K-b:0;while(--S);P+=b}if(N.strm.avail_in===0)break;H=N.strm;S=N.window;K=N.strstart+N.lookahead;var C=H.avail_in;C>P&&(C=P);C===0?S=0:(H.avail_in-=C,fh.arraySet(S,H.input,H.next_in,C,K),H.state.wrap===
1?H.adler=fKL(H.adler,S,C,K):H.state.wrap===2&&(H.adler=Eu(H.adler,S,C,K)),H.next_in+=C,H.total_in+=C,S=C);N.lookahead+=S;if(N.lookahead+N.insert>=3)for(P=N.strstart-N.insert,N.ins_h=N.window[P],N.ins_h=(N.ins_h<<N.hash_shift^N.window[P+1])&N.hash_mask;N.insert&&!(N.ins_h=(N.ins_h<<N.hash_shift^N.window[P+3-1])&N.hash_mask,N.prev[P&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=P,P++,N.insert--,N.lookahead+N.insert<3););}while(N.lookahead<262&&N.strm.avail_in!==0)};
u69=function(N,b){for(var S;;){if(N.lookahead<262){ph(N);if(N.lookahead<262&&b===0)return 1;if(N.lookahead===0)break}S=0;N.lookahead>=3&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,S=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);S!==0&&N.strstart-S<=N.w_size-262&&(N.match_length=Lyb(N,S));if(N.match_length>=3)if(S=x0(N,N.strstart-N.match_start,N.match_length-3),N.lookahead-=N.match_length,N.match_length<=N.max_lazy_match&&N.lookahead>=3){N.match_length--;
do N.strstart++,N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart;while(--N.match_length!==0);N.strstart++}else N.strstart+=N.match_length,N.match_length=0,N.ins_h=N.window[N.strstart],N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+1])&N.hash_mask;else S=x0(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++;if(S&&(zi(N,!1),N.strm.avail_out===0))return 1}N.insert=N.strstart<2?N.strstart:2;return b===4?(zi(N,
!0),N.strm.avail_out===0?3:4):N.last_lit&&(zi(N,!1),N.strm.avail_out===0)?1:2};
Y0=function(N,b){for(var S,P;;){if(N.lookahead<262){ph(N);if(N.lookahead<262&&b===0)return 1;if(N.lookahead===0)break}S=0;N.lookahead>=3&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,S=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);N.prev_length=N.match_length;N.prev_match=N.match_start;N.match_length=2;S!==0&&N.prev_length<N.max_lazy_match&&N.strstart-S<=N.w_size-262&&(N.match_length=Lyb(N,S),N.match_length<=5&&(N.strategy===1||N.match_length===3&&
N.strstart-N.match_start>4096)&&(N.match_length=2));if(N.prev_length>=3&&N.match_length<=N.prev_length){P=N.strstart+N.lookahead-3;S=x0(N,N.strstart-1-N.prev_match,N.prev_length-3);N.lookahead-=N.prev_length-1;N.prev_length-=2;do++N.strstart<=P&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);while(--N.prev_length!==0);N.match_available=0;N.match_length=2;N.strstart++;if(S&&(zi(N,!1),N.strm.avail_out===0))return 1}else if(N.match_available){if((S=
x0(N,0,N.window[N.strstart-1]))&&zi(N,!1),N.strstart++,N.lookahead--,N.strm.avail_out===0)return 1}else N.match_available=1,N.strstart++,N.lookahead--}N.match_available&&(x0(N,0,N.window[N.strstart-1]),N.match_available=0);N.insert=N.strstart<2?N.strstart:2;return b===4?(zi(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(zi(N,!1),N.strm.avail_out===0)?1:2};
Q3_=function(N,b){for(var S,P,H,K=N.window;;){if(N.lookahead<=258){ph(N);if(N.lookahead<=258&&b===0)return 1;if(N.lookahead===0)break}N.match_length=0;if(N.lookahead>=3&&N.strstart>0&&(P=N.strstart-1,S=K[P],S===K[++P]&&S===K[++P]&&S===K[++P])){for(H=N.strstart+258;S===K[++P]&&S===K[++P]&&S===K[++P]&&S===K[++P]&&S===K[++P]&&S===K[++P]&&S===K[++P]&&S===K[++P]&&P<H;);N.match_length=258-(H-P);N.match_length>N.lookahead&&(N.match_length=N.lookahead)}N.match_length>=3?(S=x0(N,1,N.match_length-3),N.lookahead-=
N.match_length,N.strstart+=N.match_length,N.match_length=0):(S=x0(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++);if(S&&(zi(N,!1),N.strm.avail_out===0))return 1}N.insert=0;return b===4?(zi(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(zi(N,!1),N.strm.avail_out===0)?1:2};
xnu=function(N,b){for(var S;;){if(N.lookahead===0&&(ph(N),N.lookahead===0)){if(b===0)return 1;break}N.match_length=0;S=x0(N,0,N.window[N.strstart]);N.lookahead--;N.strstart++;if(S&&(zi(N,!1),N.strm.avail_out===0))return 1}N.insert=0;return b===4?(zi(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(zi(N,!1),N.strm.avail_out===0)?1:2};
yb=function(N,b,S,P,H){this.good_length=N;this.max_lazy=b;this.nice_length=S;this.max_chain=P;this.func=H};
onI=function(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=
this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new fh.Buf16(1146);this.dyn_dtree=new fh.Buf16(122);this.bl_tree=new fh.Buf16(78);J2(this.dyn_ltree);J2(this.dyn_dtree);J2(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new fh.Buf16(16);this.heap=new fh.Buf16(573);J2(this.heap);this.heap_max=this.heap_len=0;this.depth=new fh.Buf16(573);J2(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=
this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0};
iX9=function(N,b){if(!N||!N.state||b>5||b<0)return N?iS(N,-2):-2;var S=N.state;if(!N.output||!N.input&&N.avail_in!==0||S.status===666&&b!==4)return iS(N,N.avail_out===0?-5:-2);S.strm=N;var P=S.last_flush;S.last_flush=b;if(S.status===42)if(S.wrap===2)N.adler=0,A2(S,31),A2(S,139),A2(S,8),S.gzhead?(A2(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),A2(S,S.gzhead.time&255),A2(S,S.gzhead.time>>8&255),A2(S,S.gzhead.time>>16&255),A2(S,S.gzhead.time>>
24&255),A2(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),A2(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(A2(S,S.gzhead.extra.length&255),A2(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(N.adler=Eu(N.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(A2(S,0),A2(S,0),A2(S,0),A2(S,0),A2(S,0),A2(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),A2(S,3),S.status=113);else{var H=8+(S.w_bits-8<<4)<<8;H|=(S.strategy>=2||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6;S.strstart!==0&&(H|=
32);S.status=113;Xn(S,H+(31-H%31));S.strstart!==0&&(Xn(S,N.adler>>>16),Xn(S,N.adler&65535));N.adler=1}if(S.status===69)if(S.gzhead.extra){for(H=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H)),Uu(N),H=S.pending,S.pending!==S.pending_buf_size));)A2(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H));S.gzindex===S.gzhead.extra.length&&
(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){H=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H)),Uu(N),H=S.pending,S.pending===S.pending_buf_size)){var K=1;break}K=S.gzindex<S.gzhead.name.length?S.gzhead.name.charCodeAt(S.gzindex++)&255:0;A2(S,K)}while(K!==0);S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H));K===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===
91)if(S.gzhead.comment){H=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H)),Uu(N),H=S.pending,S.pending===S.pending_buf_size)){K=1;break}K=S.gzindex<S.gzhead.comment.length?S.gzhead.comment.charCodeAt(S.gzindex++)&255:0;A2(S,K)}while(K!==0);S.gzhead.hcrc&&S.pending>H&&(N.adler=Eu(N.adler,S.pending_buf,S.pending-H,H));K===0&&(S.status=103)}else S.status=103;S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&Uu(N),
S.pending+2<=S.pending_buf_size&&(A2(S,N.adler&255),A2(S,N.adler>>8&255),N.adler=0,S.status=113)):S.status=113);if(S.pending!==0){if(Uu(N),N.avail_out===0)return S.last_flush=-1,0}else if(N.avail_in===0&&(b<<1)-(b>4?9:0)<=(P<<1)-(P>4?9:0)&&b!==4)return iS(N,-5);if(S.status===666&&N.avail_in!==0)return iS(N,-5);if(N.avail_in!==0||S.lookahead!==0||b!==0&&S.status!==666){P=S.strategy===2?xnu(S,b):S.strategy===3?Q3_(S,b):IB[S.level].func(S,b);if(P===3||P===4)S.status=666;if(P===1||P===3)return N.avail_out===
0&&(S.last_flush=-1),0;if(P===2&&(b===1?(lS(S,2,3),Lh(S,256,Zj),S.bi_valid===16?(BK(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):S.bi_valid>=8&&(S.pending_buf[S.pending++]=S.bi_buf&255,S.bi_buf>>=8,S.bi_valid-=8)):b!==5&&(lS(S,0,3),aKp(S,0,0),b===3&&(J2(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),Uu(N),N.avail_out===0))return S.last_flush=-1,0}if(b!==4)return 0;if(S.wrap<=0)return 1;S.wrap===2?(A2(S,N.adler&255),A2(S,N.adler>>8&255),A2(S,N.adler>>16&255),A2(S,N.adler>>24&255),A2(S,
N.total_in&255),A2(S,N.total_in>>8&255),A2(S,N.total_in>>16&255),A2(S,N.total_in>>24&255)):(Xn(S,N.adler>>>16),Xn(S,N.adler&65535));Uu(N);S.wrap>0&&(S.wrap=-S.wrap);return S.pending!==0?0:1};
Jsu=function(N){if(!(this instanceof Jsu))return new Jsu(N);N=this.options=fh.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},N||{});N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Unf;this.strm.avail_out=0;var b=this.strm;var S=N.level,P=N.method,H=N.windowBits,K=N.memLevel,C=N.strategy;if(b){var G=1;S===-1&&(S=6);H<0?(G=0,H=-H):H>15&&
(G=2,H-=16);if(K<1||K>9||P!==8||H<8||H>15||S<0||S>9||C<0||C>4)b=iS(b,-2);else{H===8&&(H=9);var a=new onI;b.state=a;a.strm=b;a.wrap=G;a.gzhead=null;a.w_bits=H;a.w_size=1<<a.w_bits;a.w_mask=a.w_size-1;a.hash_bits=K+7;a.hash_size=1<<a.hash_bits;a.hash_mask=a.hash_size-1;a.hash_shift=~~((a.hash_bits+3-1)/3);a.window=new fh.Buf8(a.w_size*2);a.head=new fh.Buf16(a.hash_size);a.prev=new fh.Buf16(a.w_size);a.lit_bufsize=1<<K+6;a.pending_buf_size=a.lit_bufsize*4;a.pending_buf=new fh.Buf8(a.pending_buf_size);
a.d_buf=a.lit_bufsize;a.l_buf=3*a.lit_bufsize;a.level=S;a.strategy=C;a.method=P;if(b&&b.state){b.total_in=b.total_out=0;b.data_type=2;S=b.state;S.pending=0;S.pending_out=0;S.wrap<0&&(S.wrap=-S.wrap);S.status=S.wrap?42:113;b.adler=S.wrap===2?0:1;S.last_flush=0;if(!ZXf){P=Array(16);for(K=C=0;K<28;K++)for(dn9[K]=C,H=0;H<1<<nn_[K];H++)uS[C++]=K;uS[C-1]=K;for(K=C=0;K<16;K++)for(kBf[K]=C,H=0;H<1<<mnf[K];H++)Qb[C++]=K;for(C>>=7;K<30;K++)for(kBf[K]=C<<7,H=0;H<1<<mnf[K]-7;H++)Qb[256+C++]=K;for(H=0;H<=15;H++)P[H]=
0;for(H=0;H<=143;)Zj[H*2+1]=8,H++,P[8]++;for(;H<=255;)Zj[H*2+1]=9,H++,P[9]++;for(;H<=279;)Zj[H*2+1]=7,H++,P[7]++;for(;H<=287;)Zj[H*2+1]=8,H++,P[8]++;GBo(Zj,287,P);for(H=0;H<30;H++)jH[H*2+1]=5,jH[H*2]=C1s(H,5);j3I=new vnE(Zj,nn_,257,286,15);zCe=new vnE(jH,mnf,0,30,15);Asp=new vnE([],XdO,0,19,7);ZXf=!0}S.l_desc=new OXO(S.dyn_ltree,j3I);S.d_desc=new OXO(S.dyn_dtree,zCe);S.bl_desc=new OXO(S.bl_tree,Asp);S.bi_buf=0;S.bi_valid=0;rse(S);S=0}else S=iS(b,-2);S===0&&(b=b.state,b.window_size=2*b.w_size,J2(b.head),
b.max_lazy_match=IB[b.level].max_lazy,b.good_match=IB[b.level].good_length,b.nice_match=IB[b.level].nice_length,b.max_chain_length=IB[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0);b=S}}else b=-2;if(b!==0)throw Error(oB[b]);N.header&&(b=this.strm)&&b.state&&b.state.wrap===2&&(b.state.gzhead=N.header);if(N.dictionary){var R;typeof N.dictionary==="string"?R=EnO(N.dictionary):pde.call(N.dictionary)==="[object ArrayBuffer]"?
R=new Uint8Array(N.dictionary):R=N.dictionary;N=this.strm;K=R;C=K.length;if(N&&N.state)if(R=N.state,b=R.wrap,b===2||b===1&&R.status!==42||R.lookahead)b=-2;else{b===1&&(N.adler=fKL(N.adler,K,C,0));R.wrap=0;C>=R.w_size&&(b===0&&(J2(R.head),R.strstart=0,R.block_start=0,R.insert=0),S=new fh.Buf8(R.w_size),fh.arraySet(S,K,C-R.w_size,R.w_size,0),K=S,C=R.w_size);S=N.avail_in;P=N.next_in;H=N.input;N.avail_in=C;N.next_in=0;N.input=K;for(ph(R);R.lookahead>=3;){K=R.strstart;C=R.lookahead-2;do R.ins_h=(R.ins_h<<
R.hash_shift^R.window[K+3-1])&R.hash_mask,R.prev[K&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=K,K++;while(--C);R.strstart=K;R.lookahead=2;ph(R)}R.strstart+=R.lookahead;R.block_start=R.strstart;R.insert=R.lookahead;R.lookahead=0;R.match_length=R.prev_length=2;R.match_available=0;N.next_in=P;N.input=H;N.avail_in=S;R.wrap=b;b=0}else b=-2;if(b!==0)throw Error(oB[b]);this._dict_set=!0}};
YKu=function(N,b){b=b||{};b.gzip=!0;b=new Jsu(b);b.push(N,!0);if(b.err)throw b.msg||oB[b.err];return b.result};
IKO=function(N,b){var S=ysY();S&&S.publish.call(S,N.toString(),N,b)};
$no=function(N,b,S){var P=ysY();if(!P)return 0;var H=P.subscribe(N.toString(),function(K,C){var G=_.hl("ytPubsub2Pubsub2SkipSubKey");G&&G==H||(G=function(){if(DnE[H])try{if(C&&N instanceof VZb&&N!=K)try{var a=N.dataClass,R=C;if(!R.args||!R.version)throw Error("ad");try{if(!a.version_){var n=new a;a.version_=n.version}var d=a.version_}catch(m){}if(!d||R.version!=d)throw Error("bd");try{C=Reflect.construct(a,_.pa(R.args))}catch(m){throw m.message="yt.pubsub2.Data.deserialize(): "+m.message,m;}}catch(m){throw m.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+N.toString()+": "+m.message,m;}b.call(S||window,C)}catch(m){_.e_(m)}},gns[N.toString()]?_.hl("yt.scheduler.instance")?_.Dj.addLowPriorityJob(G):_.tz(G,0):G())});
DnE[H]=!0;eCp[N.toString()]||(eCp[N.toString()]=[]);eCp[N.toString()].push(H);return H};
NqU=function(){var N=hCY,b=$no(qKe,function(S){N.apply(void 0,arguments);wd_(b)});
return b};
wd_=function(N){var b=ysY();b&&(typeof N==="number"&&(N=[N]),_.NX(N,function(S){b.unsubscribeByKey(S);delete DnE[S]}))};
ysY=function(){return _.hl("ytPubsub2Pubsub2Instance")};
b3E=function(N,b,S){S=S===void 0?{sampleRate:.1}:S;Math.random()<Math.min(.02,S.sampleRate/100)&&IKO("meta_logging_csi_event",{timerName:N,timelineData:b})};
_.Sjp=function(N){return N?(N=N.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Cg(N):null:null};
_.Vb=function(N){return N?(N=N.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.ZB(N):null:null};
H3U=function(){PIU||(PIU=_.Vb(_.Vg("WORKER_SERIALIZATION_URL")));return PIU||void 0};
_.KdO=function(){var N=H3U();sA_||N===void 0||(sA_=ldo(N));return sA_};
_.vqa=function(){return typeof Worker==="function"&&H3U()?!0:!1};
_.r_u=function(){if(_.vqa()&&!O3E){var N=function(S){S=S.data;if(S.op==="gzippedGelBatch"){var P=CIs.get(S.key);P&&(Gds(S.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),CIs.delete(S.key))}},b=_.KdO();
b&&(b.addEventListener("message",N),b.onerror=function(){CIs.clear()},O3E=!0)}};
mIo=function(N,b,S,P,H){H=H===void 0?!1:H;var K={startTime:(0,_.nh)(),ticks:{},infos:{}};if(gk)try{var C=c_s(b);if(C!=null&&(C>aL9||C<RLa))P(N,S);else{if(_.T("gzip_gel_with_worker")&&(_.T("initial_gzip_use_main_thread")&&!Wdb||!_.T("initial_gzip_use_main_thread"))){O3E||_.r_u();var G=_.KdO();if(G&&!H){CIs.set(nqE,{latencyPayload:K,url:N,options:S,sendFn:P});G.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:nqE});nqE++;return}}var a=YKu(dIY(b));Gds(a,K,N,S,P)}}catch(R){_.qB(R),P(N,S)}else P(N,
S)};
Gds=function(N,b,S,P,H){Wdb=!1;var K=(0,_.nh)();b.ticks.gelc=K;eH++;_.T("disable_compression_due_to_performance_degredation")&&K-b.startTime>=kdp&&(Tqs++,gk=!1);t79(b);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=N;P.postParams=void 0;H(S,P)};
Fds=function(N){var b=b===void 0?!1:b;var S=S===void 0?!1:S;var P=(0,_.nh)(),H={startTime:P,ticks:{},infos:{}},K=b?_.hl("yt.logging.gzipForFetch",!1):!0;if(gk&&K){if(!N.body)return N;try{var C=S?N.body:typeof N.body==="string"?N.body:JSON.stringify(N.body);K=C;if(!S&&typeof C==="string"){var G=c_s(C);if(G!=null&&(G>aL9||G<RLa))return N;S=b?{level:1}:void 0;K=YKu(dIY(C),S);var a=(0,_.nh)();H.ticks.gelc=a;if(b){eH++;if((_.T("disable_compression_due_to_performance_degredation")||_.T("disable_compression_due_to_performance_degradation_lr"))&&
a-P>=kdp)if(Tqs++,_.T("abandon_compression_after_N_slow_zips_lr")){b=Tqs/eH;var R=M7a/_.d7("compression_disable_point");eH>0&&eH%_.d7("compression_disable_point")===0&&b>=R&&(gk=!1)}else gk=!1;t79(H)}}N.headers=Object.assign({},{"Content-Encoding":"gzip"},N.headers||{});N.body=K;return N}catch(n){return _.qB(n),N}}else return N};
c_s=function(N){try{return(new Blob(N.split(""))).size}catch(b){return _.qB(b),null}};
t79=function(N){_.T("gel_compression_csi_killswitch")||!_.T("log_gel_compression_latency")&&!_.T("log_gel_compression_latency_lr")||b3E("gel_compression",N,{sampleRate:.1})};
BqI=function(){this.blockSize=-1};
$0=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var N=1;N<this.blockSize;++N)this.pad_[N]=0;this.total_=this.inbuf_=0;this.reset()};
LdY=function(N){N=Object.assign({},N);delete N.Authorization;var b=_.lLf();if(b){var S=new $0;S.update(_.Vg("INNERTUBE_API_KEY"));S.update(b);N.hash=_.iL(S.digest(),3)}return N};
wk=function(){fLE||(fLE=new _.h2("yt.innertube"));return fLE};
uEe=function(N,b,S,P){if(P)return null;P=wk().get("nextId",!0)||1;var H=wk().get("requests",!0)||{};H[P]={method:N,request:b,authState:LdY(S),requestTime:Math.round((0,_.nh)())};wk().set("nextId",P+1,86400,!0);wk().set("requests",H,86400,!0);return P};
QAp=function(N){var b=wk().get("requests",!0)||{};delete b[N];wk().set("requests",b,86400,!0)};
oq_=function(N){var b=wk().get("requests",!0);if(b){for(var S in b){var P=b[S];if(!(Math.round((0,_.nh)())-P.requestTime<6E4)){var H=P.authState,K=LdY(_.s3a(!1));_.Vm.equals(H,K)&&(H=P.request,"requestTimeMs"in H&&(H.requestTimeMs=Math.round((0,_.nh)())),xIs(N,P.method,H,{}));delete b[S]}}wk().set("requests",b,86400,!0)}};
i3s=function(N){var b;return(N=N==null?void 0:(b=N.error)==null?void 0:b.code)&&N>=400&&N<=599?!1:!0};
J_O=function(N){var b;N=N==null?void 0:(b=N.error)==null?void 0:b.code;return!(N!==400&&N!==415)};
Z3b=function(){if(UIs)return UIs();var N={};UIs=WK("LogsDatabaseV2",{objectStores:(N.LogsRequestsStore={addedAtVersion:2},N),shared:!1,upgrade:function(b,S,P){S(2)&&NN(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});S(3);S(5)&&(P=P.objectStore("LogsRequestsStore"),P.JSC$10917_wrapped.indexNames.contains("newRequest")&&P.JSC$10917_wrapped.deleteIndex("newRequest"),b5(P,"newRequestV2",["status","interface","timestamp"]));S(7)&&b.JSC$10902_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$10902_wrapped.deleteObjectStore("sapisid");
S(9)&&b.JSC$10902_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$10902_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return UIs()};
Sd=function(N){return _.vK(Z3b(),N)};
zLs=function(N,b){var S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S={startTime:(0,_.nh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},C.yield(Sd(b),2);if(C.nextAddress!=3)return P=C.yieldResult,H=Object.assign({},N,{options:JSON.parse(JSON.stringify(N.options)),interface:_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),C.yield(P.put("LogsRequestsStore",H),3);K=C.yieldResult;S.ticks.tc=(0,_.nh)();jA9(S);return C.return(K)})};
A_I=function(N,b){var S,P,H,K,C,G,a,R,n;return _.r(function(d){if(d.nextAddress==1)return S={startTime:(0,_.nh)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},d.yield(Sd(b),2);if(d.nextAddress!=3)return P=d.yieldResult,H=_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[N,H,0],C=[N,H,(0,_.nh)()],G=IDBKeyRange.bound(K,C),a="prev",_.T("use_fifo_for_networkless")&&(a="next"),R=void 0,n=N==="NEW"?"readwrite":"readonly",_.T("use_readonly_for_get_most_recent_by_status_killswitch")&&(n="readwrite"),
d.yield(_.Ou(P,["LogsRequestsStore"],{mode:n,enableRetries:!0},function(m){return _.dk(m.objectStore("LogsRequestsStore").index("newRequestV2"),{query:G,direction:a},function(k){k.getValue()&&(R=k.getValue(),N==="NEW"&&(R.status="QUEUED",k.update(R)))})}),3);
S.ticks.tc=(0,_.nh)();jA9(S);return d.return(R)})};
X4s=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)return P.yield(Sd(b),2);S=P.yieldResult;return P.return(_.Ou(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){var K=H.objectStore("LogsRequestsStore");return K.get(N).then(function(C){if(C)return C.status="QUEUED",K.put(C).then(function(){return C})})}))})};
Eqf=function(N,b,S,P){S=S===void 0?!0:S;var H;return _.r(function(K){if(K.nextAddress==1)return K.yield(Sd(b),2);H=K.yieldResult;return K.return(_.Ou(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(C){var G=C.objectStore("LogsRequestsStore");return G.get(N).then(function(a){return a?(a.status="NEW",S&&(a.sendCount+=1),P!==void 0&&(a.options.compress=P),G.put(a).then(function(){return a})):w7.resolve(void 0)})}))})};
p4b=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)return P.yield(Sd(b),2);S=P.yieldResult;return P.return(S.delete("LogsRequestsStore",N))})};
Yjs=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(Sd(N),2);b=P.yieldResult;S=(0,_.nh)()-2592E6;return P.yield(_.Ou(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){return Gi(H.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=S)return K.delete().then(function(){return K.continue()})})}),0)})};
y_I=function(){_.r(function(N){return N.yield(iuo("LogsDatabaseV2"),0)})};
jA9=function(N){_.T("nwl_csi_killswitch")||b3E("networkless_performance",N,{sampleRate:1})};
_.DI_=function(N){return _.vK(ILL(),N)};
V79=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(_.DI_(N),2);b=P.yieldResult;S=(0,_.nh)()-2592E6;return P.yield(_.Ou(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(H){return Gi(H.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=S)return K.delete().then(function(){return K.continue()})})}),0)})};
gqs=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(_.DI_(N),2);b=S.yieldResult;return S.yield(b.clear("SWHealthLog"),0)})};
_.Pl=function(N,b,S,P,H,K,C){H=H===void 0?"":H;K=K===void 0?!1:K;C=C===void 0?!1:C;if(N)if(S&&!eU("cobalt"))_.qB(new _.jU("Legacy referrer-scrubbed ping detected")),N&&eLf(N,void 0,{scrubReferrer:!0});else if(H)Mt_(N,b,"POST",H,P);else if(_.Vg("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||C)Mt_(N,b,"GET","",P,void 0,K,C);else{b:{try{c:{var G=new $IE({url:N});if(G.urlParamValues_.dsh==="1")var a=null;else{var R=G.urlParamValues_.ae;if(R==="1"){var n=G.urlParamValues_.adurl;if(n)try{a={version:3,directUrl:decodeURIComponent(n),
asyncUrl:V_O(G.JSC$9709_url_,"act=1","ri=1",hLs(G))};break c}catch(M){}}a=R==="2"?{version:4,directUrl:V_O(G.JSC$9709_url_,"dct=1","suid="+G.suid_,"ri=1"),asyncUrl:V_O(G.JSC$9709_url_,"act=1","ri=1","suid="+G.suid_)}:null}}if(a){var d=_.Bq(N);var m=!(!d||!d.endsWith("/aclk")||_.PW(N,"ri")!=="1");break b}}catch(M){}m=!1}if(m){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(N,"")){var k=!0;break b}}catch(M){}k=!1}k?(b&&b(),S=!0):S=!1}else S=!1;S||eLf(N,b)}};
eLf=function(N,b,S){S=S===void 0?{}:S;var P=new Image,H=""+qjf++;w4I[H]=P;P.onload=P.onerror=function(){b&&w4I[H]&&b();delete w4I[H]};
S.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=N};
Hl=function(N,b){NGe(N,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
b7L=function(N){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?N+"&nis=6":N+"&nis=5"};
SZe=function(N){if(!N)return!1;try{var b;if(((b=_.bQ(N))==null?void 0:b.asm)==="4")return!0}catch(S){_.e_(S)}return!1};
NGe=function(N,b){b?(N=b7L(N),_.Pl(N,void 0,void 0,void 0,"",!0,!0)):_.Pl(N)};
H7u=function(){PHu||(PHu=new _.h2("yt.offline"));return PHu};
sqp=function(N){if(_.T("offline_error_handling")){var b=H7u().get("errors",!0)||{};b[N.message]={name:N.name,stack:N.stack};N.level&&(b[N.message].level=N.level);H7u().set("errors",b,2592E3,!0)}};
vHo=function(N,b,S,P){P=P===void 0?!1:P;b=_.T("web_fp_via_jspb")?Object.assign({},b):b;_.T("use_cfr_monitor")&&KtY(N,b);if(_.T("use_request_time_ms_header"))b.headers&&GW(N)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.nh)())));else{var H;if((H=b.postParams)==null?0:H.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,_.nh)())}S&&Object.keys(b).length===0?_.Pl(N):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),mIo(N,b.postBody,
b,_.lQ,P)):mIo(N,JSON.stringify(b.postParams),b,LnL,P):_.lQ(N,b)};
O7_=function(N,b){_.T("use_event_time_ms_header")&&GW(N)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.nh)())));return b};
_.GSe=function(){CHf||(CHf=new _.sv({logOfflineErrors:!0,enablePolling:!0}));return CHf};
KtY=function(N,b){var S=b.onError?b.onError:function(){};
b.onError=function(H,K){Kv().requestComplete(N,!1);S(H,K)};
var P=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(H,K){Kv().requestComplete(N,!0);P(H,K)}};
_.rM_=function(){return _.Ol(document.location.toString())!=="www.youtube-nocookie.com"};
_.RsY=function(){return _.hl("ytNetworklessLoggingInitializationOptions")?_.cM_.isNwlInitialized:_.aNs};
WtI=function(N,b){if(_.T("polymer_on_demand_shady_dom")){var S;var P=(S=N.__shady_native_firstElementChild)!=null?S:N.firstElementChild}else P=N.firstElementChild;for(;P;){if(N=b(P)?P:WtI(P,b))return N;P=P.nextElementSibling}return null};
_.duY=function(){var N=document;if("visibilityState"in N)return N.visibilityState;var b=nHY+"VisibilityState";if(b in N)return N[b]};
_.muU=function(N,b){var S;vl(N,function(P){S=b[P];return!!S});
return S};
_.Cv=function(N){var b=kSu(N);b?b.focus(void 0):_.Ov(N)};
kSu=function(N){return(N=WtI(N,function(b){return _.Gx(b)?TGf(b)&&!!b.offsetParent:!1}))?N:null};
_.Ov=function(N,b){N.hasAttribute("tabindex")||N.setAttribute("tabindex","-1");N.focus(b)};
trU=function(N,b,S,P){P=P===void 0?{}:P;N.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return _.Vm.findKey(re,function(H){var K=typeof H[4]==="boolean"&&H[4]==!!P,C=_.D_(H[4])&&_.D_(P)&&_.Vm.equals(H[4],P);return!!H.length&&H[0]==N&&H[1]==b&&H[2]==S&&(K||C)})};
_.a0=function(N,b,S,P){P=P===void 0?{}:P;if(!N||!N.addEventListener&&!N.attachEvent)return"";var H=trU(N,b,S,P);if(H)return H;H=++MrL.count+"";var K=!(b!="mouseenter"&&b!="mouseleave"||!N.addEventListener||"onmouseenter"in document);var C=K?function(G){G=new cl(G);if(!_.wY(G.relatedTarget,function(a){return a==N},!0))return G.currentTarget=N,G.type=b,S.call(N,G)}:function(G){G=new cl(G);
G.currentTarget=N;return S.call(N,G)};
C=_.$U(C);N.addEventListener?(b=="mouseenter"&&K?b="mouseover":b=="mouseleave"&&K?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Ftf()||typeof P==="boolean"?N.addEventListener(b,C,P):N.addEventListener(b,C,!!P.capture)):N.attachEvent("on"+b,C);re[H]=[N,b,S,C,P];return H};
_.lNY=function(N,b,S){var P=P===void 0?{}:P;var H=_.a0(N,b,function(){_.BGE(H);S.apply(N,arguments)},P)};
_.BGE=function(N){N&&(typeof N=="string"&&(N=[N]),_.NX(N,function(b){if(b in re){var S=re[b],P=S[0],H=S[1],K=S[3];S=S[4];P.removeEventListener?Ftf()||typeof S==="boolean"?P.removeEventListener(H,K,S):P.removeEventListener(H,K,!!S.capture):P.detachEvent&&P.detachEvent("on"+H,K);delete re[b]}}))};
R0=function(N){this.callback_=N;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(N=0;N<4;N++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.a0(window,"mousemove",(0,_.pT)(this.onMouseMove_,this));this.timerId_=_.MX((0,_.pT)(this.checkPosition_,this),25)};
uAa=function(){var N={};var b=N.preferMobileEvents===void 0?!1:N.preferMobileEvents;N=N.enableScrollEventListener===void 0?!0:N.enableScrollEventListener;if(_.hl("_lact",window)==null){var S=parseInt(_.Vg("LACT"),10);S=isFinite(S)?Date.now()-Math.max(S,0):-1;_.aB("_lact",S,window);_.aB("_fact",S,window);S==-1&&_.Wl();Lte(window,b,N);new R0(function(){fNO("mouse",100)})}};
Lte=function(N,b,S){b=b===void 0?!1:b;S=S===void 0?!0:S;_.a0(N.document,"keydown",_.Wl);_.a0(N.document,"keyup",_.Wl);_.a0(N.document,"mousedown",_.Wl);_.a0(N.document,"mouseup",_.Wl);b?_.a0(N,"touchmove",function(){fNO("touchmove",200)},{passive:!0}):(_.a0(N,"resize",function(){fNO("resize",200)}),S&&_.a0(N,"scroll",function(){fNO("scroll",200)}));
_.a0(N.document,"touchstart",_.Wl,{passive:!0});_.a0(N.document,"touchend",_.Wl,{passive:!0})};
fNO=function(N,b){QqE[N]||(QqE[N]=!0,_.Dj.addLowPriorityJob(function(){_.Wl();QqE[N]=!1},b))};
_.Wl=function(){_.hl("_lact",window)==null&&uAa();var N=Date.now();_.aB("_lact",N,window);_.hl("_fact",window)==-1&&_.aB("_fact",N,window);(N=_.hl("ytglobal.ytUtilActivityCallback_"))&&N()};
_.nv=function(){var N=_.hl("_lact",window);return N==null?-1:Math.max(Date.now()-N,0)};
_.Tx=function(N,b,S){var P=_.de();if(P&&b){var H=P.subscribe(N,function(){var K=arguments,C=function(){mj[H]&&b.apply&&typeof b.apply=="function"&&b.apply(S||window,K)};
try{_.xuL[N]?C():_.tz(C,0)}catch(G){_.e_(G)}},S);
mj[H]=!0;kh[N]||(kh[N]=[]);kh[N].push(H);return H}return 0};
_.oHs=function(N){var b=_.de();b&&(typeof N==="number"?N=[N]:typeof N==="string"&&(N=[parseInt(N,10)]),_.NX(N,function(S){b.unsubscribeByKey(S);delete mj[S]}))};
_.i7U=function(N,b){var S=_.de();S&&S.publish.apply(S,arguments)};
_.Uuf=function(N){var b=_.de();if(b)if(b.clear(N),N)JMO(N);else for(var S in kh)JMO(S)};
_.de=function(){return _.Ps.ytPubsubPubsubInstance};
JMO=function(N){kh[N]&&(N=kh[N],_.NX(N,function(b){mj[b]&&delete mj[b]}),N.length=0)};
Z7p=function(){var N,b;return"h5vcc"in td&&((N=td.h5vcc.traceEvent)==null?0:N.traceBegin)&&((b=td.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in td&&td.performance.mark&&td.performance.measure?2:0};
jqs=function(N){var b=Z7p();switch(b){case 1:td.h5vcc.traceEvent.traceBegin("YTLR",N);break;case 2:td.performance.mark(N+"-start");break;case 0:break;default:_.$Z(b,"unknown trace type")}};
zs_=function(N){var b=Z7p();switch(b){case 1:td.h5vcc.traceEvent.traceEnd("YTLR",N);break;case 2:b=N+"-start";var S=N+"-end";td.performance.mark(S);td.performance.measure(N,b,S);break;case 0:break;default:_.$Z(b,"unknown trace type")}};
AMY=function(N){var b,S;(S=(b=window).onerror)==null||S.call(b,N.message,"",0,0,N)};
X79=function(N){if(_.T("web_lifecycle_error_handling_killswitch"))return N();try{return N()}catch(b){AMY(b)}};
EHf=function(N){return[N.auth===void 0?"undefined":N.auth,N.isJspb===void 0?"undefined":N.isJspb,N.cttAuthInfo===void 0?"undefined":N.cttAuthInfo,N.tier===void 0?"undefined":N.tier].join("/")};
_.t=function(N,b){if(N)return N[b.name]};
FC=function(){var N=_.hl("yt.logging.ims");N||(N=new MN,_.aB("yt.logging.ims",N));return N};
$uf=function(N,b){if(N.endpoint==="log_event"){p7O(N);var S=YZ_(N),P=yM9(N.payload)||"",H=IN9(P),K=200;if(H){if(H.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;K=Duf(H.tier);if(K===400){Vr9(N,b);return}}Bl[S]=!0;S={cttAuthInfo:S,isJspb:!1,tier:K};FC().storePayload(S,N.payload);gHa(b,!1,S,esu(P))}};
qZa=function(N,b,S){if(b.endpoint==="log_event"){p7O(void 0,b);var P=YZ_(b,!0),H=IN9(N),K=200;if(H){if(H.enabled===!1&&!_.T("web_payload_policy_disabled_killswitch"))return;K=Duf(H.tier);if(K===400){hse(N,b,S);return}}Bl[P]=!0;P={cttAuthInfo:P,isJspb:!0,tier:K};FC().storePayload(P,JO(b.payload));gHa(S,!0,P,esu(N))}};
gHa=function(N,b,S,P){b=b===void 0?!1:b;P=P===void 0?!1:P;N&&(l5=new N);N=_.d7("tvhtml5_logging_max_batch_ads_fork")||_.d7("tvhtml5_logging_max_batch")||_.d7("web_logging_max_batch")||100;var H=(0,_.nh)(),K=w7I(b,S.tier),C=K.lastDebounceQueueFromLogTimeMs;P&&(K.useVideoStatsEndPoint=!0);P=0;S&&(P=FC().getSequenceCount(S));var G=function(){N5U({writeThenSend:!0},b,S.tier)};
P>=1E3?G():P>=N?bUp||(bUp=Sb_(function(){G();bUp=void 0},0)):H-C>=10&&(Pof(b,S.tier),K.lastDebounceQueueFromLogTimeMs=H)};
Vr9=function(N,b){if(N.endpoint==="log_event"){_.T("more_accurate_gel_parser")&&FC().storePayload({isJspb:!1},N.payload);p7O(N);var S=YZ_(N),P=new Map;P.set(S,[N.payload]);var H=yM9(N.payload)||"";b&&(l5=new b);return new _.u5(function(K,C){l5&&l5.isReady()?HUb(P,l5,K,C,{bypassNetworkless:!0},!0,esu(H)):K()})}};
hse=function(N,b,S){if(b.endpoint==="log_event"){p7O(void 0,b);var P=YZ_(b,!0),H=new Map;H.set(P,[JO(b.payload)]);S&&(l5=new S);return new _.u5(function(K){l5&&l5.isReady()?s7I(H,l5,K,{bypassNetworkless:!0},!0,esu(N)):K()})}};
YZ_=function(N,b){var S="";if(N.dangerousLogToVisitorSession)S="visitorOnlyApprovedKey";else if(N.cttAuthInfo){if(b===void 0?0:b){b=N.cttAuthInfo.token;S=N.cttAuthInfo;var P=new KhO;S.videoId?P.setVideoId(S.videoId):S.playlistId&&QE(P,2,v9O,M_(S.playlistId));OUf[b]=P}else b=N.cttAuthInfo,S={},b.videoId?S.videoId=b.videoId:b.playlistId&&(S.playlistId=b.playlistId),Cob[N.cttAuthInfo.token]=S;S=N.cttAuthInfo.token}return S};
N5U=function(N,b,S){N=N===void 0?{}:N;b=b===void 0?!1:b;new _.u5(function(P,H){var K=w7I(b,S),C=K.useVideoStatsEndPoint;K.useVideoStatsEndPoint=!1;GRU(K.queueTimer);GRU(K.queueMaxTimer);K.queueMaxTimer=0;l5&&l5.isReady()?S===void 0&&_.T("enable_web_tiered_gel")?r8a(P,H,N,b,300,C):r8a(P,H,N,b,S,C):(Pof(b,S),P())})};
r8a=function(N,b,S,P,H,K){var C=l5;S=S===void 0?{}:S;P=P===void 0?!1:P;H=H===void 0?200:H;K=K===void 0?!1:K;var G=new Map,a=new Map,R={isJspb:P,cttAuthInfo:void 0,tier:H},n={isJspb:P,cttAuthInfo:void 0};if(P){b=_.O(Object.keys(Bl));for(H=b.next();!H.done;H=b.next())H=H.value,a=_.T("enable_web_tiered_gel")?FC().smartExtractMatchingEntries({keys:[R,n],sizeLimit:1E3}):FC().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),a.length>0&&G.set(H,a),(_.T("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&
delete Bl[H];s7I(G,C,N,S,!1,K)}else{G=_.O(Object.keys(Bl));for(R=G.next();!R.done;R=G.next())R=R.value,n=_.T("enable_web_tiered_gel")?FC().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:R,tier:H},{isJspb:!1,cttAuthInfo:R}],sizeLimit:1E3}):FC().extractMatchingEntries({isJspb:!1,cttAuthInfo:R}),n.length>0&&a.set(R,n),(_.T("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.T("web_fp_via_jspb_and_json"))&&delete Bl[R];HUb(a,C,N,b,S,!1,K)}};
Pof=function(N,b){N=N===void 0?!1:N;b=b===void 0?200:b;var S=function(){N5U({writeThenSend:!0},N,b)},P=w7I(N,b),H=P===c89||P===aG_?5E3:RJU;
_.T("web_gel_timeout_cap")&&!P.queueMaxTimer&&(H=Sb_(function(){S()},H),P.queueMaxTimer=H);
GRU(P.queueTimer);H=_.Vg("LOGGING_BATCH_TIMEOUT",_.d7("web_gel_debounce_ms",1E4));_.T("shorten_initial_gel_batch_timeout")&&Whs&&(H=n9e);H=Sb_(function(){_.d7("gel_min_batch_size")>0?FC().getSequenceCount({cttAuthInfo:void 0,isJspb:N,tier:b})>=dEO&&S():S()},H);
P.queueTimer=H};
HUb=function(N,b,S,P,H,K,C){H=H===void 0?{}:H;var G=Math.round((0,_.nh)()),a=N.size,R=mEe(C);N=_.O(N);var n=N.next();for(C={};!n.done;C={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},n=N.next()){var d=_.O(n.value);n=d.next().value;d=d.next().value;C.batchRequest=_.Vm.unsafeClone({context:_.$6f(b.config_||_.mV())});if(!_.yu(d)&&!_.T("throw_err_when_logevent_malformed_killswitch")){P();break}C.batchRequest.events=d;
(d=Cob[n])&&kR9(C.batchRequest,n,d);delete Cob[n];C.dangerousLogToVisitorSession=n==="visitorOnlyApprovedKey";T5u(C.batchRequest,G,C.dangerousLogToVisitorSession);taU(H);C.onSuccess$jscomp$3=function(m){_.T("start_client_gcf")&&_.Dj.addLowPriorityJob(function(){return _.r(function(k){return k.yield(Mae(m),0)})});
a--;a||S()};
C.networkFailures=0;C.onError$jscomp$5=function(m){return function(){m.networkFailures++;if(H.bypassNetworkless&&m.networkFailures===1)try{xIs(b,R,m.batchRequest,FhL({writeThenSend:!0},m.dangerousLogToVisitorSession,m.onSuccess$jscomp$3,m.onError$jscomp$5,K)),Whs=!1}catch(k){_.e_(k),P()}a--;a||S()}}(C);
try{xIs(b,R,C.batchRequest,FhL(H,C.dangerousLogToVisitorSession,C.onSuccess$jscomp$3,C.onError$jscomp$5,K)),Whs=!1}catch(m){_.e_(m),P()}}};
s7I=function(N,b,S,P,H,K){P=P===void 0?{}:P;var C=Math.round((0,_.nh)()),G={value:N.size},a=new Map([].concat(_.IX(N)));a=_.O(a);for(var R=a.next();!R.done;R=a.next()){var n=_.O(R.value).next().value,d=N.get(n);R=new B59;var m=b.config_||_.mV(),k=new xh,M=new lGe;_.En(M,1,m.innertubeContextHostLanguage);_.En(M,2,m.innertubeContextGeoLocation);_.Ti(M,16,m.innertubeContextClientNameFieldNumber);_.En(M,17,m.innertubeContextClientVersion);if(m.innertubeContextClientConfigInfo){var l=m.innertubeContextClientConfigInfo,
u=new MY;l.coldConfigData&&_.En(u,1,l.coldConfigData);l.appInstallData&&_.En(u,6,l.appInstallData);l.coldHashData&&_.En(u,3,l.coldHashData);l.hotHashData&&u.setHotHashData(l.hotHashData);_.xI(M,62,u)}(l=_.Ps.devicePixelRatio)&&l!=1&&_.t2(M,65,_.hV(l));l=apY();l!==""&&_.En(M,54,l);l=Rze();if(l.length>0){u=new Lha;for(var J=0;J<l.length;J++){var Z=new o0;Z.setKey(l[J].key);QE(Z,2,fG9,M_(l[J].value));i5(u,15,o0,Z)}_.xI(k,5,u)}y0f(m,M);Iba(k);D6Y(M);VsU(m,M);gGI(M);_.T("start_client_gcf")&&eVp(M);_.Vg("DELEGATED_SESSION_ID")&&
!_.T("pageid_as_header_web")&&(m=new Jd,_.En(m,3,_.Vg("DELEGATED_SESSION_ID")));!_.T("fill_delegate_context_in_gel_killswitch")&&(l=_.Vg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(u=_.k0(k,Jd,3)||new Jd,m=k,l=_.En(u,18,l),_.xI(m,3,l));m=M;l=_.O(Object.entries(_.bQ(_.Vg("DEVICE",""))));for(u=l.next();!u.done;u=l.next())J=_.O(u.value),u=J.next().value,J=J.next().value,u==="cbrand"?_.En(m,12,J):u==="cmodel"?_.En(m,13,J):u==="cbr"?_.En(m,87,J):u==="cbrver"?_.En(m,88,J):u==="cos"?_.En(m,18,
J):u==="cosver"?_.En(m,19,J):u==="cplatform"&&_.Ti(m,42,yZf(J));k.setClient(M);_.xI(R,1,k);if(M=OUf[n])a:{if(_.Jg(M,Zn(M,v9O,1)))k=1;else if(M.getPlaylistId())k=2;else break a;_.xI(R,4,M);M=R.getContext()||new xh;m=_.k0(M,Jd,3)||new Jd;l=new jd;l.setToken(n);_.Ti(l,1,k);i5(m,12,jd,l);_.xI(M,3,m)}delete OUf[n];n=n==="visitorOnlyApprovedKey";uMs()||_.zx(R,2,C);!n&&(k=_.Vg("EVENT_ID"))&&(M=Q7O(),m=new xEe,_.En(m,1,k),_.zx(m,2,M),_.xI(R,5,m));taU(P);if(_.T("jspb_serialize_with_worker")&&(k=_.KdO())&&
P.writeThenSend){_.o9u.set(iUa,{client:b,resolve:S,networklessOptions:P,isIsolated:H,useVSSEndpoint:K,dangerousLogToVisitorSession:n,requestsOutstanding:G});k.postMessage({op:"gelBatchToSerialize",batchRequest:JO(R),clientEvents:d,key:iUa});iUa++;break}if(d){k=[];for(M=0;M<d.length;M++)try{k.push(new Ad(d[M]))}catch(D){_.e_(new _.jU("Transport failed to deserialize "+String(d[M])))}d=k}else d=[];d=_.O(d);for(k=d.next();!k.done;k=d.next())i5(R,3,Ad,k.value);d={startTime:(0,_.nh)(),ticks:{},infos:{}};
R=R.serialize();d.ticks.geljspc=(0,_.nh)();_.T("log_jspb_serialize_latency")&&b3E("gel_jspb_serialize",d,{sampleRate:.1});_.J8u(R,b,S,P,H,K,n,G)}};
_.J8u=function(N,b,S,P,H,K,C,G){P=P===void 0?{}:P;G=G===void 0?{value:0}:G;K=mEe(K);P=FhL(P,C,function(a){_.T("start_client_gcf")&&_.Dj.addLowPriorityJob(function(){return _.r(function(R){return R.yield(Mae(a),0)})});
G.value--;G.value||S()},function(){G.value--;
G.value||S()},H);
P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=N;xIs(b,K,"",P);Whs=!1};
taU=function(N){_.T("always_send_and_write")&&(N.writeThenSend=!1)};
FhL=function(N,b,S,P,H){N={retry:!0,onSuccess:S,onError:P,networklessOptions:N,dangerousLogToVisitorSession:b,bypassMonitoring:!!H,headers:{},postBodyFormat:"",postBody:"",compress:_.T("compress_gel")||_.T("compress_gel_lr")};uMs()&&(N.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.nh)())));return N};
T5u=function(N,b,S){uMs()||(N.requestTimeMs=String(b));_.T("unsplit_gel_payloads_in_logs")&&(N.unsplitGelPayloadsInLogs=!0);!S&&(b=_.Vg("EVENT_ID"))&&(S=Q7O(),N.serializedClientEventId={serializedEventId:b,clientCounter:String(S)})};
Q7O=function(){var N=_.Vg("BATCH_CLIENT_COUNTER")||0;N||(N=Math.floor(Math.random()*65535/2));N++;N>65535&&(N=1);_.DH("BATCH_CLIENT_COUNTER",N);return N};
kR9=function(N,b,S){if(S.videoId)var P="VIDEO";else if(S.playlistId)P="PLAYLIST";else return;N.credentialTransferTokenTargetId=S;N.context=N.context||{};N.context.user=N.context.user||{};N.context.user.credentialTransferTokens=[{token:b,scope:P}]};
p7O=function(N,b){var S=_.m6("il_payload_scraping")==="enable_il_payload_scraping";if(!_.hl("yt.logging.transport.enableScrapingForTest"))if(S)UEe=[],_.aB("yt.logging.transport.enableScrapingForTest",!0),_.aB("yt.logging.transport.scrapedPayloadsForTesting",UEe),_.aB("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.aB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.aB("yt.logging.transport.scrapeClientEvent",!0);else return;S=_.hl("yt.logging.transport.scrapedPayloadsForTesting");var P=_.hl("yt.logging.transport.payloadToScrape");b&&(b=_.hl("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b.payload)())&&S.push(b);b=_.hl("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var H=0;H<P.length;H++)if(N&&N.payload[P[H]])if(b)S.push(N.payload);else{var K=void 0;S.push(((K=N)==null?void 0:K.payload)[P[H]])}_.aB("yt.logging.transport.scrapedPayloadsForTesting",
S)};
uMs=function(){return _.T("use_request_time_ms_header")||_.T("lr_use_request_time_ms_header")};
Sb_=function(N,b){return _.T("transport_use_scheduler")===!1?_.tz(N,b):_.T("logging_avoid_blocking_during_navigation")||_.T("lr_logging_avoid_blocking_during_navigation")?_.XC(_.Dj,function(){if(_.ZUI().currentState==="none")N();else{var S={};_.ZUI().install((S.none={callback:N},S))}},b):_.XC(_.Dj,N,b)};
GRU=function(N){_.T("transport_use_scheduler")?_.Dj.cancelJob(N):_.FQ(N)};
Mae=function(N){var b,S,P,H,K,C,G,a,R,n;return _.r(function(d){return d.nextAddress==1?(P=(b=N)==null?void 0:(S=b.responseContext)==null?void 0:S.globalConfigGroup,H=_.t(P,j7u),C=(K=P)==null?void 0:K.hotHashData,G=_.t(P,zJo),R=(a=P)==null?void 0:a.coldHashData,(n=_.aN().resolve(_.cq(Ev)))?C?H?d.yield(A8p(n,C,H),2):d.yield(A8p(n,C),2):d.jumpTo(2):d.return()):R?G?d.yield(XXf(n,R,G),0):d.yield(XXf(n,R),0):d.jumpTo(0)})};
w7I=function(N,b){b=b===void 0?200:b;return N?b===300?c89:E9o:b===300?aG_:pXI};
IN9=function(N){if(_.T("enable_web_tiered_gel")){N=YbO[N||""];var b,S,P,H=_.aN().resolve(_.cq(Ev))==null?void 0:(b=pv())==null?void 0:(S=b.loggingHotConfig)==null?void 0:(P=S.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(H)for(b=0;b<H.length;b++)if(H[b].payloadNumber===N)return H[b]}};
yM9=function(N){N=Object.keys(N);N=_.O(N);for(var b=N.next();!b.done;b=N.next())if(b=b.value,YbO[b])return b};
Duf=function(N){switch(N){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}};
esu=function(N){return N==="gelDebuggingEvent"};
mEe=function(N){return(N===void 0?0:N)&&_.T("vss_through_gel_video_stats")?"video_stats":"log_event"};
yE=function(N,b,S,P){P=P===void 0?{}:P;var H={},K=Math.round(P.timestamp||(0,_.nh)());H.eventTimeMs=K<Number.MAX_SAFE_INTEGER?K:0;H[N]=b;N=_.nv();H.context={lastActivityMs:String(P.timestamp||!isFinite(N)?-1:N)};P.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")&&(N=H.context,b=P.sequenceGroup,b={index:y8e(b),groupKey:b},N.sequence=b,P.endOfSequence&&delete Yh[P.sequenceGroup]);_.T("web_tag_automated_log_events")&&(H.context.automatedLogEventSource=P.automatedLogEventSource);(P.sendIsolatedPayload?
Vr9:$uf)({endpoint:"log_event",payload:H,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},S)};
y8e=function(N){Yh[N]=N in Yh?Yh[N]+1:0;return Yh[N]};
_.Dn=function(N,b,S){S=S===void 0?{}:S;var P=I0;_.g8("ytLoggingEventsDefaultDisabled",!1)&&I0===I0&&(P=null);yE(N,b,P,S)};
_.VE=function(){if(_.T("web_fp_via_jspb")){var N=!0;N=N===void 0?!1:N;var b=IGe;IGe=[];if(b){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,N?yE(S.payloadName,S.payload,I0,S.options):_.Dn(S.payloadName,S.payload,S.options)}N5U(void 0,!0);if(!_.T("web_fp_via_jspb_and_json"))return}N5U(void 0,!1)};
DEY=function(N,b){var S;if((S=b)==null?0:S.componentStack)return b;if(N=N.componentStack)b||(b={}),b.componentStack=N;return b};
VaY=function(){_.NX(_.Vg("ERRORS")||[],function(N){_.ge.apply(null,N)});
_.DH("ERRORS",[])};
_.ed=function(N){_.ge(N)};
_.$h=function(N){_.ge(N,"WARNING")};
g9b=function(N){N instanceof Error?_.ge(N):(N=_.D_(N)?JSON.stringify(N):String(N),N=new _.jU(N),N.name="RejectedPromiseError",_.$h(N))};
eJf=function(N,b,S,P,H,K){b=b===void 0?"Unknown file":b;S=S===void 0?0:S;var C=!1,G=Dyb("log_window_onerror_fraction");if(G&&Math.random()<G)C=!0;else{G=document.getElementsByTagName("script");for(var a=0,R=G.length;a<R;a++)if(G[a].src.indexOf("/debug-")>0){C=!0;break}}C&&(C=!1,H?C=!0:(typeof N==="string"?G=N:ErrorEvent&&N instanceof ErrorEvent?(C=!0,G=N.message,b=N.filename,S=N.lineno,P=N.colno):(G="Unknown error",b="Unknown file",S=0),H=new _.jU(G),H.name="UnhandledWindowError",H.message=G,H.fileName=
b,H.lineNumber=S,isNaN(P)?delete H.columnNumber:H.columnNumber=P),_.T("wiz_enable_component_stack_propagation_killswitch")||(K=DEY(H,K)),K&&_.hd(H,K),C?_.ge(H):_.$h(H))};
_.ge=function(N,b,S,P,H,K,C,G){K=K===void 0?{}:K;K.name=S||_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME",1);K.version=P||_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION");S=K;b=b===void 0?"ERROR":b;C=C===void 0?!1:C;b=b===void 0?"ERROR":b;C=C===void 0?!1:C;if(N&&(N.hasOwnProperty("level")&&N.level&&(b=N.level),_.T("console_log_js_exceptions")&&(P=[],P.push("Name: "+N.name),P.push("Message: "+N.message),N.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(N.params)),N.hasOwnProperty("args")&&P.push("Error args: "+
JSON.stringify(N.args)),P.push("File name: "+N.fileName),P.push("Stacktrace: "+N.stack),P=P.join("\n"),window.console.log(P,N)),!($Ea>=5))){P=[];H=_.O(hJa);for(K=H.next();!K.done;K=H.next()){K=K.value;try{K()&&P.push(K())}catch(u){}}P=[].concat(_.IX(qbU),_.IX(P));var a=wXE(N);H=a.message||"Unknown Error";K=a.name||"UnknownError";var R=a.stack||N.stacktrace||"Not available";if(R.startsWith(K+": "+H)){var n=R.split("\n");n.shift();R=n.join("\n")}n=a.lineNumber||"Not available";a=a.fileName||"Not available";
var d=0;if(N.hasOwnProperty("args")&&N.args&&N.args.length)for(var m=0;m<N.args.length&&!(d=YRe(N.args[m],"params."+m,S,d),d>=500);m++);else if(N.hasOwnProperty("params")&&N.params){var k=N.params;if(typeof N.params==="object")for(m in k){if(k[m]){var M="params."+m,l=QB(k[m]);S[M]=l;d+=M.length+l.length;if(d>500)break}}else S.params=QB(k)}if(P.length)for(m=0;m<P.length&&!(d=YRe(P[m],"params.context."+m,S,d),d>=500);m++);navigator.vendor&&!S.hasOwnProperty("vendor")&&(S["device.vendor"]=navigator.vendor);
m={message:H,name:K,lineNumber:n,fileName:a,stack:R,params:S,sampleWeight:1};S=Number(N.columnNumber);isNaN(S)||(m.lineNumber=m.lineNumber+":"+S);if(N.level==="IGNORED")N=0;else a:{N=NxY();S=_.O(N.messageWeights);for(P=S.next();!P.done;P=S.next())if(P=P.value,m.message&&m.message.match(P.messageRegExp)){N=P.weight;break a}N=_.O(N.callbackWeights);for(S=N.next();!S.done;S=N.next())if(S=S.value,S.callback(m)){N=S.weight;break a}N=1}m.sampleWeight=N;N=_.O(bfY);for(S=N.next();!S.done;S=N.next())if(S=
S.value,S.patternsForType[m.name])for(H=_.O(S.patternsForType[m.name]),P=H.next();!P.done;P=H.next())if(K=P.value,P=m.message.match(K.regexp)){m.params["params.error.original"]=P[0];H=K.groups;K={};for(n=0;n<H.length;n++)K[H[n]]=P[n+1],m.params["params.error."+H[n]]=P[n+1];m.message=S.messageFn(K);break}m.params||(m.params={});N=NxY();m.params["params.errorServiceSignature"]="msg="+N.messageWeights.length+"&cb="+N.callbackWeights.length;m.params["params.serviceWorker"]="false";_.Ps.document&&_.Ps.document.querySelectorAll&&
(m.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new qN(SWf,"sample")).constructor!==qN&&(m.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(m);if(m.sampleWeight!==0&&!PKO.has(m.message)){if(C)HfY(b===void 0?"ERROR":b,m);else{b=b===void 0?"ERROR":b;b==="ERROR"?(we.publish("handleError",m),_.T("record_app_crashed_web")&&s2e===0&&m.sampleWeight===1&&(s2e++,C={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.T("report_client_error_with_app_crash_ks")||
(C.systemHealth={crashData:{clientError:{logMessage:{message:m.message}}}}),_.Dn("appCrashed",C)),KH9++):b==="WARNING"&&we.publish("handleWarning",m);if(_.T("kevlar_gel_error_routing")){C=b;G=G===void 0?{}:G;b:{N=_.O(vYu);for(S=N.next();!S.done;S=N.next())if(eU(S.value.toLowerCase())){N=!0;break b}N=!1}if(N)G=void 0;else{S={stackTrace:m.stack};m.fileName&&(S.filename=m.fileName);N=m.lineNumber&&m.lineNumber.split?m.lineNumber.split(":"):[];N.length!==0&&(N.length!==1||isNaN(Number(N[0]))?N.length!==
2||isNaN(Number(N[0]))||isNaN(Number(N[1]))||(S.lineNumber=Number(N[0]),S.columnNumber=Number(N[1])):S.lineNumber=Number(N[0]));N={level:"ERROR_LEVEL_UNKNOWN",message:m.message,errorClassName:m.name,sampleWeight:m.sampleWeight};C==="ERROR"?N.level="ERROR_LEVEL_ERROR":C==="WARNING"&&(N.level="ERROR_LEVEL_WARNNING");S={isObfuscated:!0,browserStackInfo:S};G.pageUrl=window.location.href;G.kvPairs=[];_.Vg("FEXP_EXPERIMENTS")&&(G.experimentIds=_.Vg("FEXP_EXPERIMENTS"));P=_.Vg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!Dyb("web_disable_gel_stp_ecatcher_killswitch")&&P)for(H=_.O(Object.keys(P)),K=H.next();!K.done;K=H.next())K=K.value,G.kvPairs.push({key:K,value:String(P[K])});if(P=m.params)for(H=_.O(Object.keys(P)),K=H.next();!K.done;K=H.next())K=K.value,G.kvPairs.push({key:"client."+K,value:String(P[K])});P=_.Vg("SERVER_NAME");H=_.Vg("SERVER_VERSION");P&&H&&(G.kvPairs.push({key:"server.name",value:P}),G.kvPairs.push({key:"server.version",value:H}));G={errorMetadata:G,stackTrace:S,logMessage:N}}G&&(_.Dn("clientError",
G),(C==="ERROR"||_.T("errors_flush_gel_always_killswitch"))&&_.VE())}_.T("suppress_error_204_logging")||HfY(b,m)}try{PKO.add(m.message)}catch(u){}$Ea++}}};
HfY=function(N,b){var S=b.params||{};N={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:N,"client.name":S.name},postParams:{url:_.Vg("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};S.version&&(N["client.version"]=S.version);if(N.postParams){b.stack&&(N.postParams.stack=b.stack);b=_.O(Object.keys(S));for(var P=b.next();!P.done;P=b.next())P=P.value,N.postParams["client."+P]=S[P];if(S=_.Vg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
_.O(Object.keys(S)),P=b.next();!P.done;P=b.next())P=P.value,N.postParams[P]=S[P];(S=_.Vg("LAVA_VERSION"))&&(N.postParams["lava.version"]=S);S=_.Vg("SERVER_NAME");b=_.Vg("SERVER_VERSION");S&&b&&(N.postParams["server.name"]=S,N.postParams["server.version"]=b)}_.lQ(_.Vg("ECATCHER_REPORT_HOST","")+"/error_204",N)};
_.Ofa=function(N,b){b=b===void 0?"ERROR":b;var S=S===void 0?{}:S;var P=_.hl("ytbin.polymer.shared.lib.tampering.info");P&&(P=P())&&(S["params.tamperingInfo"]=P.sort().join(","));_.ge(N,b,void 0,void 0,!0,S)};
_.hd=function(N){var b=_.$I.apply(1,arguments);N.args||(N.args=[]);Array.isArray(N.args)&&N.args.push.apply(N.args,_.IX(b))};
CKp=function(N){N.level="IGNORED"};
G8f=function(N,b){qbU.push(N);b();qbU.pop()};
bv=function(N,b){for(var S in b)b.hasOwnProperty(S)&&(N=_.Nc(N,S,b[S]));return N};
_.r5Y=function(N,b,S){S=S===void 0?!1:S;if(!N)return null;if(N.adInfoDialogEndpoint||N.backstageImageUploadEndpoint||N.confirmDialogEndpoint||N.clientActionEndpoint||N.createBackstagePostDialogEndpoint||N.createCommentReplyDialogEndpoint||N.flowEndpoint||N.guideBuilderEndpoint||N.liveChatDialogEndpoint||N.modalEndpoint||N.openPopupAction||N.shareEndpoint||N.shareEntityEndpoint||N.showLiveChatItemEndpoint||N.subscriptionManagerEndpoint||N.unlimitedCreateFamilyEndpoint||N.unlimitedFamilyFlowEndpoint||
N.updateCommentDialogEndpoint||N.updateCommentReplyDialogEndpoint||N.userFeedbackEndpoint||N.videoEditorEndpoint||N.ypcCancelSurveyEndpoint)return b=_.d7("polymer_report_client_url_requested_rate"),!S&&Math.random()<b&&_.$h(new _.jU("urlForEndpoint used on client endpoint",N)),null;var P=_.d7("polymer_report_missing_web_navigation_endpoint_rate");if(N.liveChatEndpoint||N.liveChatReplayEndpoint)P=0;if(!N.commandMetadata&&!N.clickTrackingParams&&Math.random()<P){var H={},K;for(K in N)H[K]="1";_.$h(new _.jU("Missing navigation data",
H))}H="";if(N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url)H=N.commandMetadata.webCommandMetadata.url;else if(N.searchEndpoint)Math.random()<P&&_.$h(new _.jU("Should not manually handle search",N)),H="/results?search_query="+encodeURIComponent(N.searchEndpoint.query).replace(/%20/g,"+"),N.searchEndpoint.params&&(H+="&sp="+N.searchEndpoint.params);else if(N.watchEndpoint)Math.random()<P&&_.$h(new _.jU("Should not manually handle watch",N)),H="/watch?v="+
N.watchEndpoint.videoId,N.watchEndpoint.playlistId&&(H+="&list="+N.watchEndpoint.playlistId),N.watchEndpoint.index&&(H+="&index="+N.watchEndpoint.index),N.watchEndpoint.startTimeSeconds&&(H+="&t="+N.watchEndpoint.startTimeSeconds);else if(N.browseEndpoint)P=N.browseEndpoint.browseId,(K=N.browseEndpoint.canonicalBaseUrl)?H=K:P&&(H=P.substr(0,2),H=H==="FE"?P==="FEwhat_to_watch"?"/":P==="FEmy_videos"?"/my_videos":"/feed/"+P.substr(2):H==="VL"?"/playlist?list="+P.substr(2):"/channel/"+P),H&&N.browseEndpoint.query&&
(H=bv(H+"/search",{query:N.browseEndpoint.query})),H&&N.browseEndpoint.params&&(H=bv(H,{params:N.browseEndpoint.params}));else{if(N.urlEndpoint)return N.urlEndpoint.url;N.signInEndpoint?(H="https://accounts.google.com/ServiceLogin",P={},_.Vm.extend(P,b||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),b=P):N.uploadEndpoint?H="//www.youtube.com/upload":N.liveChatEndpoint?(H=N.liveChatEndpoint,P=_.Vm.clone(H),_.D_(H.continuation)&&(K=Object.keys(H.continuation)[0],
P.continuation=H.continuation[K].continuation),H=bv("/youtubei/v1/live_chat/get_live_chat",P)):N.liveChatReplayEndpoint?(H=_.Vm.clone(N.liveChatReplayEndpoint),H.currentPlayerState&&(_.Vm.extend(H,H.currentPlayerState),delete H.currentPlayerState),H=bv("/youtubei/v1/live_chat/get_live_chat_replay",H)):N.liveChatItemContextMenuEndpoint?H=bv("/youtubei/v1/live_chat/get_item_context_menu",N.liveChatItemContextMenuEndpoint):N.liveChatPurchaseMessageEndpoint?H=bv("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
N.liveChatPurchaseMessageEndpoint):N.openSuperStickerBuyFlowCommand?H=bv("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",N.openSuperStickerBuyFlowCommand):N.videoEditEndpoint?H=bv("/edit",{video_id:N.videoEditEndpoint.videoId}):N.liveDashboardEndpoint?H=N.liveDashboardEndpoint.videoId?bv("/live_dashboard",{v:N.liveDashboardEndpoint.videoId}):"/live_dashboard":N.signalNavigationEndpoint&&N.signalNavigationEndpoint.signal&&N.signalNavigationEndpoint.signal==="WEBCAM"?H="/webcam":N.getPdgBuyFlowCommand&&
(H=bv(N.getPdgBuyFlowCommand.buyflowApiPath,{params:N.getPdgBuyFlowCommand.params}))}return H||S?bv(H,b||{}):(_.$h(new _.jU("Error: Can't construct url for endpoint","keys:"+Object.keys(N).sort().join(","),N)),null)};
c5s=function(N){if(N){if(N.browseEndpoint)return!!N.browseEndpoint.nofollow;if(N.watchEndpoint)return!!N.watchEndpoint.nofollow;if(N.urlEndpoint)return!!N.urlEndpoint.nofollow}return!1};
_.R9a=function(N,b){var S=b+N,P=azU.get(S);if(P)return P;N=b+"-"+N.replace(/([A-Z])/g,"-$1").toLowerCase();azU.set(S,N);return N};
WH9=function(N){var b=_.yg(N,"action")||_.yg(N,"command")||_.yg(N,"endpoint");if(!b)return null;b=_.R9a(b,"yt");_.t(N,_.Sl)&&(b+="-"+_.t(N,_.Sl).signal.toLowerCase().replace(/_/g,"-"));return b};
k8L=function(N){try{var b=Object.keys(N)}catch(H){return[]}for(var S=0;S<b.length;S++){var P=b[S];if(nYU.test(P)||db9.test(P))return mbE(N[P])}return[]};
mbE=function(N){return N.command?[N.command]:N.onExecutionAction?[N.onExecutionAction]:N.onResponseReceivedCommand?[N.onResponseReceivedCommand]:N.updateFlowCommand?[N.updateFlowCommand]:N.clientActions?N.clientActions:N.action?[N.action]:N.actions||N.commands||N.onResponseReceivedActions||N.onResponseReceivedCommands||N.onResponseReceivedEndpoints||[]};
tFY=function(N,b){b=b===void 0?!1:b;var S=_.aN().resolve(_.cq(Pz));S||(S=new Txa,_.aN().addProvider({provide:Pz,useValue:S}));return S&&N&&!_.Vm.isEmpty(N)?S.getUrl(N,b):""};
MFY=function(N,b,S){S=S===void 0?"":S;if(b){N.data=b;var P=tFY(b);P?(qj(N,P),c5s(b)||!GW(P)?N.rel="nofollow":N.removeAttribute("rel"),_.t(b,_.Hz)&&_.t(b,_.Hz).target==="TARGET_NEW_WINDOW"?N.target="_blank":S?N.target=S:N.removeAttribute("target")):(N.removeAttribute("href"),N.removeAttribute("rel"),N.removeAttribute("target"))}};
_.OX=function(N,b){var S=cW;if(Ae())FHe(N,function(){var K=_.$I.apply(0,arguments);q8(S,function(){b.apply(null,_.IX(K))})});
else{var P=_.sX.getInstance(),H=IVe(b);Z6u(function(){H.value=b});
_.YU(function(){var K={},C=_.Kt(P,(K[N]=function(){var G=_.$I.apply(0,arguments);q8(S,function(){H.value.apply(H,_.IX(G))})},K));
return function(){var G={};_.vz(P,(G[N]="",G),C)}})}};
_.Ct=function(N,b){return Bxp(N,!1,b)};
_.GQ=function(N,b){return Bxp(N,!0,b)};
Bxp=function(N,b,S){return Ae()?lzo(N,b,S):LHI(N,b,S)};
LHI=function(N,b,S){return YYI(function(){return lzo(N,b,S)},[])};
lzo=function(N,b,S){var P=oyf(function(H){P.value=H;var K=function(){var C=kl(null);try{return S==null?void 0:S(H)}finally{kl(C)}}();
return function(){K==null||K()}});
P.__expectedTagName=N;P.__optional=b;P.isIdom=!Ae();return P};
fzU=function(N){var b=cW,S=jj;return{getFn:function(){return function(P){if(!b.isDisposed){var H=function(){return N(P)};
EB(function(){return _.fQ(H)},S)!==!0&&P.stopPropagation()}}}}};
u$I=function(N){if(typeof N.children==="function")return N.children(),null;N=_.O(N.children);for(var b=N.next();!b.done;b=N.next())b=b.value,b();return null};
Q2b=function(N){var b;return((b=N.prototype)==null?void 0:b.render)===void 0};
xbu=function(N){var b=Array.isArray(N.items)?N.items:Array.from(N.items);N=N.children;return(Array.isArray(b)?b:Array.from(b)).map(N)};
ifU=function(N,b,S){S=S===void 0?!1:S;EB(function(){return oYE(N,b,S)})};
oYE=function(N,b,S){var P=null;Yl++;S=(S===void 0?0:S)?J5o:Ub9;try{P=S(N,function(){rb(b)}),IO(!1)}catch(H){throw IO(!0),H;
}return P===null?N:P};
rb=function(N){if(N!==void 0&&N!==null)if(N instanceof fM)for(var b=S_;PA()!=null&&Wis in PA()&&b.contains(PA());)KM();else if(Array.isArray(N))for(b=_.O(N),N=b.next();!N.done;N=b.next())rb(N.value);else if(N instanceof UL||N instanceof ng||"function"==typeof _.au&&N instanceof _.au)RfU(N.toString());else if(_.mo(N)){if(PA()!==N){var S,P;b=(P=(S=jj)==null?void 0:S.name)!=null?P:"unknown";throw Error("ic`"+N.tagName+"`"+b);}KM()}else if(N!=null&&N.contentKind===tl||N instanceof wc||QeL(N))for(b=oXf(N),
b=Array.from(b.childNodes),b=_.O(b),N=b.next();!N.done;N=b.next())S_.appendChild(N.value),KM();else if(EL(N)&&(N=N.toString()),S=typeof N,S==="boolean"||S==="number"||S==="string")RfU(N);else if(typeof N==="function"){b=S_;var H=PA();H&&(H._isSignalTextNode||H._isSafeOrSanitizedHtmlNode)||svO(b,H,N);KM()}else if(N.type===xbu)rb(N.type(Object.assign({},N.props,{children:N.children[0]})));else{if(typeof N.type==="string"){a:{N.__open||Oxo(N.type,N.props.idomKey);H=S_;for(var K in N.props)if(N.props[K]!==
Zfe){var C=N.props[K];S=Gj;S.push(K);S.push(C)}K=dA.attributes;K=K===void 0?cz:K;C=S_;P=Sss(C);S=K;K=Gj;P=P._attrsArr||(P._attrsArr=g7Y(K.length));for(var G=!P.length||!1,a=0;a<K.length;a+=2){var R=K[a];if(G)P[a]=R;else if(P[a]!==R)break;var n=K[a+1];if(G||P[a+1]!==n)P[a+1]=n,aYY(C,R,n,S)}if(a<K.length||a<P.length){for(a=G=a;a<P.length;a+=2)a5[P[a]]=P[a+1];for(a=G;a<K.length;a+=2)G=K[a],R=K[a+1],a5[G]!==R&&aYY(C,G,R,S),P[a]=G,P[a+1]=R,delete a5[G];Vlp(P,K.length);for(b in a5)aYY(C,b,void 0,S),delete a5[b]}b=
j2s;j2s=C=cA.length;for(S=b;S<C;S+=5)(0,cA[S])(cA[S+1],cA[S+2],cA[S+3],cA[S+4]);j2s=b;Vlp(cA,b);Vlp(K,0);H6a(H,N.props,!0);if((N.props.skip||N.props.skipchildren)&&S_.hasChildNodes())s2=S_.lastChild;else{if(N.type==="style"&&X_9(N.children)===null){s2=S_.lastChild;b=void 0;break a}rb(N.children)}CxE();N.__open&&(N.__open=!1);MgE(H,N.props);b=H}return b}if(N.type===_.nM)rb(N.children);else if(!z9f(N)){b=N;try{A5Y(b)}catch(d){N=d,(C=dA.handleError)==null||C.call.apply(C,[dA].concat(_.IX(wA(N,(H=b.type)==
null?void 0:H.TAG_NAME))))}b.__open&&(CxE(),b.__open=!1)}}};
Xma=function(N,b){var S;Q2b(N)?S=new iD(b,N):S=new N(b);S.__type=N;S.__updateContext={nextState:S.state,isForced:!1};return S};
A5Y=function(N){var b=N.type,S=b.TAG_NAME;if(b===u$I)N.props.children=N.children,b(N.props);else{N.children.length>0&&(N.props.children=N.children);var P;(P=N.props).idomKey||(P.idomKey=b);if(S){var H=Oxo(S,N.props.idomKey);N.__open=!0;var K=H.__instance}K||(K=Xma(b,N.props),K.props=null,H&&(H.__instance=K,K.el=H));var C;S=((C=K.__updateContext)!=null?C:{nextState:K.state,isForced:!1}).nextState;K.__updateContext=void 0;b.getDerivedStateFromProps&&(S=b.getDerivedStateFromProps(N.props,S));K.props=
N.props;K.state=S;C=function(){var G=K;xU.beforeRender(G);var a=G.render(G.props);a?(G.props.idomKey&&(a.props.idomKey=G.props.idomKey),G=a):G=void 0;if(a=G)if(a.__open=N.__open,G=rb(a),N.__open=a.__open,!b.TAG_NAME)if(G)b.TAG_NAME=G.tagName.toLowerCase(),G.__instance=K,K.el=G;else{var R;if((R=K.hooks)==null?0:R.length){var n;(n=dA.handleError)==null||n.call.apply(n,[dA].concat(_.IX(wA(Error("pd")))))}}K.didPatch();xU.didPatch(K)};
(S=K.functionComponent)?Xle(S,C,K.props.debugInstance):C()}};
z9f=function(N){var b=N.type;if(!Q2b(b)||b===u$I||b.componentType===zz)return!1;N.props.children=N.children.length>1?N.children:N.children[0];var S,P=(S=N.props.idomKey)!=null?S:N.type,H;if(PA()&&((H=PA()[BA])==null?void 0:H.key)===P){var K=PA(),C=K[BA];if(!C)throw Error("hc`"+K.tagName);var G;(G=C.updateSignalsFromIdomProps)==null||G.call(C,N.props);EY_(C);return!0}if(pmf.has(b.name))throw G=b.name,b=(C=(K=jj)==null?void 0:K.name)!=null?C:"unknown",Error("gc`"+G+"`"+b);CZf(N.type,N.props,N.children);
N.props.renderedFromIdom=!0;(G=Xle(N.type,function(){return w_E(N.type,N.props)},N.props.debugInstance))&&YWU(G);
return!0};
y5a=function(N){for(var b=0;b<LM(N).length;b++)KM()};
EY_=function(N){var b=Izo();if(b)y5a(b);else for(var S=0;S<N.numNodes;S++)(b=Izo())?y5a(b):KM()};
Izo=function(){var N;return(N=PA()[BA])==null?void 0:N.sourceDynamicRange};
YWU=function(N){N=lYf(N);N=Array.isArray(N)?N:[N];N=_.O(N);for(var b=N.next();!b.done;b=N.next())S_.insertBefore(b.value,PA()),KM()};
Dbu=function(){var N=b6s(),b=YYI(function(){return{value:0}},[]);
return[b.value,function(S){if(ou!==null){var P;(P=dA.handleError)==null||P.call.apply(P,[dA].concat(_.IX(wA(Error("qd")))))}b.value=typeof S==="function"?S(b.value):S;N.__updateContext={nextState:N.state,isForced:!0};S=_.aO(N.effectContext);P=d8(!1);try{if(N.el){var H,K={},C=(K.props=N.props,K.type=N.__type,K.children=(H=N.props.children)!=null?H:[],K[WA]=!0,K);try{ifU(N.el,C,!0)}catch(R){var G,a;(a=dA.handleError)==null||a.call.apply(a,[dA].concat(_.IX(wA(R,(G=N.__type)==null?void 0:G.TAG_NAME))))}}}finally{d8(P),
_.aO(S)}}]};
_.R5=function(N,b){var S=cW,P=function(H){q8(S,function(){b(H)})};
window.addEventListener(N,P,void 0);_.ej(function(){window.removeEventListener(N,P,void 0)})};
_.nt=function(N){var b=cW;return function(S){var P,H=(P=N.observer)!=null?P:_.aN().resolve(Wz);P=VF9(S);var K=[];N.showOption&&K.push(H.observe(S,function(){q8(b,function(){N.visibilityCallback(!0,S)})},N.showOption));
N.hideOption&&K.push(H.observe(S,function(){q8(b,function(){N.visibilityCallback(!1,S)})},N.hideOption));
N.prescanOption&&N.prescanCallback&&K.push(H.observe(S,function(){q8(b,function(){N.prescanCallback()})},N.prescanOption));
var C;P.visibilityMonitorKeys=((C=P.visibilityMonitorKeys)!=null?C:[]).concat(K)}};
VF9=function(N){var b;return(b=N.polymerController)!=null?b:N};
h9O=function(N,b){var S=gYs;return _.c(_.nM,null,MHs(dA.enableLazyTsx,function(){return _.c(e9a,{id:S,value:N,children:b})},function(){var P=$bs(S,N);
nQ(P);P=_.aO(P);try{return b()}finally{_.aO(P)}}))};
e9a=function(N){var b=N.children;N=$bs(N.id,N.value);nQ(N);N=_.aO(N);try{return _.c(_.nM,null,uD(b()))}finally{_.aO(N)}};
$bs=function(N,b){return Object.assign(Object.create(qWp),{id:N,contextValue:b})};
wmI=function(N){var b,S=cW;_.VF(function(){var P=_.aO(S),H=d8(!b);try{if(b)ifU(b,N.children(),!0);else if(b=uD(N.children()),!(b instanceof Element))throw Error("rd");}finally{d8(H),_.aO(P)}},"g");
return b};
_.NOO=function(N,b){var S;b=$l(function(){var P=d8(!0);Yl++;try{S=LM(N()),IO(!1)}catch(H){throw IO(!0),H;}finally{d8(P)}},b===void 0?!1:b);
return[S,b]};
SxL=function(N){var b=new bof;b.abort(N);return b.signal};
PFf=function(){if(this.aborted){var N;throw(N=this.reason)!=null?N:new DOMException("signal is aborted without reason","AbortError");}};
K8e=function(N){var b=new bof;N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.aborted){b.abort(S.reason);break}else Ho9.set(b.signal,b),sJf.add(S,b.signal);return b.signal};
veL=function(){for(var N=_.O(sJf.get(this)),b=N.next();!b.done;b=N.next())Ho9.get(b.value).abort(this.reason)};
OoU=function(N){var b=new bof;setTimeout(function(){b.abort(new DOMException("signal timed out","TimeoutError"))},N);
return b.signal};
CFs=function(){var N,b;return{promise:new Promise(function(S,P){N=S;b=P}),
resolve:N,reject:b}};
rI_=function(N){var b=CFs(),S=b.promise;GMa.set(N,{promise:S,resolve:b.resolve,reject:b.reject});k7||(k7=[],queueMicrotask(function(){var P=[].concat(_.IX(k7));k7=null;var H=eG().loadMultiple(P);P=_.O(P);for(var K=P.next();!K.done;K=P.next())K=K.value,H[K].then(GMa.get(K).resolve,GMa.get(K).reject)}));
k7.push(N);return S};
aWI=function(N){N=N.buf.charCodeAt(N.pos++);return cIu[N]};
TQ=function(N){var b=0,S=0;do{var P=aWI(N);b|=(P&31)<<S;S+=5}while(P&32);return b<0?b+4294967296:b};
RSU=function(N,b,S,P){var H=!0;H=H===void 0?!1:H;b=b===void 0?!1:b;P=P===void 0?{}:P;var K=P.cssRowKey||"",C=P.combinedSignature||"";!K&&window&&window._F_cssRowKey&&(K=window._F_cssRowKey,!C&&window._F_combinedSignature&&(C=window._F_combinedSignature));if(K&&typeof window._F_installCss!=="function")throw Error("Bd");var G=P.loaderClass||_.tA;N=Yuf(N===void 0?"base-js":N);b=new G(LRO(Ijb("",N)),K,C,H,b);H=P.useCors||N&&N.hasAttribute("crossorigin");N=P.corsMode||N&&N.getAttribute("crossorigin");
H&&(b.useCors_=H);N&&(b.corsMode_=N);P.urlMaxLength&&(b.urlMaxLength=P.urlMaxLength);S&&(b.insertPos=S);P.fetchPriority&&(b.fetchPriority=P.fetchPriority);var a=eG();a.JSC$10287_loader_=b;a.setBatchModeEnabled(!0);_.Mc=P.batchingStrategy==="BATCH"?rI_:function(R){return Promise.resolve(a.load(R))}};
dvL=function(N,b,S){W8I(N,b);N[b][ne9].unshift(S)};
W8I=function(N,b){if(!N[b]||!N[b][ne9]){var S=N[b],P=S?[S]:[];N[b]=function(){for(var H=_.O(P),K=H.next();!K.done;K=H.next())K.value.apply(this,arguments)};
N[b][ne9]=P}};
mvu=function(N){if(!N)return[];var b=[];N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,Array.isArray(S)?b.push.apply(b,_.IX(mvu(S))):b.push(S);return b};
_.Bz=function(N,b){if(N&&kME.test(N)||N==="//")return N;if(TOe===void 0){TOe=!1;try{var S=new URL("b","http://a");S.pathname="c%20d";TOe=S.href==="http://a/c%20d"}catch(P){}}b||(b=document.baseURI||window.location.href);if(TOe)try{return(new URL(N,b)).href}catch(P){return N}Fx||(Fx=document.implementation.createHTMLDocument("temp"),Fx.base=Fx.createElement("base"),Fx.head.appendChild(Fx.base),Fx.anchor=Fx.createElement("a"),Fx.body.appendChild(Fx.anchor));Fx.base.href=b;Fx.anchor.href=N;return Fx.anchor.href||
N};
M8e=function(N,b){return N.replace(t8f,function(S,P,H,K){return P+"'"+_.Bz(H.replace(/["']/g,""),b)+"'"+K})};
F8p=function(N){return N.substring(0,N.lastIndexOf("/")+1)};
L8O=function(){BOI=!1;for(var N=lv.length,b=0;b<N;b++){var S=lv[b];if(S)try{S()}catch(P){setTimeout(function(){throw P;})}}lv.splice(0,N);
lWa+=N};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(N){console.log("["+N.is+"]: registered")};
uvE=function(N){fWE.push(N)};
Lt=function(N){return QJe[N]||(QJe[N]=N.indexOf("-")<0?N:N.replace(xvp,function(b){return b[1].toUpperCase()}))};
ft=function(N){return QJe[N]||(QJe[N]=N.replace(oea,"-$1").toLowerCase())};
ioE=function(N,b){var S=b.parentInfo&&ioE(N,b.parentInfo);if(S)for(N=S.firstChild,S=0;N;N=N.nextSibling){if(b.parentIndex===S++)return N}else return N};
JIo=function(N,b){N=N._methodHost||N;return function(S){if(N[b])N[b](S,S.detail);else console.warn("listener method `"+b+"` not defined")}};
uv=function(N){return N.indexOf(".")>=0};
Q9=function(N){var b=N.indexOf(".");return b===-1?N:N.slice(0,b)};
UvO=function(N,b){return N.indexOf(b+".")===0};
x7=function(N,b){return b.indexOf(N+".")===0};
o5=function(N,b,S){return b+S.slice(N.length)};
Zof=function(N,b){return N===b||UvO(N,b)||x7(N,b)};
iv=function(N){if(Array.isArray(N)){for(var b=[],S=0;S<N.length;S++)for(var P=N[S].toString().split("."),H=0;H<P.length;H++)b.push(P[H]);return b.join(".")}return N};
jJs=function(N){return Array.isArray(N)?iv(N).split("."):N.toString().split(".")};
JA=function(N,b,S){b=jJs(b);for(var P=0;P<b.length;P++){if(!N)return;N=N[b[P]]}S&&(S.path=b.join("."));return N};
zSO=function(N,b,S){var P=jJs(b),H=P[P.length-1];if(P.length>1){for(b=0;b<P.length-1;b++)if(N=N[P[b]],!N)return;N[H]=S}else N[b]=S;return P.join(".")};
AIE=function(N,b,S){var P=N[b];if(!P)P=N[b]={};else if(!N.hasOwnProperty(b)&&(P=N[b]=Object.create(N[b]),S))for(var H in P)for(N=P[H],b=P[H]=Array(N.length),S=0;S<N.length;S++)b[S]=N[S];return P};
Z7=function(N,b,S,P,H,K){if(b){var C=!1,G=UX++,a;for(a in S){var R=H?Q9(a):a;if(R=b[R])for(var n=0,d=R.length,m=void 0;n<d&&(m=R[n]);n++)m.info&&m.info.lastRun===G||H&&!XPb(a,m.trigger)||(m.info&&(m.info.lastRun=G),m.fn(N,a,S,P,m.info,H,K),C=!0)}return C}return!1};
XPb=function(N,b){if(b){var S=b.name;return S==N||!(!b.structured||!UvO(S,N))||!(!b.wildcard||!x7(S,N))}return!0};
Eeb=function(N,b,S,P,H){b=typeof H.method==="string"?N[H.method]:H.method;S=H.property;b?b.call(N,N.__data[S],P[S]):H.dynamicFn||console.warn("observer method `"+H.method+"` not defined")};
pPu=function(N,b,S,P){S={value:S,queueProperty:!0};P&&(S.path=P);(0,_.jl)(N).dispatchEvent(new CustomEvent(b,{detail:S}))};
YxI=function(N,b,S,P,H,K){K=(P=(K?Q9(b):b)!=b?b:null)?JA(N,P):N.__data[b];P&&K===void 0&&(K=S[b]);pPu(N,H.eventName,K,P)};
yII=function(N,b,S,P,H){S=N.__data[b];zQ&&(S=zQ(S,H.attrName,"attribute",N));N._propertyToAttribute(b,H.attrName,S)};
Dvb=function(N){var b=N.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var S=N.__computeEffects,P=IW_(N),H=P.counts,K=P.ready,C=P.total;P=K.shift();)b.set(P,b.size),(P=S[P])&&P.forEach(function(G){G=G.info.methodInfo;--C;--H[G]===0&&K.push(G)});
C!==0&&console.warn("Computed graph for "+N.localName+" incomplete; circular?");N.constructor.__orderedComputedDeps=b}return b};
IW_=function(N){var b=N.__computeInfo,S={};N=N.__computeEffects;var P=[],H=0,K;for(K in b){var C=b[K];H+=S[K]=C.args.filter(function(a){return!a.literal}).length+(C.dynamicFn?1:0)}for(var G in N)b[G]||P.push(G);
return{counts:S,ready:P,total:H}};
gef=function(N,b,S,P,H){b=V89(N,b,S,P,H);if(b===AA)return!1;H=H.methodInfo;if(N.__dataHasAccessor&&N.__dataHasAccessor[H])return N._setPendingProperty(H,b,!0);N[H]=b;return!1};
hS_=function(N,b,S,P,H,K,C){S.bindings=S.bindings||[];P={kind:P,target:H,parts:K,literal:C,isCompound:K.length!==1};S.bindings.push(P);P.target&&P.kind!="attribute"&&P.kind!="text"&&!P.isCompound&&P.parts[0].mode==="{"&&(S=P.parts[0],K=S.negate,P.listenerEvent=S.event||ft(H)+"-changed",P.listenerNegate=K);H=b.nodeInfoList.length;for(S=0;S<P.parts.length;S++){var G=P.parts[S];G.compoundIndex=S;K=N;C=b;var a=P,R=G,n=H;if(!R.literal)if(a.kind==="attribute"&&a.target[0]==="-")console.warn("Cannot set attribute "+
a.target+' because "-" is not a valid attribute starting character');else for(G=R.dependencies,a={index:n,binding:a,part:R,evaluator:K},R=0;R<G.length;R++)n=G[R],typeof n=="string"&&(n=eSu(n),n.wildcard=!0),K._addTemplatePropertyEffect(C,n.rootProperty,{fn:$v_,info:a,trigger:n})}};
$v_=function(N,b,S,P,H,K,C){C=C[H.index];var G=H.binding,a=H.part;K&&a.source&&b.length>a.source.length&&G.kind=="property"&&!G.isCompound&&C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[G.target]?(S=S[b],b=o5(a.source,G.target,b),C._setPendingPropertyOrPath(b,S,!1,!0)&&N._enqueueClient(C)):(b=H.evaluator._evaluateBinding(N,a,b,S,P,K),b!==AA&&(G.isCompound&&(S=C.__dataCompoundStorage[G.target],S[a.compoundIndex]=b,b=S.join("")),G.kind==="attribute"||G.target!=="textContent"&&
(G.target!=="value"||C.localName!=="input"&&C.localName!=="textarea")||(b=b==void 0?"":b),a=b,zQ&&(a=zQ(a,G.target,G.kind,C)),G.kind=="attribute"?N._valueToNodeAttribute(C,a,G.target):(G=G.target,C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[G]?C.__readOnly&&C.__readOnly[G]||C._setPendingProperty(G,a)&&N._enqueueClient(C):N._setUnmanagedPropertyToNode(C,G,a))))};
qxf=function(N,b,S){if(S.listenerEvent){var P=S.parts[0];N.addEventListener(S.listenerEvent,function(H){var K=S.target,C=P.source,G=P.negate,a=H.detail,R=a&&a.path;R?(C=o5(K,C,R),H=a&&a.value):H=H.currentTarget[K];b.__readOnly&&b.__readOnly[C]||!b._setPendingPropertyOrPath(C,G?!H:H,!0,!!R)||a&&a.queueProperty||b._invalidateProperties()})}};
wP_=function(N,b,S,P,H,K){K=b.static||K&&(typeof K!=="object"||K[b.methodName]);H={methodName:b.methodName,args:b.args,methodInfo:H,dynamicFn:K};for(var C=0,G=void 0;C<b.args.length&&(G=b.args[C]);C++)G.literal||N._addPropertyEffect(G.rootProperty,S,{fn:P,info:H,trigger:G});K&&N._addPropertyEffect(b.methodName,S,{fn:P,info:H});return H};
V89=function(N,b,S,P,H){P=N._methodHost||N;var K=P[H.methodName];if(K)return N=N._marshalArgs(H.args,b,S),N===AA?AA:K.apply(P,N);H.dynamicFn||console.warn("method `"+H.methodName+"` not defined")};
N6e=function(N){for(var b="",S=0;S<N.length;S++)b+=N[S].literal||"";return b};
P0a=function(N){if(N=N.match(/([^\s]+?)\(([\s\S]*)\)/)){var b={methodName:N[1],static:!0,args:bS9};return N[2].trim()?S_s(N[2].replace(/\\,/g,"&comma;").split(","),b):b}return null};
S_s=function(N,b){b.args=N.map(function(S){S=eSu(S);S.literal||(b.static=!1);return S},this);
return b};
eSu=function(N){N=N.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var b={name:N,value:"",literal:!1},S=N[0];S==="-"&&(S=N[1]);S>="0"&&S<="9"&&(S="#");switch(S){case "'":case '"':b.value=N.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(N),b.literal=!0}b.literal||(b.rootProperty=Q9(N),b.structured=uv(N),b.structured&&(b.wildcard=N.slice(-2)==".*",b.wildcard&&(b.name=N.slice(0,-2))));return b};
HSU=function(N,b,S){N=JA(N,S);N===void 0&&(N=b[S]);return N};
sTo=function(N,b,S,P){P={indexSplices:P};Xx&&!N._overrideLegacyUndefined&&(b.splices=P);N.notifyPath(S+".splices",P);N.notifyPath(S+".length",b.length);Xx&&!N._overrideLegacyUndefined&&(P.indexSplices=[])};
EX=function(N,b,S,P,H,K){sTo(N,b,S,[{index:P,addedCount:H,removed:K,object:b,type:"splice"}])};
Klb=function(N){N=M8e((N.body?N.body:N).textContent,N.baseURI);var b=document.createElement("style");b.textContent=N;return b};
OSe=function(N){N=N.trim().split(/\s+/);for(var b=[],S=0;S<N.length;S++)b.push.apply(b,_.IX(vEf(N[S])));return b};
vEf=function(N){var b=pt.import(N);if(!b)return console.warn("Could not find style data in module named",N),[];if(b._styles===void 0){N=[];N.push.apply(N,_.IX(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b)));var S=b.querySelector("template");S&&N.push.apply(N,_.IX(C0Y(S,b.assetpath)));b._styles=N}return b._styles};
C0Y=function(N,b){if(!N._styles){for(var S=[],P=N.content.querySelectorAll("style"),H=0;H<P.length;H++){var K=P[H],C=K.getAttribute("include");C&&S.push.apply(S,_.IX(OSe(C).filter(function(G,a,R){return R.indexOf(G)===a})));
b&&(K.textContent=M8e(K.textContent,b));S.push(K)}N._styles=S}return N._styles};
GNf=function(N){return(N=pt.import(N))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(N){var b=[];N=N.querySelectorAll("link[rel=import][type~=css]");for(var S=0;S<N.length;S++){var P=N[S];if(P.import){var H=P.import;if((P=P.hasAttribute("shady-unscoped"))&&!H._unscopedStyle){var K=Klb(H);K.setAttribute("shady-unscoped","");H._unscopedStyle=K}else H._style||(H._style=Klb(H));b.push(P?H._unscopedStyle:H._style)}}return b};
cPo=function(N){N=N.trim().split(/\s+/);for(var b="",S=0;S<N.length;S++)b+=rPf(N[S]);return b};
rPf=function(N){var b=pt.import(N);if(b&&b._cssText===void 0){var S=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b),P=b.querySelector("template");P&&(S+=aMp(P,b.assetpath));b._cssText=S||null}b||console.warn("Could not find style data in module named",N);return b&&b._cssText||""};
aMp=function(N,b){var S="";N=C0Y(N,b);for(b=0;b<N.length;b++){var P=N[b];P.parentNode&&P.parentNode.removeChild(P);S+=P.textContent}return S};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(N){var b="";N=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N);for(var S=0;S<N.length;S++)b+=N[S].textContent;return b};
Y7=function(N,b){return{index:N,removed:[],addedCount:b}};
Wla=function(N,b,S,P){var H=0,K=0,C=0,G=0,a=Math.min(b-H,P-K);if(H==0&&K==0)a:{for(C=0;C<a;C++)if(N[C]!==S[C])break a;C=a}if(b==N.length&&P==S.length){G=N.length;for(var R=S.length,n=0;n<a-C&&Rrb(N[--G],S[--R]);)n++;G=n}H+=C;K+=C;b-=G;P-=G;if(b-H==0&&P-K==0)return[];if(H==b){for(b=Y7(H,0);K<P;)b.removed.push(S[K++]);return[b]}if(K==P)return[Y7(H,b-H)];a=H;C=K;P=P-C+1;G=b-a+1;b=Array(P);for(R=0;R<P;R++)b[R]=Array(G),b[R][0]=R;for(R=0;R<G;R++)b[0][R]=R;for(R=1;R<P;R++)for(n=1;n<G;n++)if(N[a+n-1]===
S[C+R-1])b[R][n]=b[R-1][n-1];else{var d=b[R-1][n]+1,m=b[R][n-1]+1;b[R][n]=d<m?d:m}a=b.length-1;C=b[0].length-1;P=b[a][C];for(N=[];a>0||C>0;)a==0?(N.push(2),C--):C==0?(N.push(3),a--):(G=b[a-1][C-1],R=b[a-1][C],n=b[a][C-1],d=R<n?R<G?R:G:n<G?n:G,d==G?(G==P?N.push(0):(N.push(1),P=G),a--,C--):d==R?(N.push(3),a--,P=R):(N.push(2),C--,P=n));N.reverse();b=void 0;a=[];for(C=0;C<N.length;C++)switch(N[C]){case 0:b&&(a.push(b),b=void 0);H++;K++;break;case 1:b||(b=Y7(H,0));b.addedCount++;H++;b.removed.push(S[K]);
K++;break;case 2:b||(b=Y7(H,0));b.addedCount++;H++;break;case 3:b||(b=Y7(H,0)),b.removed.push(S[K]),K++}b&&a.push(b);return a};
nEe=function(N,b){return Wla(N,N.length,b,b.length)};
Rrb=function(N,b){return N===b};
m5u=function(N){if(N instanceof d5e)return N.value;throw Error("Jd`"+N);};
kNu=function(N,b){for(var S in b)S===null?N.style.removeProperty(S):N.style.setProperty(S,b[S])};
T6_=function(N,b){return(N=window.getComputedStyle(N).getPropertyValue(b))?N.trim():""};
B6f=function(N){requestAnimationFrame(function(){t3U?t3U(N):(M3Y||(M3Y=new Promise(function(b){FlY=b}),document.readyState==="complete"?FlY():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&FlY()})),M3Y.then(function(){N&&N()}))})};
fM_=function(N){lMp=N&&N.shimcssproperties?!1:LlO||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
iSb=function(N){if(!(u0a.indexOf(N)>-1)&&N!=="touchend"&&QTf&&x5I&&oEb)return{passive:!0}};
jT9=function(N){for(var b=JPE?["click"]:u0a,S=0,P;S<b.length;S++)P=b[S],N?(U5s.length=0,document.addEventListener(P,ZSo,!0)):document.removeEventListener(P,ZSo,!0)};
y9=function(N){var b=N.type;return u0a.indexOf(b)>-1?b==="mousemove"?(b=N.buttons===void 0?1:N.buttons,N instanceof window.MouseEvent&&!zrf&&(b=APO[N.which]||0),!!(b&1)):(N.button===void 0?0:N.button)===0:!1};
Xpf=function(N){if(N.type==="click"){if(N.detail===0)return!0;var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var S=N.pageX;N=N.pageY;return!(S>=b.left&&S<=b.right&&N>=b.top&&N<=b.bottom)}return!1};
EEs=function(N,b,S){N.movefn=b;N.upfn=S;document.addEventListener("mousemove",b);document.addEventListener("mouseup",S)};
I5=function(N){document.removeEventListener("mousemove",N.movefn);document.removeEventListener("mouseup",N.upfn);N.movefn=null;N.upfn=null};
pp9=function(N,b){for(var S=document.elementFromPoint(N,b),P=S;P&&P.shadowRoot&&!window.ShadyDOM;){var H=P;P=P.shadowRoot.elementFromPoint(N,b);if(H===P)break;P&&(S=P)}return S};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var b=Y_I(N);return b.length>0?b[0]:N.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var b=N.type,S=N.currentTarget.__polymerGestures;if(S&&(S=S[b])){if(!N.__polymerGesturesHandled&&(N.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var P=N.changedTouches[0];b==="touchstart"&&N.touches.length===1&&(yPu=P.identifier);if(yPu!==P.identifier)return;QTf||(b==="touchstart"||b==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)}P=
N.__polymerGesturesHandled;if(!P.skip){for(var H=0,K;H<D7.length;H++)K=D7[H],S[K.name]&&!P[K.name]&&K.flow&&K.flow.start.indexOf(N.type)>-1&&K.reset&&K.reset();for(H=0;H<D7.length;H++)K=D7[H],S[K.name]&&!P[K.name]&&(P[K.name]=!0,K[b](N))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var b=N.changedTouches[0],S=N.type;if(S==="touchstart")IMO=b.clientX,D5p=b.clientY,V3u=!1;else if(S==="touchmove"&&!V3u){V3u=!0;S="auto";for(var P=Y_I(N),H=0,K;H<P.length;H++)if(K=P[H],K.__polymerGesturesTouchAction){S=K.__polymerGesturesTouchAction;break}P=!1;H=Math.abs(IMO-b.clientX);b=Math.abs(D5p-b.clientY);N.cancelable&&(S==="none"?P=!0:S==="pan-x"?P=b>H:S==="pan-y"&&(P=H>b));P?N.preventDefault():
V9("track")}};
el=function(N,b,S){return gb[b]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,b,S),!0):!1};
$7=function(N,b,S){return gb[b]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,b,S),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,b,S){var P=gb[b],H=P.deps,K=P.name,C=N.__polymerGestures;C||(N.__polymerGestures=C={});for(var G=0,a,R;G<H.length;G++)a=H[G],JPE&&u0a.indexOf(a)>-1&&a!=="click"||((R=C[a])||(C[a]=R={_count:0}),R._count===0&&N.addEventListener(a,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,iSb(a)),R[K]=(R[K]||0)+1,R._count=(R._count||0)+1);N.addEventListener(b,S);P.touchAction&&_.hA(N,P.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,b,S){var P=gb[b],H=P.deps;P=P.name;var K=N.__polymerGestures;if(K)for(var C=0,G,a;C<H.length;C++)G=H[C],(a=K[G])&&a[P]&&(a[P]=(a[P]||1)-1,a._count=(a._count||1)-1,a._count===0&&N.removeEventListener(G,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,iSb(G)));N.removeEventListener(b,S)};
gEe=function(N){D7.push(N);for(var b=0;b<N.emits.length;b++)gb[N.emits[b]]=N};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){for(var b=0,S;b<D7.length;b++){S=D7[b];for(var P=0,H;P<S.emits.length;P++)if(H=S.emits[P],H===N)return S}return null};
_.hA=function(N,b){QTf&&N instanceof HTMLElement&&wb.run(function(){N.style.touchAction=b});
N.__polymerGesturesTouchAction=b};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,b,S){b=new Event(b,{bubbles:!0,cancelable:!0,composed:!0});b.detail=S;(0,_.jl)(N).dispatchEvent(b);b.defaultPrevented&&(N=S.preventer||S.sourceEvent)&&N.preventDefault&&N.preventDefault()};
V9=function(N){N=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N.info&&(N.info.prevent=!0)};
NM=function(N,b,S,P){b&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,N,{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:P,prevent:function(H){return V9(H)}})};
er_=function(N,b,S){if(N.prevent)return!1;if(N.started)return!0;S=Math.abs(N.y-S);return Math.abs(N.x-b)>=5||S>=5};
$5I=function(N,b,S){if(b){var P=N.moves[N.moves.length-2],H=N.moves[N.moves.length-1],K=H.x-N.x,C=H.y-N.y,G=0;if(P){var a=H.x-P.x;G=H.y-P.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:N.state,x:S.clientX,y:S.clientY,dx:K,dy:C,ddx:a,ddy:G,sourceEvent:S,hover:function(){return pp9(S.clientX,S.clientY)}})}};
q_O=function(N,b,S){var P=Math.abs(b.clientX-N.x),H=Math.abs(b.clientY-N.y),K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S||b);!K||hrO[K.localName]&&K.hasAttribute("disabled")||!(isNaN(P)||isNaN(H)||P<=25&&H<=25||Xpf(b))||N.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:S})};
wp_=function(N,b,S,P,H){var K;H&&(K=typeof S==="object"&&S!==null)&&(P=N.__dataTemp[b]);P=P!==S&&(P===P||S===S);K&&P&&(N.__dataTemp[b]=S);return P};
bmf=function(){if(bx&&!Sg){if(!NV_){NV_=!0;var N=document.createElement("style");N.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(N)}return!0}return!1};
PJE=function(){return SG_};
Hm9=function(N,b){SG_=N;Object.setPrototypeOf(N,b.prototype);new b;SG_=null};
s9U=function(N,b){for(var S=0;S<b.length;S++){var P=b[S];if(!!N!=!!P.__hideTemplateChildren__)if(P.nodeType===Node.TEXT_NODE)N?(P.__polymerTextContent__=P.textContent,P.textContent=""):P.textContent=P.__polymerTextContent__;else if(P.localName==="slot")if(N)P.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.jl)((0,_.jl)(P).parentNode).replaceChild(P.__polymerReplaced__,P);else{var H=P.__polymerReplaced__;H&&(0,_.jl)((0,_.jl)(H).parentNode).replaceChild(P,H)}else P.style&&(N?(P.__polymerDisplay__=
P.style.display,P.style.display="none"):P.style.display=P.__polymerDisplay__);P.__hideTemplateChildren__=N;P._showHideChildren&&P._showHideChildren(N)}};
Kwe=function(N){return(N=N.__dataHost)&&N._methodHost||N};
CJb=function(N,b,S){var P=S.mutableData?vpu:P_;H_.mixin&&(P=H_.mixin(P));var H=function(){return P.apply(this,arguments)||this};
_.F(H,P);H.prototype.__templatizeOptions=S;H.prototype._bindTemplate(N);OmO(H,N,b,S);return H};
RqO=function(N,b,S,P){var H=S.forwardHostProp;if(H&&b.hasHostProps){var K=N.localName=="template",C=b.templatizeTemplateClass;if(!C){if(K){var G=S.mutableData?Gus:rmE;C=function(){return G.apply(this,arguments)||this};
_.F(C,G);C=b.templatizeTemplateClass=C}else{var a=N.constructor;C=function(){return a.apply(this,arguments)||this};
_.F(C,a);C=b.templatizeTemplateClass=C}var R=b.hostProps,n;for(n in R)C.prototype._addPropertyEffect("_host_"+n,C.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cmo(H)}),C.prototype._createNotifyingProperty("_host_"+n);ss&&P&&aCu(b,S,P)}N.__dataProto&&Object.assign(N.__data,N.__dataProto);if(K)Hm9(N,C),N.__dataTemp={},N.__dataPending=null,N.__dataOld=null,N._enableProperties();else{Object.setPrototypeOf(N,C.prototype);b=b.hostProps;for(var d in b)d="_host_"+d,d in N&&(b=N[d],delete N[d],N.__data[d]=
b)}}};
cmo=function(N){return function(b,S,P){N.call(b.__templatizeOwner,S.substring(6),P[S])}};
OmO=function(N,b,S,P){var H=S.hostProps||{},K;for(K in P.instanceProps){delete H[K];var C=P.notifyInstanceProp;C&&N.prototype._addPropertyEffect(K,N.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ww_(C)})}if(P.forwardHostProp&&b.__dataHost)for(var G in H)S.hasHostProps||(S.hasHostProps=!0),N.prototype._addPropertyEffect(G,N.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:npO()})};
Ww_=function(N){return function(b,S,P){N.call(b.__templatizeOwner,b,S,P[S])}};
npO=function(){return function(N,b,S){N.__dataHost._setPendingPropertyOrPath("_host_"+b,S[b],!0,!0)}};
H_=function(N,b,S){if(Kx&&!Kwe(N))throw Error("Pd");S=S||{};if(N.__templatizeOwner)throw Error("Qd");N.__templatizeOwner=b;var P=(b?b.constructor:P_)._parseTemplate(N),H=P.templatizeInstanceClass;H||(H=CJb(N,P,S),P.templatizeInstanceClass=H);var K=Kwe(N);RqO(N,P,S,K);S=function(){return H.apply(this,arguments)||this};
_.F(S,H);S.prototype._methodHost=K;S.prototype.__dataHost=N;S.prototype.__templatizeOwner=b;S.prototype.__hostProps=P.hostProps;return S};
aCu=function(N,b,S){S=S.constructor._properties;N=N.propertyEffects;b=b.instanceProps;for(var P in N)if(!(S[P]||b&&b[P]))for(var H=N[P],K=0;K<H.length;K++){var C=H[K].info.part;if(!C.signature||!C.signature.static){console.warn("Property '"+P+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
dWE=function(N,b){for(var S;b;)if(S=b.__dataHost?b:b.__templatizeInstance)if(S.__dataHost!=N)b=S.__dataHost;else return S;else b=(0,_.jl)(b).parentNode;return null};
Cx=function(N){return N.localName==="slot"};
mWu=function(){for(var N=Gb.prototype,b="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),S={},P=0;P<b.length;S={method$jscomp$33:void 0},P++)S.method$jscomp$33=b[P],N[S.method$jscomp$33]=function(H){return function(){return this.node[H.method$jscomp$33].apply(this.node,arguments)}}(S)};
kuY=function(N,b){for(var S={},P=0;P<b.length;S={name$jscomp$448:void 0},P++)S.name$jscomp$448=b[P],Object.defineProperty(N,S.name$jscomp$448,{get:function(H){return function(){return this.node[H.name$jscomp$448]}}(S),
configurable:!0})};
TVf=function(){for(var N=Gb.prototype,b=["textContent","innerHTML","className"],S={},P=0;P<b.length;S={name$jscomp$449:void 0},P++)S.name$jscomp$449=b[P],Object.defineProperty(N,S.name$jscomp$449,{get:function(H){return function(){return this.node[H.name$jscomp$449]}}(S),
set:function(H){return function(K){this.node[H.name$jscomp$449]=K}}(S),
configurable:!0})};
tMf=function(){r0=document.documentElement.getAttribute("dir");r0=document.documentElement.getAttribute("dir");for(var N=0;N<c_.length;N++){var b=c_[N];b.__autoDirOptOut||b.setAttribute("dir",r0)}};
lCp=function(){ae=!0;requestAnimationFrame(function(){ae=!1;MMI(Fwp);setTimeout(function(){for(var N=0,b=Re.length;N<b;N++)BVp(Re.shift())})})};
MMI=function(N){for(;N.length;)BVp(N.shift())};
BVp=function(N){var b=N[0],S=N[1];N=N[2];try{S.apply(b,N)}catch(P){setTimeout(function(){throw P;})}};
_.Lws=function(N,b,S){ae||lCp();Fwp.push([N,b,S])};
_.W_=function(N,b,S){ae||lCp();Re.push([N,b,S])};
Q9o=function(N,b){b=b===void 0?!1:b;if(!fCe||!u5a||!fCe.handlesDynamicScoping)return null;var S=u5a.ScopingShim;if(!S)return null;var P=S.scopeForNode(N),H=(0,_.jl)(N).getRootNode(),K=function(C){if((0,_.jl)(C).getRootNode()===H){var G=Array.from(fCe.nativeMethods.querySelectorAll.call(C,"*"));G.push(C);for(C=0;C<G.length;C++){var a=G[C];if((0,_.jl)(a).getRootNode()===H){var R=S.currentScopeForNode(a);R!==P&&(R!==""&&S.unscopeNode(a,R),S.scopeNode(a,P))}}}};
K(N);return b?(b=new MutationObserver(function(C){for(var G=0;G<C.length;G++)for(var a=C[G],R=0;R<a.addedNodes.length;R++){var n=a.addedNodes[R];n.nodeType===Node.ELEMENT_NODE&&K(n)}}),b.observe(N,{childList:!0,
subtree:!0}),b):null};
xWL=function(){document.body.removeAttribute("unresolved")};
Zmf=function(N){var b=N=N.replace(opp,"").replace(imI,""),S=new JmY;S.start=0;S.end=b.length;for(var P=S,H=0,K=b.length;H<K;H++)if(b[H]==="{"){P.rules||(P.rules=[]);var C=P,G=C.rules[C.rules.length-1]||null;P=new JmY;P.start=H+1;P.parent=C;P.previous=G;C.rules.push(P)}else b[H]==="}"&&(P.end=H+1,P=P.parent||S);return UWf(S,N)};
UWf=function(N,b){var S=b.substring(N.start,N.end-1);N.parsedCssText=N.cssText=S.trim();N.parent&&(S=b.substring(N.previous?N.previous.end:N.parent.start,N.start-1),S=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(S),S=S.replace(j9U," "),S=S.substring(S.lastIndexOf(";")+1),S=N.parsedSelector=N.selector=S.trim(),N.atRule=S.indexOf("@")===0,N.atRule?S.indexOf("@media")===0?N.type=4:S.match(zqe)&&(N.type=7,N.keyframesName=N.selector.split(j9U).pop()):S.indexOf("--")===
0?N.type=1E3:N.type=1);if(S=N.rules)for(var P=0,H=S.length,K=void 0;P<H&&(K=S[P]);P++)UWf(K,b);return N};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(N){return N.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var b=arguments[1],S=6-b.length;S--;)b="0"+b;return"\\"+b})};
Ama=function(N,b,S){S=S===void 0?"":S;var P="";if(N.cssText||N.rules){var H=N.rules;if(H&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(H))for(var K=0,C=H.length,G=void 0;K<C&&(G=H[K]);K++)P=Ama(G,b,P);else b?b=N.cssText:(b=N.cssText,b=b.replace(Xeu,"").replace(EpE,""),b=b.replace(pep,"").replace(YGO,"")),(P=b.trim())&&(P="  "+P+"\n")}P&&(N.selector&&(S+=N.selector+" {\n"),S+=P,N.selector&&(S+="}\n\n"));return S};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(N){N=N[0];return!!N&&!!N.selector&&N.selector.indexOf("--")===0};
ICf=function(N){if(N=ymL[N])N._applyShimCurrentVersion=N._applyShimCurrentVersion||0,N._applyShimValidatingVersion=N._applyShimValidatingVersion||0,N._applyShimNextVersion=(N._applyShimNextVersion||0)+1};
DWo=function(N){return N._applyShimCurrentVersion===N._applyShimNextVersion};
gpe=function(N){N._applyShimValidatingVersion=N._applyShimNextVersion;N._validating||(N._validating=!0,VMY.then(function(){N._applyShimCurrentVersion=N._applyShimNextVersion;N._validating=!1}))};
$W_=function(N){if(!N)return"";typeof N==="string"&&(N=Zmf(N));return Ama(N,eq_)};
hqf=function(N){!N.__cssRules&&N.textContent&&(N.__cssRules=Zmf(N.textContent));return N.__cssRules||null};
wep=function(N,b,S,P){if(N){var H=!1,K=N.type;if(P&&K===4){var C=N.selector.match(qGp);C&&(window.matchMedia(C[1]).matches||(H=!0))}K===1?b(N):S&&K===7?S(N):K===1E3&&(H=!0);if((N=N.rules)&&!H)for(H=0,K=N.length,C=void 0;H<K&&(C=N[H]);H++)wep(C,b,S,P)}};
NPO=function(N,b){var S=N.indexOf("var(");if(S===-1)return b(N,"","","");a:{var P=0;var H=S+3;for(var K=N.length;H<K;H++)if(N[H]==="(")P++;else if(N[H]===")"&&--P===0)break a;H=-1}P=N.substring(S+4,H);S=N.substring(0,S);N=NPO(N.substring(H+1),b);K=P.indexOf(",");if(K===-1)return b(S,P.trim(),"",N);H=P.substring(0,K).trim();P=P.substring(K+1).trim();return b(S,H,P,N)};
bL9=function(N){if(nx!==void 0)return nx;if(N.__cssBuild===void 0){var b=N.getAttribute("css-build");if(b)N.__cssBuild=b;else{a:{b=N.localName==="template"?N.content.firstChild:N.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var S=N.localName==="template"?N.content.firstChild:N.firstChild;S.parentNode.removeChild(S)}N.__cssBuild=b}}return N.__cssBuild||""};
P2a=function(N,b,S,P){for(var H=b._noAccessors,K=Object.getOwnPropertyNames(b),C=0;C<K.length;C++){var G=K[C];if(!(G in P))if(H)N[G]=b[G];else{var a=Object.getOwnPropertyDescriptor(b,G);a&&(a.configurable=!0,Object.defineProperty(N,G,a))}}for(var R in S7u)b[R]&&(S[R]=S[R]||[],S[R].push(b[R]))};
HLe=function(N,b,S){b=b||[];for(var P=N.length-1;P>=0;P--){var H=N[P];H?Array.isArray(H)?HLe(H,b):b.indexOf(H)<0&&(!S||S.indexOf(H)<0)&&b.unshift(H):console.warn("behavior is null, check for missing or 404 import")}return b};
sSe=function(N,b){for(var S in b){var P=N[S],H=b[S];N[S]=!("value"in H)&&P&&"value"in P?Object.assign({value:P.value},H):H}};
OLa=function(N,b,S){var P={},H=function(){return b.apply(this,arguments)||this};
_.F(H,b);H._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(C)for(var a=0,R;a<C.length;a++)R=C[a],R.properties&&this.createProperties(R.properties),R.observers&&this.createObservers(R.observers,R.properties);N.properties&&this.createProperties(N.properties);N.observers&&this.createObservers(N.observers,N.properties);this._prepareTemplate()}else b._finalizeClass.call(this)};
H.prototype.created=function(){b.prototype.created.call(this);var a=P.created;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
H.prototype._registered=function(){var a=H.prototype;if(!a.hasOwnProperty("__hasRegisterFinished")){a.__hasRegisterFinished=!0;b.prototype._registered.call(this);bx&&G(a);a=Object.getPrototypeOf(this);var R=P.beforeRegister;if(R)for(var n=0;n<R.length;n++)R[n].call(a);if(R=P.registered)for(n=0;n<R.length;n++)R[n].call(a)}};
H.prototype._applyListeners=function(){b.prototype._applyListeners.call(this);var a=P.listeners;if(a)for(var R=0;R<a.length;R++){var n=a[R];if(n)for(var d in n)this._addMethodEventListenerToNode(this,d,n[d])}};
H.prototype._ensureAttributes=function(){var a=P.hostAttributes;if(a)for(var R=a.length-1;R>=0;R--){var n=a[R],d;for(d in n)this._ensureAttribute(d,n[d])}b.prototype._ensureAttributes.call(this)};
H.prototype.ready=function(){b.prototype.ready.call(this);var a=P.ready;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
H.prototype.attached=function(){b.prototype.attached.call(this);var a=P.attached;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
H.prototype.detached=function(){b.prototype.detached.call(this);var a=P.detached;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
H.prototype.attributeChanged=function(a,R,n){b.prototype.attributeChanged.call(this);var d=P.attributeChanged;if(d)for(var m=0;m<d.length;m++)d[m].call(this,a,R,n)};
_.d0.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){var a={};if(C)for(var R=0;R<C.length;R++)sSe(a,C[R].properties);sSe(a,N.properties);return a}},
observers:{configurable:!0,enumerable:!0,get:function(){var a=[];if(C)for(var R=0,n;R<C.length;R++)n=C[R],n.observers&&(a=a.concat(n.observers));N.observers&&(a=a.concat(N.observers));return a}}});
if(S){Array.isArray(S)||(S=[S]);var K=b.prototype.behaviors;var C=HLe(S,null,K);H.prototype.behaviors=K?K.concat(S):C}var G=function(a){if(C)for(var R=C,n=0;n<R.length;n++)P2a(a,R[n],P,KGa);P2a(a,N,P,vvb)};
bx||G(H.prototype);H.generatedFrom=N;return H};
c6s=function(N){var b=typeof N!=="string"?N:{is:N,notifyObserversOnUndefined:!0};b.fastInit===void 0&&(b.fastInit=!0);return function(S){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==_.mN)throw Error("Ud");var P=S.prototype;P.is=b.is;dvL(P,"created",function(){this.hostElement=this;this.polymerController=this});
C2_(P,S,b.fastInit);b.notifyObserversOnUndefined&&(P._overrideLegacyUndefined=!0);if(G3U)for(var H=_.O(Object.getOwnPropertyNames(P)),K=H.next();!K.done;K=H.next()){K=K.value;var C=Object.getOwnPropertyDescriptor(P,K);C.enumerable===!1&&(C.enumerable=!0,Object.defineProperty(P,K,C))}if("template"in S)var G=function(){return S.template};
else b.template!==void 0&&(G=b.template);if(G!==void 0){var a;Object.defineProperty(P,"_template",{get:function(){a===void 0&&(a=G());return a},
set:function(R){a=R},
configurable:!0,enumerable:!0})}Polymer(P);S[r6e]=P}};
aAe=function(N){N=N===void 0?{}:N;N.fastInit===void 0&&(N.fastInit=!0);return function(b){if(!N.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==kX)throw Error("Vd");C2_(b.prototype,b,N.fastInit)}};
C2_=function(N,b,S){S=S===void 0?!1:S;Rpp(b);S?dvL(N,"created",function(){this.disableEnforceFastDefaultValuesCheck||WGb(b,this)}):dvL(N,"ready",function(){for(var P={},H=_.O(mvu(this.behaviors)),K=H.next();!K.done;K=H.next())K=K.value,K.properties&&Object.assign(P,nvO(this,K.properties));
Object.assign(P,nvO(this,this.properties));WGb(b,this);H=_.O(Object.keys(P));for(K=H.next();!K.done;K=H.next())K=K.value,this[K]=P[K]})};
WGb=function(N,b){if(G3U){N=new N;for(var S=_.O(Object.getOwnPropertyNames(N)),P=S.next();!P.done;P=S.next())P=P.value,b[P]=N[P];for(S=b;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){P=_.O(Object.getOwnPropertyNames(S));for(var H=P.next();!H.done;H=P.next())H=H.value,N.hasOwnProperty(H)||Object.defineProperty(N,H,dHu(b,H))}}else N.apply(b)};
dHu=function(N,b){return{get:function(){var S=N[b];return S instanceof Function?S.bind(N):S},
set:function(S){N[b]=S}}};
nvO=function(N,b){if(!b)return{};for(var S={},P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next())if(H=H.value,!b[H].readOnly){var K=N[H];K!==void 0&&(S[H]=K)}return S};
Rpp=function(N){var b=new N;N=N.prototype.properties||{};for(var S=_.O(Object.keys(N)),P=S.next();!P.done;P=S.next())if(P=P.value,b.hasOwnProperty(P)){var H=N[P];typeof H==="function"&&(N[P]=H={type:H});b[P]!=null&&H.type===Object&&(H.type=mH_(b[P].constructor))}};
mH_=function(N){for(var b=_.O(k3I),S=b.next();!S.done;S=b.next())if(S=S.value,N===S)return S;return Object};
TPp=function(N){return function(b,S){b.behaviors=b.behaviors||[];b.behaviors.push(N||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",b,S).prototype:void 0));Object.defineProperty(b,S,{get:function(){return this},
enumerable:!0,configurable:!0})}};
tOs=function(N){N=N===void 0?{}:N;return function(b,S){b.properties=b.properties||{};N.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?N.type=mH_(Reflect.getMetadata("design:type",b,S)):N.type=String);var P=N,H=b.properties[S];b.properties[S]=H?Object.assign({},H,P):P}};
MOL=function(N){return function(b,S){b.listeners=b.listeners||{};b.listeners[N]=S}};
FGY=function(){var N=_.$I.apply(0,arguments);if(N.length===0)throw Error("Wd");return function(b,S){b.observers=b.observers||[];b.observers.push(S+"("+N.join(",")+")")}};
BP9=function(){var N=_.$I.apply(0,arguments);return function(b,S,P){var H=Object.getOwnPropertyDescriptor(b,S).get,K="__compute__"+S;Object.defineProperty(b,K,{value:H,enumerable:!0});b.properties=b.properties||{};H=b.properties[S];H||(H={},b.properties[S]=H);H.computed=K+"("+N.join(",")+")";P.get=void 0}};
_.Tb=function(N,b,S){_.E5.call(this);this.JSC$11547_id_=null;this.usingListeners_=!1;this.JSC$11547_listener_=N;this.handler_=S;this.JSC$11547_win_=b||window;this.callback_=(0,_.pT)(this.JSC$11549_doAction_,this)};
t3=function(N){this.range_=N};
MM=function(N){this.range_=N};
lAa=function(N){return _.FG?new MM(N):_.B_?new t3(N):new lx(N)};
ux=function(N,b,S){_.E5.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=N;this.scrollTimer_=new _.Lx(50);this.JSC$11626_eventHandler_=new _.fx(this);this.scrollDelta_=new _.ek;this.containerIsActuallyContent_=N.tagName==="BODY"||N.tagName==="HTML";this.containerBounds_=LG_(N);this.containerIsActuallyContent_&&(N=_.Z2(),this.containerBounds_.height=N.height,this.containerBounds_.width=N.width);this.margin_=b||0;if(b){if(b=this.containerBounds_.clone(),N=this.margin_){var P=
Math.min(N,b.height*.25);b.top+=P;b.height-=2*P;N=Math.min(N,b.width*.25);b.left+=N;b.width-=2*N}}else b=this.containerBounds_;this.scrollBounds_=b;S||this.JSC$11626_eventHandler_.listen(_.hh(this.containerNode_),"mousemove",this.JSC$11628_onMouseMove);this.JSC$11626_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11628_onTick_)};
_.Q6=function(N){this.mechanism=N};
xX=function(N,b){this.JSC$11724_key_=N;this.JSC$11724_value_=b};
uJI=function(N){if(N>=55296&&N<=57343||N>1114111)return"\ufffd";N in fAa&&(N=fAa[N]);var b="";N>65535&&(N-=65536,b+=String.fromCharCode(N>>>10&1023|55296),N=56320|N&1023);return b+=String.fromCharCode(N)};
QSY=function(N,b){return N<b?1:-1};
ova=function(){return function(N){return N.charAt(1)==="#"?N.charAt(2)==="X"||N.charAt(2)==="x"?uJI(parseInt(N.substr(3),16)):uJI(parseInt(N.substr(2),10)):xHE[N.slice(1,-1)]}};
UHE=function(N){return N.slice(1,N.length-1).trim().replace(iLY,function(b){return J6I[b]||" "})};
oe=function(N){return N===32||N===9};
ix=function(N,b){return b<N.length?N.charCodeAt(b):-1};
ZLI=function(N){for(;N;){if(N._lastLineBlank)return!0;var b=N.type;if(b==="list"||b==="item")N=N._lastChild;else break}return!1};
J3=function(N){if(jSs.test(N)){var b=1,S=0,P=0;for(N[S]=="|"&&S++;S<N.length;){switch(N[S]){case "|":P=1;break;case " ":break;case "\t":break;default:P&&(P=0,b++)}S++}return zpb.test(N)?-b:b}return 0};
A6u=function(N){return N=="table"||N=="row"||N=="cell"};
XrU=function(){return new Us("document",[[1,1],[0,0]])};
EvU=function(){};
ZY=function(){var N={safe:!1};N=N||{};N.softbreak=N.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=N};
DHa=function(N,b){var S="";if(N)if(N=N.toLowerCase(),N===" "||prp.test(N))S="space";else if(Y7L.test(N))S="esc";else if(N.length==1){if(!b||y6s.test(N))S=N}else S=IAf.test(N)?N.replace("arrow",""):N=="multiply"?"*":N;return S};
$Ha=function(N,b){var S=N.hasModifiers;if(b.key)S=DHa(b.key,S);else if(b.detail&&b.detail.key)S=DHa(b.detail.key,S);else{S=b.keyIdentifier;var P="";S&&(S in VOI?P=VOI[S]:gve.test(S)?(S=parseInt(S.replace("U+","0x"),16),P=String.fromCharCode(S).toLowerCase()):P=S.toLowerCase());(S=P)||(S=b.keyCode,P="",Number(S)&&(S>=65&&S<=90?P=String.fromCharCode(32+S):S>=112&&S<=123?P="f"+(S-112+1):S>=48&&S<=57?P=String(S-48):S>=96&&S<=105?P=String(S-96):P=eps[S]),S=P);S=S||""}return S===N.key&&(!N.hasModifiers||
!!b.shiftKey===!!N.shiftKey&&!!b.ctrlKey===!!N.ctrlKey&&!!b.altKey===!!N.altKey&&!!b.metaKey===!!N.metaKey)};
q7o=function(N){return N.length===1?{combo:N,key:N,event:"keydown"}:N.split("+").reduce(function(b,S){var P=S.split(":");S=P[0];P=P[1];S in hp9?(b[hp9[S]]=!0,b.hasModifiers=!0):(b.key=S,b.event=P||"keydown");return b},{combo:N.split(":").shift()})};
wr9=function(N){return N.trim().split(" ").map(function(b){return q7o(b)})};
NCa=function(N,b){if(N&&N.fn){var S=N.fn;N.fn=function(){try{S.apply(this,arguments)}catch(P){if(P instanceof jg)console.warn("Argument '"+P.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw P;}}}return N};
Sr9=function(){var N=[],b;var S=S||_.bFu.length;for(b=0;b<8;b++)N[b]=_.bFu[0|Math.random()*S];return N.join("")};
PW_=function(){var N=_.$I.apply(0,arguments);return N.length===0?function(b){return b}:N.length===1?N[0]:N.reduce(function(b,S){return function(){return b(S.apply(null,_.IX(_.$I.apply(0,arguments))))}})};
HFs=function(){var N=_.$I.apply(0,arguments);return function(b){return function(S,P){S=b(S,P);var H=function(){throw Error("Ge");},K={getState:S.getState,
dispatch:function(C){return H.apply(null,[C].concat(_.IX(_.$I.apply(1,arguments))))}};
P=N.map(function(C){return C(K)});
H=PW_.apply(null,_.IX(P))(S.dispatch);return Object.assign({},S,{dispatch:H})}}};
vje=function(N){Object.keys(N).forEach(function(b){var S=N[b];if(typeof S(void 0,{type:sdb})==="undefined")throw Error("He`"+b);if(typeof S(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+KQO()})==="undefined")throw Error("Ie`"+b+"`"+sdb);})};
zb=function(N){for(var b=Object.keys(N),S={},P=0;P<b.length;P++){var H=b[P];typeof N[H]==="function"&&(S[H]=N[H])}var K=Object.keys(S);try{vje(S)}catch(G){var C=G}return function(G,a){G=G===void 0?{}:G;if(C)throw C;for(var R=!1,n={},d=0;d<K.length;d++){var m=K[d],k=G[m],M=(0,S[m])(k,a);if(typeof M==="undefined")throw G=a&&a.type,Error("Je`"+(G?'"'+String(G)+'"':"(unknown type)")+"`"+m);n[m]=M;R=R||M!==k}return(R=R||K.length!==Object.keys(G).length)?n:G}};
OFU=function(N,b,S){function P(){if(n)throw Error("Ke");return G}
function H(k){if(typeof k!=="function")throw Error("Le`"+typeof k);if(n)throw Error("Me");var M=!0;R===a&&(R=a.slice());R.push(k);return function(){if(M){if(n)throw Error("Ne");M=!1;R===a&&(R=a.slice());var l=R.indexOf(k);R.splice(l,1);a=null}}}
function K(k){if(typeof k!=="object"||k===null)var M=!1;else{for(M=k;Object.getPrototypeOf(M)!==null;)M=Object.getPrototypeOf(M);M=Object.getPrototypeOf(k)===M}if(!M)throw Error("Oe`"+typeof k);if(typeof k.type==="undefined")throw Error("Pe");if(n)throw Error("Qe");try{n=!0,G=C(G,k)}finally{n=!1}M=a=R;for(var l=0;l<M.length;l++)(0,M[l])();return k}
if(typeof b==="function"&&typeof S==="function"||typeof S==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof b==="function"&&typeof S==="undefined"&&(S=b,b=void 0);if(typeof S!=="undefined"){if(typeof S!=="function")throw Error("Se`"+typeof S);return S(OFU)(N,b)}if(typeof N!=="function")throw Error("Te`"+typeof N);var C=N,G=b,a=[],R=a,n=!1;K({type:sdb});var d={},m=(d.dispatch=K,d.subscribe=H,d.getState=P,d.replaceReducer=function(k){if(typeof k!=="function")throw Error("Ue`"+
typeof k);C=k;K({type:CWb});return m},d[G5f]=function(){var k={};
return k.subscribe=function(M){function l(){M.next&&M.next(P())}
if(typeof M!=="object"||M===null)throw new TypeError("Ve`"+typeof M);l();return{unsubscribe:H(l)}},k[G5f]=function(){return this},k},d);
return m};
r1I=function(N){function b(){H&&(H=!1,N());K&&P()}
function S(){requestAnimationFrame(b)}
function P(){var G=Date.now();if(H){if(G-C<2)return;K=!0}else H=!0,K=!1,setTimeout(S,20);C=G}
var H=!1,K=!1,C=0;return P};
A3=function(N){return typeof N==="number"?N:parseFloat(N)||0};
c1U=function(N){return _.$I.apply(1,arguments).reduce(function(b,S){return b+A3(N["border-"+S+"-width"])},0)};
nj_=function(N){if(aIs[N])return aIs[N];var b=globalThis[N],S=b.prototype,P=N in R5u?R5u[N]:void 0;P=!(!P||!P.every(function(a){var R,n;return!!((R=Object.getOwnPropertyDescriptor(S,a))==null?0:(n=R.get)==null?0:n.toString().includes("[native code]"))}));
var H=N in WQ_?WQ_[N]:void 0;H=!(!H||!H.every(function(a){var R;return typeof S[a]==="function"&&((R=S[a])==null?void 0:R.toString().includes("[native code]"))}));
if(P&&H&&!globalThis.Zone)return aIs[N]=b.prototype;try{var K=document.createElement("iframe");document.body.appendChild(K);var C=K.contentWindow;if(!C)return b.prototype;var G=C[N].prototype;document.body.removeChild(K);return G?aIs[N]=G:S}catch(a){return S}};
XG=function(N,b,S){var P=N+"."+String(S);if(dOu[P])return dOu[P].call(b);N=nj_(N);var H;N=(H=Object.getOwnPropertyDescriptor(N,S))==null?void 0:H.get;if(!N)return b[S];dOu[P]=N;return N.call(b)};
k5s=function(N,b){var S="Node."+String(b);if(mOa[S])return mOa[S].bind(N);var P=nj_("Node")[b];if(typeof P!=="function")return N[b];mOa[S]=P;return P.bind(N)};
Es=function(N,b,S){try{if(!(b in N))return function(){};
var P=N[b],H=S(P);typeof H==="function"&&(H.prototype=H.prototype||{},Object.defineProperties(H,{__rrweb_original__:{enumerable:!1,value:P}}));N[b]=H;return function(){N[b]=P}}catch(K){return function(){}}};
y6=function(N){var b=N&&"host"in N&&"mode"in N&&px(N)||null;return!!(b&&"shadowRoot"in b&&YX(b)===N)};
Ie=function(N){return Object.prototype.toString.call(N)==="[object ShadowRoot]"};
TCI=function(N){N.includes(" background-clip: text;")&&!N.includes(" -webkit-background-clip: text;")&&(N=N.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return N};
MAE=function(N){try{var b=N.rules||N.cssRules;if(!b)return null;var S=N.href;!S&&N.ownerNode&&(S=N.ownerNode.baseURI);var P=Array.from(b,function(H){return tAU(H,S)}).join("");
return TCI(P)}catch(H){return null}};
tAU=function(N,b){if("styleSheet"in N){try{var S;if(!(S=MAE(N.styleSheet))){var P=N.cssText;if(P.split('"').length<3)S=P;else{var H=["@import","url("+JSON.stringify(N.href)+")"];N.layerName===""?H.push("layer"):N.layerName&&H.push("layer("+N.layerName+")");N.supportsText&&H.push("supports("+N.supportsText+")");N.media.length&&H.push(N.media.mediaText);S=H.join(" ")+";"}}var K=S}catch(C){K=N.cssText}return N.styleSheet.href?FQo(K,N.styleSheet.href):K}K=N.cssText;"selectorText"in N&&N.selectorText.includes(":")&&
(K=K.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return b?FQo(K,b):K};
BC_=function(N){var b=N.element;var S=N.maskInputOptions;var P=N.tagName;var H=N.type;var K=N.value;N=N.maskInputFn;K=K||"";H=H&&H.toLowerCase();if(S[P.toLowerCase()]||H&&S[H])K=N?N(K,b):"*".repeat(K.length);return K};
lIo=function(N){var b=N.getContext("2d");if(!b)return!0;for(var S=0;S<N.width;S+=50)for(var P=0;P<N.height;P+=50){var H=b.getImageData;if((new Uint32Array(("__rrweb_original__"in H?H.__rrweb_original__:H).call(b,S,P,Math.min(50,N.width-S),Math.min(50,N.height-P)).data.buffer)).some(function(K){return K!==0}))return!1}return!0};
LQO=function(N){var b=N.type;return N.hasAttribute("data-rr-is-password")?"password":b?b.toLowerCase():null};
fIa=function(N){try{var b=new URL(N,window.location.href)}catch(H){return null}var S,P;return(P=(S=b.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:S[1])!=null?P:null};
FQo=function(N,b){return(N||"").replace(uzY,function(S,P,H,K,C,G){H=H||C||G;P=P||K||"";if(!H)return S;if(Qd9.test(H)||xOb.test(H)||oje.test(H))return"url("+P+H+P+")";if(H[0]==="/")return S=b.indexOf("//")>-1?b.split("/").slice(0,3).join("/"):b.split("/")[0],S=S.split("?")[0],"url("+P+(S+H)+P+")";S=b.split("/");K=H.split("/");S.pop();K=_.O(K);for(H=K.next();!H.done;H=K.next())H=H.value,H!=="."&&(H===".."?S.pop():S.push(H));return"url("+P+S.join("/")+P+")"})};
iFp=function(N,b){return(b=b===void 0?!1:b)?N.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):N.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
J1s=function(N,b){var S=S===void 0?!1:S;b=Array.from(b.childNodes);var P=[],H=0;if(b.length>1&&N&&typeof N==="string")for(var K=iFp(N,S),C=K.length/N.length,G=1;G<b.length;G++)if(b[G].textContent&&typeof b[G].textContent==="string"){for(var a=iFp(b[G].textContent,S),R=3;R<a.length&&(a[R].match(/[a-zA-Z0-9]/)||a.indexOf(a.substring(0,R),1)!==-1);R++);for(;R<a.length;R++){var n=a.substring(0,R),d=K.split(n),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&b[G-1].textContent!=="")m=
K.indexOf(n,1);else if(d.length===1){n=n.substring(0,n.length-1);d=K.split(n);if(d.length<=1)return P.push(N),P;R=101}else R===a.length-1&&(m=K.indexOf(n));if(d.length>=2&&R>100){var k=b[G-1].textContent;k&&typeof k==="string"&&(m=K.indexOf(n,iFp(k).length));m===-1&&(m=d[0].length)}if(m!==-1){for(a=Math.floor(m/C);a>0&&a<N.length;){H+=1;if(H>50*b.length)return P.push(N),P;R=iFp(N.substring(0,a),S);if(R.length===m){P.push(N.substring(0,a));N=N.substring(a);K=K.substring(m);break}else a=R.length<m?
a+Math.max(1,Math.floor((m-R.length)/C)):a-Math.max(1,Math.floor((R.length-m)*C))}break}}}P.push(N);return P};
ZFa=function(){return UOb++};
z5O=function(N){if(N instanceof HTMLFormElement)return"form";N=N.tagName.toLowerCase();return jdY.test(N)?"div":N};
p$p=function(N,b){function S(R){return(R=R.exec(b.substring(P)))?(R=R[0],P+=R.length,R):""}
if(b.trim()==="")return b;for(var P=0,H=[];;){S(A1_);if(P>=b.length)break;var K=S(X$O);if(K.slice(-1)===",")K=Ejs(N,K.substring(0,K.length-1)),H.push(K);else{var C="";K=Ejs(N,K);for(var G=!1;;){var a=b.charAt(P);if(a===""){H.push((K+C).trim());break}else if(G)a===")"&&(G=!1);else if(a===","){P+=1;H.push((K+C).trim());break}else a==="("&&(G=!0);C+=a;P+=1}}}return H.join(", ")};
Ejs=function(N,b){return b&&b.trim()!==""?YrI(N,b):b};
YrI=function(N,b){var S=y1f.get(N);S||(S=N.createElement("a"),y1f.set(N,S));if(!b)b="";else if(b.startsWith("blob:")||b.startsWith("data:"))return b;qj(S,b);return S.href};
IIo=function(N,b,S,P){return P?S==="src"||S==="href"&&(b!=="use"||P[0]!=="#")||S==="xlink:href"&&P[0]!=="#"||S==="background"&&(b==="table"||b==="td"||b==="th")?Ejs(N,P):S==="srcset"?p$p(N,P):S==="style"?FQo(P,YrI(N)):b==="object"&&S==="data"?Ejs(N,P):P:P};
DOL=function(N,b){return(N==="video"||N==="audio")&&b==="autoplay"};
VA9=function(N,b,S){try{if(typeof b==="string"){if(N.classList.contains(b))return!0}else for(var P=N.classList.length;P--;)if(b.test(N.classList[P]))return!0;if(S)return N.matches(S)}catch(H){}return!1};
gj_=function(N,b,S){if(!N)return!1;if(N.nodeType!==N.ELEMENT_NODE)return S?gj_(DY(N),b,S):!1;for(var P=N.classList.length;P--;)if(b.test(N.classList[P]))return!0;return S?gj_(DY(N),b,S):!1};
e5U=function(N,b,S,P){if(N.nodeType===N.ELEMENT_NODE){if(!V6(N).length)return!1}else{if(g0(N)===null)return!1;N=g0(N)}try{if(typeof b==="string")if(P){if(N.closest("."+b))return!0}else{if(N.classList.contains(b))return!0}else if(gj_(N,b,P))return!0;if(S)if(P){if(N.closest(S))return!0}else if(N.matches(S))return!0}catch(H){}return!1};
$Os=function(N,b,S){var P=N.contentWindow;if(P){var H=!1;try{var K=P.document.readyState}catch(G){return}if(K!=="complete"){var C=setTimeout(function(){H||(b(),H=!0)},S);
N.addEventListener("load",function(){clearTimeout(C);H=!0;b()})}else P.location.href==="about:blank"&&N.src!=="about:blank"&&N.src!==""||setTimeout(b,0),N.addEventListener("load",b)}};
h5u=function(N,b,S){var P=!1;try{var H=N.sheet}catch(C){return}if(!H){var K=setTimeout(function(){P||(b(),P=!0)},S);
N.addEventListener("load",function(){clearTimeout(K);P=!0;b()})}};
N_f=function(N,b){var S=b.doc,P=b.blockClass,H=b.blockSelector,K=b.needsMask,C=b.inlineStylesheet,G=b.maskInputOptions===void 0?{}:b.maskInputOptions,a=b.maskTextFn,R=b.maskInputFn,n=b.dataURLOptions===void 0?{}:b.dataURLOptions,d=b.inlineImages,m=b.recordCanvas,k=b.keepIframeSrcFn,M=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,l=b.cssCaptured===void 0?!1:b.cssCaptured;b=b.mirror;b.nodeMetaMap.has(S)?(b=b.getId(S),b=b===1?void 0:b):b=void 0;switch(N.nodeType){case N.DOCUMENT_NODE:return N.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:N.compatMode}:{type:0,childNodes:[]};case N.DOCUMENT_TYPE_NODE:return{type:1,name:N.name,publicId:N.publicId,systemId:N.systemId,rootId:b};case N.ELEMENT_NODE:return qre(N,{doc:S,blockClass:P,blockSelector:H,inlineStylesheet:C,maskInputOptions:G,maskInputFn:R,dataURLOptions:n,inlineImages:d,recordCanvas:m,keepIframeSrcFn:k,newlyAddedElement:M,rootId:b});case N.TEXT_NODE:return C=(P=DY(N))&&P.tagName,P="",H=C==="STYLE"?!0:void 0,(C=C==="SCRIPT"?!0:void 0)?
P="SCRIPT_PLACEHOLDER":l||(P=w$o(N),H&&P&&(P=FQo(P,YrI(S)))),!H&&!C&&P&&K&&(P=a?a(P,g0(N)):P.replace(/[\S]/g,"*")),{type:3,textContent:P||"",rootId:b};case N.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:b};case N.COMMENT_NODE:return{type:5,textContent:w$o(N)||"",rootId:b};default:return!1}};
qre=function(N,b){var S=b.doc,P=b.inlineStylesheet,H=b.maskInputOptions===void 0?{}:b.maskInputOptions,K=b.maskInputFn,C=b.dataURLOptions===void 0?{}:b.dataURLOptions,G=b.inlineImages,a=b.recordCanvas,R=b.keepIframeSrcFn,n=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,d=b.rootId;b=VA9(N,b.blockClass,b.blockSelector);for(var m=z5O(N),k={},M=N.attributes.length,l=0;l<M;l++){var u=N.attributes[l];DOL(m,u.name)||(k[u.name]=IIo(S,m,u.name.toLowerCase(),u.value))}m==="link"&&P&&(P=Array.from(S.styleSheets).find(function(V){return V.href===
N.href}),M=null,P&&(M=MAE(P)),M&&(delete k.rel,delete k.href,k._cssText=M));
m==="style"&&N.sheet&&(P=MAE(N.sheet))&&(N.childNodes.length>1&&(P=J1s(P,N).join("/* rr_split */")),k._cssText=P);if(m==="input"||m==="textarea"||m==="select")P=N.value,M=N.checked,k.type!=="radio"&&k.type!=="checkbox"&&k.type!=="submit"&&k.type!=="button"&&P?k.value=BC_({element:N,type:LQO(N),tagName:m,value:P,maskInputOptions:H,maskInputFn:K}):M&&(k.checked=M);m==="option"&&(N.selected&&!H.select?k.selected=!0:delete k.selected);m==="dialog"&&N.open&&(k.rr_open_mode=N.matches("dialog:modal")?"modal":
"non-modal");m==="canvas"&&a&&(N.__context==="2d"?lIo(N)||(k.rr_dataURL=N.toDataURL(C.type,C.quality)):"__context"in N||(H=N.toDataURL(C.type,C.quality),K=S.createElement("canvas"),K.width=N.width,K.height=N.height,K=K.toDataURL(C.type,C.quality),H!==K&&(k.rr_dataURL=H)));if(m==="img"&&G){eg||(eg=S.createElement("canvas"),b8o=eg.getContext("2d"));var J=N.currentSrc||N.getAttribute("src")||"<unknown-src>",Z=N.crossOrigin,D=function(){N.removeEventListener("load",D);try{eg.width=N.naturalWidth,eg.height=
N.naturalHeight,b8o.drawImage(N,0,0),k.rr_dataURL=eg.toDataURL(C.type,C.quality)}catch(V){if(N.crossOrigin!=="anonymous"){N.crossOrigin="anonymous";N.complete&&N.naturalWidth!==0?D():N.addEventListener("load",D);return}console.warn("Cannot inline img src="+J+"! Error: "+V)}N.crossOrigin==="anonymous"&&(Z?k.crossOrigin=Z:N.removeAttribute("crossorigin"))};
N.complete&&N.naturalWidth!==0?D():N.addEventListener("load",D)}if(m==="audio"||m==="video")S=k,S.rr_mediaState=N.paused?"paused":"played",S.rr_mediaCurrentTime=N.currentTime,S.rr_mediaPlaybackRate=N.playbackRate,S.rr_mediaMuted=N.muted,S.rr_mediaLoop=N.loop,S.rr_mediaVolume=N.volume;n||(N.scrollLeft&&(k.rr_scrollLeft=N.scrollLeft),N.scrollTop&&(k.rr_scrollTop=N.scrollTop));b&&(n=N.getBoundingClientRect(),k={class:k.class,rr_width:n.width+"px",rr_height:n.height+"px"});m!=="iframe"||R(k.src)||(N.contentDocument||
(k.rr_src=k.src),delete k.src);var Y;try{customElements.get(m)&&(Y=!0)}catch(V){}return{type:2,tagName:m,attributes:k,childNodes:[],isSVG:!(N.tagName!=="svg"&&!N.ownerSVGElement)||void 0,needBlock:b,rootId:d,isCustom:Y}};
$X=function(N){return N===void 0||N===null?"":N.toLowerCase()};
S0e=function(N,b){return b.comment&&N.type===5||N.type===2&&(b.script&&(N.tagName==="script"||N.tagName==="link"&&(N.attributes.rel==="preload"&&N.attributes.as==="script"||N.attributes.rel==="modulepreload")||N.tagName==="link"&&N.attributes.rel==="prefetch"&&typeof N.attributes.href==="string"&&fIa(N.attributes.href)==="js")||b.headFavicon&&(N.tagName==="link"&&N.attributes.rel==="shortcut icon"||N.tagName==="meta"&&($X(N.attributes.name).match(/^msapplication-tile(image|color)$/)||$X(N.attributes.name)===
"application-name"||$X(N.attributes.rel)==="icon"||$X(N.attributes.rel)==="apple-touch-icon"||$X(N.attributes.rel)==="shortcut icon"))||N.tagName==="meta"&&(b.headMetaDescKeywords&&$X(N.attributes.name).match(/^description|keywords$/)||b.headMetaSocial&&($X(N.attributes.property).match(/^(og|twitter|fb):/)||$X(N.attributes.name).match(/^(og|twitter):/)||$X(N.attributes.name)==="pinterest")||b.headMetaRobots&&($X(N.attributes.name)==="robots"||$X(N.attributes.name)==="googlebot"||$X(N.attributes.name)===
"bingbot")||b.headMetaHttpEquiv&&N.attributes["http-equiv"]!==void 0||b.headMetaAuthorship&&($X(N.attributes.name)==="author"||$X(N.attributes.name)==="generator"||$X(N.attributes.name)==="framework"||$X(N.attributes.name)==="publisher"||$X(N.attributes.name)==="progid"||$X(N.attributes.property).match(/^article:/)||$X(N.attributes.property).match(/^product:/))||b.headMetaVerification&&($X(N.attributes.name)==="google-site-verification"||$X(N.attributes.name)==="yandex-verification"||$X(N.attributes.name)===
"csrf-token"||$X(N.attributes.name)==="p:domain_verify"||$X(N.attributes.name)==="verify-v1"||$X(N.attributes.name)==="verification"||$X(N.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
h3=function(N,b){var S=b.doc,P=b.mirror,H=b.blockClass,K=b.blockSelector,C=b.maskTextClass,G=b.maskTextSelector,a=b.skipChild===void 0?!1:b.skipChild,R=b.inlineStylesheet===void 0?!0:b.inlineStylesheet,n=b.maskInputOptions===void 0?{}:b.maskInputOptions,d=b.maskTextFn,m=b.maskInputFn,k=b.slimDOMOptions,M=b.dataURLOptions===void 0?{}:b.dataURLOptions,l=b.inlineImages===void 0?!1:b.inlineImages,u=b.recordCanvas===void 0?!1:b.recordCanvas,J=b.onSerialize,Z=b.onIframeLoad,D=b.iframeLoadTimeout===void 0?
5E3:b.iframeLoadTimeout,Y=b.onStylesheetLoad,V=b.stylesheetLoadTimeout===void 0?5E3:b.stylesheetLoadTimeout,g=b.keepIframeSrcFn===void 0?function(){return!1}:b.keepIframeSrcFn,e=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,se=b.cssCaptured===void 0?!1:b.cssCaptured,Ca=b.needsMask,ML=b.preserveWhiteSpace===void 0?!0:b.preserveWhiteSpace;
Ca||(Ca=e5U(N,C,G,Ca===void 0));var na=N_f(N,{doc:S,mirror:P,blockClass:H,blockSelector:K,needsMask:Ca,inlineStylesheet:R,maskInputOptions:n,maskTextFn:d,maskInputFn:m,dataURLOptions:M,inlineImages:l,recordCanvas:u,keepIframeSrcFn:g,newlyAddedElement:e,cssCaptured:se});if(!na)return console.warn(N,"not serialized"),null;e=P.nodeMetaMap.has(N)?P.getId(N):S0e(na,k)||!ML&&na.type===3&&!na.textContent.replace(/^\s+|\s+$/gm,"").length?-2:UOb++;b=Object.assign(na,{id:e});P.add(N,b);if(e===-2)return null;
J&&J(N);e=!a;b.type===2&&(e=e&&!b.needBlock,delete b.needBlock,(se=YX(N))&&Ie(se)&&(b.isShadowHost=!0));if((b.type===0||b.type===2)&&e){k.headWhitespace&&b.type===2&&b.tagName==="head"&&(ML=!1);a={doc:S,mirror:P,blockClass:H,blockSelector:K,needsMask:Ca,maskTextClass:C,maskTextSelector:G,skipChild:a,inlineStylesheet:R,maskInputOptions:n,maskTextFn:d,maskInputFn:m,slimDOMOptions:k,dataURLOptions:M,inlineImages:l,recordCanvas:u,preserveWhiteSpace:ML,onSerialize:J,onIframeLoad:Z,iframeLoadTimeout:D,
onStylesheetLoad:Y,stylesheetLoadTimeout:V,keepIframeSrcFn:g,cssCaptured:!1};if(b.type!==2||b.tagName!=="textarea"||b.attributes.value===void 0)for(b.type===2&&b.attributes._cssText!==void 0&&typeof b.attributes._cssText==="string"&&(a.cssCaptured=!0),e=_.O(Array.from(V6(N))),se=e.next();!se.done;se=e.next())(se=h3(se.value,a))&&b.childNodes.push(se);e=null;if(N.nodeType===N.ELEMENT_NODE&&(e=YX(N))){se=_.O(Array.from(V6(e)));for(var To=se.next();!To.done;To=se.next())if(To=h3(To.value,a))Ie(e)&&(To.isShadow=
!0),b.childNodes.push(To)}}(a=DY(N))&&y6(a)&&Ie(a)&&(b.isShadow=!0);b.type===2&&b.tagName==="iframe"&&$Os(N,function(){var jp=N.contentDocument;jp&&Z&&(jp=h3(jp,{doc:jp,mirror:P,blockClass:H,blockSelector:K,needsMask:Ca,maskTextClass:C,maskTextSelector:G,skipChild:!1,inlineStylesheet:R,maskInputOptions:n,maskTextFn:d,maskInputFn:m,slimDOMOptions:k,dataURLOptions:M,inlineImages:l,recordCanvas:u,preserveWhiteSpace:ML,onSerialize:J,onIframeLoad:Z,iframeLoadTimeout:D,onStylesheetLoad:Y,stylesheetLoadTimeout:V,
keepIframeSrcFn:g}))&&Z(N,jp)},D);
b.type===2&&b.tagName==="link"&&typeof b.attributes.rel==="string"&&(b.attributes.rel==="stylesheet"||b.attributes.rel==="preload"&&typeof b.attributes.href==="string"&&fIa(b.attributes.href)==="css")&&h5u(N,function(){if(Y){var jp=h3(N,{doc:S,mirror:P,blockClass:H,blockSelector:K,needsMask:Ca,maskTextClass:C,maskTextSelector:G,skipChild:!1,inlineStylesheet:R,maskInputOptions:n,maskTextFn:d,maskInputFn:m,slimDOMOptions:k,dataURLOptions:M,inlineImages:l,recordCanvas:u,preserveWhiteSpace:ML,onSerialize:J,
onIframeLoad:Z,iframeLoadTimeout:D,onStylesheetLoad:Y,stylesheetLoadTimeout:V,keepIframeSrcFn:g});jp&&Y(N,jp)}},V);
return b};
PAE=function(N){var b=document;N=N||{};var S=N.maskAllInputs===void 0?!1:N.maskAllInputs,P=N.slimDOM===void 0?!1:N.slimDOM;return h3(b,{doc:b,mirror:N.mirror===void 0?new qM:N.mirror,blockClass:N.blockClass===void 0?"rr-block":N.blockClass,blockSelector:N.blockSelector===void 0?null:N.blockSelector,maskTextClass:N.maskTextClass===void 0?"rr-mask":N.maskTextClass,maskTextSelector:N.maskTextSelector===void 0?null:N.maskTextSelector,skipChild:!1,inlineStylesheet:N.inlineStylesheet===void 0?!0:N.inlineStylesheet,
maskInputOptions:S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:S===!1?{password:!0}:S,maskTextFn:N.maskTextFn,maskInputFn:N.maskInputFn,slimDOMOptions:P===!0||P==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:P==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:P===!1?{}:P,dataURLOptions:N.dataURLOptions,
inlineImages:N.inlineImages===void 0?!1:N.inlineImages,recordCanvas:N.recordCanvas===void 0?!1:N.recordCanvas,preserveWhiteSpace:N.preserveWhiteSpace,onSerialize:N.onSerialize,onIframeLoad:N.onIframeLoad,iframeLoadTimeout:N.iframeLoadTimeout,onStylesheetLoad:N.onStylesheetLoad,stylesheetLoadTimeout:N.stylesheetLoadTimeout,keepIframeSrcFn:N.keepIframeSrcFn===void 0?function(){return!1}:N.keepIframeSrcFn,
newlyAddedElement:!1})};
w0=function(N,b,S){S=S===void 0?document:S;var P={capture:!0,passive:!0};S.addEventListener(N,b,P);return function(){return S.removeEventListener(N,b,P)}};
Ny=function(N,b,S){S=S===void 0?{}:S;var P=null,H=0;return function(){var K=_.$I.apply(0,arguments),C=Date.now();H||S.leading!==!1||(H=C);var G=b-(C-H),a=this;G<=0||G>b?(P&&(clearTimeout(P),P=null),H=C,N.apply(a,K)):P||S.trailing===!1||(P=setTimeout(function(){H=S.leading===!1?0:Date.now();P=null;N.apply(a,K)},G))}};
H8I=function(N,b,S,P,H){H=H===void 0?window:H;var K=H.Object.getOwnPropertyDescriptor(N,b);H.Object.defineProperty(N,b,P?S:{set:function(C){var G=this;setTimeout(function(){S.set.call(G,C)},0);
K&&K.set&&K.set.call(this,C)}});
return function(){return H8I(N,b,K||{},!0)}};
sEs=function(N){var b=N.document,S,P,H,K;return{left:b.scrollingElement?b.scrollingElement.scrollLeft:N.pageXOffset!==void 0?N.pageXOffset:b.documentElement.scrollLeft||(b==null?void 0:b.body)&&((S=g0(b.body))==null?void 0:S.scrollLeft)||(b==null?void 0:(P=b.body)==null?void 0:P.scrollLeft)||0,top:b.scrollingElement?b.scrollingElement.scrollTop:N.pageYOffset!==void 0?N.pageYOffset:(b==null?void 0:b.documentElement.scrollTop)||(b==null?void 0:b.body)&&((H=g0(b.body))==null?void 0:H.scrollTop)||(b==
null?void 0:(K=b.body)==null?void 0:K.scrollTop)||0}};
Kro=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
vaO=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
O8E=function(N){return N?N.nodeType===N.ELEMENT_NODE?N:g0(N):null};
bZ=function(N,b,S,P){if(!N)return!1;N=O8E(N);if(!N)return!1;try{if(typeof b==="string"){if(N.classList.contains(b)||P&&N.closest("."+b)!==null)return!0}else if(gj_(N,b,P))return!0}catch(H){}return S&&(N.matches(S)||P&&N.closest(S)!==null)?!0:!1};
CAo=function(N,b,S){return N.tagName==="TITLE"&&S.headTitleMutations?!0:b.getId(N)===-2};
GIU=function(N,b){if(y6(N))return!1;var S=b.getId(N);return b.has(S)?(S=DY(N))&&S.nodeType===N.DOCUMENT_NODE?!1:S?GIU(S,b):!0:!0};
rBI=function(){var N=N===void 0?window:N;"NodeList"in N&&!N.NodeList.prototype.forEach&&(N.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in N&&!N.DOMTokenList.prototype.forEach&&(N.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
cBL=function(N,b){return!(N.nodeName!=="LINK"||N.nodeType!==N.ELEMENT_NODE||!N.getAttribute||N.getAttribute("rel")!=="stylesheet"||!b.nodeMetaMap.get(N))};
RRI=function(N){var b=null,S;"getRootNode"in N&&((S=aJe(N))==null?void 0:S.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&px(aJe(N))&&(b=px(aJe(N)));return b};
Wrf=function(N){var b=N.ownerDocument;if(b){if(!(b=k5s(b,"contains")(N)))if(b=N.ownerDocument){for(var S;S=RRI(N);)N=S;b=k5s(b,"contains")(N)}else b=!1}else b=!1;return b};
nau=function(N,b){N.delete(b);V6(b).forEach(function(S){return nau(N,S)})};
dmf=function(N,b){for(var S=[N];S.length;)N=S.pop(),b.has(N)||(b.add(N),V6(N).forEach(function(P){return S.push(P)}))};
mmp=function(N,b){N.size===0?N=!1:N=(b=DY(b))?N.has(b):!1;return N};
T_U=function(N,b){return N.size===0?!1:kIa(N,b)};
kIa=function(N,b){return(b=DY(b))?N.has(b)?!0:kIa(N,b):!1};
S0=function(N){try{if("composedPath"in N){var b=N.composedPath();if(b.length)return b[0]}else if("path"in N&&N.path.length)return N.path[0]}catch(S){}return N&&N.target};
MyY=function(N,b){var S=new tyO;Pi.push(S);S.init(N);N=new (nj_("MutationObserver").constructor)(Hi(S.processMutations.bind(S)));N.observe(b,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return N};
B_U=function(N){var b=N.mousemoveCb;var S=N.sampling;var P=N.doc;var H=N.mirror;if(S.mousemove===!1)return function(){};
var K=[],C,G=Ny(Hi(function(R){var n=Date.now()-C;b(K.map(function(d){d.timeOffset-=n;return d}),R);
K=[];C=null}),typeof S.mousemoveCallback==="number"?S.mousemoveCallback:500);
N=Hi(Ny(Hi(function(R){var n=S0(R),d=R.changedTouches?R.changedTouches[0]:R,m=d.clientX;d=d.clientY;C||(C=FrE());K.push({x:m,y:d,id:H.getId(n),timeOffset:FrE()-C});G(typeof DragEvent!=="undefined"&&R instanceof DragEvent?12:R instanceof MouseEvent?1:6)}),typeof S.mousemove==="number"?S.mousemove:50,{trailing:!1}));
var a=[w0("mousemove",N,P),w0("touchmove",N,P),w0("drag",N,P)];return Hi(function(){a.forEach(function(R){return R()})})};
lJO=function(N){var b=N.mouseInteractionCb;var S=N.doc;var P=N.mirror;var H=N.blockClass;var K=N.blockSelector;N=N.sampling;if(N.mouseInteraction===!1)return function(){};
var C=N.mouseInteraction===!0||N.mouseInteraction===void 0?{}:N.mouseInteraction,G=[],a=null,R=function(n){return function(d){var m=S0(d);if(!bZ(m,H,K,!0)){var k=null,M=n;if("pointerType"in d){switch(d.pointerType){case "mouse":k=0;break;case "touch":k=2;break;case "pen":k=1}k===2&&(sY[n]===1?M="TouchStart":sY[n]===0&&(M="TouchEnd"))}else d.changedTouches&&(k=2);if(k!==null){if(a=k,M.startsWith("Touch")&&k===2||M.startsWith("Mouse")&&k===0)k=null}else sY[n]===2&&(k=a,a=null);if(d=d.changedTouches?
d.changedTouches[0]:d)m=P.getId(m),Hi(b)(Object.assign({},{type:sY[M],id:m,x:d.clientX,y:d.clientY},k!==null&&{pointerType:k}))}}};
Object.keys(sY).filter(function(n){return Number.isNaN(Number(n))&&!n.endsWith("_Departed")&&C[n]!==!1}).forEach(function(n){var d=n.toLowerCase(),m=R(n);
if(window.PointerEvent)switch(sY[n]){case 1:case 0:d=d.replace("mouse","pointer");break;case 7:case 9:return}G.push(w0(d,m,S))});
return Hi(function(){G.forEach(function(n){return n()})})};
Lr_=function(N){var b=N.scrollCb;var S=N.doc;var P=N.mirror;var H=N.blockClass;var K=N.blockSelector;return w0("scroll",Hi(Ny(Hi(function(C){var G=S0(C);G&&!bZ(G,H,K,!0)&&(C=P.getId(G),G===S&&S.defaultView?(G=sEs(S.defaultView),b({id:C,x:G.left,y:G.top})):b({id:C,x:G.scrollLeft,y:G.scrollTop}))}),N.sampling.scroll||100)),S)};
fJp=function(N,b){var S=N.viewportResizeCb;var P=-1,H=-1;return w0("resize",Hi(Ny(Hi(function(){var K=Kro(),C=vaO();if(P!==K||H!==C)S({width:Number(C),height:Number(K)}),P=K,H=C}),200)),b.win)};
xmO=function(N){function b(u){var J=S0(u),Z=u.isTrusted,D=J&&J.tagName;J&&D==="OPTION"&&(J=g0(J));if(!(!J||!D||uFO.indexOf(D)<0||bZ(J,C,G,!0)||J.classList.contains(a)||R&&J.matches(R))){var Y=J.value,V=!1;u=LQO(J)||"";if(u==="radio"||u==="checkbox")V=J.checked;else if(n[D.toLowerCase()]||n[u])Y=BC_({element:J,maskInputOptions:n,tagName:D,type:u,value:Y,maskInputFn:d});S(J,k?{text:Y,isChecked:V,userTriggered:Z}:{text:Y,isChecked:V});Z=J.name;u==="radio"&&Z&&V&&H.querySelectorAll('input[type="radio"][name="'+
Z+'"]').forEach(function(g){if(g!==J){var e=g.value;S(g,k?{text:e,isChecked:!V,userTriggered:!1}:{text:e,isChecked:!V})}})}}
function S(u,J){var Z=QEe.get(u);Z&&Z.text===J.text&&Z.isChecked===J.isChecked||(QEe.set(u,J),u=K.getId(u),Hi(P)(Object.assign({},J,{id:u})))}
var P=N.inputCb;var H=N.doc;var K=N.mirror;var C=N.blockClass;var G=N.blockSelector;var a=N.ignoreClass;var R=N.ignoreSelector;var n=N.maskInputOptions;var d=N.maskInputFn;var m=N.sampling;var k=N.userTriggeredOnInput;var M=(m.input==="last"?["change"]:["input","change"]).map(function(u){return w0(u,Hi(b),H)}),l=H.defaultView;
if(!l)return function(){M.forEach(function(u){return u()})};
N=l.Object.getOwnPropertyDescriptor(l.HTMLInputElement.prototype,"value");m=[[l.HTMLInputElement.prototype,"value"],[l.HTMLInputElement.prototype,"checked"],[l.HTMLSelectElement.prototype,"value"],[l.HTMLTextAreaElement.prototype,"value"],[l.HTMLSelectElement.prototype,"selectedIndex"],[l.HTMLOptionElement.prototype,"selected"]];N&&N.set&&M.push.apply(M,_.IX(m.map(function(u){return H8I(u[0],u[1],{set:function(){Hi(b)({target:this,isTrusted:!1})}},!1,l)})));
return Hi(function(){M.forEach(function(u){return u()})})};
i8p=function(N){var b=[],S,P,H,K;oaa("CSSGroupingRule")&&((S=N.parentRule)==null?void 0:(P=S.constructor)==null?void 0:P.name)==="CSSGroupingRule"||oaa("CSSMediaRule")&&N.parentRule instanceof CSSMediaRule||oaa("CSSSupportsRule")&&N.parentRule instanceof CSSSupportsRule||oaa("CSSConditionRule")&&((H=N.parentRule)==null?void 0:(K=H.constructor)==null?void 0:K.name)==="CSSConditionRule"?(N=Array.from(N.parentRule.cssRules).indexOf(N),b.unshift(N)):N.parentStyleSheet&&(N=Array.from(N.parentStyleSheet.cssRules).indexOf(N),
b.unshift(N));return b};
K6=function(N,b,S){var P,H;if(!N)return{};N.ownerNode?P=b.getId(N.ownerNode):H=S.getId(N);return{styleId:H,id:P}};
UmY=function(N,b){var S=N.styleSheetRuleCb;var P=N.mirror;var H=N.stylesheetManager;var K=b.win;if(!K.CSSStyleSheet||!K.CSSStyleSheet.prototype)return function(){};
var C=K.CSSStyleSheet.prototype.insertRule;K.CSSStyleSheet.prototype.insertRule=new vi(C,{apply:Hi(function(m,k,M){var l=_.O(M),u=l.next().value;l=l.next().value;var J=K6(k,P,H.styleMirror),Z=J.id;J=J.styleId;(Z&&Z!==-1||J&&J!==-1)&&S({id:Z,styleId:J,adds:[{rule:u,index:l}]});return m.apply(k,M)})});
K.CSSStyleSheet.prototype.addRule=function(m,k,M){M=M===void 0?this.cssRules.length:M;return K.CSSStyleSheet.prototype.insertRule.apply(this,[m+" { "+k+" }",M])};
var G=K.CSSStyleSheet.prototype.deleteRule;K.CSSStyleSheet.prototype.deleteRule=new vi(G,{apply:Hi(function(m,k,M){var l=_.O(M).next().value,u=K6(k,P,H.styleMirror),J=u.id;u=u.styleId;(J&&J!==-1||u&&u!==-1)&&S({id:J,styleId:u,removes:[{index:l}]});return m.apply(k,M)})});
K.CSSStyleSheet.prototype.removeRule=function(m){return K.CSSStyleSheet.prototype.deleteRule.apply(this,[m])};
if(K.CSSStyleSheet.prototype.replace){var a=K.CSSStyleSheet.prototype.replace;K.CSSStyleSheet.prototype.replace=new vi(a,{apply:Hi(function(m,k,M){var l=_.O(M).next().value,u=K6(k,P,H.styleMirror),J=u.id;u=u.styleId;(J&&J!==-1||u&&u!==-1)&&S({id:J,styleId:u,replace:l});return m.apply(k,M)})})}if(K.CSSStyleSheet.prototype.replaceSync){var R=K.CSSStyleSheet.prototype.replaceSync;
K.CSSStyleSheet.prototype.replaceSync=new vi(R,{apply:Hi(function(m,k,M){var l=_.O(M).next().value,u=K6(k,P,H.styleMirror),J=u.id;u=u.styleId;(J&&J!==-1||u&&u!==-1)&&S({id:J,styleId:u,replaceSync:l});return m.apply(k,M)})})}var n={};
JBa("CSSGroupingRule")?n.CSSGroupingRule=K.CSSGroupingRule:(JBa("CSSMediaRule")&&(n.CSSMediaRule=K.CSSMediaRule),JBa("CSSConditionRule")&&(n.CSSConditionRule=K.CSSConditionRule),JBa("CSSSupportsRule")&&(n.CSSSupportsRule=K.CSSSupportsRule));var d={};Object.entries(n).forEach(function(m){var k=_.O(m);m=k.next().value;k=k.next().value;d[m]={insertRule:k.prototype.insertRule,deleteRule:k.prototype.deleteRule};k.prototype.insertRule=new vi(d[m].insertRule,{apply:Hi(function(M,l,u){var J=_.O(u),Z=J.next().value;
J=J.next().value;var D=K6(l.parentStyleSheet,P,H.styleMirror),Y=D.id;D=D.styleId;(Y&&Y!==-1||D&&D!==-1)&&S({id:Y,styleId:D,adds:[{rule:Z,index:[].concat(_.IX(i8p(l)),[J||0])}]});return M.apply(l,u)})});
k.prototype.deleteRule=new vi(d[m].deleteRule,{apply:Hi(function(M,l,u){var J=_.O(u).next().value,Z=K6(l.parentStyleSheet,P,H.styleMirror),D=Z.id;Z=Z.styleId;(D&&D!==-1||Z&&Z!==-1)&&S({id:D,styleId:Z,removes:[{index:[].concat(_.IX(i8p(l)),[J])}]});return M.apply(l,u)})})});
return Hi(function(){K.CSSStyleSheet.prototype.insertRule=C;K.CSSStyleSheet.prototype.deleteRule=G;a&&(K.CSSStyleSheet.prototype.replace=a);R&&(K.CSSStyleSheet.prototype.replaceSync=R);Object.entries(n).forEach(function(m){var k=_.O(m);m=k.next().value;k=k.next().value;k.prototype.insertRule=d[m].insertRule;k.prototype.deleteRule=d[m].deleteRule})})};
jEa=function(N,b){var S=N.mirror;var P=N.stylesheetManager;var H=null;H=b.nodeName==="#document"?S.getId(b):S.getId(px(b));var K,C,G;N=b.nodeName==="#document"?(K=b.defaultView)==null?void 0:K.Document:(C=b.ownerDocument)==null?void 0:(G=C.defaultView)==null?void 0:G.ShadowRoot;var a=(N==null?0:N.prototype)?Object.getOwnPropertyDescriptor(N==null?void 0:N.prototype,"adoptedStyleSheets"):void 0;if(H===null||H===-1||!N||!a)return function(){};
Object.defineProperty(b,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var R;return(R=a.get)==null?void 0:R.call(this)},
set:function(R){var n,d=(n=a.set)==null?void 0:n.call(this,R);if(H!==null&&H!==-1)try{Z8_(P,R,H)}catch(m){}return d}});
return Hi(function(){Object.defineProperty(b,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})};
zRO=function(N,b){var S=N.styleDeclarationCb;var P=N.mirror;var H=N.ignoreCSSAttributes;var K=N.stylesheetManager;var C=b.win;var G=C.CSSStyleDeclaration.prototype.setProperty;C.CSSStyleDeclaration.prototype.setProperty=new vi(G,{apply:Hi(function(R,n,d){var m=_.O(d),k=m.next().value,M=m.next().value;m=m.next().value;if(H.has(k))return G.apply(n,[k,M,m]);var l,u=K6((l=n.parentRule)==null?void 0:l.parentStyleSheet,P,K.styleMirror);l=u.id;u=u.styleId;(l&&l!==-1||u&&u!==-1)&&S({id:l,styleId:u,set:{property:k,
value:M,priority:m},index:i8p(n.parentRule)});return R.apply(n,d)})});
var a=C.CSSStyleDeclaration.prototype.removeProperty;C.CSSStyleDeclaration.prototype.removeProperty=new vi(a,{apply:Hi(function(R,n,d){var m=_.O(d).next().value;if(H.has(m))return a.apply(n,[m]);var k,M=K6((k=n.parentRule)==null?void 0:k.parentStyleSheet,P,K.styleMirror);k=M.id;M=M.styleId;(k&&k!==-1||M&&M!==-1)&&S({id:k,styleId:M,remove:{property:m},index:i8p(n.parentRule)});return R.apply(n,d)})});
return Hi(function(){C.CSSStyleDeclaration.prototype.setProperty=G;C.CSSStyleDeclaration.prototype.removeProperty=a})};
ABo=function(N){var b=N.mediaInteractionCb;var S=N.blockClass;var P=N.blockSelector;var H=N.mirror;var K=N.sampling;N=N.doc;var C=Hi(function(a){return Ny(Hi(function(R){if((R=S0(R))&&!bZ(R,S,P,!0)){var n=R.currentTime,d=R.volume,m=R.muted,k=R.playbackRate,M=R.loop;b({type:a,id:H.getId(R),currentTime:n,volume:d,muted:m,playbackRate:k,loop:M})}}),K.media||500)}),G=[w0("play",C(0),N),
w0("pause",C(1),N),w0("seeked",C(2),N),w0("volumechange",C(3),N),w0("ratechange",C(4),N)];return Hi(function(){G.forEach(function(a){return a()})})};
X0a=function(N){var b=N.fontCb;N=N.doc;var S=N.defaultView;if(!S)return function(){};
var P=[],H=new WeakMap,K=S.FontFace;S.FontFace=function(C,G,a){var R=new K(C,G,a);H.set(R,{family:C,buffer:typeof G!=="string",descriptors:a,fontSource:typeof G==="string"?G:JSON.stringify(Array.from(new Uint8Array(G)))});return R};
N=Es(N.fonts,"add",function(C){return function(G){setTimeout(Hi(function(){var a=H.get(G);a&&(b(a),H.delete(G))}),0);
return C.apply(this,[G])}});
P.push(function(){S.FontFace=K});
P.push(N);return Hi(function(){P.forEach(function(C){return C()})})};
Eaa=function(N){var b=N.doc,S=N.mirror,P=N.blockClass,H=N.blockSelector,K=N.selectionCb,C=!0;N=Hi(function(){var G=b.getSelection();if(G&&!(C&&(G==null?0:G.isCollapsed))){C=G.isCollapsed||!1;for(var a=[],R=G.rangeCount||0,n=0;n<R;n++){var d=G.getRangeAt(n),m=d.startContainer,k=d.startOffset,M=d.endContainer;d=d.endOffset;bZ(m,P,H,!0)||bZ(M,P,H,!0)||a.push({start:S.getId(m),startOffset:k,end:S.getId(M),endOffset:d})}K({ranges:a})}});
N();return w0("selectionchange",N)};
p0o=function(N){var b=N.doc;var S=N.customElementCb;return(N=b.defaultView)&&N.customElements?Es(N.customElements,"define",function(P){return function(H,K,C){try{S({define:{name:H}})}catch(G){console.warn("Custom element callback failed for "+H)}return P.apply(this,[H,K,C])}}):function(){}};
Y0p=function(N,b){var S=N.mutationCb,P=N.mousemoveCb,H=N.mouseInteractionCb,K=N.scrollCb,C=N.viewportResizeCb,G=N.inputCb,a=N.mediaInteractionCb,R=N.styleSheetRuleCb,n=N.styleDeclarationCb,d=N.canvasMutationCb,m=N.fontCb,k=N.selectionCb,M=N.customElementCb;N.mutationCb=function(){var l=_.$I.apply(0,arguments);b.mutation&&b.mutation.apply(b,_.IX(l));S.apply(null,_.IX(l))};
N.mousemoveCb=function(){var l=_.$I.apply(0,arguments);b.mousemove&&b.mousemove.apply(b,_.IX(l));P.apply(null,_.IX(l))};
N.mouseInteractionCb=function(){var l=_.$I.apply(0,arguments);b.mouseInteraction&&b.mouseInteraction.apply(b,_.IX(l));H.apply(null,_.IX(l))};
N.scrollCb=function(){var l=_.$I.apply(0,arguments);b.scroll&&b.scroll.apply(b,_.IX(l));K.apply(null,_.IX(l))};
N.viewportResizeCb=function(){var l=_.$I.apply(0,arguments);b.viewportResize&&b.viewportResize.apply(b,_.IX(l));C.apply(null,_.IX(l))};
N.inputCb=function(){var l=_.$I.apply(0,arguments);b.input&&b.input.apply(b,_.IX(l));G.apply(null,_.IX(l))};
N.mediaInteractionCb=function(){var l=_.$I.apply(0,arguments);b.mediaInteaction&&b.mediaInteaction.apply(b,_.IX(l));a.apply(null,_.IX(l))};
N.styleSheetRuleCb=function(){var l=_.$I.apply(0,arguments);b.styleSheetRule&&b.styleSheetRule.apply(b,_.IX(l));R.apply(null,_.IX(l))};
N.styleDeclarationCb=function(){var l=_.$I.apply(0,arguments);b.styleDeclaration&&b.styleDeclaration.apply(b,_.IX(l));n.apply(null,_.IX(l))};
N.canvasMutationCb=function(){var l=_.$I.apply(0,arguments);b.canvasMutation&&b.canvasMutation.apply(b,_.IX(l));d.apply(null,_.IX(l))};
N.fontCb=function(){var l=_.$I.apply(0,arguments);b.font&&b.font.apply(b,_.IX(l));m.apply(null,_.IX(l))};
N.selectionCb=function(){var l=_.$I.apply(0,arguments);b.selection&&b.selection.apply(b,_.IX(l));k.apply(null,_.IX(l))};
N.customElementCb=function(){var l=_.$I.apply(0,arguments);b.customElement&&b.customElement.apply(b,_.IX(l));M.apply(null,_.IX(l))}};
yBu=function(N,b){b=b===void 0?{}:b;var S=N.doc.defaultView;if(!S)return function(){};
Y0p(N,b);var P;N.recordDOM&&(P=MyY(N,N.doc));var H=B_U(N),K=lJO(N),C=Lr_(N),G=fJp(N,{win:S}),a=xmO(N),R=ABo(N),n=function(){},d=function(){},m=function(){},k=function(){};
N.recordDOM&&(n=UmY(N,{win:S}),d=jEa(N,N.doc),m=zRO(N,{win:S}),N.collectFonts&&(k=X0a(N)));var M=Eaa(N),l=p0o(N),u=[];N=_.O(N.plugins);for(b=N.next();!b.done;b=N.next())b=b.value,u.push(b.observer(b.callback,S,b.options));return Hi(function(){Pi.forEach(function(Z){return Z.reset()});
var J;(J=P)==null||J.disconnect();H();K();C();G();a();R();n();d();m();k();M();l();u.forEach(function(Z){return Z()})})};
oaa=function(N){return typeof window[N]!=="undefined"};
JBa=function(N){return!!(typeof window[N]!=="undefined"&&window[N].prototype&&"insertRule"in window[N].prototype&&"deleteRule"in window[N].prototype)};
IJp=function(N){N=new Uint8Array(N);for(var b="",S=0;S<N.byteLength;S++)b+=String.fromCharCode(N[S]);return btoa(b)};
DmU=function(N,b,S){if(N instanceof Array)return N.map(function(H){return DmU(H,b,S)});
if(N!==null){if(N instanceof Float32Array||N instanceof Float64Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Uint8Array||N instanceof Uint16Array||N instanceof Int16Array||N instanceof Int8Array||N instanceof Uint8ClampedArray)return{rr_type:N.constructor.name,args:[Object.values(N)]};if(N instanceof ArrayBuffer){var P=N.constructor.name;N=IJp(N);return{rr_type:P,base64:N}}if(N instanceof DataView)return{rr_type:N.constructor.name,args:[DmU(N.buffer,b,S),N.byteOffset,N.byteLength]};
if(N instanceof HTMLImageElement)return{rr_type:N.constructor.name,src:N.src};if(N instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:N.toDataURL()};if(N instanceof ImageData)return{rr_type:N.constructor.name,args:[DmU(N.data,b,S),N.width,N.height]};if(Vyp(N,b)||typeof N==="object")return P=N.constructor.name,N=gaO(N,b,S),{rr_type:P,index:N}}return N};
$m_=function(N,b,S,P){for(var H=[],K=_.O(Object.getOwnPropertyNames(b.CanvasRenderingContext2D.prototype)),C=K.next(),G={};!C.done;G={prop$jscomp$58:void 0},C=K.next()){G.prop$jscomp$58=C.value;try{if(typeof b.CanvasRenderingContext2D.prototype[G.prop$jscomp$58]==="function"){var a=Es(b.CanvasRenderingContext2D.prototype,G.prop$jscomp$58,function(R){return function(n){return function(){var d=_.$I.apply(0,arguments),m=this;bZ(this.canvas,S,P,!0)||setTimeout(function(){var k=eRs(d,b,m);N(m.canvas,{type:OY["2D"],
property:R.prop$jscomp$58,args:k})},0);
return n.apply(this,d)}}}(G));
H.push(a)}}catch(R){C=H8I(b.CanvasRenderingContext2D.prototype,G.prop$jscomp$58,{set:function(n){return function(d){N(this.canvas,{type:OY["2D"],property:n.prop$jscomp$58,args:[d],setter:!0})}}(G)}),H.push(C)}}return function(){H.forEach(function(R){return R()})}};
hRu=function(N,b,S,P){var H=[];try{var K=Es(N.HTMLCanvasElement.prototype,"getContext",function(C){return function(G){var a=_.$I.apply(1,arguments);if(!bZ(this,b,S,!0)){var R=G==="experimental-webgl"?"webgl":G;"__context"in this||(this.__context=R);P&&["webgl","webgl2"].includes(R)&&(a[0]&&typeof a[0]==="object"?(R=a[0],R.preserveDrawingBuffer||(R.preserveDrawingBuffer=!0)):a.splice(0,1,{preserveDrawingBuffer:!0}))}return C.apply(this,[G].concat(_.IX(a)))}});
H.push(K)}catch(C){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){H.forEach(function(C){return C()})}};
q0o=function(N,b,S,P,H,K){for(var C=[],G=_.O(Object.getOwnPropertyNames(N)),a=G.next(),R={};!a.done;R={prop$jscomp$59:void 0},a=G.next())if(R.prop$jscomp$59=a.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(R.prop$jscomp$59))try{if(typeof N[R.prop$jscomp$59]==="function"){var n=Es(N,R.prop$jscomp$59,function(d){return function(m){return function(){var k=_.$I.apply(0,arguments),M=m.apply(this,k);gaO(M,K,this);"tagName"in this.canvas&&!bZ(this.canvas,P,H,!0)&&(k=
eRs(k,K,this),S(this.canvas,{type:b,property:d.prop$jscomp$59,args:k}));return M}}}(R));
C.push(n)}}catch(d){a=H8I(N,R.prop$jscomp$59,{set:function(m){return function(k){S(this.canvas,{type:b,property:m.prop$jscomp$59,args:[k],setter:!0})}}(R)}),C.push(a)}return C};
w0o=function(N,b,S,P){var H=[];H.push.apply(H,_.IX(q0o(b.WebGLRenderingContext.prototype,1,N,S,P,b)));typeof b.WebGL2RenderingContext!=="undefined"&&H.push.apply(H,_.IX(q0o(b.WebGL2RenderingContext.prototype,2,N,S,P,b)));return function(){H.forEach(function(K){return K()})}};
Rdo=function(N){var b=N=N===void 0?{}:N,S=b.emit,P=b.checkoutEveryNms,H=b.checkoutEveryNth,K=b.blockClass===void 0?"rr-block":b.blockClass,C=b.blockSelector===void 0?null:b.blockSelector,G=b.ignoreClass===void 0?"rr-ignore":b.ignoreClass,a=b.ignoreSelector===void 0?null:b.ignoreSelector,R=b.maskTextClass===void 0?"rr-mask":b.maskTextClass,n=b.maskTextSelector===void 0?null:b.maskTextSelector,d=b.inlineStylesheet===void 0?!0:b.inlineStylesheet,m=b.maskAllInputs,k=b.maskInputOptions,M=b.slimDOMOptions,
l=b.maskInputFn,u=b.maskTextFn,J=b.hooks,Z=b.packFn,D=b.sampling===void 0?{}:b.sampling,Y=b.dataURLOptions===void 0?{}:b.dataURLOptions,V=b.mousemoveWait,g=b.recordDOM===void 0?!0:b.recordDOM,e=b.recordCanvas===void 0?!1:b.recordCanvas,se=b.recordCrossOriginIframes===void 0?!1:b.recordCrossOriginIframes,Ca=b.recordAfter===void 0?N.recordAfter==="DOMContentLoaded"?N.recordAfter:"load":b.recordAfter,ML=b.userTriggeredOnInput===void 0?!1:b.userTriggeredOnInput,na=b.collectFonts===void 0?!1:b.collectFonts,
To=b.inlineImages===void 0?!1:b.inlineImages,jp=b.plugins,Xf=b.keepIframeSrcFn===void 0?function(){return!1}:b.keepIframeSrcFn,YO=b.ignoreCSSAttributes===void 0?new Set([]):b.ignoreCSSAttributes;
C6=b.errorHandler;var Wk=se?window.parent===window:!0,S9=!1;if(!Wk)try{window.parent.document&&(S9=!1)}catch(d9){S9=!0}if(Wk&&!S)throw Error("af");if(!Wk&&!S9)return function(){};
V!==void 0&&D.mousemove===void 0&&(D.mousemove=V);Gk.reset();var Vu=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:k!==void 0?k:{password:!0},n9=M===!0||M==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:M==="all",headMetaDescKeywords:M==="all",headTitleMutations:M==="all"}:
M?M:{};rBI();var mc,f9=0,mJ=function(d9){for(var sa=_.O(jp||[]),$O=sa.next();!$O.done;$O=sa.next())$O=$O.value,$O.eventProcessor&&(d9=$O.eventProcessor(d9));Z&&!S9&&(d9=Z(d9));return d9};
rp=function(d9,sa){d9.timestamp=FrE();var $O;(($O=Pi[0])==null?0:$O.isFrozen())&&d9.type!==2&&(d9.type!==3||d9.data.source!==0)&&Pi.forEach(function(qS){return qS.unfreeze()});
Wk?S==null||S(mJ(d9),sa):S9&&(sa={type:"rrweb",event:mJ(d9),origin:window.location.origin,isCheckout:sa},window.parent.postMessage(sa,"*"));d9.type===2?(mc=d9,f9=0):d9.type!==3||d9.data.source===0&&d9.data.isAttachIframe||(f9++,d9=P&&d9.timestamp-mc.timestamp>P,(H&&f9>=H||d9)&&NuU(!0))};
var Bk=function(d9){rp({type:3,data:Object.assign({},{source:0},d9)})},RU=function(d9){return rp({type:3,
data:Object.assign({},{source:3},d9)})},Ab=function(d9){return rp({type:3,
data:Object.assign({},{source:9},d9)})},kZ=new bOU({mutationCb:Bk,
adoptedStyleSheetCb:function(d9){return rp({type:3,data:Object.assign({},{source:15},d9)})}}),Ib=new SyI({mirror:Gk,
mutationCb:Bk,stylesheetManager:kZ,recordCrossOriginIframes:se,wrappedEmit:rp});N=_.O(jp||[]);for(b=N.next();!b.done;b=N.next())b=b.value,b.getMirror&&b.getMirror({nodeMirror:Gk,crossOriginIframeMirror:Ib.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ib.crossOriginIframeStyleMirror});var Ud=new P3_;HOI=new sj9({recordCanvas:e,mutationCb:Ab,win:window,blockClass:K,blockSelector:C,mirror:Gk,sampling:D.canvas,dataURLOptions:Y});var ob=new KKa({mutationCb:Bk,scrollCb:RU,bypassOptions:{blockClass:K,
blockSelector:C,maskTextClass:R,maskTextSelector:n,inlineStylesheet:d,maskInputOptions:Vu,dataURLOptions:Y,maskTextFn:u,maskInputFn:l,recordCanvas:e,inlineImages:To,sampling:D,slimDOMOptions:n9,iframeManager:Ib,stylesheetManager:kZ,canvasManager:HOI,keepIframeSrcFn:Xf,processedNodeManager:Ud},mirror:Gk});NuU=function(d9){d9=d9===void 0?!1:d9;if(g){rp({type:4,data:{href:window.location.href,width:vaO(),height:Kro()}},d9);kZ.reset();ob.init();Pi.forEach(function($O){return $O.lock()});
var sa=PAE({mirror:Gk,blockClass:K,blockSelector:C,maskTextClass:R,maskTextSelector:n,inlineStylesheet:d,maskAllInputs:Vu,maskTextFn:u,maskInputFn:l,slimDOM:n9,dataURLOptions:Y,recordCanvas:e,inlineImages:To,onSerialize:function($O){$O.nodeName==="IFRAME"&&Gk.nodeMetaMap.get($O)&&vSa(Ib,$O);cBL($O,Gk)&&OOa(kZ,$O);$O&&YX($O)&&C3I(ob,YX($O),document)},
onIframeLoad:function($O,qS){Gmu(Ib,$O,qS);$O.contentWindow&&$O.contentDocument&&rqs(ob,$O.contentWindow.Element,$O.contentDocument)},
onStylesheetLoad:function($O,qS){cqY(kZ,$O,qS)},
keepIframeSrcFn:Xf});sa?(rp({type:2,data:{node:sa,initialOffset:sEs(window)}},d9),Pi.forEach(function($O){return $O.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z8_(kZ,document.adoptedStyleSheets,Gk.getId(document))):console.warn("Failed to snapshot the document")}};
try{var PM=[],Vz=function(d9){var sa;return Hi(yBu)({mutationCb:Bk,mousemoveCb:function($O,qS){return rp({type:3,data:{source:qS,positions:$O}})},
mouseInteractionCb:function($O){return rp({type:3,data:Object.assign({},{source:2},$O)})},
scrollCb:RU,viewportResizeCb:function($O){return rp({type:3,data:Object.assign({},{source:4},$O)})},
inputCb:function($O){return rp({type:3,data:Object.assign({},{source:5},$O)})},
mediaInteractionCb:function($O){return rp({type:3,data:Object.assign({},{source:7},$O)})},
styleSheetRuleCb:function($O){return rp({type:3,data:Object.assign({},{source:8},$O)})},
styleDeclarationCb:function($O){return rp({type:3,data:Object.assign({},{source:13},$O)})},
canvasMutationCb:Ab,fontCb:function($O){return rp({type:3,data:Object.assign({},{source:10},$O)})},
selectionCb:function($O){rp({type:3,data:Object.assign({},{source:14},$O)})},
customElementCb:function($O){rp({type:3,data:Object.assign({},{source:16},$O)})},
blockClass:K,ignoreClass:G,ignoreSelector:a,maskTextClass:R,maskTextSelector:n,maskInputOptions:Vu,inlineStylesheet:d,sampling:D,recordDOM:g,recordCanvas:e,inlineImages:To,userTriggeredOnInput:ML,collectFonts:na,doc:d9,maskInputFn:l,maskTextFn:u,keepIframeSrcFn:Xf,blockSelector:C,slimDOMOptions:n9,dataURLOptions:Y,mirror:Gk,iframeManager:Ib,stylesheetManager:kZ,shadowDomManager:ob,processedNodeManager:Ud,canvasManager:HOI,ignoreCSSAttributes:YO,plugins:(jp==null?void 0:(sa=jp.filter(function($O){return $O.observer}))==
null?void 0:sa.map(function($O){return{observer:$O.observer,
options:$O.options,callback:function(qS){return rp({type:6,data:{plugin:$O.name,payload:qS}})}}}))||[]},J)};
aaY(Ib,function(d9){try{PM.push(Vz(d9.contentDocument))}catch(sa){console.warn(sa)}});
var ck=function(){NuU();PM.push(Vz(document))};
document.readyState==="interactive"||document.readyState==="complete"?ck():(PM.push(w0("DOMContentLoaded",function(){rp({type:0,data:{}});Ca==="DOMContentLoaded"&&ck()})),PM.push(w0("load",function(){rp({type:1,
data:{}});Ca==="load"&&ck()},window)));
return function(){PM.forEach(function(d9){try{d9()}catch(sa){String(sa).toLowerCase().includes("cross-origin")||console.warn(sa)}});
Ud.destroy();C6=void 0}}catch(d9){console.warn(d9)}};
_.B=function(N,b){b=b4(Nt(b));N.innerHTML=b};
dka=function(N){var b=WKe;b||(b=nSI(),b=WKe=_.Vm.transpose(b));b=b[N];return typeof b==="string"?b:_.ci(N)};
mkf=function(N){N=String(N).toLowerCase();var b=nSI()[N];return typeof b==="string"?b:_.av(N)};
kmu=function(N){N=N.toLowerCase();N=nSI()[N];return typeof N==="string"?N:null};
nSI=function(){if(!Tu_){for(var N=Object.assign({},tVE),b=_.O(MVf),S=b.next();!S.done;S=b.next())S=S.value,N[S.toLowerCase()]=S;Tu_=N}return Tu_};
la9=function(N,b){var S=window.customElements;return S&&S.get(N)||FKU[N]===!0?2:b.name==="HTMLUnknownElement"?1:b.name==="HTMLElement"&&Buu.test(N)?3:0};
uIf=function(N,b){switch(b){case "innerHTML":return LKp(N)===1?2:null;case "textContent":return N=LKp(N),N===1||N===6?1:null;default:var S,P;return(P=(S=fab[N.localName])==null?void 0:S[b])!=null?P:null}};
LKp=function(N){var b=N.localName,S=la9(b,N.constructor);switch(S){case 0:case 1:return Qjs(b,N);case 3:case 2:return 1;default:_.$Z(S,"got an unknown element classification")}};
Qjs=function(N,b){var S=Object.hasOwnProperty.call(xka,N)?xka[N]:null;return S!==null?S:Object.hasOwnProperty.call(oSf,N)&&b instanceof SVGElement?oSf[N]:null};
iO_=function(N,b){return b};
UkI=function(N){return(N=N.split(Jqs,2))?{url:N[0],metadata:N[1]}:null};
jjY=function(N){var b=String(N.url).replace(ZO_,encodeURIComponent);if(N=N.metadata){ZO_.lastIndex=0;if(ZO_.test(N))return null;b+=" "+N}return b};
ESu=function(N){function b(R){var n=R.localName;if(!R.getAttribute("is")&&la9(n,R.constructor)===2){var d;return(d=a)!=null?d:a=document.createElement("polyresinuncustomized")}(R=G[n])||(R=G[n]=document.createElement(n));return R}
var S=N.reportHandler||void 0,P=N.safeTypesBridge||zdp,H=/^$/;if(N=N.allowedIdentifierPrefixes){N=_.O(N);for(var K=N.next();!K.done;K=N.next())H=new RegExp(H.source+"|^"+_.Aq_(K.value))}S&&S(!1,"initResin",null);var C=XFa(H,P,S),G={},a=null;return function(R,n,d){var m=R.nodeType;if(m!==Node.ELEMENT_NODE){if(m===Node.TEXT_NODE){n=R.parentElement;d=!n;if(n&&n.nodeType===Node.ELEMENT_NODE){m=n.localName;var k=la9(m,n.constructor);switch(k){case 0:case 1:n=Qjs(m,n);d=n===1||n===6;break;case 3:case 2:d=
!0;break;default:_.$Z(k,"got an unknown element classification")}}if(d)return function(J){return""+P(J,"STRING",J)}}return function(J){if(!J&&J!==document.all)return J;
S&&S(!0,"Failed to sanitize "+(R.parentElement&&R.parentElement.nodeName)+" #text node to value "+J,R.parentElement);return Rv}}var M=R.localName;
m=b(R);var l=null;switch(d){case "attribute":if(mkf(n)in m)break;return function(J){return J};
case "property":if(n in m){l=uIf(m,n);break}if((k=kmu(n))&&k in m)break;return function(J){return J};
default:_.$Z(d,"got an unknown resin type, expected either 'property' or 'attribute'")}var u=d==="attribute"?n.toLowerCase():dka(n);l||(l=AA9(M,u,function(J){var Z=R.getAttribute(J);return!Z||/[\[\{]/.test(J)?null:Z}));
return function(J){var Z=Wi,D=null;if(!J&&J!==document.all)return J;if(l!=null){var Y=C[l],V=Y.safeType;D=Y.safeReplacement;V&&(Z=P(J,V,Wi));Z===Wi&&(Y.filterString?(Z=String(P(J,"STRING",J)),Z=Y.filterString(M,u,Z)):Y.filterRaw&&(Z=Y.filterRaw(M,u,J,R)),Z===D&&(Z=Wi))}Z===Wi&&(Z=D||Rv,S&&S(!0,"Failed to sanitize attribute of <"+M+">: <"+M+" "+u+'="'+J+'">',R));return Z}}};
XFa=function(N,b,S){return[,{filterRaw:function(P,H,K){return K},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:pFb,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:pFb,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Rv,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:YyL,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(P,H,K){K=
String(K).toLowerCase();return pzf(P,H,K)?K:Rv},
safeReplacement:Rv,safeType:void 0},,{filterRaw:void 0,filterString:function(P,H,K){return N.test(K)?K:Rv},
safeReplacement:Rv,safeType:"CONSTANT"},{filterRaw:function(P,H,K,C){if(typeof K==="string")var G=(G=K.match(yq_))?G.map(UkI).filter(Boolean):[];else if(Array.isArray(K))G=K;else return pFb;var a=G;G=[];var R=[],n={};if(Array.isArray(a))for(var d=0,m=a.length;d<m;++d){var k=a[d],M=k&&k.url;if(M){var l=b(M,"URL",n);if(l){var u=l!==n;(u?G:R).push({url:u?l:M,metadata:k.metadata})}}}else R.push(a);a=R.length?JSON.stringify(R):null;R=Wi;if(G.length){if(!Array.isArray(G))throw Error();R=G.map(jjY).filter(Boolean).join(" , ")||
Wi}a&&S&&S(!0,"Failed to sanitize attribute value of <"+P+">: <"+P+" "+H+'="'+K+'">: '+a,C);return R===Wi?pFb:R},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
IaO=function(N){var b=ESu(N);return function(S,P,H,K){return K||K===document.all?b(S,P,H)(K):K}};
n6=function(N,b){function S(){function H(G,a,R){for(a=Reflect.getMetadata("parameters",G)||[];a.length<=R;)a.push(null);a[R]=a[R]||[];a[R].push(C);Reflect.defineMetadata(a,G);return G}
var K=_.$I.apply(0,arguments);if(this instanceof S)return P.apply(this,K),this;var C=new (Function.prototype.bind.apply(S,[null].concat(_.IX(K))));H.annotation=C;return H}
var P=Dks(b);S.prototype.toString=function(){return"@"+N};
return S.annotationCls=S};
Dks=function(N){return function(){var b=_.$I.apply(0,arguments),S=this;N.forEach(function(P,H){H=b[H];if(Array.isArray(P))S[P[0]]=H&&H!==void 0?H:P[1];else for(var K in P)S[K]=H&&H[K]!==void 0?H[K]:P[K]})}};
VVf=function(N){return N!==void 0&&N!==null};
dp=function(N){if(typeof N==="string")return N;if(N===void 0||N===null)return""+N;if(N.overriddenName)return N.overriddenName;if(N.name)return N.name;N=N.toString();var b=N.indexOf("\n");return b===-1?N:N.substring(0,b)};
gSe=function(N){N.__forward_ref__=gSe;N.toString=function(){return dp(this())};
return N};
mi=function(N){return typeof N==="function"&&N.hasOwnProperty("__forward_ref__")&&N.__forward_ref__===gSe?N():N};
ed9=function(N){return N?N.map(function(b){return new (Function.prototype.bind.apply(b.type.annotationCls,[null].concat(_.IX(b.args?b.args:[]))))}):[]};
$ko=function(N){for(var b=[],S=0;S<N.length;++S){if(b.indexOf(N[S])>-1){b.push(N[S]);break}b.push(N[S])}return b};
hd_=function(N){return N.length>1?" ("+$ko(N.slice().reverse()).map(function(b){return dp(b.token)}).join(" -> ")+")":""};
wFs=function(N,b,S,P){if(P){var H=Error("df``"+(P instanceof Error?P.message:P));H.ngOriginalError=P}else H=Error();H.addKey=qyu;H.keys=[b];H.injectors=[N];H.constructResolvingMessage=S;H.message=H.constructResolvingMessage();H.ngOriginalError=P;return H};
qyu=function(N,b){this.injectors.push(N);this.keys.push(b);this.message=this.constructResolvingMessage()};
NKY=function(N,b){return wFs(N,b,function(){return"No provider for "+dp(this.keys[0].token)+"!"+hd_(this.keys)})};
b2b=function(N,b){return wFs(N,b,function(){return"Cannot instantiate cyclic dependency!"+hd_(this.keys)})};
SHL=function(N,b,S){return wFs(N,S,function(){var P=dp(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+P+"!"+hd_(this.keys)+"."},b)};
Pmp=function(N,b){for(var S=[],P=0,H=b.length;P<H;P++){var K=b[P];K&&K.length!=0?S.push(K.map(dp).join(" ")):S.push("?")}return Error("hf`"+dp(N)+"`"+S.join(", ")+"`"+dp(N))};
GtL=function(N){var b=void 0,S=void 0;if(N&&N.useClass!==void 0){b=N.useClass;var P=mi(N.useClass);var H=H2I.factory(P);P=soo(P)}else N&&N.useExisting!==void 0?(H=function(K){return K},P=[KvY(ky.get(mi(N.useExisting)))]):N&&N.useFactory!==void 0?(H=N.useFactory,P=vsu(N.useFactory,N.deps)):(S=N.useValue,H=function(){return N.useValue},P=O2a);
return new CmL(H,P,b,S)};
cFs=function(N){return new rFa(ky.get(mi(N.provide)),[GtL(N)],N.multi)};
RPb=function(N){N=aTO(N,[]).map(cFs);for(var b=new Map,S=0;S<N.length;S++){var P=N[S],H=b.get(P.key.id);if(H){if(P.multiProvider!==H.multiProvider)throw Error("kf`"+H+"`"+P);if(P.multiProvider)for(var K=0;K<P.resolvedFactories.length;K++)H.resolvedFactories.push(P.resolvedFactories[K]);else b.set(P.key.id,P)}else H=void 0,P.multiProvider?H=new rFa(P.key,P.resolvedFactories.slice(),P.multiProvider):H=P,b.set(P.key.id,H)}return Array.from(b.values())};
aTO=function(N,b){N.forEach(function(S){if(S instanceof WvI)b.push({provide:S,useClass:S});else if(S&&typeof S=="object"&&S.provide!==void 0)b.push(S);else if(S instanceof Array)aTO(S,b);else throw Error("gf`"+S);});
return b};
vsu=function(N,b){if(b){var S=b.map(function(P){return[P]});
return b.map(function(P){return nso(N,P,S)})}return soo(N)};
soo=function(N){var b=H2I.parameters(N);if(!b)return[];if(b.some(function(S){return S==null}))throw Pmp(N,b);
return b.map(function(S){return nso(N,S,b)})};
nso=function(N,b,S){var P=null,H=!1;if(!Array.isArray(b))return b instanceof d4f?m4s(b.token,H,null):m4s(b,H,null);for(var K=null,C=0;C<b.length;++C){var G=b[C];if(G instanceof WvI)P=G;else if(G instanceof d4f)P=G.token;else if(G instanceof ktp)H=!0;else if(G instanceof TKe||G instanceof tes)K=G}P=mi(P);if(P!=null)return m4s(P,H,K);throw Pmp(N,S);};
m4s=function(N,b,S){return new Mep(ky.get(mi(N)),b,S)};
FvY=function(N,b){for(var S=Array(N.providers.length),P=0;P<N.providers.length;++P){var H=P;if(P<0||P>=N.providers.length)throw Error("jf`"+P);S[H]=b(N.providers[P])}return S};
BKU=function(N){return typeof N==="function"&&H2I.parameters(N).every(function(b){return!!b})};
fTa=function(N){var b=lTu;LvE.get(N)||LvE.set(N,new b);return LvE.get(N)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(N)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(N)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N,b){var S,P;if(N.contains(b))return!0;N=_.Tk(N).querySelectorAll("content,slot");for(S=0;S<N.length;++S){var H=_.Tk(N[S]).getDistributedNodes();for(P=0;P<H.length;++P)if(H[P].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H[P],b))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){N.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N)&&N.preventDefault();N.targetTouches&&(N=N.targetTouches[0],ueU=N.pageX,QoE=N.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var N=0,b=tw.length;N<b;N++)document.addEventListener(tw[N],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var N=0,b=tw.length;N<b;N++)document.removeEventListener(tw[N],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){var b=_.Tk(N).rootTarget;N.type!=="touchmove"&&x4u!==b&&(x4u=b,osb=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Tk(N).path));if(!osb.length)return!0;if(N.type==="touchstart")return!1;N=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(osb,N.deltaX,N.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){for(var b=[],S=N.indexOf(i2f),P=0;P<=S;P++)if(N[P].nodeType===Node.ELEMENT_NODE){var H=N[P],K=H.style;K.overflow!=="scroll"&&K.overflow!=="auto"&&(K=window.getComputedStyle(H));K.overflow!=="scroll"&&K.overflow!=="auto"||b.push(H)}return b};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N,b,S){if(b||S)for(var P=Math.abs(S)>=Math.abs(b),H=0;H<N.length;H++){var K=N[H];if(P?S<0?K.scrollTop>0:K.scrollTop<K.scrollHeight-K.clientHeight:b<0?K.scrollLeft>0:K.scrollLeft<K.scrollWidth-K.clientWidth)return K}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){var b={deltaX:N.deltaX,deltaY:N.deltaY};"deltaX"in N||("wheelDeltaX"in N&&"wheelDeltaY"in N?(b.deltaX=-N.wheelDeltaX,b.deltaY=-N.wheelDeltaY):"wheelDelta"in N?(b.deltaX=0,b.deltaY=-N.wheelDelta):"axis"in N?(b.deltaX=N.axis===1?N.detail:0,b.deltaY=N.axis===2?N.detail:0):N.targetTouches&&(N=N.targetTouches[0],b.deltaX=ueU-N.pageX,b.deltaY=QoE-N.pageY));return b};
JFs=function(N){this.element=N;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Z2e=function(N){this.element=N;this.color=window.getComputedStyle(N).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.Tk(this.waveContainer).appendChild(this.wave);U4Y(this)};
My=function(N,b){for(var S in N)if(S.toLowerCase()===b.toLowerCase())return N[S]};
job=function(N,b){for(var S in N)if(S.toLowerCase()===b.toLowerCase()){delete N[S];break}};
AFs=function(N){N=_.Vm.clone(N);for(var b=0;b<zPp.length;++b){var S=zPp[b],P=My(N,S);P&&(N["X-Goog-Upload-Header-"+S]=P,job(N,S))}return N};
Xuu=function(N){N=_.Vm.clone(N);job(N,"X-Goog-Upload-Status")};
puu=function(N){return Ess.some(function(b){return b.test(N)})};
D4b=function(N,b){var S;var P=(S=N.formContent)==null?void 0:S.locale;S=P==null?void 0:P.split("-")[0];P=P&&YHL.includes(P)?P:S&&YHL.includes(S)?S:void 0;P=(P!=null?P:"en").replaceAll("-","_").toLowerCase();var H;N=((H=N.initializationData)==null?0:H.useNightlyRelease)?"nightly":"live";var K;return(b==null?0:(K=b.getEnableAlohaBinarySplit)==null?0:K.call(b))?_.Mz(yFs,N):_.Mz(ITa,N,P)};
ePL=function(N,b,S,P){if(Vee&&gs9===b)return Vee;gs9=b;var H=D4b(N,P);return Vee=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(K,C){var G=_.U5("SCRIPT");_.cM(G,H);G.onload=function(){b.feedbackV2GlobalObject?K(b.feedbackV2GlobalObject):C(Error("nf"))};
G.onerror=function(){C(Error("of`"+H.toString()))};
S.body.appendChild(G)})};
qH_=function(N,b,S,P){if($4L&&hPu===b)return $4L;hPu=b;var H=D4b(N,P);return $4L=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(K,C){var G=_.U5("SCRIPT");_.cM(G,H);G.onload=function(){b.feedbackV2GlobalObject?K(b.feedbackV2GlobalObject):C(Error("nf"))};
G.onerror=function(){C(Error("of`"+H.toString()))};
S.body.appendChild(G)})};
wuY=function(N,b,S,P,H){H=H===void 0?!0:H;var K,C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:return K=Date.now(),n.yield(ePL(N,S,P,b),2);case 2:C=n.yieldResult;if(!(H||((a=N.initializationData)==null?0:a.useNightlyRelease)||((R=N.initializationData)==null?0:R.isLocalServer))){G=C.initializeFeedbackClient(N,K,b);n.jumpTo(3);break}return n.yield(C.initializeFeedbackClientAsync(N,K,b),4);case 4:G=n.yieldResult;case 3:return G.initiateAloha(),n.return(G)}})};
NR_=function(N,b,S,P){var H,K,C;return _.r(function(G){if(G.nextAddress==1)return H=Date.now(),G.yield(qH_(N,S,P.document,b),2);if(G.nextAddress!=3)return K=G.yieldResult,G.yield(K.initializeFeedbackClientAsync(N,H,b,P),3);C=G.yieldResult;C.initiateAloha();return G.return(C)})};
b1o=function(N,b,S){var P=!0;P=P===void 0?!0:P;var H,K,C,G,a,R,n,d;return _.r(function(m){H=S||_.Ps;if((K=b)==null?0:(G=(C=K).getEnableAlohaBinarySplit)==null?0:G.call(C)){a=H;if(a.isFormOpened)throw new FV;a.isFormOpened=!0;N.callbacks=N.callbacks||{};R=N.callbacks.onClose||function(){};
N.callbacks.onClose=function(k){a.isFormOpened=!1;R(k)};
try{return m.return(NR_(N,b,a,H))}catch(k){throw a.isFormOpened=!1,k;}}else{n=H;if(n.isFormOpened)throw new FV;n.isFormOpened=!0;N.callbacks=N.callbacks||{};d=N.callbacks.onClose||function(){};
N.callbacks.onClose=function(k){n.isFormOpened=!1;d(k)};
try{return m.return(wuY(N,b,n,H.document,P))}catch(k){throw n.isFormOpened=!1,k;}}_.Zd(m)})};
Kpb=function(N,b){return _.r(function(S){return S.return(new Promise(function(P,H){Number.isInteger(Number(N))&&Number(N)>0?(H=Spu(b!=null?b:"")+"/aloha_form_properties?productId="+N,PGY(H,function(K){K=K.target;var C=null;try{var G=JSON,a=G.stringify;if(K.JSC$10029_xhr_){var R=K.JSC$10029_xhr_.responseText;R.indexOf(")]}'\n")==0&&(R=R.substring(5));var n=(0,_.Bi)(R)}else n=void 0;C=bgL(H1U,a.call(G,n))}catch(d){a=new H1U,n=syI(),n=_.lZ(n,13,!1),n=_.lZ(n,14,!0),n=_.lZ(n,15,!0),n=_.lZ(n,20,!1),C=_.xI(a,
1,n)}P(C)},"GET","",{},2E3,!0)):H(Error("pf`"+N))}))})};
Spu=function(N){return puu(N)?N:"https://www.google.com/tools/feedback"};
G$u=function(N){N=N.match(new RegExp(vM9,"gi"))||[];N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;a:{var S=_.O(O1b);for(var P=S.next();!P.done;P=S.next())if(P.value.test(b)){S=!1;break a}S=!0}if(!S)a:{S=_.O(CGo);for(P=S.next();!P.done;P=S.next())if(P.value.test(b)){S=!0;break a}S=!1}if(S)return!0}return!1};
rHb=function(N,b){var S={},P=Object.keys(N);P=_.O(P);for(var H=P.next();!H.done;H=P.next())H=H.value,S[H]=b(H,N[H]);return S};
cHu=function(N){switch(N){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
R2e=function(N){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(N),S=new Uint8Array(N);window.crypto.getRandomValues(S);for(var P=0;P<b.length;P++)b[P]=S[P];return b}catch(K){}b=Array(N);for(S=0;S<N;S++){P=Date.now();for(var H=0;H<P%23;H++)b[S]=Math.random();b[S]=Math.floor(Math.random()*256)}if(ata)for(S=1,P=0;P<ata.length;P++)b[S%N]^=b[(S-1)%N]/4^ata.charCodeAt(P),S++;return b};
L6=function(N){N=R2e(N);for(var b=[],S=0;S<N.length;S++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(N[S]&63));return b.join("")};
WpY=function(){var N=_.Ps.ytLoggingDocDocumentNonce_;N||(N=L6(16),_.aB("ytLoggingDocDocumentNonce_",N));return N};
dPY=function(N){N&&_.Dn("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:nMe,clientScreenNonce:N})};
mPO=function(N){return _.Vg("client-screen-nonce-store",{})[N===void 0?0:N]};
k$o=function(N,b){b=b===void 0?0:b;var S=_.Vg("client-screen-nonce-store");S||(S={},_.DH("client-screen-nonce-store",S));S[b]=N};
TRa=function(N){N=N===void 0?0:N;return N===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+N};
t2f=function(N){return _.Vg(TRa(N===void 0?0:N))};
_.uZ=function(N){return(N=t2f(N===void 0?0:N))?new _.f6({veType:N,youtubeData:void 0,jspbYoutubeData:void 0}):null};
M29=function(){var N=_.Vg("csn-to-ctt-auth-info");N||(N={},_.DH("csn-to-ctt-auth-info",N));return N};
Fpf=function(){return Object.values(_.Vg("client-screen-nonce-store",{})).filter(function(N){return N!==void 0})};
_.Qh=function(N){N=mPO(N===void 0?0:N);if(!N&&!_.g8("USE_CSN_FALLBACK",!0))return null;N||(N="UNDEFINED_CSN");return N?N:null};
lto=function(N){for(var b=_.O(Object.values(BRL)),S=b.next();!S.done;S=b.next())if(_.Qh(S.value)===N)return!0;return!1};
Lpu=function(N,b,S){var P=M29();(S=_.Qh(S))&&delete P[S];b&&(P[N]=b)};
xy=function(N){return M29()[N]};
_.iZ=function(N,b,S,P){S=S===void 0?0:S;if(N!==mPO(S)||b!==_.Vg(TRa(S)))if(Lpu(N,P,S),k$o(N,S),_.DH(TRa(S),b),b=function(){setTimeout(function(){dPY(N)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(H){b()}else b()};
fts=function(N,b){b=b===void 0?"":b;var S=[],P;for(P in N)if(N.hasOwnProperty(P)){var H=b!==""?b+"."+P:P;typeof N[P]==="object"?S.push.apply(S,_.IX(fts(N[P],H))):S.push([H,N[P]])}S.sort();return S};
_.UY=function(N){var b=_.$I.apply(1,arguments);if(!Jw(N)||b.some(function(P){return!Jw(P)}))throw Error("qf");
b=_.O(b);for(var S=b.next();!S.done;S=b.next())uXo(N,S.value)};
uXo=function(N,b){for(var S in b)if(Jw(b[S])){if(S in N&&!Jw(N[S]))throw Error("rf");S in N||(N[S]={});uXo(N[S],b[S])}else if(Qyp(b[S])){if(S in N&&!Qyp(N[S]))throw Error("sf");S in N||(N[S]=[]);xPO(N[S],b[S])}else N[S]=b[S];return N};
xPO=function(N,b){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,Jw(S)?N.push(uXo({},S)):Qyp(S)?N.push(xPO([],S)):N.push(S);return N};
Jw=function(N){return typeof N==="object"&&!Array.isArray(N)};
Qyp=function(N){return typeof N==="object"&&Array.isArray(N)};
i1b=function(N){for(var b=_.O(Object.entries(oMf)),S=b.next();!S.done;S=b.next())if(S=_.O(S.value),S.next(),S=S.next().value,S==="SLI_STATUS_"+N)return S;return"SLI_STATUS_UNKNOWN"};
_.ZV=function(N,b,S,P){return JHI(N,b,function(){return new _.UPs(N,b,S,P)})};
_.Z1u=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
jyo=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
j0=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
z2E=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
AH9=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Xoo=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Ype=function(N){N&&(N.dataset?N.dataset[EME()]="true":_.RX([_.ko(poL)],N,"data-loaded","true".toString()))};
yHI=function(N){return N?N.dataset?N.dataset[EME()]:N.getAttribute("data-loaded"):null};
EME=function(){return ItL.loaded||(ItL.loaded="loaded".replace(/\-([a-z])/g,function(N,b){return b.toUpperCase()}))};
_.zk=function(N,b,S){DP_(N,b,S===void 0?null:S)};
_.gMY=function(N,b){N&&b&&(N=""+_.gI(b),(N=V2Y[N])&&_.oHs(N))};
DP_=function(N,b,S){S=S===void 0?null:S;var P=_.e2Y(typeof N==="string"?N:N.toString()),H=document.getElementById(P),K=H&&yHI(H),C=H&&!K;K?b&&b():(b&&(K=_.Tx(P,b),b=""+_.gI(b),V2Y[b]=K),C||(H=$PI(N,P,function(){yHI(H)||(Ype(H),_.i7U(P),_.tz(function(){_.Uuf(P)},0))},S)))};
$PI=function(N,b,S,P){P=P===void 0?null:P;var H=_.U5("SCRIPT");H.id=b;H.onload=function(){S&&setTimeout(S,0)};
H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}};
P&&H.setAttribute("nonce",P);_.cM(H,typeof N==="string"?_.Dg(N):N);N=document.getElementsByTagName("head")[0]||document.body;N.insertBefore(H,N.firstChild);return H};
_.e2Y=function(N){var b=document.createElement("a");qj(b,N);return"js-"+Aw(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
h29=function(N){var b=_.Vg("INNERTUBE_HOST_OVERRIDE");b&&(N=String(b)+String(_.XV(N)));return N};
qpU=function(N){var b={};_.T("json_condensed_response")&&(b.prettyPrint="false");return N=bAU(N,b)};
_.EY=function(N){return GW(N)?"same-origin":"include"};
_.p6=function(N){return GW(N)?"same-origin":"cors"};
Yy=function(N,b,S){S=S===void 0?{}:S;N={method:b===void 0?"POST":b,mode:_.p6(N),credentials:_.EY(N)};b={};for(var P=_.O(Object.keys(S)),H=P.next();!H.done;H=P.next())H=H.value,S[H]&&(b[H]=S[H]);Object.keys(b).length>0&&(N.headers=b);return N};
_.yh=function(N,b){b=b===void 0?{}:b;return"service:"+N+"/"+Object.keys(b).sort().map(function(S){return S+":"+b[S]}).join("/")};
woI=function(N){var b,S,P,H;N=(b=_.t(N,_.Iv))==null?void 0:(S=b.watchEndpointSupportedOnesieConfig)==null?void 0:(P=S.html5PlaybackOnesieConfig)==null?void 0:(H=P.commonConfig)==null?void 0:H.url;if(!N)return[];b=new _.DV(N);return b.JSC$10265_domain_?["https://"+b.JSC$10265_domain_+"/generate_204"]:[]};
_.Sca=function(){return Nao()||KaO()||bnO&&eU("version/")?!0:_.Vg("EOM_VISITOR_DATA")?!1:!0};
Pbp=function(N){var b=N.docid||N.video_id||N.videoId||N.id;if(b)return b;b=N.raw_player_response;b||(N=N.player_response)&&(b=JSON.parse(N));return b&&b.videoDetails&&b.videoDetails.videoId||null};
HnI=function(N){return N.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Vh=function(N){return!isNaN(Number(N))&&!_.Oe(N)};
_.e0=function(N,b,S,P){P=P===void 0?!0:P;var H=_.Vg("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=_.Ol(window.location.href);K&&H.push(K);K=_.Ol(N);if(_.Z_(H,K)||!K&&_.Ka(N,"/"))if(H=document.createElement("a"),qj(H,N),N=H.href)if(N=_.XV(N),N=_.gp(N))P&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:_.Qh()},b)),S?(S=parseInt(S,10),isFinite(S)&&S>0&&sQE(N,b,S)):sQE(N,b)};
v69=function(N){var b=_.Vg("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.Ol(window.location.href);S&&b.push(S);S=_.Ol(N);if(!(_.Z_(b,S)||!S&&_.Ka(N,"/")))return null;N=_.XV(N);(N=_.gp(N))?(N=K3p(N),N=(N=_.xb.get(N,void 0)||null)?_.bQ(N):{}):N=null;return N};
sQE=function(N,b,S){N=K3p(N);b=b?_.LE(b):"";S=S||5;_.Sca()&&_.iQ(N,b,S)};
K3p=function(N){for(var b=_.O(Ona),S=b.next();!S.done;S=b.next())N=_.$y(N,S.value);return"ST-"+Aw(N).toString(36)};
_.Cba=function(N){if(N.requestFullscreen)N=N.requestFullscreen(void 0);else if(N.webkitRequestFullscreen)N=N.webkitRequestFullscreen();else if(N.mozRequestFullScreen)N=N.mozRequestFullScreen();else if(N.msRequestFullscreen)N=N.msRequestFullscreen();else if(N.webkitEnterFullscreen)N=N.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return N instanceof Promise?N:Promise.resolve()};
_.qy=function(N){var b;_.muU(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.hw()==N&&(b=document):b=N;if(b&&(N=_.muU(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))){N.call(b)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.hw=function(){var N=N===void 0?!1:N;var b=_.muU(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(N)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
_.wp=function(N,b){b=b===void 0?!0:b;N.addEventListener("wheel",Gya);N.overscrollConfig={cooldown:b}};
_.N7=function(N){N.overscrollConfig=void 0;N.removeEventListener("wheel",Gya)};
Gya=function(N){var b=N.deltaY,S=N.target,P=null;if(window.Polymer&&window.Polymer.Element){if(S=N.path||N.composedPath&&N.composedPath()){S=_.O(S);for(var H=S.next();!H.done&&(H=H.value,!rju(H,b));H=S.next())if(H.overscrollConfig){P=H;break}}}else for(;S&&!rju(S,b);){if(S.overscrollConfig){P=S;break}S=S.parentElement}P&&(b=P.overscrollConfig,b.cooldown?(P=N.deltaY,S=b.lastDeltaY||0,b.lastDeltaY=P,H=b.lastStopped||0,S&&H&&S>0==P>0?Math.abs(S)>=Math.abs(P)?(P=H+1200,S=!1):(P=H+600,S=!0):(P=Date.now()+
600,S=!0),P>Date.now()&&(N.preventDefault(),S&&(b.lastStopped=Date.now()))):N.preventDefault())};
rju=function(N,b){return b<0&&N.scrollTop>0||b>0&&N.scrollTop<N.scrollHeight-N.clientHeight-1?(N=getComputedStyle(N).overflowY,N=="auto"||N=="scroll"):!1};
_.bC=function(N,b,S,P){P||(P={bubbles:!0,cancelable:!1,composed:!0});S!==null&&S!==void 0&&(P.detail=S);var H=new CustomEvent(b,P);_.T("untrack_fire_custom_event_killswitch")?N.dispatchEvent(H):_.fQ(function(){return void N.dispatchEvent(H)});
return H};
cjY=function(N){var b=window,S=function(P){b.removeEventListener("yt-navigate-start",S);return N.call(b,P)};
b.addEventListener("yt-navigate-start",S,void 0)};
_.St=function(N,b,S,P){b=new ass(b,!(P===void 0||!P),S);_.bC(N,"yt-action",b);return b.returnValue};
_.PN=function(N,b,S){return _.St(N,b,S,!0)};
_.sR=function(N,b,S,P){b&&b.length&&b.forEach(function(H){var K=WH9(H);K&&(_.T("handle_service_request_actions")&&H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.sendPost?_.HN(S?S:N,[H]):_.PN(N,K,[H,S,P]))})};
_.HN=function(N,b){var S=[N];b&&S.push.apply(S,b);b=_.St(N,"yt-service-request",S);return b.length>0&&(b=b[0],_.bC(N,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(P){_.bC(N,"yt-service-request-completed",P)},function(P){_.bC(N,"yt-service-request-error",{error:P,
params:S})},N),b.ajaxPromise):_.KA()};
_.OR=function(N,b){if(_.T("handle_service_request_actions"))_.sR(b,N,b);else{N=_.O(N);for(var S=N.next();!S.done;S=N.next()){S=S.value;var P=void 0;((P=_.t(S,_.vN))==null?0:P.commands)?_.OR(_.t(S,_.vN).commands,b):(P=void 0,((P=_.t(S,_.CA))==null?0:P.actions)?_.OR(_.t(S,_.CA).actions,b):(P=void 0,((P=_.t(S.commandMetadata,_.GY))==null?0:P.sendPost)?_.HN(b,[S]):_.sR(b,[S],b)))}}};
_.W3s=function(N,b,S){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});S||b._c&&b._c.jsl&&b._c.jsl.h||_.Vm.extend(b,{_c:{jsl:{h:_.Vg("GAPI_HINT_PARAMS")}}});(b.gapiHintOverride||_.Vg("GAPI_HINT_OVERRIDE"))&&(S=_.SU(document.location.href).gapi_jsh)&&_.Vm.extend(b,{_c:{jsl:{h:S}}});RFE(N,b)};
_.cN=function(N,b,S){b=b===void 0?{}:b;N=(N=N in rX?rX[N]:S)||"";S={};for(var P in b){S={key$jscomp$844:S.key$jscomp$844};S.key$jscomp$844=P;var H=function(K){return function(){return String(b[K.key$jscomp$844])}}(S);
N=N.replace(new RegExp("\\$\\{"+S.key$jscomp$844+"\\}","gi"),H);N=N.replace(new RegExp("\\$"+S.key$jscomp$844,"gi"),H)}return N};
_.am=function(N,b){return n6f(N in rX?rX[N]:{},b)};
n6f=function(N,b){var S=_.Vg("I18N_PLURAL_RULES");S||(S=function(P){return P==1?"one":"other"});
return(N=N["case"+b]||N[S(b)])?N.replace("#",b.toString()):b+""};
kyp=function(N){var b=dDo(N),S=document.getElementById(b),P=S&&yHI(S);P||S&&!P||(S=mDf(N,b,function(){if(!yHI(S)){Ype(S);_.i7U(b);var H=_.Rm(_.Uuf,b);_.tz(H,0)}}))};
mDf=function(N,b,S){var P=document.createElement("link");P.id=b;P.onload=function(){S&&setTimeout(S,0)};
N=_.Dg(N);_.WM(P,N,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(P);return P};
dDo=function(N){var b=_.U5("A");qj(b,XH(N));return"css-"+Aw(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.tDE=function(N){var b=TaY();N!==b&&(b=_.WN(),!_.T("web_autonav_allow_off_by_default")&&N||_.nA(0,141,!0),_.nA(0,140,!N),b.save())};
TaY=function(){var N=_.WN();return _.T("web_autonav_allow_off_by_default")&&!N.getFlag(141)&&_.Vg("AUTONAV_OFF_BY_DEFAULT")?!1:!N.getFlag(140)};
MDu=function(N,b){var S,P;N=((S=N.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=S.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(S=0;S<N.length;++S)if(N[S].scope===b)return N[S].token||void 0};
F3o=function(N){for(var b=0,S=0;S<N.length;S++)b=b*31+N.charCodeAt(S),S<N.length-1&&(b%=0x800000000000);return b%1E5};
_.dX=function(N){return _.hl("ytcsi."+(N||"")+"data_")||BaL(N)};
_.lsa=function(N){N=_.dX(N);N.metadata||(N.metadata={});return N.metadata};
_.L3Y=function(N){N=_.dX(N);N.tick||(N.tick={});return N.tick};
_.mn=function(N){N=_.dX(N);if(N.gel){var b=N.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else N.gel={gelTicks:{},gelInfos:{}};return N.gel};
_.fse=function(N){N=_.mn(N);N.gelInfos||(N.gelInfos={});return N.gelInfos};
uru=function(N){var b=_.dX(N).nonce;b||(b=L6(16),_.dX(N).nonce=b);return b};
BaL=function(N){var b={tick:{},info:{}};_.aB("ytcsi."+(N||"")+"data_",b);return b};
QQb=function(){var N=_.hl("ytcsi.debug");N||(N=[],_.aB("ytcsi.debug",N),_.aB("ytcsi.reference",{}));return N};
_.kR=function(N){N=N||"";var b=xDs();if(b[N])return b[N];var S=QQb(),P={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};S.push(P);return b[N]=P};
o6e=function(N){N=N||"";var b=xDs();b[N]&&delete b[N];var S=QQb(),P={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};S.push(P);b[N]=P};
xDs=function(){var N=_.hl("ytcsi.reference");if(N)return N;QQb();return _.hl("ytcsi.reference")};
_.JjO=function(N){return ine[N]||"LATENCY_ACTION_UNKNOWN"};
zFb=function(N,b,S){S=S===void 0?{}:S;var P=!1;_.g8("ytLoggingEventsDefaultDisabled",!1)&&(P=!0);P=P?null:I0;S=S===void 0?{}:S;var H=Math.round(S.timestamp||(0,_.nh)());_.zx(b,1,H<Number.MAX_SAFE_INTEGER?H:0);H=new UDO;if(S.lact)_.zx(H,1,isFinite(S.lact)?S.lact:-1);else if(S.timestamp)_.zx(H,1,-1);else{var K=_.nv();_.zx(H,1,isFinite(K)?K:-1)}if(S.sequenceGroup&&!_.T("web_gel_sequence_info_killswitch")){K=S.sequenceGroup;var C=y8e(K),G=new ZnL;_.zx(G,2,C);_.En(G,1,K);_.xI(H,3,G);S.endOfSequence&&delete jQo[S.sequenceGroup]}_.xI(b,
33,H);(S.sendIsolatedPayload?hse:qZa)(N,{endpoint:"log_event",payload:b,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},P)};
_.AjE=function(N,b){_.TY("_start",N,b)};
_.tZ=function(N,b){if(!_.T("web_csi_action_sampling_enabled")||!_.dX(b).actionDisabled){var S=_.kR(b||"");_.UY(S.info,N);N.loadType&&(S=N.loadType,_.lsa(b).loadType=S);_.UY(_.fse(b),N);S=uru(b);b=_.dX(b).cttAuthInfo;XSf().info(N,S,b)}};
E6b=function(){var N,b,S,P;return((P=_.aN().resolve(_.cq(Ev))==null?void 0:(N=pv())==null?void 0:(b=N.loggingHotConfig)==null?void 0:(S=b.csiConfig)==null?void 0:S.debugTicks)!=null?P:[]).map(function(H){return Object.values(H)[0]})};
_.TY=function(N,b,S){if(!_.T("web_csi_action_sampling_enabled")||!_.dX(S).actionDisabled){var P=uru(S),H;if(H=_.T("web_csi_debug_sample_enabled")&&P){(_.aN().resolve(_.cq(Ev))==null?0:pv())&&!pS9&&(pS9=!0,_.TY("gcfl",(0,_.nh)(),S));var K,C,G;H=(_.aN().resolve(_.cq(Ev))==null?void 0:(K=pv())==null?void 0:(C=K.loggingHotConfig)==null?void 0:(G=C.csiConfig)==null?void 0:G.debugSampleWeight)||0;if(K=H!==0)b:{K=E6b();if(K.length>0)for(C=0;C<K.length;C++)if(N===K[C]){K=!0;break b}K=!1}K?(H=F3o(P)%H!==0,
_.dX(S).debugTicksExcludedLogged||(K={},K.debugTicksExcluded=H,_.tZ(K,S)),_.dX(S).debugTicksExcludedLogged=!0):H=!1}if(!H){N[0]!=="_"&&Yc_(N,S,b);H=_.kR(S||"");H.tick[N]=b||(0,_.nh)();if(H.callback&&H.callback[N])for(H=_.O(H.callback[N]),K=H.next();!K.done;K=H.next())K=K.value,K();H=_.mn(S);H.gelTicks&&(H.gelTicks[N]=!0);K=_.L3Y(S);H=b||(0,_.nh)();K[N]=H;K=_.dX(S).cttAuthInfo;N==="_start"?XSf().baseline(P,b,K):XSf().tick(N,P,b,K);_.yju(S);return H}}};
Yc_=function(N,b,S){if(_.M7.mark)if(N.startsWith("mark_")||(N="mark_"+N),b&&(N+=" ("+b+")"),S===void 0||_.T("web_csi_disable_alt_time_performance_mark"))_.M7.mark(N);else{S=_.T("csi_use_performance_navigation_timing")?S-_.M7.timeOrigin:S-(_.M7.timeOrigin||_.M7.timing.navigationStart);try{_.M7.mark(N,{startTime:S})}catch(P){}}};
IsI=function(){var N,b=(N=_.M7.getEntriesByType)==null?void 0:N.call(_.M7,"mark");b&&b.forEach(function(S){if(S.name.startsWith("mark_")){var P;(P=_.M7.clearMarks)==null||P.call(_.M7,S.name)}})};
_.DDs=function(N){var b={},S=function(K,C,G){C=C.match("_rid")?C.split("_rid")[0]:C;typeof G==="number"&&(G=JSON.stringify(G));K.requestIds?K.requestIds.push({endpoint:C,id:G}):K.requestIds=[{endpoint:C,id:G}]};
N=_.O(Object.entries(N));for(var P=N.next();!P.done;P=N.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;switch(P){case "GetBrowse_rid":S(b,P,H);break;case "GetGuide_rid":S(b,P,H);break;case "GetHome_rid":S(b,P,H);break;case "GetPlayer_rid":S(b,P,H);break;case "GetSearch_rid":S(b,P,H);break;case "GetSettings_rid":S(b,P,H);break;case "GetTrending_rid":S(b,P,H);break;case "GetWatchNext_rid":S(b,P,H);break;case "yt_red":b.isRedSubscriber=!!H;break;case "yt_ad":b.isMonetized=!!H}}return b};
_.VDE=function(N){var b=_.F8("aft",N);if(b)return b;b=_.Vg((N||"")+"TIMING_AFT_KEYS",["ol"]);for(var S=b.length,P=0;P<S;P++){var H=_.F8(b[P],N);if(H)return H}return NaN};
_.g6p=function(N,b){_.aB("ytglobal.timing"+(b||"")+"ready_",N)};
_.F8=function(N,b){if(N=_.L3Y(b)[N])return typeof N==="number"?N:N[N.length-1]};
_.yju=function(N){var b=_.F8("_start",N),S=_.VDE(N),P=!eFp;b&&S&&P&&(IKO($D_,new hFu(Math.round(S-b),N)),eFp=!0)};
wSp=function(N){BaL(N);qcp();IsI();N||(_.Vg("TIMING_ACTION")&&_.DH("PREVIOUS_ACTION",_.Vg("TIMING_ACTION")),_.DH("TIMING_ACTION",""))};
_.NUp=function(N){N=N===void 0?{}:N;_.$U(function(){BN();o6e();wSp();_.g6p(!1);N.cttAuthInfo&&(_.dX().cttAuthInfo=N.cttAuthInfo);_.DH("TIMING_AFT_KEYS",[]);N.isHot?_.lC({loadType:"hot"}):_.lC({loadType:"warm"});_.DH("TIMING_ACTION","");delete _.Vg("TIMING_INFO",{}).yt_lt;_.$U(_.AjE)(N.startTime,void 0)})()};
_.fA=function(N,b,S,P){b=b===void 0?{}:b;_.$U(function(){var H=S?S:N;LA(H);var K=b.sampleRate;if(!_.T("web_csi_action_sampling_enabled")||K===void 0||K<=1)K=!1;else{var C=uru(H);K=F3o(C)%K!==0}K&&(_.dX(H).actionDisabled=!0);_.kR(H||"").info.actionType=N;b.cttAuthInfo&&(_.dX(H).cttAuthInfo=b.cttAuthInfo);_.DH(H+"TIMING_ACTION",N);_.$U(_.AjE)(b.startTime,H);K={actionType:P||_.JjO(N)};b.logPreviousAction&&(K.previousAction=_.JjO(_.Vg("TIMING_ACTION")));(C=_.Qh())&&C!=="UNDEFINED_CSN"&&(K.clientScreenNonce=
C);_.lC(K,H);_.g6p(!0,H)})()};
LA=function(N){_.$U(function(){BN(N);o6e(N);wSp(N)})()};
bc9=function(){_.$U(function(){var N=[],b;for(b in _.hl("ytcsi.".slice(0,-1)))b.endsWith("data_")&&N.push(b.slice(0,-5));N=_.O(N);for(b=N.next();!b.done;b=N.next())LA(b.value);BN()})()};
_.Pt9=function(N){return _.$U(function(){return _.Swf("_start",N)})()};
_.lC=function(N,b,S){_.$U(_.tZ)(N,b,S===void 0?!1:S)};
_.uC=function(N,b,S){return _.$U(_.TY)(N,b,S)};
_.Swf=function(N,b){return _.$U(function(){var S=_.L3Y(b);return N in S})()};
srO=function(N){if(!_.T("universal_csi_network_ticks"))return"";N=_.Bq(N)||"";for(var b=Object.keys(Hca),S=0;S<b.length;S++){var P=b[S];if(N.includes(P))return P}return""};
vD_=function(N){if(!_.T("universal_csi_network_ticks"))return function(){};
var b=Hca[N];return b?(_.Q3(b),function(){var S=_.T("universal_csi_network_ticks")?(S=KOs[N])?_.Q3(S):!1:!1;return S}):function(){}};
_.Q3=function(N,b,S){return _.$U(function(){if(_.Swf(N,S))return!1;_.uC(N,b,S);return!0})()};
_.xR=function(N,b,S){_.$U(function(){if(!_.Pt9(S)||_.Swf(N,S))return!1;_.uC(N,b,S);return!0})()};
_.om=function(N){return _.$U(_.F8)(N,void 0)};
BN=function(N){_.Pt9(N)&&_.uC("aa",void 0,N)};
_.cTO=function(N,b,S,P,H,K,C,G,a,R){var n=Oco();K=new _.f6({veType:b,youtubeData:K,jspbYoutubeData:G});R=iC({automatedLogEventSource:R},n);H&&(R.cttAuthInfo=H);H={csn:n,pageVe:K.getAsJson()};_.T("expectation_logging")&&a&&a.screenCreatedLoggingExpectations&&(H.screenCreatedLoggingExpectations=a.screenCreatedLoggingExpectations);S&&S.visualElement?(H.implicitGesture={parentCsn:S.clientScreenNonce,gesturedVe:S.visualElement.getAsJson()},C&&(H.implicitGesture.gestureType=C)):S&&_.$h(new _.jU("newScreen() parent element does not have a VE - rootVe",
b));P&&(H.cloneCsn=P);N?yE("screenCreated",H,N,R):_.Dn("screenCreated",H,R);IKO(qKe,new Ctu(n));JZ.clear();GDo.clear();rTu.clear();return n};
UR=function(N,b,S,P,H,K){K=K===void 0?{}:K;axu(N,b,S,[P],H===void 0?!1:H,K)};
axu=function(N,b,S,P,H,K){H=H===void 0?!1:H;K=K===void 0?{}:K;Object.assign(K,iC({cttAuthInfo:xy(b)||void 0},b));for(var C=_.O(P),G=C.next();!G.done;G=C.next()){G=G.value;var a=G.getAsJson();(_.Vm.isEmpty(a)||!a.trackingParams&&!a.veType)&&_.$h(Error("Cf"));if(_.T("no_client_ve_attach_unless_shown")){var R=Rlb(G,b);if(a.veType&&!GDo.has(R)&&!rTu.has(R)&&!H){if(!_.T("il_attach_cache_limit")||JZ.size<1E3){JZ.set(R,[N,b,S,G]);return}_.T("il_attach_cache_limit")&&JZ.size>1E3&&_.$h(new _.jU("IL Attach cache exceeded limit"))}G=
Rlb(S,b);JZ.has(G)?WOE(S,b):rTu.set(G,!0)}}P=P.filter(function(n){n.csn!==b?(n.csn=b,n=!0):n=!1;return n});
S={csn:b,parentVe:S.getAsJson(),childVes:_.gY(P,function(n){return n.getAsJson()})};
b==="UNDEFINED_CSN"?zY("visualElementAttached",K,S):N?yE("visualElementAttached",S,N,K):_.Dn("visualElementAttached",S,K)};
dpu=function(N,b,S,P,H,K,C){nDu(N,b,S,H,C)};
nDu=function(N,b,S,P,H){mpu(S,b);H=iC({cttAuthInfo:xy(b)||void 0,automatedLogEventSource:H},b);S={csn:b,ve:S.getAsJson(),eventType:1};P&&(S.clientData=P);b==="UNDEFINED_CSN"?zY("visualElementShown",H,S):N?yE("visualElementShown",S,N,H):_.Dn("visualElementShown",S,H)};
kDL=function(N,b,S,P){mpu(S,b);var H=iC({cttAuthInfo:xy(b)||void 0,automatedLogEventSource:void 0},b);S={csn:b,ve:S.getAsJson(),eventType:4};P&&(S.clientData=P);b==="UNDEFINED_CSN"?zY("visualElementShown",H,S):N?yE("visualElementShown",S,N,H):_.Dn("visualElementShown",S,H)};
TUp=function(N,b,S,P,H,K){var C=(P=P===void 0?!1:P)?16:8;P=iC({cttAuthInfo:xy(b)||void 0,endOfSequence:P,automatedLogEventSource:K},b);S={csn:b,ve:S.getAsJson(),eventType:C};H&&(S.clientData=H);b==="UNDEFINED_CSN"?zY("visualElementHidden",P,S):N?yE("visualElementHidden",S,N,P):_.Dn("visualElementHidden",S,P)};
M1o=function(N,b,S,P,H,K){t1p(N,b,S,void 0,P,H,K)};
t1p=function(N,b,S,P,H,K,C){mpu(S,b);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";K=iC({cttAuthInfo:xy(b)||void 0,automatedLogEventSource:C},b);S={csn:b,ve:S.getAsJson(),gestureType:P};H&&(S.clientData=H);b==="UNDEFINED_CSN"?zY("visualElementGestured",K,S):N?yE("visualElementGestured",S,N,K):_.Dn("visualElementGestured",S,K)};
FOa=function(N,b,S,P){var H=iC({cttAuthInfo:xy(b)||void 0},b);S={csn:b,ve:S.getAsJson(),clientData:P};b==="UNDEFINED_CSN"?zY("visualElementStateChanged",H,S):N?yE("visualElementStateChanged",S,N,H):_.Dn("visualElementStateChanged",S,H)};
BUI=function(){var N=R2e(16);for(var b=[],S=0;S<N.length;S++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(N[S]&63));return b.join("")};
zY=function(N,b,S){lxu.push({payloadName:N,payload:S,jspbPayload:void 0,options:b});LOp||(LOp=NqU())};
hCY=function(N){if(lxu){for(var b=_.O(lxu),S=b.next();!S.done;S=b.next())S=S.value,S.payload&&(S.payload.csn=N.csn,_.Dn(S.payloadName,S.payload,S.options));lxu.length=0}LOp=0};
Rlb=function(N,b){return""+N.getAsJson().veType+N.getAsJson().veCounter+b};
mpu=function(N,b){if(_.T("no_client_ve_attach_unless_shown")){var S=Rlb(N,b);GDo.set(S,!0);WOE(N,b)}};
WOE=function(N,b){N=Rlb(N,b);JZ.has(N)&&(b=JZ.get(N)||[],UR(b[0],b[1],b[2],b[3],!0),JZ.delete(N))};
iC=function(N,b){_.T("log_sequence_info_on_gel_web")&&(N.sequenceGroup=b);return N};
_.AZ=function(N,b,S){_.$U(UR)(void 0,N,b,S)};
_.X8=function(N,b,S){_.$U(axu)(void 0,N,b,S)};
_.ER=function(N,b){_.$U(dpu)(void 0,N,b,void 0,void 0,void 0)};
_.pA=function(N,b,S){_.$U(function(){_.NX(b,function(P){kDL(void 0,N,P,S)})})()};
_.YR=function(N,b,S,P){_.$U(function(){_.NX(b,function(H){TUp(void 0,N,H,S,P)})})()};
_.y3=function(N,b,S){_.$U(M1o)(void 0,N,b,S,void 0)};
_.Im=function(N,b,S,P){_.$U(t1p)(void 0,N,b,S,P,void 0)};
_.Dp=function(N,b,S){_.$U(FOa)(void 0,N,b,S,void 0)};
fxf=function(N,b){V3.set(N,b)};
uyL=function(N){gX.initialized=!0;gX.sessionId=N.sessionId||"";gX.enabledSpans=N.enabledSpans;N.shouldSampleFn!=null&&(gX.shouldSampleFn=N.shouldSampleFn)};
Qrf=function(N){gX.processors.push(N)};
et=function(N){return gX.initialized?gX.enabledSpans?gX.enabledSpans[N]:!0:!1};
JTY=function(N,b,S){return et(N)&&gX.shouldSampleFn(N,b,xpe)?new oDo(N,b,S):icI};
$R=function(N,b,S){if(typeof S==="function"){var P=S;S=void 0}var H=JTY(N,b,S),K;if(((K=S)==null?void 0:K.endTime)!=null)return P&&_.$h(Error("Gf")),H;var C;H!==icI&&((C=S)==null?void 0:C.active)!==!1&&gX.stack.push(H);if(!P)return H;if(H===icI)return P(H);try{var G=P(H);if(G instanceof Promise)return G.then(function(a){H.end();return a},function(a){H.end("SPAN_STATUS_ERROR");
throw a;});
H.end();return G}catch(a){throw H.end("SPAN_STATUS_ERROR"),a;}};
Ups=function(){we.subscribe("handleError",function(N){try{for(var b in hZ)try{var S=hZ[b];typeof hZ[b]==="function"&&(S=S());N.params[b]=typeof hZ[b]==="object"?JSON.stringify(S):String(S)}catch(P){_.$h(P)}}catch(P){_.$h(P)}})};
ZcI=function(){};
jrO=function(N,b){var S=Object.keys(N);N=new _.jU("[Command Handler] "+b,{filteredCommandNames:S,originalCommand:N});_.ge(N)};
zlI=function(N,b){jrO(N,b+" was called but not set")};
ATs=function(N){return function(){return new N}};
q7=function(N){return function(){return _.aN().resolve(N)}};
XC9=function(N,b){var S=_.t(N,_.Sl);if(S&&(S=b[S.signal]))return S();N=_.O(Object.keys(N));for(S=N.next();!S.done;S=N.next())if(S=S.value,b[S]&&(S=b[S]))return S()};
_.wX=function(N,b,S,P){return{browseEndpoint:{browseId:N},commandMetadata:{webCommandMetadata:{url:b,rootVe:S,webPageType:P===void 0?"WEB_PAGE_TYPE_BROWSE":P}}}};
EDu=function(N,b,S){var P=b=b===void 0?0:b;S=S===void 0?0:S;var H=S-P;return _.N6(N,"PPSV",void 0,void 0,(H>600?0:H<60||S<=0||P/S>.9)?0:b)};
_.N6=function(N,b,S,P,H){var K="/watch?v="+N;N={videoId:N};b&&(N.playlistId=b,K+="&list="+b);P&&(K+="&pp="+P);H&&(N.startTimeSeconds=H,K+="&t="+H+"s");b={watchEndpoint:N,commandMetadata:{webCommandMetadata:{url:K,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};S&&(b.clickTrackingParams=S);P&&(_.t(b,_.Iv).playerParams=P);return b};
pCo=function(N){return{browseEndpoint:{browseId:"VL"+N},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+N,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
YwL=function(N){if(N){var b;if(N){var S=(b=_.t(N.commandMetadata,_.GY))==null?void 0:b.url;b=!(!S||S==="/service_ajax")}else b=!1;if(b)return N;var P;if(N=(P=_.t(N,_.vN))==null?void 0:P.commands)for(P=_.O(N),N=P.next();!N.done;N=P.next())if(N=YwL(N.value))return N}};
_.bV=function(N){return{runs:[{text:N}]}};
yTO=function(N,b){return N&&b?{runs:[{text:N,navigationEndpoint:b}]}:void 0};
Ss=function(N){return N?_.bV(N):void 0};
_.PU=function(N){return N?{simpleText:N}:void 0};
_.HU=function(N){var b=N.type;N=N.payload;b={type:b};N!==void 0&&(b.payload=N);return b};
IxO=function(N,b,S){for(var P=Object.assign({},N),H=_.O(Object.keys(b)),K=H.next();!K.done;K=H.next()){K=K.value;var C=N[K],G=b[K];if(G===void 0)delete P[K];else if(C===void 0)P[K]=G;else if(Array.isArray(G)&&Array.isArray(C))P[K]=S?[].concat(_.IX(C),_.IX(G)):G;else if(!Array.isArray(G)&&_.D_(G)&&!Array.isArray(C)&&_.D_(C))P[K]=IxO(C,G,S);else if(typeof G===typeof C)P[K]=G;else return b=new _.jU("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,originalValue:C,updateValue:G}),
_.ge(b),N}return P};
gDY=function(N){if(!N.length)return"";try{if(Dpo)return Dpo.decode(N);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(N)}catch(C){}for(var b=0,S=[],P=N.length;b<P;){for(var H=0;H<1024&&b<P;){var K=N[b++];if(K<128)V1p[H++]=K;else{if(K<224)K=(K&31)<<6|N[b++]&63;else if(K<240)K=(K&15)<<12|(N[b++]&63)<<6|N[b++]&63;else{if(H+1===1024){--b;break}K=(K&7)<<18|(N[b++]&63)<<12|(N[b++]&63)<<6|N[b++]&63;K-=65536;V1p[H++]=55296|K>>10;K=56320|K&1023}V1p[H++]=K}}K=String.fromCharCode.apply(String,
V1p);H<1024&&(K=K.substring(0,H));S.push(K)}return S.join("")};
$pY=function(N,b){var S;if((S=elu)==null?0:S.encodeInto)return b=elu.encodeInto(N,b),b.read<N.length?N.length*4:b.written;for(var P=S=0;P<N.length;P++){var H=N.charCodeAt(P);H<128?b[S++]=H:(H<2048?b[S++]=H>>6|192:((H&64512)===55296&&P+1<N.length&&(N.charCodeAt(P+1)&64512)===56320?(H=65536+((H&1023)<<10)+(N.charCodeAt(++P)&1023),b[S++]=H>>18|240,b[S++]=H>>12&63|128):b[S++]=H>>12|224,b[S++]=H>>6&63|128),b[S++]=H&63|128)}return S};
hlb=function(N,b,S){if(b&&S&&S.buffer===b.exports.memory.buffer){var P=b.realloc(S.byteOffset,N);if(P)return new Uint8Array(b.exports.memory.buffer,P,N)}N=b?new Uint8Array(b.exports.memory.buffer,b.malloc(N),N):new Uint8Array(N);S&&N.set(S);return N};
_.Ku=function(N){N=new qwa(new wCb([_.qL(decodeURIComponent(N))]));if(NtE(N,2)){var b=sI(N);var S=N.pos;var P=N.arrayView;S=S===void 0?0:S;var H=b===void 0?-1:b;S=S===void 0?0:S;H=H===void 0?-1:H;if(P.totalLength&&H){H<0&&(H=P.totalLength-S);P.focus(S);if(!(S-P.arrayPos+H<=P.arrays[P.arrayIdx].length)){var K=P.arrayIdx,C=P.arrayPos;P.focus(S+H-1);C=new Uint8Array(P.arrayPos+P.arrays[P.arrayIdx].length-C);for(var G=0,a=K;a<=P.arrayIdx;a++)C.set(P.arrays[a],G),G+=P.arrays[a].length;P.arrays.splice(K,
P.arrayIdx-K+1,C);P.arrayIdx=0;P.arrayPos=0;P.focus(S)}K=P.arrays[P.arrayIdx];P=new DataView(K.buffer,K.byteOffset+S-P.arrayPos,H)}else P=new DataView(new ArrayBuffer(0));P=new Uint8Array(P.buffer,P.byteOffset,P.byteLength);N.pos+=b;b=P}else b=void 0;b=b?gDY(b):void 0;N=NtE(N,4)?sI(N):void 0;P=bip[N];if(typeof P==="undefined")throw N=new _.jU("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:N}),_.ge(N),N;return{entityTypeFieldNumber:N,entityType:P,entityId:b}};
_.Cu=function(N,b,S){S=S===void 0?0:S;var P=new SPE;if(elu)N=elu.encode(N);else{var H=new Uint8Array(Math.ceil(N.length*1.2)),K=$pY(N,H);H.length<K&&(H=new Uint8Array(K),K=$pY(N,H));H.length>K&&(H=H.subarray(0,K));N=H}N!==void 0&&(vU(P,18),H=N.length,vU(P,H),OI(P,H),P.buf.set(N,P.pos),P.pos+=H);N=PP_[b];if(typeof N==="undefined")throw S=new _.jU("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),_.ge(S),S;N!==void 0&&(vU(P,32),vU(P,N));vU(P,40);vU(P,1);b=new Uint8Array(P.buf.buffer,
P.buf.byteOffset,P.pos);return encodeURIComponent(_.iL(b,S))};
Hie=function(N){N=N.key||N.id;if(!N)throw Error("If");return N};
KWp=function(N,b){N=N===void 0?{}:N;return swL(N,b)};
vAu=function(N,b,S,P){if(P===void 0)return P=Object.assign({},N[b]||{}),S=(delete P[S],P),P={},Object.assign({},N,(P[b]=S,P));var H={},K={};return Object.assign({},N,(K[b]=Object.assign({},N[b],(H[S]=P,H)),K))};
OiY=function(N,b,S,P,H){var K=N[b];if(K==null||!K[S])return N;P=IxO(K[S],P,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};K={};return Object.assign({},N,(K[b]=Object.assign({},N[b],(H[S]=P,H)),K))};
_.GL=function(N,b,S){return N[b]?N[b][S]||null:null};
Gsp=function(){if(CPe)return CPe();var N={};CPe=WK("PersistentEntityStoreDb",{objectStores:(N.EntityStore={addedAtVersion:1},N.EntityAssociationStore={addedAtVersion:2},N),shared:!1,upgrade:function(b,S){S(1)&&b5(NN(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");S(2)&&(b=NN(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),b5(b,"byParentEntityKey","parentEntityKey"),b5(b,"byChildEntityKey","childEntityKey"))},
version:3});return CPe()};
rNY=function(N){return _.vK(Gsp(),N)};
ry=function(N){return window.Int32Array?new Int32Array(N):Array(N)};
ays=function(N){return _.vK(cNo(),N)};
Rxu=function(N){return new cU("WRONG_DATA_TYPE",{encoderVersion:N})};
WWI=function(N){return N instanceof Error?new cU("UNKNOWN_ENCODE_ERROR",{originalMessage:N.message}):new cU("UNKNOWN_ENCODE_ERROR")};
nAY=function(N){return N instanceof Error?new cU("UNKNOWN_DECODE_ERROR",{originalMessage:N.message}):new cU("UNKNOWN_DECODE_ERROR")};
d$9=function(N,b){N=N instanceof cU?N:b(N);_.ge(N);throw N;};
m$9=function(N){N=(new TextEncoder).encode(N).subarray(0,16);var b=new Uint8Array(16);b.set(N);return b};
Ttb=function(N){var b=ksL[N];if(b)return b;_.$h(new _.jU("Entity model not found.",{entityType:N}))};
_.ap=function(){tcb||(tcb=McU());return tcb};
McU=function(){var N,b,S;return _.r(function(P){if(P.nextAddress==1)return _.u4(P,2),P.yield(_.RB(),4);if(P.nextAddress!=2){N=P.yieldResult;if(!N||!_.Zh()||typeof _.Ps.BroadcastChannel==="undefined")return P.return();b=new FWs;return P.return(new Rp(N,b))}S=_.UE(P);S instanceof Error&&_.ge(S);return P.return()})};
_.WU=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1){S=N.mutations;if(!S||S.length<=0)return P.return();b&&b.dispatch(_.HU({type:"ENTITY_LOADED",payload:S}));return P.yield(BtL(S),2)}S.length=0;_.Zd(P)})};
BtL=function(N){var b;return _.r(function(S){return S.nextAddress==1?S.yield(_.ap(),2):(b=S.yieldResult)?S.yield(_.nu(b,"readwrite",function(P){for(var H={},K=_.O(N),C=K.next(),G={};!C.done;G={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},C=K.next())G.mutation$jscomp$8=C.value,G.mutation$jscomp$8.entityKey&&lyO(G.mutation$jscomp$8)&&(G.mutationEntityType$jscomp$3=(0,_.Vm.getAnyKey)(G.mutation$jscomp$8.payload),C=void 0,G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(C=function(a){return function(){return _.LWO(P,
a.mutation$jscomp$8.payload[a.mutationEntityType$jscomp$3],a.mutationEntityType$jscomp$3)}}(G)),G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(C=function(a){return function(){return fyp(P,a.mutation$jscomp$8.entityKey)}}(G)),G.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(C=function(a){return function(){return uBb(P,a.mutation$jscomp$8.entityKey,a.mutation$jscomp$8.payload[a.mutationEntityType$jscomp$3],a.mutationEntityType$jscomp$3)}}(G)),C&&(H[G.mutation$jscomp$8.entityKey]=
H[G.mutation$jscomp$8.entityKey]?H[G.mutation$jscomp$8.entityKey].then(C):C()));
return w7.all(Object.values(H))}),0):S.return()})};
lyO=function(N){var b;N=(b=N.options)==null?void 0:b.persistenceOption;return N==="ENTITY_PERSISTENCE_OPTION_PERSIST"||N==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
oAa=function(N,b){var S,P;_.r(function(H){if(H.nextAddress==1)return H.yield(_.ap(),2);if(H.nextAddress!=3)return(S=H.yieldResult)?H.yield(_.nu(S,"readonly",function(K){var C={},G=Object.keys(b).map(function(a){var R=b[a]?[].concat(_.IX(b[a])):[];return QwL(K,a,R,C)});
return w7.all(G).then(function(){return C})}),3):H.return();
P=H.yieldResult;Object.keys(P).length>0&&N.dispatch(x$s(P));_.Zd(H)})};
QwL=function(N,b,S,P){return dy(N,b,S).then(function(H){P[b]=iiY(S,H)})};
iiY=function(N,b){if(b.length!==N.length)throw Error("Lf");return b.reduce(function(S,P,H){S[N[H]]=P;return S},{})};
ZiY=function(N){var b=N.filter(function(H){var K;return(H==null?void 0:(K=H.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_COMPLETE"}).length,S=N.filter(function(H){var K;
return(H==null?void 0:(K=H.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_FAILED"}).length,P=N.filter(function(H){var K;
return(H==null?void 0:(K=H.transferEntity)==null?void 0:K.transferState)&&JNY.includes(H.transferEntity.transferState)});
if(!(b||P!=null&&P.length))return 0;b=_.U$p(P)+b;N=N.length-S;return N===0?0:Math.round(b*100/N)/100};
_.U$p=function(N){var b=[];b=b.concat.apply(b,_.IX(N.filter(function(K){return K.streamEntity}).map(function(K){var C=Object.assign({},K.streamEntity),G,a=(G=K.transferEntity)==null?void 0:G.transferState;
C.streamsProgress=C.streamsProgress||[];C.streamsProgress=C.streamsProgress.map(function(R){var n=Object.assign({},R);n.numBytesDownloaded=a==="TRANSFER_STATE_COMPLETE"?R.numTotalBytes:R.numBytesDownloaded;return n});
return C}).map(function(K){return K.streamsProgress})));
var S=N=0;b=_.O(b);for(var P=b.next();!P.done;P=b.next()){var H=P.value;P=Number(H.numBytesDownloaded);H=Number(H.numTotalBytes);S+=isNaN(P)?0:P;N+=isNaN(H)?0:H}return N===0?0:Math.round(S*100/N)/100};
jwu=function(N){if(!N||!N.expirationTimestamp||!N.action)return!1;var b=(0,_.nh)()/1E3;return Number(N.expirationTimestamp)>=b};
ma=function(N){return N&&N.expirationTimestamp&&N.action?jwu(N)&&N.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.kG=function(N){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(N||"TRANSFER_STATE_UNKNOWN")};
zx9=function(N){var b=new SPE;if(N!==void 0){var S=Math.ceil(Math.log2(N.length*4+2)/7);S=S===void 0?2:S;vU(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(S);b.pos+=S;OI(b,N.length*1.2);S=$pY(N,b.buf.subarray(b.pos));b.pos+S>b.buf.length&&(OI(b,S),S=$pY(N,b.buf.subarray(b.pos)));b.pos+=S;N=b.submessagePosStack.pop();S=b.submessagePosStack.pop();for(var P=b.pos-S-N;N--;){var H=N?128:0;b.view.setUint8(S++,P&127|H);P>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return(new TextDecoder("utf-8")).decode(b)};
_.TL=function(N){var b=0;N=_.O(N);for(var S=N.next(),P={};!S.done;P={transferState$jscomp$3:void 0},S=N.next()){var H=S.value,K=void 0;S=(K=H.streamEntity)!=null?K:{};K=void 0;P.transferState$jscomp$3=(K=H.transferEntity)==null?void 0:K.transferState;K=H=void 0;((H=S)==null?0:(K=H.streamsProgress)==null?0:K.length)&&S.streamsProgress.forEach(function(C){return function(G){G=Number(C.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?G.numTotalBytes:G.numBytesDownloaded);isFinite(G)&&(b+=G)}}(P))}return b};
ANU=function(N){return N.some(function(b){var S;if(!(b==null?0:(S=b.transferEntity)==null?0:S.transferState)){var P;return!(b==null?0:(P=b.policyEntity)==null?0:P.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return JNY.includes(b.transferEntity.transferState)})};
Xyp=function(N,b){if(!b)return!1;if(_.T("of_pb_en_po_ks"))return!0;var S;N=(S=_.GL(N,"offlineVideoPolicy",_.Cu(b,"offlineVideoPolicy")))!=null?S:void 0;return!!N&&ma(N)};
_.pya=function(N){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?EAU:b;return N.filter(function(S){var P,H;return b.includes((H=(P=S.transferEntity)==null?void 0:P.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN")})};
YPE=function(N,b){if(b){var S,P=(S=_.GL(N,"playbackData",_.Cu(b,"playbackData")))!=null?S:null,H;S=(H=_.GL(N,"transfer",_.Cu(b,"transfer")))!=null?H:null;var K;H=(K=_.GL(N,"offlineVideoStreams",_.Cu(b,"offlineVideoStreams")))!=null?K:null;var C;N=(C=_.GL(N,"offlineVideoPolicy",_.Cu(b,"offlineVideoPolicy")))!=null?C:null;if(P||S||H||N)return{playbackDataEntity:P,transferEntity:S,streamEntity:H,policyEntity:N}}};
_.t0=function(N){var b=N.playbackData;if(!b)return[];var S=[];b=_.O(Object.keys(b));for(var P=b.next();!P.done;P=b.next()){var H=P.value;if(!yNp(N,_.Ku(H).entityId)&&(P=YPE(N,_.Ku(H).entityId))){var K=void 0,C=void 0;H=(C=Number((K=_.GL(N,"playbackData",H))==null?void 0:K.streamDownloadTimestampSeconds))!=null?C:(0,_.nh)();S.push({entity:P,streamDownloadTimestamp:H})}}return S.sort(function(G,a){var R=G.streamDownloadTimestamp,n=a.streamDownloadTimestamp;return n===R?G.entity.streamEntity&&!a.entity.streamEntity?
1:-1:n-R}).map(function(G){return G.entity})};
Iye=function(N){return _.pya(_.t0(N))};
_.D$I=function(N){return _.t0(N).filter(function(b){var S;if(((S=b.policyEntity)==null?0:S.action)&&b.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var P;if((P=b.transferEntity)==null?0:P.transferState){var H;return JNY.includes((H=b.transferEntity)==null?void 0:H.transferState)}return!0})};
yNp=function(N,b){var S;return((S=_.GL(N,"downloadStatusEntity",_.Cu(b,"downloadStatusEntity")))==null?void 0:S.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Vc_=function(N){var b;if(N==null?0:(b=N.playbackDataEntity)==null?0:b.key)return _.Ku(N.playbackDataEntity.key).entityId;var S;if(N==null?0:(S=N.transferEntity)==null?0:S.key)return _.Ku(N.transferEntity.key).entityId;var P;if(N==null?0:(P=N.streamEntity)==null?0:P.key)return _.Ku(N.streamEntity.key).entityId;var H;if(N==null?0:(H=N.policyEntity)==null?0:H.key)return _.Ku(N.policyEntity.key).entityId};
exY=function(N){var b=new Set,S;N=(S=N.mainDownloadsListEntity)==null?void 0:S[gAL];var P;if(!(N==null?0:(P=N.downloads)==null?0:P.length))return b;var H;N==null||(H=N.downloads)==null||H.forEach(function(K){(K==null?0:K.videoItem)&&b.add(K.videoItem)});
return b};
M6=function(N,b){if(b){var S=_.GL(N,"mainVideoEntity",_.Cu(b,"mainVideoEntity")),P=_.GL(N,"downloadStatusEntity",_.Cu(b,"downloadStatusEntity")),H=_.GL(N,"ytMainChannelEntity",_.Cu(b,"ytMainChannelEntity")),K={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};N=YPE(N,b);P=(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.T("woffle_render_failed_download_state_ks")&&(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_FAILED";!N&&P&&(N=K);if(N&&S&&
H)return Object.assign({},{videoEntity:S,channelEntity:H},N)}};
hxe=function(N,b){return $$O(N,b)==="TRANSFER_STATE_COMPLETE"&&Xyp(N,b)};
qPL=function(N,b){if(!b)return!1;var S;N=(S=_.GL(N,"playbackData",_.Cu(b,"playbackData")))!=null?S:void 0;return!!N&&!!N.playerResponseJson};
$$O=function(N,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var S=_.GL(N,"transfer",_.Cu(b,"transfer"));if(S){var P;return(P=S.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}S=_.GL(N,"offlineOrchestrationActionWrapperEntity",_.Cu(b,"offlineOrchestrationActionWrapperEntity"));N=_.GL(N,"mainVideoEntity",_.Cu(b,"mainVideoEntity"));return S||N?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
wyf=function(N,b){if(!b)return"TRANSFER_STATE_UNKNOWN";if(N=_.GL(N,"transfer",_.Cu(b,"transfer"))){var S;return(S=N.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
N29=function(N,b){return b&&(N=_.GL(N,"videoPlaybackPositionEntity",_.Cu(b,"videoPlaybackPositionEntity")),N==null?0:N.lastPlaybackPositionSeconds)?Number(N.lastPlaybackPositionSeconds):0};
SQE=function(N,b){return bGU(N).some(function(S){var P;return(S==null?void 0:(P=S.mainPlaylistEntity)==null?void 0:P.playlistId)===b})};
HGa=function(N,b,S){var P=Pn_(N,b);if(!P.length)return[];b=[];P=_.O(P);for(var H=P.next();!H.done;H=P.next()){H=H.value;var K=M6(N,H);S&&$$O(N,H)!=="TRANSFER_STATE_COMPLETE"||K&&b.push(K)}return b};
Pn_=function(N,b){if(!b)return[];var S=_.Cu(b,"mainPlaylistEntity"),P;b=(P=N.mainPlaylistEntity)==null?void 0:P[S];P=[];if(b==null||!b.videos)return P;b=_.O(b.videos);for(S=b.next();!S.done;S=b.next()){S=S.value;var H=void 0,K=void 0,C=void 0,G=(H=N)==null?void 0:(K=H.mainPlaylistVideoEntity)==null?void 0:(C=K[S])==null?void 0:C.video;G&&(S=_.Ku(G).entityId)&&P.push(S)}return P};
sfO=function(N,b){if(b){var S=_.GL(N,"mainPlaylistEntity",_.Cu(b,"mainPlaylistEntity")),P=_.GL(N,"mainPlaylistDownloadStateEntity",_.Cu(b,"mainPlaylistDownloadStateEntity"));N=_.GL(N,"ytMainChannelEntity",_.Cu(b,"ytMainChannelEntity"));if(P&&S)return Object.assign({},{mainPlaylistEntity:S,mainPlaylistDownloadStateEntity:P},!!N&&{channelEntity:N})}};
bGU=function(N){return KD_(N).sort(function(b,S){return S.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})};
KD_=function(N){var b=N.mainPlaylistDownloadStateEntity,S=[];if(!b)return S;for(var P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next()){var K=H.value;H=sfO(N,_.Ku(K).entityId);var C=void 0;K=Number((C=b[K])==null?void 0:C.addedTimestampMillis);C=isNaN(K)?(0,_.nh)():K;H!==void 0&&S.push({downloadedPlaylistEntities:H,addedTimestampMillis:C})}return S};
vge=function(N){var b,S=(b=N.mainPlaylistVideoEntity)!=null?b:{};return new Set(bGU(N).reduce(function(P,H){P=P===void 0?[]:P;var K,C;H==null||(K=H.mainPlaylistEntity)==null||(C=K.videos)==null||C.forEach(function(G){var a;(G=(a=S[G])==null?void 0:a.video)&&P.push(G)});
return P},[]))};
OGY=function(N){return"downloadedMusicPlaylistEntities"in N};
CnL=function(N){return"mainPlaylistEntity"in N&&"mainPlaylistDownloadStateEntity"in N};
Gla=function(N){return"videoEntity"in N&&"channelEntity"in N};
rDs=function(N){var b=N.musicPlaylistDownloadMetadataEntity,S=[];if(!b)return S;for(var P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next()){H=H.value;a:{var K=N,C=_.Ku(H).entityId;if(C){var G=_.GL(K,"musicPlaylist",_.Cu(C,"musicPlaylist"));K=_.GL(K,"musicPlaylistDownloadMetadataEntity",_.Cu(C,"musicPlaylistDownloadMetadataEntity"));if(G&&K){G={musicPlaylistEntity:G,musicPlaylistDownloadStateEntity:K};break a}}G=void 0}K=void 0;H=Number((K=b[H])==null?void 0:K.addedTimestampMillis);H=isNaN(H)?(0,_.nh)():
H;G!==void 0&&S.push({downloadedMusicPlaylistEntities:G,addedTimestampMillis:H})}return S};
cDe=function(N){var b=new Set;N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,"musicPlaylistEntity"in S&&"musicPlaylistDownloadStateEntity"in S){S=_.O(S.musicPlaylistEntity.tracks);for(var P=S.next();!P.done;P=S.next())b.add(P.value)}return b};
aR9=function(N,b){if(b){var S=_.GL(N,"musicTrack",_.Cu(b,"musicTrack")),P=_.GL(N,"musicArtist",_.Cu(b,"musicArtist"))||{};if((N=YPE(N,b))&&S&&P)return Object.assign({},{musicTrackEntity:S,musicArtistEntity:P},N)}};
RYe=function(N){var b=N.musicTrackDownloadMetadataEntity,S=[];if(!b)return[];b=_.O(Object.keys(b));for(var P=b.next();!P.done;P=b.next()){var H=P.value;P=aR9(N,_.Ku(H).entityId);var K=void 0;H=Number((K=_.GL(N,"musicTrackDownloadMetadataEntity",H))==null?void 0:K.addedTimestampMillis);K=isNaN(H)?(0,_.nh)():H;P!==void 0&&S.push({downloadedMusicEntities:P,addedTimestampMillis:K})}return S};
dZ_=function(N,b){if(!b)return[];if(Object.values(WDU).includes(b))return ngf(N,b);b=_.Cu(b,"musicPlaylist");var S;N=(S=N.musicPlaylist)==null?void 0:S[b];S=[];if(N==null||!N.tracks)return S;N=_.O(N.tracks);for(b=N.next();!b.done;b=N.next())(b=_.Ku(b.value).entityId)&&S.push(b);return S};
ngf=function(N,b){var S=new Set,P=rDs(N).map(function(K){return K.downloadedMusicPlaylistEntities});
P=cDe(P);P=_.O(P);for(var H=P.next();!H.done;H=P.next())(H=_.Ku(H.value).entityId)&&S.add(H);return mZo(N).downloadedMusicEntities.filter(function(K){var C;if((C=K.musicTrackEntity)!=null&&C.videoId){K=K.musicTrackEntity;if(C=b==="PPOM"?!0:!S.has(K.videoId))b:switch(K=K.musicVideoType,b){case "PPSE":C=K==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:C=K!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}K=C}else K=!1;return K}).map(function(K){var C;
return(C=K.musicTrackEntity)==null?void 0:C.videoId})};
mZo=function(N){var b=RYe(N).sort(function(S,P){return P.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:OGY(S)?S.downloadedMusicPlaylistEntities:{}});
N=rDs(N).sort(function(S,P){return P.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:OGY(S)?S.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:N}};
T2I=function(N,b){b=_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?dZ_(N,b):Pn_(N,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(S){return wyf(N,S)});
return klo(b)};
klo=function(N){var b=new Set(N);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";N=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return N||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Fk=function(N){var b=N.mainVideoDownloadStateEntity,S=[];if(!b)return[];b=_.O(Object.keys(b));for(var P=b.next();!P.done;P=b.next()){var H=P.value;if(!yNp(N,_.Ku(H).entityId)){P=M6(N,_.Ku(H).entityId);var K=void 0,C=void 0;H=(C=Number((K=_.GL(N,"mainVideoDownloadStateEntity",H))==null?void 0:K.addedTimestampMillis))!=null?C:(0,_.nh)();P!==void 0&&S.push({downloadedVideoEntities:P,addedTimestampMillis:H})}}return S};
t$o=function(N){return Fk(N).sort(function(b,S){return S.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})};
_.FDo=function(N){var b=vge(N),S=_.BU(N),P=exY(N),H=Fk(N).filter(function(C){var G,a;if((C==null?void 0:(G=C.downloadedVideoEntities)==null?void 0:(a=G.transferEntity)==null?void 0:a.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var R,n;C=C==null?void 0:(R=C.downloadedVideoEntities)==null?void 0:(n=R.videoEntity)==null?void 0:n.key;return _.T("kevlar_use_library_entity")?C&&(P.has(C)||S[C]):C&&!b.has(C)}),K=KD_(N).filter(function(C){return T2I(N,C.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.IX(H),_.IX(K)).sort(function(C,G){return G.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return M$s(C)})};
B2u=function(N,b){if(b&&Xyp(N,b)){var S,P,H=(P=(S=_.GL(N,"playbackData",_.Cu(b,"playbackData")))!=null?S:void 0)==null?void 0:P.playerResponseJson;if(H){try{var K=JSON.parse(H);var C=_.GL(N,"transfer",_.Cu(b,"transfer")),G=N29(N,b);G&&(K=Object.assign({},K,{playerConfig:Object.assign({},K.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+G*1E3}}})}));K.cotn=C==null?void 0:C.cotn}catch(a){}return K}}};
_.LDs=function(N){var b,S,P;N=(P=(S=((b=N.downloadsPageViewConfigurationEntity)!=null?b:{})[_.lV])==null?void 0:S.smartDownloadsOptInBannerVisibility)!=null?P:{};var H;return(H=_.t(N,lRU))!=null?H:{}};
_.BU=function(N){var b,S,P;N=(P=(S=((b=N.mainDownloadsListEntity)!=null?b:{})[_.fRO])==null?void 0:S.downloads)!=null?P:[];b={};S=_.O(N);for(P=S.next();!P.done;P=S.next())N=void 0,b[(N=P.value.videoItem)!=null?N:""]=!0;return b};
uos=function(N){var b=_.BU(N);if(Object.keys(b).length===0)return!1;var S=N.mainVideoEntity;if(!S)return!0;S=_.O(Object.keys(S));for(var P=S.next();!P.done;P=S.next()){P=P.value;var H=_.Ku(P).entityId;if(b[P]&&!yNp(N,H))return!1}return!0};
_.Lu=function(N){var b=_.BU(N);return Fk(N).sort(function(S,P){return S.addedTimestampMillis-P.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities}).filter(function(S){var P;
return(S=S==null?void 0:(P=S.videoEntity)==null?void 0:P.key)&&!!b[S]})};
_.xZu=function(N){var b,S,P;N=(P=(S=((b=N.downloadsPageViewConfigurationEntity)!=null?b:{})[_.lV])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?P:{};var H;return(H=_.t(N,Qf_))!=null?H:{}};
M$s=function(N){return"downloadedVideoEntities"in N?N.downloadedVideoEntities:"downloadedPlaylistEntities"in N?N.downloadedPlaylistEntities:{}};
ogO=function(N){var b=_.BU(N),S=vge(N),P=Fk(N).filter(function(H){var K,C;return(H=H==null?void 0:(K=H.downloadedVideoEntities)==null?void 0:(C=K.videoEntity)==null?void 0:C.key)&&!b[H]&&!S.has(H)});
N=KD_(N);return[].concat(_.IX(P),_.IX(N)).sort(function(H,K){return K.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return M$s(H)})};
_.fu=function(N){if(!_.T("kevlar_use_library_entity"))return ogO(N);var b=Fk(N).filter(function(P){var H,K;if(H=P=P==null?void 0:(H=P.downloadedVideoEntities)==null?void 0:(K=H.videoEntity)==null?void 0:K.key){var C,G,a;H=((G=(C=N.mainDownloadsListEntity)==null?void 0:C[gAL])==null?0:(a=G.downloads)==null?0:a.length)?exY(N).has(P):!1}return H}),S=KD_(N);
return[].concat(_.IX(b),_.IX(S)).sort(function(P,H){return H.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return M$s(P)})};
iGu=function(N){var b=_.BU(N),S=vge(N);return t$o(N).filter(function(P){var H;return(P=P==null?void 0:(H=P.videoEntity)==null?void 0:H.key)&&!b[P]&&!S.has(P)})};
JDp=function(N){if(!_.T("kevlar_use_library_entity"))return iGu(N);var b=_.BU(N),S=exY(N);return t$o(N).filter(function(P){var H;return(P=P==null?void 0:(H=P.videoEntity)==null?void 0:H.key)&&!b[P]&&S.has(P)})};
UZU=function(N,b){b=_.Cu(b,"settingEntity");var S,P,H;return!!((H=(P=((S=N.settingEntity)!=null?S:{})[b])==null?void 0:P.settingOptionValue)!=null?H:{}).boolValue};
_.uV=function(N){var b=_.Lu(N);if(ANU(b))return 0;var S=[];b=_.O(b);for(var P=b.next();!P.done;P=b.next()){P=P.value;var H=void 0,K=void 0;if((H=P)==null?0:(K=H.videoEntity)==null?0:K.key)H=_.Ku(P.videoEntity.key).entityId,P=N,H=_.Cu(H,"mainVideoDownloadStateEntity"),P=_.GL(P,"mainVideoDownloadStateEntity",H),(P=Number(P==null?void 0:P.addedTimestampMillis))&&S.push(P)}return Math.max.apply(Math,_.IX(S))};
_.Q4=function(N){return N.ui.richGridMiniMode};
_.xG=function(N){return N.ui.richGridItemsPerRow};
_.ZGs=function(N){return N.ui.richGridSlimItemsPerRow};
_.jfe=function(N){return N.ui.guideIsExpanded};
_.op=function(N){return N.ui.miniplayerIsActive};
zYb=function(N){return N.ui.singleOptionSurveyIsActive};
_.iV=function(N){var b;return((b=N.ui)==null?void 0:b.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.ADU=function(N){return _.iV(N)==="WEB_PAGE_TYPE_WATCH"};
_.Xtp=function(N){return _.iV(N)==="WEB_PAGE_TYPE_SHORTS"};
_.Ego=function(N){return N.ui.inlinePreviewIsActive};
_.ptO=function(N){return N.ui.inlinePreviewIsEnabled};
_.YQu=function(N){return N.ui.miniplayerPlaybackState};
_.J0=function(N){return N.ui.isOnline};
_.yDa=function(N){return N.ui.frostedGlassMode};
_.UI=function(N,b){return $$O(N.entities,b)};
_.Zb=function(N,b){return T2I(N.entities,b)};
IR_=function(N,b){var S;if(b){var P;N=(P=_.GL(N.entities,"offlineVideoPolicy",_.Cu(b,"offlineVideoPolicy")))==null?void 0:P.action}else N=void 0;return(S=N)!=null?S:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
DZU=function(N,b){var S;b?(N=_.GL(N.entities,"offlineVideoPolicy",_.Cu(b,"offlineVideoPolicy")),N=Number(N==null?void 0:N.expirationTimestamp)):N=void 0;return(S=N)!=null?S:0};
_.V$u=function(N){return _.t0(N.entities).length};
gg_=function(N,b){return M6(N.entities,b)};
eYL=function(N,b){return sfO(N.entities,b)};
js=function(N,b){return(N=M6(N.entities,b))?_.U$p([N]):0};
_.$ZE=function(N,b){var S=_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(S){var P=N.entities;var H=dZ_(P,b);if(H.length){var K=[];H=_.O(H);for(var C=H.next();!C.done;C=H.next())(C=aR9(P,C.value))&&K.push(C);P=K}else P=[]}else P=HGa(N.entities,b);var G;if(S){var a=N.entities;b?(b=_.Cu(b,"musicPlaylist"),a=(G=a.musicPlaylist)==null?void 0:G[b],G=a!=null&&a.tracks?a.tracks.length:0):G=0}else G=N.entities,b?(b=_.Cu(b,"mainPlaylistEntity"),G=(a=G.mainPlaylistEntity)==null?void 0:a[b],G=G!=null&&G.videos?
G.videos.length:0):G=0;return P.length!==G?0:P?ZiY(P):0};
_.hYs=function(N){return N.download.isLeaderTab};
_.qQu=function(N,b,S){if(!b&&S){var P=N.entities;if(S){var H=zx9(S),K,C;b=(C=(K=_.GL(P,"offlineabilityEntity",_.Cu(H,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?C:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else K=N.entities,b?(C=zx9(b),b=(H=(P=_.GL(K,"offlineabilityEntity",_.Cu(C,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return b};
wto=function(N,b){N=N.entities;if(b){b=zx9(b);var S,P;b=(P=(S=_.GL(N,"offlineabilityEntity",_.Cu(b,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?P:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b};
_.ND9=function(N){var b=N.entities;N=_.J0(N);var S=UZU(b,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.T("kevlar_modern_downloads_page")&&S)var P=!1;else{var H,K;b=(K=(H=((P=b.downloadsPageViewConfigurationEntity)!=null?P:{})[_.lV])==null?void 0:H.smartDownloadsOptInBannerVisibility)!=null?K:{};P=N?!!b.visibleWithConnection:!!b.visibleWithoutConnection}return P};
_.bNp=function(N){return UZU(N.entities,"SMART_DOWNLOADS_ENABLED")};
_.SM9=function(N){return uos(N.entities)};
P$U=function(N){return _.Lu(N.entities).every(function(b){var S;return(b==null?void 0:(S=b.transferEntity)==null?void 0:S.transferState)&&!JNY.includes(b.transferEntity.transferState)})};
_.HNs=function(N){var b,S,P,H=(P=(S=((b=N.entities.downloadsPageViewConfigurationEntity)!=null?b:{})[_.lV])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?P:{};return _.J0(N)?!!H.visibleWithConnection:!!H.visibleWithoutConnection};
_.sHf=function(N,b){return yNp(N.entities,b)};
KLs=function(N,b){if(b){var S,P;N=(P=(S=_.GL(N.entities,"downloadStatusEntity",_.Cu(b,"downloadStatusEntity")))==null?void 0:S.downloadState)!=null?P:"DOWNLOAD_STATE_UNKNOWN"}else N="DOWNLOAD_STATE_UNKNOWN";return N};
zL=function(N,b){return N29(N.entities,b)};
GFU=function(N){N=vuE(N);var b=N.hours===void 0?0:N.hours,S=N.minutes===void 0?0:N.minutes,P=N.seconds===void 0?0:N.seconds,H=b>0;N=[];H&&(b=ONp(b),N.push(b));b=H;b=b===void 0?!1:b;S=(["af","be","lt"].includes(A0)||b)&&S<10?C$e().format(S):(new Intl.NumberFormat("en-u-nu-latn")).format(S);N.push(S);S=C$e().format(P);N.push(S);S=":";"da fi id si sr sr-Latn".split(" ").includes(A0)&&(S=".");return N.join(S)};
_.cRo=function(N){N=vuE(N);var b=N.hours===void 0?0:N.hours,S=N.minutes===void 0?0:N.minutes,P=N.seconds===void 0?0:N.seconds;N=[];if(b>0){var H=rRb().format({hours:b});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(A0)||b>9999)H=H.replace(b.toString(),ONp(b)),A0==="km"&&(H=H.replace(".",","));N.push(H)}S>0&&N.push(rRb().format({minutes:S}));P>0&&N.push(rRb().format({seconds:P}));b="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");S=A0=="am"?"{0}\u1363 ":A0=="fa"?"{0}\u060c\u200f ":
A0=="my"?"{0} - ":A0=="ne"?"{0},":A0=="th"?"{0} ":A0=="ur"?"{0}\u060c ":A0=="ar"||A0=="ar-XB"?"{0} \u0648":A0=="ja"||A0=="zh-CN"||A0=="zh-HK"||A0=="zh-TW"?"{0}\u3001":"{0}, ";P=A0=="am"?"\u1363 ":A0=="fa"?"\u060c\u200f ":A0=="my"?" - ":A0=="th"?" ":A0=="ur"?"\u060c ":A0=="ar"||A0=="ar-XB"?" \u0648":A0=="ja"||A0=="zh-CN"||A0=="zh-HK"||A0=="zh-TW"?"\u3001":", ";H=A0=="am"?" \u12a5\u1293 {0}":A0=="as"?" \u0986\u09f0\u09c1 {0}":A0=="az"?" v\u0259 {0}":A0=="bn"?" \u098f\u09ac\u0982 {0}":A0=="cs"?" a\u00a0{0}":
A0=="de"?" und {0}":A0=="el"?" \u03ba\u03b1\u03b9 {0}":A0=="eu"?" eta {0}":A0=="fa"?"\u060c \u0648 {0}":A0=="fil"?", at {0}":A0=="gu"?" \u0a85\u0aa8\u0ac7 {0}":A0=="hi"?", \u0914\u0930 {0}":A0=="hu"?" \u00e9s {0}":A0=="hy"?" \u0587 {0}":A0=="id"?", dan {0}":A0=="iw"?" \u05d5-{0}":A0=="ja"?"\u3001{0}":A0=="ka"?" \u10d3\u10d0 {0}":A0=="km"?" \u1793\u17b7\u1784 {0}":A0=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":A0=="ko"?" \ubc0f {0}":A0=="ky"?" \u0436\u0430\u043d\u0430 {0}":A0=="lt"?" ir {0}":A0==
"lv"?" un {0}":A0=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":A0=="mr"?" \u0906\u0923\u093f {0}":A0=="ms"?" dan {0}":A0=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":A0=="ne"?" \u0930 {0}":A0=="or"?", \u0b13 {0}":A0=="pa"?" \u0a05\u0a24\u0a47 {0}":A0=="ro"?" \u0219i {0}":A0=="si"?", \u0dc3\u0dc4 {0}":A0=="sk"?" a {0}":A0=="sl"?" in {0}":A0=="sq"?" dhe {0}":A0=="sv"?" och {0}":A0=="sw"?" na {0}":A0=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":A0=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
A0=="th"?" \u0e41\u0e25\u0e30{0}":A0=="tr"?" ve {0}":A0=="ur"?"\u060c \u0627\u0648\u0631 {0}":A0=="uz"?" va {0}":A0=="vi"?" v\u00e0 {0}":A0=="zh-HK"?"\u53ca{0}":A0=="zu"?", ne-{0}":A0=="af"||A0=="nl"?" en {0}":A0=="ar"||A0=="ar-XB"?" \u0648{0}":A0=="be"||A0=="uk"?" \u0456 {0}":A0=="en-GB"||A0=="en-IN"?" and {0}":A0=="en"||A0=="en-XA"?", and {0}":A0=="et"||A0=="fi"?" ja {0}":A0=="fr"||A0=="fr-CA"?" et {0}":A0=="zh-CN"||A0=="zh-TW"?"\u548c{0}":A0=="da"||A0=="is"||A0=="no"?" og {0}":A0=="es"||A0=="es-419"||
A0=="es-US"?" y {0}":A0=="kk"||A0=="lo"||A0=="mn"?", {0}":A0=="bg"||A0=="mk"||A0=="ru"||A0=="sr"?" \u0438 {0}":A0=="gl"||A0=="it"||A0=="pt-BR"||A0=="pt-PT"?" e {0}":" i {0}";var K=A0=="am"?"{0} \u12a5\u1293 {1}":A0=="as"?"{0} \u0986\u09f0\u09c1 {1}":A0=="az"?"{0} v\u0259 {1}":A0=="bn"?"{0} \u098f\u09ac\u0982 {1}":A0=="de"?"{0} und {1}":A0=="el"?"{0} \u03ba\u03b1\u03b9 {1}":A0=="eu"?"{0} eta {1}":A0=="fa"?"{0} \u0648 {1}":A0=="fil"?"{0} at {1}":A0=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":A0=="hi"?"{0} \u0914\u0930 {1}":
A0=="hu"?"{0} \u00e9s {1}":A0=="hy"?"{0} \u0587 {1}":A0=="iw"?"{0} \u05d5-{1}":A0=="ja"?"{0}\u3001{1}":A0=="ka"?"{0} \u10d3\u10d0 {1}":A0=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":A0=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":A0=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":A0=="ko"?"{0} \ubc0f {1}":A0=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":A0=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":A0=="lt"?"{0} ir {1}":A0=="lv"?"{0} un {1}":A0=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":A0=="mn"?"{0}, {1}":A0==
"mr"?"{0} \u0906\u0923\u093f {1}":A0=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":A0=="ne"?"{0} \u0930 {1}":A0=="or"?"{0} \u0b13 {1}":A0=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":A0=="ro"?"{0} \u0219i {1}":A0=="si"?"{0} \u0dc3\u0dc4 {1}":A0=="sl"?"{0} in {1}":A0=="sq"?"{0} dhe {1}":A0=="sv"?"{0} och {1}":A0=="sw"?"{0} na {1}":A0=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":A0=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":A0=="th"?"{0}\u0e41\u0e25\u0e30{1}":A0=="tr"?"{0} ve {1}":A0=="ur"?
"{0} \u0627\u0648\u0631 {1}":A0=="uz"?"{0} va {1}":A0=="vi"?"{0} v\u00e0 {1}":A0=="zh-HK"?"{0}\u53ca{1}":A0=="zu"?"{0} ne-{1}":A0=="af"||A0=="nl"?"{0} en {1}":A0=="ar"||A0=="ar-XB"?"{0} \u0648{1}":A0=="be"||A0=="uk"?"{0} \u0456 {1}":A0=="cs"||A0=="sk"?"{0} a\u00a0{1}":A0=="et"||A0=="fi"?"{0} ja {1}":A0=="fr"||A0=="fr-CA"?"{0} et {1}":A0=="id"||A0=="ms"?"{0} dan {1}":A0=="zh-CN"||A0=="zh-TW"?"{0}\u548c{1}":A0=="da"||A0=="is"||A0=="no"?"{0} og {1}":A0=="es"||A0=="es-419"||A0=="es-US"?"{0} y {1}":A0==
"bg"||A0=="mk"||A0=="ru"||A0=="sr"?"{0} \u0438 {1}":A0=="en"||A0=="en-GB"||A0=="en-IN"||A0=="en-XA"?"{0} and {1}":A0=="gl"||A0=="it"||A0=="pt-BR"||A0=="pt-PT"?"{0} e {1}":"{0} i {1}";A0==="sq"?(H=H.replace("dhe","e"),K=K.replace("dhe","e")):A0==="th"?(P=P.replace("{0}"," {0}"),K=K.replace("{0}","{0} "),K=K.replace("{1}"," {1}")):A0==="ne"?P=",":A0==="zh-CN"?P="":b.includes(A0)&&(P=" ");return N.length<2?N.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(A0)?
N.length===2?K.replace("{0}",N[0]).replace("{1}",N[1]):S.replace("{0}",N[0])+N.slice(1,-1).join(P)+H.replace("{0}",N[N.length-1]):N.join(P)};
vuE=function(N){var b=N.hours||0,S=N.minutes||0,P=N.seconds||0;b=P+S*60+b*3600+(N.days||0)*86400+(N.weeks||0)*604800+(N.months||0)*2629800+(N.years||0)*31557600;if(b<=0)return{hours:0,minutes:0,seconds:0};N=b;b=Math.floor(N/3600);N%=3600;S=Math.floor(N/60);P=Math.floor(N%60);return{hours:b,minutes:S,seconds:P}};
ONp=function(N){N=(new Intl.NumberFormat("en-u-nu-latn")).format(N);var b=["fr"],S="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(" ");return"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(A0)?N.replace(",","\u00a0"):b.includes(A0)?N.replace(",","\u202f"):S.includes(A0)?N.replace(",","."):N};
C$e=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
rRb=function(){aiE||(Xk=Rua,aiE=new WLI);return aiE};
nu_=function(N){try{return(new _.YG(5)).format(N)}catch(b){}};
y4=function(N){return{thumbnailOverlayDownloadingRenderer:{state:N}}};
dJp=function(){var N=_.cN("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.bV(N),icon:{iconType:"PLAY_ALL"}}}};
mJo=function(N){N=_.Ip(N,2);return A0!=="ru"&&A0!=="es_419"&&A0!=="es-419"&&A0!=="es"&&A0!=="es_US"&&A0!=="es-US"&&A0!=="fr"&&A0!=="pl"&&A0!=="it"&&A0!=="nl"&&A0!=="uk"&&A0!=="fr_CA"&&A0!=="fr-CA"||N===""?N:N[0].toLocaleUpperCase()+N.substring(1)};
TD_=function(N){return function(b){var S=N(),P=_.Ip(b,S.dateFormat);b=_.Ip(b,S.timeFormat);var H=kFe.DATETIMEFORMATS[S.joinerStyle];H=H.replace(/'(?!')/g,"");H=H.replace("{0}",b);H=H.replace("{1}",P);return S.capitalize(H)}};
tza=function(N){return N?typeof N.seconds==="string"&&(N.nanos===void 0||typeof N.nanos==="number"):!1};
Mzb=function(N){return new Date(Number(N.seconds)*1E3+(N.nanos||0)*1E-6)};
_.Ip=function(N,b){if(typeof N.getTime==="function")N={date:N};else if(tza(N))N={date:Mzb(N)};else if(typeof tza(N.timestamp)&&typeof N.i18nInternalSecondsEastOfUtc==="number")N={date:Mzb(N.timestamp),timeZone:Db(-N.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(N));var S=N;N=S.date;S=S.timeZone;b=FLp(b).format(N,S);A0==="zh-TW"&&(N=S?Number(FLp("H").format(N,S)):N.getHours(),b=N<5?b.replace("\u4e0a\u5348","\u51cc\u6668"):N<8?b.replace("\u4e0a\u5348","\u65e9\u4e0a"):N<12?
b.replace("\u4e0a\u5348","\u4e0a\u5348"):N<13?b.replace("\u4e0b\u5348","\u4e2d\u5348"):N<19?b.replace("\u4e0b\u5348","\u4e0b\u5348"):b.replace("\u4e0b\u5348","\u665a\u4e0a"));return b};
FLp=function(N){if(BDu.has(N))return BDu.get(N);var b=lis(N);b=LLO(b);fiY!==!0&&(fiY=!0);uOO=!0;uOO=!1;b=new V4(b,kFe);BDu.set(N,b);return b};
lis=function(N){return(new V4(N,kFe)).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")};
LLO=function(N){return A0==="en"||A0==="es_US"||A0==="es-US"?N:N.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,S,P){return"H".repeat(S.length)+P})};
ZNp=function(N,b){QHf||(Xk=Rua,QHf=new xJo);var S=QHf;a:if(N=ouO(N),b=ouO(b||new Date),N>b)S=N.getTime()-b.getTime()>6048E5?_.Ip(N,1):iNY(N);else{for(var P=0;JR_(N,12*(P+1))<b;)++P;if(P>0)S=S.format(-P,0);else{for(P=0;JR_(N,P+1)<b;)++P;if(P>0)S=S.format(-P,2);else{N=b.getTime()-N.getTime();b=_.O(UJL);for(P=b.next();!P.done;P=b.next()){P=P.value;var H=P.unit,K=Math.floor(N/P.unitDuration);if(K>=(P.threshold===void 0?1:P.threshold)){S=S.format(-K,H);break a}}S=S.format(-0,7)}}}return S};
ouO=function(N){if(typeof N.getTime==="function")return N;if(tza(N))return Mzb(N);throw Error("Nf`"+JSON.stringify(N));};
JR_=function(N,b){for(var S=0,P;;++S)if(P=new Date(N.getFullYear(),N.getMonth()+b,N.getDate()-S,N.getHours(),N.getMinutes(),N.getSeconds()),P.getMonth()===(N.getMonth()+b)%12)return P};
_.gy=function(N){return{runs:[{text:N}]}};
_.es=function(N){if(N&&N.simpleText)return N.simpleText;var b="";if(N&&N.runs)for(var S=0;S<N.runs.length;S++)N.runs[S].text&&(b+=N.runs[S].text);return b};
zuY=function(N,b,S,P){return N.videoEntity&&!N.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:ma(N.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.kG(b)?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:N.videoEntity.lengthSeconds?jHb(N.videoEntity.lengthSeconds,P):[]:
[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
jHb=function(N,b){var S=[{thumbnailOverlayTimeStatusRenderer:{text:_.bV(GFU({seconds:N})),style:"DEFAULT"}}];b&&(N=b<=0||N<=0?0:b>=N?100:Math.ceil(b*100/N),N>0&&S.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:N}}));return S};
ARE=function(N,b,S,P,H){if(b==="TRANSFER_STATE_UNKNOWN"||!N)return{};if(_.kG(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var K=[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var C,G;if(b==="TRANSFER_STATE_COMPLETE"&&((C=N.mainPlaylistEntity)==null?0:(G=C.videos)==null?0:G.length)){var a;N=(K=N.mainPlaylistEntity)==null?void 0:(a=K.videos)==null?void 0:a.length;K=(K=nu_(N))?{thumbnailOverlayBottomPanelRenderer:{text:_.bV(K),icon:{iconType:"PLAYLISTS"}}}:void 0;K=[dJp(),Object.assign({},
K!=null?K:{})]}else K=[]}a:if(b==="TRANSFER_STATE_PRE_TRANSFER")S=Ss(_.cN("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")S=Ss(_.cN("WAITING_TO_DOWNLOAD"));else if(_.kG(b))S=Math.floor(S*100).toString(),S=Ss(_.cN("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%"));else{if(P&&(_.T("playlist_is_offline_selector_killswitch")&&(H=_.aN().resolve(_.sv).isNetworkAvailable()),H)){S=yTO(_.cN("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
pCo(P));break a}S=void 0}b=b==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.cN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},K.length?{thumbnailOverlays:K}:{},S?{viewPlaylistText:S}:{viewPlaylistText:_.gy("")},b.length?{badges:b}:{})};
XcE=function(N,b,S,P,H,K){if(b==="TRANSFER_STATE_UNKNOWN"||!N)return{};if(P==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var C=zuY(N,b,P);if(N.videoEntity&&!N.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"){var G=_.cN("WAITING_TO_DOWNLOAD");if(G)return{shortViewCountText:_.gy(G),publishedTimeText:void 0,thumbnailOverlays:C}}if(!ma(N.policyEntity)){K=N.policyEntity&&!jwu(N.policyEntity)?_.cN("DOWNLOAD_EXPIRED",{},"Download expired"):
_.cN("TRANSFER_FAILED",{},"Download failed");var a;if((a=N.policyEntity)==null?0:a.shortMessageForDisabledAction)K=N.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Ss(K),publishedTimeText:void 0,thumbnailOverlays:C}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.gy(_.cN("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:C};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.gy(_.cN("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:C};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(a=_.cN("WAITING_TO_DOWNLOAD"),P==="DOWNLOAD_STATE_PAUSED"&&(a=_.cN("DOWNLOAD_PAUSED",{},"Download paused")),a))return{shortViewCountText:_.gy(a),publishedTimeText:void 0,thumbnailOverlays:C};if(_.kG(b))return N=Math.floor(S*100).toString(),{shortViewCountText:_.gy(_.cN("DOWNLOADING_PERCENT",{percent:N},"Downloading... "+N+"%")),publishedTimeText:void 0,thumbnailOverlays:C};b=void 0;N.videoEntity.publishedTimestampMillis&&
(b=new Date,H&&(b=new Date(H)),b=Ss(ZNp(new Date(Number(N.videoEntity.publishedTimestampMillis)),b)));H=[];_.T("kevlar_woffle_badge_killswitch")||(H=[{metadataBadgeRenderer:{label:_.cN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var R;N=Ss((R=N.videoEntity.localizedStrings)==null?void 0:R.viewCount);return Object.assign({},K?{shortViewCountText:void 0}:{shortViewCountText:N},K?{}:{publishedTimeText:b},{badges:H,thumbnailOverlays:C})};
pcI=function(N,b){N=N===void 0?Eua:N;switch(b.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return N}};
yR_=function(N,b){N=N===void 0?YMY:N;switch(b.type){case "SET_CURRENT_FORM_ID":return b=b.payload.formId,N.currentFormId===b?N:{currentFormId:b,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var S=b.payload;b=S.groupId;S=S.command;if(N.currentFormId){var P=Object.assign({},N.commandsMap);P[b]=S;N=Object.assign({},N,{commandsMap:P})}return N;case "RESET_COMMAND_MAP":return Object.assign({},N,{commandsMap:{}});default:return N}};
DJe=function(N,b){N=N===void 0?Iio:N;switch(b.type){case "UPDATE_CANVAS_MODE":return Object.assign({},N,{currentMode:b.payload.currentMode});default:return N}};
guU=function(N,b){N=N===void 0?Vz9:N;switch(b.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},N,{guideIsExpanded:b.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},N,{scrollAtTop:b.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},N,{guideIsVisibleButNotPersistent:b.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},N,{miniplayerIsActive:b.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},N,{singleOptionSurveyIsActive:b.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},N,{slimlineSurveyRatingSelectedIndex:b.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},N,{richGridMiniMode:b.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},N,{richGridItemsPerRow:b.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},N,{richGridSlimItemsPerRow:b.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},N,{richGridContainerWidth:b.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},N,{richGridStyle:b.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},N,{currentPageType:b.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},N,{inlinePreviewIsActive:b.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},N,{inlinePreviewIsEnabled:b.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},N,{darkModeIsEnabled:b.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
N,{miniplayerPlaybackState:b.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},N,{tabGesturesIsActive:b.payload});case "SET_ONLINE_STATUS":return Object.assign({},N,{isOnline:b.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},N,{chipBarIsSticky:b.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},N,{frostedGlassMode:b.payload});default:return N}};
euO=function(){return _.T("kevlar_disable_theater_mode_persistence")?!1:_.g8("START_IN_THEATER_MODE")};
hue=function(N,b){N=N===void 0?$Jb:N;switch(b.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},N,{transcription:b.payload});case "SET_OVERLAY_STATE":return Object.assign({},N,{overlay:b.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return N}};
vJU=function(){return zb(Object.assign({},{continuation:qME,download:wcU,canvas:DJe,reportChannelAbuse:N3U,share:b5a,talkToRecs:SNY,ui:guU,voiceSearch:hue,watch:P8e,ypc:H5Y,shorts:snU,radioButtonGroup:yR_,collabInviteLink:pcI},KTL))};
Gr_=function(){return _.T("web_player_entities_middleware")?new $G(vJU(),[O5a,C8o]):new $G(vJU(),[O5a])};
_.h0=function(){rC9||(rC9=Gr_());return rC9};
cC9=function(N,b,S){if(N.length)return{titleText:_.bV(b!=null?b:_.cN("DOWNLOADS",void 0,"Downloads")),contents:N.map(function(P){var H=P.videoEntity;P={videoId:H.videoId,title:Ss(H.title),shortBylineText:Ss(P.channelEntity.title),thumbnail:H.thumbnail};var K=H.videoId?zL(_.h0().getState(),H.videoId):0;H.videoId&&S?P.navigationEndpoint=_.N6(H.videoId,S,void 0,void 0,K):H.videoId&&(P.navigationEndpoint=EDu(H.videoId,K,H.lengthSeconds));H.lengthSeconds&&(P.thumbnailOverlays=jHb(H.lengthSeconds,K));return{playlistPanelVideoRenderer:P}}),
totalVideos:N.length}};
acU=function(N){return(N=(0,_.Vm.getValueByKeys)(N,"playlistId"))?{playlistId:N}:null};
Rmu=function(){return{}};
WTf=function(N,b){return new _.u5(function(S,P){N.then(function(H){if(H){if(H=b(H))return S(H);P()}},P)})};
nJb=function(N){var b,S,P,H=(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.autoplay)==null?void 0:P.autoplay,K,C,G;b=(K=N.contents)==null?void 0:(C=K.twoColumnWatchNextResults)==null?void 0:(G=C.playlist)==null?void 0:G.playlist;return H&&b&&b.playlistId?{rawResponse:N,autoplayRenderer:H,playlistPanelRenderer:b,playlistId:b.playlistId}:null};
mTU=function(N){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(N.length===1)return N[0];var S=dTY[b];if(S){S=new RegExp(S);for(var P=_.O(N),H=P.next();!H.done;H=P.next())if(H=H.value,S.exec(H))return H}var K=[];Object.entries(dTY).forEach(function(C){var G=_.O(C);C=G.next().value;G=G.next().value;b!==C&&K.push(G)});
S=new RegExp(K.join("|"));N.sort(function(C,G){return C.length-G.length});
P=_.O(N);for(H=P.next();!H.done;H=P.next())if(H=H.value,!S.exec(H))return H;return N[0]};
_.q6=function(N){return"/youtubei/v1/"+mTU(N)};
_.wy=function(N,b){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:N}}},b!==void 0?{durationHintMs:b}:{})}};
_.Nn=function(N,b){return _.wy(_.gy(N),b)};
krs=function(N,b){var S={mode:"NORMAL"};N&&(S.autoplayVideo=N.navigationEndpoint,S.nextButtonVideo=N.navigationEndpoint);b&&(S.previousButtonVideo=b.navigationEndpoint);return S};
M6p=function(N,b,S){if(!S||!S.sets)return{sets:[krs(N,b)]};var P=S.sets.find(function(C){return C.mode==="NORMAL"}),H=(0,_.Vm.unsafeClone)(S);
if(!P)return H.sets.push(krs(N,b)),H;if(!N)return S;P=_.Vm.getValueByKeys.apply(null,[P].concat(_.IX(T3f)));var K=_.Vm.getValueByKeys.apply(null,[N].concat(_.IX(t6U)));if(P===K)return S;H.sets=H.sets.filter(function(C){return C.mode!=="NORMAL"});
H.sets.push(krs(N,b));return H};
FTa=function(N){return!!N.playlistPanelVideoRenderer&&!N.playlistPanelVideoRenderer.unplayableText};
B3Y=function(N){return!!N.playlistPanelVideoRenderer&&!!N.playlistPanelVideoRenderer.title};
lcI=function(N,b){if(b.contents&&!(N>=b.contents.length)&&(N=b.contents.slice(N).find(FTa)))return N.playlistPanelVideoRenderer};
LTo=function(N,b){if(b.contents)return(b=b.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===N}))?b.playlistPanelVideoRenderer:void 0};
fca=function(N,b){return b.contents?b.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===N}):-1};
uLO=function(N,b){return b.contents?b.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.playlistSetVideoId===N}):-1};
Qnf=function(N,b){N.contents&&b!==-1&&N.contents.splice(b,1).length===1&&N.totalVideos!==void 0&&(--N.totalVideos,delete N.videoCountText)};
_.HWa=function(N){var b=[];if(!N||!N.contents)return b;N=_.O(N.contents);for(var S=N.next();!S.done;S=N.next())S=S.value,S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId&&b.push(S.playlistPanelVideoRenderer.videoId);return b};
_.sDb=function(N){if(N&&N.contents)return(N=N.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.selected})||N.contents[N.currentIndex])?N.playlistPanelVideoRenderer:void 0};
KqI=function(N,b,S,P,H,K,C){H=H===void 0?!1:H;K=K===void 0?!1:K;C=C===void 0?!1:C;if(N.contents&&N.contents.length!==0){P&&(N.contents=N.contents.filter(P));P=N.contents.length;for(var G=0;G<P;G++){var a=N.contents[G].playlistPanelVideoRenderer;a&&(G===b?(K&&delete a.menu,a.indexText=_.gy("\u25b6")):H||N.isInfinite||a.indexText===void 0?delete a.indexText:a.indexText=_.gy((G+1+S).toString()))}N.currentIndex=b+S;C&&(delete N.videoCountText,N.totalVideos=P)}};
_.b1=function(N){N=vtU(N);if(N){var b=N.length;var S=-83%b;S<0&&(S=b+S);N=N.slice(b-S)+N.slice(0,b-S)}else N="";S="";for(b=0;b<N.length&&N[b]!==OWa;b++)S+=N[b];return S};
_.CkY=function(N,b){var S=document.body;b=b===void 0?function(G){return G}:b;
var P,H=null;N=_.O(N);for(P=N.next();!P.done;P=N.next()){var K=P.value;P="div";K[2]&&(P=b(K[2]));P=document.createElement(P);H||(H=P);var C=K[0];K=K[1];C&&(P.id=b(C));if(K)for(K=_.O(K),C=K.next();!C.done;C=K.next())P.classList.add(b(C.value));S.appendChild(P);S=P}return[H,S]};
GqE=function(N,b){for(var S="",P=0;P<b;P++)S+=N.charAt(Math.floor(Math.random()*N.length));return S};
SZ=function(N){return GqE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",N)};
Pd=function(N){return GqE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",N)};
Hd=function(N){return GqE("0123456789",N)};
rJo=function(){var N=performance.now(),b=new Date;var S="2."+b.getFullYear()+String(b.getMonth()+1).padStart(2,"0")+String(b.getDate()).padStart(2,"0");for(var P,H=Math.floor(Math.random()*11)+15,K=[],C=0;C<H;C++)K.push(Math.floor(Math.random()*26476865)+24547720);P=K.join(",");var G=SZ(10),a=SZ(100),R=SZ(102),n=SZ(106),d=SZ(108),m=SZ(11),k=SZ(1140),M=SZ(123),l=SZ(14),u=SZ(16),J=SZ(1900),Z=SZ(23),D=SZ(26),Y=SZ(34),V=SZ(397),g=SZ(44),e=SZ(5),se=SZ(72),Ca=SZ(74),ML=SZ(75),na=SZ(88),To=SZ(91),jp="rr1---sn-hgn7rn7y rr3---sn-q4flrn7k rr5---sn-5hne6n6l rr1---sn-4g5lznl6 rr1---sn-q4fl6nz7 rr3---sn-hgn7rn7k rr5---sn-aigl6nzk rr3---sn-q4fzene7 rr3---sn-q4fl6nz7 rr4---sn-ntq7yned rr4---sn-q4fl6n6r rr5---sn-aigl6nzl rr4---sn-ntq7yns7 rr3---sn-5hne6nsr rr3---sn-q4fzen7l rr2---sn-4g5ednz7 rr2---sn-q4fl6n6d rr4---sn-hgn7rn7r rr3---sn-q4fl6n6s rr5---sn-q4fzen7r".split(" ");
var Xf=jp[Math.floor(Math.random()*jp.length)];var YO=(new Date("2010-01-01")).getTime();var Wk=(new Date(YO+Math.random()*((new Date).getTime()-YO))).toISOString().split("T")[0];for(var S9,Vu=[],n9=0;n9<4;n9++)Vu.push(Math.floor(Math.random()*100));S9=Vu.join(".");var mc=Number(Hd(5)),f9=Number(Hd(6)),mJ=Number(Hd(7)),Bk=Number(Hd(9)),RU=Hd(1),Ab=Hd(10),kZ=Hd(16),Ib=Hd(19),Ud=Hd(2),ob=Hd(20),PM=Hd(21),Vz=Hd(3),ck=Hd(4),d9=Hd(5),sa=Hd(6),$O=Hd(7),qS=Hd(8),Do=Hd(9);var Nj=GqE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var nq=[Pd(5),Pd(5),Pd(5)].join("%2C"),pq=[Hd(3),Hd(5),Hd(5)].join("%2C"),R_=Pd(0),Gn=Pd(1),g9=Pd(10),Lq=Pd(108),Kq=Pd(11),Ah=Pd(12),Hv=Pd(13),XK=Pd(14),lz=Pd(15),i4=Pd(16),fE=Pd(17),uY=Pd(18),Ee=Pd(19),ep=Pd(2),MS=Pd(20),tO=Pd(22),LD=Pd(23),fq=Pd(24),Qz=Pd(266),lE=Pd(3),YQ=Pd(30),CD=Pd(34),T4=Pd(35),Un=Pd(36),F1=Pd(4),pD=Pd(40),mA=Pd(43),SH=Pd(47),Lv=Pd(5),Dq=Pd(6),g5=Pd(7),YA=Pd(75),qY=Pd(8),A1=Pd(80),fv=Pd(9),Fw="https://www."+Pd(12)+".com",tM={},Ye={},yc={},yP={},X5={},Xz={},Er={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:P}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:S},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Pd(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:S},{key:"client.name",value:"WEB"},{key:"client.fexp",value:P}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:PM+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Pd(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:pD,ypcGetOfflineUpsellEndpoint:{params:A1}},trackingParams:T4+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&cnr="+Ud+"&ratebypass=yes&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&c=WEB&txp="+$O+"&n="+u+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:f9,width:640,height:360,lastModified:kZ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$O,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+
nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&cnr="+Ud+"&ratebypass=yes&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&c=WEB&txp="+$O+"&n="+u+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Lq+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:f9,width:1280,
height:720,lastModified:kZ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$O,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+
nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:mJ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mJ,approxDurationMs:$O},{itag:248,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+nq+"&mv="+
Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:mJ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:399,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=399&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:mJ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:mJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:136,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=136&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:mJ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:f9,approxDurationMs:$O},{itag:247,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=247&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+
nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:mJ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:398,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=398&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+Do+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:mJ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:Do,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:135,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=135&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:f9,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:f9,approxDurationMs:$O},{itag:244,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=244&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+
nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Lq+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:f9,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:397,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=397&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:f9,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:134,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=134&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:f9,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:f9,highReplication:!0,approxDurationMs:$O},{itag:243,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=243&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:f9,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:396,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=396&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:f9,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:133,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=133&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:f9,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:f9,approxDurationMs:$O},{itag:242,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=242&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+
nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:f9,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:395,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=395&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:f9,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:f9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:160,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=160&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:f9,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mc,approxDurationMs:$O},{itag:278,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=278&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+
nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:f9,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:394,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=394&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=video%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:mc,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:mc,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$O},{itag:140,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=audio%2Fmp4&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:f9,
initRange:{start:"0",end:"631"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f9,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$O,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+
Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=audio%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+$O+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:mc,initRange:{start:"0",end:"265"},indexRange:{start:Vz,
end:ck},lastModified:kZ,contentLength:$O,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:mc,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$O,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=audio%2Fwebm&ns="+
fq+"&gir="+lE+"&clen="+$O+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:mc,initRange:{start:"0",end:"265"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:$O,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:mc,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$O,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Xf+".googlevideo.com/videoplayback?expire="+Ab+"&ei="+Z+"&ip="+S9+"&id=o-AF"+mA+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+pq+"&mn="+nq+"&ms="+nq+"&mv="+Gn+"&mvi="+RU+"&pl="+Ud+"&initcwndbps="+$O+"&siu="+RU+"&spc="+g+"&vprv="+RU+"&svpuc="+RU+"&mime=audio%2Fwebm&ns="+fq+"&gir="+lE+"&clen="+qS+"&dur="+qS+"&lmt="+kZ+"&mt="+Ab+"&fvip=3&keepalive="+lE+"&c=WEB&txp="+
$O+"&n="+i4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:f9,initRange:{start:"0",end:"265"},indexRange:{start:Vz,end:ck},lastModified:kZ,contentLength:qS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f9,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$O,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+Do+"&docid="+m+"&ei="+Z+"&feature="+G+"&fexp="+R_+"&ns="+ep+"&plid="+u+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Gn+"&el="+g9+"&len="+ck+"&of="+tO+
"&uga="+Ud+"&vm="+Qz},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Do+"&docid="+m+"&ei="+Z+"&feature="+G+"&fexp="+R_+"&ns="+ep+"&plid="+u+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Gn+"&el="+g9+"&len="+ck+"&of="+tO+"&uga="+Ud+"&vm="+Qz},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Do+"&docid="+m+"&ei="+Z+"&feature="+G+"&fexp="+R_+"&ns="+ep+"&plid="+u+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Gn+"&el="+g9+"&len="+ck+"&of="+tO+"&uga="+Ud+"&vm="+Qz},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+Z+"&m="+na+"&oid="+tO+"&plid="+u+"&pltype="+g5+"&ptchn="+tO+"&ptk="+l+"&video_id="+m},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Do+"&docid="+m+"&ei="+Z+"&event="+XK+"&feature="+G+"&fexp="+R_+"&ns="+ep+"&plid="+u+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Gn},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
i4+"&ver=2&cmt=1."+Vz+"&fmt="+Vz+"&fs=0&rt="+d9+"&euri&lact="+Vz+"&cl="+Do+"&mos="+RU+"&volume=100&cbrand="+Lv+"&cbr="+Dq+"&cbrver="+S9+"&c=WEB&cver="+S+"&cplayer=UNIPLAYER&cos="+fv+"&cosver="+$O+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Ud+"&len="+qS+"&fexp="+nq+"&feature=g-high-rec&afmt="+Vz+"&muted=0&conn=1&docid="+m+"&ei="+Z+"&plid="+u+"&vm="+Pd(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
m+"&caps="+lE+"&opi="+Do+"&xoaf="+RU+"&hl="+ep+"&ip="+S9+"&ipbits="+RU+"&expire="+Ab+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+S9+"&key="+lE+"&lang="+e,name:{simpleText:Dq},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+m+"&caps="+lE+"&opi="+Do+"&xoaf="+RU+"&hl="+ep+"&ip="+S9+"&ipbits="+RU+"&expire="+Ab+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+S9+"&key="+lE+"&kind="+lE+"&lang="+ep,name:{simpleText:F1},
vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",
languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",
languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},
{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",
languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",
languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",
languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",
languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},
{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},
{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},
{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},
{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},
{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",
languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",
languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:Kq,title:Lv,lengthSeconds:"1155",keywords:[MS,F1,i4,XK],channelId:fq,isOwnerViewing:!1,shortDescription:g5,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+CD,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+
"G&rs="+CD,width:196,height:110},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+m+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:$O,author:Hv,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:$O,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
tO+"/featured_channel.jpg?v="+qY,width:40,height:40}]},trackingParams:T4+"=",navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"/channel/"+fq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:fq}},channelName:Hv,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:g9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:fq,showPreferences:!1,subscribedButtonText:{runs:[{text:fv}]},unsubscribedButtonText:{runs:[{text:MS}]},
trackingParams:T4+"=",unsubscribeButtonText:{runs:[{text:Kq}]},serviceEndpoints:[{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[fq],params:qY}},{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:T4+"=",dialogMessages:[{runs:[{text:uY},
{text:uY},{text:fv}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qY}]},serviceEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[fq],params:qY}},accessibility:{label:g5},trackingParams:T4+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ee}]},accessibility:{label:g5},
trackingParams:T4+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ee}},unsubscribeAccessibility:{accessibilityData:{label:g5}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:qS},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[fq],
params:qY}},unsubscribeCommand:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[fq],params:qY}},addToWatchLaterCommand:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Kq,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Kq}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+m+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Un+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Kq,width:1280,
height:720},title:{simpleText:i4},description:{simpleText:fE},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Lv,externalChannelId:fq,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:$O,category:"Travel & Events",publishDate:Wk,ownerChannelName:Hv,uploadDate:Wk}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:lz},trackingParams:T4+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:pD,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:T4+"="}}],headerText:{simpleText:Ee},icon:{infoCardIconRenderer:{trackingParams:T4+"="}},closeButton:{infoCardIconRenderer:{trackingParams:T4+"="}},trackingParams:T4+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:T4+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Kq+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Nj,interpreterSafeUrl:(tM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+YQ+".js",tM),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:g9},{text:i4,bold:!0}]},endpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/",target:"TARGET_NEW_WINDOW"}},trackingParams:T4+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:uY}]},actionButton:{buttonRenderer:{text:{runs:[{text:g5}]},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+m,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
m,target:"TARGET_NEW_WINDOW"}},trackingParams:T4+"="}},trackingParams:T4+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+se+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+se+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:$O,endMs:$O,title:{accessibility:{accessibilityData:{label:XK}},simpleText:Ah},metadata:{simpleText:fE},callToAction:{simpleText:Lv},dismiss:{simpleText:Ah},endpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"/channel/"+fq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:fq}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:uY}]},subscribed:!1,enabled:!0,type:"FREE",channelId:fq,showPreferences:!1,
subscribedButtonText:{runs:[{text:g9}]},unsubscribedButtonText:{runs:[{text:Hv}]},trackingParams:T4+"=",unsubscribeButtonText:{runs:[{text:MS}]},serviceEndpoints:[{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[fq],params:qY}},{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:pD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:T4+
"=",dialogMessages:[{runs:[{text:F1},{text:fv},{text:i4}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Kq}]},serviceEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[fq],params:qY}},accessibility:{label:i4},trackingParams:T4+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:XK}]},
accessibility:{label:lz},trackingParams:T4+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:XK}},unsubscribeAccessibility:{accessibilityData:{label:Ah}}}},trackingParams:T4+"=",isSubscribe:!0,id:ob}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+Y,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+CD,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+Un+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+m+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:$O,endMs:$O,title:{accessibility:{accessibilityData:{label:XK}},simpleText:F1},metadata:{simpleText:Kq},endpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Kq,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Kq,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Xf+".googlevideo.com/videoplayback?source=youtube&oeis="+RU+"&c=WEB&oad="+ck+"&ovd="+ck+"&oaad="+d9+"&oavd="+d9+"&ocs="+Vz+"&oewis="+RU+"&oputc="+RU+"&ofpcc="+RU+"&siu="+RU+"&msp="+RU+"&odepv="+RU+
"&id=o-AF"+mA+"&ip="+S9+"&initcwndbps="+$O+"&mt="+Ab+"&oweuc="+R_}}}}},trackingParams:T4+"=",id:ob,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:fE}},simpleText:Ee},style:"DEFAULT"}}]}}],startMs:$O,trackingParams:T4+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:RU,offsetEndMilliseconds:d9},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";ord="+Ab+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+Vz+";dc_sk="+RU+";dc_ctype="+Ud+";dc_ref=http://www.youtube.com/video/"+Kq+";dc_pubid="+RU+";dc_btype=23?gclid="+To+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RU+"&ns="+RU+"&event="+RU+"&device="+RU+"&content_v="+m+"&el="+g9+"&ei="+Z+"&devicever="+S+"&bti="+$O+"&format="+sa+"&break_type="+RU+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RU+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+S9+"&slot_pos="+RU+"&slot_len="+RU+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+pq+"&ad_len="+d9+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Kq+"&aqi="+Z+"&ad_rmp="+RU+"&sli="+RU}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+
";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+$O+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&ctype="+Vz+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_engaged_view&ctype="+Vz+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+Ib+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&dc_pubid="+RU+"&dc_exteid="+ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&avm="+RU+"&dc_pubid="+RU+"&dc_exteid="+
ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
R+"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&dc_pubid="+RU+"&dc_exteid="+ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pD,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+
Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:T4+"="},trackingParams:T4+
"=",templatedCountdown:{templatedAdText:{text:Dq,isTemplated:!0,trackingParams:T4+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:fv,isTemplated:!1,trackingParams:T4+"="},trackingParams:T4+"="}},trackingParams:T4+"=",skipOffsetMilliseconds:5E3}},trackingParams:T4+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:lz},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:qY,isTemplated:!1,trackingParams:T4+"="},trackingParams:T4+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:fE,isTemplated:!0,trackingParams:T4+"="}},trackingParams:T4+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ye.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+ep+"&origin=www.youtube.com&ata_theme="+F1,Ye),trackingParams:T4+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:T4+"="}},hoverText:{runs:[{text:fE}]},trackingParams:T4+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T4+"="},headline:{text:fv,isTemplated:!1,trackingParams:T4+"="},description:{text:Lv,
trackingParams:T4+"="},actionButton:{buttonRenderer:{text:{simpleText:qY},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"="}},startMs:RU,trackingParams:T4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lz},elementId:fv}},elementId:XK,trackingParams:T4+"=",legacyInfoCardVastExtension:lz,sodarExtensionData:{siub:MS,bgub:XK,scs:uY,bgp:uY},externalVideoId:Kq,adLayoutLoggingData:{serializedAdServingDataEntry:Ah},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T4+"="},
headline:{text:uY,isTemplated:!1,trackingParams:T4+"="},description:{text:g5,isTemplated:!1,trackingParams:T4+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fv},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+
ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+
RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:T4+"="}},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+
Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:T4+"="},abandonCommands:{commands:[{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+
RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pD,commandExecutorCommand:{commands:[{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Kq,isTemplated:!1,trackingParams:T4+
"="},trackingParams:T4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fv},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+$O+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+Do+";dc_trk_cid="+Do+";ord="+Ab+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+Vz+";dc_sk="+RU+";dc_ctype="+Ud+";dc_ref=http://www.youtube.com/video/"+Kq+";dc_pubid="+RU+";dc_btype=23?gclid="+To+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RU+"&ns="+RU+"&event="+RU+"&device="+RU+"&content_v="+m+"&el="+g9+"&ei="+Z+"&devicever="+S+"&bti="+$O+"&format="+sa+"&break_type="+RU+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RU+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+S9+"&slot_pos="+RU+"&slot_len="+RU+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
pq+"&ad_len="+d9+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Kq+"&aqi="+Z+"&ad_rmp="+RU+"&sli="+RU}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+
D+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+$O+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&ctype="+Vz+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_engaged_view&ctype="+Vz+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+
Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&dc_pubid="+RU+"&dc_exteid="+ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+
"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&avm="+RU+"&dc_pubid="+RU+"&dc_exteid="+ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+LD+"&ad_cpn=[AD_CPN]&id="+Dq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RU},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Dq+"&dc_pubid="+RU+"&dc_exteid="+ob+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+sa+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+
Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:T4+"="},trackingParams:T4+"=",templatedCountdown:{templatedAdText:{text:XK,isTemplated:!0,trackingParams:T4+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:fE,isTemplated:!1,trackingParams:T4+"="},trackingParams:T4+"="}},
trackingParams:T4+"=",skipOffsetMilliseconds:5E3}},trackingParams:T4+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Dq},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:MS,isTemplated:!1,trackingParams:T4+"="},trackingParams:T4+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:lz,
isTemplated:!0,trackingParams:T4+"="}},trackingParams:T4+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:pD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yc.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+ep+"&origin=www.youtube.com&ata_theme="+F1,yc),trackingParams:T4+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:T4+"="}},hoverText:{runs:[{text:Dq}]},trackingParams:T4+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T4+"="},headline:{text:Ah,isTemplated:!1,trackingParams:T4+"="},description:{text:lz,trackingParams:T4+"="},actionButton:{buttonRenderer:{text:{simpleText:uY},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"="}},startMs:RU,trackingParams:T4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ee},elementId:qY}},elementId:Lv,trackingParams:T4+"=",legacyInfoCardVastExtension:Ee,sodarExtensionData:{siub:i4,bgub:fE,scs:F1,bgp:MS},externalVideoId:Kq,adLayoutLoggingData:{serializedAdServingDataEntry:fE},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:T4+"="},headline:{text:Hv,
isTemplated:!1,trackingParams:T4+"="},description:{text:i4,isTemplated:!1,trackingParams:T4+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ah},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:T4+"="}},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+
RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:T4+"="},abandonCommands:{commands:[{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+Ud+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:pD,commandExecutorCommand:{commands:[{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:qY,isTemplated:!1,trackingParams:T4+"="},trackingParams:T4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fv},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RU+";dc_exteid="+ob+";met="+RU+";ecn"+RU+"="+RU+";etm1="+RU+";eid1="+
$O+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Lv}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:d9,offsetEndMilliseconds:sa},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Ud+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+S+"&m_pos_ms="+d9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:F1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:sa,offsetEndMilliseconds:sa},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Vz+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
S+"&m_pos_ms="+sa}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sa,offsetEndMilliseconds:sa},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Vz+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
S+"&m_pos_ms="+sa}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sa,offsetEndMilliseconds:sa},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Vz+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
S+"&m_pos_ms="+sa}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sa,offsetEndMilliseconds:Ud},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Vz+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
S+"&m_pos_ms="+sa}},adSlotLoggingData:{serializedSlotAdServingDataEntry:g9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Ud,offsetEndMilliseconds:Ud},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+Ud+"&token=ALHj"+V+"&index="+RU+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
S+"&m_pos_ms="+Ud}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lz,isTemplated:!1,trackingParams:T4+"="},description:{text:Kq,isTemplated:!1,trackingParams:T4+"="},actionButton:{buttonRenderer:{text:{simpleText:Lv},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SH+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:T4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ML+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T4+"="},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+
";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+ep+"&origin=www.youtube.com&ata_theme="+F1,yP),trackingParams:T4+"="}},popupType:"DIALOG"}},trackingParams:T4+"="}},hoverText:{runs:[{text:Hv}]},trackingParams:T4+"="}},adVideoId:Kq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:lz},associatedCompositePlayerBytesLayoutId:i4}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Hv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:qY,isTemplated:!1,trackingParams:T4+"="},description:{text:lz,isTemplated:!1,trackingParams:T4+"="},actionButton:{buttonRenderer:{text:{simpleText:lz},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+
M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ca+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:T4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+YA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T4+"="},navigationEndpoint:{clickTrackingParams:pD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+
RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(X5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+ep+"&origin=www.youtube.com&ata_theme="+F1,X5),trackingParams:T4+"="}},popupType:"DIALOG"}},trackingParams:T4+"="}},
hoverText:{runs:[{text:fE}]},trackingParams:T4+"="}},adVideoId:Kq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+Kq+"&cid="+D+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:g9},associatedCompositePlayerBytesLayoutId:i4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Ee,
isTemplated:!1,trackingParams:T4+"="},description:{text:lz,isTemplated:!1,trackingParams:T4+"="},actionButton:{buttonRenderer:{text:{simpleText:qY},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+
Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+
Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:T4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:T4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ML+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:T4+
"="},navigationEndpoint:{clickTrackingParams:pD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Do+";dc_trk_cid="+Do+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RU+";ord="+Do+";dc_rui="+RU+";dc_exteid="+ob+";dc_av="+RU+";dc_sk="+RU+";dc_ctype="+Ud+";dc_pubid="+RU+";dc_btype=3?gclid="+To+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+k+"____________"+M+"AxAA&ase=2&num="+RU+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+Fw+"&label=video_click_to_advertiser_site&ctype="+Vz+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:T4+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:pD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Xz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+ep+"&origin=www.youtube.com&ata_theme="+F1,Xz),trackingParams:T4+"="}},popupType:"DIALOG"}},trackingParams:T4+
"="}},hoverText:{runs:[{text:fE}]},trackingParams:T4+"="}},adVideoId:Kq,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+k+"____________"+M+"AxAA&sigh="+m+"&cid="+D+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Hv},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:i4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:F1}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:YQ,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:YQ,command:{innertubeCommand:{clickTrackingParams:pD,ypcGetOfflineUpsellEndpoint:{params:A1}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:T4+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Ab,nanos:Bk}}}},qc=JSON.stringify(Er),pF=performance.now()-N;return{objectRepresentation:Er,jsonRepresentation:qc,generationTime:pF}};
cJs=function(N,b){if(N===b)return!0;if(!N||!b||typeof N!==typeof b)return!1;if(N instanceof Array&&b instanceof Array){if(N.length!==b.length)return!1;for(var S=0;S<N.length;S++)if(!cJs(N[S],b[S]))return!1;return!0}if(typeof N==="object"&&typeof b==="object"&&N&&b){for(S in N)if(!(S in b&&cJs(N[S],b[S])))return!1;for(var P in b)if(!(P in N))return!1;return!0}return!1};
_.KX=function(){if(!sK){sK=new oc(new aup);var N=_.d7("client_streamz_web_flush_count",-1);N!==-1&&(sK.invocationLimit=N)}return sK};
vd=function(N,b,S,P){if(N===b)return!0;if(Array.isArray(N)&&Array.isArray(b)){if(N.length!==b.length)return!1;for(var H=0;H<N.length;H++)if(!vd(N[H],b[H],S,P))return!1;return!0}if(N instanceof Set||b instanceof Set){if(N instanceof Set&&b instanceof Set){if(N.size!==b.size)return!1;P=_.O(N.values());for(H=P.next();!H.done;H=P.next())if(!b.has(H.value))return!1;return!0}return!1}if(N instanceof Function){if(P)return!0;N.name===""&&_.ge(Error("Rf"),"ERROR");return!1}if(N instanceof Date&&b instanceof
Date)return N.getTime()===b.getTime();if(N instanceof Object&&b instanceof Object){if(Ryb(N)&&Ryb(b))try{return N.equals(b)}catch(C){_.ge(Error("Sf`"+C),"ERROR")}H=Object.getOwnPropertyNames(N).filter(function(C){return S?N[C]!==void 0:!0});
var K=Object.getOwnPropertyNames(b).filter(function(C){return S?b[C]!==void 0:!0});
if(H.length!==K.length)return!1;H=_.O(H);for(K=H.next();!K.done;K=H.next())if(K=K.value,!vd(N[K],b[K],S,P))return!1;return!0}return!1};
Ryb=function(N){N=Object.getPrototypeOf(N).equals;return N instanceof Function&&N.length===1};
_.dhs=function(){return _.r(function(N){if(N.nextAddress==1)return WqY!==2?N.jumpTo(2):N.yield(ntO(),3);N.nextAddress!=2&&(WqY=N.yieldResult);return N.return(WqY)})};
_.T4O=function(){return _.r(function(N){if(N.nextAddress==1)return _.T("ab_pl_man")?mhe!==2?N.jumpTo(2):N.yield(kqE(),3):N.return(1);N.nextAddress!=2&&(mhe=N.yieldResult);return N.return(mhe)})};
FqE=function(){return _.r(function(N){if(N.nextAddress==1)return _.T("ab_fk_sk_cl")?tEY!==2?N.jumpTo(2):N.yield(MEe(),3):N.return(1);N.nextAddress!=2&&(tEY=N.yieldResult);return N.return(tEY)})};
_.LqU=function(){return _.r(function(N){if(N.nextAddress==1)return _.T("ab_det_apb_b")?B4p!==2?N.jumpTo(2):N.yield(lu_(),3):N.return(1);N.nextAddress!=2&&(B4p=N.yieldResult);return N.return(B4p)})};
QD9=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(Promise.all([_.dhs(),_.LqU(),_.T4O(),FqE()]),2);if(b.nextAddress!=3)return fuO()?b.return(!0):b.yield(_.u_a(),3);N=b.yieldResult;return b.return(N===0)})};
fuO=function(){var N=!1,b=function(S,P){xho.increment(P,S);S===0&&(N=!0)};
b(_.ota(),"j.s_");b(WqY,"f.i_");b(B4p,"a.b_");b(mhe,"p.m_");b(tEY,"i.f_");iW9===2&&(iW9=_.JJ_(Uhu));b(iW9,"e.h_");_.T("ks_det_gpbl")||b(_.ZW9(),"p.i_");_.T("ks_get_o_pp")||b(_.jDO(),"g.o_");_.T("ab_deg_unex_thr")||b(_.zy_(),"a.o_");b(AJb,"s.t_");_.T("ab_det_sc_inj_enf")&&b(_.XnU(),"s.i_");b(Etu,"d.p_");b(_.pnY(_.OK),"o.p_");b(_.YDs()===0?0:_.yJ9(),"o.a_");return _.T("debug_sk_em_precheck")?!0:N};
DhY=function(){var N=[].concat(_.IX(IuU));try{var b=rJo();N.push({jsonRepresentation:b.jsonRepresentation,objectRepresentation:b.objectRepresentation})}catch(S){N=[].concat(_.IX(IuU))}return N};
VEO=function(){var N=["adPlacements","adSlots"];try{return N.filter(function(){return!0}).length!==N.length?0:1}catch(b){return 0}};
_.jDO=function(){if(VEO()===0)return 0;var N=rJo(),b=N.objectRepresentation,S=(0,_.Vm.unsafeClone)(b),P=[];if(b&&typeof b==="object")for(var H in b)P.push(H);else return 4;N=N.objectRepresentation.adPlacements;if(!(N&&N.length>0))return 4;try{if(!cJs(P,Object.getOwnPropertyNames(b)))return 0}catch(K){return 0}return cJs(S,b)?1:0};
_.pnY=function(N){if(!N||!N.length||typeof N==="string")return 0;for(var b=Object.getOwnPropertyNames(Object.prototype),S=0;S<N.length;S++)for(var P=_.b1(N[S]),H=_.O(b),K=H.next();!K.done;K=H.next())if(P===K.value)return 0;return 1};
gtu=function(N){var b=_.b1(N[1]);if(N[0]===null)return b;N=N[0];for(var S={},P=0;P<N.length;P++){var H=_.b1(N[P]);if(P===0)S[H]=b;else{var K={};K[H]=S;S=K}}return S};
_.YDs=function(){for(var N=_.CX,b=0;b<N.length;b++){var S=gtu(N[b]),P=[];P.push(S);if(P.length===0)return 0}return 1};
_.yJ9=function(){for(var N=_.CX,b={},S=0;S<N.length;b={aLQ:void 0},S++){var P=[gtu(N[S])];b.aLQ=[];P.forEach(function(H){return function(K){H.aLQ[H.aLQ.length]=K}}(b));
if(b.aLQ.length===0)return 0}return 1};
_.ota=function(){for(var N=_.O(DhY()),b=N.next();!b.done;b=N.next()){var S=b.value;b=S.jsonRepresentation;S=S.objectRepresentation;try{var P=JSON.parse(b);if(!vd(P,S,!1,!1))return 0}catch(H){return 0}}return 1};
_.XnU=function(){try{var N=_.kb("ab_det_sc_inj_val");N.length===1&&N[0]===""&&(N=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=document.querySelectorAll("script"),S=_.O(b),P=S.next();!P.done;P=S.next())for(var H=P.value,K=_.O(N),C=K.next();!C.done;C=K.next()){var G=C.value;b=void 0;if((b=H.textContent)==null?0:b.includes(G))return 0}}catch(a){return 4}return 1};
_.u_a=function(){var N,b,S,P,H,K,C;return _.r(function(G){switch(G.nextAddress){case 1:_.u4(G,2),N=_.O(IuU),b=N.next();case 4:if(b.done)return G.return(1);P=S=b.value;H=P.jsonRepresentation;K=P.objectRepresentation;return G.yield((new Response(H,{status:200})).json(),7);case 7:C=G.yieldResult;if(!vd(C,K,!1,!1))return G.return(0);b=N.next();G.jumpTo(4);break;case 2:return _.UE(G),G.return(4)}})};
_.zy_=function(){try{btoa("abc")}catch(N){return 0}return 1};
ntO=function(){var N,b,S,P,H,K,C,G,a,R,n;return _.r(function(d){switch(d.nextAddress){case 1:_.u4(d,2),N=_.O(DhY()),b=N.next();case 4:if(b.done)return d.return(1);P=S=b.value;H=P.jsonRepresentation;K=P.objectRepresentation;C=btoa(H);G="data:application/json;base64,"+C;a=new Request(G);Object.defineProperty(a,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(a,"method",{get:function(){return"POST"}});
Object.defineProperty(a,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(a,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(a,"body",{get:function(){return new ReadableStream}});
return d.yield(fetch(a),7);case 7:return R=d.yieldResult,d.yield(R.json(),8);case 8:n=d.yieldResult;if(!vd(n,K,!1,!1))return d.return(0);b=N.next();d.jumpTo(4);break;case 2:return _.UE(d),d.return(4)}})};
_.JJ_=function(N){if(!N||!N.length||typeof N==="string")return 0;for(var b=function(H){return _.b1(H)},S=2,P=0;P<N.length&&(S=_.eyu(_.CkY(N[P],b)),S!==0);P++);
return S};
_.eyu=function(N){var b=_.O(N);N=b.next().value;b=b.next().value;try{var S=document.createElement("div");document.body.appendChild(S);var P=getComputedStyle(S).display;document.body.removeChild(S);if(P==="none")return 4;var H=getComputedStyle(b).display==="none"?0:1;document.body.removeChild(N);return H}catch(K){return 4}};
MEe=function(){var N,b,S;return _.r(function(P){N=new _.GB;b=document.createElement("button");b.classList.add("ytp-ad-skip-button");b.style.opacity="0";b.style.height="0px";b.style.width="0px";b.style.padding="0px";b.style.border="none";S=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.onclick=function(){N.resolve(0);S()};
document.body.appendChild(b);setTimeout(function(){S();N.resolve(1)},50);
return P.return(N.promise)})};
kqE=function(){var N,b,S,P,H,K,C;return _.r(function(G){N=new _.GB;b=document.createElement("ytd-player");try{document.body.prepend(b)}catch(a){return G.return(4)}S=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.getElementsByTagName("div").length>0?P=b.getElementsByTagName("div")[0]:(P=document.createElement("div"),b.appendChild(P));H=document.createElement("div");P.appendChild(H);K=document.createElement("video");C=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});K.src=_.YI(_.eo(C));K.ontimeupdate=function(){S();N.resolve(0)};
H.appendChild(K);K.classList.add("html5-main-video");setTimeout(function(){H.classList.add("ad-interrupting")},200);
setTimeout(function(){S();N.resolve(1)},5E3);
return G.return(N.promise)})};
$hf=function(N){var b=rJo().objectRepresentation.playbackTracking;if(b){var S=[],P;S.push(b==null?void 0:(P=b.videostatsPlaybackUrl)==null?void 0:P.baseUrl);var H;S.push(b==null?void 0:(H=b.videostatsDelayplayUrl)==null?void 0:H.baseUrl);var K;S.push(b==null?void 0:(K=b.videostatsWatchtimeUrl)==null?void 0:K.baseUrl);var C;S.push(b==null?void 0:(C=b.ptrackingUrl)==null?void 0:C.baseUrl);var G;S.push(b==null?void 0:(G=b.qoeUrl)==null?void 0:G.baseUrl);var a;S.push(b==null?void 0:(a=b.atrUrl)==null?
void 0:a.baseUrl);b=_.O(S);for(S=b.next();!S.done;S=b.next())if((S=S.value)&&N.test(S))return S.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
hyb=function(N,b){var S,P;return _.r(function(H){switch(H.nextAddress){case 1:S=[],P=0;case 2:if(!(P<3)){H.jumpTo(4);break}return H.yield(fetch(N,{cache:"no-store",method:b}).then(function(K){S.push(K.status)}).catch(function(){S.push(-1)}),3);
case 3:P++;H.jumpTo(2);break;case 4:return H.return(S)}})};
qD9=function(N){return N.domainLookupStart===0&&N.domainLookupEnd===0&&N.connectStart===0&&N.connectEnd===0||N.duration===0};
wnO=function(N,b,S){S=S===void 0?"GET":S;var P,H,K,C,G,a,R,n,d,m;return _.r(function(k){if(k.nextAddress==1)return k.yield(Promise.all([hyb(N,S),hyb(b,S)]),2);P=k.yieldResult;H=_.O(P);K=H.next().value;C=H.next().value;G=K;a=C;if(Math.min.apply(Math,_.IX(a))!==Math.max.apply(Math,_.IX(a))||Math.min.apply(Math,_.IX(G))!==Math.max.apply(Math,_.IX(G)))return k.return(2);if(Math.min.apply(Math,_.IX(a))===Math.min.apply(Math,_.IX(G)))return k.return(1);n=(R=performance.getEntriesByName(N))==null?void 0:
R[0];m=(d=performance.getEntriesByName(b))==null?void 0:d[0];return n&&m?qD9(m)?k.return(1):qD9(n)?k.return(0):k.return(1):k.return(2)})};
lu_=function(){var N;return _.r(function(b){var S=[];var P;var H,K,C;(H=P=(H=rJo().objectRepresentation.streamingData)==null?void 0:(K=H.formats)==null?void 0:(C=K[0])==null?void 0:C.url)&&H&&!P.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(H=H.replace("initcwndbps","ctier=L&initcwndbps"),H=H.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),P={testUrl:H,baseUrl:P,method:"GET"}):P=void 0;P&&S.push(P);_.T("ab_net_tp_e")&&S.push({testUrl:_.Ps.location.origin+"/ad_companion",baseUrl:_.Ps.location.origin+
"/generate_204",method:"OPTIONS"});_.T("ab_fix_creator_view_cnt")&&(S.length=0,(P=$hf(/api\/stats\/atr/))&&S.push({testUrl:_.Ps.location.origin+P,baseUrl:_.Ps.location.origin+"/generate_204",method:"POST"}));_.T("ad_net_pb_pbp")&&(P=$hf(/api\/stats\/qoe/))&&S.push({testUrl:_.Ps.location.origin+P,baseUrl:_.Ps.location.origin+"/feed/download",method:"GET"});S=S.length!==0?S[Math.floor(Math.random()*S.length)]:void 0;return(N=S)?b.return(wnO(N.testUrl,N.baseUrl,N.method)):b.return(4)})};
_.ZW9=function(){if(_.Ps.irA===void 0||_.Ps.irA===null||typeof _.Ps.irA!=="function")return 2;try{return _.Ps.irA()===!0?0:1}catch(N){return 0}};
NZb=function(N){switch(N){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.$Z(N,"unknown result type")}};
_.bHb=function(N,b){var S=Number(_.Vg("CATSTAT",0));if(b.ypL===void 0)return S;b=b.ypL;N=NZb(N);return S&~(3<<b)|N<<b};
S$f=function(N){var b,S;if((N=(b=N.auxiliaryUi)==null?void 0:(S=b.messageRenderers)==null?void 0:S.bkaEnforcementMessageViewModel)&&N.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return N};
HHo=function(){for(var N=_.O(Object.values(_.PuU)),b=N.next();!b.done;b=N.next())b=b.value,b.zik&&b.ypL&&_.DH("CATSTAT",_.bHb(2,b))};
_.a3=function(N,b){N=_.rQ("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",N);(b===void 0?0:b)?_.s8I(N,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.cd().logFlowEvent(N,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
v3b=function(){if(!KMe){if(Polymer.Base){var N=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{N.apply(this,arguments)}catch(d){_.e_(d)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(d){_.e_(d)}};
var S=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{S.apply(this,arguments)}catch(d){_.e_(d)}};
var P=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{P.apply(this,arguments)}catch(d){_.e_(d)}};
var H=Polymer.Base._listen,K=new WeakMap;Polymer.Base._listen=function(d,m,k){var M=function(){try{k.apply(this,arguments)}catch(l){_.e_(l)}};
K.set(k,M);H.call(this,d,m,M)};
var C=Polymer.Base._unlisten;Polymer.Base._unlisten=function(d,m,k){C.call(this,d,m,K.get(k))}}if(Polymer.Async){var G=Polymer.Async,a=G._atEndOfMicrotask;
G._atEndOfMicrotask=function(){try{a.apply(G,arguments)}catch(d){_.e_(d)}}}if(Polymer.RenderStatus){var R=Polymer.RenderStatus,n=R.afterNextRender;
R.afterNextRender=function(d,m,k){n.call(R,d,function(){try{m.apply(this,arguments)}catch(M){_.e_(M)}},k)}}KMe=!0}};
_.Cue=function(N){var b=N?_.Bq(N):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.T("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b==="/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")===0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return _.T("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(OHe(N))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")===0||b.indexOf("/show/")===0)return"playlist";if(b==="/companion_canvas")return"companion-canvas";if(b==="/feed/history"||
b.indexOf("/feed/history/")===0)return"history";if(b==="/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")===0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===
0)return"yts-products";if(b.indexOf("/premium")===0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b==="/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/reporthistory")===0)return _.T("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(b.indexOf("/feed/downloads")===0||b.indexOf("/redeem")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===
0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";var S=N?_.Bq(N):"";S&&S.indexOf("/watch")===0&&_.T("web_watch_enable_learning_journey")?(N=_.SU(N),N=!!N.list&&N.list.indexOf("LJPP")===0):N=!1;if(N)return"learning_journey_watch";
if(_.T("enable_new_page_subtypes_for_ai_companion")&&b==="/feed/courses")return"your-courses"}};
_.R3=function(N){var b,S;(N=(S=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:S.url)&&(b=_.Cue(N));return b};
OHe=function(N){var b=N?_.Bq(N):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(N=_.SU(N),N.list&&N.list.indexOf("EL")===0)?!0:!1};
dQ=function(N){var b="unknown",S;var P=((S=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:S.webPageType)||"";P?(S=P.toLowerCase(),S.startsWith("web_page_type_")&&(S=S.slice(14))):S=P;S&&GgE[S.toUpperCase()]?b=GgE[S.toUpperCase()]:_.t(N,_.Wd)||_.t(N,rrs)?b="browse":_.t(N,_.nX)?b="search":_.t(N,_.Iv)&&(b="watch");b==="watch"&&_.R3(N||null)==="learning_journey_watch"&&(b="learning_journey_watch");b==="unknown"&&_.$h(Error("Uf`"+JSON.stringify({clickTrackingParams:N==null?void 0:N.clickTrackingParams,
commandMetadata:N==null?void 0:N.commandMetadata,allEndpointKeys:Object.keys(N||[])})));return b};
_.my=function(N){if(!_.crf||N)_.crf=_.Z2();return _.crf};
_.aUE=function(N){return!!_.t(N,_.Iv)||!!_.t(N,_.kn)&&_.T("kevlar_enable_shorts_prefetch")};
_.R0L=function(N,b){N=_.t(N,_.Iv)||_.t(N,_.kn);return"v"+N.videoId+(N.playlistId?"-pl"+N.playlistId:"")+(b?"-an1":"")+(N.params?"-pr"+N.params:"")};
_.WMs=function(N){var b=new TB(_.Vg("ONE_PICK_URL",""));b.urlParamMap_.set("hostId",N);(N=_.Vg("GAPI_LOCALE"))&&b.urlParamMap_.set("hl",N);(N=_.Vg("SESSION_INDEX"))&&b.urlParamMap_.set("authuser",N);(N=_.Vg("DELEGATED_SESSION_ID"))&&b.urlParamMap_.set("groupId",N);return b};
dqa=function(){var N=_.aN(),b=N.resolve(_.ts);N=N.resolve(_.Mn);return new n3O(b,N)};
kgo=function(N){if(window.IntersectionObserver)return new mqO(N,400);throw new TypeError("Wf");};
tJ9=function(){var N=Hammer.TouchAction,b=N.prototype.preventDefaults;N.prototype.preventDefaults=function(S){var P=this.actions.indexOf("pan-down")>-1;if(!P)return b.call(this,S);if(!TZu){var H=S.srcEvent;S=S.direction;var K;if((K=this.manager)==null?0:K.session.prevented)H.preventDefault();else if(P&&S&Hammer.DIRECTION_DOWN)return this.preventSrc(H)}}};
MJL=function(N){if(!N||N.size===0)return Hammer.DIRECTION_ALL;if(N.size===2){if(N.has("up")&&N.has("down"))return Hammer.DIRECTION_VERTICAL;if(N.has("right")&&N.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(N.size===1){if(N.has("up"))return Hammer.DIRECTION_UP;if(N.has("down"))return Hammer.DIRECTION_DOWN;if(N.has("right"))return Hammer.DIRECTION_RIGHT;if(N.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Bd=function(N,b,S){var P=S&&S>0?S:0;S=P?Date.now()+P*1E3:0;if((P=P?_.F6.getLocalStorage():_.F6.getSessionStorage())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{P.set(N,b,S)}catch(H){P.remove(N)}}};
_.l1=function(N){var b=_.F6.getSessionStorage(),S=_.F6.getLocalStorage();if(!b&&!S||!window.JSON)return null;try{var P=b.get(N)}catch(H){}if(typeof P!=="string")try{P=S.get(N)}catch(H){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(H){}return P};
_.LX=function(N){try{var b=_.F6.getSessionStorage(),S=_.F6.getLocalStorage();b&&b.remove(N);S&&S.remove(N)}catch(P){}};
BZf=function(N){var b=FMe(),S;return _.r(function(P){switch(P.nextAddress){case 1:return _.u4(P,2),P.yield(N.match(b,{cacheName:"yt-appshell-assets"}),4);case 4:S=P.yieldResult;_.su(P,3);break;case 2:_.UE(P);case 3:return P.return(S)}})};
FMe=function(){var N=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?lUI.registration.scope:LMe;N.endsWith("/")&&(N=N.slice(0,-1));return N+"/app_shell_home"};
fUo=function(N){N.map(function(b){return b.source}).join("|")};
_.ulU=function(N){return _.r(function(b){return b.return(BZf(N))})};
Q8Y=function(){var N=window.caches,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(_.ulU(N),2);b=S.yieldResult;return S.return(!!b)})};
j8O=function(){_.r(function(N){if(N.nextAddress==1){if(xqb)return N.jumpTo(0);xqb=!0;if(_.T("enable_system_health_primes_monitoring"))return _.MX(o3o,3E4),iHb(),N.return();if(!(Math.random()<_.d7("web_system_health_fraction")))return N.jumpTo(0);Jre={heightPixels:screen.height,widthPixels:screen.width};fX&&!isNaN(fX.jsHeapSizeLimit)&&(Jre.memoryTotalKbytes=String(Math.round(fX.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Jre.devicePixelRatio=window.devicePixelRatio);return N.yield(Uqb(),4)}_.MX(o3o,
3E4);return N.yield(ZHo(),0)})};
Uqb=function(){return _.r(function(N){if(N.nextAddress==1)return u1.intersectionObserverPresent="IntersectionObserver"in window,u1.serviceWorkerPresent="serviceWorker"in navigator,u1.webSharePresent="share"in navigator,u1.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,u1.cacheStoragePresent="caches"in window,u1.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,u1.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
u1.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Q7&&Q7.webkitTemporaryStorage&&"queryUsageAndQuota"in Q7.webkitTemporaryStorage,u1.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",N.yield(lb9(),2);u1.indexedDbPresent=N.yieldResult;u1.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;u1.broadcastChannelPresent="BroadcastChannel"in window;u1.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(u1.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,u1.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Zd(N)})};
o3o=function(){var N=9E4+Math.random()*2E3;_.nv()>N||(_.T("enable_system_health_primes_monitoring")?iHb():ZHo())};
ZHo=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(z0L(),2);N=b.yieldResult;_.Dn("systemHealthCaptured",N);_.Zd(b)})};
iHb=function(){var N={metric:{}},b=Aro();b.networkEvents.length&&(N.metric.networkEvents=X2I(b));_.Dn("systemHealthCaptured",N)};
z0L=function(){var N,b,S,P,H,K,C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:N={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};b=window.screen;_.T("enable_is_extended_monitoring")&&b&&"isExtended"in b&&(N.isExtended=!!b.isExtended);S={metric:{staticContext:Jre,dynamicContext:N,webMetric:E3a,webApiSupport:u1}};
if(P=_.Qh())S.csn=P;fX&&(S.metric.webMetric.currentHeapKbytes=Math.round(fX.usedJSHeapSize/1E3));window.matchMedia&&(S.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,S.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,S.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Q7&&typeof Q7.getBattery==="function")){n.jumpTo(2);break}return n.yield(Q7.getBattery(),3);case 3:if(H=
n.yieldResult)S.metric.dynamicContext.chargingStatus=H.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(S.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(u1.storageEstimatePresent)return n.yield(navigator.storage.estimate(),8);if(!u1.webkitTemporaryStoragePresent){n.jumpTo(5);break}return n.yield(p2u(),7);case 7:K=n.yieldResult;n.jumpTo(5);break;case 8:K=n.yieldResult;case 5:return S.metric.dynamicContext.deviceStorageQuotaMbytes=((C=K)==null?0:C.quota)?String(Math.round(K.quota/
1048576/10)*10):"-1",S.metric.dynamicContext.deviceStorageUsageMbytes=((G=K)==null?0:G.usage)?String(Math.round(K.usage/1048576/10)*10):"-1",a=S.metric.dynamicContext,n.yield(Q8Y(),9);case 9:return a.hasAppShell=n.yieldResult,R=Aro(),R.networkEvents.length&&(S.metric.networkEvents=X2I(R)),n.return(S)}})};
p2u=function(){return new Promise(function(N){var b;u1.webkitTemporaryStoragePresent&&(b=Q7.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?Q7.webkitTemporaryStorage.queryUsageAndQuota(function(S,P){N({usage:S,quota:P})}):N(void 0)})};
_.xn=function(N){N&=16777215;N=[(N&16711680)>>16,(N&65280)>>8,N&255];return Y$U(N[0],N[1],N[2])};
_.o3=function(N){N=[(N&16711680)>>>16,(N&65280)>>>8,N&255,(N&4278190080)>>>24];if(!_.yrf(N,function(b){return b===(b&255)}))throw Error("Xf`"+N.join(","));
return"rgba("+N[0]+","+N[1]+","+N[2]+","+(N[3]/255).toFixed(3)+")"};
_.IUe=function(N){return[(N&16711680)>>>16,(N&65280)>>>8,N&255]};
_.DqU=function(N){N=N.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)});
return N[0]*.2126+N[1]*.7152+N[2]*.0722};
i1=function(N,b){N=_.IUe(N);return"rgba("+N[0]+", "+N[1]+", "+N[2]+", "+b+")"};
Js=function(N){return(N&4278190080)>>>24===0?i1(N,"1"):_.o3(N)};
_.VJL=function(){try{return!!self.localStorage}catch(N){return!1}};
h0s=function(){if(g3p())_.$h(Error("Yf"));else{var N=document.createElement("iframe");N.style.display="none";var b=b===void 0?window.location.href:b;var S=_.Vb(_.Vg("PERSIST_IDENTITY_IFRAME_URL"));b=S?S:(new URL(b)).host.indexOf("studio")===0?_.Mz(e0U,"persist_identity"):_.Mz($qp,"persist_identity");_.HM(N,1,b);N.id="persist_identity";var P;(P=document.body)==null||P.appendChild(N)}};
g3p=function(){var N=q$O;N||(N=document.querySelector("#persist_identity"));return N};
w2O=function(){var N=!1;try{N=!!window.sessionStorage.getItem("session_logininfo")}catch(b){N=!0}return(_.Vg("INNERTUBE_CLIENT_NAME")==="WEB"||_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&N};
Nlf=function(N,b){if(!w2O())return!1;b||(b=_.Vg("LOGIN_INFO"));return b?(N.session_logininfo=b,!0):!1};
SUU=function(N,b){N=N===void 0?!1:N;if((b===void 0||!b)&&bCL!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.g8("LOG_STICKINESS",!1)){b=_.Qh();var S=_.uZ(),P={identityStickinessData:{initialState:bCL}};b&&S&&_.Dp(b,S,P)}if(b=g3p())if(S=b.src?(new URL(b.src)).origin:"*",N){var H;(H=b.contentWindow)==null||H.postMessage({action:"clear"},S)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(N=window.sessionStorage.getItem("session_logininfo"))){var K;(K=b.contentWindow)==null||K.postMessage({loginInfo:N},S)}};
_.UK=function(N){N=N===void 0?!0:N;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.DH("LOGIN_INFO",""),N&&window.sessionStorage.setItem("from_switch_account","1"),SUU(!0,N)}catch(b){}};
PUb=function(N){N&&(N.startsWith("https://accounts.google.com/AddSession")?_.UK():N.startsWith("https://accounts.google.com/ServiceLogin")?_.UK():N.startsWith("https://myaccount.google.com")&&_.sB(N).getPath().endsWith("/youtubeoptions")&&_.UK())};
ZK=function(N,b){PUb(N);if(_.g8("LOGGED_IN",!0)&&w2O()){var S=v69(N);S==null&&(S={});Nlf(S,b)&&_.e0(N,S)}};
HCO=function(){function N(b){for(b=b.target;b&&b.nodeName!=="A";)if(b=b.parentNode,!(b&&b instanceof HTMLElement))return;if(b&&!b.hasAttribute("download")&&b.getAttribute("rel")!=="external"&&b.href)return b.href}
document.addEventListener("mousedown",function(b){b.button!==0&&(b=N(b))&&ZK(b)});
document.addEventListener("click",function(b){(b=N(b))&&ZK(b)})};
vNa=function(){var N=new sLo;try{if(_.g8("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(G){N.increment(5,!1);return}if(_.Vg("LOGIN_INFO")){var b=Km_?Km_:window.location;_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&h0s();var S=v69(b.href);S==null&&(S={});var P=S.session_logininfo,H=Number(window.sessionStorage.getItem("stickiness_reload")),K=P===_.Vg("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
H>=2||K)H>=2?N.increment(2,K):K?N.increment(7,K):window.sessionStorage.getItem("session_logininfo")||(N.increment(3,K),bCL="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Vg("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Vg("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))N.increment(4,K),window.sessionStorage.removeItem("stickiness_reload");
else if(H<2){window.sessionStorage.setItem("stickiness_reload",String(H+1));var C=b.href;C=_.$y(C,"sttick");ZK(C,window.sessionStorage.getItem("session_logininfo"));C=_.Pq(C,{sttick:H});N.increment(H,K);_.B$Y(b,C)}}else N.increment(6,!1)}else _.UK(!1)}catch(G){}};
_.jZ=function(N,b,S,P,H){b=b===void 0?{}:b;S=S===void 0?"":S;P=P===void 0?window:P;N=_.Hq(N,b);ZK(N);S=_.VK(N+S,H);_.B$Y(P.location,S)};
OCE=function(N){if(N.urlEndpoint){if(N=_.SU(N.urlEndpoint.url),N.adurl)return r7(N.adurl)}else if(N.watchEndpoint)return"//www.youtube.com/watch?v="+N.watchEndpoint.videoId;return null};
CUO=function(N){if(!N||!N.reportingPings)return null;var b={};N.reportingPings.forEach(function(S){S.pingType in b?b[S.pingType].push(S.url):b[S.pingType]=[S.url]});
return{adpings:wiO(b)}};
_.As=function(N){N=N===void 0?!1:N;var b=_.WN(),S="USER_INTERFACE_THEME_LIGHT";b.getFlag(165)?S="USER_INTERFACE_THEME_DARK":b.getFlag(174)?S="USER_INTERFACE_THEME_LIGHT":_.zB()&&(S="USER_INTERFACE_THEME_DARK");return N?S:Gap()||S};
_.rap=function(){return!_.T("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.zB=function(){return _.rap()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.X6=function(){var N=_.WN();return _.rap()&&!N.getFlag(165)&&!N.getFlag(174)};
Gap=function(){var N=N===void 0?window.location.href:N;if(_.T("kevlar_disable_theme_param"))return null;var b=_.Bq(N);if(_.caa(b))return"USER_INTERFACE_THEME_DARK";try{var S=_.SU(N).theme;return aSE.get(S)||null}catch(P){}return null};
_.caa=function(N){return _.T("enable_dark_theme_only_on_shorts")?!(N==null||!N.startsWith("/shorts/")):!1};
_.nNO=function(N,b,S,P,H){b=b===void 0?!1:b;S=S===void 0?!1:S;var K=_.Vg("INNERTUBE_CONTEXT");if(!K)return _.ge(Error("bg")),{};K=(0,_.Vm.unsafeClone)(K);_.T("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var C=K.client;C.clientName==="MWEB"&&C.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(C.clientFormFactor=_.Vg("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");C.screenWidthPoints=window.innerWidth;C.screenHeightPoints=window.innerHeight;C.screenPixelDensity=
Math.round(window.devicePixelRatio||1);C.screenDensityFloat=window.devicePixelRatio||1;C.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());C.userInterfaceTheme=_.As();if(!b){var G=_.eze();G&&(C.connectionType=G);_.T("web_log_effective_connection_type")&&(G=hzu())&&(K.client.effectiveConnectionType=G)}var a;if(_.T("web_log_memory_total_kbytes")&&((a=_.Ps.navigator)==null?0:a.deviceMemory)){var R;a=(R=_.Ps.navigator)==null?void 0:R.deviceMemory;K.client.memoryTotalKbytes=""+a*1E6}b&&P&&!_.T("web_it_context_set_original_url_ks")&&
(C.originalUrl=R$U(_.Ps.location.href,P).toString());_.T("web_gcf_hashes_innertube")&&(G=KyI())&&(R=G.coldConfigData,a=G.coldHashData,G=G.hotHashData,K.client.configInfo=K.client.configInfo||{},R&&(K.client.configInfo.coldConfigData=R),a&&(K.client.configInfo.coldHashData=a),G&&(K.client.configInfo.hotHashData=G));R=_.SU(_.Ps.location.href);!_.T("web_populate_internal_geo_killswitch")&&R.internalcountrycode&&(C.internalGeo=R.internalcountrycode);!_.T("web_populate_client_screen_killswitch")&&H&&(C.clientScreen=
H);C.clientName==="MWEB"||C.clientName==="WEB"?(C.mainAppWebInfo||(C.mainAppWebInfo={}),C.mainAppWebInfo.graftUrl=P||_.Ps.location.href,_.T("kevlar_woffle")&&_.EK.instance&&(P=_.EK.instance,C.mainAppWebInfo.pwaInstallabilityStatus=!P.appInstalledEventFired&&P.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),C.mainAppWebInfo.webDisplayMode=qIe(),C.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):C.clientName==="TVHTML5"&&
(!_.T("web_lr_app_quality_killswitch")&&(P=_.Vg("LIVING_ROOM_APP_QUALITY"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{appQuality:P})),P=_.Vg("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(C.tvAppInfo=Object.assign(C.tvAppInfo||{},{certificationScope:P}));!_.T("web_populate_time_zone_itc_killswitch")&&(P=VtL())&&(C.timeZone=P);(P=apY())?C.experimentsToken=P:delete C.experimentsToken;C=Rze();P=_.Wm9();P=(0,_.Vm.getValues)(P.tokenJars);K.request=Object.assign({},K.request,{internalExperimentFlags:C,consistencyTokenJars:P});
!_.T("web_prequest_context_killswitch")&&(C=_.Vg("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=C);P=_.WN();C=P.getFlag(58);P=P.get("gsml","");K.user=Object.assign({},K.user);C&&(K.user.enableSafetyMode=C);P&&(K.user.lockedSafetyMode=!0);_.T("warm_op_csn_cleanup")?S&&(b=_.Qh())&&(K.clientScreenNonce=b):!b&&(b=_.Qh())&&(K.clientScreenNonce=b);N&&(K.clickTracking={clickTrackingParams:N});if(N=_.hl("yt.mdx.remote.remoteClient_"))K.remoteClient=N;_.pX.getInstance().setLocationOnInnerTubeContext(K);
try{var n=BXa(),d=n.bid;delete n.bid;K.adSignalsInfo={params:[],bid:d};for(var m=_.O(Object.entries(n)),k=m.next();!k.done;k=m.next()){var M=_.O(k.value),l=M.next().value,u=M.next().value;n=l;d=u;N=void 0;(N=K.adSignalsInfo.params)==null||N.push({key:n,value:""+d})}var J,Z;if(((J=K.client)==null?void 0:J.clientName)==="TVHTML5"||((Z=K.client)==null?void 0:Z.clientName)==="TVHTML5_UNPLUGGED"){var D=_.Vg("INNERTUBE_CONTEXT");D.adSignalsInfo&&(K.adSignalsInfo.advertisingId=D.adSignalsInfo.advertisingId,
K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=D.adSignalsInfo.limitAdTracking)}}catch(Y){_.ge(Y)}return K};
_.Yn=function(){return{isShellLoad:_.g8("IS_SHELL_LOAD",!1)}};
m1p=function(){navigator.serviceWorker.getRegistrations().then(function(N){N.forEach(d1O)})};
d1O=function(N){N&&_.kab(Tlb,N.scope)};
_.kab=function(N,b){b={scope:b||_.m6("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.jo(N),b)};
y7=function(N,b,S,P){if(b&&b.serializedYpcCujLoggingParams){if(S){var H={};H.transactionErrorType=S;P&&(H.errorMessage=P);b.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:H}}}S={};S.ypcCujContext=b;N=_.rQ("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",N,S);_.cd().logFlowEvent(N,"FLOW_TYPE_YPC_ACQUISITION")}};
_.tqa=function(N,b,S,P){var H={};H.serializedTransactionFlowLoggingParams=b;S&&(H.errorType=S);P&&(H.errorMessage=P);_.Dn(N,H);_.VE()};
_.MqE=function(N){N&&_.tqa("transactionFlowStarted",N)};
_.Fm9=function(N){N&&_.tqa("transactionFlowCancelled",N)};
_.I3=function(N,b,S){b&&_.tqa("transactionFlowFailed",b,N,S)};
Bl_=function(N){var b=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");b&&(b.inert=N)};
_.DK=function(){this.megabloxUrl_=null};
_.V7=function(N){try{var b=lSb==null?void 0:lSb.composedPath(N)}catch(S){b=N.composedPath?N.composedPath():[]}return b&&b.length>0?b:N.composedPath?N.composedPath():[]};
_.gQ=function(N){return _.V7(N)[0]};
eZ=function(N){return N instanceof ShadowRoot?ShadowRoot:N instanceof DocumentFragment?DocumentFragment:N instanceof Document?Document:HTMLElement};
LmE=function(N){if(N instanceof Element)return Element.prototype;if(N instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+N);};
fS_=function(N,b){return _.T("sunnydom_native_scoped_query_selectors")?LmE(N).querySelector.call(N,b):eZ(N).prototype.querySelector.call(N,b)};
u3Y=function(N,b){return _.T("sunnydom_native_scoped_query_selectors")?LmE(N).querySelectorAll.call(N,b):eZ(N).prototype.querySelectorAll.call(N,b)};
QLb=function(N){var b,S,P;return(P=(S=(b=N.parentElement)!=null?b:N.__shady_native_parentElement)!=null?S:N.__shady_parentElement)!=null?P:null};
x1p=function(N){var b,S,P;return(P=(S=(b=N.parentNode)!=null?b:N.__shady_native_parentNode)!=null?S:N.__shady_parentNode)!=null?P:null};
oNL=function(N){var b,S,P;return(P=(S=(b=N.nextSibling)!=null?b:N.__shady_native_nextSibling)!=null?S:N.__shady_nextSibling)!=null?P:null};
iCI=function(N){var b,S,P;return(P=(S=(b=N.previousSibling)!=null?b:N.__shady_native_previousSibling)!=null?S:N.__shady_previousSibling)!=null?P:null};
Jab=function(N){var b,S,P;return(P=(S=(b=N.nextElementSibling)!=null?b:N.__shady_native_nextElementSibling)!=null?S:N.__shady_nextElementSibling)!=null?P:null};
U1L=function(N){var b,S,P;return(P=(S=(b=N.previousElementSibling)!=null?b:N.__shady_native_previousElementSibling)!=null?S:N.__shady_previousElementSibling)!=null?P:null};
ZCe=function(N){var b,S,P;return new Set([].concat(_.IX((b=N.children)!=null?b:[]),_.IX((S=N.__shady_native_children)!=null?S:[]),_.IX((P=N.__shady_children)!=null?P:[])))};
jLu=function(N){var b,S,P;return new Set([].concat(_.IX((b=N.childNodes)!=null?b:[]),_.IX((S=N.__shady_native_childNodes)!=null?S:[]),_.IX((P=N.__shady_childNodes)!=null?P:[])))};
_.$n=function(N){if(!(N instanceof Element))return null;N=N.classList?Array.from(N.classList):void 0;if(!N)return null;var b=N.indexOf("style-scope");return b>-1&&b+1<N.length?N[b+1]:null};
hs=function(N){if(!(N instanceof HTMLElement))return null;var b=N&&(N.$$||N.polymerController)?N.tagName.toLowerCase():null;return b?b:_.$n(N)};
z$9=function(N,b){return _.T("sunnydom_native_scoped_query_selectors")?N+".style-scope."+b:N.replace(/[^a-z]*[^\s]+/g,function(S){return S+".style-scope."+b})};
AaO=function(N,b){return b?N.split(",").map(function(S){return z$9(S.trim(),b)}).join(", "):N};
_.qn=function(N){var b,S,P,H;return(H=(P=(S=(b=N.root)!=null?b:N.shadowRoot)!=null?S:N.__shady_native_shadowRoot)!=null?P:N.__shady_shadowRoot)!=null?H:N};
X8O=function(N){var b,S,P;return(P=(S=(b=N.__shady_parentNode)!=null?b:N.__shady_native_parentNode)!=null?S:N.parentNode)!=null?P:null};
ENY=function(N){var b,S;return(S=(b=x1p(N))!=null?b:N.host)!=null?S:null};
p8e=function(N){for(;N&&!(N instanceof HTMLElement);)N=ENY(N);return N};
YUu=function(N){var b=p8e(N);return N===b?_.$n(N):b?hs(b):null};
yau=function(N){return(N=p8e(N))?hs(N):null};
ISO=function(N){if(N instanceof Comment)return!1;if(N instanceof Text){var b,S;if(((S=(b=N.textContent)==null?void 0:b.trim())!=null?S:"")==="")return!1}return!0};
wQ=function(N,b,S){var P=b(N);for(S=S===void 0?yau(N):S;P&&(YUu(P)!==S||!ISO(P));)N=P,P=b(N);return P};
D1a=function(N,b,S){if(!b)return null;N=yau(N);return YUu(b)===N&&ISO(b)?b:wQ(b,S,N)};
VqE=function(N){return wQ(N,X8O,_.$n(N))};
gNI=function(N){return wQ(N,Jab)};
e$Y=function(N){return wQ(N,oNL)};
$1U=function(N){return wQ(N,U1L)};
h$9=function(N){return wQ(N,iCI)};
qUY=function(N){return D1a(N,N.firstChild||null,oNL)};
w8U=function(N){var b,S,P;var H=(P=(S=(b=N.firstElementChild)!=null?b:N.__shady_native_firstElementChild)!=null?S:N.__shady_firstElementChild)!=null?P:null;return D1a(N,H,Jab)};
NSE=function(N){var b,S,P;var H=(P=(S=(b=N.lastChild)!=null?b:N.__shady_native_lastChild)!=null?S:N.__shady_lastChild)!=null?P:null;return D1a(N,H,iCI)};
bZe=function(N){var b,S,P;var H=(P=(S=(b=N.lastElementChild)!=null?b:N.__shady_native_lastElementChild)!=null?S:N.__shady_lastElementChild)!=null?P:null;return D1a(N,H,U1L)};
SJs=function(N){var b=yau(N);return Array.from(jLu(N)).filter(function(S){return YUu(S)===b})};
Prb=function(N){var b=hs(N);return Array.from(ZCe(N)).filter(function(S){return _.$n(S)===b})};
HZf=function(N){if(!N)return null;var b=_.$n(N);if(!b){var S;return(S=Node.prototype.getRootNode)==null?void 0:S.call(N)}b=b.toUpperCase();for(N=QLb(N);N&&N.tagName!==b;)N=QLb(N);return N?_.qn(N):null};
_.NI=function(N){var b=_.T(N);hZ["counterfactuals."+N]=String(b);return b};
_.bI=function(N,b,S){if(N instanceof HTMLElement&&_.$n(N)===S){var P=Array.from(N.classList).indexOf("style-scope");if(P===-1)N.classList.add("style-scope"),N.classList.add(b);else if(!(P+1>=N.classList.length)){P=N.classList[P+1];var H,K;N==null||(H=N.classList)==null||(K=H.replace)==null||K.call(H,P,b)}}if(N instanceof HTMLElement||N instanceof DocumentFragment)for(H=_.O(ZCe(N)),K=H.next();!K.done;K=H.next())_.bI(K.value,b,S);return N};
S7=function(N,b){if(N instanceof HTMLElement&&_.$n(N)===b){var S=Array.from(N.classList).indexOf("style-scope");S===-1||S+1>=N.classList.length||N.classList.remove("style-scope",N.classList[S+1])}if(N instanceof HTMLElement||N instanceof DocumentFragment){S=_.O(N.children);for(var P=S.next();!P.done;P=S.next())S7(P.value,b)}return N};
_.sab=function(N,b){return eZ(N).prototype.appendChild.call(N,b)};
KI_=function(N,b){if(N===b)return!0;N=jLu(N);return Array.from(N).some(function(S){return KI_(S,b)})};
_.H4=function(N,b){if(N instanceof P4)return N;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(N,"ownerDocument")&&Object.defineProperty(N,"ownerDocument",{get:function(){return window.document}});
return new P4(N)};
OZu=function(){var N=P4.prototype,b=[].concat(_.IX(v8s?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=_.O(b);for(var S=b.next(),P={};!S.done;P={method$jscomp$53:void 0},S=b.next())P.method$jscomp$53=S.value,N[P.method$jscomp$53]=function(H){return function(){return this.host[H.method$jscomp$53].apply(this.host,arguments)}}(P)};
GHa=function(){var N=P4.prototype,b=[].concat(_.IX(v8s?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.IX(Cro?[]:["querySelector","querySelectorAll"]));b=_.O(b);for(var S=b.next(),P={};!S.done;P={method$jscomp$54:void 0},S=b.next())P.method$jscomp$54=S.value,N[P.method$jscomp$54]=function(H){return function(){return this.root[H.method$jscomp$54].apply(this.root,arguments)}}(P)};
a9I=function(){var N=P4.prototype,b=[].concat(_.IX(r$Y?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.IX(c$a?[]:["parentNode"]));b=_.O(b);for(var S=b.next(),P={};!S.done;P={prop$jscomp$67:void 0},S=b.next())P.prop$jscomp$67=S.value,Object.defineProperty(N,P.prop$jscomp$67,{get:function(H){return function(){return this.host[H.prop$jscomp$67]}}(P),
configurable:!0})};
n8O=function(){var N=P4.prototype,b=["activeElement"].concat(_.IX(r$Y?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.IX(R7p?[]:["children"]),_.IX(WIE?[]:["lastChild"]));b=_.O(b);for(var S=b.next(),P={};!S.done;P={prop$jscomp$68:void 0},S=b.next())P.prop$jscomp$68=S.value,Object.defineProperty(N,P.prop$jscomp$68,{get:function(H){return function(){return this.root[H.prop$jscomp$68]}}(P),
configurable:!0})};
dip=function(){for(var N=P4.prototype,b=_.O(["innerHTML","textContent"]),S=b.next(),P={};!S.done;P={prop$jscomp$69:void 0},S=b.next())P.prop$jscomp$69=S.value,Object.defineProperty(N,P.prop$jscomp$69,{get:function(H){return function(){return this.root[H.prop$jscomp$69]}}(P),
set:function(H){return function(K){this.root[H.prop$jscomp$69]=K}}(P),
configurable:!0})};
mi_=function(N){var b=P4.prototype;N=_.O(Object.entries(N));for(var S=N.next(),P={};!S.done;P={fn$jscomp$402:void 0},S=N.next()){var H=_.O(S.value);S=H.next().value;H=H.next().value;P.fn$jscomp$402=H;b[S]=function(K){return function(){return K.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.IX(arguments)))}}(P)}};
TSe=function(){for(var N=P4.prototype,b=_.O(Object.entries(kHI)),S=b.next(),P={};!S.done;P={fn$jscomp$403:void 0},S=b.next()){var H=_.O(S.value);S=H.next().value;H=H.next().value;P.fn$jscomp$403=H;Object.defineProperty(N,S,{get:function(K){return function(){return K.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.IX(arguments)))}}(P),
configurable:!0})}};
_.sj=function(N){return N instanceof tIa||N instanceof Document?N:new tIa(N)};
MIY=function(){for(var N=tIa.prototype,b=_.O("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),S=b.next(),P={};!S.done;P={method$jscomp$55:void 0},S=b.next())P.method$jscomp$55=S.value,N[P.method$jscomp$55]=function(H){return function(){return HTMLElement.prototype[H.method$jscomp$55].call.apply(HTMLElement.prototype[H.method$jscomp$55],[this.node].concat(_.IX(arguments)))}}(P)};
FI_=function(){for(var N=tIa.prototype,b=_.O("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),S=b.next(),P={};!S.done;P={prop$jscomp$70:void 0},S=b.next())P.prop$jscomp$70=S.value,Object.defineProperty(N,P.prop$jscomp$70,{get:function(H){return function(){var K;return(K=this.node["__shady_native_"+H.prop$jscomp$70])!=null?K:this.node[H.prop$jscomp$70]}}(P),
configurable:!0})};
_.K3=function(N,b,S){S===void 0&&(S=!N.classList.contains(b));S?N.classList.add(b):N.classList.remove(b)};
_.C3=function(N,b,S){S===void 0&&(S=!N.hasAttribute(b));if(b==="class")throw Error("gg");S?_.sj(N).setAttribute(b,""):_.sj(N).removeAttribute(b)};
BS_=function(N){return(N.localName!=="slot"?[]:(0,_.Gd)(N).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
_.l9L=function(N){return(N=_.H4(N).querySelector("slot"))&&N.localName==="slot"?BS_(N):[]};
_.rq=function(N,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(N,b)};
c4=function(N,b){var S=b.bind(N);return function(P){S(P,P.detail)}};
_.aA=function(N,b){var S=LIU.get(N);S||(S=new WeakMap,LIU.set(N,S));if(S.has(b))return S.get(b);if(_.T("web_fi_listen_disable_bound_fn_helper")){var P=b.bind(N);N=function(H){P(H,H==null?void 0:H.detail)}}else N=c4(N,b);
S.set(b,N);return N};
QaY=function(N,b){f9b(N);N.created[ujY].push(b)};
f9b=function(N){if(!N.created||!N.created[ujY]){var b=N.created,S=b?[b]:[];N.created=function(){for(var P=_.O(S),H=P.next();!H.done;H=P.next())H.value.apply(this)};
N.created[ujY]=S}};
xiE=function(N){return function(){var b=_.$I.apply(0,arguments);return function(S,P,H){N.apply(null,_.IX(b))(S,P,H)}}};
o8Y=function(){return function(){var N=_.$I.apply(0,arguments);return function(b,S,P){TPp.apply(null,_.IX(N))(b,S,P)}}};
_.L=function(N){return o8Y()(N)};
_.f=function(){return xiE(BP9).apply(null,_.IX(_.$I.apply(0,arguments)))};
_.RA=function(N){return _.T("pbcm_fi_listen_decorators")?iZY(N):xiE(MOL)(N)};
iZY=function(N){return function(b,S){QaY(b,function(){var P=this[S],H=_.T("web_fi_listen_disable_bound_fn_helper")?function(K){P(K,K.detail)}.bind(this):c4(this,P);
J$p.has(N)?el(this.hostElement,N,H):this.hostElement.addEventListener(N,H)})}};
_.W4=function(){return xiE(FGY).apply(null,_.IX(_.$I.apply(0,arguments)))};
_.U=function(N){N=N===void 0?{}:N;return xiE(tOs)(N)};
_.n3=function(N){if(N.hostElement&&N!==N.hostElement){var b=_.Tk(N.hostElement);b=N.renderIdom?b:b.shadowRoot}b||(N=N.root,b=N instanceof Node?_.Tk(N):null);return b};
_.dq=function(N){return Uie?ZZI(N):function(b,S){Object.defineProperty(b,S,{get:function(){var P;return(P=_.n3(this))==null?void 0:P.querySelector(N)},
enumerable:!0,configurable:!0})}};
ZZI=function(N){return function(b,S){Object.defineProperty(b,S,{get:function(){var P,H=(P=_.H4(this.hostElement))==null?void 0:P.querySelector(N);if(H)return H;var K;return(K=_.n3(this))==null?void 0:K.querySelector(N)},
enumerable:!0,configurable:!0})}};
_.md=function(N){return Uie?ja_(N):function(b,S){Object.defineProperty(b,S,{get:function(){var P;return(P=_.n3(this))==null?void 0:P.querySelectorAll(N)},
enumerable:!0,configurable:!0})}};
ja_=function(N){return function(b,S){Object.defineProperty(b,S,{get:function(){var P,H=(P=_.H4(this.hostElement))==null?void 0:P.querySelectorAll(N);if(H==null?0:H.length)return H;var K;return(K=_.n3(this))==null?void 0:K.querySelectorAll(N)},
enumerable:!0,configurable:!0})}};
z7p=function(N){return function(b){if(![_.mN,_.z].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("hg");c6s(Object.assign({},typeof N!=="string"?N:{is:N,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}};
_.Td=function(){var N=N===void 0?{}:N;return function(b){if(![kX,_.kq].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("ig");aAe(Object.assign({},N,{disableInheritanceCheck:!0}))(b)}};
Xf9=function(N,b){A$L[N]!=null||(A$L[N]=new Set);A$L[N].add(b)};
_.t_=function(){var N=_.W4.apply(null,_.IX(_.$I.apply(0,arguments)));return function(b,S){Xf9(b.is,S);N(b,S)}};
B4=function(N,b,S){if(MI(N)&&!E8o.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(K,C){return".#"+C});
FE[N]!=null||(FE[N]={});var P,H;(P=FE[N])[H=b]!=null||(P[H]=new Set);FE[N][b].has(S)||(FE[N][b].add(S),_.Dn("polymerPropertyAccessEvent",{componentName:N,propertyName:b,accessType:S}))}};
pfU=function(){return _.T("polymer_property_access_logging_debug")||_.T("polymer_enable_property_access_logging")};
MI=function(N){if(_.T("polymer_property_access_logging_debug"))return!0;if(!_.T("polymer_enable_property_access_logging"))return!1;YJo||(YJo=Date.now());return(Aw(N)+YJo)%100<_.d7("polymer_property_access_logging_percent")};
y$u=function(N,b){return MI(b)&&N.hostElement.loggingStatus?new Proxy(N,{get:function(S,P,H){if(S.hostElement.loggingStatus.bypassProxyController)return S[P];S.hostElement.loggingStatus.isExternalGet=!0;var K=S[P];S.hostElement.loggingStatus.isExternalGet=!1;if(K instanceof Function)return function(){var C=_.$I.apply(0,arguments);try{return S.hostElement.loggingStatus.currentExternalCall=P,B4(b,P,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),K.apply(this===H?S:this,C)}finally{S.hostElement.loggingStatus.currentExternalCall=
void 0}};
B4(b,P,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return K},
set:function(S,P,H){if(S.hostElement.loggingStatus.bypassProxyController)return S[P]=H,!0;S.hostElement.loggingStatus.isRendererStamper?B4(b,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):S.hostElement.loggingStatus.isDeclarativeExternal||B4(b,P,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{S.hostElement.loggingStatus.currentExternalSet=P,S[P]=H}finally{S.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):N};
I9O=function(N,b){N&&N.loggingStatus&&!N.loggingStatus.isDeclarativeExternal&&!N.loggingStatus.isExternalGet&&N.loggingStatus.currentExternalSet!==b&&B4(N.tagName.toLowerCase(),b,"PROPERTY_ACCESS_GET_INTERNAL")};
lI=function(N,b,S){N&&(S||N.loggingStatus&&!N.loggingStatus.isInitializing&&!N.loggingStatus.isDefiningPropertyAccessor&&N.loggingStatus.currentExternalSet!==b)&&B4(N.tagName.toLowerCase(),b,"PROPERTY_ACCESS_SET_INTERNAL")};
DiY=function(){return{_definePropertyAccessor:function(N,b){var S=this,P=S.hostElement.loggingStatus;P&&(P.isDefiningPropertyAccessor=!0);var H=S[N];H!==void 0&&(S.__data?S._setPendingProperty(N,H):(S.__dataProto!=null||(S.__dataProto={}),S.__dataProto[N]=H));P&&(P.isDefiningPropertyAccessor=!1);Object.defineProperty(this,N,{get:function(){I9O(S.hostElement,N);return this.__data[N]},
set:function(K){b||this._setPendingProperty(N,K,!0)&&this._invalidateProperties()}})},
created:function(){var N=this._setPendingProperty.bind(this);this._setPendingProperty=function(b,S,P){lI(this.hostElement,b);return N.apply(this,[b,S,P])}}}};
VIu=function(N){pfU()&&_.L(L3.prototype)(N.prototype,"__templateBindingLoggingBehavior")};
g8p=function(N,b){if(b.resolvedFactories.length!==N.resolvedFactories.length)return!0;b=_.O(b.resolvedFactories.entries());for(var S=b.next();!S.done;S=b.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;if(P.providerClass){if(P.providerClass!==N.resolvedFactories[S].providerClass)return!0}else if(P.providerValue){if(P.providerValue!==N.resolvedFactories[S].providerValue)return!0}else if(P.factory!==N.resolvedFactories[S].factory)return!0}return!1};
e7o=function(N,b){N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.constructor===Array)e7o(S,b);else{var P=b;P.has(S)||(S.inject&&P.add(S),S.behaviors&&e7o(S.behaviors,P))}};
f3=function(N,b){var S=N[b];N[b]=function(){var P=_.$I.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(S)return S.apply(this,P)}};
wfO=function(){_.uI.Class=function(S,P){S=$iY(S,P);f3(S.prototype,"created");return S};
f3(Qs.prototype,"_initializeProperties");f3(_.xq.prototype,"_initializeProperties");if(h7O)f3(qJO,"created");else{var N=function(){f3(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))N();else{var b=customElements.define;customElements.define=function(S,P,H){b.call(customElements,S,P,H);S==="tp-yt-iron-list"&&(N(),customElements.define=b)}}}};
bYI=function(N,b){N.prototype.behaviors=N.prototype.behaviors||[];N.prototype.behaviors.unshift(NHU.InjectBehavior);N.prototype.provide=b};
_.J_=function(N){return function(b){if(!N.disableElementRegistration){N.noInjection||bYI(b,N.providers);var S=b.prototype;S.__templateHelpers||TPp(oA.prototype)(S,"__templateHelpers");S=N.is;SmE||(SmE=Date.now());(Aw(S)+SmE)%100<_.d7("polymer_log_prop_change_observer_percent")&&TPp(iI.prototype)(b.prototype,"__propertyObserverObserver");b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(_.P69.YtHostElementBehavior);VIu(b);z7p({is:N.is,notifyObserversOnUndefined:N.notifyObserversOnUndefined!==
!1,fastInit:N.fastInit,template:N.template,disableEnforceFastDefaultValuesCheck:!0})(b)}}};
_.Uj=function(N){return _.J_({is:N.is,template:N.template,disableElementRegistration:N.disableElementRegistration,cssBuildOptOut:N.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
K7L=function(N,b){if(HYY){N=new N;for(var S=_.O(Object.getOwnPropertyNames(N)),P=S.next();!P.done;P=S.next())P=P.value,b[P]=N[P];for(S=b;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){P=_.O(Object.getOwnPropertyNames(S));for(var H=P.next();!H.done;H=P.next())H=H.value,N.hasOwnProperty(H)||Object.defineProperty(N,H,ssU(b,H))}}else N.apply(b)};
ssU=function(N,b){return{get:function(){var S=N[b];return S instanceof Function?S.bind(N):S},
set:function(S){N[b]=S}}};
OYu=function(N,b){for(var S=N._noAccessors,P=_.O(Object.getOwnPropertyNames(N)),H=P.next();!H.done;H=P.next())if(H=H.value,!v$f.has(H))if(S)b[H]=N[H];else{var K=Object.getOwnPropertyDescriptor(N,H);K&&(K.configurable=!0,Object.defineProperty(b,H,K))}};
C6p=function(N,b,S){return function(P){if(S){var H=S();P.model=H}if(N[b])N[b](P,P.detail)}};
ZL=function(N){var b=[];if(typeof N==="string")N.length>0&&b.push.apply(b,_.IX(N.split(".")));else{N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,typeof S==="string"?b.push.apply(b,_.IX(S.split("."))):b.push(S)}return b};
GOo=function(N,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var S=0;S<b.length;S++){if(!N)return;N=N[b[S]]}return N}};
rne=function(N,b){if(N.length>b.length)return!1;for(var S=0;S<N.length;S++)if(N[S]!==b[S])return!1;return!0};
aFo=function(N,b,S){if(b.type==="compute"){var P=b.getter.bind(S);var H=b.args}else P=function(){return S[b.method.methodName].apply(S,_.IX(_.$I.apply(0,arguments)))},H=b.method.args;
cnO(N,b.propertyKey,P,H,b.value)};
W7p=function(N,b){if(b.readOnly){var S=Object.getOwnPropertyDescriptor(N.model,b.propertyKey);Object.defineProperty(N.model,b.propertyKey,{get:S.get,set:function(){}});
N.model[RTf(b.propertyKey)]=S.set}};
n$E=function(N,b,S){if(S){var P=b.propertyKey,H=b.selector;b=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.IX(b.selectorArgs.map(function(K){return{type:"path",path:K}})));
cnO(N,P,function(K){var C=_.$I.apply(1,arguments);return H.apply(null,[S.getState()].concat(_.IX(C)))},b)}};
mFI=function(N,b,S){var P=_.ci(b.propertyKey)+"-changed";dFu(N,function(H){var K={value:H.value,queueProperty:!0};H.path.split(".").length>1&&(K.path=H.path);S.dispatchEvent(new CustomEvent(P,{detail:K}))},[{type:"wildcard",
path:b.propertyKey}])};
kOL=function(N,b,S){dFu(N,function(){S[b.method.methodName].apply(S,_.IX(_.$I.apply(0,arguments)))},b.method.args)};
RTf=function(N){return"_set"+(N.charAt(0).toUpperCase()+N.slice(1))};
TH_=function(){var N,b=$l(function(S){N=S},!1);
return[N,b]};
lFu=function(N){N=N.trim().replace(tmE,",").replace(MmU,"$1");var b=N[0];b==="-"&&(b=N[1]);if(b>="0"&&b<="9")return{type:"literal",value:Number(N)};if(b==="'"||b==='"')return{type:"literal",value:N.slice(1,-1)};if(b=N.match(F7L)){b=b[1];var S=BHf[b];if(S)return{type:S,path:N.slice(0,-(b.length+1))}}return{type:"path",path:N}};
Qs9=function(N){var b=N.match(L7b);if(b)return N={methodName:b[1],args:fFL},b[2].trim()&&(b=b[2].replace(u4o,"&comma;").split(","),N.args=b.map(lFu)),N};
xFY=function(N,b,S,P){P=P===void 0?!1:P;b=_.ci(b);var H=zQ;H&&(S=H(S,b,"attribute",N));j7(N,S,b,P)};
j7=function(N,b,S,P){b=o$p(b,P===void 0?!1:P);b===void 0?N.removeAttribute(S):N.setAttribute(S,b)};
o$p=function(N,b){switch(typeof N){case "object":case "function":if(N instanceof Date)return N.toString();if(N){if((b===void 0?0:b)&&!_.T("polymer_reflect_objects_as_boolean_killswitch"))return N?"":void 0;b=window.trustedTypes?window.trustedTypes.isHTML(N)||window.trustedTypes.isScript(N)||window.trustedTypes.isScriptURL(N):void 0;if(b)return N;try{return JSON.stringify(N)}catch(S){_.$h(Error("Eg`"+N))}}break;case "boolean":return N?"":void 0;default:return N!==null&&N!==void 0?N.toString():void 0}};
iYs=function(N){if(N===void 0)throw Error("Fg");return N};
zTu=function(N,b,S,P){var H=Jn9(P);if(H.length){P=S;var K="property";UFf.test(S)?K="attribute":S[S.length-1]==="$"&&(S=S.slice(0,-1),K="attribute");var C=ZYU(H);C&&K==="attribute"&&(S==="class"&&N.hasAttribute("class")&&(C+=" "+N.getAttribute(S)),j7(N,C,S));K==="attribute"&&P==="disable-upgrade$"&&N.setAttribute("disable-upgrade","");N.localName==="input"&&P==="value"&&N.setAttribute("value","");N.removeAttribute(P);K==="property"&&(S=_.av(S));b=iYs(b);jss(b,K,S,H);return!0}return S.slice(0,3)===
"on-"?(N.removeAttribute(S),(K=b).events!=null||(K.events=[]),b.events.push({name:S.slice(3),value:P}),!0):S==="id"?(b.id=P,!0):!1};
Jn9=function(N){for(var b=[],S=0,P;(P=Anu.exec(N))!==null;){P.index>S&&b.push({type:"literal",value:N.slice(S,P.index)});var H=P[1][0];S=!!P[2];P=P[3].trim();if(H==="{")throw Error("Gg");(H=Qs9(P))?b.push({type:"method",negate:S,signature:H}):b.push({type:"path",negate:S,path:P});S=Anu.lastIndex}S&&S<N.length&&(N=N.substring(S))&&b.push({type:"literal",value:N});return b};
ZYU=function(N){for(var b="",S=0;S<N.length;S++){var P=N[S];P.type==="literal"&&(b+=P.value)}return b};
jss=function(N,b,S,P){N.bindings!=null||(N.bindings=[]);N.bindings.push({kind:b,target:S,parts:P})};
ynI=function(N,b,S){var P=!1;if(N.localName==="template"){P=S;var H=b.stripWhitespace;H=XZY(N,H===void 0?!1:H);var K=N.content.ownerDocument.createDocumentFragment();H.content=K;K.appendChild(N.content);P&&(P.templateInfo=H);P=!0}else N.localName==="slot"&&(b.hasInsertionPoint=!0);if(N.firstChild&&(H=S,N.localName!=="script"&&N.localName!=="style")){K=0;for(var C=N.firstChild;C;){var G=C;if(G.localName==="template"){var a=G.getAttribute("is");if((C=a==="dom-if")||a==="dom-repeat"){G.removeAttribute("is");
a=G.ownerDocument.createElement("ps-"+a);G.parentNode.replaceChild(a,G);a.appendChild(G);var R=Array.from(G.attributes);R=_.O(R);for(var n=R.next();!n.done;n=R.next())n=n.value,C?E$E.has(n.name)&&j7(a,n.value,n.name):pZe.has(n.name)?j7(a,n.value,n.name):YmU.has(n.name),G.removeAttribute(n.name);C=a}else C=G}if(C.nodeType===Node.TEXT_NODE){G=void 0;a=N;for(R=C;((G=R.nextSibling)==null?void 0:G.nodeType)===Node.TEXT_NODE;)n=void 0,(n=R).textContent!=null||(n.textContent=""),R.nextSibling.textContent&&
(R.textContent+=R.nextSibling.textContent),a.removeChild(R.nextSibling);if(b.stripWhitespace&&C.textContent&&!C.textContent.trim()){N.removeChild(C);C=C.nextSibling;continue}}ynI(C,b,{parentIndex:K,parentInfo:H});C.parentNode&&K++;C=C.nextSibling}}var d;if((d=N.hasAttributes)==null?0:d.call(N)){d=S=iYs(S);H=!1;K=Array.from(N.attributes);K=_.O(K);for(G=K.next();!G.done;G=K.next())G=G.value,H=zTu(N,d,G.name,G.value)||H;P=H||P}N.nodeType===Node.TEXT_NODE&&(d=Jn9(N.textContent),d.length&&(N.textContent=
ZYU(d)||" ",S=iYs(S),jss(S,"text","textContent",d),P=!0));S&&P&&(S.infoIndex=b.nodeInfoList.push(S)-1)};
XZY=function(N,b){b={nodeInfoList:[],stripWhitespace:(b===void 0?!1:b)||N.hasAttribute("strip-whitespace")};ynI(N.content,b);return b};
IFe=function(N){Object.assign(N,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Vma=function(N,b,S){b.signalCache!=null||(b.signalCache={});var P=b.signalCache[S];if(!P){var H=S.split(".");P=!DFY(N,H[0]);if(H.length>1&&P){var K=N.getPathMutationSignal(H);P=function(){var C=q8(N.owner,function(){return N.getWithPath([H[0]])}),G,a=(G=K())==null?void 0:G.value;
return{rootWasDefined:C!==void 0,value:a}}}else P=function(){var C=N.getWithPath(H);
return{rootWasDefined:C!==void 0,value:C}};
b.signalCache[S]=P}return P()};
eTf=function(N,b,S,P,H){b=b.parts.map(function(C,G){if(C.type==="literal"){S.partWasDefined!=null||(S.partWasDefined=[]);var a;(a=S.partWasDefined)[G]||(a[G]=C.value!==void 0);return C.value}var R;if(C.type==="method"){var n,d=(n=(R=S.partWasDefined)==null?void 0:R[G])!=null?n:!1;d||(d=C.signature.args.every(function(M){return M.type==="literal"}));
var m=!1,k=!0;R=C.signature.args.map(function(M){if(M.type==="literal")return M.value;if(M.type!=="path")throw Error("Hg`"+M.type);var l=Vma(N,S,M.path);M=l.value;l=l.rootWasDefined;m||(m=l);k&&(k=l);return M});
d||(d=H===1?k:m);S.partWasDefined!=null||(S.partWasDefined={});S.partWasDefined[G]=d;if(!d)return;R=(G=Vma(N,S,C.signature.methodName).value)&&typeof G==="function"?G.apply(P,R):void 0}else n=Vma(N,S,C.path),R=n.value,S.partWasDefined!=null||(S.partWasDefined={}),(d=S.partWasDefined)[G]||(d[G]=R!==void 0||n.rootWasDefined);C.negate&&(R=!R);return R});
if(b.length===1){var K;return((K=S.partWasDefined)==null?0:K[0])?b[0]:g$9}return b.join("")};
$FO=function(N){return typeof N==="object"&&!!N&&"notifyPath"in N&&"canNotifyPath"in N};
hT9=function(N){return typeof N==="object"&&!!N&&"notifyPath"in N};
qmu=function(N){return"polymerController"in N};
wZU=function(N,b){b=""+ZL(b)[0];if($FO(N))return N.canNotifyPath(b);if(qmu(N)&&$FO(N.polymerController))return N.polymerController.canNotifyPath(b);if(hT9(N)){var S;return!((S=N.properties)==null||!S[b])}if(qmu(N)&&hT9(N.polymerController)){var P;return!((P=N.polymerController.properties)==null||!P[b])}return!1};
Nfb=function(N,b,S){$FO(N)||hT9(N)?N.notifyPath(b,S):qmu(N)&&($FO(N.polymerController)||hT9(N.polymerController))&&N.polymerController.notifyPath(b,S)};
S1E=function(N,b,S){if(S!==g$9){N.kind==="attribute"||N.target!=="textContent"&&(N.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(S=S===void 0?"":S);var P,H=(P=bwU.Polymer)==null?void 0:P.sanitizeDOMValue;H&&(S=H(S,N.target,N.kind,b));if(N.kind==="attribute"){N=N.target;if(N==="class"||N==="name"||N==="slot")b=(0,_.Gd)(b);j7(b,S,N)}else if(N=N.target,S!==b[N]||typeof S==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,B4(b.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
b[N]=S,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}};
PB9=function(N,b,S,P){var H=b.parts[0];if(b.parts.length!==1||H.type!=="path"||!wZU(S,b.target))return!1;var K=_.O(H.path.split(".")),C=K.next().value,G=Gz(K);if(DFY(N,C))return!1;P.signalCache!=null||(P.signalCache={});K=P.signalCache[H.path];var a;K=(a=K)==null?void 0:a().value;if((K==null?void 0:K.path)!==void 0){P=ZL(K.path);var R=ZL(H.path);P=[b.target].concat(_.IX(P.slice(R.length-1)));Nfb(S,P,H.negate?!K.value:K.value);return!0}var n=zd(N,C);var d=n.getChangeRecordSignal(G),m=!1;K=function(){if(!m){var M=
q8(N.owner,function(){return n.getWithPath([])});
m||(m=M!==void 0)}return{value:d(),rootWasDefined:m}};
P.signalCache[H.path]=K;P.partWasDefined!=null||(P.partWasDefined={});K=K();(R=P.partWasDefined)[0]||(R[0]=K.rootWasDefined);var k=q8(N.owner,function(){return n.getWithPath(G)});
P.partWasDefined[0]&&q8(N.owner,function(){return void S1E(b,S,H.negate?!k:k)});
return!0};
Hwo=function(N,b,S,P,H,K){if(!PB9(N,b,S,P)){var C=eTf(N,b,P,H,K);q8(N.owner,function(){return void S1E(b,S,C)})}};
sYp=function(N,b,S,P,H,K){S=_.O(S);for(var C=S.next(),G={};!C.done;G={infoIndex:void 0},C=S.next()){C=C.value;var a=C.bindings;G.infoIndex=C.infoIndex;C=C.parentInfo;if(a){a=_.O(a);for(var R=a.next(),n={};!R.done;n={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},R=a.next()){n.b$jscomp$257=R.value;if(G.infoIndex===void 0)throw Error("Ig");n.bindingCtx$jscomp$4={};N.effect(function(d,m){return function(){H&&!H()||Hwo(N,d.b$jscomp$257,b[m.infoIndex],d.bindingCtx$jscomp$4,P,K)}}(n,G))}}C&&sYp(N,b,[C],
P,H,K)}};
KYY=function(N,b){N=(b.parentInfo?KYY(N,b.parentInfo):N).firstChild;for(var S=0;N;N=N.nextSibling)if(b.parentIndex===S++)return N;throw Error("Jg");};
OwI=function(N,b,S,P){N=document.importNode(N.content,!0);N.__noInsertionPoint=!(P==null?0:P.hasInsertionPoint);for(var H=Array(b.length),K={},C=0;C<b.length;C++){var G=b[C],a=KYY(N,G);H[C]=a;G.id&&(K[G.id]=a);if(G.templateInfo){var R=a.parentElement;R&&(R.templateInfo=G.templateInfo,R.parentSignalProxy=S,R.eventListenerHost=P.eventListenerHost,R.stampingEnabled=P.enabledSignal)}R=void 0;if((R=G.events)==null?0:R.length)for(R=0;R<G.events.length;R++){var n=G.events[R];vPu(P.eventListenerHost,a,n.name,
n.value,P.getModel)}}sYp(S,H,b,P.thisCtx,P.enabledSignal,P.methodInvocationRequirement);return{root:N,nodes:H,nodesById:K}};
Gfp=function(N,b){N=N();var S;(S=CB9.ShadyCSS)==null||S.prepareTemplate(N,b);b=XZY(N);return{template:N,nodeInfoList:b.nodeInfoList,hasInsertionPoint:b.hasInsertionPoint}};
arY=function(){rpa=!1;for(var N=A_.length,b=0;b<N;b++){var S=A_[b];if(S)try{S()}catch(P){Promise.resolve().then(function(){throw P;})}}A_.splice(0,N);
cpa+=N};
dV9=function(N){rpa||(rpa=!0,R3o.textContent=(WYf++).toString());A_.push(N);return nPp++};
_.p3=function(N,b,S){XE++;N=b?new mV9(XE,N,b,S):new kfe(XE,N);Ej.set(XE,N);return XE};
TfU=function(N){(N=Ej.get(N))&&N.cancel()};
MCo=function(N,b){N=tCf.get(N);return N?(b=N.get(b))?b:null:null};
_.Yq=function(N,b,S,P){var H=MCo(N,b);if(!H){H=new FYU;var K=tCf.get(N);K||(K=new Map,tCf.set(N,K));K.set(b,H)}N=S.bind(N);H.run(N,P,void 0)};
_.BfO=function(N,b){var S;(S=MCo(N,b))==null||S.cancel()};
lrO=function(N){var b;(b=MCo(N,"doRender"))==null||b.flush()};
ys=function(N){var b;return(b=N.hostElement)!=null?b:N};
LYO=function(N){var b=N.indexOf(".");return b===-1?N:N.slice(0,b)};
frU=function(N,b,S,P,H,K){K=(H=(P=K?LYO(b):b)?b:null)?N.get(H):N.__data[b];H&&K===void 0&&(K=S[b]);_.bC(N.hostElement,HnI(P)+"-changed",{value:K,queueProperty:!0,path:H!=null?H:void 0},{bubbles:!1,composed:!1})};
uuo=function(N,b){N.__isReflecting=!0;xFY(N.hostElement,b,N.__data[b]);N.__isReflecting=!1};
QYE=function(N){if(N._onIronRequestResizeNotifications){var b=N._onIronRequestResizeNotifications.bind(N);N._onIronRequestResizeNotifications=function(S){_.gQ(S)!==N.hostElement&&b(S)}}N._ariaActiveAttributeChanged&&(N._ariaActiveAttributeChanged=N._ariaActiveAttributeChanged.bind(N.hostElement));
N._activeChanged&&(N._activeChanged=function(S){N.toggles?j7(N.hostElement,S?"true":"false",N.ariaActiveAttribute):N.hostElement.removeAttribute(N.ariaActiveAttribute);N._changedButtonState()});
N._asyncClick&&(N._asyncClick=function(){_.p3(function(){N.hostElement.click()},1)});
!N.keyEventTarget||N.keyEventTarget instanceof EventTarget||(N.keyEventTarget=ys(N.keyEventTarget));N._disabledChanged&&(N._disabledChanged=N._disabledChanged.bind(N.hostElement));N._observeItems&&(N._observeItems=function(S){var P=ys(S);return _.Tk(P).observeNodes(function(H){N._updateItems();N._updateSelected();_.bC(P,"iron-items-changed",H,{bubbles:!1,cancelable:!1})})});
N._updateItems&&N._updateItems===_.IA._updateItems&&(N._updateItems=function(){var S=_.Tk(N.hostElement).queryDistributedElements(N.selectable||"*");S=Array.prototype.filter.call(S,N._bindFilterItem);N._setItems(S)});
N._computeKeyboardClass&&(N._computeKeyboardClass=function(S){_.K3(N.hostElement,"keyboard-focus",S)});
N.ensureRipple&&(N.ensureRipple=function(S){if(N.hasRipple&&!N.hasRipple()){if(!N._createRipple)return;N._ripple=N._createRipple();N._ripple.noink=N.noink;var P=N._rippleContainer||N.hostElement;P&&_.H4(P).appendChild(N._ripple)}var H;if(S&&((H=N._ripple)==null?0:H.uiDownAction)){P=_.H4(N._rippleContainer||N.hostElement);var K;H=(K=S.composedPath())==null?void 0:K[0];P.contains(H)&&N._ripple.uiDownAction(S)}});
N._updateMultiselectable&&(N._updateMultiselectable=function(S){S?N.hostElement.setAttribute("aria-multiselectable","true"):N.hostElement.removeAttribute("aria-multiselectable")})};
xVb=function(N,b,S){S=_.O(S);for(var P=S.next();!P.done;P=S.next())K7L(P.value.constructor,N);K7L(b.constructor,N)};
iw9=function(N,b){N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.type==="signal"){var P=S.propertyKey;if(b.hasOwnProperty(P)&&b[P]!=null&&S.attributeType===Object){a:{P=b[P].constructor;for(var H=_.O(oPu),K=H.next();!K.done;K=H.next())if(K=K.value,P===K){P=K;break a}P=Object}S.attributeType=P}}};
Jpp=function(){};
UVU=function(N){var b;return(b=N.hostElement)!=null?b:N};
Zwo=function(){throw Error("Ng");};
jY_=function(N,b){N.constructor.prototype.useSignals=!0;var S=new N.constructor;xVb(S,N,b.behaviors);iw9(b.reactiveSchemas,S);S={};for(var P=_.O(b.reactiveSchemas),H=P.next();!H.done;H=P.next())H=H.value,H.type==="signal"&&(S[H.propertyKey]=H.attributeType);var K={copyPropertiesToProto:Zwo,didRegister:!1,typesForSignals:S},C=["disable-upgrade"].concat(_.IX(b.observedAttributes)),G=function(a){DL.call(this,N,b,K,a)};
_.F(G,DL);_.d0.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C}}});
K.copyPropertiesToProto=function(){for(var a=0;a<b.behaviors.length;a++)OYu(b.behaviors[a],G.prototype);OYu(N,G.prototype)};
b.legacyOptimizations||K.copyPropertiesToProto();G.prototype.is=N.is;return G};
z3a=function(N,b){if(Object.getPrototypeOf(b.prototype).constructor!==_.z)throw Error("Og");b.prototype.is=N.is;return jY_(b.prototype,N)};
Apu=function(N){return N.type==="compute"||N.type==="computeWithMethod"};
XL9=function(N){for(var b=N.reactiveSchemas.filter(Apu),S=new Map,P=new Map,H=new Map,K=_.O(b),C=K.next();!C.done;C=K.next())C=C.value,S.set(C.propertyKey,C),P.set(C.propertyKey,[]),H.set(C.propertyKey,0);K=0;b=_.O(b);for(C=b.next();!C.done;C=b.next()){C=C.value;for(var G=_.O(C.type==="computeWithMethod"?C.method.args:C.args),a=G.next();!a.done;a=G.next())a=a.value,a.type!=="literal"&&(a=a.path.split(".")[0],P.has(a)&&(P.get(a).push(C.propertyKey),H.set(C.propertyKey,H.get(C.propertyKey)+1),K++))}C=
[].concat(_.IX(P.keys())).filter(function(R){return H.get(R)===0});
for(b=[];C.length;)for(G=C.shift(),b.push(S.get(G)),G=_.O(P.get(G)),a=G.next();!a.done;a=G.next())a=a.value,H.set(a,H.get(a)-1),K--,H.get(a)===0&&C.push(a);S=N.reactiveSchemas.filter(function(R){return!Apu(R)});
N.reactiveSchemas=[].concat(_.IX(S),_.IX(b))};
EPU=function(N,b){if(b.properties)for(var S=_.O(Object.entries(b.properties)),P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;N.properties[P]=typeof H==="function"?{type:H}:H}b.observers&&N.observers.push.apply(N.observers,_.IX(b.observers));b.disabledPolySiReactions&&N.disabledPolySiReactions.push.apply(N.disabledPolySiReactions,_.IX(b.disabledPolySiReactions))};
pLu=function(N,b){for(var S=b.length-1;S>=0;S--){var P=b[S];Array.isArray(P)?pLu(N,P):N.indexOf(P)<0&&N.unshift(P)}};
Y1p=function(N,b){N.reactiveSchemas=N.reactiveSchemas.filter(function(S){return S.type==="observe"&&b.includes(S.method.methodName)||Apu(S)&&b.includes(S.propertyKey)?!1:!0})};
Iro=function(N,b){var S=b.prototype,P,H,K={is:N.is,reactiveSchemas:[],observedAttributes:[],behaviors:[NHU.InjectBehavior,oA.prototype],disableElementRegistration:N.disableElementRegistration,provide:(P=N.providers)!=null?P:[],reactivityMode:N.reactivityMode,signalProperties:(H=S.signalProperties)!=null?H:[]};"template"in b?K.templateGetter=function(){return b.template}:N.getTemplate&&(K.templateGetter=N.getTemplate);
S.behaviors&&pLu(K.behaviors,S.behaviors);ypo(K,b);return K};
ypo=function(N,b){for(var S=b.prototype,P={properties:{},observers:[],disabledPolySiReactions:[]},H=_.O(N.behaviors),K=H.next();!K.done;K=H.next())EPU(P,K.value);EPU(P,S);if(N.signalProperties)for(S=_.O(N.signalProperties),H=S.next();!H.done;H=S.next())delete P.properties[H.value];S=_.O(Object.entries(P.properties));for(H=S.next();!H.done;H=S.next()){K=_.O(H.value);H=K.next().value;K=K.next().value;var C=void 0;if((C=N.signalProperties)==null||!C.includes(H)){C=void 0;var G=N,a=K.type;if(!a)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{a=Reflect.getMetadata("design:type",b,H);for(var R=_.O(DVL),n=R.next();!n.done;n=R.next())if(n=n.value,a===n){a=n;break a}a=Object}else a=String;K.computed||K.selector||(G.reactiveSchemas.push({type:"signal",propertyKey:H,value:K.value,attributeType:a,readOnly:K.readOnly}),G.observedAttributes.push(_.ci(H)));K.reflectToAttribute&&G.reactiveSchemas.push({type:"reflect",propertyKey:H});if(K.computed){a=Qs9(K.computed);if(!a)throw Error("Pg");G.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:H,method:a,value:K.value})}K.observer&&G.reactiveSchemas.push({type:"observe",method:{methodName:K.observer,args:[{type:"path",path:H}]}});K.notify&&G.reactiveSchemas.push({type:"notify",propertyKey:H});K.selector&&G.reactiveSchemas.push({type:"redux",propertyKey:H,selector:K.selector,selectorArgs:(C=K.selectorArgs)!=null?C:[]})}}VCO&&XL9(N);b=_.O(P.observers);for(H=b.next();!H.done;H=b.next())S=N,H=H.value,(K=Qs9(H))?S.reactiveSchemas.push({type:"observe",method:K}):console.log('Warning: unable to parse observe declaration: "'+
H+'"');Y1p(N,P.disabledPolySiReactions)};
gPY=function(N,b){for(var S=0;S<b.length;S++){var P=b[S],H=void 0;(H=P).showHideApi!=null||(H.showHideApi={});H=void 0;!!N!==!((H=P.showHideApi)==null||!H.hideTemplateChildren)&&(P.nodeType===Node.TEXT_NODE?N?(P.showHideApi.polymerTextContent=P.textContent,P.textContent=""):(H=void 0,P.textContent=(H=P.showHideApi.polymerTextContent)!=null?H:null):P instanceof Element&&P.localName==="slot"?N?(P.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Gd)((0,_.Gd)(P).parentNode).replaceChild(P.showHideApi.polymerReplaced,
P)):(H=P.showHideApi.polymerReplaced)&&(0,_.Gd)((0,_.Gd)(H).parentNode).replaceChild(P,H):P instanceof HTMLElement&&P.style&&(N?(P.showHideApi.polymerDisplay=P.style.display,P.style.display="none"):P.style.display=P.showHideApi.polymerDisplay));P.showHideApi.hideTemplateChildren=N;P.showHideChildren&&P.showHideChildren(N)}};
$VE=function(){if(!e3I){var N=document.createElement("style");N.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(N);e3I=!0}};
Vs=function(){return _.T("disable_hidden_dom_if_using_stamper")};
h3u=function(N,b){var S=_.gq().getState();return b?N.apply(null,[S].concat(_.IX(b))):N(S)};
Ni9=function(){if(q1p)return q1p;var N=_.O(_.QF(0,void 0,"MB1Hb")),b=N.next().value;N.next();var S=N.next().value;_.gq().subscribe(function(){wLp(S)});
return q1p=b};
wLp=function(N){bjI||(bjI=!0,Promise.resolve().then(function(){N(function(b){return b+1});
bjI=!1}))};
_.gq=function(){return SSf.getAppStore()};
Pjp=function(N,b){return SSf.getSelectFn()(N,b)};
_.e7=function(N){SSf.getDispatchFn()(N)};
Hjb=function(N,b){var S={},P;for(P in N)S[P]=b(N[P],P);return S};
_.$q=function(N,b){return function(){var S;return(S=_.he(N))!=null?S:b}};
_.h_=function(N,b){var S=Object.assign({},N),P;for(P in b)b.hasOwnProperty(P)&&(S[P]=_.$q(N[P],b[P]));return S};
siI=function(N,b,S,P){N instanceof Element&&(S.debugName||(S.debugName="<"+N.tagName.toLowerCase()+(N.tagName.includes("-")?">":"."+N.className+">")),_.T("ytwiz_enable_debug_component_props")&&(N.debugProps||(N.debugProps=Hjb(b,function(H){return function(){return H()}})),b.data===void 0||"data"in N&&!N.isWebComponentWrapper||Object.defineProperty(N.debugProps,"data",{get:function(){return _.he(b.data)},
set:function(H){var K;P==null||(K=P.data)==null||K.call(P,H)},
enumerable:!0,configurable:!0})))};
_.qI=function(N,b){if(N.length===0&&(b==null||!b.initial))return Ra9(N,{debugName:b==null?void 0:b.debugName},"j");var S=_.O(Ra9({source:function(){return N()},
computation:function(K,C){return(C==null?0:C.value)?N(C.value):(b==null?0:b.initial)?N(b.initial):K}},{debugName:b==null?void 0:b.debugName},"k")),P=S.next().value,H=S.next().value;
S=S.next().value;return[P,H,S]};
_.A=function(N,b){var S=function(P){return $R("ytComponent",{},function(H){var K=KXs={};var C;if(((C=S)==null?0:C.idomCompat)&&P.renderedFromIdom){var G;C=typeof S.idomCompat==="object"?(G=S)==null?void 0:G.idomCompat.callbacks:{};C=_.O(vFE(P,C));G=C.next().value;var a=C.next().value;C=C.next().value;var R=Ojb(N,G);K.privateValue=R;KXs=void 0;siI(R,G,S,a);H.addAttributes({debugName:S.debugName});H=lYf(R);H=Array.isArray(H)?H[0]:H;H[BA]||(H[BA]={});H[BA].updateSignalsFromIdomProps=C;CjO(G,R);return R}C=
Hjb(P,GU_);G=Ojb(N,C);siI(G,C,S);K.privateValue=G;KXs=void 0;H.addAttributes({debugName:S.debugName});CjO(C,G);return G})};
S.debugName=b===void 0?"":b;return S};
Ojb=function(N,b){N=N(b);return uD(N)};
rcO=function(N,b){N[b]||(N=new _.jU("IDOM interop setter undefined. Key:",b),_.ge(N))};
GU_=function(N,b){return b==="children"||b==="ref"||typeof N==="function"||N===void 0?N:function(){return _.he(N)}};
vFE=function(N,b){var S={},P={},H={},K={},C;for(C in N){K={key$jscomp$952:K.key$jscomp$952};K.key$jscomp$952=C;var G=N[K.key$jscomp$952];if(K.key$jscomp$952==="children"||K.key$jscomp$952==="ref")S[K.key$jscomp$952]=G;else if(typeof G==="function")if(K.key$jscomp$952 in b||G.length>0)H[K.key$jscomp$952]=G,S[K.key$jscomp$952]=function(R){return function(){return H[R.key$jscomp$952].apply(H,_.IX(_.$I.apply(0,arguments)))}}(K);
else if(K.key$jscomp$952==="data"){var a=_.O(_.qI(G,{debugName:K.key$jscomp$952+":cwis"}));G=a.next().value;a=a.next().value;S[K.key$jscomp$952]=G;P[K.key$jscomp$952]=a}else S[K.key$jscomp$952]=G;else N[K.key$jscomp$952]===void 0&&K.key$jscomp$952 in b||(a=_.O(_.QF(N[K.key$jscomp$952],{debugName:K.key$jscomp$952+":cwis"},"HQMSk")),G=a.next().value,a=a.next().value,S[K.key$jscomp$952]=G,P[K.key$jscomp$952]=a)}return[S,P,function(R){var n={},d;for(d in R)n={key$jscomp$951:n.key$jscomp$951,val$jscomp$122:void 0},
n.key$jscomp$951=d,n.val$jscomp$122=R[n.key$jscomp$951],n.key$jscomp$951!=="children"&&n.key$jscomp$951!=="ref"&&(typeof n.val$jscomp$122==="function"?n.key$jscomp$951 in b?H[n.key$jscomp$951]=n.val$jscomp$122:n.val$jscomp$122.length>0&&(H[n.key$jscomp$951]=n.val$jscomp$122,_.$h(new _.jU("Callback detected that was not set in the idomCompat callbacks map. Key:",n.key$jscomp$951))):n.key$jscomp$951 in b&&n.val$jscomp$122===void 0||(rcO(P,n.key$jscomp$951),Zq(function(m){return function(){P[m.key$jscomp$951](m.val$jscomp$122)}}(n))))}]};
Rgp=function(N,b,S){var P=OLa(N.prototype,ccs,N.prototype.behaviors);P.prototype.is=b;P.prototype.localName=b;S&&aw9(P,S);return function(H){H&&(P.prototype.hostElement=H);var K=new P;K.root=K;K.hostElement=H;return K}};
aw9=function(N,b){var S;Object.defineProperty(N.prototype,"_template",{get:function(){S===void 0&&(S=b());return S},
set:function(P){S=P},
configurable:!0,enumerable:!0})};
kUb=function(N,b,S,P){function H(){if(!k){for(var M=new Set,l=_.O(n),u=l.next();!u.done;u=l.next()){u=u.value;for(var J=_.O(Object.getOwnPropertyNames(u)),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var D=void 0,Y=(D=Object.getOwnPropertyDescriptor(u,Z))==null?void 0:D.value;Y&&Y instanceof Function&&!wq(Z)&&(!G[Z]||_.T("polymer_forward_method_killswitch"))&&M.add(Z)}}l=_.O(Object.entries(Object.getOwnPropertyDescriptors(N.prototype)));for(u=l.next();!u.done;u=l.next())J=_.O(u.value),u=J.next().value,
J=J.next().value,J.value instanceof Function&&!wq(u)&&M.add(u);k=M}return k}
WXf(N,b,P==null?void 0:P.providers);C2_(N.prototype,N,!0);var K=Rgp(N,b,S),C,G=(C=N.prototype.properties)!=null?C:{},a,R,n=(R=(a=N.prototype.behaviors)==null?void 0:a.flat(Infinity))!=null?R:[];S=_.O(n);for(C=S.next();!C.done;C=S.next())G=Object.assign({},C.value.properties,G);var d=[].concat(_.IX(nF9),_.IX(Object.keys(G).map(function(M){return _.ci(M)}))),m=!1,k;
return{ctor:function(M,l){var u=K(M),J,Z;M=[].concat(_.IX((J=P==null?void 0:P.allowedProps)!=null?J:[]),_.IX((Z=P==null?void 0:P.allowedPropsFromBehaviors)!=null?Z:[]));u.allowedProps=M.length>0?M:void 0;J={};Z=_.O(d);for(M=Z.next();!M.done;M=Z.next())M=M.value,J[M]=_.av(M);u.__dataAttributes=J;var D=u.ready.bind(u);u.ready=function(){l.beforeReady();D();if(MI(b)&&!m){var Y=u.__templateInfo;if(Y==null?0:Y.hostProps){Y=_.O(Object.keys(Y.hostProps));for(var V=Y.next();!V.done;V=Y.next())B4(b,V.value,
"PROPERTY_ACCESS_GET_INTERNAL")}m=!0}};
u._overrideLegacyUndefined=!0;return u},
props:G,observedAttributes:d,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var M=[],l=new Set,u=_.O(Object.keys(G)),J=u.next();!J.done;J=u.next())J=J.value,M.push([J,G[J].readOnly]),l.add(J);u=H();J=_.O(Object.keys(Object.getOwnPropertyDescriptors(N.prototype)));for(var Z=J.next();!Z.done;Z=J.next())Z=Z.value,!d2f(Z)||u.has(Z)||l.has(Z)||(M.push([Z,!1]),l.add(Z));l=_.O(m2L);for(u=l.next();!u.done;u=l.next())M.push([u.value,!0]);return M},
getPropsToForwardBeforeReady:function(M){for(var l=[],u=_.O(Object.entries(M)),J=u.next();!J.done;J=u.next()){var Z=_.O(J.value);J=Z.next().value;Z=Z.next().value;if(d2f(J)&&!(Z instanceof Function)&&(l.push([J,!1]),MI(b))){var D=Z=void 0;(D=(Z=M)._createPropertyAccessor)==null||D.call(Z,J)}}return l},
shouldForwardProp:d2f,shouldLog:MI}};
WXf=function(N,b,S){bYI(N,S);N.prototype.behaviors.unshift(TiO);if(pfU()){if(MI(b)){var P;(P=N.prototype).behaviors!=null||(P.behaviors=[]);N.prototype.behaviors.unshift(DiY())}VIu(N)}_.L(oA.prototype)(N.prototype,"__templateHelpers")};
wq=function(N){return thE.has(N)||N.startsWith("__compute__")};
d2f=function(N){return!wq(N)&&!N.startsWith("_")&&!N.endsWith("_")};
LXI=function(N,b){function S(){var m=a();m=_.O(m);for(var k=m.next();!k.done;k=m.next()){var M=_.O(k.value);k=M.next().value;M=M.next().value;MhU(d.prototype,k,M)}P=!0}
var P=!1,H=N.ctor,K=N.getInitialMethods,C=N.observedAttributes,G=N.getPropsToForwardBeforeReady,a=N.getPropsToForwardBeforeRegister,R=N.shouldForwardProp,n=N.shouldLog,d=function(){var m=HTMLElement.call(this)||this;m.didForwardDynamicProps=!1;m.loggingStatus={};P||S();m.inst=H(m,{beforeReady:function(){m.didForwardDynamicProps||(m.forwardDynamicProps(),m.didForwardDynamicProps=!0)}});
m.controllerProxy=y$u(m.inst,b);m.forwardMethods();return m};
_.F(d,HTMLElement);d.prototype.forwardMethods=function(){for(var m=this,k=_.O(this.inst.getExtraMethodsToForward()),M=k.next(),l={};!M.done;l={method$jscomp$65:void 0},M=k.next()){var u=_.O(M.value);M=u.next().value;u=u.next().value;l.method$jscomp$65=u;this[M]=function(J){return function(){return J.method$jscomp$65.call.apply(J.method$jscomp$65,[m.inst].concat(_.IX(_.$I.apply(0,arguments))))}}(l)}k=_.O(K());
for(l=k.next();!l.done;l=k.next())l=l.value,R(l)&&FXO(this,l),n(b)&&!wq(l)&&BiI(this.inst,l)};
d.prototype.forwardDynamicProps=function(){var m=G(this.inst);m=_.O(m);for(var k=m.next();!k.done;k=m.next()){var M=_.O(k.value);k=M.next().value;M=M.next().value;MhU(this,k,M);n(b)&&!wq(k)&&lws(this.inst,k)}};
d.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
d.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
d.prototype.attributeChangedCallback=function(m,k,M){this.inst.attributeChangedCallbackWrapper(m,k,M)};
_.d0.Object.defineProperties(d.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.d0.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C}}});
customElements.define(b,d)};
MhU=function(N,b,S){N.hasOwnProperty(b)||Object.defineProperty(N,b,{get:function(){var P,H=((P=N.is)!=null?P:N.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||B4(H,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,P=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,P},
set:function(P){if(!S){var H,K=((H=N.is)!=null?H:N.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||B4(K,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==P&&(H={},this.polymerController.setProperties((H[b]=P,H)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
FXO=function(N,b,S){var P=N.polymerController;N[b]=function(){var H=_.$I.apply(0,arguments);N.loggingStatus.currentExternalCall=b;N.loggingStatus.bypassProxyController=!0;var K,C=((K=N.is)!=null?K:N.tagName).toLowerCase();B4(C,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var G;K=(G=S!=null?S:P[b])==null?void 0:G.call.apply(G,[P].concat(_.IX(H)));N.loggingStatus.currentExternalCall=void 0;N.loggingStatus.bypassProxyController=!1;return K}};
BiI=function(N,b){var S=N.hostElement,P=N[b];N[b]=function(){var H=_.$I.apply(0,arguments);if(S.loggingStatus.currentExternalCall!==b){var K,C=((K=S.is)!=null?K:S.tagName).toLowerCase();B4(C,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return P==null?void 0:P.apply(N,H)}};
lws=function(N,b){var S=Object.getOwnPropertyDescriptor(N,b);S&&!S.get&&Object.defineProperty(N,b,{get:function(){I9O(N.hostElement,b);return S.value},
set:function(P){lI(N.hostElement,b);S.value=P}})};
fwu=function(N){return _.T("poly_si_dom_repeat_detached_fix_killswitch")||N.tagName!=="PS-DOM-REPEAT"?N.tagName==="DOM-REPEAT":!0};
QiO=function(N,b){var S=ubb(N);N instanceof Element&&S.unshift(N);N=_.O(S.filter(fwu));for(var P=N.next();!P.done;P=N.next()){var H=void 0;P=_.O((H=P.value.__instances)!=null?H:[]);for(H=P.next();!H.done;H=P.next())if(H=H.value,H.root){H=Array.from(H.root.children);H=_.O(H);for(var K=H.next();!K.done;K=H.next())S.push.apply(S,_.IX(QiO(K.value,b)))}}return S.filter(function(C){return C.usePatchedLifecycles&&C.lifecycleIsConnected===b})};
ubb=function(N){var b=null;N instanceof Element?b=Element.prototype.querySelectorAll:N instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(N,"*")):[]};
Nu=function(N){_.fQ(function(){for(var b=_.O(QiO(N,!1)),S=b.next();!S.done;S=b.next()){S=S.value;S.lifecycleIsConnected=!0;try{var P=void 0,H=void 0,K=void 0,C=void 0;(P=(C=S.polymerController)!=null?C:S)==null||(K=(H=P).connectedCallback)==null||K.call(H)}catch(G){_.ge(G)}}})};
bH=function(N){_.fQ(function(){for(var b=_.O(QiO(N,!0)),S=b.next();!S.done;S=b.next()){S=S.value;S.lifecycleIsConnected=!1;try{var P=void 0,H=void 0,K=void 0,C=void 0;(P=(C=S.polymerController)!=null?C:S)==null||(K=(H=P).disconnectedCallback)==null||K.call(H)}catch(G){_.ge(G)}}})};
jip=function(){if(!x2e){x2e=!0;var N=[Node];Sr&&N.push(Sr.Wrapper);var b=Node.prototype.insertBefore,S=Node.prototype.removeChild;N=_.O(N);for(var P=N.next(),H={};!P.done;H={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},P=N.next())P=P.value,H.nativeInsertBefore=P.prototype.insertBefore,P.prototype.insertBefore=function(C){return function(G,a){if(G instanceof DocumentFragment){var R=Array.from(G.children);G=C.nativeInsertBefore.call(this,G,a);
if(this.isConnected&&C.nativeInsertBefore===b)for(a=_.O(R),R=a.next();!R.done;R=a.next())Nu(R.value);return G}R=G instanceof Element&&G.isConnected;a=C.nativeInsertBefore.call(this,G,a);R&&bH(G);this.isConnected&&Nu(G);return a}}(H),H.nativeAppendChild=P.prototype.appendChild,P.prototype.appendChild=function(C){return function(G){if(G instanceof DocumentFragment){var a=Array.from(G.children);
G=C.nativeAppendChild.call(this,G);if(this.isConnected){a=_.O(a);for(var R=a.next();!R.done;R=a.next())Nu(R.value)}return G}a=G instanceof Element&&G.isConnected;R=C.nativeAppendChild.call(this,G);a&&bH(G);this.isConnected&&Nu(G);return R}}(H),H.nativeRemoveChild=P.prototype.removeChild,P.prototype.removeChild=function(C){return function(G){var a=G instanceof Element&&G.isConnected,R=C.nativeRemoveChild.call(this,G);
a&&S===C.nativeRemoveChild&&bH(G);return R}}(H),H.nativeReplaceChild=P.prototype.replaceChild,P.prototype.replaceChild=function(C){return function(G,a){if(G instanceof DocumentFragment){var R=Array.from(G.children);
G=C.nativeReplaceChild.call(this,G,a);if(this.isConnected)for(bH(a),a=_.O(R),R=a.next();!R.done;R=a.next())Nu(R.value);return G}R=G instanceof Element&&G.isConnected;var n=this.isConnected,d=C.nativeReplaceChild.call(this,G,a);n&&bH(a);R&&bH(G);n&&Nu(G);return d}}(H);
N=[Element];Sr&&N.push(Sr.Wrapper);N=_.O(N);P=N.next();for(H={};!P.done;H={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},P=N.next())P=P.value,P.prototype.before=oFs(P.prototype.before),P.prototype.after=oFs(P.prototype.after),H.nativeReplaceWith=P.prototype.replaceWith,P.prototype.replaceWith=function(C){return function(){var G=_.$I.apply(0,arguments),a=_.O(ijU(G)),R=a.next().value,
n=a.next().value;a=this.isConnected;C.nativeReplaceWith.apply(this,G);G=_.O(n);for(n=G.next();!n.done;n=G.next())bH(n.value);if(a)for(bH(this),R=_.O(R),a=R.next();!a.done;a=R.next())a=a.value,a instanceof Element&&Nu(a)}}(H),H.nativeRemove=P.prototype.remove,P.prototype.remove=function(C){return function(){var G=this.isConnected;
C.nativeRemove.call(this);G&&bH(this)}}(H),H.nativeInsertAdjacentElement=P.prototype.insertAdjacentElement,P.prototype.insertAdjacentElement=function(C){return function(G,a){var R=a.isConnected;
G=C.nativeInsertAdjacentElement.call(this,G,a);R&&bH(a);G.isConnected&&Nu(G);return G}}(H),H.nativeSetAttribute=P.prototype.setAttribute,P.prototype.setAttribute=function(C){return function(G,a){var R=Jco(this);
if(!R.usePatchedLifecycles)return C.nativeSetAttribute.call(this,G,a);var n=this.getAttribute(G);C.nativeSetAttribute.call(this,G,a);a=this.getAttribute(G);U2L(R,G,n,a)}}(H),H.nativeRemoveAttribute=P.prototype.removeAttribute,P.prototype.removeAttribute=function(C){return function(G){var a=Jco(this);
if(!a.usePatchedLifecycles)return C.nativeRemoveAttribute.call(this,G);var R=this.getAttribute(G);C.nativeRemoveAttribute.call(this,G);R!==null&&U2L(a,G,R,null)}}(H),H.nativeToggleAttribute=P.prototype.toggleAttribute,P.prototype.toggleAttribute=function(C){return function(G,a){var R=Jco(this);
if(!this.usePatchedLifecycles)return C.nativeToggleAttribute.call(this,G,a);var n=this.getAttribute(G),d=n!==null;a=C.nativeToggleAttribute.call(this,G,a);a!==d&&U2L(R,G,n,a?"":null);return a}}(H);
N=[Document,DocumentFragment,Element,ShadowRoot];Sr&&N.push(Sr.Wrapper);N=_.O(N);for(H=N.next();!H.done;H=N.next())H=H.value,H.prototype.prepend=oFs(H.prototype.prepend),H.prototype.append=oFs(H.prototype.append);(Sr==null?void 0:Sr.noPatch)===!0&&Zjf();document.readyState==="complete"?Nu(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Nu(document.body)});
var K=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");K&&K.get&&K.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:K.enumerable,configurable:!0,get:K.get,set:function(C){C||bH(this);K.set.call(this,C);return C}})}};
oFs=function(N){return function(){var b=_.$I.apply(0,arguments),S=_.O(ijU(b)),P=S.next().value;S=S.next().value;N.apply(this,b);b=_.O(S);for(S=b.next();!S.done;S=b.next())bH(S.value);if(this.isConnected)for(P=_.O(P),b=P.next();!b.done;b=P.next())b=b.value,b instanceof Element&&Nu(b)}};
Zjf=function(){for(var N=_.O(zgO),b=N.next();!b.done;b=N.next()){b=b.value.prototype;for(var S=_.O(Acs),P=S.next();!P.done;P=S.next()){P=P.value;var H=Object.getOwnPropertyDescriptor(b,P);H&&Object.defineProperty(b,"__shady_native_"+P,H)}}};
U2L=function(N,b,S,P){var H,K;if((H=N.polymerController)==null?0:(K=H.observedAttributes)==null?0:K.includes(b))if(N=N.polymerController,N.attributeChangedCallbackWrapper)N.attributeChangedCallbackWrapper.call(N,b,S,P);else{var C;(C=N.attributeChangedCallback)==null||C.call(N,b,S,P)}};
ijU=function(N){var b=[],S=[];N=_.O(N);for(var P=N.next();!P.done;P=N.next())P=P.value,P instanceof Element&&P.isConnected&&S.push(P),P instanceof DocumentFragment?b.push.apply(b,_.IX(Array.from(P.children))):b.push(P);return[b,S]};
Jco=function(N){return!(N instanceof Element)&&N.node instanceof Element?N.node:N};
X39=function(N,b){var S=b?["children"].concat(_.IX(b)):["children"];b=[];S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var H=P.value;if(N.hasOwnProperty(H)){P=N[H];P=typeof P==="function"?P():P;P=Array.isArray(P)?P:[P];P=uD(P).flat();if(H!=="children"){H=HnI(H);for(var K=_.O(P),C=K.next();!C.done;C=K.next())C=C.value,C instanceof Element&&C.setAttribute("slot",H)}b.push(P)}}b.length===0?N=[]:(N=uD(_.c("div",null,b)),N=Array.from(N.childNodes));return N};
p3E=function(N,b,S){var P={};_.VF(function(){var H={},K;for(K in b)if(b.hasOwnProperty(K)){var C=void 0,G=void 0;if(!(((C=S.slotProps)==null?0:C.includes(K))||K==="children"||((G=S.callbackProps)==null?0:G.includes(K))||K==="ref")&&(C=_.he(b[K]),P[K]!==C)){P[K]=C;G=void 0;var a=(G=N.hostElement)!=null?G:N;!S.skipHostForwardedProps&&EFo.has(K)&&(a[K]=C);H[K]=C}}Zq(function(){if(N.setProperties)N.setProperties(H);else for(var R=_.O(Object.entries(H)),n=R.next();!n.done;n=R.next()){var d=_.O(n.value);
n=d.next().value;d=d.next().value;N[n]=d}})},"l")};
ycO=function(N,b,S,P){var H=X39(S,P.slotProps),K=(0,_.Gd)(N);H=_.O(H);for(var C=H.next();!C.done;C=H.next())K.appendChild(C.value);p3E(b,S,P);P=_.O(P.callbackProps||[]);H=P.next();for(K={};!H.done;K={kebabEventName:void 0,eventListener:void 0},H=P.next())C=H=H.value,String(H).substring(0,2)==="on"&&S[C]?(K.kebabEventName=HnI(String(H).substring(2)),K.eventListener=S[C],N.addEventListener(K.kebabEventName,K.eventListener),_.ej(function(n){return function(){N.removeEventListener(n.kebabEventName,n.eventListener)}}(K))):
b[C]=S[C];
if(S.ref){S=_.O(YSo(S.ref));var G=S.next().value,a=S.next().value,R=b.attached.bind(b);b.attached=function(){G(N);R()};
_.ej(function(){a()})}};
YSo=function(N){if(typeof N==="function"){var b;return[function(S){b=N(S)},
function(){var S;(S=b)==null||S()}]}if(!N.onRender||!N.onUnmount)throw Error("Tg");
return[N.onRender,N.onUnmount]};
IwY=function(N,b){b=b===void 0?{}:b;var S=function(P){var H=document.createElement(N),K;var C=(K=H.polymerController)!=null?K:H;ycO(H,C,P,b);return H};
S.debugName=N;return S};
eg_=function(N,b,S,P,H){P=P===void 0?{}:P;var K=D2s,C=!1;K?(C=!0,D2s=void 0):(Vhp=b,K=document.createElement(b),Vhp=void 0);var G=K;G.usePatchedLifecycles=!0;G.lifecycleIsConnected=!1;K.loggingStatus={};var a=gF_(N,b,K,P,H);_.ej(function(){G.lifecycleIsConnected&&(G.lifecycleIsConnected=!1,a.disconnectedCallback())});
C||(K.__noInsertionPoint=!0,ycO(K,a,S,P));return K};
gF_=function(N,b,S,P,H){H=H===void 0?kUb:H;$2b[b]!=null||($2b[b]=H(N,b,P==null?void 0:P.getTemplate,P));var K=$2b[b],C=K.ctor;H=K.getInitialMethods;var G=K.getPropsToForwardBeforeReady;N=K.getPropsToForwardBeforeRegister;P=K.shouldForwardProp;var a=K.observedAttributes,R=K.shouldLog,n=C(S,{beforeReady:function(){var d=n;d._takeAttributes?d._takeAttributes():d.setPropertiesFromInitialAttributeValues&&d.setPropertiesFromInitialAttributeValues();d=_.O(G(S.polymerController));for(var m=d.next();!m.done;m=
d.next()){var k=_.O(m.value);m=k.next().value;k=k.next().value;MhU(S,m,k);R(b)&&!wq(m)&&lws(S.polymerController,m)}S.polymerController=y$u(n,b)}});
S.polymerController=n;S.polymerController.observedAttributes=a;K=_.O(n.getExtraMethodsToForward());for(C=K.next();!C.done;C=K.next())a=_.O(C.value),C=a.next().value,a=a.next().value,FXO(S,C,a);H=_.O(H());for(K=H.next();!K.done;K=H.next())K=K.value,P(K)&&FXO(S,K),R(b)&&!wq(K)&&BiI(n,K);N=_.O(N());for(P=N.next();!P.done;P=N.next())H=_.O(P.value),P=H.next().value,H=H.next().value,MhU(S,P,H);return n};
hg9=function(N){var b=P7;P7=N;return b};
NTa=function(N){if(qSe.has(N)&&P7&&w3L(P7)===N){var b;(b=P7)._numRenders!=null||(b._numRenders=0);P7._numRenders++;if(P7._numRenders>1)throw Error("Ug");return P7}};
SzE=function(N){var b=w3L(N);P7!==N&&b.includes("-")&&b$U.set(N,!0)};
w3L=function(N){var b;return(b=N==null?void 0:N.tagName.toLowerCase())!=null?b:""};
PfO=function(N,b){if(N.componentType===zz)throw Error("Vg");qSe.add(b);var S=function(){var P=HTMLElement.call(this)||this;P.is=b;if(Vhp===b)return P.isInert=!0,P;P.createElement();return P};
_.F(S,HTMLElement);S.prototype.createElement=function(){if(!this.isInert){D2s=this;var P=_.O(_.NOO(function(){return _.c(N,null)})).next().value;
D2s=void 0;IFe(this);return P}};
customElements.define(b,S)};
slO=function(N,b,S,P,H){N.prototype.is=b;(P==null?0:P.useSink)?H$f(N,b,S,P,H):(S=kUb(N,b,S,P),LXI(S,b));return N};
H$f=function(N,b,S,P,H){jip();var K=_.A(function(C){return eg_(N,b,C,Object.assign({},P,{getTemplate:S}),H)},"m");
K.debugName=b;PfO(K,b);return K};
vW_=function(N){return!K1p.has(N)};
G9e=function(N,b,S,P){function H(){if(!d){for(var m=new Set(O$L),k=_.O(K.behaviors),M=k.next();!M.done;M=k.next()){M=M.value;for(var l=_.O(Object.getOwnPropertyNames(M)),u=l.next();!u.done;u=l.next()){u=u.value;var J=void 0,Z=(J=Object.getOwnPropertyDescriptor(M,u))==null?void 0:J.value;Z&&Z instanceof Function&&(!R[u]||_.T("polymer_forward_method_killswitch"))&&m.add(u)}}k=_.O(Object.entries(Object.getOwnPropertyDescriptors(N.prototype)));for(M=k.next();!M.done;M=k.next())l=_.O(M.value),M=l.next().value,
l=l.next().value,l.value instanceof Function&&m.add(M);d=m}return d}
var K=Iro({is:b,disableElementRegistration:!1,getTemplate:S,providers:P==null?void 0:P.providers,reactivityMode:P==null?void 0:P.reactivityMode},N);if((P==null?0:P.allowedProps)||(P==null?0:P.allowedPropsFromBehaviors)){var C,G;K.allowedProps=[].concat(_.IX((C=P.allowedProps)!=null?C:[]),_.IX((G=P.allowedPropsFromBehaviors)!=null?G:[]))}var a=z3a(K,N);b=a.observedAttributes;var R={};S=_.O(K.reactiveSchemas);for(P=S.next();!P.done;P=S.next())if(P=P.value,P.type==="signal")R[P.propertyKey]={readOnly:P.readOnly},
P.readOnly&&(R[RTf(P.propertyKey)]={readOnly:!0});else if(P.type==="compute"||P.type==="computeWithMethod"||P.type==="redux")R[P.propertyKey]={readOnly:!0};var n=K.reactiveSchemas.length,d;return{ctor:function(m,k){m=new a(m);m.beforeReady=k.beforeReady;return m},
props:R,observedAttributes:b,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var m=[],k=new Set,M=_.O(Cf_),l=M.next();!l.done;l=M.next())l=l.value,m.push([l,l!=="observers"&&l!=="properties"]),k.add(l);M=_.O(Object.keys(R));for(l=M.next();!l.done;l=M.next())l=l.value,m.push([l,R[l].readOnly]),k.add(l);M=H();l=_.O(Object.keys(Object.getOwnPropertyDescriptors(N.prototype)));for(var u=l.next();!u.done;u=l.next())u=u.value,!vW_(u)||M.has(u)||k.has(u)||(m.push([u,!1]),k.add(u));m.push(["allowedProps",
!0]);return m},
getPropsToForwardBeforeReady:function(m){var k=[];m=_.O(Object.keys(m));for(var M=m.next();!M.done;M=m.next()){M=M.value;var l=H();vW_(M)&&!l.has(M)&&k.push([M,!1])}m=_.O(K.reactiveSchemas.slice(n));for(M=m.next();!M.done;M=m.next())M=M.value,M.type!=="compute"&&M.type!=="computeWithMethod"&&M.type!=="redux"&&M.type!=="signal"||k.push([M.propertyKey,M.type==="signal"?M.readOnly:!0]);return k},
shouldForwardProp:vW_,shouldLog:MI}};
_.X=function(N,b,S,P){var H,K,C=(K=(H=P)==null?void 0:H.mode)!=null?K:0;P!=null||(P={});var G;(G=P).reactivityMode!=null||(G.reactivityMode=0);C===1&&_.kb("creator_poly_si_disable_list").includes(b)&&(C=2);return C===1?slO(N,b,S,Object.assign({},P,{useSink:!0}),G9e):slO(N,b,S,Object.assign({},P,{useSink:C===2}))};
_.H7=function(){return function(N,b,S,P){var H,K,C=(K=(H=P)==null?void 0:H.mode)!=null?K:2;P!=null||(P={});var G;(G=P).reactivityMode!=null||(G.reactivityMode=0);if(C===0)throw Error("Wg`"+C);return H$f(N,b,S,P,C===1?G9e:void 0)}};
_.sZ=function(N){return _.T("creator_poly_si_killswitch")?!1:_.T("force_all_poly_si_batches")&&(N==="poly_si_all_on_test_check"?0:N)||document.documentElement.hasAttribute("use-signals")?!0:!N||_.T(N+"_holdback_enabled")&&_.T("kevlar_polysi_holdback")?!1:_.T(N)};
K7=function(N){return N?N.icon?N.icon.iconType.toLowerCase():N.customThumbnail?"member":"":""};
rio=function(N){if(!N)return"";N=_.O(N);for(var b=N.next();!b.done;b=N.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=K7(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""};
cip=function(N,b){if(!N)return null;var S;return((S=N.find(function(P){return P&&P.liveChatAuthorBadgeRenderer?K7(P.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:S.liveChatAuthorBadgeRenderer)||null};
_.mep=function(N){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;N=a4u(N);b=a4u(b);var S=RhE(N.hex);b=RhE(b.hex);var P=b[0]/255;var H=b[1]/255,K=b[2]/255,C=Math.max(P,H,K),G=Math.min(P,H,K),a=0,R=0,n=.5*(C+G);C!=G&&(C==P?a=60*(H-K)/(C-G):C==H?a=60*(K-P)/(C-G)+120:C==K&&(a=60*(P-H)/(C-G)+240),R=0<n&&n<=.5?(C-G)/(2*n):(C-G)/(2-2*n));P=[Math.round(a+360)%360,R,n];S=W1b(S,b);for(N=nWO(N.hex);S<4.5;){N=P[2]>=.5?N.darker((4.5-S)/2):N.brighter((4.5-S)/2);S=N.toString();
H=deY(S);if(!H.length)throw Error("Yd`"+S);S=H;S=W1b(S,b)}return N.hex()};
W1b=function(N,b){N=_.DqU(N);b=_.DqU(b);return(Math.max(N,b)+.05)/(Math.min(N,b)+.05)};
_.v7=function(N){return"#"+("000000"+(N&16777215).toString(16)).slice(-6)};
_.k9b=function(N){for(var b=0,S=0;S<N.length;S++)b=N.charCodeAt(S)+((b<<5)-b);N="#";for(S=0;S<3;S++)N+=("00"+(b>>S*8&255).toString(16)).slice(-2);return N};
TTI=function(N){N=(N||"").split(":");N.length===1&&N.unshift("yt-icons");N[1]=N[1].toLowerCase();return N};
L1o=function(N,b){var S=(b=b===void 0?!1:b)?tvb:Mv9,P=b?F1e:BTa;N.getIconNames().forEach(function(H){H=b?H:H.substring(H.indexOf(":")+1);N.name==="yt-icons"?l4u.add(H):H.includes("-filled")?S.add(H):P.add(H)})};
OZ=function(N,b,S,P){S=S===void 0?!1:S;P=P===void 0?!1:P;var H,K,C;return _.r(function(G){if(G.nextAddress==1)return G.yield(f4O,2);if(P)return G.return(l4u.has(N));H=S?tvb:Mv9;K=S?F1e:BTa;return b?(C=N.includes("-filled")?N:N.concat("-filled"),G.return(H.has(C))):G.return(K.has(N))})};
_.C7=function(N){if(uZo(N))return N.toString();var b=Qle.get(N);if(b)return b;b=N.toLowerCase();var S="yt-icons",P=b.replace(/_/g,"-");switch(N){case "MY_CHANNEL":b="account_circle";break;case "ADD_TO_LIBRARY":b="add";break;case "ALERT_WARN_RED":b="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":b="person_music";break;case "BLOCK_USER":b="block";break;case "CAPTIONS":b="closed_caption";break;case "CLOSED_CAPTION":S="av";b="closed-caption";break;case "COLLECTION":S="maps";b="layers";break;case "CONTACT":S=
"icons";b="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":S="yt-studio-system-icons";b=P.split("creator-studio-")[1];break;case "DISMISSAL":b="close";break;case "DO_NOT_DISTURB":b="block";break;case "DOGFOOD":S="icons";b="pets";break;case "DRAFT":b="paper_corner_folded";
break;case "EMPTY_LIKE":b="like_outline";break;case "EXIT_APP":b="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":b=P;break;case "GAMES":S="ytg";b="my-games";break;case "GO_TO_PAGE":b="arrow-forward";break;case "GROUP":S="social";break;case "HIDE":b="not_interested";break;case "INPUT_COMPONENT":S="icons";b="settings-input-component";break;case "KIDS_BLOCK":b="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":S="ytg";b="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":S=
"ytg";b="membership-post-purchase";break;case "MULTIVIEW":b="screen_multi_view";break;case "MY_LOCATION":S="maps";b=P;break;case "NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case "NEXT":b="chevron_right";break;case "OFFLINE":b="power-settings-new";break;case "PAUSE":S="miniplayer";break;case "PAYMENT":S="icons";break;case "PHONE_DOWNLOAD":b="phone_download";break;case "PREMIUM_STANDALONE":S="yt-logos";b="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":S="yt-logos";b="premium_standalone_cairo";
break;case "QUESTION_ANSWER":b="question_answer";break;case "REDEEM":S="icons";b="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":b="library_add";break;case "SCHOOL":S="yt-sys-icons";b="creator_academy";break;case "SETTINGS_LIGHT":b="settings_applications";break;case "SETTINGS_MATERIAL":b="settings";break;case "SEARCH_HISTORY":b="watch_history";break;case "SHOPPING_BAG":b="bag";break;case "SOCIAL":case "PEOPLE":S=
"yt-icons";b="people";break;case "STAFF_PICK":S="ytg";b="spotlight";break;case "START_DVR":b="add";break;case "STOP_DVR":S="av";b="stop";break;case "TAB_LIKED":b="like";break;case "TAB_INBOX":b="mail";break;case "TERMS_OF_SERVICE":S="icons";b="description";break;case "TRENDING":b="fire";break;case "UNBLOCK_USER":b="remove";break;case "UNPLUGGED_DARK_THEME":S="image";b="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":b="live";break;case "UNPLUGGED_SPORTS":S="ytu";b="visibility-off";break;
case "VIDEOS":S="av";b="play-circle-filled";break;case "YOUTUBE":S="yt-logos";b="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":S="yt-logos-ext";b="yt-logo-red-updated";break;case "YOUTUBE_LOGO":S="yt-logos-ext";b="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":S="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":S="shorts";b=P;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":S="yt-sys-icons";b="youtube_improve_tv";break;case "OUTLINE_BAG":S=
"yt-sys-icons";b="bag";break;case "QUEUE_PLAY_LAST":S="yt-sys-icons";b="list_queue_last";break;case "SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case "SPEED_1_POINT_2X":b="1_point_2x";break;case "SPEED_1_POINT_5X":b="1_point_5x";break;case "SPEED_1_POINT_8X":b="1_point_8x";break;case "SPEED_POINT_2X":b="point_2x";break;case "SPEED_POINT_5X":b="point_5x";break;case "SPEED_POINT_8X":b="point_8x";break;case "SPEED_1X":b="1x";break;case "SPEED_2X":b="2x";break;case "TAB_BOOKMARK":b="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":S="yt-sys-icons";b="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":S="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":S="yt-sys-icons",b="tic_tac_toe"}b=S+":"+b;Qle.set(N,b);return b};
uZo=function(N){var b;_.T("kevlar_use_wil_icons")?b=!!_.aN().resolve(_.GS).resolveIcon({iconName:N.toString()}):b=!1;return b};
_.c7=function(N,b,S,P){S=S===void 0?{}:S;P=P===void 0?!1:P;S===null&&(S={});var H=_.kb("kevlar_command_handler_command_banlist");H=_.O(H);for(var K=H.next();!K.done;K=H.next())if(K=N?N.hasOwnProperty(K.value):void 0,K)return!1;H=_.t(N.commandMetadata,_.GY);return P&&H!=null&&H.url?!1:!b.disableCommandHandlerOverride&&_.rG.instance?(P=_.rG.instance,S.form||(S.form={element:b}),S.form.element||(S.form.element=b),!S.clickedVisualElement&&b.visualElement&&(S.clickedVisualElement=b.visualElement),P.resolveCommand(N,
S),!0):!1};
xeI=function(N,b){N=aq(N);for(var S=_.O(N.visibilityMonitorKeys||[]),P=S.next();!P.done;P=S.next())b.unobserveByKey(P.value);N.visibilityMonitorKeys=void 0};
Rq=function(N,b){if(_.Qh()){if(_.T("kevlar_vimio_use_shared_monitor"))oWO(N,b.data);else if(!oWO(N,b.data))return;var S=b.data,P=i$9(S);if(_.T("enable_client_ve_spec_logging"))xeI(N,b.observer);else{var H=aq(N);H.trackedParams&&H.trackedParams!==P&&xeI(N,b.observer)}H=aq(N);!S||H.data&&H.data===S||(H.data=S);Jis(N,b);H.trackedParams=P}};
Jis=function(N,b){var S=b.observer;if(!S&&_.T("web_skip_missing_vimio_observer")){var P,H;_.$h(new _.jU("VisibilityObserver is not defined.",N.tagName,N.trackedParams,(P=b.data)==null?void 0:P.trackingParams,(H=b.data)==null?void 0:H.loggingDirectives))}else{var K=b.layer,C=b.visibilityCallback||function(){},G=b.prescanCallback,a=aq(N);
P=[];b.showOption&&P.push(S.observe(N,function(){b.skipLogging&&b.skipLogging()||_.W7().reportShown(a,void 0,K,7);C(!0)},b.showOption));
b.hideOption&&P.push(S.observe(N,function(){_.W7().reportHidden(a,void 0,K,7);C(!1)},b.hideOption));
b.prescanOption&&G&&P.push(S.observe(N,function(){G()},b.prescanOption));
a.visibilityMonitorKeys=P}};
oWO=function(N,b){N=aq(N);if(N.visualElement&&!b)return!0;if(!b)return!1;var S=!1;if(_.T("enable_client_ve_spec_logging")){var P,H;S=!!((P=b.loggingDirectives)==null?0:(H=P.clientVeSpec)==null?0:H.uiType)}P=i$9(b);if(!P&&!S)return!1;_.T("mweb_component_visibility_logging")&&(N.veContainer||(N.veContainer={}),N.veContainer.trackingParams=P);if(N.trackedParams&&N.trackedParams===P)return!1;var K;if(_.T("enable_client_ve_spec_logging")&&((K=N.visualElement)==null?0:K.isClientVe())){var C;K=(C=N.visualElement)==
null?void 0:C.getAsJspb();var G,a,R,n;if(_.tg(K,2)===((G=b.loggingDirectives)==null?void 0:(a=G.clientVeSpec)==null?void 0:a.uiType)&&_.tg(K,3,-1)===((R=b.loggingDirectives)==null?void 0:(n=R.clientVeSpec)==null?void 0:n.elementIndex))return!1}if(_.T("enable_client_ve_spec_logging")){var d,m;!N.visualElement&&((d=b.loggingDirectives)==null?0:(m=d.clientVeSpec)==null?0:m.uiType)&&(G=b.loggingDirectives.clientVeSpec,b=G.uiType,C=G.elementIndex,G=G.clientYoutubeData,N.visualElement=_.n7(_.dG(),{veType:b,
elementIndex:C,clientYouTubeData:G}))}return!0};
i$9=function(N){if(N==null?0:N.rendererContext){var b=_.t(N.rendererContext,_.mt);if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams}return(N==null?0:N.loggingDirectives)?N.loggingDirectives.trackingParams:N==null?void 0:N.trackingParams};
aq=function(N){var b;return(b=N.polymerController)!=null?b:N};
zhb=function(N){_.W7();if(_.$U(kH().JSC$12961_elementShouldLogGesture).bind(kH())(N,4)){Ueu(N);var b=Z$b(N);jla.set(N,b)}};
Ueu=function(N){jla.has(N)&&(jla.get(N).cancel("untrack hover element"),jla.delete(N))};
Z$b=function(N){var b,S=[],P=!1,H=new _.u5(function(K,C){TS(N,"mouseenter",_.$U(function(){var G,a,R;return _.r(function(n){if(n.nextAddress==1)return b=(0,_.nh)(),G=AiI(N),S.push(G),a=XDL(N,function(){P=!0;C(Error("Xg"))}),n.yield(G,2);
if(n.nextAddress!=3)return a&&Mu(a),R=EWs(N),S.push(R),n.yield(R,3);K();_.Zd(n)})}))});
H.then(function(){var K=(0,_.nh)()-b;K=Math.round(K);if(!(500>K||6E5<=K)){var C=N.getScreenLayer?N.getScreenLayer():void 0;C=_.Qh(C)||"";var G=pDu(_.W7(),N);_.Im(C,N.visualElement?N.visualElement:_.FA(G),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:K}})}zhb(N)},function(){B7&&(B7(),B7=null);
P&&(Ueu(N),zhb(N))});
return H};
AiI=function(N){var b;return(new _.u5(function(S,P){B7=function(){P(Error("Yg"))};
b=_.Dj.debounce(_.$U(function(){Mu(H);S()}),1,100);
var H=_.lH(N,"mousemove",b)})).thenCatch(function(){var S=_.Dj.cancelDebouncedJobMap.get(b);
S&&_.Dj.cancelJob(S)})};
EWs=function(N){var b;return(new _.u5(function(S,P){B7=function(){P(Error("Zg"))};
b=TS(N,"mouseleave",_.$U(function(){S()}))})).thenCatch(function(){Mu(b)})};
XDL=function(N,b){return TS(N,"mouseleave",_.$U(b))};
yia=function(N){YzL&&_.L7.cancel(YzL);YzL=_.L7.run(function(){_.bC(N,"yt-visibility-refresh");YzL=0})};
I49=function(N){N=Number(N);return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
Vva=function(N){if(!N)return!1;if(_.t(N,_.Deo))return!0;var b;if(N=(b=_.t(N,_.vN))==null?void 0:b.commands)for(b=_.O(N),N=b.next();!N.done;N=b.next())if(_.t(N.value,_.Deo))return!0;return!1};
gWa=function(N){var b=!0;b=b===void 0?!0:b;if(!N.useSignals&&!N.experimentalPropertiesChanged||_.T("experimental_templating_behavior_nopatch_killswitch")){var S=N._propertiesChanged;N._propertiesChanged=function(P,H,K){b?N.debounceRender():N.doRender();S&&S.call(N,P,H,K)}}};
ehL=function(N,b){if(N.useSignals||N.experimentalPropertiesChanged)if(_.T("experimental_templating_behavior_nopatch_killswitch"))N.experimentalPropertiesChanged=function(){};
else return;var S=new Set,P=[N].concat(_.IX(N.behaviors));P=_.O(P);for(var H=P.next();!H.done;H=P.next()){H=H.value;for(var K in H.properties)S.has(K)||(N._addPropertyEffect(K,"function",b),S.add(K))}};
$ep=function(){var N=Polymer.Element,b=N._prepareTemplate;N._prepareTemplate=function(){b.call(this);var S=this.prototype;if(S.experimentalTemplatingInUse&&S.experimentalTemplatingInUse()&&S.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.ge(Error("$g"));else{S=this.template.content.childNodes;for(var P=S.length-1;P>=0;P--){var H=S[P];H.nodeName!=="STYLE"&&H.nodeName!=="LINK"&&H.nodeName!=="SCRIPT"&&H.nodeName!=="#comment"&&H.remove()}}}};
hho=function(N){var b=!0;b=b===void 0?!0:b;$ep();var S=N.ready;N.ready=function(){this._template=null;S.call(this)};
ehL(N,b?N.debounceRender:N.doRender)};
wDL=function(N,b,S){if(S===null||S===void 0)return S;var P=AA9(N.tagName.toLowerCase(),b,function(){throw Error("Ub");});
if(P===null)return S;P=qzf[P];var H;if((H=P.isUnwrappable)==null?0:H.call(P,S)){if(P.unwrap)return P.unwrap(S);throw Error("ch");}return P.filterString?P.filterString(N.tagName,b,String(S)):S};
N1o=function(N,b,S){var P=b[b.length-1]!=="$";S=wDL(N,b,S);P?N[b]=S:(P=S==null?null:String(S),NB(N,b.slice(0,-1),P))};
uH=function(N){_.T("mweb_after_render_to_scheduler")?_.Dj.addJob(function(){try{N()}catch(b){_.f7(b)}},8):(bdu.length===0&&requestAnimationFrame(function(){setTimeout(function(){var b=bdu.slice();
bdu.length=0;b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;try{S()}catch(P){_.f7(P)}}})}),bdu.push(N))};
SqE=function(N){if(N){var b=N.component;if(b){var S;b==null||(S=b.events)==null||S.publish("DISCONNECTED");var P;b==null||(P=b.onDisconnected)==null||P.call(b)}var H,K;(H=N.__spec)==null||(K=H.didUnmount)==null||K.call(H);for(b=0;b<N.childNodes.length;b++)SqE(N.childNodes[b])}};
_.QN=function(N,b,S){S===void 0?delete N[b.name]:N[b.name]=S};
_.xH=function(N){var b={androidIncludeFontPadding:!1},S=0,P=[],H=[],K=[];if(N.simpleText)return b.content=N.simpleText,b;if(N.runs===void 0)return b.content="",b;N=_.O(N.runs);for(var C=N.next();!C.done;C=N.next()){C=C.value;var G=C.text,a=void 0,R=(a=G)==null?void 0:a.length;if(G&&R){P.push(G);if(C.bold||C.italics||C.strikethrough||C.underline||C.textColor!=null&&C.textColor!==0||C.deemphasize){G=H;a=G.push;var n={startIndex:S,length:R};C.bold&&(n.weightLabel="FONT_WEIGHT_MEDIUM");C.italics&&(n.italic=
!0);C.strikethrough&&(n.strikethrough="LINE_STYLE_SINGLE");C.underline&&(n.underline="LINE_STYLE_SINGLE");C.textColor!=null&&C.textColor!==0?document.documentElement.hasAttribute("dark")?n.fontColor=C.darkModeTextColor||C.textColor:n.fontColor=C.textColor:C.deemphasize&&(document.documentElement.hasAttribute("dark")?n.fontColor=parseInt("ff"+PaY("#aaa").substring(1),16):n.fontColor=parseInt("ff"+PaY("#606060").substring(1),16));a.call(G,n)}C.navigationEndpoint&&(G=K,a=G.push,n={startIndex:S,length:R,
onTap:{innertubeCommand:C.navigationEndpoint}},C.loggingDirectives&&_.QN(n,HdY,C.loggingDirectives),a.call(G,n));S+=R}}b.content=P.join("");b.styleRuns=H.length?H:void 0;b.commandRuns=K.length?K:void 0;return b};
KPe=function(N){if(N==null||!N.runs)return!0;N=_.O(N.runs);for(var b=N.next();!b.done;b=N.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||_.t(b,oq)||_.t(b,sge))return!1;return!0};
vc9=function(N,b){return function(S){var P=b.unit;if(P!==S)throw Error("fh`"+N+"`"+P+"`"+S);return b}};
iH=function(N){if(!((N==null?0:N.value)&&(N==null?0:N.unit)))return"";switch(N.unit){case "DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px"}N=N.value;b==="%"&&(N*=100);return""+N+b};
Od_=function(N){try{return N()}catch(b){_.$h(b)}};
_.UZ=function(N){var b=_.t(N,_.JM);if(b)return b;if((b=_.t(N,Cap))&&b.commands)return GXp(b.commands);if((b=_.t(N,r7f))&&b.commands)return GXp(b.commands);if((N=_.t(N,c7I))&&N.identifier&&N.command&&(a6e||(a6e=[]),!a6e.includes(N.identifier)))return a6e.push(N.identifier),_.t(N.command,_.JM)};
GXp=function(N){if(N.length!==0){var b=[];N=_.O(N);for(var S=N.next();!S.done;S=N.next())(S=_.UZ(S.value))&&b.push(S);return{commandExecutorCommand:{commands:b}}}};
_.jr=function(N){var b=N.defaultTarget,S=N.elementConfig,P=N.elementsCommand,H=N.skipOnClick,K=N.forceNewState,C=N.additionalCommandArgs,G=N.innertubeCommand||_.UZ(P);if(G){N={};var a=Rcb(G);P=a.navigatingCommand;a=a.href;P&&a?(N.href$=a,WPU(N,P,a,b),_.T("web_atagconfig_pointerdown")&&ncu(N,P),K&&(N["force-new-state$"]=!0)):(N.role$="button",N.href$="javascript:void(0);");_.t(G,dRu)&&(N["aria-haspopup$"]=!0);H||(N.onclick=function(R){var n={};if(mRI(R)){var d=(C==null?void 0:C.clickedVisualElement)||
(C==null?void 0:C.getClickedVisualElement)&&C.getClickedVisualElement();d&&(n={clickedVisualElement:d});n=Object.assign({},{form:{element:R.target,event:R,createScreenConfig:n}},C);R.preventDefault();_.ZN(G,n)}});
return Object.assign({},S,N)}};
kXs=function(N){if(N.length){if(N.length===1)return N[0];var b={};_.QN(b,_.vN,{commands:N});return b}};
zS=function(N){return N&&N.href$!=="javascript:void(0);"};
Rcb=function(N){var b,S=((b=_.t(N,_.vN))==null?void 0:b.commands)||[N];N=_.O(S);for(b=N.next();!b.done;b=N.next()){b=b.value;var P=void 0,H=void 0;S=(H=_.t((P=b)==null?void 0:P.commandMetadata,_.GY))==null?void 0:H.url;_.T("web_remove_web_navigation_endpoint_data")||(P=void 0,S=S||((P=_.t(b,T1s))==null?void 0:P.url));if(S&&S!=="/service_ajax"){if(P=_.I$(S,tRo))return N=_.YI(P),{navigatingCommand:b,href:N};_.$h(new _.jU("AttributedString URL could not be sanitized",S))}}return{}};
mRI=function(N){return N.button!==void 0?N.button===0&&!(N.shiftKey||N.altKey||N.metaKey||N.ctrlKey):!(N.shiftKey||N.altKey||N.metaKey||N.ctrlKey)};
WPU=function(N,b,S,P){S=!GW(S);var H,K,C;if((H=_.t(b,_.Wd))!=null&&H.nofollow||(K=_.t(b,_.Iv))!=null&&K.nofollow||(C=_.t(b,_.Hz))!=null&&C.nofollow||S)N.rel$="nofollow";var G;b=((G=_.t(b,_.Hz))==null?void 0:G.target)==="TARGET_NEW_WINDOW"?"_blank":P===void 0?"":P;N.target$=b};
ncu=function(N,b){b.clickTrackingParams&&(N.params={itct:b.clickTrackingParams});N.onpointerdown=function(S){MRa(S)};
N._data=b};
FPs=function(N){(N.loggingUrls||[]).forEach(function(b){Hl(b.baseUrl,b.attributionSrcMode)})};
MRa=function(N){var b=N.currentTarget;N=Od_(function(){return b.href});
var S=b.params;N&&_.e0(N,S||{},8,!0)};
_.AM=function(N,b){(N=_.UZ(N))&&_.ZN(N,b)};
_.ZN=function(N,b){rZf(function(S){b?S.resolveCommand(N,b):S.resolveCommand(N)})};
f6f=function(N,b){var S=["yt-core-attributed-string__link"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?S.push("yt-core-attributed-string__link--overlay-call-to-action-color"):S.push("yt-core-attributed-string__link--call-to-action-color"),(b==null?0:b.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color"));S={className:S.join(" "),tabindex$:"0"};var P=N.onTap||N.onLongPress;if(!P)return S;var H=B1O(N);H&&(S["aria-label$"]=H);b=_.jr({elementsCommand:P,elementConfig:S,skipOnClick:!(b==
null||!b.skipOnClick),forceNewState:!0});N.onLongPress&&(P=new l6U(function(){var K=_.UZ(N.onLongPress);K&&_.aN().resolve(_.Wq).resolveCommand(K)}),b&&LPs(P,b));
return b||S};
B1O=function(N){var b,S;return(b=N.onTapOptions)==null?void 0:(S=b.accessibilityInfo)==null?void 0:S.accessibilityLabel};
u2s=function(N){var b=N;N<=16777215&&(b+=parseInt("ff000000",16));return _.o3(b)};
QgL=function(N){var b=N.isDarkTheme;var S=N.extension;N=N.runColor;var P=void 0;if(S=S==null?void 0:S.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S=_.O(S);for(var H=S.next();!H.done;H=S.next())if(H=H.value,b===H.key){P=H.value;break}}P==null&&N&&(P=N);if(P)return u2s(P)};
XA=function(N){var b=N.config;var S=N.image;var P=N.imageConfig;var H=N.imageWrapperConfig;var K=N.run;var C=N.tag;var G=N.textLength;var a=N.startIndex===void 0?0:N.startIndex;N=N.length;a===void 0&&(a=0);K={run:K,startIndex:a,endIndex:N!==void 0?a+N:G,tag:C};S&&(K.image=S);P&&(K.imageConfig=P);H&&(K.imageWrapperConfig=H);b&&(K.config=b);return K};
xR9=function(N,b){if(N.weight)return N.weight;switch(N.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return b?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
ocp=function(N){switch(N){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
ida=function(N){switch(N){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
YH=function(N,b,S){var P=b;N.content&&S&&(S=N.content.indexOf("\n"),S!==-1&&(P=Math.min(b,S)));if(!N.content||N.content.length<=P)b=N;else if(N.attachmentRuns||N.commandRuns||N.decorationRuns||N.styleRuns||N.paragraphStyleRuns){b=EZ(N.content,P);S=P;var H=N.attachmentRuns;if(H){var K=[];H=_.O(H);for(var C=H.next();!C.done;C=H.next())C=Object.assign({},C.value),C.startIndex===void 0||C.startIndex>=S||(C.length||(C.length=0),C.length+C.startIndex>S&&(C.length=S-C.startIndex),K.push(C));S=K}else S=void 0;
K=J7L(P,N.commandRuns);H=P;var G=N.decorationRuns;if(G){C=[];G=_.O(G);for(var a=G.next();!a.done;a=G.next()){a=a.value;var R=_.t(a.textDecorator,p7);if(R&&R.startIndex!==void 0&&!(R.startIndex>=H)){a=Object.assign({},a,{textDecorator:{highlightTextDecorator:Object.assign({},R)}});R=_.t(a.textDecorator,p7);if(!R.length||R.length+R.startIndex>H)R.length=H-R.startIndex;C.push(a)}}H=C}else H=void 0;C=J7L(P,N.styleRuns);if(G=N.paragraphStyleRuns)for(N=[],G=_.O(G),a=G.next();!a.done;a=G.next()){var n=a.value;
a=Object.assign({},n);if(!(a.startIndex===void 0||a.startIndex>=P)){if(!a.length||a.length+a.startIndex>P)a.length=P-a.startIndex;R=[];var d=void 0,m=void 0;if((d=n)==null?0:(m=d.listGroup)==null?0:m.listItems)for(n=_.O(n.listGroup.listItems),d=n.next();!d.done;d=n.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=P)){if(!d.length||d.length+d.startIndex>P)d.length=P-d.startIndex;R.push(d)}R.length>0&&(a.listGroup||(a.listGroup={}),a.listGroup=Object.assign({},a.listGroup,
{listItems:R}));N.push(a)}}else N=void 0;b={content:b,attachmentRuns:S,commandRuns:K,decorationRuns:H,styleRuns:C,paragraphStyleRuns:N}}else b=Object.assign({},N,{content:EZ(N.content,P)});return b};
J7L=function(N,b){if(b){var S=[];b=_.O(b);for(var P=b.next();!P.done;P=b.next())if(P=Object.assign({},P.value),!(P.startIndex===void 0||P.startIndex>=N)){if(!P.length||P.length+P.startIndex>N)P.length=N-P.startIndex;S.push(P)}return S}};
EZ=function(N,b){var S=b,P;if(P=S>0)P=N.charCodeAt(S-1),P=P>=55296&&P<=56319;P&&(S=N.charCodeAt(S),P=S>=56320&&S<=57343);P&&--b;return N.substring(0,b)};
_.yN=function(N){return(N==null?void 0:N.content)!==void 0};
jgf=function(N){return function(b){var S=N.run;(S.onTap!==void 0||S.onLongPress!==void 0)&&_.t(S,HdY)&&Rq(b,{data:{loggingDirectives:_.t(S,HdY)},observer:_.aN().resolve(Wz),hideOption:URs,showOption:ZdI,layer:b.layer})}};
zcE=function(N){return function(b){for(var S in N)(cz[S]||cz[bD["default"]])(b,S,N[S])}};
A7Y=function(N,b,S,P){for(var H=_.O(N.parts),K=H.next();!K.done;K=H.next()){K=K.value;if(typeof K==="string")throw Error("hh");if(K.start<=b&&S<=K.end){A7Y(K,b,S,P);return}}N.parts.push({data:P,parts:[],start:b,end:S})};
XYf=function(N,b){for(var S=b.parts.length;S>=0;S--){var P=b.parts[S],H=b.parts[S-1],K=S===b.parts.length?b.end:P.start;H=S===0?b.start:H.end;K!==H&&b.parts.splice(S,0,N.slice(H,K));P&&XYf(N,P)}};
EcE=function(N){N.sort(function(b,S){if(b.startIndex<S.startIndex)return-1;if(S.startIndex<b.startIndex)return 1;b=b.endIndex-b.startIndex;S=S.endIndex-S.startIndex;return b>S?-1:S>b?1:0})};
_.pYs=function(N){var b=N.thumbnails;if(b){N={sources:[]};b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P={};P.url=S.url;P.width=S.width;P.height=S.height;N.sources.push(P)}return N}};
Yqu=function(N,b,S,P){if(!b)return N.length>=1?N[N.length-1]:null;if(P)for(var H=_.O(N),K=H.next();!K.done;K=H.next()){K=K.value;var C=void 0,G=(C=K.url)==null?void 0:C.indexOf(P);if(G!==void 0&&G>=0)return K}P=_.O(N);for(H=P.next();!H.done;H=P.next())if(H=H.value,H.width&&H.height&&(S&&H.width>=b||!S&&H.height>=b))return H;for(b=N.length-1;b>=0;b--)if(S&&N[b].width||!S&&N[b].height)return N[b];return N[0]};
_.y7b=function(N){var b;return(N=(b=N.sources)==null?void 0:b[0])?N.width/N.height:0};
_.I6s=function(N){if(N.sources){N=_.O(N.sources);for(var b=N.next();!b.done;b=N.next()){b=b.value;var S=void 0;if((S=b.clientResource)==null?0:S.imageName)return b}}};
VRu=function(N){var b={};N=_.t(N.processor,DRs);var S=(N=N==null?void 0:(S=N.imageTint)==null?void 0:S.color)?_.o3(N):void 0;S&&(b.color=S);return b};
gca=function(N){var b;if((b=N.clientResource)!=null&&b.imageColor)return _.o3(N.clientResource.imageColor)};
_.$Rb=function(N,b,S,P,H,K,C){if(!b||b.length===0||b[0].clientResource)return null;if(S&&b[0].url)return b[0].url;P===void 0&&(P=!0);if(P){var G;N=ecu*(H||(N==null?void 0:(G=N.getBoundingClientRect())==null?void 0:G.width)||0)}else{var a;N=ecu*(K||(N==null?void 0:(a=N.getBoundingClientRect())==null?void 0:a.height)||0)}b=Yqu(b,N,P,C);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null};
hco=function(N,b,S){S=S?[S]:[];N.opacity&&S.push("opacity: "+N.opacity+";");b&&N.placeholderColor?(N=_.o3(N.placeholderColor),S.push("background-color: "+N+";")):S.push("background-color: transparent;");return S.join(" ")};
qqs=function(N,b,S,P,H){var K=["ytCoreImageHost"];b&&K.push(b);S||K.push("ytCoreImageFillParentHeight");P||K.push("ytCoreImageFillParentWidth");switch(N.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":K.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":K.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":K.push("ytCoreImageContentModeCenter");break;default:K.push("ytCoreImageContentModeScaleToFill")}N.flipForRtlLayout&&K.push("ytCoreImageFlipRtl");
switch(H){case "TOP_START":var C;K.push(((C=document.body)==null?void 0:C.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return K.join(" ")};
Nge=function(N){var b;if(N==null?0:(b=N.clientResource)==null?0:b.imageName){var S;N=(S=N.clientResource)==null?void 0:S.imageName;a:{switch(N){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":S="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":S="yt-logos-ext:yt-logo-updated";break a}S=void 0}return S||wYs.get(N)||N}};
PsE=function(N){return _.T("mweb_wiz_skip_render")?beI(N):S8L(N)};
beI=function(N){return function(b){var S=Oxo("wink-root");s2=S_.lastChild;CxE();ifU(S,_.c(N,b))}};
S8L=function(N){var b=b===void 0?!1:b;return function(S){if(!b||!_.T("mweb_skip_keto_to_c3_if_no_data")||S.data!==void 0){var P=d8(!1);try{var H=S.children;_.T("mweb_render_outside_patch_killswitch")||S_?H?rb(_.c(N,S,H)):rb(_.c(N,S)):_.$h(new _.jU("ketoToC3 called outside of a patch",{tagName:N.TAG_NAME}))}finally{d8(P)}}}};
Hep=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Kxp=function(N,b){N.onViewportEntered=b;sGb.observe(N)};
vke=function(){var N={rootMargin:"10%",threshold:.01};_.T("mweb_enable_set_io_root_to_null_safari")?N.root=null:_.T("mweb_enable_set_io_root_to_body_safari")&&(N.root=document.body);return new IntersectionObserver(function(b,S){b.filter(function(P){return P.intersectionRect.height>0}).forEach(function(P){P=P.target;
if(!_.T("mweb_enable_only_update_image_when_connected")||P.isConnected!==!1){var H;(H=P.onViewportEntered)==null||H.call(P);S.unobserve(P)}})},N)};
OeL=function(N,b,S,P,H){function K(){if(P){var G=P.loadedClass,a=P.notifyOnUnloaded;G&&_.Iq(N,G);a&&N.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function C(){var G=S(b,N);G&&N.getAttribute("src")!==G&&(_.T("mweb_enable_only_update_image_when_connected")&&N.isConnected===!1||G===N.src||(N.src=G),K())}
H=H===void 0?!0:H;N.removeAttribute("src");K();b&&(H?Kxp(N,C):C())};
CsU=function(N,b,S){if(!b)return!1;b=S(b,N);S=N.getAttribute("src");return b&&b===S&&N.complete};
GeO=function(N,b){for(var S in b)S==="className"?N.className=b[S]:(cz[S]||cz[bD.default])(N,S,b[S])};
cLL=function(N,b,S){S=S===void 0?!1:S;var P=N.sources!==void 0?N:_.pYs(N);if(P){var H=b.onload;b.onload=function(R){var n=R.target;S&&n.naturalWidth===120||_.DN(n,"ytCoreImageLoaded");b.notifyOnLoaded&&n.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));H==null||H(R)};
b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var K=_.I6s(P),C=K&&Nge(K),G=VRu(P);if(C)return(N=gca(K)||G.color)&&(b.color=N),{type:"icon",iconName:C,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(N.sources===void 0){b.alt=N.accessibility&&N.accessibility.accessibilityData&&N.accessibility.accessibilityData.label||b.alt;b.style$=hco(N,b.shouldShowPlaceholder,b.style$);var a;b.isPreloaded=
!((a=_.t(N,rLe))==null||!a.isPreloaded)}b.contentMode&&!P.contentMode&&(P.contentMode=b.contentMode);b.className=qqs(P,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="ytCoreImageLoaded";return{type:"image",image:P,config:b}}};
_.VN=function(){var N=_.$I.apply(0,arguments);return _.GQ(aPb,function(b){var S=N.map(function(P){return P==null?void 0:P(b)});
return function(){return void S.forEach(function(P){return void(P==null?void 0:P())})}})};
R1s=function(N,b){var S=b==null?void 0:b.initial;return _.UB(function(){_.he(!0);return S=N(S)},{equals:b==null?void 0:b.isEqual},"rSlKsc")};
Wxf=function(N,b){if(N===b)return!0;if(N===void 0||b===void 0)return!1;var S,P,H,K,C,G,a,R;return N.content===b.content&&((S=N.styleRuns)==null?void 0:S.length)===((P=b.styleRuns)==null?void 0:P.length)&&((H=N.commandRuns)==null?void 0:H.length)===((K=b.commandRuns)==null?void 0:K.length)&&((C=N.attachmentRuns)==null?void 0:C.length)===((G=b.attachmentRuns)==null?void 0:G.length)&&((a=N.decorationRuns)==null?void 0:a.length)===((R=b.decorationRuns)==null?void 0:R.length)};
doo=function(N){return N.parts.map(nkI)};
nkI=function(N){if(typeof N==="string")return N;var b=N.data;N=b.image!==void 0&&b.imageConfig!==void 0?_.c("span",{el:_.VN(zcE(N.data.imageWrapperConfig))},_.c(_.gG,Object.assign({},{data:N.data.image},N.data.imageConfig))):_.c(N.data.tag,{el:_.VN(jgf(N.data),zcE(N.data.config))},N.parts.map(nkI));return uD(N)};
moU=function(N,b){return N===b?!0:N===void 0||b===void 0?!1:N.noStyleRuns===b.noStyleRuns&&N.noLinkColor===b.noLinkColor&&N.noEndpoints===b.noEndpoints&&N.headerRuns===b.headerRuns&&N.isOverlay===b.isOverlay&&N.linkInheritColor===b.linkInheritColor&&N.userInput===b.userInput&&N.isHeadline===b.isHeadline};
keY=function(N){return function(){var b,S,P,H,K,C,G,a,R,n,d,m,k,M;return{ariaLabel:(b=N.ariaLabel)==null?void 0:b.call(N),className:(S=N.className)==null?void 0:S.call(N),ellipsisTruncate:(P=N.ellipsisTruncate)==null?void 0:P.call(N),isOverlay:(H=N.isOverlay)==null?void 0:H.call(N),linkInheritColor:(K=N.linkInheritColor)==null?void 0:K.call(N),noEndpoints:(C=N.noEndpoints)==null?void 0:C.call(N),noStyleRuns:(G=N.noStyleRuns)==null?void 0:G.call(N),noLinkColor:(a=N.noLinkColor)==null?void 0:a.call(N),
noPreWrap:(R=N.noPreWrap)==null?void 0:R.call(N),noWrap:(n=N.noWrap)==null?void 0:n.call(N),skipOnClick:(d=N.skipOnClick)==null?void 0:d.call(N),userInput:(m=N.userInput)==null?void 0:m.call(N),headerRuns:(k=N.headerRuns)==null?void 0:k.call(N),isHeadline:(M=N.isHeadline)==null?void 0:M.call(N)}}};
t4E=function(N,b){N=new Tgb(N,b);_.ge(N);throw N;};
M49=function(N,b,S){var P=hg9(N);N._numRenders=0;try{var H=_.NOO(function(){return _.c(b,Object.assign({},S))})}catch(C){var K=function(G){G.args||(G.args=[]);
G.args.push("Error in web component wrapper");G.args.push(N.tagName.toLowerCase());return G};
_.ed(C instanceof Error?K(C):new Tgb("Wiz rendering error",N.tagName.toLowerCase()));throw C;}finally{hg9(P)}return H};
_.qu=function(N,b,S){function P(n){var d={};n=_.O(n);for(var m=n.next();!m.done;m=n.next()){m=m.value;var k=void 0,M=void 0,l=void 0,u=_.av((l=(M=(k=m).getAttribute)==null?void 0:M.call(k,"slot"))!=null?l:"children");if(k=d[u])k.push(m);else if(u in K||u==="children")d[u]=[m]}n=_.O(Object.keys(d));u=n.next();for(m={};!u.done;m={content$jscomp$59:void 0},u=n.next())u=u.value,u!=="children"&&(m.content$jscomp$59=d[u],d[u]=function(J){return function(){return J.content$jscomp$59}}(m));
return d}
S=S===void 0?{}:S;N.debugName=b+" (CoW)";var H,K=(H=S.props)!=null?H:{};qSe.add(b);var C=Fx_();H=function(){var n=C.apply(this,arguments)||this;n.rawProps={};n.queuingRender=!1;n.dispose=function(){};
n.isWebComponentWrapper=!0;n.isReparenting=!1;n.hasRendered=!1;return n};
_.F(H,C);H.prototype.render=function(){this.hasRendered=!0;for(var n=_.O([].concat(_.IX(this.attributes))),d=n.next();!d.done;d=n.next())d=d.value,d.name!=="slot"&&d.name!=="hidden"&&this.removeAttribute(d.name);n=Object.assign({},this.componentProps,this.slotProps);d=_.O(M49(this,N,n));n=d.next().value;d=d.next().value;!(n[0]instanceof Element)||n.length>1?t4E("Wrapped Wiz components must return a single root element.",b):(n=n[0].tagName.toLowerCase(),n!==b&&t4E("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(n+" !== '"+b),b),this.dispose=d)};
H.prototype.setUpProps=function(){for(var n=this.rawProps,d=this.attributes,m=_.O(Object.keys(K)),k=m.next();!k.done;k=m.next()){k=k.value;var M=void 0;((M=this)==null?0:M[k])&&this[k]!==BgI&&n[k]===void 0&&(n[k]=this[k],(M=Object.getOwnPropertyDescriptor(this.constructor.prototype,k))&&Object.defineProperty(this,k,M))}m=_.O(d);for(k=m.next();!k.done;k=m.next()){M=k.value;k=_.av(M.name);var l=k==="class"&&!d.getNamedItem("class-name");if(k in K||l)M=M.value===""||M.value==="true"?!0:M.value==="false"?
!1:isNaN(Number(M.value))?M.value:Number(M.value),k!=="class"||n.className?n[k]=M:n.className=M}d={};for(var u in K)K[u]!==_.er&&K[u]!==lPU&&(n[u]instanceof Function&&t4E("Function props must be configured as STATIC, not SIGNAL.",b),k=_.O(_.QF(n[u],void 0,"tbseob")),m=k.next().value,k=k.next().value,d[u]=k,n[u]=m);n=_.O([n,d]);this.componentProps=n.next().value;this.setters=n.next().value;this.slotProps=P(this.childNodes)};
H.prototype.connectedCallback=function(){b$U.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in K&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
H.prototype.disconnectedCallback=function(){if(!b$U.has(this)){var n;a:{if(_.$H)for(n=this;n;){if(_.hM.has(n)){n=!0;break a}n=n.parentElement}n=!1}if(n)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){n=_.O([].concat(_.IX(this.attributes)));for(var d=n.next();!d.done;d=n.next()){d=d.value;var m=void 0;d.name==="slot"||d.name==="hidden"&&((m=S.unsafeExternallySettableAttributes)==null?0:m.has("hidden"))||this.removeAttribute(d.name)}}this.innerText="";IFe(this)}}};
H.prototype._setPendingPropertyOrPath=function(){};
H.prototype.notifyPath=function(){};
_.d0.Object.defineProperties(H.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var G=_.O(Object.keys(K)),a=G.next(),R={};!a.done;R={prop$jscomp$109:void 0},a=G.next())R.prop$jscomp$109=a.value,a=void 0,((a=S.legacyPolymer)==null?0:a.forwardHostProps)&&EFo.has(R.prop$jscomp$109)||Object.defineProperty(H.prototype,R.prop$jscomp$109,{set:function(n){return function(d){var m=this;b$U.has(this)||(this.setters?Zq(function(){var k,M;return void((M=(k=m.setters)[n.prop$jscomp$109])==null?void 0:M.call(k,d))}):(this.rawProps[n.prop$jscomp$109]=d,this.queuingRender&&n.prop$jscomp$109===
"data"&&d!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(R),
get:LxL.has(R.prop$jscomp$109)?void 0:function(){return BgI}});
customElements.define(b,H)};
_.fPE=function(N,b){return(N=_.wG(N,b))?_.YI(_.VK(N)):null};
_.NE=function(N){if(N=_.wG(N,Number.MAX_VALUE,void 0,"width"))return _.VK(N)};
_.wG=function(N,b,S,P){P=P===void 0?"width":P;if(!N||!N.length)return null;if(_.T("kevlar_tuner_should_always_use_device_pixel_ratio")){var H=window.devicePixelRatio;_.T("kevlar_tuner_should_clamp_device_pixel_ratio")?H=Math.min(H,_.d7("kevlar_tuner_clamp_device_pixel_ratio")):_.T("kevlar_tuner_should_use_thumbnail_factor")&&(H=_.d7("kevlar_tuner_thumbnail_factor"));uSa=H}else uSa||(uSa=window.devicePixelRatio);H=uSa;_.T("kevlar_tuner_should_always_use_device_pixel_ratio")?b*=H:H>1&&(b*=H);if(_.T("kevlar_tuner_min_thumbnail_quality"))return N[0].url||
null;H=N.length;if(_.T("kevlar_tuner_max_thumbnail_quality"))return N[H-1].url||null;if(S)for(var K=0;K<H;K++)if(N[K].url.indexOf(S)>=0)return N[K].url||null;for(S=0;S<H;S++)if(N[S][P]>=b)return N[S].url||null;for(b=H-1;b>0;b--)if(N[b][P])return N[b].url||null;return N[0].url||null};
okO=function(){bo.size?setTimeout(function(){Sa(QGs)},0):xo9=0};
QGs=function(){var N=(0,_.nh)(),b=null,S=!1;bo.forEach(function(H){H.loaded=!0;H.loadTime=N;H.pendingPaint=!1;var K=ieL.get(H);K&&K.resolve(N);b=H;S||!H.ftlEligible&&H.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(S=!0)});
var P;((P=b)==null?0:P.markDirty)&&b.markDirty();bo.clear();xo9=0;S&&JLe(N)};
UoL=function(N){bo.add(N);N.pendingPaint=!0;xo9||(xo9=_.PX(_.Dj,okO))};
Zee=function(N){N.loaded=!1;N.loadTime=Infinity;var b=ieL.get(N);b&&(b.reject(Error("nh")),ieL.delete(N));N.pendingPaint&&(bo.delete(N),N.pendingPaint=!1)};
_.jGs=function(N){var b=N.indexOf(":");return b===-1?{originalName:N}:{originalName:N.substring(0,b),datasyncId:N.substring(b+1)}};
_.ALU=function(){return _.r(function(N){if(z1a!==void 0)return N.return(z1a);z1a=new Promise(function(b){var S;return _.r(function(P){switch(P.nextAddress){case 1:return _.u4(P,2),P.yield(_.HX.open("test-only"),4);case 4:return P.yield(_.HX.delete("test-only"),5);case 5:_.su(P,3);break;case 2:if(S=_.UE(P),S instanceof Error&&S.name==="SecurityError")return b(!1),P.return();case 3:b("caches"in window),_.Zd(P)}})});
return N.return(z1a)})};
pxL=function(){return _.r(function(N){if(N.nextAddress==1)return N.yield(_.ALU(),2);if(!N.yieldResult)return N.return(void 0);Xxa||(Xxa=new Eka);return N.return(Xxa)})};
Y8O=function(N){var b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return K.yield(pxL(),2);case 2:b=K.yieldResult;if(!b)throw Error("ph");return K.yield(b.open("yt-player-local-img"),3);case 3:return S=K.yieldResult,K.yield(S.match(N),4);case 4:P=K.yieldResult;if(!P)throw Error("qh");return K.yield(P.blob(),5);case 5:return H=K.yieldResult,K.return(H)}})};
yL_=function(N,b){for(var S in N)if(N.hasOwnProperty(S)&&b[S])return S;return null};
IPO=function(N){return"stamp"+N.replace("-","_")+"_"};
DoO=function(N){var b=N.match(/\[\[([\w\.]+)\]\]/);if(b&&b.length>1)return b[1];_.ge(Error("sh`"+N));return null};
V4L=function(N){return N===void 0?_.g8("REUSE_COMPONENTS",!1):N||!1};
$oa=function(N,b,S){S&&(b.is?(gkE.has(b)&&(N=gkE.get(b),S=N.listener,delete b[N.property],S.type==="element"&&b.removeEventListener(S.eventName,S.handler),gkE.delete(b)),e1U(b)):b.__proto__==HTMLElement.prototype&&(b=new _.jU("Rendererstamper removed a non custom element","Stamper: "+N+" element: "+(b&&b.nodeName)),_.$h(b)))};
h1Y=function(N,b,S,P){var H=b.node?b.node:b;_.H4(S).parentNode===H&&(b.removeChild(S),$oa(N,S,P));if(N=sb.get(S))sb.delete(S),_.Dj.cancelJob(N);S.hidden=!1};
q8U=function(N,b,S,P){if(b&&b.children&&(S=b.children[S]))if(_.g8("DEFERRED_DETACH"))for(;S&&!sb.has(S);){var H=N,K=b,C=S,G=P;C.hidden=!0;H=_.XC(_.Dj,h1Y.bind(null,H,K,C,G),0);sb.set(C,H);S=S.nextElementSibling}else for(;(C=b.lastElementChild)&&(b.removeChild(C),$oa(N,C,P),C!=S););};
_.KU=function(){for(var N=_.$I.apply(0,arguments),b=!0,S=_.O(N),P=S.next();!P.done;P=S.next())if(typeof P.value!=="string"){b=!1;break}return b?N.join(" ").trim()||void 0:function(){for(var H="",K=_.O(N),C=K.next();!C.done;C=K.next())if(C=C.value,typeof C==="function"&&(C=C()),C)if(typeof C==="string")H+=" "+C;else for(var G in C)if(C.hasOwnProperty(G)){var a=C[G];typeof a==="function"&&(a=a());a&&(H+=" "+G)}H=H.trim()||void 0;return _.he(H)}};
_.wxs=function(N,b){return _.GL(N.entities,"markersEngagementPanelSyncEntity",b)};
_.vX=function(N,b){return _.GL(N.entities,"playerStateEntity",b)};
NBf=function(N,b){return _.GL(N.entities,"fantasyWinProbabilityEntity",b)};
bJu=function(N,b){return _.GL(N.entities,"fantasyTeamEntity",b)};
Sfu=function(N,b){return _.GL(N.entities,"fantasyPlayerEntity",b)};
PeE=function(N,b){return _.GL(N.entities,"booleanEntity",b)};
HJs=function(N,b){return _.GL(N.entities,"qrCodeEntity",b)};
sPO=function(N){return _.GL(N.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
vL9=function(N){var b;return(b=K$u[N])!=null?b:"EVENT_SPAN_TYPE_UNKNOWN"};
OJO=function(N){var b=N.nodeName;if(N.id)return b+="#"+N.id;if(N.classList)for(var S=_.O(N.classList),P=S.next();!P.done;P=S.next())b+="."+P.value;N.parentElement&&(b=OJO(N.parentElement)+" > "+b);return b};
Cep=function(N){return function(b){var S=vL9(b.type);return S==="EVENT_SPAN_TYPE_UNKNOWN"?N(b):$R("event",{type:S,nodepath:b.target instanceof Element?OJO(b.target):void 0},function(){return N(b)})}};
_.Ob=function(N){N&&et("event")&&(N=Cep(N));return fzU(function(b){var S,P=(S=N)==null?void 0:S(b);return typeof P==="boolean"?P:!0})};
CU=function(N){return function(){return N()?N():void 0}};
aEe=function(N){var b=_.Ct("animated-rolling-character"),S=IVe(),P=Vh(N.character)||Vh(N.previousCharacter),H=_.O(Dbu()),K=H.next().value,C=H.next().value;_.YU(function(){if(window.ResizeObserver&&_.T("web_fix_rolling_numbers_zoom_safari")){var G=new _.GR(function(){var R,n,d=Math.round(((n=(R=b.value.querySelector("div"))==null?void 0:R.getBoundingClientRect().height)!=null?n:0)*100)/100;d&&C(d)},500),a=new ResizeObserver(function(){G.fire()});
a.observe(b.value);return function(){a.disconnect();G.dispose()}}});
Z6u(function(){var G=_.T("web_fix_rolling_numbers_zoom_safari")?K:N.marginMultiplier;if(G){var a;(a=S.value)==null||a.cancel();P?(a=N.previousCharacter?Number(N.previousCharacter)+10:N.rollUp?0:30,N.shouldAnimate||(a-=G0u(N,a))):(a=N.rollUp?0:2,N.shouldAnimate||(a-=N.rollUp?-1:1));b.value.style.marginTop="-"+a*G+"px";N.shouldAnimate?S.value=rE9(b.value,N,a,P,G):b.value.style.display=N.character?"":"none"}});
return _.c("animated-rolling-character",{el:b,class:"animatedRollingCharacterHost"},MHs(P,function(){for(var G=[],a=1;a<30;a++)G.push(_.c("div",null,a%10));return _.c(_.nM,null,_.c("div",null,"\u00a0"),G,_.c("div",null,"\u00a0"))},function(){return cEI(N.character)}))};
cEI=function(N){return _.c(_.nM,null,_.c("div",null,"\u00a0"),_.c(_.nM,null,MHs(!N||_.Oe(N),function(){return _.c("div",null,"\u00a0")},function(){return _.c("div",null,N)})),_.c("div",null,"\u00a0"))};
rE9=function(N,b,S,P,H){S=new Animation(new KeyframeEffect(N,[{transform:"translateY(0px)"},{transform:"translateY("+(P?G0u(b,S):b.rollUp?-1:1)*H+"px)"}],Rks),document.timeline);b.character?(N.style.display="",S.onfinish=null):S.onfinish=function(){N.style.display="none"};
S.play();return S};
G0u=function(N,b){var S=Number(N.character)+10;if(N.previousCharacter)if(N.character){var P=Number(N.character),H=Number(N.previousCharacter);N=N.rollUp?H<P?S:S+10:H<P?S-10:S}else N=N.rollUp?30:0;else N=N.character==="0"?S:N.rollUp?S-10:S+10;return b-N};
W$u=function(N){return function(b){var S={},P;for(P in b){var H=void 0,K=void 0;((H=void 0)==null?0:(K=H.callbacks)==null?0:K[P])||(S[P]=b[P])}return _.c(wmI,null,function(){for(var C in S)b[C]=_.he(S[C]);b.disableReactiveLogging=!0;return _.c(N,Object.assign({},b))})}};
map=function(N,b,S,P,H,K,C){S=new Animation(new KeyframeEffect(N,[{transform:"translateY(0px)"},{transform:"translateY("+(K?nLb(b,S,P,H):P?-1:1)*C+"px)"}],daa),document.timeline);b?(N.style.display="",S.onfinish=null):S.onfinish=function(){N.style.display="none"};
S.play();return S};
nLb=function(N,b,S,P){var H=Number(N)+10;b?N?(N=Number(N),b=Number(b),S=S?b<N?H:H+10:b<N?H-10:H):S=S?30:0:S=N==="0"?H:S?H-10:H+10;return P-S};
TBY=function(N){var b=IVe(),S=IVe();Xib(function(){b.value=N.numberText;S.value=N.numberValue},[N.numberText]);
var P=N.fontSizeMultiplier?N.heightPx*N.fontSizeMultiplier:N.heightPx,H=yw9(function(){if(N.numberText){var C=N.numberText;var G=N.forceRollUp||!S.value||!N.numberValue||S.value<N.numberValue;var a=!!N.shouldAnimate,R=b.value,n=[],d=0,m=0,k=(R?R.replace(/\D/g,"").length:0)-(C?C.replace(/\D/g,"").length:0);R=R?R.split(/(\d)/).filter(Boolean):[];for(C=C.split(/(\d)/).filter(Boolean);k<0;){var M=C[m];n.push({character:M,rollUp:G,marginMultiplier:P,shouldAnimate:a});m++;Vh(M)&&k++}for(;d<k;)M=R[d],n.push({previousCharacter:M,
rollUp:G,marginMultiplier:P,shouldAnimate:a}),d++,Vh(M)||k++;for(;m<C.length;)k=C[m],M=R[d],Vh(k)===Vh(M)?(m++,d++):Vh(k)?(d++,k=void 0):Vh(M)&&(m++,M=void 0),n.push({character:k,previousCharacter:M,rollUp:G,marginMultiplier:P,shouldAnimate:a});G=n}else G=[];return G},[N.numberText]),K=N.numberText?["height: "+P+"px;",
"line-height: "+N.heightPx+"px;"].join(" "):"";return _.c("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:K,dir:"ltr","aria-hidden":"true"},H.map(function(C){return _.c(k0u,Object.assign({},C))}))};
tQb=function(N){switch(N){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.MQe=function(N,b){if(!N&&!b)return"medium";N=Math.max(N||0,b||0);return N>=256?"large":N>=96?"medium":"small"};
F$Y=function(N){switch(N){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
BBa=function(N){return new KeyframeEffect(N,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
lEo=function(N){return new KeyframeEffect(N,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.r5=function(N){return function(){var b="",S;for(S in N){for(var P=N[S];typeof P==="function";)P=P();P!==void 0&&P!==null&&(b+="; "+S+": "+P)}return b.length>0?_.he(b.slice(2)):_.he()}};
L$O=function(N){switch(N){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
fE9=function(N,b){if(b)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(N)switch(N){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
iJU=function(N,b,S,P,H,K,C){var G=u9p(N),a=G.disabled,R=G.iconPosition,n=G.style,d=G.focused,m=function(){return!!l()&&R()==="icon-only"},k=function(){return!!l()&&R()==="icon-only-40"},M=function(){return!!l()&&R()==="icon-with-label"},l=function(){return!!b||!(P==null||!P())};
return{type:function(){return n()==="call-to-action-inverse"?"text":n()==="overlay-dark"&&N().type!=="filled"&&N().type!=="tonal"?"tonal":N().type},
shouldFocus:function(){return(d()||(K==null?void 0:K()))&&!a()},
hasIconLeading:function(){return!!l()&&R()==="leading"},
hasIconTrailing:function(){return!!l()&&R()==="trailing"},
hasIconLeadingTrailing:function(){return!!l()&&!!(S||H!=null&&H())&&R()==="leading-trailing"},
hasIconOnly:m,hasIconOnly40:k,hasIconWithLabel:M,iconButton:function(){return m()||k()||M()},
visiblyDisabled:function(){return(a()?"disabled":N().state)==="disabled"||a()},
overrideSmallSizeIcon:function(){return!N().ignoreIconSizeOverride&&QP9(N(),l())},
iconToRender:b?b:function(){return _.c(_.cX,{icon:P,gradientColor:function(){var u;return(u=N().customColors)==null?void 0:u.iconGradientColor},
size:function(){return xab(N(),!0,N().ignoreIconSizeOverride)},
active:function(){return N().toggled},
iconFilter:function(){return oLU(N())},
animateIcon:C})},
secondaryIconToRender:S?S:function(){return _.c(_.cX,{icon:H,size:function(){return xab(N(),!0,N().ignoreIconSizeOverride)},
active:function(){return N().toggled},
iconFilter:function(){return oLU(N())}})}}};
u9p=function(N){return{size:function(){return N().size},
style:function(){return N().style},
focused:function(){return N().focused},
disabled:function(){return N().disabled},
onTap:function(b){var S,P;return(P=(S=N()).onTap)==null?void 0:P.call(S,b)},
alignByText:function(){return N().alignByText},
aTagConfig:function(){return N().aTagConfig},
customColors:function(){return N().customColors},
segmentedPosition:function(){return N().segmentedPosition},
toggled:function(){return N().toggled},
toggleable:function(){return N().toggleable},
accessibilityLabel:function(){return N().accessibilityLabel},
onToggle:function(b){var S,P;return(P=(S=N()).onToggle)==null?void 0:P.call(S,b)},
iconPosition:function(){return N().iconPosition},
oneOffCustomTextWrap:function(){return N().oneOffCustomTextWrap},
disableTextEllipsis:function(){return N().disableTextEllipsis},
disableBackdropFilter:function(){return N().disableBackdropFilter},
tooltipText:function(){return N().tooltipText},
tooltipShape:function(){return N().tooltipShape},
ariaHidden:function(){return N().ariaHidden},
tabIndex:function(){return N().tabIndex},
buttonText:function(){return N().buttonText},
formattedButtonText:function(){return N().formattedButtonText},
animatedTextProps:function(){return N().animatedTextProps},
onClickRateLimitMs:function(){return N().onClickRateLimitMs}}};
QP9=function(N,b){b=(N.iconPosition==="icon-only"||N.iconPosition==="icon-only-40"||N.iconPosition==="icon-with-label")&&b;return!N.segmentedPosition&&b&&N.size==="S"};
xab=function(N,b,S){switch(N.size){case "XS":return 16;case "S":return!S&&QP9(N,b)?24:16;default:return 24}};
JEo=function(N){switch(N){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
Uaf=function(N){switch(N){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
ZJL=function(N){switch(N){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
oLU=function(N){if(N.style==="overlay-dark"&&N.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
a7=function(N){return N&&N.endsWith("px")?Number(N.slice(0,-2)):0};
AEL=function(N,b){var S=_.O(_.qI(function(){var H,K;return(K=N())!=null?K:b==null?void 0:(H=b())==null?void 0:H.text})),P=S.next().value;
return[function(H){var K=_.UB(function(){var a;return Object.assign({},{location:"bottom",offset:16,delay:1},b==null?void 0:b(),{text:(a=P())!=null?a:""})},void 0,"IJU38d");
_.gA(function(){var a=K();_.fQ(function(){_.Dj.addJob(function(){R7.notify(H,a)},4)})},"WlsgZc");
var C=function(){jPU(H,K())},G=function(){zkp()};
H.addEventListener("mouseenter",C);H.addEventListener("focus",C);H.addEventListener("mouseleave",G);H.addEventListener("blur",G);H.addEventListener("tap",G);_.ej(function(){H.removeEventListener("mouseenter",C);H.removeEventListener("mouseleave",G);H.removeEventListener("focus",C);H.removeEventListener("blur",G);H.removeEventListener("tap",G);zkp()})},
S.next().value]};
ELf=function(N,b){if(!cW){var S;n79(function(){return S=h9O(N,b)});
return S}N.parent=Xa9();return h9O(N,b)};
Xa9=function(){var N=_.RO(cW||void 0,gYs);return _.LVf(N)?void 0:N};
WX=function(N,b){_.ZN(N,Object.assign({},b,{forceClickLogging:!0}))};
paE=function(N){switch(N){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
yEO=function(N,b){var S=_.UZ(N==null?void 0:N.onTap),P={};S&&(P.getClickedVisualElement=function(){var H;return Yfb(N,S,b==null?void 0:(H=b.value)==null?void 0:H.visualElement)});
P=_.jr({elementsCommand:N.onTap,forceNewState:!0,additionalCommandArgs:P});return zS(P)?P:void 0};
IEE=function(N,b,S,P){WX(N,Object.assign({},{form:{element:b,event:S}},P))};
DaI=function(N,b,S,P,H){var K=void 0;return function(C){var G=_.UZ(S?N==null?void 0:N.onDisabledTap:N==null?void 0:N.onTap);if(G){var a;K=(a=K)!=null?a:b==null?void 0:b.value;if(G)if(_.T("web_button_vm_click_client_ve_killswitch"))IEE(G,K,C);else{var R;a=Yfb(N,G,(R=K)==null?void 0:R.visualElement);if(H){IEE(G,H,C,{clickedVisualElement:a,form:{element:H}});return}IEE(G,K,C,{clickedVisualElement:a})}}P&&P(C)}};
Yfb=function(N,b,S){b=b==null?void 0:b.clickTrackingParams;var P,H;N=N==null?void 0:(P=N.loggingDirectives)==null?void 0:(H=P.clientVeSpec)==null?void 0:H.uiType;if(S&&N&&!b)return S};
VQs=function(N){switch(N){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
gLs=function(N){switch(N){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
eka=function(N){switch(N){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
$aI=function(N){switch(N){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
_.nU=function(N){return _.UB(function(){Ni9()();return Pjp(N)},{debugName:"d8B62c"},"DEXkhd")};
hkO=function(N,b){return _.GL(N.entities,"engagementToolbarStateEntityPayload",b)};
wa9=function(N){(N=_.FA(N))&&_.qf9(N)};
_.qf9=function(N){var b=_.Qh();b&&_.ER(b,N)};
Nnb=function(N,b,S){_.St(N,"yt-open-popup-action",[b,S||N])};
bls=function(N,b){var S=_.yg(N,"endpoint"),P=_.yg(N,"action");return(S=P?P:S)&&b&&(S=b.navigationEndpointPopupMap[S])&&(N=_.hl(S,N),(S=_.yg(N,"renderer"))&&b.supportedPopups.hasOwnProperty(S))?{openPopupAction:{popupType:b.popupTypeMap[S],popup:N}}:null};
StE=function(N,b,S,P){if(P){var H;S=S==null?void 0:(H=S.data)==null?void 0:H.contents;(H=S instanceof Array&&S.length?S[0]:S)&&(S=_.yg(H,"renderer"))&&P.supportedPopups.hasOwnProperty(S)&&(b.stopPropagation(),Nnb(N,{openPopupAction:{popupType:P.popupTypeMap[S],popup:H}}))}};
sIE=function(N,b,S,P){P=P===void 0?!1:P;var H=Pp_(b);if(H){H.href&&ZK(H.href);var K=b.button;K=K!==void 0?K===0&&!d5(b):!d5(b);H.data&&K&&HlU(N,H,b,S,P)}};
HlU=function(N,b,S,P,H){H=H===void 0?!1:H;var K=_.d7("pbj_navigate_limit",-1)===0;K4b(b);_.aN().resolve(_.cq(Pz));var C=b.data;if(Object.keys(C).length!==0)if(!_.T("unplugged_web_disable_actions_for_cec_endpoint")&&_.t(C,_.vN))_.T("endpoint_behavior_command_executor_fix_killswitch")||(S.preventDefault(),S.stopPropagation()),_.sR(N,[C],N);else if(P=bls(C,P))C.loggingUrls&&C.loggingUrls.forEach(function(a){a.baseUrl&&_.Pl(a.baseUrl)}),S.preventDefault(),S.stopPropagation(),Nnb(N,P,b);
else{var G=vzY(0,b.data,S);if(N=b.getForm)N=N(),G.tempData=G.tempData||{},G.tempData=Object.assign({},G.tempData,N);N=_.V7(S);if(P=N.find(function(a){return!!a.visualElement}))G.createScreenConfig=G.createScreenConfig||{},G.createScreenConfig.clickedVisualElement=P.visualElement;
if(!K)if(S.preventDefault(),S.stopPropagation(),_.t(C,_.OlE)&&!H&&_.rG.instance)_.rG.instance.resolveCommand(C,G);else if(_.T("kevlar_command_handler_formatted_string")&&!H&&_.rG.instance&&CpE(C))H=N.find(function(a){return!!a.is})||S.target,S={form:Object.assign({},G,{event:S,
element:H,originatingNode:b})},_.rG.instance.resolveCommand(C,S);else{C=_.V7(S);S=[];for(H=0;H<C.length;H++)(K=C[H].is)&&S.push(K);G8f({parents:S.join(","),text:b.innerText},function(){_.bC(b,"yt-navigate",G)})}}};
GKa=function(N){if(N=Pp_(N))K4b(N),PUb(N.href)};
Pp_=function(N){N=_.V7(N);for(var b,S=0;S<N.length;S++)if(b=N[S],b.tagName==="A"&&b.classList.contains("yt-simple-endpoint")){if(!b.data)break;return b}return null};
d5=function(N){return N.shiftKey||N.altKey||N.metaKey||N.ctrlKey};
rtp=function(N,b){var S={itct:b.clickTrackingParams};_.T("kevlar_client_side_screens")&&(!_.t(b,_.kn)||_.T("kevlar_exclude_endpoint_killswitch"))&&(S.endpoint=JSON.stringify(b));_.T("enable_unknown_lact_fix_on_html5")&&_.aN().resolve(_.cq(_.mh))&&(S.lact=_.nv());Nlf(S);_.e0(N,S)};
K4b=function(N){N.href&&Object.keys(N.data).length!==0&&rtp(N.href,N.data)};
CpE=function(N){for(var b=_.O(cts),S=b.next();!S.done;S=b.next())if(N[S.value])return!1;return!0};
avs=function(){if(k9)return k9;if(window.lottie)return k9=Promise.resolve(window.lottie);var N=_.Vb(_.Vg("LOTTIE_URL"));return N?k9=new Promise(function(b,S){var P=document.createElement("script");P.addEventListener("load",function(){b(lottie)});
P.addEventListener("error",function(H){var K="Lottie library failed to load.";H?H.message&&(K+=" Original description: "+H.message,_.hd(H,K)):H=Error(K);_.$h(H);S(H)});
P.setAttribute("async","");_.cM(P,N);document.head.appendChild(P)}):Promise.reject(Error("th"))};
RNo=function(){return k9?k9:avs()};
W4p=function(N){if(N)switch(N){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.T("kevlar_use_wil_icons"))return N=(N=sPO(_.h0().getState()))&&N.animationLightUrl&&N.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:N.animationLightUrl,pathDarkTheme:N.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,N?N:TR.get("LIKE");break;case "LIKE_DELHI_PLAYER":return TR.get("LIKE_DELHI_PLAYER")}};
nzo=function(N){var b=W4p(N);if(b)return b;switch(N){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return TR.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return TR.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return TR.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return TR.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return TR.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return TR.get("NOTIFICATION_BELL")}};
dQs=function(N,b){if(!N.closest)return!1;b=!!W4p(b);return _.Vg("ID_TOKEN")&&b?!!N.closest("segmented-like-dislike-button-view-model")||!!N.closest("yt-player-quick-action-buttons"):!1};
kKY=function(N,b){if(!N||mQ9)b=!1;else{var S;if(!(S=dQs(N,b)))if(N.closest)if(S=!_.Vg("ID_TOKEN"),N=N.closest("ytd-subscription-notification-toggle-button-renderer-next"),S||!N)S=!1;else{var P;S=((P=N.data)==null?void 0:P.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else S=!1;b=S}return b};
TnL=function(N){var b,S;return _.r(function(P){switch(P.nextAddress){case 1:return _.u4(P,2),P.yield(fetch(N),4);case 4:return b=P.yieldResult,P.yield(b.json(),5);case 5:return P.return(P.yieldResult);case 2:S=_.UE(P),_.$h(S),_.Zd(P)}})};
tYb=function(N,b){var S,P,H;return _.r(function(K){if(K.nextAddress==1)return(S=b?N.pathDarkTheme:N.path)?K.yield(Promise.all([TnL(S),avs()]),2):K.return();P=K.yieldResult;H=P[0];t8.set(S,H);_.Zd(K)})};
F4o=function(N,b,S,P){function H(C,G){if(b.value===G&&!b.cancelled){for(;N.firstChild;)N.removeChild(N.firstChild);N.classList.add("ytSpecIconShapeHost");C(N,P)}}
var K=_.MYE(_.aN().resolve(_.GS),S);typeof K==="function"?(b.value=null,H(K,null)):(b.value=K,K.then(function(C){H(C,K)}))};
BnO=function(N,b){var S=document.createElement("div"),P=_.E2(S,function(){return _.c(_.W,{cond:N,then:function(H){return _.c(_.ME,{data:H,options:b})}})},"ca");
return[S,P]};
_.FM=function(N,b){if(b){var S={};lve.forEach(function(P){P=L4s(b,P,"--yt-lightsource-");Object.assign(S,P)});
fvb.forEach(function(P){P=L4s(b,P,"--yt-basic-");Object.assign(S,P)});
_.rq(N,S)}};
L4s=function(N,b,S){var P={};P[S+_.ci(b)]=N&&N[b]?_.o3(N[b]):"";return P};
_.lo=function(N,b,S){BX[N]||(BX[N]={});BX[N][b]=S};
_.LU=function(N){BX[N]||(BX[N]={});return BX[N]};
utO=function(N){if(!N)return{};var b=N.foregroundTitleColor,S=N.backgroundColor;N=N.borderColor;var P="text";N?P="outline":S&&(P="filled");return{type:P,customColors:{color:b?_.o3(b):void 0,backgroundColor:S?_.o3(S):void 0,borderColor:N?_.o3(N):void 0}}};
Jtu=function(N){var b=N.renderer;var S=N.element;var P=N.commandController;var H=N.onTapCallback;var K=N.skipCommandHandling;var C=N.overrides;var G=N.forceIcon;var a=N.forceModernIconButton;var R=N.forceDisabled;var n=N.isSubscribe===void 0?!1:N.isSubscribe;var d=N.isPressed===void 0?!1:N.isPressed;var m=N.useButtonSize===void 0?!1:N.useButtonSize;N=QI9(b);n&&(N.style="mono",N.type="filled");G=!b.icon||!G&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:a?"icon-only":"icon-only-40";G==="icon-only-40"&&(N.type="text");var k;a=Object;n=a.assign;m=xQe(b,m);d=!!b.isSelected||!_.T("web_propagate_is_pressed_killswitch")&&!!d;var M=b.isSelected!==void 0;R=R===void 0?b.isDisabled:R;var l=b.text?_.xH(b.text):void 0;var u,J,Z,D=((u=b.accessibilityData)==null?void 0:(J=u.accessibilityData)==null?void 0:J.label)||((Z=b.accessibility)==null?void 0:Z.label);u=D?D:_.es(b.text);S=ozE(b,S,P,H,K);P=ilb(b);P!=null&&P.length?(P=_.jr({innertubeCommand:kXs(P),
forceNewState:!0}),P=zS(P)?P:void 0):P=void 0;return n.call(a,{},N,m,{iconPosition:G},C,{focused:!1,toggled:d,toggleable:M,disabled:R,formattedButtonText:l,accessibilityLabel:u,onTap:S,aTagConfig:P},utO((k=b.colorData)==null?void 0:k.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})};
ozE=function(N,b,S,P,H){return function(K){var C=ilb(N);P(C,K);if(!H){C=_.O(C);for(var G=C.next();!G.done;G=C.next())WX(G.value,{form:{element:b,event:K},commandController:S})}}};
ilb=function(N){var b=[];N.command&&b.push(N.command);N.serviceEndpoint&&b.push(N.serviceEndpoint);N.navigationEndpoint&&b.push(N.navigationEndpoint);return b};
xQe=function(N,b){if(b)switch(N.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(N.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
QI9=function(N){switch(N.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
UQL=function(N,b){return typeof N!=="object"||N===null?!1:Object.keys(b).every(function(S){return S in N})};
fU=function(N){return Object.fromEntries(Object.keys(N).map(function(b){return[b,b]}))};
Zlb=function(N,b,S){return rHb(S,function(P,H){return function(K){var C=_.$I.apply(1,arguments);return UQL(K,N)?H.apply(null,[K[b]].concat(_.IX(C))):H.apply(null,[K].concat(_.IX(C)))}})};
uo=function(N){return function(b,S){return Zlb(N,b,S)}};
jIu=function(N,b){var S;return(S=_.GL(N,"playlistLoopStateEntity",b))!=null?S:void 0};
zNo=function(N,b){var S;return(S=_.GL(N,"toggleMenuServiceItemEntity",b))!=null?S:void 0};
_.QC=function(N){return N!=null&&N.watch?N.watch.isTheaterMode:!1};
_.x9=function(N){return N!=null&&N.watch?N.watch.isWatchFullscreen:!1};
_.o7=function(N){if(_.AtE(N))return!0;N=_.XTO(N);return _.T("web_watch_enable_single_column_grid_view")?N:!1};
_.AtE=function(N){return N!=null&&N.watch?N.watch.isSwatcherooActive:!1};
_.XTO=function(N){return N.watch.isWatchNarrowWidth};
_.Ezb=function(N){return _.QC(N)||_.x9(N)||_.XTO(N)};
_.pTf=function(N){return N.watch.openEngagementPanels};
_.io=function(N,b){return _.GL(N.entities,"likeStatusEntity",b)};
YtI=function(N,b){return _.GL(N.entities,"likeCountEntity",b)};
_.ytf=function(N,b){return _.GL(N.entities,"stringEntity",b)};
Ivf=function(N,b){return _.GL(N.entities,"dataFreshnessEntity",b)};
DQE=function(N,b){if(!N)return!1;var S,P=(S=_.t(N,_.CA))==null?void 0:S.signal;if(P&&b.signalEndpointMap)return!!b.signalEndpointMap[P];var H;if((S=(H=_.t(N,_.J8))==null?void 0:H.request)&&b.continuationEndpointMap)return!!b.continuationEndpointMap[S];for(var K in N)if(b.commandEndpointMap[K])return!0;return!1};
VYY=function(N,b){if(b.streamingEndpointMap)for(var S in N)if(b.streamingEndpointMap[S]&&(N=b.streamingEndpointMap[S]))return N()};
gzE=function(N,b){var S,P=(S=_.t(N,_.CA))==null?void 0:S.signal;if(P&&b.signalEndpointMap&&(S=b.signalEndpointMap[P]))return S();var H;if((S=(H=_.t(N,_.J8))==null?void 0:H.request)&&b.continuationEndpointMap&&(H=b.continuationEndpointMap[S]))return H();for(var K in N)if(b.commandEndpointMap[K]&&(N=b.commandEndpointMap[K]))return N()};
eNa=function(N){var b={"Content-Type":"application/json"};_.Vg("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=_.Vg("EOM_VISITOR_DATA"):_.Vg("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=_.Vg("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=_.Vg("LOGGED_IN",!1);_.Vg("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=_.Vg("DEBUG_SETTINGS_METADATA"));N!=="cors"&&((N=_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=N),(N=_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
N),(N=_.Vg("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=N),(N=_.Vg("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=N));(N=_.Vg("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=N);return b};
$QY=function(N,b){b.watchNextResponse||b.reelItemWatchResponse?b.watchNextResponse?N.content=b.watchNextResponse:N.content=b.reelItemWatchResponse:b.playerResponse?N.player=b.playerResponse:b.reelWatchSequenceResponse&&(N.reelSequence=b.reelWatchSequenceResponse)};
Ub=function(N){return function(){return new N}};
ZG=function(N){var b=_.aN();return function(){return b.resolve(N)}};
_.ja=function(N){if(!N)return null;for(var b=[],S=0;S<N.textSegments.length;S++){var P=N.textSegments[S];P.text?b.push(P):P.emojiId&&b.push({emoji_id:P.emojiId})}return{text_segments:b}};
bKs=function(N,b,S,P,H,K,C){K=K===void 0?[]:K;var G=new _.zR;G.endpoint=S;if(!S)return _.ed(new _.jU("handle undefined endpoint",b.tagName)),G;var a=k8L(S);a.length&&(_.sR(N,a,b,P),G.actions=a);S.loggingUrls&&S.loggingUrls.forEach(function(n){n.baseUrl&&Hl(n.baseUrl,n.attributionSrcMode)});
a=!_.T("web_skip_impression_click_killswitch")&&P&&P.impression;if(S.clickTrackingParams&&!hNa(S)&&!qto(b)&&!a&&(a=_.dG(),!_.A8(a,b))){var R=b.getScreenLayer&&b.getScreenLayer();R?a.clickCommand(S,null,R):a.clickCommand(S,null)}a=!1;for(R=0;R<K.length;R++)if((0,K[R])(b,S,P)){a=!0;break}!a&&wTY(S)&&(G.ajaxPromise=Nwu(N,b,S,P,H,C));return G};
qto=function(N){var b;return(N=(b=N.data)==null?void 0:b.navigationEndpoint)&&!!N.clickTrackingParams};
hNa=function(N){var b=_.t(N,_.CA);if(b&&(b=b.signal)&&S4U.indexOf(b)>=0)return!0;for(var S in N)if(PgY.indexOf(S)>=0)return!0;return!1};
wTY=function(N){var b;if(((b=_.t(N,_.CA))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var S in N)if(HKb.indexOf(S)>=0)return!1;N=Object.keys(N);return N.length===1&&N[0]==="loggingUrls"?!1:!0};
a8O=function(N,b,S,P,H,K,C){var G=_.XM.instance;if(G&&_.Eb(G,P))var a=_.pU(G,P,H).then(function(n){return(n==null?0:n.data)?n:{data:n}});
else a=N.requestDataForServiceEndpoint(P,H),_.t(P,s1I)||_.t(P,KFI)||_.t(P,_.viI)||_.t(P,OKa)||_.$h(new _.jU("No RequestBuilder for endpoint",P));var R=_.Y9();R.promise.thenCatch(function(){var n=_.yg(P,"action")||_.yg(P,"command")||_.yg(P,"endpoint");n&&(n=P[n],n.hasOwnProperty("onFailureAction")?_.sR(b,[n.onFailureAction],S):n.hasOwnProperty("onFailureCommand")&&_.sR(b,n.onFailureCommand,S));a.cancel("Resolver promise rejected")});
a.then(function(n){if(n){var d=n.error;if(d){if(K&&K.onServerError)K.onServerError(P,n);R.reject(new _.jU("Response error",P,d))}else if(n=n.data)if(d=n.error){if(K&&K.onServerError)K.onServerError(P,n);R.reject(new _.jU("Returned error",P,d))}else{Cga(b,S,n,P);GCO(n);if(d=mbE(n))for(var m=_.O(d),k=m.next();!k.done;k=m.next()){k=k.value;var M=_.aN().resolve(_.cq(ryU))||cys;if(!_.XM.instance||!M.some(function(u){return!!_.t(P,u)})||_.T("kevlar_response_processor_allowlist_killswitch")){var l=M=void 0;
((l=_.t((M=k)==null?void 0:M.commandMetadata,_.GY))==null?0:l.sendPost)?_.HN(b,[k]):_.sR(b,[k],S)}}(m=_.t(n==null?void 0:n.frameworkUpdates,yC))&&C&&C(m);if(K&&K.onSuccess)K.onSuccess(P,n);R.resolve(new _.I7(n,d))}}else R.reject(new _.jU("Invalid service endpoint provided",P))},function(n){R.reject(n)});
return R.promise};
GCO=function(N){var b;(N=(b=_.t(N==null?void 0:N.onResponseReceivedCommand,_.RBo))==null?void 0:b.continuationItems)&&(N==null?void 0:N.length)===1&&_.t(N[0],WF9)&&_.uC("so_r",void 0,"search_overview_answer")};
Nwu=function(N,b,S,P,H,K){var C;return(C=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():_.aN().resolve(_.cq(_.ts)))?a8O(C,N,b,S,P,H,K):_.f7("No network manager.")};
Cga=function(N,b,S,P){if(S=S.trackingParams||S.loggingDirectives&&S.loggingDirectives.trackingParams){var H;(_.t(P,_.DG)||_.t(P,nia)||_.t(P,dxL))&&P.clickTrackingParams?H=_.FA(P.clickTrackingParams):_.T("web_graft_to_parent_command")&&P.clickTrackingParams&&(H=_.FA(P.clickTrackingParams));var K;P=(K=b.getScreenLayer)==null?void 0:K.call(b);b=_.dG().graftServerVe(S,H,P);_.PN(N,"yt-store-grafted-ve-action",[b])}};
_.mxu=function(N){var b=new Image;return new _.u5(function(S,P){b.addEventListener("load",function(){S()});
b.addEventListener("error",function(){P()});
b.src=N})};
kCY=function(N){return!!N};
TwL=function(N){return!!N};
tPp=function(N,b,S){var P=N.rowIndex;P!==void 0&&_.PN(N.hostElement,"yt-section-reactive-dismissal",[P,b,S])};
_.VC=function(N,b,S){N=_.O(N);for(var P=N.next();!P.done;P=N.next()){P=P.value;if(P===b)break;for(var H=_.O(S),K=H.next();!K.done;K=H.next())if(K=K.value,P.tagName===K||!_.T("web_event_button_role_check_killswitch")&&P.role==="button"&&K==="BUTTON")return!0}return!1};
_.ea=function(N,b,S){N=_.O(N);for(var P=N.next();!P.done;P=N.next()){P=P.value;if(P===b)break;for(var H=_.O(S),K=H.next();!K.done;K=H.next())if(P.id===K.value)return!0}return!1};
_.qE=function(){var N=_.aN().resolve(_.cq(_.$9));return N?(N=N.getCurrentPage())?_.h8(N):null:null};
_.w5=function(){var N=_.qE();if(!N){var b=_.aN().resolve(_.cq(_.$9)),S=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;S=new _.jU("Player is missing when requested.",S,b?b.tagName:"no page");_.ge(S)}return N};
_.h8=function(N){return N&&N.getPlayer?N.getPlayer():null};
MPe=function(N,b){N={args:{raw_player_response:N}};b&&(N.args=Object.assign({},N.args,b));return N};
FFL=function(N){if(N.args){if(N.args.raw_player_response)return N.args.raw_player_response;if(N.args.player_response)return JSON.parse(N.args.player_response)}};
_.BwU=function(N,b){var S={url:"/watch?v="+N.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};N.playlistId&&(S.url+="&list="+N.playlistId);N.playerParams&&(S.url+="&pp="+N.playerParams);N={watchEndpoint:N,commandMetadata:{webCommandMetadata:S}};b&&(N.clickTrackingParams=b);return N};
LFL=function(){return l8a||!!_.hl("yt.player.Application")};
uYY=function(){return f8U||!!document.querySelector("link#player-css")};
xxu=function(){function N(){l8a=!0;Q1e.resolve()}
var b,S;return _.r(function(P){Q1e||(Q1e=new _.GB,LFL()?N():(b=document.createElement("script"),b.addEventListener("load",N),S=_.Dg(_.Vg("PLAYER_JS_URL")),_.cM(b,S),document.head.appendChild(b)));return P.return(Q1e.promise)})};
iKp=function(){function N(){f8U=!0;oiY.resolve()}
if(!oiY)if(oiY=new _.GB,uYY())N();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",N);var S=_.Dg(_.Vg("PLAYER_CSS_URL"));_.WM(b,S,"stylesheet");document.head.appendChild(b)}return oiY.promise};
JyL=function(){return LFL()&&uYY()?Promise.resolve([]):Promise.all([xxu(),iKp()])};
Uxu=function(N,b,S){var P={args:{}};N&&(P.args.raw_player_response=N);b&&(P.args.raw_watch_next_response=b);S&&(P.args=Object.assign({},P.args,S));return P};
Ays=function(N,b,S){var P=!1;P=P===void 0?!0:P;N=typeof N==="string"?_.Nb(document,N):N;var H=ZKs+"_"+_.gI(N),K=j1b[H];if(K&&P)return zBa(b,S)?K.api.loadVideoByPlayerVars(b.args||null):K.loadNewVideoConfig(b),K.api;K=new bK(N,H,b,S,void 0);j1b[H]=K;K.addOnDisposeCallback(function(){delete j1b[K.getId()]});
return K.api};
zBa=function(N,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):N&&N.args&&N.args.fflags?N.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
X6E=function(){var N=new _.GB;N.resolved=!1;var b=N.resolve;N.resolve=function(S){N.resolved=!0;b(S)};
return N};
p6E=function(N){var b={};Eis().install((b.document_disposed={callback:N},b))};
SF=function(N,b){if(!N&&Math.random()<=_.d7("kevlar_unified_player_logging_threshold")){N=Error("vh`"+(b?b:"Unspecified error"));if(_.T("kevlar_unified_player_throw_errors"))throw N;_.$h(N)}};
_.Y4U=function(){var N=_.hl("ytDebugData.callbacks");N||(N={},_.aB("ytDebugData.callbacks",N));return N};
I8u=function(N,b){var S=_.Y4U();if(_.T("web_dd_iu")||yyY.includes(N))S[N]=b};
Dx9=function(){return _.r(function(N){return N.return({isLeader:_.hYs(_.h0().getState()),c:_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
VPp=function(){var N;_.r(function(b){if(b.nextAddress==1)return I8u("APP_STATE",Dx9),b.yield(_.aN().resolve(_.Pm),2);N=b.yieldResult;I8u("PI",function(){return _.r(function(S){return S.return(N.getVideoStats())})});
_.Zd(b)})};
gia=function(N){return!!N&&N.length>0&&N[0].loggingUrls!=null&&N[0].loggingUrls.length>0};
eBa=function(){var N=_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(N==null?void 0:N.length)===2?N[1]:null};
$xf=function(N){if(!N)return[];var b=[];N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.loggingUrls){S=_.O(S.loggingUrls);for(var P=S.next();!P.done;P=S.next())P=P.value,P.baseUrl&&b.push(P.baseUrl)}return b};
hB9=function(N){var b=_.gp(_.XV(_.Ps.location.href));N=_.gp(_.XV(N));return _.T("kevlar_clear_non_displayable_url_params")?b==Hm(N):Hm(b)==Hm(N)};
Hm=function(N){var b=_.q4I(N);N=N.slice(0);var S=["frags"];_.T("kevlar_hide_pp_url_param")&&S.push("pp");_.T("kevlar_hide_time_continue_url_param")&&S.push("time_continue");S=_.O(S);for(var P=S.next();!P.done;P=S.next())P=P.value,N=_.$y(_.gp(N),P);return _.gp(N)+(b?"#"+b:"")};
sW=function(N,b){var S=S===void 0?!0:S;b=Number(b)*1E3;var P=Math.round((0,_.nh)()),H=P.toString();N={innertubeResponse:N,serverDateTimestampMs:H,lastModifiedTimestampMs:H,expireTimestampMs:(P+b).toString(),isProcessed:S};if(S=_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME"))N.clientName=S;return N};
NFp=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++w6a};
bys=function(N){return!isNaN(N)&&N>0};
Pds=function(){_.T("web_adaptive_repeat_ase")&&S6p&&_.Dn("applicationStarted",S6p)};
_.Hyp=function(){var N=_.uZ(),b=_.Qh();b&&N&&_.YR(b,[N],!0)};
KUU=function(N){return N&&sVs.some(function(b){return N.includes(b)})};
cUo=function(N){var b=_.t(N,_.Hz);if(!b)return!1;var S=b.url,P=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!S)return _.ge(Error("Ah")),!1;if(b.target==="TARGET_NEW_WINDOW"){b={};_.T("resolve_url_parent_tracking_params")&&(!_.Ol(S)||CE(window.location.href,S))&&(b={endpoint:N,itct:N.clickTrackingParams});Nlf(b);N=null;try{if(P){a:{var H=S,K=b;P=P===void 0?!1:P;K&&_.e0(H,K);var C=_.VK(H),G=_.YI(C);H!=G&&_.qB(Error("Zf`"+H));H=G;try{if(P){G=H;G=b7L(G);ZK(G);N=_.Kg(window,G,"_blank",
"attributionsrc");break a}}catch(m){_.e_(m)}ZK(H);N=_.Kg(window,C,"_blank")}vfa(_.aN().resolve(Oys),N,S);return!0}}catch(m){_.ge(m)}_.e0(S,b);b={target:"_blank",noopener:!1};C=window;G=EL(S)?S:_.VK(typeof S.href!="undefined"?S.href:String(S));P=self.crossOriginIsolated!==void 0;N="strict-origin-when-cross-origin";window.Request&&(N=(new Request("/")).referrerPolicy);H=b.noreferrer;if(P&&H&&N==="unsafe-url")throw Error("we");N=H&&!P;H=b.target||S.target;K=[];var a=[],R=!1;for(d in b){var n=b[d];switch(d){case "width":case "height":case "top":case "left":K.push(d+
"="+n);break;case "target":break;case "noopener":case "noreferrer":n?a.push(d):(R=!0,a.push(d+"=false"));break;case "attributionsrc":K.push(d+(n?"="+n:""));break;default:K.push(d+"="+(n?1:0))}}var d=H!==void 0&&!["_blank","_self","_top","_parent",""].includes(H);d=lY()&&d;Cdu&&P&&K.length===0&&a.length>0&&!d&&!R?(a.length===2&&(a=["noreferrer"]),_.Kg(C,G,H,a[0]),N=G2_()):(d=K.join(","),_.xO()&&C.navigator&&C.navigator.standalone&&H&&H!="_self"?(d=_.U5("A"),qj(d,G),d.target=H,N&&(d.rel="noreferrer"),
((b=b.attributionsrc)||b==="")&&d.setAttribute("attributionsrc",b),b=document.createEvent("MouseEvent"),b.initMouseEvent("click",!0,!0,C,1),d.dispatchEvent(b),d=G2_()):N?(d=_.Kg(C,"",H,d),C=_.YI(G),d&&(d.opener=null,C===""&&(C="javascript:''"),C='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Kf(C)+'">',C=Nt(C),(b=d.document)&&b.write&&(b.write(b4(C)),b.close()))):((d=_.Kg(C,G,H,d))&&b.noopener&&(d.opener=null),d&&b.noreferrer&&(d.opener=null)),N=d);vfa(_.aN().resolve(Oys),
N,S);return!0}d=_.Bq(S);d=KUU(d)||S==="https://studio.youtube.com/";if(_.Ol(S)&&!CE(window.location.href,S)||d)ZK(S),BN(),_.jZ(S,void 0,void 0,window.top,rUY);else return _.$h(new _.jU("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",N)),!1;return!0};
_.WUs=function(N,b){b=b===void 0?0:b;if(!(_.t(N,aXU)||_.t(N,RQp)||_.t(N,_.Hz)&&_.t(N,_.Hz).url))return!1;var S,P=(S=_.t(N,_.Hz))==null?void 0:S.url;S=P?{externalLinkData:{url:P}}:null;return _.dG().clickCommand(N,S,b)};
dCU=function(N,b,S,P,H){H=H===void 0?{}:H;return function(K){var C,G;var a=((C=N.loggingDirectives)==null?0:(G=C.clientVeSpec)==null?0:G.uiType)?_.OW(N.loggingDirectives.clientVeSpec.uiType):void 0;H.clickedVisualElement||(H.clickedVisualElement=a);a=nfY(N,b);S(a,K);a=_.O(a);for(C=a.next();!C.done;C=a.next()){C=C.value;G=P;var R=K,n=H;n.form?n.form.event=R:n.form={element:G,event:R};WX(C,n)}}};
nfY=function(N,b){var S=[];b?(N.toggledCommand&&S.push(N.toggledCommand),N.toggledServiceEndpoint&&S.push(N.toggledServiceEndpoint)):(N.defaultCommand&&S.push(N.defaultCommand),N.defaultServiceEndpoint&&S.push(N.defaultServiceEndpoint),N.defaultNavigationEndpoint&&S.push(N.defaultNavigationEndpoint));return S};
mCL=function(N,b){var S=N.toggledStyle||N.style,P;switch((P=b?S:N.style)==null?void 0:P.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Cf=function(){return _.r(function(N){return N.nextAddress==1?N.yield(_.aN().resolve(_.Pm),2):N.return(_.aN().resolve(k2e)())})};
_.G8=function(){return _.aN().resolve(k2e)()};
_.rx=function(){return{lottieEl:void 0}};
TFI=function(N,b){return N.startsWith(b.uniqueId)};
t5L=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(_.Cf(),2);b=P.yieldResult;if((S=b)==null||!S.addEventListener)return cm(),P.return();b.addEventListener("onCueRangeEnter",N);_.Zd(P)})};
M5L=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(_.Cf(),2);b=P.yieldResult;if((S=b)==null||!S.removeEventListener)return cm(),P.return();b.removeEventListener("onCueRangeEnter",N);_.Zd(P)})};
FUu=function(N){var b,S,P,H,K;_.r(function(C){if(C.nextAddress==1)return C.yield(_.Cf(),2);b=C.yieldResult;if((S=b)==null||!S.addCueRange)return cm(),C.return();P=_.O(N.timings);for(H=P.next();!H.done;H=P.next())K=H.value,b.addCueRange(N.uniqueId+"-"+K,K/1E3,(K+100)/1E3);_.Zd(C)})};
BFa=function(N){var b,S,P,H,K;_.r(function(C){if(C.nextAddress==1)return C.yield(_.Cf(),2);b=C.yieldResult;if((S=b)==null||!S.removeCueRange)return cm(),C.return();P=_.O(N.timings);for(H=P.next();!H.done;H=P.next())K=H.value,b.removeCueRange(N.uniqueId+"-"+K);_.Zd(C)})};
lXI=function(){var N,b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.Cf(),2);N=P.yieldResult;if((b=N)==null||!b.getPlayerState)return cm(),P.return();S=N.getPlayerState();return P.return(S===2)})};
cm=function(){_.$h(new _.jU("Smartimation player does not exist or is corrupted"))};
LUI=function(){try{var N;return(N=window.CSS)!=null&&N.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(b){return _.$h(new _.jU("Smartimation CSS.supports threw an error")),!1}};
JUE=function(N,b,S,P,H){var K=N.playlistId?fXO:us9;b=b();S=S();H=!!N.videoId&&H()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.kG(b))return QVf({data:N,actionType:K,disabled:H},S);if(N.videoId&&P())return xCY({data:N,actionType:K,disabled:H});switch(b){case "TRANSFER_STATE_UNKNOWN":return xCY({data:N,actionType:K,disabled:H});case "TRANSFER_STATE_FAILED":return N.videoId?of9({data:N,actionType:K,disabled:H}):iyL({data:N,actionType:K,disabled:H});case "TRANSFER_STATE_COMPLETE":return iyL({data:N,
actionType:K,disabled:H});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return QVf({data:N,actionType:K,disabled:H},S);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return N.videoId?of9({data:N,actionType:K,disabled:H}):xCY({data:N,actionType:K,disabled:H});default:return xCY({data:N,actionType:K,disabled:H})}};
UCa=function(N,b){var S=N.onTapCommand,P=_.UZ(S);if(N.videoId&&_.t(P,_.a2))return _.t(P,_.a2).action=b,S;N.playlistId&&_.t(P,_.Wm)&&(_.t(P,_.Wm).action=b);return S};
xCY=function(N){var b=N.data;var S=N.actionType;N=N.disabled;return{text:Zy9,iconType:"OFFLINE_DOWNLOAD",onTap:UCa(b,S.ACTION_ADD),disabled:N}};
QVf=function(N,b){var S=N.data;var P=N.actionType;N=N.disabled;var H="OFFLINE_DOWNLOAD";b>=0&&b<=.1?H="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?H="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?H="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?H="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?H="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(H="OFFLINE_PIN");return{text:jV_,iconType:H,onTap:UCa(S,P.ACTION_REMOVE_WITH_PROMPT),disabled:N}};
iyL=function(N){var b=N.data;var S=N.actionType;N=N.disabled;return{text:zQ9,iconType:"OFFLINE_PIN",onTap:UCa(b,S.ACTION_REMOVE_WITH_PROMPT),disabled:N}};
of9=function(N){var b=N.data;var S=N.actionType;N=N.disabled;return{text:AUO,iconType:"OFFLINE_DOWNLOAD",onTap:UCa(b,S.ACTION_RETRY),disabled:N}};
_.nf=function(N,b){var S=Ni9();return _.UB(function(){S();return Pjp(N,[_.he(b)||""])},{debugName:"LUZslf"},"Z105t")};
XJb=function(N){var b=_.nf(_.UI,function(){return N().videoId}),S=_.nf(_.Zb,function(){return N().playlistId});
return function(){return N().videoId?b:N().playlistId?S:_.O(_.QF("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Efe=function(N){var b=_.nf(js,function(){return N().videoId}),S=_.nf(_.$ZE,function(){return N().playlistId});
return function(){return N().videoId?b:N().playlistId?S:_.O(_.QF(0,void 0,"K4tgOc")).next().value}};
pJo=function(N){var b=_.nf(_.sHf,function(){return N().videoId});
return function(){return N().videoId?b:_.O(_.QF(!1,void 0,"Oaxwcf")).next().value}};
Y6O=function(N){var b=_.nf(wto,function(){return N().videoId});
return function(){return N().videoId?b:_.O(_.QF("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
yUo=function(){return{}};
_.eQu=function(N,b,S){return{submitForm:function(){var P,H,K,C;return _.r(function(G){if(G.nextAddress==1){P=IX_(N());if(!P)return G.return();if(P.onSubmit)return DCf(b),P.onSubmit(),DCf(S),G.return();if(!P.submitConfig||!P.formData)return G.jumpTo(0);P.disableDuringSubmission&&V5f(N(),!0);DCf(b);return G.yield(gfs(P.submitConfig,P.formData()),3)}H=G.yieldResult;DCf(S);if(((K=H)==null?0:K.submitResult)&&((C=P)==null?0:C.onSubmitResult))P.onSubmitResult(H.submitResult);P.disableDuringSubmission&&V5f(N(),
!1);return G.return()})},
isValid:function(){var P=IX_(N());if(P){var H;return!((H=P.isValid)==null||!H.call(P))}return!0},
isSubmitting:function(){var P,H;return!!((P=IX_(N()))==null?0:(H=P.isSubmitting)==null?0:H.call(P))}}};
_.dx=function(){if(!$Cb){var N=_.O(_.QF(new Map,void 0,"Y1XnBc"));$Cb=N.next().value;hQY=N.next().value}return $Cb};
_.q6Y=function(N){hQY(new Map(N))};
IX_=function(N){if(N)return _.dx()().get(N)};
gfs=function(N,b){var S;return _.r(function(P){return P.nextAddress==1?b?(S=_.aN().resolve(_.cq(wJY)))&&N.submitId?P.yield(S.submitForm(N.submitId,b,Nd9,N.params,N.clickTrackingParams),2):P.return(Promise.reject(Error("Ch"))):P.return(Promise.reject(Error("Bh"))):P.return(P.yieldResult)})};
V5f=function(N,b){if(N){var S=_.dx();S().set(N,Object.assign({},S().get(N),{isSubmitting:function(){return b}}));
_.q6Y(S())}};
DCf=function(N){if(N){var b=_.aN().resolve(_.Wq);b&&(N=_.UZ(N()))&&b.resolveCommand(N)}};
P9p=function(N,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(S,P){var H=_.UB(function(){return N(S())},void 0,"Gmrblb"),K=bsa(S,H,P,b);
_.gA(function(){if(H()!=null){SA_.set(H(),K);var C=H();_.ej(function(){SA_.delete(C)})}},"j4hx9b");
return K},
getData:function(S){var P;return(P=SA_.get(N(S)))==null?void 0:P[0]()},
updateData:function(S,P){S=N(S);S=SA_.get(S);if(!S)return!1;var H=_.O(S);S=H.next().value;H=H.next().value;P=P(S());H(P);return!0}}};
bsa=function(N,b,S,P){P=P===void 0?{}:P;var H=_.O(_.qI(function(){var G=N(),a=b();return Hsf(G,a,S,P)})),K=H.next().value,C=H.next().value;
return[K,function(G){C(G);var a=b();if(P.shouldPersist&&a!=null){var R,n=(R=S==null?void 0:S.map(function(d){return d()}))!=null?R:[];
_.mH.set(a,[G,n])}}]};
Hsf=function(N,b,S,P){P=P===void 0?{}:P;if(b==null||!P.shouldPersist)return N;P=_.mH.get(b);if(!P)return N;var H=_.O(P);P=H.next().value;var K=H.next().value,C;H=(C=S==null?void 0:S.map(function(G){return G()}))!=null?C:[];
if((K==null?0:K.length)&&(S==null?0:S.length)&&H.some(function(G,a){return G!==K[a]}))return _.mH.remove(b),N;
(S==null?0:S.length)&&_.mH.set(b,[P,H]);return P};
sFE=function(N){var b=_.O(_.QF(!0,void 0,"bKtO6d")),S=b.next().value;b.next();return function(){var P=uD(N.children());return _.c(_.W,{cond:S,then:function(){return P},
else:N.fallback})}()};
_.kY=function(N){var b=KBE(N),S=b.data,P=b.mapping,H=b.wrapper;b=b.pendingFallback;var K=function(){return vBO(_.he(S))},C=function(){var G=K(),a=[];
G=_.O(G);for(var R=G.next();!R.done;R=G.next()){var n=void 0;R=R.value;var d=void 0;for(n in R)if(!(!R).hasOwnProperty(n)){d=n;break}(n=d)&&a.push(n)}return a};
return N.data?_.c(sFE,{fallback:b},function(){return _.c(_.zj,{each:C},function(G,a){var R=H?function(M){return H(function(){return P[G](M,a)},n,a)}:function(M){return P[G](M,a)};
R.debugName||(R.debugName=String(G));if(!P[String(G)])return document.createComment("");R.componentType!==zz&&Osb(String(G));var n=C9Y(K,G,a);if(_.T("web_add_microtask_to_stamper")&&!GPE.has(String(G))){var d=_.O(_.QF(!1,void 0,"afb1md")),m=d.next().value,k=d.next().value;Promise.resolve().then(function(){GPE.add(String(G));k(!0)});
return _.c(_.W,{cond:m,then:function(){return _.c(R,{data:n})}})}return _.c(R,{data:n})})}):_.c(_.nM,null)};
KBE=function(N){var b=N.targetId||rfY(N.children);if(!N.data||!b)return Object.assign({},N,{mapping:N.children});var S="stamper-"+cfU++,P=function(){var G;return(G=typeof N.targetId==="function"?N.targetId(S):N.targetId)!=null?G:S};
b=_.O(amI(function(){var G=vBO(N.data());G.targetId=P;return G})).next().value;
var H=Object.assign({},(_.aN().resolve(_.cq(R4L))||{}).replaceableMapping,N.children);if(N.replacementWrapper){var K=H.notificationTextRenderer,C=H.notificationMultiActionRenderer;K&&(H.notificationTextRenderer=function(G,a){return N.replacementWrapper(K({data:G.data},a))});
C&&(H.notificationMultiActionRenderer=function(G,a){return N.replacementWrapper(C({data:G.data},a))})}return Object.assign({},N,{data:b,
mapping:H,wrapper:function(G,a,R){return ELf({targetId:P,stamperIndex:R},N.wrapper?function(){return N.wrapper(G,a,R)}:G)}})};
C9Y=function(N,b,S){var P;return _.UB(function(){var H=N()[S()];if(H)P=H[b];else return _.$h(new _.jU("Stamper failed to find "+String(b)+" at index "+S()+" of data array of length "+(N().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),P;return H[b]},void 0,"Su9U8")};
rfY=function(N){N=_.O(Object.keys(N));for(var b=N.next();!b.done;b=N.next())if(b=b.value,WBu.includes(b)||nBU.includes(b)||dls.includes(b))return!0;return!1};
vBO=function(N){return N?Array.isArray(N)&&N instanceof Array?N:[N]:[]};
Osb=function(N){if(_.T("web_enable_renderer_logger")){var b;(b=_.aN().resolve(_.cq(mlL)))!=null&&b.loggingEnabled&&!b.ids.has(N)&&b.ids.add(N)}};
kPI=function(){var N,b;return(b=(N=_.aN().resolve(_.cq(_.T8)))==null?void 0:N())!=null?b:!1};
twE=function(N,b){N=N===void 0?Tdu:N;switch(b.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},N,{isOpen:b.payload});default:return N}};
FBp=function(N,b){N=N===void 0?Mwf:N;switch(b.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},N,{isAllowed:b.payload});default:return N}};
lmp=function(N,b){N=N===void 0?Bda:N;switch(b.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},N,{errorMessage:b.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},N,{title:b.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},N,{privacy:b.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},N,{isDisabled:b.payload});default:return N}};
fmY=function(N,b){N=N===void 0?LBp:N;switch(b.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},N,{isOpen:b.payload});default:return N}};
QFe=function(N,b){N=N===void 0?u7a:N;switch(b.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},N,{isFullscreen:b.payload});case "SET_NAVIGATION_BUTTON":var S=b.payload.targetId,P=Object.assign({},N.navigationButtons);P[S]=b.payload.button;return Object.assign({},N,{navigationButtons:P});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},N,{topPanelId:b.payload});case "SET_SECONDARY_HEADER":return S=b.payload.panelId,P=Object.assign({},N.secondaryHeader),P[S]=b.payload.secondaryHeader,
Object.assign({},N,{secondaryHeader:P});default:return N}};
Jfo=function(){return zb(Object.assign({},{voiceSearch:hue,engagementPanel:QFe,bottomSheet:twE,cinematicSetting:FBp,shorts:snU,drawerLayout:fmY,createPlaylist:lmp,locationCollection:xlE,reportChannel:oBI,reportForm:iss},KTL))};
UlU=function(N,b){_.Dj.addLowPriorityJob(function(){var S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return _.u4(K,2),K.yield(avs(),4);case 4:return K.yield(fetch(N),5);case 5:return S=K.yieldResult,K.yield(S.json(),6);case 6:P=K.yieldResult;t8.set(N,P);requestAnimationFrame(function(){b(P)});
_.su(K,0);break;case 2:H=_.UE(K),_.$h(H),_.Zd(K)}})})};
ZsI=function(N){var b={animationConfig:{},listeners:{}},S=function(){N(!0)};
b.listeners.data_failed=S;b.listeners.error=S;b.listeners.data_ready=function(){N(!1)};
return b};
Af9=function(N){var b=N.model;var S=N.subscribed;var P=N.isOverlay;var H=N.element;var K=N.commandController;var C=N.notificationState;if(S){var G,a;var R=(b==null?void 0:(G=b.buttonStyle)==null?void 0:G.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(a=b.unsubscribeButtonContent)==null?void 0:a.buttonText}else{var n;R=b==null?void 0:(n=b.subscribeButtonContent)==null?void 0:n.buttonText}a:{var d;switch(b==null?void 0:(d=b.buttonStyle)==
null?void 0:d.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":G="S";break a;default:G="M"}}a:if(P)P="overlay";else switch(b.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":P="overlay";break a;default:P="mono"}a:if(S)var m="tonal";else switch((m=b.buttonStyle)==null?void 0:m.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":m=
"tonal";break a;default:m="filled"}return{style:P,type:m,state:b.disableSubscribeButton?"disabled":"active",size:G,focused:N.focused,toggled:S,accessibilityLabel:jFE(b,S,C),buttonText:R,iconPosition:b.disableNotificationBell?"none":"leading-trailing",onTap:z4e(b,S,H,K),disableTextEllipsis:!!N.disableTextEllipsis}};
z4e=function(N,b,S,P){return function(H){if(b){var K;var C=N.disableNotificationBell?_.UZ(N==null?void 0:(K=N.unsubscribeButtonContent)==null?void 0:K.onTapCommand):_.UZ(N==null?void 0:N.onShowSubscriptionOptions)}else{var G;C=_.UZ(N==null?void 0:(G=N.subscribeButtonContent)==null?void 0:G.onTapCommand)}C&&WX(C,{form:{element:S==null?void 0:S.value},commandController:P});H.stopPropagation()}};
jFE=function(N,b,S){if(b){if(N==null?0:N.disableNotificationBell){var P;return N==null?void 0:(P=N.unsubscribeButtonContent)==null?void 0:P.accessibilityText}switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var H;return N==null?void 0:(H=N.bellAccessibilityData)==null?void 0:H.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var K;return N==null?void 0:(K=N.bellAccessibilityData)==null?void 0:K.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var C;return N==null?void 0:(C=
N.bellAccessibilityData)==null?void 0:C.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var G;return N==null?void 0:(G=N.bellAccessibilityData)==null?void 0:G.disabledLabel;default:var a;return N==null?void 0:(a=N.unsubscribeButtonContent)==null?void 0:a.accessibilityText}}else{var R;return N==null?void 0:(R=N.subscribeButtonContent)==null?void 0:R.accessibilityText}};
XHe=function(N,b){return _.GL(N.entities,"subscriptionStateEntity",b)};
EBU=function(N,b){return _.GL(N.entities,"subscriptionNotificationStateEntity",b)};
pHI=function(N,b){return _.GL(N.entities,"upcomingEventReminderStateEntity",b)};
YA_=function(N,b){return _.GL(N.entities,"commentEntityPayload",b)};
yfa=function(N,b){return _.GL(N.entities,"engagementToolbarSurfaceEntityPayload",b)};
ImL=function(N,b){return _.GL(N.entities,"triStateButtonStateEntityPayload",b)};
Dlp=function(N,b){return _.GL(N.entities,"commerceCartCheckoutButtonEntity",b)};
VwE=function(N,b){return _.GL(N.entities,"commandEntity",b)};
gBI=function(N){if(N){switch(N){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":N="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":N="NOTIFICATIONS_OFF";break;default:N="NOTIFICATIONS_NONE"}return N}};
e4e=function(N,b,S){S.subscribed!==b&&((S=S.key)&&_.e7(_.t5("subscriptionStateEntity",S,{key:S,subscribed:b})),N.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.St(N,"yt-unsubscribe-action"))};
h4u=function(N){N=_.t(_.UZ(N),_.Mb);var b,S,P,H;return(H=_.t(N==null?void 0:(b=N.panelLoadingStrategy)==null?void 0:(S=b.inlineContent)==null?void 0:(P=S.sheetViewModel)==null?void 0:P.content,$lu))==null?void 0:H.listItems};
qAa=function(N,b){if(N.onShowSubscriptionOptions&&b&&(N=h4u(N.onShowSubscriptionOptions),N!=null&&N.length)){var S=gBI(b);N.forEach(function(P){P=_.t(P,_.F$);var H,K,C,G,a=P==null?void 0:(H=P.leadingImage)==null?void 0:(K=H.sources)==null?void 0:(C=K[0])==null?void 0:(G=C.clientResource)==null?void 0:G.imageName;P&&a&&(P.isSelected=a===S)})}};
wHU=function(N,b,S,P){b&&S?N.style.width=S+"px":!b&&P&&(N.style.width=P+"px")};
NNe=function(N,b,S){var P;(P=N.lottieEl)==null||P.goToAndPlay(0);var H;(H=b.lottieEl)==null||H.goToAndPlay(0);_.Bm(_.Dj,function(){var K;(K=S.lottieEl)==null||K.goToAndPlay(0)},300)};
b0Y=function(N){return!(N==null||!N.iconName||(N==null?0:N.title))};
SCp=function(N,b,S,P){S&&_.Dj.cancelJob(S);S=_.Dj.addLowPriorityJob(function(){P(void 0)},5E3);
P(S);b&&N!==(b.likeStatus==="LIKE")&&b.key&&_.e7(_.t5("likeStatusEntity",b.key,{key:b.key,likeStatus:N?"LIKE":"INDIFFERENT",hadUserInteraction:N}))};
_.PcI=function(N,b){return _.GL(N.entities,"accountLinkStatusEntity",b)};
H0b=function(N,b){return _.GL(N.entities,"hatsSurveyEntity",b)};
sz9=function(N,b){return _.GL(N.entities,"hatsSurveyStateEntity",b)};
K2p=function(N,b){return _.GL(N.entities,"quantityIncrementerEntity",b)};
v__=function(N){switch(N){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
O0b=function(N){switch(N){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
Ccf=function(N){switch(N){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.rQp=function(N){var b=_.d7("web_generic_client_event_wait_period ",0);b||(b=3E5);var S=GGY.get(N);!_.T("enable_web_client_experiment_event_timeout_killswitch")&&S&&(0,_.nh)()-S<b||(GGY.set(N,(0,_.nh)()),_.Dn("genericClientExperimentEvent",{eventType:N}))};
_.cQf=function(N,b){var S,P,H,K;a:{var C=N.style;if(C===void 0)C=17;else switch(C){case "LIVE":C=18;break a;default:C=17}}return{type:C,text:b?GFU({seconds:b}):_.es(N.text),accessibilityText:(S=N.text)==null?void 0:(P=S.accessibility)==null?void 0:(H=P.accessibilityData)==null?void 0:H.label,icon:(K=N.icon)==null?void 0:K.iconType}};
a$L=function(N){switch(N){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Rnb=function(N){if(!N)return"";var b,S=(b=_.aN().resolve(_.cq(_.T8)))==null?void 0:b(),P;if(!S&&((P=N.vibrantColorPalette)==null?0:P.iconInactiveColor))return i1(N.vibrantColorPalette.iconInactiveColor,"1");var H;return S&&((H=N.darkColorPalette)==null?0:H.iconInactiveColor)?i1(N.darkColorPalette.iconInactiveColor,"1"):N.color?i1(N.color,"1"):N.sampledThumbnailColor?(N=N.sampledThumbnailColor,"rgba("+N.red+","+N.green+","+N.blue+");"):""};
_.lK=function(N,b){if(!N.includes("DATE_PLACEHOLDER"))return N;var S=new Date(0);S.setUTCSeconds(b);return N.replace("DATE_PLACEHOLDER",W2e(S))};
n_u=function(N,b,S){return function(P){var H=N.command;H&&(WX(H,{form:{element:S}}),b([H],P))}};
mss=function(N,b,S,P,H){return function(K){var C=dsu(N,b);C&&WX(C,{form:{element:S},commandController:P});H&&K.stopPropagation()}};
dsu=function(N,b){if(N.signInEndpoint&&!_.T("web_subscribe_sign_in_endpoint_killswitch"))return N.signInEndpoint;if(b){if(N.serviceEndpoints)return N.serviceEndpoints[1];if(N.onUnsubscribeEndpoints)return N.onUnsubscribeEndpoints[0]}else{if(N.serviceEndpoints)return N.serviceEndpoints[0];if(N.onSubscribeEndpoints)return N.onSubscribeEndpoints[0]}};
kGf=function(N,b){var S,P,H,K;b=b&&((S=N.unsubscribeAccessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)||((H=N.subscribeAccessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label);return N.longSubscriberCountText?[b,_.es(N.longSubscriberCountText)].filter(function(C){return C}).join(" "):b};
Lf=function(N,b){return b||(N==null?0:N.isChannelDelegate)?"disabled":"active"};
TNU=function(N,b){var S;switch((S=N.style)==null?void 0:S.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Lf(N)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Lf(N)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Lf(N,!0)};case "OVERLAY":return b?{style:"overlay",type:"tonal",state:Lf(N)}:{style:"overlay",type:"filled",state:Lf(N)};default:return b?{style:"mono",type:"tonal",state:Lf(N)}:{style:"mono",type:"filled",state:Lf(N)}}};
_.ff=function(){for(var N=[],b=_.O(_.$I.apply(0,arguments)),S=b.next();!S.done;S=b.next())if(S=S.value)if(typeof S==="string")N.push(S);else{S=_.O(Object.entries(S));for(var P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;(H=H.next().value)&&N.push(P)}}return N.join(" ")};
ti9=function(N){switch(N){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
MiL=function(N){switch(N){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
F2s=function(N,b){var S=N.map(function(P){return P.toString()});
return _.Ob(function(P){if(S.includes(P.key)){b&&P.preventDefault();var H;(H=P.currentTarget)==null||H.click()}})};
_.BNo=function(){return F2s(["Enter"])};
_.l$p=function(){return F2s(["Enter"," "],!0)};
_.uK=function(N){if(N.composedPath)return N.composedPath();if(!N.__composedPath){for(var b=[],S=N.target;S;)b.push(S),S=S.parentNode;b.push(window);N.__composedPath=b}return N.__composedPath};
_.Qw=function(N,b,S){N=_.O(N);for(var P=N.next();!P.done;P=N.next()){P=P.value;if(P===b)break;for(var H=_.O(S),K=H.next();!K.done;K=H.next())if(K=K.value,P.tagName===K||P.role==="button"&&K==="BUTTON")return!0}return!1};
f$I=function(N,b){var S,P=(S=b.observer)!=null?S:_.aN().resolve(Wz);if(N){S=L2E(N);var H=[];b.showOption&&H.push(P.observe(N,function(){b.visibilityCallback(!0,N)},b.showOption));
b.hideOption&&H.push(P.observe(N,function(){b.visibilityCallback(!1,N)},b.hideOption));
b.prescanOption&&b.prescanCallback&&H.push(P.observe(N,function(){b.prescanCallback()},b.prescanOption));
var K;S.visibilityMonitorKeys=((K=S.visibilityMonitorKeys)!=null?K:[]).concat(H)}};
L2E=function(N){var b;return(b=N.polymerController)!=null?b:N};
_.o2=function(N){return!!_.xY(N)};
_.iK=function(N,b,S,P,H){return function(K){var C=Xa9();_.gA(function(){if(K){uds(K,N(),H);var G=Qz_(K,N(),b,S,P,C);_.ej(G)}},"lrewVd")}};
uds=function(N,b,S){var P=xsf(b),H=o_f(b),K=P&&ZdI,C=H&&URs;(P||H)&&f$I(N,{visibilityCallback:function(G){var a=_.aN().resolve(_.Wq);G&&P?(a.resolveCommand(P,{form:{element:S?N:void 0},disableClickTracking:!0}),P=xsf(b)):!G&&H&&(a.resolveCommand(H,{form:{element:S?N:void 0},disableClickTracking:!0}),H=o_f(b))},
showOption:K,hideOption:C})};
Qz_=function(N,b,S,P,H,K){var C=new Map;if(b=_.xY(b)){var G;N=(P==null?void 0:(G=P.onTap)==null?void 0:G.value)||N;S=i0o(b,N,S==null?void 0:S.onTap,H,K);N.addEventListener("click",S);C.set("click",S)}return function(){for(var a=_.O(C),R=a.next();!R.done;R=a.next()){var n=_.O(R.value);R=n.next().value;n=n.next().value;N.removeEventListener(R,n)}}};
_.xY=function(N){var b;return(N=(b=_.t(N,_.J5))==null?void 0:b.onTap)&&_.UZ(N)};
xsf=function(N){var b;return(N=(b=_.t(N,_.J5))==null?void 0:b.onVisible)&&_.UZ(N)};
o_f=function(N){var b;return(N=(b=_.t(N,_.J5))==null?void 0:b.onHidden)&&_.UZ(N)};
i0o=function(N,b,S,P,H){var K=function(G){_.aN().resolve(_.Wq).resolveCommand(N,G)},C=function(G){P&&_.Qw(_.uK(G),b,P)||K(G.target?{form:{element:G.target,
sourceData:N,mutationContext:H}}:void 0)};
S&&(C=function(G){S(G,K)});
return C};
JQ_=function(N){switch(N){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
Us9=function(N){var b=N.numAvatarsInCluster;switch(N.clusterSize){case "small":return b===2?22:18;case "40":return b===2?24:22;default:return b===2?24:20}};
Z0e=function(N,b){return function(S){var P=Object.keys(b);_.gA(function(){if(N!=null&&N()){for(var H=_.O(P),K=H.next();!K.done;K=H.next())K=K.value,S.addEventListener(K,b[K]);_.ej(function(){for(var C=_.O(P),G=C.next();!G.done;G=C.next())G=G.value,S.removeEventListener(G,b[G])})}},"bXZGfe")}};
jzs=function(N){switch(Us9(N)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
zna=function(N){switch(N){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
AQb=function(N){switch(Us9(N)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
XBe=function(N){switch(N){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
E_p=function(N){switch(N){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
pBY=function(N){return N==="medium"||N==="48"||N==="large"||N==="extra-large"||N==="extra-extra-large"||N==="giant"};
YCe=function(N){return!!((N==null?0:N.includes(3))||(N==null?0:N.includes(5)))};
I$e=function(N){var b=N.data;return{size:yQ_(b.avatarImageSize),type:b.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:N.onTap,decorations:N.decorations||[],badgeText:N.badgeText,accessibilityText:N.accessibilityText,avatarButtonCustomClassName:N.avatarButtonCustomClassName,clusterLayoutConfig:N.clusterLayoutConfig}};
yQ_=function(N){switch(N){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
Dsu=function(N){switch(N){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Vio=function(N){switch(N){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
g_f=function(N){var b=N.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",S,P=N.avatars&&N.avatars.length>0?(S=_.t(N.avatars[0],_.UW))==null?void 0:S.avatarImageSize:"AVATAR_SIZE_UNKNOWN";S=Dsu(P)||0;if(b){var H,K=(H=N.avatarClusterSize)!=null?H:"AVATAR_SIZE_M";b=Dsu(K);var C,G,a=Math.min((G=(C=N.avatars)==null?void 0:C.length)!=null?G:0,4),R;return{avatars:((R=N.avatars)==null?void 0:R.slice(0,4))||[],avatarSizeInPx:S,avatarStackStyle:{width:b+"px",height:b+"px",position:"relative"},avatarStyle:function(d){var m=
Us9({clusterSize:yQ_(K),numAvatarsInCluster:a,avatarIndex:d});var k=Dsu(K);a===3&&d===2?(k=(k-m)/2,k=(_.Vg("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*k):k=void 0;return{position:"absolute",top:a===2&&d===1||a===3&&d===2||a===4&&d>=2?"0":void 0,bottom:a===2&&d===0||a>2&&d<2?"0":void 0,left:a===2&&d===1||a>2&&(d===1||d===3)?"0":void 0,right:a<=3&&d===0||a===4&&(d===0||d===2)?"0":void 0,transform:k?"translateX("+k+"px)":void 0,width:m+"px",height:m+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(d){return{clusterSize:yQ_(N.avatarClusterSize),numAvatarsInCluster:a,avatarIndex:d}},
avatarButtonCustomClassName:void 0}}var n;return{avatars:((n=N.avatars)==null?void 0:n.slice())||[],avatarSizeInPx:S,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Vio(P),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
enb=function(N,b,S){return function(){WX(N,{form:{element:b},commandController:S})}};
$sU=function(N){switch(N){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
hnp=function(N){switch(N){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
qCI=function(N){if("accessibilityText"in N)return N.accessibilityText||"";if("title"in N){var b,S,P;return((b=N.title)==null?void 0:(S=b.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)||""}if("accessibility"in N){var H,K;return((H=N.accessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)||""}return""};
wBY=function(N){return"inlinePlayerData"in N};
Zz=function(N){return new Nso(N)};
bpE=function(N){switch(N){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
STI=function(N){switch(N){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
Phu=function(N){switch(N){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
Hpb=function(N){return function(b){N&&(N.thumbnailElRef=b.thumbnailElRef,N.thumbnail=b.thumbnail,N.thumbnailOverlays=b.thumbnailOverlays,N.thumbnailSize=b.thumbnailSize)}};
sxI=function(N){switch(N){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
v4Y=function(N){var b=_.O(_.QF(!1,void 0,"E6wDDe")),S=b.next().value,P=b.next().value;_.YU(function(){var H=N==null?void 0:N();if(H){var K=_.aN().resolve(_.cq(KS_));if(K){var C={triggeringElement:H,onDwellTriggeredFn:function(){P(!0)},
onDwellEndFn:function(){P(!1)}};
K.registerElement(C);_.ej(function(){_.jF(K,C)})}}});
return S};
OpL=function(N,b,S){S?S(b):_.AM(b,N.target?{form:{element:N.target}}:void 0)};
_.z8=function(N,b,S,P){return function(H){_.gA(function(){function K(n){n=n.composedPath();n=_.O(n);for(var d=n.next();!d.done;d=n.next()){d=d.value;if(d===H)break;if(d.className.indexOf("HostIsClickableAdComponent")>=0||d.tagName==="A".toString()||d.tagName==="BUTTON".toString())return!0}return!1}
var C=new Map,G,a=(G=N())==null?void 0:G.onTap;if(a){G=function(n){K(n)||OpL(n,a,b)};
var R=function(n){K(n)||n.key!=="Enter"||OpL(n,a,b)};
(S==null?0:S())||_.T("enable_web_home_top_landscape_image_layout_level_click")?(H.addEventListener("tap",G),C.set("tap",G)):(H.addEventListener("click",G),C.set("click",G));if(P==null?0:P())H.addEventListener("keydown",R),C.set("keydown",R)}_.ej(function(){for(var n=_.O(C),d=n.next();!d.done;d=n.next()){var m=_.O(d.value);d=m.next().value;m=m.next().value;H.removeEventListener(d,m)}})},"D7XqOc")}};
Ch_=function(N,b){var S,P=(S=N.interaction)==null?void 0:S.onTap;if(N=_.jr({elementsCommand:P,forceNewState:!0,skipOnClick:!0}))return N.onclick=function(H){mRI(H)&&(H.preventDefault(),P&&OpL(H,P,b))},zS(N)?N:void 0};
GA9=function(N){switch(N){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
rKI=function(N){switch(N){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
cKE=function(N){switch(N){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.a0e=function(N){return _.T("rich_grid_enable_dynamic_offset")&&N?Math.max((N-_.d7("rich_grid_dynamic_offset_anchor_width",1300))/100*_.d7("rich_grid_dynamic_offset_offset_per_100",10),_.d7("rich_grid_dynamic_offset_lower_bound",-60)):0};
R_E=function(N,b){switch(b){case 4:return 16;case 1:return N<528?16:N<1024?32:48;case 2:return(N>=528?16:8)/2;case 3:return(N<528?16:N<1024?32:48)+(N>=528?16:8)/2;default:return 0}};
WSU=function(N){var b=N.originalContainerWidth;var S=N.sizing;var P=N.standardUnit;if(N.isCompactList&&b<528)return 1;switch(S){case "STANDARD":return P;case "COMPACT":return P+1;case "EXTRA_COMPACT":return _.T("web_responsive_extra_compact_2x")?P*2:_.T("web_responsive_current")?P===1?2:P%2===0?P/2*3:P+2:P<4?P*2:Math.ceil(P*3/2);case "MINI":return P>1?P*2:3;default:return P}};
dKo=function(N){var b=N.containerWidth;var S=N.peek;var P=N.gutter;var H=N.numItems;N=N.ignoreMaxWidthLimit;b=S?Math.max((b-S-P*H)/H,0):Math.max((b-P*(H-1))/H,0);return N?b:Math.min(b,n4a)};
_.A5=function(N){var b=N.containerWidth;var S=N.hasPeek;var P=N.sizing;var H=N.marginSettings;var K=N.isCompactList;var C=N.enableFullBleedForSingleCol;var G=N.standardUnitMinWidth;P=P||"STANDARD";S=!!S;N=b>=528?16:8;var a=S?b>=528?48:24:0;H=R_E(b,H);var R=Math.max(b-H*2,0);G=_.T("kevlar_disable_min_width_override")?void 0:G;G=Math.min(Math.max(Math.floor((R-a+N)/((G!=null?G:mKE)+_.a0e(b)+N)),1),6);var n=(C=!!C&&G===1)||G===1&&P!=="STANDARD";S=S||n?R:Math.min(R,(n4a+N)*G-N);P=WSU({originalContainerWidth:b,
sizing:P,standardUnit:G,isCompactList:K});return{itemWidth:dKo({containerWidth:S,peek:a,gutter:N,numItems:P,ignoreMaxWidthLimit:n}),gutter:N,maxContainerWidth:S,numItems:P,margin:C?0:H,contentMargin:R_E(b,1),typographyBump:dKo({containerWidth:S,peek:a,gutter:N,numItems:G,ignoreMaxWidthLimit:n})>400&&!(K&&b<528),standardUnit:G}};
X$=function(N){switch(N){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.kAI=function(N){if(N){var b;if((b=N.responsiveContainerConfiguration)==null?0:b.responsiveSize)return X$(N.responsiveContainerConfiguration.responsiveSize);if(N.layoutSizing)switch(N.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
Tsa=function(N){if(N.fullbleed)return 1;switch(N.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
l0f=function(N,b,S,P,H,K,C,G,a){a:if(N===4&&P==="LOCKUP_CONTENT_TYPE_SOURCE")var R=1;else switch(N){case 3:R=1;break a;default:R=0}var n=tu_(N,P);a:switch(N){case 4:K=!!(K&&K<100);break a;default:K=!1}a:switch(N){case 3:case 4:var d=P==="LOCKUP_CONTENT_TYPE_CHANNEL"||P==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:d=!1}return{metadataOnThumbnail:n,isOverlay:G||n,isCard:MuU(P,C),sizing:b!=null?b:"STANDARD",typographyBump:S!=null?S:!1,isTiny:K,isCentered:d,isCollection:FSO(P),arrangement:R,addMarginForFullbleed:N===
1&&P!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:N===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Bsa(P,H,a),disableRounding:N===5||MuU(P,C)||N===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:FSO(P)?2:0,useLegacyTypography:!(a==null||!a.useLegacyTypography),useRichGridLegacyTypography:!(a==null||!a.useRichGridLegacyTypography)&&!_.T("web_enable_typography_bump"),compactMetadata:R===0&&P==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:a==null?void 0:a.onFocusEffect,titleMaxLines:P==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
FSO=function(N){switch(N){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
MuU=function(N,b){if(b&&N==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(N){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
tu_=function(N,b){if(b==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(N){case 5:return!0;case 4:return!1;default:return!1}};
Bsa=function(N,b,S){if(b&&(S==null||!S.alwaysRespectPodcastShowAspectRatio||N!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(N){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
_.EW=function(N){if(N){var b;return((b=_.aN().resolve(_.cq(_.T8)))==null?0:b())?N.darkThemeImage:N.image}};
uPI=function(N,b,S,P,H,K){if(H&&K&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:H,height:K};if(!S)return{};H=S.size;S=S.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&S)return{fullWidth:!0};if(H===void 0)return{};switch(N){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:H,height:H};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:H,height:1/LS_*H};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:H*
f0E,height:H};default:return(P==null?0:P.height)&&(P==null?0:P.width)?P.width/P.height>1?{maxWidth:H*f0E}:{maxWidth:H}:{maxWidth:H}}};
QxE=function(N){var b;return N&&((b=_.EW(N.themedImage))!=null?b:N.image)};
xK_=function(N){var b;return N==null?void 0:(b=N.sources)==null?void 0:b[0]};
o49=function(N){switch(N){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.ipI=function(N){if(N)return"content-id-"+N};
JKu=function(N){switch(N.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
UKY=function(N){var b=_.pf.currentPageSubTypeSelector(_.gq().getState())||"";return N?N+b:""};
Zpa=function(N){switch(N){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
z_a=function(N){var b=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],S=_.O(_.QF(void 0,void 0,"JrqNsb")),P=S.next().value,H=S.next().value,K=_.O(_.QF(void 0,void 0,"rWytse"));S=K.next().value;var C=K.next().value;K=_.O(_.QF(void 0,void 0,"DHRqxe"));var G=K.next().value,a=K.next().value;return{touchFeedbackEvents:{pointerUpEvent:P,pointerDownEvent:S,pointerLeaveEvent:G},touchFeedbackOnPointerUp:_.Ob(function(R){jx9(_.uK(R),b)||(H(R),C(void 0),a(void 0))}),
touchFeedbackOnPointerDown:_.Ob(function(R){N==null||N(R);jx9(_.uK(R),b)||(C(R),H(void 0),a(void 0))}),
touchFeedbackOnPointerLeave:_.Ob(function(R){jx9(_.uK(R),b)||(a(R),C(void 0),H(void 0))})}};
jx9=function(N,b){b=b===void 0?[]:b;b=[].concat(_.IX(b),["BUTTON".toString()]);N=_.O(N);for(var S=N.next();!S.done;S=N.next()){S=S.value;for(var P=_.O(b),H=P.next();!H.done;H=P.next())if(S.tagName===H.value)return!0}return!1};
AKI=function(N){switch(N){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
X9p=function(N){return N.scrollHeight-N.offsetHeight>1};
E4o=function(N,b){var S;return YH(N,((S=N.content)==null?void 0:S.length)||0,!b)};
yKU=function(N,b,S,P,H,K){if(!b||p9Y){var C;return YH(N,((C=N.content)==null?void 0:C.length)||0,!0)}b=P.value;if(!S.value||!b||!N.content)return N;S=0;P=N.content.length;C=0;YTp||(YTp=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var G=YTp;for(H=H*K*G;S<=P;)K=Math.floor(S+(P-S)/2),G=YH(N,K)||N,b.firstChild&&(b.firstChild.textContent=G.content),b.scrollHeight>H?P=K-1:(C=K,S=K+1);return YH(N,C)};
I0p=function(N,b){var S,P;return(((S=N.content)==null?void 0:S.length)||0)>(((P=b.content)==null?void 0:P.length)||0)};
DKu=function(N,b,S,P,H,K){var C=_.Ct("truncated-text-content"),G=_.Ct("truncated-text-content"),a=_.Ct("button"),R=_.Ct("button"),n=_.Ct("button"),d=_.aN().resolve(_.YY),m=_.O(_.qI(function(){return E4o(N(),H())})),k=m.next().value,M=m.next().value;
m=_.O(_.qI(function(){return I0p(N(),k())}));
var l=m.next().value,u=m.next().value,J=null;_.gA(function(){function Z(){if(C.value&&a.value&&n.value){var V=K()?N():yKU(N(),H(),C,G,b(),S());M(V);requestAnimationFrame(function(){if(C.value&&a.value&&n.value){var g=X9p(C.value)||I0p(N(),V);u(g);if(!P()){var e=X9p(C.value),se=S(),Ca=C.value,ML=a.value,na=n.value,To=d==="rtl";if(Ca&&ML){var jp=ML.offsetLeft;To&&(jp=Ca.offsetWidth-ML.offsetWidth-ML.offsetLeft);if(g){g=ML.offsetWidth;ML=Ca.offsetWidth;var Xf=e?ML-g-70:jp-70;se="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
se+"rem,\n      #000 "+se+"rem,\n      #000 100%), linear-gradient(\n      to "+((To?"left":"right")+",\n      #000 0px,\n      #000 "+Xf+"px,\n      transparent "+(e?ML-g:Xf+70)+"px)");Ca.style.setProperty("-webkit-mask-image",se);Ca.style.setProperty("mask-image",se)}else Ca.style.setProperty("-webkit-mask-image",""),Ca.style.setProperty("mask-image","");e?To?(na.style.setProperty("left","0"),na.style.setProperty("right","unset")):(na.style.setProperty("left",""),na.style.setProperty("right","0")):
To?(na.style.setProperty("left","unset"),na.style.setProperty("right",jp+"px")):(na.style.setProperty("left",jp+"px"),na.style.setProperty("right","unset"))}}}})}}
var D,Y;(D=J)==null||(Y=D.stop)==null||Y.call(D);D=new _.GR(Z,17);Z();J=D},"KjwIxd");
_.YU(function(){M(E4o(N(),H()));u(I0p(N(),k()));var Z=function(){YTp=void 0;var Y,V;(Y=J)==null||(V=Y.fire)==null||V.call(Y)};
if(window.ResizeObserver){var D=new ResizeObserver(Z);D.observe(C.value);_.ej(function(){var Y,V;(Y=J)==null||(V=Y.stop)==null||V.call(Y);D.disconnect()})}else window.addEventListener("resize",Z),_.ej(function(){var Y,V;
(Y=J)==null||(V=Y.stop)==null||V.call(Y);window.removeEventListener("resize",Z)})});
return{isTruncated:l,displayText:k,contentRef:C,hiddenRef:G,placeholderTruncationTextRef:a,hiddenTruncationTextRef:R,truncationTextRef:n}};
Vuo=function(N){return{content:N!=null?N:""}};
g4u=function(N){return _.UZ(N.onTap)||_.xY(N.rendererContext)};
e_e=function(N){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:N.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(N.overflowMenuOnTap){var S=_.jr({elementsCommand:N.overflowMenuOnTap,forceNewState:!0});if(S==null?0:S.onclick)S.onclick(b)}}}};
_.yw=function(N,b,S,P,H){P=P===void 0?{}:P;if(!H||Math.random()<5E-4){b=b||null;S=S||null;N=N instanceof Error?N:new _.jU(N);if(N.args)for(var K=_.O(N.args),C=K.next();!C.done;C=K.next())C=C.value,C instanceof Object&&(P=Object.assign({},C,P));P.category="H5 Ads Control Flow";b&&(P.slot=b?"slot:  "+b.slotType:"");S&&(P.layout=S?"layout:  "+S.layoutType:"",P.layoutId=S.layoutId);H&&(P.known_error_aggressively_sampled=!0);N.args=[P];_.$h(N)}};
_.$KO=function(N,b){b=_.wy(b);_.St(N,"yt-open-popup-action",[b,N])};
_.I2=function(N,b){_.$KO(N,_.gy(b))};
qT9=function(N){if(!N)return"";if(h_Y[N])return h_Y[N];Dz||(Dz=_.U5("A"));Dz.href!==N&&qj(Dz,N);var b=Dz.pathname;h_Y[N]=b.startsWith("/")?b:"/"+b;return h_Y[N]};
w9u=function(){var N=qT9(window.location.href);if(N==="/")return"home";if(N.startsWith("/results"))return"search";if(N.startsWith("/watch"))return"watch";if(N.startsWith("/shorts"))return"shorts";if(N.startsWith("/hashtag"))return"hashtag";if(N.startsWith("/create_channel"))return"create_channel";if(N.startsWith("/@")||N.startsWith("/user/")||N.startsWith("/channel/"))return"channel";if(N.startsWith("/experiments"))return"experiments";if(N.startsWith("/sponsor_channel"))return"sponsorship";if(N.startsWith("/select_site"))return"settings";
if(N.startsWith("/locate"))return"locate";if(N.startsWith("/redeem"))return"redeem";if(N.startsWith("/musicpremium")||N.startsWith("/premium")||N.startsWith("/red"))return"premium";if(N.startsWith("/paid_memberships"))return"paid_memberships";if(N.startsWith("/oops"))return"oops";if(N.startsWith("/clip"))return"clip";var b;return(Vw==null?void 0:(b=Vw.response)==null?void 0:b.page)==="404"?"404":N.startsWith("/feed/history")?"history":N.startsWith("/feed/library")?"library":N.startsWith("/feed/subscriptions")?
"subscriptions":N.startsWith("/feed/trending")?"trending":N.startsWith("/feed/news_destination")?"news":N.startsWith("/playlist")?"playlist":N.startsWith("/minor_moment")?"minor_moment":N.startsWith("/playable/")||N.match("^/playables/(?!saved).")?"mini_app":N.startsWith("/playables")?"playables":N.startsWith("/create/live/join")?"open_in_app":N.startsWith("/feed/explore")?"explore":"browse"};
_.eF=function(){var N=Vw==null?void 0:Vw.response,b=N==null?void 0:N.endpoint;if(!b)return(N==null?void 0:N.page)==="watch"?"watch":w9u();var S;N=(S=_.t(b==null?void 0:b.commandMetadata,_.GY))==null?void 0:S.webPageType;S=!1;if(N&&!NWf.includes(N))switch(N){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var P;return((P=_.t(b==null?void 0:b.commandMetadata,_.GY))==null?0:P.url)&&qT9(_.t(b.commandMetadata,_.GY).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var H;return(b=(H=_.t(b,_.Wd))==null?void 0:H.browseId)?brE[b]||"browse":"browse";default:S=!0}if(_.t(b,_.gx)||_.t(b,S3_))return"sponsorship";H=qT9(window.location.href);if(H.startsWith("/experiments"))return"experiments";if(H.startsWith("/create_channel"))return"create_channel";
if(_.t(b,_.Hz)&&H.startsWith("/shorts"))return"shorts";if(_.t(b,_.Hz)&&H.startsWith("/watch"))return"watch";S&&(b=new _.jU("Unsupported mWeb page type",{pathname:H,webPageType:N}),_.ge(b));return"browse"};
$Y=function(N,b,S,P){return N&&b?N!==S||b!==P?(_.yw(Error("Lh"),void 0,void 0,{"stored-slot":N,"stored-layout":b,"latest-slot":S,"latest-layout":P}),!1):!0:!1};
Hru=function(N,b,S){return N({targetId:b},function(P){return S.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},P,{contents:[S.continuationItems?_.t(S.continuationItems[0],PXe):{}]}):S.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},P,{header:S.continuationItems?S.continuationItems[0]:void 0}):Object.assign({},P,{contents:S.continuationItems?S.continuationItems:[]})})};
sWo=function(N,b,S,P){if(b=b.trackingParams){var H,K=(H=S.getScreenLayer)==null?void 0:H.call(S);S=_.Qh(K);H=_.uZ(K);if(S&&H){var C=_.FA(b);_.T("combine_ve_grafts")?N.graftServerVe(b,H,K):_.AZ(S,H,C);P==null||P(C)}}};
vC9=function(N){var b;return((b=KC_.get(N))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
GcU=function(N,b){var S={type:b.slotType,controlFlowManagerLayer:OrY.get(b.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(S.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(S.slotPhysicalPosition=b.slotPhysicalPosition);if(N){S.debugData={slotId:b.slotId};if(N=b.slotEntryTrigger)S.debugData.slotEntryTriggerData=CXf(N);N=b.slotFulfillmentTriggers;S.debugData.fulfillmentTriggerData=[];N=_.O(N);for(var P=N.next();!P.done;P=N.next())S.debugData.fulfillmentTriggerData.push(CXf(P.value));
b=b.slotExpirationTriggers;S.debugData.expirationTriggerData=[];b=_.O(b);for(N=b.next();!N.done;N=b.next())S.debugData.expirationTriggerData.push(CXf(N.value))}return S};
CXf=function(N,b){var S={type:N.triggerType};b!=null&&(S.category=b);N.triggeringSlotId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedSlotId=N.triggeringSlotId);N.triggeringLayoutId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedLayoutId=N.triggeringLayoutId);return S};
roI=function(N,b,S,P){b={opportunityType:b};N&&(P||S)&&(P=_.gY(P||[],function(H){return GcU(N,H)}),b.debugData=Object.assign({},S&&S.length>0?{associatedSlotId:S}:{},P.length>0?{slots:P}:{}));
return b};
cos=function(N){return h5(N.opportunityAdapterMap).concat(h5(N.triggerAdapterMap)).concat(h5(N.fulfillmentAdapterFactoryMap)).concat(h5(N.slotAdapterFactoryMap)).concat(h5(N.layoutRenderingAdapterFactoryMap))};
h5=function(N){var b=[];N=_.O(N.values());for(var S=N.next();!S.done;S=N.next())S=S.value,S.isAdsControlFlowEventListener&&b.push(S);return b};
wx=function(N){var b=N.slotId,S=N.slotType,P=N.slotPhysicalPosition;return b===void 0?new qb("Cannot construct a slot due to the missing id.",{adSlotMetadata:N}):S===void 0?new qb("Cannot construct a slot due to the missing type.",{adSlotMetadata:N}):P===void 0?new qb("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:N}):{slotId:b,slotType:S,slotPhysicalPosition:P,managerLayer:"external",adSlotLoggingData:N.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new aef}};
RXI=function(N){var b=N.layoutId,S=N.layoutType;return b===void 0?new Nv("Cannot construct a layout due to the missing id.",{adLayoutMetadata:N}):S===void 0?new Nv("Cannot construct a layout due to the missing type.",{adLayoutMetadata:N}):{layoutId:b,layoutType:S,managerLayer:"external",adLayoutLoggingData:N.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new aef,interactionLoggingAdsClientData:{}}};
WC_=function(N){if(N.querySelector("img")){var b=N.querySelector("img");b.addEventListener("error",function(){Y8O(b.src).then(function(S){(S=_.eo(S).toString())?b.src=S:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
S8=function(N,b){if(b&&(nCe(b.viewableCommand)||nCe(b.endOfSessionCommand))){var S=dAf(b==null?void 0:b.viewableCommand);b=dAf(b==null?void 0:b.endOfSessionCommand);if(!bF){var P=_.d7("custom_active_view_tos_timeout_ms");bF=P>0&&P!==36E5?new mA9(kcf(),P):new mA9(kcf())}TWO(bF,N);tKE(bF,N,S,b)}};
PP=function(N){bF&&TWO(bF,N)};
kcf=function(){var N=_.Vg("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(N==null?void 0:N.length)===2?N[1]:null};
nCe=function(N){N=_.UZ(N);return!(N==null||!N.loggingUrls)&&N.loggingUrls.length>0};
dAf=function(N){if(!N)return[];var b=[],S,P;((P=(S=_.UZ(N))==null?void 0:S.loggingUrls)!=null?P:[]).forEach(function(H){H.baseUrl&&b.push(H.baseUrl)});
return b};
MKu=function(N){if(_.T("stop_av_measurement_on_detach"))return function(){PP(N)}};
FCL=function(N){return function(){_.T("stop_av_measurement_on_detach")&&PP(N)}};
BWu=function(N){if(_.T("stop_av_measurement_on_detach"))return function(){PP(N)}};
le9=function(N){return N.shorts.isDesktopSmallWidth};
_.LCe=function(N){return N.shorts.isShortsActive};
_.feo=function(N){return N.shorts.isWatchWhileMode};
_.HP=function(N){return N.shorts.isFullscreen};
_.sx=function(N){return N.shorts.isShortsPipActive};
QWE=function(N){var b,S;if(N=(b=_.t(N.reelsAdCardButtoned,uqa))==null?void 0:(S=b.animatedRenderingConfig)==null?void 0:S.easeOutSeconds)return N+"s"};
oCO=function(N,b,S){return _.r(function(P){return P.return(new Promise(function(H){var K=new Image;K.onload=function(){H(new xAb(N,b,S,K.naturalWidth,K.naturalHeight))};
K.src=S.toString()}))})};
irp=function(N,b){return Math.round(N/1E-5)===Math.round(b/1E-5)};
Jo_=function(N,b){return Math.round(N/1E-5)===Math.round(b/1E-5)};
UAf=function(N,b){return N.year===b.year&&N.month===b.month&&N.day===b.day};
Zr9=function(N,b){return N.year!==b.year?N.year<b.year:N.month!==b.month?N.month<b.month:N.day<b.day};
zXf=function(N){return N.day===jW9(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1}};
Aoa=function(){var N=new Date,b={year:N.getFullYear(),month:N.getMonth(),day:N.getDate()};return{start:b,end:{year:N.getFullYear()+2,month:N.getMonth(),day:N.getDate()},selectedDate:zXf(b)}};
XEo=function(N){return(new V4(2)).format(new Date(N.year,N.month,N.day))};
ECY=function(N){return{year:N.getFullYear(),month:N.getMonth(),day:N.getDate()}};
pEU=function(N,b){N=(N+(Number(b.utcOffsetSec)+(new Date(N*1E3)).getTimezoneOffset()*60))*1E3;b=ECY(new Date(N));return{date:b,secondsSinceMidnight:Math.floor((N-(new Date(b.year,b.month,b.day)).getTime())/1E3)}};
Y3U=function(N,b){b=b.months.findIndex(function(S){return S.year===N.year&&S.month===N.month});
return b>=0?b:void 0};
yoa=function(N){if(!N)return!1;try{if(N.host&&N.host.tagName==="YT-FORMATTED-STRING"&&N.host.id==="contenteditable-textarea"||N.nodeType===Node.ELEMENT_NODE&&N.tagName==="YTD-COMMENTBOX")return!0}catch(b){return!1}return yoa(N.parentNode)};
Ko=function(N){return N?!(N.tagName!=="A"||!N.href||!N.classList.contains("yt-simple-endpoint")):!1};
Iee=function(N){return N?N.tagName==="IMG"&&N.classList.contains("emoji"):!1};
DA_=function(N,b,S){if(!N)return null;var P=Ko(N);if(P&&S)return b=N.pathname.substring(N.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(P&&!S)return document.createTextNode("");if(Iee(N))return S=N.alt,N=N.dataset.emojiId,!N&&b&&(b=_.vP(b,S))&&b.isCustomEmoji&&(N=b.emojiId),N?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+N+">"):document.createTextNode(S);P=N.cloneNode(!1);for(var H=0;H<N.childNodes.length;++H){var K=DA_(N.childNodes[H],b,S);K&&P.appendChild(K)}return P};
Ox=function(N){return N?Ko(N)?N:Ox(N.lastChild):null};
VKI=function(N){return N?Ko(N)?N:VKI(N.firstChild):null};
gCb=function(N){if(!N)return null;for(var b=N.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=Ox(b))?N=b:N=(N=N.parentNode)?Ox(N.previousElementSibling):null;return N};
eXs=function(N){if(!N)return null;for(var b=N.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=VKI(b))?b:eXs(N.parentNode)};
$Aa=function(N){var b=_.Co(),S=b.JSC$11580_getStartNode();if(!yoa(S.parentNode))return null;b=b.JSC$11580_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var P=_.wY(S,Ko);if(P){if(N&&b===0||!N&&b===S.length)return P}else{if(N&&b===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.GM(S.nextElementSibling,"display")==="block"?null:VKI(S.nextElementSibling);if(!N&&b===0)return S?Ox(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(N){if(0<=b&&b<S.childNodes.length)return VKI(S.childNodes[b])}else if(0<
b&&b<=S.childNodes.length)return Ox(S.childNodes[b-1]);return null};
hXe=function(N,b,S){if(!N)return null;if(N.nodeType===Node.TEXT_NODE)if(S){var P=gCb(N);if(P&&!/^\s+\S/.test(N.wholeText.substr(0,b)))return P}else if((P=eXs(N))&&!/\S\s+/.test(N.wholeText.substr(b,N.wholeText.length)))return P;return N.nodeType===Node.ELEMENT_NODE?S?gCb(N.childNodes[b]):eXs(N.childNodes[b]):hXe(N.parentNode,b,S)};
q3s=function(N){if(N.hasChildNodes())switch(N.tagName){case "DIV":case "A":case "SPAN":var b="";for(N=N.firstChild;N;N=N.nextSibling)b+=q3s(N);return b;default:return""}else switch(N.nodeType){case 3:return N.textContent;default:return""}};
rO=function(N,b){return N.year===b.year&&N.month===b.month&&N.day===b.day};
cP=function(N,b){return N.year!==b.year?N.year<b.year:N.month!==b.month?N.month<b.month:N.day<b.day};
wEE=function(N){return{year:N.getFullYear(),month:N.getMonth(),day:N.getDate()}};
Nrf=function(N){var b=mJo;b=b===void 0?mJo:b;b(new Date(N.year,N.month,N.day))};
aJ=function(N){return wEE(new Date(Number(N.seconds)*1E3))};
bP9=function(N){return N.year!==void 0&&N.month!==void 0&&N.day!==void 0};
SgO=function(N){return N.start!==void 0&&N.end!==void 0};
POa=function(N){return SgO(N)?N.start:N};
HPo=function(N){return SgO(N)?N.end:void 0};
Kuu=function(N,b){for(var S=[],P=new Date(N.start.year,N.start.month);P.getFullYear()<N.end.year||P.getFullYear()===N.end.year&&P.getMonth()<=N.end.month;){var H=S,K=H.push,C=P.getFullYear(),G=P.getMonth(),a=N,R=b,n=void 0,d=[],m=Object.freeze({extraCssClass:"invisible"}),k=new Date(C,G),M=wEE(k);k=k.getDay();for(var l=wEE(new Date);M.month===G;){k!==ske&&n||(n=Array.from({length:7}).fill(m),d.push(n));var u={date:{year:C,month:G,day:M.day},extraCssClass:"",debugClass:""};u.extraCssClass=R(u.date,
M,l,a).trim();n[(k-ske+7)%7]=u;M=M.day===jW9(M.year,M.month)?M.month===11?{year:M.year+1,month:0,day:1}:{year:M.year,month:M.month+1,day:1}:{year:M.year,month:M.month,day:M.day+1};k=(k+1)%7}K.call(H,{weeks:d,monthLabel:RJ.SHORTMONTHS[G]+" "+C,year:C,month:G,monthLabelExtraCssClass:d[0][2]===m?"shift-down-label":""});P.setMonth(P.getMonth()+1)}return S};
vKo=function(N,b){b=b.months.findIndex(function(S){return S.year===N.year&&S.month===N.month});
return b>=0?b:void 0};
COu=function(N,b){a:{var S=S===void 0?[2,3]:S;S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var H=new Date;if((new OPO(P.value)).parse(b,H,{validate:!0})){H.setHours(0,0,0,0);b=H;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=wEE(b);S=N.end;return cP(b,N.start)||cP(S,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}};
RIE=function(N){var b=GVL;b=b===void 0?r99:b;var S=N.columnsToShow||[],P=c9E(N.columnDimensions,N.columnsToShow,N.leftFloatingColumns,b);return S.map(function(H,K){var C=N.columns[H];if(C===void 0)throw Error("Rh");var G=P?P[K]:"";var a=N.getCustomTooltip?N.getCustomTooltip(H,C.headerTooltipParagraphs):C.headerTooltipParagraphs;var R=aO_(N,H);return{type:H,index:K,style:G,classes:R,headerName:C.headerName||"",headerIcon:C.headerIcon,headerTooltipParagraphs:a||[],headerTooltipHelpContext:C.headerTooltipHelpContext,
sortOrders:C.sortOrders||[],selectionState:C.isSelectionCheckbox?N.selectionState:void 0}})};
aO_=function(N,b){var S=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],P=N.columns[b];if(P===void 0)return"";var H=S.includes("DEFAULTS")&&P.cssClass?[P.cssClass]:[];if(S.includes("SORTING")){P.sortOrders&&P.sortOrders.length&&H.push("sortable");if(N.sorting&&N.sorting.columnType===b)a:switch(N.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var K="column-sorted";break a;default:K=""}else K="";K&&H.push(K)}S.includes("FLOATING")&&(b=N.columnsToShow.indexOf(b),N.leftFloatingColumns&&b<N.leftFloatingColumns&&
H.push("floating-column"),N.leftFloatingColumns&&b===N.leftFloatingColumns-1&&H.push("last-floating-column"));S.includes("RIGHT_ALIGN")&&P.rightAlignHeader&&H.push("right-align");return H.filter(function(C){return C}).join(" ")};
c9E=function(N,b,S,P){S=S===void 0?0:S;P=P===void 0?r99:P;if(N){var H=[],K=0;Wus(N,b,P).forEach(function(C,G){var a="min-width:"+C.minWidth+"px;padding-left:"+C.paddingLeft+"px;padding-right:"+C.paddingRight+"px;flex:"+C.flexGrow+" 0 "+C.minWidth+"px;";C.maxWidth!==Infinity&&(a=[a,"max-width:"+C.maxWidth+"px;"].join(""));K>0&&G<S&&(a=[a,"left:"+K+"px;"].join(""));H.push(a);K+=C.minWidth+C.paddingLeft+C.paddingRight});
return H}};
Wus=function(N,b,S){S=S===void 0?r99:S;return b.map(function(P,H){P=N&&N[P]||{};var K=H===0?S.paddingLeftFirstColumn:S.padding;P.paddingLeft!==void 0&&(K=P.paddingLeft);H=H===b.length-1?S.paddingRightLastColumn:S.padding;P.paddingRight!==void 0&&(H=P.paddingRight);return{paddingLeft:K,paddingRight:H,minWidth:P.minWidth!==void 0?P.minWidth:S.minWidth,maxWidth:P.maxWidth!==void 0?P.maxWidth:S.maxWidth,flexGrow:P.flexGrow!==void 0?P.flexGrow:S.flexGrow}})};
nKL=function(N){var b=N.reduce(function(P,H){var K=H.columnId,C={};H.headerText&&(C.headerName=_.es(H.headerText));H.rightAlignHeader&&(C.rightAlignHeader=H.rightAlignHeader);var G;if((G=H.headerIcon)==null?0:G.iconType)C.headerIcon=_.C7(H.headerIcon.iconType);P[K]=C;return P},{}),S=N.filter(function(P){return!P.hideColumn}).map(function(P){return P.columnId});
N=N.filter(function(P){return!!P.dimensions}).reduce(function(P,H){P[H.columnId]=H.dimensions;
return P},{});
return{columns:b,columnsToShow:S,columnDimensions:N}};
_.d3u=function(N){return N?N.simpleText?N.simpleText:N.runs?N.runs.map(function(b){return b.text}).join(""):"":""};
FuE=function(N){var b=N.data;var S=N.onTap;var P=N.isSelected;var H=N.onFocusIn;if(!b)return{};N=m3e(b);P===void 0&&(P=b==null?void 0:b.isSelected);var K;return{text:kVf(b,N),startIcon:(K=b.icon)==null?void 0:K.iconType,state:P?0:2,type:0,style:Tre(b),onTap:tbs(b,S),accessibilityLabel:Mbp(b,N),onFocusIn:function(){return H==null?void 0:H()}}};
kVf=function(N,b){if(!b)return N.text?_.d3u(N.text):void 0};
Tre=function(N){var b;switch((b=N.style)==null?void 0:b.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
tbs=function(N,b){return function(S){b==null||b(S,N)}};
m3e=function(N){N=N.style&&N.style.styleType;return!p9Y&&N==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Mbp=function(N,b){if(b){var S,P,H;return(H=(S=N.accessibilityData)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)!=null?H:kVf(N,!1)}};
Brf=function(){var N;return[function(b,S,P){return _.bC(N,b,S,P)},
function(b){N=b}]};
lOE=function(N,b){return _.GL(N.entities,"chipEntity",b)};
fOO=function(N,b,S,P){return function(){var H=Lu_.has(N.displayType)&&N.selected,K=H&&N.deselectCommand?N.deselectCommand:N.tapCommand;!K||H&&P||_.AM(K,{form:{element:b==null?void 0:b.value}});S==null||S()}};
Qko=function(N,b){a:{if(N=N.onUpdateText)if(N=_.t(N,_.JM)){var S;N=(S=_.t(N,uDY))==null?void 0:S.stepId;break a}N=void 0}S=N;b=b==null?void 0:b.stepStates;if(S&&b){var P,H;return(P=b[S])==null?void 0:(H=P.userQuery)==null?void 0:H.userQuery}};
WP=function(N){return{signalAction:{signal:N}}};
iP9=function(){return _.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?x3o:_.oKL};
J9o=function(N,b){N=N===void 0?"SOFT_RELOAD_PAGE":N;b=b===void 0?49504:b;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.bV(_.cN("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:b}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:N}}]}}}};
U3a=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.bV(_.cN("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:iP9()}};
ZPu=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:iP9()}};
jkf=function(N,b){var S=_.bV(_.cN("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),P=_.bV(_.cN("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),H={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.bV(_.cN("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};H.serviceEndpoint=N?N:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[WP("SOFT_RELOAD_PAGE")]}};return{title:S,bodyText:P,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:H},
style:{value:b!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
A99=function(N){N=N===void 0?{}:N;return{title:_.bV(N.localizedZeroStateTitleText===void 0?"":N.localizedZeroStateTitleText),bodyText:_.bV(N.localizedZeroStateMessage===void 0?"":N.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bV(N.localizedZeroStateButtonText===void 0?"":N.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[zIL]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
EKU=function(N){N=N===void 0?{}:N;return{title:_.bV(N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText),titleLength:19,subtitle:_.bV(N.localizedOptInMessage===void 0?"":N.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bV(_.cN("DISMISS",void 0,"Dismiss")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED",boolValue:!0}},
loggingDirectives:{clientVeSpec:{uiType:127984}}}},secondaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bV(_.cN("TURN_ON",void 0,"Turn on")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[Xbf]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
y9a=function(N,b){var S=b=b===void 0?{}:b;b=S.offlineTitleText===void 0?"":S.offlineTitleText;var P=S.offlineDescriptionText===void 0?"":S.offlineDescriptionText,H=S.formattedSupplementalText,K=S.actionButtonText===void 0?"":S.actionButtonText,C=S.titleText===void 0?"":S.titleText;S=S.descriptionText===void 0?"":S.descriptionText;var G={title:K,accessibilityText:K,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};N||(C=b,S=P,G={title:K,accessibilityText:K,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.bV(C),titleLength:C.length,overrideTitleMaxFontSize:30,subtitle:_.bV(S),supplementalText:H,primaryButton:{buttonViewModel:G},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[pbE]},darkTileImage:{thumbnails:[Ygu]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.Vbf=function(N,b,S,P,H,K,C,G,a,R,n){H=H===void 0?!1:H;K=K===void 0?!1:K;C=C===void 0?0:C;G=G===void 0?-Infinity:G;a=a===void 0?!1:a;R=R===void 0?!1:R;n=n===void 0?!1:n;var d=[],m=_.bV(_.cN("SMART_DOWNLOADS",void 0,"Smart downloads")),k=_.bV(IOe(C,G,N.length));G=C=void 0;R?C={statementBannerRenderer:y9a(n,P)}:H?N.length>0?G=D3_(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.T("kevlar_manual_downloads_above"),m,k):a?G={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===
void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedPromptMessage===void 0?"":S.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.cN("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.cN("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},
onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",entityKey:_.fRO}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:K&&(G={backgroundPromoRenderer:{bodyText:_.bV(_.cN("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
K&&(G={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedOptInMessage===void 0?"":S.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.cN("TURN_ON",void 0,"Turn on"),accessibilityText:_.cN("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});S=_.bV(_.cN("YOUR_DOWNLOADS",void 0,"Your downloads"));P=void 0;b.length>0?(P=void 0,_.T("kevlar_display_downloads_numbers")&&(P=_.bV(_.am("VIDEO_COUNT",b.length))),P=D3_(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,S,P)):H||N.length||
R||(P={backgroundPromoRenderer:{bodyText:_.bV(_.cN("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});C?d.push({richSectionRenderer:{content:C}}):G&&!_.T("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
P&&d.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:51721}}}});G&&_.T("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(b.length>0||H&&N.length>0&&!R)&&d.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.bV(_.cN("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:d}};
_.eIa=function(N){return gKa(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.$3Y=function(N){return gKa(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
gKa=function(N,b){var S=[];N=D3_(N,b,!0);S.push({richSectionRenderer:{content:N}});return{contents:S}};
D3_=function(N,b,S,P,H){S=S===void 0?!1:S;var K="RESPONSIVE_SIZE_STANDARD";_.T("kevlar_standard_rich_grid_on_offline_home")&&b==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?K="RESPONSIVE_SIZE_STANDARD":_.T("kevlar_modern_downloads_compact")?K="RESPONSIVE_SIZE_COMPACT":_.T("kevlar_modern_downloads_extra_compact")?K="RESPONSIVE_SIZE_EXTRA_COMPACT":_.T("kevlar_modern_downloads_tiny")&&(K="RESPONSIVE_SIZE_TINY");N={isExpanded:S,contents:no(N),entitySelectorType:b,responsiveContainerConfiguration:{responsiveSize:K}};
P&&(N.title=P);H&&(N.subtitle=H);S||(_.T("kevlar_smart_downloads_show_more_button")?(N.showMoreButton={buttonRenderer:{accessibility:{label:_.cN("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.bV(_.cN("SHOW_MORE",void 0,"Show more"))}},N.showLessButton={buttonRenderer:{accessibility:{label:_.cN("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.bV(_.cN("SHOW_LESS",void 0,"Show less"))}}):(N.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.cN("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},N.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.cN("HORIZONTAL_LIST_NEXT_LABEL",
void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},N.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.cN("VIEW_ALL",void 0,"View all"),accessibilityText:_.cN("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:_.wX("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:N}};
no=function(N){var b=[];N=_.O(N);for(var S=N.next();!S.done;S=N.next())if(S=S.value,Gla(S)){var P=b,H=P.push;var K=void 0;if(S==null?0:(K=S.videoEntity)==null?0:K.videoId){K=zL(_.h0().getState(),S.videoEntity.videoId);var C=_.h0().getState();var G=_.Cu(S.videoEntity.videoId,"mainVideoEntity");C=!!_.BU(C.entities)[G];C={videoId:S.videoEntity.videoId,title:Ss(S.videoEntity.title),shortBylineText:Ss(S.channelEntity.title),thumbnail:S.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:C&&_.T("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:EDu(S.videoEntity.videoId,K,S.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.cN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};S.videoEntity.lengthSeconds&&(C.thumbnailOverlays=jHb(S.videoEntity.lengthSeconds,K));C.isWatched=K>0;_.T("kevlar_modern_downloads_page")&&(C.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:S.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.cN("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},C.badges=void 0);S=C}else S={};H.call(P,{richItemRenderer:{content:{videoRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(CnL(S)){P=b;H=P.push;var a=G=K=void 0,R=void 0,n=void 0,d=void 0,m=void 0,k=void 0,M=void 0,l=void 0,u=void 0,J=void 0;C=S.mainPlaylistEntity.playlistId;var Z=S==null?void 0:(J=S.mainPlaylistEntity)==null?void 0:(u=J.thumbnailStyleData)==null?void 0:(l=u[0])==null?void 0:(M=l.value)==null?void 0:(k=M.collageThumbnail)==
null?void 0:k.coverThumbnail;if(C&&Z){k=pCo(C);!_.T("enable_offline_playlist_page")&&(S==null?0:(m=S.mainPlaylistEntity)==null?0:m.videos)&&(m=S==null?void 0:(d=S.mainPlaylistEntity)==null?void 0:(n=d.videos)==null?void 0:n[0],n=_.Ku(m).entityId,n=JSON.parse(n).videoId,n!==void 0&&(k=zL(_.h0().getState(),n),k=_.N6(n,C,void 0,void 0,k)));n=[];if(S==null?0:(R=S.mainPlaylistEntity)==null?0:(a=R.videos)==null?0:a.length)a=dJp(),R=Object,n=R.assign,d=(d=nu_(S==null?void 0:S.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.bV(d),icon:{iconType:"PLAYLISTS"}}}:void 0,n=[a,n.call(R,{},(G=d)!=null?G:{})];S={playlistId:C,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Z}},navigationEndpoint:k,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:n,title:Ss(S.mainPlaylistEntity.title),shortBylineText:Ss(S==null?void 0:(K=S.channelEntity)==null?void 0:K.title),badges:[{metadataBadgeRenderer:{label:_.cN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.T("kevlar_modern_downloads_page")&&(S.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:hIY,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:C,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.cN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},S.badges=void 0)}else S=void 0;H.call(P,{richItemRenderer:{content:{playlistRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b};
IOe=function(N,b,S){N=N?qge(N):"";b!==void 0&&isFinite(b)?b===0?b=_.cN("UPDATING",void 0,"Updating..."):(b=ZNp(new Date(b),new Date),b=_.cN("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var P="";N&&b&&(P=" \u2022 ");if(S&&_.T("kevlar_display_downloads_numbers")){S=_.am("VIDEO_COUNT",S);if(N||b)P=" \u2022 ";return S+P+N+P+b}return N+P+b};
wb9=function(N){return bGU(N.entities).length};
_.Nh_=function(N,b,S){var P=X$(N.responsiveSize),H;N=!((H=N.responsiveMap)==null||!H.some(function(K){return K.containerSize==="CONTAINER_SIZE_NARROW"&&K.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:S,containerWidth:b,sizing:P,enableFullBleedForSingleCol:!1,isCompactList:P==="COMPACT"&&N}};
b4a=function(N,b){return _.GL(N.entities,"votingEntity",b)};
dO=function(N){if(N){var b;return((b=_.aN().resolve(_.cq(_.T8)))==null?0:b())?N.darkTheme:N.lightTheme}};
SOO=function(N,b){if(N.simpleText)return Object.assign({},N,{simpleText:EZ(N.simpleText,b)});if(!N.runs)return N;for(var S=Object.assign({},N,{runs:[]}),P=0,H=_.O(N.runs),K=H.next();!K.done;K=H.next())if(K=K.value,K.text)if(P+K.text.length<=b)S.runs.push(K),P+=K.text.length;else return S.runs.push(Object.assign({},K,{text:EZ(K.text,b-P)})),S;return N};
Plo=function(N,b){return _.GL(N.entities,"chipBarStateEntity",b)};
H4a=function(N){switch(N){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
sZY=function(N,b){return{triggeringElement:N,onDwellTriggeredFn:function(){var S={triggeringElement:N,loadVideoPreviewEventData:b},P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:S}))},
onDwellEndFn:function(){var S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
KEf=function(N){var b=_.aN().resolve(_.cq(KS_));return function(S){var P=function(){var H=N(S);return b&&H?sZY(S,H):null};
_.gA(function(){var H=P();b&&H&&Promise.resolve().then(function(){b.registerElement(H)});
_.ej(function(){b&&H&&Promise.resolve().then(function(){_.jF(b,H)})})},"p0smCb")}};
O4U=function(N){var b=N.dataset.resizeObserverId;if(b)return b;b=""+v2U++;return N.dataset.resizeObserverId=b};
Cl_=function(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var S=O4U(b.target),P=Object.assign({},{target:b.target},m8.get(S));if(P!=null&&P.contentRect?P.contentRect.width!==b.contentRect.width||P.contentRect.height!==b.contentRect.height:1)for(m8.set(S,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),S=_.O(ke.get(S)||[]),P=S.next();!P.done;P=S.next())P=P.value,P(b)}};
rW9=function(N,b){var S=O4U(N);ke.has(S)||ke.set(S,new Set);ke.get(S).add(b);m8.has(S)&&b(Object.assign({},{target:N},m8.get(S)));TM||(TM=new GhL(Cl_));b=TM;b.observe(N)};
cWu=function(N,b){var S=O4U(N);ke.has(S)&&(ke.get(S).delete(b),ke.get(S).size===0&&(ke.delete(S),m8.delete(S),TM.unobserve(N),delete N.dataset.resizeObserverId));ke.size===0&&TM&&(TM.disconnect(),TM=void 0)};
RHb=function(N,b){var S=_.aN().resolve(Wz);return akI.map(function(P){return S.observe(N,b,P)})};
WEL=function(N){var b=_.aN().resolve(Wz);N.forEach(function(S){b.unobserveByKey(S)})};
_.tI=function(N){var b=_.O(Jdo()),S=b.next().value,P=b.next().value,H=Object.assign({},n2e,N),K=dge(function(C){var G=C.contentRect.height;if((C=C.contentRect.width)||G||H.canHaveZeroSize)S.width()===C&&S.height()===G||P(S,{height:G,width:C})},H.throttleMs);
return[S,function(C){var G=[];H.useVisibilityObserver&&(G=RHb(C,function(a,R){requestAnimationFrame(function(){R==="visible"?rW9(C,K):cWu(C,K)})}));
G.length||rW9(C,K);return function(){G.length&&(WEL(G),G.length=0);cWu(C,K)}}]};
kh9=function(N,b,S,P,H){N=b?N.switchOffCommand:N.switchOnCommand;if(P&&H)mgf(N,S,H);else{var K,C;(K=_.jr({elementsCommand:N}))==null||(C=K.onclick)==null||C.call(K,S)}};
mgf=function(N,b,S){N=_.jr({elementsCommand:N,additionalCommandArgs:{commandController:{onSuccess:function(){S(!1)},
onServerError:function(){S(!1)}}}});
if(N==null?0:N.onclick)N.onclick(b),S(!0)};
tBI=function(N){if(N)return _.t(N,Thb)};
MBe=function(N){if(N)switch(N){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
FEs=function(N,b){if(!((N==null?0:N.entitySelectorType)&&(N==null?0:N.entityKey)))return{};switch(N.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.T("enable_web_shorts_captions_language_command")){var S;var P=(S=_.G8())==null?void 0:S.getOption("captions","track");var H,K=typeof(P==null?void 0:P.translationLanguage)==="object"&&((H=P.translationLanguage)==null?void 0:H.languageName)||(P==null?void 0:P.displayName)||"";P={data:Object.assign({},
!!K&&{selectionText:{content:K}},!!K&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof P==="undefined"})}}else P={};return P;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.T("web_shorts_audio_track_picker")){var C;H=((C=_.G8())==null?void 0:C.getAudioTrack())||void 0;S=H==null?void 0:(K=H.getLanguageInfo())==null?void 0:K.getName();H={data:Object.assign({},{selectionText:{content:S}},S&&!(H==null?0:(P=H.getLanguageInfo())==
null?0:P.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else H={};return H;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return P=N!=null&&N.entityKey?(P=_.vX(b,N.entityKey))?{isHidden:(P==null?void 0:P.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},P;default:return{}}};
Bhf=function(N,b){return function(S){var P=function(H){_.Qw(_.uK(H),S,b)||N(H)};
S.addEventListener("click",P);return function(){S.removeEventListener("click",P)}}};
_.lkO=function(N){return function(){return _.t(N(),_.Mv)}};
LEI=function(N){switch(N){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
fke=function(N){return LEI(N==null?void 0:N.all)};
uap=function(N){var b={};(N=N==null?void 0:N.padding)&&(b.padding=LEI(N.vertical)+"px "+LEI(N.horizontal)+"px");return b};
QZf=function(N){switch(N){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
xgs=function(N){switch(N){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
o2u=function(N){switch(N){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
i4p=function(N,b){if(b)return{containerStyles:uap(b),itemStyles:function(S,P){var H={flex:"1"},K=b==null?void 0:b.flexDirection;b:switch(K){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":S=!!S;break b;default:S=!!P}S||(S=_.Vg("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",K==="FLEX_DIRECTION_ROW"||K==="FLEX_DIRECTION_ROW_REVERSE"?(K=fke(b==null?void 0:b.gap)+"px",S?H["margin-left"]=K:H["margin-right"]=K):H["margin-bottom"]=fke(b==null?void 0:b.gap)+"px",H.flex=
"1");return H},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(b==null?void 0:b.flexDirection)==="FLEX_DIRECTION_ROW"||(b==null?void 0:b.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
JWL=function(N){return N<528?"CONTAINER_SIZE_NARROW":N<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
UgO=function(N,b){N=_.O(N.responsiveMap||[]);for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.containerSize===b)return S.containerType};
_.Z4Y=function(N,b){if(b){var S=b.responsiveSize;N=JWL(N);var P=UgO(b,N);if(P&&S){a:{if(P==="CONTAINER_TYPE_VERTICAL_LIST")if(S==="RESPONSIVE_SIZE_STANDARD"){if(N!=="CONTAINER_SIZE_NARROW"){var H="50%";break a}}else{H=N==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}H=void 0}return{responsiveSize:S,containerSize:N,containerType:P,force16By9ThumbnailAspectRatio:!b.enableContentSpecificAspectRatio,contentPreviewWidth:H,fullbleed:(P==="CONTAINER_TYPE_VERTICAL_LIST"||P==="CONTAINER_TYPE_GRID")&&N===
"CONTAINER_SIZE_NARROW"&&!1}}}};
jZu=function(N,b){var S={};switch(b){case "CONTAINER_TYPE_VERTICAL_LIST":S["flex-direction"]="column";S.padding="0 "+N.margin+"px";break;case "CONTAINER_TYPE_GRID":S["flex-direction"]="row";S.flex="none";S["flex-wrap"]="wrap";S.width=N.maxContainerWidth?N.maxContainerWidth+N.gutter+"px":void 0;S.padding="0 "+(N.margin-N.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":S["flex-direction"]="row",S.flex="none",S["overflow-x"]="auto",S.width=N.maxContainerWidth?N.maxContainerWidth+"px":void 0,
S.padding="0 "+N.margin+"px"}return S};
zHb=function(N,b){if(b){var S=UgO(b,JWL(N));a:switch(S){case "CONTAINER_TYPE_GRID":var P=3;break a;default:P=1}P=_.Nh_(b,N,P);var H=_.A5(P);return{containerLayoutConfig:_.Z4Y(N,b),containerStyles:jZu(H,S),itemStyles:function(K,C){K={};switch(S){case "CONTAINER_TYPE_VERTICAL_LIST":C||(K["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":K.width=H.itemWidth+"px";K["margin-right"]=H.gutter/2+"px";K["margin-left"]=H.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":K.width=H.itemWidth+
"px",K.flex="none",C||(K["margin-right"]=H.gutter+"px")}return K}}}};
YOY=function(N,b,S){if(b)return[AWf];switch(N){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Fv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return S?[Fv]:[XjY,Fv];case "TRANSFER_STATE_PAUSED_BY_USER":return[E2p,Fv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[pjs,Fv];default:return[AWf]}};
yWE=function(N,b,S,P){return YOY(N,b,P).map(function(H){var K=H.text,C=H.iconType,G=H.videoAction;H=H.playlistAction;K=K?{content:K}:void 0;C=C&&{sources:[{clientResource:{imageName:C}}]};var a=(0,_.Vm.unsafeClone)(S);if(a){var R=_.t(a,_.a2),n=_.t(a,_.Wm);R&&G?R.action=G:n&&H&&(n.action=H)}return{title:K,leadingImage:C,rendererContext:a&&{commandContext:{onTap:{innertubeCommand:a}}}}})};
IkO=function(N){N=_.xY(N.rendererContext);var b;return(b=_.t(N,_.Wm))==null?void 0:b.playlistId};
DgU=function(N){var b;return(b=N.listItems)==null?void 0:b.some(function(S){var P;return _.o2((P=_.t(S,_.F$))==null?void 0:P.rendererContext)})};
_.BP=function(N){var b=_.aN().resolve(_.cq(_.T8));return b!=null&&b()?N.darkThemeColorPalette:N.lightThemeColorPalette};
_.Lo=function(N){return{primaryTextColor:lF(N,0),secondaryTextColor:lF(N,1),optionColor:lF(N,2),backgroundColor:lF(N,3),videoBackgroundColor:lF(N,4)}};
lF=function(N,b){if(N){switch(b){case 0:N=N.primaryTitleColor;break;case 1:N=N.secondaryTitleColor;break;case 2:N=N.surgeColor;break;case 3:N=N.section2Color;break;case 4:N=N.section3Color;break;default:return}if(N)return _.xn(N)}};
eHf=function(N){var b=N.element;var S=N.veType;var P=N.storedVisualElement===void 0?null:N.storedVisualElement;var H=N.elementIndex===void 0?0:N.elementIndex;N=N.clientYouTubeData;var K=_.Qh();K!==VBu&&(g2u.clear(),VBu=K);if(b.visualElement&&g2u.has(b.visualElement))return null;if(P&&g2u.has(P))return b.visualElement=P,null;S=_.n7(_.dG(),{veType:S,elementIndex:H,clientYouTubeData:N});if(!S)return null;b.visualElement=S;g2u.add(S);return S};
_.fo=function(N,b,S,P){S=S===void 0?null:S;P=P===void 0?$gU:P;var H=H===void 0?null:H;uH(function(){if(b){S instanceof Function&&(S=S());var K=eHf({element:b,veType:N,storedVisualElement:S,clientYouTubeData:void 0});K&&(Rq(b,{data:H,observer:_.aN().resolve(Wz),hideOption:URs,showOption:ZdI,layer:b.layer}),P(K))}})};
hH9=function(N){return N?_.o3(N):""};
qOL=function(N){return(N==null?void 0:N.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
wjE=function(N,b){return _.GL(N.entities,"videoOverviewAsyncDataEntity",b)};
Nv_=function(N,b){var S;return"linear-gradient(to bottom, "+((S=b==null?void 0:b.map(function(P){var H=N?P.darkThemeColor:P.lightThemeColor;return H?_.o3(H)+" "+((P==null?void 0:P.startLocation)||0)*100+"%":"transparent"}))==null?void 0:S.join(", "))+")"};
bRe=function(N,b,S,P,H){if(!((P==null?0:P.height)&&(P==null?0:P.width)))return{size:0};var K=P.width;P=P.height;if(H)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&K>P?{size:312/f0E}:b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(S!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||N!==1&&N!==2||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||P===K)switch(N){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P>K)switch(N){case 1:case 3:return{size:240*LS_};default:return{size:360*LS_}}switch(N){case 1:case 2:return{size:1/f0E*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.SV_=function(N){if(!("matchMedia"in window))return _.qB(Error("Sh")),function(){return!1};
var b=window.matchMedia(N);N=_.O(_.QF(b.matches,void 0,"waIHpe"));var S=N.next().value,P=N.next().value,H=function(K){P(K.matches)};
b.addEventListener?(b.addEventListener("change",H),_.ej(function(){b.removeEventListener("change",H)})):b.addListener&&(b.addListener(H),_.ej(function(){b.removeListener(H)}));
return S};
PyU=function(N){return N==="IMAGE_BANNER_STYLE_INSET"||N==="IMAGE_BANNER_STYLE_UNKNOWN"};
HRI=function(){if(!("matchMedia"in window))return _.qB(Error("Sh")),function(){return 0};
var N=window.matchMedia("(max-width: 527.9px)"),b=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),S=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),P=window.matchMedia("(min-width: 1024px)"),H=_.O(_.QF(N.matches,void 0,"TmIKcb")),K=H.next().value,C=H.next().value;H=_.O(_.QF(b.matches,void 0,"Z0fTKd"));var G=H.next().value,a=H.next().value;H=_.O(_.QF(S.matches,void 0,"w4xy7b"));var R=H.next().value,n=H.next().value;H=_.O(_.QF(P.matches,void 0,"DrbNC"));var d=H.next().value,
m=H.next().value,k=function(J){C(J.matches)},M=function(J){a(J.matches)},l=function(J){n(J.matches)},u=function(J){m(J.matches)};
_.YU(function(){N.addEventListener?(N.addEventListener("change",k),b.addEventListener("change",M),S.addEventListener("change",l),P.addEventListener("change",u)):N.addListener&&(N.addListener(k),b.addListener(M),S.addListener(l),P.addListener(u));_.ej(function(){N.removeEventListener?(N.removeEventListener("change",k),b.removeEventListener("change",M),S.removeEventListener("change",l),P.removeEventListener("change",u)):N.removeListener&&(N.removeListener(k),b.removeListener(M),S.removeListener(l),
P.removeListener(u))})});
return function(){return K()?1:G()?2:R()?3:d()?4:0}};
stY=function(N){var b=0;N=_.O([N.title,N.metadata,N.actions,N.description,N.attribution]);for(var S=N.next();!S.done;S=N.next())S.value&&b++;return b};
KzU=function(N){return N===1||N===2?1:0};
ORp=function(N){N=(new vmb).parse(N);return(new ZY).render(N).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var S=b.split(":").map(Number),P=0,H=0;if(S.length===3)S=_.O(S),P=S.next().value,H=S.next().value,S=S.next().value;else if(S.length===2)S=_.O(S),H=S.next().value,S=S.next().value;else if(S.length===1)S=_.O(S).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(P*3600+H*60+S)+'" role="button">'+b+"</span>"})};
Cys=function(N){N=_.O(N.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=N.next(),S={};!b.done;S={clickHandler$jscomp$5:void 0},b=N.next()){b=b.value;S.clickHandler$jscomp$5=function(H){H=Number(H.target.getAttribute("data-time"));if(isNaN(H))throw Error("Uh");var K;(K=_.G8())==null||K.seekTo(H,!0)};
var P=function(H){return function(K){K.key!=="Enter"&&K.key!=="Space"||(0,H.clickHandler$jscomp$5)(K)}}(S);
b.setAttribute("tabindex","0");b.removeEventListener("click",S.clickHandler$jscomp$5);b.removeEventListener("keydown",P);b.addEventListener("click",S.clickHandler$jscomp$5);b.addEventListener("keydown",P)}};
GZY=function(){return _.c("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.c(uF,{percentWidth:100}),_.c(uF,{animationDelay:200}),_.c(uF,{animationDelay:400}),_.c(uF,{animationDelay:600}),_.c(uF,{animationDelay:800,percentWidth:60}),_.c("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.c(uF,{percentWidth:100}),_.c(uF,{animationDelay:200}),_.c(uF,{animationDelay:400}),_.c(uF,{animationDelay:600,percentWidth:50}))};
uF=function(N){return _.c("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(N.percentWidth===void 0?100:N.percentWidth)+"%"},_.c("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(N.animationDelay===void 0?0:N.animationDelay)+"ms"}))};
ruL=function(){var N=_.O(_.QF(function(){return""},void 0,"dXJHWc")),b=N.next().value;
return[function(){return b()()},
N.next().value]};
cuY=function(N,b){N=N?qge(N):"";b!==void 0&&isFinite(b)?b===0?b=_.cN("UPDATING",void 0,"Updating..."):(b=ZNp(new Date(b),new Date),b=_.cN("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var S="";N&&b&&(S=" \u2022 ");return _.bV(N+S+b)};
Wzo=function(N,b,S,P,H,K){b=b===void 0?0:b;var C=aDp[b],G=C.title,a=C.iconType,R=C.topButtonRenderer,n=C.sectionClientVE;C=C.videoClientVE;var d;if(b!==1||N.length){S=[];N=_.O(N);for(P=N.next();!P.done;P=N.next()){var m=P.value;if(Gla(m))S.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:m.videoEntity.videoId,title:Ss(m.videoEntity.title),shortBylineText:Ss(m.channelEntity.title),thumbnail:m.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:m.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.cN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:C}}}}}});else if(CnL(m)){P=S;var k=P.push;var M=void 0,l=void 0,u=void 0,J=void 0,Z=void 0,D=void 0,Y=void 0,V=void 0,g=m.mainPlaylistEntity.playlistId,e=m==null?void 0:(V=m.mainPlaylistEntity)==null?void 0:(Y=V.thumbnailStyleData)==null?void 0:(D=Y[0])==null?void 0:(Z=D.value)==null?void 0:(J=Z.collageThumbnail)==null?void 0:J.coverThumbnail;J=pCo(g);if(!_.T("enable_offline_playlist_page")&&
(m==null?0:(u=m.mainPlaylistEntity)==null?0:u.videos)){b:{u=m==null?void 0:(l=m.mainPlaylistEntity)==null?void 0:l.videos;l=_.h0().getState().entities;if(u!=null&&u.length&&l)for(u=_.O(u),Z=u.next();!Z.done;Z=u.next())if(Z=_.Ku(Z.value).entityId,(Z=JSON.parse(Z).videoId)&&wyf(l,Z)==="TRANSFER_STATE_COMPLETE"){l=Z;break b}l=""}l!==void 0&&(J=zL(_.h0().getState(),l),J=_.N6(l,g,void 0,void 0,J))}l=yTO(_.cN("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pCo(g));m=g&&e&&l?{playlistId:g,navigationEndpoint:J,
viewPlaylistText:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:e}},title:Ss(m.mainPlaylistEntity.title),shortBylineText:Ss(m==null?void 0:(M=m.channelEntity)==null?void 0:M.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Ref,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:g,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.cN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:C}}}:
void 0;k.call(P,{gridPlaylistRenderer:m})}}C={gridRenderer:{items:S}};b===1&&(d=cuY(H,K))}else if(P){var se=_.bV((k=S==null?void 0:S.localizedPromptMessage)!=null?k:"");C={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bV(_.cN("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.fRO}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bV(_.cN("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};d=cuY(H,K)}else se=_.bV(_.cN("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
C={};return{contents:[{shelfRenderer:{title:G,titleAnnotation:d,icon:{iconType:a},subtitle:se,content:C,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:R}]}}}}],loggingDirectives:{clientVeSpec:{uiType:n}}}};
nmf=function(N,b,S,P,H,K,C,G,a,R,n){S=S===void 0?{}:S;P=P===void 0?{}:P;H=H===void 0?!1:H;K=K===void 0?!1:K;C=C===void 0?!1:C;G=G===void 0?!1:G;a=a===void 0?!1:a;R=R===void 0?0:R;n=n===void 0?-Infinity:n;if(!(b.length||N.length||H||G))return K?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A99(S)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.bV(_.cN("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var d=[];N.length&&d.push(Wzo(N,0));G?d.push({contents:[{statementBannerRenderer:y9a(a,P)}]}):H?d.push(Wzo(b,1,S,C,R,n)):K&&d.push({contents:[{statementBannerRenderer:EKU(S)}]});(H&&b.length||N.length)&&d.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.bV(_.cN("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return d.map(function(m){return{itemSectionRenderer:m}})};
Qc=function(N,b){if(typeof N!=="object")return null;N=_.O(Object.entries(N));for(var S=N.next();!S.done;S=N.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;if(S===b)return S;if(P=Qc(P,b))return S+"."+P}return null};
xe=function(N){var b=N.content;return(N=N.styleRuns)&&b?{runs:N.map(function(S){var P={text:b.slice(S.startIndex,S.startIndex+S.length)};S.fontColor&&(P.textColor=S.fontColor);return P})}:{simpleText:b}};
kZu=function(N,b,S,P){var H=dUI;P&&(N.quantity=P);if(!N.quantity||!N.maxQuantity)return{};P=N.minusButton;var K=N.plusButton,C,G,a,R;return{value:N.quantity,maxValue:N.maxQuantity,onChangeCallback:function(n){H(N,n)},
minusLabel:(C=_.t(P,mUe))==null?void 0:C.label,minimumReachedLabel:(G=_.t(P,mUe))==null?void 0:G.limitReachedLabel,plusLabel:(a=_.t(K,mUe))==null?void 0:a.label,maximumReachedLabel:(R=_.t(K,mUe))==null?void 0:R.limitReachedLabel,disabled:b,onRemoveCommand:S}};
dUI=function(N,b){var S=N.quantityIncrementerEntityKey;if(S){var P={};P.quantity=b;_.e7(_.oJ("quantityIncrementerEntity",S,P));N.onChangeCommand&&_.AM(N.onChangeCommand)}};
TvY=function(N){if(N)return N===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(N).overflowY)?N:TvY(N.parentElement)};
FzI=function(N,b){(N=tTe(N))&&((_.T("enable_mini_app_command_handler_mweb_fix")?0:b)?MTY.push({command:N,sourceData:{},commandContext:void 0}):_.aN().resolve(_.Wq).resolveCommand(N))};
tTe=function(N){return _.t(N,_.JM)};
Bva=function(){var N=window.performance.timeOrigin+window.performance.now(),b=(new _.iF).setSeconds(N/1E9);return _.So(b,2,_.Cq(N%1E9),0)};
LzL=function(N,b){var S;N=(S=_.t(_.t(N,_.JM),lDY))==null?void 0:S.methodName;var P,H;(S=window.youtubewebview||((P=window.webkit)==null?void 0:(H=P.messageHandlers)==null?void 0:H.youtubewebview))&&N&&(P=new JI,N=_.En(P,1,N),N=_.iL(N.JSC$12784_serializeBinary()),b=_.iL(b),S.postMessage(N+","+b))};
Ux=function(N,b){var S=_.t(_.t(N,_.JM),lDY);S&&(b&&(S.serializedAdditionalMetadata=_.iL(b)),FzI(N,!0))};
fDe=function(N,b,S){setTimeout(function(){_.SW(N,b)},S)};
uRI=function(N){switch(N){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
Qto=function(){return!!_.Vg("ID_TOKEN")};
iRs=function(N){return N instanceof Error&&N.cause instanceof xUu&&N.cause.rpcErrorCode!==void 0?!omE.includes(N.cause.rpcErrorCode):!0};
UUo=function(){return _.Hq(JuY,{authuser:""+(_.Vg("SESSION_INDEX")||0)})};
ZW=function(N,b,S,P){S=S===void 0?"MINI_APP_SDK_API_UNSPECIFIED":S;P=P===void 0?"":P;var H=new _.jU;S={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:P,sdkApi:S};N instanceof Error&&(H.message=N.message,H.name=N.name,N.cause instanceof xUu&&N.cause.rpcErrorCode!==void 0&&(S.rpcErrorCode=N.cause.rpcErrorCode));var K;(K=b.onError)==null||K.call(b,{loggingError:H,metadata:S})};
jtL=function(N,b,S,P){switch(N){case "MINI_APP_SOURCE_GAMESNACKS":return new j8(b,S,P);default:return new ZRY(b,S,P)}};
zeY=function(N){switch(N){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
Au9=function(N){switch(N){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
XV_=function(N){switch(N){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
EmY=function(){return Math.floor(Math.random()*4)+1};
pVE=function(N,b,S,P){N=_.O(Object.entries(N));for(var H=N.next(),K={};!H.done;K={message$jscomp$995:void 0},H=N.next()){var C=_.O(H.value);H=C.next().value;C=C.next().value;K.message$jscomp$995=C;b.push(setTimeout(function(G){return function(){P(!1);S(G.message$jscomp$995.text)}}(K),K.message$jscomp$995.delayMs));
Number(H)>0&&b.push(setTimeout(function(){P(!0)},K.message$jscomp$995.delayMs-400))}};
YV9=function(N,b,S){S=S===void 0?$gU:S;if(N){var P=_.aN().resolve(Wz);P||_.T("mweb_no_observer_killswitch")?Rq(N,{data:b,observer:P,visibilityCallback:S,hideOption:URs,showOption:ZdI,layer:N.layer}):_.$h(new _.jU("Warning: monitorVisibility called with null observer",N.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else _.$h(new _.jU("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0:
b.rendererContext))};
yub=function(N,b){var S=S===void 0?$gU:S;_.T("mweb_fix_monitor_visibility_after_render")?N&&uH(function(){YV9(N,b,S)}):uH(function(){YV9(N,b,S)})};
IDf=function(N,b){var S=document.createElement("ytd-engagement-panel-section-list-renderer");S.data=N;var P=b!=null?b:{};N=P.isPersistentPanel;b=P.hideDelayMs;P=P.overscrollContain;N=Object.assign({},N&&{isPersistentPanel:N},b&&{hideDelayMs:b},P&&{overscrollContain:P});Object.assign(S,N);return S};
eeU=function(N){DUb||(DUb=VTU(new _.YG(1,void 0,void 0,gmO),0));var b=DUb.format(Math.floor(N));b=A0==="be"||A0==="bg"||A0==="es"||A0==="et"||A0==="hu"||A0==="ka"||A0==="lv"||A0==="pl"||A0==="pt-PT"||A0==="sq"?b.replace(new RegExp("^(\\d)"+gmO.GROUP_SEP.replace(".","\\.")+"(\\d+("+gmO.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):b;return N>=1E3&&N<=9999&&b[1]==="."&&(A0==="sl"||A0==="it")?b.replace(".",""):b};
_.qVs=function(N,b,S){return window.spf&&!_.T("web_disable_spfjs_client")?$UE(N,b,S):heU(N,b)};
$UE=function(N,b,S){var P=null,H=(new _.u5(function(K,C){var G={};if(b){G.method=b.method;var a=b.postParams||{};fpb(N,b)&&(a[_.Vg("XSRF_FIELD_NAME")]=_.Vg("XSRF_TOKEN"));G.postData=_.LE(a);b.type&&(G.type=b.type);a=b.headers}G.headers=tte(N,a);_.T("debug_forward_web_query_parameters")&&(N=_.lpO(N,window.location.search));G.experimental_headers=G.headers;G.onError=function(R){R.err&&R.xhr&&(R.err.params={url:R.xhr.responseURL,response:R.xhr.responseText.substr(0,64)});C(R.err)};
G.onPartDone=function(R){S&&S.call(null,R.part)};
G.onDone=function(R){var n=wVs(R.response,"xsrf_token");CE(window.location.href,N)&&n&&_.DH("XSRF_TOKEN",n);if(n=wVs(R.response,"service_worker_killswitch"))_.DH("SERVICE_WORKER_KILLSWITCH",n),m1p();K(R.response)};
P=spf.request(N,G)})).then(Nma);
H.thenCatch(function(K){var C=K instanceof _.zM,G=K&&K.hasOwnProperty("params")&&K.params.response?K.params.response:"";K instanceof Error&&(G?C?CKp(K):G===')]}\'\n{"reload":"now"}'?CKp(K):(bkb(K,N,G),SF_(K,G)?_.$h(K):_.ge(K)):CKp(K));P&&P.abort()});
return H};
Nma=function(N){if(N.type==="multipart"){var b=N.timing;N=N.parts.reduce(function(S,P){Object.assign(S,P);return S},{});
N.timing=N.timing||{};Object.assign(N.timing,b);N.type="reduced"}return N};
heU=function(N,b){b=b===void 0?{}:b;var S=null,P=new _.u5(function(H,K){b.onFinish=function(C){if(C.readyState===XMLHttpRequest.DONE)if(C.status===200){if(C.responseType!=="json"){var G=C.response;G.substring(0,5)===")]}'\n"&&(G=G.substring(5));try{var a=JSON.parse(G)}catch(R){a=R}}else a=C.response;a instanceof Error?K(a):(G=wVs(a,"xsrf_token"),CE(window.location.href,N)&&G&&_.DH("XSRF_TOKEN",G),C=C.responseURL,window.performance&&window.performance.getEntriesByName?(G=window.performance.getEntriesByName(C).pop())?
C={responseStart:(0,_.nh)()-(G.responseEnd-G.responseStart)}:(Math.random()<.01&&(G=Error("gi"),G.params=C,_.$h(G)),C={responseStart:-1}):C={responseStart:0},a.timing=a.timing||{},Object.assign(a.timing,C),H(a))}else K(Error("fi`"+C.status))};
(S=_.lQ(N,b))||K(Error("fi`"+S.status))});
P.thenCatch(function(H){H instanceof Error&&(bkb(H,N),SF_(H)&&(H.level="WARNING"))});
_.T("cancel_pending_navs")&&P.thenCatch(function(){S.abort()});
return P};
wVs=function(N,b){var S=N[b],P=N.parts;N.type==="multipart"&&P&&(S=(N=P.find(function(H){return b in H}))&&N[b]);
return S};
bkb=function(N,b,S){var P=N.message||"";b={original:P,url:b};if(S)if(P=P.match(/position:?\s*(\d+)/)){P=P&&Number(P[1])?Number(P[1]):0;var H=Math.max(P-25,0);b.position=P;b.response=S.substring(H,P+25)}else b.response=S.substring(0,50);_.hd(N,b);try{N.message="JSON parse error"}catch(K){}};
SF_=function(N,b){N=N.message||"";N=!!(N.indexOf("<")>=0||N.indexOf("end of ")>=0||N.indexOf("Unterminated string")>=0||N.indexOf("Unexpected EOF"));if(!N&&b)for(var S=b.length,P=!1,H=0;H<S;H++)if(P&&b[H]==="\\")H++;else if(b[H]==='"')P=!P;else if(b[H]==="<"&&!P){N=!0;break}return N};
PNp=function(){return document.documentElement.hasAttribute("dark")};
_.HkU=function(N,b){if(N!=="GFEEDBACK"&&N!=="GUIDED_HELP")_.e_(Error("hi`"+N));else{var S=_.aN().resolve(_.cq(_.$9));if(S&&(S=S.getCurrentPage())&&S.getServiceTrackingParams&&(S=S.getServiceTrackingParams()))for(var P=0,H;H=S[P++];)if(H.service===N){if(N=H.params)for(S=0;P=N[S++];)b[P.key]=P.value;break}}};
_.shs=function(N){var b=_.qE();b&&(b=b.getPlayer())&&(b.pauseVideo(),N.playback_id=b.getVideoData().cpn,N.eid=b.getVideoData().eventId,Object.assign(N,b.getFeedbackProductData()))};
K5p=function(){var N={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Vg("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(N.enableAnonymousFeedback=!0);_.Vg("SESSION_INDEX")&&(N.authuser=String(_.Vg("SESSION_INDEX")));_.T("enable_pageid_for_feedback")&&_.Vg("DELEGATED_SESSION_ID")&&(N.pageId=String(_.Vg("DELEGATED_SESSION_ID")));return N};
_.AI=function(N){_.T("enable_ypc_spinners")&&_.St(N,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},N])};
_.Xv=function(N){_.T("enable_ypc_spinners")&&_.St(N,"yt-close-popup-action",["yt-loading-renderer"])};
v5L=function(N){return new Promise(function(b,S){_.ZN({verifyCommand:{recaptchaToken:N.recaptchaResponse}},{commandController:{onSuccess:function(P,H){H||S("ChallengeService did not return a response.");var K;b({challengeCompleted:(K=H.verified)!=null?K:!1})},
onServerError:function(P,H){S(H)}}})})};
Okp=function(N,b,S,P){b({recaptchaResponse:P}).then(function(H){H.challengeCompleted?_.Jz()?(S(3),_.aN().resolve(_.Wq).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:N}})):S(2):S(4)},function(){S(4)})};
Gwp=function(N,b,S){_.zk(_.Mz(CNY,_.Vg("HL")),function(){var P;(P=window.grecaptcha)==null||P.ready(function(){var H=window.grecaptcha;H?(S(H.render(N,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Okp.bind(null,N,v5L,b)})),b(1)):b(4)})})};
rxO=function(N,b){return function(){switch(b()){case 0:return N().captchaLoadingMessage;case 1:return N().challengeReason;case 3:return N().captchaSuccessfulMessage;case 2:return N().captchaCookieSetFailureMessage;case 4:return N().captchaFailedMessage;default:return N().challengeReason}}()};
_.Ex=function(){if(!cxE){var N=document.querySelector("#player.skeleton");N&&(_.Zg(N),cxE=!0)}};
_.RWI=function(){return afa=fuO()};
dwa=function(){return _.r(function(N){return W5_!==void 0?N.return():N.yield(n5u(),0)})};
n5u=function(){return _.r(function(N){if(N.nextAddress==1)return N.yield(QD9(),2);afa=N.yieldResult;W5_=_.Dj.addLowPriorityJob(n5u,5E3);_.Zd(N)})};
F5b=function(N){var b=b===void 0?mwI:b;var S,P,H=(S=N.responseContext)==null?void 0:(P=S.mainAppWebResponseContext)==null?void 0:P.trackingParam;if(!H){b.increment("MISSING");var K,C,G,a,R,n;_.$h(new _.jU("282054944_a",{vsR:!!((K=N.responseContext)==null?0:(C=K.mainAppWebResponseContext)==null?0:C.loggedOut),t92:((G=N.responseContext)==null?void 0:G.mainAppWebResponseContext)===void 0,jm2:N.responseContext===void 0,cp:(a=N.playabilityStatus)==null?void 0:a.contextParams,qY3:(((R=N.streamingData)==
null?void 0:R.formats)||[]).length>0,wjy:(((n=N.streamingData)==null?void 0:n.adaptiveFormats)||[]).length>0,os:!!N.offlineState,cotn:N.cotn}));return 2}S="";try{S=kwe(H)}catch(k){return b.increment("C_ERROR"),_.ge(k),2}try{var d=_.TmI(S);var m=tfL(d)}catch(k){return b.increment("P_ERROR"),_.ge(k),2}m=_.kT(m,MfL,1,_.T6());H=[];m=_.O(m);for(d=m.next();!d.done;d=m.next())P=d.value,d=P.getPath(),S=(0,_.Vm.getValueByKeys)(N,d.split(".")),S=String(S===void 0||S===null?"":S),P=P.getValue()||"",K=/[+\-\/_]/g,
S.replace(K,"")!==P.replace(K,"")&&(b.increment("MISMATCH"),_.T("ab_mis_log_err")&&(S=new _.jU("282054944_p",{aZR:d,g:String(S),e:String(P)}),_.ge(S)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(d)||(d.match(/enforcementMessageViewModel/i)?H.push(3):H.push(2)));if(H.length>0)return Math.max.apply(Math,_.IX(H));b.increment("SUCCESS");return 1};
L59=function(N){var b=new po;if(N.interpreterJavascript){var S=_.Sjp(N.interpreterJavascript);S=GJ(S).toString();var P=new Bmu;_.En(P,6,S);_.xI(b,1,P,JV)}else N.interpreterUrl&&(S=_.Vb(N.interpreterUrl),S=_.jo(S).toString(),P=new _.lfO,_.En(P,4,S),_.xI(b,2,P,JV));N.interpreterHash&&_.IJ(b,3,N.interpreterHash,JV);N.program&&_.IJ(b,4,N.program,JV);N.globalName&&_.IJ(b,5,N.globalName,JV);N.clientExperimentsStateBlob&&_.IJ(b,7,N.clientExperimentsStateBlob,JV);return b};
DW=function(N){var b={};N=_.O(N.split("&"));for(var S=N.next();!S.done;S=N.next())S=S.value.split("="),S.length===2&&(b[S[0]]=S[1]);return b};
ffp=function(N){return Number(N.t)||7200};
uhf=function(){var N=N===void 0?window:N;var b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield($Bb(),2);b=N;S=b.bgevmc;if(!S)throw Error("li");return P.return({pause:function(){S.p()},
resume:function(){S.r()},
checkForRefresh:function(){return S.cr()}})})};
ebI=function(){if(_.T("bg_st_hr"))return"havuokmhhs-0";var N,b=((N=globalThis.performance)==null?void 0:N.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
Vc=function(N){window.bgens=N};
Qhe=function(){return new Promise(function(N){var b=window;b.ntpevasrs!==void 0?N(new gO(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(S){N(new gO(S))}))})};
xwO=function(N){if(_.T("attmusi")&&_.T("attmusi_ue")){N={s:N.vuF.bind(N),ir:N.dlR.bind(N)};var b=window;b.attmp=N;if(b.attmq!==void 0)for(var S=_.O(b.attmq),P=S.next();!P.done;P=S.next())P=P.value,P(N);b.attmq=void 0}else b=N.vuF.bind(N),_.aB("yt.aba.att",b),N=N.dlR.bind(N),_.aB("yt.aba.att2",N)};
iks=function(N){switch(_.Bq(N.input)){case _.q6(o5e):var b={};return b.encryptedVideoId=N.innerTubeRequest.externalVideoId,b}return{}};
Zko=function(N){switch(_.Bq(N.input)){case _.q6(o5e):if(_.T("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.q6(Jxo):if(_.T("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.q6(e8):if(_.T("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&N.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.q6(Uwo):var b,S;if(_.T("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((S=_.t((b=N.config)==null?void 0:b.command,_.DG))==null?0:S.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.zW_=function(N){var b;if(N.playlistVideoRenderer&&((b=N.playlistVideoRenderer)==null?0:b.engagementBar))return jhE(N.playlistVideoRenderer.engagementBar);if(_.t(N,$e)){var S;if(N=(S=_.t(N,$e))==null?void 0:S.engagementBar)return jhE(N)}return""};
jhE=function(N){if(!N)return"";N=_.t(N,_.Axp);if(N==null||!N.actions)return"";N=_.O(N.actions);for(N=N.next();!N.done;N=N.next()){N=_.t(N.value,_.XGp);var b=void 0;if((b=N)==null||!b.itemId)break;return N.itemId}return""};
_.E5p=function(N){var b;if(N.playlistVideoRenderer&&((b=N.playlistVideoRenderer)==null?0:b.videoId))return N.playlistVideoRenderer.videoId;if(_.t(N,$e)){var S,P;if(N=(S=_.t(N,$e))==null?void 0:(P=S.playlistItemData)==null?void 0:P.videoId)return N}return""};
_.pG_=function(N){var b;if(N.playlistVideoRenderer&&((b=N.playlistVideoRenderer)==null?0:b.voteCount))return N.playlistVideoRenderer.voteCount;if(_.t(N,$e)){var S,P;if(N=(S=_.t(N,$e))==null?void 0:(P=S.playlistItemData)==null?void 0:P.voteCount)return N}return 0};
_.hI=function(N,b){return _.GL(N.entities,"flowStateEntity",b)};
yxf=function(N,b,S,P){var H=void 0;N=_.O(N[b.iconName]||[]);for(var K=N.next();!K.done;K=N.next()){K=K.value;var C=b.iconSize;var G=b.iconStyle;C=!C||C===K[2];var a=YFp[K[0]];P&&P!==K[1]||!C||G&&G!==a?G=!1:H?(G=YFp[K[0]],G=!!b.iconStyle||G==="youtube_outline",C=H.version<=K[1],G=(!!b.iconSize||K[2]===24)&&G&&C):G=!0;G&&(H={name:b.iconName,style:YFp[K[0]],size:K[2],version:K[1],allowMirroring:!!K[3],url:S(b.iconName,K)})}return H};
Ifp=function(N,b,S,P){return N+(""+YFp[S[0]]+((P===void 0?0:P)?"_experimental":"")+"/"+b+"/v"+S[1]+"/")+(S[2]+"px.svg")};
Dwp=function(N){return _.Vg("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.Vg("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":N};
Vfb=function(N,b){return Ifp("https://fonts.gstatic.com/s/i/",N,b)};
g5f=function(N,b){return Ifp("https://fonts.gstatic.com/s/i/",N,b,!0)};
eWe=function(N,b){return Ifp("https://www.gstatic.com/youtube/img/icons/web/",N,b)};
hWo=function(N){var b=N.enabled;var S=N.itemPlaybackModel;var P=N.thumbnailElRef;var H=N.containerElRef;var K=N.options;var C;_.gA(function(){var G=H==null?void 0:H.value;var a,R=(a=P())==null?void 0:a.value;a=S();var n=K();if(b&&a&&G&&R&&(n==null?0:n.thumbnail)){var d={data:a,hostElement:G},m,k,M=[].concat(_.IX((m=n.thumbnailOverlays)!=null?m:[]),_.IX((k=a.overlays)!=null?k:[]));k=a.itemPlaybackOptions;m=(k==null?void 0:k.enableRoundedPlayer)||n.enableRounding;k=k==null?void 0:k.disableTimeStatusOverlay;
var l,u;G={mediaRenderer:d,lockupElement:G,thumbnailElement:R,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.UZ((l=a.inlinePlayerData)==null?void 0:l.onVisible),navigationEndpoint:_.UZ((u=a.inlinePlayerData)==null?void 0:u.onSelect),thumbnail:n.thumbnail,thumbnailOverlays:M,accessibilityText:n.accessibilityText||""},thumbnailSize:n.thumbnailSize,enableRounding:m,mouseleaveCallback:n.mouseleaveCallback,hideTimeDisplay:k}}}else G=void 0;if(l=G){var J;(J=C)==null||qv(J);C=Zz(l);var Z,D;
((Z=S())==null?0:(D=Z.inlinePlayerData)==null?0:D.forceImpAutoplay)&&$wu(C)}},"BLiQOd");
_.ej(function(){var G;(G=C)==null||qv(G)})};
qFL=function(N){N=atob(N);for(var b=[],S=0;S<N.length;S++)b.push(N.charCodeAt(S));return new Blob([new Uint8Array(b)],{type:"image/png"})};
NzI=function(N,b,S,P){P=P===void 0?"INSERTION_POSITION_UNSPECIFIED":P;return N({targetId:b},function(H){var K,C=(K=H.contents)!=null?K:[];K=S!=null?S:[];var G=wG_(C);switch(P){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},H,{contents:[].concat(_.IX(C.slice(0,G)),_.IX(K),_.IX(C.slice(G+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},H,{contents:[].concat(_.IX(K),_.IX(C))});case "INSERTION_POSITION_LAST":return Object.assign({},H,{contents:[].concat(_.IX(C),_.IX(K))});
default:return H}})};
S9o=function(N,b,S,P,H){H=H===void 0?"RELATIVE_INSERTION_POSITION_AFTER":H;return N({targetId:b},function(K){var C,G=(C=K.contents)!=null?C:[];C=bVL(G,S);if(C<0)return K;C=H==="RELATIVE_INSERTION_POSITION_BEFORE"?C:C+1;return Object.assign({},K,{contents:[].concat(_.IX(G.slice(0,C)),_.IX(P),_.IX(G.slice(C)))})})};
wG_=function(N){var b=N.findIndex(function(S){return _.t(S,_.wO)});
return b>=0?b:N.length};
bVL=function(N,b){return N.findIndex(function(S){a:{S=_.O(Object.values(S));for(var P=S.next();!P.done;P=S.next())if((P=P.value)&&P.targetId){S=P.targetId;break a}S=""}return S===b})};
HVY=function(N,b,S){return N({targetId:b},function(P){var H,K=(H=P.contents)!=null?H:[];return Object.assign({},P,{contents:Pqf(K,S)})})};
Pqf=function(N,b){return N.filter(function(S){var P=b.includes;a:{S=_.O(Object.values(S));for(var H=S.next();!H.done;H=S.next())if((H=H.value)&&H.targetId){S=H.targetId;break a}S=""}return!P.call(b,S||"")})};
_.sKb=function(N,b){return{engagementPanelSectionListRenderer:{panelIdentifier:N,identifier:b,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
KfE=function(N,b){N=N.getAvailableAudioTracks();if(N.length)return N==null?void 0:N.find(function(S){var P;return(S==null?void 0:(P=S.getLanguageInfo())==null?void 0:P.getId())===b})};
_.OVY=function(N){var b,S=(b=N.getOption("captions","tracklist",{includeAsr:!0}))!=null?b:[];return S=vVO(S,N)};
Cqf=function(N){return N.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
vVO=function(N,b){b=Cqf(b);if(b==null||!b.length)return N;var S=b.filter(function(C){return C});
b=N.filter(function(C){return C.languageCode.startsWith("en")});
S=_.O(S);for(var P=S.next();!P.done;P=S.next())if(P=P.value,b.length){var H=b[0],K=Object.assign({},H);H.languageCode!==P.languageCode&&(K.displayName=H.languageName+" >> "+P.languageName,K.translationLanguage=P,N.push(K))}return N};
Gvp=function(N,b,S){N=_.OVY(N);if(N.length)return S?N.find(function(P){if(typeof(P==null?void 0:P.translationLanguage)==="object"){var H;return((H=P.translationLanguage)==null?void 0:H.languageCode)===b}return!1}):N==null?void 0:N.find(function(P){return P.languageCode===b})};
rXU=function(N){return N.getOption("captions","tracklist",{includeAsr:!0})};
cXU=function(N){var b=N.getAvailableAudioTracks();if(b!=null&&b.length){var S=N.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.IX(b.map(function(P){return{listItemViewModel:{title:{content:P.getLanguageInfo().getName()},isSelected:P.getLanguageInfo().getId()===(S==null?void 0:S.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:P.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
aZY=function(N){return N.getOption("captions","tracklist",{includeAsr:!0})};
Rvs=function(N){var b=aZY(N);if(b==null?0:b.length)return b;N.loadModule("captions");return aZY(N)};
Wf9=function(N){var b=N.getOption("captions","track");if(b)return b;N.loadModule("captions");return N.getOption("captions","track")};
dGa=function(N){var b=Rvs(N);if(b!=null&&b.length){var S=Wf9(N),P;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.cN("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(S==null?0:S.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.IX(b.map(function(H){return{listItemViewModel:{title:{content:H.displayName},
isSelected:H.displayName===(S==null?void 0:S.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.cN("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!S.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!S.translationLanguage&&{selectionText:{content:(S==null?void 0:(P=S.translationLanguage)==null?void 0:P.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nVI(N)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
nVI=function(N){var b=Cqf(N);if(b==null||!b.length)throw Error("Hi");var S=Wf9(N);N=b.filter(function(P){return!P.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.IX(N.map(function(P){var H;return{listItemViewModel:{title:{content:P.languageName},isSelected:P.languageName===(S==null?void 0:(H=S.translationLanguage)==null?void 0:H.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:P.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
tNu=function(N){return new Promise(function(b,S){if(N===void 0)_.ge(Error("Li"),"ERROR"),S(Error("Li"));else{S=new _.mGs;var P=_.kvE();S=S.init();var H=_.TzI(_.Vg("YPC_MB_URL"),!0);Promise.all([S,H]).then(function(){var K=_.N5.payments.business.integration.ClientTokenFactory.createClientToken(N,P);b(K)})}})};
Bzb=function(N,b,S,P,H,K,C){var G=_.Y9();S=S.replace(/-/g,"+").replace(/_/g,"/");var a=_.WN().get("hl"),R=_.b0(_.DK),n=b==null?void 0:b.element;n&&_.AI(n);MNL(b,!0);_.FfU(R,S,G.resolve,function(){n&&_.Xv(n)},function(d){n&&_.Xv(n);
G.reject(d)},a,P?function(d){P&&_.pU(N,P,{backend_analytics:d})}:void 0,G.resolve,H,K,C);
return G.promise};
MNL=function(N,b){!(N=N==null?void 0:N.element)||N.tagName!=="YT-BUTTON-RENDERER"&&N.tagName!=="YTD-BUTTON-RENDERER"||(N.disabled=b)};
lZb=function(){var N=_.cN("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.bV(N),actionButton:{buttonRenderer:ZPu()}}},popupType:"TOAST"}};
LfY=function(){var N=_.cN("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.bV(N),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
fZo=function(N){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:N}]}}};
S3=function(N,b,S,P){var H;return _.r(function(K){if(K.nextAddress==1)return _.u4(K,2),K.yield(N,4);if(K.nextAddress!=2)return(H=_.t0(b.getState().entities).length>0)?K.return({title:_.bV(_.cN("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.bV(_.cN("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:U3a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
K.return(jkf(S,P));_.UE(K);return K.return(jkf(S,P))})};
uWI=function(N,b){return b?b==="PPSV"||SQE(N,b):!1};
QKY=function(N){N.responseContext||(N.responseContext={});N.responseContext.maxAgeSeconds=0;return N};
Hp=function(N){var b;return _.r(function(S){return S.nextAddress==1?S.yield(xGu(N,"service:topbar:fallback"),2):(b=S.yieldResult)&&_.Pp(b)?S.return(QKY(_.Pp(b))):S.return()})};
oVO=function(N){var b;return _.r(function(S){return S.nextAddress==1?S.yield(xGu(N,"service:downloads_settings:fallback"),2):(b=S.yieldResult)&&_.Pp(b)?S.return(b):S.return()})};
xGu=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)return N?P.yield(N.get(b),2):P.return();S=P.yieldResult;return!S||!_.Pp(S)||!isNaN(Number(S.data.expireTimestampMs))&&S.isExpired()?P.return():P.return(S)})};
iVO=function(N){var b=_.aN().resolve(s_).getState().entities;return N.playlistId?uWI(b,N.playlistId):!1};
UGU=function(N){var b=_.d7("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;if(!_.t(N,_.kn))return b&&_.$h(Error("ej")),!1;var S;return _.T("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.t(N,_.kn))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:JX9(N)?!0:(b&&_.$h(Error("fj")),!1)};
JX9=function(N){var b=(_.t(N,_.Iv)||_.t(N,_.kn)).videoId;if(!b||!ZVb.test(b))return!1;var S;return(N=(S=_.t(N.commandMetadata,_.GY))==null?void 0:S.url)&&(N.includes(b)||N.startsWith("/clip"))?!0:!1};
_.zvO=function(){var N=_.WN();return N.getFlag(192)?N.getFlag(190):!(_.NI("web_watch_cinematics_disabled_by_default")||_.NI("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&jK_())};
_.KS=function(N,b,S){var P={};P.currentUrl=b;P.vis=N.vis!==void 0?N.vis:0;P.splay=!1;b=_.WN();P.autoCaptionsDefaultOn=b.getFlag(66);b.getFlag(141)?b.getFlag(140)?P.autonavState="STATE_OFF":P.autonavState="STATE_ON":P.autonavState="STATE_NONE";P.html5Preference="HTML5_PREF_WANTS";isNaN(_.Vg("STS"))||(P.signatureTimestamp=_.Vg("STS"));N.autonav&&(P.autoplay=!0,P.autonav=!0);N.mutedAutoplay&&(P.autoplay=!0,P.mutedAutoplay=!0);N.inlinePlayback&&(P.autoplay=!0,P.autonav=!1,P.isInlineUnmutedPlayback=!!N.inlineUnmuted);
P.referer=S;P.lactMilliseconds=N.lact!==void 0?N.lact.toString():"-1";_.T("enable_unknown_lact_fix_on_html5")&&P.lactMilliseconds==="-1"&&_.$h(new _.jU("Unknown LACT is set in playbackContext.",{"lact in tempData":N.lact||"undefined",autonav:N.autonav||"undefined"}));N={};b.getFlag(194)&&(N.hasShownAmbientMode=!0);b.getFlag(192)&&(N.hasToggledOffAmbientMode=!0);_.zvO()&&(N.watchAmbientModeEnabled=!0);P.watchAmbientModeContext=N;return P};
AXY=function(N){var b={},S=N.pbis||0;S&&(b.playbackBeginsInSeconds=S);N.prefetch_reason&&N.prefetch_reason==="hc_pbis"&&(b.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return b};
XIs=function(N,b){var S;if(b==null?0:(S=b.requestTemplate)==null?0:S.panelId)N.panelId=b.requestTemplate.panelId;var P;if(b==null?0:(P=b.requestTemplate)==null?0:P.params)N.params=b.requestTemplate.params};
pIO=function(){if(EVo)return EVo();var N=!_.T("idb_response_store_auth_killswitch"),b={};EVo=WK("yt-it-response-store",{objectStores:(b.ResponseStore={addedAtVersion:1},b),shared:!N,upgrade:function(S,P){P(1)&&(S=NN(S,"ResponseStore",{keyPath:["key","clientName"]}),b5(S,"byExpiration","expireTimestampMs"),b5(S,"byInterface","clientName"))},
version:1});return EVo()};
vp=function(N){return _.vK(pIO(),N)};
yXE=function(N,b){var S;return _.r(function(P){return P.nextAddress==1?P.yield(_.RB(),2):(S=P.yieldResult)?P.return(new Y99(N,b,S)):P.return()})};
IZo=function(N){var b=Object.keys(N)[0];if(b)return N.screenExit&&(b=b+";"+N.screenExit.screen),b};
DG9=function(N){var b=new Map;N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,S!=null&&(b.has(S.taskType)||b.set(S.taskType,[]),b.get(S.taskType).push(S));return b};
VNs=function(N){N=[].concat(_.IX(N)).sort(function(S,P){return S-P});
var b=Math.floor(N.length/2);return N.length%2?N[b]:(N[b-1]+N[b])/2};
$G_=function(N,b){N=N===void 0?eJf:N;b=b===void 0?{}:b;_.aB("yt.logging.errors.log",_.ge);VaY();gVf(NxY(),b);window.onerror=N;eva=g9b;window.addEventListener("unhandledrejection",function(S){if(S.reason instanceof Error){var P=S.reason;_.hd(P,{source:"unhandledrejection"});P.name==="AbortError"&&(P.level="WARNING")}g9b(S.reason);S.preventDefault()})};
_.hvI=function(N){var b,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp,Xf,YO,Wk,S9,Vu,n9,mc,f9,mJ,Bk,RU;return _.r(function(Ab){if(Ab.nextAddress==1)return Ab.yield(_.nu(N,{mode:"readonly",enableRetries:!0},function(kZ){return dy(kZ,"playbackData").then(function(Ib){var Ud=Ib.map(function(ck){return ck.transfer}).filter(function(ck){return!!ck}),ob=Ib.map(function(ck){return ck.offlineVideoPolicy}).filter(function(ck){return!!ck}),PM=Ib.filter(function(ck){return!!ck.key}).map(function(ck){return _.Cu(_.Ku(ck.key).entityId,
"downloadStatusEntity")});
Ud=dy(kZ,"transfer",Ud);ob=dy(kZ,"offlineVideoPolicy",ob);PM=dy(kZ,"downloadStatusEntity",PM);var Vz=Ud.then(function(ck){ck=ck.reduce(function(d9,sa){(sa==null?0:sa.offlineVideoStreams)&&d9.push.apply(d9,_.IX(sa.offlineVideoStreams));return d9},[]).filter(function(d9){return!!d9});
return dy(kZ,"offlineVideoStreams",ck)});
return w7.all([Ud,ob,Vz,PM]).then(function(ck){var d9=_.O(ck);ck=d9.next().value;var sa=d9.next().value;var $O=d9.next().value;d9=d9.next().value;return[Ib,ck,sa,$O,d9]})})}),2);
if(Ab.nextAddress!=3)return b=Ab.yieldResult,Ab.yield(_.nu(N,{mode:"readonly",enableRetries:!0},function(kZ){return dy(kZ,"mainDownloadsListEntity").then(function(Ib){var Ud,ob;return(ob=(Ud=Ib[0])==null?void 0:Ud.downloads)!=null?ob:[]})}),3);
S=Ab.yieldResult;P=_.O(b);H=P.next().value;K=P.next().value;C=P.next().value;G=P.next().value;a=P.next().value;R=H;n=K;d=C;m=G;k=a;M={};l={};u={};J={};Z={};D=[];Y=_.O(n);for(V=Y.next();!V.done;V=Y.next())(g=V.value)&&(M[g.key]=g);e=_.O(d);for(se=e.next();!se.done;se=e.next())(Ca=se.value)&&(l[Ca.key]=Ca);ML=_.O(k);for(na=ML.next();!na.done;na=ML.next())(To=na.value)&&(u[To.key]=To);jp=_.O(m);for(Xf=jp.next();!Xf.done;Xf=jp.next())(YO=Xf.value)&&(J[YO.key]=YO);Wk=_.O(S);for(S9=Wk.next();!S9.done;S9=
Wk.next())Vu=S9.value,n9=void 0,Z[(n9=Vu.videoItem)!=null?n9:""]=!0,Vu.videoItem&&(f9=mc=void 0,mJ=(f9=(mc=_.Ku(Vu.videoItem))==null?void 0:mc.entityId)!=null?f9:"",D.push({externalVideoId:mJ}));Bk=R.filter(function(kZ){if(!kZ||!kZ.key||!kZ.offlineVideoPolicy)return!1;kZ=_.Ku(kZ.key).entityId;kZ=_.Cu(kZ,"downloadStatusEntity");var Ib;return!(kZ&&((Ib=u[kZ])==null?void 0:Ib.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
RU=Bk.map(function(kZ){var Ib=M[kZ.transfer],Ud=[];if(Ib==null?0:Ib.offlineVideoStreams)for(var ob=_.O(Ib.offlineVideoStreams),PM=ob.next();!PM.done;PM=ob.next())(PM=J[PM.value])&&Ud.push(PM);ob=l[kZ.offlineVideoPolicy];PM=Z;var Vz=kZ==null?void 0:kZ.playerResponseTimestamp,ck=_.Ku(ob.key).entityId;kZ=_.Cu(ck,"mainVideoEntity");if(ob.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var d9="OFFLINE_VIDEO_STATE_DISABLED";ob.expirationTimestamp&&Number(ob.expirationTimestamp)<Date.now()/1E3&&(d9="OFFLINE_VIDEO_STATE_EXPIRED")}else if(ob.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")d9="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ib==null?void 0:Ib.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":d9="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":d9="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":d9="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":d9="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":d9="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":d9="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:d9="OFFLINE_VIDEO_STATE_UNKNOWN"}if(d9==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ib==null?void 0:Ib.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":d9="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":d9="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":d9=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}ck={id:ck,videoState:d9};if(Ib==null?0:Ib.cotn)ck.cotn=Ib.cotn;if(Ib==null?0:Ib.maximumDownloadQuality)ck.selectedVideoQuality=Ib==null?void 0:Ib.maximumDownloadQuality;if(Ib==null?0:Ib.lastProgressTimeMs)ck.lastProgressTimeMs=Ib.lastProgressTimeMs;Vz&&(ck.playerResponseSavedTimeMs=String(Number(Vz)*1E3));Ib=String;Vz=0;Ud=_.O(Ud);for(d9=Ud.next();!d9.done;d9=Ud.next())if(d9=d9.value,d9.streamsProgress){d9=_.O(d9.streamsProgress);for(var sa=d9.next();!sa.done;sa=
d9.next()){var $O=void 0;Vz+=Number(($O=sa.value.numBytesDownloaded)!=null?$O:0)}}ck.downloadedBytes=Ib(Vz);ck.selectedOfflineMode=PM[kZ]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";ob.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(ck.offlinePlaybackDisabledReason=ob.offlinePlaybackDisabledReason);return ck});
return Ab.return({offlineVideos:RU,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:D}}})})};
q9_=function(){var N;return _.r(function(b){return b.nextAddress==1?b.yield(_.ap(),2):(N=b.yieldResult)?b.return(_.hvI(N)):b.return({state:"PES Unavailable"})})};
bBY=function(){var N,b,S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(_.ap(),2);if(H.nextAddress!=3)return(N=H.yieldResult)?H.yield(wI_(N),3):H.return({state:"PES Unavailable"});b=H.yieldResult;S={};P=b.reduce(function(K,C){K[C.key]=C;return K},S);
return H.return(NMp(P))})};
NMp=function(N){for(var b={},S=[],P=_.O(Object.keys(N)),H=P.next();!H.done;H=P.next()){var K=H.value;H=N[K];var C=void 0;if(((C=H)==null?void 0:C.entityType)==="mainVideoEntity"){delete N[K];var G=H.data;H={};if(G){var a=void 0;C=(a=G.videoId)!=null?a:"vid-"+K;K=N;H.video=G;delete H.video.formattedDescription;delete H.video.thumbnail;G.owner&&(a=K[G.owner],a==null?0:a.data)&&(delete K[a.key],H.video.owner=a.data,delete H.video.owner.avatar);if(G=G.downloadState)if(a=K[G],a==null?0:a.data)if(delete K[G],
G=a.data.playbackData)if(a=K[G],a!=null&&a.data){delete K[G];G=a.data;delete G.playerResponseJson;H.playbackData=G;if(G.transfer&&(a=K[G.transfer],a==null?0:a.data)){delete K[a.key];var R=a.data;H.transfer=R;a=[];R=_.O(R.offlineVideoStreams||[]);for(var n=R.next();!n.done;n=R.next())if(n=K[n.value])delete K[n.key],a.push(n.data);a&&(H.streams=a)}(G=G.offlineVideoPolicy)&&(G=K[G])&&G.data&&(delete K[G.key],H.offlineVideoPolicy=G.data)}b[C]=H}}else H&&H.entityType==="offlineOrchestrationActionWrapperEntity"&&
H.data&&(delete N[H.key],C=H.data,K=void 0,S.push({id:C.rootActionId,type:((K=C.actionProto)==null?void 0:K.actionType)||"",entity:H}))}b.wrapperEntities=S;Object.keys(N).length>0&&(b.unknownKeys=N);return b};
Ska=function(){var N,b,S,P,H,K,C,G,a;return _.r(function(R){if(R.nextAddress==1)return N=(new _.h2("")).hasLocalStorage(),P=!!((b=_.Ps.crypto)==null?0:(S=b.subtle)==null?0:S.importKey),H=!!_.Ps.BroadcastChannel,K=!!_.Ps.navigator.locks,R.yield(lb9(),2);C=R.yieldResult;G=N&&P&&H&&K&&C;a={isSupported:G};if(G)return R.return(a);a.missingBrowserFeatures=[];C||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");N||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
P||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");H||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");K||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return R.return(a)})};
PTY=function(N,b,S,P){var H=!1,K={contentId:void 0,contentType:"video"};b=_.O(Object.entries(b));for(var C=b.next();!C.done;C=b.next()){var G=_.O(C.value);C=G.next().value;G=G.next().value;N.includes(C)&&!S.has(G)?(K.contentId=G,S.add(G),H=!0):C==="contentType"?G==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(K.contentType="playlist"):typeof G==="object"&&G!==null&&PTY(N,G,S,P)}H&&P.push(K)};
HBe=function(){var N;return!((N=O_?O_:null)==null||!N.window)};
_.v19=function(N){if(_.sCf()){var b=_.Kso().mediaSession;try{b.setActionHandler("enterpictureinpicture",function(S){N(S)})}catch(S){}}};
_.sCf=function(){return!(!O_||!O_)&&fa()&&_.MpU("Chromium")>=120};
OBE=function(N){for(var b=[],S=_.O(document.styleSheets),P=S.next(),H={};!P.done;H={node$jscomp$777:void 0},P=S.next())H.node$jscomp$777=P.value.ownerNode,H.node$jscomp$777&&(H.node$jscomp$777 instanceof HTMLStyleElement||H.node$jscomp$777 instanceof HTMLLinkElement)&&b.push(new Promise(function(K){return function(C){var G=K.node$jscomp$777.cloneNode(!0);G.onload=function(){C()};
G.onerror=function(){_.$h(Error("wj"));C()};
N.document.head.appendChild(G)}}(H)));
return Promise.all(b)};
mde=function(N){var b=[_.ko(CTe),_.ko(G_I),_.ko(rGO)];cGE(window.document.documentElement,N.document.documentElement,[_.ko(a5I),_.ko(RDu),_.ko(Ws9),_.ko(n1s),_.ko(dd9)]);cGE(window.document.body,N.document.body,b)};
cGE=function(N,b,S){N=_.O(N.attributes);for(var P=N.next();!P.done;P=N.next())if(P=P.value)try{_.RX(S,b,P.name,P.value)}catch(H){}};
TMU=function(N,b){N=new _.CS(N.document.documentElement);N.start(k_b,b);return N};
tLY=function(N){var b=N.document.documentElement;b.addEventListener("click",function(S){sIE(b,S)});
b.addEventListener("touchstart",function(S){GKa(S)});
b.addEventListener("mousedown",function(S){GKa(S)})};
Fsf=function(N,b,S,P){P=P===void 0?!1:P;b=new MLo(b||N,S||N);return{x:N.x+((P===void 0?0:P)?b.lengthX*-1:b.lengthX)*.2,y:N.y+((P===void 0?0:P)?b.lengthY*-1:b.lengthY)*.2}};
BMs=function(N){if(!N)return!1;var b=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",S,P,H,K=(H=(S=N.errorScreen)==null?void 0:S.playerLegacyDesktopYpcTrailerRenderer)!=null?H:(P=N.errorScreen)==null?void 0:P.ypcTrailerRenderer;return!!b||!!K};
_.l5p=function(N,b){if(!N)return!1;var S,P=(S=N.errorScreen)==null?void 0:S.playerLegacyDesktopYpcOfferRenderer,H;b=!!(b==null?0:(H=b.playerOverlayRenderer)==null?0:H.gatedActionsOverlayRenderer);return!!BMs(N)||!!P||!!b};
upO=function(N){return Lsf(N,0,"gclid",N.search(f5Y))>=0||Lsf(N,0,"gad_source",N.search(f5Y))>=0};
QCL=function(N){var b=[],S=0;return{clear:function(){S=b.length=0},
push:function(P){b[S]=P;S=(S+1)%N},
iterate:function(){return function H(){var K,C,G,a;return _.GN(H,function(R){switch(R.nextAddress){case 1:_.oX(R,2),K=b.length,C=0;case 4:if(!(C<K)){R.jumpTo(2);break}G=S+C;a=_.RT;return R.yield(b[G%K],7);case 7:a(R.yieldResult);C++;R.jumpTo(4);break;case 2:_.xw(R),_.Jv(R,0)}})}()}}};
xdf=function(N){N.eventsToIgnore||(N.eventsToIgnore=[]);var b=N.eventsToIgnore.map(vL9),S=new Set(b),P=QCL(N.bufferSize);return{flush:function(){var H=Array.from(P.iterate());P.clear();H=H.map(function(K){return{name:K.name,timestamp:K.startTime,attributes:K.attributes}});
return JSON.stringify(H)},
onSpanStart:function(H){H.name==="event"&&S.has(H.attributes.type)||P.push(H)}}};
o1u=function(N){N=xdf(N);var b=N.flush;Qrf({onSpanStart:N.onSpanStart});we.subscribe("handleError",function(S){try{S.params.breadcrumbs=b()}catch(P){_.ge(P,"WARNING")}})};
iB9=function(){LA("web_tracing_action");_.fA("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
JGY=function(){LA("web_tracing_action");_.fA("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
jCf=function(N,b,S){if(b===void 0){UdU||(JGY(),setInterval(JGY,6E5),UdU=!0);var P="web_tracing_action"}else P=b;var H,K=((H=N.endTime)!=null?H:N.startTime)-N.startTime;H={};S=ZBu(N.name,K,N.startTime,{webTracing:(H[N.name]=N.attributes,H)},S,P,{spanStatus:N.status});if(N.children)for(N=_.O(N.children),P=N.next();!P.done;P=N.next())jCf(P.value,b,S)};
zDs=function(N){var b=ZcI.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(S){S.data&&typeof S.data==="object"&&(S=S.data,S.from==="extension"&&S.app==="yt.telemetry"&&(b("Received message from extension",S),N.onMessage(S)))});
return function(S,P){S={app:"yt.telemetry",from:"app",key:S,payload:P};b("Sending message to extension",S);window.postMessage(S,"*")}};
AGf=function(){var N=N===void 0?3E3:N;var b=zDs({onMessage:function(){}}),S=[];
return{onSpanEnd:function(P){P.parentId==null&&S.push(P)===1&&setTimeout(function(){var H=[].concat(_.IX(S));S.length=0;b("spansReported",{spans:H})},N)}}};
Xgf=function(N){N=N===void 0?400:N;var b=[],S=[];return{start:function(){return Rdo({checkoutEveryNth:N,emit:function(P,H){H&&(b=S,S=[]);S.push(P)}})},
getRecording:function(){return[].concat(_.IX(b),_.IX(S))}}};
Yk9=function(){(new E1u({sessionReplayEvents:_.d7("web_tracing_session_replay",0)})).subscribe(function(N){if(N.sessionReplayEvents>0)try{var b=Xgf(N.sessionReplayEvents);b.start();if(_.T("web_tracing_session_replay_demo")){var S=console.log;window.exportSessionReplay=function(){var P=JSON.stringify(b.getRecording(),null,2);P=pgU(new Blob([P],{type:"text/plain"}));var H=document.createElement("a");H.download="session_replay.json";H.dataset.downloadurl=["application/json",H.download,H.href].join(":");
H.style.display="none";H.href=P;H.click();URL.revokeObjectURL(P);S("View replay at go/yt-session-replay-viewer")}}}catch(P){_.$h(Error("yj"))}})};
I5O=function(){var N=window.fetch;window.fetch=function(){var b=_.$I.apply(0,arguments),S=_.O(b),P=S.next().value;S=S.next().value;var H=$R("httpEvent",{method:(S===void 0?{}:S).method||"GET",path:yGU(P),type:"fetch"},{active:!1});return N.apply(null,_.IX(b)).then(function(K){H.addAttributes({statusCode:K.status,statusText:K.statusText});H.end();return K}).catch(function(K){H.end("SPAN_STATUS_ERROR");
throw K;})}};
Dd9=function(){var N=XMLHttpRequest.prototype.open,b=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(S,P,H,K,C){var G=this;H=H===void 0?!0:H;this._requestData={method:S,url:P.toString()};this.addEventListener("load",function(){var a=G._span;a==null||a.addAttributes({statusCode:G.status,responseContentLength:G.responseText.length});a==null||a.end()});
this.addEventListener("error",function(){var a=G._span;a==null||a.addAttributes({statusCode:G.status,statusText:G.statusText});a==null||a.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var a=G._span;a==null||a.addAttributes({statusCode:G.status,aborted:!0});a==null||a.end()});
N.apply(this,[S,P,H,K,C])};
XMLHttpRequest.prototype.send=function(S){var P=this._requestData||{method:"N/A",url:"N/A"};this._span=$R("httpEvent",{method:P.method,path:yGU(P.url),type:"xhr"},{active:!1});b.apply(this,[S])}};
yGU=function(N){try{if(N instanceof URL)return N.pathname;N instanceof Request&&(N=N.url);return(new URL(N,"https://youtube.com")).pathname}catch(b){return"<unable to parse path>"}};
g1_=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var N=window.performance.getEntriesByType("navigation");if(N.length>0){var b=N[0],S=window.performance.timeOrigin;$R("pageLoad",{navigationType:VLE(b.type),unloadEventStart:Math.round(b.unloadEventStart),unloadEventEnd:Math.round(b.unloadEventEnd),domInteractive:Math.round(b.domInteractive),domContentLoadedEventStart:Math.round(b.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(b.domContentLoadedEventEnd),
domComplete:Math.round(b.domComplete),loadEventStart:Math.round(b.loadEventStart),loadEventEnd:Math.round(b.loadEventEnd),redirectCount:b.redirectCount},{active:!1,startTime:S+b.startTime,endTime:S+b.loadEventEnd})}}catch(P){}})};
VLE=function(N){switch(N){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
wgE=function(){for(var N=eDo.value,b={},S=_.O(N.enabledSpansArray),P=S.next();!P.done;P=S.next())b[P.value]=!0;uyL({sessionId:WpY(),enabledSpans:b,shouldSampleFn:function(H,K,C){if($dO){var G;return H==="shortToShort"||(C==null?void 0:(G=C.rootSpan())==null?void 0:G.name)==="shortToShort"}return!0}});
Ups();et("pageLoad")&&g1_();et("httpEvent")&&(I5O(),Dd9());N.exportToCsi&&Qrf(hD_);N.exportToDevTools&&Qrf(AGf());N.maxBreadcrumbs>0&&o1u({eventsToIgnore:qkI,bufferSize:N.maxBreadcrumbs})};
NJb=function(N){return new Promise(function(b){window.setTimeout(b,N)})};
b_U=function(N){var b={bicf:function(K){N.dFl=K},
blc:function(){return N.getLatestChallengeResponse()},
bcr:function(K){N.tJX.push(K)}},S=window;
S.ntpevasrs=b;if(S.ntpqfbel!==void 0)for(var P=_.O(S.ntpqfbel),H=P.next();!H.done;H=P.next())H=H.value,H(b);S.ntpqfbel=void 0};
Shp=function(N){return _.r(function(b){if(b.nextAddress==1)return _.u4(b,2),b.yield(N.bGG(),4);if(b.nextAddress!=2)return _.su(b,0);_.UE(b);_.Zd(b)})};
P_b=function(N){var b,S;(b=N.ytcsi)==null||(S=b.tick)==null||S.call(b,"pot_ist")};
H_p=function(N){if(N instanceof Error){var b=_.hl("yt.logging.errors.log");b&&b(N,"WARNING")}};
sRp=function(N){try{var b=JSON.parse(N);if(b.bgChallenge)return b}catch(S){}};
vxY=function(){var N=window,b={networkStatusManagerPromise:_.aN().resolve(new GY_(_.sv)),initialChallengeSli:_.T("wpo_att_sli")?new _.UPs("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};N=N===void 0?window:N;var S=N.ytAtR,P;b==null||(P=b.initialChallengeSli)==null||_.Wp(P);if(S){if(S=sRp(S)){var H;b==null||(H=b.initialChallengeSli)==null||_.nS(H,"SUCCESS");KgY(S,b)}N.ytAtR=void 0}else N.ytAtRC=function(K){if(K=sRp(K)){var C;b==null||(C=b.initialChallengeSli)==null||
_.nS(C,"SUCCESS");KgY(K,b);N.ytAtRC=void 0}}};
Gpo=function(){if(O_I)return O_I;try{var N=_.U5("IFRAME");_.SW(N,_.Mz(C__));N.sandbox.add("allow-same-origin");N.style.display="none";document.body.appendChild(N);return O_I=N}catch(b){N=new _.jU("Failed to create sandbox iframe"),_.ge(N)}};
r4O=function(){return function(N,b){_.Vg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[N]=b}};
c4p=function(){return function(N,b){var S={};S[N]=b;N=_.$U(_.DDs)(S);Object.keys(N).length>0&&_.lC(N)}};
WgO=function(){if(_.duY()==="hidden")var N="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.duY()==="visible"&&(N="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",a3e=null);N&&RZf(N)};
RZf=function(N){if(N==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||N==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(nxL===N)return;nxL=N}var b=9E4+Math.random()*2E3;if(N!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.nv()>b)&&_.duY()==="visible"){b=-1;a3e&&(b=Math.round((0,_.nh)()-a3e));var S=String;var P=_.hl("_fact",window);P=P==null||P==-1?-1:Math.max(Date.now()-P,0);_.Dn("foregroundHeartbeat",{firstActivityMs:S(P),clientDocumentNonce:nMe,index:String(drE),lastEventDeltaMs:String(b),trigger:N});
_.aB("_fact",-1,window);drE++;a3e=(0,_.nh)()}};
mru=function(N,b,S,P,H,K){b=new Uint8Array(b);if(N.length===0)return b;var C=0;H=H!=null?H:N.length-1;for(var G=S;G<=H;G++){var a=N[G],R=G===S?P:0,n=void 0,d=G===H?(n=K)!=null?n:a.length:a.length;a=a.subarray(R,d);b.set(a,C);C+=a.length}return b};
_.kpL=function(){try{return!!self.sessionStorage}catch(N){return!1}};
TJo=function(){var N=navigator;return new Promise(function(b,S){var P;(P=N.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?N.webkitTemporaryStorage.queryUsageAndQuota(function(H,K){b({usage:H,quota:K})},function(H){S(H)}):S(Error("Hj"))})};
txu=function(N,b){var S={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};DEY(b,S);b=b.errorSeverity;b===3?_.ge(N,"ERROR",void 0,void 0,void 0,S):b===2&&_.ge(N,"WARNING",void 0,void 0,void 0,S);_.T("cow_if_errors_in_popup")&&b===3&&N.message.indexOf("<If>")!==-1&&window.alert(N.message)};
Mx9=function(N,b){var S=V3.get(N)||{layerNode:b};S.layerNode=b;fxf(N,S);N.getScreenLayer=function(){return d6(S.layerNode)}};
Fgo=function(N){var b;N=N.parentNode;for(var S;N&&((b=V3.get(N))==null||!b.isRenderer)&&!((S=N.polymerController)!=null?S:N).isRenderer_;)N=N.parentNode||N.host;if(b=N)return V3.get(b)};
BJa=function(N){if(N){V3.delete(N);var b=_.aN().resolve(Wz);xeI(N,b)}};
Lge=function(N,b,S){if(S===void 0?0:S){if(S=N.getAttribute("client-ve-type"),b.data&&!b.disableReactiveLogging||S)_.VF(function(){l3O(N,_.he(b.data))},"Ag"),_.ej(function(){return void BJa(N)})}else typeof b.data!=="function"&&l3O(N,b.data)};
l3O=function(N,b){f3e++;uma(N,b)&&_.Dj.addJob(function(){_.ml(_.Dj,function(){if(uma(N,b)&&N.ownerDocument.documentElement===document.documentElement&&N){var S;if(N.getAttribute("layer")){var P=S=Number(N.getAttribute("layer")),H=V3.get(N);H?H.layerNode.layer=P:Mx9(N,new QRE(P));(P=Fgo(N))&&(H=V3.get(N))!=null&&(H.layerNode.parent=P.layerNode)}else if(S=V3.get(N))S=d6(S.layerNode);else{S=d6;P=new QRE;if(H=Fgo(N))P.parent=H.layerNode;Mx9(N,P);S=S(P)}S!=null||(S=0);P=N.getAttribute("client-ve-type");
H=Number(P);var K=!1;P=!1;var C=V3.get(N),G;if((G=C)&&!(G=C[xra]!==b)&&(G=H)){var a;G=((a=V3.get(N))==null?void 0:a.clientVeType)===void 0}G&&(C[xra]=b,K=P=C.isRenderer=!0);V3.has(N)&&(V3.get(N).clientVeType=H);N.visualElement&&(P=!0);if(_.T("wiz_next_ld_fix_client_ve_spec")){var R;a=((R=_.t(b==null?void 0:b.rendererContext,_.mt))==null?void 0:R.loggingDirectives)||(b==null?void 0:b.loggingDirectives)}else a=b==null?void 0:b.loggingDirectives;a&&a.clientVeSpec&&(R=oxf(_.W7(),N),R=_.i_o(_.dG(),a,R||
void 0,S))&&(N.visualElement=R);!N.visualElement&&H&&K&&(N.veType=H,R=void 0,_.T("wiz_next_client_ve_parent_fix")&&(R=oxf(_.W7(),N)),R=_.n7(_.dG(),N,R,S),N.visualElement=R);P&&(R=_.aN().resolve(Wz),Rq(N,{data:b,observer:R,layer:S,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
uma=function(N,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||_.t(b==null?void 0:b.rendererContext,_.mt)||N.getAttribute("client-ve-type")?!0:!1};
J4I=function(N,b,S){N.componentType!==zz&&S instanceof HTMLElement&&b&&!_.T("cow_logging_in_component_wrapper")&&Lge(S,b,!0)};
zZu=function(){if(!Ure){Ure=!0;var N=_.T("enable_wiz_context_per_component")||!1;N=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.T("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:N,enableContextBasedComponentStacks:N},{handleError:txu,enableComponentStacksInErrorMessages:!1});Object.assign(dA,N);_.T("web_c3_idom_interop_ks")&&(CZf=Z_U);jRs();RMo=NTa;rwU=SzE}};
jRs=function(){_.T("cow_logging_in_component_wrapper")?(CjO=function(N,b){b instanceof HTMLElement&&Lge(b,N,!0)},qsp=function(){}):(CjO=function(){},qsp=J4I)};
A4Y=function(N,b,S){b=b===void 0?{}:b;var P,H=(P=_.t(N.commandMetadata,_.GY))==null?void 0:P.url;P=b.form||{};!S||P.element||P.skipDefaultElement||(b.form=b.form||{},b.form.element=S);if(H&&H!=="/service_ajax")return{type:0,command:N,form:b.form};if(_.T("kevlar_service_command_check")){if(_.Eb(_.aN().resolve(_.Mn),N))return Object.assign({},{type:1,command:N},b)}else{var K;if((K=_.t(N.commandMetadata,_.GY))==null?0:K.apiUrl)return Object.assign({},{type:1,command:N},b)}return{type:2,command:N,form:b.form}};
Xwp=function(N){if(N.form){var b=N.form,S=Object.assign({},b);b=b.element;S=(delete S.element,S);if(b)return[_.HN(b,[N.command,S,N.commandController])]}return[]};
Exb=function(N){if(N.form){var b=N.form,S=Object.assign({},b);b=b.element;S=(delete S.element,S);b&&_.sR(b,[N.command],b,S)}};
YhL=function(N,b,S){var P=new pwU(N,b),H=new kE(N,b,S);N={"/youtubei/v1/browse":new TN(N,b,S),"/youtubei/v1/player":P,"/youtubei/v1/navigation/resolve_url":new tP,"/youtubei/v1/next":H,"/youtubei/v1/guide":new M5(S),"/youtubei/v1/search":new F0(N,b,S),"/youtubei/v1/reel/reel_item_watch":new Bp(N,b,S),"/youtubei/v1/get_watch":new l0(P,H)};N["/youtubei/v1/account/account_menu"]=new LS;N["/youtubei/v1/notification/get_notification_menu"]=new fS;return N};
QG=function(){var N=_.aN().resolve(_.u0);return Promise.resolve(y4O(N,_.Ps.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
I3I=function(N){return N&&(N=_.xE(_.q4I(N)))?(new URLSearchParams(N)).get("service"):null};
JP=function(N,b){_.PX(_.oT(),function(){_.uC("adl")});
_.aN().resolve(Drs)(b);N=N.root;N.loadData&&N.loadData(b);(b==null?0:b.response)?_.nS(z2E(),"SUCCESS"):_.$h(new _.jU("Lifecycle: No response in data",_.g8("IS_SHELL_LOAD"),b?b.page:"NO_PAGE",b?b.endpoint:"NO_ENDPOINT"));N.polymerController.$["page-manager"].lazyPrepareCriticalPages((b==null?void 0:b.page)||"",b.endpoint);var S,P;((P=_.t(b==null?void 0:(S=b.endpoint)==null?void 0:S.commandMetadata,_.GY))==null?0:P.webPageType)&&_.h0().dispatch(_.i0(_.t(b.endpoint.commandMetadata,_.GY).webPageType))};
Vxo=function(){var N,b;return _.r(function(S){switch(S.nextAddress){case 1:N=window;if(!N.getDataPromise){S.jumpTo(2);break}_.u4(S,3);return S.yield(N.getDataPromise(),5);case 5:return S.return(S.yieldResult);case 3:return _.UE(S),S.yield(QG(),6);case 6:return S.return(S.yieldResult);case 2:if(N.getInitialData)return b=N.getInitialData(),N.getInitialData=void 0,S.return(b);throw Error("Jj`"+_.Ps.location.href);}})};
eZa=function(){_.DH("CSI_SERVICE_NAME","youtube");_.lC({loadType:"cold"});_.T("kevlar_log_lcp")&&gxa(function(N){_.uC("lcp",N.value)})};
$rE=function(){var N=_.PW(document.location.href,"enable");N&&N.indexOf("scraper")>-1&&_.DH("ADD_SCRAPER_ATTRIBUTES",!0)};
bbs=function(N){var b=N.root;N=[hZI,qh9,_.U_];_.T("web_feedback_endpoint_autolog_allowlist_killswitch")&&N.push(_.ZM,ww9);NLa(function(S,P){return A4Y(S,P,b)},function(S){if(!S.command)return[];
var P;((P=S.form)==null?0:P.element)?S.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},S.form,{endpoint:S.command})})):b.handleNavigate(S);return[]},N);
_.aN().addProvider({provide:_.Wq,useValue:_.rG.instance})};
P7e=function(){var N={},b={},S;for(S in So9){var P=_.O(_.QF(So9[S],void 0,"IAtZ7"));N[S]=P.next().value;b[S]=P.next().value}return[N,function(H){for(var K in H){var C=void 0;(C=b[K])==null||C(H[K])}}]};
_.K_O=function(N,b){var S=!1;S=S===void 0?!1:S;var P=_.Vm.getValueByKeys(N,"contents","twoColumnWatchNextResults","results","results","contents"),H=_.Vm.getValueByKeys(N,"contents","twoColumnWatchNextResults","playlist","playlist")||null;S&&(H=null);var K=S=null;if(H)S=_.Vm.getValueByKeys(H,"titleText"),K=_.Vm.unsafeClone(_.Vm.getValueByKeys(H,"longBylineText")),P="",K&&(P=_.es(K)),K=_.gy(P);else if(P){P=_.O(P);for(var C=P.next();!C.done;C=P.next())C=C.value,C.videoPrimaryInfoRenderer&&(S=_.Vm.getValueByKeys.apply(_.Vm,
[C].concat(_.IX(Hb9)))),C.videoSecondaryInfoRenderer&&(K=_.Vm.getValueByKeys.apply(_.Vm,[C].concat(_.IX(sMO))))}else _.qB(Error("Oj"));var G;N.currentVideoEndpoint?G=N.currentVideoEndpoint:_.qB(Error("Pj"));var a;b&&(a=_.Vm.getValueByKeys(b,"playabilityStatus","miniplayer","miniplayerRenderer"));N={miniplayerTitle:S,miniplayerSubtitle:K,watchEndpoint:G,playlistData:H};a&&(N.miniplayerRenderer=a);return N};
vr9=function(N){if(N)return _.xH(N)};
_.Ob_=function(){return{isFullscreen:function(){throw Error("Qj");},
toggleFullscreen:function(){throw Error("Rj");},
exitFullscreen:function(){throw Error("Sj");},
isAutonavEnabled:function(){throw Error("Tj");},
setAutonavEnabled:function(){throw Error("Uj");},
isAutoplaySetExplicitly:function(){throw Error("Vj");}}};
C7E=function(N){return N.videoDuration?N.numTaps>1&&N.tapDirection!==0?_.j3(N.draggedTime/N.videoDuration,0,1):_.j3((N.playedTime||0)/N.videoDuration,0,1):0};
G19=function(N){return N.videoDuration?N.isDragging||N.numTaps>1&&N.tapDirection!==0?_.j3(N.draggedTime/N.videoDuration,0,1):_.j3((N.playedTime||0)/N.videoDuration,0,1):0};
cYL=function(N){var b,S,P;return _.t(N==null?void 0:(b=N.markersMap)==null?void 0:(S=b.find(function(H){return H.key==="HEATSEEKER"}))==null?void 0:(P=S.value)==null?void 0:P.heatmap,rYI)};
aQ9=function(N){var b,S;return(S=(b=cYL(N))==null?void 0:b.heatMarkersDecorations)!=null?S:[]};
RGp=function(N){if(_.T("mweb_supported_chapters_killswitch"))return!0;var b;return!!(N==null?0:(b=N.markersMap)==null?0:b.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))};
_.W_U=function(N){var b=Object,S=b.assign,P;N={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(P=N==null?void 0:N.getPlayerState())!=null?P:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return S.call(b,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},N,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
nrU=function(N){return function(b){var S=N(),P,H=(P=S.playerApi)==null?void 0:P.getPlayerState();b&&b!==S.playerState&&(b===1||b===2)&&S.setState({playerState:H})}};
m9Y=function(N){return function(b){var S=N(),P=S.playerApi;P&&(b==null?void 0:b.type)==="newdata"&&(d9a&&(clearTimeout(d9a),d9a=void 0),_.T("web_shorts_use_progress_state_for_gapless")?(b=P==null?void 0:P.getProgressState(b==null?void 0:b.playertype),b=b.seekableEnd-b.seekableStart):b=P==null?void 0:P.getDuration(b==null?void 0:b.playertype),S.setState({playedTime:0,videoDuration:b}))}};
k1b=function(N){return function(b){var S=N(),P=S.playerApi;if(P){var H=P.getPresentingPlayerType();_.T("web_shorts_use_progress_state_for_gapless")?(P=P.getProgressState(H),P=P.seekableEnd-P.seekableStart):P=P.getDuration(H);S.setState({playedTime:b,videoDuration:P})}}};
tXp=function(N){_.fo(112394,N,function(){return TLe},function(b){TLe=b})};
BLs=function(N,b){if(!N)return[];var S,P,H;N=((S=N.markersMap)==null?void 0:(P=S.find(function(K){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(K.key)}))==null?void 0:(H=P.value)==null?void 0:H.chapters)||[];
!MX9(N)||(b==null?0:b.ignoreStub)||(N=[F_p()].concat(_.IX(N)));return N};
F_p=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
MX9=function(N){if(N.length===0)return!1;var b;return((b=_.t(N[0],zN))==null?void 0:b.timeRangeStartMillis)!==0};
AP=function(N){return N?N.timeRangeStartMillis||0:0};
L_L=function(N,b){if(N.isDragging&&b)return N=lQf(N,b),N===-1?F_p():BLs(b)[N]};
lQf=function(N,b){return N.isDragging&&b?BLs(b,{ignoreStub:!0}).findIndex(function(S,P,H){S=fQf(N);return uUL(S,H,P).scrubberHovering}):-1};
fQf=function(N){return Object.assign({},N,{videoDuration:N.videoDuration*1E3,playedTime:N.playedTime*1E3,draggedTime:N.draggedTime*1E3})};
uUL=function(N,b,S){var P=AP(_.t(b[S],zN));b=AP(_.t(b[S+1],zN))||N.videoDuration;S=N.isDragging;var H;if(H=N.isDragging)H=N.draggedTime,H=H!==null&&H>=P&&H<b;var K=N.playedTime;return K!==null&&K>=P&&K<b?{videoPosition:"active",isScrubbing:S,scrubberHovering:H}:N.playedTime<P?{videoPosition:"pending",isScrubbing:S,scrubberHovering:H}:{videoPosition:"seen",isScrubbing:S,scrubberHovering:H}};
QMp=function(N,b){return N.videoPosition==="seen"||(b===void 0?0:b)>0};
x9u=function(N,b,S){b=N/b.storyboardInterval;var P=BLs(S);if(!P.length)return-b*72;S=0;P=_.O(P);for(var H=P.next();!H.done;H=P.next())if(AP(_.t(H.value,zN))/1E3<N)S++;else break;return-(b*72)-S*56};
orI=function(N){return N?N.width/N.columns:0};
ibp=function(N){return N.isHovering?N.hoveredTime:N.draggedTime};
JYo=function(N,b){N=N.draggedTime*1E3;return N>=b.visibleTimeRangeStartMillis&&N<=b.visibleTimeRangeEndMillis};
_.U99=function(N){if(N===void 0||Number.isNaN(N))return"--:--";var b=Math.abs(Math.floor(N)),S=Math.floor(b/86400),P=Math.floor(b%86400/3600),H=Math.floor(b%3600/60);b=Math.floor(b%60);var K="";S>0&&(K+=S+":",P<10&&(K+="0"));if(S>0||P>0)K+=P+":",H<10&&(K+="0");K+=H+":";b<10&&(K+="0");K+=b;return N>=0?K:"-"+K};
Zbf=function(N,b){return function(){var S=ibp(N());var P=b();var H=N().playerApi;if(H&&H.getNumberOfStoryboardLevels()!==0){var K=H.getStoryboardFrameIndex(S,1);K!==-1?P=H.getStoryboardFrame(K,1):(S=H.getStoryboardFrameIndex(S,0),H=H.getStoryboardFrame(S,0),P&&H&&(H.height*=3,H.width*=3),P=H)}else P=null;if(!P)return null;b()&&(P.width=90*P.columns,P.height=160*P.rows);return P}};
_.X0=function(N){if(!N||N.getVideoData)return N};
jMf=function(){var N;return{playerApi:(N=_.G8())!=null?N:void 0}};
zGs=function(N){var b;_.r(function(S){if(S.nextAddress==1)return S.yield(_.Cf(),2);if(b=S.yieldResult)b.unMute(!0),b.setVolume(N,!0);_.Zd(S)})};
AYY=function(N,b){N&&(N.value=""+b,N.style.setProperty("--gradient-percent",b+"%"))};
XQY=function(N){var b;return(b=N==null?void 0:N.value)!=null?b:0};
Erb=function(){var N;_.r(function(b){if(b.nextAddress==1)return b.yield(_.Cf(),2);N=b.yieldResult;if(!N)return b.return();N.isMuted()?N.unMute(!0):N.mute(!0);_.Zd(b)})};
pQu=function(N){var b=_.aN().resolve(_.E_).getPlayerElement();b&&N&&(N===1?b.pause():b.play())};
YoU=function(N){return!!_.t(N,_.pS)||!!_.t(N,_.YE)};
yY_=function(N){_.PN(N,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
IQ_=function(N){_.PN(N,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
VXO=function(N){return _.E2(N.document.body,function(){return _.c(D9e,null)},"nh")};
grU=function(){var N;return(N=navigator.userActivation)==null?void 0:N.isActive};
eGY=function(){var N=window.performance.getEntriesByType("navigation");return N?N.map(function(b){return b.type}).includes("reload"):!1};
$9u=function(N,b){b=b===void 0?!1:b;var S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return b||!_.T("kevlar_shorts_seedless_retry_initial_load")||(S=window,P=!(!S.getDataPromise&&!S.getInitialData),P)?C.yield(Vxo(),2):(setTimeout($9u.bind(window,N,!0),1E3),C.return());if(C.nextAddress!=3)return H=C.yieldResult,C.yield(hGe(H),3);K=C.yieldResult;JP(N,K);_.Zd(C)})};
hGe=function(N){var b;if((b=N.response)==null||!b.replacementEndpoint)return _.KA(N);b=_.aN().resolve(_.u0);N=N.response;_.t(N.replacementEndpoint,_.kn)&&N.sequenceContinuation&&(_.t(N.replacementEndpoint,_.kn).sequenceParams=N.sequenceContinuation);return yG(b,N.replacementEndpoint,{},_.Ps.location.href,"shorts",function(){},function(){return!1})};
wQI=function(N){var b=_.aN().resolve(qoO);N.playerResponse&&b.handleResponse(N.playerResponse);N.response&&b.handleResponse(N.response)};
NoU=function(N){var b=_.h0(),S,P=_.t((S=N.response)==null?void 0:S.frameworkUpdates,yC),H;S=_.t((H=N.playerResponse)==null?void 0:H.frameworkUpdates,yC);var K;N=_.t((K=N.reelWatchSequenceResponse)==null?void 0:K.frameworkUpdates,yC);P&&_.WU(P,b);S&&_.WU(S,b);N&&_.WU(N,b)};
bIp=function(N){var b;_.T("enable_redirect_linking_for_desktop_web_client")&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&N.url&&(N.url=N.url.toString()+window.location.hash)};
HI9=function(N){var b=_.aN(),S=b.resolve(_.u0);b=b.resolve(_.Sif);N.endpoint&&(S=PRo(S,N.endpoint),S.content&&N.response&&_.IT(b,N.response,S.content),S.player&&N.playerResponse&&_.IT(b,N.playerResponse,S.player),S.reelSequence&&N.reelWatchSequenceResponse&&_.IT(b,N.reelWatchSequenceResponse,S.reelSequence))};
DM=function(N,b){wQI(b);NoU(b);var S;(b==null?0:b.url)&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&(bIp(b),(S=I3I(b.url))&&_.St(N.root,"yt-initialize-third-party",[S,b]));HI9(b);S=_.aN();var P=S.resolve(s4a);b.playerResponse&&S.resolve(KZe).handleResponse(b.playerResponse);if(b.playerResponse){S=void 0;if(_.T("ab_v_vid_sig")&&b.endpoint){var H,K=(H=_.t(b.endpoint,_.Iv))!=null?H:_.t(b.endpoint,_.kn);K&&(S=K.videoId)}vdo(P,b.playerResponse,S)}b.playerResponse&&S$f(b.playerResponse)&&
_.T("web_enable_ab_rsp_cl")?dwa().then(function(){OIu(P,b.playerResponse);JP(N,b)}):JP(N,b)};
GT9=function(N){if(N=N.root.data){var b=_.aN().resolve(CRb);N.endpoint&&(N.response&&b.handleResponse(N.response,void 0,document.querySelector("ytd-app")),N.playerResponse&&b.handleResponse(N.playerResponse),N.reelWatchSequenceResponse&&b.handleResponse(N.reelWatchSequenceResponse))}};
rku=function(N){var b,S,P,H,K,C;return _.r(function(G){switch(G.nextAddress){case 1:b=window;if(!b.getDataPromise){G.jumpTo(2);break}_.u4(G,3);return G.yield(b.getDataPromise(),5);case 5:S=G.yieldResult;DM(N,S);_.su(G,4);break;case 3:return _.UE(G),G.yield(QG(),6);case 6:P=G.yieldResult,JP(N,P);case 4:return G.return();case 2:if(!_.T("sw_nav_preload_pbj")){G.jumpTo(7);break}b.fetchInitialData=function(){var a;return _.r(function(R){if(R.nextAddress==1)return R.yield(QG(),2);a=R.yieldResult;JP(N,a);
_.Zd(R)})};
if(b.getInitialData){b.loadInitialData=function(a){DM(N,a)};
H=b.getInitialData();b.getInitialData=void 0;DM(N,H);G.jumpTo(8);break}b.fetchInitialData=void 0;return G.yield(QG(),9);case 9:K=G.yieldResult,JP(N,K);case 8:return G.return();case 7:b.getInitialData?(C=b.getInitialData(),b.getInitialData=void 0,DM(N,C)):b.loadInitialData=function(a){DM(N,a)},_.Zd(G)}})};
a1p=function(){var N=new cku;_.bh_(N);N.registerInitializationCallback(function(){RSU(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
N.registerCallback("error",function(b,S,P){_.e_(Error("Zj`"+S+"`"+P))})};
Rjp=typeof Object.create=="function"?Object.create:function(N){var b=function(){};
b.prototype=N;return new b};
WZE=typeof Object.defineProperties=="function"?Object.defineProperty:function(N,b,S){if(N==Array.prototype||N==Object.prototype)return N;N[b]=S.value;return N};
ndE=function(N){N=["object"==typeof globalThis&&globalThis,N,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<N.length;++b){var S=N[b];if(S&&S.Math==Math)return S}throw Error("a");};
_.d0=ndE(this);d0o="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.d0.BigInt64Array&&(d0o.push("BigInt64"),d0o.push("BigUint64"));var kTo=function(N,b){if(b)for(var S=0;S<d0o.length;S++)m0E(d0o[S]+"Array.prototype."+N,b)},VG=function(N,b){b&&m0E(N,b)},m0E=function(N,b){var S=_.d0;
N=N.split(".");for(var P=0;P<N.length-1;P++){var H=N[P];if(!(H in S))return;S=S[H]}N=N[N.length-1];P=S[N];b=b(P);b!=P&&b!=null&&WZE(S,N,{configurable:!0,writable:!0,value:b})},Tob=function(){function N(){function S(){}
new S;Reflect.construct(S,[],function(){});
return new S instanceof S}
if(typeof Reflect!="undefined"&&Reflect.construct){if(N())return Reflect.construct;var b=Reflect.construct;return function(S,P,H){S=b(S,P);H&&Reflect.setPrototypeOf(S,H.prototype);return S}}return function(S,P,H){H===void 0&&(H=S);
H=Rjp(H.prototype||Object.prototype);return Function.prototype.apply.call(S,H,P)||H}}(),tSO;
if(typeof Object.setPrototypeOf=="function")tSO=Object.setPrototypeOf;else{var MSE;a:{var FZ_={a:!0},Boa={};try{Boa.__proto__=FZ_;MSE=Boa.a;break a}catch(N){}MSE=!1}tSO=MSE?function(N,b){N.__proto__=b;if(N.__proto__!==b)throw new TypeError("b`"+N);return N}:null}g6=tSO;
_.F=function(N,b){N.prototype=Rjp(b.prototype);N.prototype.constructor=N;if(g6)g6(N,b);else for(var S in b)if(S!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(b,S);P&&Object.defineProperty(N,S,P)}else N[S]=b[S];N.superClass_=b.prototype};
l1O=function(N){var b=0;return function(){return b<N.length?{done:!1,value:N[b++]}:{done:!0}}};
_.O=function(N){var b=typeof Symbol!="undefined"&&Symbol.iterator&&N[Symbol.iterator];if(b)return b.call(N);if(typeof N.length=="number")return{next:l1O(N)};throw Error("c`"+String(N));};
Gz=function(N){for(var b,S=[];!(b=N.next()).done;)S.push(b.value);return S};
_.IX=function(N){return N instanceof Array?N:Gz(_.O(N))};
_.$E=function(N){return e3(N,N)};
e3=function(N,b){N.raw=b;Object.freeze&&(Object.freeze(N),Object.freeze(b));return N};
hP=function(N,b){return Object.prototype.hasOwnProperty.call(N,b)};
LZo=function(N){if(N==null)throw new TypeError("d");return Object(N)};
f19=typeof Object.assign=="function"?Object.assign:function(N,b){N=LZo(N);for(var S=1;S<arguments.length;S++){var P=arguments[S];if(P)for(var H in P)hP(P,H)&&(N[H]=P[H])}return N};
VG("Object.assign",function(N){return N||f19});
var q5=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},uTb=function(N){if(N.isRunning_)throw new TypeError("f");
N.isRunning_=!0};
q5.prototype.JSC$8946_next_=function(N){this.yieldResult=N};
var Q4I=function(N,b){N.abruptCompletion_={exception:b,isException:!0};N.nextAddress=N.catchAddress_||N.finallyAddress_};
q5.prototype.return=function(N){this.abruptCompletion_={return:N};this.nextAddress=this.finallyAddress_};
q5.prototype.yield=function(N,b){this.nextAddress=b;return{value:N}};
q5.prototype.jumpTo=function(N){this.nextAddress=N};
_.Zd=function(N){N.nextAddress=0};
_.u4=function(N,b,S){N.catchAddress_=b;S!=void 0&&(N.finallyAddress_=S)};
_.oX=function(N,b){N.catchAddress_=0;N.finallyAddress_=b||0};
_.su=function(N,b,S){N.nextAddress=b;N.catchAddress_=S||0};
_.UE=function(N,b){N.catchAddress_=b||0;b=N.abruptCompletion_.exception;N.abruptCompletion_=null;return b};
_.xw=function(N,b,S,P){P?N.finallyContexts_[P]=N.abruptCompletion_:N.finallyContexts_=[N.abruptCompletion_];N.catchAddress_=b||0;N.finallyAddress_=S||0};
_.Jv=function(N,b,S){S=N.finallyContexts_.splice(S||0)[0];(S=N.abruptCompletion_=N.abruptCompletion_||S)?S.isException?N.nextAddress=N.catchAddress_||N.finallyAddress_:S.jumpTo!=void 0&&N.finallyAddress_<S.jumpTo?(N.nextAddress=S.jumpTo,N.abruptCompletion_=null):N.nextAddress=N.finallyAddress_:N.nextAddress=b};
x0U=function(N){this.JSC$8951_context_=new q5;this.program_=N};
iIa=function(N,b){uTb(N.JSC$8951_context_);var S=N.JSC$8951_context_.yieldAllIterator_;if(S)return ods(N,"return"in S?S["return"]:function(P){return{value:P,done:!0}},b,N.JSC$8951_context_.return);
N.JSC$8951_context_.return(b);return w6(N)};
ods=function(N,b,S,P){try{var H=b.call(N.JSC$8951_context_.yieldAllIterator_,S);if(!(H instanceof Object))throw new TypeError("e`"+H);if(!H.done)return N.JSC$8951_context_.isRunning_=!1,H;var K=H.value}catch(C){return N.JSC$8951_context_.yieldAllIterator_=null,Q4I(N.JSC$8951_context_,C),w6(N)}N.JSC$8951_context_.yieldAllIterator_=null;P.call(N.JSC$8951_context_,K);return w6(N)};
w6=function(N){for(;N.JSC$8951_context_.nextAddress;)try{var b=N.program_(N.JSC$8951_context_);if(b)return N.JSC$8951_context_.isRunning_=!1,{value:b.value,done:!1}}catch(S){N.JSC$8951_context_.yieldResult=void 0,Q4I(N.JSC$8951_context_,S)}N.JSC$8951_context_.isRunning_=!1;if(N.JSC$8951_context_.abruptCompletion_){b=N.JSC$8951_context_.abruptCompletion_;N.JSC$8951_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
JkU=function(N){this.next=function(b){uTb(N.JSC$8951_context_);N.JSC$8951_context_.yieldAllIterator_?b=ods(N,N.JSC$8951_context_.yieldAllIterator_.next,b,N.JSC$8951_context_.JSC$8946_next_):(N.JSC$8951_context_.JSC$8946_next_(b),b=w6(N));return b};
this.throw=function(b){uTb(N.JSC$8951_context_);N.JSC$8951_context_.yieldAllIterator_?b=ods(N,N.JSC$8951_context_.yieldAllIterator_["throw"],b,N.JSC$8951_context_.JSC$8946_next_):(Q4I(N.JSC$8951_context_,b),b=w6(N));return b};
this.return=function(b){return iIa(N,b)};
this[Symbol.iterator]=function(){return this}};
_.GN=function(N,b){b=new JkU(new x0U(b));g6&&N.prototype&&g6(b,N.prototype);return b};
U0s=function(N){function b(P){return N.next(P)}
function S(P){return N.throw(P)}
return new Promise(function(P,H){function K(C){C.done?P(C.value):Promise.resolve(C.value).then(b,S).then(K,H)}
K(N.next())})};
_.r=function(N){return U0s(new JkU(new x0U(N)))};
VG("Symbol",function(N){if(N)return N;var b=function(K,C){this.$jscomp$symbol$id_=K;WZE(this,"description",{configurable:!0,writable:!0,value:C})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var S="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",P=0,H=function(K){if(this instanceof H)throw new TypeError("g");return new b(S+(K||"")+"_"+P++,K)};
return H});
VG("Symbol.iterator",function(N){if(N)return N;N=Symbol("h");WZE(Array.prototype,N,{configurable:!0,writable:!0,value:function(){return ZIs(l1O(this))}});
return N});
VG("Symbol.asyncIterator",function(N){return N?N:Symbol("i")});
ZIs=function(N){N={next:N};N[Symbol.iterator]=function(){return this};
return N};
_.Q1=function(N){var b=N[Symbol.asyncIterator];return b!==void 0?b.call(N):new j4s(_.O(N))};
j4s=function(N){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return N};
this.next=function(b){return Promise.resolve(N.next(b))};
this["throw"]=function(b){return new Promise(function(S,P){var H=N["throw"];H!==void 0?S(H.call(N,b)):(S=N["return"],S!==void 0&&S.call(N),P(new TypeError("j")))})};
N["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(N["return"](b))})};
_.$I=function(){for(var N=Number(this),b=[],S=N;S<arguments.length;S++)b[S-N]=arguments[S];return b};
_.RT=function(N){return N};
VG("globalThis",function(N){return N||_.d0});
VG("Reflect",function(N){return N?N:{}});
VG("Reflect.construct",function(){return Tob});
VG("Reflect.setPrototypeOf",function(N){return N?N:g6?function(b,S){try{return g6(b,S),!0}catch(P){return!1}}:null});
VG("Promise",function(N){function b(){this.batch_=null}
function S(C){return C instanceof H?C:new H(function(G){G(C)})}
if(N&&(typeof _.d0.PromiseRejectionEvent!=="undefined"||!_.d0.Promise||_.d0.Promise.toString().indexOf("[native code]")===-1))return N;b.prototype.asyncExecute=function(C){if(this.batch_==null){this.batch_=[];var G=this;this.asyncExecuteFunction(function(){G.executeBatch_()})}this.batch_.push(C)};
var P=_.d0.setTimeout;b.prototype.asyncExecuteFunction=function(C){P(C,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var C=this.batch_;this.batch_=[];for(var G=0;G<C.length;++G){var a=C[G];C[G]=null;try{a()}catch(R){this.asyncThrow_(R)}}}this.batch_=null};
b.prototype.asyncThrow_=function(C){this.asyncExecuteFunction(function(){throw C;})};
var H=function(C){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var G=this.createResolveAndReject_();try{C(G.resolve,G.reject)}catch(a){G.reject(a)}};
H.prototype.createResolveAndReject_=function(){function C(R){return function(n){a||(a=!0,R.call(G,n))}}
var G=this,a=!1;return{resolve:C(this.resolveTo_),reject:C(this.JSC$8983_reject_)}};
H.prototype.resolveTo_=function(C){if(C===this)this.JSC$8983_reject_(new TypeError("n"));else if(C instanceof H)this.settleSameAsPromise_(C);else{a:switch(typeof C){case "object":var G=C!=null;break a;case "function":G=!0;break a;default:G=!1}G?this.resolveToNonPromiseObj_(C):this.fulfill_(C)}};
H.prototype.resolveToNonPromiseObj_=function(C){var G=void 0;try{G=C.then}catch(a){this.JSC$8983_reject_(a);return}typeof G=="function"?this.settleSameAsThenable_(G,C):this.fulfill_(C)};
H.prototype.JSC$8983_reject_=function(C){this.settle_(2,C)};
H.prototype.fulfill_=function(C){this.settle_(1,C)};
H.prototype.settle_=function(C,G){if(this.state_!=0)throw Error("o`"+C+"`"+G+"`"+this.state_);this.state_=C;this.result_=G;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
H.prototype.scheduleUnhandledRejectionCheck_=function(){var C=this;P(function(){if(C.notifyUnhandledRejection_()){var G=_.d0.console;typeof G!=="undefined"&&G.error(C.result_)}},1)};
H.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var C=_.d0.CustomEvent,G=_.d0.Event,a=_.d0.dispatchEvent;if(typeof a==="undefined")return!0;typeof C==="function"?C=new C("unhandledrejection",{cancelable:!0}):typeof G==="function"?C=new G("unhandledrejection",{cancelable:!0}):(C=_.d0.document.createEvent("CustomEvent"),C.initCustomEvent("unhandledrejection",!1,!0,C));C.promise=this;C.reason=this.result_;return a(C)};
H.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var C=0;C<this.onSettledCallbacks_.length;++C)K.asyncExecute(this.onSettledCallbacks_[C]);this.onSettledCallbacks_=null}};
var K=new b;H.prototype.settleSameAsPromise_=function(C){var G=this.createResolveAndReject_();C.callWhenSettled_(G.resolve,G.reject)};
H.prototype.settleSameAsThenable_=function(C,G){var a=this.createResolveAndReject_();try{C.call(G,a.resolve,a.reject)}catch(R){a.reject(R)}};
H.prototype.then=function(C,G){function a(m,k){return typeof m=="function"?function(M){try{R(m(M))}catch(l){n(l)}}:k}
var R,n,d=new H(function(m,k){R=m;n=k});
this.callWhenSettled_(a(C,R),a(G,n));return d};
H.prototype.catch=function(C){return this.then(void 0,C)};
H.prototype.callWhenSettled_=function(C,G){function a(){switch(R.state_){case 1:C(R.result_);break;case 2:G(R.result_);break;default:throw Error("p`"+R.state_);}}
var R=this;this.onSettledCallbacks_==null?K.asyncExecute(a):this.onSettledCallbacks_.push(a);this.isRejectionHandled_=!0};
H.resolve=S;H.reject=function(C){return new H(function(G,a){a(C)})};
H.race=function(C){return new H(function(G,a){for(var R=_.O(C),n=R.next();!n.done;n=R.next())S(n.value).callWhenSettled_(G,a)})};
H.all=function(C){var G=_.O(C),a=G.next();return a.done?S([]):new H(function(R,n){function d(M){return function(l){m[M]=l;k--;k==0&&R(m)}}
var m=[],k=0;do m.push(void 0),k++,S(a.value).callWhenSettled_(d(m.length-1),n),a=G.next();while(!a.done)})};
return H});
var NW=function(N,b,S){if(N==null)throw new TypeError("q`"+S);if(b instanceof RegExp)throw new TypeError("r`"+S);return N+""};
VG("String.prototype.startsWith",function(N){return N?N:function(b,S){var P=NW(this,b,"startsWith"),H=P.length,K=b.length;S=Math.max(0,Math.min(S|0,P.length));for(var C=0;C<K&&S<H;)if(P[S++]!=b[C++])return!1;return C>=K}});
VG("Object.setPrototypeOf",function(N){return N||g6});
VG("Symbol.dispose",function(N){return N?N:Symbol("s")});
VG("SuppressedError",function(N){function b(S,P,H){if(!(this instanceof b))return new b(S,P,H);H=Error(H);"stack"in H&&(this.stack=H.stack);this.message=H.message;this.error=S;this.suppressed=P}
if(N)return N;_.F(b,Error);b.prototype.name="SuppressedError";return b});
VG("Array.from",function(N){return N?N:function(b,S,P){S=S!=null?S:function(G){return G};
var H=[],K=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof K=="function"){b=K.call(b);for(var C=0;!(K=b.next()).done;)H.push(S.call(P,K.value,C++))}else for(K=b.length,C=0;C<K;C++)H.push(S.call(P,b[C],C));return H}});
var zj_=function(N,b,S){N instanceof String&&(N=String(N));for(var P=N.length,H=0;H<P;H++){var K=N[H];if(b.call(S,K,H,N))return{i:H,v:K}}return{i:-1,v:void 0}};
VG("Array.prototype.find",function(N){return N?N:function(b,S){return zj_(this,b,S).v}});
VG("WeakMap",function(N){function b(){}
function S(a){var R=typeof a;return R==="object"&&a!==null||R==="function"}
function P(a){if(!hP(a,K)){var R=new b;WZE(a,K,{value:R})}}
function H(a){var R=Object[a];R&&(Object[a]=function(n){if(n instanceof b)return n;Object.isExtensible(n)&&P(n);return R(n)})}
if(function(){if(!N||!Object.seal)return!1;try{var a=Object.seal({}),R=Object.seal({}),n=new N([[a,2],[R,3]]);if(n.get(a)!=2||n.get(R)!=3)return!1;n.delete(a);n.set(R,4);return!n.has(a)&&n.get(R)==4}catch(d){return!1}}())return N;
var K="$jscomp_hidden_"+Math.random();H("freeze");H("preventExtensions");H("seal");var C=0,G=function(a){this.JSC$8991_id_=(C+=Math.random()+1).toString();if(a){a=_.O(a);for(var R;!(R=a.next()).done;)R=R.value,this.set(R[0],R[1])}};
G.prototype.set=function(a,R){if(!S(a))throw Error("t");P(a);if(!hP(a,K))throw Error("u`"+a);a[K][this.JSC$8991_id_]=R;return this};
G.prototype.get=function(a){return S(a)&&hP(a,K)?a[K][this.JSC$8991_id_]:void 0};
G.prototype.has=function(a){return S(a)&&hP(a,K)&&hP(a[K],this.JSC$8991_id_)};
G.prototype.delete=function(a){return S(a)&&hP(a,K)&&hP(a[K],this.JSC$8991_id_)?delete a[K][this.JSC$8991_id_]:!1};
return G});
VG("Map",function(N){if(function(){if(!N||typeof N!="function"||!N.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),a=new N(_.O([[G,"s"]]));if(a.get(G)!="s"||a.size!=1||a.get({x:4})||a.set({x:4},"t")!=a||a.size!=2)return!1;var R=a.entries(),n=R.next();if(n.done||n.value[0]!=G||n.value[1]!="s")return!1;n=R.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!R.next().done?!1:!0}catch(d){return!1}}())return N;
var b=new WeakMap,S=function(G){this[0]={};this[1]=K();this.size=0;if(G){G=_.O(G);for(var a;!(a=G.next()).done;)a=a.value,this.set(a[0],a[1])}};
S.prototype.set=function(G,a){G=G===0?0:G;var R=P(this,G);R.list||(R.list=this[0][R.id]=[]);R.entry?R.entry.value=a:(R.entry={next:this[1],previous:this[1].previous,head:this[1],key:G,value:a},R.list.push(R.entry),this[1].previous.next=R.entry,this[1].previous=R.entry,this.size++);return this};
S.prototype.delete=function(G){G=P(this,G);return G.entry&&G.list?(G.list.splice(G.index,1),G.list.length||delete this[0][G.id],G.entry.previous.next=G.entry.next,G.entry.next.previous=G.entry.previous,G.entry.head=null,this.size--,!0):!1};
S.prototype.clear=function(){this[0]={};this[1]=this[1].previous=K();this.size=0};
S.prototype.has=function(G){return!!P(this,G).entry};
S.prototype.get=function(G){return(G=P(this,G).entry)&&G.value};
S.prototype.entries=function(){return H(this,function(G){return[G.key,G.value]})};
S.prototype.keys=function(){return H(this,function(G){return G.key})};
S.prototype.values=function(){return H(this,function(G){return G.value})};
S.prototype.forEach=function(G,a){for(var R=this.entries(),n;!(n=R.next()).done;)n=n.value,G.call(a,n[1],n[0],this)};
S.prototype[Symbol.iterator]=S.prototype.entries;var P=function(G,a){var R=a&&typeof a;R=="object"||R=="function"?b.has(a)?R=b.get(a):(R=""+ ++C,b.set(a,R)):R="p_"+a;var n=G[0][R];if(n&&hP(G[0],R))for(G=0;G<n.length;G++){var d=n[G];if(a!==a&&d.key!==d.key||a===d.key)return{id:R,list:n,index:G,entry:d}}return{id:R,list:n,index:-1,entry:void 0}},H=function(G,a){var R=G[1];
return ZIs(function(){if(R){for(;R.head!=G[1];)R=R.previous;for(;R.next!=R.head;)return R=R.next,{done:!1,value:a(R)};R=null}return{done:!0,value:void 0}})},K=function(){var G={};
return G.previous=G.next=G.head=G},C=0;
return S});
VG("Set",function(N){if(function(){if(!N||typeof N!="function"||!N.prototype.entries||typeof Object.seal!="function")return!1;try{var S=Object.seal({x:4}),P=new N(_.O([S]));if(!P.has(S)||P.size!=1||P.add(S)!=P||P.size!=1||P.add({x:4})!=P||P.size!=2)return!1;var H=P.entries(),K=H.next();if(K.done||K.value[0]!=S||K.value[1]!=S)return!1;K=H.next();return K.done||K.value[0]==S||K.value[0].x!=4||K.value[1]!=K.value[0]?!1:H.next().done}catch(C){return!1}}())return N;
var b=function(S){this.JSC$9005_map_=new Map;if(S){S=_.O(S);for(var P;!(P=S.next()).done;)this.add(P.value)}this.size=this.JSC$9005_map_.size};
b.prototype.add=function(S){S=S===0?0:S;this.JSC$9005_map_.set(S,S);this.size=this.JSC$9005_map_.size;return this};
b.prototype.delete=function(S){S=this.JSC$9005_map_.delete(S);this.size=this.JSC$9005_map_.size;return S};
b.prototype.clear=function(){this.JSC$9005_map_.clear();this.size=0};
b.prototype.has=function(S){return this.JSC$9005_map_.has(S)};
b.prototype.entries=function(){return this.JSC$9005_map_.entries()};
b.prototype.values=function(){return this.JSC$9005_map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(S,P){var H=this;this.JSC$9005_map_.forEach(function(K){return S.call(P,K,K,H)})};
return b});
VG("Math.log2",function(N){return N?N:function(b){return Math.log(b)/Math.LN2}});
VG("Object.values",function(N){return N?N:function(b){var S=[],P;for(P in b)hP(b,P)&&S.push(b[P]);return S}});
VG("Object.is",function(N){return N?N:function(b,S){return b===S?b!==0||1/b===1/S:b!==b&&S!==S}});
VG("Array.prototype.includes",function(N){return N?N:function(b,S){var P=this;P instanceof String&&(P=String(P));var H=P.length;S=S||0;for(S<0&&(S=Math.max(S+H,0));S<H;S++){var K=P[S];if(K===b||Object.is(K,b))return!0}return!1}});
VG("String.prototype.includes",function(N){return N?N:function(b,S){return NW(this,b,"includes").indexOf(b,S||0)!==-1}});
VG("Object.entries",function(N){return N?N:function(b){var S=[],P;for(P in b)hP(b,P)&&S.push([P,b[P]]);return S}});
VG("Number.isFinite",function(N){return N?N:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
VG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
VG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
VG("Number.isInteger",function(N){return N?N:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
VG("Number.isSafeInteger",function(N){return N?N:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
VG("String.prototype.endsWith",function(N){return N?N:function(b,S){var P=NW(this,b,"endsWith");S===void 0&&(S=P.length);S=Math.max(0,Math.min(S|0,P.length));for(var H=b.length;H>0&&S>0;)if(P[--S]!=b[--H])return!1;return H<=0}});
var AkE=function(N,b){N instanceof String&&(N+="");var S=0,P=!1,H={next:function(){if(!P&&S<N.length){var K=S++;return{value:b(K,N[K]),done:!1}}P=!0;return{done:!0,value:void 0}}};
H[Symbol.iterator]=function(){return H};
return H};
VG("Array.prototype.entries",function(N){return N?N:function(){return AkE(this,function(b,S){return[b,S]})}});
VG("Math.trunc",function(N){return N?N:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var S=Math.floor(Math.abs(b));return b<0?-S:S}});
VG("Number.isNaN",function(N){return N?N:function(b){return typeof b==="number"&&isNaN(b)}});
VG("Array.prototype.keys",function(N){return N?N:function(){return AkE(this,function(b){return b})}});
VG("Array.prototype.values",function(N){return N?N:function(){return AkE(this,function(b,S){return S})}});
VG("Array.prototype.fill",function(N){return N?N:function(b,S,P){var H=this.length||0;S<0&&(S=Math.max(0,H+S));if(P==null||P>H)P=H;P=Number(P);P<0&&(P=Math.max(0,H+P));for(S=Number(S||0);S<P;S++)this[S]=b;return this}});
kTo("fill",function(N){return N?N:Array.prototype.fill});
VG("Object.fromEntries",function(N){return N?N:function(b){var S={};if(!(Symbol.iterator in b))throw new TypeError("v`"+b);b=b[Symbol.iterator].call(b);for(var P=b.next();!P.done;P=b.next()){P=P.value;if(Object(P)!==P)throw new TypeError("w");S[P[0]]=P[1]}return S}});
VG("String.prototype.replaceAll",function(N){return N?N:function(b,S){if(b instanceof RegExp&&!b.global)throw new TypeError("x");return b instanceof RegExp?this.replace(b,S):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),S)}});
VG("Object.getOwnPropertySymbols",function(N){return N?N:function(){return[]}});
VG("String.prototype.repeat",function(N){return N?N:function(b){var S=NW(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("y");b|=0;for(var P="";b;)if(b&1&&(P+=S),b>>>=1)S+=S;return P}});
VG("Array.prototype.findIndex",function(N){return N?N:function(b,S){return zj_(this,b,S).i}});
VG("Array.prototype.flatMap",function(N){return N?N:function(b,S){var P=[];Array.prototype.forEach.call(this,function(H,K){H=b.call(S,H,K,this);Array.isArray(H)?P.push.apply(P,H):P.push(H)});
return P}});
VG("String.prototype.codePointAt",function(N){return N?N:function(b){var S=NW(this,null,"codePointAt"),P=S.length;b=Number(b)||0;if(b>=0&&b<P){b|=0;var H=S.charCodeAt(b);if(H<55296||H>56319||b+1===P)return H;b=S.charCodeAt(b+1);return b<56320||b>57343?H:(H-55296)*1024+b+9216}}});
VG("String.fromCodePoint",function(N){return N?N:function(b){for(var S="",P=0;P<arguments.length;P++){var H=Number(arguments[P]);if(H<0||H>1114111||H!==Math.floor(H))throw new RangeError("z`"+H);H<=65535?S+=String.fromCharCode(H):(H-=65536,S+=String.fromCharCode(H>>>10&1023|55296),S+=String.fromCharCode(H&1023|56320))}return S}});
VG("String.prototype.trimLeft",function(N){function b(){return this.replace(/^[\s\xa0]+/,"")}
return N||b});
VG("String.prototype.trimStart",function(N){return N||String.prototype.trimLeft});
VG("String.prototype.padStart",function(N){return N?N:function(b,S){var P=NW(this,null,"padStart");b-=P.length;S=S!==void 0?String(S):" ";return(b>0&&S?S.repeat(Math.ceil(b/S.length)).substring(0,b):"")+P}});
VG("Promise.prototype.finally",function(N){return N?N:function(b){return this.then(function(S){return Promise.resolve(b()).then(function(){return S})},function(S){return Promise.resolve(b()).then(function(){throw S;
})})}});
VG("Math.imul",function(N){return N?N:function(b,S){b=Number(b);S=Number(S);var P=b&65535,H=S&65535;return P*H+((b>>>16&65535)*H+P*(S>>>16&65535)<<16>>>0)|0}});
VG("Object.hasOwn",function(N){return N?N:function(b,S){return Object.prototype.hasOwnProperty.call(b,S)}});
VG("Math.sign",function(N){return N?N:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
VG("Array.prototype.flat",function(N){return N?N:function(b){b=b===void 0?1:b;var S=[];Array.prototype.forEach.call(this,function(P){Array.isArray(P)&&b>0?(P=Array.prototype.flat.call(P,b-1),S.push.apply(S,P)):S.push(P)});
return S}});
VG("String.raw",function(N){return N?N:function(b,S){b=LZo(b);for(var P=b.raw,H=P.length,K="",C=0;C<H;++C)K+=P[C],C+1<H&&C+1<arguments.length&&(K+=String(arguments[C+1]));return K}});
VG("WeakSet",function(N){if(function(){if(!N||!Object.seal)return!1;try{var S=Object.seal({}),P=Object.seal({}),H=new N([S]);if(!H.has(S)||H.has(P))return!1;H.delete(S);H.add(P);return!H.has(S)&&H.has(P)}catch(K){return!1}}())return N;
var b=function(S){this.JSC$9019_map_=new WeakMap;if(S){S=_.O(S);for(var P;!(P=S.next()).done;)this.add(P.value)}};
b.prototype.add=function(S){this.JSC$9019_map_.set(S,!0);return this};
b.prototype.has=function(S){return this.JSC$9019_map_.has(S)};
b.prototype.delete=function(S){return this.JSC$9019_map_.delete(S)};
return b});
VG("Reflect.ownKeys",function(N){return N?N:function(b){var S=[],P=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var H=0;H<P.length;H++)(P[H].substring(0,14)=="jscomp_symbol_"?b:S).push(P[H]);return S.concat(b)}});
VG("Object.getOwnPropertyDescriptors",function(N){return N?N:function(b){for(var S={},P=Reflect.ownKeys(b),H=0;H<P.length;H++)S[P[H]]=Object.getOwnPropertyDescriptor(b,P[H]);return S}});
VG("Promise.allSettled",function(N){function b(P){return{status:"fulfilled",value:P}}
function S(P){return{status:"rejected",reason:P}}
return N?N:function(P){var H=this;P=Array.from(P,function(K){return H.resolve(K).then(b,S)});
return H.all(P)}});
VG("Number.parseInt",function(N){return N||parseInt});
var X1L=function(N,b,S){N instanceof String&&(N=String(N));for(var P=N.length-1;P>=0;P--){var H=N[P];if(b.call(S,H,P,N))return{i:P,v:H}}return{i:-1,v:void 0}};
VG("Array.prototype.findLastIndex",function(N){return N?N:function(b,S){return X1L(this,b,S).i}});
kTo("findLastIndex",function(N){return N?N:function(b,S){return X1L(this,b,S).i}});
_._DumpException=window._DumpException||function(N){throw N;};
window._DumpException=_._DumpException;var Edb=window.ytcsi;Edb&&typeof Edb.tick==="function"&&Edb.tick("rses_dpj");var p1L,bJ,SM,Pe,Yiu,ykI,I1b,D0I,xQ,VSf;p1L=p1L||{};_.Ps=this||self;_.aB=function(N,b,S){N=N.split(".");S=S||_.Ps;for(var P;N.length&&(P=N.shift());)N.length||b===void 0?S[P]&&S[P]!==Object.prototype[P]?S=S[P]:S=S[P]={}:S[P]=b};
bJ=function(N,b){var S=_.hl("WIZ_global_data.oxN3nb");N=S&&S[N];return N!=null?N:b};
SM=_.Ps._F_toggles_default_kevlar_base||[];Pe=function(){};
Pe.get=function(){return null};
_.Mc=null;_.hl=function(N,b){N=N.split(".");b=b||_.Ps;for(var S=0;S<N.length;S++)if(b=b[N[S]],b==null)return null;return b};
_.He=function(N){N.instance_=void 0;N.getInstance=function(){return N.instance_?N.instance_:N.instance_=new N}};
_.bL=function(N){var b=typeof N;return b!="object"?b:N?Array.isArray(N)?"array":b:"null"};
_.yu=function(N){var b=_.bL(N);return b=="array"||b=="object"&&typeof N.length=="number"};
_.D_=function(N){var b=typeof N;return b=="object"&&N!=null||b=="function"};
_.gI=function(N){return Object.prototype.hasOwnProperty.call(N,Yiu)&&N[Yiu]||(N[Yiu]=++ykI)};
Yiu="closure_uid_"+(Math.random()*1E9>>>0);ykI=0;I1b=function(N,b,S){return N.call.apply(N.bind,arguments)};
D0I=function(N,b,S){if(!N)throw Error();if(arguments.length>2){var P=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,P);return N.apply(b,H)}}return function(){return N.apply(b,arguments)}};
_.pT=function(N,b,S){_.pT=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?I1b:D0I;return _.pT.apply(null,arguments)};
_.Rm=function(N,b){var S=Array.prototype.slice.call(arguments,1);return function(){var P=S.slice();P.push.apply(P,arguments);return N.apply(this,P)}};
_.sG=function(){return Date.now()};
xQ=function(N){return N};
_.Km=function(N,b){function S(){}
S.prototype=b.prototype;N.superClass_=b.prototype;N.prototype=new S;N.prototype.constructor=N;N.base=function(P,H,K){for(var C=Array(arguments.length-2),G=2;G<arguments.length;G++)C[G-2]=arguments[G];return b.prototype[H].apply(P,C)}};
VSf=function(N){return N};var gda,eje;_.p=function(N,b,S,P){var H=arguments.length,K=H<3?b:P===null?P=Object.getOwnPropertyDescriptor(b,S):P,C;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")K=Reflect.decorate(N,b,S,P);else for(var G=N.length-1;G>=0;G--)if(C=N[G])K=(H<3?C(K):H>3?C(b,S,K):C(b,S))||K;H>3&&K&&Object.defineProperty(b,S,K)};
_.y=function(N,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(N,b)};
gda=function(N,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("A");if(S===void 0){if(!Symbol.dispose)throw new TypeError("C");var S=b[Symbol.dispose]}if(typeof S!=="function")throw new TypeError("D");N.stack.push({value:b,dispose:S,async:!1})}return b};
eje=function(N){function b(K){N.error=N.hasError?new SuppressedError(K,N.error,"An error was suppressed during disposal."):K;N.hasError=!0}
function S(){for(;P=N.stack.pop();)try{if(!P.async&&H===1)return H=0,N.stack.push(P),Promise.resolve().then(S);if(P.dispose){var K=P.dispose.call(P.value);if(P.async)return H|=2,Promise.resolve(K).then(S,function(C){b(C);return S()})}else H|=1}catch(C){b(C)}if(H===1)return N.hasError?Promise.reject(N.error):Promise.resolve();
if(N.hasError)throw N.error;}
var P,H=0;S()};var $0o="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");NIu()&&$0o.push("details:not(:has(summary))");var Se_=$0o.join(",");_.Km(_.NL,Error);_.NL.prototype.name="CustomError";var hja;var qiY=void 0,w19,NIz=typeof TextDecoder!=="undefined",rbL,GoE=typeof String.prototype.isWellFormed==="function",CYb=typeof TextEncoder!=="undefined";var bac;_.Xc=function(N){for(var b=[],S=0,P=0;P<N.length;P++){var H=N.charCodeAt(P);H<128?b[S++]=H:(H<2048?b[S++]=H>>6|192:((H&64512)==55296&&P+1<N.length&&(N.charCodeAt(P+1)&64512)==56320?(H=65536+((H&1023)<<10)+(N.charCodeAt(++P)&1023),b[S++]=H>>18|240,b[S++]=H>>12&63|128):b[S++]=H>>12|224,b[S++]=H>>6&63|128),b[S++]=H&63|128)}return b};
bac=function(N){for(var b=[],S=0,P=0;S<N.length;){var H=N[S++];if(H<128)b[P++]=String.fromCharCode(H);else if(H>191&&H<224){var K=N[S++];b[P++]=String.fromCharCode((H&31)<<6|K&63)}else if(H>239&&H<365){K=N[S++];var C=N[S++],G=N[S++];H=((H&7)<<18|(K&63)<<12|(C&63)<<6|G&63)-65536;b[P++]=String.fromCharCode(55296+(H>>10));b[P++]=String.fromCharCode(56320+(H&1023))}else K=N[S++],C=N[S++],b[P++]=String.fromCharCode((H&15)<<12|(K&63)<<6|C&63)}return b.join("")};var aU=String.prototype.trim?function(N){return N.trim()}:function(N){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(N)[1]},Sel=/&/g,PY9=/</g,HaE=/>/g,sUc=/"/g,K99=/'/g,vOZ=/\x00/g,Oa9=/[\x00&<>"']/;var ve=!!(SM[0]>>17&1),CYV=!!(SM[0]&4096),GoO=!!(SM[0]>>18&1),rbS=!!(SM[0]&8),cbk=!!(SM[0]&2),a_z=!!(SM[0]&4),REV=!!(SM[0]&16),W9k=!!(SM[0]&256),nOO=!!(SM[0]&32);var m9,dLV,mLZ,ko9,Cdu,Mnf;m9=ve?GoO:bJ(610401301,!1);dLV=ve?rbS:bJ(772657768,!1);mLZ=ve?cbk:bJ(513659523,!1);ko9=ve?CYV||!a_z:bJ(568333945,!0);Cdu=ve?REV:bJ(1331761403,!1);Mnf=ve?CYV||!W9k:bJ(748402147,!0);_.OG=ve?nOO:bJ(824648567,!1);var tb,TIN=_.Ps.navigator;tb=TIN?TIN.userAgentData||null:null;var vl;_.Ue=function(N,b){return Array.prototype.indexOf.call(N,b,void 0)};
_.NX=function(N,b,S){Array.prototype.forEach.call(N,b,S)};
_.Cm=function(N,b,S){return Array.prototype.filter.call(N,b,S)};
_.gY=function(N,b,S){return Array.prototype.map.call(N,b,S)};
vl=function(N,b,S){return Array.prototype.some.call(N,b,S)};
_.yrf=function(N,b,S){return Array.prototype.every.call(N,b,S)};var Gu=function(N){Gu[" "](N);return N};
Gu[" "]=function(){};
var pRa=function(N,b){try{return Gu(N[b]),!0}catch(S){}return!1},Tke=function(N,b,S,P){P=P?P(b):b;
return Object.prototype.hasOwnProperty.call(N,P)?N[P]:N[P]=S(b)};var tp4,rk,Mpb,F99,l_k,L9E,bnO,f_E,ufO,QUk,p9Y,oOE,ia9,jU9,zE4,Abc;_.Kso=function(){return _.Ps.navigator||null};
tp4=W9s();_.rV=nOE();rk=Ff("Edge");Mpb=rk||_.rV;_.B_=Ff("Gecko")&&!(_.cs(_.dI(),"WebKit")&&!Ff("Edge"))&&!(Ff("Trident")||Ff("MSIE"))&&!Ff("Edge");_.FG=_.cs(_.dI(),"WebKit")&&!Ff("Edge");F99=_.FG&&Ff("Mobile");_.BIz=_.l_s();l_k=_.L9Y();L9E=(Qu()?tb.platform==="Linux":Ff("Linux"))||_.f_Y();bnO=_.F9p();f_E=BIu();ufO=Ff("iPad");QUk=Ff("iPod");_.xL9=_.xO();p9Y=_.cs(_.dI(),"KaiOS");oOE=function(){var N=_.Ps.document;return N?N.documentMode:void 0};
a:{var JbE="",ULZ=function(){var N=_.dI();if(_.B_)return/rv:([^\);]+)(\)|;)/.exec(N);if(rk)return/Edge\/([\d\.]+)/.exec(N);if(_.rV)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(N);if(_.FG)return/WebKit\/(\S+)/.exec(N);if(tp4)return/(?:Version)[ \/]?(\S+)/.exec(N)}();
ULZ&&(JbE=ULZ?ULZ[1]:"");if(_.rV){var Za9=oOE();if(Za9!=null&&Za9>parseFloat(JbE)){ia9=String(Za9);break a}}ia9=JbE}jU9=ia9;zE4={};_.ce=function(N){return Tke(zE4,N,function(){return _.Ws(jU9,N)>=0})};
if(_.Ps.document&&_.rV){var XsS=oOE();Abc=XsS?XsS:parseInt(jU9,10)||void 0}else Abc=void 0;_.EON=Abc;var Huo,spp,ps9;_.a9=lY();Huo=BIu()||Ff("iPod");spp=Ff("iPad");ps9=_.koI();_.R9=fa();_.hz=_.mLO()&&!_.xO();var YeV,We,OTo,vtU,I_d,ybd;YeV={};We=null;OTo=_.B_||_.FG||typeof _.Ps.btoa=="function";_.iL=function(N,b){b===void 0&&(b=0);ybd();b=YeV[b];for(var S=Array(Math.floor(N.length/3)),P=b[64]||"",H=0,K=0;H<N.length-2;H+=3){var C=N[H],G=N[H+1],a=N[H+2],R=b[C>>2];C=b[(C&3)<<4|G>>4];G=b[(G&15)<<2|a>>6];a=b[a&63];S[K++]=R+C+G+a}R=0;a=P;switch(N.length-H){case 2:R=N[H+1],a=b[(R&15)<<2]||P;case 1:N=N[H],S[K]=b[N>>2]+b[(N&3)<<4|R>>4]+a+P}return S.join("")};
vtU=function(N){var b="";I_d(N,function(S){b+=String.fromCharCode(S)});
return b};
_.TmI=function(N){var b=[];I_d(N,function(S){b.push(S)});
return b};
_.qL=function(N){var b=N.length,S=b*3/4;S%3?S=Math.floor(S):_.Go("=.",N[b-1])&&(S=_.Go("=.",N[b-2])?S-2:S-1);var P=new Uint8Array(S),H=0;I_d(N,function(K){P[H++]=K});
return H!==S?P.subarray(0,H):P};
I_d=function(N,b){function S(a){for(;P<N.length;){var R=N.charAt(P++),n=We[R];if(n!=null)return n;if(!_.Oe(R))throw Error("H`"+R);}return a}
ybd();for(var P=0;;){var H=S(-1),K=S(0),C=S(64),G=S(64);if(G===64&&H===-1)break;b(H<<2|K>>4);C!=64&&(b(K<<4&240|C>>2),G!=64&&b(C<<6&192|G))}};
ybd=function(){if(!We){We={};for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],S=0;S<5;S++){var P=N.concat(b[S].split(""));YeV[S]=P;for(var H=0;H<P.length;H++){var K=P[H];We[K]===void 0&&(We[K]=H)}}}};var hE9=typeof Uint8Array!=="undefined",EOf=!_.rV&&typeof btoa==="function",psI=/[-_.]/g,Ab9={"-":"+",_:"/",".":"="},uE={};var L9,Vpb;L9=function(N,b){if(b!==uE)throw Error("J");this.JSC$9053_value_=N;if(N!=null&&N.length===0)throw Error("I");};
_.xZ=function(){return DL4||(DL4=new L9(null,uE))};
Vpb=function(N){return new Uint8Array(Ioo(N)||0)};
L9.prototype.isEmpty=function(){return this.JSC$9053_value_==null};
L9.prototype.sizeBytes=function(){var N=Ioo(this);return N?N.length:0};
var Ioo=function(N){if(uE!==uE)throw Error("J");var b=N.JSC$9053_value_;b==null||hE9&&b!=null&&b instanceof Uint8Array||(typeof b==="string"?b=Yeb(b):(_.bL(b),b=null));return b==null?b:N.JSC$9053_value_=b},DL4;var I_e=void 0;var Pk=typeof Symbol==="function"&&typeof Symbol()==="symbol",gOb=NS("jas",void 0,!0),EZu=NS(void 0,"0di"),sL=NS(void 0,"1oa"),o6=NS(void 0,Symbol()),PLI=NS(void 0,"0ub"),s6O=NS(void 0,"0ubs"),fBp=NS(void 0,"0ubsb"),BEo=NS(void 0,"0actk"),B5=NS("m_m","messagePrototypeMarker",!0),nQe=NS(void 0,"vps"),NEI=NS();var gOU,VpU,gE,eES;gOU={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};VpU=Object.defineProperties;_.sd=Pk?gOb:"internalArrayState";eES=[];vk(eES,7);gE=Object.freeze(eES);var uL={},Rb={},$Lb=function(N,b,S){this.iterable=N;this.mapper=b;this.thisArg=S};
$Lb.prototype.next=function(){var N=this.iterable.next();N.done||(N.value=this.mapper.call(this.thisArg,N.value));return N};
$Lb.prototype[Symbol.iterator]=function(){return this};
var hEc=Object.freeze({}),JV={};_.qeS=j9(function(N){return N!==null&&N!==void 0});var PEa=j9(function(N){return typeof N==="number"}),SdI=j9(function(N){return typeof N==="string"}),sbI=j9(function(N){return typeof N==="boolean"}),wsV=j9(function(N){return N!=null&&typeof N==="object"&&typeof N.then==="function"}),VU9=j9(function(N){return typeof N==="function"}),uM=j9(function(N){return!!N&&(typeof N==="object"||typeof N==="function")});var H9U=typeof _.Ps.BigInt==="function"&&typeof _.Ps.BigInt(0)==="bigint";var USf=j9(function(N){return H9U?N>=N9b&&N<=b9Z:N[0]==="-"?Kcf(N,Sd9):Kcf(N,PE9)}),Sd9=Number.MIN_SAFE_INTEGER.toString(),N9b=H9U?BigInt(Number.MIN_SAFE_INTEGER):void 0,PE9=Number.MAX_SAFE_INTEGER.toString(),b9Z=H9U?BigInt(Number.MAX_SAFE_INTEGER):void 0;var H9b=typeof Uint8Array.prototype.slice==="function",AV=0,XN=0,CEE;var c5,dE,Sn,W5,T9e;c5=typeof BigInt==="function"?BigInt.asIntN:void 0;_.kQ=typeof BigInt==="function"?BigInt.asUintN:void 0;dE=Number.isSafeInteger;Sn=Number.isFinite;W5=Math.trunc;T9e=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var d_E={};var hOa={},sb9=function(){try{var N=function(){return Tob(Map,[],this.constructor)};
_.F(N,Map);Gu(new N);return!1}catch(b){return!0}}(),nm=function(){this.JSC$9072_map_=new Map};
_.v=nm.prototype;_.v.get=function(N){return this.JSC$9072_map_.get(N)};
_.v.set=function(N,b){this.JSC$9072_map_.set(N,b);this.size=this.JSC$9072_map_.size;return this};
_.v.delete=function(N){N=this.JSC$9072_map_.delete(N);this.size=this.JSC$9072_map_.size;return N};
_.v.clear=function(){this.JSC$9072_map_.clear();this.size=this.JSC$9072_map_.size};
_.v.has=function(N){return this.JSC$9072_map_.has(N)};
_.v.entries=function(){return this.JSC$9072_map_.entries()};
_.v.keys=function(){return this.JSC$9072_map_.keys()};
_.v.values=function(){return this.JSC$9072_map_.values()};
_.v.forEach=function(N,b){return this.JSC$9072_map_.forEach(N,b)};
nm.prototype[Symbol.iterator]=function(){return this.entries()};
var dV=function(){if(sb9)return Object.setPrototypeOf(nm.prototype,Map.prototype),Object.defineProperties(nm.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),nm;var N=function(){return Tob(Map,[],this.constructor)};
_.F(N,Map);return N}(),Qt=function(N,b,S,P){S=S===void 0?DSL:S;
P=P===void 0?DSL:P;var H=dV.call(this)||this;H.arrayState=N[_.sd]|0;H.valueCtor=b;H.keyToApi=S;H.valueToApi=H.valueCtor?gZI:P;for(var K=0;K<N.length;K++){var C=N[K],G=S(C[0],!1,!0),a=C[1];b?a===void 0&&(a=null):a=P(C[1],!1,!0,void 0,void 0,H.arrayState);dV.prototype.set.call(H,G,a)}return H};
_.F(Qt,dV);var KcN=function(N){if(N.arrayState&2)throw Error("N");},WJ9=function(N,b){return r9(Array.from(dV.prototype.entries.call(N),b))};
_.v=Qt.prototype;_.v.clear=function(){KcN(this);dV.prototype.clear.call(this)};
_.v.delete=function(N){KcN(this);return dV.prototype.delete.call(this,this.keyToApi(N,!0,!1))};
_.v.entries=function(){if(this.valueCtor){var N=dV.prototype.keys.call(this);N=new $Lb(N,eOI,this)}else N=dV.prototype.entries.call(this);return N};
_.v.values=function(){if(this.valueCtor){var N=dV.prototype.keys.call(this);N=new $Lb(N,Qt.prototype.get,this)}else N=dV.prototype.values.call(this);return N};
_.v.forEach=function(N,b){this.valueCtor?dV.prototype.forEach.call(this,function(S,P,H){N.call(b,H.get(P),P,H)}):dV.prototype.forEach.call(this,N,b)};
_.v.set=function(N,b){KcN(this);N=this.keyToApi(N,!0,!1);return N==null?this:b==null?(dV.prototype.delete.call(this,N),this):dV.prototype.set.call(this,N,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
_.v.has=function(N){return dV.prototype.has.call(this,this.keyToApi(N,!1,!1))};
_.v.get=function(N){N=this.keyToApi(N,!1,!1);var b=dV.prototype.get.call(this,N);if(b!==void 0){var S=this.valueCtor;return S?(S=this.valueToApi(b,!1,!0,S,this.callToMutableOnAccess,this.arrayState),S!==b&&dV.prototype.set.call(this,N,S),S):b}};
Qt.prototype[Symbol.iterator]=function(){return this.entries()};
Qt.prototype.toJSON=void 0;var $SU;var CLL=function(){},vQU=function(N,b){for(var S in N)!isNaN(S)&&b(N,+S,N[S])},GEO=function(N){var b=new CLL;
vQU(N,function(S,P,H){b[P]=e9(H)});
b.reviveUnknownFields=N.reviveUnknownFields;return b},bqp={reviveIntoImmutable:!0};var OqY;var m_b,kEb;var vZO,wE,QE,Zn,O9z,Be,i5,CEO,G4c,uJ,rVd,Qa,iJ,Jm;vZO=_.z4(0);_.mw={};_.kp=function(N,b,S,P,H){b=wE(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,S,H);if(b!==null||P&&N.noLegacyNull!==Rb)return b};
wE=function(N,b,S,P){if(b===-1)return null;var H=b+(S?0:-1),K=N.length-1;if(!(K<1+(S?0:-1))){if(H>=K){var C=N[K];if(C!=null&&typeof C==="object"&&C.constructor===Object){S=C[b];var G=!0}else if(H===K)S=C;else return}else S=N[H];if(P&&S!=null){P=P(S);if(P==null)return P;if(!Object.is(P,S))return G?C[b]=P:N[H]=P,P}return S}};
_.t2=function(N,b,S,P){Ea(N);var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Vt(H,H[_.sd]|0,b,S,P);return N};
_.Tu=function(N,b,S){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return X5f(N,N[_.sd]|0,b,S)!==void 0};
_.tm=function(N,b,S,P){var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return X5f(H,H[_.sd]|0,b,Zn(N,P,S))!==void 0};
_.T6=function(N){return N===hEc?2:4};
_.MW=function(N,b){N=_.kp(N,b,void 0,void 0,JOe);return N==null?_.xZ():N};
QE=function(N,b,S,P){Ea(N);var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.sd]|0;if(P==null){var C=j6Y(H);if(zwE(C,H,K,S)===b)C.set(S,0);else return N}else K=AOE(H,K,S,b);Vt(H,K,b,P);return N};
_.Mj=function(N,b,S,P){var H=N[_.sd]|0,K=Zl(H);H=AOE(N,H,S,b,K);Vt(N,H,b,P,K)};
Zn=function(N,b,S){return _.F5(N,b)===S?S:-1};
_.F5=function(N,b){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zwE(j6Y(N),N,void 0,b,void 0)};
O9z=function(N,b,S){var P=N[_.sd]|0,H=Zl(P),K=wE(N,S,H);if(K!=null&&K[B5]===uL){if(!FN(K))return Xi(K),K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var C=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(K)&&(C=K);if(C){var G=C[_.sd]|0;G&2&&(C=AO(C,G))}C=jn(C,b);C!==K&&Vt(N,P,S,C,H);return C};
_.k0=function(N,b,S,P){var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.sd]|0;b=X5f(H,K,b,S,P);if(b==null)return b;K=H[_.sd]|0;if(!FN(N,K)){var C=V9b(b);C!==b&&(Xi(N)&&(H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=H[_.sd]|0),b=C,K=Vt(H,K,S,b,P),I6(H,K))}return b};
_.kT=function(N,b,S,P){var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return EQE(N,H,H[_.sd]|0,b,S,P,!1,!0)};
_.xI=function(N,b,S,P){S=p5e(S);_.t2(N,b,S,P);S&&!FN(S)&&I6(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
_.o$=function(N,b,S,P){P=p5e(P);QE(N,b,S,P);P&&!FN(P)&&I6(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
Be=function(N,b,S){Ea(N);var P=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=P[_.sd]|0;if(S==null)return Vt(P,H,b),N;for(var K=S===gE?7:S[_.sd]|0,C=K,G=hO(K),a=G||Object.isFrozen(S),R=!0,n=!0,d=0;d<S.length;d++){var m=S[d];G||(m=FN(m),R&&(R=!m),n&&(n=m))}G||(K=R?13:5,K=n?K&-4097:K|4096);a&&K===C||(S=e9(S),C=0,K=en(K,H));K!==C&&vk(S,K);H=Vt(P,H,b,S);2&K||!(4096&K||16&K)||I6(P,H);return N};
i5=function(N,b,S,P){yOs(N,b,S,P);return N};
CEO=function(N,b,S){yOs(N,b,lJ,void 0,S,1,!0);return N};
_.Lm=function(N,b,S){N=_.kp(N,b,void 0,S);b=typeof N;N=N==null?N:b==="bigint"?_.z4((0,_.kQ)(64,N)):_.P5(N)?b==="string"?_.JVe(N):_.oZf(N):void 0;return N};
_.fm=function(N,b){var S=S===void 0?!1:S;var P;return(P=_.k4O(_.kp(N,b)))!=null?P:S};
_.tg=function(N,b,S){S=S===void 0?0:S;var P;return(P=_.GE(_.kp(N,b)))!=null?P:S};
G4c=function(N,b){var S=S===void 0?0:S;N=_.M9o(_.kp(N,b));return N!=null?N:S};
uJ=function(N,b,S){S=S===void 0?vZO:S;var P;return(P=_.zOe(_.kp(N,b)))!=null?P:S};
rVd=function(N){var b=b===void 0?vZO:b;var S;return(S=_.Lm(N,23))!=null?S:b};
Qa=function(N,b){var S=S===void 0?0:S;var P;return(P=_.kp(N,b,void 0,void 0,_.N_))!=null?P:S};
_.xp=function(N,b,S,P){S=S===void 0?"":S;var H;return(H=_.Fi(_.kp(N,b,P)))!=null?H:S};
_.o9=function(N,b){var S=S===void 0?0:S;var P;return(P=_.v5(_.kp(N,b)))!=null?P:S};
iJ=function(N,b){var S=S===void 0?"0":S;N=jbO(_.kp(N,b),!0);return N!=null?N:S};
_.cV9=function(N,b,S){N=_.$Q(N,b,_.Fi,3,!0);qeL(N,S);return N[S]};
Jm=function(N,b,S){return _.xp(N,Zn(N,S,b))};
_.UG=function(N,b,S,P){return _.k0(N,b,Zn(N,P,S),void 0)};
_.Jg=function(N,b){return _.Fi(_.kp(N,b,void 0,_.mw))};
_.lw=function(N,b,S){return _.t2(N,b,mSL(S))};
_.lZ=function(N,b,S){return _.So(N,b,mSL(S),!1)};
_.ZC=function(N,b,S){return _.t2(N,b,_.Cq(S))};
_.zx=function(N,b,S){return _.t2(N,b,R6(S))};
_.En=function(N,b,S){return _.t2(N,b,M_(S))};
_.IJ=function(N,b,S,P){return _.So(N,b,M_(S),"",P)};
_.Ti=function(N,b,S){return _.t2(N,b,S==null?S:_.H5(S))};
_.jM=function(N,b,S){return _.So(N,b,S==null?S:_.H5(S),0)};var KD=function(N,b,S){this.buffer=N;if(S&&!b)throw Error();this.JSC$9084_isImmutable=b};var alE=function(N,b,S,P){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9087_start_=0;this.init(N,b,S,P)},Wc9,zu,nZN,$js,dS9,mSS,k4Z,T9d,nIp,ROl;
_.v=alE.prototype;_.v.init=function(N,b,S,P){var H=P===void 0?{}:P;P=H.aliasBytesFields===void 0?!1:H.aliasBytesFields;H=H.treatNewDataAsImmutable===void 0?!1:H.treatNewDataAsImmutable;this.aliasBytesFields=P;this.treatNewDataAsImmutable=H;N&&(N=D_e(N,this.treatNewDataAsImmutable),this.bytes_=N.buffer,this.bytesAreImmutable_=N.JSC$9084_isImmutable,this.JSC$9087_start_=b||0,this.end_=S!==void 0?this.JSC$9087_start_+S:this.bytes_.length,this.cursor_=this.JSC$9087_start_)};
_.v.free=function(){this.clear();ROl.length<100&&ROl.push(this)};
_.v.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9087_start_=0;this.aliasBytesFields=!1};
_.v.reset=function(){this.cursor_=this.JSC$9087_start_};
_.v.atEnd=function(){return this.cursor_==this.end_};
_.tS=function(N,b){var S=0,P=0,H=0,K=N.bytes_,C=N.cursor_;do{var G=K[C++];S|=(G&127)<<H;H+=7}while(H<32&&G&128);if(H>32)for(P|=(G&127)>>4,H=3;H<32&&G&128;H+=7)G=K[C++],P|=(G&127)<<H;zu(N,C);if(!(G&128))return b(S>>>0,P>>>0);throw Error();};
Wc9=function(N){return _.tS(N,function(b,S){return WcI(b,S,alY)})};
zu=function(N,b){N.cursor_=b;if(b>N.end_)throw Error();};
_.Am=function(N){var b=N.bytes_,S=N.cursor_,P=b[S++],H=P&127;if(P&128&&(P=b[S++],H|=(P&127)<<7,P&128&&(P=b[S++],H|=(P&127)<<14,P&128&&(P=b[S++],H|=(P&127)<<21,P&128&&(P=b[S++],H|=P<<28,P&128&&b[S++]&128&&b[S++]&128&&b[S++]&128&&b[S++]&128&&b[S++]&128)))))throw Error();zu(N,S);return H};
_.EG=function(N){var b=N.bytes_,S=N.cursor_,P=b[S],H=b[S+1],K=b[S+2];b=b[S+3];zu(N,N.cursor_+4);return(P<<0|H<<8|K<<16|b<<24)>>>0};
nZN=function(N){var b=_.EG(N);N=_.EG(N);return rVe(b,N)};
$js=function(N){var b=_.EG(N);N=_.EG(N);return cVI(b,N)};
dS9=function(N){var b=_.EG(N);N=(b>>31)*2+1;var S=b>>>23&255;b&=8388607;return S==255?b?NaN:N*Infinity:S==0?N*1.401298464324817E-45*b:N*Math.pow(2,S-150)*(b+8388608)};
mSS=function(N){var b=_.EG(N),S=_.EG(N);N=(S>>31)*2+1;var P=S>>>20&2047;b=4294967296*(S&1048575)+b;return P==2047?b?NaN:N*Infinity:P==0?N*4.9E-324*b:N*Math.pow(2,P-1075)*(b+4503599627370496)};
k4Z=function(N){for(var b=0,S=N.cursor_,P=S+10,H=N.bytes_;S<P;){var K=H[S++];b|=K;if((K&128)===0)return zu(N,S),!!(b&127)}throw Error();};
T9d=function(N,b){if(b<0)throw Error();var S=N.cursor_;b=S+b;if(b>N.end_)throw Error();N.cursor_=b;return S};
nIp=function(N,b){if(b==0)return _.xZ();var S=T9d(N,b);N.aliasBytesFields&&N.bytesAreImmutable_?S=N.bytes_.subarray(S,S+b):(N=N.bytes_,b=S+b,S=S===b?new Uint8Array(0):H9b?N.slice(S,b):new Uint8Array(N.subarray(S,b)));return S.length==0?_.xZ():new L9(S,uE)};
ROl=[];var M94=function(N,b,S,P){if(ROl.length){var H=ROl.pop();H.init(N,b,S,P);N=H}else N=new alE(N,b,S,P);this.decoder_=N;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;t9N(this,P)},t9N=function(N,b){b=b===void 0?{}:b;
N.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},k7I=function(N,b,S,P){if(Fc4.length){var H=Fc4.pop();
t9N(H,P);H.decoder_.init(N,b,S,P);return H}return new M94(N,b,S,P)},aB9,Wka,pm,B94,Fc4;
M94.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Fc4.length<100&&Fc4.push(this)};
M94.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
aB9=function(N){if(N.decoder_.atEnd())return!1;N.fieldCursor_=N.decoder_.cursor_;var b=_.Am(N.decoder_)>>>0,S=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error();if(S<1)throw Error();N.nextField_=S;N.nextWireType_=b;return!0};
Wka=function(N){switch(N.nextWireType_){case 0:N.nextWireType_!=0?Wka(N):k4Z(N.decoder_);break;case 1:N=N.decoder_;zu(N,N.cursor_+8);break;case 2:if(N.nextWireType_!=2)Wka(N);else{var b=_.Am(N.decoder_)>>>0;N=N.decoder_;zu(N,N.cursor_+b)}break;case 5:N=N.decoder_;zu(N,N.cursor_+4);break;case 3:b=N.nextField_;do{if(!aB9(N))throw Error();if(N.nextWireType_==4){if(N.nextField_!=b)throw Error();break}Wka(N)}while(1);break;default:throw Error();}};
pm=function(N,b,S){var P=N.decoder_.end_,H=_.Am(N.decoder_)>>>0;H=N.decoder_.cursor_+H;var K=H-P;K<=0&&(N.decoder_.end_=H,S(b,N,void 0,void 0,void 0),K=H-N.decoder_.cursor_);if(K)throw Error();N.decoder_.cursor_=H;N.decoder_.end_=P;return b};
B94=function(N){var b=_.Am(N.decoder_)>>>0;N=N.decoder_;var S=T9d(N,b);N=N.bytes_;if(NIz){var P=N,H;(H=w19)||(H=w19=new TextDecoder("utf-8",{fatal:!0}));b=S+b;P=S===0&&b===P.length?P:P.subarray(S,b);try{var K=H.decode(P)}catch(R){if(qiY===void 0){try{H.decode(new Uint8Array([128]))}catch(n){}try{H.decode(new Uint8Array([97])),qiY=!0}catch(n){qiY=!1}}!qiY&&(w19=void 0);throw R;}}else{K=S;b=K+b;S=[];for(var C=null,G,a;K<b;)G=N[K++],G<128?S.push(G):G<224?K>=b?bY():(a=N[K++],G<194||(a&192)!==128?(K--,
bY()):S.push((G&31)<<6|a&63)):G<240?K>=b-1?bY():(a=N[K++],(a&192)!==128||G===224&&a<160||G===237&&a>=160||((H=N[K++])&192)!==128?(K--,bY()):S.push((G&15)<<12|(a&63)<<6|H&63)):G<=244?K>=b-2?bY():(a=N[K++],(a&192)!==128||(G<<28)+(a-144)>>30!==0||((H=N[K++])&192)!==128||((P=N[K++])&192)!==128?(K--,bY()):(G=(G&7)<<18|(a&63)<<12|(H&63)<<6|P&63,G-=65536,S.push((G>>10&1023)+55296,(G&1023)+56320))):bY(),S.length>=8192&&(C=Oaa(C,S),S.length=0);K=Oaa(C,S)}return K};
_.ll9=function(N){var b=_.Am(N.decoder_)>>>0;return nIp(N.decoder_,b)};
_.Lc9=function(N,b,S){var P=_.Am(N.decoder_)>>>0;for(P=N.decoder_.cursor_+P;N.decoder_.cursor_<P;)S.push(b(N.decoder_))};
Fc4=[];var flz=function(N,b){this.JSC$9094_lo=N>>>0;this.JSC$9094_hi=b>>>0},JSI=function(N){N=BigInt.asUintN(64,N);
return new flz(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)))},ewa=function(N){if(!N)return uN4||(uN4=new flz(0,0));
if(!/^\d+$/.test(N))return null;Dl(N);return new flz(AV,XN)},uN4,iD9=function(N,b){this.JSC$9096_lo=N>>>0;
this.JSC$9096_hi=b>>>0},VnL=function(N){if(!N)return Qbd||(Qbd=new iD9(0,0));
if(!/^-?\d+$/.test(N))return null;Dl(N);return new iD9(AV,XN)},Qbd;var Yp=function(){this.JSC$9098_buffer_=[]},mk,T7,xS9;
Yp.prototype.length=function(){return this.JSC$9098_buffer_.length};
Yp.prototype.end=function(){var N=this.JSC$9098_buffer_;this.JSC$9098_buffer_=[];return N};
mk=function(N,b,S){for(;S>0||b>127;)N.JSC$9098_buffer_.push(b&127|128),b=(b>>>7|S<<25)>>>0,S>>>=7;N.JSC$9098_buffer_.push(b)};
T7=function(N,b){for(;b>127;)N.JSC$9098_buffer_.push(b&127|128),b>>>=7;N.JSC$9098_buffer_.push(b)};
_.ZDE=function(N,b){if(b>=0)T7(N,b);else{for(var S=0;S<9;S++)N.JSC$9098_buffer_.push(b&127|128),b>>=7;N.JSC$9098_buffer_.push(1)}};
xS9=function(N,b){Dl(b);RO_(function(S,P){mk(N,S>>>0,P>>>0)})};
Yp.prototype.writeUint8=function(N){this.JSC$9098_buffer_.push(N>>>0&255)};
_.dc=function(N,b){N.JSC$9098_buffer_.push(b>>>0&255);N.JSC$9098_buffer_.push(b>>>8&255);N.JSC$9098_buffer_.push(b>>>16&255);N.JSC$9098_buffer_.push(b>>>24&255)};
Yp.prototype.writeInt8=function(N){this.JSC$9098_buffer_.push(N>>>0&255)};var oZN,ch,ziU,EIe,w59;oZN=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Yp};
ch=function(N,b){b.length!==0&&(N.blocks_.push(b),N.totalLength_+=b.length)};
_.i9E=function(N,b){_.nD(N,b,2);b=N.encoder_.end();ch(N,b);b.push(N.totalLength_);return b};
_.JVd=function(N,b){var S=b.pop();for(S=N.totalLength_+N.encoder_.length()-S;S>127;)b.push(S&127|128),S>>>=7,N.totalLength_++;b.push(S);N.totalLength_++};
_.nD=function(N,b,S){T7(N.encoder_,b*8+S)};
ziU=function(N,b,S){if(S!=null)switch($_E(S),_.nD(N,b,1),typeof S){case "number":N=N.encoder_;vZE(S);_.dc(N,AV);_.dc(N,XN);break;case "bigint":S=JSI(S);N=N.encoder_;b=S.JSC$9094_hi;_.dc(N,S.JSC$9094_lo);_.dc(N,b);break;default:S=ewa(S),N=N.encoder_,b=S.JSC$9094_hi,_.dc(N,S.JSC$9094_lo),_.dc(N,b)}};
EIe=function(N,b,S){_.nD(N,b,2);T7(N.encoder_,S.length);ch(N,N.encoder_.end());ch(N,S)};
w59=function(N,b,S,P){S!=null&&(b=_.i9E(N,b),P(S,N),_.JVd(N,b))};var hwe,USN,Z9c,jbZ,zOd,Xk4,EZz,Ydd,yV9;hwe=vh();USN=vh();Z9c=vh();jbZ=vh();zOd=vh();_.AV4=vh();_.ya=vh();Xk4=vh();EZz=vh();_.pkN=vh();Ydd=vh();yV9=vh();_.Ilz=vh();_.DSS=vh();_.rc=function(N,b,S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,b,S)};
_.rc.prototype.toJSON=function(){return JO(this)};
_.rc.prototype.serialize=function(N){return JSON.stringify(JO(this,N))};
var bgL=function(N,b){if(b==null||b=="")return new N;b=JSON.parse(b);if(!Array.isArray(b))throw Error("V");return new N($LU(b))};
_.rc.prototype.getExtension=function(N){Hqf(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N.fieldIndex);SaE(this,N.fieldIndex);return N.ctor?N.isRepeated?N.getExtensionFn(this,N.ctor,N.fieldIndex,_.T6(),N.JSC$9109_hasMessageId):N.getExtensionFn(this,N.ctor,N.fieldIndex,N.JSC$9109_hasMessageId):N.isRepeated?N.getExtensionFn(this,N.fieldIndex,_.T6(),N.JSC$9109_hasMessageId):N.getExtensionFn(this,N.fieldIndex,N.defaultValue,N.JSC$9109_hasMessageId)};
_.rc.prototype.clone=function(){var N=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=N[_.sd]|0;return Q69(this,N,b)?uiu(this,N,!0):new this.constructor(AO(N,b,!1))};
_.rc.prototype[B5]=uL;_.rc.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var OL=function(N,b,S){this.$$binaryReaderFn=N;this.$$binaryWriterFn=b;N=xQ(hwe);this.$$isMsg=!!N&&S===N||!1},s$O=qap(function(N,b,S,P,H){if(N.nextWireType_!==2)return!1;
pm(N,O9z(b,P,S),H);return!0},bDU),Kkb=qap(function(N,b,S,P,H){if(N.nextWireType_!==2)return!1;
pm(N,O9z(b,P,S),H);return!0},bDU),tos=Symbol(),Cio=Symbol(),cSO=Symbol(),Bc_=Symbol(),djI=Symbol(),SLu,Pi_;var V9V,qLe,gZ9,I9,eO9,$Sb,hO9,qdb,Va,NE9,bq9,SaO,PL9,HqN,KJE,vQb,OqE,CLS,GEZ,rON;V9V=_.z4(0);qLe=function(N,b){var S=new oZN;lBI(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,G7(tos,Tcb,MoE,b));ch(S,S.encoder_.end());N=new Uint8Array(S.totalLength_);b=S.blocks_;for(var P=b.length,H=0,K=0;K<P;K++){var C=b[K];N.set(C,H);H+=C.length}S.blocks_=[N];return N};
gZ9=qap(function(N,b,S,P,H){if(N.nextWireType_!==2)return!1;N=pm(N,jn([void 0,void 0],P),H);N=e9(N);P=b[_.sd]|0;H=Zl(P);if(P&2)throw Error();var K=wE(b,S,H);if(K instanceof Qt)(K.arrayState&2)!=0?(K=WJ9(K),K.push(N),Vt(b,P,S,K,H)):(b=K,S=b.keyToApi(N[0],!1,!0),N=N[1],N=b.valueCtor?N===void 0?null:N:b.valueToApi(N,!1,!0,void 0,!1,b.arrayState),dV.prototype.set.call(b,S,N));else if(Array.isArray(K)){var C=K[_.sd]|0;C&8192||vk(K,C|=8192);C&2&&(K=U_Y(K),Vt(b,P,S,K,H));K.push(N)}else Vt(b,P,S,r9([N]),
H);return!0},function(N,b,S,P,H){if(b instanceof Qt)b.forEach(function(G,a){w59(N,S,jn([a,
G],P),H)});
else if(Array.isArray(b)){for(var K=0;K<b.length;K++){var C=b[K];Array.isArray(C)&&w59(N,S,jn(C,P),H)}r9(b)}});
I9=_.R$(function(N,b,S){if(N.nextWireType_!==1)return!1;_.Wh(b,S,mSS(N.decoder_));return!0},xju,yV9);
eO9=_.R$(function(N,b,S,P){if(N.nextWireType_!==1)return!1;_.Mj(b,S,P,mSS(N.decoder_));return!0},xju,yV9);
$Sb=_.R$(function(N,b,S){if(N.nextWireType_!==5)return!1;_.Wh(b,S,dS9(N.decoder_));return!0},oIY,Ydd);
hO9=_.Q$O(function(N,b,S){if(N.nextWireType_!==5&&N.nextWireType_!==2)return!1;b=_.Ph(b,b[_.sd]|0,S);N.nextWireType_==2?_.Lc9(N,dS9,b):b.push(dS9(N.decoder_));return!0},function(N,b,S){b=_.uHE(_.N_,b,!0);
if(b!=null&&b.length)for(_.nD(N,S,2),T7(N.encoder_,b.length*4),S=0;S<b.length;S++){var P=N.encoder_;G49(b[S]);_.dc(P,AV)}},Ydd);
qdb=_.R$(function(N,b,S,P){if(N.nextWireType_!==5)return!1;_.Mj(b,S,P,dS9(N.decoder_));return!0},oIY,Ydd);
_.wk9=_.R$(function(N,b,S){if(_.OG)return Vo9(N,b,S);if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,_.yz));return!0},_.kI,_.ya);
_.DC=_.R$(function(N,b,S){if(_.OG)return Vo9(N,b,S);if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,YZ));return!0},_.kI,_.ya);
Va=_.R$(function(N,b,S){if(_.OG)return N.nextWireType_!==0?b=!1:(N=_.tS(N.decoder_,alY),_.Wh(b,S,N===V9V?void 0:N),b=!0),b;if(N.nextWireType_!==0)return!1;N=_.tS(N.decoder_,YZ);_.Wh(b,S,N===0?void 0:N);return!0},_.kI,_.ya);
NE9=_.R$(function(N,b,S,P){if(_.OG)return _.gIO(N,b,S,P);if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,_.tS(N.decoder_,YZ));return!0},_.kI,_.ya);
bq9=_.R$(function(N,b,S){if(_.OG)return eia(N,b,S);if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,_.p9));return!0},Uje,Xk4);
_.gV=_.R$(function(N,b,S){if(_.OG)return eia(N,b,S);if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,rVe));return!0},Uje,Xk4);
_.eM=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.Am(N.decoder_));return!0},j$Y,jbZ);
SaO=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;N=_.Am(N.decoder_);_.Wh(b,S,N===0?void 0:N);return!0},j$Y,jbZ);
PL9=_.R$(function(N,b,S,P){if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,_.Am(N.decoder_));return!0},j$Y,jbZ);
HqN=_.R$(function(N,b,S){if(_.OG)return _.hiI(N,b,S);if(N.nextWireType_!==1)return!1;_.Wh(b,S,nZN(N.decoder_));return!0},_.ASY,_.pkN);
_.s6Z=_.Q$O(function(N,b,S){if(_.OG)return N.nextWireType_!==1&&N.nextWireType_!==2?N=!1:(b=_.Ph(b,b[_.sd]|0,S),N.nextWireType_==2?_.Lc9(N,$js,b):b.push($js(N.decoder_)),N=!0),N;if(N.nextWireType_!==1&&N.nextWireType_!==2)return!1;b=_.Ph(b,b[_.sd]|0,S);N.nextWireType_==2?_.Lc9(N,nZN,b):b.push(nZN(N.decoder_));return!0},function(N,b,S){b=_.uHE(Xko,b,!1);
if(b!=null)for(var P=0;P<b.length;P++)ziU(N,S,b[P])},_.pkN);
_.$p=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,k4Z(N.decoder_));return!0},Xh9,USN);
_.hm=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;N=k4Z(N.decoder_);_.Wh(b,S,N===!1?void 0:N);return!0},Xh9,USN);
KJE=_.R$(function(N,b,S,P){if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,k4Z(N.decoder_));return!0},Xh9,USN);
_.qW=_.R$(function(N,b,S){if(N.nextWireType_!==2)return!1;_.Wh(b,S,B94(N));return!0},pha,Z9c);
_.wV=_.R$(function(N,b,S){if(N.nextWireType_!==2)return!1;N=B94(N);_.Wh(b,S,N===""?void 0:N);return!0},pha,Z9c);
_.NH=_.R$(function(N,b,S,P){if(N.nextWireType_!==2)return!1;_.Mj(b,S,P,B94(N));return!0},pha,Z9c);
vQb=_.Q$O(function(N,b,S){if(N.nextWireType_!==2)return!1;N=B94(N);_.Ph(b,b[_.sd]|0,S).push(N);return!0},function(N,b,S){b=_.uHE(_.Fi,b,!0);
if(b!=null)for(var P=0;P<b.length;P++){var H=N,K=S,C=b[P];C!=null&&EIe(H,K,cbs(C))}},Z9c);
OqE=void 0;OqE=OqE===void 0?hwe:OqE;_.b2=new OL(function(N,b,S,P,H){if(N.nextWireType_!==2)return!1;P=jn(void 0,P);_.Ph(b,b[_.sd]|0,S).push(P);pm(N,P,H);return!0},function(N,b,S,P,H){if(Array.isArray(b)){for(var K=0;K<b.length;K++)YLu(N,b[K],S,P,H);
N=b[_.sd]|0;N&1||vk(b,N|1)}},OqE);
_.SO=qap(function(N,b,S,P,H,K){if(N.nextWireType_!==2)return!1;var C=b[_.sd]|0;AOE(b,C,K,S,Zl(C));b=O9z(b,P,S);pm(N,b,H);return!0},YLu);
_.Pr=_.R$(function(N,b,S){if(N.nextWireType_!==2)return!1;_.Wh(b,S,_.ll9(N));return!0},_.ySf,_.Ilz);
CLS=_.R$(function(N,b,S,P){if(N.nextWireType_!==2)return!1;_.Mj(b,S,P,_.ll9(N));return!0},_.ySf,_.Ilz);
_.Hr=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.Am(N.decoder_)>>>0);return!0},IBL,zOd);
GEZ=_.R$(function(N,b,S,P){if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,_.Am(N.decoder_)>>>0);return!0},IBL,zOd);
_.s7=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.Am(N.decoder_));return!0},_.DjO,_.DSS);
_.KL=_.R$(function(N,b,S){if(N.nextWireType_!==0)return!1;N=_.Am(N.decoder_);_.Wh(b,S,N===0?void 0:N);return!0},_.DjO,_.DSS);
rON=_.R$(function(N,b,S){if(_.OG)return N.nextWireType_!==0?N=!1:(_.Wh(b,S,Wc9(N.decoder_)),N=!0),N;if(N.nextWireType_!==0)return!1;_.Wh(b,S,_.tS(N.decoder_,nZf));return!0},function(N,b,S){b=AVo(b);
if(b!=null&&(gQe(b),b!=null))switch(_.nD(N,S,0),typeof b){case "number":N=N.encoder_;S=b;b=S<0;S=Math.abs(S)*2;vZE(S);S=AV;var P=XN;b&&(S==0?P==0?P=S=4294967295:(P--,S=4294967295):S--);AV=S;XN=P;mk(N,AV,XN);break;case "bigint":N=N.encoder_;b=b<<BigInt(1)^b>>BigInt(63);AV=Number(BigInt.asUintN(32,b));XN=Number(BigInt.asUintN(32,b>>BigInt(32)));mk(N,AV,XN);break;default:xS9(N.encoder_,b)}},EZz);var RwS=function(){var N=cOd,b=ao9;this.fieldIndex=175237375;this.ctor=b;this.isRepeated=0;this.getExtensionFn=_.k0;this.defaultValue=void 0;this.JSC$9109_hasMessageId=N.messageId!=null?JV:void 0};
RwS.prototype.register=function(){Gu(this)};var WJc=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(WJc,_.rc);var nQd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(nQd,_.rc);var Hgs=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Hgs,_.rc);var d_O=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(d_O,_.rc);var m_V=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(m_V,_.rc);var kEV=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(kEV,_.rc);var TEZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(TEZ,_.rc);TEZ.prototype.getData=function(){return _.MW(this,2)};var tn9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(tn9,_.rc);var MnN=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(MnN,_.rc);MnN.prototype.getStyle=function(){return _.k0(this,WJc,1)};var QK=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(QK,_.rc);QK.prototype.getPayloadCase=function(){return _.F5(this,ii)};
QK.prototype.getStyle=function(){return _.UG(this,MnN,6,ii)};
var FJd=function(){var N=new QK,b=new m_V;return _.o$(N,7,ii,b)},BE4=function(){var N=new QK,b=new kEV;
return _.o$(N,8,ii,b)},ii=[1,
2,3,4,5,6,7,8];var loz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(loz,_.rc);var LJO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(LJO,_.rc);var foV=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(foV,_.rc);var uiz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(uiz,_.rc);var Q6c=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Q6c,_.rc);var x_b=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(x_b,_.rc);var oQZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(oQZ,_.rc);var iq9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(iq9,_.rc);iq9.prototype.getData=function(){return _.MW(this,2)};var JOd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(JOd,_.rc);var P4E=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(P4E,_.rc);P4E.prototype.getPayloadCase=function(){return _.F5(this,CL)};
var CL=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var G3=function(N,b){N=Error.call(this,N);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=b===void 0?2:b};
_.F(G3,Error);var U_E=Promise;var Zqc=function(N){this.channelPromise=N};
Zqc.prototype.send=function(N,b,S){this.channelPromise.then(function(P){P.send(N,b,S)})};var j6E=function(N,b){this.data=N;this.channel=b};
j6E.prototype.reply=function(N,b,S){this.channel.send(N,b,S)};var zwO=function(N){this.JSC$9175_port_=N};
zwO.prototype.send=function(N,b,S){S=S===void 0?[]:S;var P=new MessageChannel;AOO(P.port1,b);this.JSC$9175_port_.postMessage(N,[P.port2].concat(S))};
var X5N=function(N,b){AOO(N,b);return new zwO(N)},AOO=function(N,b){b&&(N.onmessage=function(S){b(new j6E(S.data,X5N(S.ports[0])))})};var EQO=function(N){this.verifier_=N};
EQO.prototype.verify=function(N){return this.verifier_(N)};
var p5d=function(N){var b=Object.create(null);(typeof N==="string"?[N]:N).forEach(function(S){if(S==="null")throw Error("X");b[S]=!0});
return function(S){return b[S]===!0}};_.Ya9=function(){if(!_.Ps.addEventListener||!Object.defineProperty)return!1;var N=!1,b=Object.defineProperty({},"passive",{get:function(){N=!0}});
try{var S=function(){};
_.Ps.addEventListener("test",S,b);_.Ps.removeEventListener("test",S,b)}catch(P){}return N}();var yOk;_.rP=function(N){var b=N.destination;var S=N.iframe;var P=N.origin;var H=N.channelName===void 0?"ZNWN1d":N.channelName;var K=N.onMessage===void 0?void 0:N.onMessage;N=N.onEstablished===void 0?void 0:N.onEstablished;return yOk({destination:b,getSource:function(){return S.contentWindow},
originVerifier:P instanceof EQO?P:typeof P==="function"?new EQO(P):new EQO(p5d(P)),channelName:H,onMessage:K,onEstablished:N})};
yOk=function(N){var b=N.destination;var S=N.getSource;var P=N.originVerifier;var H=N.token===void 0?void 0:N.token;var K=N.channelName;var C=N.onMessage===void 0?void 0:N.onMessage;var G=N.onEstablished===void 0?void 0:N.onEstablished;return new Zqc(new U_E(function(a,R){var n=function(d){d.source&&d.source===S()&&P.verify(d.origin)&&(d.data.n||d.data)===K&&(b.removeEventListener("message",n,!1),H&&d.data.t!==H?R(Error("Y`"+K+"`"+H+"`"+d.data.t)):(a(X5N(d.ports[0],C)),G&&G(d)))};
b.addEventListener("message",n,!1)}))};var Io4=function(N){try{N()}catch(b){Hs(b)}};var VnS=function(N){var b=this;var S=N.getMessageType;var P=N.onUnregisteredMessage===void 0?function(){}:N.onUnregisteredMessage;
var H=N.onBeforeRegisteredMessage===void 0?function(){}:N.onBeforeRegisteredMessage;
N=N.onAfterRegisteredMessage===void 0?function(){}:N.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=S;this.onUnregisteredMessage_=P;this.onBeforeRegisteredMessage_=H;this.onAfterRegisteredMessage_=N;this.onMessage=function(K){return D_d(b,K)}};
VnS.prototype.register=function(N,b){this.registry_.set(N,b);return this};
var D_d=function(N,b){var S=N.getMessageType_(b.data),P=N.registry_.get(S);P?(Io4(function(){return N.onBeforeRegisteredMessage_(b,S)}),Io4(function(){return P(b)}),Io4(function(){return N.onAfterRegisteredMessage_(b,S)})):Io4(function(){return N.onUnregisteredMessage_(b,S)})};var gQd=function(N){this.JSC$9192_channel_=N},$_O,hwd;
gQd.prototype.send=function(N,b,S){this.JSC$9192_channel_.send(JO(N),b,S)};
_.ew9=function(N,b){return function(S){var P=new N(S.data);return b(new j6E(P,S.channel))}};
$_O=function(N){return function(b){return N(new j6E(b.data,new gQd(b.channel)))}};
hwd=function(N,b){return $_O(_.ew9(N,b))};var qa9=function(N,b,S,P){this.registry=N;this.delegate=b;this.receiveMessageConstructor=S;this.createInitMessage=P;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},SEe=function(N){var b=new VnS({getMessageType:N.getPayloadCase});
return new qa9(b,new gQd(_.rP({iframe:N.child,destination:window,origin:N.origin,channelName:N.channelName,onMessage:hwd(N.receiveMessageConstructor,b.onMessage)})),N.receiveMessageConstructor,N.createInitMessage)},w5c=function(N,b){N.createInitMessage=b};
qa9.prototype.send=function(N){if(!this.initialised)throw new G3("Attempted to send a message before initialisation.");this.delegate.send(N)};
var NcO=function(N,b){return _.r(function(S){if(!N.initialised)throw new G3("Attempted to send a message before initialisation.");return S.return(new Promise(function(P){N.delegate.send(b,hwd(N.receiveMessageConstructor,P))}))})};
qa9.prototype.init=function(){var N=this;return _.r(function(b){if(N.initialised)throw new G3("Attempted to initialise twice. The SDK can only be initialised once.");if(N.createInitMessage!==void 0){var S=N.delegate,P=S.send,H=N.createInitMessage;var K=new nQd;var C=[].concat(_.IX(N.features));K=_.bi(K,1,C,_.H5);P.call(S,H.call(N,K))}N.initialised=!0;_.Zd(b)})};
var cr=function(N,b){if(N.initialised)throw new G3('Attempted to set up API "'+b+'" after initialisation. All APIs must be set up before initialising the SDK.');N.features.add(b);return N.registry};
_.d0.Object.defineProperties(qa9.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var bDb=function(N){this.channel=N;this.registered=!1};
bDb.prototype.update=function(N){if(this.channel.isInitialised){if(!this.registered)throw new G3("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new QK;var S=new d_O;S=_.lw(S,1,N);b=_.o$(b,2,ii,S);this.channel.send(b)}else this.register();this.JSC$9206_audioEnabled=N};
bDb.prototype.register=function(){cr(this.channel,1);this.registered=!0};
bDb.prototype.isAudioEnabled=function(){return this.JSC$9206_audioEnabled};var SLz=function(N){this.channel=N};
_.v=SLz.prototype;_.v.onFirstFrameReady=function(N){cr(this.channel,2).register(11,function(b){b=_.UG(b.data,loz,11,CL);if(!b)throw new G3("Unexpectedly nonexistent GameFirstFrameReadyEvent");N(_.xp(b,1))})};
_.v.onReady=function(N){cr(this.channel,2).register(4,function(b){b=_.UG(b.data,foV,4,CL);if(!b)throw new G3("Unexpectedly nonexistent GameReadyEvent");N(_.xp(b,1))})};
_.v.onLevelComplete=function(N){cr(this.channel,2).register(5,function(b){b=_.UG(b.data,uiz,5,CL);if(!b)throw new G3("Unexpectedly nonexistent LevelCompleteEvent");N(_.xp(b,1),_.tg(b,2))})};
_.v.onGameOver=function(N){cr(this.channel,2).register(6,function(b){b=_.UG(b.data,LJO,6,CL);if(!b)throw new G3("Unexpectedly nonexistent GameOverEvent");N(_.xp(b,1))})};
_.v.pause=function(){var N=this;if(!this.channel.isInitialised)return cr(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new G3("Using unregistered Game Feature: pause.");var b=FJd();return new Promise(function(S){return _.r(function(P){if(P.nextAddress==1)return P.yield(NcO(N.channel,b),2);S();_.Zd(P)})})};
_.v.resume=function(){var N=this;if(!this.channel.isInitialised)return cr(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new G3("Using unregistered Game Feature: resume.");var b=BE4();return new Promise(function(S){return _.r(function(P){if(P.nextAddress==1)return P.yield(NcO(N.channel,b),2);S();_.Zd(P)})})};var Pil=function(N){this.channel=N};
Pil.prototype.onReady=function(N){cr(this.channel,5).register(8,function(b){if(!_.UG(b.data,Q6c,8,CL))throw new G3("Unexpectedly nonexistent PageReadyEvent");N()})};var HDN=function(N){this.channel=N};
HDN.prototype.onChange=function(N){cr(this.channel,3).register(7,function(b){b=_.UG(b.data,x_b,7,CL);if(!b)throw new G3("Unexpectedly nonexistent ScoreEvent");N(_.xp(b,1),_.tg(b,2))})};var s$Z={load:function(){throw new G3("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new G3("Storage used, but storage.onSave() listener not set!");}},KkV=function(N){this.channel=N;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},vI4=function(N){cr(N.channel,4).register(2,s$Z.load).register(3,s$Z.save);
N.initialSetupDone=!0};
KkV.prototype.onLoad=function(N){this.initialSetupDone||vI4(this);this.loadRegistered||(this.loadRegistered=!0,cr(this.channel,4).register(2,function(b){var S,P,H;return _.r(function(K){if(K.nextAddress==1){S=_.UG(b.data,oQZ,2,CL);if(!S)throw new G3("Unexpectedly nonexistent StorageLoad");P=_.xp(S,1);return K.yield(N(P),2)}H=K.yieldResult;var C=b.reply,G=new QK;var a=new TEZ;a=_.En(a,1,P);a=_.t2(a,2,_.iE(H,!1));G=_.o$(G,3,ii,a);C.call(b,G);_.Zd(K)})}))};
KkV.prototype.onSave=function(N){this.initialSetupDone||vI4(this);this.saveRegistered||(this.saveRegistered=!0,cr(this.channel,4).register(3,function(b){var S,P,H;return _.r(function(K){if(K.nextAddress==1){S=_.UG(b.data,iq9,3,CL);if(!S)throw new G3("Unexpectedly nonexistent StorageSave");P=_.xp(S,1);H=Vpb(S.getData());return K.yield(N(P,H),2)}var C=b.reply,G=new QK;var a=new tn9;a=_.En(a,1,P);G=_.o$(G,4,ii,a);C.call(b,G);_.Zd(K)})}))};var ODE=function(N){this.channel=N};
ODE.prototype.update=function(N){if(!this.channel.features.has(6))throw new G3("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new QK,S=new MnN;N=_.xI(S,1,N);b=_.o$(b,6,ii,N);this.channel.send(b)};
ODE.prototype.register=function(){cr(this.channel,6)};var Ci4=function(N){this.channel=N;this.userActivityLoggingIntervalMs=0};
Ci4.prototype.onUserActivity=function(N,b){this.userActivityLoggingIntervalMs=b;cr(this.channel,7).register(9,function(S){if(!_.UG(S.data,JOd,9,CL))throw new G3("Unexpectedly nonexistent ClickEvent");N()})};var G79=function(N){var b=this;this.channel=N;this.init=this.channel.init.bind(this.channel);this.page=new Pil(this.channel);this.game=new SLz(this.channel);this.audio=new bDb(this.channel);this.score=new HDN(this.channel);this.storage=new KkV(this.channel);this.style=new ODE(this.channel);this.userActivity=new Ci4(this.channel);w5c(this.channel,function(S){var P=new Hgs;S=_.xI(P,1,S);S=_.ZC(S,3,b.userActivity.userActivityLoggingIntervalMs);P=b.audio.isAudioEnabled();P!==void 0&&_.lw(S,2,P);P=new QK;
return _.o$(P,5,ii,S)})};var rSN=function(){this.timedFunctionContext=0};
rSN.prototype.timeExecution=function(N,b){var S=this;return function(){var P=_.$I.apply(0,arguments);S.timedFunctionContext=N;return b.apply(null,_.IX(P))}};var cSZ=function(){var N={};this.priorityTasks=(N[3]=[],N[2]=[],N[1]=[],N);this.isFlushing=!1},xo=function(N,b,S){var P=aBc(N,S);
N.priorityTasks[S].push(b);P&&N.priorityTasks[S].length===1&&N.flush()},aBc=function(N,b){return Object.keys(N.priorityTasks).map(function(S){return Number(S)}).filter(function(S){return!isNaN(S)&&S>b}).every(function(S){return N.priorityTasks[S].length===0})};
cSZ.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(N){return N.length>0});)Ri9(this,3),Ri9(this,2),Ri9(this,1)}catch(N){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),N;
}finally{this.isFlushing=!1}}};
var Ri9=function(N,b){for(;aBc(N,b)&&N.priorityTasks[b].length>0;)N.priorityTasks[b][0](),N.priorityTasks[b].shift()};
_.d0.Object.defineProperties(cSZ.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(N){return N.length>0})}}});var rvf={};var Wk9=globalThis.trustedTypes,KRU=Wk9,OgO;var UL=function(N){this.privateDoNotAccessOrElseWrappedResourceUrl=N};
UL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var nI9,dj9,mj9,k79,TcV,tok,MoO,Fkz;nI9=_.$E([""]);dj9=e3(["\x00"],["\\0"]);mj9=e3(["\n"],["\\n"]);k79=e3(["\x00"],["\\u0000"]);TcV=_.$E([""]);tok=e3(["\x00"],["\\0"]);MoO=e3(["\n"],["\\n"]);Fkz=e3(["\x00"],["\\u0000"]);_.Bcl=GJL(function(N){return N(nI9)})||GJL(function(N){return N(dj9)})||GJL(function(N){return N(mj9)})||GJL(function(N){return N(k79)});
_.lB9=_.z7(TcV)&&_.z7(tok)&&_.z7(MoO)&&_.z7(Fkz);var DB;_.AS=function(N,b){this.privateDoNotAccessOrElseWrappedUrl=b};
_.AS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Lkb=XH("about:blank");DB=XH("about:invalid#zClosurez");var cvf=function(N){this.isValid=N},fB9=new cvf(function(N){return/^[^:]*([/?#]|$)/.test(N)}),uHO=yK("data"),Q$Z=yK("http"),xjz=yK("https"),oIE=yK("ftp"),iDc=yK("mailto"),JS9=yK("intent"),Ujd=yK("vnd.youtube"),ad_=[uHO,
Q$Z,xjz,iDc,oIE,fB9],WRY=JS(function(){return typeof URL==="function"}),ZDO=["data:",
"http:","https:","mailto:","ftp:"],dt_=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var wc=function(N){this.privateDoNotAccessOrElseWrappedHtml=N};
wc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var dYE=JS(function(){return new wc(Wk9?Wk9.emptyHTML:"")});var j$E={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},kJL=function(N,b){var S=Error.call(this,N+" cannot be used with intent "+j$E[b]);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.type=N;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.F(kJL,Error);_.OE=function(N){this.privateDoNotAccessOrElseWrappedScript=N};
_.OE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var tWe=function(N){this.privateDoNotAccessOrElseWrappedAttributePrefix=N};
tWe.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var MWe="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ng=function(N){this.privateDoNotAccessOrElseWrappedStyleSheet=N};
ng.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var wXE=function(N){var b=_.hl("window.location.href");N==null&&(N='Unknown Error of type "null/undefined"');if(typeof N==="string")return{message:N,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var S=!1;try{var P=N.lineNumber||N.line||"Not available"}catch(C){P="Not available",S=!0}try{var H=N.fileName||N.filename||N.sourceURL||_.Ps.$googDebugFname||b}catch(C){H="Not available",S=!0}b=zib(N);if(!(!S&&N.lineNumber&&N.fileName&&N.stack&&N.message&&N.name)){S=N.message;
if(S==null){if(N.constructor&&N.constructor instanceof Function){if(N.constructor.name)S=N.constructor.name;else if(S=N.constructor,aS[S])S=aS[S];else{S=String(S);if(!aS[S]){var K=/function\s+([^\(]+)/m.exec(S);aS[S]=K?K[1]:"[Anonymous]"}S=aS[S]}S='Unknown Error of type "'+S+'"'}else S="Unknown Error of unknown type";typeof N.toString==="function"&&Object.prototype.toString!==N.toString&&(S+=": "+N.toString())}return{message:S,name:N.name||"UnknownError",lineNumber:P,fileName:H,stack:b||"Not available"}}return{message:N.message,
name:N.name,lineNumber:N.lineNumber,fileName:N.fileName,stack:b}},zib=function(N,b){b||(b={});
b[ASE(N)]=!0;var S=N.stack||"",P=N.cause;P&&!b[ASE(P)]&&(S+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(S+=typeof P==="string"?P:P.message+"\n"),S+=zib(P,b));N=N.errors;if(Array.isArray(N)){P=1;var H;for(H=0;H<N.length&&!(P>4);H++)b[ASE(N[H])]||(S+="\nInner error "+P++ +": ",N[H].stack&&N[H].stack.indexOf(N[H].toString())==0||(S+=typeof N[H]==="string"?N[H]:N[H].message+"\n"),S+=zib(N[H],b));H<N.length&&(S+="\n... "+(N.length-H)+" more inner errors")}return S},ASE=function(N){var b=
"";
typeof N.toString==="function"&&(b=""+N);return b+N.stack},aS={};var Xhc,r7,Kf,ph9,YLz,EId,HW,Aw,IBS;Xhc=function(N,b){for(var S=N.split("%s"),P="",H=Array.prototype.slice.call(arguments,1);H.length&&S.length>1;)P+=S.shift()+H.shift();return P+S.join("%s")};
_.w8=function(N){return encodeURIComponent(String(N))};
r7=function(N){return decodeURIComponent(N.replace(/\+/g," "))};
Kf=function(N){Oa9.test(N)&&(N.indexOf("&")!=-1&&(N=N.replace(Sel,"&amp;")),N.indexOf("<")!=-1&&(N=N.replace(PY9,"&lt;")),N.indexOf(">")!=-1&&(N=N.replace(HaE,"&gt;")),N.indexOf('"')!=-1&&(N=N.replace(sUc,"&quot;")),N.indexOf("'")!=-1&&(N=N.replace(K99,"&#39;")),N.indexOf("\x00")!=-1&&(N=N.replace(vOZ,"&#0;")));return N};
ph9=function(N){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var S=_.Ps.document.createElement("div");return N.replace(EId,function(P,H){var K=b[P];if(K)return K;H.charAt(0)=="#"&&(H=Number("0"+H.slice(1)),isNaN(H)||(K=String.fromCharCode(H)));K||(_.aX(S,Nt(P+" ")),K=S.firstChild.nodeValue.slice(0,-1));return b[P]=K})};
YLz=function(N){return N.replace(/&([^;]+);/g,function(b,S){switch(S){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return S.charAt(0)!="#"||(S=Number("0"+S.slice(1)),isNaN(S))?b:String.fromCharCode(S)}})};
EId=/&([^;\s<&]+);?/g;_.Aq_=function(N){return String(N).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ySN=String.prototype.repeat?function(N,b){return N.repeat(b)}:function(N,b){return Array(b+1).join(N)};
_.RS=function(N,b){if(!Number.isFinite(N))return String(N);N=String(N);var S=N.indexOf(".");S===-1&&(S=N.length);var P=N[0]==="-"?"-":"";P&&(N=N.substring(1));return P+(0,_.ySN)("0",Math.max(0,b-S))+N};
HW=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.sG()).toString(36)};
Aw=function(N){for(var b=0,S=0;S<N.length;++S)b=31*b+N.charCodeAt(S)>>>0;return b};
_.av=function(N){return String(N).replace(/\-([a-z])/g,function(b,S){return S.toUpperCase()})};
_.ci=function(N){return String(N).replace(/([A-Z])/g,"-$1").toLowerCase()};
IBS=function(N){return N.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,S,P){return S+P.toUpperCase()})};var DjZ=function(){this.names=new Map};
DjZ.prototype.getName=function(N){var b=this.names.get(N);if(b)return b;var S;b=(S=N.description)!=null?S:HW();this.names.set(N,b);return b};var Voc=function(N){var b=Error.call(this,N?N.length+" errors occurred during unsubscription:\n"+N.map(function(S,P){return P+1+") "+S.toString()}).join("\n  "):"");
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=N;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.F(Voc,Error);var mR=function(N){this.initialTeardown=N;this.closed=!1;this._teardowns=this._parentage=null};
_.v=mR.prototype;
_.v.unsubscribe=function(){if(!this.closed){this.closed=!0;var N=this._parentage;if(Array.isArray(N))for(var b=_.O(N),S=b.next();!S.done;S=b.next())S.value.remove(this);else N==null||N.remove(this);b=this.initialTeardown;if(d$(b))try{b()}catch(K){var P=K instanceof Voc?K.errors:[K]}var H=this._teardowns;if(H)for(this._teardowns=null,b=_.O(H),S=b.next();!S.done;S=b.next()){S=S.value;try{d$(S)?S():S.unsubscribe()}catch(K){S=void 0,P=(S=P)!=null?S:[],K instanceof Voc?P=[].concat(_.IX(P),_.IX(K.errors)):
P.push(K)}}if(P)throw new Voc(P);}};
_.v.add=function(N){if(N&&N!==this)if(this.closed)d$(N)?N():N.unsubscribe();else{if(N instanceof mR){if(N.closed||N._hasParent(this))return;N._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(N)}};
_.v._hasParent=function(N){var b=this._parentage;return b===N||Array.isArray(b)&&b.includes(N)};
_.v._addParent=function(N){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(N),b):b?[b,N]:N};
_.v._removeParent=function(N){var b=this._parentage;b===N?this._parentage=null:Array.isArray(b)&&fdo(b,N)};
_.v.remove=function(N){var b=this._teardowns;b&&fdo(b,N);N instanceof mR&&N._removeParent(this)};
var gIZ=new mR;gIZ.closed=!0;mR.JSC$9302_EMPTY=gIZ;var QX9=function(){setTimeout.apply(null,_.IX(_.$I.apply(0,arguments)))};var Wr=function(N){mR.call(this);this.JSC$9307_isStopped=!1;this.destination=N instanceof Wr?N:new nL(!N||d$(N)?{next:N!=null?N:void 0}:N);uwE(N)&&N.add(this)};
_.F(Wr,mR);Wr.JSC$9302_EMPTY=mR.JSC$9302_EMPTY;Wr.create=function(N,b,S){return new dP(N,b,S)};
_.v=Wr.prototype;_.v.next=function(N){this.JSC$9307_isStopped||this._next(N)};
_.v.error=function(N){this.JSC$9307_isStopped||(this.JSC$9307_isStopped=!0,this._error(N))};
_.v.complete=function(){this.JSC$9307_isStopped||(this.JSC$9307_isStopped=!0,this._complete())};
_.v.unsubscribe=function(){this.closed||(this.JSC$9307_isStopped=!0,mR.prototype.unsubscribe.call(this))};
_.v._next=function(N){this.destination.next(N)};
_.v._error=function(N){this.destination.error(N);this.unsubscribe()};
_.v._complete=function(){this.destination.complete();this.unsubscribe()};
var nL=function(N){this.partialObserver=N};
nL.prototype.next=function(N){var b=this.partialObserver;if(b.next)try{b.next(N)}catch(S){TJ(S)}};
nL.prototype.error=function(N){var b=this.partialObserver;if(b.error)try{b.error(N)}catch(S){TJ(S)}else TJ(N)};
nL.prototype.complete=function(){var N=this.partialObserver;if(N.complete)try{N.complete()}catch(b){TJ(b)}};
var dP=function(N,b,S){Wr.call(this);var P;d$(N)||!N?P={next:N!=null?N:void 0,error:b!=null?b:void 0,complete:S!=null?S:void 0}:P=N;this.destination=new nL(P)};
_.F(dP,Wr);dP.JSC$9302_EMPTY=Wr.JSC$9302_EMPTY;dP.create=Wr.create;var l4=typeof Symbol==="function"&&Symbol.observable||"@@observable";var BM=function(N){N&&(this._subscribe=N)};
_.v=BM.prototype;_.v.lift=function(N){var b=new BM;b.source=this;b.operator=N;return b};
_.v.subscribe=function(N,b,S){N=N&&N instanceof Wr||N&&d$(N.next)&&d$(N.error)&&d$(N.complete)&&uwE(N)?N:new dP(N,b,S);b=this.operator;S=this.source;N.add(b?b.call(N,S):S?this._subscribe(N):this._trySubscribe(N));return N};
_.v._trySubscribe=function(N){try{return this._subscribe(N)}catch(b){N.error(b)}};
_.v.forEach=function(N,b){var S=this;b=owu(b);return new b(function(P,H){var K=S.subscribe(function(C){try{N(C)}catch(G){H(G),K==null||K.unsubscribe()}},H,P)})};
_.v._subscribe=function(N){var b;return(b=this.source)==null?void 0:b.subscribe(N)};
BM.prototype[l4]=function(){return this};
BM.prototype.pipe=function(){var N=_.$I.apply(0,arguments);return N.length?xtE(N)(this):this};
BM.create=function(N){return new BM(N)};var ei9=function(){var N=Error.call(this,"object unsubscribed");this.message=N.message;"stack"in N&&(this.stack=N.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.F(ei9,Error);var Lz=function(){this.observers=[];this.hasError=this.JSC$9323_isStopped=this.closed=!1;this.thrownError=null};
_.F(Lz,BM);_.v=Lz.prototype;_.v.lift=function(N){var b=new mG(this,this);b.operator=N;return b};
_.v._throwIfClosed=function(){if(this.closed)throw new ei9;};
_.v.next=function(N){this._throwIfClosed();if(!this.JSC$9323_isStopped){var b=this.observers.slice();b=_.O(b);for(var S=b.next();!S.done;S=b.next())S.value.next(N)}};
_.v.error=function(N){this._throwIfClosed();if(!this.JSC$9323_isStopped){this.hasError=this.JSC$9323_isStopped=!0;this.thrownError=N;for(var b=this.observers;b.length;)b.shift().error(N)}};
_.v.complete=function(){this._throwIfClosed();if(!this.JSC$9323_isStopped){this.JSC$9323_isStopped=!0;for(var N=this.observers;N.length;)N.shift().complete()}};
_.v.unsubscribe=function(){this.JSC$9323_isStopped=this.closed=!0;this.observers=null};
_.v._trySubscribe=function(N){this._throwIfClosed();return BM.prototype._trySubscribe.call(this,N)};
_.v._subscribe=function(N){this._throwIfClosed();this._checkFinalizedStatuses(N);return this._innerSubscribe(N)};
_.v._innerSubscribe=function(N){var b=this,S=this.JSC$9323_isStopped,P=this.observers;return this.hasError||S?mR.JSC$9302_EMPTY:(P.push(N),new mR(function(){return fdo(b.observers,N)}))};
_.v._checkFinalizedStatuses=function(N){var b=this.thrownError,S=this.JSC$9323_isStopped;this.hasError?N.error(b):S&&N.complete()};
Lz.create=function(N,b){return new mG(N,b)};
var mG=function(N,b){Lz.call(this);this.destination=N;this.source=b};
_.F(mG,Lz);mG.create=Lz.create;mG.prototype.next=function(N){var b,S;(b=this.destination)==null||(S=b.next)==null||S.call(b,N)};
mG.prototype.error=function(N){var b,S;(b=this.destination)==null||(S=b.error)==null||S.call(b,N)};
mG.prototype.complete=function(){var N,b;(N=this.destination)==null||(b=N.complete)==null||b.call(N)};
mG.prototype._subscribe=function(N){var b,S;return(S=(b=this.source)==null?void 0:b.subscribe(N))!=null?S:mR.JSC$9302_EMPTY};var Pv=function(N){Lz.call(this);this._value=N};
_.F(Pv,Lz);Pv.create=Lz.create;Pv.prototype._subscribe=function(N){var b=Lz.prototype._subscribe.call(this,N);!b.closed&&N.next(this._value);return b};
Pv.prototype.getValue=function(){var N=this.thrownError,b=this._value;if(this.hasError)throw N;this._throwIfClosed();return b};
Pv.prototype.next=function(N){Lz.prototype.next.call(this,this._value=N)};
_.d0.Object.defineProperties(Pv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var hv=new BM(function(N){return N.complete()});var ZgE=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Ewo=function(N){return N&&typeof N.length==="number"&&typeof N!=="function"};var $jk={now:function(){return($jk.delegate||Date).now()},
delegate:void 0};var cR=function(N,b,S){N=N===void 0?Infinity:N;b=b===void 0?Infinity:b;S=S===void 0?$jk:S;Lz.call(this);this.bufferSize=N;this.windowTime=b;this.timestampProvider=S;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,N);this.windowTime=Math.max(1,b)};
_.F(cR,Lz);cR.create=Lz.create;cR.prototype.next=function(N){var b=this.buffer,S=this.infiniteTimeWindow,P=this.timestampProvider,H=this.windowTime;this.JSC$9323_isStopped||(b.push(N),!S&&b.push(P.now()+H));hi9(this);Lz.prototype.next.call(this,N)};
cR.prototype._subscribe=function(N){this._throwIfClosed();hi9(this);for(var b=this._innerSubscribe(N),S=this.infiniteTimeWindow,P=this.buffer.slice(),H=0;H<P.length&&!N.closed;H+=S?1:2)N.next(P[H]);this._checkFinalizedStatuses(N);return b};
var hi9=function(N){var b=N.bufferSize,S=N.timestampProvider,P=N.buffer;N=N.infiniteTimeWindow;var H=(N?1:2)*b;b<Infinity&&H<P.length&&P.splice(0,P.length-H);if(!N){b=S.now();S=0;for(N=1;N<P.length&&P[N]<=b;N+=2)S=N;S&&P.splice(0,S+1)}};var wh9=function(N,b){b=b===void 0?qLd:b;this.schedulerActionCtor=N;this.now=b};
wh9.prototype.schedule=function(N,b,S){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,N)).schedule(S,b)};
var qLd=$jk.now;var iz9=function(){var N=Error.call(this,"no elements in sequence");this.message=N.message;"stack"in N&&(this.stack=N.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.F(iz9,Error);var pg=function(N,b,S,P,H){Wr.call(this,N);this.onUnsubscribe=H;b&&(this._next=function(K){try{b(K)}catch(C){this.destination.error(C)}});
S&&(this._error=function(K){try{S(K)}catch(C){this.destination.error(C)}this.unsubscribe()});
P&&(this._complete=function(){try{P()}catch(K){this.destination.error(K)}this.unsubscribe()})};
_.F(pg,Wr);pg.JSC$9302_EMPTY=Wr.JSC$9302_EMPTY;pg.create=Wr.create;pg.prototype.unsubscribe=function(){var N;this.closed||(N=this.onUnsubscribe)!=null&&N.call(this);Wr.prototype.unsubscribe.call(this)};var Cz=function(N,b){this.source=N;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};
_.F(Cz,BM);Cz.create=BM.create;Cz.prototype._subscribe=function(N){return N$d(this).subscribe(N)};
var N$d=function(N){var b=N._subject;if(!b||b.JSC$9323_isStopped)N._subject=N.subjectFactory();return N._subject};
Cz.prototype._teardown=function(){this._refCount=0;var N=this._connection;this._subject=this._connection=null;N==null||N.unsubscribe()};
Cz.prototype.connect=function(){var N=this,b=this._connection;if(!b){b=this._connection=new mR;var S=N$d(this);b.add(this.source.subscribe(new pg(S,void 0,function(P){N._teardown();S.error(P)},function(){N._teardown();
S.complete()},function(){return N._teardown()})));
b.closed&&(this._connection=null,b=mR.JSC$9302_EMPTY)}return b};var wM9=Array.isArray;var bza=Array.isArray,bgS=Object,Snu=bgS.getPrototypeOf,Pz9=bgS.prototype,Hzb=bgS.keys;var V1=function(N,b,S){Wr.call(this,N);this._next=b;this.shouldComplete=S};
_.F(V1,Wr);V1.JSC$9302_EMPTY=Wr.JSC$9302_EMPTY;V1.create=Wr.create;V1.prototype._complete=function(){this.shouldComplete()?Wr.prototype._complete.call(this):this.unsubscribe()};var a2O=["addListener","removeListener"],chb=["addEventListener","removeEventListener"],W0_=["on","off"];var kv=function(){mR.call(this)};
_.F(kv,mR);kv.JSC$9302_EMPTY=mR.JSC$9302_EMPTY;kv.prototype.schedule=function(){return this};var SEd=function(N,b){return setInterval.apply(null,[N,b].concat(_.IX(_.$I.apply(2,arguments))))};var T3=function(N,b){mR.call(this);this.scheduler=N;this.work=b;this.pending=!1};
_.F(T3,kv);T3.JSC$9302_EMPTY=kv.JSC$9302_EMPTY;T3.prototype.schedule=function(N,b){b=b===void 0?0:b;if(this.closed)return this;this.state=N;N=this.id;var S=this.scheduler;N!=null&&(this.id=P4O(this,N,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(S,this.id,b);return this};
T3.prototype.requestAsyncId=function(N,b,S){S=S===void 0?0:S;return SEd(N.flush.bind(N,this),S)};
var P4O=function(N,b,S){S=S===void 0?0:S;if(S!=null&&N.delay===S&&N.pending===!1)return b;clearInterval(b)};
T3.prototype.execute=function(N,b){if(this.closed)return Error("ha");this.pending=!1;if(N=this._execute(N,b))return N;this.pending===!1&&this.id!=null&&(this.id=P4O(this,this.id,null))};
T3.prototype._execute=function(N){var b=!1;try{this.work(N)}catch(P){b=!0;var S=!!P&&P||Error(P)}if(b)return this.unsubscribe(),S};
T3.prototype.unsubscribe=function(){if(!this.closed){var N=this.id,b=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;fdo(b,this);N!=null&&(this.id=P4O(this,N,null));this.delay=null;kv.prototype.unsubscribe.call(this)}};var Hgk=function(N,b){b=b===void 0?qLd:b;wh9.call(this,N,b);this.actions=[];this.active=!1;this.scheduled=void 0};
_.F(Hgk,wh9);Hgk.prototype.flush=function(N){var b=this.actions;if(this.active)b.push(N);else{var S;this.active=!0;do if(S=N.execute(N.state,N.delay))break;while(N=b.shift());this.active=!1;if(S){for(;N=b.shift();)N.unsubscribe();throw S;}}};var ym=new BM(kw);var noI=Array.isArray;var t6=function(N,b){T3.call(this,N,b);this.scheduler=N;this.work=b};
_.F(t6,T3);t6.JSC$9302_EMPTY=T3.JSC$9302_EMPTY;t6.prototype.schedule=function(N,b){b=b===void 0?0:b;if(b>0)return T3.prototype.schedule.call(this,N,b);this.delay=b;this.state=N;this.scheduler.flush(this);return this};
t6.prototype.execute=function(N,b){return b>0||this.closed?T3.prototype.execute.call(this,N,b):this._execute(N,b)};
t6.prototype.requestAsyncId=function(N,b,S){S=S===void 0?0:S;return S!=null&&S>0||S==null&&this.delay>0?T3.prototype.requestAsyncId.call(this,N,b,S):N.flush(this)};var sXd=function(){Hgk.apply(this,arguments)};
_.F(sXd,Hgk);var h8E=new sXd(t6);var KRb=function(){this.performanceMonitor=new rSN;this.queue=new cSZ;this.internalSymbol=Symbol();this.debugNames=new DjZ};
KRb.prototype.getOnBackgrounded=function(){return ym};
_.d0.Object.defineProperties(KRb.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var MH=function(N,b){b=Error.call(this,b?N+": "+b:String(N));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=N;this.__proto__=MH.prototype;this.name=String(N)};
_.F(MH,Error);var I_=function(N){MH.call(this,1E3,'sfr:"'+N+'"');this.measurementStrategyFailureReason=N;this.__proto__=I_.prototype};
_.F(I_,MH);var D2=function(){MH.call(this,1003);this.__proto__=D2.prototype};
_.F(D2,MH);var FJ=function(){MH.call(this,1009);this.__proto__=FJ.prototype};
_.F(FJ,MH);var vwO=function(){MH.call(this,1011);this.__proto__=vwO.prototype};
_.F(vwO,MH);var OgZ=function(){MH.call(this,1007);this.__proto__=D2.prototype};
_.F(OgZ,MH);var pz=function(N){MH.call(this,1004,String(N));this.inputObservableIndex=N;this.__proto__=pz.prototype};
_.F(pz,MH);var wvf=function(N){MH.call(this,1010,N);this.__proto__=NAO.prototype};
_.F(wvf,MH);var NAO=function(N){MH.call(this,1005,N);this.__proto__=NAO.prototype};
_.F(NAO,MH);var C4d=function(N){var b=_.$I.apply(1,arguments),S=this;this.orderedFactories=[];this.orderedFactories.push(N);b.forEach(function(P){S.orderedFactories.push(P)})};
C4d.prototype.isSupported=function(N){return this.orderedFactories.some(function(b){return b.isSupported(N)})};
C4d.prototype.makeBeacon=function(N,b){for(var S=0;S<this.orderedFactories.length;S++)if(this.orderedFactories[S].isSupported(b))return this.orderedFactories[S].makeBeacon(N,b);throw new FJ;};var pWE=Symbol("ia"),GJS=Symbol("ja"),bz=function(N,b){this.value=N;this.timeline=b},Nz=function(N,b){if(b.timeline!==N.timeline)throw new OgZ;
return N.value-b.value};
_.v=bz.prototype;_.v.equals=function(N){return Nz(this,N)===0};
_.v.maximum=function(N){if(N.timeline!==this.timeline)throw new OgZ;return this.value>=N.value?this:N};
_.v.round=function(){return new bz(Math.round(this.value),this.timeline)};
_.v.add=function(N){return new bz(this.value+N,this.timeline)};
_.v.toString=function(){return String(this.value)};var Br=function(N,b){this.context=N;this.JSC$9429_pinger=b};
Br.prototype.isSupported=function(N){return this.JSC$9429_pinger.isSupported(N)};
Br.prototype.makeBeacon=function(N,b){if(!this.isSupported(b))throw new FJ;return new l2(this.context,this.JSC$9429_pinger,b!=null?b:void 0,N)};
var l2=function(N,b,S,P){var H=this;this.JSC$9435_pinger=b;this.properties=S;this.url=P;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var K;this.method=(K=S==null?void 0:S.beaconMethod)!=null?K:"GET";this.backgroundedSubscription=N.getOnBackgrounded().subscribe(function(){H.sendNow()})};
l2.prototype.deactivate=function(){this.internalIsPending=!1};
l2.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9435_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var N,b;this.JSC$9435_pinger.pingWithHeadersAndBody((N=this.properties)!=null?N:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$9435_pinger.ping(this.url);this.internalIsPending=!1}catch(S){}else this.internalIsPending=!1};
l2.prototype.setHeader=function(N,b){this.customHeaders.set(N,b)};
_.d0.Object.defineProperties(l2.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var cvN=function(){for(var N=_.O(_.$I.apply(0,arguments)),b=N.next();!b.done;b=N.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new rvN};
_.v=cvN.prototype;_.v.available=function(){return this.timeProvider.available()};
_.v.now=function(){return this.timeProvider.now()};
_.v.setTimeout=function(N,b){return this.timeProvider.setTimeout(N,b)};
_.v.clearTimeout=function(N){this.timeProvider.clearTimeout(N)};
_.v.interval=function(N,b){var S=this.intervalObservable(N).subscribe(b);return function(){return void S.unsubscribe()}};
_.v.intervalObservable=function(N){return this.timeProvider.intervalObservable(N)};
_.d0.Object.defineProperties(cvN.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var rvN=function(){this.timeline=Symbol()};
_.v=rvN.prototype;_.v.available=function(){return!1};
_.v.now=function(){return new bz(0,this.timeline)};
_.v.setTimeout=function(){return 0};
_.v.clearTimeout=function(){};
_.v.interval=function(){return function(){}};
_.v.intervalObservable=function(){return ym};var LL=function(N,b){this.intrinsicFunctionNamespace=N;this.performanceMonitor=b};
_.v=LL.prototype;_.v.setTimeout=function(N,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,N),b)};
_.v.clearTimeout=function(N){this.intrinsicFunctionNamespace.clearTimeout(N)};
_.v.interval=function(N,b){var S=this.intervalObservable(N).subscribe(b);return function(){return void S.unsubscribe()}};
_.v.intervalObservable=function(N){var b=this;return new BM(function(S){var P=0,H=b.intrinsicFunctionNamespace.setInterval(function(){S.next(P++)},N);
return function(){b.intrinsicFunctionNamespace.clearInterval(H)}})};
_.v.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var adl=function(N,b){LL.call(this,N,b);this.timeline=GJS};
_.F(adl,LL);adl.prototype.now=function(){return new bz(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
adl.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&LL.prototype.available.call(this)};var R8b=function(N,b){LL.call(this,N,b);this.timeline=pWE};
_.F(R8b,LL);R8b.prototype.now=function(){return new bz(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
R8b.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&LL.prototype.available.call(this)};var nw9=function(N){this.context=N;if(WRE===void 0)a:{var b,S,P=(b=N.global)==null?void 0:(S=b.document)==null?void 0:S.createElement("meta");if(P)try{P.httpEquiv="origin-trial";P.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";N.global.document.head.append(P);WRE=P;break a}catch(H){}WRE=void 0}},
WRE;
nw9.prototype.isSupported=function(N){return L0b(this.context)!==void 0&&!(N==null||!N.endOfSession)&&!fL(this.context)&&!(N==null?0:N.attributionEnabled)&&!(N==null?0:N.customHeaders)&&!(N==null?0:N.customBody)};
nw9.prototype.makeBeacon=function(N,b){if(!this.isSupported(b))throw new FJ;return new u2(this.context,N,b)};
var u2=function(N,b,S){this.context=N;this.properties=S;this.JSC$9462_urlWithoutToken=b;var P;this.beaconMethod=(P=S==null?void 0:S.beaconMethod)!=null?P:"GET";N=L0b(this.context);if(N===void 0)throw Error();this.fetchLater=N;dtl(this,mtE(this))},dtl=function(N,b){N.beaconResult&&N.beaconResult.activated||(N.beaconAbort=new AbortController,N.beaconResult=N.fetchLater(b,{method:N.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:N.beaconAbort.signal,activateAfter:96E4}))},mtE=function(N){N=N.JSC$9462_urlWithoutToken;
return(N.slice(-1)[0]==="&"?N:N+"&")+"flapi=1"};
u2.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
u2.prototype.sendNow=function(){};
u2.prototype.setHeader=function(){};
_.d0.Object.defineProperties(u2.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9462_urlWithoutToken},
set:function(N){this.JSC$9462_urlWithoutToken=N;N=mtE(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);dtl(this,N)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var kJS=function(N){this.context=N};
kJS.prototype.isSupported=function(){return!fL(this.context)&&!!this.context.global.fetch};
kJS.prototype.ping=function(){var N=this;return qt.apply(null,_.IX(_.$I.apply(0,arguments).map(function(b){return fg(N.context.global.fetch(b,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(y1(function(S){return S.status===200}))}))).pipe(JhI(function(b){return b}),ZzL())};
kJS.prototype.pingWithHeadersAndBody=function(N,b,S){for(var P=_.$I.apply(3,arguments),H=this,K=new Headers,C=_.O(b.entries()),G=C.next();!G.done;G=C.next()){var a=_.O(G.value);G=a.next().value;a=a.next().value;K.set(G,a)}var R,n=(R=N.keepAlive)!=null?R:!1;qt.apply(null,_.IX(P.map(function(d){return fg(H.context.global.fetch(d,Object.assign({},{method:String(N.beaconMethod),cache:"no-cache"},n?{keepalive:!0}:{},{mode:"no-cors",headers:K,body:S}))).pipe(y1(function(m){return m.status===200}))}))).pipe(JhI(function(d){return d}),
ZzL())};var T$4,dge,tWd;_.Qo=function(){};
_.iY=function(N){return N};
T$4=function(N){var b=b||0;return function(){return N.apply(this,Array.prototype.slice.call(arguments,0,b))}};
_.xv=function(N){var b=!1,S;return function(){b||(S=N(),b=!0);return S}};
_.oS=function(N,b){var S=0;return function(P){_.Ps.clearTimeout(S);var H=arguments;S=_.Ps.setTimeout(function(){N.apply(void 0,H)},b)}};
dge=function(N,b){var S=0,P=!1,H=[],K=function(){S=0;P&&(P=!1,C())},C=function(){S=_.Ps.setTimeout(K,b);
var G=H;H=[];N.apply(void 0,G)};
return function(G){H=arguments;S?P=!0:C()}};
tWd=function(N,b){var S=0,P=function(){S=0};
return function(H){S||(S=_.Ps.setTimeout(P,b),N.apply(void 0,arguments))}};var FRS=function(){return m9&&tb?tb.mobile:!MWd()&&(Ff("iPod")||Ff("iPhone")||Ff("Android")||Ff("IEMobile"))},MWd=function(){return m9&&tb?!tb.mobile&&(Ff("iPad")||Ff("Android")||Ff("Silk")):Ff("iPad")||Ff("Android")&&!Ff("Mobile")||Ff("Silk")};var i2=function(N,b,S,P,H){this.allowedElements=N;this.elementPolicies=b;this.allowedGlobalAttributes=S;this.globalAttributePolicies=P;this.globallyAllowedAttributePrefixes=H},B$E=function(N,b,S){S=N.elementPolicies.get(S);
return(S==null?0:S.has(b))?S.get(b):N.allowedGlobalAttributes.has(b)?{policyAction:1}:(S=N.globalAttributePolicies.get(b))?S:N.globallyAllowedAttributePrefixes&&[].concat(_.IX(N.globallyAllowedAttributePrefixes)).some(function(P){return b.indexOf(P)===0})?{policyAction:1}:{policyAction:0}};var ld4="ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
LRZ=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],fd4="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
uwO=[["dir",{policyAction:3,conditions:JS(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:JS(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:JS(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:JS(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],QXc=new i2(new Set(ld4),new Map(LRZ),new Set(fd4),new Map(uwO)),xtO=new i2(new Set(ld4.concat(["BUTTON",
"INPUT"])),new Map(LRZ),new Set(JS(function(){return fd4.concat(["class","id","name"])})),new Map(JS(function(){return uwO.concat([["style",
{policyAction:1}]])})));var owz,ig9,UtO;owz=function(N,b,S,P,H){this.JSC$9519_sanitizerTable=N;this.styleElementSanitizer=b;this.styleAttributeSanitizer=S;this.JSC$9519_resourceUrlPolicy=P;this.JSC$9519_navigationUrlPolicy=H;this.changes=[]};
_.Jvk=function(N,b){var S=document.implementation.createHTMLDocument("");N=ig9(N,b,S);S=S.body;S.appendChild(N);S=(new XMLSerializer).serializeToString(S);S=S.slice(S.indexOf(">")+1,S.lastIndexOf("</"));return Nt(S)};
ig9=function(N,b,S){b=Dz_(b,S);b=document.createTreeWalker(b,5,function(G){if(G.nodeType===3)G=1;else if(gof(G))if(G=Vke(G),G===null)G=2;else{var a=N.JSC$9519_sanitizerTable;G=G!=="FORM"&&(a.allowedElements.has(G)||a.elementPolicies.has(G))?1:2}else G=2;return G});
for(var P=b.nextNode(),H=S.createDocumentFragment(),K=H;P!==null;){var C=void 0;if(P.nodeType===3)N.styleElementSanitizer&&K.nodeName==="STYLE"?(P=N.styleElementSanitizer(P.data),C=N.createTextNode(P)):C=N.createTextNode(P.data);else if(gof(P))C=UtO(N,P,S);else throw Error("Z");K.appendChild(C);if(P=b.firstChild())K=C;else for(;!(P=b.nextSibling())&&(P=b.parentNode());)K=K.parentNode}return H};
owz.prototype.createTextNode=function(N){return document.createTextNode(N)};
UtO=function(N,b,S){var P,H=Vke(b);S=S.createElement(H);b=b.attributes;for(var K=_.O(b),C=K.next();!C.done;C=K.next()){var G=C.value;C=G.name;G=G.value;var a=B$E(N.JSC$9519_sanitizerTable,C,H);a:{if(P=a.conditions){P=_.O(P);for(var R=P.next();!R.done;R=P.next()){var n=_.O(R.value);R=n.next().value;n=n.next().value;var d=void 0;if((R=(d=b.getNamedItem(R))==null?void 0:d.value)&&!n.has(R)){P=!1;break a}}}P=!0}if(P)switch(a.policyAction){case 1:th(S,C,G);break;case 2:throw Error();case 3:th(S,C,G.toLowerCase());
break;case 4:N.styleAttributeSanitizer?(G=N.styleAttributeSanitizer(G),th(S,C,G)):th(S,C,G);break;case 5:N.JSC$9519_resourceUrlPolicy?(a={type:2,attributeName:C,elementName:H},G=I2s(G),(G=N.JSC$9519_resourceUrlPolicy(G,a))&&th(S,C,G.toString())):th(S,C,G);break;case 6:if(N.JSC$9519_resourceUrlPolicy){a={type:2,attributeName:C,elementName:H};P=[];G=_.O(G.split(","));for(R=G.next();!R.done;R=G.next())n=_.O(R.value.trim().split(/\s+/,2)),R=n.next().value,n=n.next().value,P.push({url:R,descriptor:n});
G={parts:[]};P=_.O(P);for(R=P.next();!R.done;R=P.next())R=R.value,n=I2s(R.url),(n=N.JSC$9519_resourceUrlPolicy(n,a))&&G.parts.push({url:n.toString(),descriptor:R.descriptor});th(S,C,eUp(G))}else th(S,C,G);break;case 7:a=G;if(N.JSC$9519_navigationUrlPolicy){a={type:2,attributeName:C,elementName:H};G=I2s(G);G=N.JSC$9519_navigationUrlPolicy(G,a);if(G===null)break;a=G.toString()}G=a;a=_.nwI(G);a=a!==void 0&&ZDO.indexOf(a.toLowerCase())!==-1?G:"about:invalid#zClosurez";th(S,C,a)}}return S};
_.ZgO=JS(function(){return new owz(QXc)});
_.jXb=JS(function(){return new owz(xtO)});var z8Z=function(){this.calledBuild=!1;this.JSC$9531_sanitizerTable=QXc},Avz=function(){z8Z.apply(this,arguments)};
_.F(Avz,z8Z);Avz.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new owz(this.JSC$9531_sanitizerTable,void 0,void 0,this.JSC$9531_resourceUrlPolicy,this.JSC$9531_navigationUrlPolicy)};var XMV=/[^#]*/;var Ahu={ALLOW_FORMS:"allow-forms",ALLOW_MODALS:"allow-modals",ALLOW_ORIENTATION_LOCK:"allow-orientation-lock",ALLOW_POINTER_LOCK:"allow-pointer-lock",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_PRESENTATION:"allow-presentation",ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_TOP_NAVIGATION:"allow-top-navigation",ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION:"allow-top-navigation-by-user-activation"},Ew4=_.xv(function(){return EoL()}),
YEz=function(){var N=pME("IFRAME"),b={};
_.NX(Ew4(),function(S){N.sandbox&&N.sandbox.supports&&N.sandbox.supports(S)&&(b[S]=!0)});
return b},pME=function(N,b){b=b===void 0?document:b;
return b.createElement(String(N).toLowerCase())};var J6;_.j3=function(N,b,S){return Math.min(Math.max(N,b),S)};
J6=function(N,b,S){return N+S*(b-N)};_.ek=function(N,b){this.x=N!==void 0?N:0;this.y=b!==void 0?b:0};
_.v=_.ek.prototype;_.v.clone=function(){return new _.ek(this.x,this.y)};
_.v.equals=function(N){return N instanceof _.ek&&(this==N?!0:this&&N?this.x==N.x&&this.y==N.y:!1)};
_.v.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.v.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.v.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.v.translate=function(N,b){N instanceof _.ek?(this.x+=N.x,this.y+=N.y):(this.x+=Number(N),typeof b==="number"&&(this.y+=b));return this};
_.v.scale=function(N,b){this.x*=N;this.y*=typeof b==="number"?b:N;return this};_.Jh=function(N,b){this.width=N;this.height=b};
_.v=_.Jh.prototype;_.v.clone=function(){return new _.Jh(this.width,this.height)};
_.v.area=function(){return this.width*this.height};
_.v.aspectRatio=function(){return this.width/this.height};
_.v.isEmpty=function(){return!this.area()};
_.v.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.v.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.v.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.v.scale=function(N,b){this.width*=N;this.height*=typeof b==="number"?b:N;return this};var yvc;_.Vm={};yvc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Vm.add=function(N,b,S){if(N!==null&&b in N)throw Error("na`"+b);N[b]=S};
_.Vm.clear=function(N){for(var b in N)delete N[b]};
_.Vm.clone=function(N){var b={},S;for(S in N)b[S]=N[S];return b};
_.Vm.contains=function(N,b){return Nja(N,b)};
_.Vm.containsKey=function(N,b){return N!==null&&b in N};
_.Vm.containsValue=Nja;_.Vm.create=PwY;_.Vm.createImmutableView=function(N){var b=N;Object.isFrozen&&!Object.isFrozen(N)&&(b=Object.create(N),Object.freeze(b));return b};
_.Vm.createSet=HTs;_.Vm.equals=function(N,b){for(var S in N)if(!(S in b)||N[S]!==b[S])return!1;for(var P in b)if(!(P in N))return!1;return!0};
_.Vm.every=function(N,b,S){for(var P in N)if(!b.call(S,N[P],P,N))return!1;return!0};
_.Vm.extend=function(N,b){for(var S,P,H=1;H<arguments.length;H++){P=arguments[H];for(S in P)N[S]=P[S];for(var K=0;K<yvc.length;K++)S=yvc[K],Object.prototype.hasOwnProperty.call(P,S)&&(N[S]=P[S])}};
_.Vm.filter=function(N,b,S){var P={},H;for(H in N)b.call(S,N[H],H,N)&&(P[H]=N[H]);return P};
_.Vm.findKey=bTe;_.Vm.findValue=function(N,b,S){return(b=bTe(N,b,S))&&N[b]};
_.Vm.forEach=function(N,b,S){for(var P in N)b.call(S,N[P],P,N)};
_.Vm.get=function(N,b,S){return N!==null&&b in N?N[b]:S};
_.Vm.getAllPropertyNames=function(N,b,S){if(!N)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return wRE(N);for(var P={};N&&(N!==Object.prototype||b)&&(N!==Function.prototype||S);){for(var H=Object.getOwnPropertyNames(N),K=0;K<H.length;K++)P[H[K]]=!0;N=Object.getPrototypeOf(N)}return wRE(P)};
_.Vm.getAnyKey=function(N){for(var b in N)return b};
_.Vm.getAnyValue=function(N){for(var b in N)return N[b]};
_.Vm.getCount=function(N){var b=0,S;for(S in N)b++;return b};
_.Vm.getKeys=wRE;_.Vm.getSuperClass=function(N){return(N=Object.getPrototypeOf(N.prototype))&&N.constructor};
_.Vm.getValueByKeys=function(N,b){var S=_.yu(b),P=S?b:arguments;for(S=S?0:1;S<P.length;S++){if(N==null)return;N=N[P[S]]}return N};
_.Vm.getValues=function(N){var b=[],S=0,P;for(P in N)b[S++]=N[P];return b};
_.Vm.isEmpty=function(N){for(var b in N)return!1;return!0};
_.Vm.isImmutableView=function(N){return!!Object.isFrozen&&Object.isFrozen(N)};
_.Vm.map=function(N,b,S){var P={},H;for(H in N)P[H]=b.call(S,N[H],H,N);return P};
_.Vm.remove=function(N,b){var S;(S=b in N)&&delete N[b];return S};
_.Vm.set=function(N,b,S){N[b]=S};
_.Vm.setIfUndefined=function(N,b,S){return b in N?N[b]:N[b]=S};
_.Vm.setWithReturnValueIfNotSet=function(N,b,S){if(b in N)return N[b];S=S();return N[b]=S};
_.Vm.some=function(N,b,S){for(var P in N)if(b.call(S,N[P],P,N))return!0;return!1};
_.Vm.transpose=function(N){var b={},S;for(S in N)b[N[S]]=S;return b};
_.Vm.unsafeClone=S5O;var qN=function(N,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=N===SWf&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=IdZ};
qN.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Dtb=function(N){return N instanceof qN&&N.constructor===qN&&N.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===IdZ?N.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},IdZ={},SWf={};
new qN(SWf,"");var zn,jG,ZA,VWE,$tO,e8d,$o,qEE,NYZ,wMc,XJ,bz9,OzV,voz,K09,Czk,Gnd,rhO,chV,TGf,a2Z,W0l,no9,RUV,U7;zn=function(N){return N?new U7(_.hh(N)):hja||(hja=new U7)};
_.Nb=function(N,b){return typeof b==="string"?N.getElementById(b):b};
jG=function(N,b){return(b||document).getElementsByTagName(String(N))};
_.gw9=function(N){return VWE("yt-formatted-string","paper-input-input",N)};
ZA=function(N,b,S,P){N=P||N;return(b=b&&b!="*"?String(b).toUpperCase():"")||S?N.querySelectorAll(b+(S?"."+S:"")):N.getElementsByTagName("*")};
VWE=function(N,b,S){var P=document,H=N&&N!="*"?String(N).toUpperCase():"";return H||b?(S||P).querySelector(H+(b?"."+b:"")):ZA(P,N,b,S)[0]||null};
$tO=function(N,b){_.Vm.forEach(b,function(S,P){P=="style"?N.style.cssText=S:P=="class"?N.className=S:P=="for"?N.htmlFor=S:e8d.hasOwnProperty(P)?N.setAttribute(e8d[P],S):_.Ka(P,"aria-")||_.Ka(P,"data-")?N.setAttribute(P,S):N[P]=S})};
e8d={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"};_.Z2=function(N){N=(N||window).document;N=N.compatMode=="CSS1Compat"?N.documentElement:N.body;return new _.Jh(N.clientWidth,N.clientHeight)};
_.h8O=function(N){var b=_.jO(N);N=N.defaultView;return new _.ek((N==null?void 0:N.pageXOffset)||b.scrollLeft,(N==null?void 0:N.pageYOffset)||b.scrollTop)};
_.jO=function(N){return N.scrollingElement?N.scrollingElement:_.FG||N.compatMode!="CSS1Compat"?N.body||N.documentElement:N.documentElement};
$o=function(N){return N?N.defaultView:window};
_.z3=function(N,b,S){return qEE(document,arguments)};
qEE=function(N,b){var S=b[1],P=wMc(N,String(b[0]));S&&(typeof S==="string"?P.className=S:Array.isArray(S)?P.className=S.join(" "):$tO(P,S));b.length>2&&NYZ(N,P,b,2);return P};
NYZ=function(N,b,S,P){function H(G){G&&b.appendChild(typeof G==="string"?N.createTextNode(G):G)}
for(;P<S.length;P++){var K=S[P];if(!_.yu(K)||_.D_(K)&&K.nodeType>0)H(K);else{a:{if(K&&typeof K.length=="number"){if(_.D_(K)){var C=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){C=typeof K.item=="function";break a}}C=!1}_.NX(C?_.pa(K):K,H)}}};
_.U5=function(N){return wMc(document,N)};
wMc=function(N,b){b=String(b);N.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return N.createElement(b)};
_.A6=function(){return document.createTextNode("\n")};
XJ=function(N){if(N.nodeType!=1)return!1;switch(N.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
bz9=function(N,b){NYZ(_.hh(N),N,arguments,1)};
_.E7=function(N){for(var b;b=N.firstChild;)N.removeChild(b)};
_.pL=function(N,b){b.parentNode&&b.parentNode.insertBefore(N,b)};
_.Yv=function(N,b){b.parentNode&&b.parentNode.insertBefore(N,b.nextSibling)};
_.Zg=function(N){return N&&N.parentNode?N.parentNode.removeChild(N):null};
_.Snz=function(N,b){var S=b.parentNode;S&&S.replaceChild(N,b)};
_.Pzc=function(N){var b,S=N.parentNode;if(S&&S.nodeType!=11)if(N.removeNode)N.removeNode(!1);else{for(;b=N.firstChild;)S.insertBefore(b,N);_.Zg(N)}};
_.yo=function(N){return N.children!=void 0?N.children:Array.prototype.filter.call(N.childNodes,function(b){return b.nodeType==1})};
_.s_Z=function(N){return N.nextElementSibling!==void 0?N.nextElementSibling:_.HzV(N.nextSibling,!0)};
_.HzV=function(N,b){for(;N&&N.nodeType!=1;)N=b?N.nextSibling:N.previousSibling;return N};
_.Gx=function(N){return _.D_(N)&&N.nodeType==1};
_.Sj=function(N,b){if(!N||!b)return!1;if(N.contains&&b.nodeType==1)return N==b||N.contains(b);if(typeof N.compareDocumentPosition!="undefined")return N==b||!!(N.compareDocumentPosition(b)&16);for(;b&&N!=b;)b=b.parentNode;return b==N};
OzV=function(N,b){if(N==b)return 0;if(N.compareDocumentPosition)return N.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in N||N.parentNode&&"sourceIndex"in N.parentNode){var S=N.nodeType==1,P=b.nodeType==1;if(S&&P)return N.sourceIndex-b.sourceIndex;var H=N.parentNode,K=b.parentNode;return H==K?K09(N,b):!S&&_.Sj(H,b)?-1*voz(N,b):!P&&_.Sj(K,N)?voz(b,N):(S?N.sourceIndex:H.sourceIndex)-(P?b.sourceIndex:K.sourceIndex)}P=_.hh(N);S=P.createRange();S.selectNode(N);S.collapse(!0);N=P.createRange();N.selectNode(b);
N.collapse(!0);return S.compareBoundaryPoints(_.Ps.Range.START_TO_END,N)};
voz=function(N,b){var S=N.parentNode;if(S==b)return-1;for(;b.parentNode!=S;)b=b.parentNode;return K09(b,N)};
K09=function(N,b){for(;b=b.previousSibling;)if(b==N)return-1;return 1};
Czk=function(N){var b,S=arguments.length;if(!S)return null;if(S==1)return arguments[0];var P=[],H=Infinity;for(b=0;b<S;b++){for(var K=[],C=arguments[b];C;)K.unshift(C),C=C.parentNode;P.push(K);H=Math.min(H,K.length)}K=null;for(b=0;b<H;b++){C=P[0][b];for(var G=1;G<S;G++)if(C!=P[G][b])return K;K=C}return K};
_.hh=function(N){return N.nodeType==9?N:N.ownerDocument||N.document};
Gnd=function(N){return N.contentDocument||N.contentWindow.document};
_.IS=function(N,b){if("textContent"in N)N.textContent=b;else if(N.nodeType==3)N.data=String(b);else if(N.firstChild&&N.firstChild.nodeType==3){for(;N.lastChild!=N.firstChild;)N.removeChild(N.lastChild);N.firstChild.data=String(b)}else _.E7(N),N.appendChild(_.hh(N).createTextNode(String(b)))};
rhO={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};chV={IMG:" ",BR:"\n"};TGf=function(N){var b;N.tagName=="A"&&N.hasAttribute("href")||N.tagName=="INPUT"||N.tagName=="TEXTAREA"||N.tagName=="SELECT"||N.tagName=="BUTTON"?b=!N.disabled&&(!N.hasAttribute("tabindex")||a2Z(N)):b=N.hasAttribute("tabindex")&&a2Z(N);return b};
a2Z=function(N){N=N.tabIndex;return typeof N==="number"&&N>=0&&N<32768};
W0l=function(N){var b=[];RUV(N,b,!0);N=b.join("");N=N.replace(/ \xAD /g," ").replace(/\xAD/g,"");N=N.replace(/\u200B/g,"");N=N.replace(/ +/g," ");N!=" "&&(N=N.replace(/^\s*/,""));return N};
no9=function(N){var b=[];RUV(N,b,!1);return b.join("")};
RUV=function(N,b,S){if(!(N.nodeName in rhO))if(N.nodeType==3)S?b.push(String(N.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(N.nodeValue);else if(N.nodeName in chV)b.push(chV[N.nodeName]);else for(N=N.firstChild;N;)RUV(N,b,S),N=N.nextSibling};
_.dzV=function(N,b,S){if(!b&&!S)return null;var P=b?String(b).toUpperCase():null;return _.wY(N,function(H){return(!P||H.nodeName==P)&&(!S||typeof H.className==="string"&&_.Z_(H.className.split(/\s+/),S))},!0)};
_.wY=function(N,b,S){N&&!S&&(N=N.parentNode);for(S=0;N;){if(b(N))return N;N=N.parentNode;S++}return null};
U7=function(N){this.JSC$9559_document_=N||_.Ps.document||document};
_.v=U7.prototype;_.v.getElement=function(N){return _.Nb(this.JSC$9559_document_,N)};
_.v.$=U7.prototype.getElement;_.v.getElementsByTagName=function(N,b){return(b||this.JSC$9559_document_).getElementsByTagName(String(N))};
_.v.getElementsByTagNameAndClass=function(N,b,S){return ZA(this.JSC$9559_document_,N,b,S)};
_.v.$$=U7.prototype.getElementsByTagNameAndClass;_.v.setProperties=$tO;_.v.JSC$9561_createDom=function(N,b,S){return qEE(this.JSC$9559_document_,arguments)};
_.v.createElement=function(N){return wMc(this.JSC$9559_document_,N)};
_.v.createTextNode=function(N){return this.JSC$9559_document_.createTextNode(String(N))};
_.v.getWindow=function(){return this.JSC$9559_document_.defaultView};
var jk=function(N){return _.h8O(N.JSC$9559_document_)};
_.v=U7.prototype;_.v.appendChild=function(N,b){N.appendChild(b)};
_.v.append=bz9;_.v.canHaveChildren=XJ;_.v.removeNode=_.Zg;_.v.getChildren=_.yo;_.v.contains=_.Sj;_.v.isFocusable=TGf;_.v=BR.prototype;_.v.getWidth=function(){return this.right-this.left};
_.v.getHeight=function(){return this.bottom-this.top};
_.v.clone=function(){return new BR(this.top,this.right,this.bottom,this.left)};
_.v.contains=function(N){return this&&N?N instanceof BR?N.left>=this.left&&N.right<=this.right&&N.top>=this.top&&N.bottom<=this.bottom:N.x>=this.left&&N.x<=this.right&&N.y>=this.top&&N.y<=this.bottom:!1};
_.v.expand=function(N,b,S,P){_.D_(N)?(this.top-=N.top,this.right+=N.right,this.bottom+=N.bottom,this.left-=N.left):(this.top-=N,this.right+=Number(b),this.bottom+=Number(S),this.left-=Number(P));return this};
_.v.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.v.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.v.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.v.translate=function(N,b){N instanceof _.ek?(this.left+=N.x,this.right+=N.x,this.top+=N.y,this.bottom+=N.y):(this.left+=N,this.right+=N,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};
_.v.scale=function(N,b){b=typeof b==="number"?b:N;this.left*=N;this.right*=N;this.top*=b;this.bottom*=b;return this};var DA=function(N,b,S,P){this.left=N;this.top=b;this.width=S;this.height=P};
_.v=DA.prototype;_.v.clone=function(){return new DA(this.left,this.top,this.width,this.height)};
_.v.boundingRect=function(N){var b=Math.max(this.left+this.width,N.left+N.width),S=Math.max(this.top+this.height,N.top+N.height);this.left=Math.min(this.left,N.left);this.top=Math.min(this.top,N.top);this.width=b-this.left;this.height=S-this.top};
_.v.contains=function(N){return N instanceof _.ek?N.x>=this.left&&N.x<=this.left+this.width&&N.y>=this.top&&N.y<=this.top+this.height:this.left<=N.left&&this.left+this.width>=N.left+N.width&&this.top<=N.top&&this.top+this.height>=N.top+N.height};
_.v.distance=function(N){var b=N.x<this.left?this.left-N.x:Math.max(N.x-(this.left+this.width),0);N=N.y<this.top?this.top-N.y:Math.max(N.y-(this.top+this.height),0);return Math.sqrt(b*b+N*N)};
_.v.getSize=function(){return new _.Jh(this.width,this.height)};
_.v.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.v.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.v.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.v.translate=function(N,b){N instanceof _.ek?(this.left+=N.x,this.top+=N.y):(this.left+=N,typeof b==="number"&&(this.top+=b));return this};
_.v.scale=function(N,b){b=typeof b==="number"?b:N;this.left*=N;this.width*=N;this.top*=b;this.height*=b;return this};var kn9,eO,QOY,gP,F0O,MkO,BYS,LG_,l2z,f2z;_.Vo=function(N,b,S){if(typeof b==="string")(b=_.mz4(N,b))&&(N.style[b]=S);else for(var P in b){S=N;var H=b[P],K=_.mz4(S,P);K&&(S.style[K]=H)}};
kn9={};_.mz4=function(N,b){var S=kn9[b];if(!S){var P=_.av(b);S=P;N.style[P]===void 0&&(P=(_.FG?"Webkit":_.B_?"Moz":null)+IBS(P),N.style[P]!==void 0&&(S=P));kn9[b]=S}return S};
_.GM=function(N,b){var S=_.hh(N);return S.defaultView&&S.defaultView.getComputedStyle&&(N=S.defaultView.getComputedStyle(N,null))?N[b]||N.getPropertyValue(b)||"":""};
_.N8=function(N,b){return _.GM(N,b)||(N.currentStyle?N.currentStyle[b]:null)||N.style&&N.style[b]};
_.TYV=function(N){return _.N8(N,"position")};
eO=function(N,b,S){if(b instanceof _.ek){var P=b.x;b=b.y}else P=b,b=S;N.style.left=gP(P,!1);N.style.top=gP(b,!1)};
QOY=function(N){try{return N.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
_.qz=function(N){var b=_.hh(N),S=new _.ek(0,0);if(N==(b?_.hh(b):document).documentElement)return S;N=QOY(N);b=jk(zn(b));S.x=N.left+b.x;S.y=N.top+b.y;return S};
_.tkl=function(N,b,S){if(b instanceof _.Jh)S=b.height,b=b.width;else if(S==void 0)throw Error("oa");N.style.width=gP(b,!0);N.style.height=gP(S,!0)};
gP=function(N,b){typeof N=="number"&&(N=(b?Math.round(N):N)+"px");return N};
F0O=function(N){return MkO(N)};
MkO=function(N){var b=BYS;if(_.N8(N,"display")!="none")return b(N);var S=N.style,P=S.display,H=S.visibility,K=S.position;S.visibility="hidden";S.position="absolute";S.display="inline";N=b(N);S.display=P;S.position=K;S.visibility=H;return N};
BYS=function(N){var b=N.offsetWidth,S=N.offsetHeight,P=_.FG&&!b&&!S;return(b===void 0||P)&&N.getBoundingClientRect?(N=QOY(N),new _.Jh(N.right-N.left,N.bottom-N.top)):new _.Jh(b,S)};
LG_=function(N){var b=_.qz(N);N=MkO(N);return new DA(b.x,b.y,N.width,N.height)};
l2z=function(N,b){N=N.style;"opacity"in N?N.opacity=b:"MozOpacity"in N?N.MozOpacity=b:"filter"in N&&(N.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};
_.OB=function(N,b){N.style.display=b?"":"none"};
_.L0V=function(N){return"rtl"==_.N8(N,"direction")};
f2z=function(N){var b=_.GM(N,"marginLeft"),S=_.GM(N,"marginRight"),P=_.GM(N,"marginTop");N=_.GM(N,"marginBottom");return new BR(parseFloat(P),parseFloat(S),parseFloat(N),parseFloat(b))};
_.uKV=function(N){var b=_.GM(N,"borderLeftWidth"),S=_.GM(N,"borderRightWidth"),P=_.GM(N,"borderTopWidth");N=_.GM(N,"borderBottomWidth");return new BR(parseFloat(P),parseFloat(S),parseFloat(N),parseFloat(b))};var $v=function(N){this.context=N};
$v.prototype.isSupported=function(N){return(N==null?0:N.attributionEnabled)||(N==null?void 0:N.beaconMethod)==="POST"||(N==null?0:N.customHeaders)||(N==null?0:N.customBody)||(N==null?0:N.keepAlive)?!1:!fL(this.context)};
$v.prototype.ping=function(){var N=this;return Av(_.$I.apply(0,arguments).map(function(b){try{var S=N.context.global,P=!1;P=P===void 0?!1:P;S.google_image_requests||(S.google_image_requests=[]);var H=pME("IMG",S.document);P&&(H.attributionSrc="");H.src=b;S.google_image_requests.push(H);return!0}catch(K){return!1}}).every(function(b){return b}))};
$v.prototype.pingWithHeadersAndBody=function(N,b,S){this.ping.apply(this,_.IX(_.$I.apply(3,arguments)))};var Q_l=function(N){this.context=N};
Q_l.prototype.isSupported=function(N){return xz9&&!fL(this.context)&&scu(this.context)!==void 0&&!(N==null?0:N.attributionEnabled)&&(N==null?void 0:N.beaconMethod)!=="POST"&&!(N==null?0:N.customHeaders)&&!(N==null?0:N.customBody)};
Q_l.prototype.makeBeacon=function(N,b){if(!this.isSupported(b))throw new FJ;return new h6(this.context,N)};
var xz9=!1,h6=function(N,b){this.context=N;this.JSC$9580_urlWithoutToken=b;N=scu(this.context);if(N===void 0)throw Error();this.wrappedBeacon=new N(ooE(this),{})},ooE=function(N){N=N.JSC$9580_urlWithoutToken;
return(N.slice(-1)[0]==="&"?N:N+"&")+"pbapi=1"};
h6.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
h6.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
h6.prototype.setHeader=function(){};
_.d0.Object.defineProperties(h6.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9580_urlWithoutToken},
set:function(N){this.JSC$9580_urlWithoutToken=N;this.wrappedBeacon.setURL(ooE(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(N){if(N!=="GET")throw new FJ;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var izc=function(N){this.context=N};
izc.prototype.isSupported=function(N){if((N==null?0:N.attributionEnabled)||(N==null?void 0:N.beaconMethod)==="GET"||(N==null?0:N.customHeaders)||(N==null?0:N.customBody)||(N==null?0:N.keepAlive))return!1;var b;return!fL(this.context)&&((b=this.context.global.navigator)==null?void 0:b.sendBeacon)!==void 0};
izc.prototype.ping=function(){var N=this;return Av(_.$I.apply(0,arguments).map(function(b){var S;return(S=N.context.global.navigator)==null?void 0:S.sendBeacon(b)}).every(function(b){return b}))};
izc.prototype.pingWithHeadersAndBody=function(N,b,S){this.ping.apply(this,_.IX(_.$I.apply(3,arguments)))};var o_=function(N){this.value=N},rj=function(N,b){return Av(N.value).pipe(uz(b))},ac=new o_(!1),pAa=new o_(!0);var Nf=function(N){this.value=N;this.releasedSubject=new Lz};
Nf.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.d0.Object.defineProperties(Nf.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9593_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var mf9=["FRAME","IMG","IFRAME"],cgf=/^[01](px)?$/,dfO=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},nTe=function(){var N=new dfO;
N.crossDomainLoadedDefault=!0;N.pendingImagesBlockLoad=!0;return N};var Jh9=function(N,b){var S=lgo(N);if(S)if(S.onCreativeLoad)S.onCreativeLoad(b);else{var P=b?[b]:[],H=function(K){for(var C=0;C<P.length;++C)try{P[C](1,K)}catch(G){}P={push:function(G){G(1,K)}}};
S.onCreativeLoad=function(K){P.push(K)};
S.setAttribute("data-creative-load-listener","");S.addEventListener("creativeLoad",function(K){H(K.detail)});
_.Ps.addEventListener("message",function(K){Bjp(S,H,K)})}};var qH=function(N,b){var S=this;this.global=N;this.parentContext=b;this.JSC$9604_onVisibilityChange=this.document?qt(Av(!0),eW(this.document,"visibilitychange")).pipe(Sk(this.parentContext.performanceMonitor,748),y1(function(){return S.getVisibilityState()}),vR()):Av("visible");
this.document?eW(this.document,"DOMContentLoaded").pipe(Sk(this.parentContext.performanceMonitor,739),Kz(1)):Av(G6O("DOMContentLoaded"))},EU9=function(N){return N.document!==null&&N.document.visibilityState!==void 0};
qH.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
qH.prototype.querySelector=function(N){return this.document?this.document.querySelector(N):null};
qH.prototype.querySelectorAll=function(N){return this.document?_.pa(this.document.querySelectorAll(N)):[]};
qH.prototype.elementFromPoint=function(N,b){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;N=this.document.elementFromPoint(N,b);return N===null?null:new Nf(N)};
var Quu=function(N,b,S){S=S===void 0?!1:S;if(b.ref===void 0||!N.document)return Av(b).pipe(Sk(N.parentContext.performanceMonitor,749));var P=new cR(1),H=function(){P.next(b)};
S||Jh9(b.ref,H);k6e(b.ref,H);return P.pipe(Sk(N.parentContext.performanceMonitor,749),Kz(1))};
_.d0.Object.defineProperties(qH.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return pRa(this.global,"document")?this.global.document||null:null}}});var LAs=_.$E(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),fgs=_.$E(["./reach_worklet.js"]),ucU=_.$E(["./reach_worklet.js"]),UzE=_.$E(["./reach_worklet.html"]),ZzS=_.$E(["./reach_worklet.js"]),j_9=_.$E(["./reach_worklet.js"]);_.Mz(UzE);_.Mz(ZzS);_.Mz(j_9);var KT={left:0,top:0,width:0,height:0};var zUN,Ahz,XRc,EoS,CE,YnO,yhV,I2k,Lsf,f5Y,goN,eU9;zUN=function(N,b,S,P,H,K,C){var G="";N&&(G+=N+":");S&&(G+="//",b&&(G+=b+"@"),G+=S,P&&(G+=":"+P));H&&(G+=H);K&&(G+="?"+K);C&&(G+="#"+C);return G};
Ahz=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.sl=function(N){return N.match(Ahz)};
_.xE=function(N,b){return N?b?decodeURI(N):decodeURIComponent(N):N};
XRc=function(N){N=_.sl(N)[1]||null;!N&&_.Ps.self&&_.Ps.self.location&&(N=_.Ps.self.location.protocol.slice(0,-1));return N?N.toLowerCase():""};
_.Ol=function(N){return _.xE(_.sl(N)[3]||null,!0)};
_.Bq=function(N){return _.xE(_.sl(N)[5]||null,!0)};
_.q4I=function(N){var b=N.indexOf("#");return b<0?null:N.slice(b+1)};
EoS=function(N){N=_.sl(N);return zUN(N[1],N[2],N[3],N[4])};
_.pR9=function(N){N=_.sl(N);return zUN(N[1],null,N[3],N[4])};
_.XV=function(N){N=_.sl(N);return zUN(null,null,null,null,N[5],N[6],N[7])};
_.gp=function(N){var b=N.indexOf("#");return b<0?N:N.slice(0,b)};
CE=function(N,b){N=_.sl(N);b=_.sl(b);return N[3]==b[3]&&N[1]==b[1]&&N[4]==b[4]};
YnO=function(N,b){if(N){N=N.split("&");for(var S=0;S<N.length;S++){var P=N[S].indexOf("="),H=null;if(P>=0){var K=N[S].substring(0,P);H=N[S].substring(P+1)}else K=N[S];b(K,H?r7(H):"")}}};
yhV=function(N){var b=N.indexOf("#");b<0&&(b=N.length);var S=N.indexOf("?");if(S<0||S>b){S=b;var P=""}else P=N.substring(S+1,b);return[N.slice(0,S),P,N.slice(b)]};
I2k=function(N,b){return b?N?N+"&"+b:b:N};
_.Dzl=function(N,b){if(!b)return N;N=yhV(N);N[1]=I2k(N[1],b);return N[0]+(N[1]?"?"+N[1]:"")+N[2]};
_.Vkd=function(N,b,S){if(Array.isArray(b))for(var P=0;P<b.length;P++)_.Vkd(N,String(b[P]),S);else b!=null&&S.push(N+(b===""?"":"="+_.w8(b)))};
_.LE=function(N){var b=[],S;for(S in N)_.Vkd(S,N[S],b);return b.join("&")};
_.Hq=function(N,b){b=_.LE(b);return _.Dzl(N,b)};
_.wP=function(N,b,S){S=S!=null?"="+_.w8(S):"";return _.Dzl(N,b+S)};
Lsf=function(N,b,S,P){for(var H=S.length;(b=N.indexOf(S,b))>=0&&b<P;){var K=N.charCodeAt(b-1);if(K==38||K==63)if(K=N.charCodeAt(b+H),!K||K==61||K==38||K==35)return b;b+=H+1}return-1};
f5Y=/#|$/;_.PW=function(N,b){var S=N.search(f5Y),P=Lsf(N,0,b,S);if(P<0)return null;var H=N.indexOf("&",P);if(H<0||H>S)H=S;P+=b.length+1;return r7(N.slice(P,H!==-1?H:0))};
goN=/[?&]($|#)/;_.$y=function(N,b){for(var S=N.search(f5Y),P=0,H,K=[];(H=Lsf(N,P,b,S))>=0;)K.push(N.substring(P,H)),P=Math.min(N.indexOf("&",H)+1||S,S);K.push(N.slice(P));return K.join("").replace(goN,"$1")};
_.Nc=function(N,b,S){return _.wP(_.$y(N,b),b,S)};
eU9=function(N){var b=yhV(window.location.href),S=b[1],P=[];S&&S.split("&").forEach(function(H){var K=H.indexOf("=");K=K>=0?H.slice(0,K):H;N.hasOwnProperty(K)||P.push(H)});
b[1]=I2k(P.join("&"),_.LE(N));return b[0]+(b[1]?"?"+b[1]:"")+b[2]};var eKE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(eKE,_.rc);var gTU=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(gTU,_.rc);var pvL=function(N,b){return _.En(N,2,b)},VGf=function(N,b){return _.En(N,3,b)};
gTU.prototype.getModel=function(){return _.xp(this,4)};
var yge=function(N,b){return _.En(N,4,b)},ETu=function(N,b){return _.En(N,5,b)},Df9=function(N,b){return _.En(N,9,b)},XvE=function(N,b){return Be(N,10,b)},AgU=function(N,b){return _.lw(N,11,b)},Y5s=function(N,b){return _.En(N,1,b)},Ig_=function(N,b){return _.lw(N,7,b)};var jcb="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var cv=function(N,b,S,P){N=N===void 0?window:N;b=b===void 0?null:b;S=S===void 0?new rSN:S;P=P===void 0?Qco():P;KRb.call(this);var H=this;this.global=N;this.debugChannel=b;this.performanceMonitor=S;this.onPageHide=rhE(function(){return eW(H.global,"pagehide")}).pipe(Sk(this.performanceMonitor,941));
this.onLoad=rhE(function(){return eW(H.global,"load")}).pipe(Sk(this.performanceMonitor,738),Kz(1));
this.onResize=rhE(function(){return eW(H.global,"resize")}).pipe(Sk(this.performanceMonitor,741));
this.onMessage=rhE(function(){return eW(H.global,"message")}).pipe(Sk(this.performanceMonitor,740));
this.document=new qH(this.global,this);this.timeProvider=new cvN(new R8b(this.intrinsicFunctionNamespace,this.performanceMonitor),new adl(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new C4d(new nw9(this),new Q_l(this),new Br(this,new kJS(this)),new Br(this,new izc(this)),new Br(this,new $v(this)))};
_.F(cv,KRb);cv.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(N){return N}};
var fL=function(N){var b=N.global;return!!N.global.HTMLFencedFrameElement&&!!b.fence&&typeof b.fence.reportEvent==="function"};
_.v=cv.prototype;_.v.reportFencedFrameEvent=function(N){fL(this)&&this.global.fence.reportEvent(N)};
_.v.getOnBackgrounded=function(){return this.onPageHide.pipe(Sk(this.performanceMonitor,942),uz(this.queue),y1(function(){}))};
_.v.postMessage=function(N,b,S){S=S===void 0?[]:S;this.global.postMessage(N,b,S)};
_.v.getWidth=function(){return YnE(this.global)?this.global.width:0};
_.v.getHeight=function(){return YnE(this.global)?this.global.height:0};
_.v.isMobile=function(){return MWd()||FRS()};
var bw=function(N,b){try{var S=Jge(b,N.global,N.isMobile());return{left:S.left,top:S.top,width:S.getWidth(),height:S.getHeight()}}catch(P){return KT}};
cv.prototype.validate=function(){var N=this.beaconFactory.isSupported()||fL(this);return this.global&&this.timeProvider.available()&&N};
var vTs=function(N){return(N=hKI(N.global))?fg(N):null};
_.d0.Object.defineProperties(cv.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(N){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(N){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!YnE(this.global.top)}},
inIframe:{configurable:!0,enumerable:!0,get:function(){return this.inCrossDomainIframe||this.global.top!==this.global}},
scrollY:{configurable:!0,enumerable:!0,get:function(){return this.global.scrollY}},
MutationObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.MutationObserver}},
ResizeObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.ResizeObserver}}});_.$zZ=!_.rV&&!_.mLO();var Y29=function(N){return N};var IHb=function(N){return N.pipe(w$(function(b){var S=b.endOfSessionReason;var P;return((P=b.viewable)==null?void 0:P.extrapolateToNow().value)||S!=void 0}),Kz(1),HR())};var HQe=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},sOE=function(N){var b=N.sequenceNumber.toString(10).padStart(2,"0");
b=""+N.startTime+b;N.sequenceNumber<99&&N.sequenceNumber++;return b};var XAE=Mt(m0(function(N){return N.endOfSessionReason===void 0}),y1(function(N){return Object.assign({},N,{timestamps:Yo(N)})}),w$(function(N){var b=N.viewable;
N=N.timestamps;var S;return(S=b==null?void 0:b.extrapolateUsingTimestampMap(N).value)!=null?S:!1}),y1(function(N){var b=N.beaconFactory;
var S=N.timestampedExposureHistory;var P=N.timeOnScreen;var H=N.binaryContext;N=N.timestamps;if(b===void 0||S===void 0||P===void 0||H===void 0)return!1;if(P.extrapolateUsingTimestampMap(N).value.every(function(K){return K>=0}))return!0;
S=S.map(function(K){return K.timestamp+":"+K.value}).join(",");
P=Kbe({bin:H,tos:P},N);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+P+("&eh="+S)).sendNow();return!0}),m0(function(N){return!N}),HR());var OQU=function(N){return{id:N.pingId,mcvt:N.maxConsecutiveViewTime,p:N.creativePosition,asp:N.adSpeedPosition,tm:N.totalMeasurementTime,tu:N.totalUnviewedTime,mtos:N.maxTimeOnScreen,tos:N.timeOnScreen,v:N.binaryVersion,bin:N.binaryContext,avms:N.measurementStrategy,bs:N.browserSize,mc:N.maximumExposure,"if":N.crossDomainIframeState,vu:N.delayedImpressionJsState,app:N.inApp,mse:N.mraidError,mtop:N.mraidSituation,itpl:N.injectedTemplateId,adk:N.adKey,exk:N.awbidKey,rs:N.requestSource,la:N.isLargeAd,
cr:N.isContentRecommendationAd,uach:N.userAgentClientHints,vs:N.viewState,r:N.reasonCode,pay:N.hasCpmavUrl,co:N.clientPingOrderCounter,rst:N.adRenderStartTime,rpt:N.adRenderPeriodTime,isd:N.initialScrollDepth,lsd:N.loadedScrollDepth,context:N.errorContext,msg:N.errorMessage,stack:N.errorStack,name:N.errorName,ec:N.hasElementChanged,sfr:N.strategyFailureReasons,met:N.creativeSearchResult,wmsd:N.webMeasurementStartDiagnostic,pv:N.pageVisible,epv:N.eosPageVisible,pbe:N.inStatefulBeaconExperiment,fle:N.inFetchLaterBeaconExperiment,
vae:N.inViewableAttributionExperiment,spb:N.supportsPendingBeacon,sfl:N.supportsFetchLater,ffslot:N.isFencedFrameSlotTurtlex,reach:N.sharedStorageReachMode,io2:N.v2VisibilityBitVector,rxdbg:N.rxDebugger,omida:N.omidAppId,omidp:N.omidPartner,omidpv:N.omidPartnerVersion,omidor:N.omidOcclusionReasons,omidv:N.omidVersion,omids:N.omidSessionType,omidam:N.omidAccessMode,omidct:N.omidCreativeType,omidia:N.omidInApp,omiddc:N.omidDeviceCategory,omidlat:N.omidLastActivity,omiddit:N.omidDeviceIdleTime,qid:N.errorEscapedQueryId}};var ylb=function(N){var b=[];return N.pipe(y1(function(S){var P=S.beaconFactory,H=S.fetchBeaconFactory,K=S.timeOnScreen,C=S.timeOnScreenUrlPrefixes,G=S.payloadMapper,a=S.timeOnScreenPingId,R=S.timeOnScreenReason,n=S.urlSerializer,d=S.viewable,m=S.hasImpressionFired,k=S.inStatefulBeaconExperiment,M=S.supportsPendingBeacon,l=S.supportsFetchLater,u=S.turtlexReportEventData;if(!S.geometryMeasurable||!m||S.maxTimeOnScreen===void 0||K===void 0||C===void 0||G===void 0||a===void 0||n===void 0||P===void 0)return!1;
if(S.isTurtlex){if(R===void 0)return!1;C=S.reportFencedFrameEvent;if(!C)return!1;C({eventType:"active-view-time-on-screen",eventData:u!=null?u:"",destination:["buyer"]});return!0}if(!(k||l||R))return!1;u=Yo(S);var J;d=(J=d==null?void 0:d.extrapolateUsingTimestampMap(u).value)!=null?J:!1;J=n(Object.assign({},S,{pingId:a,viewState:d?4:3,reasonCode:R!=null?R:"u",payloadMapper:G,urlPrefixes:C}),u);if(k){for(;b.length>C.length;)S=void 0,(S=b.shift())==null||S.deactivate();J.forEach(function(D,Y){Y>=b.length?
b.push(P.makeBeacon(D)):b[Y].url=D});
return M&&H&&R!==void 0?(J.forEach(function(D){H.makeBeacon(D).sendNow()}),!0):R!==void 0}if(M&&H&&R!==void 0)return J.forEach(function(D){H.makeBeacon(D).sendNow()}),!0;
if(l&&H){for(;b.length>C.length;)M=void 0,(M=b.shift())==null||M.deactivate();var Z=n(Object.assign({},S,{pingId:a,viewState:d?4:3,reasonCode:R!=null?R:"u",payloadMapper:G,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),u)[0];J.forEach(function(D,Y){Y>=b.length?b.push(P.makeBeacon(Z,{endOfSession:!0})):b[Y].url=Z});
return R!==void 0?(J.forEach(function(D){H.makeBeacon(D).sendNow()}),!0):R!==void 0}return R!==void 0?(J.forEach(function(D){P.makeBeacon(D).sendNow()}),!0):!1}),m0(function(S){return!S}),HR())};var DBL=Mt(w$(function(N){return N.immediateUrlPrefixes!==void 0&&N.payloadMapper!==void 0&&N.urlSerializer!==void 0&&N.inferredPingId!==void 0&&N.beaconFactory!==void 0}),w$(function(N){return nl_(N)!==null}),Ro9(function(N){return N.activeViewUnmeasurableEvent},function(N){return N.emit}),y1(function(N){if(N.isTurtlex){var b=N.reportFencedFrameEvent;
if(b){var S;b({eventType:"active-view-unmeasurable",eventData:(S=N.turtlexReportEventData)!=null?S:"",destination:["buyer"]})}}else{S=void 0;var P=nl_(N);if(P==="x"){var H,K=(H=N.geometricMeasurementErrors)!=null?H:N.contextValidationErrors;K&&(b=K.stack,S=K.message)}N.urlSerializer(Object.assign({},N,{urlPrefixes:N.immediateUrlPrefixes,payloadMapper:N.payloadMapper,pingId:N.inferredPingId,viewState:2,reasonCode:P,errorMessage:S,errorStack:b}),Yo(N)).forEach(function(C){N.beaconFactory.makeBeacon(C).sendNow()})}}),
Kz(1),HR());var d8b=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Als=Mt(w$(function(N){return N.payloadMapper!==void 0&&N.immediateUrlPrefixes!==void 0&&N.urlSerializer!==void 0&&N.inferredPingId!==void 0&&N.beaconFactory!==void 0}),y1(function(N){return Object.assign({},N,{timestamps:Yo(N)})}),w$(function(N){var b=N.viewable;
var S=N.hasImpressionFired;N=N.timestamps;var P;return!!S&&((P=b==null?void 0:b.extrapolateUsingTimestampMap(N).value)!=null?P:!1)}),Ro9(function(N){return N.activeViewViewableEvent},function(N){return N.emit}),y1(function(N){var b=N.beaconFactory,S=N.turtlexReportEventData;
if(N.isTurtlex){var P=N.reportFencedFrameEvent;if(!P)return!1;P({eventType:"active-view-viewable",eventData:S!=null?S:"",destination:["buyer"]});return!0}S=N.urlSerializer(Object.assign({},N,{urlPrefixes:N.immediateUrlPrefixes,payloadMapper:N.payloadMapper,pingId:N.inferredPingId,viewState:4,reasonCode:"v"}),N.timestamps);(P=N.cpmavUrls)&&P.length>0&&N.viewUrlSerializer&&N.viewUrlSerializer(P,N).forEach(function(H){b.makeBeacon(H).sendNow()});
(P=N.viewableRelayUrls)&&P.length>0&&N.viewUrlSerializer&&N.viewUrlSerializer(P,N).forEach(function(H){b.makeBeacon(H).sendNow()});
S.forEach(function(H){b.makeBeacon(H,{attributionEnabled:N.isViewableAttributionEnabled}).sendNow()});
return!0}),m0(function(N){return!N}),HR());var OMu=y1(function(N){return[N.value.topWindowViewportExternalGeometry.width,N.value.topWindowViewportExternalGeometry.height]});var SG=function(N,b){this.callback=N;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},yeb=function(N,b){b?N.intersectionObserverV2||(b=Object.assign({},N.options,{delay:100,
trackVisibility:!0}),N.intersectionObserverV2=new IntersectionObserver(N.callback,b)):N.intersectionObserverV1||(N.intersectionObserverV1=new IntersectionObserver(N.callback,N.options))},hUS=function(N,b){N=b?N.intersectionObserverV2:N.intersectionObserverV1;
if(!N)throw new vwO;return N};
SG.prototype.observe=function(N,b){hUS(this,N).observe(b)};
SG.prototype.unobserve=function(N,b){hUS(this,N).unobserve(b)};
SG.prototype.disconnect=function(N){hUS(this,N).disconnect()};
SG.prototype.takeRecords=function(N){return hUS(this,N).takeRecords()};var ole={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:KT,topWindowViewportExternalGeometry:KT,measurementRequests:new Lz,elementGeometrySourceName:"ns",elementGeometry:KT,intersectionGeometry:KT,viewportLocalAppOffset:{x:0,y:0}};var hoo=vv(Mt(y1(function(N){var b;return(b=N.exposureOverride)!=null?b:D8O(N)}),y1(function(N){return isFinite(N)?N:0}))),HMa=vv(Mt(y1(function(N){var b;
return(b=N.exposureOverride)!=null?b:D8O(N)}),y1(function(N){return isFinite(N)?N:-1})));var NO=function(N,b){this.a=N;this.b=b;if(N.clock.timeline!==b.clock.timeline)throw Error();};
NO.prototype.equivalentTo=function(N){return N instanceof NO?this.a.equivalentTo(N.a)&&this.b.equivalentTo(N.b):!1};
NO.prototype.extrapolateToTime=function(N){var b=this.a.extrapolateToTime(N).value,S=this.b.extrapolateToTime(N).value;return{timestamp:N,value:[b,S]}};
_.d0.Object.defineProperties(NO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var N=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),b=this.a.lastMeasurement.timestamp.equals(N)?this.a.lastMeasurement.value:this.a.extrapolateToTime(N).value,S=this.b.lastMeasurement.timestamp.equals(N)?this.b.lastMeasurement.value:this.b.extrapolateToTime(N).value;return{timestamp:N,value:[b,S]}}}});var bW=function(N,b){this.input=N;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
bW.prototype.equivalentTo=function(N){return N instanceof bW?this.input.equivalentTo(N.input)&&this.mapFunction===N.mapFunction:!1};
bW.prototype.extrapolateToTime=function(N){N=this.input.extrapolateToTime(N);return{timestamp:N.timestamp,value:this.mapFunction(N.value)}};
_.d0.Object.defineProperties(bW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var SA=function(){};
SA.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
SA.prototype.extrapolateUsingTimestampMap=function(N){var b=this.clock.timeline,S,P=(S=N.get(b))!=null?S:this.clock.now();N.set(b,P);return this.extrapolateToTime(P)};
SA.prototype.map=function(N){return new qnV(this,N)};
SA.prototype.joinWith=function(N){return new wRO(this,N)};
var wRO=function(){NO.apply(this,arguments);this.map=SA.prototype.map;this.joinWith=SA.prototype.joinWith;this.extrapolateToNow=SA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SA.prototype.extrapolateUsingTimestampMap};
_.F(wRO,NO);var qnV=function(){bW.apply(this,arguments);this.map=SA.prototype.map;this.joinWith=SA.prototype.joinWith;this.extrapolateToNow=SA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SA.prototype.extrapolateUsingTimestampMap};
_.F(qnV,bW);var CT=function(N,b){this.lastMeasurement=b;this.extrapolateToNow=SA.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SA.prototype.extrapolateUsingTimestampMap;this.map=SA.prototype.map;this.joinWith=SA.prototype.joinWith;this.clock=N};
CT.prototype.equivalentTo=function(N){return N.active};
CT.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.d0.Object.defineProperties(CT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var vU_=y1(function(N){if(N.value.viewportGeometrySourceName==="omid"){if(N.value.elementGeometrySourceName==="nio")return"omio";if(N.value.elementGeometrySourceName==="geo")return"omgeo"}return N.value.elementGeometrySourceName==="geo"||N.value.elementGeometrySourceName==="nio"?N.value.viewportGeometrySourceName:N.value.elementGeometrySourceName});var glf=Mt(w$(function(N){return!isNaN(N)}),WR(function(N,b){return isNaN(N)?b:Math.min(N,b)},NaN),vR());var qBb=vv(Mt(y1(function(N){return N.intersectionGeometry.width*N.intersectionGeometry.height/(N.exposedViewportLocalGeometry.width*N.exposedViewportLocalGeometry.height)}),y1(function(N){return isFinite(N)?Math.min(1,N):0})));var Kop=Mt(vv(y1(function(N){N=N.exposureOverride?N.elementGeometry.width*N.elementGeometry.height*N.exposureOverride/(N.topWindowViewportExternalGeometry.width*N.topWindowViewportExternalGeometry.height):N.intersectionGeometry.width*N.intersectionGeometry.height/(N.topWindowViewportExternalGeometry.width*N.topWindowViewportExternalGeometry.height);return isFinite(N)?N:0})));var rlO=function(N,b){var S=this;this.timeProvider=N;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(vR()).subscribe(function(P){aHp(S);S.measurementRequestObserver=P})},RbY=function(N,b){aHp(N);
N.lastMeasurementRequest=N.timeProvider.setTimeout(function(){var S;return void((S=N.measurementRequestObserver)==null?void 0:S.next())},b)},aHp=function(N){N.lastMeasurementRequest!==null&&N.timeProvider.clearTimeout(N.lastMeasurementRequest);
N.lastMeasurementRequest=null};
rlO.prototype.dispose=function(){aHp(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Nj9=function(){};var ZMu=function(N,b){this.context=N;this.strategies=b};
_.F(ZMu,Nj9);ZMu.prototype.buildGeometrySource=function(N,b){var S=this.strategies.map(function(K){return K.buildGeometrySource(N,b)}),P=kjE(S.map(function(K){return K.geometrySource})),H=P.capturedErrors.pipe(bTd());
return{geometrySource:P.chain.pipe(uz(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:H,strategyErrors:P.capturedErrors}].concat(_.IX(S.map(function(K){return K.additionalOutputs}))))}};
var bTd=function(){return WR(function(N,b){b instanceof I_?N.push(b.measurementStrategyFailureReason):N.push(-1);return N},[])};var zbI=function(N,b){this.context=N;this.poller=b};
_.F(zbI,Nj9);zbI.prototype.buildGeometrySource=function(N,b){var S=T8f(M_e(this.context,this.poller),iQO(this.context,b.requestSource));return{geometrySource:mBo(N.measurableCreative.pipe(S),b.inApp),additionalOutputs:{}}};var ju9=function(N,b,S){S=S===void 0?Aea(N,b):S;this.context=N;this.intersectionObserverStrategy=S};
_.F(ju9,Nj9);ju9.prototype.buildGeometrySource=function(N,b){var S=this.intersectionObserverStrategy(b.useV2);return{geometrySource:mBo(N.measurableCreative.pipe(S,XWu(this.context)),b.inApp),additionalOutputs:{}}};var S5Z=function(N,b,S){var P=P===void 0?Symbol():P;this.element=N;this.immediateUrls=b;this.timeOnScreenUrls=S;this.symbol=P};var Gj_=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),fHo=Object.freeze([1,.75,Gj_.exposureThreshold,Gj_.largeAdExposureThreshold,0]);var mA9=function(N,b){b=b===void 0?36E5:b;var S=S===void 0?!0:S;this.creatives=new Lz;this.elementsToUnregister=new Lz;this.elementMap=new Map;var P=new cv(window,null);P.beaconFactory=new Br(P,new $v(P));UBo(P,this.creatives,this.elementsToUnregister,N,b,S).subscribe()},tKE=function(N,b,S,P){if(!N.elementMap.has(b)){var H=new Nf(b);
N.elementMap.set(b,H);N.creatives.next(new S5Z(H,S,P))}},TWO=function(N,b){N.elementsToUnregister.next(b);
var S=N.elementMap.get(b);S!==void 0&&(S.release(),N.elementMap.delete(b))};var $IE=function(N){var b=N.url;N=N.uaDataValues;this.JSC$9709_url_=b;this.uaDataValues_=N;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var S=/[?&]([^&=]+)=([^&]*)/g;N=S.exec(b);)this.urlParamValues_[N[1]]=N[2]},hLs=function(N){N=N.uaDataValues_;
if(!N)return"";var b=Rc("uap",N.platform)+Rc("uapv",N.platformVersion)+Rc("uafv",N.uaFullVersion)+Rc("uaa",N.architecture)+Rc("uam",N.model)+Rc("uab",N.bitness);N.fullVersionList&&(b+="&uafvl="+encodeURIComponent(N.fullVersionList.map(function(S){return encodeURIComponent(S.brand)+";"+encodeURIComponent(S.version)}).join("|")));
N.wow64!=null&&(b+="&uaw="+Number(N.wow64));return b.slice(1)};var PwE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(PwE,_.rc);PwE.prototype.getId=function(){return _.xp(this,1)};var P$=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(P$,_.rc);P$.prototype.getSeconds=function(){return uJ(this,1)};
P$.prototype.setSeconds=function(N){return _.So(this,1,R6(N),"0")};_.iF=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(_.iF,_.rc);_.iF.prototype.getSeconds=function(){return uJ(this,1)};
_.iF.prototype.setSeconds=function(N){return _.So(this,1,R6(N),"0")};
_.HTk=function(N){var b=Number(iJ(N,1));N=_.tg(N,2);return new Date(b*1E3+N/1E6)};var H$=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(H$,_.rc);H$.prototype.getUrl=function(){return _.xp(this,1)};
H$.prototype.setUrl=function(N){return _.IJ(this,1,N)};
H$.prototype.getHeight=function(){return _.tg(this,2)};
H$.prototype.getWidth=function(){return _.tg(this,3)};var sr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(sr,_.rc);sr.prototype.getAspectRatio=function(){return Qa(this,1)};
sr.prototype.getDuration=function(){return _.k0(this,P$,2)};var scz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(scz,_.rc);var KAS=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(KAS,_.rc);var vTk=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(vTk,_.rc);var OT4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(OT4,_.rc);var Cw9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Cw9,_.rc);var G6Z=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(G6Z,_.rc);var rg9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(rg9,_.rc);var cgN=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(cgN,_.rc);var agZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(agZ,_.rc);var KF=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(KF,_.rc);var v$=[2,4,5,6,7];var RKd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(RKd,_.rc);var lJ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lJ,_.rc);_.v=lJ.prototype;_.v.getId=function(){return _.k0(this,PwE,1)};
_.v.getName=function(){return _.xp(this,2)};
_.v.setDescription=function(N){return _.IJ(this,3,N)};
_.v.getUrl=function(){return _.xp(this,8)};
_.v.setUrl=function(N){return _.IJ(this,8,N)};
var Or=function(N){return _.kT(N,H$,10,_.T6())};
lJ.prototype.getOwner=function(N){return _.cV9(this,40,N)};
var CF=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(CF,_.rc);_.G5=[0,Va,SaO];_.rC=[0,Va,SaO];var WA4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(WA4,_.rc);var c$=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(c$,_.rc);c$.prototype.getStatus=function(){return _.o9(this,1)};
c$.prototype.removeItem=function(N){return CEO(this,2,N)};var nTd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(nTd,_.rc);nTd.prototype.getName=function(){return _.xp(this,8)};var ad=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ad,_.rc);ad.prototype.getCommand=function(){return _.o9(this,1)};
ad.prototype.getSource=function(){return _.k0(this,nTd,2)};
ad.prototype.setVisible=function(N){return _.lZ(this,5,N)};
ad.prototype.removeItem=function(N){return CEO(this,7,N)};var dfZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(dfZ,_.rc);dfZ.prototype.getCommand=function(){return _.o9(this,1)};
dfZ.prototype.removeItem=function(N){return CEO(this,4,N)};
var mfc=_.ui(dfZ);var Rd=function(N,b,S){S=S===void 0?Error():S;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=N;b+=":";S instanceof Error?(this.message=b+S.message,this.stack=S.stack||""):(this.message=b+String(S),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(Rd,Error);_.E5=function(){this.JSC$9767_disposed_=this.JSC$9767_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.E5.prototype.JSC$9767_disposed_=!1;_.E5.prototype.isDisposed=function(){return this.JSC$9767_disposed_};
_.E5.prototype.dispose=function(){this.JSC$9767_disposed_||(this.JSC$9767_disposed_=!0,this.disposeInternal())};
_.E5.prototype[Symbol.dispose]=function(){this.dispose()};
_.QS=function(N,b){N.addOnDisposeCallback(_.Rm(_.Wv,b))};
_.E5.prototype.addOnDisposeCallback=function(N,b){this.JSC$9767_disposed_?b!==void 0?N.call(b):N():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(N=N.bind(b)),this.onDisposeCallbacks_.push(N))};
_.E5.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var W$=function(N){_.E5.call(this);this.wpc=N};
_.F(W$,_.E5);W$.prototype.bGG=function(){return this.wpc.f()};
W$.prototype.jED=function(N){return this.wpc.c(N)};
W$.prototype.cE=function(N){return this.wpc.m(hbu(N))};
W$.prototype.wik=function(N){return this.wpc.mws(hbu(N))};
var dj=function(N){_.E5.call(this);var b=this;this.vm=N;this.aPw="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.s0O=void 0;this.abQ=this.vm.p;this.u3S=this.zoN.bind(this);this.addOnDisposeCallback(function(){return void k6d(b)})};
_.F(dj,_.E5);var Tjb=function(N){var b;return _.r(function(S){if(S.nextAddress==1){if(!N.vm.wpc)throw new Rd(30,"NWA");return N.a8k?S.return(N.a8k):S.yield(N.vm.wpc(),2)}b=S.yieldResult;N.a8k=new W$(b);return S.return(N.a8k)})};
dj.prototype.snapshot=function(N){return this.vm.s(Object.assign({},N.gW&&{c:N.gW},N.xoQ&&{s:N.xoQ},N.qcA!==void 0&&{p:N.qcA}))};
dj.prototype.zoN=function(N){this.vm.e(N)};
dj.prototype.usQ=function(N,b){return this.vm.c(N,b,!1)};
var k6d=function(N){N.s0O!==void 0&&(N.aPw.forEach(function(b){var S;(S=N.s0O)==null||S.removeEventListener(b,N.u3S)}),N.s0O=void 0)};
dj.prototype.djD=function(){return this.vm.l()};var nF=function(){_.E5.apply(this,arguments);this.xFS=1};
_.F(nF,_.E5);nF.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.xFS++;return this};
nF.prototype.dispose=function(){--this.xFS||_.E5.prototype.dispose.call(this)};var tG9=function(N){this.tSG=N;N.addNewEventMetric("/client_streamz/bg/frs",_.Bv("mk"))};
tG9.prototype.record=function(N,b){this.tSG.record("/client_streamz/bg/frs",N,b)};
var MGc=function(N){this.lMg=N;N.addNewEventMetric("/client_streamz/bg/wrl",_.Bv("mn"),Fc("ac"),Fc("sc"),_.Bv("rk"),_.Bv("mk"))};
MGc.prototype.record=function(N,b,S,P,H,K){this.lMg.record("/client_streamz/bg/wrl",N,b,S,P,H,K)};
var FAd=function(N){this.ouG=N;N.addNewCounter("/client_streamz/bg/ec",_.Bv("en"),_.Bv("mk"))};
FAd.prototype.increment=function(N,b){this.ouG.JSC$10020_incrementCounter("/client_streamz/bg/ec",N,b)};
var Bj9=function(N){this.jjS=N;N.addNewEventMetric("/client_streamz/bg/el",_.Bv("en"),_.Bv("mk"))};
Bj9.prototype.record=function(N,b,S){this.jjS.record("/client_streamz/bg/el",N,b,S)};
var lg4=function(N){this.irg=N;N.addNewCounter("/client_streamz/bg/cec",Fc("ec"),_.Bv("mk"))};
lg4.prototype.increment=function(N,b){this.irg.JSC$10020_incrementCounter("/client_streamz/bg/cec",N,b)};
var LAk=function(N){this.nu7=N;N.addNewCounter("/client_streamz/bg/po/csc",Fc("cs"),_.Bv("mk"))};
LAk.prototype.increment=function(N,b){this.nu7.JSC$10020_incrementCounter("/client_streamz/bg/po/csc",N,b)};
var fgk=function(N){this.fM7=N;N.addNewCounter("/client_streamz/bg/po/ctav",_.Bv("av"),_.Bv("mk"))};
fgk.prototype.increment=function(N,b){this.fM7.JSC$10020_incrementCounter("/client_streamz/bg/po/ctav",N,b)};
var ucb=function(N){this.xQU=N;N.addNewCounter("/client_streamz/bg/po/cwsc",_.Bv("su"),_.Bv("mk"))};
ucb.prototype.increment=function(N,b){this.xQU.JSC$10020_incrementCounter("/client_streamz/bg/po/cwsc",N,b)};var lhI=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lhI,_.rc);var B7o=function(N,b){return _.bi(N,3,b,t9f)};var Qc4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Qc4,_.rc);var xfc=[1,2,3];var oTz=[0,xfc,_.NH,PL9,KJE];var iTE=[0,_.b2,[0,I9,_.DC]];var Jgd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Jgd,_.rc);var Ufk=[1,2,3];var ZT9=[0,Ufk,NE9,eO9,_.SO,iTE];var jcV=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(jcV,_.rc);var zK4=[0,_.b2,oTz,ZT9];var Agb=[0,_.qW];var XvO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(XvO,_.rc);var ETz=[0,_.qW,-1,_.$p];var pvS=[0,_.qW,-1,_.eM,_.$p];var Y5k=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Y5k,_.rc);var ygd=[1,2,3];var Igl=[0,ygd,_.SO,ETz,_.SO,pvS,_.SO,Agb];var Dfc=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Dfc,_.rc);Dfc.prototype.JSC$9840_serializeBinary=whp([0,_.qW,Igl,vQb,_.b2,zK4,HqN,_.s6Z]);var VGN=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(VGN,_.rc);var $fV=function(N){var b=new Dfc;b=_.En(b,1,N.JSC$9956_metricName);var S=gTb(N);b=_.bi(b,3,S,_.TE);S=[];for(var P=[],H=_.O(N.cellMap.keys()),K=H.next();!K.done;K=H.next())P.push(K.value.split(","));for(H=0;H<P.length;H++){K=P[H];for(var C=N.cellType,G=N.getCells(K)||[],a=[],R=0;R<G.length;R++){var n=G[R],d=n&&n.cellValue;n=new Jgd;switch(C){case 3:d=Number(d);Number.isFinite(d)&&QE(n,1,Ufk,R6(d));break;case 2:QE(n,2,Ufk,_.hV(Number(d)))}a.push(n)}C=a;for(G=0;G<C.length;G++){a=C[G];R=new jcV;a=_.xI(R,
2,a);R=[];n=eKO(N);for(d=0;d<n.length;d++){var m=n[d],k=K[d],M=new Qc4;switch(m){case 3:QE(M,1,xfc,M_(String(k)));break;case 2:m=Number(k);Number.isFinite(m)&&QE(M,2,xfc,_.Cq(m));break;case 1:QE(M,3,xfc,mSL(k==="true"))}R.push(M)}Be(a,1,R);S.push(a)}}Be(b,4,S);return b};var hK9=function(N){if(!N)return"";if(/^about:(?:blank|srcdoc)$/.test(N))return window.origin||"";N.indexOf("blob:")===0&&(N=N.substring(5));N=N.split("#")[0].split("?")[0];N=N.toLowerCase();N.indexOf("//")==0&&(N=window.location.protocol+N);/^[\w\-]*:\/\//.test(N)||(N=window.location.href);var b=N.substring(N.indexOf("://")+3),S=b.indexOf("/");S!=-1&&(b=b.substring(0,S));S=N.substring(0,N.indexOf("://"));if(!S)throw Error("qa`"+N);if(S!=="http"&&S!=="https"&&S!=="chrome-extension"&&S!=="moz-extension"&&
S!=="file"&&S!=="android-app"&&S!=="chrome-search"&&S!=="chrome-untrusted"&&S!=="chrome"&&S!=="app"&&S!=="devtools")throw Error("ra`"+S);N="";var P=b.indexOf(":");if(P!=-1){var H=b.substring(P+1);b=b.substring(0,P);if(S==="http"&&H!=="80"||S==="https"&&H!=="443")N=":"+H}return S+"://"+b+N};var wvN=function(N,b,S){var P=String(_.Ps.location.href);return P&&N&&b?[b,q5l(hK9(P),N,S||null)].join(" "):null},q5l=function(N,b,S){var P=[],H=[];
if((Array.isArray(S)?2:1)==1)return H=[b,N],_.NX(P,function(G){H.push(G)}),NAZ(H.join(" "));
var K=[],C=[];_.NX(S,function(G){C.push(G.key);K.push(G.value)});
S=Math.floor((new Date).getTime()/1E3);H=K.length==0?[S,b,N]:[K.join(":"),S,b,N];_.NX(P,function(G){H.push(G)});
N=NAZ(H.join(" "));N=[S,N];C.length==0||N.push(C.join(""));return N.join("_")},NAZ=function(N){var b=sNs();
b.update(N);return b.digestString().toLowerCase()};var dC=function(N){this.JSC$9851_document_=N||{cookie:""}},bQS;
_.v=dC.prototype;_.v.isEnabled=function(){if(!_.Ps.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.v.set=function(N,b,S){var P=!1;if(typeof S==="object"){var H=S.sameSite;P=S.secure||!1;var K=S.domain||void 0;var C=S.path||void 0;var G=S.maxAge}if(/[;=\s]/.test(N))throw Error("sa`"+N);if(/[;\r\n]/.test(b))throw Error("ta`"+b);G===void 0&&(G=-1);S=K?";domain="+K:"";C=C?";path="+C:"";P=P?";secure":"";G=G<0?"":G==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+G*1E3)).toUTCString();this.JSC$9851_document_.cookie=N+"="+b+S+C+G+P+(H!=null?";samesite="+H:"")};
_.v.get=function(N,b){for(var S=N+"=",P=(this.JSC$9851_document_.cookie||"").split(";"),H=0,K;H<P.length;H++){K=aU(P[H]);if(K.lastIndexOf(S,0)==0)return K.slice(S.length);if(K==N)return""}return b};
_.v.remove=function(N,b,S){var P=this.containsKey(N);this.set(N,"",{maxAge:0,path:b,domain:S});return P};
_.v.getKeys=function(){return bQS(this).keys};
_.v.getValues=function(){return bQS(this).values};
_.v.isEmpty=function(){return!this.JSC$9851_document_.cookie};
_.v.getCount=function(){return this.JSC$9851_document_.cookie?(this.JSC$9851_document_.cookie||"").split(";").length:0};
_.v.containsKey=function(N){return this.get(N)!==void 0};
_.v.containsValue=function(N){for(var b=bQS(this).values,S=0;S<b.length;S++)if(b[S]==N)return!0;return!1};
_.v.clear=function(){for(var N=bQS(this).keys,b=N.length-1;b>=0;b--)this.remove(N[b])};
bQS=function(N){N=(N.JSC$9851_document_.cookie||"").split(";");for(var b=[],S=[],P,H,K=0;K<N.length;K++)H=aU(N[K]),P=H.indexOf("="),P==-1?(b.push(""),S.push(H)):(b.push(H.substring(0,P)),S.push(H.substring(P+1)));return{keys:b,values:S}};
_.xb=new dC(typeof document=="undefined"?null:document);var Nao,SBZ;Nao=function(){var N=_.Ps.__SAPISID||_.Ps.__APISID||_.Ps.__3PSAPISID||_.Ps.__1PSAPISID||_.Ps.__OVERRIDE_SID;if(N)return!0;typeof document!=="undefined"&&(N=new dC(document),N=N.get("SAPISID")||N.get("APISID")||N.get("__Secure-3PAPISID")||N.get("__Secure-1PAPISID"));return!!N};
SBZ=function(N,b,S,P){(N=_.Ps[N])||typeof document==="undefined"||(N=(new dC(document)).get(b));return N?wvN(N,S,P):null};
_.lLf=function(N){var b=hK9(_.Ps==null?void 0:_.Ps.location.href),S=[];if(Nao()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var P=b?_.Ps.__SAPISID:_.Ps.__APISID;P||typeof document==="undefined"||(P=new dC(document),P=P.get(b?"SAPISID":"APISID")||P.get("__Secure-3PAPISID"));(P=P?wvN(P,b?"SAPISIDHASH":"APISIDHASH",N):null)&&S.push(P);b&&((b=SBZ("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",N))&&S.push(b),
(N=SBZ("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",N))&&S.push(N))}return S.length==0?null:S.join(" ")};var PMz=function(){this.minSize=1024};
PMz.prototype.compress=function(N){var b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return b=new CompressionStream("gzip"),S=(new Response(b.readable)).arrayBuffer(),P=b.writable.getWriter(),K.yield(P.write((new TextEncoder).encode(N)),2);case 2:return K.yield(P.close(),3);case 3:return H=Uint8Array,K.yield(S,4);case 4:return K.return(new H(K.yieldResult))}})};
PMz.prototype.isSupported=function(N){return N<this.minSize?!1:typeof CompressionStream!=="undefined"};var HQd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(HQd,_.rc);var mQ=function(N,b){this.intervalMs=N;this.callback=b;this.enabled=!1;this.nowFn=function(){return _.sG()};
this.lastTimeMs=this.nowFn()};
mQ.prototype.setInterval=function(N){this.intervalMs=N;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
mQ.prototype.start=function(){var N=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){N.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
mQ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
mQ.prototype.tick=function(){var N=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){N.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var sOO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(sOO,_.rc);var Kbd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Kbd,_.rc);var vl9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(vl9,_.rc);vl9.prototype.getTransmissionType=function(){return _.o9(this,1)};var CQU=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(CQU,_.rc);var kj=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(kj,_.rc);var OEI=function(N){Be(GWo,1,N)};
kj.prototype.getModel=function(){return _.xp(this,6)};
var OQb=_.ui(kj);var CME=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(CME,_.rc);var K6f=["platform","platformVersion","architecture","model","uaFullVersion"],GWo=new kj,vbb=null;var T5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(T5,_.rc);var GzN=function(N){return _.Ti(N,1,1)};var rec=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,4)};
_.F(rec,_.rc);_.t1=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,36)};
_.F(_.t1,_.rc);_.t1.prototype.getExperimentIds=function(){return _.k0(this,HQd,16)};var ce4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,19)};
_.F(ce4,_.rc);ce4.prototype.setLogSource=function(N){return _.Ti(this,2,N)};
ce4.prototype.setScheduler=function(N){return _.Ti(this,10,N)};var Roc=function(N,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new ce4;Number.isInteger(N)&&this.logRequest.setLogSource(N);b||(this.locale=document.documentElement.getAttribute("lang"));aqZ(this,new T5)};
Roc.prototype.setLogSource=function(N){this.logRequest.setLogSource(N);return this};
var aqZ=function(N,b){_.xI(N.logRequest,1,b);_.o9(b,1)||GzN(b);N.isServiceWorkerScope||(b=MO(N),_.xp(b,5)||_.En(b,5,N.locale));N.uach&&(b=MO(N),_.k0(b,kj,9)||_.xI(b,9,N.uach))},WbO=function(N,b){N.transmissionType=b},nll=function(N){var b=b===void 0?K6f:b;
var S=N.isServiceWorkerScope?void 0:$o();S?rze(S,b).then(function(P){N.uach=OQb(P!=null?P:"[]");P=MO(N);_.xI(P,9,N.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},MO=function(N){var b=_.k0(N.logRequest,T5,1);
b||(b=new T5,aqZ(N,b));N=b;b=_.k0(N,CME,11);b||(b=new CME,_.xI(N,11,b));return b};
Roc.prototype.build=function(N,b,S,P,H,K){b=b===void 0?0:b;S=S===void 0?0:S;P=P===void 0?null:P;H=H===void 0?0:H;K=K===void 0?0:K;if(!this.isServiceWorkerScope){var C=MO(this);var G=new vl9;G=_.Ti(G,1,this.transmissionType);G=_.lw(G,2,this.isFinal);S=_.ZC(G,3,S>0?S:void 0);S=_.ZC(S,4,H>0?H:void 0);S=_.ZC(S,5,K>0?K:void 0);H=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=H[_.sd]|0;S=FN(S,K)?S:Q69(S,H,K)?uiu(S,H):new S.constructor(AO(H,K,!0));_.xI(C,10,S)}C=this.logRequest.clone();S=Date.now().toString();
C=_.t2(C,4,R6(S));N=N.slice();N=Be(C,3,N);P&&(C=new sOO,P=_.ZC(C,13,P),C=new Kbd,P=_.xI(C,2,P),C=new rec,P=_.xI(C,1,P),P=_.Ti(P,2,9),_.xI(N,18,P));b&&_.zx(N,14,b);return N};LT.prototype.currBackoffCount_=0;LT.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
LT.prototype.getValue=function(){return this.currValue_};
var d8V=function(N){N.currBaseValue_=Math.min(N.maxValue_,N.currBaseValue_*N.backoffFactor_);N.currValue_=Math.min(N.maxValue_,N.currBaseValue_+(N.randomFactor_?Math.round(N.randomFactor_*(Math.random()-.5)*2*N.currBaseValue_):0));N.currBackoffCount_++};var cOd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,8)};
_.F(cOd,_.rc);var m89=_.ui(cOd);var ao9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ao9,_.rc);var Fz;Fz=new RwS;var B$=function(N){_.E5.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9929_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$9929_sendBeaconApiEnabled=!1;this.logSource=N.logSource;this.getAuthHeaderValue=
N.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Roc(N.logSource,N.isServiceWorkerScope);this.network=N.network||null;this.productID=N.productID||null;this.bufferSize=1E3;this.clearcutUrl=N.urlOverride||null;this.sessionIndex=N.sessionIndex||null;this.disableAutomaticFlush=N.disableAutomaticFlush||!1;this.withCredentials=!N.disableWithCredentials;this.isServiceWorkerScope=N.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!$o()&&!!$o().navigator&&$o().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(kzV())).searchParams&&!!(new URL(kzV())).searchParams.set;var S=GzN(new T5);aqZ(this.logRequestBuilder,S);this.flushBackoff=new LT(1E4,3E5,.1);N=TAl(this,N.backgroundJobDeferrer);this.JSC$9929_flushTimer=new mQ(this.flushBackoff.getValue(),N);this.backupTimer=new mQ(6E5,N);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){tj9(b);
var P;(P=b.metalogService)==null||P.flush()}}),document.addEventListener("pagehide",function(){tj9(b);
var P;(P=b.metalogService)==null||P.flush()}))};
_.F(B$,_.E5);var TAl=function(N,b){return N.isBrowserSupported?b?function(){b().then(function(){N.flush()})}:function(){N.flush()}:function(){}};
B$.prototype.disposeInternal=function(){tj9(this);this.JSC$9929_flushTimer.stop();this.backupTimer.stop();_.E5.prototype.disposeInternal.call(this)};
var Mjk=function(N){N.clearcutUrl||(N.clearcutUrl=kzV());try{return(new URL(N.clearcutUrl)).toString()}catch(b){return(new URL(N.clearcutUrl,$o().location.origin)).toString()}};
B$.prototype.dispatch=function(N){if(N instanceof _.t1)this.log(N);else try{var b=new _.t1,S=N.serialize();var P=_.En(b,8,S);this.log(P)}catch(H){lW(this,4,1)}};
var lW=function(N,b,S){N.metalogService&&N.metalogService.increment(b,S)};
B$.prototype.log=function(N){lW(this,2,1);if(this.isBrowserSupported){N=N.clone();var b=this.sequencePosition++;N=_.zx(N,21,b);this.componentId&&_.En(N,26,this.componentId);b=N;if(jbO(_.kp(b,1))==null){var S=Date.now();S=Number.isFinite(S)?S.toString():"0";_.t2(b,1,R6(S))}_.Z99(_.kp(b,15))!=null||_.zx(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),_.xI(b,16,S));lW(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,b),
this.numLogsDroppedSinceLastFlush+=b,lW(this,3,b));this.pendingEvents.push(N);this.disableAutomaticFlush||this.JSC$9929_flushTimer.enabled||this.JSC$9929_flushTimer.start()}};
B$.prototype.flush=function(N,b){var S=this;if(this.pendingEvents.length===0)N&&N();else if(this.JSC$9929_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Fb4(this);else{var P=Date.now();if(this.noFlushUntilMs>P&&this.startWaitingMs<P)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?WbO(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var H=this.pendingEvents.length,
K=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),C=this.getAuthHeaderValue();if(C&&this.lastFailedAuth===C)b&&b("stale-auth-token");else{this.pendingEvents=[];this.JSC$9929_flushTimer.enabled&&this.JSC$9929_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;P=K.serialize();var G;this.JSC$9929_compressor&&this.JSC$9929_compressor.isSupported(P.length)&&
(G=this.JSC$9929_compressor.compress(P));var a=BA9(this,P,C),R=function(m){S.flushBackoff.reset();S.JSC$9929_flushTimer.setInterval(S.flushBackoff.getValue());if(m){var k=null;try{var M=JSON.stringify(JSON.parse(m.replace(")]}'\n","")));k=m89(M)}catch(l){}k&&(m=Number(uJ(k,1,_.z4("-1"))),m>0&&(S.startWaitingMs=Date.now(),S.noFlushUntilMs=S.startWaitingMs+m),Hqf(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Fz.fieldIndex),SaE(k,Fz.fieldIndex),k=Fz.ctor?Fz.getExtensionFn(k,Fz.ctor,Fz.fieldIndex,
Fz.JSC$9109_hasMessageId):Fz.getExtensionFn(k,Fz.fieldIndex,null,Fz.JSC$9109_hasMessageId),k=k===null?void 0:k)&&(k=_.tg(k,1,-1),k!==-1&&(S.flushBackoff=new LT(k<1?1:k,3E5,.1),S.JSC$9929_flushTimer.setInterval(S.flushBackoff.getValue())))}N&&N();S.numRetriesSinceLastSuccessfulFlush=0},n=function(m,k){var M=_.kT(K,_.t1,3,_.T6());
var l=Number(uJ(K,14));d8V(S.flushBackoff);S.JSC$9929_flushTimer.setInterval(S.flushBackoff.getValue());m===401&&C&&(S.lastFailedAuth=C);l&&(S.numLogsDroppedSinceLastFlush+=l);k===void 0&&(k=S.isRetryable(m));k&&(S.pendingEvents=M.concat(S.pendingEvents),S.disableAutomaticFlush||S.JSC$9929_flushTimer.enabled||S.JSC$9929_flushTimer.start());lW(S,7,1);b&&b("net-send-failed",m);++S.numRetriesSinceLastSuccessfulFlush},d=function(){S.network&&S.network.send(a,R,n)};
G?G.then(function(m){lW(S,5,H);a.requestHeaders["Content-Encoding"]="gzip";a.requestHeaders["Content-Type"]="application/binary";a.body=m;a.bodyType=2;d()},function(){lW(S,6,H);
d()}):d()}}}};
var BA9=function(N,b,S){S=S===void 0?null:S;var P=P===void 0?N.withCredentials:P;var H={},K=new URL(Mjk(N));S&&(H.Authorization=S);N.sessionIndex&&(H["X-Goog-AuthUser"]=N.sessionIndex,K.searchParams.set("authuser",N.sessionIndex));N.pageId&&(Object.defineProperty(H,"X-Goog-PageId",{value:N.pageId}),K.searchParams.set("pageId",N.pageId));return{url:K.toString(),body:b,bodyType:1,requestHeaders:H,requestType:"POST",withCredentials:P,timeoutMillis:N.timeoutMillis}},tj9=function(N){N.logRequestBuilder.isFinal=
!0;
N.flush();N.logRequestBuilder.isFinal=!1},Fb4=function(N){lq9(N,function(b,S){b=new URL(b);
b.searchParams.set("format","json");var P=!1;try{P=$o().navigator.sendBeacon(b.toString(),S.serialize())}catch(H){}P||(N.isSendBeaconSupported=!1);return P})},lq9=function(N,b){if(N.pendingEvents.length!==0){var S=new URL(Mjk(N));
S.searchParams.delete("format");var P=N.getAuthHeaderValue();P&&S.searchParams.set("auth",P);S.searchParams.set("authuser",N.sessionIndex||"0");for(P=0;P<10&&N.pendingEvents.length;++P){var H=N.pendingEvents.slice(0,32),K=N.logRequestBuilder.build(H,N.numLogsDroppedSinceLastFlush,N.numRetriesSinceLastSuccessfulFlush,N.productID,N.persistedLogRecoveredCount,N.persistedLogExpiredCount);if(!b(S.toString(),K)){++N.numRetriesSinceLastSuccessfulFlush;break}N.numLogsDroppedSinceLastFlush=0;N.numRetriesSinceLastSuccessfulFlush=
0;N.persistedLogRecoveredCount=0;N.persistedLogExpiredCount=0;N.pendingEvents=N.pendingEvents.slice(H.length)}N.JSC$9929_flushTimer.enabled&&N.JSC$9929_flushTimer.stop()}};
B$.prototype.isRetryable=function(N){return 500<=N&&N<600||N===401||N===0};
var kzV=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Lbd=function(){this.abortSupported=typeof AbortController!=="undefined"};
Lbd.prototype.send=function(N,b,S){var P=this,H,K,C,G,a,R,n,d,m,k;return _.r(function(M){switch(M.nextAddress){case 1:return K=(H=P.abortSupported?new AbortController:void 0)?setTimeout(function(){H.abort()},N.timeoutMillis):void 0,_.u4(M,2,3),C=Object.assign({},{method:N.requestType,
headers:Object.assign({},N.requestHeaders)},N.body&&{body:N.body},N.withCredentials&&{credentials:"include"},{signal:N.timeoutMillis&&H?H.signal:null}),M.yield(fetch(N.url,C),5);case 5:G=M.yieldResult;if(G.status!==200){(a=S)==null||a(G.status);M.jumpTo(3);break}if((R=b)==null){M.jumpTo(7);break}return M.yield(G.text(),8);case 8:R(M.yieldResult);case 7:case 3:_.xw(M);clearTimeout(K);_.Jv(M,0);break;case 2:n=_.UE(M);switch((d=n)==null?void 0:d.name){case "AbortError":(m=S)==null||m(408);break;default:(k=
S)==null||k(400)}M.jumpTo(3)}})};
Lbd.prototype.getTransmissionType=function(){return 4};_.uw=function(N,b){b=b===void 0?"0":b;_.E5.call(this);this.logSource=N;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9947_clearExperimentIds=this.productID=null;this.JSC$9947_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.F(_.uw,_.E5);var tUf=function(N,b){N.buildLabel=b;return N},T7o=function(N,b){N.network=b;
return N},F6f=function(N,b){N.JSC$9947_clearExperimentIds=b},kW_=function(N){N.JSC$9947_sendBeaconApiEnabled=!0;
return N};
_.uw.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.uw.prototype.build=function(){this.network||(this.network=new Lbd);var N=new B$({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.lLf,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.QS(this,N);if(this.buildLabel){var b=this.buildLabel,S=
MO(N.logRequestBuilder);_.En(S,7,b)}N.JSC$9929_compressor=new PMz;this.componentId&&(N.componentId=this.componentId);this.productID&&(N.productID=this.productID);this.pageId&&(N.pageId=this.pageId);this.JSC$9947_clearExperimentIds&&((S=this.JSC$9947_clearExperimentIds)?(N.experimentIds||(N.experimentIds=new HQd),b=N.experimentIds,S=S.serialize(),_.En(b,4,S)):N.experimentIds&&_.t2(N.experimentIds,4));this.JSC$9947_sendBeaconApiEnabled&&(N.JSC$9929_sendBeaconApiEnabled=N.isSendBeaconSupported);nll(N.logRequestBuilder);
this.bufferSize&&(N.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(N);return N};var L6E=function(N,b,S,P,H,K,C){N=N===void 0?-1:N;b=b===void 0?"":b;S=S===void 0?"":S;P=P===void 0?!1:P;H=H===void 0?"":H;_.E5.call(this);this.logSource=N;this.componentId=b;K?b=K:(N=new _.uw(N,"0"),N.componentId=b,_.QS(this,N),S!==""&&(N.destinationUrl=S),P&&(N.serviceWorkerScopeEnabled=!0),H&&tUf(N,H),C&&T7o(N,C),b=N.build());this.JSC$9951_transport=b};
_.F(L6E,_.E5);L6E.prototype.flush=function(N){N=N||[];if(N.length){for(var b=new VGN,S=[],P=0;P<N.length;P++){var H=N[P],K=$fV(H);S.push(K);H.clear()}Be(b,1,S);this.JSC$9951_transport.dispatch(b);this.JSC$9951_transport.flush()}};var fqd=function(N){this.cellValue=N};var LF=function(N,b,S){this.JSC$9956_metricName=N;this.cellType=b;this.fields=S||[];this.cellMap=new Map},eKO=function(N){return N.fields.map(function(b){return b.fieldType})},gTb=function(N){return N.fields.map(function(b){return b.fieldName})};
_.v=LF.prototype;_.v.addCell=function(N){var b=_.$I.apply(1,arguments),S=this.getCells(b);S?S.push(new fqd(N)):this.JSC$9956_setCell(N,b)};
_.v.JSC$9956_setCell=function(N){var b=this.JSC$9956_getKey(_.$I.apply(1,arguments));this.cellMap.set(b,[new fqd(N)])};
_.v.getCells=function(){var N=this.JSC$9956_getKey(_.$I.apply(0,arguments));return this.cellMap.has(N)?this.cellMap.get(N):void 0};
_.v.getCell=function(){var N=this.getCells(_.$I.apply(0,arguments));return N&&N.length?N[0]:void 0};
_.v.clear=function(){this.cellMap.clear()};
_.v.JSC$9956_getKey=function(){var N=_.$I.apply(0,arguments);return N?N.join(","):"key"};var u19=function(N,b){LF.call(this,N,3,b)};
_.F(u19,LF);u19.prototype.JSC$9959_incrementCounterBy=function(N){var b=_.$I.apply(1,arguments),S=0,P=this.getCell(b);P&&(S=P.cellValue);this.JSC$9956_setCell(S+N,b)};var QOE=function(N,b){LF.call(this,N,2,b)};
_.F(QOE,LF);QOE.prototype.record=function(N){this.addCell(N,_.$I.apply(1,arguments))};_.fF=function(N){this.id=N};
_.fF.prototype.toString=function(){return this.id};_.uW=function(N,b){this.type=N instanceof _.fF?String(N):N;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
_.uW.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.uW.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Qy=function(N,b){_.uW.call(this,N?N.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=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.timeStamp=0;this.event_=null;N&&this.init(N,b)};
_.Km(_.Qy,_.uW);
_.Qy.prototype.init=function(N,b){var S=this.type=N.type,P=N.changedTouches&&N.changedTouches.length?N.changedTouches[0]:null;this.target=N.target||N.srcElement;this.currentTarget=b;b=N.relatedTarget;b||(S=="mouseover"?b=N.fromElement:S=="mouseout"&&(b=N.toElement));this.relatedTarget=b;P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.offsetX=_.FG||N.offsetX!==void 0?N.offsetX:N.layerX,
this.offsetY=_.FG||N.offsetY!==void 0?N.offsetY:N.layerY,this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0);this.button=N.button;this.keyCode=N.keyCode||0;this.key=N.key||"";this.charCode=N.charCode||(S=="keypress"?N.keyCode:0);this.ctrlKey=N.ctrlKey;this.altKey=N.altKey;this.shiftKey=N.shiftKey;this.metaKey=N.metaKey;this.pointerId=N.pointerId||0;this.pointerType=N.pointerType;this.state=N.state;
this.timeStamp=N.timeStamp;this.event_=N;N.defaultPrevented&&_.Qy.superClass_.preventDefault.call(this)};
_.Qy.prototype.isButton=function(N){return this.event_.button==N};
_.Qy.prototype.stopPropagation=function(){_.Qy.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Qy.prototype.preventDefault=function(){_.Qy.superClass_.preventDefault.call(this);var N=this.event_;N.preventDefault?N.preventDefault():N.returnValue=!1};var x8z="closure_listenable_"+(Math.random()*1E6|0),xj=function(N){return!(!N||!N[x8z])};var old=0;var iQZ=function(N,b,S,P,H){this.listener=N;this.proxy=null;this.src=b;this.type=S;this.capture=!!P;this.handler=H;this.key=++old;this.removed=this.callOnce=!1},Jel=function(N){N.removed=!0;
N.listener=null;N.proxy=null;N.src=null;N.handler=null};fT.prototype.add=function(N,b,S,P,H){var K=N.toString();N=this.listeners[K];N||(N=this.listeners[K]=[],this.typeCount_++);var C=U8k(N,b,P,H);C>-1?(b=N[C],S||(b.callOnce=!1)):(b=new iQZ(b,this.src,K,!!P,H),b.callOnce=S,N.push(b));return b};
fT.prototype.remove=function(N,b,S,P){N=N.toString();if(!(N in this.listeners))return!1;var H=this.listeners[N];b=U8k(H,b,S,P);return b>-1?(Jel(H[b]),_.xLa(H,b),H.length==0&&(delete this.listeners[N],this.typeCount_--),!0):!1};
var ZQ9=function(N,b){var S=b.type;if(!(S in N.listeners))return!1;var P=_.zo(N.listeners[S],b);P&&(Jel(b),N.listeners[S].length==0&&(delete N.listeners[S],N.typeCount_--));return P};
fT.prototype.removeAll=function(N){N=N&&N.toString();var b=0,S;for(S in this.listeners)if(!N||S==N){for(var P=this.listeners[S],H=0;H<P.length;H++)++b,Jel(P[H]);delete this.listeners[S];this.typeCount_--}return b};
fT.prototype.getListener=function(N,b,S,P){N=this.listeners[N.toString()];var H=-1;N&&(H=U8k(N,b,S,P));return H>-1?N[H]:null};
fT.prototype.hasListener=function(N,b){var S=N!==void 0,P=S?N.toString():"",H=b!==void 0;return _.Vm.some(this.listeners,function(K){for(var C=0;C<K.length;++C)if(!(S&&K[C].type!=P||H&&K[C].capture!=b))return!0;return!1})};
var U8k=function(N,b,S,P){for(var H=0;H<N.length;++H){var K=N[H];if(!K.removed&&K.listener==b&&K.capture==!!S&&K.handler==P)return H}return-1};var jOV,zo9,Ae9,ElV,pWO,TS,Mu,Iqz,YBS,yeV,od,D8Z,XWz;jOV="closure_lm_"+(Math.random()*1E6|0);zo9={};Ae9=0;_.lH=function(N,b,S,P,H){if(P&&P.once)return TS(N,b,S,P,H);if(Array.isArray(b)){for(var K=0;K<b.length;K++)_.lH(N,b[K],S,P,H);return null}S=XWz(S);return xj(N)?N.listen(b,S,_.D_(P)?!!P.capture:!!P,H):ElV(N,b,S,!1,P,H)};
ElV=function(N,b,S,P,H,K){if(!b)throw Error("va");var C=_.D_(H)?!!H.capture:!!H,G=od(N);G||(N[jOV]=G=new fT(N));S=G.add(b,S,P,C,K);if(S.proxy)return S;P=pWO();S.proxy=P;P.src=N;P.listener=S;if(N.addEventListener)_.Ya9||(H=C),H===void 0&&(H=!1),N.addEventListener(b.toString(),P,H);else if(N.attachEvent)N.attachEvent(YBS(b.toString()),P);else if(N.addListener&&N.removeListener)N.addListener(P);else throw Error("wa");Ae9++;return S};
pWO=function(){var N=yeV,b=function(S){return N.call(b.src,b.listener,S)};
return b};
TS=function(N,b,S,P,H){if(Array.isArray(b)){for(var K=0;K<b.length;K++)TS(N,b[K],S,P,H);return null}S=XWz(S);return xj(N)?N.listenOnce(b,S,_.D_(P)?!!P.capture:!!P,H):ElV(N,b,S,!0,P,H)};
_.iW=function(N,b,S,P,H){if(Array.isArray(b))for(var K=0;K<b.length;K++)_.iW(N,b[K],S,P,H);else P=_.D_(P)?!!P.capture:!!P,S=XWz(S),xj(N)?N.unlisten(b,S,P,H):N&&(N=od(N))&&(b=N.getListener(b,S,P,H))&&Mu(b)};
Mu=function(N){if(typeof N==="number"||!N||N.removed)return!1;var b=N.src;if(xj(b))return ZQ9(b.eventTargetListeners_,N);var S=N.type,P=N.proxy;b.removeEventListener?b.removeEventListener(S,P,N.capture):b.detachEvent?b.detachEvent(YBS(S),P):b.addListener&&b.removeListener&&b.removeListener(P);Ae9--;(S=od(b))?(ZQ9(S,N),S.typeCount_==0&&(S.src=null,b[jOV]=null)):Jel(N);return!0};
Iqz=function(N,b,S,P,H){S=XWz(S);P=!!P;return xj(N)?N.getListener(b,S,P,H):N?(N=od(N))?N.getListener(b,S,P,H):null:null};
YBS=function(N){return N in zo9?zo9[N]:zo9[N]="on"+N};
yeV=function(N,b){if(N.removed)N=!0;else{b=new _.Qy(b,this);var S=N.listener,P=N.handler||N.src;N.callOnce&&Mu(N);N=S.call(P,b)}return N};
od=function(N){N=N[jOV];return N instanceof fT?N:null};
D8Z="__closure_events_fn_"+(Math.random()*1E9>>>0);XWz=function(N){if(typeof N==="function")return N;N[D8Z]||(N[D8Z]=function(b){return N.handleEvent(b)});
return N[D8Z]};_.J1=function(){_.E5.call(this);this.eventTargetListeners_=new fT(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Km(_.J1,_.E5);_.J1.prototype[x8z]=!0;_.v=_.J1.prototype;_.v.setParentEventTarget=function(N){this.parentEventTarget_=N};
_.v.addEventListener=function(N,b,S,P){_.lH(this,N,b,S,P)};
_.v.removeEventListener=function(N,b,S,P){_.iW(this,N,b,S,P)};
_.v.dispatchEvent=function(N){var b,S=this.parentEventTarget_;if(S)for(b=[];S;S=S.parentEventTarget_)b.push(S);S=this.actualEventTarget_;var P=N.type||N;if(typeof N==="string")N=new _.uW(N,S);else if(N instanceof _.uW)N.target=N.target||S;else{var H=N;N=new _.uW(P,S);_.Vm.extend(N,H)}H=!0;var K;if(b)for(K=b.length-1;!N.propagationStopped_&&K>=0;K--){var C=N.currentTarget=b[K];H=Vj9(C,P,!0,N)&&H}N.propagationStopped_||(C=N.currentTarget=S,H=Vj9(C,P,!0,N)&&H,N.propagationStopped_||(H=Vj9(C,P,!1,N)&&
H));if(b)for(K=0;!N.propagationStopped_&&K<b.length;K++)C=N.currentTarget=b[K],H=Vj9(C,P,!1,N)&&H;return H};
_.v.disposeInternal=function(){_.J1.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.v.listen=function(N,b,S,P){return this.eventTargetListeners_.add(String(N),b,!1,S,P)};
_.v.listenOnce=function(N,b,S,P){return this.eventTargetListeners_.add(String(N),b,!0,S,P)};
_.v.unlisten=function(N,b,S,P){return this.eventTargetListeners_.remove(String(N),b,S,P)};
_.v.removeAllListeners=function(N){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(N):0};
var Vj9=function(N,b,S,P){b=N.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var H=!0,K=0;K<b.length;++K){var C=b[K];if(C&&!C.removed&&C.capture==S){var G=C.listener,a=C.handler||C.src;C.callOnce&&ZQ9(N.eventTargetListeners_,C);H=G.call(a,P)!==!1&&H}}return H&&!P.defaultPrevented};
_.J1.prototype.getListener=function(N,b,S,P){return this.eventTargetListeners_.getListener(String(N),b,S,P)};
_.J1.prototype.hasListener=function(N,b){return this.eventTargetListeners_.hasListener(N!==void 0?String(N):void 0,b)};var Ur=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(N){return N&&AsyncContext.Snapshot.wrap(N)}:function(N){return N};var glN=function(N,b){this.create_=N;this.reset_=b;this.occupants_=0;this.JSC$9991_head_=null};
glN.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var N=this.JSC$9991_head_;this.JSC$9991_head_=N.next;N.next=null}else N=this.create_();return N};
glN.prototype.put=function(N){this.reset_(N);this.occupants_<100&&(this.occupants_++,N.next=this.JSC$9991_head_,this.JSC$9991_head_=N)};var eol=function(){this.workTail_=this.workHead_=null};
eol.prototype.add=function(N,b){var S=ahO.get();S.set(N,b);this.workTail_?this.workTail_.next=S:this.workHead_=S;this.workTail_=S};
eol.prototype.remove=function(){var N=null;this.workHead_&&(N=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),N.next=null);return N};
var ahO=new glN(function(){return new $8E},function(N){return N.reset()}),$8E=function(){this.next=this.scope=this.fn=null};
$8E.prototype.set=function(N,b){this.fn=N;this.scope=b;this.next=null};
$8E.prototype.reset=function(){this.next=this.scope=this.fn=null};var ho4,Rtf,czY,qBV;Rtf=!1;czY=new eol;_.ZI=function(N,b){ho4||qBV();Rtf||(ho4(),Rtf=!0);czY.add(N,b)};
qBV=function(){var N=Promise.resolve(void 0);ho4=function(){N.then(W6a)}};var wWz=function(N){N.prototype.$goog_Thenable=!0},N8k=function(N){if(!N)return!1;
try{return!!N.$goog_Thenable}catch(b){return!1}};var bM9,S24,PDS,sub,Ko9,vUl,rlZ,RbE,mB4,nUd,eva;_.u5=function(N,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(N!=_.Qo)try{var S=this;N.call(b,function(P){S.resolve_(2,P)},function(P){S.resolve_(3,P)})}catch(P){this.resolve_(3,P)}};
bM9=function(){this.next=this.context=this.JSC$10002_onRejected=this.JSC$10002_onFulfilled=this.child=null;this.always=!1};
bM9.prototype.reset=function(){this.context=this.JSC$10002_onRejected=this.JSC$10002_onFulfilled=this.child=null;this.always=!1};
S24=new glN(function(){return new bM9},function(N){N.reset()});
PDS=function(N,b,S){var P=S24.get();P.JSC$10002_onFulfilled=N;P.JSC$10002_onRejected=b;P.context=S;return P};
_.KA=function(N){if(N instanceof _.u5)return N;var b=new _.u5(_.Qo);b.resolve_(2,N);return b};
_.f7=function(N){return new _.u5(function(b,S){S(N)})};
sub=function(N,b,S){HM9(N,b,S,null)||_.ZI(_.Rm(b,N))};
_.jA=function(N){return new _.u5(function(b,S){var P=N.length,H=[];if(P)for(var K=function(R,n){P--;H[R]=n;P==0&&b(H)},C=function(R){S(R)},G,a=0;a<N.length;a++)G=N[a],sub(G,_.Rm(K,a),C);
else b(H)})};
Ko9=function(N){return new _.u5(function(b){var S=N.length,P=[];if(S)for(var H=function(G,a,R){S--;P[G]=a?{fulfilled:!0,value:R}:{fulfilled:!1,reason:R};S==0&&b(P)},K,C=0;C<N.length;C++)K=N[C],sub(K,_.Rm(H,C,!0),_.Rm(H,C,!1));
else b(P)})};
vUl=function(N){return new _.u5(function(b,S){var P=N.length,H=[];if(P)for(var K=function(R){b(R)},C=function(R,n){P--;
H[R]=n;P==0&&S(H)},G,a=0;a<N.length;a++)G=N[a],sub(G,K,_.Rm(C,a));
else b(void 0)})};
_.Y9=function(){var N,b,S=new _.u5(function(P,H){N=P;b=H});
return new OMz(S,N,b)};
_.u5.prototype.then=function(N,b,S){return CD9(this,Ur(typeof N==="function"?N:null),Ur(typeof b==="function"?b:null),S)};
wWz(_.u5);rlZ=function(N,b,S,P){Gjl(N,PDS(b||_.Qo,S||null,P))};
_.z5=function(N,b){b=Ur(b);b=PDS(b,b);b.always=!0;Gjl(N,b);return N};
_.u5.prototype.finally=function(N){var b=this;N=Ur(N);return new _.u5(function(S,P){rlZ(b,function(H){N();S(H)},function(H){N();
P(H)})})};
_.u5.prototype.thenCatch=function(N,b){return CD9(this,null,Ur(N),b)};
_.u5.prototype.catch=_.u5.prototype.thenCatch;_.u5.prototype.cancel=function(N){if(this.state_==0){var b=new _.zM(N);_.ZI(function(){clz(this,b)},this)}};
var clz=function(N,b){if(N.state_==0)if(N.parent_){var S=N.parent_;if(S.callbackEntries_){for(var P=0,H=null,K=null,C=S.callbackEntries_;C&&(C.always||(P++,C.child==N&&(H=C),!(H&&P>1)));C=C.next)H||(K=C);H&&(S.state_==0&&P==1?clz(S,b):(K?(P=K,P.next==S.callbackEntriesTail_&&(S.callbackEntriesTail_=P),P.next=P.next.next):aH9(S),RbE(S,H,3,b)))}N.parent_=null}else N.resolve_(3,b)},Gjl=function(N,b){N.callbackEntries_||N.state_!=2&&N.state_!=3||WoN(N);
N.callbackEntriesTail_?N.callbackEntriesTail_.next=b:N.callbackEntries_=b;N.callbackEntriesTail_=b},CD9=function(N,b,S,P){var H=PDS(null,null,null);
H.child=new _.u5(function(K,C){H.JSC$10002_onFulfilled=b?function(G){try{var a=b.call(P,G);K(a)}catch(R){C(R)}}:K;
H.JSC$10002_onRejected=S?function(G){try{var a=S.call(P,G);a===void 0&&G instanceof _.zM?C(G):K(a)}catch(R){C(R)}}:C});
H.child.parent_=N;Gjl(N,H);return H.child};
_.u5.prototype.unblockAndFulfill_=function(N){this.state_=0;this.resolve_(2,N)};
_.u5.prototype.unblockAndReject_=function(N){this.state_=0;this.resolve_(3,N)};
_.u5.prototype.resolve_=function(N,b){this.state_==0&&(this===b&&(N=3,b=new TypeError("xa")),this.state_=1,HM9(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=N,this.parent_=null,WoN(this),N!=3||b instanceof _.zM||nUd(this,b)))};
var HM9=function(N,b,S,P){if(N instanceof _.u5)return rlZ(N,b,S,P),!0;if(N8k(N))return N.then(b,S,P),!0;if(_.D_(N))try{var H=N.then;if(typeof H==="function")return dBN(N,H,b,S,P),!0}catch(K){return S.call(P,K),!0}return!1},dBN=function(N,b,S,P,H){var K=!1,C=function(a){K||(K=!0,S.call(H,a))},G=function(a){K||(K=!0,P.call(H,a))};
try{b.call(N,C,G)}catch(a){G(a)}},WoN=function(N){N.executing_||(N.executing_=!0,_.ZI(N.executeCallbacks_,N))},aH9=function(N){var b=null;
N.callbackEntries_&&(b=N.callbackEntries_,N.callbackEntries_=b.next,b.next=null);N.callbackEntries_||(N.callbackEntriesTail_=null);return b};
_.u5.prototype.executeCallbacks_=function(){for(var N;N=aH9(this);)RbE(this,N,this.state_,this.result_);this.executing_=!1};
RbE=function(N,b,S,P){if(S==3&&b.JSC$10002_onRejected&&!b.always)for(;N&&N.hadUnhandledRejection_;N=N.parent_)N.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,mB4(b,S,P);else try{b.always?b.JSC$10002_onFulfilled.call(b.context):mB4(b,S,P)}catch(H){eva.call(null,H)}S24.put(b)};
mB4=function(N,b,S){b==2?N.JSC$10002_onFulfilled.call(N.context,S):N.JSC$10002_onRejected&&N.JSC$10002_onRejected.call(N.context,S)};
nUd=function(N,b){N.hadUnhandledRejection_=!0;_.ZI(function(){N.hadUnhandledRejection_&&eva.call(null,b)})};
eva=Hs;_.zM=function(N){_.NL.call(this,N)};
_.Km(_.zM,_.NL);_.zM.prototype.name="cancel";var OMz=function(N,b,S){this.promise=N;this.resolve=b;this.reject=S};var Yj;_.Lx=function(N,b){_.J1.call(this);this.JSC$10014_interval_=N||1;this.timerObject_=b||_.Ps;this.boundTick_=(0,_.pT)(this.tick_,this);this.last_=_.sG()};
_.Km(_.Lx,_.J1);_.v=_.Lx.prototype;_.v.enabled=!1;_.v.JSC$10016_timer_=null;_.v.setInterval=function(N){this.JSC$10014_interval_=N;this.JSC$10016_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10016_timer_&&this.stop()};
_.v.tick_=function(){if(this.enabled){var N=_.sG()-this.last_;N>0&&N<this.JSC$10014_interval_*.8?this.JSC$10016_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10014_interval_-N):(this.JSC$10016_timer_&&(this.timerObject_.clearTimeout(this.JSC$10016_timer_),this.JSC$10016_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.v.start=function(){this.enabled=!0;this.JSC$10016_timer_||(this.JSC$10016_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10014_interval_),this.last_=_.sG())};
_.v.stop=function(){this.enabled=!1;this.JSC$10016_timer_&&(this.timerObject_.clearTimeout(this.JSC$10016_timer_),this.JSC$10016_timer_=null)};
_.v.disposeInternal=function(){_.Lx.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Yj=function(N,b,S){if(typeof N==="function")S&&(N=(0,_.pT)(N,S));else if(N&&typeof N.handleEvent=="function")N=(0,_.pT)(N.handleEvent,N);else throw Error("ya");return Number(b)>2147483647?-1:_.Ps.setTimeout(N,b||0)};
_.kjO=function(N){var b=null;return(new _.u5(function(S,P){b=Yj(function(){S(void 0)},N);
b==-1&&P(Error("za"))})).thenCatch(function(S){_.Ps.clearTimeout(b);
throw S;})};var oc=function(N){_.E5.call(this);this.streamzLogger=N;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10020_flushTimer=new _.Lx(this.flushInterval);this.JSC$10020_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.QS(this,this.JSC$10020_flushTimer)};
_.F(oc,_.E5);oc.prototype.sendIsolatedPayload=function(N){this.shouldSendIsolatedPayload=N;this.invocationLimit=1};
var T8N=function(N){N.JSC$10020_flushTimer.enabled||N.JSC$10020_flushTimer.start();N.invocationCount++;N.invocationCount>=N.invocationLimit&&N.snapshotAndFlush()};
oc.prototype.snapshotAndFlush=function(){var N=this.metricMap.values();N=[].concat(_.IX(N)).filter(function(b){return b.cellMap.size});
N.length&&this.streamzLogger.flush(N,this.shouldSendIsolatedPayload);t_N(N);this.invocationCount=0;this.JSC$10020_flushTimer.enabled&&this.JSC$10020_flushTimer.stop()};
oc.prototype.addNewCounter=function(N){var b=_.$I.apply(1,arguments);this.metricMap.has(N)||this.metricMap.set(N,new u19(N,b))};
oc.prototype.addNewEventMetric=function(N){var b=_.$I.apply(1,arguments);this.metricMap.has(N)||this.metricMap.set(N,new QOE(N,b))};
var M_d=function(N,b){return N.disabledMetrics.has(b)?void 0:N.metricMap.get(b)};
oc.prototype.JSC$10020_incrementCounter=function(N){this.JSC$10020_incrementCounterBy(N,1,_.$I.apply(1,arguments))};
oc.prototype.JSC$10020_incrementCounterBy=function(N,b){var S=_.$I.apply(2,arguments),P=M_d(this,N);P&&P instanceof u19&&(P.JSC$9959_incrementCounterBy(b,S),T8N(this))};
oc.prototype.record=function(N,b){var S=_.$I.apply(2,arguments),P=M_d(this,N);P&&P instanceof QOE&&(P.record(b,S),T8N(this))};
var t_N=function(N){for(var b=0;b<N.length;b++)N[b].clear()};_.yy=function(N,b,S){S=S===void 0?{}:S;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=N;this.metadata=S;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(_.yy,Error);_.yy.prototype.toString=function(){var N="RpcError("+(dXE(this.code)||String(this.code))+")";this.message&&(N+=": "+this.message);return N};_.FoE=_.Ps.JSON.parse;_.Id=_.Ps.JSON.stringify;_.Bi=_.Ps.JSON.parse;_.B8S=function(N){switch(N){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"}};var lHN=function(N){switch(N){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Loc,fH4=function(){};
_.Km(fH4,_.mXo);fH4.prototype.createInstance=function(){return new XMLHttpRequest};
Loc=new fH4;_.DI=function(N){_.J1.call(this);this.headers=new Map;this.JSC$10029_xmlHttpFactory_=N||null;this.JSC$10029_active_=!1;this.JSC$10029_xhr_=null;this.JSC$10029_lastUri_="";this.JSC$10029_lastErrorCode_=0;this.JSC$10029_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10029_timeoutId_=null;this.responseType_="";this.JSC$10029_withCredentials_=!1};
_.Km(_.DI,_.J1);var ugO=/^https?$/i,Quz=["POST","PUT"],xBN=[],PGY=function(N,b,S,P,H,K,C){var G=new _.DI;xBN.push(G);b&&G.listen("complete",b);G.listenOnce("ready",G.cleanupSend_);K&&(G.timeoutInterval_=Math.max(0,K));C&&(G.JSC$10029_withCredentials_=C);G.send(N,S,P,H)};
_.DI.prototype.cleanupSend_=function(){this.dispose();_.zo(xBN,this)};
_.DI.prototype.send=function(N,b,S,P){if(this.JSC$10029_xhr_)throw Error("Aa`"+this.JSC$10029_lastUri_+"`"+N);b=b?b.toUpperCase():"GET";this.JSC$10029_lastUri_=N;this.JSC$10029_lastError_="";this.JSC$10029_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10029_active_=!0;this.JSC$10029_xhr_=this.createXhr();this.JSC$10029_xhr_.onreadystatechange=Ur((0,_.pT)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10029_xhr_.open(b,String(N),!0),this.inOpen_=!1}catch(C){oUz(this,C);return}N=
S||"";S=new Map(this.headers);if(P)if(Object.getPrototypeOf(P)===Object.prototype)for(var H in P)S.set(H,P[H]);else if(typeof P.keys==="function"&&typeof P.get==="function"){H=_.O(P.keys());for(var K=H.next();!K.done;K=H.next())K=K.value,S.set(K,P.get(K))}else throw Error("Ba`"+String(P));P=Array.from(S.keys()).find(function(C){return"content-type"==C.toLowerCase()});
H=_.Ps.FormData&&N instanceof _.Ps.FormData;!_.Z_(Quz,b)||P||H||S.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.O(S);for(P=b.next();!P.done;P=b.next())S=_.O(P.value),P=S.next().value,S=S.next().value,this.JSC$10029_xhr_.setRequestHeader(P,S);this.responseType_&&(this.JSC$10029_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10029_xhr_&&this.JSC$10029_xhr_.withCredentials!==this.JSC$10029_withCredentials_&&(this.JSC$10029_xhr_.withCredentials=this.JSC$10029_withCredentials_);
try{this.JSC$10029_timeoutId_&&(clearTimeout(this.JSC$10029_timeoutId_),this.JSC$10029_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10029_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10029_xhr_.send(N),this.inSend_=!1}catch(C){oUz(this,C)}};
_.DI.prototype.createXhr=function(){return this.JSC$10029_xmlHttpFactory_?this.JSC$10029_xmlHttpFactory_.createInstance():Loc.createInstance()};
_.DI.prototype.timeout_=function(){typeof p1L!="undefined"&&this.JSC$10029_xhr_&&(this.JSC$10029_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10029_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var oUz=function(N,b){N.JSC$10029_active_=!1;N.JSC$10029_xhr_&&(N.inAbort_=!0,N.JSC$10029_xhr_.abort(),N.inAbort_=!1);N.JSC$10029_lastError_=b;N.JSC$10029_lastErrorCode_=5;iME(N);Jlb(N)},iME=function(N){N.errorDispatched_||(N.errorDispatched_=!0,N.dispatchEvent("complete"),N.dispatchEvent("error"))};
_.DI.prototype.abort=function(N){this.JSC$10029_xhr_&&this.JSC$10029_active_&&(this.JSC$10029_active_=!1,this.inAbort_=!0,this.JSC$10029_xhr_.abort(),this.inAbort_=!1,this.JSC$10029_lastErrorCode_=N||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Jlb(this))};
_.DI.prototype.disposeInternal=function(){this.JSC$10029_xhr_&&(this.JSC$10029_active_&&(this.JSC$10029_active_=!1,this.inAbort_=!0,this.JSC$10029_xhr_.abort(),this.inAbort_=!1),Jlb(this,!0));_.DI.superClass_.disposeInternal.call(this)};
_.DI.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)UB4(this);else this.onReadyStateChangeEntryPoint_()};
_.DI.prototype.onReadyStateChangeEntryPoint_=function(){UB4(this)};
var UB4=function(N){if(N.JSC$10029_active_&&typeof p1L!="undefined")if(N.inSend_&&_.Vy(N)==4)setTimeout(N.onReadyStateChange_.bind(N),0);else if(N.dispatchEvent("readystatechange"),N.isComplete()){N.JSC$10029_active_=!1;try{if(N.isSuccess())N.dispatchEvent("complete"),N.dispatchEvent("success");else{N.JSC$10029_lastErrorCode_=6;try{var b=_.Vy(N)>2?N.JSC$10029_xhr_.statusText:""}catch(S){b=""}N.JSC$10029_lastError_=b+" ["+N.getStatus()+"]";iME(N)}}finally{Jlb(N)}}},Jlb=function(N,b){if(N.JSC$10029_xhr_){N.JSC$10029_timeoutId_&&
(clearTimeout(N.JSC$10029_timeoutId_),N.JSC$10029_timeoutId_=null);
var S=N.JSC$10029_xhr_;N.JSC$10029_xhr_=null;b||N.dispatchEvent("ready");try{S.onreadystatechange=null}catch(P){}}};
_.DI.prototype.isActive=function(){return!!this.JSC$10029_xhr_};
_.DI.prototype.isComplete=function(){return _.Vy(this)==4};
_.DI.prototype.isSuccess=function(){var N=this.getStatus(),b;if(!(b=lHN(N))){if(N=N===0)N=XRc(String(this.JSC$10029_lastUri_)),N=!ugO.test(N);b=N}return b};
_.Vy=function(N){return N.JSC$10029_xhr_?N.JSC$10029_xhr_.readyState:0};
_.v=_.DI.prototype;_.v.getStatus=function(){try{return _.Vy(this)>2?this.JSC$10029_xhr_.status:-1}catch(N){return-1}};
_.v.getResponseText=function(){try{return this.JSC$10029_xhr_?this.JSC$10029_xhr_.responseText:""}catch(N){return""}};
_.v.getResponse=function(){try{if(!this.JSC$10029_xhr_)return null;if("response"in this.JSC$10029_xhr_)return this.JSC$10029_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10029_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10029_xhr_)return this.JSC$10029_xhr_.mozResponseArrayBuffer}return null}catch(N){return null}};
_.v.getAllResponseHeaders=function(){return this.JSC$10029_xhr_&&_.Vy(this)>=2?this.JSC$10029_xhr_.getAllResponseHeaders()||"":""};
_.v.getLastError=function(){return typeof this.JSC$10029_lastError_==="string"?this.JSC$10029_lastError_:String(this.JSC$10029_lastError_)};var MUL=function(){};
MUL.prototype.send=function(N,b,S){b=b===void 0?function(){}:b;
S=S===void 0?function(){}:S;
PGY(N.url,function(P){P=P.target;P.isSuccess()?b(P.getResponseText()):S(P.getStatus())},N.requestType,N.body,N.requestHeaders,N.timeoutMillis,N.withCredentials)};
MUL.prototype.getTransmissionType=function(){return 1};var ZMz=function(N,b){this.nl7=N;this.event=b;this.startTime=iw()},uQf;
ZMz.prototype.done=function(){this.nl7.qz(this.event,iw()-this.startTime)};
var gC=function(){nF.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.F(gC,nF);_.eA=function(N,b,S){var P=iw();b=b();N.qz(S,iw()-P);return b};
uQf=function(){gC.apply(this,arguments)};
_.F(uQf,gC);_.v=uQf.prototype;_.v.s8D=function(){};
_.v.hR=function(){};
_.v.qz=function(){};
_.v.logError=function(){};
_.v.mJ=function(){};
_.v.tBD=function(){};
_.v.dmH=function(){};
_.v.aBQ=function(){};
var juc=function(N){gC.call(this);var b=this;this.kD=N;this.TEST_ONLY={m6Y:function(){return b.kD},
getExperimentIds:function(){return b.kD.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void b.kD.dispose()})};
_.F(juc,gC);_.v=juc.prototype;_.v.update=function(N){this.kD.dispose();this.kD=N};
_.v.hR=function(N){this.kD.hR(N)};
_.v.qz=function(N,b){this.kD.qz(N,b)};
_.v.logError=function(N){this.kD.logError(N)};
_.v.mJ=function(){this.kD.mJ()};
_.v.tBD=function(N){this.kD.tBD(N)};
_.v.dmH=function(N){this.kD.dmH(N)};
_.v.aBQ=function(N){this.kD.aBQ(N)};
_.v.s8D=function(N){this.kD.s8D(N)};
var zb9=function(N,b){_.E5.call(this);var S=this;this.callback=N;this.izf=b;this.dW0=-b;this.addOnDisposeCallback(function(){return void clearTimeout(S.timer)})};
_.F(zb9,_.E5);var Alk=function(N){if(N.timer===void 0){var b=Math.max(0,N.dW0+N.izf-iw());N.timer=setTimeout(function(){try{N.callback()}finally{N.dW0=iw(),N.timer=void 0}},b)}},XAO=function(N,b){gC.call(this);
this.metrics=N;this.wL=b};
_.F(XAO,gC);_.v=XAO.prototype;_.v.s8D=function(N){this.metrics.yyR.record(N,this.wL)};
_.v.hR=function(N){this.metrics.eventCount.increment(N,this.wL)};
_.v.qz=function(N,b){this.metrics.rjF.record(b,N,this.wL)};
_.v.logError=function(N){this.metrics.errorCount.increment(N,this.wL)};
_.v.tBD=function(N){this.metrics.uAz.increment(N,this.wL)};
_.v.dmH=function(N){this.metrics.cGI.increment(N,this.wL)};
_.v.aBQ=function(N){this.metrics.xCR.increment(N,this.wL)};
var QNU=function(N,b){b=b===void 0?[]:b;var S={wL:N.wL||"_",kTL:N.kTL||[],ebO:N.ebO|0,destinationUrl:N.destinationUrl,omF:N.omF||function(){},
hzd:N.hzd||function(K,C){return fhs(K,C,S.omF,S.destinationUrl)}},P=S.hzd("52",S.kTL.concat(b));
XAO.call(this,{yyR:new tG9(P),errorCount:new lg4(P),eventCount:new FAd(P),rjF:new Bj9(P),nVC:new MGc(P),uAz:new LAk(P),cGI:new fgk(P),xCR:new ucb(P)},S.wL);var H=this;this.TEST_ONLY={getExperimentIds:function(){return H.options.kTL.concat(H.vQk).sort(function(K,C){return K-C})}};
this.options=S;this.service=P;this.qDX=!N.hzd;this.flushDebouncer=new zb9(function(){return void H.service.snapshotAndFlush()},S.ebO);
this.addOnDisposeCallback(function(){H.flushDebouncer.dispose();H.qDX&&H.service.dispose()});
(this.vQk=b.slice()).sort(_.ULO)};
_.F(QNU,XAO);QNU.prototype.mJ=function(){Alk(this.flushDebouncer)};var Bmu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Bmu,_.rc);_.lfO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(_.lfO,_.rc);var po=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,0,po.messageId)};
_.F(po,_.rc);var EUc=_.N$e(po);po.messageId="bfkj";var bE_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(bE_,_.rc);var pA9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(pA9,_.rc);var Y2c=_.ui(pA9);_.GB=function(){var N=this;this.promise=new Promise(function(b,S){N.resolve=b;N.reject=S})};_.h1=function(N){_.E5.call(this);var b=this;this.abw=Math.floor(Math.random()*200);this.cBh=new pA9;if("challenge"in N&&EUc(N.challenge)){var S=_.xp(N.challenge,4,void 0,JV);var P=_.xp(N.challenge,5,void 0,JV);_.xp(N.challenge,7,void 0,JV)&&(this.cBh=Y2c(_.xp(N.challenge,7,void 0,JV)))}else S=N.program,P=N.globalName;this.addOnDisposeCallback(function(){var M,l,u;return _.r(function(J){if(J.nextAddress==1)return J.yield(b.ohL,2);M=J.yieldResult;l=M.hvG;(u=l)==null||u();_.Zd(J)})});
this.f4=xXU(N.zIh||{},this.cBh);_.QS(this,this.f4);var H=new _.GB;this.ohL=H.promise;this.f4.hR("t");var K=this.f4.share(),C=new ZMz(K,"t"),G=function(M,l,u,J){if(!b.f4.isDisposed()){var Z="k";l?Z="h":u&&(Z="u");Z!=="k"?J!==0&&(b.f4.hR(Z),b.f4.qz(Z,M)):b.abw<=0?(b.f4.hR(Z),b.f4.qz(Z,M),b.abw=Math.floor(Math.random()*200)):b.abw--}},a=function(M,l,u,J){Promise.resolve().then(function(){C.done();
K.mJ();K.dispose();H.resolve({rQg:M,hvG:l,ht7:u,pYi:J})})};
if(!_.Ps[P])throw this.f4.logError(25),Error("Ca");if(!_.Ps[P].a)throw this.f4.logError(26),Error("Da");try{var R=_.Ps[P].a;P=[];for(var n=[],d=SlE(this.cBh),m=0;m<d.length;m++)P.push(d[m]),n.push(1);var k=PQI(this.cBh);for(d=0;d<k.length;d++)P.push(k[d]),n.push(2);this.mg2=_.O(R(S,a,!0,N.bSX,G,[P,n],_.xp(this.cBh,5),!1)).next().value;this.abQ=H.promise.then(function(){})}catch(M){throw this.f4.logError(28),M;
}};
_.F(_.h1,_.E5);_.h1.prototype.snapshot=function(N){if(this.isDisposed())throw Error("Ea");this.f4.hR("n");var b=this.f4.share();return this.ohL.then(function(S){var P=S.rQg;return new Promise(function(H){var K=new ZMz(b,"n");P(function(C){K.done();b.s8D(C.length);b.mJ();b.dispose();H(C)},[N.gW,
N.xoQ,N.wXI,N.qcA])})})};
_.h1.prototype.zoN=function(N){this.ohL.then(function(b){var S;(S=b.ht7)==null||S(N)})};
_.h1.prototype.usQ=function(N,b){return this.ohL.then(function(S){var P;return(P=S.pYi)==null?void 0:P(N,b,!1)})};
_.h1.prototype.djD=function(){return this.f4.share()};var ylV=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ylV,_.rc);var QeL=_.N$e(ylV);var IHV=function(){this.promises={};this.klK=null},DBS=function(){IHV.instance||(IHV.instance=new IHV);
return IHV.instance},gU9=function(N,b){return V_Z(N,_.k0(b,Bmu,1,JV),_.k0(b,_.lfO,2,JV),_.xp(b,3,void 0,JV))},V_Z=function(N,b,S,P){if(!b&&!S)return Promise.resolve();
if(!P)return ZE_(b,S);var H;(H=N.promises)[P]||(H[P]=new Promise(function(K,C){ZE_(b,S).then(function(){N.klK=P;K()},function(G){delete N.promises[P];
C(G)})}));
return N.promises[P]};var eb9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(eb9,_.rc);var $BV=function(N,b){return _.IJ(N,1,b)},hbz=function(N,b){return _.IJ(N,2,b)};var qO=function(N){_.E5.call(this);var b=this;this.options=N;this.k5n=new _.GB;this.abQ=this.k5n.promise;this.nPN=new _.GB;this.zFw=1;this.rw1=new _.GB;this.jvF=[];this.isPaused=!1;this.gmk=N.gmk||function(){};
this.tTN=new juc(xXU(N.zIh||{}));q2b(this,N.rz,N.kUw,N.u2s,N.oE2,Object.assign({},wAS,N.xMN||{}));this.addOnDisposeCallback(function(){return void N7c(b)})};
_.F(qO,_.E5);qO.prototype.snapshot=function(N){var b=this;return _.r(function(S){switch(S.nextAddress){case 1:if(b.isDisposed())throw Error("Ea");if(b.x0||b.va1){S.jumpTo(2);break}return S.yield(b.nPN.promise,2);case 2:if(!b.x0){S.jumpTo(4);break}return S.yield(b.x0.snapshot(N),5);case 5:return S.return(S.yieldResult);case 4:throw b.va1;}})};
qO.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.sz&&this.sz.pause())};
qO.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.sz&&this.sz.resume())};
qO.prototype.checkForRefresh=function(){var N=this;return _.r(function(b){if(N.isDisposed())throw Error("Ea");var S;if(S=N.sz)S=N.sz,S.isExpired()?(bEl(S),S.resolver(0),S=!0):S=!1,S=!S;return S?b.jumpTo(0):b.yield(N.rw1.promise,0)})};
var PQ9=function(N){var b;return _.r(function(S){if(N.isDisposed())throw Error("Ea");(b=N.sz)==null||SlO(b);return S.yield(N.rw1.promise,0)})},N7c=function(N){N.va1=Error("Ga");
N.nPN.resolve();HEu(N.k5n.promise);N.k5n.reject(Error("Ga"));N.tTN.dispose();Promise.all(N.jvF).then(function(){var S;return _.r(function(P){(S=N.x0)==null||S.dispose();N.x0=void 0;_.Zd(P)})});
N.jvF=[];var b;(b=N.sz)==null||SlO(b);HEu(N.rw1.promise);N.rw1.reject(Error("Ga"))};
qO.prototype.zoN=function(N){var b,S;(b=this.x0)==null||(S=b.zoN)==null||S.call(b,N)};
qO.prototype.usQ=function(N,b){var S,P,H;return(H=(S=this.x0)==null?void 0:(P=S.usQ)==null?void 0:P.call(S,N,b))!=null?H:Promise.resolve()};
var HEz=function(N,b){var S=N.gmk;N.gmk=function(){S();b()}},sNk=function(N,b){N.isDisposed()||(N.x0=b,N.tTN.update(b.djD()),N.nPN.resolve(),N.k5n.resolve(void 0),N.gmk())};
qO.prototype.handleError=function(N){if(!this.isDisposed()){this.va1=N;this.nPN.resolve();var b,S;(S=(b=this.options).pNz)==null||S.call(b,N)}};
var K6N=function(N,b){b&&(Promise.all(N.jvF).then(function(){return void b.dispose()}),N.jvF=[])},wC=function(N,b){N.zFw=b;
var S,P;(P=(S=N.options).wnE)==null||P.call(S,b)},vbV=function(N){N.isDisposed()||(N.rw1.resolve(),N.rw1=new _.GB)},q2b=function(N,b,S,P,H,K){P=P===void 0?DBS():P;
H=H===void 0?Promise.resolve(void 0):H;var C,G,a,R,n,d,m,k,M,l,u,J;_.r(function(Z){switch(Z.nextAddress){case 1:return Z.yield(0,3);case 3:G=null;if(!C){Z.jumpTo(6);break}wC(N,7);_.u4(Z,7);return Z.yield(z6(C.snapshot({}),K.zqU,function(){return Promise.resolve("E:CTO")}),9);
case 9:G=Z.yieldResult;_.su(Z,6);break;case 7:_.UE(Z),G="E:UCE";case 6:a=void 0,R=C?K.qXX:K.gAD,n=new LT(R,K.mok,K.hng,K.wQa),d=1;case 10:if(!(d<=K.maxAttempts)){Z.jumpTo(12);break}if(d===1){Z.jumpTo(13);break}wC(N,0);N.sz=new Nm(n.getValue(),K.xvN,K.bbi);return Z.yield(N.sz.promise,14);case 14:m=Z.yieldResult,N.sz=void 0,m===1?(d=1,n.reset()):d8V(n);case 13:_.u4(Z,15);k=void 0;if(S){k=S;Z.jumpTo(17);break}wC(N,5);M=P.klK;return Z.yield(z6(OE9(b,M,G),K.h5F,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:k=Z.yieldResult;case 17:return wC(N,3),Z.yield(z6(gU9(P,k),K.dhj,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return wC(N,8),Z.yield(H,20);case 20:return l=new _.h1({challenge:k,zIh:N.options.zIh,bSX:N.options.bSX}),Z.yield(z6(l.abQ,K.fyw,function(){return Promise.reject(Error("Ja"))}),21);
case 21:a=l;Z.jumpTo(12);break;case 15:u=_.UE(Z),N.handleError(u),vbV(N);case 11:d++;Z.jumpTo(10);break;case 12:if(N.isDisposed()){Z.jumpTo(5);break}a&&(S=void 0,K6N(N,C),C=a,sNk(N,a),vbV(N));wC(N,2);N.sz=new Nm(K.z7g,K.xvN,K.bbi);N.isPaused&&N.sz.pause();return Z.yield(N.sz.promise,22);case 22:N.sz=void 0;if(N.isDisposed()){Z.jumpTo(5);break}Z.jumpTo(3);break;case 5:(J=C)==null||J.dispose(),_.Zd(Z)}})};
qO.prototype.djD=function(){return this.tTN.share()};
var wAS={z7g:432E5,xvN:3E5,bbi:10,zqU:1E4,h5F:3E4,dhj:3E4,fyw:6E4,gAD:1E3,qXX:6E4,mok:6E5,hng:.25,wQa:2,maxAttempts:10},Nm=function(N,b,S){var P=this;this.endTimeMs=0;this.zhL=null;this.isPaused=!1;this.tick=function(){if(!P.isPaused){var H=P.endTimeMs-Date.now();H<=P.dYG?(P.zhL=null,P.resolver(0)):P.zhL=setTimeout(P.tick,Math.min(H,P.xvN))}};
this.xvN=b;this.dYG=S;this.promise=new Promise(function(H){P.resolver=H});
CQb(this,N)},CQb=function(N,b){N.endTimeMs=Date.now()+b;
N.tick()};
Nm.prototype.pause=function(){this.isPaused||(this.isPaused=!0,bEl(this))};
Nm.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var SlO=function(N){bEl(N);N.endTimeMs=0;N.isPaused=!1;N.resolver(1)},bEl=function(N){N.zhL&&(clearTimeout(N.zhL),N.zhL=null)};
Nm.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var GW4,Az9=(GW4=Math.imul)!=null?GW4:function(N,b){return N*b|0},Ag=[196,
200,224,18],bA=function(N,b,S){S=S===void 0?[]:S;this.maxItems=N;this.ib=b===void 0?0:b;this.nE=S},rzd=function(N){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!b)return new bA(N);var S=b.split(",");if(S.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bA(N);b=S.slice(1);b.length===1&&b[0]===""&&(b=[]);S=Number(S[0]);return isNaN(S)||S<0||S>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bA(N)):new bA(N,S,b)};
bA.prototype.serialize=function(){return String(this.ib)+","+this.nE.join()};
bA.prototype.insert=function(N,b){var S=void 0;if(this.nE[this.ib]!==N){var P=this.nE.indexOf(N);P!==-1?(this.nE.splice(P,1),P<this.ib&&this.ib--,this.nE.splice(this.ib,0,N)):(S=this.nE[this.ib],this.nE[this.ib]=N)}this.ib=(this.ib+1)%this.maxItems;N=jNu("iU5q-!O9@$",this.serialize());S&&N&&b(S);return N};
var czE=function(N,b){this.amD=b;try{var S=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){S=!1}S&&(this.index=rzd(N))},ahZ=function(N,b,S,P,H){var K=N.index?_.eA(N.amD,function(){return Yle(N.index,EbO(b),S,P,H)},"W"):"u";
N.amD.aBQ(K)},RtN=function(N,b,S){var P=_.O(N.index?_.eA(N.amD,function(){return yzo(EbO(b),S)},"R"):["u"]),H=P.next().value;
P=P.next().value;N.amD.dmH(H);return P};var W69={toString:function(N){var b=[],S=0;N-=-2147483648;b[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(N%52);for(N=Math.floor(N/52);N>0;)b[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(N%62),N=Math.floor(N/62);return b.join("")}};var mX4=function(N){N=nbE(N);for(var b=2654435769,S=2654435769,P=314159265,H=N.length,K=H,C=0,G=function(){b-=S;b-=P;b^=P>>>13;S-=P;S-=b;S^=b<<8;P-=b;P-=S;P^=S>>>13;b-=S;b-=P;b^=P>>>12;S-=P;S-=b;S^=b<<16;P-=b;P-=S;P^=S>>>5;b-=S;b-=P;b^=P>>>3;S-=P;S-=b;S^=b<<10;P-=b;P-=S;P^=S>>>15};K>=12;K-=12,C+=12)b+=dXO(N,C),S+=dXO(N,C+4),P+=dXO(N,C+8),G();
P+=H;switch(K){case 11:P+=N[C+10]<<24;case 10:P+=N[C+9]<<16;case 9:P+=N[C+8]<<8;case 8:S+=N[C+7]<<24;case 7:S+=N[C+6]<<16;case 6:S+=N[C+5]<<8;case 5:S+=N[C+4];case 4:b+=N[C+3]<<24;case 3:b+=N[C+2]<<16;case 2:b+=N[C+1]<<8;case 1:b+=N[C]}G();return W69.toString(P)},nbE=function(N){for(var b=[],S=0;S<N.length;S++)b.push(N.charCodeAt(S));
return b},dXO=function(N,b){return N[b]+(N[b+1]<<8)+(N[b+2]<<16)+(N[b+3]<<24)};var Sy=function(N){_.E5.call(this);this.tK=N;this.eYH=new _.GB};
_.F(Sy,_.E5);var kWl=function(N,b){var S=setTimeout(function(){N.eYH.resolve()},b);
N.addOnDisposeCallback(function(){return void clearTimeout(S)})};
Sy.prototype.wik=function(N,b){var S=this.cE(N);b==null||b(S);return _.eA(this.tK,function(){return _.iL(S,2)},this.mT1)};
var T74=function(N,b,S,P){return _.eA(N.tK,function(){return S?N.wik(b,P):N.cE(b,P)},N.qU6)},tUN=function(N,b,S,P){Sy.call(this,N);
this.x1w=b;this.zGj=S;this.qU6="m";this.mT1="x";this.u2j=0;kWl(this,P)};
_.F(tUN,Sy);tUN.prototype.cE=function(N,b){var S=this;this.tK.hR(this.qU6);++this.u2j>=this.zGj&&this.eYH.resolve();var P=N();N=_.eA(this.tK,function(){return S.x1w(P)},"C");
if(N===void 0)throw new Rd(17,"YNJ:Undefined");if(!(N instanceof Uint8Array))throw new Rd(18,"ODM:Invalid");b==null||b(N);return N};
var MUS=function(N,b,S){Sy.call(this,N);this.qES=b;this.qU6="f";this.mT1="z";kWl(this,S)};
_.F(MUS,Sy);MUS.prototype.cE=function(){return this.qES};
var F6N=function(N,b,S){Sy.call(this,N);this.gDS=b;this.qU6="w";this.mT1="z";kWl(this,S)};
_.F(F6N,Sy);F6N.prototype.cE=function(){var N=this;return _.eA(this.tK,function(){return _.qL(N.gDS)},"d")};
F6N.prototype.wik=function(){return this.gDS};
var B74=function(N,b){Sy.call(this,N);this.error=b;this.qU6="e";this.mT1="y"};
_.F(B74,Sy);var lh9=function(N,b){var S=(b(N.error.message)+":"+b(N.error.stack)).substring(0,2048);b=S.length+1;S=Ih9(S);var P=new Uint8Array(4+S.length);P.set([42,b&127|128,b>>7,N.error.code]);P.set(S,4);return P};
B74.prototype.cE=function(){if(this.rl1)return this.rl1;this.rl1=lh9(this,function(N){return"_"+mX4(N)});
return lh9(this,function(N){return N})};
var L6O=function(N,b,S){Sy.call(this,N);this.oQG=b;this.clientState=S;this.qU6="S";this.mT1="q"};
_.F(L6O,Sy);L6O.prototype.cE=function(){var N=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],S=b.concat([this.oQG&255,this.clientState],[N>>24&255,N>>16&255,N>>8&255,N&255]);N=new Uint8Array(2+S.length);N[0]=34;N[1]=S.length;N.set(S,2);S=N.subarray(2);for(var P=b=b.length;P<S.length;++P)S[P]^=S[P%b];this.tK.tBD(this.clientState);return N};var fhk={sEi:3E4,kmS:2E4},P0=function(N){_.E5.call(this);var b=this;this.nEN=new _.GB;this.eID=0;this.eX=void 0;this.state=2;this.vm=N.vm;this.rz=N.rz;this.xMN=Object.assign({},fhk,N.xMN||{});this.aZ=N.vm.djD();var S;this.onError=(S=N.onError)!=null?S:function(){};
this.lMA=N.lMA||!1;if(uQN(N)){var P=this.vm;this.bRR=function(){return PQ9(P).catch(function(C){C=b.reportError(new Rd(b.o8?20:32,"TRG:Disposed",C));b.eX=C;var G;(G=b.o8)==null||G.dispose();b.o8=void 0;b.nEN.reject(C)})};
HEz(P,function(){return void QNb(b)});
P.zFw===2&&QNb(this)}else this.bRR=N.fHI,QNb(this);var H=this.aZ.share();H.hR("o");var K=new ZMz(H,"o");this.nEN.promise.then(function(){K.done();H.mJ();H.dispose()},function(){return void H.dispose()});
this.addOnDisposeCallback(function(){b.o8?(b.o8.dispose(),b.o8=void 0):b.eX?b.aZ.mJ():(b.eX=b.reportError(new Rd(32,"TNP:Disposed")),b.aZ.mJ(),b.nEN.reject(b.eX))});
_.QS(this,this.aZ)};
_.F(P0,_.E5);P0.prototype.bGG=function(){return this.nEN.promise};
var xXb=function(N,b){if(!(b instanceof Rd))if(b instanceof _.yy){var S=Error(b.toString());S.stack=b.stack;b=new Rd(11,"EBH:Error",S)}else b=new Rd(12,"BSO:Unknown",b);return N.reportError(b)},QNb=function(N){var b,S,P,H,K,C,G,a,R,n,d,m,k,M,l;
return _.r(function(u){switch(u.nextAddress){case 1:b=void 0;N.eID++;S=new _.GB;N.vm instanceof qO&&N.vm.jvF.push(S.promise);if(!N.lMA){u.jumpTo(2);break}P=new _.GB;setTimeout(function(){return void P.resolve()});
return u.yield(P.promise,2);case 2:return H=N.aZ.share(),_.u4(u,4,5),N.state=5,K={},C=[],u.yield(z6(N.vm.snapshot({gW:K,wXI:C}),N.xMN.kmS,function(){return Promise.reject(new Rd(15,"MDA:Timeout"))}),7);
case 7:G=u.yieldResult;if(N.isDisposed())throw new Rd(N.o8?20:32,"MDA:Disposed");a=C[0];N.state=6;return u.yield(z6(obE(N.rz,G),N.xMN.sEi,function(){return Promise.reject(new Rd(10,"BWB:Timeout"))}),8);
case 8:R=u.yieldResult;if(N.isDisposed())throw new Rd(N.o8?20:32,"BWB:Disposed");N.state=7;b=_.eA(H,function(){var Z=iEb(N,R,S,a);Z.eYH.promise.then(function(){return void N.bRR()});
return Z},"i");
case 5:_.xw(u);H.dispose();_.Jv(u,6);break;case 4:n=_.UE(u);(d=b)==null||d.dispose();if(!N.eX){m=xXb(N,n);S.resolve();var J;if(J=N.vm instanceof qO&&N.eID<2)a:if(n instanceof Rd)J=n.code!==32&&n.code!==20&&n.code!==10;else{if(n instanceof _.yy)switch(n.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return k=(1+Math.random()*.25)*(N.o8?6E4:1E3),M=setTimeout(function(){return void N.bRR()},k),N.addOnDisposeCallback(function(){return void clearTimeout(M)}),u.return();
N.eX=m}H.logError(N.o8?13:14);N.nEN.reject(N.eX);return u.return();case 6:N.state=8,N.eID=0,(l=N.o8)==null||l.dispose(),N.o8=b,N.nEN.resolve(),_.Zd(u)}})},iEb=function(N,b,S,P){var H=G4c(b,2)*1E3;
if(H<=0)throw new Rd(31,"TTM:Invalid");if(_.xp(b,4))return new F6N(N.aZ,_.xp(b,4),H);if(!G4c(b,3))return new MUS(N.aZ,Vpb(_.MW(b,1)),H);if(!P)throw new Rd(4,"PMD:Undefined");P=P(Vpb(_.MW(b,1)));if(!(P instanceof Function))throw new Rd(16,"APF:Failed");N.pMS=Math.floor((Date.now()+H)/1E3);N=new tUN(N.aZ,P,G4c(b,3),H);N.addOnDisposeCallback(function(){return void S.resolve()});
return N};
P0.prototype.cE=function(N){return Jzb(this,Object.assign({},N),!1)};
P0.prototype.wik=function(N){return Jzb(this,Object.assign({},N),!0)};
P0.prototype.jED=function(N){if(N>150)return!1;try{return this.cache=new czE(N,this.aZ),!0}catch(b){return this.reportError(new Rd(22,"GBJ:init",b)),!1}};
P0.prototype.reportError=function(N){this.aZ.logError(N.code);this.onError(N);return N};
var UXk=function(N,b){b=b instanceof Rd?b:new Rd(5,"TVD:error",b);return N.reportError(b)},Jzb=function(N,b,S){try{if(N.isDisposed())throw new Rd(21,"BNT:disposed");
if(!N.o8&&N.eX)throw N.eX;var P,H;return(H=(P=ZEl(N,b,S))!=null?P:jNz(N,b,S))!=null?H:ztE(N,b,S)}catch(K){if(!b.jRR)throw UXk(N,K);return Azc(N,S,K)}},ZEl=function(N,b,S){var P;
return(P=N.o8)==null?void 0:T74(P,function(){return XqZ(N,b)},S,function(H){var K;
if(N.o8 instanceof tUN&&((K=b.v3)==null?0:K.n4B))try{var C;(C=N.cache)==null||ahZ(C,XqZ(N,b),H,b.v3.a9D,N.pMS-120)}catch(G){N.reportError(new Rd(24,"ELX:write",G))}})},jNz=function(N,b,S){var P;
if((P=b.v3)!=null&&P.pLl)try{var H,K=(H=N.cache)==null?void 0:RtN(H,XqZ(N,b),b.v3.a9D);return K?S?_.eA(N.aZ,function(){return _.iL(K,2)},"a"):K:void 0}catch(C){N.reportError(new Rd(23,"RXO:read",C))}},ztE=function(N,b,S){var P={stack:[],
error:void 0,hasError:!1};try{if(!b.o4w)throw new Rd(29,"SDF:notready");return T74(gda(P,new L6O(N.aZ,0,N.state)),function(){return XqZ(N,b)},S)}catch(H){P.error=H,P.hasError=!0}finally{eje(P)}},Azc=function(N,b,S){var P={stack:[],
error:void 0,hasError:!1};try{var H=UXk(N,S);return T74(gda(P,new B74(N.aZ,H)),function(){return[]},b)}catch(K){P.error=K,P.hasError=!0}finally{eje(P)}},XqZ=function(N,b){return b.h16?b.h16:b.gW?_.eA(N.aZ,function(){return b.h16=Ih9(b.gW)},"c"):[]},uQN=function(N){return j9(function(b){if(!uM(b))return!1;
for(var S=_.O(Object.entries(N)),P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;if(!(P in b)){if(H.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!H(b[P]))return!1}return!0})}({vm:function(N){return j9(function(b){return b instanceof N})}(qO)},"");var EbZ=function(){var N=_.KX();this.JSC$10147_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Mf("cookie_enabled"),Mf("cookie_3p_enabled"),_.Bv("browser"))};
EbZ.prototype.increment=function(N,b,S){this.JSC$10147_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",N,b,S)};
var sLo=function(){var N=_.KX();this.JSC$10171_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Fc("tick"),Mf("from_st_cookie"))};
sLo.prototype.increment=function(N,b){this.JSC$10171_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",N,b)};
var pq9=function(){var N=_.KX();this.JSC$10177_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Bv("status"))};
pq9.prototype.increment=function(N){this.JSC$10177_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",N)};
var Yld=function(){var N=_.KX();this.JSC$10180_streamzService=N;N.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Bv("stage"),Mf("is_using_ytd_player"),Mf("has_expandable_tiles"))};
Yld.prototype.increment=function(N,b,S){this.JSC$10180_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",N,b,S)};
var yz4=function(){var N=_.KX();this.JSC$10183_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/response_signature",_.Bv("check_status"))};
yz4.prototype.increment=function(N){this.JSC$10183_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/web/response_signature",N)};
var Ihc=function(){var N=_.KX();this.JSC$10186_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Bv("sig"),Fc("de"))};
Ihc.prototype.increment=function(N,b){this.JSC$10186_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/web/e_sig_log",N,b)};
var DXZ=function(){var N=_.KX();this.JSC$10189_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Bv("sig"),Fc("de"))};
DXZ.prototype.increment=function(N,b){this.JSC$10189_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/web/e_sig_en",N,b)};
_.VUc=function(){var N=_.KX();this.JSC$10192_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Bv("action"))};
_.VUc.prototype.increment=function(N){this.JSC$10192_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/web/enforcement_intent",N)};var H0=window;var gb9=(new Date).getTime();_.Vm.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Vm.createSet("action","cite","data","formaction","href","manifest","poster","src");var etZ=function(N){this.servicePromise_=N;N.then((0,_.pT)(function(){},this),function(){},this)},$Xl=function(N,b,S){N.servicePromise_.then(function(P){var H=P[b];
if(!H)throw Error("Ka`"+b);return H.apply(P,S)})},wqE=function(N,b,S){for(var P=Array(arguments.length-2),H=2;H<arguments.length;H++)P[H-2]=arguments[H];
H=htV(N,b).then(function(K){return K.apply(null,P)},function(K){K=Error("La`"+b+"`"+N+"`"+K,{cause:K});
delete qlN[b];return _.f7(K)});
return new etZ(H)},qlN={},htV=function(N,b){var S=qlN[b];
if(S)return S;S=(S=_.hl(b))?_.KA(S):(new _.u5(function(P,H){var K=(new U7(document)).createElement("SCRIPT");K.async=!0;_.cM(K,_.ZB(Dtb(N)));K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||P()};
K.onerror=function(C){H(Error("Ma`"+b+"`"+N,{cause:C}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(K)})).then(function(){var P=_.hl(b);
if(!P)throw Error("Na`"+b+"`"+N);return P});
return qlN[b]=S};var Nkc={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},SuE=function(){var N=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=DXO(function(){return _.r(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):b.yield(bhl(N),2);N.rsaForList.length>
0&&document.addEventListener("click",N.requestAccessForHelpPanel);_.Zd(b)})});
this.requestAccessForHelpPanel=function(){if(!(N.rsaForPromises.length>0)){for(var b=_.O(N.rsaForList),S=b.next();!S.done;S=b.next()){S=S.value;try{N.rsaForPromises.push(document.requestStorageAccessFor(S))}catch(P){}}Promise.all(N.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){N.reset()})}}};
SuE.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var bhl=function(N){var b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:b=_.O(Object.values(Nkc)),S=b.next();case 2:if(S.done){K.jumpTo(0);break}P=S.value;_.u4(K,5);return K.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:P}),7);case 7:H=K.yieldResult;H.state!=="granted"&&N.rsaForList.push(P);_.su(K,3);break;case 5:_.UE(K);K.jumpTo(0);break;case 3:S=b.next(),K.jumpTo(2)}})};(new SuE).initialize();var PSZ=function(N){this.JSC$10206_loader_=N};
PSZ.prototype.startHelp=function(N){$Xl(this.JSC$10206_loader_,"startHelp",arguments)};
PSZ.prototype.JSC$10208_loadChatSupport=function(N){$Xl(this.JSC$10206_loader_,"loadChatSupport",arguments)};
var sBE=function(N,b){b=b||{};N=wqE(Hhd,"help.service.Lazy.create",N,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en-US".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri||
b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new PSZ(N)},Hhd=new qN(SWf,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var KVz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(KVz,_.rc);var v0l=_.ui(KVz);var Oh9=[0,_.wV,Va,SaO];_.CSz=new function(N,b,S,P){this.configType=N;this.flagName=S;this.defaultValue=P;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var r2E=function(){this.retriever=_.aN().resolve(GiO)};_.N5={get payments(){return window.payments}};gbp(Node);gbp(Element);var c29=gbp(HTMLElement);gbp(SVGElement);var ajO,R6E,v0,WV9;ajO=function(N){return typeof N.className=="string"?N.className:N.getAttribute&&N.getAttribute("class")||""};
R6E=function(N){return N.classList?N.classList:ajO(N).match(/\S+/g)||[]};
_.s0=function(N,b){typeof N.className=="string"?N.className=b:N.setAttribute&&N.setAttribute("class",b)};
_.K8=function(N,b){return N.classList?N.classList.contains(b):_.Z_(R6E(N),b)};
_.DN=function(N,b){if(N.classList)N.classList.add(b);else if(!_.K8(N,b)){var S=ajO(N);_.s0(N,S+(S.length>0?" "+b:b))}};
v0=function(N,b){if(N.classList)Array.prototype.forEach.call(b,function(H){_.DN(N,H)});
else{var S={};Array.prototype.forEach.call(R6E(N),function(H){S[H]=!0});
Array.prototype.forEach.call(b,function(H){S[H]=!0});
b="";for(var P in S)b+=b.length>0?" "+P:P;_.s0(N,b)}};
_.Iq=function(N,b){N.classList?N.classList.remove(b):_.K8(N,b)&&_.s0(N,Array.prototype.filter.call(R6E(N),function(S){return S!=b}).join(" "))};
WV9=function(N,b){N.classList?Array.prototype.forEach.call(b,function(S){_.Iq(N,S)}):_.s0(N,Array.prototype.filter.call(R6E(N),function(S){return!_.Z_(b,S)}).join(" "))};var n0E=function(N){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=N.document},kid=function(N,b){dYO(N);
var S=document.createElement("div"),P;(P=b.parentNode)==null||P.insertBefore(S,b);S.tabIndex=0;S.id="fc-focus-trap-pre-div";S=document.createElement("div");var H;(H=b.parentNode)==null||H.insertBefore(S,b.nextSibling);S.tabIndex=0;S.id="fc-focus-trap-post-div";var K=mYd(N,b),C=mYd(N,b,!0);K&&C&&(N.focusChangeHandler=function(){var G=N.document.activeElement;if(G)if(_.Sj(b,G))N.previouslyFocusedElement=G;else if(G===N.document.activeElement)switch(N.previouslyFocusedElement){case K:C.focus();N.previouslyFocusedElement=
C;break;default:K.focus(),N.previouslyFocusedElement=K}},N.document.addEventListener("focus",N.focusChangeHandler,!0),N.document.addEventListener("focusin",N.focusChangeHandler))},dYO=function(N){N.focusChangeHandler&&(document.removeEventListener("focus",N.focusChangeHandler,!0),document.removeEventListener("focusin",N.focusChangeHandler),N.focusChangeHandler=null);
var b;(b=document.getElementById("fc-focus-trap-pre-div"))==null||b.remove();var S;(S=document.getElementById("fc-focus-trap-post-div"))==null||S.remove()},Tkd=function(N,b,S,P,H){S=S===void 0?!0:S;
var K;H=(K=H===void 0?null:H)!=null?K:mYd(N,b,P===void 0?!1:P);H!==null&&(H.focus(),S&&kid(N,b))};
n0E.prototype.disableButton=function(N,b){b=b===void 0?null:b;N.disabled=!0;b&&_.DN(N,b)};
var mYd=function(N,b,S){S=S===void 0?!1:S;if(TGf(b)&&!S)return b;var P=S?[].slice.call(b.children,0).reverse():b.children;P=_.O(P);for(var H=P.next();!H.done;H=P.next())if(H=H.value,c29(H)&&(H=mYd(N,H,S)))return H;return TGf(b)&&S?b:null};var tHN=function(N){this.originalBodyOverflow="";this.JSC$10233_domHelper=zn(N);var b;this.isScrollingEnabled=((b=this.JSC$10233_domHelper.JSC$9559_document_.body)==null?void 0:b.style.overflow)!=="hidden"};
tHN.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10233_domHelper.JSC$9559_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Km(_.yS,_.E5);_.v=_.yS.prototype;_.v.JSC$10236_id_=0;_.v.disposeInternal=function(){_.yS.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10234_listener_;delete this.handler_};
_.v.start=function(N){this.stop();this.JSC$10236_id_=Yj(this.callback_,N!==void 0?N:this.JSC$10234_interval_)};
_.v.stop=function(){this.isActive()&&_.Ps.clearTimeout(this.JSC$10236_id_);this.JSC$10236_id_=0};
_.v.fire=function(){this.stop();this.JSC$10236_doAction_()};
_.v.isActive=function(){return this.JSC$10236_id_!=0};
_.v.JSC$10236_doAction_=function(){this.JSC$10236_id_=0;this.JSC$10234_listener_&&this.JSC$10234_listener_.call(this.handler_)};_.fx=function(N){_.E5.call(this);this.handler_=N;this.JSC$10237_keys_={}};
_.Km(_.fx,_.E5);var MHk=[];_.fx.prototype.listen=function(N,b,S,P){Array.isArray(b)||(b&&(MHk[0]=b.toString()),b=MHk);for(var H=0;H<b.length;H++){var K=_.lH(N,b[H],S||this.handleEvent,P||!1,this.handler_||this);if(!K)break;this.JSC$10237_keys_[K.key]=K}return this};
_.fx.prototype.listenOnce=function(N,b,S,P){return FV9(this,N,b,S,P)};
var FV9=function(N,b,S,P,H,K){if(Array.isArray(S))for(var C=0;C<S.length;C++)FV9(N,b,S[C],P,H,K);else{b=TS(b,S,P||N.handleEvent,H,K||N.handler_||N);if(!b)return N;N.JSC$10237_keys_[b.key]=b}return N};
_.fx.prototype.unlisten=function(N,b,S,P,H){if(Array.isArray(b))for(var K=0;K<b.length;K++)this.unlisten(N,b[K],S,P,H);else if(N=Iqz(N,b,S||this.handleEvent,_.D_(P)?!!P.capture:!!P,H||this.handler_||this))Mu(N),delete this.JSC$10237_keys_[N.key];return this};
_.fx.prototype.removeAll=function(){_.Vm.forEach(this.JSC$10237_keys_,function(N,b){this.JSC$10237_keys_.hasOwnProperty(b)&&Mu(N)},this);
this.JSC$10237_keys_={}};
_.fx.prototype.disposeInternal=function(){_.fx.superClass_.disposeInternal.call(this);this.removeAll()};
_.fx.prototype.handleEvent=function(){throw Error("Oa");};_.Km(Ic,_.E5);Ic.prototype.connect=function(N){N&&N()};
Ic.prototype.isConnected=function(){return!0};
Ic.prototype.registerService=function(N,b,S){this.services_[N]={callback:b,objectPayload:!!S}};
Ic.prototype.getService=function(N,b){var S=this.services_[N];return S?S:this.defaultService_?{callback:_.Rm(this.defaultService_,N),objectPayload:_.D_(b)}:null};
var Bkd=function(N,b){if(b&&typeof N==="string")try{return JSON.parse(N)}catch(S){return null}else if(!b&&typeof N!=="string")return(0,_.Id)(N);return N};
Ic.prototype.disposeInternal=function(){Ic.superClass_.disposeInternal.call(this);delete this.services_;delete this.defaultService_};/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var O0=function(N,b){this.sequence_=[];this.onCancelFunction_=N;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
O0.prototype.cancel=function(N){if(this.fired_)this.result_ instanceof O0&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;N?b.cancel(N):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new C8(this))}};
O0.prototype.continue_=function(N,b){this.blocked_=!1;ljN(this,N,b)};
var ljN=function(N,b,S){N.fired_=!0;N.result_=S;N.hadError_=!b;LVN(N)},un9=function(N){if(N.fired_){if(!N.silentlyCanceled_)throw new fjN(N);
N.silentlyCanceled_=!1}};
O0.prototype.callback=function(N){un9(this);ljN(this,!0,N)};
O0.prototype.errback=function(N){un9(this);ljN(this,!1,N)};
var QB9=function(N,b,S){GI(N,b,null,S)};
O0.prototype.finally=function(N){var b=this;return xY4(new Promise(function(S,P){GI(b,function(H){N();S(H)},function(H){N();
P(H)})}))};
var GI=function(N,b,S,P){var H=N.fired_;H||(b===S?b=S=Ur(b):(b=Ur(b),S=Ur(S)));N.sequence_.push([b,S,P]);H&&LVN(N)};
O0.prototype.then=function(N,b,S){var P,H,K=new _.u5(function(C,G){H=C;P=G});
GI(this,H,function(C){C instanceof C8?K.cancel():P(C);return o0V},this);
return K.then(N,b,S)};
wWz(O0);var ihb=function(N,b){b instanceof O0?QB9(N,(0,_.pT)(b.branch,b)):QB9(N,function(){return b})};
O0.prototype.branch=function(N){var b=new O0;GI(this,b.callback,b.errback,b);N&&(b.parent_=this,this.branches_++);return b};
O0.prototype.isError=function(N){return N instanceof Error};
var J2d=function(N){return vl(N.sequence_,function(b){return typeof b[1]==="function"})},o0V={},LVN=function(N){if(N.unhandledErrorId_&&N.fired_&&J2d(N)){var b=N.unhandledErrorId_,S=UYN[b];
S&&(_.Ps.clearTimeout(S.JSC$10254_id_),delete UYN[b]);N.unhandledErrorId_=0}N.parent_&&(N.parent_.branches_--,delete N.parent_);b=N.result_;for(var P=S=!1;N.sequence_.length&&!N.blocked_;){var H=N.sequence_.shift(),K=H[0],C=H[1];H=H[2];if(K=N.hadError_?C:K)try{var G=K.call(H||N.defaultScope_,b);G===o0V&&(G=void 0);G!==void 0&&(N.hadError_=N.hadError_&&(G==b||N.isError(G)),N.result_=b=G);if(N8k(b)||typeof _.Ps.Promise==="function"&&b instanceof _.Ps.Promise)P=!0,N.blocked_=!0}catch(a){b=a,N.hadError_=
!0,J2d(N)||(S=!0)}}N.result_=b;P&&(G=(0,_.pT)(N.continue_,N,!0),P=(0,_.pT)(N.continue_,N,!1),b instanceof O0?(GI(b,G,P),b.blocking_=!0):b.then(G,P));S&&(b=new Zh9(b),UYN[b.JSC$10254_id_]=b,N.unhandledErrorId_=b.JSC$10254_id_)},xY4=function(N){var b=new O0;
N.then(function(S){b.callback(S)},function(S){b.errback(S)});
return b},fjN=function(){_.NL.call(this)};
_.Km(fjN,_.NL);fjN.prototype.message="Deferred has already fired";fjN.prototype.name="AlreadyCalledError";var C8=function(){_.NL.call(this)};
_.Km(C8,_.NL);C8.prototype.message="Deferred was canceled";C8.prototype.name="CanceledError";var Zh9=function(N){this.JSC$10254_id_=_.Ps.setTimeout((0,_.pT)(this.throwError,this),0);this.JSC$10254_error_=N};
Zh9.prototype.throwError=function(){delete UYN[this.JSC$10254_id_];throw this.JSC$10254_error_;};
var UYN={};var jBV={1:"NativeMessagingTransport"},z6d=["pu","lru","pru","lpu","ppu"],XKZ=function(){for(var N=10,b=A29,S=b.length,P="";N-- >0;)P+=b.charAt(Math.floor(Math.random()*S));return P},A29="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var r_=function(N){_.E5.call(this);this.JSC$10257_domHelper_=N||zn()};
_.Km(r_,_.E5);r_.prototype.transportType=0;r_.prototype.getWindow=function(){return this.JSC$10257_domHelper_.getWindow()};
r_.prototype.getName=function(){return jBV[String(this.transportType)]||""};var c0=function(N,b,S,P,H){r_.call(this,S);this.JSC$10260_channel_=N;this.protocolVersion_=H||2;this.peerHostname_=b||"*";this.JSC$10260_eventHandler_=new _.fx(this);this.maybeAttemptToConnectTimer_=new _.Lx(100,this.getWindow());this.oneSidedHandshake_=!!P;this.setupAckReceived_=new O0;this.setupAckSent_=new O0;this.JSC$10260_connected_=new O0;this.endpointId_=XKZ();this.peerEndpointId_=null;this.oneSidedHandshake_?E0N(this.JSC$10260_channel_)==1?ihb(this.JSC$10260_connected_,this.setupAckReceived_):
ihb(this.JSC$10260_connected_,this.setupAckSent_):(ihb(this.JSC$10260_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ihb(this.JSC$10260_connected_,this.setupAckSent_));QB9(this.JSC$10260_connected_,this.notifyConnected_,this);this.JSC$10260_connected_.callback(!0);this.JSC$10260_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Km(c0,r_);c0.prototype.peerProtocolVersion_=null;c0.prototype.initialized_=!1;c0.prototype.transportType=1;var pK9={};c0.prototype.sendTimerId_=0;
var IjV=function(N){var b=N.event_.data;if(typeof b!=="string")return!1;var S=b.indexOf("|"),P=b.indexOf(":");if(S==-1||P==-1)return!1;var H=b.substring(0,S);S=b.substring(S+1,P);b=b.substring(P+1);if(P=aE[H])return P.xpcDeliver(S,b,N.event_.origin),!0;P=YuN(b)[0];for(var K in aE){var C=aE[K];if(E0N(C)==1&&!C.isConnected()&&S=="tp"&&(P=="SETUP"||P=="SETUP_NTPV2")&&y24(C,N.event_.origin))return delete aE[C.name],C.name=H,aE[H]=C,C.xpcDeliver(S,b),!0}return!1},DY9=function(N){N.protocolVersion_!=2||
N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=2||N.send("tp","SETUP_NTPV2,"+N.endpointId_);
N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=1||N.send("tp","SETUP")},VHE=function(N,b){if(N.protocolVersion_!=2||N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=2||b!=2){if(N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=1||b!=1)return;
N.send("tp","SETUP_ACK")}else N.send("tp","SETUP_ACK_NTPV2");N.setupAckSent_.fired_||N.setupAckSent_.callback(!0)},g0N=function(N,b){b>N.peerProtocolVersion_&&(N.peerProtocolVersion_=b);
N.peerProtocolVersion_==1&&(N.setupAckSent_.fired_||N.oneSidedHandshake_||N.setupAckSent_.callback(!0),N.peerEndpointId_=null)};
_.v=c0.prototype;_.v.connect=function(){var N=this.getWindow(),b=_.gI(N),S=pK9[b];typeof S!=="number"&&(S=0);S==0&&_.lH(N.postMessage?N:N.document,"message",IjV,!1,c0);pK9[b]=S+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.v.maybeAttemptToConnect_=function(){var N=E0N(this.JSC$10260_channel_)==0;this.oneSidedHandshake_&&N||this.JSC$10260_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),DY9(this))};
_.v.send=function(N,b){var S=this.JSC$10260_channel_.peerWindowObject_;S&&(this.send=function(P,H){var K=this,C=this.JSC$10260_channel_.name;this.sendTimerId_=Yj(function(){K.sendTimerId_=0;try{var G=S.postMessage?S:S.document;G.postMessage&&G.postMessage(C+"|"+P+":"+H,K.peerHostname_)}catch(a){}},0)},this.send(N,b))};
_.v.notifyConnected_=function(){var N=this.JSC$10260_channel_,b=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;N.isConnected()||N.connectionDelay_&&N.connectionDelay_.isActive()||(N.state_=2,_.Wv(N.connectionDelay_),b!==void 0?(N.connectionDelay_=new _.yS(N.connectCb_,b),N.connectionDelay_.start()):(N.connectionDelay_=null,N.connectCb_()))};
_.v.disposeInternal=function(){if(this.initialized_){var N=this.getWindow(),b=_.gI(N),S=pK9[b];pK9[b]=S-1;S==1&&_.iW(N.postMessage?N:N.document,"message",IjV,!1,c0)}this.sendTimerId_&&(_.Ps.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Wv(this.JSC$10260_eventHandler_);delete this.JSC$10260_eventHandler_;_.Wv(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10260_connected_.cancel();delete this.JSC$10260_connected_;delete this.send;c0.superClass_.disposeInternal.call(this)};
var YuN=function(N){N=N.split(",");N[1]=N[1]||null;return N};var $Yz;_.RE=function(N){if(N.getValues&&typeof N.getValues=="function")return N.getValues();if(typeof Map!=="undefined"&&N instanceof Map||typeof Set!=="undefined"&&N instanceof Set)return Array.from(N.values());if(typeof N==="string")return N.split("");if(_.yu(N)){for(var b=[],S=N.length,P=0;P<S;P++)b.push(N[P]);return b}return _.Vm.getValues(N)};
_.e6S=function(N){if(N.getKeys&&typeof N.getKeys=="function")return N.getKeys();if(!N.getValues||typeof N.getValues!="function"){if(typeof Map!=="undefined"&&N instanceof Map)return Array.from(N.keys());if(!(typeof Set!=="undefined"&&N instanceof Set)){if(_.yu(N)||typeof N==="string"){var b=[];N=N.length;for(var S=0;S<N;S++)b.push(S);return b}return _.Vm.getKeys(N)}}};
$Yz=function(N,b,S){if(N.forEach&&typeof N.forEach=="function")N.forEach(b,S);else if(_.yu(N)||typeof N==="string")Array.prototype.forEach.call(N,b,S);else for(var P=_.e6S(N),H=_.RE(N),K=H.length,C=0;C<K;C++)b.call(S,H[C],P&&P[C],N)};var R$U,tB,FF,P5E,h6E,wKz,quz,Svk,NeZ;
_.DV=function(N,b){this.JSC$10265_domain_=this.userInfo_=this.scheme_="";this.JSC$10265_port_=null;this.fragment_=this.JSC$10265_path_="";this.JSC$10265_ignoreCase_=!1;var S;N instanceof _.DV?(this.JSC$10265_ignoreCase_=b!==void 0?b:N.JSC$10265_ignoreCase_,_.W0(this,N.scheme_),this.userInfo_=N.userInfo_,_.n8(this,N.JSC$10265_domain_),_.d_(this,N.JSC$10265_port_),_.mr(this,N.getPath()),_.ka(this,N.JSC$10265_queryData_.clone()),_.TI(this,N.fragment_)):N&&(S=_.sl(String(N)))?(this.JSC$10265_ignoreCase_=
!!b,_.W0(this,S[1]||"",!0),this.userInfo_=tB(S[2]||""),_.n8(this,S[3]||"",!0),_.d_(this,S[4]),_.mr(this,S[5]||"",!0),_.ka(this,S[6]||"",!0),_.TI(this,S[7]||"",!0)):(this.JSC$10265_ignoreCase_=!!b,this.JSC$10265_queryData_=new _.Mm(null,this.JSC$10265_ignoreCase_))};
_.DV.prototype.toString=function(){var N=[],b=this.scheme_;b&&N.push(FF(b,h6E,!0),":");var S=this.JSC$10265_domain_;if(S||b=="file")N.push("//"),(b=this.userInfo_)&&N.push(FF(b,h6E,!0),"@"),N.push(_.w8(S).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S=this.JSC$10265_port_,S!=null&&N.push(":",String(S));if(S=this.getPath())this.JSC$10265_domain_&&S.charAt(0)!="/"&&N.push("/"),N.push(FF(S,S.charAt(0)=="/"?quz:wKz,!0));(S=this.JSC$10265_queryData_.toString())&&N.push("?",S);(S=this.fragment_)&&N.push("#",
FF(S,NeZ));return N.join("")};
_.DV.prototype.resolve=function(N){var b=this.clone(),S=!!N.scheme_;S?_.W0(b,N.scheme_):S=!!N.userInfo_;S?b.userInfo_=N.userInfo_:S=!!N.JSC$10265_domain_;S?_.n8(b,N.JSC$10265_domain_):S=N.JSC$10265_port_!=null;var P=N.getPath();if(S)_.d_(b,N.JSC$10265_port_);else if(S=!!N.JSC$10265_path_){if(P.charAt(0)!="/")if(this.JSC$10265_domain_&&!this.JSC$10265_path_)P="/"+P;else{var H=b.getPath().lastIndexOf("/");H!=-1&&(P=b.getPath().slice(0,H+1)+P)}H=P;if(H==".."||H==".")P="";else if(_.Go(H,"./")||_.Go(H,
"/.")){P=_.Ka(H,"/");H=H.split("/");for(var K=[],C=0;C<H.length;){var G=H[C++];G=="."?P&&C==H.length&&K.push(""):G==".."?((K.length>1||K.length==1&&K[0]!="")&&K.pop(),P&&C==H.length&&K.push("")):(K.push(G),P=!0)}P=K.join("/")}else P=H}S?_.mr(b,P):S=N.JSC$10265_queryData_.toString()!=="";S?_.ka(b,N.JSC$10265_queryData_.clone()):S=!!N.fragment_;S&&_.TI(b,N.fragment_);return b};
_.DV.prototype.clone=function(){return new _.DV(this)};
_.W0=function(N,b,S){N.scheme_=S?tB(b,!0):b;N.scheme_&&(N.scheme_=N.scheme_.replace(/:$/,""));return N};
_.n8=function(N,b,S){N.JSC$10265_domain_=S?tB(b,!0):b;return N};
_.d_=function(N,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Pa`"+b);N.JSC$10265_port_=b}else N.JSC$10265_port_=null;return N};
_.DV.prototype.getPath=function(){return this.JSC$10265_path_};
_.mr=function(N,b,S){N.JSC$10265_path_=S?tB(b,!0):b;return N};
_.ka=function(N,b,S){b instanceof _.Mm?(N.JSC$10265_queryData_=b,bvz(N.JSC$10265_queryData_,N.JSC$10265_ignoreCase_)):(S||(b=FF(b,Svk)),N.JSC$10265_queryData_=new _.Mm(b,N.JSC$10265_ignoreCase_));return N};
_.vW=function(N,b,S){N.JSC$10265_queryData_.set(b,S);return N};
_.KQ=function(N,b){return N.JSC$10265_queryData_.get(b)};
_.TI=function(N,b,S){N.fragment_=S?tB(b):b;return N};
_.B0=function(N){_.vW(N,"zx",HW());return N};
_.sB=function(N,b){return N instanceof _.DV?N.clone():new _.DV(N,b)};
R$U=function(N,b){N instanceof _.DV||(N=_.sB(N));b instanceof _.DV||(b=_.sB(b));return N.resolve(b)};
tB=function(N,b){return N?b?decodeURI(N.replace(/%25/g,"%2525")):decodeURIComponent(N):""};
FF=function(N,b,S){return typeof N==="string"?(N=encodeURI(N).replace(b,P5E),S&&(N=N.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N):null};
P5E=function(N){N=N.charCodeAt(0);return"%"+(N>>4&15).toString(16)+(N&15).toString(16)};
h6E=/[#\/\?@]/g;wKz=/[#\?:]/g;quz=/[#\?]/g;Svk=/[#\?@]/g;NeZ=/#/g;_.Mm=function(N,b){this.count_=this.keyMap_=null;this.encodedQuery_=N||null;this.JSC$10266_ignoreCase_=!!b};
_.lA=function(N){N.keyMap_||(N.keyMap_=new Map,N.count_=0,N.encodedQuery_&&YnO(N.encodedQuery_,function(b,S){N.add(r7(b),S)}))};
_.v=_.Mm.prototype;_.v.getCount=function(){_.lA(this);return this.count_};
_.v.add=function(N,b){_.lA(this);this.encodedQuery_=null;N=L8(this,N);var S=this.keyMap_.get(N);S||this.keyMap_.set(N,S=[]);S.push(b);this.count_+=1;return this};
_.v.remove=function(N){_.lA(this);N=L8(this,N);return this.keyMap_.has(N)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(N).length,this.keyMap_.delete(N)):!1};
_.v.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.v.isEmpty=function(){_.lA(this);return this.count_==0};
_.v.containsKey=function(N){_.lA(this);N=L8(this,N);return this.keyMap_.has(N)};
_.v.containsValue=function(N){var b=this.getValues();return _.Z_(b,N)};
_.v.forEach=function(N,b){_.lA(this);this.keyMap_.forEach(function(S,P){S.forEach(function(H){N.call(b,H,P,this)},this)},this)};
_.v.getKeys=function(){_.lA(this);for(var N=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),S=[],P=0;P<b.length;P++)for(var H=N[P],K=0;K<H.length;K++)S.push(b[P]);return S};
_.v.getValues=function(N){_.lA(this);var b=[];if(typeof N==="string")this.containsKey(N)&&(b=b.concat(this.keyMap_.get(L8(this,N))));else{N=Array.from(this.keyMap_.values());for(var S=0;S<N.length;S++)b=b.concat(N[S])}return b};
_.v.set=function(N,b){_.lA(this);this.encodedQuery_=null;N=L8(this,N);this.containsKey(N)&&(this.count_-=this.keyMap_.get(N).length);this.keyMap_.set(N,[b]);this.count_+=1;return this};
_.v.get=function(N,b){if(!N)return b;N=this.getValues(N);return N.length>0?String(N[0]):b};
_.Hvl=function(N,b,S){N.remove(b);S.length>0&&(N.encodedQuery_=null,N.keyMap_.set(L8(N,b),_.pa(S)),N.count_+=S.length)};
_.Mm.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var N=[],b=Array.from(this.keyMap_.keys()),S=0;S<b.length;S++){var P=b[S],H=_.w8(P);P=this.getValues(P);for(var K=0;K<P.length;K++){var C=H;P[K]!==""&&(C+="="+_.w8(P[K]));N.push(C)}}return this.encodedQuery_=N.join("&")};
_.Mm.prototype.clone=function(){var N=new _.Mm;N.encodedQuery_=this.encodedQuery_;this.keyMap_&&(N.keyMap_=new Map(this.keyMap_),N.count_=this.count_);return N};
var L8=function(N,b){b=String(b);N.JSC$10266_ignoreCase_&&(b=b.toLowerCase());return b},bvz=function(N,b){b&&!N.JSC$10266_ignoreCase_&&(_.lA(N),N.encodedQuery_=null,N.keyMap_.forEach(function(S,P){var H=P.toLowerCase();
P!=H&&(this.remove(P),_.Hvl(this,H,S))},N));
N.JSC$10266_ignoreCase_=b};
_.Mm.prototype.extend=function(N){for(var b=0;b<arguments.length;b++)$Yz(arguments[b],function(S,P){this.add(P,S)},this)};var f8=function(N,b){Ic.call(this);for(var S=0,P;P=z6d[S];S++)if(P in N&&!/^https?:\/\//.test(N[P]))throw Error("Ra`"+N[P]+"`"+P);this.cfg_=N;this.name=this.cfg_.cn||XKZ();this.JSC$10261_domHelper_=b||zn();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.fx(this);N.lpu=N.lpu||EoS(this.JSC$10261_domHelper_.getWindow().location.href)+"/robots.txt";N.ppu=N.ppu||EoS(N.pu||"")+"/robots.txt";aE[this.name]=this;Iqz(window,"unload",s09)||TS(window,"unload",s09)};
_.Km(f8,Ic);var KjS=RegExp("^%*tp$"),vh4=RegExp("^%+tp$");_.v=f8.prototype;_.v.connectionDelay_=null;_.v.peerWindowDeferred_=null;_.v.transport_=null;_.v.state_=1;_.v.isConnected=function(){return this.state_==2};
_.v.peerWindowObject_=null;_.v.iframeElement_=null;_.v.getConfig=function(){return this.cfg_};
_.v.connect=function(N){this.connectCb_=N||_.Qo;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?QB9(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.v.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10261_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var N=this.iframeElement_.contentWindow;N||(N=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=N}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10261_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new c0(this,this.cfg_.ph,this.JSC$10261_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.v.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Wv(this.transport_);this.connectCb_=this.transport_=null;_.Wv(this.connectionDelay_);this.connectionDelay_=null};
_.v.send=function(N,b){if(this.isConnected()){try{var S=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(H){S=!1}if(S){_.D_(b)&&(b=(0,_.Id)(b));S=this.transport_;var P=S.send;KjS.test(N)&&(N="%"+N);N=N.replace(/[%:|]/g,encodeURIComponent);P.call(S,N,b)}else this.close()}};
_.v.xpcDeliver=function(N,b,S){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.pT)(this.xpcDeliver,this,N,b,S));else if(y24(this,S)&&!this.isDisposed()&&this.state_!=3)if(N&&N!="tp")this.isConnected()&&(N=N.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),N=vh4.test(N)?N.substring(1):N,N=this.getService(N,b))&&(b=Bkd(b,N.objectPayload),b!=null&&N.callback(b));else switch(N=this.transport_,S=YuN(b),b=S[1],S[0]){case "SETUP_ACK":g0N(N,1);N.setupAckReceived_.fired_||N.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":N.protocolVersion_==2&&(g0N(N,2),N.setupAckReceived_.fired_||N.setupAckReceived_.callback(!0));break;case "SETUP":g0N(N,1);VHE(N,1);break;case "SETUP_NTPV2":N.protocolVersion_==2&&(S=N.peerProtocolVersion_,g0N(N,2),VHE(N,2),S!=1&&N.peerEndpointId_==null||N.peerEndpointId_==b||DY9(N),N.peerEndpointId_=b)}};
var E0N=function(N){var b=N.cfg_.role;return typeof b==="number"?b:window.parent==N.peerWindowObject_?1:0},y24=function(N,b){var S=N.cfg_.ph;
return _.Oe(b==null?"":String(b))||_.Oe(S==null?"":String(S))||b==N.cfg_.ph};
f8.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete aE[this.name];_.Wv(this.peerLoadHandler_);delete this.peerLoadHandler_;f8.superClass_.disposeInternal.call(this)};
var s09=function(){for(var N in aE)_.Wv(aE[N])},aE={};var C59=function(N,b){this.win=N;this.allowAdsHttpEndpoint=b;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10275_domHelper=zn(N);this.scrollManager=new tHN(N);this.accessibilityManager=new n0E(N);Ovz(this)},Ovz=function(N){var b=function(){N.allowAdsPopup&&N.allowAdsPopup.style.setProperty("display","none","important");
N.wallElement.style.setProperty("display","","important");dYO(N.accessibilityManager);Tkd(N.accessibilityManager,N.wallElement.querySelector(".fc-dialog-container"),!1,!1,N.wallElement.querySelector(".fc-button-whitelist"));N.scrollManager.enableScrolling()};
N.allowAdsPopup=N.JSC$10275_domHelper.JSC$9561_createDom("DIV",{"class":"fc-whitelist-root"});N.allowAdsPopup.style.setProperty("display","none","important");N.JSC$10275_domHelper.appendChild(N.JSC$10275_domHelper.JSC$9559_document_.body,N.allowAdsPopup);var S=N.JSC$10275_domHelper.JSC$9561_createDom("DIV",{"class":"fc-dialog-overlay"});N.JSC$10275_domHelper.appendChild(N.allowAdsPopup,S);var P=N.JSC$10275_domHelper.JSC$9561_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:b});N.JSC$10275_domHelper.appendChild(N.allowAdsPopup,
P);S=N.JSC$10275_domHelper.JSC$9561_createDom("IFRAME");S.className="fc-whitelist-dialog";S.frameBorder="0";S.id="fc-whitelist-iframe";S.tabIndex="0";_.SW(S,N.allowAdsHttpEndpoint);N.JSC$10275_domHelper.appendChild(P,S);P={};P.pu=_.jo(N.allowAdsHttpEndpoint).toString();P.tp=1;P.cn="fc-whitelist-channel";P.ifrid=S.id;P.osh=!0;N.allowAdsCrossPageChannel=new f8(P);N.allowAdsCrossPageChannel.registerService("close",b);N.allowAdsCrossPageChannel.registerService("refresh",function(){N.win.location.reload()});
N.allowAdsCrossPageChannel.registerService("resize",function(H){if(H){var K=N.allowAdsPopup.querySelector(".fc-whitelist-dialog");H.width&&K.style.setProperty("width",H.width,"important");H.height&&K.style.setProperty("height",H.height,"important")}},!0);
N.allowAdsCrossPageChannel.connect()};
C59.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10275_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var uA=window,Q2=document,Gx9=uA.location,rd9=function(){},cdE=/\[native code\]/,xa=function(N,b,S){return N[b]=N[b]||S},anS=function(N){N=N.sort();
for(var b=[],S=void 0,P=0;P<N.length;P++){var H=N[P];H!=S&&b.push(H);S=H}return b},oE=function(){var N;
if((N=Object.create)&&cdE.test(N))N=N(null);else{N={};for(var b in N)N[b]=void 0}return N},iA=xa(uA,"gapi",{});var JB={};JB=xa(uA,"___jsl",oE());xa(JB,"I",0);xa(JB,"hel",10);var RAc=function(){var N=Gx9.href;if(JB.dpo)var b=JB.h;else{b=JB.h;var S=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),P=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(N=N&&(S.exec(N)||P.exec(N)))try{b=decodeURIComponent(N[2])}catch(H){}}return b},Wjk=function(N){var b=xa(JB,"PQ",[]);
JB.PQ=[];var S=b.length;if(S===0)N();else for(var P=0,H=function(){++P===S&&N()},K=0;K<S;K++)b[K](H)},nh9=function(N){return xa(xa(JB,"H",oE()),N,oE())};var U0=function(N){this.JSC$10277_obj_=N};
U0.prototype.value=function(){return this.JSC$10277_obj_};
U0.prototype.getWidth=function(){return this.JSC$10277_obj_.width};
U0.prototype.getHeight=function(){return this.JSC$10277_obj_.height};
U0.prototype.getStyle=function(){return this.JSC$10277_obj_.style};var dNN=function(N){this.JSC$10280_obj_=N||{}};
_.v=dNN.prototype;_.v.value=function(){return this.JSC$10280_obj_};
_.v.setUrl=function(N){this.JSC$10280_obj_.url=N;return this};
_.v.getUrl=function(){return this.JSC$10280_obj_.url};
_.v.getStyle=function(){return this.JSC$10280_obj_.style};
_.v.getId=function(){return this.JSC$10280_obj_.id};
_.v.getContext=function(){return this.JSC$10280_obj_.context};
var mN9=function(N){N.JSC$10280_obj_.attributes=N.JSC$10280_obj_.attributes||{};return new U0(N.JSC$10280_obj_.attributes)};var kxN=function(){dNN.apply(this,arguments)};
_.F(kxN,dNN);var Te4=xa(JB,"perf",oE());xa(Te4,"g",oE());var tdz=xa(Te4,"i",oE());xa(Te4,"r",[]);oE();oE();var Fjz=function(N,b,S){b&&b.length>0&&(b=Mdz(b),S&&S.length>0&&(b+="___"+Mdz(S)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),S=b,b=xa(tdz,"_p",oE()),xa(b,S,oE())[N]=(new Date).getTime(),b=Te4.r,typeof b==="function"?b(N,"_p",S):b.push([N,"_p",S]))},Mdz=function(N){return N.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Bec=oE(),ln9=[],ZJ=function(N){throw Error("Ua`"+N);};
ln9.push(["jsl",function(N){for(var b in N)if(Object.prototype.hasOwnProperty.call(N,b)){var S=N[b];typeof S=="object"?JB[b]=xa(JB,b,[]).concat(S):xa(JB,b,S)}if(b=N.u)N=xa(JB,"us",[]),N.push(b),(b=/^https:(.*)$/.exec(b))&&N.push("http:"+b[1])}]);
var Lj9=/^(\/[a-zA-Z0-9_\-]+)+$/,fnz=[/\/amp\//,/\/amp$/,/^\/amp$/],uCc=/^[a-zA-Z0-9\-_\.,!]+$/,Q0c=/^gapi\.loaded_[0-9]+$/,xN9=/^[a-zA-Z0-9,._-]+$/,UNN=function(N,b,S,P,H){var K=N.split(";"),C=K.shift(),G=Bec[C],a=null;G?a=G(K,b,S,P):ZJ("no hint processor for: "+C);a||ZJ("failed to generate load url");b=a;S=b.match(oh4);(P=b.match(ivl))&&P.length===1&&Jd4.test(b)&&S&&S.length===1||ZJ("failed sanity: "+N);try{N="?";if(H&&H.length>0){JbY(H);var R=H.join(",");a=a+"?le="+R;N="&"}if(JB.rol){var n=JB.ol;
n&&n.length&&(a=""+a+N+"ol="+n.length)}}catch(d){}return a},zAZ=function(N,b,S,P){N=ZvN(N);
Q0c.test(S)||ZJ("invalid_callback");b=j0E(b);P=P&&P.length?j0E(P):null;var H=function(K){return encodeURIComponent(K).replace(/%2C/g,",")};
return[encodeURIComponent(N.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",H(N.version),"/m=",H(b),P?"/exm="+H(P):"","/rt=j/sv=1/d=1/ed=1",N.activeMods?"/am="+H(N.activeMods):"",N.resourceSig?"/rs="+H(N.resourceSig):"",N.zcms?"/t="+H(N.zcms):"","/cb=",H(S)].join("")},ZvN=function(N){N.charAt(0)!=="/"&&ZJ("relative path");
for(var b=N.substring(1).split("/"),S=[];b.length;){N=b.shift();if(!N.length||N.indexOf(".")==0)ZJ("empty/relative directory");else if(N.indexOf("=")>0){b.unshift(N);break}S.push(N)}N={};for(var P=0,H=b.length;P<H;++P){var K=b[P].split("="),C=decodeURIComponent(K[0]),G=decodeURIComponent(K[1]);K.length==2&&C&&G&&(N[C]=N[C]||G)}b="/"+S.join("/");Lj9.test(b)||ZJ("invalid_prefix");S=0;for(P=fnz.length;S<P;++S)fnz[S].test(b)&&ZJ("invalid_prefix");S=Ad9(N,"k",!0);P=Ad9(N,"am");H=Ad9(N,"rs");N=Ad9(N,"t");
return{pathPrefix:b,version:S,activeMods:P,resourceSig:H,zcms:N}},j0E=function(N){for(var b=[],S=0,P=N.length;S<P;++S){var H=N[S].replace(/\./g,"_").replace(/-/g,"_");
xN9.test(H)&&b.push(H)}return b.join(",")},Ad9=function(N,b,S){N=N[b];
!N&&S&&ZJ("missing: "+b);if(N){if(uCc.test(N))return N;ZJ("invalid: "+b)}return null},Jd4=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ivl=/\/cb=/g,oh4=/\/\//g;
Bec.m=function(N,b,S,P){(N=N[0])||ZJ("missing_hint");return"https://apis.google.com"+zAZ(N,b,S,P)};
var Xld=decodeURI("%73cript"),EhO=/^[-+_0-9\/A-Za-z]+={0,2}$/,plS=function(N,b){for(var S=[],P=0;P<N.length;++P){var H=N[P],K;if(K=H){a:{for(K=0;K<b.length;K++)if(b[K]===H)break a;K=-1}K=K<0}K&&S.push(H)}return S},Yv9=function(){var N=JB.nonce;
return N!==void 0?N&&N===String(N)&&N.match(EhO)?N:JB.nonce=null:Q2.querySelector?(N=Q2.querySelector("script[nonce]"))?(N=N.nonce||N.getAttribute("nonce")||"",N&&N===String(N)&&N.match(EhO)?JB.nonce=N:JB.nonce=null):null:null},DNl=function(N){if(Q2.readyState!="loading")yd4(N);
else{var b=Yv9(),S="";b!==null&&(S=' nonce="'+b+'"');N="<"+Xld+' src="'+encodeURI(N)+'"'+S+"></"+Xld+">";Q2.write(Inb?Inb.createHTML(N):N)}},yd4=function(N){var b=Q2.createElement(Xld);
b.setAttribute("src",Inb?Inb.createScriptURL(N):N);N=Yv9();N!==null&&b.setAttribute("nonce",N);b.async="true";(N=Q2.getElementsByTagName(Xld)[0])?N.parentNode.insertBefore(b,N):(Q2.head||Q2.body||Q2.documentElement).appendChild(b)},ghk=function(N,b,S){Vd9(function(){var P=b===RAc()?xa(iA,"_",oE()):oE();
P=xa(nh9(b),"_",P);N(P)},S)},RFE=function(N,b){var S=b||{};
typeof b=="function"&&(S={},S.callback=b);var P=(b=S)&&b._c;if(P)for(var H=0;H<ln9.length;H++){var K=ln9[H][0],C=ln9[H][1];C&&Object.prototype.hasOwnProperty.call(P,K)&&C(P[K],N,b)}b=[];N?b=N.split(":"):S.features&&(b=S.features);if(!(N=S.h)&&(N=RAc(),!N))throw Error("Va");eAk(b||[],S,N)},eAk=function(N,b,S){N=anS(N)||[];
var P=b.callback,H=b.config,K=b.timeout,C=b.ontimeout,G=b.onerror,a=void 0;typeof G=="function"&&(a=G);var R=null,n=!1;if(K&&!C||!K&&C)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";G=xa(nh9(S),"r",[]).sort();var d=xa(nh9(S),"L",[]).sort(),m=JB.le||[],k=[].concat(G),M=function(D,Y){if(n)return 0;uA.clearTimeout(R);d.push.apply(d,l);var V=((iA||{}).config||{}).update;V?V(H):H&&xa(JB,"cu",[]).push(H);if(Y){Fjz("me0",D,k);try{ghk(Y,S,a)}finally{Fjz("me1",D,k)}}return 1};
K>0&&(R=uA.setTimeout(function(){n=!0;C()},K));
var l=plS(N,d);if(l.length){l=plS(N,G);var u=xa(JB,"CP",[]),J=u.length;u[J]=function(D){if(!D)return 0;Fjz("ml1",l,k);var Y=function(g){u[J]=null;M(l,D)&&Wjk(function(){P&&P();g()})},V=function(){var g=u[J+1];
g&&g()};
J>0&&u[J-1]?u[J]=function(){Y(V)}:Y(V)};
if(l.length){var Z="loaded_"+JB.I++;iA[Z]=function(D){u[J](D);iA[Z]=null};
N=UNN(S,l,"gapi."+Z,G,m);G.push.apply(G,l);Fjz("ml0",l,k);b.sync||uA.___gapisync?DNl(N):yd4(N)}else u[J](rd9)}else M(l)&&P&&P()},$Nz;
var hAS=null,qvb=_.Ps.trustedTypes;if(qvb&&qvb.createPolicy){try{hAS=qvb.createPolicy("goog#gapi",{createHTML:VSf,createScript:VSf,createScriptURL:VSf})}catch(N){_.Ps.console&&_.Ps.console.error(N.message)}$Nz=hAS}else $Nz=hAS;var Inb=$Nz,Vd9=function(N,b){if(JB.hee&&JB.hel>0)try{return N()}catch(S){b&&b(S),JB.hel--,RFE("debug_error",function(){try{window.___jsl.hefn(S)}catch(P){throw S;}})}else try{return N()}catch(S){throw b&&b(S),S;
}},wlO=iA.load;
wlO&&xa(JB,"ol",[]).push(wlO);iA.load=function(N,b){return Vd9(function(){return RFE(N,b)})};var wqY;var SXd=function(){var N=Nb4;var b=b||[];this.moduleId_=N||null;this.dependencies_=[];btc(this,b)};
SXd.prototype.toString=function(){return"MpJwZc"};
SXd.prototype.getModuleId=function(){return this.moduleId_};
var btc=function(N,b){var S=!1;S=S===void 0?!1:S;N.dependencies_=N.dependencies_.concat(b);if(S){if(!N.moduleId_)throw Error("Wa`MpJwZc");b.map(function(P){return P.getModuleId()}).forEach(function(P){Nk9(function(H){H.addExtraEdge(N.moduleId_,P)})})}};var Nb4;Nb4="MpJwZc";var IYb=new SXd;var zMO=new _.fF("a"),VgL=new _.fF("c"),DMI=function(N,b,S){_.uW.call(this,N,b);this.node=b;this.kind=S};
_.F(DMI,_.uW);var PvO=function(){this.JSC$10293_keys_={};this.urlPrefix_="";this.JSC$10293_queryData_={}};
PvO.prototype.toString=function(){var N=this.urlPrefix_+Ht9(this),b=_.LE(this.JSC$10293_queryData_),S="";b!=""&&(S="?"+b);return N+S};
var s59=function(N){N=jy(N,"md");return!!N&&N!=="0"},Ht9=function(N){var b=[],S=function(P){N.JSC$10293_keys_[P]!==void 0&&b.push(P+"="+N.JSC$10293_keys_[P])};
s59(N)?(S("md"),S("k"),S("ck"),S("am"),S("rs"),S("gssmodulesetproto"),S("slk"),S("dti")):(S("sdch"),S("k"),S("ck"),S("am"),S("amc"),S("rt"),"d"in N.JSC$10293_keys_||zI(N,"d","0"),S("d"),S("exm"),S("excm"),(N.JSC$10293_keys_.excm||N.JSC$10293_keys_.exm)&&b.push("ed=1"),S("im"),S("dg"),S("sm"),jy(N,"br")!="1"&&jy(N,"br")!="0"||S("br"),S("br-d"),jy(N,"rb")=="1"&&S("rb"),jy(N,"zs")!=="0"&&S("zs"),Keb(N)!==""&&S("wt"),S("gssmodulesetproto"),S("ujg"),S("sp"),S("rs"),S("cb"),S("ee"),S("slk"),S("dti"),S("m"));
return b.join("/")},jy=function(N,b){return N.JSC$10293_keys_[b]?N.JSC$10293_keys_[b]:null},zI=function(N,b,S){S?N.JSC$10293_keys_[b]=S:delete N.JSC$10293_keys_[b]},v79=function(N,b){N.urlPrefix_=b},OtS=function(N,b){b&&b.length>0?(b.sort(),zI(N,"exm",b.join(","))):zI(N,"exm",null)},CvE=function(N,b){b&&b.length>0?(b.sort(),zI(N,"excm",b.join(","))):zI(N,"excm",null)},GQ4=function(N){return(N=jy(N,"m"))?N.split(","):[]},Keb=function(N){switch(jy(N,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},rA4=function(N,b){var S=Object.keys(b).filter(function(P){return!!Object.keys(b[P]).length}).map(function(P){var H=Object.keys(b[P]);
H.length>1&&H.sort();return P+":"+H.join(",")});
S.sort();zI(N,"ee",S.join(";"))},VHY=function(N){var b=jy(N,"ee");
if(!b)return{};N={};b=_.O(b.split(";"));for(var S=b.next();!S.done;S=b.next()){var P=_.O(S.value.split(":"));S=P.next().value;P=P.next().value;N[S]={};P=_.O(P.split(","));for(var H=P.next();!H.done;H=P.next())N[S][H.value]=!0}return N},cA9=function(N){delete N.JSC$10293_keys_.m;
delete N.JSC$10293_keys_.exm;delete N.JSC$10293_keys_.ed};
PvO.prototype.clone=function(){var N=new PvO;N.JSC$10293_keys_=Object.assign({},this.JSC$10293_keys_);N.urlPrefix_=this.urlPrefix_;N.JSC$10293_queryData_=Object.assign({},this.JSC$10293_queryData_);return N};
var g0f=function(N,b){b=b===void 0?!0:b;var S=a79(N),P=new PvO,H=_.sl(S)[5];_.Vm.forEach(Rac,function(C){var G=H.match("/"+C+"=([^/]+)");G&&zI(P,C,G[1])});
var K="";K=N.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";v79(P,N.substr(0,N.indexOf(K)+K.length));if(!b)return P;(N=_.sl(S)[6]||null)&&YnO(N,function(C,G){P.JSC$10293_queryData_[C]=G});
return P},y2o=function(N){N=_.Bq(a79(N));
return N===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(N)?/\/k=/.test(N):!1},a79=function(N){return N.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?N.substr(65):N},Rac={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",
GSS_MODULE_SET_PROTO:"gssmodulesetproto",USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},Wel=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.AB=function(N){this.JSC$10305_id_=N;this.opts={}};
_.AB.prototype.JSC$10307_setLabel=function(N){this.label_=N||void 0;return this};
_.AB.prototype.addUploadMetadata=function(N,b){var S=this.opts.data||{};S[N]=b;this.opts.data=S;return this};
var n7c=function(N){var b=_.Vm.filter(N.opts,function(S){return S!==null});
b=_.Vm.isEmpty(b)?null:b;N=[N.JSC$10305_id_,N.label_,b];b=ufE(N);return N=N.slice(0,b+1)};
_.AB.prototype.toString=function(){var N=n7c(this);return"("+_.gY(N,function(b){return JSON.stringify(b)}).join(",")+")"};
_.AB.prototype.getId=function(){return this.JSC$10305_id_};
_.AB.prototype.getOptions=function(){return _.Vm.clone(this.opts)};var XF=function(){_.AB.call(this,"image-search")};
_.F(XF,_.AB);XF.prototype.setSize=function(N){this.opts.imgsz=N;return this};
XF.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
XF.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};var E0=function(){_.AB.call(this,"maps")};
_.F(E0,_.AB);E0.prototype.setZoom=function(N){this.opts.zoom=N;return this};
E0.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
E0.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};_.p8=function(){_.AB.call(this,"photos")};
_.F(_.p8,_.AB);_.p8.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
_.p8.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};var Ya=function(){_.AB.call(this,"url")};
_.F(Ya,_.AB);var dc9=function(){var N=new Ya;N.opts.type="video";N.opts.site="youtube.com";return N};
Ya.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
Ya.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};var y2=function(){_.AB.call(this,"video-search")};
_.F(y2,_.AB);var mc9=function(){var N=new y2;N.opts.site="youtube.com";return N};
y2.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
y2.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};var kQd=function(){_.AB.call(this,"web")};
_.F(kQd,_.AB);kQd.prototype.JSC$10307_setLabel=function(N){_.AB.prototype.JSC$10307_setLabel.call(this,N);return this};
kQd.prototype.addUploadMetadata=function(N,b){_.AB.prototype.addUploadMetadata.call(this,N,b);return this};var IE=function(){this.items_=[];this.opts={}},TbS=function(N){switch(N){case "image-search":return new XF;
case "maps":return new E0;case "photos":return new _.p8;case "url":return new Ya;case "video-search":return new y2;case "web":return new kQd}return new _.AB(N)};
IE.prototype.addView=function(N){this.items_.push(typeof N==="string"?TbS(N):N);return this};
var tll=function(N){return"("+_.gY(N.items_,function(b){return b.toString()}).join(",")+")"};
IE.prototype.toString=function(){return tll(this)};
IE.prototype.getViews=function(N,b){b=b===void 0?[]:b;for(var S=this.items_,P=0;P<S.length;P++){var H=S[P];H instanceof IE?H.getViews(N,b):H.getId()==N&&b.push(H)}return b};
IE.prototype.getOptions=function(){return _.Vm.clone(this.opts)};var qf=function(N){this.basePickerUrl_=N||"https://docs.google.com/picker";this.nav_=new IE};
qf.prototype.nav_=null;qf.prototype.addView=function(N){this.nav_.addView(N);return this};
qf.prototype.getBaseUrl=function(){return this.basePickerUrl_};
qf.prototype.getViews=function(N){return this.nav_.getViews(N)};
_.MlN=function(N,b){N.callback_=b;return N};var FeE=new Map;FeE.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");FeE.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");FeE.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var BbN=new Set;BbN.add("application/vnd.google-apps.kix");BbN.add("application/vnd.google-apps.ritz");BbN.add("application/vnd.google-apps.punch");var j5S=function(N,b,S){var P=S&&_.xp(S,1);S=l79(S);var H=N[0].getId();switch(_.o9(H,2)){case 13:return Le9(N,b,P,S);case 3:return f7E(N,b,P,S);case 10:return uxb(N,b,P,S);case 27:return uxb(N,b,P,S);case 12:return Q59(N,b);case 2:return xc4(N,b,P,S);case 5:return o7N(N,b,P,S);case 9:return itE(N,b,P,S);case 6:return JAd(N,b,P,S);case 25:return UcV(N,b,P,S);case 1:return _.Tu(N[0],scz,26)?Ztk(N,b,P,S):uxb(N,b,P,S);default:return{}}},JAd=function(N,b,S,P){N=N.map(function(H){return{id:H.getId().getId(),
serviceId:"youtube",name:H.getName(),description:_.xp(H,3),type:DJ(H),lastEditedUtc:_.HTk(_.k0(H,_.iF,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:_.xp(H,13),thumbnails:V2(Or(H))}});
return{action:b,docs:N,viewToken:P,view:S||"youtube",v2Translated:!0}},xc4=function(N,b,S,P){var H=N.map(function(K){var C=K.getId().getId(),G=_.xp(K,7),a=K.getName(),R=DJ(K),n=_.HTk(_.k0(K,_.iF,12)).getTime(),d=K.getUrl(),m=Number(rVd(K)),k=_.xp(K,3),M=_.xp(K,11),l=V2(Or(K));
var u=_.k0(K,CF,21);u=_.fm(u,1);var J=_.k0(K,CF,21);J=_.xp(J,10);var Z=_.xp(K,13);var D=_.k0(K,CF,21);D=_.fm(D,9);var Y=_.k0(K,CF,21);Y=_.xp(Y,11);C={id:C,serviceId:"docs",mimeType:G,name:a,type:R,lastEditedUtc:n,url:d,sizeBytes:m,description:k,iconUrl:M,thumbnails:l,isShared:u,downloadUrl:J,embedUrl:Z,copyable:D,resourceKey:Y};G=_.k0(K,CF,21);_.fm(G,12)&&(C.uploadState="success",C.isNew=!0);G=_.k0(K,CF,21);_.Tu(G,sr,3)&&(K=_.k0(K,CF,21),K=_.k0(K,sr,3),_.Tu(K,P$,2)&&(G=$T(K.getDuration().getSeconds()),
a=K.getDuration(),a=_.tg(a,2),C.duration=G+a/1E9),C.aspectRatio=K.getAspectRatio());return C});
return{action:b,docs:H,viewToken:P,view:S||"all",extraUserInputs:zaV(N),v2Translated:!0}},o7N=function(N,b,S,P){N=N.map(function(H){var K=_.k0(H,RKd,15);
K=_.k0(K,H$,1);i5(H,10,H$,K);return{id:H.getId().getId(),serviceId:"web",mimeType:_.xp(H,7),name:H.getName(),type:DJ(H),url:H.getUrl(),description:_.xp(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(H))}});
return{action:b,docs:N,viewToken:P,view:S||"image-search",v2Translated:!0}},itE=function(N,b,S,P){N=N.map(function(H){return{serviceId:"url",
name:Or(H)[0].getUrl().split("/").pop(),type:DJ(H),mimeType:_.xp(H,7),url:H.getUrl(),description:_.xp(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(H))}});
return{action:b,docs:N,viewToken:P,view:S||"url",v2Translated:!0}},Ztk=function(N,b,S,P){N=N.map(function(H){return{id:H.getId().getId(),
serviceId:"picasa",name:H.getName(),type:DJ(H),description:_.xp(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(H))}});
return{action:b,docs:N,viewToken:P,view:S||"webcam",v2Translated:!0}},uxb=function(N,b,S,P){return{action:b,
docs:N.map(AAc),viewToken:P,view:XzN(S||"upload",N),extraUserInputs:zaV(N),v2Translated:!0}},XzN=function(N,b){return b.some(function(S){var P;
return((P=_.k0(S,KF,30))==null?void 0:_.o9(P,3))===9})?N+"/gmailphotos":N},f7E=function(N,b,S,P){var H=N.map(function(K){var C={id:K.getId().getId(),
serviceId:"picasa",mimeType:_.xp(K,7),name:K.getName(),type:DJ(K),lastEditedUtc:_.HTk(_.k0(K,_.iF,12)).getTime(),url:K.getUrl(),sizeBytes:Number(rVd(K)),description:_.xp(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(K)),mediaKey:K.getId().getId(),parentId:_.xp(K,4)},G,a=(G=_.k0(K,OT4,18))==null?void 0:_.k0(G,vTk,3);a&&(C.latitude=Qa(a,1),C.longitude=Qa(a,2));var R;K=(R=_.k0(K,OT4,18))==null?void 0:uJ(R,6);R=K!=null?$T(K):void 0;R&&(C.version=
R);return C});
return{action:b,docs:H,viewToken:P,view:S||"photos",extraUserInputs:zaV(N),v2Translated:!0}},Le9=function(N,b,S,P){N=N.map(function(H){return{id:H.getId().getId(),
serviceId:"et",name:Or(H)[0].getUrl().split("/").pop(),description:_.xp(H,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(H),"etjpg")}});
return{action:b,docs:N,viewToken:P,view:S||"et",v2Translated:!0}},UcV=function(N,b,S,P){N=N.map(function(H){var K=H.getId().getId(),C=P["2"];
return{id:K,serviceId:C.type!=="gmail_themes"&&C.parent==="6226252643674576769"?"picasa":"static_themes",name:H.getName(),mimeType:_.xp(H,7),type:DJ(H),description:_.xp(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:H.getUrl(),thumbnails:V2(Or(H))}});
return{action:b,docs:N,viewToken:P,view:S||"photos",v2Translated:!0}},Q59=function(N,b){N=N.map(function(S){var P=_.k0(S,KAS,27);
P=_.$Q(P,1,_.Fi,_.T6())[0];return{id:S.getId().getId(),serviceId:"contacts",mimeType:_.xp(S,7),name:S.getName(),description:_.xp(S,3),url:"mailto:"+P,thumbnail:[{url:_.xp(S,11)}],email:P}});
return{action:b,docs:N,view:"contacts",v2Translated:!0}},l79=function(N){if(!N)return{};
var b=_.xp(N,3);b=b&&JSON.parse(b)||{};return{0:_.xp(N,1),1:_.xp(N,2),2:b}},V2=function(N,b){b=b===void 0?"":b;
if(!N.length)return null;b=="etjpg"&&(N=N.filter(function(S){return S.getUrl().includes("w1200-h300")}));
return N.map(function(S){return{url:S.getUrl(),height:S.getHeight(),width:S.getWidth(),type:b}})},zaV=function(N){return{isAttachment:N.some(function(b){return _.fm(b,31)})}},AAc=function(N){var b,S={id:(b=N.getId())==null?void 0:b.getId(),
serviceId:E7b(N),mimeType:_.xp(N,7),name:N.getName(),type:DJ(N),sizeBytes:Number(rVd(N)),description:_.xp(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V2(Or(N)),isNew:!0};if(b=_.k0(N,KF,30)){S.dataUrl=_.xp(b,1)||null;a:{var P=_.k0(N,KF,30);switch(_.o9(P,3)){case 9:P=_.UG(P,cgN,2,v$);P={remoteRefs:P&&_.xp(P,1)};break a;case 10:case 15:P=_.UG(P,rg9,4,v$);var H=Or(N);P={photo_id:P&&_.xp(P,1),media_key:N.getId().getId(),media_type:_.o9(N,6)===1?1:2,image_url:H&&
H[0].getUrl(),width:H&&String(H[0].getWidth()),height:H&&String(H[0].getHeight())};break a}P=null}S.uploadMetadata=P;S.uploadId=_.xp(b,9)||null;S.uploadState=pzN(b)||null}(P=b&&_.UG(b,rg9,4,v$))&&(S.id=_.xp(P,1));(P=b&&_.UG(b,agZ,5,v$))&&(S.contentId=_.xp(P,1));(P=b&&_.UG(b,Cw9,7,v$))&&(S.contentId=_.xp(P,1));(P=b&&_.UG(b,G6Z,6,v$))&&(S.contentId=_.xp(P,1));(b==null?void 0:_.o9(b,3))===1&&(S.mediaKey=N.getId().getId());return S},E7b=function(N){var b;
switch(((b=_.k0(N,KF,30))==null?void 0:_.o9(b,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},DJ=function(N){switch(_.o9(N,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.xp(N,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},pzN=function(N){switch(N==null?void 0:_.o9(N,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var Dcl,YXO,yAl,I7Z;_.Vl9=function(N,b){var S=b||{};b=S.document||document;var P=_.jo(N).toString(),H=(new U7(b)).createElement("SCRIPT"),K={script_:H,timeout_:void 0},C=new O0(YXO,K),G=null,a=S.timeout!=null?S.timeout:5E3;a>0&&(G=window.setTimeout(function(){yAl(H,!0);C.errback(new I7Z(1,"Timeout reached for loading script "+P))},a),K.timeout_=G);
H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(yAl(H,S.cleanupWhenDone||!1,G),C.callback(null))};
H.onerror=function(){yAl(H,!0,G);C.errback(new I7Z(0,"Error while loading script "+P))};
K=S.attributes||{};_.Vm.extend(K,{type:"text/javascript",charset:"UTF-8"});$tO(H,K);_.cM(H,N);Dcl(b).appendChild(H);return C};
Dcl=function(N){var b=jG("HEAD",N);return b&&b.length!==0?b[0]:N.documentElement};
YXO=function(){if(this&&this.script_){var N=this.script_;N&&N.tagName=="SCRIPT"&&yAl(N,!0,this.timeout_)}};
yAl=function(N,b,S){S!=null&&_.Ps.clearTimeout(S);N.onload=function(){};
N.onerror=function(){};
N.onreadystatechange=function(){};
b&&window.setTimeout(function(){_.Zg(N)},0)};
I7Z=function(N,b){var S="Jsloader error (code #"+N+")";b&&(S+=": "+b);_.NL.call(this,S);this.code=N};
_.Km(I7Z,_.NL);var g7E=_.$E(["https://apis.google.com/js/api.js"]),ea9=_.Mz(g7E),wz9=function(N,b,S){S=S===void 0?{}:S;var P=!1,H=$cE(N,b,S).then(function(C){P=!0;return C}),K=_.kjO(5E3).then(function(){return P?$cE(N,b,S):had(b,S).then(function(C){return qXc(C,N)})});
return vUl([H,K])},$cE=function(N,b,S){S=S===void 0?{}:S;
return N0c(b,S).then(function(P){return qXc(P,N)})},qXc=function(N,b){var S=_.Ka(b,"gapi.")?b.slice(5):b;
return N[S]?_.KA(N[S]):new _.u5(function(P,H){var K=Yj(function(){H(Error("Ya"))},3E4);
N.load(b,{callback:function(){_.Ps.clearTimeout(K);P(N[S])},
onerror:function(C){_.Ps.clearTimeout(K);H(C)}})})},N0c=function(N,b){b=b===void 0?{}:b;
return N.gapi&&N.gapi.load?_.KA(N.gapi):had(N,b)},had=function(N,b){b=b===void 0?{}:b;
return _.Vl9(ea9,{document:N.document,attributes:b}).then(function(){return N.gapi})},bxc=function(){};
bxc.prototype.load=function(N,b,S){b=b===void 0?window:b;S=S===void 0?{}:S;var P=Date.now();return wz9(N,b,S).then(function(H){var K=Date.now();return{library:H,loadStartMs:P,loadEndMs:K}},function(H){throw H instanceof Error?H:Error(String(H));
})};var ajE=function(){_.E5.call(this);this.gapiLoader_=new bxc;this.origin_=null;this.gapiPickerIframeResolver_=_.Y9();this.gapiIframesResolver_=_.Y9();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.F(ajE,_.E5);var Ssk=function(N,b){var S=S===void 0?{}:S;var P=_.hl("gapi.iframes",b);return P?(N=Date.now(),_.KA({library:P,loadStartMs:N,loadEndMs:N})):N.gapiLoader_.load("gapi.iframes",b,S)},Pxc=function(N,b,S,P,H,K){var C=!1;
C=C===void 0?!1:C;Ssk(N,$o(b.ownerDocument)).then(function(G){var a=G.library;N.gapiIframesResolver_.resolve(a);G=N.gapiPickerIframeResolver_;var R=G.resolve,n=C;n=n===void 0?!1:n;var d={};d["host-message-handler"]=S;N.hostMessageHandlerInternal_=d;var m=_.sB(P);m=_.sB(m);m=_.d_(_.n8(_.W0(new _.DV,m.scheme_),m.JSC$10265_domain_),m.JSC$10265_port_).toString();N.origin_=m;m=(new kxN).setUrl(P);m.JSC$10280_obj_.where=b;m.JSC$10280_obj_.allowPost=n;m.JSC$10280_obj_.messageHandlers=d;n=_.hl("makeWhiteListIframesFilter",
a)([N.origin_]);m.JSC$10280_obj_.messageHandlersFilter=n;H!=null&&(m.JSC$10280_obj_.id=H);K!=null&&(m.JSC$10280_obj_.rpctoken=K);n=mN9(m);n.JSC$10277_obj_.style={display:"block","min-width":"100%",width:"1px"};n.JSC$10277_obj_.height="100%";mN9(m).value().allow="camera 'src' "+N.origin_;a=a.getContext().openChild(m.value());R.call(G,a)},function(G){N.gapiIframesResolver_.reject(G);
N.gapiPickerIframeResolver_.reject(G)});
return N.gapiPickerIframeResolver_.promise},Hx9=function(N,b){return _.jA([N.gapiIframesResolver_.promise,
N.gapiPickerIframeResolver_.promise]).then(function(S){var P=_.O(S);S=P.next().value;return(P=P.next().value)?P.send("picker-message-handler",b,void 0,_.hl("makeWhiteListIframesFilter",S)([N.origin_])):_.f7(Error("Za"))})};
ajE.prototype.disposeInternal=function(){sel(this);_.E5.prototype.disposeInternal.call(this)};
var sel=function(N){N.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete N.hostMessageHandlerInternal_["host-message-handler"])})};var KN9=function(){this.nextId=0};var Ox4=function(N,b){switch(N.action){case "select-contacts":N=vXz(N.contacts);break;case "visibility":N=N.visible;var S=new ad;N=_.jM(S,1,7).setVisible(N);S={};S["iframe-command"]=N.serialize();N=S;break;default:N=null}return N?Hx9(b,N):_.KA()},vXz=function(N){if(!N||N.length==0)return null;
var b=new ad;_.jM(b,1,11);var S=new KN9;N.forEach(function(P){if(P.email){var H=new lJ;H=_.IJ(H,2,P.name?P.name:P.email);var K=new KAS;P=_.Yap(K,1,_.TE,P.email,_.Fi);P=_.xI(H,27,P);H=new PwE;K=":"+(S.nextId++).toString(36);H=_.IJ(H,1,K);H=_.jM(H,2,12);P=_.xI(P,1,H)}else P=null;P&&i5(b,7,lJ,P)});
N={};N["iframe-command"]=b.serialize();return N};_.CxO=function(){if(l_k){var N=/Windows NT ([0-9.]+)/;return(N=N.exec(_.dI()))?N[1]:"0"}return _.BIz?(N=/1[0|1][_.][0-9_.]+/,(N=N.exec(_.dI()))?N[0].replace(/_/g,"."):"10"):bnO?(N=/Android\s+([^\);]+)(\)|;)/,(N=N.exec(_.dI()))?N[1]:""):f_E||ufO||QUk?(N=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(N=N.exec(_.dI()))?N[1].replace(/_/g,"."):""):""}();var g_;g_=function(N){return(N=N.exec(_.dI()))?N[1]:""};
_.GbV=function(){if(_.a9)return g_(/Firefox\/([0-9.]+)/);if(_.rV||rk||tp4)return jU9;if(_.R9){if(_.xO()||_.l_s()){var N=g_(/CriOS\/([0-9.]+)/);if(N)return N}return g_(/Chrome\/([0-9.]+)/)}if(_.hz&&!_.xO())return g_(/Version\/([0-9.]+)/);if(Huo||spp){if(N=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.dI()))return N[1]+"."+N[2]}else if(ps9)return(N=g_(/Android\s+([0-9.]+)/))?N:g_(/Version\/([0-9.]+)/);return""}();var r3k=function(){};
_.He(r3k);r3k.prototype.nextId_=0;_.ey=function(N){return":"+(N.nextId_++).toString(36)};var $a=function(N){_.J1.call(this);this.JSC$10375_dom_=N||zn();this.JSC$10375_id_=null;this.inDocument_=!1;this.JSC$10375_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Km($a,_.J1);$a.prototype.idGenerator_=r3k.getInstance();$a.prototype.getId=function(){return this.JSC$10375_id_||(this.JSC$10375_id_=_.ey(this.idGenerator_))};
$a.prototype.getElement=function(){return this.JSC$10375_element_};
var hB=function(N){N.googUiComponentHandler_||(N.googUiComponentHandler_=new _.fx(N));return N.googUiComponentHandler_},c3N=function(N,b){if(N==b)throw Error("$a");
var S;if(S=b&&N.parent_&&N.JSC$10375_id_){S=N.parent_;var P=N.JSC$10375_id_;S=S.childIndex_&&P?_.Vm.get(S.childIndex_,P)||null:null}if(S&&N.parent_!=b)throw Error("$a");N.parent_=b;$a.superClass_.setParentEventTarget.call(N,b)};
$a.prototype.setParentEventTarget=function(N){if(this.parent_&&this.parent_!=N)throw Error("ab");$a.superClass_.setParentEventTarget.call(this,N)};
$a.prototype.JSC$10377_createDom=function(){this.JSC$10375_element_=this.JSC$10375_dom_.createElement("DIV")};
$a.prototype.render=function(N){aYE(this,N)};
var aYE=function(N,b,S){if(N.inDocument_)throw Error("bb");N.JSC$10375_element_||N.JSC$10377_createDom();b?b.insertBefore(N.JSC$10375_element_,S||null):N.JSC$10375_dom_.JSC$9559_document_.body.appendChild(N.JSC$10375_element_);N.parent_&&!N.parent_.inDocument_||N.enterDocument()};
_.v=$a.prototype;_.v.decorate=function(N){if(this.inDocument_)throw Error("bb");if(N&&this.canDecorate(N)){this.wasDecorated_=!0;var b=_.hh(N);this.JSC$10375_dom_&&this.JSC$10375_dom_.JSC$9559_document_==b||(this.JSC$10375_dom_=zn(N));this.decorateInternal(N);this.enterDocument()}else throw Error("cb");};
_.v.canDecorate=function(){return!0};
_.v.decorateInternal=function(N){this.JSC$10375_element_=N};
_.v.enterDocument=function(){this.inDocument_=!0;Rfb(this,function(N){!N.inDocument_&&N.getElement()&&N.enterDocument()})};
_.v.exitDocument=function(){Rfb(this,function(N){N.inDocument_&&N.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.v.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Rfb(this,function(N){N.dispose()});
!this.wasDecorated_&&this.JSC$10375_element_&&_.Zg(this.JSC$10375_element_);this.parent_=this.model_=this.JSC$10375_element_=this.childIndex_=this.children_=null;$a.superClass_.disposeInternal.call(this)};
_.v.getModel=function(){return this.model_};
_.v.addChild=function(N,b){var S=this.children_?this.children_.length:0;if(N.inDocument_&&(b||!this.inDocument_))throw Error("bb");if(S<0||S>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);N.parent_==this?(_.Vm.set(this.childIndex_,N.getId(),N),_.zo(this.children_,N)):_.Vm.add(this.childIndex_,N.getId(),N);c3N(N,this);_.iaI(this.children_,S,0,N);N.inDocument_&&this.inDocument_&&N.parent_==this?(b=this.getContentElement(),
(b.childNodes[S]||null)!=N.getElement()&&(N.getElement().parentElement==b&&b.removeChild(N.getElement()),S=b.childNodes[S]||null,b.insertBefore(N.getElement(),S))):b?(this.JSC$10375_element_||this.JSC$10377_createDom(),S=this.children_?this.children_[S+1]||null:null,aYE(N,this.getContentElement(),S?S.JSC$10375_element_:null)):this.inDocument_&&!N.inDocument_&&N.JSC$10375_element_&&N.JSC$10375_element_.parentNode&&N.JSC$10375_element_.parentNode.nodeType==1&&N.enterDocument()};
_.v.getContentElement=function(){return this.JSC$10375_element_};
var Rfb=function(N,b){N.children_&&N.children_.forEach(b,void 0)};
$a.prototype.removeChild=function(N,b){if(N){var S=typeof N==="string"?N:N.getId();N=this.childIndex_&&S?_.Vm.get(this.childIndex_,S)||null:null;S&&N&&(_.Vm.remove(this.childIndex_,S),_.zo(this.children_,N),b&&(N.exitDocument(),N.JSC$10375_element_&&_.Zg(N.JSC$10375_element_)),c3N(N,null))}if(!N)throw Error("eb");return N};_.Km(PSO,SuY);_.Km(Hhe,SuY);var WN9;_.Vm.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var nXb=function(N,b){b?N.setAttribute("role",b):N.removeAttribute("role")},qm=function(N,b,S){Array.isArray(S)&&(S=S.join(" "));
var P="aria-"+b;S===""||S==void 0?(WN9||(S={},WN9=(S.atomic=!1,S.autocomplete="none",S.dropeffect="none",S.haspopup=!1,S.live="off",S.multiline=!1,S.multiselectable=!1,S.orientation="vertical",S.readonly=!1,S.relevant="additions text",S.required=!1,S.sort="none",S.busy=!1,S.disabled=!1,S.hidden=!1,S.invalid="false",S)),S=WN9,b in S?N.setAttribute(P,S[b]):N.removeAttribute(P)):N.setAttribute(P,S)};var dM9;_.w_=function(N,b,S){_.J1.call(this);this.target=N;this.handle=b||N;this.limits=S||new DA(NaN,NaN,NaN,NaN);this.JSC$10380_document_=_.hh(N);this.JSC$10380_eventHandler_=new _.fx(this);_.QS(this,this.JSC$10380_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.lH(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=dM9};
_.Km(_.w_,_.J1);dM9=_.Ps.document&&_.Ps.document.documentElement&&!!_.Ps.document.documentElement.setCapture&&!!_.Ps.document.releaseCapture;_.mMV=function(N,b){N.hysteresisDistanceSquared_=Math.pow(b,2)};
_.v=_.w_.prototype;_.v.setEnabled=function(N){this.enabled_=N};
_.v.disposeInternal=function(){_.w_.superClass_.disposeInternal.call(this);_.iW(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10380_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10380_document_.releaseCapture();this.handle=this.target=null};
_.v.startDrag=function(N){var b=N.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(!N.isButton(0)||_.BIz&&N.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Nk("start",this,N.clientX,N.clientY,N)))this.dragging_=!0,b&&N.preventDefault();else return;else b&&N.preventDefault();b=this.JSC$10380_document_;var S=b.documentElement,P=!this.useSetCapture_;this.JSC$10380_eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,
{capture:P,passive:!1});this.JSC$10380_eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,P);this.useSetCapture_?(S.setCapture(!1),this.JSC$10380_eventHandler_.listen(S,"losecapture",this.endDrag)):this.JSC$10380_eventHandler_.listen($o(b),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10380_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,P);this.clientX=this.startX=N.clientX;this.clientY=this.startY=N.clientY;this.screenX=N.screenX;this.screenY=N.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=jk(zn(this.JSC$10380_document_))}};
_.v.endDrag=function(N,b){this.JSC$10380_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10380_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Nk("end",this,N.clientX,N.clientY,N,kb9(this,this.deltaX),T09(this,this.deltaY),b||N.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.v.handleMove_=function(N){if(this.enabled_){var b=N.clientX-this.clientX,S=N.clientY-this.clientY;this.clientX=N.clientX;this.clientY=N.clientY;this.screenX=N.screenX;this.screenY=N.screenY;if(!this.dragging_){var P=this.startX-this.clientX,H=this.startY-this.clientY;if(P*P+H*H>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Nk("start",this,N.clientX,N.clientY,N)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(N);return}}S=tgN(this,b,S);b=S.x;S=S.y;this.dragging_&&this.dispatchEvent(new Nk("beforedrag",
this,N.clientX,N.clientY,N,b,S))&&(MgO(this,N,b,S),N.preventDefault())}};
var tgN=function(N,b,S){var P=jk(zn(N.JSC$10380_document_));b+=P.x-N.pageScroll.x;S+=P.y-N.pageScroll.y;N.pageScroll=P;N.deltaX+=b;N.deltaY+=S;return new _.ek(kb9(N,N.deltaX),T09(N,N.deltaY))};
_.w_.prototype.onScroll_=function(N){var b=tgN(this,0,0);N.clientX=this.clientX;N.clientY=this.clientY;MgO(this,N,b.x,b.y)};
var MgO=function(N,b,S,P){N.target.style.left=S+"px";N.target.style.top=P+"px";N.dispatchEvent(new Nk("drag",N,b.clientX,b.clientY,b,S,P))},kb9=function(N,b){var S=N.limits;
N=isNaN(S.left)?null:S.left;S=isNaN(S.width)?0:S.width;return Math.min(N!=null?N+S:Infinity,Math.max(N!=null?N:-Infinity,b))},T09=function(N,b){var S=N.limits;
N=isNaN(S.top)?null:S.top;S=isNaN(S.height)?0:S.height;return Math.min(N!=null?N+S:Infinity,Math.max(N!=null?N:-Infinity,b))};
_.w_.prototype.isDragging=function(){return this.dragging_};
var Nk=function(N,b,S,P,H,K,C){_.uW.call(this,N);this.clientX=S;this.clientY=P;this.browserEvent=H;this.left=K!==void 0?K:b.deltaX;this.top=C!==void 0?C:b.deltaY};
_.Km(Nk,_.uW);var b3=function(N){this.JSC$10387_map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("ma");for(var S=0;S<b;S+=2)this.set(arguments[S],arguments[S+1])}else N&&this.addAll(N)};
_.v=b3.prototype;_.v.getCount=function(){return this.JSC$10387_map_.size};
_.v.getValues=function(){return Array.from(this.JSC$10387_map_.values())};
_.v.getKeys=function(){return Array.from(this.JSC$10387_map_.keys())};
_.v.containsKey=function(N){return this.JSC$10387_map_.has(N)};
_.v.containsValue=function(N){return this.getValues().some(function(b){return b==N})};
_.v.equals=function(N,b){var S=this;b=b===void 0?function(P,H){return P===H}:b;
return this===N?!0:this.JSC$10387_map_.size!=N.getCount()?!1:this.getKeys().every(function(P){return b(S.JSC$10387_map_.get(P),N.get(P))})};
_.v.isEmpty=function(){return this.JSC$10387_map_.size==0};
_.v.clear=function(){this.JSC$10387_map_.clear()};
_.v.remove=function(N){return this.JSC$10387_map_.delete(N)};
_.v.get=function(N,b){return this.JSC$10387_map_.has(N)?this.JSC$10387_map_.get(N):b};
_.v.set=function(N,b){this.JSC$10387_map_.set(N,b);return this};
_.v.addAll=function(N){if(N instanceof b3){N=_.O(N.JSC$10387_map_);for(var b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;this.JSC$10387_map_.set(b,S)}}else if(N)for(N=_.O(Object.entries(N)),b=N.next();!b.done;b=N.next())S=_.O(b.value),b=S.next().value,S=S.next().value,this.JSC$10387_map_.set(b,S)};
_.v.forEach=function(N,b){var S=this;b=b===void 0?this:b;this.JSC$10387_map_.forEach(function(P,H){return N.call(b,P,H,S)})};
_.v.clone=function(){return new b3(this)};(function(){for(var N=["ms","moz","webkit","o"],b,S=0;b=N[S]&&!_.Ps.requestAnimationFrame;++S)_.Ps.requestAnimationFrame=_.Ps[b+"RequestAnimationFrame"],_.Ps.cancelAnimationFrame=_.Ps[b+"CancelAnimationFrame"]||_.Ps[b+"CancelRequestAnimationFrame"];if(!_.Ps.requestAnimationFrame){var P=0;_.Ps.requestAnimationFrame=function(H){var K=(new Date).getTime(),C=Math.max(0,16-(K-P));P=K+C;return _.Ps.setTimeout(function(){H(K+C)},C)};
_.Ps.cancelAnimationFrame||(_.Ps.cancelAnimationFrame=function(H){clearTimeout(H)})}})();
var FNE=[[],[]],B0z=0,lYN=!1,LNb=0,uG4=function(N,b){var S=LNb++,P={measureTask:{id:S,fn:N.measure,context:b},mutateTask:{id:S,fn:N.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(P.args||(P.args=[]),P.args.length=0,P.args.push.apply(P.args,arguments),P.args.push(P.state)):P.args&&P.args.length!=0?(P.args[0]=P.state,P.args.length=1):P.args=[P.state];P.isScheduled||(P.isScheduled=!0,FNE[B0z].push(P));lYN||(lYN=!0,window.requestAnimationFrame(fYN))}},fYN=
function(){lYN=!1;
var N=FNE[B0z],b=N.length;B0z=(B0z+1)%2;for(var S,P=0;P<b;++P){S=N[P];var H=S.measureTask;S.isScheduled=!1;H.fn&&H.fn.apply(H.context,S.args)}for(P=0;P<b;++P)S=N[P],H=S.mutateTask,S.isScheduled=!1,H.fn&&H.fn.apply(H.context,S.args),S.state={};N.length=0};var QeS=_.$E(["about:blank"]),xM9=_.$E(["javascript:undefined"]),oXN=_.Mz(QeS);_.jo(oXN);var ix9=_.Mz(xM9);_.jo(ix9);var SV=function(N){_.J1.call(this);this.JSC$10393_element_=N;this.listenKeyIn_=_.lH(this.JSC$10393_element_,"focus",this,!0);this.listenKeyOut_=_.lH(this.JSC$10393_element_,"blur",this,!0)};
_.Km(SV,_.J1);SV.prototype.handleEvent=function(N){var b=new _.Qy(N.event_);b.type=N.type=="focusin"||N.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};
SV.prototype.disposeInternal=function(){SV.superClass_.disposeInternal.call(this);Mu(this.listenKeyIn_);Mu(this.listenKeyOut_);delete this.JSC$10393_element_};var J3V=function(N,b){this.JSC$10396_element_=N;this.JSC$10396_dom_=b};var PF=function(N,b){$a.call(this,b);this.useIframeMask_=!!N;this.lastFocus_=null;this.resizeBackgroundTask_=uG4({mutate:this.resizeBackground_},this);uG4({mutate:this.updateModalAndBackground_},this)};
_.Km(PF,$a);_.v=PF.prototype;_.v.focusHandler_=null;_.v.visible_=!1;_.v.bgEl_=null;_.v.bgIframeEl_=null;_.v.tabCatcherElement_=null;_.v.backwardTabWrapInProgress_=!1;_.v.getCssClass=function(){return"goog-modalpopup"};
_.v.getBackgroundElement=function(){return this.bgEl_};
_.v.JSC$10377_createDom=function(){PF.superClass_.JSC$10377_createDom.call(this);var N=this.getElement(),b=aU(this.getCssClass()).split(" ");v0(N,b);N.tabIndex=0;_.OB(N,!1);UMd(this);Zxz(this)};
var UMd=function(N){if(N.useIframeMask_&&!N.bgIframeEl_){var b=N.JSC$10375_dom_.JSC$9561_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.SW(b,oXN);N.bgIframeEl_=b;N.bgIframeEl_.className=N.getCssClass()+"-bg";_.OB(N.bgIframeEl_,!1);l2z(N.bgIframeEl_,0)}N.bgEl_||(N.bgEl_=N.JSC$10375_dom_.JSC$9561_createDom("DIV",N.getCssClass()+"-bg"),_.OB(N.bgEl_,!1))},Zxz=function(N){N.tabCatcherElement_||(N.tabCatcherElement_=N.JSC$10375_dom_.createElement("SPAN"),_.OB(N.tabCatcherElement_,
!1),N.tabCatcherElement_.tabIndex=0,N.tabCatcherElement_.style.position="absolute")};
_.v=PF.prototype;_.v.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.v.canDecorate=function(N){return!!N&&N.tagName=="DIV"};
_.v.decorateInternal=function(N){PF.superClass_.decorateInternal.call(this,N);N=aU(this.getCssClass()).split(" ");v0(this.getElement(),N);UMd(this);Zxz(this);this.getElement().tabIndex=0;_.OB(this.getElement(),!1)};
_.v.enterDocument=function(){this.bgIframeEl_&&_.pL(this.bgIframeEl_,this.getElement());_.pL(this.bgEl_,this.getElement());PF.superClass_.enterDocument.call(this);_.Yv(this.tabCatcherElement_,this.getElement());this.focusHandler_=new SV(this.JSC$10375_dom_.JSC$9559_document_);hB(this).listen(this.focusHandler_,"focusin",this.onFocus);jeE(this,!1)};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Wv(this.focusHandler_);PF.superClass_.exitDocument.call(this);_.Zg(this.bgIframeEl_);_.Zg(this.bgEl_);_.Zg(this.tabCatcherElement_)};
_.v.setVisible=function(N){if(N!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&jeE(this,N),N){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10375_dom_.JSC$9559_document_.activeElement}catch(H){}this.updateModalAndBackground_();hB(this).listen(this.JSC$10375_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10375_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);zfV(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)TS(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){hB(this).unlisten(this.JSC$10375_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10375_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)TS(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.JSC$10375_dom_,S=b.JSC$9559_document_.body,P=b.JSC$9559_document_.activeElement||S;if(!this.lastFocus_||this.lastFocus_==S){this.lastFocus_=null;break a}(P==S||b.contains(this.getElement(),P))&&this.lastFocus_.focus()}catch(H){}this.lastFocus_=
null}}};
var jeE=function(N,b){N.modalAriaVisibilityHelper_||(N.modalAriaVisibilityHelper_=new J3V(N.JSC$10375_element_,N.JSC$10375_dom_));N=N.modalAriaVisibilityHelper_;if(b){N.hiddenElements_||(N.hiddenElements_=[]);b=N.JSC$10396_dom_.getChildren(N.JSC$10396_dom_.JSC$9559_document_.body);for(var S=0;S<b.length;S++){var P=b[S],H;if(H=P!=N.JSC$10396_element_)H=P.getAttribute("aria-hidden"),H=!(H==null||H==void 0?0:String(H));H&&(qm(P,"hidden",!0),N.hiddenElements_.push(P))}}else if(N.hiddenElements_){for(b=
0;b<N.hiddenElements_.length;b++)N.hiddenElements_[b].removeAttribute("aria-hidden");N.hiddenElements_=null}};
PF.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var zfV=function(N,b){N.bgIframeEl_&&_.OB(N.bgIframeEl_,b);N.bgEl_&&_.OB(N.bgEl_,b);_.OB(N.getElement(),b);_.OB(N.tabCatcherElement_,b)};
_.v=PF.prototype;_.v.onShow=function(){this.dispatchEvent("show")};
_.v.onHide=function(){zfV(this,!1);this.dispatchEvent("hide")};
_.v.isVisible=function(){return this.visible_};
_.v.focus=function(){this.focusElement_()};
_.v.resizeBackground_=function(){this.bgIframeEl_&&_.OB(this.bgIframeEl_,!1);this.bgEl_&&_.OB(this.bgEl_,!1);var N=this.JSC$10375_dom_.JSC$9559_document_;var b=_.Z2($o(this.JSC$10375_dom_.JSC$9559_document_)||window);var S=Math.max(b.width,Math.max(N.body.scrollWidth,N.documentElement.scrollWidth));N=Math.max(b.height,Math.max(N.body.scrollHeight,N.documentElement.scrollHeight));this.bgIframeEl_&&(_.OB(this.bgIframeEl_,!0),_.tkl(this.bgIframeEl_,S,N));this.bgEl_&&(_.OB(this.bgEl_,!0),_.tkl(this.bgEl_,
S,N))};
_.v.reposition=function(){var N;if(_.TYV(this.getElement())=="fixed")var b=N=0;else b=jk(this.JSC$10375_dom_),N=b.x,b=b.y;var S=F0O(this.getElement());var P=_.Z2($o(this.JSC$10375_dom_.JSC$9559_document_)||window);N=Math.max(N+P.width/2-S.width/2,0);b=Math.max(b+P.height/2-S.height/2,0);eO(this.getElement(),N,b);eO(this.tabCatcherElement_,N,b)};
_.v.onFocus=function(N){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():N.target==this.tabCatcherElement_&&Yj(this.focusElement_,0,this)};
_.v.focusElement_=function(){try{this.getElement().focus()}catch(N){}};
_.v.disposeInternal=function(){_.Wv(this.popupShowTransition_);this.popupShowTransition_=null;_.Wv(this.popupHideTransition_);this.popupHideTransition_=null;_.Wv(this.bgShowTransition_);this.bgShowTransition_=null;_.Wv(this.bgHideTransition_);this.bgHideTransition_=null;PF.superClass_.disposeInternal.call(this)};var hg=function(N,b,S){PF.call(this,b,S);this.JSC$10406_class_=N||"modal-dialog";this.buttons_=(new HF).addButton(A3z,!0).addButton(X_c,!1,!0)};
_.Km(hg,PF);_.v=hg.prototype;_.v.escapeToCancel_=!0;_.v.hasTitleCloseButton_=!0;_.v.modal_=!0;_.v.draggable_=!0;_.v.backgroundElementOpacity_=.5;_.v.title_="";_.v.JSC$10408_dragger_=null;_.v.JSC$10408_disposeOnHide_=!1;_.v.titleEl_=null;_.v.titleTextEl_=null;_.v.titleTextId_=null;_.v.titleCloseEl_=null;_.v.contentEl_=null;_.v.buttonEl_=null;_.v.getCssClass=function(){return this.JSC$10406_class_};
_.v.setTitle=function(N){this.title_=N;this.titleTextEl_&&_.IS(this.titleTextEl_,N)};
_.v.getTitle=function(){return this.title_};
_.v.getContent=function(){return""};
_.v.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var EXN=function(N){N.getElement()||N.render();return N.getElement()};
hg.prototype.getBackgroundElement=function(){this.getElement()||this.render();return hg.superClass_.getBackgroundElement.call(this)};
var p_9=function(N,b){N.backgroundElementOpacity_=b;N.getElement()&&(b=N.getBackgroundElement())&&l2z(b,N.backgroundElementOpacity_)};
hg.prototype.setDraggable=function(N){this.draggable_=N;YsO(this,N&&this.inDocument_)};
hg.prototype.handleDrag=function(){};
var YsO=function(N,b){var S=aU(N.JSC$10406_class_+"-title-draggable").split(" ");N.getElement()&&(b?v0(N.titleEl_,S):WV9(N.titleEl_,S));b&&!N.JSC$10408_dragger_?(b=new _.w_(N.getElement(),N.titleEl_),N.JSC$10408_dragger_=b,v0(N.titleEl_,S),_.lH(N.JSC$10408_dragger_,"start",N.setDraggerLimits_,!1,N),_.lH(N.JSC$10408_dragger_,"drag",N.handleDrag,!1,N)):!b&&N.JSC$10408_dragger_&&(N.JSC$10408_dragger_.dispose(),N.JSC$10408_dragger_=null)};
_.v=hg.prototype;
_.v.JSC$10377_createDom=function(){hg.superClass_.JSC$10377_createDom.call(this);var N=this.getElement(),b=this.JSC$10375_dom_;this.titleTextId_=this.getId();var S=this.getId()+".contentEl";this.titleEl_=b.JSC$9561_createDom("DIV",this.JSC$10406_class_+"-title",this.titleTextEl_=b.JSC$9561_createDom("SPAN",{className:this.JSC$10406_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.JSC$9561_createDom("SPAN",this.JSC$10406_class_+"-title-close"));bz9(N,this.titleEl_,this.contentEl_=
b.JSC$9561_createDom("DIV",{className:this.JSC$10406_class_+"-content",id:S}),this.buttonEl_=b.JSC$9561_createDom("DIV",this.JSC$10406_class_+"-buttons"));nXb(this.titleTextEl_,"heading");nXb(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;qm(this.titleCloseEl_,"label","Close");nXb(N,"dialog");qm(N,"labelledby",this.titleTextId_||"");_.OB(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(N=this.buttons_,N.JSC$10409_element_=this.buttonEl_,N.render());_.OB(this.buttonEl_,!!this.buttons_);
p_9(this,this.backgroundElementOpacity_)};
_.v.decorateInternal=function(N){hg.superClass_.decorateInternal.call(this,N);N=this.getElement();var b=this.JSC$10406_class_+"-content";this.contentEl_=ZA(document,null,b,N)[0];this.contentEl_||(this.contentEl_=this.JSC$10375_dom_.JSC$9561_createDom("DIV",b),N.appendChild(this.contentEl_));b=this.JSC$10406_class_+"-title";var S=this.JSC$10406_class_+"-title-text",P=this.JSC$10406_class_+"-title-close";(this.titleEl_=ZA(document,null,b,N)[0])?(this.titleTextEl_=ZA(document,null,S,this.titleEl_)[0],
this.titleCloseEl_=ZA(document,null,P,this.titleEl_)[0]):(this.titleEl_=this.JSC$10375_dom_.JSC$9561_createDom("DIV",b),N.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=W0l(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.z3("SPAN",{className:S,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;qm(N,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10375_dom_.JSC$9561_createDom("SPAN",P),this.titleEl_.appendChild(this.titleCloseEl_));_.OB(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.JSC$10406_class_+"-buttons";(this.buttonEl_=ZA(document,null,b,N)[0])?(this.buttons_=new HF(this.JSC$10375_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10375_dom_.JSC$9561_createDom("DIV",b),N.appendChild(this.buttonEl_),this.buttons_&&(N=this.buttons_,N.JSC$10409_element_=this.buttonEl_,N.render()),_.OB(this.buttonEl_,
!!this.buttons_));p_9(this,this.backgroundElementOpacity_)};
_.v.enterDocument=function(){hg.superClass_.enterDocument.call(this);hB(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);hB(this).listen(this.buttonEl_,"click",this.onButtonClick_);YsO(this,this.draggable_);hB(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var N=this.getElement();nXb(N,"dialog");this.titleTextEl_.id!==""&&qm(N,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){N=this.JSC$10375_dom_;
var b=this.getBackgroundElement();N.removeNode(this.bgIframeEl_);N.removeNode(b)}this.isVisible()&&jeE(this,!1)}};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);YsO(this,!1);hg.superClass_.exitDocument.call(this)};
_.v.setVisible=function(N){N!=this.isVisible()&&(this.inDocument_||this.render(),hg.superClass_.setVisible.call(this,N))};
_.v.onShow=function(){hg.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.v.onHide=function(){hg.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10408_disposeOnHide_&&this.dispose()};
_.v.setDraggerLimits_=function(){var N=this.JSC$10375_dom_.JSC$9559_document_,b=_.Z2($o(N)||window),S=Math.max(N.body.scrollWidth,b.width);N=Math.max(N.body.scrollHeight,b.height);var P=F0O(this.getElement());_.TYV(this.getElement())=="fixed"?this.JSC$10408_dragger_.limits=new DA(0,0,Math.max(0,b.width-P.width),Math.max(0,b.height-P.height)):this.JSC$10408_dragger_.limits=new DA(0,0,S-P.width,N-P.height)};
_.v.onTitleCloseClick_=function(){y39(this)};
var y39=function(N){if(N.hasTitleCloseButton_){var b=N.buttons_,S=b&&b.cancelButton_;S?(b=b.get(S),N.dispatchEvent(new sy(S,b))&&N.setVisible(!1)):N.setVisible(!1)}},IYV=function(N){N.hasTitleCloseButton_=!1;
N.titleCloseEl_&&_.OB(N.titleCloseEl_,N.hasTitleCloseButton_)};
hg.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;hg.superClass_.disposeInternal.call(this)};
hg.prototype.onButtonClick_=function(N){a:{for(N=N.target;N!=null&&N!=this.buttonEl_;){if(N.tagName=="BUTTON")break a;N=N.parentNode}N=null}if(N&&!N.disabled){N=N.name;var b=this.buttons_.get(N);this.dispatchEvent(new sy(N,b))&&this.setVisible(!1)}};
hg.prototype.onKey_=function(N){var b=!1,S=!1,P=this.buttons_,H=N.target;if(N.type=="keydown")if(this.escapeToCancel_&&N.keyCode==27){var K=P&&P.cancelButton_;H=H.tagName=="SELECT"&&!H.disabled;K&&!H?(S=!0,b=P.get(K),b=this.dispatchEvent(new sy(K,b))):H||(b=!0)}else{if(N.keyCode==9&&N.shiftKey&&H==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(n){}Yj(this.resetBackwardTabWrap_,0,this)}}else if(N.keyCode==13){if(H.tagName=="BUTTON"&&!H.disabled)K=H.name;
else if(H==this.titleCloseEl_)y39(this);else if(P){var C=P.defaultButton_,G;if(G=C)a:{G=jG("BUTTON",P.JSC$10409_element_);for(var a,R=0;a=G[R];R++)if(a.name==C||a.id==C){G=a;break a}G=null}H=(H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="A")&&!H.disabled;!G||G.disabled||H||(K=C)}K&&P&&(S=!0,b=this.dispatchEvent(new sy(K,String(P.get(K)))))}else H!=this.titleCloseEl_||N.keyCode!=32&&N.key!=" "||y39(this);if(b||S)N.stopPropagation(),N.preventDefault();b&&this.setVisible(!1)};
var sy=function(N,b){this.type="dialogselect";this.key=N;this.caption=b};
_.Km(sy,_.uW);var HF=function(N){b3.call(this);N||zn();this.cancelButton_=this.JSC$10409_element_=this.defaultButton_=null};
_.Km(HF,b3);_.v=HF.prototype;_.v.clear=function(){b3.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.v.set=function(N,b,S,P){b3.prototype.set.call(this,N,b);S&&(this.defaultButton_=N);P&&(this.cancelButton_=N);return this};
_.v.addButton=function(N,b,S){return this.set(N.key,N.caption,b,S)};
_.v.render=function(){if(this.JSC$10409_element_){_.aX(this.JSC$10409_element_,dYE);var N=zn(this.JSC$10409_element_);this.forEach(function(b,S){b=N.JSC$9561_createDom("BUTTON",{name:S},b);S==this.defaultButton_&&(b.className="goog-buttonset-default");this.JSC$10409_element_.appendChild(b)},this)}};
_.v.decorate=function(N){if(N&&N.nodeType==1){this.JSC$10409_element_=N;N=jG("BUTTON",this.JSC$10409_element_);for(var b,S,P,H=0;b=N[H];H++)if(S=b.name||b.id,P=W0l(b)||b.value,S){var K=H==0;this.set(S,P,K,b.name=="cancel");K&&_.DN(b,"goog-buttonset-default")}}};
_.v.getElement=function(){return this.JSC$10409_element_};
var A3z={key:"ok",caption:"OK"},X_c={key:"cancel",caption:"Cancel"},DM9={key:"yes",caption:"Yes"},VgS={key:"no",caption:"No"},gX9={key:"save",caption:"Save"},efV={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new HF).addButton(A3z,!0,!0),(new HF).addButton(A3z,!0).addButton(X_c,!1,!0),(new HF).addButton(DM9,!0).addButton(VgS,!1,!0),(new HF).addButton(DM9).addButton(VgS,!0).addButton(X_c,!1,!0),(new HF).addButton(efV).addButton(gX9).addButton(X_c,!0,!0));_.Km(sBY,hg);_.Km(KVu,qf);var $M4=_.$E(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),hfb=_.$E(["//apis.google.com/js/rpc.js"]),n0Y=_.Mz($M4),WVI=_.Mz(hfb),OhI=null;var wj=function(N,b){_.J1.call(this);this.JSC$10418_element_=N;N=_.Gx(this.JSC$10418_element_)?this.JSC$10418_element_:this.JSC$10418_element_?this.JSC$10418_element_.body:null;this.isRtl_=!!N&&_.L0V(N);this.listenKey_=_.lH(this.JSC$10418_element_,_.B_?"DOMMouseScroll":"mousewheel",this,b)};
_.Km(wj,_.J1);wj.prototype.handleEvent=function(N){var b=0,S=0,P=N.event_;P.type=="mousewheel"?(N=qs9(-P.wheelDelta),P.wheelDeltaX!==void 0?(b=qs9(-P.wheelDeltaX),S=qs9(-P.wheelDeltaY)):S=N):(N=P.detail,N>100?N=3:N<-100&&(N=-3),P.axis!==void 0&&P.axis===P.HORIZONTAL_AXIS?b=N:S=N);typeof this.maxDeltaX_==="number"&&(b=_.j3(b,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(S=_.j3(S,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new w_O(N,P,b,S);this.dispatchEvent(b)};
var qs9=function(N){return _.FG&&(_.BIz||L9E)&&N%40!=0?N:N/40};
wj.prototype.disposeInternal=function(){wj.superClass_.disposeInternal.call(this);Mu(this.listenKey_);this.listenKey_=null};
var w_O=function(N,b,S,P){_.Qy.call(this,b);this.type="mousewheel";this.detail=N;this.deltaX=S;this.deltaY=P};
_.Km(w_O,_.Qy);_.b0=function(N){var b="instance_";if(N.instance_&&N.hasOwnProperty(b))return N.instance_;b=new N;return N.instance_=b};var R6Y;var Npz=_.$E(["https://about:blank"]),b6k=_.$E(['javascript:""']),SYd=_.$E(["about:blank"]);_.Km(CQ,sBY);_.v=CQ.prototype;_.v.JSC$10426_url_="";_.v.JSC$10426_iframe_=null;_.v.iframeLoaded_=!1;_.v.loadedFired_=!1;_.v.callback_=function(){};
_.v.enterDocument=function(){CQ.superClass_.enterDocument.call(this);r2Y(this.getBackgroundElement(),hB(this))};
_.v.render=function(N){var b=this;CQ.superClass_.render.call(this,N);this.useGapi_?Ssk(this.iframeManager_,window).then(function(){return PZN(b)}).then(null,function(){b.callback_({action:"error"})}):H69(this)};
var PZN=function(N){var b=N.JSC$10375_dom_.JSC$9561_createDom("div",["picker-dialog-content","picker-frame"]);_.OB(b,!1);N.getContentElement().appendChild(b);return Pxc(N.iframeManager_,b,function(S){var P=mfc(S["iframe-command"]);switch(P.getCommand()){case 1:S=N.callback_;P=_.k0(P,c$,2);var H="";switch(P.getStatus()){case 2:H="cancel";break;case 1:H="picked";break;case 3:H="error"}var K=_.kT(P,lJ,2,_.T6(hEc));P=K.length===0?{action:H}:j5S(K,H,_.k0(P,WA4,7));S.call(N,P);N.setVisible(!1);break;case 4:IYV(N);
N.callback_({action:"loaded"});break;case 7:case 8:S=N.callback_;a:{H=P.getCommand();K=_.k0(P,c$,2);switch(H){case 7:H="uploadScheduled";break;case 8:H="uploadStateChange";break;default:P={};break a}P=_.kT(K,lJ,2,_.T6(hEc));if(P.length===0)P={action:H};else{var C=_.k0(K,WA4,7);K=C&&_.xp(C,1);C=l79(C);P=uxb(P,H,K,C)}}S.call(N,P)}},N.JSC$10426_url_,N.targetId_,N.rpcToken_).then(function(S){N.JSC$10426_iframe_=S.getIframeEl();
svZ(N);_.OB(N.JSC$10426_iframe_.parentElement,!0);_.DN(N.getElement(),"picker-dialog");Kiz(N);return S})},H69=function(N){N.JSC$10426_iframe_=N.JSC$10375_dom_.JSC$9561_createDom("IFRAME",{id:N.targetId_,
name:N.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.SW(N.JSC$10426_iframe_,vyO(N));_.DN(N.getElement(),"picker-dialog");N.getContentElement().appendChild(N.JSC$10426_iframe_);hB(N).listen(N.JSC$10426_iframe_,"load",function(){return void svZ(N)});
N.JSC$10426_iframe_.src=N.JSC$10426_url_;Kiz(N)},CZN=function(N){O6E(N,(0,_.pT)(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},N))},Kiz=function(N){var b=_.KQ(_.sB(N.JSC$10426_url_),"title");
b&&N.setTitle(b)},vyO=function(N){return _.MpU("Internet Explorer")>=7&&_.Ka(N.JSC$10426_url_,"https")?_.Mz(Npz):_.rV?_.Mz(b6k):_.Mz(SYd)},svZ=function(N){CZN(N);
N.iframeLoaded_=!0;N.JSC$10426_iframe_.tabIndex=0;N.isVisible()&&N.focus()};
CQ.prototype.handleKeydown_=function(N){N.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),N.stopPropagation(),N.preventDefault())};
var O6E=function(N,b){var S=N.JSC$10424_gadgetsDomHelper_;CSu(function(){b(S.getWindow().gadgets.rpc)},S)};
CQ.prototype.setUrl=function(N){N=_.vW(new _.DV(N),"rpcService",this.targetId_);_.vW(N,"rpctoken",this.rpcToken_);_.TI(N,"rpctoken="+this.rpcToken_);_.W0(N,"https");this.JSC$10426_url_=N.toString();this.JSC$10426_iframe_&&(this.JSC$10426_iframe_.src=this.JSC$10426_url_)};
var GkS=function(N,b){N.callback_=b;O6E(N,(0,_.pT)(function(S){S.register(this.targetId_,(0,_.pT)(this.handlePickerAction_,this))},N))};
CQ.prototype.handlePickerAction_=function(N){var b=N.action;b=="loaded"&&(this.loadedFired_=!0,rwb(this,new Hhe(this.isVisible())),cwk(this),IYV(this),hB(this).unlisten(this.JSC$10375_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10426_iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(N)};
var cwk=function(N){N.JSC$10426_appId_&&rwb(N,new PSO(N.JSC$10426_appId_,window.location.protocol+"//"+window.location.host))};
CQ.prototype.setRelayUrl=function(N){O6E(this,(0,_.pT)(function(b){b.setRelayUrl(this.targetId_,N)},this))};
var rwb=function(N,b){N.useGapi_&&Ox4(b,N.iframeManager_).then(null,function(){N.callback_({action:"error"})});
O6E(N,(0,_.pT)(function(S){S.call(this.targetId_,"picker",null,b)},N))};
CQ.prototype.resizePicker_=function(){var N=$o(this.JSC$10375_dom_.JSC$9559_document_)||window;if(_.KQ(_.sB(this.JSC$10426_url_),"ignoreLimits")=="true")N=new _.Jh(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.KQ(_.sB(this.JSC$10426_url_),"shadeDialog")=="true"){var b=EXN(this);b=f2z(b);var S=_.Z2(N);N=S.width-80;S=S.height-40;b&&(N-=b.left?b.left:0,N-=b.right?b.right:0,S-=b.top?b.top:0,S-=b.bottom?b.bottom:0);N=new _.Jh(N>0?N:0,S>0?S:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,
Math.min(1051,b)),(S=this.preferredDialogHeight_)||(S=_.Z2(N).height*.85),S=Math.max(480,Math.min(650,S))):(b=_.Z2(N),S=b.width*.618,S=S<b.height?Math.round(Math.max(480,Math.min(650,S*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(S/.618)),N=_.Z2(N),b=Math.min(b,Math.max(N.width,320)),S=Math.min(S,Math.max(N.height,480)),N=new _.Jh(b,S);_.tkl(this.getContentElement(),N);this.reposition()};
CQ.prototype.reposition=function(){if(_.KQ(_.sB(this.JSC$10426_url_),"shadeDialog")=="true"){var N=F0O(this.getElement()),b=_.Z2(this.JSC$10375_dom_.getWindow());N=Math.floor(b.width/2-N.width/2);b=EXN(this);if(b=f2z(b)){var S=b.left?b.left:0;S+=b.right?b.right:0;N=Math.floor(N-S/2)}N=N>0?N:0;b=jk(this.JSC$10375_dom_).y;eO(this.getElement(),N,b)}else CQ.superClass_.reposition.call(this)};
CQ.prototype.setVisible=function(N){if(N!=this.isVisible()&&this.autoSizeDialog_){var b=this.JSC$10375_dom_.getWindow();N?(this.resizePicker_(),hB(this).listen(b,"resize",this.resizePicker_),this.iframeLoaded_||hB(this).listen(b,"keydown",this.handleKeydown_)):(hB(this).unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||hB(this).unlisten(b,"keydown",this.handleKeydown_))}CQ.superClass_.setVisible.call(this,N);rwb(this,new Hhe(N))};
CQ.prototype.focus=function(){CQ.superClass_.focus.call(this);if(this.JSC$10426_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10426_iframe_.focus()}catch(N){}};var TB=function(N,b){b=b===void 0?CQ:b;qf.call(this,N);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(N=window.location.origin)||(N=window.location.protocol+"//"+window.location.host);N&&this.urlParamMap_.set("origin",N);this.postProcessors_=[]};
_.F(TB,KVu);TB.prototype.JSC$10431_disposeOnHide_=!1;
TB.prototype.build=function(){this.JSC$10332_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10332_appId_);this.getRelayUrl()||this.setRelayUrl(_.mr(_.TI(_.ka(_.sB(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("gb");var N=new this.pickerConstructor(aVO(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);N.JSC$10408_disposeOnHide_=this.JSC$10431_disposeOnHide_;
N.JSC$10426_appId_=this.JSC$10332_appId_;N.loadedFired_&&cwk(N);GkS(N,this.callback_);return N};
var RM4=function(N){N.urlParamMap_.set("multiselectEnabled","true");return N};
_.v=TB.prototype;_.v.getHeight=function(){return this.dialogHeight_};
_.v.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.v.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.v.getTitle=function(){return this.urlParamMap_.get("title")};
_.v.getWidth=function(){return this.dialogWidth_};
var Wik=function(N){N.JSC$10431_disposeOnHide_=void 0;return N};
TB.prototype.setRelayUrl=function(N){this.urlParamMap_.set("parent",N);return this};
var nyd=function(N,b){N.urlParamMap_.set("selectButtonLabel",b);return N};
TB.prototype.setSize=function(N,b){this.dialogWidth_=N;this.dialogHeight_=b;return this};
TB.prototype.setTitle=function(N){this.urlParamMap_.set("title",N);return this};
var aVO=function(N){N.postProcessors_.length&&N.urlParamMap_.set("pp",JSON.stringify(N.postProcessors_));N.urlParamMap_.set("nav",tll(N.nav_));var b=new _.DV(N.getBaseUrl());N.urlParamMap_.forEach(function(S,P){_.vW(b,P,S)});
return b};var kkd=function(N,b){N.name!==void 0?(this.name=N.name,this.code=dyS[N.name]):(this.code=N=N.code,this.name=myO(N));_.NL.call(this,Xhc("%s %s",this.name,b))};
_.Km(kkd,_.NL);var myO=function(N){var b=_.Vm.findKey(dyS,function(S){return N==S});
if(b===void 0)throw Error("ib`"+N);return b},KO={},dyS=(KO.AbortError=3,KO.EncodingError=5,KO.InvalidModificationError=9,KO.InvalidStateError=7,KO.NotFoundError=1,KO.NotReadableError=4,KO.NoModificationAllowedError=6,KO.PathExistsError=12,KO.QuotaExceededError=10,KO.SecurityError=2,KO.SyntaxError=8,KO.TypeMismatchError=11,KO);var Tp4=function(N,b){_.uW.call(this,N.type,b);this.event_=N};
_.Km(Tp4,_.uW);var t0c=function(N,b,S){S===void 0&&(S=N.size);return N.slice?N.slice(b,S):null};var kie=new WeakMap,mYe=function(N,b){N=[N];for(var S=b.length-1;S>=0;--S)N.push(typeof b[S],b[S]);return N.join("\v")};_.tHf(function(){if(!_.Ps.Blob)return!1;var N=new Uint8Array(100);try{var b=new Blob([N])}catch(S){return!1}return b.size!=100?!1:!0});
var M0l=_.tHf(function(){if(!_.Ps.Blob)return!1;var N=new Uint8Array(100);try{var b=new Blob([N])}catch(S){return!1}return t0c(b,0,1)===null?!1:!0});_.Ps.U3bHHf!=null||(_.Ps.U3bHHf=0);_.Ps.U3bHHf++;_.Fiz=new WeakMap;_.Bp9=new WeakMap;var FVp={};var cW=void 0;var ljf=Symbol("qb");var A2I=WW("WizInjectionContext_Dispatcher");var WA=Symbol("rb");var fM,Jl;fM=function(){this.afterRenderCallbacks=null};
_.xyU=Symbol("sb");Jl=function(N){this.props=N;this.__unmounted=!1};
Jl.prototype.didPatch=function(){};
Jl.prototype.didMount=function(){};
Jl.prototype.didUnmount=function(){};
Jl.prototype.didUpdate=function(){};_.J2e=WW("WizInjectionContext_RootElement");var Zha=WW("WizInjectionContext_AppContext"),UYf=WW("WizInjectionContext_ModelRootElement"),jBb=WW("WizInjectionContext_RendererData"),z6e=WW("WizInjectionContext_InjectingConstructor"),ihU=WW("WizInjectionContext_AsyncDeps"),XKO={};var DYI=!1;var $Yu={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:mLZ,enableContextPerComponent:mLZ,enableLazyTsx:ko9,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:dLV,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var dA=Object.assign({},{attributes:{},handleError:function(N){throw N;}},$Yu);var lVd=Symbol("wb"),pQ=Symbol("xb"),wlE=Symbol("yb"),hAL=Symbol("zb"),KeU=j9(function(N){return uM(N)&&lVd in N});var mb=null,Tz=!1,M8=1,LQ=Symbol("Db"),Je={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var vF=Symbol("Eb"),Oy=Symbol("Fb"),lM=Symbol("Gb"),Gxa=Object.assign({},Je,{value:vF,dirty:!0,error:null,equal:bvu,kind:"computed",producerMustRecompute:function(N){return N.value===vF||N.value===Oy},
producerRecomputeValue:function(N){if(N.value===Oy)throw Error("Z");var b=N.value;N.value=Oy;var S=vho(N),P=!1;try{var H=N.computation();kl(null);P=b!==vF&&b!==lM&&H!==lM&&N.equal(b,H)}catch(K){H=lM,N.error=K}finally{kl(S),N&&C5I(N)}P?N.value=b:(N.value=H,N.version++)}});var Li9=Object.assign({},Je,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var RA9=function(){throw Error();};var nhp=null,cdY=Object.assign({},Je,{equal:bvu,value:void 0,kind:"signal"});var dNf=Object.assign({},Je,{value:vF,dirty:!0,error:null,equal:bvu,kind:"linkedSignal",producerMustRecompute:function(N){return N.value===vF||N.value===Oy},
producerRecomputeValue:function(N){if(N.value===Oy)throw Error("Z");var b=N.value;N.value=Oy;var S=vho(N);try{var P=N.source();var H=N.computation(P,b===vF||b===lM?void 0:{source:N.sourceValue,value:b});N.sourceValue=P}catch(K){H=lM,N.error=K}finally{kl(S),N&&C5I(N)}b!==vF&&H!==lM&&N.equal(b,H)?N.value=b:(N.value=H,N.version++)}});Object.assign({},Je,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(N){N.schedule!==null&&N.schedule(N.ref)},
cleanupFn:function(){}});var Be9=Symbol("Hb"),CO={},tdu=(CO[Be9]=!0,CO.debugName="[component]",CO.getComponentStack=function(){for(var N=[],b=this;b;)lna(b)&&N.push(b.debugName),b=b.parent;return N},CO.registerSignal=function(){},CO.registerEffect=function(){},CO);var Ljp=Symbol("Ib"),xl=Symbol("Jb");var oO=Array.isArray;var Zvf;var fVO={},zAO=UNf(Object.assign({},{consumerAllowSignalWrites:!0},fVO)),Qg=UNf(Object.assign({},{consumerAllowSignalWrites:!0},fVO));var zz=Symbol("Ob");var jj=null,EhE,plL=null,Yva;var Yl=0,yF=!1,Gm=function(){this.queue=new Set};
Gm.prototype.schedule=function(N){this.queue.add(N)};
Gm.prototype.remove=function(N){this.queue.delete(N)};
Gm.prototype.clear=function(){this.queue.clear()};
var Vda=Symbol("Pb"),InU=Symbol("Qb"),ru=function(){Gm.apply(this,arguments)};
_.F(ru,Gm);ru.prototype.flush=function(){if(this.queue.size){yF=!0;for(var N=_.O(this.queue),b=N.next();!b.done;b=N.next()){b=b.value;this.queue.delete(b);try{b.run()}catch(S){uV9(S)}}yF=!1}};
var QvV=function(){ru.apply(this,arguments)};
_.F(QvV,ru);var DN_=new QvV,xyb=function(){ru.apply(this,arguments)};
_.F(xyb,ru);xyb.prototype.schedule=function(N){return _.r(function(b){if(b.nextAddress==1)return b.yield(Promise.resolve(),2);N.run();_.Zd(b)})};
xyb.prototype.enqueue=function(N){this.queue.add(N)};
var ghs=new xyb,cF=function(){Gm.apply(this,arguments)};
_.F(cF,Gm);cF.prototype.flush=function(){this.queue.size&&v7p(this.queue)};
var oyN=function(){cF.apply(this,arguments)};
_.F(oyN,cF);oyN.prototype.schedule=function(N){N.version===0?N.run():this.queue.add(N)};
oyN.prototype.flush=function(){if(this.queue.size)if(dA.flushRenderEffectsDuringRender){var N=this.queue;this.queue=new Set;v7p(N)}else v7p(this.queue)};
var $Nu=new oyN,i6N=function(){cF.apply(this,arguments)};
_.F(i6N,cF);i6N.prototype.schedule=function(N){return _.r(function(b){if(b.nextAddress==1)return b.yield(Promise.resolve(),2);N.run();_.Zd(b)})};
i6N.prototype.enqueue=function(N){this.queue.add(N)};
var Nbo=new i6N,JwS=function(){cF.apply(this,arguments)};
_.F(JwS,cF);var qvU=new JwS,SXe=[$Nu,DN_,qvU],s5p=[ghs,Nbo],Uy4=[$Nu,qvU,Nbo],OtL=[].concat(_.IX(SXe),_.IX(s5p)),Z6z=[];nhp=function(){Htp();for(var N=_.O(Z6z),b=N.next();!b.done;b=N.next())b=b.value,b()};
var uV9=Hs;var aj={},jvO=Object.assign({},Li9,(aj[lVd]=!0,aj.effectType=pQ,aj.isResettableContext=!0,aj.consumerMarkedDirty=bt9,aj.run=function(){GQo(this)},aj.cleanup=function(){o0b(this)},aj.componentStack=void 0,aj.debugName="[effect]",aj.destroy=function(){if(te(this))for(var N=this.producers;N!==void 0;)N=Ovu(N);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;N=_.O(Uy4);for(var b=N.next();!b.done;b=N.next())b.value.remove(this);xYo(this)},aj[Symbol.dispose]=function(){this.destroy()},aj)),zMZ=Object.assign({},jvO,{version:1,
dirty:!1});var rAo=Object.assign({},jvO,{effectType:pQ});var cAp=Object.assign({},jvO,{effectType:wlE});var We_=Symbol("Sb");var WNp=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var mcI={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},dca=
{a:{href:[{contract:3}]},area:{href:[{contract:3}]},audio:{src:[{contract:3}]},button:{formaction:[{contract:3}],formmethod:[{contract:1}]},form:{action:[{contract:3}],method:[{contract:1}]},iframe:{srcdoc:[{contract:2}]},img:{src:[{contract:3}],srcset:[{contract:11}]},input:{accept:[{contract:1}],formaction:[{contract:3}],formmethod:[{contract:1}],pattern:[{contract:1}],readonly:[{contract:1}],src:[{contract:3}]},link:{href:[{contract:3,contingentAttribute:"rel",requiredValue:"alternate"},{contract:3,
contingentAttribute:"rel",requiredValue:"author"},{contract:3,contingentAttribute:"rel",requiredValue:"bookmark"},{contract:3,contingentAttribute:"rel",requiredValue:"canonical"},{contract:3,contingentAttribute:"rel",requiredValue:"cite"},{contract:3,contingentAttribute:"rel",requiredValue:"help"},{contract:3,contingentAttribute:"rel",requiredValue:"icon"},{contract:3,contingentAttribute:"rel",requiredValue:"license"},{contract:3,contingentAttribute:"rel",requiredValue:"next"},{contract:3,contingentAttribute:"rel",
requiredValue:"prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"dns-prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"prerender"},{contract:3,contingentAttribute:"rel",requiredValue:"preconnect"},{contract:3,contingentAttribute:"rel",requiredValue:"preload"},{contract:3,contingentAttribute:"rel",requiredValue:"prev"},{contract:3,contingentAttribute:"rel",requiredValue:"search"},{contract:3,contingentAttribute:"rel",requiredValue:"subresource"}]},script:{defer:[{contract:1}]},
source:{src:[{contract:3}],srcset:[{contract:11}]},textarea:{readonly:[{contract:1}]},video:{src:[{contract:3}]}},xka={a:1,abbr:1,acronym:1,address:1,applet:4,area:5,article:1,aside:1,audio:1,b:1,base:4,basefont:1,bdi:1,bdo:1,big:1,blockquote:1,body:1,br:5,button:1,canvas:1,caption:1,center:1,cite:1,code:1,col:5,colgroup:1,command:1,data:1,datalist:1,dd:1,del:1,details:1,dfn:1,dialog:1,dir:1,div:1,dl:1,dt:1,em:1,embed:4,fieldset:1,figcaption:1,figure:1,font:1,footer:1,form:1,frame:1,frameset:1,h1:1,
h2:1,h3:1,h4:1,h5:1,h6:1,head:1,header:1,hgroup:1,hr:5,html:1,i:1,iframe:1,img:5,input:5,ins:1,kbd:1,label:1,legend:1,lh:1,li:1,link:5,main:1,map:1,mark:1,math:4,menu:1,meta:4,meter:1,nav:1,nobr:1,noscript:1,object:4,ol:1,optgroup:1,option:1,output:1,p:1,param:5,picture:1,pre:1,progress:1,q:1,rb:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,script:3,section:1,select:1,slot:1,small:1,source:5,span:1,strike:1,strong:1,style:2,sub:1,summary:1,sup:1,svg:4,table:1,tbody:1,td:1,template:4,textarea:6,tfoot:1,th:1,
thead:1,time:1,title:6,tr:1,track:5,tt:1,u:1,ul:1,"var":1,video:1,wbr:5},E7U=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Xzf={"*":{async:1,dir:0,loading:2,target:3}};var Aw9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Rj={},YXE=(Rj[1]=null,Rj[2]=function(N,b){return b instanceof wc?b4(b):DB.toString()},Rj[3]=function(N,b){return EL(b)?_.YI(b):Aw9.test(String(b))?String(b):DB.toString()},Rj[4]=function(N,b){return b instanceof UL?_.jo(b):DB.toString()},Rj[5]=function(N,b){return String(b)},Rj[7]=null,Rj[8]=null,Rj[10]=null,Rj);var Zfe=Symbol("Vb");var qge=function(N){var b=XiV,S=N,P="",H="",K=1;N<0&&(N=-N);if(N===Infinity)N=(Infinity*Math.sign(S)).toString();else{for(var C=0;C<EyZ.length;C++){var G=EyZ[C];K=b[G];if(N>=K||K<=1&&N>.1*K){P=G;break}}P?(P+="B",H=" "):K=1;N=Math.round(S/K*10)/10+H+P}return N},EyZ="Y Z E P T G M K  m u n".split(" "),XiV={"":1,
n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};_.pik=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]");var tl={};RegExp.prototype.hasOwnProperty("sticky");var dMa=function(N){N=String(N);for(var b=function(P,H,K){for(var C=Math.min(H.length-K,P.length),G=0;G<C;G++){var a=H[K+G];if(P[G]!==("A"<=a&&a<="Z"?a.toLowerCase():a))return!1}return!0},S=0;(S=N.indexOf("<",S))!=-1;){if(b("\x3c/script",N,S)||b("\x3c!--",N,S))return"zSoyz";
S+=1}return N};var bD={default:"__default"};var eap=Object.prototype.hasOwnProperty;Dc_.prototype=Object.create(null);var cz=qX9();var r8=null;var Gbb=function(N){this.created=[];this.deleted=[];this.node=N};var r3s=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var N=this,b=N;N;)b=N,N=N.parentNode;return b};var N09=function(N,b){this._attrsArr=null;this.nameOrCtor=N;this.key=b;this.text=void 0};var HA=null,s2=null,S_=null,vA=null,KNa=[],se_=Px9,Gj=[],Ub9=function(N){return c3f(function(b,S,P){S_=s2=b;s2=null;S(P);HxI(null);s2=S_;S_=S_.parentNode;return b},N)}(),J5o=function(N){return c3f(function(b,S,P){var H={nextSibling:b};
s2=H;S(P);S_&&HxI(b.nextSibling);return H===s2?null:s2},N)}();var cA=[],j2s=0;var a5=new Dc_;var YY9=qX9(),T0p=YY9[bD.default],kba=YY9.style,nXU=["focusin","focusout"],FNY="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var CZf=function(){},qsp=function(){},RMo=function(){},rwU=function(){};var Ru=Symbol("cc");var uGo,fYf=LNU;var BA=Symbol("dc");var aVE=new Set("a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ")),
cws=new Set(["a","font","script","style","title"]);_.Fg={setUp:p_I,tearDown:p_I,log:p_I,logNodeRange:p_I,graft:function(N,b){b()}};var xU={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ou=null,iD=function(N,b){Jl.call(this,N);var S=this;this.functionComponent=b;this.hooks=[];this.hookCounter=0;this.disposeEffects=$l(function(P){S.effectContext=P;_.ej(function(){SYe(S,S.el)})},dA.alwaysTrackContexts||!!cW)};
_.F(iD,Jl);iD.prototype.render=function(N){var b=ou;ou=this;this.hookCounter=0;var S=kl(Qg),P=_.aO(this.effectContext);try{return quu("render",this.componentName),this.functionComponent(N)}finally{wKu("render",this.componentName),_.aO(P),kl(S),ou=b}};
_.d0.Object.defineProperties(iD.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Adp(this.functionComponent)}}});var Wis=Symbol("rc"),vyE=function(N,b,S){this.afterRenderCallbacks=null;this.kind=N;this.props=b;this.children=S};
_.F(vyE,fM);vyE.prototype.render=function(){var N=Kiu(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var b=_.O(this.afterRenderCallbacks),S=b.next();!S.done;S=b.next())S=S.value,N=S(N);return N};
vyE.prototype.getChildren=function(){return this.children};var dyL=[];RA9=function(N){throw Error("pb`"+N.debugName);};
(function(){var N=r8;r8=function(b){N==null||N(b);myE(b)}})();Object.assign({},zMZ,{effectType:pQ,elementRef:null,attributes:null,fn:function(){var N=this.elementRef;var b;N.element!=null||(N.element=(b=N.document.getElementById(N.value))!=null?b:void 0);N=N.element;for(b=this.attributes;b;){var S=b.signal();S!==b.prevValue&&(b.prevValue=S,b.namespace===1?N[b.name]=S:WNp.has(b.name)?NB(N,b.name,S?"":null):NB(N,b.name,S));b=b.next}}});_.ZH.debugName="tbhMcf";_.j_.debugName="zyMFzb";Object.assign({},zMZ,{effectType:pQ});_.W.debugName="RlDudd";var kke={nonNullableCondIsNull:function(){return Error("vc")}};var Lip=function(){this.map=new Map};
Lip.prototype.push=function(N,b){var S=this.map;S.has(N)&&(this.multi||(this.multi=new Map),this.multi.set(b,S.get(N)));S.set(N,b)};
Lip.prototype.pop=function(N){var b=this.map,S=b.get(N),P;S!==void 0&&((P=this.multi)==null?0:P.has(S))?(b.set(N,this.multi.get(S)),this.multi.delete(S)):b.delete(N);return S};_.zj.debugName="nsTGHd";_.Al.debugName="vI1rtf";_.i6f={OUT_OF_ORDER_HOOK_CALL:function(N){return Error("wc`"+N)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(N,b){return Error("Ac`"+((b===void 0?0:b)?"IDOM":"Reactive")+"`"+(Xg(N)?N.description:N))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(N,b){return Error("Bc`"+(Xg(N)?N.description:N)+"`"+b)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(N){return Error("Cc`"+(Xg(N)?N.description:N))},
USE_ELEMENT_NOT_ASSIGNED:function(N){return Error("Dc`"+(Xg(N)?N.description:N))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(N){return Error("Ec`"+(Xg(N)?N.description:N))}};uGo=O6Y;var Awp=Symbol("Fc");Npu({beforeRender:function(N){var b=_.aO(N.effectContext);try{var S;((S=N.__syncEffects)==null?0:S.length)&&pis(N.__syncEffects)}finally{_.aO(b)}},
didPatch:function(N){var b=_.aO(N.effectContext);try{var S;((S=N.__syncEffects)==null?0:S.length)&&pis(N.__syncEffects)}finally{_.aO(b)}},
didUnmount:function(N){var b;((b=N.hooks)==null?0:b.length)&&N.hooks.forEach(EyO)}});var ywc,IVd,DyV;ywc=_.Ps.window;_.Iu=(ywc==null?void 0:(IVd=ywc.yt)==null?void 0:IVd.config_)||(ywc==null?void 0:(DyV=ywc.ytcfg)==null?void 0:DyV.data_)||{};_.aB("yt.config_",_.Iu);var V09={},V0p=[];_.jU=function(N){var b=_.$I.apply(1,arguments);var S=Error.call(this,N);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.args=[].concat(_.IX(b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(_.jU,Error);var ass=function(N,b,S){this.actionName=N;this.optionalAction=b===void 0?!1:b;this.args=S===void 0?null:S;this.returnValue=[]};_.WF=function(N){this.name=N};_.Sl=new _.WF("signalAction");var HAa=/^[\w.]*$/,qY9={q:!0,search_query:!0},hML=String($y9);var RN;RN=Symbol("Gc");_.nO=function(N){this.name=N};
_.nO.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var smY=function(N){this.key=N},GY_=function(N){this.deferredKey=N},vRe=function(){var N=this;
this.providers=new Map;this.JSC$10726_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(N.providers)}}};
vRe.prototype.addProvider=function(N){this.providers.set(N.provide,N);var b=this.JSC$10726_deferred.get(N.provide);if(b)try{b.resolver(this.resolve(N.provide))}catch(S){b.rejector(S)}};
vRe.prototype.resolve=function(N){return N instanceof GY_?gyl(this,N):N instanceof smY?eM9(this,N.key,[],!0):eM9(this,N,[])};
var gyl=function(N,b){b=b.deferredKey;if(N.JSC$10726_deferred.has(b))return N.JSC$10726_deferred.get(b).promise;var S={};S.promise=new Promise(function(P,H){S.resolver=P;S.rejector=H});
N.JSC$10726_deferred.set(b,S);return S.promise},eM9=function(N,b,S,P){P=P===void 0?!1:P;
if(S.indexOf(b)>-1)throw Error("Hc`"+b);if(N.cachedValues.has(b))return N.cachedValues.get(b);if(!N.providers.has(b)){if(P)return;throw Error("Ic`"+b);}P=N.providers.get(b);S.push(b);if(P.useValue!==void 0)var H=P.useValue;else if(P.useFactory)H=P[RN]?$yc(N,P[RN],S):[],H=P.useFactory.apply(P,_.IX(H));else if(P.useClass){H=P.useClass;var K=H[RN]?$yc(N,H[RN],S):[];H=new (Function.prototype.bind.apply(H,[null].concat(_.IX(K))))}else throw Error("Jc`"+b);S.pop();P.skipCache||N.cachedValues.set(b,H);return H},
$yc=function(N,b,S){return b?b.map(function(P){return P instanceof smY?eM9(N,P.key,S,!0):eM9(N,P,S)}):[]};var Kna;var Pz=new _.nO("ENDPOINT_HANDLER_TOKEN");_.Hz=new _.WF("urlEndpoint");var hMS=function(){this.data=[];this.cachedPackedInt52=-1};
hMS.prototype.set=function(N,b){b=b===void 0?!0:b;0<=N&&N<52&&Number.isInteger(N)&&this.data[N]!==b&&(this.data[N]=b,this.cachedPackedInt52=-1)};
hMS.prototype.get=function(N){return!!this.data[N]};
var qYc=function(N){N.cachedPackedInt52===-1&&(N.cachedPackedInt52=N.data.reduce(function(b,S,P){return b+(S?Math.pow(2,P):0)},0));
return N.cachedPackedInt52};var BXa=function(N){var b=wiZ;N=N===void 0?_.hl("yt.ads.biscotti.lastId_")||"":N;var S=Object,P=S.assign,H={};H.dt=gb9;H.flash="0";a:{try{var K=b.JSC$10732_win_.top.location.href}catch(e){K=2;break a}K=K?K===b.doc_.location.href?0:1:2}H=(H.frm=K,H);try{H.u_tz=-(new Date).getTimezoneOffset();try{var C=H0.history.length}catch(e){C=0}H.u_his=C;var G;H.u_h=(G=H0.screen)==null?void 0:G.height;var a;H.u_w=(a=H0.screen)==null?void 0:a.width;var R;H.u_ah=(R=H0.screen)==null?void 0:R.availHeight;var n;H.u_aw=
(n=H0.screen)==null?void 0:n.availWidth;var d;H.u_cd=(d=H0.screen)==null?void 0:d.colorDepth}catch(e){}C=b.JSC$10732_win_;try{var m=C.screenX;var k=C.screenY}catch(e){}try{var M=C.outerWidth;var l=C.outerHeight}catch(e){}try{var u=C.innerWidth;var J=C.innerHeight}catch(e){}try{var Z=C.screenLeft;var D=C.screenTop}catch(e){}try{u=C.innerWidth,J=C.innerHeight}catch(e){}try{var Y=C.screen.availWidth;var V=C.screen.availTop}catch(e){}m=[Z,D,m,k,Y,V,M,l,u,J];k=iTY(!1,b.JSC$10732_win_.top);M={};var g=g===
void 0?_.Ps:g;l=new hMS;"SVGElement"in g&&"createElementNS"in g.document&&l.set(0);u=YEz();u["allow-top-navigation-by-user-activation"]&&l.set(1);u["allow-popups-to-escape-sandbox"]&&l.set(2);g.crypto&&g.crypto.subtle&&l.set(3);"TextDecoder"in g&&"TextEncoder"in g&&l.set(4);g=qYc(l);b=(M.bc=g,M.bih=k.height,M.biw=k.width,M.brdim=m.join(),M.vis=FoY(b.doc_),M.wgl=!!H0.WebGLRenderingContext,M);S=P.call(S,H,b);S.ca_type="image";N&&(S.bid=N);return S},wiZ=new function(){var N=window.document;
this.JSC$10732_win_=window;this.doc_=N};
_.aB("yt.ads_.signals_.getAdSignalsString",function(N){return wiO(BXa(N))});_.sG();navigator.userAgent.indexOf(" (CrKey ");var Wne="XMLHttpRequest"in _.Ps?function(){return new XMLHttpRequest}:null;var NXN="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),bAb=[].concat(_.IX(NXN),["client_dev_set_cookie"]);var Fns={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"},m7U="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(_.IX(NXN)),JZI=!1,TXE=_.lpO,x7a=Mt_;var bfY=[{messageFn:function(N){return"Cannot read property '"+N.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\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"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(N){return"Cannot call '"+N.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\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"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(N){return N.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var SR9={messageWeights:[],callbackWeights:[{callback:zzb,weight:500},{callback:AZs,weight:500}]};var PCZ=function(){this.callbackWeights=[];this.messageWeights=[]},HA9,NxY=function(){if(!HA9){var N=HA9=new PCZ;
N.messageWeights.length=0;N.callbackWeights.length=0;gVf(N,SR9)}return HA9},gVf=function(N,b){b.messageWeights&&N.messageWeights.push.apply(N.messageWeights,b.messageWeights);
b.callbackWeights&&N.callbackWeights.push.apply(N.callbackWeights,b.callbackWeights)};_.Km(_.uQ,_.E5);_.uQ.prototype.subscribe=function(N,b,S){var P=this.topics_[N];P||(P=this.topics_[N]=[]);var H=this.JSC$10755_key_;this.subscriptions_[H]=N;this.subscriptions_[H+1]=b;this.subscriptions_[H+2]=S;this.JSC$10755_key_=H+3;P.push(H);return H};
var smE=function(N){var b=we,S=!1,P=b.subscribe("handleError",function(H){S||(S=!0,this.unsubscribeByKey(P),N.apply(void 0,arguments))},b)};
_.uQ.prototype.unsubscribe=function(N,b,S){if(N=this.topics_[N]){var P=this.subscriptions_;if(N=N.find(function(H){return P[H+1]==b&&P[H+2]==S}))return this.unsubscribeByKey(N)}return!1};
_.uQ.prototype.unsubscribeByKey=function(N){var b=this.subscriptions_[N];if(b){var S=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(N),this.subscriptions_[N+1]=function(){}):(S&&_.zo(S,N),delete this.subscriptions_[N],delete this.subscriptions_[N+1],delete this.subscriptions_[N+2])}return!!b};
_.uQ.prototype.publish=function(N,b){var S=this.topics_[N];if(S){var P=Array(arguments.length-1),H=arguments.length,K;for(K=1;K<H;K++)P[K-1]=arguments[K];if(this.async_)for(K=0;K<S.length;K++)H=S[K],Kn9(this.subscriptions_[H+1],this.subscriptions_[H+2],P);else{this.publishDepth_++;try{for(K=0,H=S.length;K<H&&!this.isDisposed();K++){var C=S[K];this.subscriptions_[C+1].apply(this.subscriptions_[C+2],P)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;S=this.pendingKeys_.pop();)this.unsubscribeByKey(S)}}return K!=
0}return!1};
var Kn9=function(N,b,S){_.ZI(function(){N.apply(b,S)})};
_.uQ.prototype.clear=function(N){if(N){var b=this.topics_[N];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[N])}else this.subscriptions_.length=0,this.topics_={}};
_.uQ.prototype.getCount=function(N){if(N){var b=this.topics_[N];return b?b.length:0}N=0;for(b in this.topics_)N+=this.getCount(b);return N};
_.uQ.prototype.disposeInternal=function(){_.uQ.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var we=new _.uQ;var MY=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(MY,_.rc);MY.prototype.getColdHashData=function(){return _.xp(this,3)};
MY.prototype.getHotHashData=function(){return _.xp(this,5)};
MY.prototype.setHotHashData=function(N){return _.En(this,5,N)};var hVU=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(hVU,_.rc);var lGe=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lGe,_.rc);_.v=lGe.prototype;_.v.getDeviceId=function(){return _.xp(this,6)};
_.v.getExperimentIds=function(N){var b=_.$Q(this,9,_.GE,3,!0);qeL(b,N);return b[N]};
_.v.getPlayerType=function(){return _.o9(this,36)};
_.v.setHomeGroupInfo=function(N){return _.xI(this,81,N)};
_.v.clearLocationPlayabilityToken=function(){return _.t2(this,89)};var o0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(o0,_.rc);o0.prototype.setKey=function(N){return _.En(this,1,N)};
o0.prototype.getValue=function(){return Jm(this,2,fG9)};
var fG9=[2,3,4,5,6];var vRd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(vRd,_.rc);vRd.prototype.setTrackingParams=function(N){return _.t2(this,1,_.iE(N,!1))};var Lha=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Lha,_.rc);var NQb=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(NQb,_.rc);NQb.prototype.getExperimentIds=function(N){var b=_.$Q(this,5,_.M9o,3,!0);qeL(b,N);return b[N]};var jd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(jd,_.rc);jd.prototype.getToken=function(){return _.Jg(this,2)};
jd.prototype.setToken=function(N){return _.En(this,2,N)};var Jd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Jd,_.rc);Jd.prototype.setSafetyMode=function(N){return _.Ti(this,5,N)};var xh=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(xh,_.rc);xh.prototype.setClient=function(N){return _.xI(this,1,N)};var wUE={WEB_DISPLAY_MODE_UNKNOWN:"WEB_DISPLAY_MODE_UNKNOWN",WEB_DISPLAY_MODE_BROWSER:"WEB_DISPLAY_MODE_BROWSER",WEB_DISPLAY_MODE_MINIMAL_UI:"WEB_DISPLAY_MODE_MINIMAL_UI",WEB_DISPLAY_MODE_STANDALONE:"WEB_DISPLAY_MODE_STANDALONE",WEB_DISPLAY_MODE_FULLSCREEN:"WEB_DISPLAY_MODE_FULLSCREEN"};var qIe;_.EK=function(){var N=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Ps.addEventListener("beforeinstallprompt",function(b){b.preventDefault();N.deferredInstallPrompt=b});
_.Ps.addEventListener("appinstalled",function(){N.appInstalledEventFired=!0},{once:!0})};
qIe=function(){if(!_.Ps.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Ps.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Ps.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Ps.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Ps.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(N){return"WEB_DISPLAY_MODE_UNKNOWN"}};var P1Y=function(){this.syncHeaders=!0},HXO=function(N){var b={},S=[];
"USER_SESSION_ID"in _.Iu&&S.push({key:"u",value:_.Vg("USER_SESSION_ID")});if(S=_.lLf(S))b.Authorization=S,S=N=N==null?void 0:N.sessionIndex,S===void 0&&(S=Number(_.Vg("SESSION_INDEX",0)),S=isNaN(S)?0:S),_.T("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=S.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Iu||(b["X-Origin"]=window.location.origin),N===void 0&&"DELEGATED_SESSION_ID"in _.Iu&&(b["X-Goog-PageId"]=_.Vg("DELEGATED_SESSION_ID"));return b};var OAz={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var du=_.hl("ytglobal.prefsUserPrefsPrefs_")||{},CCO;_.aB("ytglobal.prefsUserPrefsPrefs_",du);_.mK=function(){this.cookieName=_.Vg("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Vg("ALT_PREF_COOKIE_DOMAIN","youtube.com");var N=_.xb.get(this.cookieName,void 0);N&&this.parse(N)};
_.WN=function(){CCO||(CCO=new _.mK);return CCO};
_.mK.prototype.get=function(N,b){GYl(N);rZN(N);N=du[N]!==void 0?du[N].toString():null;return N!=null?N:b?b:""};
_.mK.prototype.set=function(N,b){GYl(N);rZN(N);if(b==null)throw Error("Mc");du[N]=b.toString()};
_.mK.prototype.getFlag=function(N){return!!((cZc("f"+(Math.floor(N/31)+1))||0)&1<<N%31)};
_.nA=function(N,b,S){N="f"+(Math.floor(b/31)+1);b=1<<b%31;var P=cZc(N)||0;P=S?P|b:P&~b;P===0?delete du[N]:(S=P.toString(16),du[N]=S.toString())};
_.mK.prototype.remove=function(N){GYl(N);rZN(N);delete du[N]};
_.mK.prototype.save=function(){var N=!0;_.T("web_secure_pref_cookie_killswitch")&&(N=!1);_.iQ(this.cookieName,this.dump(),63072E3,this.cookieDomain,N)};
_.mK.prototype.clear=function(){_.Vm.clear(du)};
_.mK.prototype.dump=function(){var N=[],b;for(b in du)du.hasOwnProperty(b)&&N.push(b+"="+encodeURIComponent(String(du[b])));return N.join("&")};
var rZN=function(N){if(/^f([1-9][0-9]*)$/.test(N))throw Error("Nc`"+N);},GYl=function(N){if(!/^\w+$/.test(N))throw Error("Oc`"+N);
},cZc=function(N){N=du[N]!==void 0?du[N].toString():null;
return N!=null&&/^[A-Fa-f0-9]+$/.test(N)?parseInt(N,16):null};
_.mK.prototype.parse=function(N){N=decodeURIComponent(N).split("&");for(var b=0;b<N.length;b++){var S=N[b].split("="),P=S[0];(S=S[1])&&(du[P]=S.toString())}};var gRo={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"},bXa={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},SKU={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},$7L={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Sa;_.kS=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.XC=function(N,b,S){return N.addJob(b,0,S)};
_.kS.prototype.addLowPriorityJob=function(N,b){return this.addJob(N,1,b)};
_.Bm=function(N,b,S){return N.addJob(b,2,S)};
_.ml=function(N,b,S){return N.addJob(b,3,S)};
_.PX=function(N,b,S){return N.addJob(b,4,S)};
Sa=function(N){var b=_.hl("yt.scheduler.instance.addImmediateJob");b?b(N):N()};
_.kS.prototype.debounce=function(N,b,S){var P=this,H=0,K=function(){H&&P.cancelJob(H);H=P.addJob(N,b,S);P.cancelDebouncedJobMap.set(K,H)};
return K};
_.kS.prototype.cancelThrottle=function(N){(N=this.cancelThrottledJobMap.get(N))&&N()};var Tm=function(){_.kS.apply(this,arguments)},apE;
_.F(Tm,_.kS);_.oT=function(){Tm.instance||(Tm.instance=new Tm);return Tm.instance};
Tm.prototype.addJob=function(N,b,S){S!==void 0&&Number.isNaN(Number(S))&&(S=void 0);var P=_.hl("yt.scheduler.instance.addJob");return P?P(N,b,S):S===void 0?(N(),NaN):_.tz(N,S||0)};
Tm.prototype.cancelJob=function(N){if(N===void 0||!Number.isNaN(Number(N))){var b=_.hl("yt.scheduler.instance.cancelJob");b?b(N):_.FQ(N)}};
Tm.prototype.start=function(){var N=_.hl("yt.scheduler.instance.start");N&&N()};
Tm.prototype.pause=function(){var N=_.hl("yt.scheduler.instance.pause");N&&N()};
apE=function(){_.oT();var N=_.hl("yt.scheduler.instance.setPriorityThreshold");N&&N(4)};
_.Dj=_.oT();_.zW.prototype.set=function(N,b){b===void 0?this.mechanism.remove(N):this.mechanism.set(N,(0,_.Id)(b))};
_.zW.prototype.get=function(N){try{var b=this.mechanism.get(N)}catch(S){return}if(b!==null)try{return JSON.parse(b)}catch(S){throw"Storage: Invalid value was encountered";}};
_.zW.prototype.remove=function(N){this.mechanism.remove(N)};var tq=function(N){this.mechanism=N};
_.Km(tq,_.zW);var Rzd=function(N){this.data=N},Wnd=function(N){return N===void 0||N instanceof Rzd?N:new Rzd(N)};
tq.prototype.set=function(N,b){tq.superClass_.set.call(this,N,Wnd(b))};
tq.prototype.getWrapper=function(N){N=tq.superClass_.get.call(this,N);if(N===void 0||N instanceof Object)return N;throw"Storage: Invalid value was encountered";};
tq.prototype.get=function(N){if(N=this.getWrapper(N)){if(N=N.data,N===void 0)throw"Storage: Invalid value was encountered";}else N=void 0;return N};_.Km(Az,tq);_.nR9=function(N){var b=N.creation;N=N.expiration;return!!N&&N<_.sG()||!!b&&b>_.sG()};
Az.prototype.set=function(N,b,S){if(b=Wnd(b)){if(S){if(S<_.sG()){Az.prototype.remove.call(this,N);return}b.expiration=S}b.creation=_.sG()}Az.superClass_.set.call(this,N,b)};
Az.prototype.getWrapper=function(N,b){var S=Az.superClass_.getWrapper.call(this,N);if(S)if(!b&&_.nR9(S))Az.prototype.remove.call(this,N);else return S};var Mk=function(){};
Mk.prototype.next=function(){return FI};
var FI={done:!0,value:void 0},BF=function(N){return{value:N,done:!1}};
Mk.prototype.__iterator__=function(){return this};
_.d7E=function(N){if(N instanceof Mk)return N;if(typeof N.__iterator__=="function")return N.__iterator__(!1);if(_.yu(N)){var b=0,S=new Mk;S.next=function(){for(;;){if(b>=N.length)return FI;if(b in N)return BF(N[b++]);b++}};
return S}throw Error("Pc");};var m7b=function(N){if(N instanceof l3||N instanceof LO||N instanceof fO)return N;if(typeof N.next=="function")return new l3(function(){return N});
if(typeof N[Symbol.iterator]=="function")return new l3(function(){return N[Symbol.iterator]()});
if(typeof N.__iterator__=="function")return new l3(function(){return N.__iterator__()});
throw Error("Qc");},l3=function(N){this.func_=N};
l3.prototype.__iterator__=function(){return new LO(this.func_())};
l3.prototype[Symbol.iterator]=function(){return new fO(this.func_())};
l3.prototype.toEs6=function(){return new fO(this.func_())};
var LO=function(N){this.JSC$10840_iter_=N};
_.F(LO,Mk);LO.prototype.next=function(){return this.JSC$10840_iter_.next()};
LO.prototype[Symbol.iterator]=function(){return new fO(this.JSC$10840_iter_)};
LO.prototype.toEs6=function(){return new fO(this.JSC$10840_iter_)};
var fO=function(N){l3.call(this,function(){return N});
this.JSC$10843_iter_=N};
_.F(fO,l3);fO.prototype.next=function(){return this.JSC$10843_iter_.next()};var kYz=function(){};var u3=function(){};
_.Km(u3,kYz);u3.prototype.getCount=function(){for(var N=0,b=_.O(this),S=b.next();!S.done;S=b.next())N++;return N};
u3.prototype[Symbol.iterator]=function(){return m7b(this.__iterator__(!0)).toEs6()};
u3.prototype.clear=function(){var N=Array.from(this);N=_.O(N);for(var b=N.next();!b.done;b=N.next())this.remove(b.value)};_.Km(XQ,u3);_.v=XQ.prototype;_.v.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var N=this.storage_;if(N)try{N.setItem("__sak","1");N.removeItem("__sak");var b=!0}catch(S){b=S instanceof DOMException&&(S.name==="QuotaExceededError"||S.code===22||S.code===1014||S.name==="NS_ERROR_DOM_QUOTA_REACHED")&&N&&N.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
_.v.set=function(N,b){QU(this);try{this.storage_.setItem(N,b)}catch(S){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.v.get=function(N){QU(this);N=this.storage_.getItem(N);if(typeof N!=="string"&&N!==null)throw"Storage mechanism: Invalid value was encountered";return N};
_.v.remove=function(N){QU(this);this.storage_.removeItem(N)};
_.v.getCount=function(){QU(this);return this.storage_.length};
_.v.__iterator__=function(N){QU(this);var b=0,S=this.storage_,P=new Mk;P.next=function(){if(b>=S.length)return FI;var H=S.key(b++);if(N)return BF(H);H=S.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return BF(H)};
return P};
_.v.clear=function(){QU(this);this.storage_.clear()};
_.v.key=function(N){QU(this);return this.storage_.key(N)};
var QU=function(N){if(N.storage_==null)throw Error("Rc");N.isAvailable()||Hs(Error("Rc"))};_.Km(qRI,XQ);_.Km(wNO,XQ);_.Km(El,u3);El.prototype.set=function(N,b){this.mechanism_.set(this.JSC$10858_prefix_+N,b)};
El.prototype.get=function(N){return this.mechanism_.get(this.JSC$10858_prefix_+N)};
El.prototype.remove=function(N){this.mechanism_.remove(this.JSC$10858_prefix_+N)};
El.prototype.__iterator__=function(N){var b=this.mechanism_[Symbol.iterator](),S=this,P=new Mk;P.next=function(){var H=b.next();if(H.done)return H;for(H=H.value;H.slice(0,S.JSC$10858_prefix_.length)!=S.JSC$10858_prefix_;){H=b.next();if(H.done)return H;H=H.value}return BF(N?H.slice(S.JSC$10858_prefix_.length):S.mechanism_.get(H))};
return P};_.h2=function(N){this.expiringStorage_=(N=_.pE(N))?new Az(N):null;this.JSC$10862_domain_=document.domain||window.location.hostname};
_.v=_.h2.prototype;_.v.hasLocalStorage=function(){return!!this.expiringStorage_};
_.v.set=function(N,b,S,P){S=S||31104E3;this.remove(N);if(this.hasLocalStorage())try{this.expiringStorage_.set(N,b,Date.now()+S*1E3);return}catch(K){}var H="";if(P)try{H=escape((0,_.Id)(b))}catch(K){return}else H=escape(b);_.iQ(N,H,S,this.JSC$10862_domain_)};
_.v.get=function(N,b){var S=void 0,P=!this.hasLocalStorage();if(!P)try{S=this.expiringStorage_.get(N)}catch(H){P=!0}if(P&&(S=_.xb.get(N,void 0))&&(S=unescape(S),b))try{S=JSON.parse(S)}catch(H){this.remove(N),S=void 0}return S};
_.v.remove=function(N){this.hasLocalStorage()&&this.expiringStorage_.remove(N);_.IpU(N,"/",this.JSC$10862_domain_)};
_.v.getCreationTime=function(N){return this.hasLocalStorage()&&(N=(this.expiringStorage_.getWrapper(N)||{}).creation,typeof N==="number")?N:null};var buu=function(){var N;return function(){N||(N=new _.h2("ytidb"));return N}}();var PVe;_.yB=[];PVe=!1;var tsE=Huo||spp;var xS={},TXO=(xS.AUTH_INVALID="No user identifier specified.",xS.EXPLICIT_ABORT="Transaction was explicitly aborted.",xS.IDB_NOT_SUPPORTED="IndexedDB is not supported.",xS.MISSING_INDEX="Index not created.",xS.MISSING_OBJECT_STORES="Object stores not created.",xS.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",xS.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",xS.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",xS.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",xS.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",xS.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",xS.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",xS),oj={},ttd=(oj.AUTH_INVALID="ERROR",oj.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",oj.EXPLICIT_ABORT="IGNORED",
oj.IDB_NOT_SUPPORTED="ERROR",oj.MISSING_INDEX="WARNING",oj.MISSING_OBJECT_STORES="ERROR",oj.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",oj.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",oj.QUOTA_EXCEEDED="WARNING",oj.QUOTA_MAYBE_EXCEEDED="WARNING",oj.UNKNOWN_ABORT="WARNING",oj.INCOMPATIBLE_DB_VERSION="WARNING",oj),i3={},Mtl=(i3.AUTH_INVALID=!1,i3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,i3.EXPLICIT_ABORT=!1,i3.IDB_NOT_SUPPORTED=!1,i3.MISSING_INDEX=!1,i3.MISSING_OBJECT_STORES=!1,i3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,i3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,i3.QUOTA_EXCEEDED=!1,i3.QUOTA_MAYBE_EXCEEDED=!0,i3.UNKNOWN_ABORT=!0,i3.INCOMPATIBLE_DB_VERSION=!1,i3),$b=function(N,b,S,P,H){b=b===void 0?{}:b;S=S===void 0?TXO[N]:S;P=P===void 0?ttd[N]:P;H=H===void 0?Mtl[N]:H;_.jU.call(this,S,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:N},b));this.type=N;this.message=S;this.level=P;this.retryable=H;Object.setPrototypeOf(this,$b.prototype)};
_.F($b,_.jU);var Fnk=function(N,b){$b.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:N},TXO.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Fnk.prototype)};
_.F(Fnk,$b);var vGp=function(N,b){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.index=N;this.objectStore=b;Object.setPrototypeOf(this,vGp.prototype)};
_.F(vGp,Error);var OuI=["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"];var NY=function(N){this.executor=N},w7=function(N){var b=this;
this.state={status:"PENDING"};this.JSC$10890_onFulfilled=[];this.JSC$10890_onRejected=[];N=N.executor;var S=function(H){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:H};H=_.O(b.JSC$10890_onFulfilled);for(var K=H.next();!K.done;K=H.next())K=K.value,K()}},P=function(H){if(b.state.status==="PENDING"){b.state={status:"REJECTED",
reason:H};H=_.O(b.JSC$10890_onRejected);for(var K=H.next();!K.done;K=H.next())K=K.value,K()}};
try{N(S,P)}catch(H){P(H)}};
w7.all=function(N){return new w7(new NY(function(b,S){var P=[],H=N.length;H===0&&b(P);for(var K={i$jscomp$469:0};K.i$jscomp$469<N.length;K={i$jscomp$469:K.i$jscomp$469},++K.i$jscomp$469)w7.resolve(N[K.i$jscomp$469]).then(function(C){return function(G){P[C.i$jscomp$469]=G;H--;H===0&&b(P)}}(K)).catch(function(C){S(C)})}))};
w7.resolve=function(N){return new w7(new NY(function(b,S){N instanceof w7?N.then(b,S):b(N)}))};
w7.reject=function(N){return new w7(new NY(function(b,S){S(N)}))};
w7.prototype.then=function(N,b){var S=this,P=N!=null?N:r0O,H=b!=null?b:GLa;return new w7(new NY(function(K,C){S.state.status==="PENDING"?(S.JSC$10890_onFulfilled.push(function(){BX9(S,S,P,K,C)}),S.JSC$10890_onRejected.push(function(){lpZ(S,S,H,K,C)})):S.state.status==="FULFILLED"?BX9(S,S,P,K,C):S.state.status==="REJECTED"&&lpZ(S,S,H,K,C)}))};
w7.prototype.catch=function(N){return this.then(void 0,N)};
var BX9=function(N,b,S,P,H){try{if(N.state.status!=="FULFILLED")throw Error("Uc");var K=S(N.state.value);K instanceof w7?LnS(N,b,K,P,H):P(K)}catch(C){H(C)}},lpZ=function(N,b,S,P,H){try{if(N.state.status!=="REJECTED")throw Error("Vc");
var K=S(N.state.reason);K instanceof w7?LnS(N,b,K,P,H):P(K)}catch(C){H(C)}},LnS=function(N,b,S,P,H){b===S?H(new TypeError("Wc")):S.then(function(K){K instanceof w7?LnS(N,b,K,P,H):P(K)},function(K){H(K)})};var Jq;Jq=window;_.nh=Jq.ytcsi&&Jq.ytcsi.now?Jq.ytcsi.now:Jq.performance&&Jq.performance.timing&&Jq.performance.now&&Jq.performance.timing.navigationStart?function(){return Jq.performance.timing.navigationStart+Jq.performance.now()}:function(){return(new Date).getTime()};var PK=function(N,b){this.JSC$10902_wrapped=N;this.options=b;this.transactionCount=0;this.startedMs=Math.round((0,_.nh)());this.hasUnknownAbortedTransaction=!1},Uy=function(){return _.T("idb_immediate_commit")},QmO,x79,zm,JZ9;
PK.prototype.add=function(N,b,S){return _.Ou(this,[N],{mode:"readwrite",enableRetries:!0,commit:Uy()},function(P){return P.objectStore(N).add(b,S)})};
PK.prototype.clear=function(N){return _.Ou(this,[N],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(N).clear()})};
PK.prototype.close=function(){this.JSC$10902_wrapped.close();var N;((N=this.options)==null?0:N.closed)&&this.options.closed()};
PK.prototype.count=function(N,b){return _.Ou(this,[N],{mode:"readonly",enableRetries:!0,commit:Uy()},function(S){return S.objectStore(N).count(b)})};
var NN=function(N,b,S){N=N.JSC$10902_wrapped.createObjectStore(b,S);return new Za(N)};
PK.prototype.delete=function(N,b){return _.Ou(this,[N],{mode:"readwrite",enableRetries:!0,commit:Uy()&&!(b instanceof IDBKeyRange)},function(S){return S.objectStore(N).delete(b)})};
var fpV=function(N,b){return _.Ou(N,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore("ResponseStore").index("byInterface").delete(b)})};
PK.prototype.get=function(N,b){return _.Ou(this,[N],{mode:"readonly",enableRetries:!0,commit:Uy()},function(S){return S.objectStore(N).get(b)})};
PK.prototype.getAll=function(N,b,S){return _.Ou(this,[N],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(N).getAll(b,S)})};
PK.prototype.put=function(N,b,S){return _.Ou(this,[N],{mode:"readwrite",enableRetries:!0,commit:Uy()},function(P){return P.objectStore(N).put(b,S)})};
PK.prototype.objectStoreNames=function(){return Array.from(this.JSC$10902_wrapped.objectStoreNames)};
_.Ou=function(N,b,S,P){var H,K,C,G,a,R,n,d,m,k,M,l;return _.r(function(u){switch(u.nextAddress){case 1:var J={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof S==="string"?J.mode=S:Object.assign(J,S);H=J;N.transactionCount++;K=H.enableRetries?3:1;C=0;case 2:if(G){u.jumpTo(4);break}C++;a=Math.round((0,_.nh)());_.u4(u,5);R=N.JSC$10902_wrapped.transaction(b,H.mode);J=u.yield;var Z=!!H.commit;var D=new HK(R);Z=u84(D,P,Z);return J.call(u,Z,7);case 7:return n=u.yieldResult,d=Math.round((0,_.nh)()),
QmO(N,a,d,C,void 0,b.join(),H),u.return(n);case 5:m=_.UE(u);k=Math.round((0,_.nh)());M=CVs(m,N.JSC$10902_wrapped.name,b.join(),N.JSC$10902_wrapped.version);if((l=M instanceof $b&&!M.retryable)||C>=K)QmO(N,a,k,C,M,b.join(),H),G=M;u.jumpTo(2);break;case 4:return u.return(Promise.reject(G))}})};
QmO=function(N,b,S,P,H,K,C){b=S-b;H?(H instanceof $b&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&Dh("QUOTA_EXCEEDED",{dbName:g7(N.JSC$10902_wrapped.name),objectStoreNames:K,transactionCount:N.transactionCount,transactionMode:C.mode}),H instanceof $b&&H.type==="UNKNOWN_ABORT"&&(S-=N.startedMs,S<0&&S>=2147483648&&(S=0),Dh("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:b,transactionCount:N.transactionCount,dbDuration:S}),N.hasUnknownAbortedTransaction=!0),
x79(N,!1,P,K,b,C.tag),_.IN(H)):x79(N,!0,P,K,b,C.tag)};
x79=function(N,b,S,P,H,K){Dh("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:N.hasUnknownAbortedTransaction,duration:H,isSuccessful:b,tryCount:S,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})};
PK.prototype.getName=function(){return this.JSC$10902_wrapped.name};
var Za=function(N){this.JSC$10917_wrapped=N};
Za.prototype.add=function(N,b){return bS(this.JSC$10917_wrapped.add(N,b))};
Za.prototype.autoIncrement=function(){return this.JSC$10917_wrapped.autoIncrement};
Za.prototype.clear=function(){return bS(this.JSC$10917_wrapped.clear()).then(function(){})};
var b5=function(N,b,S){N.JSC$10917_wrapped.createIndex(b,S,{unique:!1})};
Za.prototype.count=function(N){return bS(this.JSC$10917_wrapped.count(N))};
var oR9=function(N,b){return Gi(N,{query:b},function(S){return S.delete().then(function(){return S.continue()})}).then(function(){})};
Za.prototype.delete=function(N){return N instanceof IDBKeyRange?oR9(this,N):bS(this.JSC$10917_wrapped.delete(N))};
Za.prototype.get=function(N){return bS(this.JSC$10917_wrapped.get(N))};
Za.prototype.getAll=function(N,b){return"getAll"in IDBObjectStore.prototype?bS(this.JSC$10917_wrapped.getAll(N,b)):iAd(this,N,b)};
var iAd=function(N,b,S){var P=[];return Gi(N,{query:b},function(H){if(!(S!==void 0&&P.length>=S))return P.push(H.getValue()),H.continue()}).then(function(){return P})};
Za.prototype.index=function(N){try{return new jV(this.JSC$10917_wrapped.index(N))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new vGp(N,this.JSC$10917_wrapped.name);throw b;}};
Za.prototype.getName=function(){return this.JSC$10917_wrapped.name};
Za.prototype.keyPath=function(){return this.JSC$10917_wrapped.keyPath};
Za.prototype.put=function(N,b){return bS(this.JSC$10917_wrapped.put(N,b))};
var Gi=function(N,b,S){N=N.JSC$10917_wrapped.openCursor(b.query,b.direction);return JZ9(N).then(function(P){return RV9(P,S)})},HK=function(N){var b=this;
this.JSC$10925_wrapped=N;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(S,P){b.JSC$10925_wrapped.addEventListener("complete",function(){S()});
b.JSC$10925_wrapped.addEventListener("error",function(H){H.currentTarget===H.target&&P(b.JSC$10925_wrapped.error)});
b.JSC$10925_wrapped.addEventListener("abort",function(){var H=b.JSC$10925_wrapped.error;if(H)P(H);else if(!b.aborted){H=$b;for(var K=b.JSC$10925_wrapped.objectStoreNames,C=[],G=0;G<K.length;G++){var a=K.item(G);if(a===null)throw Error("Xc");C.push(a)}H=new H("UNKNOWN_ABORT",{objectStoreNames:C.join(),dbName:b.JSC$10925_wrapped.db.name,mode:b.JSC$10925_wrapped.mode});P(H)}})})},u84=function(N,b,S){var P=new Promise(function(H,K){try{var C=b(N);
S&&N.commit();C.then(function(G){H(G)}).catch(K)}catch(G){K(G),N.abort()}});
return Promise.all([P,N.done]).then(function(H){return _.O(H).next().value})};
HK.prototype.abort=function(){this.JSC$10925_wrapped.abort();this.aborted=!0;throw new $b("EXPLICIT_ABORT");};
HK.prototype.commit=function(){if(!this.aborted){var N,b;(b=(N=this.JSC$10925_wrapped).commit)==null||b.call(N)}};
HK.prototype.objectStore=function(N){N=this.JSC$10925_wrapped.objectStore(N);var b=this.objectStoreCache.get(N);b||(b=new Za(N),this.objectStoreCache.set(N,b));return b};
var jV=function(N){this.JSC$10927_wrapped=N};
jV.prototype.count=function(N){return bS(this.JSC$10927_wrapped.count(N))};
jV.prototype.delete=function(N){return _.dk(this,{query:N},function(b){return b.delete().then(function(){return b.continue()})})};
jV.prototype.get=function(N){return bS(this.JSC$10927_wrapped.get(N))};
jV.prototype.getAll=function(N,b){return"getAll"in IDBIndex.prototype?bS(this.JSC$10927_wrapped.getAll(N,b)):U7c(this,N,b)};
var U7c=function(N,b,S){var P=[];return _.dk(N,{query:b},function(H){if(!(S!==void 0&&P.length>=S))return P.push(H.getValue()),H.continue()}).then(function(){return P})};
jV.prototype.keyPath=function(){return this.JSC$10927_wrapped.keyPath};
jV.prototype.unique=function(){return this.JSC$10927_wrapped.unique};
_.dk=function(N,b,S){N=N.JSC$10927_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return JZ9(N).then(function(P){return RV9(P,S)})};
zm=function(N,b){this.request=N;this.cursor=b};
JZ9=function(N){return bS(N).then(function(b){return b?new zm(N,b):null})};
zm.prototype.continue=function(N){this.cursor.continue(N);return JZ9(this.request)};
zm.prototype.delete=function(){return bS(this.cursor.delete()).then(function(){})};
zm.prototype.getValue=function(){return this.cursor.value};
zm.prototype.update=function(N){return bS(this.cursor.update(N))};var Aq=function(N,b){this.name=N;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},ZAN;
Aq.prototype.openDb=function(N,b,S){S=S===void 0?{}:S;return nG9(N,b,S)};
Aq.prototype.delete=function(N){N=N===void 0?{}:N;return _.Kh(this.name,N)};
ZAN=function(N,b){return new $b("INCOMPATIBLE_DB_VERSION",{dbName:N.name,oldVersion:N.options.version,newVersion:b})};
_.vK=function(N,b){if(!b)throw qX("openWithToken",g7(N.name));return N.open()};
Aq.prototype.open=function(){var N=this;if(!this.isCompatible)throw ZAN(this);if(this.connectionPromise)return this.connectionPromise;var b,S=function(){N.connectionPromise===b&&(N.connectionPromise=void 0)},P={blocking:function(K){K.close()},
closed:S,terminated:S,upgrade:this.options.upgrade},H=function(){var K,C,G,a,R,n,d,m,k,M;return _.r(function(l){switch(l.nextAddress){case 1:return C=(K=Error().stack)!=null?K:"",_.u4(l,2),l.yield(N.openDb(N.name,N.options.version,P),4);case 4:for(var u=G=l.yieldResult,J=N.options,Z=[],D=_.O(Object.keys(J.objectStores)),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var V=J.objectStores[Y],g=V.removedAtVersion===void 0?Number.MAX_VALUE:V.removedAtVersion;!(u.JSC$10902_wrapped.version>=V.addedAtVersion)||
u.JSC$10902_wrapped.version>=g||u.JSC$10902_wrapped.objectStoreNames.contains(Y)||Z.push(Y)}a=Z;if(a.length===0){l.jumpTo(5);break}R=Object.keys(N.options.objectStores);n=G.objectStoreNames();if(N.timesReopenedToFixMissingObjectStore<_.d7("ytidb_reopen_db_retries",0))return N.timesReopenedToFixMissingObjectStore++,G.close(),_.IN(new $b("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:N.name,expectedObjectStores:R,foundObjectStores:n})),l.return(H());if(!(N.timesDeletedToFixMissingObjectStore<_.d7("ytidb_remake_db_retries",
1))){l.jumpTo(6);break}N.timesDeletedToFixMissingObjectStore++;return l.yield(N.delete(),7);case 7:return _.IN(new $b("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:N.name,expectedObjectStores:R,foundObjectStores:n})),l.return(H());case 6:throw new Fnk(n,R);case 5:return l.return(G);case 2:d=_.UE(l);if(d instanceof DOMException?d.name!=="VersionError":"DOMError"in self&&d instanceof DOMError?d.name!=="VersionError":!(d instanceof Object&&"message"in d)||d.message!=="An attempt was made to open a database using a lower version than the existing version."){l.jumpTo(8);
break}return l.yield(N.openDb(N.name,void 0,Object.assign({},P,{upgrade:void 0})),9);case 9:m=l.yieldResult;k=m.JSC$10902_wrapped.version;if(N.options.version!==void 0&&k>N.options.version+1)throw m.close(),N.isCompatible=!1,ZAN(N,k);return l.return(m);case 8:throw S(),d instanceof Error&&!_.T("ytidb_async_stack_killswitch")&&(d.stack=d.stack+"\n"+C.substring(C.indexOf("\n")+1)),CVs(d,N.name,"",(M=N.options.version)!=null?M:-1);}})};
return this.connectionPromise=b=H()};var d6I=new Aq("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(N,b){b(1)&&NN(N,"databases",{keyPath:"actualName"})}});var Byb,MsU=new function(){}(new function(){});new _.GB;var jmN=function(N,b){Aq.call(this,N,b);this.options=b;VB(N)};
_.F(jmN,Aq);var U6U=function(N,b){var S;return function(){S||(S=new jmN(N,b));return S}};
jmN.prototype.openDb=function(N,b,S){S=S===void 0?{}:S;return(this.options.shared?Qpp:ukf)(N,b,Object.assign({},S))};
jmN.prototype.delete=function(N){N=N===void 0?{}:N;return(this.options.shared?J0U:x6e)(this.name,N)};var zzV={},Zua=WK("ytGcfConfig",{objectStores:(zzV.coldConfigStore={addedAtVersion:1},zzV.hotConfigStore={addedAtVersion:1},zzV),shared:!1,upgrade:function(N,b){b(1)&&(b5(NN(N,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),b5(NN(N,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var AZk=function(){_.E5.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var N=_.hl("yt.gcf.config.hotUpdateCallbacks");N?(this.localHotConfigJobQueue=[].concat(_.IX(N)),this.sharedHotConfigJobQueue=N):(this.sharedHotConfigJobQueue=[],_.aB("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.F(AZk,_.E5);AZk.prototype.disposeInternal=function(){for(var N=_.O(this.localHotConfigJobQueue),b=N.next();!b.done;b=N.next()){var S=this.sharedHotConfigJobQueue;b=S.indexOf(b.value);b>=0&&S.splice(b,1)}this.localHotConfigJobQueue.length=0;_.E5.prototype.disposeInternal.call(this)};var Ev=function(){var N=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new AZk;this.TEST_ONLY={initializeConfigDb:function(){N.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return N.coldGlobalConfigGroup},
setHotConfigGroup:function(b){XNV(N,b)},
setHotHashData:function(b){N.setHotHashData(b)},
setColdConfigGroup:function(b){ERc(N,b)},
getColdHashData:function(){return N.coldHashData},
getHotHashData:function(){return N.hotHashData},
getHotConfigGroup:function(){return N.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return pN9()},
getExportedHotConfigGroup:function(){return XI()},
getExportedColdHashData:function(){return _.hl("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.hl("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){YRd(N)},
resetInstance:function(){N.setHotHashData(void 0);yZN(N);delete Ev.instance},
setDebounceTimer:function(b){N.debounceTimer=b},
getDebounceTimer:function(){return N.debounceTimer}}},Ipb=function(){if(!Ev.instance){var N=new Ev;
Ev.instance=N}return Ev.instance},gR4=function(N){var b;
_.r(function(S){if(S.nextAddress==1)return _.T("start_client_gcf")||_.T("delete_gcf_config_db")?_.T("start_client_gcf")?S.yield(_.RB(),3):S.jumpTo(2):S.return();S.nextAddress!=2&&((b=S.yieldResult)&&_.Zh()&&!_.T("delete_gcf_config_db")?(N.isConfigDbInitialized=!0,YRd(N)):(D7S(N),VtS(N)));return _.T("delete_gcf_config_db")?S.yield(pUu(),0):S.jumpTo(0)})},pv=function(){var N;
return(N=XI())!=null?N:_.Vg("RAW_HOT_CONFIG_GROUP")},ezd=function(N){var b,S,P,H,K,C;
return _.r(function(G){switch(G.nextAddress){case 1:if(N.hotGlobalConfigGroup)return G.return(XI());if(!N.isConfigDbInitialized)return b=qX("getHotConfig IDB not initialized"),_.qB(b),G.return(Promise.reject(b));S=cK();P=_.Vg("TIME_CREATED_MS");if(!S){H=qX("getHotConfig token error");_.qB(H);G.jumpTo(2);break}return G.yield(EGU(S),3);case 3:if((K=G.yieldResult)&&K.timestamp>P)return XNV(N,K.config),N.setHotHashData(K.hashData),G.return(XI());case 2:VtS(N);if(!(S&&N.hotGlobalConfigGroup&&N.hotHashData)){G.jumpTo(4);
break}return G.yield(zVL(N.hotGlobalConfigGroup,N.hotHashData,S,P),4);case 4:return N.hotGlobalConfigGroup?G.return(XI()):(C=new _.jU("Config not available in ytConfig"),_.qB(C),G.return(Promise.reject(C)))}})},hzz=function(N){var b,S,P,H,K,C;
return _.r(function(G){switch(G.nextAddress){case 1:if(N.coldGlobalConfigGroup)return G.return(pN9());if(!N.isConfigDbInitialized)return b=qX("getColdConfig IDB not initialized"),_.qB(b),G.return(Promise.reject(b));S=cK();P=_.Vg("TIME_CREATED_MS");if(!S){H=qX("getColdConfig");_.qB(H);G.jumpTo(2);break}return G.yield(XU9(S),3);case 3:if((K=G.yieldResult)&&K.timestamp>P)return ERc(N,K.config),$7S(N,K.configData),yZN(N,K.hashData),G.return(pN9());case 2:D7S(N);if(!(S&&N.coldGlobalConfigGroup&&N.coldHashData&&
N.configData)){G.jumpTo(4);break}return G.yield(A0u(N.coldGlobalConfigGroup,N.coldHashData,N.configData,S,P),4);case 4:return N.coldGlobalConfigGroup?G.return(pN9()):(C=new _.jU("Config not available in ytConfig"),_.qB(C),G.return(Promise.reject(C)))}})},YRd=function(N){if(!N.hotGlobalConfigGroup||!N.coldGlobalConfigGroup){if(!cK()){var b=qX("scheduleGetConfigs");
_.qB(b)}N.initJob||(N.initJob=_.Dj.addLowPriorityJob(function(){return _.r(function(S){switch(S.nextAddress){case 1:return _.u4(S,2),S.yield(ezd(N),4);case 4:_.su(S,3);break;case 2:_.UE(S);case 3:return _.u4(S,5),S.yield(hzz(N),7);case 7:_.su(S,6);break;case 5:_.UE(S);case 6:N.initJob&&(N.initJob=0),_.Zd(S)}})},100))}},A8p=function(N,b,S){var P,H,K;
return _.r(function(C){switch(C.nextAddress){case 1:if(!_.T("start_client_gcf")){C.jumpTo(0);break}S&&XNV(N,S);N.setHotHashData(b);P=cK();if(!P){C.jumpTo(3);break}if(S){C.jumpTo(4);break}return C.yield(EGU(P),5);case 5:H=C.yieldResult,S=(K=H)==null?void 0:K.config;case 4:return C.yield(zVL(S,b,P),3);case 3:if(S)for(var G=S,a=_.O(N.configUpdateService.sharedHotConfigJobQueue),R=a.next();!R.done;R=a.next())R=R.value,R(G);_.Zd(C)}})},XXf=function(N,b,S){var P,H,K,C;
return _.r(function(G){if(G.nextAddress==1){if(!_.T("start_client_gcf"))return G.jumpTo(0);yZN(N,b);return(P=cK())?S?G.jumpTo(4):G.yield(XU9(P),5):G.jumpTo(0)}G.nextAddress!=4&&(H=G.yieldResult,S=(K=H)==null?void 0:K.config);if(!S)return G.jumpTo(0);C=S.configData;return G.yield(A0u(S,b,C,P),0)})},KyI=function(){var N=Ipb(),b=(0,_.nh)()-N.debounceTimer;
if(!(N.debounceTimer!==0&&b<_.d7("send_config_hash_timer"))){b=_.hl("yt.gcf.config.coldConfigData");var S=_.hl("yt.gcf.config.hotHashData"),P=_.hl("yt.gcf.config.coldHashData");b&&S&&P&&(N.debounceTimer=(0,_.nh)());return{coldConfigData:b,hotHashData:S,coldHashData:P}}},D7S=function(N){ERc(N,_.Vg("RAW_COLD_CONFIG_GROUP"));
yZN(N,_.Vg("SERIALIZED_COLD_HASH_DATA"));var b;$7S(N,(b=N.coldGlobalConfigGroup)==null?void 0:b.configData)},VtS=function(N){XNV(N,_.Vg("RAW_HOT_CONFIG_GROUP"));
N.setHotHashData(_.Vg("SERIALIZED_HOT_HASH_DATA"))},XNV=function(N,b){N.hotGlobalConfigGroup=b;
_.aB("yt.gcf.config.hotConfigGroup",N.hotGlobalConfigGroup||null)},ERc=function(N,b){N.coldGlobalConfigGroup=b;
_.aB("yt.gcf.config.coldConfigGroup",N.coldGlobalConfigGroup||null)};
Ev.prototype.setHotHashData=function(N){this.hotHashData=N;_.aB("yt.gcf.config.hotHashData",this.hotHashData||null)};
var yZN=function(N,b){N.coldHashData=b;_.aB("yt.gcf.config.coldHashData",N.coldHashData||null)},$7S=function(N,b){N.configData=b;
_.aB("yt.gcf.config.coldConfigData",N.configData||null)},XI=function(){return _.hl("yt.gcf.config.hotConfigGroup")},pN9=function(){return _.hl("yt.gcf.config.coldConfigGroup")};var fh={},qR9=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";fh.assign=function(N){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var S=b.shift();if(S){if(typeof S!=="object")throw new TypeError("$c`"+S);for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(N[P]=S[P])}}return N};
fh.shrinkBuf=function(N,b){if(N.length===b)return N;if(N.subarray)return N.subarray(0,b);N.length=b;return N};
var wNZ={arraySet:function(N,b,S,P,H){if(b.subarray&&N.subarray)N.set(b.subarray(S,S+P),H);else for(var K=0;K<P;K++)N[H+K]=b[S+K]},
flattenChunks:function(N){var b,S;var P=S=0;for(b=N.length;P<b;P++)S+=N[P].length;var H=new Uint8Array(S);P=S=0;for(b=N.length;P<b;P++){var K=N[P];H.set(K,S);S+=K.length}return H}},Nyl={arraySet:function(N,b,S,P,H){for(var K=0;K<P;K++)N[H+K]=b[S+K]},
flattenChunks:function(N){return[].concat.apply([],N)}};
fh.setTyped=function(){qR9?(fh.Buf8=Uint8Array,fh.Buf16=Uint16Array,fh.Buf32=Int32Array,fh.assign(fh,wNZ)):(fh.Buf8=Array,fh.Buf16=Array,fh.Buf32=Array,fh.assign(fh,Nyl))};
fh.setTyped();var buz=!0;try{new Uint8Array(1)}catch(N){buz=!1}
var EnO=function(N){var b,S,P=N.length,H=0;for(b=0;b<P;b++){var K=N.charCodeAt(b);if((K&64512)===55296&&b+1<P){var C=N.charCodeAt(b+1);(C&64512)===56320&&(K=65536+(K-55296<<10)+(C-56320),b++)}H+=K<128?1:K<2048?2:K<65536?3:4}var G=new fh.Buf8(H);for(b=S=0;S<H;b++)K=N.charCodeAt(b),(K&64512)===55296&&b+1<P&&(C=N.charCodeAt(b+1),(C&64512)===56320&&(K=65536+(K-55296<<10)+(C-56320),b++)),K<128?G[S++]=K:(K<2048?G[S++]=192|K>>>6:(K<65536?G[S++]=224|K>>>12:(G[S++]=240|K>>>18,G[S++]=128|K>>>12&63),G[S++]=
128|K>>>6&63),G[S++]=128|K&63);return G};var fKL={};fKL=function(N,b,S,P){var H=N&65535|0;N=N>>>16&65535|0;for(var K;S!==0;){K=S>2E3?2E3:S;S-=K;do H=H+b[P++]|0,N=N+H|0;while(--K);H%=65521;N%=65521}return H|N<<16|0};for(var Eu={},Ey,SIk=[],PVd=0;PVd<256;PVd++){Ey=PVd;for(var Hu4=0;Hu4<8;Hu4++)Ey=Ey&1?3988292384^Ey>>>1:Ey>>>1;SIk[PVd]=Ey}Eu=function(N,b,S,P){S=P+S;for(N^=-1;P<S;P++)N=N>>>8^SIk[(N^b[P])&255];return N^-1};var oB={};oB={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 nn_=[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],mnf=[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],XdO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lKI=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Zj=Array(576);Fn(Zj);var jH=Array(60);Fn(jH);var Qb=Array(512);Fn(Qb);var uS=Array(256);Fn(uS);var dn9=Array(29);Fn(dn9);var kBf=Array(30);Fn(kBf);var j3I,zCe,Asp,ZXf=!1;var IB;
IB=[new yb(0,0,0,0,function(N,b){var S=65535;for(S>N.pending_buf_size-5&&(S=N.pending_buf_size-5);;){if(N.lookahead<=1){ph(N);if(N.lookahead===0&&b===0)return 1;if(N.lookahead===0)break}N.strstart+=N.lookahead;N.lookahead=0;var P=N.block_start+S;if(N.strstart===0||N.strstart>=P)if(N.lookahead=N.strstart-P,N.strstart=P,zi(N,!1),N.strm.avail_out===0)return 1;if(N.strstart-N.block_start>=N.w_size-262&&(zi(N,!1),N.strm.avail_out===0))return 1}N.insert=0;if(b===4)return zi(N,!0),N.strm.avail_out===0?3:
4;N.strstart>N.block_start&&zi(N,!1);return 1}),
new yb(4,4,8,4,u69),new yb(4,5,16,8,u69),new yb(4,6,32,32,u69),new yb(4,4,16,16,Y0),new yb(8,16,32,32,Y0),new yb(8,16,128,128,Y0),new yb(8,32,128,256,Y0),new yb(32,128,258,1024,Y0),new yb(32,258,258,4096,Y0)];var Unf={};Unf=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0};var pde=Object.prototype.toString;
Jsu.prototype.push=function(N,b){var S=this.strm,P=this.options.chunkSize;if(this.ended)return!1;var H=b===~~b?b:b===!0?4:0;typeof N==="string"?S.input=EnO(N):pde.call(N)==="[object ArrayBuffer]"?S.input=new Uint8Array(N):S.input=N;S.next_in=0;S.avail_in=S.input.length;do{S.avail_out===0&&(S.output=new fh.Buf8(P),S.next_out=0,S.avail_out=P);N=iX9(S,H);if(N!==1&&N!==0)return sp9(this,N),this.ended=!0,!1;if(S.avail_out===0||S.avail_in===0&&(H===4||H===2))if(this.options.to==="string"){var K=fh.shrinkBuf(S.output,
S.next_out);b=K;K=K.length;if(K<65537&&(b.subarray&&buz||!b.subarray))b=String.fromCharCode.apply(null,fh.shrinkBuf(b,K));else{for(var C="",G=0;G<K;G++)C+=String.fromCharCode(b[G]);b=C}this.chunks.push(b)}else b=fh.shrinkBuf(S.output,S.next_out),this.chunks.push(b)}while((S.avail_in>0||S.avail_out===0)&&N!==1);if(H===4)return(S=this.strm)&&S.state?(P=S.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?N=iS(S,-2):(S.state=null,N=P===113?iS(S,-3):0)):N=-2,sp9(this,N),this.ended=
!0,N===0;H===2&&(sp9(this,0),S.avail_out=0);return!0};
var sp9=function(N,b){b===0&&(N.result=N.options.to==="string"?N.chunks.join(""):fh.flattenChunks(N.chunks));N.chunks=[];N.err=b;N.msg=N.strm.msg};var KaZ=typeof TextEncoder!=="undefined"?new TextEncoder:null,dIY=KaZ?function(N){return KaZ.encode(N)}:function(N){N=_.Xc(N);
for(var b=new Uint8Array(N.length),S=0;S<b.length;S++)b[S]=N[S];return b};var Hca={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},KOs={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var pO=function(N,b){this.version=N;this.args=b};
pO.prototype.serialize=function(){return{version:this.version,args:this.args}};var VZb=function(N,b){this.topic=N;this.dataClass=b};
VZb.prototype.toString=function(){return this.topic};var vG9=_.hl("ytPubsub2Pubsub2Instance")||new _.uQ;_.uQ.prototype.subscribe=_.uQ.prototype.subscribe;_.uQ.prototype.unsubscribeByKey=_.uQ.prototype.unsubscribeByKey;_.uQ.prototype.publish=_.uQ.prototype.publish;_.uQ.prototype.clear=_.uQ.prototype.clear;_.aB("ytPubsub2Pubsub2Instance",vG9);var DnE=_.hl("ytPubsub2Pubsub2SubscribedKeys")||{};_.aB("ytPubsub2Pubsub2SubscribedKeys",DnE);var eCp=_.hl("ytPubsub2Pubsub2TopicToKeys")||{};_.aB("ytPubsub2Pubsub2TopicToKeys",eCp);
var gns=_.hl("ytPubsub2Pubsub2IsAsync")||{};_.aB("ytPubsub2Pubsub2IsAsync",gns);_.aB("ytPubsub2Pubsub2SkipSubKey",null);var sA_=void 0,PIU=void 0;var aL9=_.d7("max_body_size_to_compress",5E5),RLa=_.d7("min_body_size_to_compress",500),gk=!0,Tqs=0,eH=0,kdp=_.d7("compression_performance_threshold_lr",250),M7a=_.d7("slow_compressions_before_abandon_count",4),O3E=!1,CIs=new Map,nqE=1,Wdb=!0;_.Km($0,BqI);$0.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.total_=this.inbuf_=0};
var Ou9=function(N,b,S){S||(S=0);var P=N.W_;if(typeof b==="string")for(var H=0;H<16;H++)P[H]=b.charCodeAt(S)<<24|b.charCodeAt(S+1)<<16|b.charCodeAt(S+2)<<8|b.charCodeAt(S+3),S+=4;else for(H=0;H<16;H++)P[H]=b[S]<<24|b[S+1]<<16|b[S+2]<<8|b[S+3],S+=4;for(b=16;b<80;b++)S=P[b-3]^P[b-8]^P[b-14]^P[b-16],P[b]=(S<<1|S>>>31)&4294967295;b=N.chain_[0];S=N.chain_[1];H=N.chain_[2];for(var K=N.chain_[3],C=N.chain_[4],G,a,R=0;R<80;R++)R<40?R<20?(G=K^S&(H^K),a=1518500249):(G=S^H^K,a=1859775393):R<60?(G=S&H|K&(S|H),
a=2400959708):(G=S^H^K,a=3395469782),G=(b<<5|b>>>27)+G+C+a+P[R]&4294967295,C=K,K=H,H=(S<<30|S>>>2)&4294967295,S=b,b=G;N.chain_[0]=N.chain_[0]+b&4294967295;N.chain_[1]=N.chain_[1]+S&4294967295;N.chain_[2]=N.chain_[2]+H&4294967295;N.chain_[3]=N.chain_[3]+K&4294967295;N.chain_[4]=N.chain_[4]+C&4294967295};
$0.prototype.update=function(N,b){if(N!=null){b===void 0&&(b=N.length);for(var S=b-this.blockSize,P=0,H=this.buf_,K=this.inbuf_;P<b;){if(K==0)for(;P<=S;)Ou9(this,N,P),P+=this.blockSize;if(typeof N==="string")for(;P<b;){if(H[K]=N.charCodeAt(P),++K,++P,K==this.blockSize){Ou9(this,H);K=0;break}}else for(;P<b;)if(H[K]=N[P],++K,++P,K==this.blockSize){Ou9(this,H);K=0;break}}this.inbuf_=K;this.total_+=b}};
$0.prototype.digest=function(){var N=[],b=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var S=this.blockSize-1;S>=56;S--)this.buf_[S]=b&255,b/=256;Ou9(this,this.buf_);for(S=b=0;S<5;S++)for(var P=24;P>=0;P-=8)N[b]=this.chain_[S]>>P&255,++b;return N};var fLE;var yU=function(N){var b=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(n){b.databaseToken=n},
triggerThrottle:function(){b.throttledSend()},
cancelThrottle:function(){b.cancelThrottledSend()},
immediateSend:function(n){return _.r(function(d){return d.yield(b.immediateSend(n),0)})},
requestWithinAgeLimit:function(n,d){return b.requestWithinAgeLimit(n,d)},
retryQueuedRequests:function(){b.retryQueuedRequests()}};
var S;this.throttleTimeout=(S=N.throttleTimeout)!=null?S:100;var P;this.retryMaxAttempts=(P=N.retryMaxAttempts)!=null?P:1;var H;this.requestAgeLimitMs=(H=N.requestAgeLimitMs)!=null?H:2592E6;var K;this.queuedRequestAgeLimitMs=(K=N.queuedRequestAgeLimitMs)!=null?K:12E4;var C;this.retryDelayMs=(C=N.retryDelayMs)!=null?C:5E3;var G;this.databaseToken=(G=N.databaseToken)!=null?G:void 0;this.enableCleaning=!!N.enableCleaning;var a;this.cleaningRate=(a=N.cleaningRate)!=null?a:.1;var R;this.potentialEsfErrorLimit=
(R=N.potentialEsfErrorLimit)!=null?R:10;N.handleError&&(this.handleError=N.handleError);N.handleWarning&&(this.handleWarning=N.handleWarning);N.disableYtIdbTransactions&&(this.disableYtIdbTransactions=N.disableYtIdbTransactions);N.bypassDbTokenDependency&&(this.bypassDbTokenDependency=N.bypassDbTokenDependency);this.getBooleanFlag=N.getBooleanFlag;this.jobManager=N.jobManager;this.logsStore=N.logsStore;this.networkManager=N.networkManager;this.sendFn=N.sendFn;this.onlineEvent=N.onlineEvent;this.offlineEvent=
N.offlineEvent;YS(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&CVk(this)},CVk=function(N){YS(N)&&!N.disableYtIdbTransactions&&(N.initialized=!0,N.enableCleaning&&Math.random()<=N.cleaningRate&&N.logsStore.cleanLogsStore(N.databaseToken),N.retryQueuedRequests(),N.networkManager.isNetworkAvailable()&&N.throttledSend(),N.networkManager.listen(N.onlineEvent,N.throttledSend.bind(N)),N.networkManager.listen(N.offlineEvent,N.cancelThrottledSend.bind(N)))};
_.v=yU.prototype;_.v.writeThenSend=function(N,b){var S=this;b=b===void 0?{}:b;if(YS(this)&&this.initialized){var P={url:N,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(P,this.databaseToken).then(function(H){P.id=H;S.networkManager.isNetworkAvailable()&&S.immediateSend(P)}).catch(function(H){S.immediateSend(P);
GL9(S,H)})}else this.sendFn(N,b)};
_.v.sendThenWrite=function(N,b,S){var P=this;b=b===void 0?{}:b;if(YS(this)&&this.initialized){var H={url:N,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(H.skipRetry=S);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!H.skipRetry){if(!H.skipRetry){var K=b.onError?b.onError:function(){};
b.onError=function(C,G){return _.r(function(a){if(a.nextAddress==1)return a.yield(P.logsStore.set(H,P.databaseToken).catch(function(R){GL9(P,R)}),2);
K(C,G);_.Zd(a)})}}this.sendFn(N,b,H.skipRetry)}else this.logsStore.set(H,this.databaseToken).catch(function(C){P.sendFn(N,b,H.skipRetry);
GL9(P,C)})}else this.sendFn(N,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&S)};
_.v.sendAndWrite=function(N,b){var S=this;b=b===void 0?{}:b;if(YS(this)&&this.initialized){var P={url:N,options:b,timestamp:this.now(),status:"NEW",sendCount:0},H=!1,K=b.onSuccess?b.onSuccess:function(){};
P.options.onSuccess=function(C,G){P.id!==void 0?S.logsStore.deleteRequest(P.id,S.databaseToken):H=!0;S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);K(C,G)};
this.sendFn(P.url,P.options,void 0,!0);this.logsStore.set(P,this.databaseToken).then(function(C){P.id=C;H&&S.logsStore.deleteRequest(P.id,S.databaseToken)}).catch(function(C){GL9(S,C)})}else this.sendFn(N,b,void 0,!0)};
_.v.throttledSend=function(){var N=this;if(!YS(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.logsStore.getMostRecentByStatus("NEW",N.databaseToken),2);if(S.nextAddress!=3)return b=S.yieldResult,b?S.yield(N.immediateSend(b),3):(N.cancelThrottledSend(),S.return());N.intervalJob&&(N.intervalJob=0,N.throttledSend());_.Zd(S)})},this.throttleTimeout))};
_.v.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.v.immediateSend=function(N){var b=this,S;return _.r(function(P){switch(P.nextAddress){case 1:if(!YS(b))throw Error("dd");if(N.id===void 0){P.jumpTo(2);break}return P.yield(b.logsStore.markAsQueued(N.id,b.databaseToken),3);case 3:(S=P.yieldResult)||b.handleWarning(Error("ed"));case 2:if(b.requestWithinAgeLimit(N,b.requestAgeLimitMs)){P.jumpTo(4);break}b.handleWarning(Error("fd"));if(N.id===void 0){P.jumpTo(5);break}return P.yield(b.logsStore.deleteRequest(N.id,b.databaseToken),5);case 5:return P.return();
case 4:N.skipRetry||(N=r0Z(b,N));if(!N){P.jumpTo(0);break}if(!N.skipRetry||N.id===void 0){P.jumpTo(8);break}return P.yield(b.logsStore.deleteRequest(N.id,b.databaseToken),8);case 8:b.sendFn(N.url,N.options,!!N.skipRetry),_.Zd(P)}})};
var r0Z=function(N,b){if(!YS(N))throw Error("gd");var S=b.options.onError?b.options.onError:function(){};
b.options.onError=function(H,K){var C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:C=i3s(K);(G=J_O(K))&&N.getBooleanFlag&&N.getBooleanFlag("web_enable_error_204")&&N.handleError(Error("hd"),b.url,K);if(!(N.getBooleanFlag&&N.getBooleanFlag("nwl_consider_error_code")&&C||N.getBooleanFlag&&!N.getBooleanFlag("nwl_consider_error_code")&&N.potentialEsfErrorCounter<=N.potentialEsfErrorLimit)){n.jumpTo(2);break}if(!N.networkManager.sendNetworkCheckRequest){n.jumpTo(3);break}return n.yield(N.networkManager.sendNetworkCheckRequest(),
3);case 3:if(N.networkManager.isNetworkAvailable()){n.jumpTo(2);break}S(H,K);if(!N.getBooleanFlag||!N.getBooleanFlag("nwl_consider_error_code")||((a=b)==null?void 0:a.id)===void 0){n.jumpTo(6);break}return n.yield(N.logsStore.resetRequest(b.id,N.databaseToken,!1),6);case 6:return n.return();case 2:if(N.getBooleanFlag&&N.getBooleanFlag("nwl_consider_error_code")&&!C&&N.potentialEsfErrorCounter>N.potentialEsfErrorLimit)return n.return();N.potentialEsfErrorCounter++;if(((R=b)==null?void 0:R.id)===void 0){n.jumpTo(8);
break}return b.sendCount<N.retryMaxAttempts?n.yield(N.logsStore.resetRequest(b.id,N.databaseToken,!0,G?!1:void 0),12):n.yield(N.logsStore.deleteRequest(b.id,N.databaseToken),8);case 12:N.jobManager.addLowPriorityJob(function(){N.networkManager.isNetworkAvailable()&&N.throttledSend()},N.retryDelayMs);
case 8:S(H,K),_.Zd(n)}})};
var P=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(H,K){var C;return _.r(function(G){if(G.nextAddress==1)return((C=b)==null?void 0:C.id)===void 0?G.jumpTo(2):G.yield(N.logsStore.deleteRequest(b.id,N.databaseToken),2);N.networkManager.networkStatusHint&&N.getBooleanFlag&&N.getBooleanFlag("vss_network_hint")&&N.networkManager.networkStatusHint(!0);P(H,K);_.Zd(G)})};
return b};
yU.prototype.requestWithinAgeLimit=function(N,b){N=N.timestamp;return this.now()-N>=b?!1:!0};
yU.prototype.retryQueuedRequests=function(){var N=this;if(!YS(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!N.requestWithinAgeLimit(b,N.queuedRequestAgeLimitMs)?N.jobManager.addLowPriorityJob(function(){return _.r(function(S){if(S.nextAddress==1)return b.id===void 0?S.jumpTo(2):S.yield(N.logsStore.resetRequest(b.id,N.databaseToken),2);N.retryQueuedRequests();_.Zd(S)})}):N.networkManager.isNetworkAvailable()&&N.throttledSend()})};
var GL9=function(N,b){N.writeError&&!N.networkManager.isNetworkAvailable()?N.writeError(b):N.handleError(b)},YS=function(N){return!!N.databaseToken||N.bypassDbTokenDependency};var UIs;var YbO={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,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};var c04={},ILL=WK("ServiceWorkerLogsDatabase",{objectStores:(c04.SWHealthLog={addedAtVersion:1},c04),shared:!0,upgrade:function(N,b){b(1)&&b5(NN(N,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var w4I={},qjf=0;var PHu;var Ij=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Kv=function(){if(!Ij.instance){var N=_.hl("yt.networkRequestMonitor.instance")||new Ij;
_.aB("yt.networkRequestMonitor.instance",N);Ij.instance=N}return Ij.instance};
Ij.prototype.requestComplete=function(N,b){b&&(this.anyRequestHasSucceeded=!0);N=this.removeParams(N);this.requestMap.get(N)||this.requestMap.set(N,b)};
Ij.prototype.isEndpointCFR=function(N){N=this.removeParams(N);return(N=this.requestMap.get(N))?!1:N===!1&&this.anyRequestHasSucceeded?!0:null};
Ij.prototype.removeParams=function(N){return N.split("?")[0]};
Ij.prototype.removeParams=Ij.prototype.removeParams;Ij.prototype.isEndpointCFR=Ij.prototype.isEndpointCFR;Ij.prototype.requestComplete=Ij.prototype.requestComplete;Ij.getInstance=Kv;var Da=function(N){_.J1.call(this);var b=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=N!=null?N:{addLowPriorityJob:function(H,K){return setTimeout(H,K)},
cancelJob:function(H){clearTimeout(H)}};
var S,P;this.isOnline=(P=(S=window.navigator)==null?void 0:S.onLine)!=null?P:!0;this.onNavigatorChange=function(){return _.r(function(H){return H.yield(abc(b),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||RVc(this)};
_.F(Da,_.J1);Da.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Da.instance};
Da.prototype.isNetworkAvailable=function(){return this.isOnline};
var RVc=function(N){N.pollingJob=N.jobManager.addLowPriorityJob(function(){var b;return _.r(function(S){if(S.nextAddress==1)return N.isOnline?((b=window.navigator)==null?0:b.onLine)?S.jumpTo(3):S.yield(abc(N),3):S.yield(abc(N),3);RVc(N);_.Zd(S)})},3E4)},abc=function(N,b){return N.networkRequestPromise?N.networkRequestPromise:N.networkRequestPromise=new Promise(function(S){var P,H,K,C;
return _.r(function(G){switch(G.nextAddress){case 1:return P=window.AbortController?new window.AbortController:void 0,K=(H=P)==null?void 0:H.signal,C=!1,_.u4(G,2,3),P&&(N.abortTimeoutKey=N.jobManager.addLowPriorityJob(function(){P.abort()},b||2E4)),G.yield(fetch("/generate_204",{method:"HEAD",
signal:K}),5);case 5:C=!0;case 3:_.xw(G);N.networkRequestPromise=void 0;N.abortTimeoutKey&&(N.jobManager.cancelJob(N.abortTimeoutKey),N.abortTimeoutKey=0);C!==N.isOnline&&(N.isOnline=C,N.isOnline?N.dispatchEvent("networkstatus-online"):N.dispatchEvent("networkstatus-offline"));S(C);_.Jv(G,0);break;case 2:_.UE(G),C=!1,G.jumpTo(3)}})})};var VU=function(){_.J1.call(this);var N=this;this.shouldFlushErrors=!1;Da.instance||(Da.instance=new Da(_.Dj));this.sharedNetworkStatusManager=Da.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(N.shouldFlushErrors&&_.T("offline_error_handling")){var b=H7u().get("errors",!0);if(b){for(var S in b)if(b[S]){var P=new _.jU(S,"sent via offline_errors");P.name=b[S].name;P.stack=b[S].stack;P.level=b[S].level;_.e_(P)}H7u().set("errors",{},2592E3,!0)}}})};
_.F(VU,_.J1);var Wad=function(){if(!VU.instance){var N=_.hl("yt.networkStatusManager.instance")||new VU;_.aB("yt.networkStatusManager.instance",N);VU.instance=N}return VU.instance};
_.v=VU.prototype;_.v.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.v.networkStatusHint=function(N){this.sharedNetworkStatusManager.isOnline=N};
_.v.getWindowStatus=function(){var N=window.navigator.onLine;return N===void 0?!0:N};
_.v.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.v.listen=function(N,b){return this.sharedNetworkStatusManager.listen(N,b)};
_.v.sendNetworkCheckRequest=function(N){N=abc(this.sharedNetworkStatusManager,N);N.then(function(b){_.T("use_cfr_monitor")&&Kv().requestComplete("generate_204",b)});
return N};
VU.prototype.sendNetworkCheckRequest=VU.prototype.sendNetworkCheckRequest;VU.prototype.listen=VU.prototype.listen;VU.prototype.enableErrorFlushing=VU.prototype.enableErrorFlushing;VU.prototype.getWindowStatus=VU.prototype.getWindowStatus;VU.prototype.networkStatusHint=VU.prototype.networkStatusHint;VU.prototype.isNetworkAvailable=VU.prototype.isNetworkAvailable;VU.getInstance=Wad;_.sv=function(N){N=N===void 0?{}:N;_.J1.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Wad();var S=_.hl("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);S&&(N.rateLimit?(this.rateLimit=N.rateLimit,S("networkstatus-online",function(){nGc(b,"publicytnetworkstatus-online")}),S("networkstatus-offline",function(){nGc(b,"publicytnetworkstatus-offline")})):(S("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),S("networkstatus-offline",
function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
_.F(_.sv,_.J1);_.sv.prototype.isNetworkAvailable=function(){var N=_.hl("yt.networkStatusManager.instance.isNetworkAvailable");return N?N.bind(this.nsmInstance)():!0};
_.sv.prototype.networkStatusHint=function(N){var b=_.hl("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(N)};
_.sv.prototype.sendNetworkCheckRequest=function(N){var b=this,S;return _.r(function(P){S=_.hl("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return _.T("skip_network_check_if_cfr")&&Kv().isEndpointCFR("generate_204")?P.return(new Promise(function(H){var K;b.networkStatusHint(((K=window.navigator)==null?void 0:K.onLine)||!0);H(b.isNetworkAvailable())})):S?P.return(S(N)):P.return(!0)})};
var nGc=function(N,b){N.rateLimit?N.lastJobTime?(_.Dj.cancelJob(N.schedulerJob),N.schedulerJob=_.Dj.addLowPriorityJob(function(){N.lastPublicSignalSent!==b&&(N.dispatchEvent(b),N.lastPublicSignalSent=b,N.lastJobTime=(0,_.nh)())},N.rateLimit-((0,_.nh)()-N.lastJobTime))):(N.dispatchEvent(b),N.lastPublicSignalSent=b,N.lastJobTime=(0,_.nh)()):N.dispatchEvent(b)};var CHf,gu=function(){yU.call(this,{logsStore:{cleanLogsStore:Yjs,deleteRequest:p4b,getMostRecentByStatus:A_I,markAsQueued:X4s,resetRequest:Eqf,set:zLs},networkManager:_.GSe(),handleError:function(N,b,S){var P,H=S==null?void 0:(P=S.error)==null?void 0:P.code;if(H===400||H===415){var K;N=new _.jU(N.message,b,S==null?void 0:(K=S.error)==null?void 0:K.code);_.qB(N,void 0,void 0,void 0,!0)}else _.e_(N)},
handleWarning:_.qB,sendFn:vHo,now:_.nh,writeError:sqp,jobManager:_.oT(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.d7("potential_esf_error_limit",10),getBooleanFlag:_.T,disableYtIdbTransactions:!(_.Zh()&&_.rM_())});this.initializationPromise=new _.GB;_.T("networkless_immediately_drop_all_requests")&&y_I();J0U("LogsDatabaseV2")};
_.F(gu,yU);_.m6d=function(){var N=_.hl("yt.networklessRequestController.instance");N||(N=new gu,_.aB("yt.networklessRequestController.instance",N),_.T("networkless_logging")&&_.RB().then(function(b){N.databaseToken=b;CVk(N);N.initializationPromise.resolve();N.enableCleaning&&Math.random()<=N.cleaningRate&&N.databaseToken&&V79(N.databaseToken);_.T("networkless_immediately_drop_sw_health_store")&&d69(N)}));
return N};
gu.prototype.writeThenSend=function(N,b){b||(b={});b=O7_(N,b);_.Zh()||(this.initialized=!1);yU.prototype.writeThenSend.call(this,N,b)};
gu.prototype.sendThenWrite=function(N,b,S){b||(b={});b=O7_(N,b);_.Zh()||(this.initialized=!1);yU.prototype.sendThenWrite.call(this,N,b,S)};
gu.prototype.sendAndWrite=function(N,b){b||(b={});b=O7_(N,b);_.Zh()||(this.initialized=!1);yU.prototype.sendAndWrite.call(this,N,b)};
gu.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var d69=function(N){var b;_.r(function(S){if(!N.databaseToken)throw b=qX("clearSWHealthLogsDb"),b;return S.return(gqs(N.databaseToken).catch(function(P){N.handleError(P)}))})};_.aNs=!1;_.cM_=_.Ps.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.aNs};_.aB("ytNetworklessLoggingInitializationOptions",_.cM_);var I0=function(N){var b=this;this.config_=null;N?this.config_=N:YI_()&&(this.config_=_.mV());_.XC(_.Dj,function(){oq_(b)},5E3)};
I0.prototype.isReady=function(){!this.config_&&YI_()&&(this.config_=_.mV());return!!this.config_};
var xIs=function(N,b,S,P){!_.Vg("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&_.qB(new _.jU("Missing VISITOR_DATA when sending innertube request.",b,S,P));if(!N.isReady()){var H=new _.jU("innertube xhrclient not ready",b,S,P);_.e_(H);throw H;}var K={headers:P.headers||{},method:"POST",postParams:S,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()},
onFetchTimeout:P.onTimeout,onSuccess:function(d,m){if(P.onSuccess)P.onSuccess(m)},
onFetchSuccess:function(d){if(P.onSuccess)P.onSuccess(d)},
onProgress:function(d){if(P.onProgress)P.onProgress(d)},
onError:function(d,m){if(P.onError)P.onError(m)},
onFetchError:function(d){if(P.onError)P.onError(d)},
timeout:P.timeout,withCredentials:!0,compress:P.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");var C="";(H=N.config_.innertubeHostOverride)&&(C=H);var G=N.config_.innertubeUseThirdPartyAuth||!1,a=_.s3a(G,C,P);Object.assign(K.headers,a);K.headers.Authorization&&!C&&G&&(K.headers["x-origin"]=window.location.origin);var R=_.Pq(C+("/youtubei/"+N.config_.innertubeApiVersion+"/"+b),{alt:"json"}),n=function(d){d=d===void 0?!1:d;var m;if(P.retry&&C!="www.youtube-nocookie.com"&&
(d||_.T("skip_ls_gel_retry")||K.headers["Content-Type"]!=="application/json"||(m=uEe(b,S,a,G)),m)){var k=K.onSuccess,M=K.onFetchSuccess;K.onSuccess=function(J,Z){QAp(m);k(J,Z)};
S.onFetchSuccess=function(J,Z){QAp(m);M(J,Z)}}try{if(d&&P.retry&&!P.networklessOptions.bypassNetworkless)K.method="POST",P.networklessOptions.writeThenSend?_.m6d().writeThenSend(R,K):_.m6d().sendAndWrite(R,K);
else if(P.compress){var l=!P.networklessOptions.writeThenSend;if(K.postBody){var u=K.postBody;typeof u!=="string"&&(u=JSON.stringify(K.postBody));mIo(R,u,K,_.lQ,l)}else mIo(R,JSON.stringify(K.postParams),K,LnL,l)}else LnL(R,K)}catch(J){if(J.name==="InvalidAccessError")m&&(QAp(m),m=0),_.qB(Error("jd"));else throw J;}m&&_.XC(_.Dj,function(){oq_(N)},5E3)};
_.RsY()?lb9().then(function(d){n(d)}):n(!1)};var ZnL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ZnL,_.rc);var kLb=0,nHY=_.FG?"webkit":_.B_?"moz":_.rV?"ms":tp4?"o":"";_.aB("ytDomDomGetNextId",_.hl("ytDomDomGetNextId")||function(){return++kLb});var Tyd={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},cl=function(N){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(N=
N||window.event){this.event=N;for(var b in N)b in Tyd||(this[b]=N[b]);this.scale=N.scale;this.rotation=N.rotation;var S=N.target||N.srcElement;S&&S.nodeType==3&&(S=S.parentNode);this.target=S;var P=N.relatedTarget;if(P)try{P=P.nodeName?P:null}catch(H){P=null}else this.type=="mouseover"?P=N.fromElement:this.type=="mouseout"&&(P=N.toElement);this.relatedTarget=P;this.clientX=N.clientX!=void 0?N.clientX:N.pageX;this.clientY=N.clientY!=void 0?N.clientY:N.pageY;this.keyCode=N.keyCode?N.keyCode:N.which;
this.charCode=N.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=N.altKey;this.ctrlKey=N.ctrlKey;this.shiftKey=N.shiftKey;this.metaKey=N.metaKey;this.pageX_=N.pageX;this.pageY_=N.pageY}}catch(H){}},tsO=function(N){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
N.pageX_=N.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);N.pageY_=N.clientY+b}};
cl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
cl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
cl.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var re=_.Ps.ytEventsEventsListeners||{};_.aB("ytEventsEventsListeners",re);var MrL=_.Ps.ytEventsEventsCounter||{count:0};_.aB("ytEventsEventsCounter",MrL);var Ftf=_.xv(function(){var N=!1;try{var b=Object.defineProperty({},"capture",{get:function(){N=!0}});
window.addEventListener("test",null,b)}catch(S){}return N});_.Km(R0,_.E5);R0.prototype.onMouseMove_=function(N){N.pageX_===void 0&&tsO(N);var b=N.pageX_;N.pageY_===void 0&&tsO(N);this.position_=new _.ek(b,N.pageY_)};
R0.prototype.checkPosition_=function(){if(this.position_){var N=(0,_.nh)();if(this.previousTime_!=0){var b=this.previousPosition_,S=this.position_,P=b.x-S.x;b=b.y-S.y;P=Math.sqrt(P*P+b*b)/(N-this.previousTime_);this.cycles_[this.index_]=Math.abs((P-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(S=b=0;S<4;S++)b+=this.cycles_[S]||0;b>=3&&this.callback_();this.previousVelocity_=P}this.previousTime_=N;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
R0.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.BGE(this.mouseListenerKey_)};var QqE={};var zJo=new _.WF("rawColdConfigGroup");var j7u=new _.WF("rawHotConfigGroup");var Msb=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Msb,_.rc);var UDO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(UDO,_.rc);var Ad=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N,500)};
_.F(Ad,_.rc);Ad.prototype.getPayloadCase=function(){return _.F5(this,FaO)};
Ad.prototype.getContext=function(){return _.k0(this,UDO,33)};
var FaO=[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];var xEe=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(xEe,_.rc);var KhO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(KhO,_.rc);KhO.prototype.setVideoId=function(N){return QE(this,1,v9O,M_(N))};
KhO.prototype.getPlaylistId=function(){return _.Jg(this,Zn(this,v9O,2))};
var v9O=[1,2];var B59=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(B59,_.rc);B59.prototype.getContext=function(){return _.k0(this,xh,1)};
B59.prototype.getTier=function(){return _.o9(this,7)};var ByV,mj,kh;ByV=_.Ps.ytPubsubPubsubInstance||new _.uQ;mj=_.Ps.ytPubsubPubsubSubscribedKeys||{};kh=_.Ps.ytPubsubPubsubTopicToKeys||{};_.xuL=_.Ps.ytPubsubPubsubIsSynchronous||{};_.uQ.prototype.subscribe=_.uQ.prototype.subscribe;_.uQ.prototype.unsubscribeByKey=_.uQ.prototype.unsubscribeByKey;_.uQ.prototype.publish=_.uQ.prototype.publish;_.uQ.prototype.clear=_.uQ.prototype.clear;_.aB("ytPubsubPubsubInstance",ByV);_.aB("ytPubsubPubsubTopicToKeys",kh);_.aB("ytPubsubPubsubIsSynchronous",_.xuL);
_.aB("ytPubsubPubsubSubscribedKeys",mj);var td=window;var eV=_.T("web_enable_lifecycle_monitoring")&&Z7p()!==0,lbc=_.T("web_enable_lifecycle_monitoring");var LaE=function(N){var b=this;var S=S===void 0?0:S;var P=P===void 0?_.oT():P;this.JSC$11123_defaultPriority=S;this.scheduler=P;this.completedResolver=new _.GB;this.scheduledPayloads=N;for(N={i$jscomp$493:0};N.i$jscomp$493<this.scheduledPayloads.length;N={payload$jscomp$20:void 0,i$jscomp$493:N.i$jscomp$493},N.i$jscomp$493++)N.payload$jscomp$20=this.scheduledPayloads[N.i$jscomp$493],S=function(H){return function(){H.payload$jscomp$20.job();b.scheduledPayloads[H.i$jscomp$493].processed=!0;b.scheduledPayloads.every(function(K){return K.processed===
!0})&&b.completedResolver.resolve()}}(N),P=this.getPriority(N.payload$jscomp$20),P=this.scheduler.addJob(S,P),this.scheduledPayloads[N.i$jscomp$493]=Object.assign({},N.payload$jscomp$20,{job:S,
jobId:P})};
LaE.prototype.flushJobs=function(){var N=this,b=Array.from(this.scheduledPayloads.keys()).sort(function(P,H){return N.getPriority(N.scheduledPayloads[H])-N.getPriority(N.scheduledPayloads[P])});
b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=this.scheduledPayloads[S.value],S.jobId===void 0||S.processed||(this.scheduler.cancelJob(S.jobId),this.scheduler.addJob(S.job,10))};
LaE.prototype.cancel=function(){for(var N=_.O(this.scheduledPayloads),b=N.next();!b.done;b=N.next())b=b.value,b.jobId===void 0||b.processed||this.scheduler.cancelJob(b.jobId),b.processed=!0;this.completedResolver.resolve()};
LaE.prototype.getPriority=function(N){var b;return(b=N.priority)!=null?b:this.JSC$11123_defaultPriority};var $S=function(N){this.state=N;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};eV&&jqs(this.state)};
$S.prototype.install=function(N){this.plugins.push(N);return this};
$S.prototype.uninstall=function(){var N=this;_.$I.apply(0,arguments).forEach(function(b){b=N.plugins.indexOf(b);b>-1&&N.plugins.splice(b,1)})};
$S.prototype.transition=function(N,b){var S=this;eV&&zs_(this.state);var P=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(C){return C===S.state&&K.to===N}):K.from===S.state&&K.to===N});
if(P){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);fbd(this,N,b);this.state=N;eV&&jqs(this.state);P=P.action.bind(this);var H=this.plugins.filter(function(K){return K[N]}).map(function(K){return K[N]});
P(ukN(this,H),b)}else throw Error("kd`"+this.state+"`"+N);};
var ukN=function(N,b){var S=b.filter(function(H){return Qp9(N,H)===10}),P=b.filter(function(H){return Qp9(N,H)!==10});
return N.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var H=_.$I.apply(0,arguments);return _.r(function(K){if(K.nextAddress==1)return K.yield(N.runImmediateJobsAsync.apply(N,[S].concat(_.IX(H))),2);N.setJobSetWithScheduledJobs.apply(N,[P].concat(_.IX(H)));_.Zd(K)})}:function(){var H=_.$I.apply(0,arguments);
N.runImmediateJobsSync.apply(N,[S].concat(_.IX(H)));N.setJobSetWithScheduledJobs.apply(N,[P].concat(_.IX(H)))}};
$S.prototype.runImmediateJobsSync=function(N){var b=_.$I.apply(1,arguments);_.oT();for(var S=_.O(N),P=S.next(),H={};!P.done;H={lifecycle$jscomp$2:void 0},P=S.next())H.lifecycle$jscomp$2=P.value,Sa(function(K){return function(){x6d(K.lifecycle$jscomp$2.name);X79(function(){return K.lifecycle$jscomp$2.callback.apply(K.lifecycle$jscomp$2,_.IX(b))});
hq(K.lifecycle$jscomp$2.name)}}(H))};
$S.prototype.runImmediateJobsAsync=function(N){var b=_.$I.apply(1,arguments),S,P,H,K;return _.r(function(C){C.nextAddress==1&&(_.oT(),S=_.O(N),P=S.next(),H={});if(C.nextAddress!=3){if(P.done)return C.jumpTo(0);H.lifecycle$jscomp$3=P.value;H.asyncJobCompletion=void 0;K=function(G){return function(){x6d(G.lifecycle$jscomp$3.name);var a=X79(function(){return G.lifecycle$jscomp$3.callback.apply(G.lifecycle$jscomp$3,_.IX(b))});
wsV(a)?G.asyncJobCompletion=_.T("web_lifecycle_error_handling_killswitch")?a.then(function(){hq(G.lifecycle$jscomp$3.name)}):a.then(function(){hq(G.lifecycle$jscomp$3.name)},function(R){AMY(R);
hq(G.lifecycle$jscomp$3.name)}):hq(G.lifecycle$jscomp$3.name)}}(H);
Sa(K);return H.asyncJobCompletion?C.yield(H.asyncJobCompletion,3):C.jumpTo(3)}H={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};P=S.next();return C.jumpTo(2)})};
$S.prototype.setJobSetWithScheduledJobs=function(N){var b=_.$I.apply(1,arguments),S=this,P=N.map(function(H){return{job:function(){x6d(H.name);X79(function(){return H.callback.apply(H,_.IX(b))});
hq(H.name)},
priority:Qp9(S,H)}});
P.length&&(this.jobSet=new LaE(P))};
var Qp9=function(N,b){var S,P;return(P=(S=N.overridePriority)!=null?S:b.priority)!=null?P:0},x6d=function(N){eV&&N&&jqs(N)},hq=function(N){eV&&N&&zs_(N)},fbd=function(N,b,S){lbc&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+N.constructor.name+"] '"+N.state+"' to '"+b+"'"),console.log("with message: ",S),console.groupEnd())};
_.d0.Object.defineProperties($S.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var oGd=function(N){$S.call(this,N===void 0?"none":N);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},iu4;
_.F(oGd,$S);oGd.prototype.runApplicationNavigationBegin=function(N,b){var S=this;this.navigationTimer=_.XC(_.Dj,function(){S.currentState==="application_navigating"&&S.transition("none")},5E3);
N(b==null?void 0:b.event)};
oGd.prototype.runApplicationNavigationEnd=function(N,b){this.navigationTimer&&(_.Dj.cancelJob(this.navigationTimer),this.navigationTimer=null);N(b==null?void 0:b.event)};
_.ZUI=function(){iu4||(iu4=new oGd);return iu4};var UEe=[];_.aB("yt.logging.transport.getScrapedGelPayloads",function(){return UEe});var MN=function(){var N=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return N.totalEntries}}};
MN.prototype.storePayload=function(N,b){N=EHf(N);this.store[N]?this.store[N].push(b):(this.memoizedKeySequences={},this.store[N]=[b]);this.totalEntries++;_.T("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return N};
MN.prototype.smartExtractMatchingEntries=function(N){if(!N.keys.length)return[];for(var b=J0b(this,N.keys.splice(0,1)[0]),S=[],P=0;P<b.length;P++)this.store[b[P]]&&N.sizeLimit&&(this.store[b[P]].length<=N.sizeLimit?(S.push.apply(S,_.IX(this.store[b[P]])),delete this.store[b[P]]):S.push.apply(S,_.IX(this.store[b[P]].splice(0,N.sizeLimit))));this.totalEntries-=S.length;(N==null?0:N.sizeLimit)&&S.length<(N==null?void 0:N.sizeLimit)&&(N.sizeLimit-=S.length,S.push.apply(S,_.IX(this.smartExtractMatchingEntries(N))));
return S};
MN.prototype.extractMatchingEntries=function(N){N=J0b(this,N);for(var b=[],S=0;S<N.length;S++)this.store[N[S]]&&(b.push.apply(b,_.IX(this.store[N[S]])),delete this.store[N[S]]);this.totalEntries-=b.length;return b};
MN.prototype.getSequenceCount=function(N){N=J0b(this,N);for(var b=0,S=0;S<N.length;S++){var P=void 0;b+=((P=this.store[N[S]])==null?void 0:P.length)||0}return b};
var J0b=function(N,b){var S=EHf(b);if(N.memoizedKeySequences[S])return N.memoizedKeySequences[S];var P=Object.keys(N.store)||[];if(P.length<=1&&EHf(b)===P[0])return P;for(var H=[],K=0;K<P.length;K++){var C=P[K].split("/");if(U6b(b.auth,C[0])){var G=b.isJspb;U6b(G===void 0?"undefined":G?"true":"false",C[1])&&U6b(b.cttAuthInfo,C[2])&&(G=b.tier,G=G===void 0?"undefined":JSON.stringify(G),U6b(G,C[3])&&H.push(P[K]))}}return N.memoizedKeySequences[S]=H},U6b=function(N,b){return N===void 0||N==="undefined"?
!0:N===b};
MN.prototype.getSequenceCount=MN.prototype.getSequenceCount;MN.prototype.extractMatchingEntries=MN.prototype.extractMatchingEntries;MN.prototype.smartExtractMatchingEntries=MN.prototype.smartExtractMatchingEntries;MN.prototype.storePayload=MN.prototype.storePayload;var n9e,RJU,dEO,l5,Zu9,pXI,E9o,aG_,c89,bUp,Whs,iUa,Cob;n9e=_.d7("initial_gel_batch_timeout",2E3);RJU=_.d7("gel_queue_timeout_max_ms",6E4);dEO=_.d7("gel_min_batch_size",5);l5=void 0;Zu9=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
pXI=new Zu9;E9o=new Zu9;aG_=new Zu9;c89=new Zu9;Whs=!0;iUa=1;_.o9u=new Map;Cob=_.Ps.ytLoggingTransportTokensToCttTargetIds_||{};_.aB("ytLoggingTransportTokensToCttTargetIds_",Cob);var OUf=_.Ps.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.aB("ytLoggingTransportTokensToJspbCttTargetIds_",OUf);var Bl={};var Yh=_.Ps.ytLoggingGelSequenceIdObj_||{};_.aB("ytLoggingGelSequenceIdObj_",Yh);var IGe=[];var PKO=new Set,$Ea=0,KH9=0,s2e=0,qbU=[],hJa=[],vYu=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Txa=function(){};
Txa.prototype.getUrl=function(N,b){b=b===void 0?!1:b;return N.hasOwnProperty("shareEndpoint")?null:_.r5Y(N,null,b)};
var vzY=function(N,b,S){N={endpoint:b,actions:[]};S=(S.path?S.path[0]:S.target).icon||"";b=S.indexOf(":");b>0&&(S=S.substr(b+1));S&&N.actions.push(S);return N};var db9=/Command$/,nYU=/Endpoint$/,azU=new Map;var jpV,zVS;jpV=1;_.sX=function(){this.actionRoutingMap=new Map};
_.sX.prototype.triggerAction=function(N){var b=new ass(N,!1,_.$I.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.sX.prototype.triggerOptionalAction=function(N){var b=new ass(N,!0,_.$I.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.qk=function(N,b,S){b.forEach(function(P){var H=WH9(P);H&&N.triggerOptionalAction(H,P,S,void 0)})};
_.sX.prototype.handleAction=function(N){var b=this.actionRoutingMap.get(N.actionName);b&&zVS(N,b);N.optionalAction||N.returnValue.length!==0||(N=new _.jU("Unhandled action",N.actionName),_.qB(N))};
zVS=function(N,b){b.forEach(function(S){var P=null;S?P=S.apply(null,N.args):(S=Error("ld"),S.params=N.actionName,_.e_(S));N.returnValue.push(P)})};
_.Kt=function(N,b,S){S||(S=jpV++);for(var P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next()){H=H.value;var K=N.actionRoutingMap.get(H);K||(K=new Map,N.actionRoutingMap.set(H,K));N.registerActionHandler(S,H,b[H],K)}return S};
_.sX.prototype.registerActionHandler=function(N,b,S,P){P.set(N,_.$U(S))};
_.vz=function(N,b,S){b=_.O(Object.keys(b));for(var P=b.next();!P.done;P=b.next())(P=N.actionRoutingMap.get(P.value))&&P.delete(S)};
_.He(_.sX);var FHe=function(N,b){var S=_.sX.getInstance();_.YU(function(){var P={},H=_.Kt(S,(P[N]=b,P));_.ej(function(){var K={};_.vz(S,(K[N]="",K),H)})})};var aPb=Symbol("nd");uGo=O6Y;var pmf=new Set(["For","If","Match","Watch"]),A0z={},XUc=(A0z[bD.default]=function(){return tgf},A0z.style=function(){return tgf},A0z),EGb;
for(EGb in XUc)dA.attributes[EGb]=XUc[EGb](dA.attributes[EGb]);var Wz=new _.nO("VISIBILITY_OBSERVER");var qWp={retrieve:function(N){return this.id.\u0275prov.token===N.\u0275prov.token?this.contextValue:this?_.RO(this,this.id):ljf}};var Z_U=function(N,b,S){if(N!==u$I)return!1;N=Ub9(document.createElement("div"),function(){var P=d8(!1);try{S[0]()}finally{d8(P)}});
N=Array.from(N.childNodes);N.length===1&&(N=N[0]);return N};uGo=O6Y;var pUz=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(N){}var YIl=typeof WeakRef==="function";var y0N=function(N){this.value=N};
y0N.prototype.deref=function(){return this.value};
var Ib9=YIl?WeakRef:y0N,D6E=function(N){this.newKeyHandler=N;this.map=new WeakMap};
D6E.prototype.add=function(N,b){this.map.has(N)||(this.newKeyHandler(N),this.map.set(N,[]));this.map.get(N).push(new Ib9(b))};
D6E.prototype.get=function(N){var b=this;return function P(){var H,K,C,G,a,R,n,d,m,k,M;return _.GN(P,function(l){switch(l.nextAddress){case 1:_.oX(l,2);H=b.map.get(N);if(!H)return l.return();K=0;C=_.O(H);G=C.next();case 4:if(G.done){l.jumpTo(6);break}a=G.value;R=a.deref();if(!R){l.jumpTo(5);break}K++;n=_.RT;return l.yield(R,8);case 8:n(l.yieldResult);case 5:G=C.next();l.jumpTo(4);break;case 6:if(2*K<H.length){d=0;m=_.O(H);for(k=m.next();!k.done;k=m.next())M=k.value,M.deref()&&(H[d++]=M);H.length=
d}case 2:_.xw(l),_.Jv(l,0)}})}()};var Vsb=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},sJf=new D6E(function(N){N.addEventListener("abort",veL,{once:!0})}),Ho9=new WeakMap,gG9=function(N){N=N===void 0?wu:N;
this.signal=new N};
gG9.prototype.abort=function(N){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=N,N=new Event("abort"),this.signal.dispatchEvent(N))};
var wu=function(){this.target=Vsb();this.aborted=!1;this.onabort=null};
wu.prototype.throwIfAborted=function(){PFf.call(this)};
wu.prototype.addEventListener=function(N,b,S){this.target.addEventListener(N,b,S)};
wu.prototype.removeEventListener=function(N,b,S){this.target.removeEventListener(N,b,S)};
wu.prototype.dispatchEvent=function(N){if(this.onabort&&N.type==="abort")this.onabort(N);return this.target.dispatchEvent(N)};
wu.abort=SxL;wu.timeout=OoU;wu.any=K8e;var bof=pUz?AbortController:gG9,N4=pUz?AbortSignal:wu;typeof N4.abort!=="function"&&(N4.abort=SxL);typeof N4.prototype.throwIfAborted!=="function"&&(N4.prototype.throwIfAborted=PFf);typeof N4.any!=="function"&&(N4.any=K8e);typeof N4.timeout!=="function"&&(N4.timeout=OoU);var k7=null,GMa=new Map;var eV9=function(N){N=N.clone();cA9(N);zI(N,"dg",null);zI(N,"d","0");OtS(N,null);CvE(N,null);return N},$6N=!0,hVb=function(N,b,S){var P=S===void 0?{}:S;
S=P.cssRowKey===void 0?void 0:P.cssRowKey;var H=P.combinedSignature===void 0?void 0:P.combinedSignature;var K=P.extraEdges===void 0?void 0:P.extraEdges;P=P.callback===void 0?void 0:P.callback;zI(N,"m",b.join(","));K&&rA4(N,K);S&&(zI(N,"ck",S),H?zI(N,"rs",H):$6N&&($6N=!1));if(P){if(P!=null&&!Wel.test(P))throw Error("Xa`"+P);zI(N,"cb",P)}N=N.toString();_.Ka(N,"/")&&(N=EoS(document.location.href)+N);return _.ZB(N)};var wUO=function(N){return qId(N).then(function(b){return JSON.parse(b.responseText)})},qId=function(N){var b={},S=b.xmlHttpFactory?b.xmlHttpFactory.createInstance():Loc.createInstance();
return(new _.u5(function(P,H){var K;try{S.open("GET",N,!0)}catch(a){H(new bm("Error opening XHR: "+a.message,N,S))}S.onreadystatechange=function(){if(S.readyState==4){_.Ps.clearTimeout(K);var a;!(a=lHN(S.status))&&(a=S.status===0)&&(a=XRc(N),a=!(a=="http"||a=="https"||a==""));a?P(S):H(new NQV(S.status,N,S))}};
S.onerror=function(){H(new bm("Network error",N,S))};
if(b.headers)for(var C in b.headers){var G=b.headers[C];G!=null&&S.setRequestHeader(C,G)}b.withCredentials&&(S.withCredentials=b.withCredentials);b.responseType&&(S.responseType=b.responseType);b.mimeType&&S.overrideMimeType(b.mimeType);b.timeoutMs>0&&(K=_.Ps.setTimeout(function(){S.onreadystatechange=function(){};
S.abort();H(new bX9(N,S))},b.timeoutMs));
try{S.send(null)}catch(a){S.onreadystatechange=function(){},_.Ps.clearTimeout(K),H(new bm("Error sending XHR: "+a.message,N,S))}})).thenCatch(function(P){P instanceof _.zM&&S.abort();
throw P;})},bm=function(N,b,S){_.NL.call(this,N+", url="+b);
this.url=b;this.xhr=S};
_.Km(bm,_.NL);bm.prototype.name="XhrError";var NQV=function(N,b,S){bm.call(this,"Request Failed, status="+N,b,S);this.status=N};
_.Km(NQV,bm);NQV.prototype.name="XhrHttpError";var bX9=function(N,b){bm.call(this,"Request timed out",N,b)};
_.Km(bX9,bm);bX9.prototype.name="XhrTimeoutError";Pe=Pe||{};var Se=function(){_.E5.call(this)};
_.Km(Se,_.E5);Se.prototype.initialize=function(){};var SKb=function(N,b){this.fn_=N;this.handler_=b};
SKb.prototype.execute=function(N){this.fn_&&(this.fn_.call(this.handler_||null,N),this.fn_=this.handler_=null)};
SKb.prototype.abort=function(){this.handler_=this.fn_=null};var Pu=function(N,b){_.E5.call(this);this.deps_=N;this.JSC$11278_id_=b;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Km(Pu,_.E5);Pu.prototype.moduleConstructor_=Se;Pu.prototype.module_=null;Pu.prototype.getId=function(){return this.JSC$11278_id_};
Pu.prototype.registerCallback=function(N,b){return Hu(this.onloadCallbacks_,N,b)};
var P1E=function(N,b){Hu(N.onErrorCallbacks_,b)},Hu=function(N,b,S){b=new SKb(b,S);
N.push(b);return b};
Pu.prototype.isLoaded=function(){return!!this.module_};
Pu.prototype.onLoad=function(N){var b=new this.moduleConstructor_;b.initialize(N());this.module_=b;b=(b=HXZ(this.earlyOnloadCallbacks_,N()))||HXZ(this.onloadCallbacks_,N());b||(this.onErrorCallbacks_.length=0);return b};
Pu.prototype.onError=function(N){(N=HXZ(this.onErrorCallbacks_,N))&&Hs(Error("sd`"+N));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var HXZ=function(N,b){for(var S=[],P=0;P<N.length;P++)try{N[P].execute(b)}catch(H){Hs(H),S.push(H)}N.length=0;return S.length?S:null};
Pu.prototype.disposeInternal=function(){Pu.superClass_.disposeInternal.call(this);_.Wv(this.module_)};var s39,rsd,C1k,GB4,vnO,OXZ,nnl,RC9,Wyz;
_.tA=function(N,b,S,P,H){P=P===void 0?!1:P;H=H===void 0?!1:H;var K=K===void 0?!0:K;this.scsReferenceUrl_=g0f(_.jo(N).toString(),K);this.cssRowKey_=b;this.combinedSignature_=S;this.useNegativeLoading_=P;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(N=jy(this.scsReferenceUrl_,"excm"))?N.split(","):[];this.shouldScanForCss_=H;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;e6L();_.sH(this,GQ4(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
s39=function(N,b){if(b.href||b.getAttribute("data-href"))if(b=b.href||b.getAttribute("data-href"),y2o(b)&&!g0f(b).urlPrefix_.endsWith("_/js/")){b=GQ4(g0f(b));b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,N.loadedCssModuleList_.includes(S)||N.loadedCssModuleList_.push(S)}};
_.tA.prototype.JSC$11283_loadModules=function(N,b,S){var P=S===void 0?{}:S;b=P.extraEdges;S=P.onError;var H=P.onSuccess;P=P.forceReload;if(!N)throw Error("td");if(this.shouldScanForCss_){for(var K=_.O(document.getElementsByTagName("style")),C=K.next();!C.done;C=K.next())s39(this,C.value);K=_.O(document.getElementsByTagName("link"));for(C=K.next();!C.done;C=K.next())s39(this,C.value)}Ky9(this,vnO(this,N),b,S,H,P)};
var Ky9=function(N,b,S,P,H,K){P=P===void 0?function(){}:P;
H=H===void 0?function(){}:H;
K=K===void 0?!1:K;OXZ(N,b,function(C,G,a){a=a===void 0?G:a;N.enableFallbackFetch&&K?N.loadWithFetch(C,G,P,H,a):N.load(C,G,P,H,a,S)},S)||P(-1)};
_.tA.prototype.loadWithFetch=function(){_.r(function(){throw Error("ud");})};
_.tA.prototype.maybeSetAdditionalFields=function(){};
rsd=function(N,b,S){if(N.useNegativeLoading_){var P=N.scsReferenceUrl_;N={cssRowKey:N.cssRowKey_,combinedSignature:N.combinedSignature_,extraEdges:S,requestedModuleIds:C1k(N),requestedCssModuleIds:GB4(N)};var H=N===void 0?{}:N;N=H.requestedModuleIds===void 0?[]:H.requestedModuleIds;S=H.requestedCssModuleIds===void 0?[]:H.requestedCssModuleIds;var K=H.cssRowKey===void 0?void 0:H.cssRowKey;var C=H.combinedSignature===void 0?void 0:H.combinedSignature;var G=H.extraEdges===void 0?void 0:H.extraEdges;
H=H.callback===void 0?void 0:H.callback;P=eV9(P);zI(P,"d","1");OtS(P,N);CvE(P,S);b=hVb(P,b,{cssRowKey:K,combinedSignature:C,extraEdges:G,callback:H})}else P=N.scsReferenceUrl_,N={cssRowKey:N.cssRowKey_,combinedSignature:N.combinedSignature_,requestedModuleIds:C1k(N),requestedCssModuleIds:GB4(N)},G=N===void 0?{}:N,N=G.requestedCssModuleIds===void 0?[]:G.requestedCssModuleIds,S=G.cssRowKey===void 0?void 0:G.cssRowKey,K=G.combinedSignature===void 0?void 0:G.combinedSignature,C=G.extraEdges===void 0?
void 0:G.extraEdges,G=G.callback===void 0?void 0:G.callback,P=eV9(P),CvE(P,N),b=hVb(P,b,{cssRowKey:S,combinedSignature:K,extraEdges:C,callback:G});return b};
_.sH=function(N,b){for(var S=!1,P=[],H=0;H<b.length;++H){var K=b[H];N.requestedModuleMap_[K]||(N.requestedModuleMap_[K]=!0,N.requestedModuleList_.push(K),S=!0,P.push(K))}S&&(N.requestedModuleListSorted_=!1)};
_.K2=function(N,b){for(var S=[],P=0;P<b.length;++P){var H=b[P];N.requestedModuleMap_[H]&&(delete N.requestedModuleMap_[H],_.zo(N.requestedModuleList_,H),S.push(H))}};
_.tA.prototype.load=function(N,b,S,P,H){H=H===void 0?b:H;_.jo(N);var K=this.useCors_,C=this.corsMode_,G=this.fetchPriority,a=_.U5("SCRIPT");_.cM(a,N);K&&(a.crossOrigin=C);a.async=!1;G&&a.setAttribute("fetchpriority",G);_.sH(this,b);_.cs9(this,N,a,b,S,P,H)};
_.cs9=function(N,b,S,P,H,K,C){C=C===void 0?P:C;N.lastScript_=S;N.insertPos.insertBefore(S,N.insertPos.firstChild);_.aK9(S,P,function(){S.parentElement.removeChild(S);N.lastScript_==S&&(N.lastScript_=null);K()},function(G){S.parentElement.removeChild(S);
N.lastScript_==S&&(N.lastScript_=null);_.K2(N,G);N.pendingModuleGraphUpdate_?N.pendingModuleGraphUpdate_.then(function(){H(-1,b)}):H(-1,b)},C)};
_.aK9=function(N,b,S,P,H){H=H===void 0?b:H;var K=b.length,C=function(){K=0;N.onload=null;N.onerror=null;G=function(){}},G=function(){C();
var R=H.filter(function(n){return!eG().getModuleInfo(n).isLoaded()});
R.length!==0?P(R,"Response was successful but was missing module(s) "+R+"."):S()},a=function(){K--;
K==0&&G()};
b.forEach(function(R){R=eG().getModuleInfo(R);R.isLoaded()?a():(Hu(R.earlyOnloadCallbacks_,a),P1E(R,a))});
N.onload=function(){return G()};
N.onerror=function(){C();P(b)}};
C1k=function(N){N.requestedModuleListSorted_||(N.requestedModuleListSorted_=!0,N.requestedModuleList_.sort());return N.requestedModuleList_};
GB4=function(N){N=N.loadedCssModuleList_;N.sort();return N};
vnO=function(N,b){return b.filter(function(S){return!N.requestedModuleMap_[S]})};
OXZ=function(N,b,S,P){if(N.pendingModuleGraphUpdate_)return N.pendingModuleGraphUpdate_.then(function(){OXZ(N,b,S,P)}),!0;
if(!N.useNegativeLoading_){var H=[],K=Object.assign({},N.requestedModuleMap_);RC9(N,b,function(n){H.push(n.getId())},P,function(n){return!n.isLoaded()},K);
b=H}for(K=0;K<b.length;){for(var C=b.length-K,G=K==0?b:b.slice(K,b.length),a=rsd(N,G,P),R=_.jo(a).toString();R.length>N.urlMaxLength;)if(C>1)C-=Math.ceil((R.length-N.urlMaxLength)/6),C=Math.max(C,1),G=b.slice(K,K+C),a=rsd(N,G,P),R=_.jo(a).toString();else return N.useNegativeLoading_?(N.useNegativeLoading_=!1,N.pendingModuleGraphUpdate_=Wyz(N).then(function(n){nnl(N,n,P)}),OXZ(N,b.slice(K),S,P)):!1;
K+=C;N.useNegativeLoading_?S(a,G):S(a,G,K===b.length?b:[])}return!0};
nnl=function(N,b,S){eG().setAllModuleInfoString((b||{}).moduleGraph);RC9(N,C1k(N),function(P){_.sH(N,[P.getId()])},S);
N.pendingModuleGraphUpdate_=null};
RC9=function(N,b,S,P,H,K){K=K===void 0?{}:K;var C=eG();b=_.O(b);for(var G=b.next();!G.done;G=b.next()){G=G.value;var a=C.getModuleInfo(G);if(!(K[G]||H&&!H(a))){K[G]=!0;var R=a.deps_||[];if(P){var n=[];P[G]&&(n=Object.keys(P[G]));R=R.concat(n)}RC9(N,R,S,P,H,K);S(a)}}};
Wyz=function(N){N=N.scsReferenceUrl_.clone();cA9(N);zI(N,"dg",null);zI(N,"md","1");return wUO(N.toString())};var cIu=new Uint8Array(123);var dnc=[];var mnN=function(){this.JSC$10287_loader_=null};
_.v=mnN.prototype;_.v.setBatchModeEnabled=function(){};
_.v.setAllModuleInfoString=function(){};
_.v.addExtraEdge=function(){throw Error("vd");};
_.v.removeExtraEdge=function(){throw Error("wd");};
_.v.getModuleContext=function(){return null};
_.v.isActive=function(){return!1};
_.v.isUserActive=function(){return!1};
_.v.registerInitializationCallback=function(){};
_.v.registerCallback=function(){};var vu=function(N,b,S,P,H){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.name="ModuleLoadFailure";this.type=N;this.status=b;this.requestedModuleIds=S;this.url=P;this.cause=H;this.message=this.toString()};
_.F(vu,Error);vu.prototype.toString=function(){return kBN(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var kBN=function(N){switch(N.type){case vu.Type.UNAUTHORIZED:return"Unauthorized";case vu.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case vu.Type.TIMEOUT:return"Timed out";case vu.Type.OLD_CODE_GONE:return"Out of date module id";case vu.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+N.type}};
Pe.ModuleLoadFailure=vu;Pe.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var OH=function(){this.moduleIds_=this.JSC$10287_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11296_extraEdges_={};this.JSC$11296_callbackMap_={};this.JSC$11296_currentlyLoadingModule_=this.baseModuleInfo_=new Pu([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new O0;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.Km(OH,mnN);var TQO=function(N,b){_.NL.call(this,"Error loading "+N+": "+b)};
_.Km(TQO,_.NL);OH.prototype.setBatchModeEnabled=function(N){this.batchModeEnabled_=N};
OH.prototype.setAllModuleInfoString=function(N,b){if(!(this instanceof OH))this.setAllModuleInfoString(N,b);else if(typeof N==="string"){if(N.startsWith("d$")){N=N.substring(2);for(var S=[],P=0,H=N.indexOf("/"),K=0,C=!1,G=0;;){var a=C?N.substring(K):N.substring(K,H);if(a.length===0)P++,K="sy"+P.toString(36),a=[];else{var R=a.indexOf(":");if(R<0)K=a,a=[];else if(R===a.length-1)K=a.substring(0,R),a=Array(S[G-1]);else{K=a.substring(0,R);a=a.substring(R+1).split(",");R=G;for(var n=0;n<a.length;n++)R-=
a[n].length===0?1:Number(a[n]),a[n]=S[R]}R=0;if(K.length===0)R=1;else if(K.charAt(0)==="+"||K.charAt(0)==="-")R=Number(K);R!==0&&(P+=R,K="sy"+P.toString(36))}S.push(K);tZO(this,K,a);if(C)break;K=H+1;H=N.indexOf("/",K);H===-1&&(C=!0);G++}this.moduleIds_=S}else if(N.startsWith("p$"))MZl(this,N);else{N=N.split("/");S=[];for(P=0;P<N.length;P++){G=N[P].split(":");H=G[0];C=[];if(G[1])for(C=G[1].split(","),G=0;G<C.length;G++)C[G]=S[parseInt(C[G],36)];S.push(H);tZO(this,H,C)}this.moduleIds_=S}b&&b.length?
(_.IU(this.loadingModuleIds_,b),this.lastInitialModuleId_=_.oU(b)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11296_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11296_currentlyLoadingModule_=null,(b=this.baseModuleInfo_.onLoad((0,_.pT)(this.getModuleContext,this)))&&b.length&&FyN(this,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,b[0])),C2(this))}};
var MZl=function(N,b){var S=b.substring(2);for(b=0;b<64;b++)cIu["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(b)]=b;var P={buf:S,pos:0};TQ(P);var H=TQ(P),K=TQ(P)+1;b=Array(H);var C=Array(H),G=Array(H);K=Array(K);var a=0,R=0,n=P.pos,d=P.buf.indexOf("|",P.pos);P.pos=d+1;for(d=0;d<H;d++){var m=TQ(P),k=m&2,M=m&1;m>>>=2;M?(a+=m>>>1^-(m&1),m="sy"+a.toString(36)):(M=n,n+=m,m=S.substring(M,n));b[d]=m;k&&(K[R++]=m)}K[R]="";P.pos++;R=H&-2;S=H&1;for(a=0;a<R;a+=2)n=aWI(P),G[a]=
n&7,G[a+1]=n>>>3&7;S&&(S=aWI(P),G[R]=S&7);P.pos++;for(R=0;R<H;R++)G[R]===7&&(G[R]=TQ(P));P.pos++;for(S=R=0;S<H;S++){a=G[S];n=a===0?dnc:Array(a);C[S]=n;d=R;for(k=0;k<a;k++)d-=TQ(P),n[k]=K[d];K[R]===b[S]&&R++}for(P=0;P<b.length;P++)tZO(N,b[P],C[P]);N.moduleIds_=b};
_.v=OH.prototype;_.v.getModuleInfo=function(N){return this.moduleInfoMap[N]};
_.v.addExtraEdge=function(N,b){var S=this.getModuleInfo(N);S&&S.isLoaded()?this.load(b):(this.JSC$11296_extraEdges_[N]||(this.JSC$11296_extraEdges_[N]={}),this.JSC$11296_extraEdges_[N][b]=!0)};
_.v.removeExtraEdge=function(N,b){if(this.JSC$11296_extraEdges_[N]){delete this.JSC$11296_extraEdges_[N][b];for(var S in this.JSC$11296_extraEdges_[N])return;delete this.JSC$11296_extraEdges_[N]}};
_.v.isActive=function(){return this.loadingModuleIds_.length>0};
_.v.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var C2=function(N){var b=N.lastActive_,S=N.isActive();S!=b&&(N.executeCallbacks_(S?"active":"idle"),N.lastActive_=S);b=N.isUserActive();b!=N.userLastActive_&&(N.executeCallbacks_(b?"userActive":"userIdle"),N.userLastActive_=b)},tZO=function(N,b,S){N.moduleInfoMap[b]?(N=N.moduleInfoMap[b].deps_,N!=S&&N.splice.apply(N,[0,
N.length].concat(_.IX(S)))):N.moduleInfoMap[b]=new Pu(S,b)},lK9=function(N,b,S){var P=[];
JbY(b,P);b=[];for(var H={},K=0;K<P.length;K++){var C=P[K],G=N.getModuleInfo(C);if(!G)throw Error("xd`"+C);var a=new O0;H[C]=a;G.isLoaded()?a.callback(null):(BQd(N,C,G,!!S,a),N.isModuleLoading(C)||b.push(C))}b.length>0&&(N.loadingModuleIds_.length===0?N.loadModules_(b):(N.requestedModuleIdsQueue_.push(b),C2(N)));return H},BQd=function(N,b,S,P,H){S.registerCallback(H.callback,H);
P1E(S,function(K){H.errback(new TQO(b,K))});
N.isModuleLoading(b)?P&&(LyV(N,b),C2(N)):P&&LyV(N,b)};
OH.prototype.loadModules_=function(N,b,S){var P=this;b=b===void 0?0:b;var H=fKS(this,N);this.loadingModuleIds_=H;this.requestedLoadingModuleIds_=this.batchModeEnabled_?N:_.pa(H);C2(this);if(H.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,H);N=this.JSC$10287_loader_;if(!N)throw Error("yd");if(Object.keys(this.JSC$11296_extraEdges_).length>0&&!N.supportsExtraEdges)throw Error("zd");S=(0,_.pT)(N.JSC$11283_loadModules,N,_.pa(H),this.moduleInfoMap,{extraEdges:this.JSC$11296_extraEdges_,
forceReload:!!S,onError:function(K,C,G){var a=P.requestedLoadingModuleIds_;K=K!=null?K:void 0;var R=b;G=G===void 0?!1:G;G=(G===void 0?0:G)?0:(R===void 0?0:R)+1;R=_.pa(H);P.requestedLoadingModuleIds_=a;H.forEach(_.Rm(_.zo,P.requestedModuleIds_),P);K==401?(FyN(P,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.UNAUTHORIZED,K)),P.requestedModuleIdsQueue_.length=0):K==410?(u6c(P,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.OLD_CODE_GONE,K)),Q3l(P)):G>=3?(u6c(P,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
K,R,C)),Q3l(P)):P.loadModules_(P.requestedLoadingModuleIds_,G,K==8001||!1)},
onTimeout:(0,_.pT)(this.handleLoadTimeout_,this)});(N=Math.pow(b,2)*5E3)?_.Ps.setTimeout(S,N):S()}};
var fKS=function(N,b){b=b.filter(function(H){return N.moduleInfoMap[H].isLoaded()?(_.Ps.setTimeout(function(){return Error("Ad`"+H)},0),!1):!0});
for(var S=[],P=0;P<b.length;P++)S=S.concat(xnz(N,b[P]));JbY(S);return!N.batchModeEnabled_&&S.length>1?(b=S.shift(),N.requestedModuleIdsQueue_=S.map(function(H){return[H]}).concat(N.requestedModuleIdsQueue_),[b]):S},xnz=function(N,b){var S=_.Vm.createSet(N.requestedModuleIds_),P=[];
S[b]||P.push(b);b=[b];for(var H=0;H<b.length;H++)for(var K=N.getModuleInfo(b[H]).deps_,C=K.length-1;C>=0;C--){var G=K[C];N.getModuleInfo(G).isLoaded()||S[G]||(P.push(G),b.push(G))}P.reverse();JbY(P);return P};
OH.prototype.JSC$11291_setLoaded=function(){if(this.JSC$11296_currentlyLoadingModule_){var N=this.JSC$11296_currentlyLoadingModule_.getId(),b=[];if(this.JSC$11296_extraEdges_[N]){for(var S=_.O(Object.keys(this.JSC$11296_extraEdges_[N])),P=S.next();!P.done;P=S.next()){P=P.value;var H=this.getModuleInfo(P);H&&!H.isLoaded()&&(this.removeExtraEdge(N,P),b.push(P))}this.loadMultiple(b)}this.isDisposed()||((b=this.moduleInfoMap[N].onLoad((0,_.pT)(this.getModuleContext,this)))&&b.length&&FyN(this,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,b[0])),_.zo(this.userInitiatedLoadingModuleIds_,N),_.zo(this.loadingModuleIds_,N),this.loadingModuleIds_.length===0&&Q3l(this),this.lastInitialModuleId_&&N==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),C2(this),this.JSC$11296_currentlyLoadingModule_=null)}};
OH.prototype.isModuleLoading=function(N){if(_.Z_(this.loadingModuleIds_,N))return!0;for(var b=0;b<this.requestedModuleIdsQueue_.length;b++)if(_.Z_(this.requestedModuleIdsQueue_[b],N))return!0;return!1};
OH.prototype.load=function(N,b){return lK9(this,[N],b)[N]};
OH.prototype.loadMultiple=function(N){return lK9(this,N)};
var LyV=function(N,b){_.Z_(N.userInitiatedLoadingModuleIds_,b)||N.userInitiatedLoadingModuleIds_.push(b)};
OH.prototype.beforeLoadModuleCode=function(N){var b=this;this.JSC$11296_currentlyLoadingModule_&&this.JSC$11296_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11291_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[N]&&on9(this,this.moduleInfoMap[N].deps_||[],function(S){S.module_=new Se;_.zo(b.loadingModuleIds_,S.getId())},function(S){return!S.isLoaded()});
this.JSC$11296_currentlyLoadingModule_=this.getModuleInfo(N)};
OH.prototype.registerInitializationCallback=function(N){this.JSC$11296_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Pu([],"synthetic_module_overhead"),this.JSC$11296_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Hu(this.JSC$11296_currentlyLoadingModule_.earlyOnloadCallbacks_,N)};
OH.prototype.handleLoadTimeout_=function(){u6c(this,new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.TIMEOUT));Q3l(this)};
var u6c=function(N,b){N.requestedLoadingModuleIds_.length>1?N.requestedModuleIdsQueue_=N.requestedLoadingModuleIds_.map(function(S){return[S]}).concat(N.requestedModuleIdsQueue_):FyN(N,b)},FyN=function(N,b){var S=N.requestedLoadingModuleIds_;
N.loadingModuleIds_.length=0;for(var P=[],H=0;H<N.requestedModuleIdsQueue_.length;H++){var K=N.requestedModuleIdsQueue_[H].filter(function(a){var R=xnz(this,a);return vl(S,function(n){return _.Z_(R,n)})},N);
_.IU(P,K)}for(H=0;H<S.length;H++)_.QUs(P,S[H]);for(H=0;H<P.length;H++){for(K=0;K<N.requestedModuleIdsQueue_.length;K++)_.zo(N.requestedModuleIdsQueue_[K],P[H]);_.zo(N.userInitiatedLoadingModuleIds_,P[H])}if(H=N.JSC$11296_callbackMap_.error)for(K=0;K<H.length;K++)for(var C=H[K],G=0;G<P.length;G++)C("error",P[G],b);for(P=0;P<S.length;P++)if(N.moduleInfoMap[S[P]])N.moduleInfoMap[S[P]].onError(b);N.requestedLoadingModuleIds_.length=0;C2(N)},Q3l=function(N){for(;N.requestedModuleIdsQueue_.length;){var b=
N.requestedModuleIdsQueue_.shift().filter(function(S){return!this.getModuleInfo(S).isLoaded()},N);
if(b.length>0){N.loadModules_(b);return}}C2(N)};
OH.prototype.registerCallback=function(N,b){Array.isArray(N)||(N=[N]);for(var S=0;S<N.length;S++){var P=N[S],H=b,K=this.JSC$11296_callbackMap_;K[P]||(K[P]=[]);K[P].push(H)}};
OH.prototype.executeCallbacks_=function(N){for(var b=this.JSC$11296_callbackMap_[N],S=0;b&&S<b.length;S++)b[S](N)};
var on9=function(N,b,S,P,H){P=P===void 0?function(){return!0}:P;
H=H===void 0?{}:H;b=_.O(b);for(var K=b.next();!K.done;K=b.next()){K=K.value;var C=N.getModuleInfo(K);!H[K]&&P(C)&&(H[K]=!0,on9(N,C.deps_||[],S,P,H),S(C))}};
OH.prototype.dispose=function(){_.nT(_.Vm.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11296_callbackMap_={};this.isDisposed_=!0};
OH.prototype.isDisposed=function(){return this.isDisposed_};
_.gj=function(){return new OH};var iXc=[5E3,2E4],cku=function(){this.JSC$10287_loader_=null;this.JSC$11304_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11304_queue_=[];this.JSC$11304_extraEdges_=Object.create(null);this.JSC$11304_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.F(cku,mnN);_.v=cku.prototype;_.v.setAllModuleInfoString=function(){this.JSC$11304_currentlyLoadingModule_&&this.JSC$11304_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11291_setLoaded()};
_.v.getModuleInfo=function(N){var b=this.JSC$11304_moduleInfoMap_[N];b||(b=new Pu([],N),this.JSC$11304_moduleInfoMap_[N]=b);return b};
_.v.addExtraEdge=function(N,b){this.getModuleInfo(N).isLoaded()?this.load(b):(this.JSC$11304_extraEdges_[N]||(this.JSC$11304_extraEdges_[N]={}),this.JSC$11304_extraEdges_[N][b]=!0)};
_.v.removeExtraEdge=function(N,b){if(this.JSC$11304_extraEdges_[N]){delete this.JSC$11304_extraEdges_[N][b];for(var S in this.JSC$11304_extraEdges_[N])return;delete this.JSC$11304_extraEdges_[N]}};
_.v.isModuleLoading=function(N){return!!this.loadingModules_[N]};
_.v.load=function(N){Jsz(this,[N]);return UnN(this,N)};
_.v.loadMultiple=function(N){var b=this,S=Object.create(null),P=[];N.forEach(function(H){S[H]||(S[H]=UnN(b,H),P.push(H))});
Jsz(this,P);return S};
_.v.beforeLoadModuleCode=function(N){var b;((b=this.JSC$11304_currentlyLoadingModule_)==null?void 0:b.getId())==="synthetic_module_overhead"&&this.JSC$11291_setLoaded();var S,P;ZXN(this,(P=(S=this.JSC$11304_moduleInfoMap_[N])==null?void 0:S.deps_)!=null?P:[],function(H){H.module_=new Se},function(H){return!H.isLoaded()});
this.JSC$11304_currentlyLoadingModule_=this.getModuleInfo(N)};
_.v.JSC$11291_setLoaded=function(){if(this.JSC$11304_currentlyLoadingModule_){var N=this.JSC$11304_currentlyLoadingModule_.getId(),b=[];if(this.JSC$11304_extraEdges_[N]){for(var S=_.O(Object.keys(this.JSC$11304_extraEdges_[N])),P=S.next();!P.done;P=S.next())P=P.value,this.getModuleInfo(P).isLoaded()||(this.removeExtraEdge(N,P),b.push(P));this.loadMultiple(b)}this.JSC$11304_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11304_currentlyLoadingModule_=null;(!this.isModuleLoading(N)&&/^sy[0-9a-z]{0,4}$/.test(N)||N==="synthetic_module_overhead")&&delete this.JSC$11304_moduleInfoMap_[N];this.unsetModulesAsLoading(N)}};
_.v.registerInitializationCallback=function(N){this.JSC$11304_currentlyLoadingModule_||(this.JSC$11304_moduleInfoMap_.synthetic_module_overhead=new Pu([],"synthetic_module_overhead"),this.JSC$11304_currentlyLoadingModule_=this.JSC$11304_moduleInfoMap_.synthetic_module_overhead);Hu(this.JSC$11304_currentlyLoadingModule_.earlyOnloadCallbacks_,N)};
_.v.setModulesAsLoading=function(){var N=this;_.$I.apply(0,arguments).forEach(function(b){N.loadingModules_[b]=!0})};
_.v.unsetModulesAsLoading=function(){var N=this;_.$I.apply(0,arguments).forEach(function(b){delete N.loadingModules_[b]})};
var UnN=function(N,b){return new _.u5(function(S,P){var H=N.getModuleInfo(b);H.isLoaded()?S(null):(H.registerCallback(function(){S(null)}),P1E(H,function(K){var C="Error loading "+b+": "+K;
K instanceof Pe.ModuleLoadFailure&&K.url&&(C=C+", requested url: "+K.url.toString());P(Error(C))}))})},Jsz=function(N,b){b=b.filter(function(S){return!N.isModuleLoading(S)&&!N.getModuleInfo(S).isLoaded()});
b.length>0&&(N.setModulesAsLoading.apply(N,_.IX(b)),N.JSC$11304_queue_.push(b),j39(N))},j39=function(N){for(var b={};N.activeLoads_<Infinity&&N.JSC$11304_queue_.length>0;b={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})b.ids$jscomp$37=N.JSC$11304_queue_.shift().filter(function(S){return!N.getModuleInfo(S).isLoaded()}),b.ids$jscomp$37.length>0&&(N.activeLoads_++,b.finishLoad=function(S){return function(){N.activeLoads_--;
j39(N);S.finishLoad=function(){}}}(b),_.jA(b.ids$jscomp$37.map(function(S){return UnN(N,S)})).then(function(S){return function(){(0,S.finishLoad)()}}(b)),b.attempt$jscomp$6=0,b.load$jscomp$1=function(S){return function(){if(Object.keys(N.JSC$11304_extraEdges_).length>0&&!N.JSC$10287_loader_.supportsExtraEdges)throw Error("zd");
N.JSC$10287_loader_.JSC$11283_loadModules(S.ids$jscomp$37,N.JSC$11304_moduleInfoMap_,{extraEdges:N.JSC$11304_extraEdges_,onError:function(P,H){var K=iXc[S.attempt$jscomp$6++];K!==void 0?setTimeout(function(){(0,S.load$jscomp$1)()},K):(N.unsetModulesAsLoading.apply(N,_.IX(S.ids$jscomp$37)),(0,S.finishLoad)(),S.ids$jscomp$37.forEach(function(C){C=N.getModuleInfo(C);
if(!C.isLoaded())C.onError(new Pe.ModuleLoadFailure(Pe.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,P,S.ids$jscomp$37,H))}))}})}}(b),(0,b.load$jscomp$1)())},ZXN=function(N,b,S,P,H){P=P===void 0?function(){return!0}:P;
H=H===void 0?{}:H;b=_.O(b);for(var K=b.next();!K.done;K=b.next()){K=K.value;var C=N.getModuleInfo(K);!H[K]&&P(C)&&(H[K]=!0,ZXN(N,C.deps_||[],S,P,H),S(C))}};var zCd=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var ne9=Symbol("Cd");window.JSCompiler_renameProperty=function(N){return N};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var As9=!zCd||HTMLElement.es5Shimmed||_.Ps.Reflect===void 0||_.Ps.customElements===void 0||_.Ps.customElements.polyfillWrapFlushCallback||!1,XdZ,Fx_=function(){var N=HTMLElement;if(As9)return N;if(XdZ!==void 0)return XdZ;var b=_.Ps.Reflect,S=function(){return b.construct(N,[],this.constructor)};
S.prototype=N.prototype;S.prototype.constructor=S;S.es5Shimmed=!0;Object.setPrototypeOf(S,N);return XdZ=S},EnZ=!1;As9||EnZ||(EnZ=!0,_.Ps.HTMLElement=Fx_());/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
window.COMPILED=window.COMPILED||!1;var t8f=/(url\()([^)]*)(\))/g,kME=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,TOe,Fx;var Sg=!window.ShadyDOM||!window.ShadyDOM.inUse,pdd=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),YKz=!window.customElements.polyfillWrapFlushCallback,ysE;if(ysE=Sg&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var IKZ=new CSSStyleSheet;IKZ.replaceSync("");var DnO=document.createElement("div");DnO.attachShadow({mode:"open"});DnO.shadowRoot.adoptedStyleSheets=[IKZ];ysE=DnO.shadowRoot.adoptedStyleSheets[0]===IKZ}catch(N){ysE=!1}
var VZV=ysE,gnk=window.Polymer&&window.Polymer.rootPath||F8p(document.baseURI||window.location.href),zQ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,oEb=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Kx=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,eC9=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,bx=window.Polymer&&window.Polymer.legacyOptimizations||!1,ss=window.Polymer&&window.Polymer.legacyWarnings||!1,$n4=window.Polymer&&window.Polymer.syncInitialRender||
!1,Xx=window.Polymer&&window.Polymer.legacyUndefined||!1,hCE=window.Polymer&&window.Polymer.orderedComputed||!1,Gt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,rK=window.Polymer&&window.Polymer.fastDomIf||!1,cu=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,qKd=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,wdl=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var ao={},Nqb={},pt=function(){return HTMLElement.apply(this,arguments)||this};
_.F(pt,HTMLElement);pt.import=function(N,b){return N?(N=ao[N]||Nqb[N.toLowerCase()])&&b?N.querySelector(b):N:null};
pt.prototype.attributeChangedCallback=function(N,b,S){b!==S&&this.register()};
pt.prototype.register=function(N){if(N=N||this.id){if(Kx&&(ao[N]||Nqb[N.toLowerCase()])!==void 0)throw ao[N]=Nqb[N.toLowerCase()]=null,Error("Dd`"+N);this.id=N;ao[N]=Nqb[N.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.d0.Object.defineProperties(pt.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var N=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;N=_.Bz(this.getAttribute("assetpath")||"",N.baseURI);this.__assetpath=F8p(N)}return this.__assetpath}}});
_.d0.Object.defineProperties(pt,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
pt["import"]=pt.import;pt.prototype.modules=ao;customElements.define("dom-module",pt);var b3O=0,lWa=0,lv=[],Sj9=0,BOI=!1,PIb=document.createTextNode(""),H3b,wb;(new window.MutationObserver(L8O)).observe(PIb,{characterData:!0});_.Ro={after:function(N){return{run:function(b){return window.setTimeout(b,N)},
cancel:function(b){window.clearTimeout(b)}}},
run:function(N,b){return window.setTimeout(N,b)},
cancel:function(N){window.clearTimeout(N)}};
_.L7={run:function(N){return window.requestAnimationFrame(N)},
cancel:function(N){window.cancelAnimationFrame(N)}};
H3b={run:function(N){return window.requestIdleCallback?window.requestIdleCallback(N):window.setTimeout(N,16)},
cancel:function(N){window.cancelIdleCallback?window.cancelIdleCallback(N):window.clearTimeout(N)}};
wb={run:function(N){BOI||(BOI=!0,PIb.textContent=Sj9++);lv.push(N);return b3O++},
cancel:function(N){var b=N-lWa;if(b>=0){if(!lv[b])throw Error("Ed`"+N);lv[b]=null}}};var sAl=0,Wu=function(N){var b=N.__mixinApplications;b||(b=new WeakMap,N.__mixinApplications=b);var S=sAl++;return function(P){var H=P.__mixinSet;if(H&&H[S])return P;var K=b,C=K.get(P);C||(C=N(P),K.set(P,C),P=Object.create(C.__mixinSet||H||null),P[S]=!0,C.__mixinSet=P);return C}};_.jl=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(N){return ShadyDOM.patch(N)}:function(N){return N};var KdZ=Wu(function(N){var b=function(){var S=N.call(this)||this;S.__dataEnabled=!1;S.__dataReady=!1;S.__dataInvalid=!1;S.__data={};S.__dataPending=null;S.__dataOld=null;S.__dataInstanceProps=null;S.__dataCounter=0;S.__serializing=!1;S._initializeProperties();return S};
_.F(b,N);b.createProperties=function(S){var P=this.prototype,H;for(H in S)H in P||P._createPropertyAccessor(H)};
b.attributeNameForProperty=function(S){return S.toLowerCase()};
b.typeForProperty=function(){};
b.prototype._createPropertyAccessor=function(S,P){this._addPropertyToAttributeMap(S);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[S]||(this.__dataHasAccessor[S]=!0,this._definePropertyAccessor(S,P))};
b.prototype._addPropertyToAttributeMap=function(S){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var P=this.__dataAttributes[S];P||(P=this.constructor.attributeNameForProperty(S),this.__dataAttributes[P]=S);return P};
b.prototype._definePropertyAccessor=function(S,P){Object.defineProperty(this,S,{get:function(){return this.__data[S]},
set:P?function(){}:function(H){this._setPendingProperty(S,H,!0)&&this._invalidateProperties()}})};
b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
b.prototype._initializeProperties=function(){for(var S in this.__dataHasAccessor)this.hasOwnProperty(S)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[S]=this[S],delete this[S])};
b.prototype._initializeInstanceProperties=function(S){Object.assign(this,S)};
b.prototype._setProperty=function(S,P){this._setPendingProperty(S,P)&&this._invalidateProperties()};
b.prototype._getProperty=function(S){return this.__data[S]};
b.prototype._setPendingProperty=function(S,P){var H=this.__data[S],K=this._shouldPropertyChange(S,P,H);K&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||S in this.__dataOld||(this.__dataOld[S]=H),this.__data[S]=P,this.__dataPending[S]=P);return K};
b.prototype._isPropertyPending=function(S){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(S))};
b.prototype._invalidateProperties=function(){var S=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,wb.run(function(){S.__dataInvalid&&(S.__dataInvalid=!1,S._flushProperties())}))};
b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
b.prototype._flushProperties=function(){this.__dataCounter++;var S=this.__data,P=this.__dataPending,H=this.__dataOld;this._shouldPropertiesChange(S,P,H)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(S,P,H));this.__dataCounter--};
b.prototype._shouldPropertiesChange=function(S,P){return!!P};
b.prototype._propertiesChanged=function(){};
b.prototype._shouldPropertyChange=function(S,P,H){return H!==P&&(H===H||P===P)};
b.prototype.attributeChangedCallback=function(S,P,H,K){P!==H&&this._attributeToProperty(S,H);N.prototype.attributeChangedCallback&&N.prototype.attributeChangedCallback.call(this,S,P,H,K)};
b.prototype._attributeToProperty=function(S,P,H){if(!this.__serializing){var K=this.__dataAttributes;S=K&&K[S]||S;this[S]=this._deserializeValue(P,H||this.constructor.typeForProperty(S))}};
b.prototype._propertyToAttribute=function(S,P,H){this.__serializing=!0;H=arguments.length<3?this[S]:H;this._valueToNodeAttribute(this,H,P||this.constructor.attributeNameForProperty(S));this.__serializing=!1};
b.prototype._valueToNodeAttribute=function(S,P,H){P=this._serializeValue(P);if(H==="class"||H==="name"||H==="slot")S=(0,_.jl)(S);P===void 0?S.removeAttribute(H):S.setAttribute(H,P===""&&window.trustedTypes?window.trustedTypes.emptyScript:P)};
b.prototype._serializeValue=function(S){switch(typeof S){case "boolean":return S?"":void 0;default:return S!=null?S.toString():void 0}};
b.prototype._deserializeValue=function(S,P){switch(P){case Boolean:return S!==null;case Number:return Number(S);default:return S}};
return b});var vq9=0,fWE=[];var O3O=Wu(function(N){function b(K){K=Object.getPrototypeOf(K);return K.prototype instanceof H?K:null}
function S(K){if(!K.hasOwnProperty("__ownProperties")){var C=null;if(K.hasOwnProperty("properties")){var G=K.properties;if(G){C={};for(var a in G){var R=G[a];C[a]=typeof R==="function"?{type:R}:R}}}K.__ownProperties=C}return K.__ownProperties}
var P=KdZ(N),H=function(){return P.apply(this,arguments)||this};
_.F(H,P);H.finalize=function(){if(!this.hasOwnProperty("__finalized")){var K=b(this);K&&K.finalize();this.__finalized=!0;this._finalizeClass()}};
H._finalizeClass=function(){var K=S(this);K&&this.createProperties(K)};
H.typeForProperty=function(K){return(K=this._properties[K])&&K.type};
H.prototype._initializeProperties=function(){vq9++;this.constructor.finalize();P.prototype._initializeProperties.call(this)};
H.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this._enableProperties()};
H.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this)};
_.d0.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var K=this;if(!this.hasOwnProperty("__observedAttributes")){uvE(this.prototype);var C=this._properties;this.__observedAttributes=C?Object.keys(C).map(function(G){return K.prototype._addPropertyToAttributeMap(G)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var K=b(this);this.__properties=Object.assign({},K&&K._properties,S(this))}return this.__properties}}});
return H});var QJe={},xvp=/-[a-z]/g,oea=/([A-Z])/g;for(var CIk={},Gdk=HTMLElement.prototype;Gdk;){for(var r_z=Object.getOwnPropertyNames(Gdk),c_k=0;c_k<r_z.length;c_k++)CIk[r_z[c_k]]=!0;Gdk=Object.getPrototypeOf(Gdk)}var aLc=window.trustedTypes?function(N){return trustedTypes.isHTML(N)||trustedTypes.isScript(N)||trustedTypes.isScriptURL(N)}:function(){return!1},RL9=Wu(function(N){var b=KdZ(N);
N=function(){return b.apply(this,arguments)||this};
_.F(N,b);N.createPropertiesForAttributes=function(){for(var S=this.observedAttributes,P=0;P<S.length;P++)this.prototype._createPropertyAccessor(Lt(S[P]))};
N.attributeNameForProperty=function(S){return ft(S)};
N.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);b.prototype._initializeProperties.call(this)};
N.prototype._initializeProtoProperties=function(S){for(var P in S)this._setProperty(P,S[P])};
N.prototype._ensureAttribute=function(S,P){this.hasAttribute(S)||this._valueToNodeAttribute(this,P,S)};
N.prototype._serializeValue=function(S){switch(typeof S){case "object":if(S instanceof Date)return S.toString();if(S){if(aLc(S))return S;try{return JSON.stringify(S)}catch(P){return""}}default:return b.prototype._serializeValue.call(this,S)}};
N.prototype._deserializeValue=function(S,P){switch(P){case Object:try{var H=JSON.parse(S)}catch(K){H=S}break;case Array:try{H=JSON.parse(S)}catch(K){H=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+S)}break;case Date:H=isNaN(S)?String(S):Number(S);H=new Date(H);break;default:H=b.prototype._deserializeValue.call(this,S,P)}return H};
N.prototype._definePropertyAccessor=function(S,P){if(!CIk[S]){var H=this[S];H!==void 0&&(this.__data?this._setPendingProperty(S,H):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[S]=H))}b.prototype._definePropertyAccessor.call(this,S,P)};
N.prototype._hasAccessor=function(S){return this.__dataHasAccessor&&this.__dataHasAccessor[S]};
N.prototype._isPropertyPending=function(S){return!!(this.__dataPending&&S in this.__dataPending)};
return N});var WdV={"dom-if":!0,"dom-repeat":!0},nqO=!1,dIE=!1,mI4=function(){var N=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(b){return b}});
return function(b,S,P){S=S.getAttribute(P);N&&P.startsWith("on-")?b.setAttribute(P,N.createScript(S,P)):b.setAttribute(P,S)}}(),kd9=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b._parseTemplate=function(S,P){if(!S._templateInfo){var H=S._templateInfo={};H.nodeInfoList=[];H.nestedTemplate=!!P;H.stripWhiteSpace=P&&P.stripWhiteSpace||S.hasAttribute&&S.hasAttribute("strip-whitespace");this._parseTemplateContent(S,H,{parent:null})}return S._templateInfo};
b._parseTemplateContent=function(S,P,H){return this._parseTemplateNode(S.content,P,H)};
b._parseTemplateNode=function(S,P,H){var K=!1;S.localName!="template"||S.hasAttribute("preserve-content")?S.localName==="slot"&&(P.hasInsertionPoint=!0):K=this._parseTemplateNestedTemplate(S,P,H)||K;if(!nqO){nqO=!0;var C=document.createElement("textarea");C.placeholder="a";dIE=C.placeholder===C.textContent}dIE&&S.localName==="textarea"&&S.placeholder&&S.placeholder===S.textContent&&(S.textContent=null);S.firstChild&&this._parseTemplateChildNodes(S,P,H);S.hasAttributes&&S.hasAttributes()&&(K=this._parseTemplateNodeAttributes(S,
P,H)||K);return K||H.noted};
b._parseTemplateChildNodes=function(S,P,H){if(S.localName!=="script"&&S.localName!=="style")for(var K=S.firstChild,C=0,G;K;K=G){if(K.localName=="template"){var a=K.getAttribute("is");if(a&&WdV[a])for(G=K,G.removeAttribute("is"),K=G.ownerDocument.createElement(a),G.parentNode.replaceChild(K,G),K.appendChild(G);G.attributes.length;)a=G.attributes[0].name,mI4(K,G,a),G.removeAttribute(a)}G=K.nextSibling;if(K.nodeType===Node.TEXT_NODE){for(a=G;a&&a.nodeType===Node.TEXT_NODE;)K.textContent+=a.textContent,
G=a.nextSibling,S.removeChild(a),a=G;if(P.stripWhiteSpace&&!K.textContent.trim()){S.removeChild(K);continue}}a={parentIndex:C,parentInfo:H};this._parseTemplateNode(K,P,a)&&(a.infoIndex=P.nodeInfoList.push(a)-1);K.parentNode&&C++}};
b._parseTemplateNestedTemplate=function(S,P,H){P=this._parseTemplate(S,P);(P.content=S.content.ownerDocument.createDocumentFragment()).appendChild(S.content);H.templateInfo=P;return!0};
b._parseTemplateNodeAttributes=function(S,P,H){for(var K=!1,C=Array.from(S.attributes),G=C.length-1,a;a=C[G];G--)K=this._parseTemplateNodeAttribute(S,P,H,a.name,a.value)||K;return K};
b._parseTemplateNodeAttribute=function(S,P,H,K,C){return K.slice(0,3)==="on-"?(S.removeAttribute(K),H.events=H.events||[],H.events.push({name:K.slice(3),value:C}),!0):K==="id"?(H.id=C,!0):!1};
b._contentForTemplate=function(S){var P=S._templateInfo;return P&&P.content||S.content};
b.prototype._stampTemplate=function(S,P){S&&!S.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(S);P=P||this.constructor._parseTemplate(S);var H=P.nodeInfoList;S=document.importNode(P.content||S.content,!0);S.__noInsertionPoint=!P.hasInsertionPoint;var K=S.nodeList=Array(H.length);S.$={};for(var C=0,G=H.length,a=void 0;C<G&&(a=H[C]);C++){var R=K[C]=ioE(S,a);a.id&&(S.$[a.id]=R);var n=R,d=a,m=P;d.templateInfo&&(n._templateInfo=d.templateInfo,n._parentTemplateInfo=
m);if(a.events&&a.events.length)for(n=0,d=a.events,m=void 0;n<d.length&&(m=d[n]);n++)this._addMethodEventListenerToNode(R,m.name,m.value,this)}return S};
b.prototype._addMethodEventListenerToNode=function(S,P,H,K){H=JIo(K||S,H);this._addEventListenerToNode(S,P,H);return H};
b.prototype._addEventListenerToNode=function(S,P,H){S.addEventListener(P,H)};
b.prototype._removeEventListenerFromNode=function(S,P,H){S.removeEventListener(P,H)};
return b});var UX=0,AA=[],Tqk={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},t7c=/[A-Z]/,M79=function(N,b,S,P,H){var K=H?Q9(N):N;if(b=b[K])for(K=0;K<b.length;K++){var C=b[K];if(C.info.lastRun!==UX&&(!H||XPb(N,C.trigger))){C.info.lastRun=UX;C=C.info;for(var G=S,a=P,R=0,n=G.length-1,d=-1;R<=n;){var m=R+n>>1,k=a.get(G[m].methodInfo)-a.get(C.methodInfo);if(k<0)R=m+1;else if(k>0)n=m-1;else{d=m;break}}d<
0&&(d=n+1);G.splice(d,0,C)}}},bS9=[],Fdk=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),dK=Wu(function(N){var b=kd9(RL9(N));
N=function(){var S=b.call(this)||this;S.__isPropertyEffectsClient=!0;return S};
_.F(N,b);N.prototype._initializeProperties=function(){b.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
N.prototype._registerHost=function(){if(n2.length){var S=n2[n2.length-1];S._enqueueClient(this);this.__dataHost=S}};
N.prototype._initializeProtoProperties=function(S){this.__data=Object.create(S);this.__dataPending=Object.create(S);this.__dataOld={}};
N.prototype._initializeInstanceProperties=function(S){var P=this.__readOnly,H;for(H in S)P&&P[H]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[H]=this.__dataPending[H]=S[H])};
N.prototype._addPropertyEffect=function(S,P,H){this._createPropertyAccessor(S,P=="__readOnly");var K=AIE(this,P,!0)[S];K||(K=this[P][S]=[]);K.push(H)};
N.prototype._removePropertyEffect=function(S,P,H){S=AIE(this,P,!0)[S];H=S.indexOf(H);H>=0&&S.splice(H,1)};
N.prototype._hasPropertyEffect=function(S,P){P=this[P];return!(!P||!P[S])};
N.prototype._hasReadOnlyEffect=function(S){return this._hasPropertyEffect(S,"__readOnly")};
N.prototype._hasNotifyEffect=function(S){return this._hasPropertyEffect(S,"__notifyEffects")};
N.prototype._hasReflectEffect=function(S){return this._hasPropertyEffect(S,"__reflectEffects")};
N.prototype._hasComputedEffect=function(S){return this._hasPropertyEffect(S,"__computeEffects")};
N.prototype._setPendingPropertyOrPath=function(S,P,H,K){if(K||Q9(Array.isArray(S)?S[0]:S)!==S){if(!K&&(K=JA(this,S),S=zSO(this,S,P),!S||!b.prototype._shouldPropertyChange.call(this,S,P,K)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(S,P,H)){if(H=this.__dataLinkedPaths)for(var C in H)K=H[C],x7(C,S)?(K=o5(C,K,S),this._setPendingPropertyOrPath(K,P,!0,!0)):x7(K,S)&&(K=o5(K,C,S),this._setPendingPropertyOrPath(K,P,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[S])return this._setPendingProperty(S,
P,H);this[S]=P}return!1};
N.prototype._setUnmanagedPropertyToNode=function(S,P,H){if(H!==S[P]||typeof H=="object")P==="className"&&(S=(0,_.jl)(S)),S[P]=H};
N.prototype._setPendingProperty=function(S,P,H){var K=this.__dataHasPaths&&uv(S);if(this._shouldPropertyChange(S,P,(K?this.__dataTemp:this.__data)[S])){this.__dataPending||(this.__dataPending={},this.__dataOld={});S in this.__dataOld||(this.__dataOld[S]=this.__data[S]);K?this.__dataTemp[S]=P:this.__data[S]=P;this.__dataPending[S]=P;if(K||this.__notifyEffects&&this.__notifyEffects[S])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[S]=H;return!0}return!1};
N.prototype._setProperty=function(S,P){this._setPendingProperty(S,P,!0)&&this._invalidateProperties()};
N.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
N.prototype._enqueueClient=function(S){this.__dataPendingClients=this.__dataPendingClients||[];S!==this&&this.__dataPendingClients.push(S)};
N.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
N.prototype.__enableOrFlushClients=function(){var S=this.__dataPendingClients;if(S){this.__dataPendingClients=null;for(var P=0;P<S.length;P++){var H=S[P];H.__dataEnabled?H.__dataPending&&H._flushProperties():H._enableProperties()}}};
N.prototype._readyClients=function(){this.__enableOrFlushClients()};
N.prototype.setProperties=function(S,P){for(var H in S)!P&&this.__readOnly&&this.__readOnly[H]||this._setPendingPropertyOrPath(H,S[H],!0);this._invalidateProperties()};
N.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
N.prototype._propertiesChanged=function(S,P,H){S=this.__dataHasPaths;this.__dataHasPaths=!1;var K;if(K=this.__computeEffects)if(hCE){UX++;var C=Dvb(this),G=[],a;for(a in P)M79(a,K,G,C,S);for(;a=G.shift();)gef(this,"",P,H,a)&&M79(a.methodInfo,K,G,C,S);Object.assign(H,this.__dataOld);Object.assign(P,this.__dataPending);this.__dataPending=null}else for(C=P;Z7(this,K,C,H,S);)Object.assign(H,this.__dataOld),Object.assign(P,this.__dataPending),C=this.__dataPending,this.__dataPending=null;K=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(P,H,S);this._flushClients();Z7(this,this.__reflectEffects,P,H,S);Z7(this,this.__observeEffects,P,H,S);if(K){C=this.__notifyEffects;G=UX++;for(var R in K)if(K[R]){if(a=C){var n=C;a=G;var d=R,m=P,k=H,M=S,l=!1,u=M?Q9(d):d;if(n=n[u]){u=0;for(var J=n.length,Z=void 0;u<J&&(Z=n[u]);u++)Z.info&&Z.info.lastRun===a||M&&!XPb(d,Z.trigger)||(Z.info&&(Z.info.lastRun=a),Z.fn(this,d,m,k,Z.info,M,void 0),l=!0)}a=l}if(a)var D=!0;else{if(a=S)a=R,d=P,m=Q9(a),m!==
a?(m=ft(m)+"-changed",pPu(this,m,d[a],a),a=!0):a=!1;a&&(D=!0)}}var Y;D&&(Y=this.__dataHost)&&Y._invalidateProperties&&Y._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
N.prototype._propagatePropertyChanges=function(S,P,H){this.__propagateEffects&&Z7(this,this.__propagateEffects,S,P,H);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,S,P,H)};
N.prototype._runEffectsForTemplate=function(S,P,H,K){var C=this,G=function(a,R){Z7(C,S.propertyEffects,a,H,R,S.nodeList);for(var n=S.firstChild;n;n=n.nextSibling)C._runEffectsForTemplate(n,a,H,R)};
S.runEffects?S.runEffects(G,P,K):G(P,K)};
N.prototype.linkPaths=function(S,P){S=iv(S);P=iv(P);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[S]=P};
N.prototype.unlinkPaths=function(S){S=iv(S);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[S]};
N.prototype.notifySplices=function(S,P){var H={path:""};S=JA(this,S,H);sTo(this,S,H.path,P)};
N.prototype.get=function(S,P){return JA(P||this,S)};
N.prototype.set=function(S,P,H){H?zSO(H,S,P):this.__readOnly&&this.__readOnly[S]||this._setPendingPropertyOrPath(S,P,!0)&&this._invalidateProperties()};
N.prototype.push=function(S){var P=_.$I.apply(1,arguments),H={path:""},K=JA(this,S,H),C=K.length,G=K.push.apply(K,_.IX(P));P.length&&EX(this,K,H.path,C,P.length,[]);return G};
N.prototype.pop=function(S){var P={path:""};S=JA(this,S,P);var H=!!S.length,K=S.pop();H&&EX(this,S,P.path,S.length,0,[K]);return K};
N.prototype.splice=function(S,P,H){var K=_.$I.apply(3,arguments),C={path:""},G=JA(this,S,C);P<0?P=G.length-Math.floor(-P):P&&(P=Math.floor(P));var a=arguments.length===2?G.splice(P):G.splice.apply(G,[P,H].concat(_.IX(K)));(K.length||a.length)&&EX(this,G,C.path,P,K.length,a);return a};
N.prototype.shift=function(S){var P={path:""};S=JA(this,S,P);var H=!!S.length,K=S.shift();H&&EX(this,S,P.path,0,0,[K]);return K};
N.prototype.unshift=function(S){var P=_.$I.apply(1,arguments),H={path:""},K=JA(this,S,H),C=K.unshift.apply(K,_.IX(P));P.length&&EX(this,K,H.path,0,P.length,[]);return C};
N.prototype.notifyPath=function(S,P){if(arguments.length==1){var H={path:""};P=JA(this,S,H);H=H.path}else H=Array.isArray(S)?iv(S):S;this._setPendingPropertyOrPath(H,P,!0,!0)&&this._invalidateProperties()};
N.prototype._createReadOnlyProperty=function(S,P){this._addPropertyEffect(S,"__readOnly");P&&(this["_set"+(S[0].toUpperCase()+S.substring(1))]=function(H){this._setProperty(S,H)})};
N.prototype._createPropertyObserver=function(S,P,H){var K={property:S,method:P,dynamicFn:!!H};this._addPropertyEffect(S,"__observeEffects",{fn:Eeb,info:K,trigger:{name:S}});H&&this._addPropertyEffect(P,"__observeEffects",{fn:Eeb,info:K,trigger:{name:P}})};
N.prototype._createMethodObserver=function(S,P){var H=P0a(S);if(!H)throw Error("Fd`"+S);wP_(this,H,"__observeEffects",V89,null,P)};
N.prototype._createNotifyingProperty=function(S){this._addPropertyEffect(S,"__notifyEffects",{fn:YxI,info:{eventName:ft(S)+"-changed",property:S}})};
N.prototype._createReflectedProperty=function(S){var P=this.constructor.attributeNameForProperty(S);P[0]==="-"?console.warn("Property "+S+" cannot be reflected to attribute "+P+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(S,"__reflectEffects",{fn:yII,info:{attrName:P}})};
N.prototype._createComputedProperty=function(S,P,H){var K=P0a(P);if(!K)throw Error("Gd`"+P);P=wP_(this,K,"__computeEffects",gef,S,H);AIE(this,"__computeInfo")[S]=P};
N.prototype._marshalArgs=function(S,P,H){for(var K=this.__data,C=[],G=0,a=S.length;G<a;G++){var R=S[G],n=R.name,d=R.structured,m=R.wildcard,k=R.value;R.literal||(m?(R=x7(n,P),d=HSU(K,H,R?P:n),k={path:R?P:n,value:d,base:R?JA(K,n):d}):k=d?HSU(K,H,n):K[n]);if(Xx&&!this._overrideLegacyUndefined&&k===void 0&&S.length>1)return AA;C[G]=k}return C};
N.addPropertyEffect=function(S,P,H){this.prototype._addPropertyEffect(S,P,H)};
N.createPropertyObserver=function(S,P,H){this.prototype._createPropertyObserver(S,P,H)};
N.createMethodObserver=function(S,P){this.prototype._createMethodObserver(S,P)};
N.createNotifyingProperty=function(S){this.prototype._createNotifyingProperty(S)};
N.createReadOnlyProperty=function(S,P){this.prototype._createReadOnlyProperty(S,P)};
N.createReflectedProperty=function(S){this.prototype._createReflectedProperty(S)};
N.createComputedProperty=function(S,P,H){this.prototype._createComputedProperty(S,P,H)};
N.bindTemplate=function(S){return this.prototype._bindTemplate(S)};
N.prototype._bindTemplate=function(S,P){var H=this.constructor._parseTemplate(S),K=this.__preBoundTemplateInfo==H;if(!K)for(var C in H.propertyEffects)this._createPropertyAccessor(C);P?(H=Object.create(H),H.wasPreBound=K,this.__templateInfo?(S=S._parentTemplateInfo||this.__templateInfo,P=S.lastChild,H.parent=S,S.lastChild=H,(H.previousSibling=P)?P.nextSibling=H:S.firstChild=H):this.__templateInfo=H):this.__preBoundTemplateInfo=H;return H};
N._addTemplatePropertyEffect=function(S,P,H){(S.hostProps=S.hostProps||{})[P]=!0;S=S.propertyEffects=S.propertyEffects||{};(S[P]=S[P]||[]).push(H)};
N.prototype._stampTemplate=function(S,P){P=P||this._bindTemplate(S,!0);n2.push(this);S=b.prototype._stampTemplate.call(this,S,P);n2.pop();P.nodeList=S.nodeList;if(!P.wasPreBound)for(var H=P.childNodes=[],K=S.firstChild;K;K=K.nextSibling)H.push(K);S.templateInfo=P;H=P.nodeList;K=P.nodeInfoList;if(K.length)for(var C=0;C<K.length;C++){var G=H[C],a=K[C].bindings;if(a)for(var R=0;R<a.length;R++){var n=a[R],d=G,m=n;if(m.isCompound){for(var k=d.__dataCompoundStorage||(d.__dataCompoundStorage={}),M=m.parts,
l=Array(M.length),u=0;u<M.length;u++)l[u]=M[u].literal;M=m.target;k[M]=l;m.literal&&m.kind=="property"&&(M==="className"&&(d=(0,_.jl)(d)),d[M]=m.literal)}qxf(G,this,n)}G.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(P,this.__data,null,!1),this._flushClients());return S};
N.prototype._removeBoundDom=function(S){S=S.templateInfo;var P=S.previousSibling,H=S.nextSibling,K=S.parent;P?P.nextSibling=H:K&&(K.firstChild=H);H?H.previousSibling=P:K&&(K.lastChild=P);S.nextSibling=S.previousSibling=null;S=S.childNodes;for(P=0;P<S.length;P++)H=S[P],(0,_.jl)((0,_.jl)(H).parentNode).removeChild(H)};
N._parseTemplateNode=function(S,P,H){var K=b._parseTemplateNode.call(this,S,P,H);if(S.nodeType===Node.TEXT_NODE){var C=this._parseBindings(S.textContent,P);C&&(S.textContent=N6e(C)||" ",hS_(this,P,H,"text","textContent",C),K=!0)}return K};
N._parseTemplateNodeAttribute=function(S,P,H,K,C){var G=this._parseBindings(C,P);if(G){C=K;var a="property";t7c.test(K)?a="attribute":K[K.length-1]=="$"&&(K=K.slice(0,-1),a="attribute");var R=N6e(G);R&&a=="attribute"&&(K=="class"&&S.hasAttribute("class")&&(R+=" "+S.getAttribute(K)),S.setAttribute(K,R));a=="attribute"&&C=="disable-upgrade$"&&S.setAttribute(K,"");S.localName==="input"&&C==="value"&&S.setAttribute(C,"");S.removeAttribute(C);a==="property"&&(K=Lt(K));hS_(this,P,H,a,K,G,R);return!0}return b._parseTemplateNodeAttribute.call(this,
S,P,H,K,C)};
N._parseTemplateNestedTemplate=function(S,P,H){var K=b._parseTemplateNestedTemplate.call(this,S,P,H),C=S.parentNode,G=H.templateInfo,a=C.localName==="dom-if",R=C.localName==="dom-repeat";Gt&&(a||R)&&(C.removeChild(S),H=H.parentInfo,H.templateInfo=G,H.noted=!0,K=!1);S=G.hostProps;if(rK&&a)S&&(P.hostProps=Object.assign(P.hostProps||{},S),Gt||(H.parentInfo.noted=!0));else for(var n in S)hS_(this,P,H,"property","_host_"+n,[{mode:"{",source:n,dependencies:[n],hostProp:!0}]);return K};
N._parseBindings=function(S,P){for(var H=[],K=0,C;(C=Fdk.exec(S))!==null;){C.index>K&&H.push({literal:S.slice(K,C.index)});K=C[1][0];var G=!!C[2];C=C[3].trim();var a=!1,R="",n=-1;K=="{"&&(n=C.indexOf("::"))>0&&(R=C.substring(n+2),C=C.substring(0,n),a=!0);n=P0a(C);var d=[];if(n){var m=n,k=m.args;m=m.methodName;for(var M=0;M<k.length;M++){var l=k[M];l.literal||d.push(l)}if((k=P.dynamicFns)&&k[m]||n.static)d.push(m),n.dynamicFn=!0}else d.push(C);H.push({source:C,mode:K,negate:G,customEvent:a,signature:n,
dependencies:d,event:R});K=Fdk.lastIndex}K&&K<S.length&&(S=S.substring(K))&&H.push({literal:S});return H.length?H:null};
N._evaluateBinding=function(S,P,H,K,C,G){S=P.signature?V89(S,H,K,C,P.signature):H!=P.source?JA(S,P.source):G&&uv(H)?JA(S,H):S.__data[H];P.negate&&(S=!S);return S};
_.d0.Object.defineProperties(N.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Tqk}}});
return N}),n2=[];var Bq9=window.ShadyCSS&&window.ShadyCSS.cssBuild,mv=Wu(function(N){function b(P,H,K,C){if(!Bq9){for(var G=H.content.querySelectorAll("style"),a=C0Y(H),R=GNf(K),n=H.content.firstElementChild,d=0;d<R.length;d++){var m=R[d];m.textContent=P._processStyleText(m.textContent,C);H.content.insertBefore(m,n)}for(n=R=0;n<a.length;n++)d=a[n],m=G[R],m!==d?(d=d.cloneNode(!0),m.parentNode.insertBefore(d,m)):R++,d.textContent=P._processStyleText(d.textContent,C)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(H,
K);if(wdl&&Bq9&&VZV&&(H=H.content.querySelectorAll("style"))){var k="";Array.from(H).forEach(function(M){k+=M.textContent;M.parentNode.removeChild(M)});
P._styleSheet=new CSSStyleSheet;P._styleSheet.replaceSync(k)}}
var S=O3O(dK(N));N=function(){return S.call(this)||this};
_.F(N,S);N._finalizeClass=function(){S._finalizeClass.call(this);var P;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(P=this.__ownObservers)&&this.createObservers(P,this._properties);this._prepareTemplate()};
N._prepareTemplate=function(){var P=this.template;P&&(typeof P==="string"?(console.error("template getter must return HTMLTemplateElement"),P=null):bx||(P=P.cloneNode(!0)));this.prototype._template=P};
N.createProperties=function(P){for(var H in P){var K=this.prototype,C=H,G=P[H],a=P;G.computed&&(G.readOnly=!0);G.computed&&(K._hasReadOnlyEffect(C)?console.warn("Cannot redefine computed property '"+C+"'."):K._createComputedProperty(C,G.computed,a));G.readOnly&&!K._hasReadOnlyEffect(C)?K._createReadOnlyProperty(C,!G.computed):G.readOnly===!1&&K._hasReadOnlyEffect(C)&&console.warn("Cannot make readOnly property '"+C+"' non-readOnly.");G.reflectToAttribute&&!K._hasReflectEffect(C)?K._createReflectedProperty(C):
G.reflectToAttribute===!1&&K._hasReflectEffect(C)&&console.warn("Cannot make reflected property '"+C+"' non-reflected.");G.notify&&!K._hasNotifyEffect(C)?K._createNotifyingProperty(C):G.notify===!1&&K._hasNotifyEffect(C)&&console.warn("Cannot make notify property '"+C+"' non-notify.");G.observer&&K._createPropertyObserver(C,G.observer,a[G.observer]);K._addPropertyToAttributeMap(C)}};
N.createObservers=function(P,H){for(var K=this.prototype,C=0;C<P.length;C++)K._createMethodObserver(P[C],H)};
N.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);S.prototype._initializeProperties.call(this);this.rootPath=gnk;this.importPath=this.constructor.importPath;var P=this.constructor;if(!P.hasOwnProperty("__propertyDefaults")){P.__propertyDefaults=null;var H=P._properties,K;for(K in H){var C=H[K];"value"in C&&(P.__propertyDefaults=P.__propertyDefaults||{},P.__propertyDefaults[K]=C)}}if(P=P.__propertyDefaults)for(var G in P)H=P[G],
this._canApplyPropertyDefault(G)&&(H=typeof H.value=="function"?H.value.call(this):H.value,this._hasAccessor(G)?this._setPendingProperty(G,H,!0):this[G]=H)};
N.prototype._canApplyPropertyDefault=function(P){return!this.hasOwnProperty(P)};
N._processStyleText=function(P,H){return M8e(P,H)};
N._finalizeTemplate=function(P){var H=this.prototype._template;if(H&&!H.__polymerFinalized){H.__polymerFinalized=!0;var K=this.importPath;K=K?_.Bz(K):"";b(this,H,P,K);this.prototype._bindTemplate(H)}};
N.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);S.prototype.connectedCallback.call(this)};
N.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);S.prototype.ready.call(this)};
N.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));S.prototype._readyClients.call(this)};
N.prototype._attachDom=function(P){var H=(0,_.jl)(this);if(H.attachShadow)return P?(H.shadowRoot||(H.attachShadow({mode:"open",shadyUpgradeFragment:P}),H.shadowRoot.appendChild(P),this.constructor._styleSheet&&(H.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),$n4&&window.ShadyDOM&&window.ShadyDOM.flushInitial(H.shadowRoot),H.shadowRoot):null;throw Error("Id");};
N.prototype.updateStyles=function(P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,P)};
N.prototype.resolveUrl=function(P,H){!H&&this.importPath&&(H=_.Bz(this.importPath));return _.Bz(P,H)};
N._parseTemplateContent=function(P,H,K){H.dynamicFns=H.dynamicFns||this._properties;return S._parseTemplateContent.call(this,P,H,K)};
N._addTemplatePropertyEffect=function(P,H,K){!ss||H in this._properties||K.info.part.signature&&K.info.part.signature.static||K.info.part.hostProp||P.nestedTemplate||console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");return S._addTemplatePropertyEffect.call(this,P,H,K)};
_.d0.Object.defineProperties(N,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var P=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof P==="function"&&(P=P());if(P===void 0){if(P=this.hasOwnProperty("is")){P=this.is;var H=null;if(P&&(!Kx||eC9)&&(H=pt.import(P,"template"),Kx&&!H))throw Error("Hd`"+P);P=H}P=P||Object.getPrototypeOf(this.prototype).constructor.template}this._template=P}return this._template},
set:function(P){this._template=P}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var P=this.importMeta;P?this._importPath=F8p(P.url):this._importPath=(P=pt.import(this.is))&&P.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return N});var lLN=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(N){return N}}),d5e=function(N,b){LdE(N,b);
this.value=b.reduce(function(S,P,H){return S+m5u(P)+N[H+1]},N[0]).toString()},LdE;
d5e.prototype.toString=function(){return this.value};
_.fLO=function(N){var b=_.$I.apply(1,arguments);LdE(N,b);var S=document.createElement("template");b=b.reduce(function(P,H,K){if(H instanceof HTMLTemplateElement)H=H.innerHTML;else if(H instanceof d5e)H=m5u(H);else throw Error("Kd`"+H);return P+H+N[K+1]},N[0]);
lLN&&(b=lLN.createHTML(b));S.innerHTML=b;return S};
LdE=function(N,b){if(!Array.isArray(N)||!Array.isArray(N.raw)||b.length!==N.length-1)throw new TypeError("Ld");};var ks=mv(HTMLElement);var uEd=Wu(function(N){var b=mv(N);N=function(){var S=b.call(this)||this;S.__lastItems=null;S.__lastMulti=null;S.__selectedMap=null;return S};
_.F(N,b);N.prototype.__updateSelection=function(S,P){var H=P.path;H=="items"?(P=P.base||[],H=this.__lastItems,S!==this.__lastMulti&&this.clearSelection(),H&&(H=nEe(P,H),this.__applySplices(H)),this.__lastItems=P,this.__lastMulti=S):P.path=="items.splices"?this.__applySplices(P.value.indexSplices):(S=H.slice(6),P=parseInt(S,10),S.indexOf(".")<0&&S==P&&this.__deselectChangedIdx(P))};
N.prototype.__applySplices=function(S){for(var P=this,H=this.__selectedMap,K={},C=0;C<S.length;K={s$jscomp$109:void 0},C++){K.s$jscomp$109=S[C];H.forEach(function(n){return function(d,m){d<n.s$jscomp$109.index||(d>=n.s$jscomp$109.index+n.s$jscomp$109.removed.length?H.set(m,d+n.s$jscomp$109.addedCount-n.s$jscomp$109.removed.length):H.set(m,-1))}}(K));
for(var G=0;G<K.s$jscomp$109.addedCount;G++){var a=K.s$jscomp$109.index+G;H.has(this.items[a])&&H.set(this.items[a],a)}}this.__updateLinks();var R=0;H.forEach(function(n,d){n<0?(P.multi?P.splice("selected",R,1):P.selected=P.selectedItem=null,H.delete(d)):R++})};
N.prototype.__updateLinks=function(){var S=this;this.__dataLinkedPaths={};if(this.multi){var P=0;this.__selectedMap.forEach(function(H){H>=0&&S.linkPaths("items."+H,"selected."+P++)})}else this.__selectedMap.forEach(function(H){S.linkPaths("selected","items."+H);
S.linkPaths("selectedItem","items."+H)})};
N.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
N.prototype.isSelected=function(S){return this.__selectedMap.has(S)};
N.prototype.isIndexSelected=function(S){return this.isSelected(this.items[S])};
N.prototype.__deselectChangedIdx=function(S){var P=this,H=this.__selectedIndexForItemIndex(S);if(H>=0){var K=0;this.__selectedMap.forEach(function(C,G){H==K++&&P.deselect(G)})}};
N.prototype.__selectedIndexForItemIndex=function(S){if(S=this.__dataLinkedPaths["items."+S])return parseInt(S.slice(9),10)};
N.prototype.deselect=function(S){var P=this.__selectedMap.get(S);if(P>=0){this.__selectedMap.delete(S);var H;this.multi&&(H=this.__selectedIndexForItemIndex(P));this.__updateLinks();this.multi?this.splice("selected",H,1):this.selected=this.selectedItem=null}};
N.prototype.deselectIndex=function(S){this.deselect(this.items[S])};
N.prototype.select=function(S){this.selectIndex(this.items.indexOf(S))};
N.prototype.selectIndex=function(S){var P=this.items[S];this.isSelected(P)?this.toggle&&this.deselectIndex(S):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(P,S),this.__updateLinks(),this.multi?this.push("selected",P):this.selected=this.selectedItem=P)};
_.d0.Object.defineProperties(N,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return N}),QA9=uEd(ks),Tt=function(){return QA9.apply(this,arguments)||this};
_.F(Tt,QA9);_.d0.Object.defineProperties(Tt,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Tt.is,Tt);var xIk=window.Polymer;window.Polymer=function(N){return window.Polymer._polymerFn(N)};
xIk&&Object.assign(Polymer,xIk);Polymer._polymerFn=function(){throw Error("Md");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:M8e,resolveUrl:_.Bz,pathFromUrl:F8p};Polymer.DomModule=pt;Polymer.Async={timeOut:_.Ro,animationFrame:_.L7,idlePeriod:H3b,microTask:wb};Polymer.dedupingMixin=Wu;Polymer.wrap=_.jl;Polymer.PropertiesChanged=KdZ;Polymer.telemetry={instanceCount:vq9,incrementInstanceCount:function(){vq9++},
registrations:fWE,register:uvE,dumpRegistrations:function(){fWE.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=O3O;Polymer.CaseMap={dashToCamelCase:Lt,camelToDashCase:ft};Polymer.PropertyAccessors=RL9;Polymer.TemplateStamp=kd9;Polymer.Path={isPath:uv,root:Q9,isAncestor:UvO,isDescendant:x7,translate:o5,matches:Zof,normalize:iv,split:jJs,get:JA,set:zSO,isDeep:uv};Polymer.Settings={useShadow:Sg,useNativeCSSProperties:pdd,useNativeCustomElements:YKz,get rootPath(){return gnk},setRootPath:function(N){gnk=N},
get sanitizeDOMValue(){return zQ},setSanitizeDOMValue:function(N){zQ=N},
get passiveTouchGestures(){return oEb},setPassiveTouchGestures:function(N){oEb=N},
get strictTemplatePolicy(){return Kx},setStrictTemplatePolicy:function(N){Kx=N},
get allowTemplateFromDomModule(){return eC9},setAllowTemplateFromDomModule:function(N){eC9=N},
get legacyOptimizations(){return bx},setLegacyOptimizations:function(N){bx=N},
get syncInitialRender(){return $n4},setSyncInitialRender:function(N){$n4=N},
get legacyUndefined(){return Xx},setLegacyUndefined:function(N){Xx=N},
get legacyWarnings(){return ss},setLegacyWarnings:function(N){ss=N},
get orderedComputed(){return hCE},setOrderedComputed:function(N){hCE=N},
get fastDomIf(){return rK},setFastDomIf:function(N){rK=N},
get removeNestedTemplates(){return Gt},setRemoveNestedTemplates:function(N){Gt=N},
get suppressTemplateNotifications(){return cu},setSuppressTemplateNotifications:cu};Polymer.rootPath!==void 0&&(gnk=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(zQ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(oEb=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Kx=Polymer.strictTemplatePolicy);eC9=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(bx=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&($n4=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Xx=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(ss=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(hCE=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(rK=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Gt=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(cu=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return zQ},
set:function(N){zQ=N}});Polymer.PropertyEffects=dK;Polymer.StyleGather={stylesFromModules:OSe,stylesFromModule:vEf,stylesFromTemplate:C0Y,stylesFromModuleImports:GNf,cssFromModules:cPo,cssFromModule:rPf,cssFromTemplate:aMp,cssFromModuleImports:function(N){return(N=pt.import(N))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N):""}};Polymer.ElementMixin=mv;Polymer.updateStyles=function(N){window.ShadyCSS&&window.ShadyCSS.styleDocument(N)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:nEe};Polymer.html=_.fLO;Polymer.htmlLiteral=function(N){return new d5e(N,_.$I.apply(1,arguments))};Polymer.Element=ks;Polymer.ArraySelectorMixin=uEd;Polymer.ArraySelector=Tt;var oql=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i3k=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qGp=/@media\s(.*)/;var M3Y=null,t3U=window.HTMLImports&&window.HTMLImports.whenReady||null,FlY;var J_Z=null,tF=null,M4=function(){this.customStyles=[];this.enqueued=!1;B6f(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},UIk=function(N){!N.enqueued&&tF&&(N.enqueued=!0,B6f(tF))};
M4.prototype.addCustomStyle=function(N){N.__seenByShadyCSS||(N.__seenByShadyCSS=!0,this.customStyles.push(N),UIk(this))};
M4.prototype.getStyleForCustomStyle=function(N){if(N.__shadyCSSCachedStyle)return N.__shadyCSSCachedStyle;var b;N.getStyle?b=N.getStyle():b=N;return b};
M4.prototype.processStyles=function(){for(var N=this.customStyles,b=0;b<N.length;b++){var S=N[b];if(!S.__shadyCSSCachedStyle){var P=this.getStyleForCustomStyle(S);P&&(P=P.__appliedElement||P,J_Z&&J_Z(P),S.__shadyCSSCachedStyle=P)}}return N};
M4.prototype.addCustomStyle=M4.prototype.addCustomStyle;M4.prototype.getStyleForCustomStyle=M4.prototype.getStyleForCustomStyle;M4.prototype.processStyles=M4.prototype.processStyles;Object.defineProperties(M4.prototype,{transformCallback:{get:function(){return J_Z},
set:function(N){J_Z=N}},
validateCallback:{get:function(){return tF},
set:function(N){var b=!1;tF||(b=!0);tF=N;b&&UIk(this)}}});var LlO=!(window.ShadyDOM&&window.ShadyDOM.inUse),lMp,nx;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(nx=window.ShadyCSS.cssBuild);var Z3V=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?lMp=window.ShadyCSS.nativeCss:window.ShadyCSS?(fM_(window.ShadyCSS),window.ShadyCSS=void 0):fM_(window.WebComponents&&window.WebComponents.flags);var eq_=lMp;var jAc=new M4;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(N,b){jAc.processStyles();kNu(N,b)},
styleElement:function(){jAc.processStyles()},
styleDocument:function(N){jAc.processStyles();kNu(document.body,N)},
getComputedStyleValue:function(N,b){return T6_(N,b)},
flushCustomStyles:function(){},
nativeCss:eq_,nativeShadow:LlO,cssBuild:nx,disableRuntime:Z3V});window.ShadyCSS.CustomStyleInterface=jAc;var zLk=window.ShadyCSS.CustomStyleInterface,Fe=function(){var N=HTMLElement.call(this)||this;N._style=null;zLk.addCustomStyle(N);return N};
_.F(Fe,HTMLElement);Fe.prototype.getStyle=function(){if(this._style)return this._style;var N=this.querySelector("style");if(!N)return null;this._style=N;var b=N.getAttribute("include");b&&(N.removeAttribute("include"),N.textContent=cPo(b)+N.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Fe.prototype.getStyle=Fe.prototype.getStyle;window.customElements.define("custom-style",Fe);Polymer.CustomStyle=Fe;var Bu=function(){this._timer=this._callback=this._asyncModule=null},lm,X4k;
Bu.prototype.setConfig=function(N,b){var S=this;this._asyncModule=N;this._callback=b;this._timer=this._asyncModule.run(function(){S._timer=null;lm.delete(S);S._callback()})};
Bu.prototype.cancel=function(){this.isActive()&&(A_9(this),lm.delete(this))};
var A_9=function(N){N.isActive()&&(N._asyncModule.cancel(N._timer),N._timer=null)};
Bu.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Bu.prototype.isActive=function(){return this._timer!=null};
_.L2=function(N,b,S){N instanceof Bu?A_9(N):N=new Bu;N.setConfig(b,S);return N};
lm=new Set;_.f2=function(N){lm.add(N)};
X4k=function(){var N=!!lm.size;lm.forEach(function(b){try{b.flush()}catch(S){setTimeout(function(){throw S;})}});
return N};var QTf=typeof document.head.style.touchAction==="string",u0a=["mousedown","mousemove","mouseup","click"],APO=[0,1,4,2],EqN;try{EqN=(new MouseEvent("test",{buttons:1})).buttons===1}catch(N){EqN=!1}var zrf=EqN,x5I=!1;(function(){try{var N=Object.defineProperty({},"passive",{get:function(){x5I=!0}});
window.addEventListener("test",null,N);window.removeEventListener("test",null,N)}catch(b){}})();
var JPE=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),U5s=[],p4V={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},hrO={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},ZSo=function(N){var b=N.sourceCapabilities;if(!b||b.firesTouchEvents)if(N.__polymerGesturesHandled={skip:!0},N.type==="click"){b=!1;for(var S=Y_I(N),P=0;P<S.length;P++){if(S[P].nodeType===Node.ELEMENT_NODE)if(S[P].localName==="label")U5s.push(S[P]);
else if(p4V[S[P].localName]){var H=S[P];var K=Array.prototype.slice.call(H.labels||[]);if(!K.length){K=[];try{var C=H.getRootNode();if(H.id){var G=C.querySelectorAll("label[for = '"+H.id+"']");for(H=0;H<G.length;H++)K.push(G[H])}}catch(a){}}for(H=0;H<K.length;H++)b=b||U5s.indexOf(K[H])>-1}if(S[P]===Yjk)return}b||(N.preventDefault(),N.stopPropagation())}},Yjk=null,um=null,IMO=0,D5p=0,yPu=-1,V3u=!1;
document.addEventListener("touchend",function(N){um||jT9(!0);Yjk=Y_I(N)[0];um=_.L2(um,_.Ro.after(2500),function(){jT9();um=Yjk=null})},x5I?{passive:!0}:!1);
var Y_I=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(N){return N.composedPath&&N.composedPath()||[]},gb={},D7=[];
gEe({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){I5(this.info)},
mousedown:function(N){if(y9(N)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),S=this;EEs(this.info,function(P){y9(P)||(NM("up",b,P),I5(S.info))},function(P){y9(P)&&NM("up",b,P);
I5(S.info)});
NM("down",b,N)}},
touchstart:function(N){NM("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),N.changedTouches[0],N)},
touchend:function(N){NM("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),N.changedTouches[0],N)}});
gEe({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(N){this.moves.length>2&&this.moves.shift();this.moves.push(N)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;I5(this.info)},
mousedown:function(N){if(y9(N)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),S=this,P=function(H){var K=H.clientX,C=H.clientY;er_(S.info,K,C)&&(S.info.state=S.info.started?H.type==="mouseup"?"end":"track":"start",S.info.state==="start"&&V9("tap"),S.info.addMove({x:K,y:C}),y9(H)||(S.info.state="end",I5(S.info)),b&&$5I(S.info,b,H),S.info.started=!0)};
EEs(this.info,P,function(H){S.info.started&&P(H);I5(S.info)});
this.info.x=N.clientX;this.info.y=N.clientY}},
touchstart:function(N){N=N.changedTouches[0];this.info.x=N.clientX;this.info.y=N.clientY},
touchmove:function(N){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N=N.changedTouches[0];var S=N.clientX,P=N.clientY;er_(this.info,S,P)&&(this.info.state==="start"&&V9("tap"),this.info.addMove({x:S,y:P}),$5I(this.info,b,N),this.info.state="track",this.info.started=!0)},
touchend:function(N){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N=N.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:N.clientX,y:N.clientY}),$5I(this.info,b,N))}});
gEe({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(N){y9(N)&&(this.info.x=N.clientX,this.info.y=N.clientY)},
click:function(N){y9(N)&&q_O(this.info,N)},
touchstart:function(N){N=N.changedTouches[0];this.info.x=N.clientX;this.info.y=N.clientY},
touchend:function(N){q_O(this.info,N.changedTouches[0],N)}});var y_9=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b.prototype._addEventListenerToNode=function(S,P,H){el(S,P,H)||N.prototype._addEventListenerToNode.call(this,S,P,H)};
b.prototype._removeEventListenerFromNode=function(S,P,H){$7(S,P,H)||N.prototype._removeEventListenerFromNode.call(this,S,P,H)};
return b});var QW=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b.prototype._shouldPropertyChange=function(S,P,H){return wp_(this,S,P,H,!0)};
return b}),ILS=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b.prototype._shouldPropertyChange=function(S,P,H){return wp_(this,S,P,H,this.mutableData)};
_.d0.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return b});
QW._mutablePropertyChange=wp_;var NV_=!1;var DIl=y_9(ILS(dK(HTMLElement))),xs=function(){var N=DIl.call(this)||this;if(Kx)throw Error("Nd");N.root=null;N.$=null;N.__children=null;return N};
_.F(xs,DIl);_.v=xs.prototype;_.v.attributeChangedCallback=function(){this.mutableData=!0};
_.v.connectedCallback=function(){bmf()||(this.style.display="none");this.render()};
_.v.disconnectedCallback=function(){this.__removeChildren()};
_.v.__insertChildren=function(){(0,_.jl)((0,_.jl)(this).parentNode).insertBefore(this.root,this)};
_.v.__removeChildren=function(){if(this.__children)for(var N=0;N<this.__children.length;N++)this.root.appendChild(this.__children[N])};
_.v.render=function(){var N=this;if(!this.__children){var b=b||this.querySelector("template");if(!b){var S=new MutationObserver(function(){if(b=N.querySelector("template"))S.disconnect(),N.render();else throw Error("Od");});
S.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var P=this.root.firstChild;P;P=P.nextSibling)this.__children[this.__children.length]=P;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.d0.Object.defineProperties(xs,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",xs);Polymer.Debouncer=Bu;Polymer.Gestures={gestures:gb,recognizers:D7,deepTargetFind:pp9,addListener:el,removeListener:$7,register:gEe,setTouchAction:_.hA,prevent:V9,resetMouseCanceller:function(){um&&um.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:el,remove:$7};Polymer.GestureEventListeners=y_9;Polymer.MutableData=QW;Polymer.OptionalMutableData=ILS;Polymer.DomBind=xs;_.oo=function(){do{var N=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=X4k()}while(N||b)};var SG_=null;PJE.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:PJE,writable:!0}});var rmE=dK(PJE),Gus=QW(rmE),V7c=dK(function(){}),P_=function(N){var b=V7c.call(this)||this;
b._configureProperties(N);b.root=b._stampTemplate(b.__dataHost);var S=[];b.children=S;for(var P=b.root.firstChild;P;P=P.nextSibling)S.push(P),P.__templatizeInstance=b;b.__templatizeOwner&&b.__templatizeOwner.__hideTemplateChildren__&&b._showHideChildren(!0);S=b.__templatizeOptions;(N&&S.instanceProps||!S.instanceProps)&&b._enableProperties();return b};
_.F(P_,V7c);_.v=P_.prototype;_.v._configureProperties=function(N){if(this.__templatizeOptions.forwardHostProp)for(var b in this.__hostProps)this._setPendingProperty(b,this.__dataHost["_host_"+b]);for(var S in N)this._setPendingProperty(S,N[S])};
_.v.forwardHostProp=function(N,b){this._setPendingPropertyOrPath(N,b,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.v._addEventListenerToNode=function(N,b,S){var P=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(N,b,function(K){K.model=P;S(K)});
else{var H=this.__dataHost.__dataHost;H&&H._addEventListenerToNode(N,b,S)}};
_.v._showHideChildren=function(N){s9U(N,this.children)};
_.v._setUnmanagedPropertyToNode=function(N,b,S){N.__hideTemplateChildren__&&N.nodeType==Node.TEXT_NODE&&b=="textContent"?N.__polymerTextContent__=S:V7c.prototype._setUnmanagedPropertyToNode.call(this,N,b,S)};
_.v.dispatchEvent=function(){return!0};
_.d0.Object.defineProperties(P_.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var N=this.__parentModel;if(!N){var b;N=this;do N=N.__dataHost.__dataHost;while((b=N.__templatizeOptions)&&!b.parentModel);this.__parentModel=N}return N}}});
var vpu=QW(P_);var im=function(){var N=ks.call(this)||this;N.__renderDebouncer=null;N._lastIf=!1;N.__hideTemplateChildren__=!1;return N};
_.F(im,ks);_.v=im.prototype;_.v.__debounceRender=function(){var N=this;this.__renderDebouncer=_.L2(this.__renderDebouncer,wb,function(){return N.__render()});
_.f2(this.__renderDebouncer)};
_.v.disconnectedCallback=function(){ks.prototype.disconnectedCallback.call(this);var N=(0,_.jl)(this).parentNode;N&&(N.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.jl)(N).host)||this.__teardownInstance()};
_.v.connectedCallback=function(){ks.prototype.connectedCallback.call(this);bmf()||(this.style.display="none");this.if&&this.__debounceRender()};
_.v.__ensureTemplate=function(){var N=this;if(!this.__template){var b=this._templateInfo?this:(0,_.jl)(this).querySelector("template");if(!b){var S=new MutationObserver(function(){if((0,_.jl)(N).querySelector("template"))S.disconnect(),N.__render();else throw Error("Rd");});
S.observe(this,{childList:!0});return!1}this.__template=b}return!0};
_.v.__ensureInstance=function(){var N=(0,_.jl)(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&(0,_.jl)(this).previousSibling!==b[b.length-1])for(var S=0,P=void 0;S<b.length&&(P=b[S]);S++)(0,_.jl)(N).insertBefore(P,this)}else{if(!N||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(N)}return!0};
_.v.render=function(){_.oo()};
_.v.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();cu&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.v.__hasInstance=function(){};
_.v.__getInstanceNodes=function(){};
_.v.__createAndInsertInstance=function(){};
_.v.__teardownInstance=function(){};
_.v._showHideChildren=function(){};
_.d0.Object.defineProperties(im,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-if"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{if:{type:Boolean,observer:im.prototype.__debounceRender},restamp:{type:Boolean,observer:im.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var gqk=function(){var N=im.call(this)||this;N.__instance=null;N.__syncInfo=null;return N};
_.F(gqk,im);_.v=gqk.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.v.__createAndInsertInstance=function(N){var b=this,S=this.__dataHost||this;if(Kx&&!this.__dataHost)throw Error("Pd");var P=S._bindTemplate(this.__template,!0);P.runEffects=function(H,K,C){var G=b.__syncInfo;if(b.if)G&&(b.__syncInfo=null,b._showHideChildren(),K=Object.assign(G.changedProps,K)),H(K,C);else if(b.__instance)if(G||(G=b.__syncInfo={runEffects:H,changedProps:{}}),C)for(var a in K)H=Q9(a),G.changedProps[H]=b.__dataHost[H];else Object.assign(G.changedProps,K)};
this.__instance=S._stampTemplate(this.__template,P);(0,_.jl)(N).insertBefore(this.__instance,this)};
_.v.__syncHostProperties=function(){var N=this.__syncInfo;N&&(this.__syncInfo=null,N.runEffects(N.changedProps,!1))};
_.v.__teardownInstance=function(){var N=this.__dataHost||this;this.__instance&&(N._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.v._showHideChildren=function(){var N=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==N&&(this.__instance.__hidden=N,s9U(N,this.__instance.templateInfo.childNodes));N||this.__syncHostProperties()};
var eLN=function(){var N=im.call(this)||this;N.__ctor=null;N.__instance=null;N.__invalidProps=null;return N};
_.F(eLN,im);_.v=eLN.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.children};
_.v.__createAndInsertInstance=function(N){this.__ctor||(this.__ctor=H_(this.__template,this,{mutableData:!0,forwardHostProp:function(b,S){this.__instance&&(this.if?this.__instance.forwardHostProp(b,S):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Q9(b)]=!0))}}));
this.__instance=new this.__ctor;(0,_.jl)(N).insertBefore(this.__instance.root,this)};
_.v.__teardownInstance=function(){if(this.__instance){var N=this.__instance.children;if(N&&N.length){var b=(0,_.jl)(N[0]).parentNode;if(b){b=(0,_.jl)(b);for(var S=0,P=void 0;S<N.length&&(P=N[S]);S++)b.removeChild(P)}}this.__instance=this.__invalidProps=null}};
_.v.__syncHostProperties=function(){var N=this.__invalidProps;if(N){this.__invalidProps=null;for(var b in N)this.__instance._setPendingProperty(b,this.__dataHost[b]);this.__instance._flushProperties()}};
_.v._showHideChildren=function(){var N=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==N&&(this.__instance.__hidden=N,this.__instance._showHideChildren(N));N||this.__syncHostProperties()};
_.xq=rK?gqk:eLN;customElements.define(_.xq.is,_.xq);Polymer.enqueueDebouncer=_.f2;Polymer.flush=_.oo;Polymer.Templatize={templatize:H_,modelForElement:dWE};Polymer.TemplateInstanceBase=P_;Polymer.DomIf=_.xq;var $IO=ILS(ks),Qs=function(){var N=$IO.call(this)||this;N.__instances=[];N.__renderDebouncer=null;N.__itemsIdxToInstIdx={};N.__chunkCount=null;N.__renderStartTime=null;N.__itemsArrayChanged=!1;N.__shouldMeasureChunk=!1;N.__shouldContinueChunking=!1;N.__chunkingId=0;N.__sortFn=null;N.__filterFn=null;N.__observePaths=null;N.__ctor=null;N.__isDetached=!0;N.template=null;return N};
_.F(Qs,$IO);_.v=Qs.prototype;_.v.disconnectedCallback=function(){$IO.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var N=0;N<this.__instances.length;N++)this.__detachInstance(N);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.v.connectedCallback=function(){$IO.prototype.connectedCallback.call(this);bmf()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var N=(0,_.jl)((0,_.jl)(this).parentNode),b=0;b<this.__instances.length;b++)this.__attachInstance(b,N);this.__chunkingId&&this.__render()}};
_.v.__ensureTemplatized=function(){var N=this;if(!this.__ctor){var b=this.template=this._templateInfo?this:this.querySelector("template");if(!b){var S=new MutationObserver(function(){if(N.querySelector("template"))S.disconnect(),N.__render();else throw Error("Sd");});
S.observe(this,{childList:!0});return!1}var P={};P[this.as]=!0;P[this.indexAs]=!0;P[this.itemsIndexAs]=!0;this.__ctor=H_(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:P,forwardHostProp:function(H,K){for(var C=this.__instances,G=0,a=void 0;G<C.length&&(a=C[G]);G++)a.forwardHostProp(H,K)},
notifyInstanceProp:function(H,K,C){Zof(this.as,K)&&(H=H[this.itemsIndexAs],K==this.as&&(this.items[H]=C),K=o5(this.as,"items."+H,K),this.notifyPath(K,C))}})}return!0};
_.v.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.v.__functionFromPropertyValue=function(N){if(typeof N==="string"){var b=this.__getMethodHost();return function(){return b[N].apply(b,arguments)}}return N};
_.v.__sortChanged=function(N){this.__sortFn=this.__functionFromPropertyValue(N);this.items&&this.__debounceRender(this.__render)};
_.v.__filterChanged=function(N){this.__filterFn=this.__functionFromPropertyValue(N);this.items&&this.__debounceRender(this.__render)};
_.v.__computeFrameTime=function(N){return Math.ceil(1E3/N)};
_.v.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.v.__handleObservedPaths=function(N){if(this.__sortFn||this.__filterFn)if(!N)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var b=this.__observePaths,S=0;S<b.length;S++)N.indexOf(b[S])===0&&this.__debounceRender(this.__render,this.delay)};
_.v.__itemsChanged=function(N){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(N.path,N.value)||(N.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.v.__debounceRender=function(N,b){b=b===void 0?0:b;this.__renderDebouncer=_.L2(this.__renderDebouncer,b>0?_.Ro.after(b):wb,N.bind(this));_.f2(this.__renderDebouncer)};
_.v.render=function(){this.__debounceRender(this.__render);_.oo()};
_.v.__render=function(){var N=this;if(this.__ensureTemplatized()){var b=this.items||[],S=this.__sortAndFilterItems(b),P=this.__calculateLimit(S.length);this.__updateInstances(b,P,S);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){N.__chunkingId=null;N.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);cu&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.__sortAndFilterItems=function(N){for(var b=this,S=Array(N.length),P=0;P<N.length;P++)S[P]=P;this.__filterFn&&(S=S.filter(function(H,K,C){return b.__filterFn(N[H],K,C)}));
this.__sortFn&&S.sort(function(H,K){return b.__sortFn(N[H],N[K])});
return S};
_.v.__calculateLimit=function(N){var b=N,S=this.__instances.length;if(this.initialCount){var P;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(b=Math.min(N,this.initialCount),this.__chunkCount=(P=Math.max(b-S,0))||1):(P=Math.min(Math.max(N-S,0),this.__chunkCount),b=Math.min(S+P,N));this.__shouldMeasureChunk=P===this.__chunkCount;this.__shouldContinueChunking=b<N;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return b};
_.v.__continueChunking=function(){if(this.__shouldMeasureChunk){var N=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/N*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.v.__updateInstances=function(N,b,S){var P=this.__itemsIdxToInstIdx={},H;for(H=0;H<b;H++){var K=this.__instances[H],C=S[H],G=N[C];P[C]=H;K?(K._setPendingProperty(this.as,G),K._setPendingProperty(this.indexAs,H),K._setPendingProperty(this.itemsIndexAs,C),K._flushProperties()):this.__insertInstance(G,H,C)}for(N=this.__instances.length-1;N>=H;N--)this.__detachAndRemoveInstance(N)};
_.v.__detachInstance=function(N){N=this.__instances[N];for(var b=(0,_.jl)(N.root),S=0;S<N.children.length;S++)b.appendChild(N.children[S]);return N};
_.v.__attachInstance=function(N,b){b.insertBefore(this.__instances[N].root,this)};
_.v.__detachAndRemoveInstance=function(N){this.__detachInstance(N);this.__instances.splice(N,1)};
_.v.__stampInstance=function(N,b,S){var P={};P[this.as]=N;P[this.indexAs]=b;P[this.itemsIndexAs]=S;return new this.__ctor(P)};
_.v.__insertInstance=function(N,b,S){N=this.__stampInstance(N,b,S);S=(S=this.__instances[b+1])?S.children[0]:this;(0,_.jl)((0,_.jl)(this).parentNode).insertBefore(N.root,S);return this.__instances[b]=N};
_.v._showHideChildren=function(N){for(var b=0;b<this.__instances.length;b++)this.__instances[b]._showHideChildren(N)};
_.v.__handleItemPath=function(N,b){var S=N.slice(6),P=S.indexOf(".");N=P<0?S:S.substring(0,P);if(N==parseInt(N,10)){S=P<0?"":S.substring(P+1);this.__handleObservedPaths(S);if(N=this.__instances[this.__itemsIdxToInstIdx[N]])N._setPendingPropertyOrPath(this.as+(S?"."+S:""),b,!1,!0),N._flushProperties();return!0}};
_.v.itemForElement=function(N){return(N=this.modelForElement(N))&&N[this.as]};
_.v.indexForElement=function(N){return(N=this.modelForElement(N))&&N[this.indexAs]};
_.v.modelForElement=function(N){return dWE(this.template,N)};
_.d0.Object.defineProperties(Qs,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-repeat"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:Qs.prototype.__sortChanged},filter:{type:Function,observer:Qs.prototype.__filterChanged},observe:{type:String,observer:Qs.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!cu,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},
_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__itemsChanged(items.*)"]}}});
Qs.prototype._setRenderedItemCount=function(){};
customElements.define(Qs.is,Qs);Polymer.DomRepeat=Qs;var hLk=function(N,b){var S=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=N;this.callback=b;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){S._schedule()};
this.connect();this._schedule()},qjN=function(N){var b=(0,_.jl)(N);
if(Cx(N))return b.assignedNodes({flatten:!0});N=[];for(var S=0;S<b.childNodes.length;S++){var P=b.childNodes[S];Cx(P)?N.push.apply(N,_.IX((0,_.jl)(P).assignedNodes({flatten:!0}))):N.push(P)}return N};
_.v=hLk.prototype;_.v.connect=function(){var N=this;Cx(this._target)?this._listenSlots([this._target]):(0,_.jl)(this._target).children&&(this._listenSlots((0,_.jl)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(b){N._processMutations(b)}):(this._nativeChildrenObserver=new MutationObserver(function(b){N._processMutations(b)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.v.disconnect=function(){Cx(this._target)?this._unlistenSlots([this._target]):(0,_.jl)(this._target).children&&(this._unlistenSlots((0,_.jl)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.v._schedule=function(){var N=this;this._scheduled||(this._scheduled=!0,wb.run(function(){return N.flush()}))};
_.v._processMutations=function(N){this._processSlotMutations(N);this.flush()};
_.v._processSlotMutations=function(N){if(N)for(var b=0;b<N.length;b++){var S=N[b];S.addedNodes&&this._listenSlots(S.addedNodes);S.removedNodes&&this._unlistenSlots(S.removedNodes)}};
_.v.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var N={target:this._target,addedNodes:[],removedNodes:[]},b=qjN(this._target),S=nEe(b,this._effectiveNodes),P=0,H=void 0;P<S.length&&(H=S[P]);P++)for(var K=0,C=void 0;K<H.removed.length&&(C=H.removed[K]);K++)N.removedNodes.push(C);
P=0;for(H=void 0;P<S.length&&(H=S[P]);P++)for(K=H.index;K<H.index+H.addedCount;K++)N.addedNodes.push(b[K]);this._effectiveNodes=b;b=!1;if(N.addedNodes.length||N.removedNodes.length)b=!0,this.callback.call(this._target,N);return b};
_.v._listenSlots=function(N){for(var b=0;b<N.length;b++){var S=N[b];Cx(S)&&S.addEventListener("slotchange",this._boundSchedule)}};
_.v._unlistenSlots=function(N){for(var b=0;b<N.length;b++){var S=N[b];Cx(S)&&S.removeEventListener("slotchange",this._boundSchedule)}};var JF=Element.prototype,w49=JF.matches||JF.matchesSelector||JF.mozMatchesSelector||JF.msMatchesSelector||JF.oMatchesSelector||JF.webkitMatchesSelector,NGd=function(N,b){return w49.call(N,b)},Gb=function(N){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(N);
this.node=N},H7z;
_.v=Gb.prototype;_.v.observeNodes=function(N){return new hLk(this.node,N)};
_.v.unobserveNodes=function(N){N.disconnect()};
_.v.notifyObserver=function(){};
_.v.deepContains=function(N){if((0,_.jl)(this.node).contains(N))return!0;var b=N;for(N=N.ownerDocument;b&&b!==N&&b!==this.node;)b=(0,_.jl)(b).parentNode||(0,_.jl)(b).host;return b===this.node};
_.v.getOwnerRoot=function(){return(0,_.jl)(this.node).getRootNode()};
_.v.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.jl)(this.node).assignedNodes({flatten:!0}):[]};
_.v.getDestinationInsertionPoints=function(){for(var N=[],b=(0,_.jl)(this.node).assignedSlot;b;)N.push(b),b=(0,_.jl)(b).assignedSlot;return N};
_.v.importNode=function(N,b){return(0,_.jl)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(N,b)};
_.v.getEffectiveChildNodes=function(){return qjN(this.node)};
_.v.queryDistributedElements=function(N){for(var b=this.getEffectiveChildNodes(),S=[],P=0,H=b.length,K=void 0;P<H&&(K=b[P]);P++)K.nodeType===Node.ELEMENT_NODE&&NGd(K,N)&&S.push(K);return S};
_.d0.Object.defineProperties(Gb.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var N=this.node;return N._activeElement!==void 0?N._activeElement:N.activeElement}}});
var UH=function(N){this.event=N};
_.d0.Object.defineProperties(UH.prototype,{rootTarget:{configurable:!0,enumerable:!0,get:function(){return this.path[0]}},
localTarget:{configurable:!0,enumerable:!0,get:function(){return this.event.target}},
path:{configurable:!0,enumerable:!0,get:function(){return this.event.composedPath()}}});
var b7S=Gb;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var SZd=window.ShadyDOM.Wrapper,PHz=function(){return SZd.apply(this,arguments)||this};
_.F(PHz,SZd);Object.getOwnPropertyNames(Gb.prototype).forEach(function(N){N!="activeElement"&&N!="constructor"&&(PHz.prototype[N]=Gb.prototype[N])});
kuY(PHz.prototype,["classList"]);b7S=PHz;Object.defineProperties(UH.prototype,{localTarget:{get:function(){var N=this.event.currentTarget;N=N&&_.Tk(N).getOwnerRoot();for(var b=this.path,S=0;S<b.length;S++){var P=b[S];if(_.Tk(P).getOwnerRoot()===N)return P}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else mWu(),kuY(Gb.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),TVf();H7z=b7S;_.Tk=function(N){N=N||document;if(N instanceof b7S)return N;if(N instanceof UH)return N;var b=N.__domApi;b||(N instanceof Event?b=new UH(N):b=new b7S(N),N.__domApi=b);return b};var sq9=/:host\(:dir\((ltr|rtl)\)\)/g,KtE=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,vH4=/:dir\((?:ltr|rtl)\)/,O7l=!(!window.ShadyDOM||!window.ShadyDOM.inUse),c_=[],ZT=null,r0="",CHN=Wu(function(N){O7l||ZT||(r0=document.documentElement.getAttribute("dir"),ZT=new MutationObserver(tMf),ZT.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var b=RL9(N);N=function(){var S=b.call(this)||this;S.__autoDirOptOut=!1;return S};
_.F(N,b);N._processStyleText=function(S,P){S=b._processStyleText.call(this,S,P);!O7l&&vH4.test(S)&&(S=this._replaceDirInCssText(S),this.__activateDir=!0);return S};
N._replaceDirInCssText=function(S){S=S.replace(sq9,':host([dir="$1"])');return S=S.replace(KtE,':host([dir="$2"]) $1')};
N.prototype.ready=function(){b.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
N.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ZT&&ZT.takeRecords().length&&tMf(),c_.push(this),this.__autoDirOptOut||this.setAttribute("dir",r0))};
N.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var S=c_.indexOf(this);S>-1&&c_.splice(S,1)}};
N.__activateDir=!1;return N});var GSd=function(N){for(;N;){var b=Object.getOwnPropertyDescriptor(N,"observedAttributes");if(b)return b.get;N=Object.getPrototypeOf(N.prototype).constructor}return function(){return[]}};
Wu(function(N){var b=mv(N),S=GSd(b);N=function(){return b.call(this)||this};
_.F(N,b);N.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)};
N.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
N.prototype._canApplyPropertyDefault=function(P){return b.prototype._canApplyPropertyDefault.call(this,P)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(P))};
N.prototype.attributeChangedCallback=function(P,H,K,C){P=="disable-upgrade"?this.__isUpgradeDisabled&&K==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.jl)(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,P,H,K,C)};
N.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)};
N.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)};
_.d0.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S.call(this).concat("disable-upgrade")}}});
return N});var ae=!1,Fwp=[],Re=[];var fCe=window.ShadyDOM,u5a=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",xWL):document.readyState==="interactive"||document.readyState==="complete"?xWL():window.addEventListener("DOMContentLoaded",xWL);var JmY=function(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""},opp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,imI=/@import[^;]*;/gim,Xeu=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,EpE=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pep=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,YGO=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,zqe=/^@[^\s]*keyframes/,
j9U=/\s+/g;var ymL={};var VMY=Promise.resolve();var rMl=new Set;var cMl=/;\s*/m,aNk=/^\s*(initial)|(inherit)\s*$/,RsE=/\s*!important/,Wt9=function(){this._map={}};
Wt9.prototype.set=function(N,b){N=N.trim();this._map[N]={properties:b,dependants:{}}};
Wt9.prototype.get=function(N){N=N.trim();return this._map[N]||null};
var nHE=null,je=function(){this._measureElement=this._currentElement=null;this._map=new Wt9};
_.v=je.prototype;_.v.detectMixin=function(N){N=i3k.test(N)||oql.test(N);i3k.lastIndex=0;oql.lastIndex=0;return N};
_.v.transformTemplate=function(N,b){if(N._gatheredStyle===void 0){var S=[];for(var P=N.content.querySelectorAll("style"),H=0;H<P.length;H++){var K=P[H];if(K.hasAttribute("shady-unscoped")){if(!LlO){var C=K.textContent;if(!rMl.has(C)){rMl.add(C);var G=document.createElement("style");G.setAttribute("shady-unscoped","");G.textContent=C;document.head.appendChild(G)}K.parentNode.removeChild(K)}}else S.push(K.textContent),K.parentNode.removeChild(K)}(S=S.join("").trim())?(P=document.createElement("style"),
P.textContent=S,N.content.insertBefore(P,N.content.firstChild),S=P):S=null;N._gatheredStyle=S}return(N=N._gatheredStyle)?this.JSC$11504_transformStyle(N,b):null};
_.v.JSC$11504_transformStyle=function(N,b){b=b===void 0?"":b;var S=hqf(N);this.transformRules(S,b);N.textContent=$W_(S);return S};
_.v.transformCustomStyle=function(N){var b=this,S=hqf(N);wep(S,function(P){P.selector===":root"&&(P.selector="html");b.transformRule(P)});
N.textContent=$W_(S);return S};
_.v.transformRules=function(N,b){var S=this;this._currentElement=b;wep(N,function(P){S.transformRule(P)});
this._currentElement=null};
_.v.transformRule=function(N){N.cssText=duE(this,N.parsedCssText,N);N.selector===":root"&&(N.selector=":host > *")};
var duE=function(N,b,S){b=b.replace(oql,function(P,H,K,C){return N._produceCssProperties(P,H,K,C,S)});
return N._consumeCssProperties(b,S)};
_.v=je.prototype;_.v._getInitialValueForProperty=function(N){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(N)};
_.v._fallbacksFromPreviousRules=function(N){for(var b=this,S=N;S.parent;)S=S.parent;var P={},H=!1;wep(S,function(K){(H=H||K===N)||K.selector===N.selector&&Object.assign(P,b._cssTextToMap(K.parsedCssText))});
return P};
_.v._consumeCssProperties=function(N,b){for(var S;S=i3k.exec(N);){var P=S[0],H=S[1];S=S.index;var K=S+P.indexOf("@apply"),C=S+P.length;P=N.slice(0,K);N=N.slice(C);K=b?this._fallbacksFromPreviousRules(b):{};Object.assign(K,this._cssTextToMap(P));H=this._atApplyToCssProperties(H,K);N=P+H+N;i3k.lastIndex=S+H.length}return N};
_.v._atApplyToCssProperties=function(N,b){N=N.replace(cMl,"");var S=[],P=this._map.get(N);P||(this._map.set(N,{}),P=this._map.get(N));if(P){this._currentElement&&(P.dependants[this._currentElement]=!0);var H,K=P.properties;for(H in K){var C=b&&b[H];P=[H,": var(",N,"_-_",H];C&&P.push(",",C.replace(RsE,""));P.push(")");RsE.test(K[H])&&P.push(" !important");S.push(P.join(""))}}return S.join("; ")};
_.v._replaceInitialOrInherit=function(N,b){var S=aNk.exec(b);S&&(b=S[1]?this._getInitialValueForProperty(N):"apply-shim-inherit");return b};
_.v._cssTextToMap=function(N,b){b=b===void 0?!1:b;N=N.split(";");for(var S,P,H={},K=0;K<N.length;K++)if(S=N[K])P=S.split(":"),P.length>1&&(S=P[0].trim(),P=P.slice(1).join(":"),b&&(P=this._replaceInitialOrInherit(S,P)),H[S]=P);return H};
_.v._invalidateMixinEntry=function(N){if(nHE)for(var b in N.dependants)b!==this._currentElement&&nHE(b)};
_.v._produceCssProperties=function(N,b,S,P,H){var K=this;S&&NPO(S,function(M,l){l&&K._map.get(l)&&(P="@apply "+l+";")});
if(!P)return N;var C=this._consumeCssProperties(""+P,H);H=N.slice(0,N.indexOf("--"));var G=C=this._cssTextToMap(C,!0),a=this._map.get(b),R=a&&a.properties;R?G=Object.assign(Object.create(R),C):this._map.set(b,G);var n=[],d,m=!1;for(d in G){var k=C[d];k===void 0&&(k="initial");!R||d in R||(m=!0);n.push(b+"_-_"+d+": "+k)}m&&this._invalidateMixinEntry(a);a&&(a.properties=G);S&&(H=N+";"+H);return H+n.join("; ")+";"};
je.prototype.detectMixin=je.prototype.detectMixin;je.prototype.transformStyle=je.prototype.JSC$11504_transformStyle;je.prototype.transformCustomStyle=je.prototype.transformCustomStyle;je.prototype.transformRules=je.prototype.transformRules;je.prototype.transformRule=je.prototype.transformRule;je.prototype.transformTemplate=je.prototype.transformTemplate;je.prototype._separator="_-_";Object.defineProperty(je.prototype,"invalidCallback",{get:function(){return nHE},
set:function(N){nHE=N}});var zt=new je,mub=function(){this.customStyleInterface=null;zt.invalidCallback=ICf},AF=function(N){!N.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(N.customStyleInterface=window.ShadyCSS.CustomStyleInterface,N.customStyleInterface.transformCallback=function(b){zt.transformCustomStyle(b)},N.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){N.customStyleInterface.enqueued&&N.flushCustomStyles()})})};
_.v=mub.prototype;_.v.prepareTemplate=function(N,b){AF(this);bL9(N)===""&&(ymL[b]=N,b=zt.transformTemplate(N,b),N._styleAst=b)};
_.v.flushCustomStyles=function(){AF(this);if(this.customStyleInterface){var N=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b<N.length;b++){var S=this.customStyleInterface.getStyleForCustomStyle(N[b]);S&&zt.transformCustomStyle(S)}this.customStyleInterface.enqueued=!1}}};
_.v.styleSubtree=function(N,b){AF(this);b&&kNu(N,b);if(N.shadowRoot)for(this.styleElement(N),N=N.shadowRoot.children||N.shadowRoot.childNodes,b=0;b<N.length;b++)this.styleSubtree(N[b]);else for(N=N.children||N.childNodes,b=0;b<N.length;b++)this.styleSubtree(N[b])};
_.v.styleElement=function(N){AF(this);var b=N.localName,S;b?b.indexOf("-")>-1?S=b:S=N.getAttribute&&N.getAttribute("is")||"":S=N.is;b=ymL[S];if(!(b&&bL9(b)!==""||!b||DWo(b))){if(DWo(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,S),gpe(b);if(N=N.shadowRoot)if(N=N.querySelector("style"))N.__cssRules=b._styleAst,N.textContent=$W_(b._styleAst)}};
_.v.styleDocument=function(N){AF(this);this.styleSubtree(document.body,N)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Xe=new mub,kSz=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(N,b){Xe.flushCustomStyles();Xe.prepareTemplate(N,b)},
prepareTemplateStyles:function(N,b,S){window.ShadyCSS.prepareTemplate(N,b,S)},
prepareTemplateDom:function(){},
styleSubtree:function(N,b){Xe.flushCustomStyles();Xe.styleSubtree(N,b)},
styleElement:function(N){Xe.flushCustomStyles();Xe.styleElement(N)},
styleDocument:function(N){Xe.flushCustomStyles();Xe.styleDocument(N)},
getComputedStyleValue:function(N,b){return T6_(N,b)},
flushCustomStyles:function(){Xe.flushCustomStyles()},
nativeCss:eq_,nativeShadow:LlO,cssBuild:nx,disableRuntime:Z3V};kSz&&(window.ShadyCSS.CustomStyleInterface=kSz)}window.ShadyCSS.ApplyShim=zt;var TGN;TGN=window.ShadyCSS;_.EH=Wu(function(N){N=y_9(mv(N));var b=Bq9?N:CHN(N),S=GSd(b),P={x:"pan-x",y:"pan-y",none:"none",all:"auto"};N=function(){return b.call(this)||this};
_.F(N,b);N.prototype.created=function(){};
N.prototype.__attributeReaction=function(H,K,C){(this.__dataAttributes&&this.__dataAttributes[H]||H==="disable-upgrade")&&this.attributeChangedCallback(H,K,C,null)};
N.prototype.setAttribute=function(H,K){if(qKd&&!this._legacyForceObservedAttributes){var C=this.getAttribute(H);b.prototype.setAttribute.call(this,H,K);this.__attributeReaction(H,C,String(K))}else b.prototype.setAttribute.call(this,H,K)};
N.prototype.removeAttribute=function(H){if(qKd&&!this._legacyForceObservedAttributes){var K=this.getAttribute(H);b.prototype.removeAttribute.call(this,H);this.__attributeReaction(H,K,null)}else b.prototype.removeAttribute.call(this,H)};
N.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
N.prototype._canApplyPropertyDefault=function(H){return b.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
N.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
N.prototype.attached=function(){};
N.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
N.prototype.detached=function(){};
N.prototype.attributeChangedCallback=function(H,K,C,G){K!==C&&(H=="disable-upgrade"?this.__isUpgradeDisabled&&C==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.jl)(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,H,K,C,G),this.attributeChanged(H,K,C)))};
N.prototype.attributeChanged=function(){};
N.prototype._initializeProperties=function(){if(bx&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var H=Object.getPrototypeOf(this);H.hasOwnProperty("__hasRegisterFinished")||(this._registered(),H.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();qKd&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
N.prototype._takeAttributes=function(){for(var H=this.attributes,K=0,C=H.length;K<C;K++){var G=H[K];this.__attributeReaction(G.name,null,G.value)}};
N.prototype._registered=function(){};
N.prototype.ready=function(){this._ensureAttributes();b.prototype.ready.call(this)};
N.prototype._ensureAttributes=function(){};
N.prototype._applyListeners=function(){};
N.prototype.serialize=function(H){return this._serializeValue(H)};
N.prototype.deserialize=function(H,K){return this._deserializeValue(H,K)};
N.prototype.reflectPropertyToAttribute=function(H,K,C){this._propertyToAttribute(H,K,C)};
N.prototype.serializeValueToAttribute=function(H,K,C){this._valueToNodeAttribute(C||this,H,K)};
N.prototype.extend=function(H,K){if(!H||!K)return H||K;for(var C=Object.getOwnPropertyNames(K),G=0,a=void 0;G<C.length&&(a=C[G]);G++){var R=Object.getOwnPropertyDescriptor(K,a);R&&Object.defineProperty(H,a,R)}return H};
N.prototype.mixin=function(H,K){for(var C in K)H[C]=K[C];return H};
N.prototype.chainObject=function(H,K){H&&K&&H!==K&&(H.__proto__=K);return H};
N.prototype.instanceTemplate=function(H){H=this.constructor._contentForTemplate(H);return document.importNode(H,!0)};
N.prototype.fire=function(H,K,C){C=C||{};K=K===null||K===void 0?{}:K;H=new Event(H,{bubbles:C.bubbles===void 0?!0:C.bubbles,cancelable:!!C.cancelable,composed:C.composed===void 0?!0:C.composed});H.detail=K;(0,_.jl)(C.node||this).dispatchEvent(H);return H};
N.prototype.listen=function(H,K,C){H=H||this;var G=this.__boundListeners||(this.__boundListeners=new WeakMap),a=G.get(H);a||(a={},G.set(H,a));G=K+C;a[G]||(a[G]=this._addMethodEventListenerToNode(H,K,C,this))};
N.prototype.unlisten=function(H,K,C){H=H||this;var G=this.__boundListeners&&this.__boundListeners.get(H);C=K+C;var a=G&&G[C];a&&(this._removeEventListenerFromNode(H,K,a),G[C]=null)};
N.prototype.setScrollDirection=function(H,K){_.hA(K||this,P[H]||"auto")};
N.prototype.$$=function(H){return this.root.querySelector(H)};
N.prototype.distributeContent=function(){var H=_.Tk(this);window.ShadyDOM&&H.shadowRoot&&ShadyDOM.flush()};
N.prototype.getEffectiveChildNodes=function(){return _.Tk(this).getEffectiveChildNodes()};
N.prototype.queryDistributedElements=function(H){return _.Tk(this).queryDistributedElements(H)};
N.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
N.prototype.getEffectiveTextContent=function(){for(var H=this.getEffectiveChildNodes(),K=[],C=0,G;G=H[C];C++)G.nodeType!==Node.COMMENT_NODE&&K.push(G.textContent);return K.join("")};
N.prototype.queryEffectiveChildren=function(H){return(H=this.queryDistributedElements(H))&&H[0]};
N.prototype.queryAllEffectiveChildren=function(H){return this.queryDistributedElements(H)};
N.prototype.getContentChildNodes=function(H){return(H=this.root.querySelector(H||"slot"))?_.Tk(H).getDistributedNodes():[]};
N.prototype.getContentChildren=function(H){return this.getContentChildNodes(H).filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
N.prototype.isLightDescendant=function(H){return this!==H&&(0,_.jl)(this).contains(H)&&(0,_.jl)(this).getRootNode()===(0,_.jl)(H).getRootNode()};
N.prototype.isLocalDescendant=function(H){return this.root===(0,_.jl)(H).getRootNode()};
N.prototype.scopeSubtree=function(H,K){return Q9o(H,K===void 0?!1:K)};
N.prototype.getComputedStyleValue=function(H){return TGN.getComputedStyleValue(this,H)};
N.prototype.debounce=function(H,K,C){this._debouncers=this._debouncers||{};return this._debouncers[H]=_.L2(this._debouncers[H],C>0?_.Ro.after(C):wb,K.bind(this))};
N.prototype.isDebouncerActive=function(H){this._debouncers=this._debouncers||{};H=this._debouncers[H];return!(!H||!H.isActive())};
N.prototype.flushDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.flush()};
N.prototype.cancelDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.cancel()};
N.prototype.async=function(H,K){return K>0?_.Ro.run(H.bind(this),K):~wb.run(H.bind(this))};
N.prototype.cancelAsync=function(H){H<0?wb.cancel(~H):_.Ro.cancel(H)};
N.prototype.create=function(H,K){H=document.createElement(H);if(K)if(H.setProperties)H.setProperties(K);else for(var C in K)H[C]=K[C];return H};
N.prototype.elementMatches=function(H,K){return NGd(K||this,H)};
N.prototype.toggleAttribute=function(H,K){var C=this;arguments.length===3&&(C=arguments[2]);arguments.length==1&&(K=!C.hasAttribute(H));if(K)return(0,_.jl)(C).setAttribute(H,""),!0;(0,_.jl)(C).removeAttribute(H);return!1};
N.prototype.toggleClass=function(H,K,C){C=C||this;arguments.length==1&&(K=!C.classList.contains(H));K?C.classList.add(H):C.classList.remove(H)};
N.prototype.transform=function(H,K){K=K||this;K.style.webkitTransform=H;K.style.transform=H};
N.prototype.translate3d=function(H,K,C,G){this.transform("translate3d("+H+","+K+","+C+")",G||this)};
N.prototype.arrayDelete=function(H,K){if(Array.isArray(H)){if(K=H.indexOf(K),K>=0)return H.splice(K,1)}else if(K=JA(this,H).indexOf(K),K>=0)return this.splice(H,K,1);return null};
N.prototype._logger=function(H,K){Array.isArray(K)&&K.length===1&&Array.isArray(K[0])&&(K=K[0]);switch(H){case "log":case "warn":case "error":console[H].apply(console,_.IX(K))}};
N.prototype._log=function(){this._logger("log",_.$I.apply(0,arguments))};
N.prototype._warn=function(){this._logger("warn",_.$I.apply(0,arguments))};
N.prototype._error=function(){this._logger("error",_.$I.apply(0,arguments))};
N.prototype._logf=function(H){return["[%s::%s]",this.is,H].concat(_.IX(_.$I.apply(1,arguments)))};
_.d0.Object.defineProperties(N.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var H=(0,_.jl)(this).getRootNode();return H instanceof DocumentFragment?H.host:H}}});
_.d0.Object.defineProperties(N,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return qKd&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],uvE(this.prototype)),this.__observedAttributes):S.call(this).concat("disable-upgrade")}}});
N.prototype.is="";return N});Polymer.FlattenedNodesObserver=hLk;Polymer.DomApi=H7z;Polymer.EventApi=UH;Polymer.dom=_.Tk;Polymer.dom.matchesSelector=NGd;Polymer.dom.flush=_.oo;Polymer.dom.addDebouncer=_.f2;Polymer.DirMixin=CHN;Polymer.RenderStatus={beforeNextRender:_.Lws,afterNextRender:_.W_,flush:function(){for(;Fwp.length||Re.length;)MMI(Fwp),MMI(Re);ae=!1}};Polymer.LegacyElementMixin=_.EH;var trb;trb=QW._mutablePropertyChange;var MrS={properties:{mutableData:Boolean},_shouldPropertyChange:function(N,b,S){return trb(this,N,b,S,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(N,b,S){return trb(this,N,b,S,!0)}};
Polymer.OptionalMutableDataBehavior=MrS;var S7u={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},vvb={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},KGa=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},vvb),FtN=(0,_.EH)(HTMLElement),$iY=function(N,b){N||console.warn("Polymer.Class requires `info` argument");b=b?b(FtN):FtN;b=OLa(N,b,N.behaviors);b.is=b.prototype.is=
N.is;return b};Polymer.Class=$iY;Polymer.mixinBehaviors=function(N,b){return OLa({},(0,_.EH)(b),N)};
Polymer.GenerateClassFromInfo=OLa;_.uI=function(N){var b=typeof N==="function"?N:_.uI.Class(N);N._legacyForceObservedAttributes&&(b.prototype._legacyForceObservedAttributes=N._legacyForceObservedAttributes);customElements.define(b.is,b);return b};
_.uI.Class=$iY;Polymer._polymerFn=_.uI;var BGO=window.onLegacyPolymerFunctionDefinedCallback;BGO&&BGO();var qJO={templatize:function(N,b){this._templatizerTemplate=N;this.ctor=H_(N,this,{mutableData:!!b,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(N){return new this.ctor(N)},
modelForElement:function(N){return dWE(this._templatizerTemplate,N)}};Polymer.Templatizer=qJO;_.p2=(0,_.EH)(HTMLElement).prototype;Polymer.Base=_.p2;var G3U=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.mN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.F(_.mN,PolymerFakeBaseClass);var kX=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.F(kX,PolymerFakeBaseClass);var r6e=Symbol("Td"),k3I=[Array,Boolean,Date,Number,Object,String];/*
 ****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
var lNE=lNE||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Ltd;(function(N){function b(Y,V,g){var e=D.get(Y);if(!e){if(!g)return;e=new J;D.set(Y,e)}Y=e.get(V);if(!Y){if(!g)return;Y=new J;e.set(V,Y)}return Y}
function S(Y,V,g){if(P(Y,V,g))return!0;V=m(V);return V!==null?S(Y,V,g):!1}
function P(Y,V,g){V=b(V,g,!1);return V===void 0?!1:!!V.has(Y)}
function H(Y,V,g){if(P(Y,V,g))return K(Y,V,g);V=m(V);if(V!==null)return H(Y,V,g)}
function K(Y,V,g){V=b(V,g,!1);if(V!==void 0)return V.get(Y)}
function C(Y,V){var g=G(Y,V);Y=m(Y);if(Y===null)return g;var e=C(Y,V);if(e.length<=0)return g;if(g.length<=0)return e;V=new Z;Y=[];g=_.O(g);for(var se=g.next();!se.done;se=g.next())se=se.value,V.has(se)||(V.add(se),Y.push(se));g=_.O(e);for(e=g.next();!e.done;e=g.next())e=e.value,V.has(e)||(V.add(e),Y.push(e));return Y}
function G(Y,V){Y=b(Y,V,!1);var g=[];Y&&Y.forEach(function(e,se){return g.push(se)});
return g}
function a(Y){return Y===void 0}
function R(Y){return typeof Y==="object"?Y!==null:typeof Y==="function"}
function n(Y){return typeof Y==="function"}
function d(Y){return typeof Y==="symbol"?Y:String(Y)}
function m(Y){var V=Object.getPrototypeOf(Y);if(typeof Y!=="function"||Y===u||V!==u)return V;var g=Object.getPrototypeOf(Y.prototype);if(g==null||g===Object.prototype)return V;g=g.constructor;return typeof g!=="function"||g===Y?V:g}
function k(){function Y(){this._keys=[];this._values=[];this._cache=V}
var V={};Y.prototype={get size(){return this._keys.length},has:function(g){return g===this._cache?!0:this._find(g)>=0?(this._cache=g,!0):!1},
get:function(g){var e=this._find(g);if(e>=0)return this._cache=g,this._values[e]},
set:function(g,e){this.delete(g);this._keys.push(g);this._values.push(e);this._cache=g;return this},
delete:function(g){g=this._find(g);return g>=0?(this._keys.splice(g,1),this._values.splice(g,1),this._cache=V,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=V},
forEach:function(g){for(var e=this.size,se=0;se<e;++se){var Ca=this._keys[se],ML=this._values[se];this._cache=Ca;g.call(this,ML,Ca,this)}},
_find:function(g){for(var e=this._keys,se=e.length,Ca=0;Ca<se;++Ca)if(e[Ca]===g)return Ca;return-1}};
return Y}
function M(){function Y(){this._map=new J}
Y.prototype={get size(){return this._map.length},has:function(V){return this._map.has(V)},
add:function(V){this._map.set(V,V);return this},
delete:function(V){return this._map.delete(V)},
clear:function(){this._map.clear()},
forEach:function(V,g){this._map.forEach(V,g)}};
return Y}
function l(){function Y(){this._key=g()}
function V(To,jp){for(var Xf=0;Xf<jp;++Xf)To[Xf]=Math.random()*255|0}
function g(){do{if(se)var To=se.randomBytes(16);else typeof Uint8Array==="function"?(To=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(To):V(To,16)):(To=Array(16),V(To,16));To[6]=To[6]&79|64;To[8]=To[8]&191|128;for(var jp="",Xf=0;Xf<16;++Xf){var YO=To[Xf];if(Xf===4||Xf===6||Xf===8)jp+="-";YO<16&&(jp+="0");jp+=YO.toString(16).toLowerCase()}To="@@WeakMap@@"+jp}while(Ca.call(ML,To));ML[To]=!0;return To}
function e(To,jp){if(!Ca.call(To,na)){if(!jp)return;Object.defineProperty(To,na,{value:Object.create(null)})}return To[na]}
var se=typeof global!=="undefined"&&typeof lNE==="object"&&typeof require==="function"&&require("crypto"),Ca=Object.prototype.hasOwnProperty,ML={},na=g();Y.prototype={has:function(To){return(To=e(To,!1))?this._key in To:!1},
get:function(To){if(To=e(To,!1))return To[this._key]},
set:function(To,jp){e(To,!0)[this._key]=jp;return this},
delete:function(To){return(To=e(To,!1))&&this._key in To?delete To[this._key]:!1},
clear:function(){this._key=g()}};
return Y}
var u=Object.getPrototypeOf(Function),J=typeof Map==="function"?Map:k(),Z=typeof Set==="function"?Set:M(),D=new (typeof WeakMap==="function"?WeakMap:l());N.decorate=function(Y,V,g,e){if(a(e)){if(a(g)){if(!Array.isArray(Y))throw new TypeError;if(!n(V))throw new TypeError;for(g=Y.length-1;g>=0;--g)if(e=(0,Y[g])(V),!a(e)){if(!n(e))throw new TypeError;V=e}return V}if(!Array.isArray(Y))throw new TypeError;if(!R(V))throw new TypeError;g=d(g);for(e=Y.length-1;e>=0;--e)(0,Y[e])(V,g)}else{if(Array.isArray(Y))if(R(V)){if(a(g))throw new TypeError;
if(!R(e))throw new TypeError;}else throw new TypeError;else throw new TypeError;g=d(g);for(var se=Y.length-1;se>=0;--se){var Ca=(0,Y[se])(V,g,e);if(!a(Ca)){if(!R(Ca))throw new TypeError;e=Ca}}return e}};
N.metadata=function(Y,V){return function(g,e){if(a(e)){if(!n(g))throw new TypeError;b(g,void 0,!0).set(Y,V)}else{if(!R(g))throw new TypeError;e=d(e);b(g,e,!0).set(Y,V)}}};
N.defineMetadata=function(Y,V){var g;if(R(V))a(g)||(g=d(g));else throw new TypeError;b(V,g,!0).set("parameters",Y)};
N.hasMetadata=function(Y,V,g){if(R(V))a(g)||(g=d(g));else throw new TypeError;return S(Y,V,g)};
N.hasOwnMetadata=function(Y,V,g){if(R(V))a(g)||(g=d(g));else throw new TypeError;return P(Y,V,g)};
N.getMetadata=function(Y,V,g){if(R(V))a(g)||(g=d(g));else throw new TypeError;return H(Y,V,g)};
N.getOwnMetadata=function(Y,V,g){if(R(V))a(g)||(g=d(g));else throw new TypeError;return K(Y,V,g)};
N.getMetadataKeys=function(Y,V){if(R(Y))a(V)||(V=d(V));else throw new TypeError;return C(Y,V)};
N.getOwnMetadataKeys=function(Y,V){if(R(Y))a(V)||(V=d(V));else throw new TypeError;return G(Y,V)};
N.deleteMetadata=function(Y,V,g){if(R(V))a(g)||(g=d(g));else throw new TypeError;var e=b(V,g,!1);if(!a(e)){if(!e.delete(Y))return!1;if(e.size>0)return!0;Y=D.get(V);Y.delete(g);if(Y.size>0)return!0;D.delete(V);return!0}};
(function(Y){if(typeof Y.Reflect!=="undefined"){if(Y.Reflect!==N)for(var V in N)Y.Reflect[V]=N[V]}else Y.Reflect=N})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Ltd||(Ltd={}));var lUI=self;var fNZ=[0,_.eM,_.qW,_.eM];var uA9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(uA9,_.rc);var QqO=_.FH(uA9,[0,_.Pr,_.b2,fNZ,_.qW,_.s7]);var oHk=[0,_.Hr,-3,_.s7,_.Pr,_.eM,_.wk9,_.Hr,bq9,$Sb,I9,_.$p,_.eM,function(){return xuS},
_.qW],xuS=[0,_.b2,function(){return oHk},
_.Pr,14,_.Hr];_.Km(_.Tb,_.E5);_.v=_.Tb.prototype;_.v.start=function(){this.stop();this.usingListeners_=!1;var N=i7b(this),b=JMZ(this);N&&!b&&this.JSC$11547_win_.mozRequestAnimationFrame?(this.JSC$11547_id_=_.lH(this.JSC$11547_win_,"MozBeforePaint",this.callback_),this.JSC$11547_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11547_id_=N&&b?N.call(this.JSC$11547_win_,this.callback_):this.JSC$11547_win_.setTimeout(T$4(this.callback_),20)};
_.v.stop=function(){if(this.isActive()){var N=i7b(this),b=JMZ(this);N&&!b&&this.JSC$11547_win_.mozRequestAnimationFrame?Mu(this.JSC$11547_id_):N&&b?b.call(this.JSC$11547_win_,this.JSC$11547_id_):this.JSC$11547_win_.clearTimeout(this.JSC$11547_id_)}this.JSC$11547_id_=null};
_.v.fire=function(){this.stop();this.JSC$11549_doAction_()};
_.v.isActive=function(){return this.JSC$11547_id_!=null};
_.v.JSC$11549_doAction_=function(){this.usingListeners_&&this.JSC$11547_id_&&Mu(this.JSC$11547_id_);this.JSC$11547_id_=null;this.JSC$11547_listener_.call(this.handler_,_.sG())};
_.v.disposeInternal=function(){this.stop();_.Tb.superClass_.disposeInternal.call(this)};
var i7b=function(N){N=N.JSC$11547_win_;return N.requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||N.msRequestAnimationFrame||null},JMZ=function(N){N=N.JSC$11547_win_;
return N.cancelAnimationFrame||N.cancelRequestAnimationFrame||N.webkitCancelRequestAnimationFrame||N.mozCancelRequestAnimationFrame||N.oCancelRequestAnimationFrame||N.msCancelRequestAnimationFrame||null};_.GR=function(N,b,S){_.E5.call(this);this.JSC$11550_listener_=S!=null?N.bind(S):N;this.JSC$11550_interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11550_timer_=null};
_.F(_.GR,_.E5);_.v=_.GR.prototype;_.v.fire=function(N){this.args_=arguments;this.JSC$11550_timer_||this.pauseCount_?this.shouldFire_=!0:UuN(this)};
_.v.stop=function(){this.JSC$11550_timer_&&(_.Ps.clearTimeout(this.JSC$11550_timer_),this.JSC$11550_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.v.pause=function(){this.pauseCount_++};
_.v.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11550_timer_||(this.shouldFire_=!1,UuN(this))};
_.v.disposeInternal=function(){_.E5.prototype.disposeInternal.call(this);this.stop()};
var UuN=function(N){N.JSC$11550_timer_=Yj(function(){N.JSC$11550_timer_=null;N.shouldFire_&&!N.pauseCount_&&(N.shouldFire_=!1,UuN(N))},N.JSC$11550_interval_);
var b=N.args_;N.args_=null;N.JSC$11550_listener_.apply(null,b)};var Z79=function(N,b){this.childIterator_=N[_.Ps.Symbol.iterator]();this.mapFn_=b};
Z79.prototype[Symbol.iterator]=function(){return this};
Z79.prototype.next=function(){var N=this.childIterator_.next();return{value:N.done?void 0:this.mapFn_.call(void 0,N.value),done:N.done}};
var jqk=function(N,b){return new Z79(N,b)};var zsl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var a4u=function(N){var b=AME(N);if(!b)throw Error("Xd`"+N);return b},AME=function(N){var b={};
N=String(N);var S=N.charAt(0)=="#"?N:"#"+N;if(X7c.test(S))return b.hex=PaY(S),b.type="hex",b;S=deY(N);return S.length?(b.hex=Y$U(S[0],S[1],S[2]),b.type="rgb",b):zsl&&(N=zsl[N.toLowerCase()])?(b.hex=N,b.type="named",b):null},EHN=/#(.)(.)(.)/,PaY=function(N){if(!X7c.test(N))throw Error("Zd`"+N);
N.length==4&&(N=N.replace(EHN,"#$1$1$2$2$3$3"));return N.toLowerCase()},RhE=function(N){N=PaY(N);
N=parseInt(N.slice(1),16);return[N>>16,N>>8&255,N&255]},Y$U=function(N,b,S){N=Number(N);
b=Number(b);S=Number(S);if(N!=(N&255)||b!=(b&255)||S!=(S&255))throw Error("$d`"+N+"`"+b+"`"+S);b=N<<16|b<<8|S;return N<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)},X7c=/^#(?:[0-9a-f]{3}){1,2}$/i,p7Z=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,deY=function(N){var b=N.match(p7Z);
if(b){N=Number(b[1]);var S=Number(b[2]);b=Number(b[3]);if(N>=0&&N<=255&&S>=0&&S<=255&&b>=0&&b<=255)return[N,S,b]}return[]};var YZl={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},RJ=YZl;RJ=YZl;var jW9,yMc,INc;jW9=function(N,b){switch(b){case 1:return N%4!=0||N%100==0&&N%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
yMc=function(N,b,S,P,H){N=new Date(N,b,S);H=H||0;return N.valueOf()+(((P!==void 0?P:3)-H+7)%7-((N.getDay()+6)%7-H+7)%7)*864E5};
_.Ys=function(N,b,S){typeof N==="number"?(this.date=INc(N,b||0,S||1),DuN(this,S||1)):_.D_(N)?(this.date=INc(N.getFullYear(),N.getMonth(),N.getDate()),DuN(this,N.getDate())):(this.date=new Date(_.sG()),N=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),DuN(this,N))};
INc=function(N,b,S){b=new Date(N,b,S);N>=0&&N<100&&b.setFullYear(b.getFullYear()-1900);return b};
_.v=_.Ys.prototype;_.v.firstDayOfWeek_=RJ.FIRSTDAYOFWEEK;_.v.firstWeekCutOffDay_=RJ.FIRSTWEEKCUTOFFDAY;_.v.clone=function(){var N=new _.Ys(this.date);N.firstDayOfWeek_=this.firstDayOfWeek_;N.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return N};
_.v.getFullYear=function(){return this.date.getFullYear()};
_.v.getYear=function(){return this.getFullYear()};
_.v.getMonth=function(){return this.date.getMonth()};
_.v.getDate=function(){return this.date.getDate()};
_.v.getTime=function(){return this.date.getTime()};
_.v.getDay=function(){return this.date.getDay()};
_.v.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.v.getUTCMonth=function(){return this.date.getUTCMonth()};
_.v.getUTCDate=function(){return this.date.getUTCDate()};
_.v.getUTCDay=function(){return this.date.getDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.v.set=function(N){this.date=new Date(N.getFullYear(),N.getMonth(),N.getDate())};
_.v.setFullYear=function(N){this.date.setFullYear(N)};
_.v.setYear=function(N){this.setFullYear(N)};
_.v.setMonth=function(N){this.date.setMonth(N)};
_.v.setDate=function(N){this.date.setDate(N)};
_.v.setTime=function(N){this.date.setTime(N)};
_.v.setUTCFullYear=function(N){this.date.setUTCFullYear(N)};
_.v.setUTCMonth=function(N){this.date.setUTCMonth(N)};
_.v.setUTCDate=function(N){this.date.setUTCDate(N)};
_.v.add=function(N){if(N.years||N.months){var b=this.getMonth()+N.months+N.years*12,S=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var P=Math.min(jW9(S,b),this.getDate());this.setDate(1);this.setFullYear(S);this.setMonth(b);this.setDate(P)}N.days&&(S=this.getYear(),b=S>=0&&S<=99?-1900:0,N=new Date((new Date(S,this.getMonth(),this.getDate(),12)).getTime()+N.days*864E5),this.setDate(1),this.setFullYear(N.getFullYear()+b),this.setMonth(N.getMonth()),this.setDate(N.getDate()),DuN(this,N.getDate()))};
_.v.JSC$11563_toIsoString=function(N){var b=this.getFullYear(),S=b<0?"-":b>=1E4?"+":"";return[S+_.RS(Math.abs(b),S?6:4),_.RS(this.getMonth()+1,2),_.RS(this.getDate(),2)].join(N?"-":"")};
_.v.equals=function(N){return!(!N||this.getYear()!=N.getYear()||this.getMonth()!=N.getMonth()||this.getDate()!=N.getDate())};
_.v.toString=function(){return this.JSC$11563_toIsoString()};
var DuN=function(N,b){N.getDate()!=b&&N.date.setUTCHours(N.date.getUTCHours()+(N.getDate()<b?1:-1))};
_.Ys.prototype.valueOf=function(){return this.date.valueOf()};var Io=function(N,b,S,P,H){this.reversed=!!b;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!S;N&&yW(this,N,P);this.depth=H!=void 0?H:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Km(Io,Mk);var yW=function(N,b,S,P){if(N.node=b)N.tagType=typeof S==="number"?S:N.node.nodeType!=1?0:N.reversed?-1:1;typeof P==="number"&&(N.depth=P)};
_.v=Io.prototype;_.v.JSC$11578_copyFrom=function(N){this.node=N.node;this.tagType=N.tagType;this.depth=N.depth;this.reversed=N.reversed;this.constrained=N.constrained};
_.v.clone=function(){return new Io(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.v.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return FI;var N=this.node;var b=this.reversed?-1:1;if(this.tagType==b){var S=this.reversed?N.lastChild:N.firstChild;S?yW(this,S):yW(this,N,b*-1)}else(S=this.reversed?N.previousSibling:N.nextSibling)?yW(this,S):yW(this,N.parentNode,b*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(N=this.node)?BF(N):FI};
_.v.equals=function(N){return N.node==this.node&&(!this.node||N.tagType==this.tagType)};
_.v.splice=function(N){var b=this.node,S=this.reversed?1:-1;this.tagType==S&&(this.tagType=S*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Io.prototype.next.call(this);this.reversed=!this.reversed;S=_.yu(arguments[0])?arguments[0]:arguments;for(var P=S.length-1;P>=0;P--)_.Yv(S[P],b);_.Zg(b)};var Vrc=function(){},DT=function(N){for(var b=[],S=N.getTextRangeCount(),P=0;P<S;P++)b.push(N.getTextRange(P));
return b};
Vrc.prototype.isReversed=function(){return!1};
Vrc.prototype.getWindow=function(){return $o(_.hh(this.JSC$11580_getStartNode()))};
var gH9=function(N,b){Io.call(this,N,b,!0)};
_.Km(gH9,Io);var VW=function(N,b,S,P,H){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!H;if(N){this.startNode_=N;this.startOffset_=b;this.endNode_=S;this.endOffset_=P;if(N.nodeType==1&&N.tagName!="BR")if(N=N.childNodes,b=N[b])this.startNode_=b,this.startOffset_=0;else{N.length&&(this.startNode_=_.oU(N));var K=!0}S.nodeType==1&&((this.endNode_=S.childNodes[P])?this.endOffset_=0:this.endNode_=S)}Io.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);K&&this.next()};
_.Km(VW,gH9);_.v=VW.prototype;_.v.JSC$11586_getStartNode=function(){return this.startNode_};
_.v.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.v.next=function(){return this.isLast()?FI:VW.superClass_.next.call(this)};
_.v.JSC$11578_copyFrom=function(N){this.startNode_=N.startNode_;this.endNode_=N.endNode_;this.startOffset_=N.startOffset_;this.endOffset_=N.endOffset_;this.isReversed_=N.isReversed_;VW.superClass_.JSC$11578_copyFrom.call(this,N)};
_.v.clone=function(){var N=new VW(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);N.JSC$11578_copyFrom(this);return N};var esz=function(){};
esz.prototype.__iterator__=function(){return new VW(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var lx=function(N){this.range_=N};
_.Km(lx,esz);var $uN=function(N){var b=_.hh(N).createRange();if(N.nodeType==3)b.setStart(N,0),b.setEnd(N,N.length);else if(XJ(N)||N.nodeType==3){for(var S,P=N;(S=P.firstChild)&&(XJ(S)||S.nodeType==3);)P=S;b.setStart(P,0);for(P=N;(S=P.lastChild)&&(XJ(S)||S.nodeType==3);)P=S;b.setEnd(P,P.nodeType==1?P.childNodes.length:P.length)}else S=N.parentNode,N=Array.prototype.indexOf.call(S.childNodes,N),b.setStart(S,N),b.setEnd(S,N+1);return b},hsd=function(N,b,S,P){var H=_.hh(N).createRange();
H.setStart(N,b);H.setEnd(S,P);return H};
_.v=lx.prototype;_.v.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.v.getContainer=function(){return this.range_.commonAncestorContainer};
_.v.compareBrowserRangeEndpoints=function(N,b,S){return this.range_.compareBoundaryPoints(S==1?b==1?_.Ps.Range.START_TO_START:_.Ps.Range.START_TO_END:b==1?_.Ps.Range.END_TO_START:_.Ps.Range.END_TO_END,N)};
_.v.isCollapsed=function(){return this.range_.collapsed};
_.v.select=function(N){this.selectInternal($o(_.hh(this.range_.startContainer)).getSelection(),N)};
_.v.selectInternal=function(N){N.removeAllRanges();N.addRange(this.range_)};
_.v.insertNode=function(N,b){var S=this.range_.cloneRange();S.collapse(b);S.insertNode(N);S.detach();return N};
_.v.collapse=function(N){this.range_.collapse(N)};_.Km(t3,lx);t3.prototype.selectInternal=function(N,b){!b||this.isCollapsed()?t3.superClass_.selectInternal.call(this,N,b):(N.collapse(this.range_.endContainer,this.range_.endOffset),N.extend(this.range_.startContainer,this.range_.startOffset))};_.Km(MM,lx);MM.prototype.compareBrowserRangeEndpoints=function(N,b,S){return MM.superClass_.compareBrowserRangeEndpoints.call(this,N,b,S)};
MM.prototype.selectInternal=function(N,b){b?N.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):N.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var gK=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},qZ9;
_.Km(gK,Vrc);qZ9=function(N,b){var S=new gK;S.browserRangeWrapper_=N;S.isReversed_=!!b;return S};
_.w79=function(N){N=_.FG?new MM($uN(N)):_.B_?new t3($uN(N)):new lx($uN(N));return qZ9(N)};
_.ee=function(N,b,S,P){var H=new gK;H.isReversed_=N5b(N,b,S,P);if(_.Gx(N)&&!XJ(N)){var K=N.parentNode;b=Array.prototype.indexOf.call(K.childNodes,N);N=K}_.Gx(S)&&!XJ(S)&&(K=S.parentNode,P=Array.prototype.indexOf.call(K.childNodes,S),S=K);H.isReversed_?(H.startNode_=S,H.startOffset_=P,H.endNode_=N,H.endOffset_=b):(H.startNode_=N,H.startOffset_=b,H.endNode_=S,H.endOffset_=P);return H};
_.v=gK.prototype;_.v.clone=function(){var N=new gK;N.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();N.startNode_=this.startNode_;N.startOffset_=this.startOffset_;N.endNode_=this.endNode_;N.endOffset_=this.endOffset_;N.isReversed_=this.isReversed_;return N};
_.v.JSC$11580_getType=function(){return"text"};
_.v.getBrowserRangeObject=function(){return $s(this).range_};
_.v.getTextRangeCount=function(){return 1};
_.v.getTextRange=function(){return this};
var $s=function(N){var b;if(!(b=N.browserRangeWrapper_)){b=N.JSC$11580_getStartNode();var S=N.JSC$11580_getStartOffset(),P=N.JSC$11580_getEndNode(),H=N.JSC$11580_getEndOffset();b=_.FG?new MM(hsd(b,S,P,H)):_.B_?new t3(hsd(b,S,P,H)):new lx(hsd(b,S,P,H));b=N.browserRangeWrapper_=b}return b};
_.v=gK.prototype;_.v.getContainer=function(){return $s(this).getContainer()};
_.v.JSC$11580_getStartNode=function(){return this.startNode_||(this.startNode_=$s(this).range_.startContainer)};
_.v.JSC$11580_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=$s(this).range_.startOffset};
_.v.JSC$11580_getEndNode=function(){return this.endNode_||(this.endNode_=$s(this).range_.endContainer)};
_.v.JSC$11580_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=$s(this).range_.endOffset};
_.v.isReversed=function(){return this.isReversed_};
_.v.JSC$11580_containsRange=function(N,b){if(N.JSC$11580_getType()=="text"){var S=$s(this);N=$s(N);b=b&&!N.isCollapsed();N=N.range_;S=b?S.compareBrowserRangeEndpoints(N,0,1)>=0&&S.compareBrowserRangeEndpoints(N,1,0)<=0:S.compareBrowserRangeEndpoints(N,0,0)>=0&&S.compareBrowserRangeEndpoints(N,1,1)<=0}else S=!1;return S};
_.v.isCollapsed=function(){return $s(this).isCollapsed()};
_.v.JSC$11580_getText=function(){return $s(this).range_.toString()};
_.v.__iterator__=function(){return new VW(this.JSC$11580_getStartNode(),this.JSC$11580_getStartOffset(),this.JSC$11580_getEndNode(),this.JSC$11580_getEndOffset())};
_.v.select=function(){$s(this).select(this.isReversed_)};
_.v.JSC$11580_removeContents=function(){var N=$s(this).range_;N.extractContents();if(N.startContainer.hasChildNodes()&&(N=N.startContainer.childNodes[N.startOffset])){var b=N.previousSibling;no9(N)==""&&_.Zg(N);b&&no9(b)==""&&_.Zg(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.v.insertNode=function(N,b){N=$s(this).insertNode(N,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return N};
_.v.collapse=function(N){N=this.isReversed()?!N:N;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(N);N?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var bU9=function(){};
_.Km(bU9,Vrc);bU9.prototype.JSC$11580_containsRange=function(N,b){var S=DT(this);N=DT(N);return(b?vl:_.yrf)(N,function(P){return vl(S,function(H){return H.JSC$11580_containsRange(P,b)})})};
bU9.prototype.insertNode=function(N,b){b?_.pL(N,this.JSC$11580_getStartNode()):_.Yv(N,this.JSC$11580_getEndNode());return N};var Sbl,PoN=zn().JSC$9559_document_.documentElement;Sbl=PoN.requestFullscreen?"fullscreenchange":PoN.webkitRequestFullscreen?"webkitfullscreenchange":PoN.mozRequestFullScreen?"mozfullscreenchange":PoN.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var HUV=function(){var N=zn().JSC$9559_document_;return!!(N.webkitIsFullScreen||N.mozFullScreen||N.msFullscreenElement||N.fullscreenElement)};var hF=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Km(hF,bU9);_.v=hF.prototype;_.v.clone=function(){var N=new hF;N.browserRanges_=_.pa(this.browserRanges_);return N};
_.v.JSC$11580_getType=function(){return"mutli"};
_.v.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.v.getTextRangeCount=function(){return this.browserRanges_.length};
_.v.getTextRange=function(N){this.ranges_[N]||(this.ranges_[N]=qZ9(lAa(this.browserRanges_[N])));return this.ranges_[N]};
_.v.getContainer=function(){if(!this.container_){for(var N=[],b=this.getTextRangeCount(),S=0;S<b;S++)N.push(this.getTextRange(S).getContainer());this.container_=Czk.apply(null,N)}return this.container_};
var q4=function(N){N.sortedRanges_||(N.sortedRanges_=DT(N),N.sortedRanges_.sort(function(b,S){var P=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();var H=S.JSC$11580_getStartNode();S=S.JSC$11580_getStartOffset();return P==H&&b==S?0:N5b(P,b,H,S)?1:-1}));
return N.sortedRanges_};
_.v=hF.prototype;_.v.JSC$11580_getStartNode=function(){return q4(this)[0].JSC$11580_getStartNode()};
_.v.JSC$11580_getStartOffset=function(){return q4(this)[0].JSC$11580_getStartOffset()};
_.v.JSC$11580_getEndNode=function(){return _.oU(q4(this)).JSC$11580_getEndNode()};
_.v.JSC$11580_getEndOffset=function(){return _.oU(q4(this)).JSC$11580_getEndOffset()};
_.v.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.v.JSC$11580_getText=function(){return DT(this).map(function(N){return N.JSC$11580_getText()}).join("")};
_.v.__iterator__=function(){return new wK(this)};
_.v.select=function(){var N=this.getWindow().getSelection();N.removeAllRanges();for(var b=this.getTextRangeCount(),S=0;S<b;S++)N.addRange(this.getTextRange(S).getBrowserRangeObject())};
_.v.JSC$11580_removeContents=function(){DT(this).forEach(function(N){N.JSC$11580_removeContents()})};
_.v.collapse=function(N){if(!this.isCollapsed()){var b=N?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;b.collapse(N);this.ranges_=[b];this.sortedRanges_=[b];this.browserRanges_=[b.getBrowserRangeObject()]}};
var wK=function(N){this.iterators_=null;this.currentIdx_=0;N&&(this.iterators_=q4(N).map(function(b){return _.d7E(b)}));
Io.call(this,N?this.JSC$11586_getStartNode():null,!1,!0)};
_.Km(wK,gH9);_.v=wK.prototype;_.v.JSC$11586_getStartNode=function(){return this.iterators_[0].JSC$11586_getStartNode()};
_.v.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.v.next=function(){for(;this.currentIdx_<this.iterators_.length;){var N=this.iterators_[this.currentIdx_],b=N.next();if(b.done)this.currentIdx_++;else return yW(this,N.node,N.tagType,N.depth),b}return FI};
_.v.JSC$11578_copyFrom=function(N){this.iterators_=_.pa(N.iterators_);wK.superClass_.JSC$11578_copyFrom.call(this,N)};
_.v.clone=function(){var N=new wK(null);N.JSC$11578_copyFrom(this);return N};var s79,N5b;_.Co=function(){var N=window.getSelection();return N&&s79(N)};
s79=function(N){var b=!1;if(N.createRange)try{var S=N.createRange()}catch(H){return null}else if(N.rangeCount){if(N.rangeCount>1){S=new hF;b=N.rangeCount;for(var P=0;P<b;P++)S.browserRanges_.push(N.getRangeAt(P));return S}S=N.getRangeAt(0);b=N5b(N.anchorNode,N.anchorOffset,N.focusNode,N.focusOffset)}else return null;return qZ9(lAa(S),b)};
_.NP=function(N,b){return _.ee(N,b,N,b)};
_.bG=function(N,b,S,P){return _.ee(N,b,S,P)};
N5b=function(N,b,S,P){if(N==S)return P<b;var H;if(N.nodeType==1&&b)if(H=N.childNodes[b])N=H,b=0;else if(_.Sj(N,S))return!0;if(S.nodeType==1&&P)if(H=S.childNodes[P])S=H,P=0;else if(_.Sj(S,N))return!1;return(OzV(N,S)||b-P)>0};var S2=function(){_.J1.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.pT)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.pT)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.pT)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.pT)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.pT)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.pT)(this.dispatchProgressEvent_,this)};
_.Km(S2,_.J1);S2.prototype.abort=function(){try{this.reader_.abort()}catch(N){throw new kkd(N,"aborting read");}};
S2.prototype.getError=function(){return this.reader_.error&&new kkd(this.reader_.error,"reading file")};
S2.prototype.dispatchProgressEvent_=function(N){this.dispatchEvent(new Tp4(N,this))};
S2.prototype.disposeInternal=function(){S2.superClass_.disposeInternal.call(this);delete this.reader_};
var v9Z=function(N){var b=new S2,S=KhZ(b);b.reader_.readAsArrayBuffer(N);return S},OUN=function(N){var b=new S2,S=KhZ(b);
b.reader_.readAsDataURL(N);return S},KhZ=function(N){var b=new O0;
N.listen("loadend",_.Rm(function(S,P){var H=P.reader_.result,K=P.getError();H==null||K?S.errback(K):S.callback(H);P.dispose()},b,N));
return b};var Po=function(){_.J1.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11620_eventHandler_=new _.fx(this);this.JSC$11620_isInitialized_=!1};
_.Km(Po,_.J1);var CoV=new _.fF("d"),GRb=new _.fF("beforedragstart"),r89=new _.fF("dragstart"),c8c=new _.fF("beforedragmove"),aGl=new _.fF("dragmove"),RJb=new _.fF("beforedragend"),Whk=new _.fF("dragend"),n9d=new _.fF("e");Po.prototype.isDragging=function(){return!!this.JSC$11620_dragger_};
var dEZ=function(N,b){b.dlgGrowthDirection_=0;b.dlgDragHoverClass_=void 0;b.dlgDragPermission=0;N.dragLists_.push(b)},mEd=function(N,b){N.getHandleForDragItem_=b};
Po.prototype.init=function(){if(!this.JSC$11620_isInitialized_){for(var N=this.dragLists_.length,b=0;b<N;b++)for(var S=_.yo(this.dragLists_[b]),P=S.length,H=0;H<P;++H){var K=S[H],C=this.getHandleForDragItem_(K),G=_.gI(C);this.dragItemForHandle_[G]=K;this.dragItemHoverClasses_&&(this.JSC$11620_eventHandler_.listen(K,"mouseover",this.handleDragItemMouseover_),this.JSC$11620_eventHandler_.listen(K,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11620_eventHandler_.listen(C,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11620_eventHandler_.listen(C,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(K);this.JSC$11620_eventHandler_.listen(C,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11620_isInitialized_=!0}};
Po.prototype.disposeInternal=function(){this.JSC$11620_eventHandler_.dispose();for(var N=this.dragLists_.length,b=0;b<N;b++){var S=this.dragLists_[b];S.dlgGrowthDirection_=void 0;S.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;kRc(this);Po.superClass_.disposeInternal.call(this)};
var T5z=function(N,b){for(var S=N.dragLists_.length,P=0;P<S;P++){var H=N.dragLists_[P];H.dlgBounds_=LG_(H)}S=N.dragItems_.length;for(P=0;P<S;P++)H=N.dragItems_[P],H!=b&&(H.dlgBounds_=LG_(H))};
_.v=Po.prototype;
_.v.handlePotentialDragStart_=function(N){var b=_.gI(N.currentTarget);b=this.dragItemForHandle_[b];if(b.parentElement.dlgDragPermission!=2){this.currDragItem_=b;a:{b=this.currDragItem_;for(var S=b.cloneNode(!0),P=jG("TEXTAREA",b),H=jG("TEXTAREA",S),K=0;K<P.length;K++)H[K].value=P[K].value;switch(b.tagName){case "TR":b=_.z3("TABLE",null,_.z3("TBODY",null,S));break a;case "TD":case "TH":b=_.z3("TABLE",null,_.z3("TBODY",null,_.z3("TR",null,S)));break a;case "TEXTAREA":S.value=b.value;default:b=S;break a}b=
void 0}this.draggerEl_=b;this.draggerElClasses_&&v0(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.hh(this.currDragItem_).body.appendChild(this.draggerEl_);S=_.qz(this.currDragItem_);b=this.draggerEl_;P=_.qz(b);if(S instanceof _.ek){var C=S.y;S=S.x}eO(b,b.offsetLeft+(S-P.x),b.offsetTop+(Number(C)-P.y));this.JSC$11620_dragger_=new _.w_(this.draggerEl_);_.mMV(this.JSC$11620_dragger_,this.hysteresisDistance_);
_.lH(this.JSC$11620_dragger_,"start",this.handleDragStart_,!1,this);_.lH(this.JSC$11620_dragger_,"end",this.handleDragEnd_,!1,this);_.lH(this.JSC$11620_dragger_,"earlycancel",this.JSC$11622_cleanup_,!1,this);this.dispatchEvent(new Ho(CoV,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_));this.JSC$11620_dragger_.startDrag(N)}};
_.v.handleDragStart_=function(N){if(this.dispatchEvent(new Ho(GRb,this,N.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.s_Z(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?v0(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var b=MkO(this.draggerEl_);this.draggerEl_.halfWidth=b.width/2;this.draggerEl_.halfHeight=b.height/2;b=this.draggerEl_.getBoundingClientRect();
var S=N.clientY,P=kb9(this.JSC$11620_dragger_,N.clientX);if(P>b.right){var H=this.currDragItem_.getBoundingClientRect();this.JSC$11620_dragger_.deltaX=P-(P-H.left)/H.width*b.width}S=T09(this.JSC$11620_dragger_,S);S>b.bottom&&(this.JSC$11620_dragger_.deltaY+=S-b.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";T5z(this,this.currDragItem_);this.currDragItem_.style.display="";_.lH(this.JSC$11620_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ho(r89,
this,N.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_))}else N.preventDefault(),this.JSC$11622_cleanup_()};
_.v.handleDragMove_=function(N){var b=_.qz(this.draggerEl_);b=new _.ek(b.x+this.draggerEl_.halfWidth,b.y+this.draggerEl_.halfHeight);a:{var S=null;if(this.currDragItem_.style.display!="none"){S=this.currDragItem_.parentNode;var P=LG_(S);if(tab(b,P))break a}P=this.dragLists_.length;for(var H=0;H<P;H++){var K=this.dragLists_[H];if(K!=S&&tab(b,K.dlgBounds_)){S=K;break a}}S=null}if(S){if(S==null)throw Error("ae");P=0;H=!1;K=void 0;switch(S.dlgGrowthDirection_){case 0:P=b.y;var C=Mad;var G=FhS;break;case 4:H=
!0;case 2:P=b.x;C=B5c;G=FhS;break;case 5:H=!0;case 3:P=b.x,C=lGd,G=Lh9}for(var a=null,R,n=_.yo(S),d=n.length,m=0;m<d;m++){var k=n[m];if(k!=this.currDragItem_){var M=C(k.dlgBounds_);if(H){var l=fGc(k,b);K===void 0&&(K=l);G(P,M)&&(R==void 0||l<K||l==K&&(G(M,R)||M==R))&&(a=k,R=M);l<K&&(K=l)}else G(P,M)&&(R==void 0||G(M,R))&&(a=k,R=M)}}C=a!==null&&fGc(a,b)>K?null:a}else C=null;if(!this.dispatchEvent(new Ho(c8c,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_,b,S,C)))return!1;if(S&&S.dlgDragPermission!=
1)this.currDragItem_.parentNode==S&&_.s_Z(this.currDragItem_)==C||S.insertBefore(this.currDragItem_,C),this.currDragItem_.style.display="",S.dlgDragHoverClass_&&_.DN(S,S.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",G=this.dragLists_.length,R=0;R<G;R++)P=this.dragLists_[R],P.dlgDragHoverClass_&&_.Iq(P,P.dlgDragHoverClass_);S!=this.currHoverList_&&(this.currHoverList_=S,T5z(this,this.currDragItem_));this.dispatchEvent(new Ho(aGl,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_,
b,S,C));return!1};
_.v.JSC$11622_cleanup_=function(){kRc(this);this.JSC$11620_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var N=this.dragLists_.length,b=0;b<N;b++)this.dragLists_[b].dlgBounds_=null;N=this.dragItems_.length;for(b=0;b<N;b++)this.dragItems_[b].dlgBounds_=null};
_.v.handleDragEnd_=function(N){if(!this.dispatchEvent(new Ho(RJb,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_)))return!1;kRc(this);this.dispatchEvent(new Ho(Whk,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11620_dragger_));this.JSC$11622_cleanup_();return!0};
var kRc=function(N){_.Wv(N.JSC$11620_dragger_);var b=N.draggerEl_&&N.draggerEl_.parentElement;N.draggerEl_&&_.Zg(N.draggerEl_);N.currDragItem_&&N.currDragItem_.style.display=="none"&&(N.origList_.insertBefore(N.currDragItem_,N.origNextItem_),N.currDragItem_.style.display="");N.currDragItemClasses_&&N.currDragItem_?WV9(N.currDragItem_,N.currDragItemClasses_||[]):N.currDragItem_&&(N.currDragItem_.style.visibility="");for(var S=N.dragLists_.length,P=0;P<S;P++){var H=N.dragLists_[P];H.dlgDragHoverClass_&&
_.Iq(H,H.dlgDragHoverClass_)}b&&N.dispatchEvent(new Ho(n9d,N,null,N.currDragItem_,N.draggerEl_,N.JSC$11620_dragger_))};
_.v=Po.prototype;_.v.getHandleForDragItem_=function(N){return N};
_.v.handleDragItemMouseover_=function(N){v0(N.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemMouseout_=function(N){WV9(N.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemHandleMouseover_=function(N){v0(N.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.v.handleDragItemHandleMouseout_=function(N){WV9(N.currentTarget,this.dragItemHandleHoverClasses_||[])};
var tab=function(N,b){return N.x>b.left&&N.x<b.left+b.width&&N.y>b.top&&N.y<b.top+b.height},fGc=function(N,b){N=N.dlgBounds_;
return Math.abs(b.y-(N.top+(N.height-1)/2))},Mad=function(N){return N.top+N.height-1},B5c=function(N){return N.left+N.width-1},lGd=function(N){return N.left||0},FhS=function(N,b){return N<b},Lh9=function(N,b){return N>b},Ho=function(N,b,S,P,H,K){_.uW.call(this,N);
this.event=S;this.currDragItem=P;this.draggerEl=H;this.JSC$11624_dragger=K};
_.Km(Ho,_.uW);_.Km(ux,_.E5);var uMk=new _.ek(0,0);ux.prototype.JSC$11628_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
ux.prototype.JSC$11628_onMouseMove=function(N){var b=this.containerIsActuallyContent_?uMk:jk(zn(this.containerNode_)),S=this.horizontalScrolling_?this.calculateScrollDelta(N.clientX+b.x,this.scrollBounds_.left,this.scrollBounds_.width):0,P=this.calculateScrollDelta(N.clientY+b.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=S;this.scrollDelta_.y=P;!(S=!S&&!P)&&(S=this.constrainScroll_)&&(S=N.clientX+b.x,N=N.clientY+b.y,b=this.containerBounds_,S=!(b.left<=S&&b.left+b.width>=
S&&b.top<=N&&b.top+b.height>=N));S?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
ux.prototype.calculateScrollDelta=function(N,b,S){var P=0;N<b?P=-8:N>b+S&&(P=8);return P};
ux.prototype.disposeInternal=function(){ux.superClass_.disposeInternal.call(this);this.JSC$11626_eventHandler_.dispose();this.scrollTimer_.dispose()};var Q7Z={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},sp=Q7Z;sp=Q7Z;var K1={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var xEd=function(){},Db=function(N){if(typeof N=="number"){var b=new xEd;
b.standardOffset_=N;var S=N;if(S==0)S="Etc/GMT";else{var P=["Etc/GMT",S<0?"-":"+"];S=Math.abs(S);P.push(Math.floor(S/60)%100);S%=60;S!=0&&P.push(":",_.RS(S,2));S=P.join("")}b.timeZoneId_=S;S=N;S==0?S="UTC":(P=["UTC",S<0?"+":"-"],S=Math.abs(S),P.push(Math.floor(S/60)%100),S%=60,S!=0&&P.push(":",S),S=P.join(""));N=o9z(N);b.tzNames_=[S,S];b.tzNamesExt_={STD_LONG_NAME_GMT:N,STD_GENERIC_LOCATION:N};b.transitions_=[];return b}b=new xEd;b.timeZoneId_=N.id;b.standardOffset_=-N.std_offset;b.tzNames_=N.names;
b.tzNamesExt_=N.names_ext;b.transitions_=N.transitions;return b},o9z=function(N){var b=["GMT"];
b.push(N<=0?"+":"-");N=Math.abs(N);b.push(_.RS(Math.floor(N/60)%100,2),":",_.RS(N%60,2));return b.join("")},iU9=function(N,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;
for(var S=0;S<N.transitions_.length&&b>=N.transitions_[S];)S+=2;return S==0?0:N.transitions_[S-1]},J8z=function(N,b){N=N.standardOffset_-iU9(N,b);
return N===-1440?0:N};var V4=function(N,b){this.patternParts_=[];this.JSC$11639_dateTimeSymbols_=b||RJ;typeof N=="number"?UEd(this,N):ZU9(this,N)},j7z=[/^'(?:[^']|'')*('|$)/,
/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],vo=function(N){return N.getHours?N.getHours():0},ZU9=function(N,b){for(uOO&&(b=b.replace(/\u200f/g,""));b;){for(var S=b,P=0;P<j7z.length;++P){var H=b.match(j7z[P]);
if(H){var K=H[0];b=b.substring(K.length);P==0&&(K=="''"?K="'":(K=K.substring(1,H[1]=="'"?K.length-1:K.length),K=K.replace(/''/g,"'")));N.patternParts_.push({text:K,type:P});break}}if(S===b)throw Error("be`"+b);}};
V4.prototype.format=function(N,b){if(!N)throw Error("ce");var S=b?(N.getTimezoneOffset()-J8z(b,N))*6E4:0,P=S?new Date(N.getTime()+S):N,H=P;b&&P.getTimezoneOffset()!=N.getTimezoneOffset()&&(P=new Date(P.getTime()+(P.getTimezoneOffset()-N.getTimezoneOffset())*6E4),H=new Date(N.getTime()+(S+(S>0?-864E5:864E5))));S=[];for(var K=0;K<this.patternParts_.length;++K){var C=this.patternParts_[K].text;1==this.patternParts_[K].type?S.push(zJ4(this,C,N,P,H,b)):S.push(C)}return S.join("")};
var UEd=function(N,b){if(b<4)var S=N.JSC$11639_dateTimeSymbols_.DATEFORMATS[b];else if(b<8)S=N.JSC$11639_dateTimeSymbols_.TIMEFORMATS[b-4];else if(b<12)S=N.JSC$11639_dateTimeSymbols_.DATETIMEFORMATS[b-8],S=S.replace("{1}",N.JSC$11639_dateTimeSymbols_.DATEFORMATS[b-8]),S=S.replace("{0}",N.JSC$11639_dateTimeSymbols_.TIMEFORMATS[b-8]);else if(b===12)S=N.JSC$11639_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(b===13)S=N.JSC$11639_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{UEd(N,10);return}ZU9(N,S)},Op=function(N,b){b=String(b);
N=N.JSC$11639_dateTimeSymbols_||RJ;if(N.ZERODIGIT!==void 0&&!fiY){for(var S=[],P=0;P<b.length;P++){var H=b.charCodeAt(P);S.push(48<=H&&H<=57?String.fromCharCode(N.ZERODIGIT+H-48):b.charAt(P))}b=S.join("")}return b},fiY=!1,uOO=!1,XXN=function(N,b,S,P){S=S.getFullYear();
S<=0&&P&&(S=1-S);return Op(N,A89(S,b))},A89=function(N,b){b==2&&(N%=100);
N<0&&b++;return _.RS(N,b)},C1=function(N){if(!(N.getHours&&N.getSeconds&&N.getMinutes))throw Error("de");
},E94=function(N,b){C1(b);
b=vo(b);return N.JSC$11639_dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},zJ4=function(N,b,S,P,H,K){var C=b.length;
switch(b.charAt(0)){case "G":return S=P.getFullYear()>0?1:0,C>=4?N.JSC$11639_dateTimeSymbols_.ERANAMES[S]:N.JSC$11639_dateTimeSymbols_.ERAS[S];case "y":return XXN(N,C,P,!0);case "Y":return S=(new Date(yMc(P.getFullYear(),P.getMonth(),P.getDate(),N.JSC$11639_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,N.JSC$11639_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),C==2&&(S%=100),Op(N,A89(S,C));case "u":return XXN(N,C,P,!1);case "M":a:switch(S=P.getMonth(),C){case 5:C=N.JSC$11639_dateTimeSymbols_.NARROWMONTHS[S];
break a;case 4:C=N.JSC$11639_dateTimeSymbols_.MONTHS[S];break a;case 3:C=N.JSC$11639_dateTimeSymbols_.SHORTMONTHS[S];break a;default:C=Op(N,_.RS(S+1,C))}return C;case "k":return C1(H),Op(N,_.RS(vo(H)||24,C));case "S":return Op(N,(H.getMilliseconds()/1E3).toFixed(Math.min(3,C)).slice(2)+(C>3?_.RS(0,C-3):""));case "E":return S=P.getDay(),C>=4?N.JSC$11639_dateTimeSymbols_.WEEKDAYS[S]:N.JSC$11639_dateTimeSymbols_.SHORTWEEKDAYS[S];case "a":return E94(N,H);case "b":return E94(N,H);case "B":return E94(N,
H);case "h":return C1(H),Op(N,_.RS(vo(H)%12||12,C));case "K":return C1(H),Op(N,_.RS(vo(H)%12,C));case "H":return C1(H),Op(N,_.RS(vo(H),C));case "c":a:switch(S=P.getDay(),C){case 5:C=N.JSC$11639_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[S];break a;case 4:C=N.JSC$11639_dateTimeSymbols_.STANDALONEWEEKDAYS[S];break a;case 3:C=N.JSC$11639_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[S];break a;default:C=Op(N,_.RS(S,1))}return C;case "L":a:switch(S=P.getMonth(),C){case 5:C=N.JSC$11639_dateTimeSymbols_.STANDALONENARROWMONTHS[S];
break a;case 4:C=N.JSC$11639_dateTimeSymbols_.STANDALONEMONTHS[S];break a;case 3:C=N.JSC$11639_dateTimeSymbols_.STANDALONESHORTMONTHS[S];break a;default:C=Op(N,_.RS(S+1,C))}return C;case "Q":return S=Math.floor(P.getMonth()/3),C<4?N.JSC$11639_dateTimeSymbols_.SHORTQUARTERS[S]:N.JSC$11639_dateTimeSymbols_.QUARTERS[S];case "d":return Op(N,_.RS(P.getDate(),C));case "m":return C1(H),Op(N,_.RS(H.getMinutes?H.getMinutes():0,C));case "s":return C1(H),Op(N,_.RS(H.getSeconds(),C));case "v":return(K||Db(S.getTimezoneOffset())).timeZoneId_;
case "V":return N=K||Db(S.getTimezoneOffset()),C<=2?N.timeZoneId_:iU9(N,S)>0?N.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?N.tzNamesExt_.DST_GENERIC_LOCATION:N.tzNamesExt_.DST_GENERIC_LOCATION:N.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?N.tzNamesExt_.STD_GENERIC_LOCATION:N.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return S=yMc(H.getFullYear(),H.getMonth(),H.getDate(),N.JSC$11639_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,N.JSC$11639_dateTimeSymbols_.FIRSTDAYOFWEEK),Op(N,_.RS(Math.floor(Math.round((S-(new Date((new Date(S)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,C));case "z":return N=K||Db(S.getTimezoneOffset()),C<4?N.tzNames_[iU9(N,S)>0?2:0]:N.tzNames_[iU9(N,S)>0?3:1];case "Z":return b=K||Db(S.getTimezoneOffset()),C<4?(C=-J8z(b,S),N=[C<0?"-":"+"],C=Math.abs(C),N.push(_.RS(Math.floor(C/60)%100,2),_.RS(C%60,2)),C=N.join("")):C=Op(N,o9z(J8z(b,S))),C;default:return""}};var pX9=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,YbZ=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,OPO=function(N){this.patternParts_=[];this.JSC$11648_dateTimeSymbols_=RJ;if(typeof N=="number"){N>11&&(N=10);if(N<4)var b=this.JSC$11648_dateTimeSymbols_.DATEFORMATS[N];else N<8?b=this.JSC$11648_dateTimeSymbols_.TIMEFORMATS[N-4]:(b=this.JSC$11648_dateTimeSymbols_.DATETIMEFORMATS[N-8],b=b.replace("{1}",this.JSC$11648_dateTimeSymbols_.DATEFORMATS[N-8]),b=b.replace("{0}",this.JSC$11648_dateTimeSymbols_.TIMEFORMATS[N-
8]));y8d(this,b)}else y8d(this,N)},y8d=function(N,b){for(var S=!1,P="",H=0;H<b.length;H++){var K=b.charAt(H);
if(pX9.test(K))for(P.length>0&&(N.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P=""),N.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});H<b.length-1&&b.charAt(H+1)==" ";)H++;else if(S)K=="'"?H+1<b.length&&b.charAt(H+1)=="'"?(P+="'",H++):S=!1:P+=K;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(K)>=0){P.length>0&&(N.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P="");for(var C=b.charAt(H),G=H+1;G<b.length&&b.charAt(G)==C;)G++;C=G-H;C<=0?G=!1:(G="MydhHmsSDkK".indexOf(K),
G=G>0||G==0&&C<3);N.patternParts_.push({text:K,count:C,abutStart:!1,numeric:G});H+=C-1}else K=="'"?H+1<b.length&&b.charAt(H+1)=="'"?(P+="'",H++):S=!0:P+=K}P.length>0&&N.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1});b=!1;for(S=0;S<N.patternParts_.length;S++)N.patternParts_[S].numeric?!b&&S+1<N.patternParts_.length&&N.patternParts_[S+1].numeric&&(b=!0,N.patternParts_[S].abutStart=!0):b=!1};
OPO.prototype.parse=function(N,b,S){var P=!1,H=!1;S&&(P=S.predictive||!1,H=S.validate||!1);if(P)for(S=0;S<this.patternParts_.length;S++){var K=this.patternParts_[S];if(K.count>0&&("abBhHkKm".indexOf(K.text.charAt(0))<0||K.count>2||K.abutStart))throw Error("ee`"+K.text.charAt(0));}K=new IGd;S=[0];K.dayPeriodIndex=-1;for(var C=0;C<this.patternParts_.length&&!(P&&S[0]>=N.length);C++){if(this.patternParts_[C].count==0){a:{var G=N;var a=S,R=this.patternParts_[C],n=P;if(R.text.match(pX9)!=null){if(R=a[0],
DEE(G,a),a[0]>R){G=!0;break a}}else{if(G.indexOf(R.text,a[0])==a[0]){a[0]+=R.text.length;G=!0;break a}if(n&&R.text.indexOf(G.substring(a[0]))==0){a[0]+=G.length-a[0];G=!0;break a}}G=!1}if(G)continue;return 0}if(this.patternParts_[C].abutStart){a:{a=N;R=S;n=C;var d=R[0],m=0;for(G=n;G<this.patternParts_.length;G++){var k=this.patternParts_[G],M=k.count;if(M===0)break;if(G==n&&(M-=m,m++,M==0)){G=0;break a}var l=G>n&&k.numeric,u=R[0];if(!VaE(this,a,R,k,M,K,!1)||l&&R[0]-u<M)G=n-1,R[0]=d}G-=n}if(G<=0)return 0;
C+=G-1}else if(!VaE(this,N,S,this.patternParts_[C],0,K,P))return 0}a:{N=H;if(b==null)throw Error("fe");K.era!=void 0&&K.year!=void 0&&K.era==0&&K.year>0&&(K.year=-(K.year-1));K.year!=void 0&&b.setFullYear(K.year);P=b.getDate();b.setDate(1);K.month!=void 0&&b.setMonth(K.month);K.day!=void 0?b.setDate(K.day):(H=jW9(b.getFullYear(),b.getMonth()),b.setDate(P>H?H:P));typeof b.setHours==="function"&&(K.hours==void 0&&(K.hours=b.getHours()),K.hours<12&&(K.ampm!=void 0&&K.ampm>0?K.hours+=12:K.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(K.dayPeriodName)||["night1","night2"].includes(K.dayPeriodName)&&K.hours>=6)&&(K.hours+=12)),b.setHours(K.hours));typeof b.setMinutes==="function"&&K.minutes!=void 0&&b.setMinutes(K.minutes);typeof b.setSeconds==="function"&&K.seconds!=void 0&&b.setSeconds(K.seconds);typeof b.setMilliseconds==="function"&&K.milliseconds!=void 0&&b.setMilliseconds(K.milliseconds);if(N&&(K.year&&K.year!=b.getFullYear()||K.month&&K.month!=
b.getMonth()||K.day&&K.day!=b.getDate()||K.hours&&K.hours>=24||K.minutes&&K.minutes>=60||K.seconds&&K.seconds>=60||K.milliseconds&&K.milliseconds>=1E3))b=!1;else{K.tzOffset!=void 0&&b.setTime(b.getTime()+(K.tzOffset-b.getTimezoneOffset())*60*1E3);K.ambiguousYear&&(N=new Date,N.setFullYear(N.getFullYear()-80),b.getTime()<N.getTime()&&b.setFullYear(N.getFullYear()+100));if(K.dayOfWeek!=void 0)if(K.day==void 0)K=(7+K.dayOfWeek-b.getDay())%7,K>3&&(K-=7),N=b.getMonth(),b.setDate(b.getDate()+K),b.getMonth()!=
N&&b.setDate(b.getDate()+(K>0?-7:7));else if(K.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?S[0]:0};
var VaE=function(N,b,S,P,H,K,C){DEE(b,S);if(P.numeric&&H>0&&S[0]+H>b.length)return!1;switch(P.text.charAt(0)){case "G":return G$(b,S,[N.JSC$11648_dateTimeSymbols_.ERAS],function(G){return K.era=G}),!0;
case "M":case "L":return g9V(N,b,S,H,P,K);case "E":return G$(b,S,[N.JSC$11648_dateTimeSymbols_.WEEKDAYS,N.JSC$11648_dateTimeSymbols_.SHORTWEEKDAYS],function(G){return K.dayOfWeek=G});
case "B":case "b":return H=[],N=[[].concat(N.JSC$11648_dateTimeSymbols_.AMPMS)],H.push("isAm"),H.push("isPm"),b=G$(b,S,N,function(G){return K.dayPeriodIndex=G},C),K.dayPeriodName=H[K.dayPeriodIndex],C?b:!0;
case "a":return b=G$(b,S,[N.JSC$11648_dateTimeSymbols_.AMPMS],function(G){return K.ampm=G},C),C?b:!0;
case "y":return eJN(N,b,S,P,H,K);case "Q":return G$(b,S,[N.JSC$11648_dateTimeSymbols_.QUARTERS,N.JSC$11648_dateTimeSymbols_.SHORTQUARTERS],function(G){K.month=G*3;K.day=1});
case "d":return rR(N,b,S,P,H,function(G){K.day=G}),!0;
case "S":return $E9(N,b,S,H,K);case "h":case "K":case "H":case "k":return b=rR(N,b,S,P,H,function(G){K.hours=P.text.charAt(0)==="h"&&G===12?0:G},C),C?b:!0;
case "m":return b=rR(N,b,S,P,H,function(G){K.minutes=G},C),C?b:!0;
case "s":return rR(N,b,S,P,H,function(G){K.seconds=G}),!0;
case "z":case "Z":case "v":return hJ9(N,b,S,K);default:return!1}},eJN=function(N,b,S,P,H,K){var C=S[0];
H=co(N,b,S,H);H===null&&(H=co(N,b,S,0,!0));if(H===null)return!1;H>=0&&S[0]-C==2&&P.count==2?(N=H,b=(new Date).getFullYear()-80,S=b%100,K.ambiguousYear=N==S,N+=Math.floor(b/100)*100+(N<S?100:0),K.year=N):K.year=H;return!0},g9V=function(N,b,S,P,H,K){return H.numeric&&rR(N,b,S,H,P,function(C){K.month=C-1})?!0:G$(b,S,[N.JSC$11648_dateTimeSymbols_.MONTHS,
N.JSC$11648_dateTimeSymbols_.STANDALONEMONTHS,N.JSC$11648_dateTimeSymbols_.SHORTMONTHS,N.JSC$11648_dateTimeSymbols_.STANDALONESHORTMONTHS],function(C){K.month=C})},$E9=function(N,b,S,P,H){var K=S[0];
N=co(N,b,S,P);if(N===null)return!1;S=S[0]-K;H.milliseconds=S<3?N*Math.pow(10,3-S):Math.round(N/Math.pow(10,S-3));return!0},hJ9=function(N,b,S,P){b.indexOf("GMT",S[0])==S[0]&&(S[0]+=3);
if(S[0]>=b.length)return P.tzOffset=0,!0;var H=S[0],K=co(N,b,S,0,!0);if(K===null)return!1;if(S[0]<b.length&&b.charAt(S[0])==":"){var C=K*60;S[0]++;K=co(N,b,S,0);if(K===null)return!1;C+=K}else C=K,C=C<24&&S[0]-H<=3?C*60:C%100+C/100*60;P.tzOffset=-C;return!0},rR=function(N,b,S,P,H,K,C){C=C||!1;
var G=S[0];N=co(N,b,S,H);if(N===null)return!1;if(C&&S[0]-G<P.count){if(S[0]<b.length)return!1;N*=Math.pow(10,P.count-(S[0]-G))}K(N);return!0},G$=function(N,b,S,P,H){H=H||!1;
for(var K,C=0;C<S.length;C++){K=b;for(var G=S[C],a=H,R=0,n=null,d=N.substring(K[0]).toLowerCase(),m=0;m<G.length;m++){var k=G[m].toLowerCase();if(a&&k.indexOf(d)==0){R=d.length;n=m;break}G[m].length>R&&d.indexOf(k)==0&&(R=G[m].length,n=m)}n!==null&&(K[0]+=R);K=n;if(K!==null)return P(K),!0}return!1},DEE=function(N,b){(N=N.substring(b[0]).match(YbZ))&&(b[0]+=N[0].length)},co=function(N,b,S,P,H){b=P>0?b.substring(0,S[0]+P):b;
H=H||!1;if(N.JSC$11648_dateTimeSymbols_.ZERODIGIT){P=[];for(var K=S[0];K<b.length;K++){var C=b.charCodeAt(K)-N.JSC$11648_dateTimeSymbols_.ZERODIGIT;P.push(0<=C&&C<=9?String.fromCharCode(C+48):b.charAt(K))}b=P.join("")}else b=b.substring(S[0]);N=b.match(new RegExp("^"+(H?"[+-]?":"")+"\\d+"));if(!N)return null;S[0]+=N[0].length;return parseInt(N[0],10)},IGd=function(){};
IGd.prototype.ambiguousYear=!1;var qbb;
qbb={DAY:{LONG:"one{# day}other{# days}",SHORT:"one{# day}other{# days}",NARROW:"one{#d}other{#d}"},HOUR:{LONG:"one{# hour}other{# hours}",SHORT:"one{# hr}other{# hr}",NARROW:"one{#h}other{#h}"},MINUTE:{LONG:"one{# minute}other{# minutes}",SHORT:"one{# min}other{# min}",NARROW:"one{#m}other{#m}"},MONTH:{LONG:"one{# month}other{# months}",SHORT:"one{# mth}other{# mths}",NARROW:"one{#m}other{#m}"},SECOND:{LONG:"one{# second}other{# seconds}",SHORT:"one{# sec}other{# sec}",NARROW:"one{#s}other{#s}"},WEEK:{LONG:"one{# week}other{# weeks}",
SHORT:"one{# wk}other{# wks}",NARROW:"one{#w}other{#w}"},YEAR:{LONG:"one{# year}other{# years}",SHORT:"one{# yr}other{# yrs}",NARROW:"one{#y}other{#y}"}};var wXO={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};
wXO={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};var NxE=function(){var N={type:"unit",style:"narrow"};this.listType_=N&&N.type?N.type:"conjunction";this.listStyle_=N&&N.style?N.style:"long";this.listSymbols_=wXO;N=0;switch(this.listStyle_){case "short":N=1;break;case "narrow":N=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[N];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[N];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[N];this.listEndPattern_=
this.listSymbols_.AND_END[N];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[N];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[N];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[N];this.listEndPattern_=this.listSymbols_.OR_END[N];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[N],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[N],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[N],this.listEndPattern_=this.listSymbols_.UNIT_END[N]}};
NxE.prototype.format=function(N){return bfE(this,N)};
var bfE=function(N,b){var S=b.length;switch(S){case 0:return"";case 1:return String(b[0]);case 2:return N.listTwoPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1]))}for(var P=N.listStartPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1])),H=2;H<S-1;++H)P=N.listMiddlePattern_.replace("{0}",P).replace("{1}",String(b[H]));return N.listEndPattern_.replace("{0}",P).replace("{1}",String(b[S-1]))};var SWN={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},PKZ=SWN,HfE=SWN;HfE=PKZ=SWN;var KHc,ay,Wo,VTU,Ry,s2d;
_.YG=function(N,b,S,P){var H;if(H=b){a:if(b&&b.length===3){for(H=0;H<3;H++){var K=b[H];if(K<"A"||K>"Z"&&K<"a"||K>"z"){H=!1;break a}}H=!0}else H=!1;H=!H}if(H)throw new TypeError("ge");this.intlCurrencyCode_=b?b.toUpperCase():null;this.currencyStyle_=S||0;this.overrideNumberFormatSymbols_=P||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=ay(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof N==="number")switch(N){case 1:Ry(this,ay(this).DECIMAL_PATTERN);break;case 2:Ry(this,ay(this).SCIENTIFIC_PATTERN);break;case 3:Ry(this,ay(this).PERCENT_PATTERN);break;case 4:N=ay(this).CURRENCY_PATTERN;b=["0"];if(S=
K1[Wo(this)]){S=S[0]&7;if(S>0)for(b.push("."),P=0;P<S;P++)b.push("0");N=N.replace(/0.00/g,b.join(""))}Ry(this,N);break;case 5:s2d(this,1);break;case 6:s2d(this,2);break;default:throw Error("je");}else Ry(this,N)};
KHc=!1;ay=function(N){return N.overrideNumberFormatSymbols_||(KHc?HfE:PKZ)};
Wo=function(N){return N.intlCurrencyCode_||ay(N).DEF_CURRENCY_CODE};
VTU=function(N,b){if(b>308)throw Error("ie`"+b);N.maximumFractionDigits_=b;return N};
Ry=function(N,b){var S=[0];N.positivePrefix_=vYz(N,b,S);for(var P=S[0],H=-1,K=0,C=0,G=0,a=-1,R=b.length,n=!0;S[0]<R&&n;S[0]++)switch(b.charAt(S[0])){case "#":C>0?G++:K++;a>=0&&H<0&&a++;break;case "0":if(G>0)throw Error("pe`"+b);C++;a>=0&&H<0&&a++;break;case ",":a>0&&N.groupingArray_.push(a);a=0;break;case ".":if(H>=0)throw Error("qe`"+b);H=K+C+G;break;case "E":if(N.useExponentialNotation_)throw Error("re`"+b);N.useExponentialNotation_=!0;N.minExponentDigits_=0;S[0]+1<R&&b.charAt(S[0]+1)=="+"&&(S[0]++,
N.useSignForPositiveExponent_=!0);for(;S[0]+1<R&&b.charAt(S[0]+1)=="0";)S[0]++,N.minExponentDigits_++;if(K+C<1||N.minExponentDigits_<1)throw Error("se`"+b);n=!1;break;default:S[0]--,n=!1}C==0&&K>0&&H>=0&&(C=H,C==0&&C++,G=K-C,K=C-1,C=1);if(H<0&&G>0||H>=0&&(H<K||H>K+C)||a==0)throw Error("te`"+b);G=K+C+G;N.maximumFractionDigits_=H>=0?G-H:0;H>=0&&(N.minimumFractionDigits_=K+C-H,N.minimumFractionDigits_<0&&(N.minimumFractionDigits_=0));N.minimumIntegerDigits_=(H>=0?H:G)-K;N.useExponentialNotation_&&(N.maximumIntegerDigits_=
K+N.minimumIntegerDigits_,N.maximumFractionDigits_==0&&N.minimumIntegerDigits_==0&&(N.minimumIntegerDigits_=1));N.groupingArray_.push(Math.max(0,a));N.decimalSeparatorAlwaysShown_=H==0||H==G;P=S[0]-P;N.positiveSuffix_=vYz(N,b,S);S[0]<b.length&&b.charAt(S[0])==";"?(S[0]++,N.multiplier_!=1&&(N.negativePercentSignExpected_=!0),N.negativePrefix_=vYz(N,b,S),S[0]+=P,N.negativeSuffix_=vYz(N,b,S)):(N.negativePrefix_+=N.positivePrefix_,N.negativeSuffix_+=N.positiveSuffix_)};
s2d=function(N,b){N.compactStyle_=b;Ry(N,ay(N).DECIMAL_PATTERN);N.minimumFractionDigits_=0;VTU(N,2);if(N.minimumFractionDigits_>0)throw Error("he");N.significantDigits_=2};
_.YG.prototype.parse=function(N,b){b=b||[0];if(this.compactStyle_!==0)throw Error("ke");N=N.replace(/ |\u202f/g,"\u00a0");var S=N.indexOf(this.positivePrefix_,b[0])==b[0],P=N.indexOf(this.negativePrefix_,b[0])==b[0];S&&P&&(this.positivePrefix_.length>this.negativePrefix_.length?P=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(S=!1));S?b[0]+=this.positivePrefix_.length:P&&(b[0]+=this.negativePrefix_.length);if(N.indexOf(ay(this).INFINITY,b[0])==b[0]){b[0]+=ay(this).INFINITY.length;var H=
Infinity}else{H=N;var K=!1,C=!1,G=!1,a=-1,R=1,n=ay(this).DECIMAL_SEP,d=ay(this).GROUP_SEP,m=ay(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");d=d.replace(/\u202f/g,"\u00a0");for(var k="";b[0]<H.length;b[0]++){var M=H.charAt(b[0]),l=Of9(this,M);if(l>=0&&l<=9)k+=l,G=!0;else if(M==n.charAt(0)){if(K||C)break;k+=".";K=!0}else if(M==d.charAt(0)&&("\u00a0"!=d.charAt(0)||b[0]+1<H.length&&Of9(this,H.charAt(b[0]+1))>=0)){if(K||C)break}else if(M==m.charAt(0)){if(C)break;k+="E";C=!0;a=b[0]}else if(M==
"+"||M=="-"){if(G&&a!=b[0]-1)break;k+=M}else if(this.multiplier_==1&&M==ay(this).PERCENT.charAt(0)){if(R!=1)break;R=100;if(G){b[0]++;break}}else if(this.multiplier_==1&&M==ay(this).PERMILL.charAt(0)){if(R!=1)break;R=1E3;if(G){b[0]++;break}}else break}this.multiplier_!=1&&(R=this.multiplier_);H=parseFloat(k)/R}if(S){if(N.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(P){if(N.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return P?
-H:H};
_.YG.prototype.format=function(N){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(N))return ay(this).NAN;var b=[];var S=N;if(this.compactStyle_==0)S=n1;else{S=Math.abs(S);var P=CK9(this,S<=1?0:G8N(S)).divisorBase;S=CK9(this,P+G8N(r5E(this,dR(S,-P)).intValue))}N=dR(N,-S.divisorBase);(P=N<0||N==0&&1/N<0)?S.negative_prefix?b.push(S.negative_prefix):(b.push(S.prefix),b.push(this.negativePrefix_)):(b.push(S.prefix),b.push(this.positivePrefix_));if(isFinite(N))if(N*=
P?-1:1,N*=this.multiplier_,this.useExponentialNotation_){var H=N;if(H==0)c5k(this,H,this.minimumIntegerDigits_,b),azb(this,0,b);else{var K=Math.floor(Math.log(H)/Math.log(10)+2E-15);H=dR(H,-K);var C=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(C=K%this.maximumIntegerDigits_,C<0&&(C=this.maximumIntegerDigits_+C),H=dR(H,C),K-=C,C=1):this.minimumIntegerDigits_<1?(K++,H=dR(H,-1)):(K-=this.minimumIntegerDigits_-1,H=dR(H,this.minimumIntegerDigits_-
1));c5k(this,H,C,b);azb(this,K,b)}}else c5k(this,N,this.minimumIntegerDigits_,b);else b.push(ay(this).INFINITY);P?S.negative_suffix?b.push(S.negative_suffix):(isFinite(N)&&b.push(S.suffix),b.push(this.negativeSuffix_)):(isFinite(N)&&b.push(S.suffix),b.push(this.positiveSuffix_));return b.join("")};
var r5E=function(N,b){var S=dR(b,N.maximumFractionDigits_);N.significantDigits_>0&&(S=R99(S,N.significantDigits_,N.maximumFractionDigits_));S=Math.round(S);if(isFinite(S)){var P=Math.floor(dR(S,-N.maximumFractionDigits_));S=Math.floor(S-dR(P,N.maximumFractionDigits_));if(S<0||S>=dR(1,N.maximumFractionDigits_))P=Math.round(b),S=0}else P=b,S=0;return{intValue:P,fracValue:S}},c5k=function(N,b,S,P){if(N.minimumFractionDigits_>N.maximumFractionDigits_)throw Error("me");
P||(P=[]);b=r5E(N,b);var H=b.intValue,K=b.fracValue,C=N.minimumFractionDigits_>0||K>0||!1;b=N.minimumFractionDigits_;C&&(b=N.minimumFractionDigits_);for(var G="",a=H;a>1E20;)G="0"+G,a=Math.round(dR(a,-1));G=a+G;var R=ay(N).DECIMAL_SEP;a=ay(N).ZERO_DIGIT.codePointAt(0);var n=G.length,d=0;if(H>0||S>0){for(H=n;H<S;H++)P.push(String.fromCodePoint(a));if(N.groupingArray_.length>=2)for(S=1;S<N.groupingArray_.length;S++)d+=N.groupingArray_[S];S=n-d;if(S>0){H=N.groupingArray_;d=n=0;for(var m,k=ay(N).GROUP_SEP,
M=G.length,l=0;l<M;l++)if(P.push(String.fromCodePoint(a+Number(G.charAt(l)))),M-l>1)if(m=H[d],l<S){var u=S-l;(m===1||m>0&&u%m===1)&&P.push(k)}else d<H.length&&(l===S?d+=1:m===l-S-n+1&&(P.push(k),n+=m,d+=1))}else{S=G;G=N.groupingArray_;H=ay(N).GROUP_SEP;m=S.length;k=[];for(n=G.length-1;n>=0&&m>0;n--){d=G[n];for(M=0;M<d&&m-M-1>=0;M++)k.push(String.fromCodePoint(a+Number(S.charAt(m-M-1))));m-=d;m>0&&k.push(H)}P.push.apply(P,k.reverse())}}else C||P.push(String.fromCodePoint(a));(N.decimalSeparatorAlwaysShown_||
C)&&P.push(R);K=String(K);C=K.split("e+");C.length==2&&(K=String(R99(parseFloat(C[0]),N.significantDigits_,1)),K=K.replace(".",""),K+=(0,_.ySN)("0",parseInt(C[1],10)-K.length+1));N.maximumFractionDigits_+1>K.length&&(K="1"+(0,_.ySN)("0",N.maximumFractionDigits_-K.length)+K);for(N=K.length;K.charAt(N-1)=="0"&&N>b+1;)N--;for(b=1;b<N;b++)P.push(String.fromCodePoint(a+Number(K.charAt(b))))},azb=function(N,b,S){S.push(ay(N).EXP_SYMBOL);
b<0?(b=-b,S.push(ay(N).MINUS_SIGN)):N.useSignForPositiveExponent_&&S.push(ay(N).PLUS_SIGN);b=""+b;for(var P=ay(N).ZERO_DIGIT,H=b.length;H<N.minExponentDigits_;H++)S.push(P);N=P.codePointAt(0)-WHc;for(P=0;P<b.length;P++)S.push(String.fromCodePoint(N+b.codePointAt(P)))},Of9=function(N,b){b=b.codePointAt(0);
if(48<=b&&b<58)return b-48;N=ay(N).ZERO_DIGIT.codePointAt(0);return N<=b&&b<N+10?b-N:-1},WHc="0".codePointAt(0),vYz=function(N,b,S){for(var P="",H=!1,K=b.length;S[0]<K;S[0]++){var C=b.charAt(S[0]);
if(C=="'")S[0]+1<K&&b.charAt(S[0]+1)=="'"?(S[0]++,P+="'"):H=!H;else if(H)P+=C;else switch(C){case "#":case "0":case ",":case ".":case ";":return P;case "\u00a4":if(S[0]+1<K&&b.charAt(S[0]+1)=="\u00a4")S[0]++,P+=Wo(N);else switch(N.currencyStyle_){case 0:C=Wo(N);P+=C in K1?K1[C][1]:C;break;case 2:C=Wo(N);var G=K1[C];P+=G?C==G[1]?C:C+" "+G[1]:C;break;case 1:C=Wo(N),P+=C in K1?K1[C][2]:C}break;case "%":if(!N.negativePercentSignExpected_&&N.multiplier_!=1)throw Error("ne");if(N.negativePercentSignExpected_&&
N.multiplier_!=100)throw Error("oe");N.multiplier_=100;N.negativePercentSignExpected_=!1;P+=ay(N).PERCENT;break;case "\u2030":if(!N.negativePercentSignExpected_&&N.multiplier_!=1)throw Error("ne");if(N.negativePercentSignExpected_&&N.multiplier_!=1E3)throw Error("oe");N.multiplier_=1E3;N.negativePercentSignExpected_=!1;P+=ay(N).PERMILL;break;default:P+=C}}return P},n1={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},CK9=function(N,b){N=N.compactStyle_==1?sp.COMPACT_DECIMAL_SHORT_PATTERN:sp.COMPACT_DECIMAL_LONG_PATTERN;N==null&&(N=sp.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return n1;b=Math.min(14,b);var S=N[dR(1,b)];for(--b;!S&&b>=3;)S=N[dR(1,b)],b--;if(!S)return n1;S=S.other;var P=N="",H=S.indexOf(";");H>=0&&(S=S.substring(0,H),H=S.substring(H+1))&&(P=/([^0]*)(0+)(.*)/.exec(H),N=P[1],P=P[3]);return S&&S!="0"?(S=/([^0]*)(0+)(.*)/.exec(S))?{divisorBase:b+
1-(S[2].length-1),negative_prefix:N,negative_suffix:P,prefix:S[1],suffix:S[3]}:n1:n1},G8N=function(N){if(!isFinite(N))return N>0?N:0;
for(var b=0;(N/=10)>=1;)b++;return b},dR=function(N,b){if(!N||!isFinite(N)||b==0)return N;
N=String(N).split("e");return parseFloat(N[0]+"e"+(parseInt(N[1]||0,10)+b))},nYb=function(N,b){return N&&isFinite(N)?dR(Math.round(dR(N,b)),-b):N},R99=function(N,b,S){if(!N)return N;
b=b-G8N(N)-1;return b<-S?nYb(N,-S):nYb(N,b)};var dbc=function(N){return N%10==1&&N%100!=11?"one":N%10==2&&N%100!=12?"two":N%10==3&&N%100!=13?"few":"other"},mbO=dbc;
mbO=dbc;var k8S=function(N,b){var S=N|0;if(void 0===b){b=Math;var P=b.min,H=N+"",K=H.indexOf(".");b=P.call(b,K===-1?0:H.length-K-1,3)}P=Math.pow(10,b);N={v:b,f:(N*P|0)%P};return S==1&&N.v==0?"one":"other"},Xk=k8S;
Xk=k8S;var FHd=function(N){this.JSC$11691_pattern_=N;this.parsedPattern_=this.literals_=this.initialLiterals_=null;N=PKZ;var b=sp;if(Tx9!==N||tFE!==b)Tx9=N,tFE=b,MFE=new _.YG(1);this.numberFormatter_=MFE},Tx9=null,tFE=null,MFE=null,Bx9=RegExp("'([{}#].*?)'","g"),lz4=RegExp("''","g");
FHd.prototype.format=function(N){if(this.JSC$11691_pattern_){this.initialLiterals_=[];var b=LH9(this,this.JSC$11691_pattern_);this.parsedPattern_=fzb(this,b);this.JSC$11691_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.pa(this.initialLiterals_),b=[],u$9(this,this.parsedPattern_,N,!1,b),N=b.join("");this.literals_.length>0;)N=N.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else N="";return N};
var u$9=function(N,b,S,P,H){for(var K=0;K<b.length;K++)switch(b[K].type){case 4:H.push(b[K].value);break;case 3:var C=b[K].value;var G=N,a=H,R=S[C];R===void 0?a.push("Undefined parameter - "+C):(G.literals_.push(R),a.push(G.buildPlaceholder_(G.literals_)));break;case 2:C=b[K].value;G=N;a=S;R=P;var n=H,d=C.argumentIndex;a[d]===void 0?n.push("Undefined parameter - "+d):(d=C[a[d]],d===void 0&&(d=C.other),u$9(G,d,a,R,n));break;case 0:C=b[K].value;Q2V(N,C,S,Xk,P,H);break;case 1:C=b[K].value,Q2V(N,C,S,
mbO,P,H)}},Q2V=function(N,b,S,P,H,K){var C=b.argumentIndex,G=b.argumentOffset,a=+S[C];
isNaN(a)?K.push("Undefined or invalid parameter - "+C):(G=a-G,C=b[S[C]],C===void 0&&(P=P(Math.abs(G)),C=b[P],C===void 0&&(C=b.other)),b=[],u$9(N,C,S,H,b),S=b.join(""),H?K.push(S):(N=N.numberFormatter_.format(G),K.push(S.replace(/#/g,N))))},LH9=function(N,b){var S=N.initialLiterals_,P=N.buildPlaceholder_.bind(N);
b=b.replace(lz4,function(){S.push("'");return P(S)});
return b=b.replace(Bx9,function(H,K){S.push(K);return P(S)})},xbz=function(N){var b=0,S=[],P=[],H=/[{}]/g;
H.lastIndex=0;for(var K;K=H.exec(N);){var C=K.index;K[0]=="}"?(S.pop(),S.length==0&&(K={type:1},K.value=N.substring(b,C),P.push(K),b=C+1)):(S.length==0&&(b=N.substring(b,C),b!=""&&P.push({type:0,value:b}),b=C+1),S.push("{"))}N=N.substring(b);N!=""&&P.push({type:0,value:N});return P},oYO=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ifb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,J54=/^\s*(\w+)\s*,\s*select\s*,/,fzb=function(N,b){var S=[];
b=xbz(b);for(var P=0;P<b.length;P++){var H={};if(0==b[P].type)H.type=4,H.value=b[P].value;else if(1==b[P].type){var K=b[P].value;switch(oYO.test(K)?0:ifb.test(K)?1:J54.test(K)?2:/^\s*\w+\s*/.test(K)?3:5){case 2:H.type=2;H.value=Ubc(N,b[P].value);break;case 0:H.type=0;H.value=Zfd(N,b[P].value);break;case 1:H.type=1;H.value=j2k(N,b[P].value);break;case 3:H.type=3,H.value=b[P].value}}S.push(H)}return S},Ubc=function(N,b){var S="";
b=b.replace(J54,function(G,a){S=a;return""});
var P={};P.argumentIndex=S;b=xbz(b);for(var H=0;H<b.length;){var K=b[H].value;H++;var C=void 0;1==b[H].type&&(C=fzb(N,b[H].value));P[K.replace(/\s/g,"")]=C;H++}return P},Zfd=function(N,b){var S="",P=0;
b=b.replace(oYO,function(a,R,n){S=R;n&&(P=parseInt(n,10));return""});
var H={};H.argumentIndex=S;H.argumentOffset=P;b=xbz(b);for(var K=0;K<b.length;){var C=b[K].value;K++;var G=void 0;1==b[K].type&&(G=fzb(N,b[K].value));H[C.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=G;K++}return H},j2k=function(N,b){var S="";
b=b.replace(ifb,function(G,a){S=a;return""});
var P={};P.argumentIndex=S;P.argumentOffset=0;b=xbz(b);for(var H=0;H<b.length;){var K=b[H].value;H++;var C=void 0;1==b[H].type&&(C=fzb(N,b[H].value));P[K.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=C;H++}return P};
FHd.prototype.buildPlaceholder_=function(N){return"\ufddf_"+(N.length-1).toString(10)+"_"};var WLI=function(){var N={style:1},b=z9N;this.style_=(N==null?void 0:N.style)||0;this.durationSymbols_=b||qbb},A5E=function(N,b){switch(b){default:case "years":return N.durationSymbols_.YEAR;
case "months":return N.durationSymbols_.MONTH;case "weeks":return N.durationSymbols_.WEEK;case "days":return N.durationSymbols_.DAY;case "hours":return N.durationSymbols_.HOUR;case "minutes":return N.durationSymbols_.MINUTE;case "seconds":return N.durationSymbols_.SECOND}},mp=function(N,b,S){a:{S=A5E(N,S);
switch(N.style_){case 1:if(S.LONG!=void 0){N=S.LONG;break a}case 2:if(S.NARROW!=void 0){N=S.NARROW;break a}default:N=S.SHORT;break a}N=void 0}return N?(new FHd("{DURATION_VALUE,plural,"+N+"}")).format({DURATION_VALUE:b}):""};
WLI.prototype.format=function(N){var b=[],S=N.years,P=N.months,H=N.weeks,K=N.days,C=N.hours,G=N.minutes;N=N.seconds;S!=null&&b.push(mp(this,S,"years"));P!=null&&b.push(mp(this,P,"months"));H!=null&&b.push(mp(this,H,"weeks"));K!=null&&b.push(mp(this,K,"days"));C!=null&&b.push(mp(this,C,"hours"));G!=null&&b.push(mp(this,G,"minutes"));N!=null&&b.push(mp(this,N,"seconds"));return(new NxE).format(b)};var Xm9;
Xm9={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var xJo=function(){this.rdtfSymbols_=EYl||Xm9;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
xJo.prototype.format=function(N,b){a:{b=pmN(this,b);switch(this.style_){case 2:if(b.NARROW!=void 0){b=b.NARROW;break a}case 1:if(b.SHORT!=void 0){b=b.SHORT;break a}default:b=b.LONG;break a}b=void 0}if(!this.alwaysNumeric_&&b&&b.R&&b.R[""+N])N=b.R[""+N];else if(b){var S=Math.abs(N);N=(new FHd("{N,plural,"+(N>0||N==0&&1/N==Infinity?b.F:b.P)+"}")).format({N:S})}else N="";return N};
var pmN=function(N,b){switch(b){default:case 0:return N.rdtfSymbols_.YEAR;case 1:return N.rdtfSymbols_.QUARTER;case 2:return N.rdtfSymbols_.MONTH;case 3:return N.rdtfSymbols_.WEEK;case 4:return N.rdtfSymbols_.DAY;case 5:return N.rdtfSymbols_.HOUR;case 6:return N.rdtfSymbols_.MINUTE;case 7:return N.rdtfSymbols_.SECOND}};var YWb=function(N,b,S,P,H,K,C,G){this.x0=N;this.y0=b;this.x1=S;this.y1=P;this.x2=H;this.y2=K;this.x3=C;this.y3=G};
YWb.prototype.clone=function(){return new YWb(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
YWb.prototype.equals=function(N){return this.x0==N.x0&&this.y0==N.y0&&this.x1==N.x1&&this.y1==N.y1&&this.x2==N.x2&&this.y2==N.y2&&this.x3==N.x3&&this.y3==N.y3};
var y59=function(N,b){if(b==0)return N.x0;if(b==1)return N.x3;var S=J6(N.x0,N.x1,b),P=J6(N.x1,N.x2,b);N=J6(N.x2,N.x3,b);S=J6(S,P,b);P=J6(P,N,b);return J6(S,P,b)},Iz4=function(N,b){var S=(b-N.x0)/(N.x3-N.x0);
if(S<=0)return 0;if(S>=1)return 1;for(var P=0,H=1,K=0,C=0;C<8;C++){K=y59(N,S);var G=(y59(N,S+1E-6)-K)/1E-6;if(Math.abs(K-b)<1E-6)return S;if(Math.abs(G)<1E-6)break;else K<b?P=S:H=S,S-=(K-b)/G}for(C=0;Math.abs(K-b)>1E-6&&C<8;C++)K<b?(P=S,S=(S+H)/2):(H=S,S=(S+P)/2),K=y59(N,S);return S};var kM=function(){_.J1.call(this);this.JSC$11712_name_="closure_frame"+Dbz++;this.iframesForDisposal_=[];VFc[this.JSC$11712_name_]=this},T$;
_.Km(kM,_.J1);var VFc={},Dbz=0,gYk=function(N,b){var S=zn(N);$Yz(b,function(P,H){Array.isArray(P)||(P=[P]);_.NX(P,function(K){K=S.JSC$9561_createDom("INPUT",{type:"hidden",name:H,value:K});N.appendChild(K)})})};
_.v=kM.prototype;_.v.JSC$11714_form_=null;_.v.JSC$11714_iframe_=null;_.v.iframeName_=null;_.v.nextIframeId_=0;_.v.JSC$11714_active_=!1;_.v.complete_=!1;_.v.success_=!1;_.v.lastContent_=null;_.v.JSC$11714_lastErrorCode_=0;_.v.iframeDisposalTimer_=null;
_.v.send=function(N,b,S,P){if(this.JSC$11714_active_)throw Error("ue");N=new _.DV(N);b=b?b.toUpperCase():"GET";S&&_.B0(N);T$||(T$=_.z3("FORM"),T$.acceptCharset="utf-8",S=T$.style,S.position="absolute",S.visibility="hidden",S.top=S.left="-10px",S.width=S.height="10px",S.overflow="hidden",document.body.appendChild(T$));this.JSC$11714_form_=T$;b=="GET"&&gYk(this.JSC$11714_form_,N.JSC$10265_queryData_);P&&gYk(this.JSC$11714_form_,P);S=N.toString();S=etO(S);P=this.JSC$11714_form_;S=_.hS(XH(S));S!==void 0&&
(P.action=S);this.JSC$11714_form_.method=b;e99(this);$bk(this)};
_.v.abort=function(N){if(this.JSC$11714_active_){var b=tH(this);if(b)if(xj(b))b.removeAllListeners(void 0);else if(b=od(b)){var S=0,P;for(P in b.listeners)for(var H=b.listeners[P].concat(),K=0;K<H.length;++K)Mu(H[K])&&++S}this.success_=this.JSC$11714_active_=this.complete_=!1;this.JSC$11714_lastErrorCode_=N||7;this.dispatchEvent("abort");h9Z(this)}};
_.v.disposeInternal=function(){this.JSC$11714_active_&&this.abort();kM.superClass_.disposeInternal.call(this);this.JSC$11714_iframe_&&qW9(this);$bk(this);this.JSC$11714_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11714_form_=null;this.JSC$11714_lastErrorCode_=0;delete VFc[this.JSC$11712_name_]};
_.v.isComplete=function(){return this.complete_};
_.v.isSuccess=function(){return this.success_};
_.v.isActive=function(){return this.JSC$11714_active_};
_.v.getResponseText=function(){return this.lastContent_};
_.v.getLastError=function(){return _.B8S(this.JSC$11714_lastErrorCode_)};
var e99=function(N){N.JSC$11714_active_=!0;N.complete_=!1;N.JSC$11714_lastErrorCode_=0;N.iframeName_=N.JSC$11712_name_+"_"+(N.nextIframeId_++).toString(36);N.JSC$11714_iframe_=zn(N.JSC$11714_form_).JSC$9561_createDom("IFRAME",{name:N.iframeName_,id:N.iframeName_});var b=N.JSC$11714_iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";_.FG?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");zn(N.JSC$11714_form_).JSC$9559_document_.body.appendChild(N.JSC$11714_iframe_);
b=N.iframeName_+"_inner";var S=Gnd(N.JSC$11714_iframe_);if(document.baseURI){var P=Kf(b);P='<head><base href="'+Kf(document.baseURI)+'"></head><body><iframe id="'+P+'" name="'+P+'"></iframe>';P=Nt(P)}else P=Kf(b),P=Nt('<body><iframe id="'+P+'" name="'+P+'"></iframe>');S.write(b4(P));_.lH(S.getElementById(b),"load",N.onIframeLoaded_,!1,N);P=jG("TEXTAREA",N.JSC$11714_form_);for(var H=0,K=P.length;H<K;H++){var C=P[H].value;no9(P[H])!=C&&(_.IS(P[H],C),P[H].value=C)}P=S.importNode(N.JSC$11714_form_,!0);
P.target=b;P.action=N.JSC$11714_form_.action;S.body.appendChild(P);H=jG("SELECT",N.JSC$11714_form_);K=jG("SELECT",P);C=0;for(var G=H.length;C<G;C++)for(var a=jG("OPTION",H[C]),R=jG("OPTION",K[C]),n=0,d=a.length;n<d;n++)R[n].selected=a[n].selected;H=jG("INPUT",N.JSC$11714_form_);K=jG("INPUT",P);C=0;for(G=H.length;C<G;C++)if(H[C].type=="file"&&H[C].value!=K[C].value){N.JSC$11714_form_.target=b;P=N.JSC$11714_form_;break}try{N.errorHandled_=!1,P.submit(),S.close(),_.B_&&setTimeout(N.testForFirefoxSilentError_.bind(N),
250)}catch(m){_.iW(S.getElementById(b),"load",N.onIframeLoaded_,!1,N),S.close(),MP(N,2)}};
kM.prototype.onIframeLoaded_=function(){_.iW(tH(this),"load",this.onIframeLoaded_,!1,this);try{var N=this.JSC$11714_iframe_?Gnd(tH(this)):null;this.complete_=!0;this.JSC$11714_active_=!1;try{var b=N.body;this.lastContent_=b.textContent||b.innerText}catch(H){var S=1}var P;S||typeof this.errorChecker_!="function"||(P=this.errorChecker_(N))&&(S=4);S?MP(this,S):(this.success_=!0,this.JSC$11714_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),h9Z(this))}catch(H){MP(this,1)}};
var MP=function(N,b){N.errorHandled_||(N.success_=!1,N.JSC$11714_active_=!1,N.complete_=!0,N.JSC$11714_lastErrorCode_=b,N.dispatchEvent("complete"),N.dispatchEvent("error"),h9Z(N),N.errorHandled_=!0)},h9Z=function(N){qW9(N);
$bk(N);N.JSC$11714_form_=null;N.dispatchEvent("ready")},qW9=function(N){var b=N.JSC$11714_iframe_;
b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,N.iframesForDisposal_.push(b));N.iframeDisposalTimer_&&(clearTimeout(N.iframeDisposalTimer_),N.iframeDisposalTimer_=null);_.B_?N.iframeDisposalTimer_=setTimeout(N.disposeIframes_.bind(N),2E3):N.disposeIframes_();N.JSC$11714_iframe_=null;N.iframeName_=null};
kM.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var N=this.iframesForDisposal_.pop();_.Zg(N)}};
var $bk=function(N){N.JSC$11714_form_&&N.JSC$11714_form_==T$&&_.E7(N.JSC$11714_form_)},tH=function(N){return N.JSC$11714_iframe_?Gnd(N.JSC$11714_iframe_).getElementById(N.iframeName_+"_inner"):null};
kM.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11714_active_){var N=this.JSC$11714_iframe_?Gnd(tH(this)):null;N&&!pRa(N,"documentUri")?(_.iW(tH(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?MP(this,3):MP(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.FX=function(N){return N=="\r"||N=="\n"||N==" "||N=="\t"};var wm9;_.Bo=function(N){this.errorMessage_=null;this.result_=[];this.JSC$11716_buffer_="";this.stack_=[];this.JSC$11716_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!N||!N.deliverMessageAsRawString)};
wm9={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.Bo.prototype.isInputValid=function(){return this.streamState_!=3};
_.Bo.prototype.done=function(){return this.streamState_===2};
var lG=function(N,b,S){N.streamState_=3;N.errorMessage_="The stream is broken @"+N.JSC$11716_pos_+"/"+S+". With input:\n"+b;throw Error(N.errorMessage_);};
_.Bo.prototype.acceptsBinaryInput=function(){return!1};
_.Bo.prototype.parse=function(N){function b(){for(;m<N.length;)if(_.FX(N[m]))m++,K.JSC$11716_pos_++;else break;return m<R}
function S(){for(var M;;){M=N[m++];if(!M)break;K.JSC$11716_pos_++;switch(K.state_){case a.INIT:M==="{"?K.state_=a.OBJECT_OPEN:M==="["?K.state_=a.ARRAY_OPEN:_.FX(M)||lG(K,N,m);continue;case a.KEY_START:case a.OBJECT_OPEN:if(_.FX(M))continue;if(K.state_===a.KEY_START)C.push(a.KEY_END);else if(M==="}"){H("{}");K.state_=P();continue}else C.push(a.OBJECT_END);M==='"'?K.state_=a.STRING:lG(K,N,m);continue;case a.KEY_END:case a.OBJECT_END:if(_.FX(M))continue;M===":"?(K.state_===a.OBJECT_END&&(C.push(a.OBJECT_END),
K.depth_++),K.state_=a.VALUE):M==="}"?(K.depth_--,H(),K.state_=P()):M===","?(K.state_===a.OBJECT_END&&C.push(a.OBJECT_END),K.state_=a.KEY_START):lG(K,N,m);continue;case a.ARRAY_OPEN:case a.VALUE:if(_.FX(M))continue;if(K.state_===a.ARRAY_OPEN)if(K.depth_++,K.state_=a.VALUE,M==="]"){K.depth_--;if(K.depth_===0){K.state_=a.ARRAY_END;return}H("[]");K.state_=P();continue}else C.push(a.ARRAY_END);M==='"'?K.state_=a.STRING:M==="{"?K.state_=a.OBJECT_OPEN:M==="["?K.state_=a.ARRAY_OPEN:M==="t"?K.state_=a.TRUE1:
M==="f"?K.state_=a.FALSE1:M==="n"?K.state_=a.NULL1:M!=="-"&&("0123456789".indexOf(M)!==-1?K.state_=a.NUM_DIGIT:lG(K,N,m));continue;case a.ARRAY_END:if(M===",")C.push(a.ARRAY_END),K.state_=a.VALUE,K.depth_===1&&(d=m);else if(M==="]"){K.depth_--;if(K.depth_===0)return;H();K.state_=P()}else if(_.FX(M))continue;else lG(K,N,m);continue;case a.STRING:var l=m;a:for(;;){for(;K.unicodeCount_>0;)if(M=N[m++],K.unicodeCount_===4?K.unicodeCount_=0:K.unicodeCount_++,!M)break a;if(M==='"'&&!K.slashed_){K.state_=
P();break}if(M==="\\"&&!K.slashed_&&(K.slashed_=!0,M=N[m++],!M))break;if(K.slashed_)if(K.slashed_=!1,M==="u"&&(K.unicodeCount_=1),M=N[m++])continue;else break;G.lastIndex=m;M=G.exec(N);if(!M){m=N.length+1;break}m=M.index+1;M=N[M.index];if(!M)break}K.JSC$11716_pos_+=m-l;continue;case a.TRUE1:if(!M)continue;M==="r"?K.state_=a.TRUE2:lG(K,N,m);continue;case a.TRUE2:if(!M)continue;M==="u"?K.state_=a.TRUE3:lG(K,N,m);continue;case a.TRUE3:if(!M)continue;M==="e"?K.state_=P():lG(K,N,m);continue;case a.FALSE1:if(!M)continue;
M==="a"?K.state_=a.FALSE2:lG(K,N,m);continue;case a.FALSE2:if(!M)continue;M==="l"?K.state_=a.FALSE3:lG(K,N,m);continue;case a.FALSE3:if(!M)continue;M==="s"?K.state_=a.FALSE4:lG(K,N,m);continue;case a.FALSE4:if(!M)continue;M==="e"?K.state_=P():lG(K,N,m);continue;case a.NULL1:if(!M)continue;M==="u"?K.state_=a.NULL2:lG(K,N,m);continue;case a.NULL2:if(!M)continue;M==="l"?K.state_=a.NULL3:lG(K,N,m);continue;case a.NULL3:if(!M)continue;M==="l"?K.state_=P():lG(K,N,m);continue;case a.NUM_DECIMAL_POINT:M===
"."?K.state_=a.NUM_DIGIT:lG(K,N,m);continue;case a.NUM_DIGIT:if("0123456789.eE+-".indexOf(M)!==-1)continue;else m--,K.JSC$11716_pos_--,K.state_=P();continue;default:lG(K,N,m)}}}
function P(){var M=C.pop();return M!=null?M:a.VALUE}
function H(M){K.depth_>1||(M||(M=d===-1?K.JSC$11716_buffer_+N.substring(n,m):N.substring(d,m)),K.deliverMessageAsRawString_?K.result_.push(M):K.result_.push(JSON.parse(M)),d=m)}
for(var K=this,C=K.stack_,G=K.stringInputPattern_,a=wm9,R=N.length,n=0,d=-1,m=0;m<R;)switch(K.streamState_){case 3:return lG(K,N,m),null;case 2:return b()&&lG(K,N,m),null;case 0:if(b()){var k=N[m++];K.JSC$11716_pos_++;if(k==="["){K.streamState_=1;n=m;K.state_=a.ARRAY_OPEN;continue}else lG(K,N,m)}return null;case 1:return S(),K.depth_===0&&K.state_==a.ARRAY_END?(K.streamState_=2,K.JSC$11716_buffer_=N.substring(m)):K.JSC$11716_buffer_=d===-1?K.JSC$11716_buffer_+N.substring(n):N.substring(d),K.result_.length>
0?(k=K.result_,K.result_=[],k):null}return null};_.Km(_.Q6,Az);xX.prototype.getValue=function(){return this.JSC$11724_value_};
xX.prototype.clone=function(){return new xX(this.JSC$11724_key_,this.JSC$11724_value_)};var L1=function(N){this.nodes_=[];if(N)a:{if(N instanceof L1){var b=N.getKeys();N=N.getValues();if(this.getCount()<=0){for(var S=this.nodes_,P=0;P<b.length;P++)S.push(new xX(b[P],N[P]));break a}}else b=_.Vm.getKeys(N),N=_.Vm.getValues(N);for(S=0;S<b.length;S++)this.insert(b[S],N[S])}};
_.v=L1.prototype;_.v.insert=function(N,b){var S=this.nodes_;S.push(new xX(N,b));N=S.length-1;b=this.nodes_;for(S=b[N];N>0;){var P=N-1>>1;if(b[P].JSC$11724_key_>S.JSC$11724_key_)b[N]=b[P],N=P;else break}b[N]=S};
_.v.remove=function(){var N=this.nodes_,b=N.length,S=N[0];if(!(b<=0)){if(b==1)N.length=0;else{N[0]=N.pop();N=0;b=this.nodes_;for(var P=b.length,H=b[N];N<P>>1;){var K=N*2+1,C=N*2+2;K=C<P&&b[C].JSC$11724_key_<b[K].JSC$11724_key_?C:K;if(b[K].JSC$11724_key_>H.JSC$11724_key_)break;b[N]=b[K];N=K}b[N]=H}return S.getValue()}};
_.v.peek=function(){var N=this.nodes_;if(N.length!=0)return N[0].getValue()};
_.v.getValues=function(){for(var N=this.nodes_,b=[],S=N.length,P=0;P<S;P++)b.push(N[P].getValue());return b};
_.v.getKeys=function(){for(var N=this.nodes_,b=[],S=N.length,P=0;P<S;P++)b.push(N[P].JSC$11724_key_);return b};
_.v.containsValue=function(N){return this.nodes_.some(function(b){return b.getValue()==N})};
_.v.containsKey=function(N){return this.nodes_.some(function(b){return b.JSC$11724_key_==N})};
_.v.clone=function(){return new L1(this)};
_.v.getCount=function(){return this.nodes_.length};
_.v.isEmpty=function(){return this.nodes_.length===0};
_.v.clear=function(){this.nodes_.length=0};_.f1=function(N,b){this.JSC$11730_map_={};this.JSC$11730_keys_=[];this.version_=this.size=0;var S=arguments.length;if(S>1){if(S%2)throw Error("ma");for(var P=0;P<S;P+=2)this.set(arguments[P],arguments[P+1])}else N&&this.addAll(N)};
_.v=_.f1.prototype;_.v.getCount=function(){return this.size};
_.v.getValues=function(){uG(this);for(var N=[],b=0;b<this.JSC$11730_keys_.length;b++)N.push(this.JSC$11730_map_[this.JSC$11730_keys_[b]]);return N};
_.v.getKeys=function(){uG(this);return this.JSC$11730_keys_.concat()};
_.v.containsKey=function(N){return this.has(N)};
_.v.has=function(N){return Q8(this.JSC$11730_map_,N)};
_.v.containsValue=function(N){for(var b=0;b<this.JSC$11730_keys_.length;b++){var S=this.JSC$11730_keys_[b];if(Q8(this.JSC$11730_map_,S)&&this.JSC$11730_map_[S]==N)return!0}return!1};
_.v.equals=function(N,b){if(this===N)return!0;if(this.size!=N.getCount())return!1;b=b||NOZ;uG(this);for(var S,P=0;S=this.JSC$11730_keys_[P];P++)if(!b(this.get(S),N.get(S)))return!1;return!0};
var NOZ=function(N,b){return N===b};
_.f1.prototype.isEmpty=function(){return this.size==0};
_.f1.prototype.clear=function(){this.JSC$11730_map_={};this.version_=this.size=this.JSC$11730_keys_.length=0};
_.f1.prototype.remove=function(N){return this.delete(N)};
_.f1.prototype.delete=function(N){return Q8(this.JSC$11730_map_,N)?(delete this.JSC$11730_map_[N],--this.size,this.version_++,this.JSC$11730_keys_.length>2*this.size&&uG(this),!0):!1};
var uG=function(N){if(N.size!=N.JSC$11730_keys_.length){for(var b=0,S=0;b<N.JSC$11730_keys_.length;){var P=N.JSC$11730_keys_[b];Q8(N.JSC$11730_map_,P)&&(N.JSC$11730_keys_[S++]=P);b++}N.JSC$11730_keys_.length=S}if(N.size!=N.JSC$11730_keys_.length){b={};for(P=S=0;S<N.JSC$11730_keys_.length;){var H=N.JSC$11730_keys_[S];Q8(b,H)||(N.JSC$11730_keys_[P++]=H,b[H]=1);S++}N.JSC$11730_keys_.length=P}};
_.v=_.f1.prototype;_.v.get=function(N,b){return Q8(this.JSC$11730_map_,N)?this.JSC$11730_map_[N]:b};
_.v.set=function(N,b){Q8(this.JSC$11730_map_,N)||(this.size+=1,this.JSC$11730_keys_.push(N),this.version_++);this.JSC$11730_map_[N]=b};
_.v.addAll=function(N){if(N instanceof _.f1)for(var b=N.getKeys(),S=0;S<b.length;S++)this.set(b[S],N.get(b[S]));else for(b in N)this.set(b,N[b])};
_.v.forEach=function(N,b){for(var S=this.getKeys(),P=0;P<S.length;P++){var H=S[P],K=this.get(H);N.call(b,K,H,this)}};
_.v.clone=function(){return new _.f1(this)};
_.v.transpose=function(){for(var N=new _.f1,b=0;b<this.JSC$11730_keys_.length;b++){var S=this.JSC$11730_keys_[b];N.set(this.JSC$11730_map_[S],S)}return N};
_.v.keys=function(){return m7b(this.__iterator__(!0)).toEs6()};
_.v.values=function(){return m7b(this.__iterator__(!1)).toEs6()};
_.v.entries=function(){var N=this;return jqk(this.keys(),function(b){return[b,N.get(b)]})};
_.v.__iterator__=function(N){uG(this);var b=0,S=this.version_,P=this,H=new Mk;H.next=function(){if(S!=P.version_)throw Error("ve");if(b>=P.JSC$11730_keys_.length)return FI;var K=P.JSC$11730_keys_[b++];return BF(N?K:P.JSC$11730_map_[K])};
return H};
var Q8=function(N,b){return Object.prototype.hasOwnProperty.call(N,b)};var SxS=function(){this.JSC$11733_map_=new _.f1;this.JSC$11733_head_=new boN("");this.JSC$11733_head_.next=this.JSC$11733_head_.prev=this.JSC$11733_head_},PFN=function(N,b){if(b=N.JSC$11733_map_.get(b))b.remove(),N.insert_(b);
return b};
_.v=SxS.prototype;_.v.get=function(N,b){return(N=PFN(this,N))?N.value:b};
_.v.set=function(N,b){var S=PFN(this,N);S?S.value=b:(S=new boN(N,b),this.JSC$11733_map_.set(N,S),this.insert_(S))};
_.v.peek=function(){return this.JSC$11733_head_.next.value};
_.v.shift=function(){return Hoc(this,this.JSC$11733_head_.next)};
_.v.pop=function(){return Hoc(this,this.JSC$11733_head_.prev)};
_.v.remove=function(N){return(N=this.JSC$11733_map_.get(N))?(this.removeNode(N),!0):!1};
_.v.removeNode=function(N){N.remove();this.JSC$11733_map_.remove(N.key)};
_.v.getCount=function(){return this.JSC$11733_map_.getCount()};
_.v.isEmpty=function(){return this.JSC$11733_map_.isEmpty()};
_.v.getKeys=function(){return this.map(function(N,b){return b})};
_.v.getValues=function(){return this.map(function(N){return N})};
_.v.contains=function(N){return this.some(function(b){return b==N})};
_.v.containsKey=function(N){return this.JSC$11733_map_.containsKey(N)};
_.v.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11733_head_.prev)};
_.v.forEach=function(N,b){for(var S=this.JSC$11733_head_.next;S!=this.JSC$11733_head_;S=S.next)N.call(b,S.value,S.key,this)};
_.v.map=function(N,b){for(var S=[],P=this.JSC$11733_head_.next;P!=this.JSC$11733_head_;P=P.next)S.push(N.call(b,P.value,P.key,this));return S};
_.v.some=function(N,b){for(var S=this.JSC$11733_head_.next;S!=this.JSC$11733_head_;S=S.next)if(N.call(b,S.value,S.key,this))return!0;return!1};
_.v.every=function(N,b){for(var S=this.JSC$11733_head_.next;S!=this.JSC$11733_head_;S=S.next)if(!N.call(b,S.value,S.key,this))return!1;return!0};
_.v.insert_=function(N){N.next=this.JSC$11733_head_.next;N.prev=this.JSC$11733_head_;this.JSC$11733_head_.next=N;for(N.next.prev=N;this.getCount()>100;)this.removeNode(this.JSC$11733_head_.prev)};
var Hoc=function(N,b){N.JSC$11733_head_!=b&&N.removeNode(b);return b.value},boN=function(N,b){this.key=N;
this.value=b};
boN.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var sJN=function(){L1.apply(this,arguments)};
_.F(sJN,L1);sJN.prototype.enqueue=function(N,b){this.insert(N,b)};var K8d=function(){var N=Error();N.name="SecurityError";throw N;},G2_=function(){return{get opener(){return null},
get closed(){return!0},get location(){K8d()},get document(){K8d()},postMessage:function(){},
close:function(){},
focus:function(){}}};var fAa={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var xHE={Aacute:"\u00c1",aacute:"\u00e1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",Acy:"\u0410",acy:"\u0430",AElig:"\u00c6",aelig:"\u00e6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\u00c0",agrave:"\u00e0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",
ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\u00c5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",
Aring:"\u00c5",aring:"\u00e5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",
because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",
blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",
boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",
Breve:"\u02d8",brvbar:"\u00a6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",
Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\u00c7",ccedil:"\u00e7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\u00b8",Cedilla:"\u00b8",cemptyv:"\u29b2",cent:"\u00a2",centerdot:"\u00b7",CenterDot:"\u00b7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",
circleddash:"\u229d",CircleDot:"\u2299",circledR:"\u00ae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",
cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\u00a9",COPY:"\u00a9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",
cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\u00a4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",
Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\u00b0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\u00b4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",
diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\u00a8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\u00f7",divide:"\u00f7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\u00a8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",
DoubleContourIntegral:"\u222f",DoubleDot:"\u00a8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",
downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",
duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\u00c9",eacute:"\u00e9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\u00ca",ecirc:"\u00ea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\u00c8",egrave:"\u00e8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",
elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",
Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\u00d0",eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",
fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\u00bd",frac13:"\u2153",frac14:"\u00bc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\u00be",frac35:"\u2157",
frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",
gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",
GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\u00bd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",
harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",
HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\u00cd",iacute:"\u00ed",ic:"\u2063",Icirc:"\u00ce",icirc:"\u00ee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\u00a1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\u00cc",igrave:"\u00ec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",
Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105","in":"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba","int":"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\u00bf",iscr:"\ud835\udcbe",
Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\u00cf",iuml:"\u00ef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",
Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\u00ab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",
Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",
ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",
leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",
lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",
ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",
LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",
lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\u00af",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",
mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\u00b5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\u00b7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",
Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\u00a0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",
ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",
nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",
nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\u00a0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\u00ac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",
NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",
NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",
NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",
nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",
nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\u00d1",ntilde:"\u00f1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",
nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\u00d3",oacute:"\u00f3",oast:"\u229b",Ocirc:"\u00d4",ocirc:"\u00f4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\u00d2",ograve:"\u00f2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",
olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\u00aa",ordm:"\u00ba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",
oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\u00d8",oslash:"\u00f8",osol:"\u2298",Otilde:"\u00d5",otilde:"\u00f5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\u00d6",ouml:"\u00f6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\u00b6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",
Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\u00b1",plusmn:"\u00b1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\u00b1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\u00a3",prap:"\u2ab7",
Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",
Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",
rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\u00bb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",
rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\u00ae",REG:"\u00ae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",
rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",
RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",
Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",
Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\u00a7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",
shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\u00ad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",
smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",
SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\u00af",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",
subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",
sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",
swarrow:"\u2199",swnwar:"\u292a",szlig:"\u00df",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",
thksim:"\u223c",THORN:"\u00de",thorn:"\u00fe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\u00d7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",
trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\u00da",uacute:"\u00fa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",
Ucirc:"\u00db",ucirc:"\u00fb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\u00d9",ugrave:"\u00f9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\u00a8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",
uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",
urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\u00dc",uuml:"\u00fc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",
varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",
vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",
Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\u00dd",yacute:"\u00fd",
YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\u00a5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\u00ff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",
Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};var veS={Aacute:"\u00c1",aacute:"\u00e1",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",AElig:"\u00c6",aelig:"\u00e6",Agrave:"\u00c0",agrave:"\u00e0",amp:"&",AMP:"&",Aring:"\u00c5",aring:"\u00e5",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",brvbar:"\u00a6",Ccedil:"\u00c7",ccedil:"\u00e7",cedil:"\u00b8",cent:"\u00a2",copy:"\u00a9",COPY:"\u00a9",curren:"\u00a4",deg:"\u00b0",divide:"\u00f7",Eacute:"\u00c9",eacute:"\u00e9",Ecirc:"\u00ca",ecirc:"\u00ea",Egrave:"\u00c8",egrave:"\u00e8",ETH:"\u00d0",
eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",frac12:"\u00bd",frac14:"\u00bc",frac34:"\u00be",gt:">",GT:">",Iacute:"\u00cd",iacute:"\u00ed",Icirc:"\u00ce",icirc:"\u00ee",iexcl:"\u00a1",Igrave:"\u00cc",igrave:"\u00ec",iquest:"\u00bf",Iuml:"\u00cf",iuml:"\u00ef",laquo:"\u00ab",lt:"<",LT:"<",macr:"\u00af",micro:"\u00b5",middot:"\u00b7",nbsp:"\u00a0",not:"\u00ac",Ntilde:"\u00d1",ntilde:"\u00f1",Oacute:"\u00d3",oacute:"\u00f3",Ocirc:"\u00d4",ocirc:"\u00f4",Ograve:"\u00d2",ograve:"\u00f2",ordf:"\u00aa",ordm:"\u00ba",
Oslash:"\u00d8",oslash:"\u00f8",Otilde:"\u00d5",otilde:"\u00f5",Ouml:"\u00d6",ouml:"\u00f6",para:"\u00b6",plusmn:"\u00b1",pound:"\u00a3",quot:'"',QUOT:'"',raquo:"\u00bb",reg:"\u00ae",REG:"\u00ae",sect:"\u00a7",shy:"\u00ad",sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",szlig:"\u00df",THORN:"\u00de",thorn:"\u00fe",times:"\u00d7",Uacute:"\u00da",uacute:"\u00fa",Ucirc:"\u00db",ucirc:"\u00fb",Ugrave:"\u00d9",ugrave:"\u00f9",uml:"\u00a8",Uuml:"\u00dc",uuml:"\u00fc",Yacute:"\u00dd",yacute:"\u00fd",yen:"\u00a5",
yuml:"\u00ff"};Object.keys({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}).join("|");Object.keys(xHE).join("|");var Oob=function(){function N(G){G.substr(-1)!==";"&&(G+=";");return C(G)}
for(var b=Object.keys(veS).sort(QSY),S=Object.keys(xHE).sort(QSY),P=0,H=0;P<S.length;P++)b[H]===S[P]?(S[P]+=";?",H++):S[P]+=";";var K=new RegExp("&(?:"+S.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=ova();return function(G){return String(G).replace(K,N)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

 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.
*/
var CFk={};var GM9=RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)","i"),rIl=/[\\&]/,cIz=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),aW9=RegExp('[&<>"]',"g"),RSb=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),W89=function(N){return N.charCodeAt(0)===92?N.charAt(1):Oob(N)},nec=function(N){return rIl.test(N)?N.replace(cIz,W89):N},dvS=function(N){try{var b,S="";
if(typeof H!=="string"){var P=H;var H=";/?:@&=+$,-_.!~*'()#"}typeof P==="undefined"&&(P=!0);var K,C=CFk[H];if(C)var G=C;else{C=CFk[H]=[];for(K=0;K<128;K++){var a=String.fromCharCode(K);/^[0-9a-z]$/i.test(a)?C.push(a):C.push("%"+("0"+K.toString(16).toUpperCase()).slice(-2))}for(K=0;K<H.length;K++)C[H.charCodeAt(K)]=H[K];G=C}var R=0;for(b=N.length;R<b;R++){var n=N.charCodeAt(R);if(P&&n===37&&R+2<b&&/^[0-9a-f]{2}$/i.test(N.slice(R+1,R+3)))S+=N.slice(R,R+3),R+=2;else if(n<128)S+=G[n];else if(n>=55296&&
n<=57343){if(n>=55296&&n<=56319&&R+1<b){var d=N.charCodeAt(R+1);if(d>=56320&&d<=57343){S+=encodeURIComponent(N[R]+N[R+1]);R++;continue}}S+="%EF%BF%BD"}else S+=encodeURIComponent(N[R])}return S}catch(m){return N}},mvz=function(N){switch(N){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return N}},xM=function(N,b){return aW9.test(N)?b?N.replace(RSb,mvz):N.replace(aW9,mvz):N};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

 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.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var oy;if(String.fromCodePoint)oy=function(N){try{return String.fromCodePoint(N)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b;}};
else{var kMO=String.fromCharCode,TOd=Math.floor;oy=function(){var N=[],b=-1,S=arguments.length;if(!S)return"";for(var P="";++b<S;){var H=Number(arguments[b]);if(!isFinite(H)||H<0||H>1114111||TOd(H)!==H)return String.fromCharCode(65533);if(H<=65535)N.push(H);else{H-=65536;var K=(H>>10)+55296;H=H%1024+56320;N.push(K,H)}if(b+1===S||N.length>16384)P+=kMO.apply(null,N),N.length=0}return P}};var t8N=function(N){this.root=this.current=N;this.entering=!0};
t8N.prototype.next=function(){var N=this.current,b=this.entering;if(N===null)return null;a:switch(N._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var S=!0;break a;default:S=!1}b&&S?N._firstChild?(this.current=N._firstChild,this.entering=!0):this.entering=!1:N===this.root?this.current=null:N._next===null?(this.current=
N._parent,this.entering=!1):(this.current=N._next,this.entering=!0);return{entering:b,node:N}};
var Us=function(N,b){this._type=N;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Us.prototype.appendChild=function(N){N.unlink();N._parent=this;this._lastChild?(this._lastChild._next=N,N._prev=this._lastChild):this._firstChild=N;this._lastChild=N};
Us.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var M8d=function(N,b){b.unlink();b._next=N._next;b._next&&(b._next._prev=b);b._prev=N;N._next=b;b._parent=N._parent;b._next||(b._parent._lastChild=b)};
Us.prototype.insertBefore=function(N){N.unlink();N._prev=this._prev;N._prev&&(N._prev._next=N);N._next=this;this._prev=N;N._parent=this._parent;N._prev||(N._parent._firstChild=N)};
_.d0.Object.defineProperties(Us.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(N){this._literal=N}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(N){this._destination=N}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(N){this._title=N}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(N){this._info=N}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(N){this._level=N}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(N){this._listData.type=N}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(N){this._listData.tight=N}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(N){this._listData.start=N}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(N){this._onEnter=N}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(N){this._onExit=N}}});var iLY=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,
J6I={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","\u00b5":"\u03bc","\u00c0":"\u00e0","\u00c1":"\u00e1","\u00c2":"\u00e2","\u00c3":"\u00e3","\u00c4":"\u00e4","\u00c5":"\u00e5","\u00c6":"\u00e6","\u00c7":"\u00e7","\u00c8":"\u00e8","\u00c9":"\u00e9","\u00ca":"\u00ea","\u00cb":"\u00eb","\u00cc":"\u00ec","\u00cd":"\u00ed","\u00ce":"\u00ee","\u00cf":"\u00ef","\u00d0":"\u00f0","\u00d1":"\u00f1",
"\u00d2":"\u00f2","\u00d3":"\u00f3","\u00d4":"\u00f4","\u00d5":"\u00f5","\u00d6":"\u00f6","\u00d8":"\u00f8","\u00d9":"\u00f9","\u00da":"\u00fa","\u00db":"\u00fb","\u00dc":"\u00fc","\u00dd":"\u00fd","\u00de":"\u00fe","\u0100":"\u0101","\u0102":"\u0103","\u0104":"\u0105","\u0106":"\u0107","\u0108":"\u0109","\u010a":"\u010b","\u010c":"\u010d","\u010e":"\u010f","\u0110":"\u0111","\u0112":"\u0113","\u0114":"\u0115","\u0116":"\u0117","\u0118":"\u0119","\u011a":"\u011b","\u011c":"\u011d","\u011e":"\u011f",
"\u0120":"\u0121","\u0122":"\u0123","\u0124":"\u0125","\u0126":"\u0127","\u0128":"\u0129","\u012a":"\u012b","\u012c":"\u012d","\u012e":"\u012f","\u0132":"\u0133","\u0134":"\u0135","\u0136":"\u0137","\u0139":"\u013a","\u013b":"\u013c","\u013d":"\u013e","\u013f":"\u0140","\u0141":"\u0142","\u0143":"\u0144","\u0145":"\u0146","\u0147":"\u0148","\u014a":"\u014b","\u014c":"\u014d","\u014e":"\u014f","\u0150":"\u0151","\u0152":"\u0153","\u0154":"\u0155","\u0156":"\u0157","\u0158":"\u0159","\u015a":"\u015b",
"\u015c":"\u015d","\u015e":"\u015f","\u0160":"\u0161","\u0162":"\u0163","\u0164":"\u0165","\u0166":"\u0167","\u0168":"\u0169","\u016a":"\u016b","\u016c":"\u016d","\u016e":"\u016f","\u0170":"\u0171","\u0172":"\u0173","\u0174":"\u0175","\u0176":"\u0177","\u0178":"\u00ff","\u0179":"\u017a","\u017b":"\u017c","\u017d":"\u017e","\u017f":"s","\u0181":"\u0253","\u0182":"\u0183","\u0184":"\u0185","\u0186":"\u0254","\u0187":"\u0188","\u0189":"\u0256","\u018a":"\u0257","\u018b":"\u018c","\u018e":"\u01dd","\u018f":"\u0259",
"\u0190":"\u025b","\u0191":"\u0192","\u0193":"\u0260","\u0194":"\u0263","\u0196":"\u0269","\u0197":"\u0268","\u0198":"\u0199","\u019c":"\u026f","\u019d":"\u0272","\u019f":"\u0275","\u01a0":"\u01a1","\u01a2":"\u01a3","\u01a4":"\u01a5","\u01a6":"\u0280","\u01a7":"\u01a8","\u01a9":"\u0283","\u01ac":"\u01ad","\u01ae":"\u0288","\u01af":"\u01b0","\u01b1":"\u028a","\u01b2":"\u028b","\u01b3":"\u01b4","\u01b5":"\u01b6","\u01b7":"\u0292","\u01b8":"\u01b9","\u01bc":"\u01bd","\u01c4":"\u01c6","\u01c5":"\u01c6",
"\u01c7":"\u01c9","\u01c8":"\u01c9","\u01ca":"\u01cc","\u01cb":"\u01cc","\u01cd":"\u01ce","\u01cf":"\u01d0","\u01d1":"\u01d2","\u01d3":"\u01d4","\u01d5":"\u01d6","\u01d7":"\u01d8","\u01d9":"\u01da","\u01db":"\u01dc","\u01de":"\u01df","\u01e0":"\u01e1","\u01e2":"\u01e3","\u01e4":"\u01e5","\u01e6":"\u01e7","\u01e8":"\u01e9","\u01ea":"\u01eb","\u01ec":"\u01ed","\u01ee":"\u01ef","\u01f1":"\u01f3","\u01f2":"\u01f3","\u01f4":"\u01f5","\u01f6":"\u0195","\u01f7":"\u01bf","\u01f8":"\u01f9","\u01fa":"\u01fb",
"\u01fc":"\u01fd","\u01fe":"\u01ff","\u0200":"\u0201","\u0202":"\u0203","\u0204":"\u0205","\u0206":"\u0207","\u0208":"\u0209","\u020a":"\u020b","\u020c":"\u020d","\u020e":"\u020f","\u0210":"\u0211","\u0212":"\u0213","\u0214":"\u0215","\u0216":"\u0217","\u0218":"\u0219","\u021a":"\u021b","\u021c":"\u021d","\u021e":"\u021f","\u0220":"\u019e","\u0222":"\u0223","\u0224":"\u0225","\u0226":"\u0227","\u0228":"\u0229","\u022a":"\u022b","\u022c":"\u022d","\u022e":"\u022f","\u0230":"\u0231","\u0232":"\u0233",
"\u023a":"\u2c65","\u023b":"\u023c","\u023d":"\u019a","\u023e":"\u2c66","\u0241":"\u0242","\u0243":"\u0180","\u0244":"\u0289","\u0245":"\u028c","\u0246":"\u0247","\u0248":"\u0249","\u024a":"\u024b","\u024c":"\u024d","\u024e":"\u024f","\u0345":"\u03b9","\u0370":"\u0371","\u0372":"\u0373","\u0376":"\u0377","\u037f":"\u03f3","\u0386":"\u03ac","\u0388":"\u03ad","\u0389":"\u03ae","\u038a":"\u03af","\u038c":"\u03cc","\u038e":"\u03cd","\u038f":"\u03ce","\u0391":"\u03b1","\u0392":"\u03b2","\u0393":"\u03b3",
"\u0394":"\u03b4","\u0395":"\u03b5","\u0396":"\u03b6","\u0397":"\u03b7","\u0398":"\u03b8","\u0399":"\u03b9","\u039a":"\u03ba","\u039b":"\u03bb","\u039c":"\u03bc","\u039d":"\u03bd","\u039e":"\u03be","\u039f":"\u03bf","\u03a0":"\u03c0","\u03a1":"\u03c1","\u03a3":"\u03c3","\u03a4":"\u03c4","\u03a5":"\u03c5","\u03a6":"\u03c6","\u03a7":"\u03c7","\u03a8":"\u03c8","\u03a9":"\u03c9","\u03aa":"\u03ca","\u03ab":"\u03cb","\u03c2":"\u03c3","\u03cf":"\u03d7","\u03d0":"\u03b2","\u03d1":"\u03b8","\u03d5":"\u03c6",
"\u03d6":"\u03c0","\u03d8":"\u03d9","\u03da":"\u03db","\u03dc":"\u03dd","\u03de":"\u03df","\u03e0":"\u03e1","\u03e2":"\u03e3","\u03e4":"\u03e5","\u03e6":"\u03e7","\u03e8":"\u03e9","\u03ea":"\u03eb","\u03ec":"\u03ed","\u03ee":"\u03ef","\u03f0":"\u03ba","\u03f1":"\u03c1","\u03f4":"\u03b8","\u03f5":"\u03b5","\u03f7":"\u03f8","\u03f9":"\u03f2","\u03fa":"\u03fb","\u03fd":"\u037b","\u03fe":"\u037c","\u03ff":"\u037d","\u0400":"\u0450","\u0401":"\u0451","\u0402":"\u0452","\u0403":"\u0453","\u0404":"\u0454",
"\u0405":"\u0455","\u0406":"\u0456","\u0407":"\u0457","\u0408":"\u0458","\u0409":"\u0459","\u040a":"\u045a","\u040b":"\u045b","\u040c":"\u045c","\u040d":"\u045d","\u040e":"\u045e","\u040f":"\u045f","\u0410":"\u0430","\u0411":"\u0431","\u0412":"\u0432","\u0413":"\u0433","\u0414":"\u0434","\u0415":"\u0435","\u0416":"\u0436","\u0417":"\u0437","\u0418":"\u0438","\u0419":"\u0439","\u041a":"\u043a","\u041b":"\u043b","\u041c":"\u043c","\u041d":"\u043d","\u041e":"\u043e","\u041f":"\u043f","\u0420":"\u0440",
"\u0421":"\u0441","\u0422":"\u0442","\u0423":"\u0443","\u0424":"\u0444","\u0425":"\u0445","\u0426":"\u0446","\u0427":"\u0447","\u0428":"\u0448","\u0429":"\u0449","\u042a":"\u044a","\u042b":"\u044b","\u042c":"\u044c","\u042d":"\u044d","\u042e":"\u044e","\u042f":"\u044f","\u0460":"\u0461","\u0462":"\u0463","\u0464":"\u0465","\u0466":"\u0467","\u0468":"\u0469","\u046a":"\u046b","\u046c":"\u046d","\u046e":"\u046f","\u0470":"\u0471","\u0472":"\u0473","\u0474":"\u0475","\u0476":"\u0477","\u0478":"\u0479",
"\u047a":"\u047b","\u047c":"\u047d","\u047e":"\u047f","\u0480":"\u0481","\u048a":"\u048b","\u048c":"\u048d","\u048e":"\u048f","\u0490":"\u0491","\u0492":"\u0493","\u0494":"\u0495","\u0496":"\u0497","\u0498":"\u0499","\u049a":"\u049b","\u049c":"\u049d","\u049e":"\u049f","\u04a0":"\u04a1","\u04a2":"\u04a3","\u04a4":"\u04a5","\u04a6":"\u04a7","\u04a8":"\u04a9","\u04aa":"\u04ab","\u04ac":"\u04ad","\u04ae":"\u04af","\u04b0":"\u04b1","\u04b2":"\u04b3","\u04b4":"\u04b5","\u04b6":"\u04b7","\u04b8":"\u04b9",
"\u04ba":"\u04bb","\u04bc":"\u04bd","\u04be":"\u04bf","\u04c0":"\u04cf","\u04c1":"\u04c2","\u04c3":"\u04c4","\u04c5":"\u04c6","\u04c7":"\u04c8","\u04c9":"\u04ca","\u04cb":"\u04cc","\u04cd":"\u04ce","\u04d0":"\u04d1","\u04d2":"\u04d3","\u04d4":"\u04d5","\u04d6":"\u04d7","\u04d8":"\u04d9","\u04da":"\u04db","\u04dc":"\u04dd","\u04de":"\u04df","\u04e0":"\u04e1","\u04e2":"\u04e3","\u04e4":"\u04e5","\u04e6":"\u04e7","\u04e8":"\u04e9","\u04ea":"\u04eb","\u04ec":"\u04ed","\u04ee":"\u04ef","\u04f0":"\u04f1",
"\u04f2":"\u04f3","\u04f4":"\u04f5","\u04f6":"\u04f7","\u04f8":"\u04f9","\u04fa":"\u04fb","\u04fc":"\u04fd","\u04fe":"\u04ff","\u0500":"\u0501","\u0502":"\u0503","\u0504":"\u0505","\u0506":"\u0507","\u0508":"\u0509","\u050a":"\u050b","\u050c":"\u050d","\u050e":"\u050f","\u0510":"\u0511","\u0512":"\u0513","\u0514":"\u0515","\u0516":"\u0517","\u0518":"\u0519","\u051a":"\u051b","\u051c":"\u051d","\u051e":"\u051f","\u0520":"\u0521","\u0522":"\u0523","\u0524":"\u0525","\u0526":"\u0527","\u0528":"\u0529",
"\u052a":"\u052b","\u052c":"\u052d","\u052e":"\u052f","\u0531":"\u0561","\u0532":"\u0562","\u0533":"\u0563","\u0534":"\u0564","\u0535":"\u0565","\u0536":"\u0566","\u0537":"\u0567","\u0538":"\u0568","\u0539":"\u0569","\u053a":"\u056a","\u053b":"\u056b","\u053c":"\u056c","\u053d":"\u056d","\u053e":"\u056e","\u053f":"\u056f","\u0540":"\u0570","\u0541":"\u0571","\u0542":"\u0572","\u0543":"\u0573","\u0544":"\u0574","\u0545":"\u0575","\u0546":"\u0576","\u0547":"\u0577","\u0548":"\u0578","\u0549":"\u0579",
"\u054a":"\u057a","\u054b":"\u057b","\u054c":"\u057c","\u054d":"\u057d","\u054e":"\u057e","\u054f":"\u057f","\u0550":"\u0580","\u0551":"\u0581","\u0552":"\u0582","\u0553":"\u0583","\u0554":"\u0584","\u0555":"\u0585","\u0556":"\u0586","\u10a0":"\u2d00","\u10a1":"\u2d01","\u10a2":"\u2d02","\u10a3":"\u2d03","\u10a4":"\u2d04","\u10a5":"\u2d05","\u10a6":"\u2d06","\u10a7":"\u2d07","\u10a8":"\u2d08","\u10a9":"\u2d09","\u10aa":"\u2d0a","\u10ab":"\u2d0b","\u10ac":"\u2d0c","\u10ad":"\u2d0d","\u10ae":"\u2d0e",
"\u10af":"\u2d0f","\u10b0":"\u2d10","\u10b1":"\u2d11","\u10b2":"\u2d12","\u10b3":"\u2d13","\u10b4":"\u2d14","\u10b5":"\u2d15","\u10b6":"\u2d16","\u10b7":"\u2d17","\u10b8":"\u2d18","\u10b9":"\u2d19","\u10ba":"\u2d1a","\u10bb":"\u2d1b","\u10bc":"\u2d1c","\u10bd":"\u2d1d","\u10be":"\u2d1e","\u10bf":"\u2d1f","\u10c0":"\u2d20","\u10c1":"\u2d21","\u10c2":"\u2d22","\u10c3":"\u2d23","\u10c4":"\u2d24","\u10c5":"\u2d25","\u10c7":"\u2d27","\u10cd":"\u2d2d","\u1e00":"\u1e01","\u1e02":"\u1e03","\u1e04":"\u1e05",
"\u1e06":"\u1e07","\u1e08":"\u1e09","\u1e0a":"\u1e0b","\u1e0c":"\u1e0d","\u1e0e":"\u1e0f","\u1e10":"\u1e11","\u1e12":"\u1e13","\u1e14":"\u1e15","\u1e16":"\u1e17","\u1e18":"\u1e19","\u1e1a":"\u1e1b","\u1e1c":"\u1e1d","\u1e1e":"\u1e1f","\u1e20":"\u1e21","\u1e22":"\u1e23","\u1e24":"\u1e25","\u1e26":"\u1e27","\u1e28":"\u1e29","\u1e2a":"\u1e2b","\u1e2c":"\u1e2d","\u1e2e":"\u1e2f","\u1e30":"\u1e31","\u1e32":"\u1e33","\u1e34":"\u1e35","\u1e36":"\u1e37","\u1e38":"\u1e39","\u1e3a":"\u1e3b","\u1e3c":"\u1e3d",
"\u1e3e":"\u1e3f","\u1e40":"\u1e41","\u1e42":"\u1e43","\u1e44":"\u1e45","\u1e46":"\u1e47","\u1e48":"\u1e49","\u1e4a":"\u1e4b","\u1e4c":"\u1e4d","\u1e4e":"\u1e4f","\u1e50":"\u1e51","\u1e52":"\u1e53","\u1e54":"\u1e55","\u1e56":"\u1e57","\u1e58":"\u1e59","\u1e5a":"\u1e5b","\u1e5c":"\u1e5d","\u1e5e":"\u1e5f","\u1e60":"\u1e61","\u1e62":"\u1e63","\u1e64":"\u1e65","\u1e66":"\u1e67","\u1e68":"\u1e69","\u1e6a":"\u1e6b","\u1e6c":"\u1e6d","\u1e6e":"\u1e6f","\u1e70":"\u1e71","\u1e72":"\u1e73","\u1e74":"\u1e75",
"\u1e76":"\u1e77","\u1e78":"\u1e79","\u1e7a":"\u1e7b","\u1e7c":"\u1e7d","\u1e7e":"\u1e7f","\u1e80":"\u1e81","\u1e82":"\u1e83","\u1e84":"\u1e85","\u1e86":"\u1e87","\u1e88":"\u1e89","\u1e8a":"\u1e8b","\u1e8c":"\u1e8d","\u1e8e":"\u1e8f","\u1e90":"\u1e91","\u1e92":"\u1e93","\u1e94":"\u1e95","\u1e9b":"\u1e61","\u1ea0":"\u1ea1","\u1ea2":"\u1ea3","\u1ea4":"\u1ea5","\u1ea6":"\u1ea7","\u1ea8":"\u1ea9","\u1eaa":"\u1eab","\u1eac":"\u1ead","\u1eae":"\u1eaf","\u1eb0":"\u1eb1","\u1eb2":"\u1eb3","\u1eb4":"\u1eb5",
"\u1eb6":"\u1eb7","\u1eb8":"\u1eb9","\u1eba":"\u1ebb","\u1ebc":"\u1ebd","\u1ebe":"\u1ebf","\u1ec0":"\u1ec1","\u1ec2":"\u1ec3","\u1ec4":"\u1ec5","\u1ec6":"\u1ec7","\u1ec8":"\u1ec9","\u1eca":"\u1ecb","\u1ecc":"\u1ecd","\u1ece":"\u1ecf","\u1ed0":"\u1ed1","\u1ed2":"\u1ed3","\u1ed4":"\u1ed5","\u1ed6":"\u1ed7","\u1ed8":"\u1ed9","\u1eda":"\u1edb","\u1edc":"\u1edd","\u1ede":"\u1edf","\u1ee0":"\u1ee1","\u1ee2":"\u1ee3","\u1ee4":"\u1ee5","\u1ee6":"\u1ee7","\u1ee8":"\u1ee9","\u1eea":"\u1eeb","\u1eec":"\u1eed",
"\u1eee":"\u1eef","\u1ef0":"\u1ef1","\u1ef2":"\u1ef3","\u1ef4":"\u1ef5","\u1ef6":"\u1ef7","\u1ef8":"\u1ef9","\u1efa":"\u1efb","\u1efc":"\u1efd","\u1efe":"\u1eff","\u1f08":"\u1f00","\u1f09":"\u1f01","\u1f0a":"\u1f02","\u1f0b":"\u1f03","\u1f0c":"\u1f04","\u1f0d":"\u1f05","\u1f0e":"\u1f06","\u1f0f":"\u1f07","\u1f18":"\u1f10","\u1f19":"\u1f11","\u1f1a":"\u1f12","\u1f1b":"\u1f13","\u1f1c":"\u1f14","\u1f1d":"\u1f15","\u1f28":"\u1f20","\u1f29":"\u1f21","\u1f2a":"\u1f22","\u1f2b":"\u1f23","\u1f2c":"\u1f24",
"\u1f2d":"\u1f25","\u1f2e":"\u1f26","\u1f2f":"\u1f27","\u1f38":"\u1f30","\u1f39":"\u1f31","\u1f3a":"\u1f32","\u1f3b":"\u1f33","\u1f3c":"\u1f34","\u1f3d":"\u1f35","\u1f3e":"\u1f36","\u1f3f":"\u1f37","\u1f48":"\u1f40","\u1f49":"\u1f41","\u1f4a":"\u1f42","\u1f4b":"\u1f43","\u1f4c":"\u1f44","\u1f4d":"\u1f45","\u1f59":"\u1f51","\u1f5b":"\u1f53","\u1f5d":"\u1f55","\u1f5f":"\u1f57","\u1f68":"\u1f60","\u1f69":"\u1f61","\u1f6a":"\u1f62","\u1f6b":"\u1f63","\u1f6c":"\u1f64","\u1f6d":"\u1f65","\u1f6e":"\u1f66",
"\u1f6f":"\u1f67","\u1fb8":"\u1fb0","\u1fb9":"\u1fb1","\u1fba":"\u1f70","\u1fbb":"\u1f71","\u1fbe":"\u03b9","\u1fc8":"\u1f72","\u1fc9":"\u1f73","\u1fca":"\u1f74","\u1fcb":"\u1f75","\u1fd8":"\u1fd0","\u1fd9":"\u1fd1","\u1fda":"\u1f76","\u1fdb":"\u1f77","\u1fe8":"\u1fe0","\u1fe9":"\u1fe1","\u1fea":"\u1f7a","\u1feb":"\u1f7b","\u1fec":"\u1fe5","\u1ff8":"\u1f78","\u1ff9":"\u1f79","\u1ffa":"\u1f7c","\u1ffb":"\u1f7d","\u2126":"\u03c9","\u212a":"k","\u212b":"\u00e5","\u2132":"\u214e","\u2160":"\u2170","\u2161":"\u2171",
"\u2162":"\u2172","\u2163":"\u2173","\u2164":"\u2174","\u2165":"\u2175","\u2166":"\u2176","\u2167":"\u2177","\u2168":"\u2178","\u2169":"\u2179","\u216a":"\u217a","\u216b":"\u217b","\u216c":"\u217c","\u216d":"\u217d","\u216e":"\u217e","\u216f":"\u217f","\u2183":"\u2184","\u24b6":"\u24d0","\u24b7":"\u24d1","\u24b8":"\u24d2","\u24b9":"\u24d3","\u24ba":"\u24d4","\u24bb":"\u24d5","\u24bc":"\u24d6","\u24bd":"\u24d7","\u24be":"\u24d8","\u24bf":"\u24d9","\u24c0":"\u24da","\u24c1":"\u24db","\u24c2":"\u24dc",
"\u24c3":"\u24dd","\u24c4":"\u24de","\u24c5":"\u24df","\u24c6":"\u24e0","\u24c7":"\u24e1","\u24c8":"\u24e2","\u24c9":"\u24e3","\u24ca":"\u24e4","\u24cb":"\u24e5","\u24cc":"\u24e6","\u24cd":"\u24e7","\u24ce":"\u24e8","\u24cf":"\u24e9","\u2c00":"\u2c30","\u2c01":"\u2c31","\u2c02":"\u2c32","\u2c03":"\u2c33","\u2c04":"\u2c34","\u2c05":"\u2c35","\u2c06":"\u2c36","\u2c07":"\u2c37","\u2c08":"\u2c38","\u2c09":"\u2c39","\u2c0a":"\u2c3a","\u2c0b":"\u2c3b","\u2c0c":"\u2c3c","\u2c0d":"\u2c3d","\u2c0e":"\u2c3e",
"\u2c0f":"\u2c3f","\u2c10":"\u2c40","\u2c11":"\u2c41","\u2c12":"\u2c42","\u2c13":"\u2c43","\u2c14":"\u2c44","\u2c15":"\u2c45","\u2c16":"\u2c46","\u2c17":"\u2c47","\u2c18":"\u2c48","\u2c19":"\u2c49","\u2c1a":"\u2c4a","\u2c1b":"\u2c4b","\u2c1c":"\u2c4c","\u2c1d":"\u2c4d","\u2c1e":"\u2c4e","\u2c1f":"\u2c4f","\u2c20":"\u2c50","\u2c21":"\u2c51","\u2c22":"\u2c52","\u2c23":"\u2c53","\u2c24":"\u2c54","\u2c25":"\u2c55","\u2c26":"\u2c56","\u2c27":"\u2c57","\u2c28":"\u2c58","\u2c29":"\u2c59","\u2c2a":"\u2c5a",
"\u2c2b":"\u2c5b","\u2c2c":"\u2c5c","\u2c2d":"\u2c5d","\u2c2e":"\u2c5e","\u2c60":"\u2c61","\u2c62":"\u026b","\u2c63":"\u1d7d","\u2c64":"\u027d","\u2c67":"\u2c68","\u2c69":"\u2c6a","\u2c6b":"\u2c6c","\u2c6d":"\u0251","\u2c6e":"\u0271","\u2c6f":"\u0250","\u2c70":"\u0252","\u2c72":"\u2c73","\u2c75":"\u2c76","\u2c7e":"\u023f","\u2c7f":"\u0240","\u2c80":"\u2c81","\u2c82":"\u2c83","\u2c84":"\u2c85","\u2c86":"\u2c87","\u2c88":"\u2c89","\u2c8a":"\u2c8b","\u2c8c":"\u2c8d","\u2c8e":"\u2c8f","\u2c90":"\u2c91",
"\u2c92":"\u2c93","\u2c94":"\u2c95","\u2c96":"\u2c97","\u2c98":"\u2c99","\u2c9a":"\u2c9b","\u2c9c":"\u2c9d","\u2c9e":"\u2c9f","\u2ca0":"\u2ca1","\u2ca2":"\u2ca3","\u2ca4":"\u2ca5","\u2ca6":"\u2ca7","\u2ca8":"\u2ca9","\u2caa":"\u2cab","\u2cac":"\u2cad","\u2cae":"\u2caf","\u2cb0":"\u2cb1","\u2cb2":"\u2cb3","\u2cb4":"\u2cb5","\u2cb6":"\u2cb7","\u2cb8":"\u2cb9","\u2cba":"\u2cbb","\u2cbc":"\u2cbd","\u2cbe":"\u2cbf","\u2cc0":"\u2cc1","\u2cc2":"\u2cc3","\u2cc4":"\u2cc5","\u2cc6":"\u2cc7","\u2cc8":"\u2cc9",
"\u2cca":"\u2ccb","\u2ccc":"\u2ccd","\u2cce":"\u2ccf","\u2cd0":"\u2cd1","\u2cd2":"\u2cd3","\u2cd4":"\u2cd5","\u2cd6":"\u2cd7","\u2cd8":"\u2cd9","\u2cda":"\u2cdb","\u2cdc":"\u2cdd","\u2cde":"\u2cdf","\u2ce0":"\u2ce1","\u2ce2":"\u2ce3","\u2ceb":"\u2cec","\u2ced":"\u2cee","\u2cf2":"\u2cf3","\ua640":"\ua641","\ua642":"\ua643","\ua644":"\ua645","\ua646":"\ua647","\ua648":"\ua649","\ua64a":"\ua64b","\ua64c":"\ua64d","\ua64e":"\ua64f","\ua650":"\ua651","\ua652":"\ua653","\ua654":"\ua655","\ua656":"\ua657",
"\ua658":"\ua659","\ua65a":"\ua65b","\ua65c":"\ua65d","\ua65e":"\ua65f","\ua660":"\ua661","\ua662":"\ua663","\ua664":"\ua665","\ua666":"\ua667","\ua668":"\ua669","\ua66a":"\ua66b","\ua66c":"\ua66d","\ua680":"\ua681","\ua682":"\ua683","\ua684":"\ua685","\ua686":"\ua687","\ua688":"\ua689","\ua68a":"\ua68b","\ua68c":"\ua68d","\ua68e":"\ua68f","\ua690":"\ua691","\ua692":"\ua693","\ua694":"\ua695","\ua696":"\ua697","\ua698":"\ua699","\ua69a":"\ua69b","\ua722":"\ua723","\ua724":"\ua725","\ua726":"\ua727",
"\ua728":"\ua729","\ua72a":"\ua72b","\ua72c":"\ua72d","\ua72e":"\ua72f","\ua732":"\ua733","\ua734":"\ua735","\ua736":"\ua737","\ua738":"\ua739","\ua73a":"\ua73b","\ua73c":"\ua73d","\ua73e":"\ua73f","\ua740":"\ua741","\ua742":"\ua743","\ua744":"\ua745","\ua746":"\ua747","\ua748":"\ua749","\ua74a":"\ua74b","\ua74c":"\ua74d","\ua74e":"\ua74f","\ua750":"\ua751","\ua752":"\ua753","\ua754":"\ua755","\ua756":"\ua757","\ua758":"\ua759","\ua75a":"\ua75b","\ua75c":"\ua75d","\ua75e":"\ua75f","\ua760":"\ua761",
"\ua762":"\ua763","\ua764":"\ua765","\ua766":"\ua767","\ua768":"\ua769","\ua76a":"\ua76b","\ua76c":"\ua76d","\ua76e":"\ua76f","\ua779":"\ua77a","\ua77b":"\ua77c","\ua77d":"\u1d79","\ua77e":"\ua77f","\ua780":"\ua781","\ua782":"\ua783","\ua784":"\ua785","\ua786":"\ua787","\ua78b":"\ua78c","\ua78d":"\u0265","\ua790":"\ua791","\ua792":"\ua793","\ua796":"\ua797","\ua798":"\ua799","\ua79a":"\ua79b","\ua79c":"\ua79d","\ua79e":"\ua79f","\ua7a0":"\ua7a1","\ua7a2":"\ua7a3","\ua7a4":"\ua7a5","\ua7a6":"\ua7a7",
"\ua7a8":"\ua7a9","\ua7aa":"\u0266","\ua7ab":"\u025c","\ua7ac":"\u0261","\ua7ad":"\u026c","\ua7b0":"\u029e","\ua7b1":"\u0287","\uff21":"\uff41","\uff22":"\uff42","\uff23":"\uff43","\uff24":"\uff44","\uff25":"\uff45","\uff26":"\uff46","\uff27":"\uff47","\uff28":"\uff48","\uff29":"\uff49","\uff2a":"\uff4a","\uff2b":"\uff4b","\uff2c":"\uff4c","\uff2d":"\uff4d","\uff2e":"\uff4e","\uff2f":"\uff4f","\uff30":"\uff50","\uff31":"\uff51","\uff32":"\uff52","\uff33":"\uff53","\uff34":"\uff54","\uff35":"\uff55",
"\uff36":"\uff56","\uff37":"\uff57","\uff38":"\uff58","\uff39":"\uff59","\uff3a":"\uff5a","\ud801\udc00":"\ud801\udc28","\ud801\udc01":"\ud801\udc29","\ud801\udc02":"\ud801\udc2a","\ud801\udc03":"\ud801\udc2b","\ud801\udc04":"\ud801\udc2c","\ud801\udc05":"\ud801\udc2d","\ud801\udc06":"\ud801\udc2e","\ud801\udc07":"\ud801\udc2f","\ud801\udc08":"\ud801\udc30","\ud801\udc09":"\ud801\udc31","\ud801\udc0a":"\ud801\udc32","\ud801\udc0b":"\ud801\udc33","\ud801\udc0c":"\ud801\udc34","\ud801\udc0d":"\ud801\udc35",
"\ud801\udc0e":"\ud801\udc36","\ud801\udc0f":"\ud801\udc37","\ud801\udc10":"\ud801\udc38","\ud801\udc11":"\ud801\udc39","\ud801\udc12":"\ud801\udc3a","\ud801\udc13":"\ud801\udc3b","\ud801\udc14":"\ud801\udc3c","\ud801\udc15":"\ud801\udc3d","\ud801\udc16":"\ud801\udc3e","\ud801\udc17":"\ud801\udc3f","\ud801\udc18":"\ud801\udc40","\ud801\udc19":"\ud801\udc41","\ud801\udc1a":"\ud801\udc42","\ud801\udc1b":"\ud801\udc43","\ud801\udc1c":"\ud801\udc44","\ud801\udc1d":"\ud801\udc45","\ud801\udc1e":"\ud801\udc46",
"\ud801\udc1f":"\ud801\udc47","\ud801\udc20":"\ud801\udc48","\ud801\udc21":"\ud801\udc49","\ud801\udc22":"\ud801\udc4a","\ud801\udc23":"\ud801\udc4b","\ud801\udc24":"\ud801\udc4c","\ud801\udc25":"\ud801\udc4d","\ud801\udc26":"\ud801\udc4e","\ud801\udc27":"\ud801\udc4f","\ud806\udca0":"\ud806\udcc0","\ud806\udca1":"\ud806\udcc1","\ud806\udca2":"\ud806\udcc2","\ud806\udca3":"\ud806\udcc3","\ud806\udca4":"\ud806\udcc4","\ud806\udca5":"\ud806\udcc5","\ud806\udca6":"\ud806\udcc6","\ud806\udca7":"\ud806\udcc7",
"\ud806\udca8":"\ud806\udcc8","\ud806\udca9":"\ud806\udcc9","\ud806\udcaa":"\ud806\udcca","\ud806\udcab":"\ud806\udccb","\ud806\udcac":"\ud806\udccc","\ud806\udcad":"\ud806\udccd","\ud806\udcae":"\ud806\udcce","\ud806\udcaf":"\ud806\udccf","\ud806\udcb0":"\ud806\udcd0","\ud806\udcb1":"\ud806\udcd1","\ud806\udcb2":"\ud806\udcd2","\ud806\udcb3":"\ud806\udcd3","\ud806\udcb4":"\ud806\udcd4","\ud806\udcb5":"\ud806\udcd5","\ud806\udcb6":"\ud806\udcd6","\ud806\udcb7":"\ud806\udcd7","\ud806\udcb8":"\ud806\udcd8",
"\ud806\udcb9":"\ud806\udcd9","\ud806\udcba":"\ud806\udcda","\ud806\udcbb":"\ud806\udcdb","\ud806\udcbc":"\ud806\udcdc","\ud806\udcbd":"\ud806\udcdd","\ud806\udcbe":"\ud806\udcde","\ud806\udcbf":"\ud806\udcdf","\u00df":"ss","\u0130":"i\u0307","\u0149":"\u02bcn","\u01f0":"j\u030c","\u0390":"\u03b9\u0308\u0301","\u03b0":"\u03c5\u0308\u0301","\u0587":"\u0565\u0582","\u1e96":"h\u0331","\u1e97":"t\u0308","\u1e98":"w\u030a","\u1e99":"y\u030a","\u1e9a":"a\u02be","\u1e9e":"ss","\u1f50":"\u03c5\u0313","\u1f52":"\u03c5\u0313\u0300",
"\u1f54":"\u03c5\u0313\u0301","\u1f56":"\u03c5\u0313\u0342","\u1f80":"\u1f00\u03b9","\u1f81":"\u1f01\u03b9","\u1f82":"\u1f02\u03b9","\u1f83":"\u1f03\u03b9","\u1f84":"\u1f04\u03b9","\u1f85":"\u1f05\u03b9","\u1f86":"\u1f06\u03b9","\u1f87":"\u1f07\u03b9","\u1f88":"\u1f00\u03b9","\u1f89":"\u1f01\u03b9","\u1f8a":"\u1f02\u03b9","\u1f8b":"\u1f03\u03b9","\u1f8c":"\u1f04\u03b9","\u1f8d":"\u1f05\u03b9","\u1f8e":"\u1f06\u03b9","\u1f8f":"\u1f07\u03b9","\u1f90":"\u1f20\u03b9","\u1f91":"\u1f21\u03b9","\u1f92":"\u1f22\u03b9",
"\u1f93":"\u1f23\u03b9","\u1f94":"\u1f24\u03b9","\u1f95":"\u1f25\u03b9","\u1f96":"\u1f26\u03b9","\u1f97":"\u1f27\u03b9","\u1f98":"\u1f20\u03b9","\u1f99":"\u1f21\u03b9","\u1f9a":"\u1f22\u03b9","\u1f9b":"\u1f23\u03b9","\u1f9c":"\u1f24\u03b9","\u1f9d":"\u1f25\u03b9","\u1f9e":"\u1f26\u03b9","\u1f9f":"\u1f27\u03b9","\u1fa0":"\u1f60\u03b9","\u1fa1":"\u1f61\u03b9","\u1fa2":"\u1f62\u03b9","\u1fa3":"\u1f63\u03b9","\u1fa4":"\u1f64\u03b9","\u1fa5":"\u1f65\u03b9","\u1fa6":"\u1f66\u03b9","\u1fa7":"\u1f67\u03b9",
"\u1fa8":"\u1f60\u03b9","\u1fa9":"\u1f61\u03b9","\u1faa":"\u1f62\u03b9","\u1fab":"\u1f63\u03b9","\u1fac":"\u1f64\u03b9","\u1fad":"\u1f65\u03b9","\u1fae":"\u1f66\u03b9","\u1faf":"\u1f67\u03b9","\u1fb2":"\u1f70\u03b9","\u1fb3":"\u03b1\u03b9","\u1fb4":"\u03ac\u03b9","\u1fb6":"\u03b1\u0342","\u1fb7":"\u03b1\u0342\u03b9","\u1fbc":"\u03b1\u03b9","\u1fc2":"\u1f74\u03b9","\u1fc3":"\u03b7\u03b9","\u1fc4":"\u03ae\u03b9","\u1fc6":"\u03b7\u0342","\u1fc7":"\u03b7\u0342\u03b9","\u1fcc":"\u03b7\u03b9","\u1fd2":"\u03b9\u0308\u0300",
"\u1fd3":"\u03b9\u0308\u0301","\u1fd6":"\u03b9\u0342","\u1fd7":"\u03b9\u0308\u0342","\u1fe2":"\u03c5\u0308\u0300","\u1fe3":"\u03c5\u0308\u0301","\u1fe4":"\u03c1\u0313","\u1fe6":"\u03c5\u0342","\u1fe7":"\u03c5\u0308\u0342","\u1ff2":"\u1f7c\u03b9","\u1ff3":"\u03c9\u03b9","\u1ff4":"\u03ce\u03b9","\u1ff6":"\u03c9\u0342","\u1ff7":"\u03c9\u0342\u03b9","\u1ffc":"\u03c9\u03b9","\ufb00":"ff","\ufb01":"fi","\ufb02":"fl","\ufb03":"ffi","\ufb04":"ffl","\ufb05":"st","\ufb06":"st","\ufb13":"\u0574\u0576","\ufb14":"\u0574\u0565",
"\ufb15":"\u0574\u056b","\ufb16":"\u057e\u0576","\ufb17":"\u0574\u056d"};var F89=new RegExp(/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),
BO9=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),lW9=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),L8Z=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),fWO=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),uvO=/`+/,QJd=/^`+/,xv9=/\.\.\./g,oe9=/--+/g,ioO=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
JI4=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,UvZ=/^ *(?:\n *)?/,ZoN=/^[ \t\n\x0b\x0c\x0d]/,jJk=/[ \t\n\x0b\x0c\x0d]+/g,zSZ=/^\s/,AIO=/ *$/,XPV=/^ */,EeV=/^ *(?:\n|$)/,pPz=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Yx9=/^[^\n`\[\]\\!<&*_'"]+/m,iG=function(N){var b=new Us("text");b._literal=N;return b},JH=function(N){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=N||{}};
JH.prototype.match=function(N){N=N.exec(this.subject.slice(this.pos));if(N===null)return null;this.pos+=N.index+N[0].length;return N[0]};
JH.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Up=function(N){N.match(UvZ);return!0},yI9=function(N,b,S){var P=0;
var H=N.pos;if(b===39||b===34)P++,N.pos++;else for(;N.peek()===b;)P++,N.pos++;if(P===0)P=null;else{var K=H===0?"\n":N.subject.charAt(H-1);var C=N.peek();C=C===-1?"\n":oy(C);var G=zSZ.test(C);C=F89.test(C);var a=zSZ.test(K);var R=F89.test(K);K=!G&&!(C&&!a&&!R);G=!a&&!(R&&!G&&!C);b===95?(a=K&&(!G||R),C=G&&(!K||C)):(a=b===39||b===34?K&&!G:K,C=G);N.pos=H;P={numdelims:P,can_open:a,can_close:C}}if(!P)return!1;H=P.numdelims;C=N.pos;N.pos+=H;C=b===39?"\u2019":b===34?"\u201c":N.subject.slice(C,N.pos);C=iG(C);
S.appendChild(C);N.delimiters={cc:b,numdelims:H,origdelims:H,node:C,previous:N.delimiters,next:null,can_open:P.can_open,can_close:P.can_close};N.delimiters.previous!==null&&(N.delimiters.previous.next=N.delimiters);return!0},IWl=function(N,b){b.previous!==null&&(b.previous.next=b.next);
b.next===null?N.delimiters=b.previous:b.next.previous=b.previous},DvV=function(N,b){var S,P,H=[],K=!1;
H[95]=b;H[42]=b;H[39]=b;H[34]=b;for(S=N.delimiters;S!==null&&S.previous!==b;)S=S.previous;for(;S!==null;){var C=S.cc;if(S.can_close){var G=S.previous;for(P=!1;G!==null&&G!==b&&G!==H[C];){K=(S.can_open||G.can_close)&&(G.origdelims+S.origdelims)%3===0;if(G.cc===S.cc&&G.can_open&&!K){P=!0;break}G=G.previous}var a=S;if(C===42||C===95)if(P){var R=S.numdelims>=2&&G.numdelims>=2?2:1;var n=G.node;var d=S.node;G.numdelims-=R;S.numdelims-=R;n._literal=n._literal.slice(0,n._literal.length-R);d._literal=d._literal.slice(0,
d._literal.length-R);var m=new Us(R===1?"emph":"strong");for(R=n._next;R&&R!==d;){var k=R._next;R.unlink();m.appendChild(R);R=k}M8d(n,m);R=G;k=S;R.next!==k&&(R.next=k,k.previous=R);G.numdelims===0&&(n.unlink(),IWl(N,G));S.numdelims===0&&(d.unlink(),G=S.next,IWl(N,S),S=G)}else S=S.next;else C===39?(S.node._literal="\u2019",P&&(G.node._literal="\u2018"),S=S.next):C===34&&(S.node._literal="\u201d",P&&(G.node.literal="\u201c"),S=S.next);P||K||(H[C]=a.previous,a.can_open||IWl(N,a))}else S=S.next}for(;N.delimiters!==
null&&N.delimiters!==b;)IWl(N,N.delimiters)},V8c=function(N){N=N.match(BO9);
return N===null?null:nec(N.substr(1,N.length-2))},geN=function(N){var b=N.match(lW9);
if(b===null){b=N.pos;for(var S=0,P;(P=N.peek())!==-1;)if(P===92)N.pos+=1,N.peek()!==-1&&(N.pos+=1);else if(P===40)N.pos+=1,S+=1;else if(P===41)if(S<1)break;else N.pos+=1,--S;else if(ZoN.exec(oy(P))!==null)break;else N.pos+=1;b=N.subject.substr(b,N.pos-b);return dvS(nec(b))}return dvS(nec(b.substr(1,b.length-2)))},eSz=function(N){N=N.match(pPz);
return N===null||N.length>1001?0:N.length},$vl=function(N,b,S,P){N.brackets!==null&&(N.brackets.bracketAfter=!0);
N.brackets={node:b,previous:N.brackets,previousDelimiter:N.delimiters,index:S,image:P,active:!0}},hSl=function(N,b){var S;
return(S=N.match(Yx9))?(N.options.smart?b.appendChild(iG(S.replace(xv9,"\u2026").replace(oe9,function(P){var H=0,K=0;P.length%3===0?K=P.length/3:P.length%2===0?H=P.length/2:P.length%3===2?(H=1,K=(P.length-2)/3):(H=2,K=(P.length-4)/3);P="";var C;for(C=0;C<K;C++)P+="\u2014";for(C=0;C<H;C++)P+="\u2013";return P}))):b.appendChild(iG(S)),!0):!1},qxN=function(N,b,S){N.subject=b;
N.pos=0;b=N.pos;var P=eSz(N);if(P===0)return 0;var H=N.subject.substr(0,P);if(N.peek()===58)N.pos++;else return N.pos=b,0;Up(N);P=geN(N);if(P===null||P.length===0)return N.pos=b,0;var K=N.pos;Up(N);var C=V8c(N);C===null&&(C="",N.pos=K);var G=!0;N.match(EeV)===null&&(C===""?G=!1:(C="",N.pos=K,G=N.match(EeV)!==null));if(!G)return N.pos=b,0;H=UHE(H);if(H==="")return N.pos=b,0;S[H]||(S[H]={destination:P,title:C});return N.pos-b},wPl=function(N,b){var S,P=N.peek();
if(P===-1)return!1;switch(P){case 10:N.pos+=1;if((S=b._lastChild)&&S.type==="text"&&S._literal[S._literal.length-1]===" "){var H=S._literal[S._literal.length-2]===" ";S._literal=S._literal.replace(AIO,"");b.appendChild(new Us(H?"linebreak":"softbreak"))}else b.appendChild(new Us("softbreak"));N.match(XPV);S=!0;break;case 92:S=N.subject;N.pos+=1;N.peek()===10?(N.pos+=1,S=new Us("linebreak"),b.appendChild(S)):L8Z.test(S.charAt(N.pos))?(b.appendChild(iG(S.charAt(N.pos))),N.pos+=1):b.appendChild(iG("\\"));
S=!0;break;case 96:a:if(S=N.match(QJd),S===null)S=!1;else{H=N.pos;for(var K;(K=N.match(uvO))!==null;)if(K===S){K=new Us("code");K._literal=N.subject.slice(H,N.pos-S.length).trim().replace(jJk," ");b.appendChild(K);S=!0;break a}N.pos=H;b.appendChild(iG(S));S=!0}break;case 42:case 95:S=yI9(N,P,b);break;case 39:case 34:S=N.options.smart&&yI9(N,P,b);break;case 91:S=N.pos;N.pos+=1;H=iG("[");b.appendChild(H);$vl(N,H,S,!1);S=!0;break;case 33:S=N.pos;N.pos+=1;N.peek()===91?(N.pos+=1,H=iG("!["),b.appendChild(H),
$vl(N,H,S+1,!0)):b.appendChild(iG("!"));S=!0;break;case 93:var C,G=!1,a;N.pos+=1;var R=N.pos;H=N.brackets;if(H===null)b.appendChild(iG("]"));else if(H.active){S=H.image;var n=N.pos;N.peek()===40&&(N.pos++,Up(N)&&(K=geN(N))!==null&&Up(N)&&(ZoN.test(N.subject.charAt(N.pos-1))&&(C=V8c(N)),1)&&Up(N)&&N.peek()===41?(N.pos+=1,G=!0):N.pos=n);if(!G){var d=N.pos,m=eSz(N);m>2?a=N.subject.slice(d,d+m):H.bracketAfter||(a=N.subject.slice(H.index,R));m===0&&(N.pos=n);a&&(a=N.refmap[UHE(a)])&&(K=a.destination,C=
a.title,G=!0)}if(G){R=new Us(S?"image":"link");R._destination=K;R._title=C||"";for(K=H.node._next;K;)C=K._next,K.unlink(),R.appendChild(K),K=C;b.appendChild(R);DvV(N,H.previousDelimiter);N.brackets=N.brackets.previous;H.node.unlink();if(!S)for(H=N.brackets;H!==null;)H.image||(H.active=!1),H=H.previous}else N.brackets=N.brackets.previous,N.pos=R,b.appendChild(iG("]"))}else b.appendChild(iG("]")),N.brackets=N.brackets.previous;S=!0;break;case 60:(S=N.match(ioO))?(S=S.slice(1,S.length-1),H=new Us("link"),
H._destination=dvS("mailto:"+S),H._title="",H.appendChild(iG(S)),b.appendChild(H),S=!0):(S=N.match(JI4))?(S=S.slice(1,S.length-1),H=new Us("link"),H._destination=dvS(S),H._title="",H.appendChild(iG(S)),b.appendChild(H),S=!0):S=!1;S||(S=N.match(GM9),S===null?S=!1:(H=new Us("html_inline"),H._literal=S,b.appendChild(H),S=!0));break;case 38:(S=N.match(fWO))?(b.appendChild(iG(Oob(S))),S=!0):S=!1;break;default:S=hSl(N,b)}S||(N.pos+=1,b.appendChild(iG(oy(P))));return!0};
JH.prototype.parseInlines=function(N){this.subject=N._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;wPl(this,N););N._string_content=null;DvV(this,null)};
JH.prototype.parse=JH.prototype.parseInlines;var N6d=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^\x3c!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>])\\s*$",
"i")],bSc=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],S_k=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,P09=/^[#`~*+_=<>0-9-\|]|\|/,HSb=/[^ \t\f\v\r\n]/,sT4=/^[*+-]/,KlV=/^(\d{1,9})([.)])/,vEN=/^#{1,6}(?:[ \t]+|$)/,OSd=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,C0E=/^(?:`{3,}|~{3,})(?= *$)/,GNN=/^(?:=+|-+)[ \t]*$/,rPN=/\r\n|\n|\r/,jSs=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,zpb=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,cP4={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(N){return N!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(N,b){for(N=b._firstChild;N;){if(ZLI(N)&&N._next){b._listData.tight=!1;break}for(var S=N._firstChild;S;){if(ZLI(S)&&(N._next||S._next)){b._listData.tight=!1;break}S=S._next}N=N._next}},
canContain:function(N){return N==="item"},
acceptsLines:!1},block_quote:{continue:function(N){var b=N.currentLine;if(N.indented||ix(b,N.nextNonspace)!==62)return 1;Zt(N);j2(N,1,!1);oe(ix(b,N.offset))&&j2(N,1,!0);return 0},
finalize:function(){},
canContain:function(N){return N!=="item"},
acceptsLines:!1},item:{continue:function(N,b){if(N.blank){if(b._firstChild==null)return 1;Zt(N)}else if(N.indent>=b._listData.markerOffset+b._listData.padding)j2(N,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(N){return N!=="item"&&!A6u(N)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(N,b){var S=N.currentLine,P=N.indent;if(b._isFenced){if((P=P<=3&&S.charAt(N.nextNonspace)===b._fenceChar&&S.slice(N.nextNonspace).match(C0E))&&P[0].length>=b._fenceLength)return N.finalize(b,N.lineNumber),2;for(b=b._fenceOffset;b>0&&oe(ix(S,N.offset));)j2(N,1,!0),b--}else if(P>=4)j2(N,4,!0);else if(N.blank)Zt(N);else return 1;return 0},
finalize:function(N,b){if(b._isFenced){var S=b._string_content,P=S.indexOf("\n");N=S.slice(0,P);S=S.slice(P+1);b.info=nec(N.trim());b._literal=S}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(N,b){return!N.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1},
finalize:function(N,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(N){return N.blank?1:0},
finalize:function(N,b){for(var S,P=!1;ix(b._string_content,0)===91&&(S=qxN(N.inlineParser,b._string_content,N.refmap));)b._string_content=b._string_content.slice(S),P=!0;P&&!HSb.test(b._string_content)&&b.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(N){return J3(N.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(N){return N=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(N,b){if(!b._rowIsDelimiter){N=b._isHeader?"th":"td";for(var S=b._parent._tableColumns,P=b._string_content,H=0,K="",C,G=b._sourcepos[0][0];H<P.length;){switch(P[H]){case "|":C&&(C._string_content=K.trim(),K="",C=null,S--,S<=0&&(H=P.length));break;default:if(!C){C=new Us(N,[[G,H],[G,H]]);var a=b._parent._columnAlignment,R=b._parent._tableColumns-S;a&&R<=a.length&&R>=0&&(C._alignment=a[R]);b.appendChild(C)}K+=P[H];C._sourcepos[1][1]=H}H++}C&&(C._string_content=K.trim());b._string_content=
""}},
canContain:function(N){return N!=="row"},
acceptsLines:!1}},aM9=[function(N){if(N.indented||ix(N.currentLine,N.nextNonspace)!==62)return 0;Zt(N);j2(N,1,!1);oe(ix(N.currentLine,N.offset))&&j2(N,1,!0);z$(N);N.addChild("block_quote",N.nextNonspace);return 1},
function(N){var b;if(!N.indented&&(b=N.currentLine.slice(N.nextNonspace).match(vEN))){Zt(N);j2(N,b[0].length,!1);z$(N);var S=N.addChild("heading",N.nextNonspace);S.level=b[0].trim().length;S._string_content=N.currentLine.slice(N.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");j2(N,N.currentLine.length-N.offset);return 2}return 0},
function(N){var b;if(!N.indented&&(b=N.currentLine.slice(N.nextNonspace).match(OSd))){var S=b[0].length;z$(N);var P=N.addChild("code_block",N.nextNonspace);P._isFenced=!0;P._fenceLength=S;P._fenceChar=b[0][0];P._fenceOffset=N.indent;Zt(N);j2(N,S,!1);return 2}return 0},
function(N,b){if(!N.indented&&ix(N.currentLine,N.nextNonspace)===60){var S=N.currentLine.slice(N.nextNonspace),P;for(P=1;P<=7;P++)if(N6d[P].test(S)&&(P<7||b.type!=="paragraph"))return z$(N),N.addChild("html_block",N.offset)._htmlBlockType=P,2}return 0},
function(N,b){var S;if(!N.indented&&b.type==="paragraph"&&(S=N.currentLine.slice(N.nextNonspace).match(GNN))){z$(N);var P=new Us("heading",b.sourcepos);P.level=S[0][0]==="="?1:2;P._string_content=b._string_content;M8d(b,P);b.unlink();N.tip=P;j2(N,N.currentLine.length-N.offset,!1);return 2}return 0},
function(N){return!N.indented&&S_k.test(N.currentLine.slice(N.nextNonspace))?(z$(N),N.addChild("thematic_break",N.nextNonspace),j2(N,N.currentLine.length-N.offset,!1),2):0},
function(N,b){var S,P;if(!(P=N.indented&&b.type!=="list")){a:{var H=b,K=N.currentLine.slice(N.nextNonspace);P={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:N.indent};if(S=K.match(sT4))P.type="bullet",P.bulletChar=S[0][0];else{if(!(S=K.match(KlV))||H.type==="paragraph"&&S[1]!=="1"){S=null;break a}P.type="ordered";P.start=parseInt(S[1],10);P.delimiter=S[2]}var C=ix(N.currentLine,N.nextNonspace+S[0].length);if(C!==-1&&C!==9&&C!==32||H.type==="paragraph"&&!N.currentLine.slice(N.nextNonspace+
S[0].length).match(HSb))S=null;else{Zt(N);j2(N,S[0].length,!0);H=N.column;K=N.offset;do j2(N,1,!0),C=ix(N.currentLine,N.offset);while(N.column-H<5&&oe(C));C=ix(N.currentLine,N.offset)===-1;var G=N.column-H;G>=5||G<1||C?(P.padding=S[0].length+1,N.column=H,N.offset=K,oe(ix(N.currentLine,N.offset))&&j2(N,1,!0)):P.padding=S[0].length+G;S=P}}P=!S}if(P)return 0;z$(N);(P=N.tip.type!=="list")||(b=b._listData,P=!(b.type===S.type&&b.delimiter===S.delimiter&&b.bulletChar===S.bulletChar));P&&(b=N.addChild("list",
N.nextNonspace),b._listData=S);b=N.addChild("item",N.nextNonspace);b._listData=S;return 1},
function(N){var b;return((b=N.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&N.indented&&N.tip.type!=="paragraph"&&!N.blank?(j2(N,4,!0),z$(N),N.addChild("code_block",N.offset),2):0},
function(N,b){var S=J3(N.currentLine),P=J3(N.lookahead);if(S!==0&&P<0&&Math.abs(S)==Math.abs(P)&&!A6u(b.type)){z$(N);b=N.addChild("table",N.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(S);S=N.lookahead;if(zpb.test(S)){P=[];for(var H=0,K=!1,C=0,G=void 0;H<S.length;){var a=C>=3;switch(S[H]){case "-":C++;break;case "|":K&&(P.push(G),G=void 0,C=0);K=!0;break;case ":":G||a||(G="left"),!G&&a&&(G="right"),G==="left"&&a&&(G="center")}H++}S=P}else S=void 0;b._columnAlignment=S;b=N.addChild("row",
N.nextNonspace);b._isHeader=!0;j2(N,N.currentLine.length-N.offset,!1);b._string_content=N.currentLine;return 1}return 0},
function(N,b){if(b.type=="table"&&J3(N.currentLine)!==0){z$(N);var S=b;b=N.addChild("row",N.nextNonspace);J3(N.currentLine)<0?b._rowIsDelimiter=!0:S._tableRows+=1;j2(N,N.currentLine.length-N.offset,!1);b._string_content=N.currentLine;return 2}return 0}],vmb=function(){var N={shouldParseIndentAsCodeBlock:!1};
N=N===void 0?{}:N;this.lastMatchedContainer=this.doc=XrU();this.refmap={};this.lastLineLength=0;this.inlineParser=new JH(N);this.options=N;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=cP4;this.blockStarts=aM9},RrV=function(N){N.partiallyConsumedTab&&(N.offset+=1,N.tip._string_content+=" ".repeat(4-N.column%
4));
N.tip._string_content+=N.currentLine.slice(N.offset)+"\n"};
vmb.prototype.addChild=function(N,b){for(;!this.blocks[this.tip.type].canContain(N);)this.finalize(this.tip,this.lineNumber-1);N=new Us(N,[[this.lineNumber,b+1],[0,0]]);N._string_content="";this.tip.appendChild(N);return this.tip=N};
var z$=function(N){if(!N.allClosed){for(;N.oldtip!==N.lastMatchedContainer;){var b=N.oldtip._parent;N.finalize(N.oldtip,N.lineNumber-1);N.oldtip=b}N.allClosed=!0}},j2=function(N,b,S){for(var P=N.currentLine,H,K;b>0&&(K=P[N.offset]);)K==="\t"?(H=4-N.column%4,S?(N.partiallyConsumedTab=H>b,H=H>b?b:H,N.column+=H,N.offset+=N.partiallyConsumedTab?0:1,b-=H):(N.partiallyConsumedTab=!1,N.column+=H,N.offset+=1,--b)):(N.partiallyConsumedTab=!1,N.offset+=1,N.column+=1,--b)},Zt=function(N){N.offset=N.nextNonspace;
N.column=N.nextNonspaceColumn;N.partiallyConsumedTab=!1},Wl9=function(N){for(var b=N.currentLine,S=N.offset,P=N.column,H;(H=b.charAt(S))!=="";)if(H===" ")S++,P++;
else if(H==="\t")S++,P+=4-P%4;else break;N.blank=H==="\n"||H==="\r"||H==="";N.nextNonspace=S;N.nextNonspaceColumn=P;N.indent=N.nextNonspaceColumn-N.column;N.indented=N.indent>=4};
vmb.prototype.finalize=function(N,b){var S=N._parent;N._open=!1;N.sourcepos[1]=[b,this.lastLineLength];this.blocks[N.type].finalize(this,N);this.tip=S};
vmb.prototype.parse=function(N){this.tip=this.doc=XrU();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!N)return this.doc;this.options.time&&console.time("preparing input");var b=N.split(rPN),S=b.length;N.charCodeAt(N.length-1)===10&&--S;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(N=0;N<S;N++)a:{var P=void 0,H=b[N],K=b[N+1],C=!0,G=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;H.indexOf("\x00")!==-1&&(H=H.replace(/\0/g,"\ufffd"));this.currentLine=H;for(this.lookahead=K;(P=G._lastChild)&&P._open;){G=P;Wl9(this);switch(this.blocks[G.type].continue(this,G)){case 0:break;case 1:C=!1;break;case 2:this.lastLineLength=H.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!C){G=G._parent;break}}this.allClosed=G===this.oldtip;this.lastMatchedContainer=
G;P=G.type!=="paragraph"&&cP4[G.type].acceptsLines;K=this.blockStarts;for(C=K.length;!P;){Wl9(this);if(!this.indented&&!P09.test(H.slice(this.nextNonspace))){Zt(this);break}for(var a=0;a<C;){var R=K[a](this,G);if(R===1){G=this.tip;break}else if(R===2){G=this.tip;P=!0;break}else a++}if(a===C){Zt(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){z$(this);this.blank&&G.lastChild&&(G.lastChild._lastLineBlank=!0);P=G.type;K=this.blank&&!(P==="block_quote"||P==="code_block"&&G._isFenced||
P==="item"&&!G._firstChild&&G.sourcepos[0][0]===this.lineNumber);for(C=G;C;)C._lastLineBlank=K,C=C._parent;this.blocks[P].acceptsLines?(RrV(this),P==="html_block"&&G._htmlBlockType>=1&&G._htmlBlockType<=5&&bSc[G._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(G,this.lineNumber)):this.offset<H.length&&!this.blank&&(this.addChild("paragraph",this.offset),Zt(this),RrV(this))}else RrV(this);this.lastLineLength=H.length}for(;this.tip;)this.finalize(this.tip,S);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");H=new t8N(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;S=H.next();)b=S.node,N=b.type,S.entering||N!=="paragraph"&&N!=="heading"&&N!=="th"&&N!="td"||this.inlineParser.parse(b);this.options.time&&console.timeEnd("inline parsing");return this.doc};EvU.prototype.render=function(N){N=new t8N(N);var b;this.buffer="";for(this.lastOut="\n";b=N.next();){var S=b.node.type;if(this[S])this[S](b.node,b.entering)}return this.buffer};
EvU.prototype.out=function(N){AH(this,N)};
var AH=function(N,b){N.buffer+=b;N.lastOut=b};
EvU.prototype.cr=function(){this.lastOut!=="\n"&&AH(this,"\n")};var nEd=/^javascript:|vbscript:|file:|data:/i,d5d=/^data:image\/(?:png|gif|jpeg|webp)/i,m5z=function(N){return nEd.test(N)&&!d5d.test(N)};
ZY.prototype=Object.create(EvU.prototype);_.v=ZY.prototype;_.v.text=function(N){this.out(N.literal)};
_.v.html_inline=function(N){this.options.safe?AH(this,"\x3c!-- raw HTML omitted --\x3e"):AH(this,N.literal)};
_.v.html_block=function(N){this.cr();this.options.safe?AH(this,"\x3c!-- raw HTML omitted --\x3e"):AH(this,N.literal);this.cr()};
_.v.softbreak=function(){AH(this,this.options.softbreak)};
_.v.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.v.link=function(N,b){var S=this.attrs(N);b?(this.options.safe&&m5z(N.destination)||S.push(["href",xM(N.destination,!0)]),N.title&&S.push(["title",xM(N.title,!0)]),this.tag("a",S)):this.tag("/a")};
_.v.image=function(N,b){b?(this.disableTags===0&&(this.options.safe&&m5z(N.destination)?AH(this,'<img src="" alt="'):AH(this,'<img src="'+xM(N.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(N.title&&AH(this,'" title="'+xM(N.title,!0)),AH(this,'" />')))};
_.v.emph=function(N,b){this.tag(b?"em":"/em")};
_.v.strong=function(N,b){this.tag(b?"strong":"/strong")};
_.v.paragraph=function(N,b){var S=N.parent.parent;N=this.attrs(N);S!==null&&S.type==="list"&&S.listTight||(b?(this.cr(),this.tag("p",N)):(this.tag("/p"),this.cr()))};
_.v.heading=function(N,b){var S="h"+N.level;N=this.attrs(N);b?(this.cr(),this.tag(S,N)):(this.tag("/"+S),this.cr())};
_.v.code=function(N){this.tag("code");this.out(N.literal);this.tag("/code")};
_.v.code_block=function(N){var b=N.info?N.info.split(/\s+/):[],S=this.attrs(N);b.length>0&&b[0].length>0&&S.push(["class","language-"+xM(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",S);this.out(N.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.v.thematic_break=function(N){N=this.attrs(N);this.cr();this.tag("hr",N,!0);this.cr()};
_.v.block_quote=function(N,b){N=this.attrs(N);b?(this.cr(),this.tag("blockquote",N)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.v.list=function(N,b){var S=N.listType==="bullet"?"ul":"ol",P=this.attrs(N);b?(N=N.listStart,N!==null&&N!==1&&P.push(["start",N.toString()]),this.cr(),this.tag(S,P)):(this.cr(),this.tag("/"+S));this.cr()};
_.v.item=function(N,b){N=this.attrs(N);b?this.tag("li",N):(this.tag("/li"),this.cr())};
_.v.custom_inline=function(N,b){b&&N.onEnter?AH(this,N.onEnter):!b&&N.onExit&&AH(this,N.onExit)};
_.v.custom_block=function(N,b){this.cr();b&&N.onEnter?AH(this,N.onEnter):!b&&N.onExit&&AH(this,N.onExit);this.cr()};
_.v.table=function(N,b){N=this.attrs(N);b?(this.cr(),this.tag("table",N)):(this.tag("/table"),this.cr())};
_.v.row=function(N,b){N._rowIsDelimiter||(N=this.attrs(N),b?this.tag("tr",N):this.tag("/tr"))};
_.v.td=function(N,b){var S=this.attrs(N);N._alignment&&S.push(["align",N._alignment]);b?this.tag("td",S):this.tag("/td")};
_.v.th=function(N,b){var S=this.attrs(N);N._alignment&&S.push(["align",N._alignment]);b?this.tag("th",S):this.tag("/th")};
_.v.out=function(N){AH(this,xM(N,!1))};
_.v.tag=function(N,b,S){if(!(this.disableTags>0)){this.buffer+="<"+N;if(b&&b.length>0){N=0;for(var P;(P=b[N])!==void 0;)this.buffer+=" "+P[0]+'="'+P[1]+'"',N++}S&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.v.attrs=function(N){var b=[];this.options.sourcepos&&(N=N.sourcepos)&&b.push(["data-sourcepos",String(N[0][0])+":"+String(N[0][1])+"-"+String(N[1][0])+":"+String(N[1][1])]);return b};
ZY.prototype.text=ZY.prototype.text;ZY.prototype.html_inline=ZY.prototype.html_inline;ZY.prototype.html_block=ZY.prototype.html_block;ZY.prototype.softbreak=ZY.prototype.softbreak;ZY.prototype.linebreak=ZY.prototype.linebreak;ZY.prototype.link=ZY.prototype.link;ZY.prototype.image=ZY.prototype.image;ZY.prototype.emph=ZY.prototype.emph;ZY.prototype.strong=ZY.prototype.strong;ZY.prototype.paragraph=ZY.prototype.paragraph;ZY.prototype.heading=ZY.prototype.heading;ZY.prototype.code=ZY.prototype.code;
ZY.prototype.code_block=ZY.prototype.code_block;ZY.prototype.thematic_break=ZY.prototype.thematic_break;ZY.prototype.block_quote=ZY.prototype.block_quote;ZY.prototype.list=ZY.prototype.list;ZY.prototype.item=ZY.prototype.item;ZY.prototype.custom_inline=ZY.prototype.custom_inline;ZY.prototype.custom_block=ZY.prototype.custom_block;ZY.prototype.table=ZY.prototype.table;ZY.prototype.row=ZY.prototype.row;ZY.prototype.td=ZY.prototype.td;ZY.prototype.th=ZY.prototype.th;ZY.prototype.out=ZY.prototype.out;
ZY.prototype.tag=ZY.prototype.tag;ZY.prototype.attrs=ZY.prototype.attrs;/*

Copyright 2010-2017 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

 Neither the name of the author nor the names of contributors may be used to
  endorse or promote products derived from this software without specific prior
  written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var kNz,T6l,nWO;(function(){function N(x,Q){return x<Q?-1:x>Q?1:x>=Q?0:NaN}
function b(x){return function(Q,E){return N(x(Q),E)}}
function S(){for(var x=0,Q=arguments.length,E={},Sp;x<Q;++x){if(!(Sp=arguments[x]+"")||Sp in E)throw Error("xe`"+Sp);E[Sp]=[]}return new P(E)}
function P(x){this._=x}
function H(x,Q){return x.trim().split(/^|\s+/).map(function(E){var Sp="",rI=E.indexOf(".");rI>=0&&(Sp=E.slice(rI+1),E=E.slice(0,rI));if(E&&!Q.hasOwnProperty(E))throw Error("ye`"+E);return{type:E,name:Sp}})}
function K(x,Q,E){for(var Sp=0,rI=x.length;Sp<rI;++Sp)if(x[Sp].name===Q){x[Sp]=MJ_;x=x.slice(0,Sp).concat(x.slice(Sp+1));break}E!=null&&x.push({name:Q,value:E});return x}
function C(x){var Q=x,E=Q.indexOf(":");E>=0&&(Q=x.slice(0,E))!=="xmlns"&&(x=x.slice(E+1));return r6.hasOwnProperty(Q)?{space:r6[Q],local:x}:x}
function G(x){return function(){var Q=this.ownerDocument,E=this.namespaceURI;return E==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(x):Q.createElementNS(E,x)}}
function a(x){return function(){return this.ownerDocument.createElementNS(x.space,x.local)}}
function R(x){x=C(x);return(x.local?a:G)(x)}
function n(){}
function d(x){return x==null?n:function(){return this.querySelector(x)}}
function m(x){return Array(x.length)}
function k(x,Q){this.ownerDocument=x.ownerDocument;this.namespaceURI=x.namespaceURI;this._next=null;this._parent=x;this.__data__=Q}
function M(x){return function(){return x}}
function l(x,Q,E,Sp,rI,kO){for(var La=0,Jb,Od=Q.length,Hk=kO.length;La<Hk;++La)(Jb=Q[La])?(Jb.__data__=kO[La],Sp[La]=Jb):E[La]=new k(x,kO[La]);for(;La<Od;++La)if(Jb=Q[La])rI[La]=Jb}
function u(x,Q,E,Sp,rI,kO,La){var Jb,Od,Hk={},G4=Q.length,tV=kO.length,w9=Array(G4),Ua;for(Jb=0;Jb<G4;++Jb)if(Od=Q[Jb])w9[Jb]=Ua="$"+La.call(Od,Od.__data__,Jb,Q),Ua in Hk?rI[Jb]=Od:Hk[Ua]=Od;for(Jb=0;Jb<tV;++Jb)Ua="$"+La.call(x,kO[Jb],Jb,kO),(Od=Hk[Ua])?(Sp[Jb]=Od,Od.__data__=kO[Jb],Hk[Ua]=null):E[Jb]=new k(x,kO[Jb]);for(Jb=0;Jb<G4;++Jb)(Od=Q[Jb])&&Hk[w9[Jb]]===Od&&(rI[Jb]=Od)}
function J(x,Q){return x<Q?-1:x>Q?1:x>=Q?0:NaN}
function Z(x){return function(){this.removeAttribute(x)}}
function D(x){return function(){this.removeAttributeNS(x.space,x.local)}}
function Y(x,Q){return function(){this.setAttribute(x,Q)}}
function V(x,Q){return function(){this.setAttributeNS(x.space,x.local,Q)}}
function g(x,Q){return function(){var E=Q.apply(this,arguments);E==null?this.removeAttribute(x):this.setAttribute(x,E)}}
function e(x,Q){return function(){var E=Q.apply(this,arguments);E==null?this.removeAttributeNS(x.space,x.local):this.setAttributeNS(x.space,x.local,E)}}
function se(x){return function(){this.style.removeProperty(x)}}
function Ca(x,Q,E){return function(){this.style.setProperty(x,Q,E)}}
function ML(x,Q,E){return function(){var Sp=Q.apply(this,arguments);Sp==null?this.style.removeProperty(x):this.style.setProperty(x,Sp,E)}}
function na(x,Q){return x.style.getPropertyValue(Q)||(x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView).getComputedStyle(x,null).getPropertyValue(Q)}
function To(x){return function(){delete this[x]}}
function jp(x,Q){return function(){this[x]=Q}}
function Xf(x,Q){return function(){var E=Q.apply(this,arguments);E==null?delete this[x]:this[x]=E}}
function YO(){this.textContent=""}
function Wk(x){return function(){this.textContent=x}}
function S9(x){return function(){var Q=x.apply(this,arguments);this.textContent=Q==null?"":Q}}
function Vu(){this.innerHTML=""}
function n9(x){return function(){this.innerHTML=x}}
function mc(x){return function(){var Q=x.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function f9(){return null}
function mJ(){var x=this.parentNode;x&&x.removeChild(this)}
function Bk(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function RU(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Ab(x,Q,E){x=kZ(x,Q,E);return function(Sp){var rI=Sp.relatedTarget;rI&&(rI===this||rI.compareDocumentPosition(this)&8)||x.call(this,Sp)}}
function kZ(x,Q,E){return function(){x.call(this,this.__data__,Q,E)}}
function Ib(x){return x.trim().split(/^|\s+/).map(function(Q){var E="",Sp=Q.indexOf(".");Sp>=0&&(E=Q.slice(Sp+1),Q=Q.slice(0,Sp));return{type:Q,name:E}})}
function Ud(x){return function(){var Q=this.__on;if(Q){for(var E=0,Sp=-1,rI=Q.length,kO;E<rI;++E)(kO=Q[E],x.type&&kO.type!==x.type||kO.name!==x.name)?Q[++Sp]=kO:this.removeEventListener(kO.type,kO.listener,kO.capture);++Sp?Q.length=Sp:delete this.__on}}}
function ob(x,Q,E){var Sp=ntZ.hasOwnProperty(x.type)?Ab:kZ;return function(rI,kO,La){rI=this.__on;var Jb;kO=Sp(Q,kO,La);if(rI){La=0;for(var Od=rI.length;La<Od;++La)if((Jb=rI[La]).type===x.type&&Jb.name===x.name){this.removeEventListener(Jb.type,Jb.listener,Jb.capture);this.addEventListener(Jb.type,Jb.listener=kO,Jb.capture=E);Jb.value=Q;return}}this.addEventListener(x.type,kO,E);Jb={type:x.type,name:x.name,value:Q,listener:kO,capture:E};rI?rI.push(Jb):this.__on=[Jb]}}
function PM(x,Q,E){var Sp=x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView,rI=Sp.CustomEvent;typeof rI==="function"?rI=new rI(Q,E):(rI=Sp.document.createEvent("Event"),E?(rI.initEvent(Q,E.bubbles,E.cancelable),rI.detail=E.detail):rI.initEvent(Q,!1,!1));x.dispatchEvent(rI)}
function Vz(x,Q){return function(){return PM(this,x,Q)}}
function ck(x,Q){return function(){return PM(this,x,Q.apply(this,arguments))}}
function d9(x,Q){this._groups=x;this._parents=Q}
function sa(){return new d9([[document.documentElement]],FMa)}
function $O(){this._="@"+(++BZi).toString(36)}
function qS(x,Q,E){x.prototype=Q.prototype=E;E.constructor=x}
function Do(x,Q){x=Object.create(x.prototype);for(var E in Q)x[E]=Q[E];return x}
function Nj(){}
function nq(x){var Q;x=(x+"").trim().toLowerCase();return(Q=lUE.exec(x))?(Q=parseInt(Q[1],16),new Lq(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=LMa.exec(x))?pq(parseInt(Q[1],16)):(Q=fUE.exec(x))?new Lq(Q[1],Q[2],Q[3],1):(Q=ul6.exec(x))?new Lq(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=Q8L.exec(x))?R_(Q[1],Q[2],Q[3],Q[4]):(Q=xqO.exec(x))?R_(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=o3E.exec(x))?Ah(Q[1],Q[2]/100,Q[3]/100,1):(Q=iHO.exec(x))?Ah(Q[1],Q[2]/100,Q[3]/100,Q[4]):dhk.hasOwnProperty(x)?
pq(dhk[x]):x==="transparent"?new Lq(NaN,NaN,NaN,0):null}
function pq(x){return new Lq(x>>16&255,x>>8&255,x&255,1)}
function R_(x,Q,E,Sp){Sp<=0&&(x=Q=E=NaN);return new Lq(x,Q,E,Sp)}
function Gn(x){x instanceof Nj||(x=nq(x));if(!x)return new Lq;x=x.rgb();return new Lq(x.r,x.g,x.b,x.opacity)}
function g9(x,Q,E,Sp){return arguments.length===1?Gn(x):new Lq(x,Q,E,Sp==null?1:Sp)}
function Lq(x,Q,E,Sp){this.r=+x;this.g=+Q;this.b=+E;this.opacity=+Sp}
function Kq(x){x=Math.max(0,Math.min(255,Math.round(x)||0));return(x<16?"0":"")+x.toString(16)}
function Ah(x,Q,E,Sp){Sp<=0?x=Q=E=NaN:E<=0||E>=1?x=Q=NaN:Q<=0&&(x=NaN);return new lz(x,Q,E,Sp)}
function Hv(x){if(x instanceof lz)return new lz(x.h,x.s,x.l,x.opacity);x instanceof Nj||(x=nq(x));if(!x)return new lz;if(x instanceof lz)return x;x=x.rgb();var Q=x.r/255,E=x.g/255,Sp=x.b/255,rI=Math.min(Q,E,Sp),kO=Math.max(Q,E,Sp),La=NaN,Jb=kO-rI,Od=(kO+rI)/2;Jb?(La=Q===kO?(E-Sp)/Jb+(E<Sp)*6:E===kO?(Sp-Q)/Jb+2:(Q-E)/Jb+4,Jb/=Od<.5?kO+rI:2-kO-rI,La*=60):Jb=Od>0&&Od<1?0:La;return new lz(La,Jb,Od,x.opacity)}
function XK(x,Q,E,Sp){return arguments.length===1?Hv(x):new lz(x,Q,E,Sp==null?1:Sp)}
function lz(x,Q,E,Sp){this.h=+x;this.s=+Q;this.l=+E;this.opacity=+Sp}
function i4(x,Q,E){return(x<60?Q+(E-Q)*x/60:x<180?E:x<240?Q+(E-Q)*(240-x)/60:Q)*255}
function fE(x){if(x instanceof uY)return new uY(x.l,x.a,x.b,x.opacity);if(x instanceof Qz){if(isNaN(x.h))return new uY(x.l,0,0,x.opacity);var Q=x.h*mhd;return new uY(x.l,Math.cos(Q)*x.c,Math.sin(Q)*x.c,x.opacity)}x instanceof Lq||(x=Gn(x));var E=tO(x.r),Sp=tO(x.g),rI=tO(x.b);Q=Ee(.2225045*E+.7168786*Sp+.0606169*rI);if(E===Sp&&Sp===rI)var kO=E=Q;else kO=Ee((.4360747*E+.3850649*Sp+.1430804*rI)/.96422),E=Ee((.0139322*E+.0971045*Sp+.7141733*rI)/.82521);return new uY(116*Q-16,500*(kO-Q),200*(Q-E),x.opacity)}
function uY(x,Q,E,Sp){this.l=+x;this.a=+Q;this.b=+E;this.opacity=+Sp}
function Ee(x){return x>Jra?Math.pow(x,1/3):x/kqO+T4Z}
function ep(x){return x>Qv?x*x*x:kqO*(x-T4Z)}
function MS(x){return 255*(x<=.0031308?12.92*x:1.055*Math.pow(x,1/2.4)-.055)}
function tO(x){return(x/=255)<=.04045?x/12.92:Math.pow((x+.055)/1.055,2.4)}
function LD(x){if(x instanceof Qz)return new Qz(x.h,x.c,x.l,x.opacity);x instanceof uY||(x=fE(x));if(x.a===0&&x.b===0)return new Qz(NaN,0,x.l,x.opacity);var Q=Math.atan2(x.b,x.a)*tEE;return new Qz(Q<0?Q+360:Q,Math.sqrt(x.a*x.a+x.b*x.b),x.l,x.opacity)}
function fq(x,Q,E,Sp){return arguments.length===1?LD(x):new Qz(x,Q,E,Sp==null?1:Sp)}
function Qz(x,Q,E,Sp){this.h=+x;this.c=+Q;this.l=+E;this.opacity=+Sp}
function lE(x,Q,E,Sp){if(arguments.length===1){var rI=x;if(rI instanceof YQ)rI=new YQ(rI.h,rI.s,rI.l,rI.opacity);else{rI instanceof Lq||(rI=Gn(rI));var kO=rI.g/255,La=rI.b/255,Jb=(MEd*La+rI.r/255*-1.7884503806-3.5172982438*kO)/(MEd+-1.7884503806-3.5172982438);La-=Jb;var Od=(1.97294*(kO-Jb)- -.29227*La)/-.90649;La=(kO=Math.sqrt(Od*Od+La*La)/(1.97294*Jb*(1-Jb)))?Math.atan2(Od,La)*tEE-120:NaN;rI=new YQ(La<0?La+360:La,kO,Jb,rI.opacity)}}else rI=new YQ(x,Q,E,Sp==null?1:Sp);return rI}
function YQ(x,Q,E,Sp){this.h=+x;this.s=+Q;this.l=+E;this.opacity=+Sp}
function CD(x,Q,E,Sp,rI){var kO=x*x,La=kO*x;return((1-3*x+3*kO-La)*Q+(4-6*kO+3*La)*E+(1+3*x+3*kO-3*La)*Sp+La*rI)/6}
function T4(x){return function(){return x}}
function Un(x,Q){return function(E){return x+E*Q}}
function F1(x,Q,E){return x=Math.pow(x,E),Q=Math.pow(Q,E)-x,E=1/E,function(Sp){return Math.pow(x+Sp*Q,E)}}
function pD(x,Q){var E=Q-x;return E?Un(x,E>180||E<-180?E-360*Math.round(E/360):E):T4(isNaN(x)?Q:x)}
function mA(x){return(x=+x)===1?SH:function(Q,E){return E-Q?F1(Q,E,x):T4(isNaN(Q)?E:Q)}}
function SH(x,Q){var E=Q-x;return E?Un(x,E):T4(isNaN(x)?Q:x)}
function Lv(x){return function(Q){var E=Q.length,Sp=Array(E),rI=Array(E),kO=Array(E),La;for(La=0;La<E;++La){var Jb=g9(Q[La]);Sp[La]=Jb.r||0;rI[La]=Jb.g||0;kO[La]=Jb.b||0}Sp=x(Sp);rI=x(rI);kO=x(kO);Jb.opacity=1;return function(Od){Jb.r=Sp(Od);Jb.g=rI(Od);Jb.b=kO(Od);return Jb+""}}}
function Dq(x,Q){return x=+x,Q-=x,function(E){return x+Q*E}}
function g5(x){return function(){return x}}
function YA(x){return function(Q){return x(Q)+""}}
function qY(x,Q){var E=xTI.lastIndex=oJp.lastIndex=0,Sp,rI,kO,La=-1,Jb=[],Od=[];x+="";for(Q+="";(Sp=xTI.exec(x))&&(rI=oJp.exec(Q));)(kO=rI.index)>E&&(kO=Q.slice(E,kO),Jb[La]?Jb[La]+=kO:Jb[++La]=kO),(Sp=Sp[0])===(rI=rI[0])?Jb[La]?Jb[La]+=rI:Jb[++La]=rI:(Jb[++La]=null,Od.push({i:La,x:Dq(Sp,rI)})),E=oJp.lastIndex;E<Q.length&&(kO=Q.slice(E),Jb[La]?Jb[La]+=kO:Jb[++La]=kO);return Jb.length<2?Od[0]?YA(Od[0].x):g5(Q):(Q=Od.length,function(Hk){for(var G4=0,tV;G4<Q;++G4)Jb[(tV=Od[G4]).i]=tV.x(Hk);return Jb.join("")})}
function A1(x,Q,E,Sp,rI,kO){var La,Jb,Od;if(La=Math.sqrt(x*x+Q*Q))x/=La,Q/=La;if(Od=x*E+Q*Sp)E-=x*Od,Sp-=Q*Od;if(Jb=Math.sqrt(E*E+Sp*Sp))E/=Jb,Sp/=Jb,Od/=Jb;x*Sp<Q*E&&(x=-x,Q=-Q,Od=-Od,La=-La);return{translateX:rI,translateY:kO,rotate:Math.atan2(Q,x)*FqO,skewX:Math.atan(Od)*FqO,scaleX:La,scaleY:Jb}}
function fv(x,Q,E,Sp){function rI(Hk){return Hk.length?Hk.pop()+" ":""}
function kO(Hk,G4,tV,w9,Ua,fD){Hk!==tV||G4!==w9?(Ua=Ua.push("translate(",null,Q,null,E),fD.push({i:Ua-4,x:Dq(Hk,tV)},{i:Ua-2,x:Dq(G4,w9)})):(tV||w9)&&Ua.push("translate("+tV+Q+w9+E)}
function La(Hk,G4,tV,w9){Hk!==G4?(Hk-G4>180?G4+=360:G4-Hk>180&&(Hk+=360),w9.push({i:tV.push(rI(tV)+"rotate(",null,Sp)-2,x:Dq(Hk,G4)})):G4&&tV.push(rI(tV)+"rotate("+G4+Sp)}
function Jb(Hk,G4,tV,w9){Hk!==G4?w9.push({i:tV.push(rI(tV)+"skewX(",null,Sp)-2,x:Dq(Hk,G4)}):G4&&tV.push(rI(tV)+"skewX("+G4+Sp)}
function Od(Hk,G4,tV,w9,Ua,fD){Hk!==tV||G4!==w9?(Ua=Ua.push(rI(Ua)+"scale(",null,",",null,")"),fD.push({i:Ua-4,x:Dq(Hk,tV)},{i:Ua-2,x:Dq(G4,w9)})):tV===1&&w9===1||Ua.push(rI(Ua)+"scale("+tV+","+w9+")")}
return function(Hk,G4){var tV=[],w9=[];Hk=x(Hk);G4=x(G4);kO(Hk.translateX,Hk.translateY,G4.translateX,G4.translateY,tV,w9);La(Hk.rotate,G4.rotate,tV,w9);Jb(Hk.skewX,G4.skewX,tV,w9);Od(Hk.scaleX,Hk.scaleY,G4.scaleX,G4.scaleY,tV,w9);Hk=G4=null;return function(Ua){for(var fD=-1,$w=w9.length,jW;++fD<$w;)tV[(jW=w9[fD]).i]=jW.x(Ua);return tV.join("")}}}
function Fw(x){return function(Q,E){var Sp=x((Q=XK(Q)).h,(E=XK(E)).h),rI=SH(Q.s,E.s),kO=SH(Q.l,E.l),La=SH(Q.opacity,E.opacity);return function(Jb){Q.h=Sp(Jb);Q.s=rI(Jb);Q.l=kO(Jb);Q.opacity=La(Jb);return Q+""}}}
function tM(x){return function(Q,E){var Sp=x((Q=fq(Q)).h,(E=fq(E)).h),rI=SH(Q.c,E.c),kO=SH(Q.l,E.l),La=SH(Q.opacity,E.opacity);return function(Jb){Q.h=Sp(Jb);Q.c=rI(Jb);Q.l=kO(Jb);Q.opacity=La(Jb);return Q+""}}}
function Ye(x){return function Sp(E){function rI(kO,La){var Jb=x((kO=lE(kO)).h,(La=lE(La)).h),Od=SH(kO.s,La.s),Hk=SH(kO.l,La.l),G4=SH(kO.opacity,La.opacity);return function(tV){kO.h=Jb(tV);kO.s=Od(tV);kO.l=Hk(Math.pow(tV,E));kO.opacity=G4(tV);return kO+""}}
E=+E;rI.gamma=Sp;return rI}(1)}
function yc(){return KZ||(B49(yP),KZ=BI.now()+kQe)}
function yP(){KZ=0}
function X5(){this._call=this._time=this._next=null}
function Xz(x,Q,E){var Sp=new X5;Sp.restart(x,Q,E);return Sp}
function Er(){KZ=(TbL=BI.now())+kQe;xL=lq=0;try{yc();++xL;for(var x=tl_,Q;x;)(Q=KZ-x._time)>=0&&x._call.call(null,Q),x=x._next;--xL}finally{xL=0;x=tl_;for(var E=Infinity;x;)if(x._call){E>x._time&&(E=x._time);var Sp=x;x=x._next}else Q=x._next,x._next=null,x=Sp?Sp._next=Q:tl_=Q;LV=Sp;pF(E);KZ=0}}
function qc(){var x=BI.now(),Q=x-TbL;Q>1E3&&(kQe-=Q,TbL=x)}
function pF(x){xL||(lq&&(lq=clearTimeout(lq)),x-KZ>24?(x<Infinity&&(lq=setTimeout(Er,x-BI.now()-kQe)),fV&&(fV=clearInterval(fV))):(fV||(TbL=BI.now(),fV=setInterval(qc,1E3)),xL=1,B49(Er)))}
function If(x,Q,E){var Sp=new X5;Q=Q==null?0:+Q;Sp.restart(function(rI){Sp.stop();x(rI+Q)},Q,E);
return Sp}
function bE(x,Q,E,Sp,rI,kO){var La=x.__transition;if(!La)x.__transition={};else if(E in La)return;Qm(x,E,{name:Q,index:Sp,group:rI,on:UqO,tween:ZHE,time:kO.time,delay:kO.delay,duration:kO.duration,ease:kO.ease,timer:null,state:0})}
function Oa(x,Q){x=Hh(x,Q);if(x.state>0)throw Error("ze");return x}
function lL(x,Q){x=Hh(x,Q);if(x.state>2)throw Error("Ae");return x}
function Hh(x,Q){x=x.__transition;if(!x||!(x=x[Q]))throw Error("Be");return x}
function Qm(x,Q,E){function Sp(Od){var Hk,G4;if(E.state!==1)return kO();for(w9 in La){var tV=La[w9];if(tV.name===E.name){if(tV.state===3)return If(Sp);tV.state===4?(tV.state=6,tV.timer.stop(),tV.on.call("interrupt",x,x.__data__,tV.index,tV.group),delete La[w9]):+w9<Q&&(tV.state=6,tV.timer.stop(),delete La[w9])}}If(function(){E.state===3&&(E.state=4,E.timer.restart(rI,E.delay,E.time),rI(Od))});
E.state=2;E.on.call("start",x,x.__data__,E.index,E.group);if(E.state===2){E.state=3;Jb=Array(G4=E.tween.length);var w9=0;for(Hk=-1;w9<G4;++w9)if(tV=E.tween[w9].value.call(x,x.__data__,E.index,E.group))Jb[++Hk]=tV;Jb.length=Hk+1}}
function rI(Od){Od=Od<E.duration?E.ease.call(null,Od/E.duration):(E.timer.restart(kO),E.state=5,1);for(var Hk=-1,G4=Jb.length;++Hk<G4;)Jb[Hk].call(null,Od);E.state===5&&(E.on.call("end",x,x.__data__,E.index,E.group),kO())}
function kO(){E.state=6;E.timer.stop();delete La[Q];for(var Od in La)return;delete x.__transition}
var La=x.__transition,Jb;La[Q]=E;E.timer=Xz(function(Od){E.state=1;E.timer.restart(Sp,E.delay,E.time);E.delay<=Od&&Sp(Od-E.delay)},0,E.time)}
function s5(x,Q){var E,Sp;return function(){var rI=lL(this,x),kO=rI.tween;if(kO!==E){Sp=E=kO;kO=0;for(var La=Sp.length;kO<La;++kO)if(Sp[kO].name===Q){Sp=Sp.slice();Sp.splice(kO,1);break}}rI.tween=Sp}}
function bM(x,Q,E){var Sp,rI;if(typeof E!=="function")throw Error();return function(){var kO=lL(this,x),La=kO.tween;if(La!==Sp){rI=(Sp=La).slice();La={name:Q,value:E};for(var Jb=0,Od=rI.length;Jb<Od;++Jb)if(rI[Jb].name===Q){rI[Jb]=La;break}Jb===Od&&rI.push(La)}kO.tween=rI}}
function EI(x,Q,E){var Sp=x._id;x.each(function(){var rI=lL(this,Sp);(rI.value||(rI.value={}))[Q]=E.apply(this,arguments)});
return function(rI){return Hh(rI,Sp).value[Q]}}
function vr(x,Q){var E;return(typeof Q==="number"?Dq:Q instanceof nq?lul:(E=nq(Q))?(Q=E,lul):qY)(x,Q)}
function uq(x){return function(){this.removeAttribute(x)}}
function Mlf(x){return function(){this.removeAttributeNS(x.space,x.local)}}
function QI(x,Q,E){var Sp,rI;return function(){var kO=this.getAttribute(x);return kO===E?null:kO===Sp?rI:rI=Q(Sp=kO,E)}}
function xV(x,Q,E){var Sp,rI;return function(){var kO=this.getAttributeNS(x.space,x.local);return kO===E?null:kO===Sp?rI:rI=Q(Sp=kO,E)}}
function FeY(x,Q,E){var Sp,rI,kO;return function(){var La=E(this);if(La==null)return void this.removeAttribute(x);var Jb=this.getAttribute(x);return Jb===La?null:Jb===Sp&&La===rI?kO:kO=Q(Sp=Jb,rI=La)}}
function j8Q(x,Q,E){var Sp,rI,kO;return function(){var La=E(this);if(La==null)return void this.removeAttributeNS(x.space,x.local);var Jb=this.getAttributeNS(x.space,x.local);return Jb===La?null:Jb===Sp&&La===rI?kO:kO=Q(Sp=Jb,rI=La)}}
function z0_(x,Q){function E(){var Sp=this,rI=Q.apply(Sp,arguments);return rI&&function(kO){Sp.setAttributeNS(x.space,x.local,rI(kO))}}
E._value=Q;return E}
function ArE(x,Q){function E(){var Sp=this,rI=Q.apply(Sp,arguments);return rI&&function(kO){Sp.setAttribute(x,rI(kO))}}
E._value=Q;return E}
function X2E(x,Q){return function(){Oa(this,x).delay=+Q.apply(this,arguments)}}
function E3q(x,Q){return Q=+Q,function(){Oa(this,x).delay=Q}}
function p2t(x,Q){return function(){lL(this,x).duration=+Q.apply(this,arguments)}}
function Y$6(x,Q){return Q=+Q,function(){lL(this,x).duration=Q}}
function yri(x,Q){if(typeof Q!=="function")throw Error();return function(){lL(this,x).ease=Q}}
function IUa(x){return(x+"").trim().split(/^|\s+/).every(function(Q){var E=Q.indexOf(".");E>=0&&(Q=Q.slice(0,E));return!Q||Q==="start"})}
function Dq6(x,Q,E){var Sp,rI,kO=IUa(Q)?Oa:lL;return function(){var La=kO(this,x),Jb=La.on;if(Jb!==Sp)(rI=(Sp=Jb).copy()).on(Q,E);La.on=rI}}
function VJ_(x){return function(){var Q=this.parentNode,E;for(E in this.__transition)if(+E!==x)return;Q&&Q.removeChild(this)}}
function g3n(x,Q){var E,Sp,rI;return function(){var kO=na(this,x),La=(this.style.removeProperty(x),na(this,x));return kO===La?null:kO===E&&La===Sp?rI:rI=Q(E=kO,Sp=La)}}
function e06(x){return function(){this.style.removeProperty(x)}}
function $qn(x,Q,E){var Sp,rI;return function(){var kO=na(this,x);return kO===E?null:kO===Sp?rI:rI=Q(Sp=kO,E)}}
function h05(x,Q,E){var Sp,rI,kO;return function(){var La=na(this,x),Jb=E(this);Jb==null&&(Jb=(this.style.removeProperty(x),na(this,x)));return La===Jb?null:La===Sp&&Jb===rI?kO:kO=Q(Sp=La,rI=Jb)}}
function q$Q(x,Q,E){function Sp(){var rI=this,kO=Q.apply(rI,arguments);return kO&&function(La){rI.style.setProperty(x,kO(La),E)}}
Sp._value=Q;return Sp}
function w2Q(x){return function(){this.textContent=x}}
function Nli(x){return function(){var Q=x(this);this.textContent=Q==null?"":Q}}
function DR(x,Q,E,Sp){this._groups=x;this._parents=Q;this._name=E;this._id=Sp}
function i5f(x){return{type:x}}
function JCf(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Bbf(){}
function Lqb(x,Q){var E=new Bbf;if(x instanceof Bbf)x.each(function(La,Jb){E.set(Jb,La)});
else if(Array.isArray(x)){var Sp=-1,rI=x.length,kO;if(Q==null)for(;++Sp<rI;)E.set(Sp,x[Sp]);else for(;++Sp<rI;)E.set(Q(kO=x[Sp],Sp,x),kO)}else if(x)for(Sp in x)E.set(Sp,x[Sp]);return E}
function l7I(){}
function fuZ(x){return function(Q){for(var E={},Sp=0;Sp<x.length;Sp++)E[x[Sp]]=Q[Sp]||"";return E}}
function bC_(x,Q){var E=fuZ(x);return function(Sp,rI){return Q(E(Sp),rI,x)}}
function SU6(x){var Q=Object.create(null),E=[];x.forEach(function(Sp){for(var rI in Sp)rI in Q||E.push(Q[rI]=rI)});
return E}
function u_9(x){function Q(La,Jb){function Od(){if(fD)return UTe;if($w)return $w=!1,QDc;var db,O2=tV,Zp;if(La.charCodeAt(O2)===34){for(;tV++<G4&&La.charCodeAt(tV)!==34||La.charCodeAt(++tV)===34;);(db=tV)>=G4?fD=!0:(Zp=La.charCodeAt(tV++))===10?$w=!0:Zp===13&&($w=!0,La.charCodeAt(tV)===10&&++tV);return La.slice(O2+1,db-1).replace(/""/g,'"')}for(;tV<G4;){if((Zp=La.charCodeAt(db=tV++))===10)$w=!0;else if(Zp===13)$w=!0,La.charCodeAt(tV)===10&&++tV;else if(Zp!==kO)continue;return La.slice(O2,db)}return fD=
!0,La.slice(O2,G4)}
var Hk=[],G4=La.length,tV=0,w9=0,Ua,fD=G4<=0,$w=!1;La.charCodeAt(G4-1)===10&&--G4;for(La.charCodeAt(G4-1)===13&&--G4;(Ua=Od())!==UTe;){for(var jW=[];Ua!==QDc&&Ua!==UTe;)jW.push(Ua),Ua=Od();Jb&&(jW=Jb(jW,w9++))==null||Hk.push(jW)}return Hk}
function E(La){return La.map(Sp).join(x)}
function Sp(La){return La==null?"":rI.test(La)?'"'+La.replace(/"/g,'""')+'"':La}
var rI=new RegExp('["'+x+"\n\r]"),kO=x.charCodeAt(0);return{parse:function(La,Jb){var Od,Hk;La=Q(La,function(G4,tV){if(Od)return Od(G4,tV-1);Hk=G4;Od=Jb?bC_(G4,Jb):fuZ(G4)});
La.columns=Hk||[];return La},
parseRows:Q,format:function(La,Jb){Jb==null&&(Jb=SU6(La));return[Jb.map(Sp).join(x)].concat(La.map(function(Od){return Jb.map(function(Hk){return Sp(Od[Hk])}).join(x)})).join("\n")},
formatRows:function(La){return La.map(E).join("\n")}}}
function PUO(x){if(!x.ok)throw Error("Ce`"+x.status+"`"+x.statusText);return x.text()}
function xh4(x){return function(Q,E,Sp){arguments.length===2&&typeof E==="function"&&(Sp=E,E=void 0);return fetch(Q,E).then(PUO).then(function(rI){return x(rI,Sp)})}}
function ot9(x,Q,E,Sp){if(isNaN(Q)||isNaN(E))return x;var rI,kO=x._root;Sp={data:Sp};var La=x._x0,Jb=x._y0,Od=x._x1,Hk=x._y1,G4,tV,w9,Ua,fD;if(!kO)return x._root=Sp,x;for(;kO.length;)if((w9=Q>=(G4=(La+Od)/2))?La=G4:Od=G4,(Ua=E>=(tV=(Jb+Hk)/2))?Jb=tV:Hk=tV,rI=kO,!(kO=kO[fD=Ua<<1|w9]))return rI[fD]=Sp,x;var $w=+x._x.call(null,kO.data);var jW=+x._y.call(null,kO.data);if(Q===$w&&E===jW)return Sp.next=kO,rI?rI[fD]=Sp:x._root=Sp,x;do rI=rI?rI[fD]=Array(4):x._root=Array(4),(w9=Q>=(G4=(La+Od)/2))?La=G4:Od=
G4,(Ua=E>=(tV=(Jb+Hk)/2))?Jb=tV:Hk=tV;while((fD=Ua<<1|w9)===(w9=(jW>=tV)<<1|$w>=G4));return rI[w9]=kO,rI[fD]=Sp,x}
function v4(x,Q,E,Sp,rI){this.node=x;this.x0=Q;this.y0=E;this.x1=Sp;this.y1=rI}
function HCQ(x){return x[0]}
function sLE(x){return x[1]}
function Z5U(x,Q,E,Sp,rI,kO){this._x=x;this._y=Q;this._x0=E;this._y0=Sp;this._x1=rI;this._y1=kO;this._root=void 0}
function iWc(x){for(var Q={data:x.data},E=Q;x=x.next;)E=E.next={data:x.data};return Q}
function Lep(x,Q){if((Q=(x=Q?x.toExponential(Q-1):x.toExponential()).indexOf("e"))<0)return null;var E=x.slice(0,Q);return[E.length>1?E[0]+E.slice(2):E,+x.slice(Q+1)]}
function Kmo(x){return x=Lep(Math.abs(x)),x?x[1]:NaN}
function vNq(x,Q){return function(E,Sp){for(var rI=E.length,kO=[],La=0,Jb=x[0],Od=0;rI>0&&Jb>0;){Od+Jb+1>Sp&&(Jb=Math.max(1,Sp-Od));kO.push(E.substring(rI-=Jb,rI+Jb));if((Od+=Jb+1)>Sp)break;Jb=x[La=(La+1)%x.length]}return kO.reverse().join(Q)}}
function OCw(x){return function(Q){return Q.replace(/[0-9]/g,function(E){return x[+E]})}}
function jnI(x){return new zmI(x)}
function zmI(x){if(!(Q=CUQ.exec(x)))throw Error("De`"+x);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function JJl(x,Q){Q=Lep(x,Q);if(!Q)return x+"";x=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+x:x.length>Q+1?x.slice(0,Q+1)+"."+x.slice(Q+1):x+Array(Q-x.length+2).join("0")}
function Uhz(x){return x}
function Gan(x){function Q(Jb){function Od(sE){var Uv=Zp,q_=R2,Bh,a$;if(O2==="c")q_=CM(sE)+q_,sE="";else{sE=+sE;var Zo=sE<0;sE=CM(Math.abs(sE),jW);if(db){var KE=sE.length,v_=1,me=-1;a:for(;v_<KE;++v_)switch(sE[v_]){case ".":me=Bh=v_;break;case "0":me===0&&(me=v_);Bh=v_;break;default:if(!+sE[v_])break a;me>0&&(me=0)}sE=me>0?sE.slice(0,me)+sE.slice(Bh+1):sE}Zo&&+sE===0&&(Zo=!1);Uv=(Zo?tV==="("?tV:"-":tV==="-"||tV==="("?"":tV)+Uv;q_=(O2==="s"?ZWc[8+jDZ/3]:"")+q_+(Zo&&tV==="("?")":"");if(xT)for(Zo=-1,
Bh=sE.length;++Zo<Bh;)if(a$=sE.charCodeAt(Zo),48>a$||a$>57){q_=(a$===46?rI+sE.slice(Zo+1):sE.slice(Zo))+q_;sE=sE.slice(0,Zo);break}}$w&&!Ua&&(sE=E(sE,Infinity));a$=Uv.length+sE.length+q_.length;Zo=a$<fD?Array(fD-a$+1).join(Hk):"";$w&&Ua&&(sE=E(Zo+sE,Zo.length?fD-q_.length:Infinity),Zo="");switch(G4){case "<":sE=Uv+sE+q_+Zo;break;case "=":sE=Uv+Zo+sE+q_;break;case "^":sE=Zo.slice(0,a$=Zo.length>>1)+Uv+sE+q_+Zo.slice(a$);break;default:sE=Zo+Uv+sE+q_}return kO(sE)}
Jb=jnI(Jb);var Hk=Jb.fill,G4=Jb.align,tV=Jb.sign,w9=Jb.symbol,Ua=Jb.zero,fD=Jb.width,$w=Jb.comma,jW=Jb.precision,db=Jb.trim,O2=Jb.type;O2==="n"?($w=!0,O2="g"):zyl[O2]||(jW==null&&(jW=12),db=!0,O2="g");if(Ua||Hk==="0"&&G4==="=")Ua=!0,Hk="0",G4="=";var Zp=w9==="$"?Sp[0]:w9==="#"&&/[boxX]/.test(O2)?"0"+O2.toLowerCase():"",R2=w9==="$"?Sp[1]:/[%p]/.test(O2)?La:"",CM=zyl[O2],xT=/[defgprs%]/.test(O2);jW=jW==null?6:/[gprs]/.test(O2)?Math.max(1,Math.min(21,jW)):Math.max(0,Math.min(20,jW));Od.toString=function(){return Jb+
""};
return Od}
var E=x.grouping&&x.thousands?vNq(x.grouping,x.thousands):Uhz,Sp=x.currency,rI=x.decimal,kO=x.numerals?OCw(x.numerals):Uhz,La=x.percent||"%";return{format:Q,formatPrefix:function(Jb,Od){var Hk=Q((Jb=jnI(Jb),Jb.type="f",Jb));Jb=Math.max(-8,Math.min(8,Math.floor(Kmo(Od)/3)))*3;var G4=Math.pow(10,-Jb),tV=ZWc[8+Jb/3];return function(w9){return Hk(G4*w9)+tV}}}}
function O7(){this.reset()}
function AJV(x,Q,E){var Sp=x.s=Q+E,rI=Sp-Q;x.t=Q-(Sp-rI)+(E-rI)}
function f7Y(x){return x>1?cp:x<-1?-cp:Math.asin(x)}
function ran(){}
function Xnb(x){var Q=x[0];x=x[1];var E=aT(x);return[E*aT(Q),E*pu(Q),pu(x)]}
function Etz(x,Q){return[x[1]*Q[2]-x[2]*Q[1],x[2]*Q[0]-x[0]*Q[2],x[0]*Q[1]-x[1]*Q[0]]}
function pnE(x){var Q=uxU(x[0]*x[0]+x[1]*x[1]+x[2]*x[2]);x[0]/=Q;x[1]/=Q;x[2]/=Q}
function caq(){var x=[],Q;return{point:function(E,Sp){Q.push([E,Sp])},
lineStart:function(){x.push(Q=[])},
lineEnd:ran,rejoin:function(){x.length>1&&x.push(x.pop().concat(x.shift()))},
result:function(){var E=x;x=[];Q=null;return E}}}
function Q5I(x,Q,E,Sp){this.x=x;this.z=Q;this.o=E;this.e=Sp;this.v=!1;this.n=this.p=null}
function aSw(x,Q,E,Sp,rI){var kO=[],La=[];x.forEach(function(tV){if(!((w9=tV.length-1)<=0)){var w9,Ua=tV[0],fD=tV[w9],$w=Ua;if(VJ($w[0]-fD[0])<1E-6&&VJ($w[1]-fD[1])<1E-6){rI.lineStart();for(Jb=0;Jb<w9;++Jb)rI.point((Ua=tV[Jb])[0],Ua[1]);rI.lineEnd()}else kO.push(w9=new Q5I(Ua,tV,null,!0)),La.push(w9.o=new Q5I(Ua,null,w9,!1)),kO.push(w9=new Q5I(fD,tV,null,!1)),La.push(w9.o=new Q5I(fD,null,w9,!0))}});
if(kO.length){La.sort(Q);YDk(kO);YDk(La);var Jb=0;for(x=La.length;Jb<x;++Jb)La[Jb].e=E=!E;E=kO[0];for(var Od;;){for(var Hk=E,G4=!0;Hk.v;)if((Hk=Hk.n)===E)return;Q=Hk.z;rI.lineStart();do{Hk.v=Hk.o.v=!0;if(Hk.e){if(G4)for(Jb=0,x=Q.length;Jb<x;++Jb)rI.point((Od=Q[Jb])[0],Od[1]);else Sp(Hk.x,Hk.n.x,1,rI);Hk=Hk.n}else{if(G4)for(Q=Hk.p.z,Jb=Q.length-1;Jb>=0;--Jb)rI.point((Od=Q[Jb])[0],Od[1]);else Sp(Hk.x,Hk.p.x,-1,rI);Hk=Hk.p}Hk=Hk.o;Q=Hk.z;G4=!G4}while(!Hk.v);rI.lineEnd()}}}
function YDk(x){if(Q=x.length){for(var Q,E=0,Sp=x[0],rI;++E<Q;)Sp.n=rI=x[E],rI.p=Sp,Sp=rI;Sp.n=rI=x[0];rI.p=Sp}}
function R$6(x){return x.length>1}
function WmJ(x,Q){return((x=x.x)[0]<0?x[1]-cp-1E-6:cp-x[1])-((Q=Q.x)[0]<0?Q[1]-cp-1E-6:cp-Q[1])}
function ACp(){}
function yJc(x){return function(Q,E){var Sp=aT(Q),rI=aT(E);Sp=x(Sp*rI);return[Sp*rI*pu(Q),Sp*pu(E)]}}
function oK(x){return function(Q,E){var Sp=uxU(Q*Q+E*E),rI=x(Sp),kO=pu(rI);rI=aT(rI);return[Iub(Q*kO,Sp*rI),f7Y(Sp&&E*kO/Sp)]}}
function nNQ(x){var Q=0,E=x.children,Sp=E&&E.length;if(Sp)for(;--Sp>=0;)Q+=E[Sp].value;else Q=1;x.value=Q}
function DhE(x,Q){var E=new iq(x);x=+x.value&&(E.value=x.value);var Sp,rI=[E],kO,La,Jb,Od;for(Q==null&&(Q=d1Q);Sp=rI.pop();)if(x&&(Sp.value=+Sp.data.value),(La=Q(Sp.data))&&(Od=La.length))for(Sp.children=Array(Od),Jb=Od-1;Jb>=0;--Jb)rI.push(kO=Sp.children[Jb]=new iq(La[Jb])),kO.parent=Sp,kO.depth=Sp.depth+1;return E.eachBefore(m1n)}
function d1Q(x){return x.children}
function kaO(x){x.data=x.data.data}
function m1n(x){var Q=0;do x.height=Q;while((x=x.parent)&&x.height<++Q)}
function iq(x){this.data=x;this.depth=this.height=0;this.parent=null}
function ov(x,Q,E,Sp){function rI(kO){return x(kO=new Date(+kO)),kO}
rI.floor=rI;rI.ceil=function(kO){return x(kO=new Date(kO-1)),Q(kO,1),x(kO),kO};
rI.round=function(kO){var La=rI(kO),Jb=rI.ceil(kO);return kO-La<Jb-kO?La:Jb};
rI.offset=function(kO,La){return Q(kO=new Date(+kO),La==null?1:Math.floor(La)),kO};
rI.range=function(kO,La,Jb){var Od=[],Hk;kO=rI.ceil(kO);Jb=Jb==null?1:Math.floor(Jb);if(!(kO<La&&Jb>0))return Od;do Od.push(Hk=new Date(+kO)),Q(kO,Jb),x(kO);while(Hk<kO&&kO<La);return Od};
rI.filter=function(kO){return ov(function(La){if(La>=La)for(;x(La),!kO(La);)La.setTime(La-1)},function(La,Jb){if(La>=La)if(Jb<0)for(;++Jb<=0;)for(;Q(La,-1),!kO(La););
else for(;--Jb>=0;)for(;Q(La,1),!kO(La););})};
E&&(rI.count=function(kO,La){XOo.setTime(+kO);EJE.setTime(+La);x(XOo);x(EJE);return Math.floor(E(XOo,EJE))},rI.every=function(kO){kO=Math.floor(kO);
return isFinite(kO)&&kO>0?kO>1?rI.filter(Sp?function(La){return Sp(La)%kO===0}:function(La){return rI.count(0,La)%kO===0}):rI:null});
return rI}
function vf(x){return ov(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-x)%7);Q.setHours(0,0,0,0)},function(Q,E){Q.setDate(Q.getDate()+E*7)},function(Q,E){return(E-Q-(E.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function OJ(x){return ov(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-x)%7);Q.setUTCHours(0,0,0,0)},function(Q,E){Q.setUTCDate(Q.getUTCDate()+E*7)},function(Q,E){return(E-Q)/6048E5})}
function TlO(x){if(0<=x.y&&x.y<100){var Q=new Date(-1,x.m,x.d,x.H,x.M,x.S,x.L);Q.setFullYear(x.y);return Q}return new Date(x.y,x.m,x.d,x.H,x.M,x.S,x.L)}
function xco(x){if(0<=x.y&&x.y<100){var Q=new Date(Date.UTC(-1,x.m,x.d,x.H,x.M,x.S,x.L));Q.setUTCFullYear(x.y);return Q}return new Date(Date.UTC(x.y,x.m,x.d,x.H,x.M,x.S,x.L))}
function JX(x){return{y:x,m:0,d:1,H:0,M:0,S:0,L:0}}
function tqq(x){function Q(q_,Bh){return function(a$){var Zo=[],KE=-1,v_=0,me=q_.length,oN,p1;for(a$ instanceof Date||(a$=new Date(+a$));++KE<me;)if(q_.charCodeAt(KE)===37){Zo.push(q_.slice(v_,KE));(v_=VEZ[oN=q_.charAt(++KE)])!=null?oN=q_.charAt(++KE):v_=oN==="e"?" ":"0";if(p1=Bh[oN])oN=p1(a$,v_);Zo.push(oN);v_=KE+1}Zo.push(q_.slice(v_,KE));return Zo.join("")}}
function E(q_,Bh){return function(a$){var Zo=JX(1900);if(Sp(Zo,q_,a$,0)!=a$.length)return null;if("Q"in Zo)return new Date(Zo.Q);"p"in Zo&&(Zo.H=Zo.H%12+Zo.p*12);if("V"in Zo){if(Zo.V<1||Zo.V>53)return null;"w"in Zo||(Zo.w=1);if("Z"in Zo){a$=xco(JX(Zo.y));var KE=a$.getUTCDay();a$=KE>4||KE===0?pOL.ceil(a$):pOL(a$);a$=gtz.offset(a$,(Zo.V-1)*7);Zo.y=a$.getUTCFullYear();Zo.m=a$.getUTCMonth();Zo.d=a$.getUTCDate()+(Zo.w+6)%7}else a$=Bh(JX(Zo.y)),KE=a$.getDay(),a$=KE>4||KE===0?YNs.ceil(a$):YNs(a$),a$=eyz.offset(a$,
(Zo.V-1)*7),Zo.y=a$.getFullYear(),Zo.m=a$.getMonth(),Zo.d=a$.getDate()+(Zo.w+6)%7}else if("W"in Zo||"U"in Zo)"w"in Zo||(Zo.w="u"in Zo?Zo.u%7:"W"in Zo?1:0),KE="Z"in Zo?xco(JX(Zo.y)).getUTCDay():Bh(JX(Zo.y)).getDay(),Zo.m=0,Zo.d="W"in Zo?(Zo.w+6)%7+Zo.W*7-(KE+5)%7:Zo.w+Zo.U*7-(KE+6)%7;return"Z"in Zo?(Zo.H+=Zo.Z/100|0,Zo.M+=Zo.Z%100,xco(Zo)):Bh(Zo)}}
function Sp(q_,Bh,a$,Zo){for(var KE=0,v_=Bh.length,me=a$.length,oN;KE<v_;){if(Zo>=me)return-1;oN=Bh.charCodeAt(KE++);if(oN===37){if(oN=Bh.charAt(KE++),oN=Uv[oN in VEZ?Bh.charAt(KE++):oN],!oN||(Zo=oN(q_,a$,Zo))<0)return-1}else if(oN!=a$.charCodeAt(Zo++))return-1}return Zo}
var rI=x.dateTime,kO=x.date,La=x.time,Jb=x.periods,Od=x.days,Hk=x.shortDays,G4=x.months,tV=x.shortMonths,w9=U9(Jb),Ua=ZZ(Jb),fD=U9(Od),$w=ZZ(Od),jW=U9(Hk),db=ZZ(Hk),O2=U9(G4),Zp=ZZ(G4),R2=U9(tV),CM=ZZ(tV),xT={a:function(q_){return Hk[q_.getDay()]},
A:function(q_){return Od[q_.getDay()]},
b:function(q_){return tV[q_.getMonth()]},
B:function(q_){return G4[q_.getMonth()]},
c:null,d:$hN,e:$hN,f:Mqw,H:FmJ,I:Blo,j:lSO,L:hyV,m:Lmw,M:fSo,p:function(q_){return Jb[+(q_.getHours()>=12)]},
Q:qDc,s:wnZ,S:u3L,u:QLO,U:x1n,V:oN_,w:iCE,W:JaO,x:null,X:null,y:U1_,Y:ZCa,Z:jLt,"%":NZV},sE={a:function(q_){return Hk[q_.getUTCDay()]},
A:function(q_){return Od[q_.getUTCDay()]},
b:function(q_){return tV[q_.getUTCMonth()]},
B:function(q_){return G4[q_.getUTCMonth()]},
c:null,d:bHV,e:bHV,f:z$J,H:AaQ,I:X8Q,j:ENL,L:S$N,m:p8a,M:YUt,p:function(q_){return Jb[+(q_.getUTCHours()>=12)]},
Q:qDc,s:wnZ,S:yat,u:ISQ,U:D1q,V:Vqw,w:gNE,W:e$L,x:null,X:null,y:$16,Y:h$J,Z:qUL,"%":NZV},Uv={a:function(q_,Bh,a$){return(Bh=jW.exec(Bh.slice(a$)))?(q_.w=db[Bh[0].toLowerCase()],a$+Bh[0].length):-1},
A:function(q_,Bh,a$){return(Bh=fD.exec(Bh.slice(a$)))?(q_.w=$w[Bh[0].toLowerCase()],a$+Bh[0].length):-1},
b:function(q_,Bh,a$){return(Bh=R2.exec(Bh.slice(a$)))?(q_.m=CM[Bh[0].toLowerCase()],a$+Bh[0].length):-1},
B:function(q_,Bh,a$){return(Bh=O2.exec(Bh.slice(a$)))?(q_.m=Zp[Bh[0].toLowerCase()],a$+Bh[0].length):-1},
c:function(q_,Bh,a$){return Sp(q_,rI,Bh,a$)},
d:Pub,e:Pub,f:w86,H:HH4,I:HH4,j:NSw,L:bZa,m:SJ5,M:PrO,p:function(q_,Bh,a$){return(Bh=w9.exec(Bh.slice(a$)))?(q_.p=Ua[Bh[0].toLowerCase()],a$+Bh[0].length):-1},
Q:HZi,s:saO,S:KIo,u:v85,U:OZt,V:CrE,w:GHq,W:r$L,x:function(q_,Bh,a$){return Sp(q_,kO,Bh,a$)},
X:function(q_,Bh,a$){return Sp(q_,La,Bh,a$)},
y:c$q,Y:a9E,Z:R7n,"%":WIw};xT.x=Q(kO,xT);xT.X=Q(La,xT);xT.c=Q(rI,xT);sE.x=Q(kO,sE);sE.X=Q(La,sE);sE.c=Q(rI,sE);return{format:function(q_){var Bh=Q(q_,xT);Bh.toString=function(){return q_};
return Bh},
parse:function(q_){var Bh=E(q_,TlO);Bh.toString=function(){return q_};
return Bh},
utcFormat:function(q_){var Bh=Q(q_,sE);Bh.toString=function(){return q_};
return Bh},
utcParse:function(q_){var Bh=E(q_,xco);Bh.toString=function(){return q_};
return Bh}}}
function U2(x,Q,E){var Sp=x<0?"-":"";x=(Sp?-x:x)+"";var rI=x.length;return Sp+(rI<E?Array(E-rI+1).join(Q)+x:x)}
function n8Q(x){return x.replace(din,"\\$&")}
function U9(x){return new RegExp("^(?:"+x.map(n8Q).join("|")+")","i")}
function ZZ(x){for(var Q={},E=-1,Sp=x.length;++E<Sp;)Q[x[E].toLowerCase()]=E;return Q}
function GHq(x,Q,E){return(Q=jt.exec(Q.slice(E,E+1)))?(x.w=+Q[0],E+Q[0].length):-1}
function v85(x,Q,E){return(Q=jt.exec(Q.slice(E,E+1)))?(x.u=+Q[0],E+Q[0].length):-1}
function OZt(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.U=+Q[0],E+Q[0].length):-1}
function CrE(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.V=+Q[0],E+Q[0].length):-1}
function r$L(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.W=+Q[0],E+Q[0].length):-1}
function a9E(x,Q,E){return(Q=jt.exec(Q.slice(E,E+4)))?(x.y=+Q[0],E+Q[0].length):-1}
function c$q(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.y=+Q[0]+(+Q[0]>68?1900:2E3),E+Q[0].length):-1}
function R7n(x,Q,E){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(E,E+6)))?(x.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),E+Q[0].length):-1}
function SJ5(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.m=Q[0]-1,E+Q[0].length):-1}
function Pub(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.d=+Q[0],E+Q[0].length):-1}
function NSw(x,Q,E){return(Q=jt.exec(Q.slice(E,E+3)))?(x.m=0,x.d=+Q[0],E+Q[0].length):-1}
function HH4(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.H=+Q[0],E+Q[0].length):-1}
function PrO(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.M=+Q[0],E+Q[0].length):-1}
function KIo(x,Q,E){return(Q=jt.exec(Q.slice(E,E+2)))?(x.S=+Q[0],E+Q[0].length):-1}
function bZa(x,Q,E){return(Q=jt.exec(Q.slice(E,E+3)))?(x.L=+Q[0],E+Q[0].length):-1}
function w86(x,Q,E){return(Q=jt.exec(Q.slice(E,E+6)))?(x.L=Math.floor(Q[0]/1E3),E+Q[0].length):-1}
function WIw(x,Q,E){return(x=mio.exec(Q.slice(E,E+1)))?E+x[0].length:-1}
function HZi(x,Q,E){return(Q=jt.exec(Q.slice(E)))?(x.Q=+Q[0],E+Q[0].length):-1}
function saO(x,Q,E){return(Q=jt.exec(Q.slice(E)))?(x.Q=+Q[0]*1E3,E+Q[0].length):-1}
function $hN(x,Q){return U2(x.getDate(),Q,2)}
function FmJ(x,Q){return U2(x.getHours(),Q,2)}
function Blo(x,Q){return U2(x.getHours()%12||12,Q,2)}
function lSO(x,Q){return U2(1+eyz.count(oP(x),x),Q,3)}
function hyV(x,Q){return U2(x.getMilliseconds(),Q,3)}
function Mqw(x,Q){return hyV(x,Q)+"000"}
function Lmw(x,Q){return U2(x.getMonth()+1,Q,2)}
function fSo(x,Q){return U2(x.getMinutes(),Q,2)}
function u3L(x,Q){return U2(x.getSeconds(),Q,2)}
function QLO(x){x=x.getDay();return x===0?7:x}
function x1n(x,Q){return U2(kHE.count(oP(x),x),Q,2)}
function oN_(x,Q){var E=x.getDay();x=E>=4||E===0?yCf(x):yCf.ceil(x);return U2(yCf.count(oP(x),x)+(oP(x).getDay()===4),Q,2)}
function iCE(x){return x.getDay()}
function JaO(x,Q){return U2(YNs.count(oP(x),x),Q,2)}
function U1_(x,Q){return U2(x.getFullYear()%100,Q,2)}
function ZCa(x,Q){return U2(x.getFullYear()%1E4,Q,4)}
function jLt(x){x=x.getTimezoneOffset();return(x>0?"-":(x*=-1,"+"))+U2(x/60|0,"0",2)+U2(x%60,"0",2)}
function bHV(x,Q){return U2(x.getUTCDate(),Q,2)}
function AaQ(x,Q){return U2(x.getUTCHours(),Q,2)}
function X8Q(x,Q){return U2(x.getUTCHours()%12||12,Q,2)}
function ENL(x,Q){return U2(1+gtz.count(ie(x),x),Q,3)}
function S$N(x,Q){return U2(x.getUTCMilliseconds(),Q,3)}
function z$J(x,Q){return S$N(x,Q)+"000"}
function p8a(x,Q){return U2(x.getUTCMonth()+1,Q,2)}
function YUt(x,Q){return U2(x.getUTCMinutes(),Q,2)}
function yat(x,Q){return U2(x.getUTCSeconds(),Q,2)}
function ISQ(x){x=x.getUTCDay();return x===0?7:x}
function D1q(x,Q){return U2(TSa.count(ie(x),x),Q,2)}
function Vqw(x,Q){var E=x.getUTCDay();x=E>=4||E===0?Icb(x):Icb.ceil(x);return U2(Icb.count(ie(x),x)+(ie(x).getUTCDay()===4),Q,2)}
function gNE(x){return x.getUTCDay()}
function e$L(x,Q){return U2(pOL.count(ie(x),x),Q,2)}
function $16(x,Q){return U2(x.getUTCFullYear()%100,Q,2)}
function h$J(x,Q){return U2(x.getUTCFullYear()%1E4,Q,4)}
function qUL(){return"+0000"}
function NZV(){return"%"}
function qDc(x){return+x}
function wnZ(x){return Math.floor(+x/1E3)}
function Tn(x){for(var Q=x.length/6|0,E=Array(Q),Sp=0;Sp<Q;)E[Sp]="#"+x.slice(Sp*6,++Sp*6);return E}
function vq(x){return tIq(x[x.length-1])}
function o7f(x){var Q=x.length;return function(E){return x[Math.max(0,Math.min(Q-1,Math.floor(E*Q)))]}}
function s89(x){this._context=x}
function KMd(x){this._curve=x}
function v3V(x,Q,E){var Sp=x._x1-x._x0;Q-=x._x1;var rI=(x._y1-x._y0)/(Sp||Q<0&&-0);x=(E-x._y1)/(Q||Sp<0&&-0);return((rI<0?-1:1)+(x<0?-1:1))*Math.min(Math.abs(rI),Math.abs(x),.5*Math.abs((rI*Q+x*Sp)/(Sp+Q)))||0}
function OHd(x,Q){var E=x._x1-x._x0;return E?(3*(x._y1-x._y0)/E-Q)/2:Q}
function DTO(x,Q,E){var Sp=x._x0,rI=x._x1,kO=x._y1,La=(rI-Sp)/3;x._context.bezierCurveTo(Sp+La,x._y0+La*Q,rI-La,kO-La*E,rI,kO)}
function V6I(x){this._context=x}
function Cud(x){this._context=x}
function jN(x,Q,E){this.k=x;this.x=Q;this.y=E}
(function(x){x.length===1&&(x=b(x));return{left:function(Q,E,Sp,rI){Sp==null&&(Sp=0);rI==null&&(rI=Q.length);for(;Sp<rI;){var kO=Sp+rI>>>1;x(Q[kO],E)<0?Sp=kO+1:rI=kO}return Sp},
right:function(Q,E,Sp,rI){Sp==null&&(Sp=0);rI==null&&(rI=Q.length);for(;Sp<rI;){var kO=Sp+rI>>>1;x(Q[kO],E)>0?rI=kO:Sp=kO+1}return Sp}}})(N);
var MJ_={value:function(){}};
P.prototype=S.prototype={constructor:P,on:function(x,Q){var E=this._,Sp=H(x+"",E),rI,kO=-1,La=Sp.length;if(arguments.length<2)for(;++kO<La;){var Jb;if(Jb=rI=(x=Sp[kO]).type){a:{Jb=E[rI];for(var Od=0,Hk=Jb.length;Od<Hk;++Od)if((rI=Jb[Od]).name===x.name){rI=rI.value;break a}rI=void 0}Jb=rI}if(Jb)return rI}else{if(Q!=null&&typeof Q!=="function")throw Error("Ee`"+Q);for(;++kO<La;)if(rI=(x=Sp[kO]).type)E[rI]=K(E[rI],x.name,Q);else if(Q==null)for(rI in E)E[rI]=K(E[rI],x.name,null);return this}},
copy:function(){var x={},Q=this._,E;for(E in Q)x[E]=Q[E].slice();return new P(x)},
call:function(x,Q){if((rI=arguments.length-2)>0)for(var E=Array(rI),Sp=0,rI,kO;Sp<rI;++Sp)E[Sp]=arguments[Sp+2];if(!this._.hasOwnProperty(x))throw Error("ye`"+x);kO=this._[x];Sp=0;for(rI=kO.length;Sp<rI;++Sp)kO[Sp].value.apply(Q,E)},
apply:function(x,Q,E){if(!this._.hasOwnProperty(x))throw Error("ye`"+x);x=this._[x];for(var Sp=0,rI=x.length;Sp<rI;++Sp)x[Sp].value.apply(Q,E)}};
var r6={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},GgO=function(x){return function(){return this.matches(x)}};
if(typeof document!=="undefined"){var zv=document.documentElement;if(!zv.matches){var MIL=zv.webkitMatchesSelector||zv.msMatchesSelector||zv.mozMatchesSelector||zv.oMatchesSelector;GgO=function(x){return function(){return MIL.call(this,x)}}}}var rrk=GgO;
k.prototype={constructor:k,appendChild:function(x){return this._parent.insertBefore(x,this._next)},
insertBefore:function(x,Q){return this._parent.insertBefore(x,Q)},
querySelector:function(x){return this._parent.querySelector(x)},
querySelectorAll:function(x){return this._parent.querySelectorAll(x)}};
var ntZ={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(ntZ={mouseenter:"mouseover",mouseleave:"mouseout"}));var FMa=[null];d9.prototype=sa.prototype={constructor:d9,select:function(x){typeof x!=="function"&&(x=d(x));for(var Q=this._groups,E=Q.length,Sp=Array(E),rI=0;rI<E;++rI)for(var kO=Q[rI],La=kO.length,Jb=Sp[rI]=Array(La),Od,Hk,G4=0;G4<La;++G4)(Od=kO[G4])&&(Hk=x.call(Od,Od.__data__,G4,kO))&&("__data__"in Od&&(Hk.__data__=Od.__data__),Jb[G4]=Hk);return new d9(Sp,
this._parents)},
filter:function(x){typeof x!=="function"&&(x=rrk(x));for(var Q=this._groups,E=Q.length,Sp=Array(E),rI=0;rI<E;++rI)for(var kO=Q[rI],La=kO.length,Jb=Sp[rI]=[],Od,Hk=0;Hk<La;++Hk)(Od=kO[Hk])&&x.call(Od,Od.__data__,Hk,kO)&&Jb.push(Od);return new d9(Sp,this._parents)},
data:function(x,Q){if(!x)return Ua=Array(this.size()),Hk=-1,this.each(function(O2){Ua[++Hk]=O2}),Ua;
var E=Q?u:l,Sp=this._parents,rI=this._groups;typeof x!=="function"&&(x=M(x));for(var kO=rI.length,La=Array(kO),Jb=Array(kO),Od=Array(kO),Hk=0;Hk<kO;++Hk){var G4=Sp[Hk],tV=rI[Hk],w9=tV.length,Ua=x.call(G4,G4&&G4.__data__,Hk,Sp),fD=Ua.length,$w=Jb[Hk]=Array(fD),jW=La[Hk]=Array(fD);w9=Od[Hk]=Array(w9);E(G4,tV,$w,jW,w9,Ua,Q);tV=G4=0;for(var db;G4<fD;++G4)if(w9=$w[G4]){for(G4>=tV&&(tV=G4+1);!(db=jW[tV])&&++tV<fD;);w9._next=db||null}}La=new d9(La,Sp);La._enter=Jb;La._exit=Od;return La},
enter:function(){return new d9(this._enter||this._groups.map(m),this._parents)},
exit:function(){return new d9(this._exit||this._groups.map(m),this._parents)},
merge:function(x){var Q=this._groups;x=x._groups;for(var E=Q.length,Sp=Math.min(E,x.length),rI=Array(E),kO=0;kO<Sp;++kO)for(var La=Q[kO],Jb=x[kO],Od=La.length,Hk=rI[kO]=Array(Od),G4,tV=0;tV<Od;++tV)if(G4=La[tV]||Jb[tV])Hk[tV]=G4;for(;kO<E;++kO)rI[kO]=Q[kO];return new d9(rI,this._parents)},
order:function(){for(var x=this._groups,Q=-1,E=x.length;++Q<E;)for(var Sp=x[Q],rI=Sp.length-1,kO=Sp[rI],La;--rI>=0;)if(La=Sp[rI])kO&&kO!==La.nextSibling&&kO.parentNode.insertBefore(La,kO),kO=La;return this},
sort:function(x){function Q(tV,w9){return tV&&w9?x(tV.__data__,w9.__data__):!tV-!w9}
x||(x=J);for(var E=this._groups,Sp=E.length,rI=Array(Sp),kO=0;kO<Sp;++kO){for(var La=E[kO],Jb=La.length,Od=rI[kO]=Array(Jb),Hk,G4=0;G4<Jb;++G4)if(Hk=La[G4])Od[G4]=Hk;Od.sort(Q)}return(new d9(rI,this._parents)).order()},
call:function(){var x=arguments[0];arguments[0]=this;x.apply(null,arguments);return this},
nodes:function(){var x=Array(this.size()),Q=-1;this.each(function(){x[++Q]=this});
return x},
node:function(){for(var x=this._groups,Q=0,E=x.length;Q<E;++Q)for(var Sp=x[Q],rI=0,kO=Sp.length;rI<kO;++rI){var La=Sp[rI];if(La)return La}return null},
size:function(){var x=0;this.each(function(){++x});
return x},
empty:function(){return!this.node()},
each:function(x){for(var Q=this._groups,E=0,Sp=Q.length;E<Sp;++E)for(var rI=Q[E],kO=0,La=rI.length,Jb;kO<La;++kO)(Jb=rI[kO])&&x.call(Jb,Jb.__data__,kO,rI);return this},
attr:function(x,Q){var E=C(x);if(arguments.length<2){var Sp=this.node();return E.local?Sp.getAttributeNS(E.space,E.local):Sp.getAttribute(E)}return this.each((Q==null?E.local?D:Z:typeof Q==="function"?E.local?e:g:E.local?V:Y)(E,Q))},
style:function(x,Q,E){return arguments.length>1?this.each((Q==null?se:typeof Q==="function"?ML:Ca)(x,Q,E==null?"":E)):na(this.node(),x)},
property:function(x,Q){return arguments.length>1?this.each((Q==null?To:typeof Q==="function"?Xf:jp)(x,Q)):this.node()[x]},
text:function(x){return arguments.length?this.each(x==null?YO:(typeof x==="function"?S9:Wk)(x)):this.node().textContent},
html:function(x){return arguments.length?this.each(x==null?Vu:(typeof x==="function"?mc:n9)(x)):this.node().innerHTML},
append:function(x){var Q=typeof x==="function"?x:R(x);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(x,Q){var E=typeof x==="function"?x:R(x),Sp=Q==null?f9:typeof Q==="function"?Q:d(Q);return this.select(function(){return this.insertBefore(E.apply(this,arguments),Sp.apply(this,arguments)||null)})},
remove:function(){return this.each(mJ)},
clone:function(x){return this.select(x?RU:Bk)},
datum:function(x){return arguments.length?this.property("__data__",x):this.node().__data__},
on:function(x,Q,E){var Sp=Ib(x+""),rI=Sp.length,kO;if(arguments.length<2){var La=this.node().__on;if(La)for(var Jb=0,Od=La.length,Hk;Jb<Od;++Jb){var G4=0;for(Hk=La[Jb];G4<rI;++G4)if((kO=Sp[G4]).type===Hk.type&&kO.name===Hk.name)return Hk.value}}else{La=Q?ob:Ud;E==null&&(E=!1);for(G4=0;G4<rI;++G4)this.each(La(Sp[G4],Q,E));return this}},
dispatch:function(x,Q){return this.each((typeof Q==="function"?ck:Vz)(x,Q))}};
var BZi=0;$O.prototype=function(){return new $O}.prototype={constructor:$O,
get:function(x){for(var Q=this._;!(Q in x);)if(!(x=x.parentNode))return;return x[Q]},
set:function(x,Q){return x[this._]=Q},
remove:function(x){return this._ in x&&delete x[this._]},
toString:function(){return this._}};
var JE=1/.7,lUE=/^#([0-9a-f]{3})$/,LMa=/^#([0-9a-f]{6})$/,fUE=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ul6=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Q8L=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),xqO=RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
o3E=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),iHO=RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),dhk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,
blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,
darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,
lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,
mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,
purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};
qS(Nj,nq,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
qS(Lq,g9,Do(Nj,{brighter:function(x){x=x==null?JE:Math.pow(JE,x);return new Lq(this.r*x,this.g*x,this.b*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new Lq(this.r*x,this.g*x,this.b*x,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+Kq(this.r)+Kq(this.g)+Kq(this.b)},
toString:function(){var x=this.opacity;x=isNaN(x)?1:Math.max(0,Math.min(1,x));return(x===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(x===1?")":", "+x+")")}}));
qS(lz,XK,Do(Nj,{brighter:function(x){x=x==null?JE:Math.pow(JE,x);return new lz(this.h,this.s,this.l*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new lz(this.h,this.s,this.l*x,this.opacity)},
rgb:function(){var x=this.h%360+(this.h<0)*360,Q=this.l,E=Q+(Q<.5?Q:1-Q)*(isNaN(x)||isNaN(this.s)?0:this.s);Q=2*Q-E;return new Lq(i4(x>=240?x-240:x+120,Q,E),i4(x,Q,E),i4(x<120?x+240:x-120,Q,E),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var mhd=Math.PI/180,tEE=180/Math.PI,T4Z=4/29,Qv=6/29,kqO=3*Qv*Qv,Jra=Qv*Qv*Qv;qS(uY,function(x,Q,E,Sp){return arguments.length===1?fE(x):new uY(x,Q,E,Sp==null?1:Sp)},Do(Nj,{brighter:function(x){return new uY(this.l+18*(x==null?1:x),this.a,this.b,this.opacity)},
darker:function(x){return new uY(this.l-18*(x==null?1:x),this.a,this.b,this.opacity)},
rgb:function(){var x=(this.l+16)/116,Q=isNaN(this.a)?x:x+this.a/500,E=isNaN(this.b)?x:x-this.b/200;Q=.96422*ep(Q);x=1*ep(x);E=.82521*ep(E);return new Lq(MS(3.1338561*Q-1.6168667*x-.4906146*E),MS(-.9787684*Q+1.9161415*x+.033454*E),MS(.0719453*Q-.2289914*x+1.4052427*E),this.opacity)}}));
qS(Qz,fq,Do(Nj,{brighter:function(x){return new Qz(this.h,this.c,this.l+18*(x==null?1:x),this.opacity)},
darker:function(x){return new Qz(this.h,this.c,this.l-18*(x==null?1:x),this.opacity)},
rgb:function(){return fE(this).rgb()}}));
var MEd=1.78277*-.29227-.1347134789;qS(YQ,lE,Do(Nj,{brighter:function(x){x=x==null?JE:Math.pow(JE,x);return new YQ(this.h,this.s,this.l*x,this.opacity)},
darker:function(x){x=x==null?.7:Math.pow(.7,x);return new YQ(this.h,this.s,this.l*x,this.opacity)},
rgb:function(){var x=isNaN(this.h)?0:(this.h+120)*mhd,Q=+this.l,E=isNaN(this.s)?0:this.s*Q*(1-Q),Sp=Math.cos(x);x=Math.sin(x);return new Lq(255*(Q+E*(-.14861*Sp+1.78277*x)),255*(Q+E*(-.29227*Sp+-.90649*x)),255*(Q+1.97294*Sp*E),this.opacity)}}));
var lul=function E(Q){function Sp(kO,La){var Jb=rI((kO=g9(kO)).r,(La=g9(La)).r),Od=rI(kO.g,La.g),Hk=rI(kO.b,La.b),G4=SH(kO.opacity,La.opacity);return function(tV){kO.r=Jb(tV);kO.g=Od(tV);kO.b=Hk(tV);kO.opacity=G4(tV);return kO+""}}
var rI=mA(Q);Sp.gamma=E;return Sp}(1),tIq=Lv(function(Q){var E=Q.length-1;
return function(Sp){var rI=Sp<=0?Sp=0:Sp>=1?(Sp=1,E-1):Math.floor(Sp*E),kO=Q[rI],La=Q[rI+1];return CD((Sp-rI/E)*E,rI>0?Q[rI-1]:2*kO-La,kO,La,rI<E-1?Q[rI+2]:2*La-kO)}});
Lv(function(Q){var E=Q.length;return function(Sp){var rI=Math.floor(((Sp%=1)<0?++Sp:Sp)*E);return CD((Sp-rI/E)*E,Q[(rI+E-1)%E],Q[rI%E],Q[(rI+1)%E],Q[(rI+2)%E])}});
var xTI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oJp=new RegExp(xTI.source,"g"),FqO=180/Math.PI,gJ_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},AX,em9,crN,itY,FIo=fv(function(Q){if(Q==="none")return gJ_;AX||(AX=document.createElement("DIV"),em9=document.documentElement,crN=document.defaultView);AX.style.transform=Q;Q=crN.getComputedStyle(em9.appendChild(AX),null).getPropertyValue("transform");em9.removeChild(AX);Q=Q.slice(7,-1).split(",");return A1(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),BSo=fv(function(Q){if(Q==null)return gJ_;
itY||(itY=document.createElementNS("http://www.w3.org/2000/svg","g"));itY.setAttribute("transform",Q);if(!(Q=itY.transform.baseVal.consolidate()))return gJ_;Q=Q.matrix;return A1(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
Fw(pD);Fw(SH);tM(pD);tM(SH);Ye(pD);var $To=Ye(SH),xL=0,lq=0,fV=0,tl_,LV,TbL=0,KZ=0,kQe=0,BI=typeof performance==="object"&&performance.now?performance:Date,B49=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
X5.prototype=Xz.prototype={constructor:X5,restart:function(Q,E,Sp){if(typeof Q!=="function")throw new TypeError("Fe");Sp=(Sp==null?yc():+Sp)+(E==null?0:+E);this._next||LV===this||(LV?LV._next=this:tl_=this,LV=this);this._call=Q;this._time=Sp;pF()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,pF())}};
var UqO=S("start","end","interrupt"),ZHE=[],l9_=sa.prototype.constructor,aUO=0,Uf=sa.prototype;DR.prototype=function(Q){return sa().transition(Q)}.prototype={constructor:DR,
select:function(Q){var E=this._name,Sp=this._id;typeof Q!=="function"&&(Q=d(Q));for(var rI=this._groups,kO=rI.length,La=Array(kO),Jb=0;Jb<kO;++Jb)for(var Od=rI[Jb],Hk=Od.length,G4=La[Jb]=Array(Hk),tV,w9,Ua=0;Ua<Hk;++Ua)(tV=Od[Ua])&&(w9=Q.call(tV,tV.__data__,Ua,Od))&&("__data__"in tV&&(w9.__data__=tV.__data__),G4[Ua]=w9,bE(G4[Ua],E,Sp,Ua,G4,Hh(tV,Sp)));return new DR(La,this._parents,E,Sp)},
filter:function(Q){typeof Q!=="function"&&(Q=rrk(Q));for(var E=this._groups,Sp=E.length,rI=Array(Sp),kO=0;kO<Sp;++kO)for(var La=E[kO],Jb=La.length,Od=rI[kO]=[],Hk,G4=0;G4<Jb;++G4)(Hk=La[G4])&&Q.call(Hk,Hk.__data__,G4,La)&&Od.push(Hk);return new DR(rI,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var E=this._groups;Q=Q._groups;for(var Sp=E.length,rI=Math.min(Sp,Q.length),kO=Array(Sp),La=0;La<rI;++La)for(var Jb=E[La],Od=Q[La],Hk=Jb.length,G4=kO[La]=Array(Hk),tV,w9=0;w9<Hk;++w9)if(tV=Jb[w9]||Od[w9])G4[w9]=tV;for(;La<Sp;++La)kO[La]=E[La];return new DR(kO,this._parents,this._name,this._id)},
selection:function(){return new l9_(this._groups,this._parents)},
transition:function(){for(var Q=this._name,E=this._id,Sp=++aUO,rI=this._groups,kO=rI.length,La=0;La<kO;++La)for(var Jb=rI[La],Od=Jb.length,Hk,G4=0;G4<Od;++G4)if(Hk=Jb[G4]){var tV=Hh(Hk,E);bE(Hk,Q,Sp,G4,Jb,{time:tV.time+tV.delay+tV.duration,delay:0,duration:tV.duration,ease:tV.ease})}return new DR(rI,this._parents,Q,Sp)},
call:Uf.call,nodes:Uf.nodes,node:Uf.node,size:Uf.size,empty:Uf.empty,each:Uf.each,on:function(Q,E){var Sp=this._id;return arguments.length<2?Hh(this.node(),Sp).on.on(Q):this.each(Dq6(Sp,Q,E))},
attr:function(Q,E){var Sp=C(Q),rI=Sp==="transform"?BSo:vr;return this.attrTween(Q,typeof E==="function"?(Sp.local?j8Q:FeY)(Sp,rI,EI(this,"attr."+Q,E)):E==null?(Sp.local?Mlf:uq)(Sp):(Sp.local?xV:QI)(Sp,rI,E+""))},
attrTween:function(Q,E){var Sp="attr."+Q;if(arguments.length<2)return(Sp=this.tween(Sp))&&Sp._value;if(E==null)return this.tween(Sp,null);if(typeof E!=="function")throw Error();var rI=C(Q);return this.tween(Sp,(rI.local?z0_:ArE)(rI,E))},
style:function(Q,E,Sp){var rI=Q==="transform"?FIo:vr;return E==null?this.styleTween(Q,g3n(Q,rI)).on("end.style."+Q,e06(Q)):this.styleTween(Q,typeof E==="function"?h05(Q,rI,EI(this,"style."+Q,E)):$qn(Q,rI,E+""),Sp)},
styleTween:function(Q,E,Sp){var rI="style."+Q;if(arguments.length<2)return(rI=this.tween(rI))&&rI._value;if(E==null)return this.tween(rI,null);if(typeof E!=="function")throw Error();return this.tween(rI,q$Q(Q,E,Sp==null?"":Sp))},
text:function(Q){return this.tween("text",typeof Q==="function"?Nli(EI(this,"text",Q)):w2Q(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",VJ_(this._id))},
tween:function(Q,E){var Sp=this._id;if(arguments.length<2){Sp=Hh(this.node(),Sp).tween;for(var rI=0,kO=Sp.length,La;rI<kO;++rI)if((La=Sp[rI]).name===Q)return La.value;return null}return this.each((E==null?s5:bM)(Sp,Q,E))},
delay:function(Q){var E=this._id;return arguments.length?this.each((typeof Q==="function"?X2E:E3q)(E,Q)):Hh(this.node(),E).delay},
duration:function(Q){var E=this._id;return arguments.length?this.each((typeof Q==="function"?p2t:Y$6)(E,Q)):Hh(this.node(),E).duration},
ease:function(Q){var E=this._id;return arguments.length?this.each(yri(E,Q)):Hh(this.node(),E).ease}};
var hm9={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
sa.prototype.transition=function(Q){var E;if(Q instanceof DR){var Sp=Q._id;Q=Q._name}else Sp=++aUO,(E=hm9).time=yc(),Q=Q==null?null:Q+"";for(var rI=this._groups,kO=rI.length,La=0;La<kO;++La)for(var Jb=rI[La],Od=Jb.length,Hk,G4=0;G4<Od;++G4)if(Hk=Jb[G4]){var tV=Hk,w9=Q,Ua=Sp,fD=G4,$w=Jb,jW;if(!(jW=E))a:{jW=void 0;for(var db=Sp;!(jW=Hk.__transition)||!(jW=jW[db]);)if(!(Hk=Hk.parentNode)){jW=(hm9.time=yc(),hm9);break a}}bE(tV,w9,Ua,fD,$w,jW)}return new DR(rI,this._parents,Q,Sp)};
["e","w"].map(i5f);["n","s"].map(i5f);"n e s w nw ne se sw".split(" ").map(i5f);JCf.prototype=function(){return new JCf}.prototype={constructor:JCf,
moveTo:function(Q,E){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+E)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,E){this._+="L"+(this._x1=+Q)+","+(this._y1=+E)},
bezierCurveTo:function(Q,E,Sp,rI,kO,La){this._+="C"+ +Q+","+ +E+","+ +Sp+","+ +rI+","+(this._x1=+kO)+","+(this._y1=+La)},
rect:function(Q,E,Sp,rI){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+E)+"h"+ +Sp+"v"+ +rI+"h"+-Sp+"Z"},
toString:function(){return this._}};
Bbf.prototype=Lqb.prototype={constructor:Bbf,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,E){this[" "+Q]=E;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],E;for(E in this)E[0]===" "&&Q.push(E.slice(1));return Q},
values:function(){var Q=[],E;for(E in this)E[0]===" "&&Q.push(this[E]);return Q},
entries:function(){var Q=[],E;for(E in this)E[0]===" "&&Q.push({key:E.slice(1),value:this[E]});return Q},
size:function(){var Q=0,E;for(E in this)E[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var E in this)E[0]===" "&&Q(this[E],E.slice(1),this)}};
var CZ=Lqb.prototype;l7I.prototype=function(Q,E){var Sp=new l7I;if(Q instanceof l7I)Q.each(function(La){Sp.add(La)});
else if(Q){var rI=-1,kO=Q.length;if(E==null)for(;++rI<kO;)Sp.add(Q[rI]);else for(;++rI<kO;)Sp.add(E(Q[rI],rI,Q))}return Sp}.prototype={constructor:l7I,
has:CZ.has,add:function(Q){this[" "+Q]=Q;return this},
remove:CZ.remove,clear:CZ.clear,values:CZ.keys,size:CZ.size,empty:CZ.empty,each:CZ.each};var QDc={},UTe={},LI6=u_9(",").parse,f9O=u_9("\t").parse;xh4(LI6);xh4(f9O);var Oj=function(Q,E,Sp){E=new Z5U(E==null?HCQ:E,Sp==null?sLE:Sp,NaN,NaN,NaN,NaN);return Q==null?E:E.addAll(Q)}.prototype=Z5U.prototype;
Oj.copy=function(){var Q=new Z5U(this._x,this._y,this._x0,this._y0,this._x1,this._y1),E=this._root,Sp,rI;if(!E)return Q;if(!E.length)return Q._root=iWc(E),Q;for(Sp=[{source:E,target:Q._root=Array(4)}];E=Sp.pop();)for(var kO=0;kO<4;++kO)if(rI=E.source[kO])rI.length?Sp.push({source:rI,target:E.target[kO]=Array(4)}):E.target[kO]=iWc(rI);return Q};
Oj.add=function(Q){var E=+this._x.call(null,Q),Sp=+this._y.call(null,Q);return ot9(this.cover(E,Sp),E,Sp,Q)};
Oj.addAll=function(Q){var E,Sp,rI=Q.length,kO,La,Jb=Array(rI),Od=Array(rI),Hk=Infinity,G4=Infinity,tV=-Infinity,w9=-Infinity;for(Sp=0;Sp<rI;++Sp)isNaN(kO=+this._x.call(null,E=Q[Sp]))||isNaN(La=+this._y.call(null,E))||(Jb[Sp]=kO,Od[Sp]=La,kO<Hk&&(Hk=kO),kO>tV&&(tV=kO),La<G4&&(G4=La),La>w9&&(w9=La));tV<Hk&&(Hk=this._x0,tV=this._x1);w9<G4&&(G4=this._y0,w9=this._y1);this.cover(Hk,G4).cover(tV,w9);for(Sp=0;Sp<rI;++Sp)ot9(this,Jb[Sp],Od[Sp],Q[Sp]);return this};
Oj.cover=function(Q,E){if(isNaN(Q=+Q)||isNaN(E=+E))return this;var Sp=this._x0,rI=this._y0,kO=this._x1,La=this._y1;if(isNaN(Sp))kO=(Sp=Math.floor(Q))+1,La=(rI=Math.floor(E))+1;else if(Sp>Q||Q>kO||rI>E||E>La){var Jb=kO-Sp,Od=this._root,Hk;switch(Hk=(E<(rI+La)/2)<<1|Q<(Sp+kO)/2){case 0:do{var G4=Array(4);G4[Hk]=Od;Od=G4}while(Jb*=2,kO=Sp+Jb,La=rI+Jb,Q>kO||E>La);break;case 1:do G4=Array(4),G4[Hk]=Od,Od=G4;while(Jb*=2,Sp=kO-Jb,La=rI+Jb,Sp>Q||E>La);break;case 2:do G4=Array(4),G4[Hk]=Od,Od=G4;while(Jb*=
2,kO=Sp+Jb,rI=La-Jb,Q>kO||rI>E);break;case 3:do G4=Array(4),G4[Hk]=Od,Od=G4;while(Jb*=2,Sp=kO-Jb,rI=La-Jb,Sp>Q||rI>E)}this._root&&this._root.length&&(this._root=Od)}else return this;this._x0=Sp;this._y0=rI;this._x1=kO;this._y1=La;return this};
Oj.data=function(){var Q=[];this.visit(function(E){if(!E.length){do Q.push(E.data);while(E=E.next)}});
return Q};
Oj.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Oj.find=function(Q,E,Sp){var rI=this._x0,kO=this._y0,La,Jb,Od,Hk,G4=this._x1,tV=this._y1,w9=[],Ua=this._root,fD;Ua&&w9.push(new v4(Ua,rI,kO,G4,tV));Sp==null?Sp=Infinity:(rI=Q-Sp,kO=E-Sp,G4=Q+Sp,tV=E+Sp,Sp*=Sp);for(;fD=w9.pop();)if(!(!(Ua=fD.node)||(La=fD.x0)>G4||(Jb=fD.y0)>tV||(Od=fD.x1)<rI||(Hk=fD.y1)<kO))if(Ua.length){fD=(La+Od)/2;var $w=(Jb+Hk)/2;w9.push(new v4(Ua[3],fD,$w,Od,Hk),new v4(Ua[2],La,$w,fD,Hk),new v4(Ua[1],fD,Jb,Od,$w),new v4(Ua[0],La,Jb,fD,$w));if(Ua=(E>=$w)<<1|Q>=fD)fD=w9[w9.length-
1],w9[w9.length-1]=w9[w9.length-1-Ua],w9[w9.length-1-Ua]=fD}else if(fD=Q-+this._x.call(null,Ua.data),$w=E-+this._y.call(null,Ua.data),fD=fD*fD+$w*$w,fD<Sp){var jW=Math.sqrt(Sp=fD);rI=Q-jW;kO=E-jW;G4=Q+jW;tV=E+jW;jW=Ua.data}return jW};
Oj.remove=function(Q){if(isNaN(Hk=+this._x.call(null,Q))||isNaN(G4=+this._y.call(null,Q)))return this;var E,Sp=this._root,rI,kO=this._x0,La=this._y0,Jb=this._x1,Od=this._y1,Hk,G4,tV,w9,Ua,fD,$w;if(!Sp)return this;if(Sp.length)for(;;){(Ua=Hk>=(tV=(kO+Jb)/2))?kO=tV:Jb=tV;(fD=G4>=(w9=(La+Od)/2))?La=w9:Od=w9;if(!(E=Sp,Sp=Sp[$w=fD<<1|Ua]))return this;if(!Sp.length)break;if(E[$w+1&3]||E[$w+2&3]||E[$w+3&3]){var jW=E;var db=$w}}for(;Sp.data!==Q;)if(!(rI=Sp,Sp=Sp.next))return this;(Q=Sp.next)&&delete Sp.next;
if(rI)return Q?rI.next=Q:delete rI.next,this;if(!E)return this._root=Q,this;Q?E[$w]=Q:delete E[$w];(Sp=E[0]||E[1]||E[2]||E[3])&&Sp===(E[3]||E[2]||E[1]||E[0])&&!Sp.length&&(jW?jW[db]=Sp:this._root=Sp);return this};
Oj.removeAll=function(Q){for(var E=0,Sp=Q.length;E<Sp;++E)this.remove(Q[E]);return this};
Oj.root=function(){return this._root};
Oj.size=function(){var Q=0;this.visit(function(E){if(!E.length){do++Q;while(E=E.next)}});
return Q};
Oj.visit=function(Q){var E=[],Sp,rI=this._root,kO,La,Jb,Od,Hk;for(rI&&E.push(new v4(rI,this._x0,this._y0,this._x1,this._y1));Sp=E.pop();)if(!Q(rI=Sp.node,La=Sp.x0,Jb=Sp.y0,Od=Sp.x1,Hk=Sp.y1)&&rI.length){Sp=(La+Od)/2;var G4=(Jb+Hk)/2;(kO=rI[3])&&E.push(new v4(kO,Sp,G4,Od,Hk));(kO=rI[2])&&E.push(new v4(kO,La,G4,Sp,Hk));(kO=rI[1])&&E.push(new v4(kO,Sp,Jb,Od,G4));(kO=rI[0])&&E.push(new v4(kO,La,Jb,Sp,G4))}};
Oj.visitAfter=function(Q){var E=[],Sp=[],rI;for(this._root&&E.push(new v4(this._root,this._x0,this._y0,this._x1,this._y1));rI=E.pop();){var kO=rI.node;if(kO.length){var La,Jb=rI.x0,Od=rI.y0,Hk=rI.x1,G4=rI.y1,tV=(Jb+Hk)/2,w9=(Od+G4)/2;(La=kO[0])&&E.push(new v4(La,Jb,Od,tV,w9));(La=kO[1])&&E.push(new v4(La,tV,Od,Hk,w9));(La=kO[2])&&E.push(new v4(La,Jb,w9,tV,G4));(La=kO[3])&&E.push(new v4(La,tV,w9,Hk,G4))}Sp.push(rI)}for(;rI=Sp.pop();)Q(rI.node,rI.x0,rI.y0,rI.x1,rI.y1);return this};
Oj.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
Oj.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var CUQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;jnI.prototype=zmI.prototype;zmI.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};
var jDZ,zyl={"%":function(Q,E){return(Q*100).toFixed(E)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,E){return Q.toExponential(E)},
f:function(Q,E){return Q.toFixed(E)},
g:function(Q,E){return Q.toPrecision(E)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,E){return JJl(Q*100,E)},
r:JJl,s:function(Q,E){var Sp=Lep(Q,E);if(!Sp)return Q+"";var rI=Sp[0];Sp=Sp[1];Sp=Sp-(jDZ=Math.max(-8,Math.min(8,Math.floor(Sp/3)))*3)+1;var kO=rI.length;return Sp===kO?rI:Sp>kO?rI+Array(Sp-kO+1).join("0"):Sp>0?rI.slice(0,Sp)+"."+rI.slice(Sp):"0."+Array(1-Sp).join("0")+Lep(Q,Math.max(0,E+Sp-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},ZWc="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),ujL;
(function(Q){return ujL=Gan(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});O7.prototype={constructor:O7,reset:function(){this.s=this.t=0},
add:function(Q){AJV(JAe,Q,this.t);AJV(this,JAe.s,this.s);this.s?this.t+=JAe.t:this.s=JAe.t},
valueOf:function(){return this.s}};
var JAe=new O7,Os=Math.PI,cp=Os/2,R0S=Os/4,QaL=Os*2,qNs=Os/180,VJ=Math.abs,wOs=Math.atan,Iub=Math.atan2,aT=Math.cos,pu=Math.sin,uxU=Math.sqrt;new O7;new O7;new O7;var N4f=new O7;(function(Q,E,Sp,rI){return function(kO){function La(CM,xT){Q(CM,xT)&&kO.point(CM,xT)}
function Jb(CM,xT){Ua.point(CM,xT)}
function Od(){R2.point=Jb;Ua.lineStart()}
function Hk(){R2.point=La;Ua.lineEnd()}
function G4(CM,xT){Zp.push([CM,xT]);$w.point(CM,xT)}
function tV(){$w.lineStart();Zp=[]}
function w9(){G4(Zp[0][0],Zp[0][1]);$w.lineEnd();var CM=$w.clean(),xT=fD.result(),sE=xT.length,Uv;Zp.pop();db.push(Zp);Zp=null;if(sE)if(CM&1){if(sE=xT[0],(xT=sE.length-1)>0){jW||(kO.polygonStart(),jW=!0);kO.lineStart();for(CM=0;CM<xT;++CM)kO.point((Uv=sE[CM])[0],Uv[1]);kO.lineEnd()}}else sE>1&&CM&2&&xT.push(xT.pop().concat(xT.shift())),O2.push(xT.filter(R$6))}
var Ua=E(kO),fD=caq(),$w=E(fD),jW=!1,db,O2,Zp,R2={point:La,lineStart:Od,lineEnd:Hk,polygonStart:function(){R2.point=G4;R2.lineStart=tV;R2.lineEnd=w9;O2=[];db=[]},
polygonEnd:function(){R2.point=La;R2.lineStart=Od;R2.lineEnd=Hk;var CM=O2,xT=CM.length;var sE=-1;for(var Uv=0,q_,Bh;++sE<xT;)Uv+=CM[sE].length;for(q_=Array(Uv);--xT>=0;)for(Bh=CM[xT],sE=Bh.length;--sE>=0;)q_[--Uv]=Bh[sE];O2=q_;CM=db;xT=rI[0];Uv=rI[1];var a$=pu(Uv);sE=[pu(xT),-aT(xT),0];Bh=q_=0;N4f.reset();a$===1?Uv=cp+1E-6:a$===-1&&(Uv=-cp-1E-6);a$=0;for(var Zo=CM.length;a$<Zo;++a$)if(v_=(KE=CM[a$]).length){var KE,v_,me=KE[v_-1],oN=me[0],p1=me[1]/2+R0S,Ucb=pu(p1),WMk=aT(p1);for(p1=0;p1<v_;++p1,oN=
bWs,Ucb=n3Z,WMk=XW,me=Zts){var Zts=KE[p1],bWs=Zts[0];XW=Zts[1]/2+R0S;var n3Z=pu(XW),XW=aT(XW),ZE=bWs-oN,SD9=ZE>=0?1:-1,PkU=SD9*ZE,j5L=PkU>Os;Ucb*=n3Z;N4f.add(Iub(Ucb*SD9*pu(PkU),WMk*XW+Ucb*aT(PkU)));q_+=j5L?ZE+SD9*QaL:ZE;j5L^oN>=xT^bWs>=xT&&(me=Etz(Xnb(me),Xnb(Zts)),pnE(me),oN=Etz(sE,me),pnE(oN),oN=(j5L^ZE>=0?-1:1)*f7Y(oN[2]),Uv>oN||Uv===oN&&(me[0]||me[1]))&&(Bh+=j5L^ZE>=0?1:-1)}}CM=(q_<-1E-6||q_<1E-6&&N4f<-1E-6)^Bh&1;O2.length?(jW||(kO.polygonStart(),jW=!0),aSw(O2,WmJ,CM,Sp,kO)):CM&&(jW||(kO.polygonStart(),
jW=!0),kO.lineStart(),Sp(null,null,1,kO),kO.lineEnd());jW&&(kO.polygonEnd(),jW=!1);O2=db=null},
sphere:function(){kO.polygonStart();kO.lineStart();Sp(null,null,1,kO);kO.lineEnd();kO.polygonEnd()}};
return R2}})(function(){return!0},function(Q){var E=NaN,Sp=NaN,rI=NaN,kO;
return{lineStart:function(){Q.lineStart();kO=1},
point:function(La,Jb){var Od=La>0?Os:-Os,Hk=VJ(La-E);if(VJ(Hk-Os)<1E-6)Q.point(E,Sp=(Sp+Jb)/2>0?cp:-cp),Q.point(rI,Sp),Q.lineEnd(),Q.lineStart(),Q.point(Od,Sp),Q.point(La,Sp),kO=0;else if(rI!==Od&&Hk>=Os){VJ(E-rI)<1E-6&&(E-=rI*1E-6);VJ(La-Od)<1E-6&&(La-=Od*1E-6);Hk=E;var G4=Sp,tV=La,w9,Ua,fD=pu(Hk-tV);Sp=VJ(fD)>1E-6?wOs((pu(G4)*(Ua=aT(Jb))*pu(tV)-pu(Jb)*(w9=aT(G4))*pu(Hk))/(w9*Ua*fD)):(G4+Jb)/2;Q.point(rI,Sp);Q.lineEnd();Q.lineStart();Q.point(Od,Sp);kO=0}Q.point(E=La,Sp=Jb);rI=Od},
lineEnd:function(){Q.lineEnd();E=Sp=NaN},
clean:function(){return 2-kO}}},function(Q,E,Sp,rI){Q==null?(Sp*=cp,rI.point(-Os,Sp),rI.point(0,Sp),rI.point(Os,Sp),rI.point(Os,0),rI.point(Os,-Sp),rI.point(0,-Sp),rI.point(-Os,-Sp),rI.point(-Os,0),rI.point(-Os,Sp)):VJ(Q[0]-E[0])>1E-6?(Q=Q[0]<E[0]?Os:-Os,Sp=Sp*Q/2,rI.point(-Q,Sp),rI.point(0,Sp),rI.point(Q,Sp)):rI.point(E[0],E[1])},[-Os,
-cp]);new O7;new O7;new O7;new O7;ACp.prototype={constructor:ACp,point:function(Q,E){this.stream.point(Q,E)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
aT(30*qNs);(function(Q){return function(E){var Sp=new ACp,rI;for(rI in Q)Sp[rI]=Q[rI];Sp.stream=E;return Sp}})({point:function(Q,E){this.stream.point(Q*qNs,E*qNs)}});
yJc(function(Q){return uxU(2/(1+Q))}).invert=oK(function(Q){return 2*f7Y(Q/2)});
yJc(function(Q){return(Q=Q>1?0:Q<-1?Os:Math.acos(Q))&&Q/pu(Q)}).invert=oK(function(Q){return Q});
uxU(3);oK(wOs);oK(f7Y);oK(function(Q){return 2*wOs(Q)});
iq.prototype=DhE.prototype={constructor:iq,count:function(){return this.eachAfter(nNQ)},
each:function(Q){var E,Sp=[this],rI;do{var kO=Sp.reverse();for(Sp=[];E=kO.pop();)if(Q(E),E=E.children){var La=0;for(rI=E.length;La<rI;++La)Sp.push(E[La])}}while(Sp.length);return this},
eachAfter:function(Q){for(var E,Sp=[this],rI=[],kO,La;E=Sp.pop();)if(rI.push(E),E=E.children)for(kO=0,La=E.length;kO<La;++kO)Sp.push(E[kO]);for(;E=rI.pop();)Q(E);return this},
eachBefore:function(Q){for(var E,Sp=[this],rI;E=Sp.pop();)if(Q(E),E=E.children)for(rI=E.length-1;rI>=0;--rI)Sp.push(E[rI]);return this},
sum:function(Q){return this.eachAfter(function(E){for(var Sp=+Q(E.data)||0,rI=E.children,kO=rI&&rI.length;--kO>=0;)Sp+=rI[kO].value;E.value=Sp})},
sort:function(Q){return this.eachBefore(function(E){E.children&&E.children.sort(Q)})},
path:function(Q){var E=this;var Sp=E;var rI=Q;if(Sp!==rI){var kO=Sp.ancestors(),La=rI.ancestors(),Jb=null;Sp=kO.pop();for(rI=La.pop();Sp===rI;)Jb=Sp,Sp=kO.pop(),rI=La.pop();Sp=Jb}for(rI=[E];E!==Sp;)E=E.parent,rI.push(E);for(E=rI.length;Q!==Sp;)rI.splice(E,0,Q),Q=Q.parent;return rI},
ancestors:function(){for(var Q=this,E=[Q];Q=Q.parent;)E.push(Q);return E},
links:function(){var Q=this,E=[];Q.each(function(Sp){Sp!==Q&&E.push({source:Sp.parent,target:Sp})});
return E},
copy:function(){return DhE(this).eachBefore(kaO)}};
(function(Q,E){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=E}).prototype=Object.create(iq.prototype);
var XOo=new Date,EJE=new Date,dq9=ov(function(){},function(Q,E){Q.setTime(+Q+E)},function(Q,E){return E-Q});
dq9.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?ov(function(E){E.setTime(Math.floor(E/Q)*Q)},function(E,Sp){E.setTime(+E+Sp*Q)},function(E,Sp){return(Sp-E)/Q}):dq9:null};
ov(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,E){Q.setTime(+Q+E*1E3)},function(Q,E){return(E-Q)/1E3},function(Q){return Q.getUTCSeconds()});
ov(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,E){Q.setTime(+Q+E*6E4)},function(Q,E){return(E-Q)/6E4},function(Q){return Q.getMinutes()});
ov(function(Q){var E=Q.getTimezoneOffset()*6E4%36E5;E<0&&(E+=36E5);Q.setTime(Math.floor((+Q-E)/36E5)*36E5+E)},function(Q,E){Q.setTime(+Q+E*36E5)},function(Q,E){return(E-Q)/36E5},function(Q){return Q.getHours()});
var eyz=ov(function(Q){Q.setHours(0,0,0,0)},function(Q,E){Q.setDate(Q.getDate()+E)},function(Q,E){return(E-Q-(E.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),kHE=vf(0),YNs=vf(1);
vf(2);vf(3);var yCf=vf(4);vf(5);vf(6);ov(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,E){Q.setMonth(Q.getMonth()+E)},function(Q,E){return E.getMonth()-Q.getMonth()+(E.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var oP=ov(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,E){Q.setFullYear(Q.getFullYear()+E)},function(Q,E){return E.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
oP.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?ov(function(E){E.setFullYear(Math.floor(E.getFullYear()/Q)*Q);E.setMonth(0,1);E.setHours(0,0,0,0)},function(E,Sp){E.setFullYear(E.getFullYear()+Sp*Q)}):null};
ov(function(Q){Q.setUTCSeconds(0,0)},function(Q,E){Q.setTime(+Q+E*6E4)},function(Q,E){return(E-Q)/6E4},function(Q){return Q.getUTCMinutes()});
ov(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,E){Q.setTime(+Q+E*36E5)},function(Q,E){return(E-Q)/36E5},function(Q){return Q.getUTCHours()});
var gtz=ov(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,E){Q.setUTCDate(Q.getUTCDate()+E)},function(Q,E){return(E-Q)/864E5},function(Q){return Q.getUTCDate()-1}),TSa=OJ(0),pOL=OJ(1);
OJ(2);OJ(3);var Icb=OJ(4);OJ(5);OJ(6);ov(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,E){Q.setUTCMonth(Q.getUTCMonth()+E)},function(Q,E){return E.getUTCMonth()-Q.getUTCMonth()+(E.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var ie=ov(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,E){Q.setUTCFullYear(Q.getUTCFullYear()+E)},function(Q,E){return E.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
ie.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?ov(function(E){E.setUTCFullYear(Math.floor(E.getUTCFullYear()/Q)*Q);E.setUTCMonth(0,1);E.setUTCHours(0,0,0,0)},function(E,Sp){E.setUTCFullYear(E.getUTCFullYear()+Sp*Q)}):null};
var VEZ={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,mio=/^%/,din=/[\\^$*+?|[\]().{}]/g,zab;(function(Q){zab=tqq(Q);kNz=zab.utcFormat;T6l=zab.utcParse;return zab})({dateTime:"%x, %X",
date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||kNz("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||T6l("%Y-%m-%dT%H:%M:%S.%LZ");Tn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Tn("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Tn("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Tn("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Tn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Tn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Tn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Tn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Tn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Tn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Tn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Tn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var xiw=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Tn);vq(xiw);var o8L=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Tn);vq(o8L);var iZL=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Tn);vq(iZL);var J$n=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Tn);
vq(J$n);var Uia=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Tn);vq(Uia);var ZZE=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Tn);vq(ZZE);var jao=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Tn);vq(jao);var z7n=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Tn);vq(z7n);var A$_=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Tn);vq(A$_);var XfJ=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Tn);vq(XfJ);var E8E=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Tn);vq(E8E);var pf6=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Tn);vq(pf6);var YJE=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Tn);vq(YJE);var y$t=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Tn);vq(y$t);var I9Q=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Tn);vq(I9Q);var DiL=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Tn);vq(DiL);var VIt=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Tn);vq(VIt);var g8n=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Tn);vq(g8n);var e7E=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Tn);vq(e7E);var $iL=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Tn);vq($iL);var h7Q=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Tn);vq(h7Q);var qJQ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Tn);vq(qJQ);var wfQ=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Tn);vq(wfQ);var NH6=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Tn);vq(NH6);var bYE=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Tn);vq(bYE);var Smw=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Tn);vq(Smw);var P6J=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Tn);vq(P6J);$To(lE(300,.5,0),lE(-240,.5,1));$To(lE(-100,.75,.35),lE(80,1.5,.8));$To(lE(260,.75,.35),lE(80,1.5,.8));lE();g9();o7f(Tn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
o7f(Tn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
o7f(Tn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
o7f(Tn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
s89.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,E){Q=+Q;E=+E;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,E):this._context.moveTo(Q,E);break;case 1:this._point=2;default:this._context.lineTo(Q,E)}}};
(function(Q){function E(Sp){return new KMd(Q(Sp))}
E._curve=Q;return E})(function(Q){return new s89(Q)});
KMd.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,E){this._curve.point(E*Math.sin(Q),E*-Math.cos(Q))}};
V6I.prototype={lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},
lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:DTO(this,this._t0,OHd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,E){var Sp=NaN;Q=+Q;E=+E;if(Q!==this._x1||E!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,E):this._context.moveTo(Q,E);break;case 1:this._point=2;break;case 2:this._point=3;DTO(this,OHd(this,Sp=v3V(this,Q,E)),Sp);break;default:DTO(this,this._t0,Sp=v3V(this,Q,E))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=E;this._t0=Sp}}};
(function(Q){this._context=new Cud(Q)}.prototype=Object.create(V6I.prototype)).point=function(Q,E){V6I.prototype.point.call(this,E,Q)};
Cud.prototype={moveTo:function(Q,E){this._context.moveTo(E,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,E){this._context.lineTo(E,Q)},
bezierCurveTo:function(Q,E,Sp,rI,kO,La){this._context.bezierCurveTo(E,Q,rI,Sp,La,kO)}};
jN.prototype={constructor:jN,scale:function(Q){return Q===1?this:new jN(this.k*Q,this.x,this.y)},
translate:function(Q,E){return Q===0&E===0?this:new jN(this.k,this.x+this.k*Q,this.y+this.k*E)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new jN(1,0,0);nWO=nq;r6.svg=r6.svg;r6.xhtml=r6.xhtml;r6.xlink=r6.xlink;r6.xml=r6.xml;r6.xmlns=r6.xmlns})();/*

 Hammer.JS - v2.0.2 - 2014-07-26
 http://hammerjs.github.io/

 Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 Licensed under the MIT license */
var t3b="hammer_"+(Math.random()*1E6|0),M3E=function(){var N=document||document;if(!N[t3b]){var b=function(){(function(S,P,H,K){function C(uY,Ee,ep){return setTimeout(m(uY,ep),Ee)}
function G(uY,Ee,ep){return Array.isArray(uY)?(a(uY,ep[Ee],ep),!0):!1}
function a(uY,Ee,ep){var MS;if(uY)if(uY.forEach)uY.forEach(Ee,ep);else if(uY.length!==K){var tO=0;for(MS=uY.length;tO<MS;tO++)Ee.call(ep,uY[tO],tO,uY)}else for(tO in uY)uY.hasOwnProperty(tO)&&Ee.call(ep,uY[tO],tO,uY)}
function R(uY,Ee,ep){for(var MS=Object.keys(Ee),tO=0,LD=MS.length;tO<LD;tO++)if(!ep||ep&&uY[MS[tO]]===K)uY[MS[tO]]=Ee[MS[tO]];return uY}
function n(uY,Ee){return R(uY,Ee,!0)}
function d(uY,Ee,ep){Ee=Ee.prototype;var MS=uY.prototype=Object.create(Ee);MS.constructor=uY;MS._super=Ee;ep&&R(MS,ep)}
function m(uY,Ee){return function(){return uY.apply(Ee,arguments)}}
function k(uY,Ee){return typeof uY=="function"?uY.apply(Ee?Ee[0]||K:K,Ee):uY}
function M(uY,Ee,ep){a(u(Ee),function(MS){uY.addEventListener(MS,ep,!1)})}
function l(uY,Ee,ep){a(u(Ee),function(MS){uY.removeEventListener(MS,ep,!1)})}
function u(uY){return uY.trim().split(/\s+/g)}
function J(uY,Ee,ep){if(uY.indexOf&&!ep)return uY.indexOf(Ee);for(var MS=0,tO=uY.length;MS<tO;MS++)if(ep&&uY[MS][ep]==Ee||!ep&&uY[MS]===Ee)return MS;return-1}
function Z(uY,Ee,ep){for(var MS=[],tO=[],LD=0,fq=uY.length;LD<fq;LD++){var Qz=Ee?uY[LD][Ee]:uY[LD];J(tO,Qz)<0&&MS.push(uY[LD]);tO[LD]=Qz}ep&&(MS=Ee?MS.sort(function(lE,YQ){return lE[Ee]>YQ[Ee]}):MS.sort());
return MS}
function D(uY,Ee){for(var ep,MS=Ee[0].toUpperCase()+Ee.slice(1),tO=0,LD=ck.length;tO<LD;tO++)if(ep=(ep=ck[tO])?ep+MS:Ee,ep in uY)return ep;return K}
function Y(uY,Ee){var ep=this;this.manager=uY;this.callback=Ee;this.element=uY.element;this.target=uY.options.inputTarget;this.domHandler=function(MS){k(uY.options.enable,[uY])&&ep.handler(MS)};
this.evEl&&M(this.element,this.evEl,this.domHandler);this.evTarget&&M(this.target,this.evTarget,this.domHandler);this.evWin&&M(S,this.evWin,this.domHandler)}
function V(uY){var Ee;pq?Ee=jp:R_?Ee=Xf:nq?Ee=YO:Ee=To;return new Ee(uY,g)}
function g(uY,Ee,ep){var MS=ep.pointers.length,tO=ep.changedPointers.length,LD=Ee&1&&MS-tO===0;ep.isFirst=!!LD;ep.isFinal=!!(Ee&12&&MS-tO===0);LD&&(uY.session={});ep.eventType=Ee;Ee=uY.session;MS=ep.pointers;tO=MS.length;Ee.firstInput||(Ee.firstInput=e(ep));tO>1&&!Ee.firstMultiple?Ee.firstMultiple=e(ep):tO===1&&(Ee.firstMultiple=!1);LD=Ee.firstInput;var fq=(tO=Ee.firstMultiple)?tO.center:LD.center,Qz=ep.center=se(MS);ep.timeStamp=qS();ep.deltaTime=ep.timeStamp-LD.timeStamp;ep.angle=na(fq,Qz);ep.distance=
ML(fq,Qz);LD=ep.center;fq=Ee.offsetDelta||{};Qz=Ee.prevDelta||{};var lE=Ee.prevInput||{};if(ep.eventType===1||lE.eventType===4)Qz=Ee.prevDelta={x:lE.deltaX||0,y:lE.deltaY||0},fq=Ee.offsetDelta={x:LD.x,y:LD.y};ep.deltaX=Qz.x+(LD.x-fq.x);ep.deltaY=Qz.y+(LD.y-fq.y);ep.offsetDirection=Ca(ep.deltaX,ep.deltaY);tO?(LD=tO.pointers,LD=ML(MS[0],MS[1],g9)/ML(LD[0],LD[1],g9)):LD=1;ep.scale=LD;tO?(tO=tO.pointers,MS=na(MS[1],MS[0],g9)-na(tO[1],tO[0],g9)):MS=0;ep.rotation=MS;fq=Ee.lastInterval||ep;MS=ep.timeStamp-
fq.timeStamp;ep.eventType!=8&&(MS>25||fq.velocity===K)?(LD=fq.deltaX-ep.deltaX,fq=fq.deltaY-ep.deltaY,Qz=LD/MS||0,lE=fq/MS||0,MS=Qz,tO=lE,Qz=$O(Qz)>$O(lE)?Qz:lE,LD=Ca(LD,fq),Ee.lastInterval=ep):(Qz=fq.velocity,MS=fq.velocityX,tO=fq.velocityY,LD=fq.direction);ep.velocity=Qz;ep.velocityX=MS;ep.velocityY=tO;ep.direction=LD;Ee=uY.element;a:{for(MS=ep.srcEvent.target;MS;){if(MS==Ee){MS=!0;break a}MS=MS.parentNode}MS=!1}MS&&(Ee=ep.srcEvent.target);ep.target=Ee;uY.emit("hammer.input",ep);uY.recognize(ep);
uY.session.prevInput=ep}
function e(uY){for(var Ee=[],ep=0;ep<uY.pointers.length;ep++)Ee[ep]={clientX:sa(uY.pointers[ep].clientX),clientY:sa(uY.pointers[ep].clientY)};return{timeStamp:qS(),pointers:Ee,center:se(Ee),deltaX:uY.deltaX,deltaY:uY.deltaY}}
function se(uY){var Ee=uY.length;if(Ee===1)return{x:sa(uY[0].clientX),y:sa(uY[0].clientY)};for(var ep=0,MS=0,tO=0;tO<Ee;tO++)ep+=uY[tO].clientX,MS+=uY[tO].clientY;return{x:sa(ep/Ee),y:sa(MS/Ee)}}
function Ca(uY,Ee){return uY===Ee?1:$O(uY)>=$O(Ee)?uY>0?2:4:Ee>0?8:16}
function ML(uY,Ee,ep){ep||(ep=Gn);var MS=Ee[ep[0]]-uY[ep[0]];uY=Ee[ep[1]]-uY[ep[1]];return Math.sqrt(MS*MS+uY*uY)}
function na(uY,Ee,ep){ep||(ep=Gn);return Math.atan2(Ee[ep[1]]-uY[ep[1]],Ee[ep[0]]-uY[ep[0]])*180/Math.PI}
function To(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Y.apply(this,arguments)}
function jp(){this.evEl=Hv;this.evWin=XK;Y.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Xf(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Y.apply(this,arguments)}
function YO(){Y.apply(this,arguments);var uY=m(this.handler,this);this.touch=new Xf(this.manager,uY);this.mouse=new To(this.manager,uY)}
function Wk(uY,Ee){this.manager=uY;this.set(Ee)}
function S9(uY){if(uY.indexOf("none")>-1)return"none";var Ee=uY.indexOf("pan-x")>-1,ep=uY.indexOf("pan-y")>-1;return Ee&&ep?"pan-x pan-y":Ee||ep?Ee?"pan-x":"pan-y":uY.indexOf("manipulation")>-1?"manipulation":"auto"}
function Vu(uY){this.id=Do++;this.manager=null;this.options=n(uY||{},this.defaults);uY=this.options.enable;this.options.enable=uY===K?!0:uY;this.state=1;this.simultaneous={};this.requireFail=[]}
function n9(uY){return uY==16?"down":uY==8?"up":uY==2?"left":uY==4?"right":""}
function mc(uY,Ee){return(Ee=Ee.manager)?Ee.get(uY):uY}
function f9(){Vu.apply(this,arguments)}
function mJ(){f9.apply(this,arguments);this.pY=this.pX=null}
function Bk(){f9.apply(this,arguments)}
function RU(){Vu.apply(this,arguments);this._input=this._timer=null}
function Ab(){f9.apply(this,arguments)}
function kZ(){f9.apply(this,arguments)}
function Ib(){Vu.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Ud(uY,Ee){Ee=Ee||{};var ep=Ee.recognizers;Ee.recognizers=ep===K?Ud.defaults.preset:ep;return new ob(uY,Ee)}
function ob(uY,Ee){Ee=Ee||{};this.options=n(Ee,Ud.defaults);this.options.inputTarget=this.options.inputTarget||uY;this.handlers={};this.session={};this.recognizers=[];this.element=uY;this.input=V(this);this.touchAction=new Wk(this,this.options.touchAction);PM(this,!0);a(Ee.recognizers,function(ep){var MS=this.add(new ep[0](ep[1]));ep[2]&&MS.recognizeWith(ep[2]);ep[3]&&MS.requireFailure(ep[2])},this)}
function PM(uY,Ee){var ep=uY.element;a(uY.options.cssProps,function(MS,tO){ep.style[D(ep.style,tO)]=Ee?MS:""})}
function Vz(uY,Ee){var ep=P.createEvent("Event");ep.initEvent(uY,!0,!0);ep.gesture=Ee;Ee.target.dispatchEvent(ep)}
var ck=" webkit moz MS ms o".split(" "),d9=P.createElement("div"),sa=Math.round,$O=Math.abs,qS=Date.now,Do=1,Nj=/mobile|tablet|ip(ad|hone|od)|android/i,nq="ontouchstart"in S,pq=D(S,"PointerEvent")!==K,R_=nq&&Nj.test(navigator.userAgent),Gn=["x","y"],g9=["clientX","clientY"];Y.prototype={handler:function(){},
destroy:function(){this.evEl&&l(this.element,this.evEl,this.domHandler);this.evTarget&&l(this.target,this.evTarget,this.domHandler);this.evWin&&l(S,this.evWin,this.domHandler)}};
var Lq={mousedown:1,mousemove:2,mouseup:4};d(To,Y,{handler:function(uY){var Ee=Lq[uY.type];Ee&1&&uY.button===0&&(this.pressed=!0);Ee&2&&uY.which!==1&&(Ee=4);this.pressed&&this.allow&&(Ee&4&&(this.pressed=!1),this.callback(this.manager,Ee,{pointers:[uY],changedPointers:[uY],pointerType:"mouse",srcEvent:uY}))}});
var Kq={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ah={2:"touch",3:"pen",4:"mouse",5:"kinect"},Hv="pointerdown",XK="pointermove pointerup pointercancel";S.MSPointerEvent&&(Hv="MSPointerDown",XK="MSPointerMove MSPointerUp MSPointerCancel");d(jp,Y,{handler:function(uY){var Ee=this.store,ep=!1,MS=uY.type.toLowerCase().replace("ms","");MS=Kq[MS];var tO=Ah[uY.pointerType]||uY.pointerType;MS&1&&(uY.button===0||tO=="touch")?Ee.push(uY):MS&12&&(ep=!0);var LD=J(Ee,uY.pointerId,"pointerId");
LD<0||(Ee[LD]=uY,this.callback(this.manager,MS,{pointers:Ee,changedPointers:[uY],pointerType:tO,srcEvent:uY}),ep&&Ee.splice(LD,1))}});
var lz={touchstart:1,touchmove:2,touchend:4,touchcancel:8};d(Xf,Y,{handler:function(uY){var Ee=lz[uY.type];var ep=Array.prototype.slice.call(uY.touches,0);var MS=this.targetIds;if(Ee&3&&ep.length===1)MS[ep[0].identifier]=!0,MS=[ep,ep];else{var tO,LD=Array.prototype.slice.call(uY.targetTouches,0),fq=Array.prototype.slice.call(uY.changedTouches,0),Qz=[];if(Ee===1)for(ep=0,tO=LD.length;ep<tO;ep++)MS[LD[ep].identifier]=!0;ep=0;for(tO=fq.length;ep<tO;ep++)MS[fq[ep].identifier]&&Qz.push(fq[ep]),Ee&12&&
delete MS[fq[ep].identifier];MS=Qz.length?[Z(LD.concat(Qz),"identifier",!0),Qz]:void 0}MS&&this.callback(this.manager,Ee,{pointers:MS[0],changedPointers:MS[1],pointerType:"touch",srcEvent:uY})}});
d(YO,Y,{handler:function(uY,Ee,ep){var MS=ep.pointerType=="mouse";if(ep.pointerType=="touch")this.mouse.allow=!1;else if(MS&&!this.mouse.allow)return;Ee&12&&(this.mouse.allow=!0);this.callback(uY,Ee,ep)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var i4=D(d9.style,"touchAction"),fE=i4!==K;Wk.prototype={set:function(uY){uY=="compute"&&(uY=this.compute());fE&&(this.manager.element.style[i4]=uY);this.actions=uY.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var uY=[];a(this.manager.recognizers,function(Ee){k(Ee.options.enable,[Ee])&&(uY=uY.concat(Ee.getTouchAction()))});
return S9(uY.join(" "))},
preventDefaults:function(uY){if(!fE){var Ee=uY.srcEvent;uY=uY.offsetDirection;if(this.manager.session.prevented)Ee.preventDefault();else{var ep=this.actions,MS=ep.indexOf("none")>-1,tO=ep.indexOf("pan-y")>-1;ep=ep.indexOf("pan-x")>-1;if(MS||tO&&ep||tO&&uY&6||ep&&uY&24)return this.preventSrc(Ee)}}},
preventSrc:function(uY){this.manager.session.prevented=!0;uY.preventDefault()}};
Vu.prototype={defaults:{},set:function(uY){R(this.options,uY);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(uY){if(G(uY,"recognizeWith",this))return this;var Ee=this.simultaneous;uY=mc(uY,this);Ee[uY.id]||(Ee[uY.id]=uY,uY.recognizeWith(this));return this},
dropRecognizeWith:function(uY){if(G(uY,"dropRecognizeWith",this))return this;uY=mc(uY,this);delete this.simultaneous[uY.id];return this},
requireFailure:function(uY){if(G(uY,"requireFailure",this))return this;var Ee=this.requireFail;uY=mc(uY,this);J(Ee,uY)===-1&&(Ee.push(uY),uY.requireFailure(this));return this},
dropRequireFailure:function(uY){if(G(uY,"dropRequireFailure",this))return this;uY=mc(uY,this);uY=J(this.requireFail,uY);uY>-1&&this.requireFail.splice(uY,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(uY){return!!this.simultaneous[uY.id]},
emit:function(uY){function Ee(tO){ep.manager.emit(ep.options.event+(tO?MS&16?"cancel":MS&8?"end":MS&4?"move":MS&2?"start":"":""),uY)}
var ep=this,MS=this.state;MS<8&&Ee(!0);Ee();MS>=8&&Ee(!0)},
tryEmit:function(uY){if(this.canEmit())return this.emit(uY);this.state=32},
canEmit:function(){for(var uY=0;uY<this.requireFail.length;uY++)if(!(this.requireFail[uY].state&33))return!1;return!0},
recognize:function(uY){uY=R({},uY);k(this.options.enable,[this,uY])?(this.state&56&&(this.state=1),this.state=this.process(uY),this.state&30&&this.tryEmit(uY)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
d(f9,Vu,{defaults:{pointers:1},attrTest:function(uY){var Ee=this.options.pointers;return Ee===0||uY.pointers.length===Ee},
process:function(uY){var Ee=this.state,ep=uY.eventType,MS=Ee&6;uY=this.attrTest(uY);return MS&&(ep&8||!uY)?Ee|16:MS||uY?ep&4?Ee|8:Ee&2?Ee|4:2:32}});
d(mJ,f9,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var uY=this.options.direction;if(uY===30)return["none"];var Ee=[];uY&6&&Ee.push("pan-y");uY&24&&Ee.push("pan-x");return Ee},
directionTest:function(uY){var Ee=this.options,ep=!0,MS=uY.distance,tO=uY.direction,LD=uY.deltaX,fq=uY.deltaY;tO&Ee.direction||(Ee.direction&6?(tO=LD===0?1:LD<0?2:4,ep=LD!=this.pX,MS=Math.abs(uY.deltaX)):(tO=fq===0?1:fq<0?8:16,ep=fq!=this.pY,MS=Math.abs(uY.deltaY)));uY.direction=tO;return ep&&MS>Ee.threshold&&tO&Ee.direction},
attrTest:function(uY){return f9.prototype.attrTest.call(this,uY)&&(this.state&2||!(this.state&2)&&this.directionTest(uY))},
emit:function(uY){this.pX=uY.deltaX;this.pY=uY.deltaY;var Ee=n9(uY.direction);Ee&&this.manager.emit(this.options.event+Ee,uY);this._super.emit.call(this,uY)}});
d(Bk,f9,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(uY){return this._super.attrTest.call(this,uY)&&(Math.abs(uY.scale-1)>this.options.threshold||this.state&2)},
emit:function(uY){this._super.emit.call(this,uY);uY.scale!==1&&this.manager.emit(this.options.event+(uY.scale<1?"in":"out"),uY)}});
d(RU,Vu,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(uY){var Ee=this.options,ep=uY.pointers.length===Ee.pointers,MS=uY.distance<Ee.threshold,tO=uY.deltaTime>Ee.time;this._input=uY;if(!MS||!ep||uY.eventType&12&&!tO)this.reset();else if(uY.eventType&1)this.reset(),this._timer=C(function(){this.state=8;this.tryEmit()},Ee.time,this);
else if(uY.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(uY){this.state===8&&(uY&&uY.eventType&4?this.manager.emit(this.options.event+"up",uY):(this._input.timeStamp=qS(),this.manager.emit(this.options.event,this._input)))}});
d(Ab,f9,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(uY){return this._super.attrTest.call(this,uY)&&(Math.abs(uY.rotation)>this.options.threshold||this.state&2)}});
d(kZ,f9,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return mJ.prototype.getTouchAction.call(this)},
attrTest:function(uY){var Ee=this.options.direction;if(Ee&30)var ep=uY.velocity;else Ee&6?ep=uY.velocityX:Ee&24&&(ep=uY.velocityY);return this._super.attrTest.call(this,uY)&&Ee&uY.direction&&$O(ep)>this.options.velocity&&uY.eventType&4},
emit:function(uY){var Ee=n9(uY.direction);Ee&&this.manager.emit(this.options.event+Ee,uY);this.manager.emit(this.options.event,uY)}});
d(Ib,Vu,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(uY){var Ee=this.options,ep=uY.pointers.length===Ee.pointers,MS=uY.distance<Ee.threshold,tO=uY.deltaTime<Ee.time;this.reset();if(uY.eventType&1&&this.count===0)return this.failTimeout();if(MS&&tO&&ep){if(uY.eventType!=4)return this.failTimeout();ep=this.pTime?uY.timeStamp-this.pTime<Ee.interval:!0;MS=!this.pCenter||ML(this.pCenter,uY.center)<Ee.posThreshold;this.pTime=uY.timeStamp;this.pCenter=uY.center;MS&&ep?this.count+=1:this.count=1;this._input=uY;if(this.count%Ee.taps===0)return this.hasRequireFailures()?
(this._timer=C(function(){this.state=8;this.tryEmit()},Ee.interval,this),2):8}return 32},
failTimeout:function(){this._timer=C(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
Ud.VERSION="2.0.2";Ud.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Ab,{enable:!1}],[Bk,{enable:!1},["rotate"]],[kZ,{direction:6}],[mJ,{direction:6},["swipe"]],[Ib],[Ib,{event:"doubletap",taps:2},["tap"]],[RU]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};ob.prototype={set:function(uY){R(this.options,uY);return this},
stop:function(uY){this.session.stopped=uY?2:1},
recognize:function(uY){var Ee=this.session;if(!Ee.stopped){this.touchAction.preventDefaults(uY);var ep=this.recognizers,MS=Ee.curRecognizer;if(!MS||MS&&MS.state&8)MS=Ee.curRecognizer=null;for(var tO=0,LD=ep.length;tO<LD;tO++){var fq=ep[tO];Ee.stopped===2||MS&&fq!=MS&&!fq.canRecognizeWith(MS)?fq.reset():fq.recognize(uY);!MS&&fq.state&14&&(MS=Ee.curRecognizer=fq)}}},
get:function(uY){if(uY instanceof Vu)return uY;for(var Ee=this.recognizers,ep=0;ep<Ee.length;ep++)if(Ee[ep].options.event==uY)return Ee[ep];return null},
add:function(uY){if(G(uY,"add",this))return this;var Ee=this.get(uY.options.event);Ee&&this.remove(Ee);this.recognizers.push(uY);uY.manager=this;this.touchAction.update();return uY},
remove:function(uY){if(G(uY,"remove",this))return this;var Ee=this.recognizers;uY=this.get(uY);Ee.splice(J(Ee,uY),1);this.touchAction.update();return this},
on:function(uY,Ee){var ep=this.handlers;a(u(uY),function(MS){ep[MS]=ep[MS]||[];ep[MS].push(Ee)});
return this},
off:function(uY,Ee){var ep=this.handlers;a(u(uY),function(MS){Ee?ep[MS].splice(J(ep[MS],Ee),1):delete ep[MS]});
return this},
emit:function(uY,Ee){this.options.domEvents&&Vz(uY,Ee);var ep=this.handlers[uY]&&this.handlers[uY].slice();if(ep&&ep.length){Ee.type=uY;Ee.preventDefault=function(){Ee.srcEvent.preventDefault()};
uY=0;for(var MS=ep.length;uY<MS;uY++)ep[uY](Ee)}},
destroy:function(){this.element&&PM(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
R(Ud,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:ob,Input:Y,TouchAction:Wk,Recognizer:Vu,AttrRecognizer:f9,Tap:Ib,Pan:mJ,Swipe:kZ,Pinch:Bk,Rotate:Ab,Press:RU,on:M,off:l,each:a,merge:n,extend:R,inherit:d,bindFn:m,prefixed:D});
S[H]=Ud})(window,document,"Hammer");
return window.Hammer}.call({});
b.DOCUMENT=N;N[t3b]=b}return N[t3b]};/*

 MIT License

 Copyright (c) 2017 Alexander Reardon

 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
*/
var FlE=function(N,b){if(N.length!==b.length)return!1;for(var S=0;S<N.length;++S)if(N[S]!==b[S])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var B6N=_.O(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),lM9=B6N.next();!lM9.done;lM9=B6N.next()){var LlZ=lM9.value,fMl=document.createElement("link");fMl.rel="stylesheet";fMl.href=LlZ;document.head.appendChild(fMl)};var VOI,eps,hp9,y6s,gve,IAf,prp,Y7L;VOI={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};eps={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"};hp9={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};y6s=/[a-z0-9*]/;gve=/U\+/;IAf=/^arrow/;prp=/^space(bar)?/;Y7L=/^escape$/;_.XX={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(N,b){this._imperativeKeyBindings[N]=b;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(N,b){b=wr9(b);for(var S=0;S<b.length;++S)if($Ha(b[S],N))return!0;return!1},
_collectKeyBindings:function(){var N=this.behaviors.map(function(b){return b.keyBindings});
N.indexOf(this.keyBindings)===-1&&N.push(this.keyBindings);return N},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(S){for(var P in S)this._addKeyBinding(P,S[P])},this);
for(var N in this._imperativeKeyBindings)this._addKeyBinding(N,this._imperativeKeyBindings[N]);for(var b in this._keyBindings)this._keyBindings[b].sort(function(S,P){S=S[0].hasModifiers;return S===P[0].hasModifiers?0:S?-1:1})},
_addKeyBinding:function(N,b){wr9(N).forEach(function(S){this._keyBindings[S.event]=this._keyBindings[S.event]||[];this._keyBindings[S.event].push([S,b])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(N){var b=this._onKeyBindingEvent.bind(this,this._keyBindings[N]);this._boundKeyHandlers.push([this.keyEventTarget,N,b]);this.keyEventTarget.addEventListener(N,b)},this)},
_unlistenKeyEventListeners:function(){for(var N,b,S;this._boundKeyHandlers.length;)N=this._boundKeyHandlers.pop(),b=N[0],S=N[1],N=N[2],b.removeEventListener(S,N)},
_onKeyBindingEvent:function(N,b){this.stopKeyboardEventPropagation&&b.stopPropagation();if(!b.defaultPrevented)for(var S=0;S<N.length;S++){var P=N[S][0],H=N[S][1];if($Ha(P,b)&&(this._triggerKeyHandler(P,H,b),b.defaultPrevented))break}},
_triggerKeyHandler:function(N,b,S){var P=Object.create(N);P.keyboardEvent=S;N=new CustomEvent(N.event,{detail:P,cancelable:!0});this[b].call(this,N);N.defaultPrevented&&S.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.uI({is:"iron-a11y-keys",_template:null,behaviors:[_.XX],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(N){this.keyEventTarget=N},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(N){this.fire("keys-pressed",N.detail,{})}});_.Ep={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(N){this._setFocused(N.type==="focus")},
_disabledChanged:function(N){this.setAttribute("aria-disabled",N?"true":"false");this.style.pointerEvents=N?"none":"";N?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var YM={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(N){this._detectKeyboardFocus(N);N||this._setPressed(!1)},
_detectKeyboardFocus:function(N){this._setReceivedFocusFromKeyboard(!this.pointerDown&&N)},
_userActivate:function(N){this.active!==N&&(this.active=N,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(N){N=N.detail.keyboardEvent;var b=_.Tk(N).localTarget;this.isLightDescendant(b)||(N.preventDefault(),N.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(N){N=_.Tk(N.detail.keyboardEvent).localTarget;this.isLightDescendant(N)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(N,b){b&&b!=N&&this.hasAttribute(b)&&this.removeAttribute(b)},
_activeChanged:function(N){this.toggles?this.setAttribute(this.ariaActiveAttribute,N?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},u09=[_.XX,
YM];_.y8={IronButtonState:u09,IronButtonStateImpl:YM};_.Iy={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Dt=function(N){_.Dt[" "](N);this.type=N&&N.type||"default";this.key=N&&N.key;N&&"value"in N&&(this.value=N.value)};
_.Dt.prototype.byKey=function(N){this.key=N;return this.value};
_.d0.Object.defineProperties(_.Dt.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var N=this.type,b=this.key;if(N&&b)return V8[N]&&V8[N][b]},
set:function(N){var b=this.type,S=this.key;b&&S&&(b=V8[b]=V8[b]||{},N==null?delete b[S]:b[S]=N)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var N=V8[this.type];return N?Object.keys(N).map(function(b){return V8[this.type][b]},this):[]}}});
_.Dt[" "]=function(){};
var V8={};_.uI({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(N,b,S){N=new _.Dt({type:N,key:b});S!==void 0&&S!==N.value?N.value=S:this.value!==N.value&&(this.value=N.value);return N},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(N){N&&(this.value=this)},
byKey:function(N){return(new _.Dt({type:this.type,key:N})).value}});var QTN;QTN=null;_.gR={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){QTN=new _.Dt({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return QTN&&QTN.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(N){this.invalid=N===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(N);return!this.invalid},
_getValidity:function(N){return this.hasValidator()?this._validator.validate(N):!0}};var x59={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},
_getValidity:function(){return this.disabled||!this.required||this.checked},
_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},
_checkedChanged:function(){this.active=this.checked;this.fire("iron-change")},
_valueChanged:function(){if(this.value===void 0||this.value===null)this.value="on"}},oEV=[_.Iy,
_.gR,x59];_.uI({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new _.Dt({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(N){return this.name+":"+N},this)},
applyIcon:function(N,b){this.removeIcon(N);if(b=this._cloneIcon(b,this.rtlMirroring&&this._targetIsRTL(N))){var S=_.Tk(N.root||N);S.insertBefore(b,S.childNodes[0]);return N._svgIcon=b}return null},
removeIcon:function(N){N._svgIcon&&(_.Tk(N.root||N).removeChild(N._svgIcon),N._svgIcon=null)},
_targetIsRTL:function(N){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(N&&N.nodeType!==Node.ELEMENT_NODE&&(N=N.host),this.__targetIsRTL=N&&window.getComputedStyle(N).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var N=Object.create(null);_.Tk(this).querySelectorAll("[id]").forEach(function(b){N[b.id]=b});
return N},
_cloneIcon:function(N,b){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[N],this.size,b)},
_prepareSvgClone:function(N,b,S){if(N){N=N.cloneNode(!0);var P=document.createElementNS("http://www.w3.org/2000/svg","svg");b=N.getAttribute("viewBox")||"0 0 "+b+" "+b;var H="pointer-events: none; display: block; width: 100%; height: 100%;";S&&N.hasAttribute("mirror-in-rtl")&&(H+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");P.setAttribute("viewBox",b);P.setAttribute("preserveAspectRatio","xMidYMid meet");P.setAttribute("focusable","false");P.style&&(P.style.cssText=
H);P.appendChild(N).removeAttribute("id");return P}return null}});var iSV=function(N){this.multi=!1;this.selection=[];this.selectCallback=N};
_.v=iSV.prototype;_.v.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.v.clear=function(N){this.selection.slice().forEach(function(b){(!N||N.indexOf(b)<0)&&this.setItemSelected(b,!1)},this)};
_.v.isSelected=function(N){return this.selection.indexOf(N)>=0};
_.v.setItemSelected=function(N,b){if(N!=null&&b!==this.isSelected(N)){if(b)this.selection.push(N);else{var S=this.selection.indexOf(N);S>=0&&this.selection.splice(S,1)}this.selectCallback&&this.selectCallback(N,b)}};
_.v.select=function(N){this.multi?this.toggle(N):this.get()!==N&&(this.setItemSelected(this.get(),!1),this.setItemSelected(N,!0))};
_.v.toggle=function(N){this.setItemSelected(N,!this.isSelected(N))};_.IA={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},
_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1,"ps-dom-if":1,"ps-dom-repeat":1}}}},
observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this);this._selection=new iSV(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Tk(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(N){return this.items?this.items.indexOf(N):-1},
select:function(N){this.selected=N},
selectPrevious:function(){var N=this.items.length,b=N-1;this.selected!==void 0&&(b=(Number(this._valueToIndex(this.selected))-1+N)%N);this.selected=this._indexToValue(b)},
selectNext:function(){var N=0;this.selected!==void 0&&(N=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(N)},
selectIndex:function(N){this.select(this._indexToValue(N))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(N){this.listen(this,N,"_activateHandler")},
_removeListener:function(N){this.unlisten(this,N,"_activateHandler")},
_activateEventChanged:function(N,b){this._removeListener(b);this._addListener(N)},
_updateItems:function(){var N=_.Tk(this).queryDistributedElements(this.selectable||"*");N=Array.prototype.filter.call(N,this._bindFilterItem);this._setItems(N)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var N=this._valueToItem(this.selected);N?this._selection.select(N):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(N){return!this._excludedLocalNames[N.localName]},
_valueToItem:function(N){return N==null?null:this.items[this._valueToIndex(N)]},
_valueToIndex:function(N){if(this.attrForSelected)for(var b=0,S;S=this.items[b];b++){if(this._valueForItem(S)==N)return b}else return Number(N)},
_indexToValue:function(N){if(this.attrForSelected){if(N=this.items[N])return this._valueForItem(N)}else return N},
_valueForItem:function(N){if(!N)return null;if(!this.attrForSelected)return N=this.indexOf(N),N===-1?null:N;var b=N[Lt(this.attrForSelected)];return b!=void 0?b:N.getAttribute(this.attrForSelected)},
_applySelection:function(N,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,N);this.selectedAttribute&&this.toggleAttribute.call(N,this.selectedAttribute,b);this._selectionChange();this.fire("iron-"+(b?"select":"deselect"),{item:N})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(N){return _.Tk(N).observeNodes(function(b){this._updateItems();this._updateSelected();this.fire("iron-items-changed",b,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(N){N=N.target;for(var b=this.items;N&&N!=this;){var S=b.indexOf(N);if(S>=0){b=this._indexToValue(S);this._itemActivate(b,N);break}N=N.parentNode}},
_itemActivate:function(N,b){this.fire("iron-activate",{selected:N,item:b},{cancelable:!0}).defaultPrevented||this.select(N)}};var JPO={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(N){this.multi?this._toggleSelected(N):this.selected=N},
multiChanged:function(N){this._selection.multi=N;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(N){return this._indexToValue(this.indexOf(N))},this).filter(function(N){return N!=null},this)):_.IA._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(N){N=N||[];N=(this._valuesToItems(N)||[]).filter(function(S){return S!==null&&S!==void 0});
this._selection.clear(N);for(var b=0;b<N.length;b++)this._selection.setItemSelected(N[b],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var N=this._selection.get();this.multi?(this._setSelectedItems(N),this._setSelectedItem(N.length?N[0]:null)):N!==null&&N!==void 0?(this._setSelectedItems([N]),this._setSelectedItem(N)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(N){var b=this.selectedValues.indexOf(N);b<0?this.push("selectedValues",N):this.splice("selectedValues",b,1)},
_valuesToItems:function(N){return N==null?null:N.map(function(b){return this._valueToItem(b)},this)}},U5k=[_.IA,
JPO];var ZS4;
_.e2={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(N){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var b=this._valueToItem(N);b&&b.hasAttribute("disabled")||(this._setFocusedItem(b),JPO.select.apply(this,arguments))},
_resetTabindices:function(){var N=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(b){b.setAttribute("tabindex",b===N?"0":"-1");b.setAttribute("aria-selected",this._selection.isSelected(b))},this)},
_updateMultiselectable:function(N){N?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(N){if(this._MODIFIER_KEYS.indexOf(N.key)===-1){this.cancelDebouncer("_clearSearchText");var b=this._searchText||"";b+=(N.key&&N.key.length==1?N.key:String.fromCharCode(N.keyCode)).toLocaleLowerCase();N=b.length;for(var S=0,P;P=this.items[S];S++)if(!P.hasAttribute("disabled")){var H=this.attrForItemTitle||"textContent";H=(P[H]||P.getAttribute(H)||"").trim();if(!(H.length<N)&&H.slice(0,N).toLocaleLowerCase()==b){this._setFocusedItem(P);break}}this._searchText=b;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var N=this.items.length,b=Number(this.indexOf(this.focusedItem)),S=1;S<N+1;S++){var P=this.items[(b-S+N)%N];if(!P.hasAttribute("disabled")){var H=_.Tk(P).getOwnerRoot()||document;this._setFocusedItem(P);if(_.Tk(H).activeElement==P)break}}},
_focusNext:function(){for(var N=this.items.length,b=Number(this.indexOf(this.focusedItem)),S=1;S<N+1;S++){var P=this.items[(b+S)%N];if(!P.hasAttribute("disabled")){var H=_.Tk(P).getOwnerRoot()||document;this._setFocusedItem(P);if(_.Tk(H).activeElement==P)break}}},
_applySelection:function(N,b){b?N.setAttribute("aria-selected","true"):N.setAttribute("aria-selected","false");_.IA._applySelection.apply(this,arguments)},
_focusedItemChanged:function(N,b){b&&b.setAttribute("tabindex","-1");!N||N.hasAttribute("disabled")||this.disabled||(N.setAttribute("tabindex","0"),N.focus())},
_onIronItemsChanged:function(N){N.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var N=this.getAttribute("tabindex");_.e2._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",N);_.e2._shiftTabPressed=!1},1)},
_onFocus:function(N){!_.e2._shiftTabPressed&&(N=_.Tk(N).rootTarget,N===this||typeof N.tabIndex==="undefined"||this.isLightDescendant(N))&&(this._defaultFocusAsync=this.async(function(){var b=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);b?this._setFocusedItem(b):this.items[0]&&this._focusNext()}))},
_onUpKey:function(N){this._focusPrevious();N.detail.keyboardEvent.preventDefault()},
_onDownKey:function(N){this._focusNext();N.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var N=this.focusedItem;N&&N.blur()},
_onKeydown:function(N){this.keyboardEventMatchesKeys(N,"up down esc")||this._focusWithKeyboardEvent(N);N.stopPropagation()},
_activateHandler:function(N){_.IA._activateHandler.call(this,N);N.stopPropagation()},
_disabledChanged:function(N){N?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};ZS4=[U5k,_.XX,_.e2];_.jTc={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(N){this.focusedItem&&(this.focusedItem.click(),N.detail.keyboardEvent.preventDefault())},
_onDownKey:function(N){this.focusedItem&&(this.focusedItem.click(),N.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(N){return N.ctrlKey||N.shiftKey||N.altKey||N.metaKey},
_onLeftKey:function(N){this._isSpecialKey(N.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),N.detail.keyboardEvent.preventDefault())},
_onRightKey:function(N){this._isSpecialKey(N.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),N.detail.keyboardEvent.preventDefault())},
_onKeydown:function(N){this.keyboardEventMatchesKeys(N,"up down left right esc")||this._focusWithKeyboardEvent(N)}};
_.zrN=[ZS4,_.jTc];var APZ;APZ=new Set;_.$M={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(APZ.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(N){this.resizerShouldNotify(N)&&this._notifyDescendant(N)},this),this._fireResize())},
assignParentResizable:function(N){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=N)&&N._interestedResizables.indexOf(this)===-1&&(N._interestedResizables.push(this),N._subscribeIronResize(this))},
stopResizeNotificationsFor:function(N){var b=this._interestedResizables.indexOf(N);b>-1&&(this._interestedResizables.splice(b,1),this._unsubscribeIronResize(N))},
_subscribeIronResize:function(N){N.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(N){N.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(N){this._notifyingDescendant?N.stopPropagation():Sg||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(N){var b=_.Tk(N).rootTarget;b!==this&&(b.assignParentResizable(this),this._notifyDescendant(b),N.stopPropagation())},
_parentResizableChanged:function(N){N&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(N){this.isAttached&&(this._notifyingDescendant=!0,N.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var N=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function S(){document.removeEventListener("readystatechange",S);N()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(b){b!==this&&b._findParent()},this):(APZ.forEach(function(b){b!==this&&b._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?APZ.delete(this):APZ.add(this)}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.XpN={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(N,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);b&&(N==="document"?this.scrollTarget=this._doc:typeof N==="string"?this.scrollTarget=(b=this.domHost)&&b.$?b.$[N]:_.Tk(this.ownerDocument).querySelector("#"+N):this._isValidScrollTarget()&&(this._oldScrollTarget=N,this._toggleScrollListener(this._shouldHaveListener,N)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(N){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,N):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
N)},set _scrollLeft(N){this.scrollTarget===this._doc?window.scrollTo(N,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=N)},scroll:function(N,b){if(typeof N==="object"){var S=N.left;b=N.top}else S=N;S=S||0;b=b||0;this.scrollTarget===this._doc?window.scrollTo(S,b):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=S,this.scrollTarget.scrollTop=b)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(N,b){b=b===this._doc?window:b;N?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),b.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(b.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(N){this._shouldHaveListener=N;this._toggleScrollListener(N,this.scrollTarget)}};_.uI({is:"iron-selector",_template:null,behaviors:[U5k]});var hH={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(N){if(N.timing)for(var b in N.timing)this.animationTiming[b]=N.timing[b];return this.animationTiming},
setPrefixedProperty:function(N,b,S){for(var P={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[b],H,K=0;H=P[K];K++)N.style[H]=S;N.style[b]=S},
complete:function(){}};_.uI({is:"fade-in-animation",_template:null,behaviors:[hH],configure:function(N){return this._effect=new KeyframeEffect(N.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(N))}});_.uI({is:"fade-out-animation",_template:null,behaviors:[hH],configure:function(N){return this._effect=new KeyframeEffect(N.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(N))}});var EEk=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(N,b){for(var S in b)N[S]=b[S]},
_cloneConfig:function(N){var b={isClone:!0};this._copyProperties(b,N);return b},
_getAnimationConfigRecursive:function(N,b,S){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var P=N?this.animationConfig[N]:this.animationConfig;Array.isArray(P)||(P=[P]);if(P)for(var H,K=0;H=P[K];K++)if(H.animatable)H.animatable._getAnimationConfigRecursive(H.type||N,b,S);else if(H.id){var C=b[H.id];
C?(C.isClone||(b[H.id]=this._cloneConfig(C),C=b[H.id]),this._copyProperties(C,H)):b[H.id]=H}else S.push(H)}},
getAnimationConfig:function(N){var b={},S=[];this._getAnimationConfigRecursive(N,b,S);for(var P in b)S.push(b[P]);return S}},
{_configureAnimations:function(N){var b=[],S=[];if(N.length>0)for(var P,H=0;P=N[H];H++){var K=document.createElement(P.name);if(K.isNeonAnimation){var C=null;K.configure||(K.configure=function(){return null});
C=K.configure(P);S.push({result:C,config:P})}else console.warn(this.is+":",P.name,"not found!")}for(N=0;N<S.length;N++){C=S[N].result;P=S[N].config;try{typeof C.cancel!="function"&&(C=document.timeline.play(C))}catch(G){C=null,console.warn("Couldnt play","(",P.name,").",G)}C&&b.push({neonAnimation:K,config:P,animation:C})}return b},
_shouldComplete:function(N){for(var b=!0,S=0;S<N.length;S++)if(N[S].animation.playState!="finished"){b=!1;break}return b},
_complete:function(N){for(var b=0;b<N.length;b++)N[b].neonAnimation.complete(N[b].config);for(b=0;b<N.length;b++)N[b].animation.cancel()},
playAnimation:function(N,b){var S=this.getAnimationConfig(N);if(S){this._active=this._active||{};this._active[N]&&(this._complete(this._active[N]),delete this._active[N]);var P=this._configureAnimations(S);if(P.length==0)this.fire("neon-animation-finish",b,{bubbles:!1});else for(this._active[N]=P,S=0;S<P.length;S++)P[S].animation.onfinish=function(){this._shouldComplete(P)&&(this._complete(P),delete this._active[N],this.fire("neon-animation-finish",b,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var N in this._active){var b=this._active[N],S;for(S in b)b[S].animation&&b[S].animation.cancel&&b[S].animation.cancel()}this._active={}}}];var jg=function(N,b){N=Error.call(this,N);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.arg=b;this.name=this.constructor.name;this.constructor=jg;this.__proto__=jg.prototype};
_.F(jg,Error);var ppc=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b.prototype._marshalArgs=function(S,P,H){P=N.prototype._marshalArgs.call(this,S,P,H);if(this._legacyUndefinedCheck&&P.length>1)for(H=0;H<P.length;H++)if(P[H]===void 0||S[H].wildcard&&P[H].base===void 0)throw S=S[H].name,new jg("Argument '"+S+"' is undefined.",S);return P};
b.prototype._addPropertyEffect=function(S,P,H){return N.prototype._addPropertyEffect.call(this,S,P,NCa(H,H&&H.info&&H.info.methodName))};
b._addTemplatePropertyEffect=function(S,P,H){return N._addTemplatePropertyEffect.call(this,S,P,NCa(H))};
return b}),Y_9=_.uI.Class;
_.uI.Class=function(N,b){return Y_9(N,function(S){return b?b(ppc(S)):ppc(S)})};
var yPz=Wu(function(N){var b=ppc(N);N=function(){return b.apply(this,arguments)||this};
_.F(N,b);_.d0.Object.defineProperties(N.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return N}),IMZ=H_.mixin;
H_.mixin=IMZ?function(N){return yPz(IMZ(N))}:yPz;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.qP=_.y8.IronButtonState;var h7O=bx;_.bFu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var KQO=function(){return Math.random().toString(36).substring(7).split("").join(".")},sdb="@@redux/INIT"+KQO(),CWb="@@redux/REPLACE"+KQO();var G5f=typeof Symbol==="function"&&Symbol.observable||"@@observable";var D59=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var V3z="top right bottom left width height size weight".split(" "),gEd=typeof MutationObserver!=="undefined",erl=D59&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,$59=function(){this.mutationEventsAdded_=this.JSC$11989_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=r1I(this.refresh.bind(this))},hrZ=function(N,
b){var S=N.observers_;
b=S.indexOf(b);~b&&S.splice(b,1);!S.length&&N.JSC$11989_connected_&&D59&&N.JSC$11989_connected_&&(document.removeEventListener("transitionend",N.onTransitionEnd_),window.removeEventListener("resize",N.refresh),N.mutationsObserver_&&(N.mutationsObserver_.disconnect(),erl&&(HTMLElement.prototype.attachShadow=erl)),N.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",N.refresh),N.mutationsObserver_=null,N.mutationEventsAdded_=!1,N.JSC$11989_connected_=!1)};
$59.prototype.refresh=function(){q_Z(this)&&this.refresh()};
var q_Z=function(N){N=N.observers_.filter(function(b){return wpl(b),b.activeObservations_.length>0});
N.forEach(function(b){return NVl(b)});
return N.length>0},bmN=function(N){if(D59&&!N.JSC$11989_connected_){document.addEventListener("transitionend",N.onTransitionEnd_);
window.addEventListener("resize",N.refresh);if(gEd){N.mutationsObserver_=new MutationObserver(N.refresh);var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};N.mutationsObserver_.observe(document,b);erl&&(function H(P){var K=P.shadowRoot;K&&(N.mutationsObserver_.observe(K,b),H(K));for(P=P.firstElementChild;P;)H(P),P=P.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var P=erl.apply(this,_.$I.apply(0,arguments));
N.mutationsObserver_.observe(P,b);return P})}else document.addEventListener("DOMSubtreeModified",N.refresh),N.mutationEventsAdded_=!0;
N.JSC$11989_connected_=!0}};
$59.prototype.onTransitionEnd_=function(N){var b=N.propertyName===void 0?"":N.propertyName;V3z.some(function(S){return!!~b.indexOf(S)})&&this.refresh()};
var SGl=null;var PJO=function(N,b){for(var S=_.O(Object.keys(b)),P=S.next();!P.done;P=S.next())P=P.value,Object.defineProperty(N,P,{value:b[P],enumerable:!1,writable:!1,configurable:!0})};var wR=function(N){var b;return(N==null?void 0:(b=N.ownerDocument)==null?void 0:b.defaultView)||globalThis};var Hmc={x:0,y:0,width:0,height:0},s9b=typeof SVGGraphicsElement!=="undefined"?function(N){return N instanceof wR(N).SVGGraphicsElement}:function(N){return N instanceof wR(N).SVGElement&&typeof N.getBBox==="function"};var Kwd=function(N){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=N};
Kwd.prototype.isActive=function(){var N=this.target;if(D59)if(s9b(N)){var b=N.getBBox();b={x:0,y:0,width:b.width,height:b.height}}else{var S=N.clientWidth,P=N.clientHeight;if(S||P){var H=wR(N).getComputedStyle(N);b=A3(H["padding-top"]);var K=A3(H["padding-left"]),C=K+A3(H["padding-right"]),G=b+A3(H["padding-bottom"]),a=A3(H.width),R=A3(H.height);H.boxSizing==="border-box"&&(Math.round(a+C)!==S&&(a-=c1U(H,"left","right")+C),Math.round(R+G)!==P&&(R-=c1U(H,"top","bottom")+G));N!==wR(N).document.documentElement&&
(N=Math.round(a+C)-S,P=Math.round(R+G)-P,Math.abs(N)!==1&&(a-=N),Math.abs(P)!==1&&(R-=P));b={x:K,y:b,width:a,height:R}}else b=Hmc}else b=Hmc;this.contentRect_=b;return b.width!==this.broadcastWidth||b.height!==this.broadcastHeight};var vpz=function(N,b){var S=b.x;var P=b.y;var H=b.width;b=b.height;var K=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);PJO(K,{x:S,y:P,width:H,height:b,top:P,right:S+H,bottom:b+P,left:S});PJO(this,{target:N,contentRect:K})};var OmZ=function(N,b){var S=SGl;this.activeObservations_=[];this.observations_=new Map;if(typeof N!=="function")throw new TypeError("We");this.callback_=N;this.controller_=S;this.callbackCtx_=b};
OmZ.prototype.observe=function(N){if(N===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(N instanceof wR(N).Element))throw new TypeError("Ye");var b=this.observations_;b.has(N)||(b.set(N,new Kwd(N)),N=this.controller_,~N.observers_.indexOf(this)||N.observers_.push(this),N.JSC$11989_connected_||bmN(N),this.controller_.refresh())}};
OmZ.prototype.unobserve=function(N){if(N===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(N instanceof wR(N).Element))throw new TypeError("Ye");var b=this.observations_;b.has(N)&&(b.delete(N),b.size||hrZ(this.controller_,this))}};
OmZ.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();hrZ(this.controller_,this)};
var wpl=function(N){N.activeObservations_.splice(0);N.observations_.forEach(function(b){b.isActive()&&N.activeObservations_.push(b)})},NVl=function(N){if(N.activeObservations_.length>0){var b=N.callbackCtx_,S=N.activeObservations_.map(function(P){var H=P.target,K=P.contentRect_;
P.broadcastWidth=K.width;P.broadcastHeight=K.height;return new vpz(H,K)});
N.callback_.call(b,S,b);N.activeObservations_.splice(0)}};var ND=function(N){if(!(this instanceof ND))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");SGl||(SGl=new $59);this.observer_=new OmZ(N,this)};
ND.prototype.observe=function(N){this.observer_.observe(N)};
ND.prototype.unobserve=function(N){this.observer_.unobserve(N)};
ND.prototype.disconnect=function(){this.observer_.disconnect()};var GhL=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:ND;var sY={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},OY={"2D":0,WebGL:1,WebGL2:2};OY[OY["2D"]]="2D";OY[1]="WebGL";OY[2]="WebGL2";var R5u={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},WQ_={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},aIs={},dOu={},mOa={},V6=function(N){return XG("Node",N,"childNodes")},DY=function(N){return XG("Node",N,"parentNode")},g0=function(N){return XG("Node",N,"parentElement")},w$o=function(N){return XG("Node",N,
"textContent")},aJe=function(N){return k5s(N,"getRootNode")()},px=function(N){return N&&"host"in N?XG("ShadowRoot",N,"host"):null},YX=function(N){return N&&"shadowRoot"in N?XG("Element",N,"shadowRoot"):null};var qM=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
qM.prototype.getId=function(N){if(!N)return-1;var b,S;return(S=(b=this.nodeMetaMap.get(N)||null)==null?void 0:b.id)!=null?S:-1};
qM.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var CJV=function(N,b){var S=N.getId(b);N.idNodeMap.delete(S);b.childNodes&&b.childNodes.forEach(function(P){return CJV(N,P)})};
qM.prototype.has=function(N){return this.idNodeMap.has(N)};
qM.prototype.add=function(N,b){this.idNodeMap.set(b.id,N);this.nodeMetaMap.set(N,b)};
qM.prototype.replace=function(N,b){var S=this.idNodeMap.get(N)||null;S&&(S=this.nodeMetaMap.get(S))&&this.nodeMetaMap.set(b,S);this.idNodeMap.set(N,b)};
qM.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var uzY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Qd9=/^(?:[a-z+]+:)?\/\//i,xOb=/^www\..*/i,oje=/^(data:)([^,]*),(.*)/i;var UOb=1,jdY=RegExp("[^a-z0-9-_:]"),eg,b8o,X$O=/^[^ \t\n\r\u000c]+/,A1_=/^[, \t\n\r\u000c]+/,y1f=new WeakMap;var C6,Hi=function(N){return C6?function(){var b=_.$I.apply(0,arguments);try{return N.apply(null,_.IX(b))}catch(S){if(!C6||C6(S)!==!0)throw S;}}:N};var bb=function(N){this.generateIdFn=N;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
bb.prototype.getId=function(N,b,S,P){S=S||Guk(this,N);N=P||rmO(this,N);P=S.get(b);P||(P=this.generateIdFn(),S.set(b,P),N.set(P,b));return P};
bb.prototype.getIds=function(N,b){var S=this,P=Guk(this,N),H=rmO(this,N);return b.map(function(K){return S.getId(N,K,P,H)})};
bb.prototype.reset=function(N){N?(this.iframeIdToRemoteIdMap.delete(N),this.iframeRemoteIdToIdMap.delete(N)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var Guk=function(N,b){var S=N.iframeIdToRemoteIdMap.get(b);S||(S=new Map,N.iframeIdToRemoteIdMap.set(b,S));return S},rmO=function(N,b){var S=N.iframeRemoteIdToIdMap.get(b);
S||(S=new Map,N.iframeRemoteIdToIdMap.set(b,S));return S};var SyI=function(N){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new bb(ZFa);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=N.mutationCb;this.wrappedEmit=N.wrappedEmit;this.stylesheetManager=N.stylesheetManager;this.recordCrossOriginIframes=N.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new bb(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=N.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12053_handleMessage.bind(this))},vSa=function(N,b){N.iframes.set(b,!0);
b.contentWindow&&N.crossOriginIframeMap.set(b.contentWindow,b)},aaY=function(N,b){N.loadListener=b},Gmu=function(N,b,S){N.mutationCb({adds:[{parentId:N.mirror.getId(b),
nextId:null,node:S}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(N.recordCrossOriginIframes){var P;(P=b.contentWindow)==null||P.addEventListener("message",N.JSC$12053_handleMessage.bind(N))}var H;(H=N.loadListener)==null||H.call(N,b);b.contentDocument&&b.contentDocument.adoptedStyleSheets&&b.contentDocument.adoptedStyleSheets.length>0&&Z8_(N.stylesheetManager,b.contentDocument.adoptedStyleSheets,N.mirror.getId(b.contentDocument))};
SyI.prototype.JSC$12053_handleMessage=function(N){if(N.data.type==="rrweb"&&N.origin===N.data.origin&&N.source){var b=this.crossOriginIframeMap.get(N.source);b&&(b=cm4(this,b,N.data.event))&&this.wrappedEmit(b,N.data.isCheckout)}};
var cm4=function(N,b,S){switch(S.type){case 2:N.crossOriginIframeMirror.reset(b);N.crossOriginIframeStyleMirror.reset(b);aCz(N,S.data.node,b);var P=S.data.node.id;N.crossOriginIframeRootIdMap.set(b,P);RqZ(N,S.data.node,P);return{timestamp:S.timestamp,type:3,data:{source:0,adds:[{parentId:N.mirror.getId(b),nextId:null,node:S.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return S;case 5:return SD(N,S.data.payload,b,["id","parentId","previousId","nextId"]),S;case 3:switch(S.data.source){case 0:return S.data.adds.forEach(function(H){SD(N,
H,b,["parentId","nextId","previousId"]);aCz(N,H.node,b);var K=N.crossOriginIframeRootIdMap.get(b);K&&RqZ(N,H.node,K)}),S.data.removes.forEach(function(H){SD(N,H,b,["parentId",
"id"])}),S.data.attributes.forEach(function(H){SD(N,H,b,["id"])}),S.data.texts.forEach(function(H){SD(N,H,b,["id"])}),S;
case 12:case 6:case 1:return S.data.positions.forEach(function(H){SD(N,H,b,["id"])}),S;
case 7:case 2:case 3:case 9:case 5:return SD(N,S.data,b,["id"]),S;case 8:case 13:return SD(N,S.data,b,["id"]),Wwl(N,S.data,b,["styleId"]),S;case 10:return S;case 14:return S.data.ranges.forEach(function(H){SD(N,H,b,["start","end"])}),S;
case 15:return SD(N,S.data,b,["id"]),Wwl(N,S.data,b,["styleIds"]),(P=S.data.styles)==null||P.forEach(function(H){Wwl(N,H,b,["styleId"])}),S}}return!1};
SyI.prototype.replace=function(N,b,S,P){P=_.O(P);for(var H=P.next();!H.done;H=P.next())if(H=H.value,Array.isArray(b[H])||typeof b[H]==="number")Array.isArray(b[H])?b[H]=N.getIds(S,b[H]):b[H]=N.getId(S,b[H]);return b};
var SD=function(N,b,S,P){N.replace(N.crossOriginIframeMirror,b,S,P)},Wwl=function(N,b,S,P){N.replace(N.crossOriginIframeStyleMirror,b,S,P)},aCz=function(N,b,S){SD(N,b,S,["id",
"rootId"]);"childNodes"in b&&b.childNodes.forEach(function(P){aCz(N,P,S)})},RqZ=function(N,b,S){b.type===0||b.rootId||(b.rootId=S);
"childNodes"in b&&b.childNodes.forEach(function(P){RqZ(N,P,S)})};var FrE=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},npZ=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.v=npZ.prototype;_.v.getId=function(N){var b;return(b=this.styleIDMap.get(N))!=null?b:-1};
_.v.has=function(N){return this.styleIDMap.has(N)};
_.v.add=function(N,b){if(this.has(N))return this.getId(N);b=b===void 0?this.id++:b;this.styleIDMap.set(N,b);this.idStyleMap.set(b,N);return b};
_.v.getStyle=function(N){return this.idStyleMap.get(N)||null};
_.v.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.v.generateId=function(){return this.id++};var dWO=function(){this.length=0;this.tail=this.head=null};
dWO.prototype.get=function(N){if(N>=this.length)throw Error("$e");for(var b=this.head,S=0;S<N;S++){var P=void 0;b=((P=b)==null?void 0:P.next)||null}return b};
var mWz=function(N,b){var S={value:b,previous:null,next:null};b.__ln=S;if(b.previousSibling&&"__ln"in b.previousSibling){var P=b.previousSibling.__ln.next;S.next=P;S.previous=b.previousSibling.__ln;b.previousSibling.__ln.next=S;P&&(P.previous=S)}else b.nextSibling&&"__ln"in b.nextSibling&&b.nextSibling.__ln.previous?(P=b.nextSibling.__ln.previous,S.previous=P,S.next=b.nextSibling.__ln,b.nextSibling.__ln.previous=S,P&&(P.next=S)):(N.head&&(N.head.previous=S),S.next=N.head,N.head=S);S.next===null&&
(N.tail=S);N.length++};
dWO.prototype.removeNode=function(N){var b=N.__ln;this.head&&(b.previous?(b.previous.next=b.next)?b.next.previous=b.previous:this.tail=b.previous:(this.head=b.next)?this.head.previous=null:this.tail=null,N.__ln&&delete N.__ln,this.length--)};
var kuE=function(N,b){return N+"@"+b},tyO=function(){var N=this;
this.locked=this.JSC$12084_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(b){b.forEach(N.JSC$12084_processMutation);N.emit()};
this.emit=function(){if(!N.JSC$12084_frozen&&!N.locked){for(var b=[],S=new Set,P=new dWO,H=function(d){for(var m=-2;m===-2;)m=(d=d&&d.nextSibling)&&N.mirror.getId(d);return m},K=function(d){var m=DY(d);
if(m&&Wrf(d)){var k=!1;if(d.nodeType===Node.TEXT_NODE){var M=m.tagName;if(M==="TEXTAREA")return;M==="STYLE"&&N.addedSet.has(m)&&(k=!0)}m=y6(m)?N.mirror.getId(RRI(d)):N.mirror.getId(m);M=H(d);if(m===-1||M===-1)return mWz(P,d);if(k=h3(d,{doc:N.doc,mirror:N.mirror,blockClass:N.blockClass,blockSelector:N.blockSelector,maskTextClass:N.maskTextClass,maskTextSelector:N.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:N.inlineStylesheet,maskInputOptions:N.maskInputOptions,maskTextFn:N.maskTextFn,
maskInputFn:N.maskInputFn,slimDOMOptions:N.slimDOMOptions,dataURLOptions:N.dataURLOptions,recordCanvas:N.recordCanvas,inlineImages:N.inlineImages,onSerialize:function(l){l.nodeName==="IFRAME"&&N.mirror.nodeMetaMap.get(l)&&vSa(N.iframeManager,l);cBL(l,N.mirror)&&OOa(N.stylesheetManager,l);d&&YX(d)&&C3I(N.shadowDomManager,YX(d),N.doc)},
onIframeLoad:function(l,u){Gmu(N.iframeManager,l,u);l.contentWindow&&l.contentDocument&&rqs(N.shadowDomManager,l.contentWindow.Element,l.contentDocument)},
onStylesheetLoad:function(l,u){cqY(N.stylesheetManager,l,u)},
cssCaptured:k}))b.push({parentId:m,nextId:M,node:k}),S.add(k.id)}};N.mapRemoves.length;)CJV(N.mirror,N.mapRemoves.shift());
for(var C=_.O(N.movedSet),G=C.next();!G.done;G=C.next())G=G.value,mmp(N.removesSubTreeCache,G)&&!N.movedSet.has(DY(G))||K(G);C=_.O(N.addedSet);for(G=C.next();!G.done;G=C.next())G=G.value,T_U(N.droppedSet,G)||mmp(N.removesSubTreeCache,G)?T_U(N.movedSet,G)?K(G):N.droppedSet.add(G):K(G);for(G=null;P.length;){C=null;if(G){var a=N.mirror.getId(DY(G.value)),R=H(G.value);a!==-1&&R!==-1&&(C=G)}if(!C)for(G=P.tail;G;){var n=G;G=G.previous;if(n&&(a=N.mirror.getId(DY(n.value)),H(n.value)!==-1))if(a!==-1){C=n;
break}else if((a=DY(n.value))&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(a=px(a),N.mirror.getId(a)!==-1)){C=n;break}}if(!C){for(;P.head;)P.removeNode(P.head.value);break}G=C.previous;P.removeNode(C.value);K(C.value)}K={texts:N.texts.map(function(d){var m=d.node,k=DY(m);k&&k.tagName==="TEXTAREA"&&N.genTextAreaValueMutation(k);return{id:N.mirror.getId(m),value:d.value}}).filter(function(d){return!S.has(d.id)}).filter(function(d){return N.mirror.has(d.id)}),
attributes:N.attributes.map(function(d){var m=d.attributes;if(typeof m.style==="string"){var k=JSON.stringify(d.styleDiff),M=JSON.stringify(d._unchangedStyles);k.length<m.style.length&&(k+M).split("var(").length===m.style.split("var(").length&&(m.style=d.styleDiff)}return{id:N.mirror.getId(d.node),attributes:m}}).filter(function(d){return!S.has(d.id)}).filter(function(d){return N.mirror.has(d.id)}),
removes:N.removes,adds:b};if(K.texts.length||K.attributes.length||K.removes.length||K.adds.length)N.texts=[],N.attributes=[],N.attributeMap=new WeakMap,N.removes=[],N.addedSet=new Set,N.movedSet=new Set,N.droppedSet=new Set,N.removesSubTreeCache=new Set,N.movedMap={},N.mutationCb(K)}};
this.genTextAreaValueMutation=function(b){var S=N.attributeMap.get(b);S||(S={node:b,attributes:{},styleDiff:{},_unchangedStyles:{}},N.attributes.push(S),N.attributeMap.set(b,S));var P=Array.from(V6(b),function(H){return w$o(H)||""}).join("");
S.attributes.value=BC_({element:b,maskInputOptions:N.maskInputOptions,tagName:b.tagName,type:LQO(b),value:P,maskInputFn:N.maskInputFn})};
this.JSC$12084_processMutation=function(b){if(!CAo(b.target,N.mirror,N.slimDOMOptions))switch(b.type){case "characterData":var S=w$o(b.target);bZ(b.target,N.blockClass,N.blockSelector,!1)||S===b.oldValue||N.texts.push({value:e5U(b.target,N.maskTextClass,N.maskTextSelector,!0)&&S?N.maskTextFn?N.maskTextFn(S,O8E(b.target)):S.replace(/[\S]/g,"*"):S,node:b.target});break;case "attributes":S=b.target;var P=b.attributeName,H=b.target.getAttribute(P);if(P==="value"){var K=LQO(S);H=BC_({element:S,maskInputOptions:N.maskInputOptions,
tagName:S.tagName,type:K,value:H,maskInputFn:N.maskInputFn})}if(bZ(b.target,N.blockClass,N.blockSelector,!1)||H===b.oldValue)break;K=N.attributeMap.get(b.target);if(S.tagName==="IFRAME"&&P==="src"&&!N.keepIframeSrcFn(H))if(S.contentDocument)break;else P="rr_src";K||(K={node:b.target,attributes:{},styleDiff:{},_unchangedStyles:{}},N.attributes.push(K),N.attributeMap.set(b.target,K));P==="type"&&S.tagName==="INPUT"&&(b.oldValue||"").toLowerCase()==="password"&&S.setAttribute("data-rr-is-password","true");
if(!DOL(S.tagName,P))if(K.attributes[P]=IIo(N.doc,S.tagName.toLowerCase(),P.toLowerCase(),H),P==="style"){if(!N.unattachedDoc)try{N.unattachedDoc=document.implementation.createHTMLDocument()}catch(R){N.unattachedDoc=N.doc}P=N.unattachedDoc.createElement("span");b.oldValue&&P.setAttribute("style",b.oldValue);H=_.O(Array.from(S.style));for(var C=H.next();!C.done;C=H.next()){C=C.value;var G=S.style.getPropertyValue(C),a=S.style.getPropertyPriority(C);G!==P.style.getPropertyValue(C)||a!==P.style.getPropertyPriority(C)?
K.styleDiff[C]=a===""?G:[G,a]:K._unchangedStyles[C]=[G,a]}P=_.O(Array.from(P.style));for(H=P.next();!H.done;H=P.next())H=H.value,S.style.getPropertyValue(H)===""&&(K.styleDiff[H]=!1)}else P==="open"&&S.tagName==="DIALOG"&&(S.matches("dialog:modal")?K.attributes.rr_open_mode="modal":K.attributes.rr_open_mode="non-modal");break;case "childList":bZ(b.target,N.blockClass,N.blockSelector,!0)||(b.target.tagName==="TEXTAREA"?N.genTextAreaValueMutation(b.target):(b.addedNodes.forEach(function(R){return N.genAdds(R,
b.target)}),b.removedNodes.forEach(function(R){var n=N.mirror.getId(R),d=y6(b.target)?N.mirror.getId(px(b.target)):N.mirror.getId(b.target);
bZ(b.target,N.blockClass,N.blockSelector,!1)||CAo(R,N.mirror,N.slimDOMOptions)||N.mirror.getId(R)===-1||(N.addedSet.has(R)?(nau(N.addedSet,R),N.droppedSet.add(R)):N.addedSet.has(b.target)&&n===-1||GIU(b.target,N.mirror)||(N.movedSet.has(R)&&N.movedMap[n+"@"+d]?nau(N.movedSet,R):(N.removes.push({parentId:d,id:n,isShadow:y6(b.target)&&Ie(b.target)?!0:void 0}),dmf(R,N.removesSubTreeCache))),N.mapRemoves.push(R))})))}};
this.genAdds=function(b,S){if(!TVN(N.processedNodeManager,b,N)&&!N.addedSet.has(b)&&!N.movedSet.has(b)){if(N.mirror.nodeMetaMap.has(b)){if(CAo(b,N.mirror,N.slimDOMOptions))return;N.movedSet.add(b);var P=null;S&&N.mirror.nodeMetaMap.has(S)&&(P=N.mirror.getId(S));P&&P!==-1&&(N.movedMap[kuE(N.mirror.getId(b),P)]=!0)}else N.addedSet.add(b),N.droppedSet.delete(b);bZ(b,N.blockClass,N.blockSelector,!1)||(V6(b).forEach(function(H){return N.genAdds(H)}),b&&YX(b)&&V6(YX(b)).forEach(function(H){N.processedNodeManager.add(H,
N);
N.genAdds(H,b)}))}}};
_.v=tyO.prototype;_.v.init=function(N){var b=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(S){b[S]=N[S]})};
_.v.freeze=function(){this.JSC$12084_frozen=!0;this.canvasManager.freeze()};
_.v.unfreeze=function(){this.JSC$12084_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.v.isFrozen=function(){return this.JSC$12084_frozen};
_.v.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.v.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.v.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var Pi=[],vi=window.Proxy,uFO=["INPUT","TEXTAREA","SELECT"],QEe=new WeakMap;var tMN=new Map,gaO=function(N,b,S){if(N&&(Vyp(N,b)||typeof N==="object")){b=N.constructor.name;var P=tMN.get(S);P||(P=new Map,tMN.set(S,P));P.has(b)||P.set(b,[]);S=P.get(b);b=S.indexOf(N);b===-1&&(b=S.length,S.push(N));return b}},eRs=function(N,b,S){return N.map(function(P){return DmU(P,b,S)})},Vyp=function(N,b){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(S){return typeof b[S]===
"function"}).find(function(S){return N instanceof b[S]})};var MM9=e3(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
hUL=_.Cg(MM9.join(""));var sj9=function(N){var b=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12126_frozen=!1;this.JSC$12126_processMutation=function(a,R){if(b.rafStamps.invokeId&&b.rafStamps.latestId!==b.rafStamps.invokeId||!b.rafStamps.invokeId)b.rafStamps.invokeId=b.rafStamps.latestId;b.pendingCanvasMutations.has(a)||b.pendingCanvasMutations.set(a,[]);b.pendingCanvasMutations.get(a).push(R)};
var S=N.sampling===void 0?"all":N.sampling,P=N.win,H=N.blockClass,K=N.blockSelector,C=N.recordCanvas,G=N.dataURLOptions;this.mutationCb=N.mutationCb;this.mirror=N.mirror;C&&S==="all"&&Fw9(this,P,H,K);C&&typeof S==="number"&&BV9(this,S,P,H,K,{dataURLOptions:G})};
_.v=sj9.prototype;_.v.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.v.freeze=function(){this.JSC$12126_frozen=!0};
_.v.unfreeze=function(){this.JSC$12126_frozen=!1};
_.v.lock=function(){this.locked=!0};
_.v.unlock=function(){this.locked=!1};
var BV9=function(N,b,S,P,H,K){var C=hRu(S,P,H,!0),G=new Map,a=ldo(qnb());a.onmessage=function(M){var l=M.data.id;G.set(l,!1);"base64"in M.data&&(M=M.data,N.mutationCb({id:l,type:OY["2D"],commands:[{property:"clearRect",args:[0,0,M.width,M.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:M.base64}],type:M.type}]},0,0]}]}))};
var R=1E3/b,n=0,d=function(){var M=[];S.document.querySelectorAll("canvas").forEach(function(l){bZ(l,P,H,!0)||M.push(l)});
return M},m=function(M){n&&M-n<R||(n=M,d().forEach(function(l){var u,J,Z,D,Y;
return _.r(function(V){if(V.nextAddress==1){u=N.mirror.getId(l);if(G.get(u)||l.width===0||l.height===0)return V.return();G.set(u,!0);["webgl","webgl2"].includes(l.__context)&&(J=l.getContext(l.__context),((Z=J)==null?void 0:(D=Z.getContextAttributes())==null?void 0:D.preserveDrawingBuffer)===!1&&J.clear(J.COLOR_BUFFER_BIT));return V.yield(createImageBitmap(l),2)}Y=V.yieldResult;a.postMessage({id:u,bitmap:Y,width:l.width,height:l.height,dataURLOptions:K.dataURLOptions},[Y]);_.Zd(V)})}));
k=requestAnimationFrame(m)};
var k=requestAnimationFrame(m);N.resetObservers=function(){C();cancelAnimationFrame(k)}},Fw9=function(N,b,S,P){lC9(N);
Lwk(N);var H=hRu(b,S,P,!1),K=$m_(N.JSC$12126_processMutation.bind(N),b,S,P),C=w0o(N.JSC$12126_processMutation.bind(N),b,S,P);N.resetObservers=function(){H();K();C()}},Lwk=function(N){requestAnimationFrame(function(){return fCd(N)})},lC9=function(N){var b=function(S){N.rafStamps.latestId=S;
requestAnimationFrame(b)};
requestAnimationFrame(b)},fCd=function(N){N.pendingCanvasMutations.forEach(function(b,S){var P=N.mirror.getId(S);
u59(N,S,P)});
requestAnimationFrame(function(){return fCd(N)})},u59=function(N,b,S){if(!N.JSC$12126_frozen&&!N.locked){var P=N.pendingCanvasMutations.get(b);
if(P&&S!==-1){var H=P.map(function(K){K=Object.assign({},K);return delete K.type,K});
N.mutationCb({id:S,type:P[0].type,commands:H});N.pendingCanvasMutations.delete(b)}}};var P3_=function(){this.nodeMap=new WeakMap;this.active=!1},TVN=function(N,b,S){return(N=N.nodeMap.get(b))&&Array.from(N).some(function(P){return P!==S})};
P3_.prototype.add=function(N,b){var S=this;this.active||(this.active=!0,requestAnimationFrame(function(){S.nodeMap=new WeakMap;S.active=!1}));
this.nodeMap.set(N,(this.nodeMap.get(N)||new Set).add(b))};
P3_.prototype.destroy=function(){};var KKa=function(N){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=N.mutationCb;this.scrollCb=N.scrollCb;this.bypassOptions=N.bypassOptions;this.mirror=N.mirror;this.init()};
KKa.prototype.init=function(){this.reset();rqs(this,Element,document)};
var C3I=function(N,b,S){if(Ie(b)&&!N.shadowDoms.has(b)){N.shadowDoms.add(b);var P=MyY(Object.assign({},N.bypassOptions,{doc:S,mutationCb:N.mutationCb,mirror:N.mirror,shadowDomManager:N}),b);N.restoreHandlers.push(function(){return P.disconnect()});
N.restoreHandlers.push(Lr_(Object.assign({},N.bypassOptions,{scrollCb:N.scrollCb,doc:b,mirror:N.mirror})));setTimeout(function(){b.adoptedStyleSheets&&b.adoptedStyleSheets.length>0&&Z8_(N.bypassOptions.stylesheetManager,b.adoptedStyleSheets,N.mirror.getId(px(b)));N.restoreHandlers.push(jEa({mirror:N.mirror,stylesheetManager:N.bypassOptions.stylesheetManager},b))},0)}},rqs=function(N,b,S){N.restoreHandlers.push(Es(b.prototype,"attachShadow",function(P){return function(H){H=P.call(this,H);
var K=YX(this);K&&Wrf(this)&&C3I(N,K,S);return H}}))};
KKa.prototype.reset=function(){this.restoreHandlers.forEach(function(N){try{N()}catch(b){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var bOU=function(N){this.trackedLinkElements=new WeakSet;this.styleMirror=new npZ;this.mutationCb=N.mutationCb;this.adoptedStyleSheetCb=N.adoptedStyleSheetCb},cqY=function(N,b,S){"_cssText"in S.attributes&&N.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:S.id,attributes:S.attributes}]});OOa(N,b)},OOa=function(N,b){N.trackedLinkElements.has(b)||N.trackedLinkElements.add(b)},Z8_=function(N,b,S){if(b.length!==0){S={id:S,
styleIds:[]};var P=[];b=_.O(b);for(var H=b.next(),K={};!H.done;K={sheet$jscomp$3:void 0},H=b.next())K.sheet$jscomp$3=H.value,H=void 0,N.styleMirror.has(K.sheet$jscomp$3)?H=N.styleMirror.getId(K.sheet$jscomp$3):(H=N.styleMirror.add(K.sheet$jscomp$3),P.push({styleId:H,rules:Array.from(K.sheet$jscomp$3.rules||CSSRule,function(C){return function(G,a){return{rule:tAU(G,C.sheet$jscomp$3.href),index:a}}}(K))})),S.styleIds.push(H);
P.length>0&&(S.styles=P);N.adoptedStyleSheetCb(S)}};
bOU.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var rp,NuU,HOI;try{if(Array.from([1],function(N){return N*2})[0]!==2){var Q94=document.createElement("iframe");
document.body.appendChild(Q94);var xWS;Array.from=((xWS=Q94.contentWindow)==null?void 0:xWS.Array.from)||Array.from;document.body.removeChild(Q94)}}catch(N){console.debug("Unable to override Array.from",N)}var Gk=new qM;var MVf="aLink accessKey allowFullscreen bgColor cellPadding cellSpacing codeBase codeType contentEditable crossOrigin dateTime dirName formAction formEnctype formMethod formNoValidate formTarget frameBorder innerHTML innerText inputMode isMap longDesc marginHeight marginWidth maxLength mediaGroup minLength noHref noResize noShade noValidate noWrap nodeValue outerHTML outerText readOnly tabIndex textContent trueSpeed useMap vAlign vLink valueAsDate valueAsNumber valueType".split(" "),tVE={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Tu_=null,WKe=null;var FKU={},Buu=RegExp("^(?!(?:annotation-xml|color-profile|font-face|font-face(?:-(?:src|uri|format|name))?|missing-glyph)$)[a-z][a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*-[\\-a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*$");var oSf={text:1},fab={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var op9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,im9={CONSTANT:{isUnwrappable:function(N){return N instanceof qN},
unwrap:Dtb},JAVASCRIPT:{isUnwrappable:function(N){return N instanceof _.OE},
unwrap:GJ},HTML:{isUnwrappable:function(N){return N instanceof wc},
unwrap:function(N){return b4(N)}},
RESOURCE_URL:{isUnwrappable:function(N){return N instanceof UL},
unwrap:_.jo},STRING:{isUnwrappable:function(N){return N instanceof Object},
unwrap:function(N){return String(N)}},
STYLE:{isUnwrappable:function(N){return typeof N==="string"},
unwrap:function(N){return N}},
URL:{isUnwrappable:function(N){return EL(N)},
unwrap:_.YI}},JmE={CONSTANT:iO_,JAVASCRIPT:iO_,HTML:function(N){N=N instanceof wc?N:Nt(String(N).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return b4(N)},
RESOURCE_URL:iO_,STRING:String,STYLE:iO_,URL:function(N,b){N=op9.test(N)?N:void 0;return N===void 0?b:N}};var yq_=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Jqs=/[\t\n\f\r ]+/,ZO_=/[\t\n\f\r ,]+/g,zdp=function(N,b,S){return S},Wi={},UWN=function(){var N=function(){var P={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",P):P}(),b=N.createHTML(""),S=N.createScript("");
N=N.createScriptURL("");return{INNOCUOUS_STRING:b,INNOCUOUS_SCRIPT:S,INNOCUOUS_URL:N}}(),Rv=UWN.INNOCUOUS_STRING,YyL=UWN.INNOCUOUS_SCRIPT,pFb=UWN.INNOCUOUS_URL;var ZmN=function(N){var b=IaO(N);return function(S,P,H,K){return K?b(K,P,H,S):Rv}}({reportHandler:function(N,b){if(N)try{throw Error(b);
}catch(S){_.ge(S)}},
safeTypesBridge:function(N,b,S){var P=im9[b];return P.isUnwrappable(N)&&(P=P.unwrap(N,S),P!==S)?P:(0,JmE[b])(String(N),S)},
allowedIdentifierPrefixes:[""]});if(zQ!==void 0)throw Error("bf");zQ=ZmN;if(zQ!==ZmN)throw Error("cf");n6("Injectable",[]);var d4f=n6("Inject",[["token",void 0]]),ktp=n6("Optional",[]);n6("Injectable",[]);var TKe=n6("Self",[]),tes=n6("SkipSelf",[]);n6("Host",[]);var j9b={},zqd=function(){};
zqd.prototype.resolve=function(){throw Error("ef");};
zqd.prototype.addProvider=function(){throw Error("ef");};var WvI=Function;var Am9=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Xez=function(){this._reflect=window.Reflect};
_.v=Xez.prototype;_.v.factory=function(N){return function(){return new (Function.prototype.bind.apply(N,[null].concat(_.IX(_.$I.apply(0,arguments)))))}};
_.v._zipTypesAndAnnotations=function(N,b){var S=typeof N==="undefined"?Array(b.length):Array(N.length);for(var P=0;P<S.length;P++)S[P]=typeof N==="undefined"?[]:N[P]!=Object?[N[P]]:[],b&&VVf(b[P])&&(S[P]=S[P].concat(b[P]));return S};
_.v._ownParameters=function(N,b){if(Am9.exec(N.toString()))return null;if(N.parameters&&N.parameters!==b.parameters)return N.parameters;var S=N.ctorParameters;return S&&S!==b.ctorParameters?(b=typeof S==="function"?S():S,N=b.map(function(P){return P&&P.type}),b=b.map(function(P){return P&&ed9(P.decorators)}),this._zipTypesAndAnnotations(N,b)):VVf(this._reflect)&&VVf(this._reflect.getOwnMetadata)&&(b=this._reflect.getOwnMetadata("parameters",N),(S=this._reflect.getOwnMetadata("design:paramtypes",N))||
b)?this._zipTypesAndAnnotations(S,b):Array(N.length).fill(void 0)};
_.v.parameters=function(N){if(!N.prototype)return[];var b=Object.getPrototypeOf(N.prototype).constructor;(N=this._ownParameters(N,b))||b===Object||(N=this.parameters(b));return N||[]};
_.v._ownAnnotations=function(N,b){if(N.annotations&&N.annotations!==b.annotations)return N=N.annotations,typeof N==="function"&&N.annotations&&(N=N.annotations),N;if(N.decorators&&N.decorators!==b.decorators)return ed9(N.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",N)};
_.v.annotations=function(N){var b=Object.getPrototypeOf(N.prototype).constructor;N=this._ownAnnotations(N,b)||[];return(b!==Object?this.annotations(b):[]).concat(N)};
_.v._ownPropMetadata=function(N,b){if(N.propMetadata&&N.propMetadata!==b.propMetadata)return N=N.propMetadata,typeof N==="function"&&N.propMetadata&&(N=N.propMetadata),N;if(N.propDecorators&&N.propDecorators!==b.propDecorators){var S=N.propDecorators,P={};Object.keys(S).forEach(function(H){P[H]=ed9(S[H])});
return P}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",N)};
_.v.propMetadata=function(N){var b=Object.getPrototypeOf(N.prototype).constructor,S={};if(b!==Object){var P=this.propMetadata(b);Object.keys(P).forEach(function(K){S[K]=P[K]})}var H=this._ownPropMetadata(N,b);
H&&Object.keys(H).forEach(function(K){var C=[];S.hasOwnProperty(K)&&C.push.apply(C,_.IX(S[K]));C.push.apply(C,_.IX(H[K]));S[K]=C});
return S};
_.v.getter=function(N){return function(b){return b[N]}};
_.v.setter=function(N){return function(b,S){return b[N]=S}};
_.v.method=function(N){return function(b,S){if(!b[N])throw Error("ff`"+N);return b[N].apply(b,S)}};var EpO=function(){};var pe9=function(N){this.reflectionCapabilities=N};
_.F(pe9,EpO);_.v=pe9.prototype;_.v.factory=function(N){return this.reflectionCapabilities.factory(N)};
_.v.parameters=function(N){return this.reflectionCapabilities.parameters(N)};
_.v.annotations=function(N){return this.reflectionCapabilities.annotations(N)};
_.v.propMetadata=function(N){return this.reflectionCapabilities.propMetadata(N)};
_.v.getter=function(N){return this.reflectionCapabilities.getter(N)};
_.v.setter=function(N){return this.reflectionCapabilities.setter(N)};
_.v.method=function(N){return this.reflectionCapabilities.method(N)};var H2I=new pe9(new Xez);var PS=function(N,b){this.token=N;this.id=b;if(N===void 0||N===null)throw Error("lf");};
_.d0.Object.defineProperties(PS.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return dp(this.token)}}});
_.d0.Object.defineProperties(PS,{JSC$12182_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return ky.JSC$12186_numberOfKeys}}});
var YGZ=function(){this._allKeys=new Map};
YGZ.prototype.get=function(N){if(N instanceof PS)return N;if(this._allKeys.has(N))return this._allKeys.get(N);var b=new PS(N,PS.JSC$12182_numberOfKeys);this._allKeys.set(N,b);return b};
_.d0.Object.defineProperties(YGZ.prototype,{JSC$12186_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var ky=new YGZ;var Mep=function(N,b,S){this.key=N;this.optional=b;this.visibility=S},KvY=function(N){return new Mep(N,!1,null)},O2a=[],rFa=function(N,b,S){this.key=N;
this.resolvedFactories=b;this.multiProvider=S},CmL=function(N,b,S,P){this.factory=N;
this.dependencies=b;this.providerClass=S;this.providerValue=P};var HS={},sc=function(N,b){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=b===void 0?null:b;N=_.O(N);for(b=N.next();!b.done;b=N.next())this.addProvider(b.value)};
_.v=sc.prototype;_.v.addProvider=function(N){this.keyIdToIndex.set(N.key.id,this.keyIds.length);this.providers.push(N);this.keyIds.push(N.key.id);this.objs.push(HS)};
_.v.resolve=function(N,b){b=b===void 0?j9b:b;return this._getByKey(ky.get(mi(N)),null,b)};
_.v._new=function(N){if(this.constructedKeyIds[N.key.id])throw b2b(this,N.key);this.constructedKeyIds[N.key.id]=!0;return this._instantiateProvider(N)};
_.v._instantiateProvider=function(N){if(N.multiProvider){for(var b=Array(N.resolvedFactories.length),S=0;S<N.resolvedFactories.length;++S)b[S]=this._instantiate(N,N.resolvedFactories[S]);return b}return this._instantiate(N,N.resolvedFactories[0])};
_.v._instantiate=function(N,b){var S=this,P=b.factory;try{var H=b.dependencies.map(function(C){return S._getByReflectiveDependency(C)})}catch(C){throw C.addKey&&C.addKey(this,N.key),C;
}try{var K=P.apply(null,_.IX(H))}catch(C){throw SHL(this,C,N.key);}return K};
_.v._getByReflectiveDependency=function(N){return this._getByKey(N.key,N.visibility,N.optional?null:j9b)};
_.v._getByKey=function(N,b,S){return N===ymS?this:b instanceof TKe?this._getByKeySelf(N,S):this._getByKeyDefault(N,S,b)};
_.v._getObjByKeyId=function(N){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===N)return this.objs[b]===HS&&(this.objs[b]=this._new(this.providers[b])),this.objs[b];return HS};
_.v._throwOrNull=function(N,b){if(b!==j9b)return b;throw NKY(this,N);};
_.v._getByKeySelf=function(N,b){var S=this._getObjByKeyId(N.id);return S!==HS?S:this._throwOrNull(N,b)};
_.v._getByKeyDefault=function(N,b,S){for(var P=S=S instanceof tes?this.parent:this;S instanceof sc;){var H=S._getObjByKeyId(N.id);if(H!==HS)return H;S=S.parent}H=void 0;if(S!==null)try{var K=S.resolve(N.token,b);if(K!==HS)return K}catch(C){H=C}if(!(P instanceof sc&&BKU(N.token))){if(H)throw H;return this._throwOrNull(N,b)}for(K=P;K.parent instanceof sc;)K=K.parent;K.addProvider(cFs({provide:N.token,useClass:N.token}));return K.resolve(N.token,b)};
_.v.toString=function(){return this.displayName};
_.d0.Object.defineProperties(sc.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+FvY(this,function(N){return' "'+N.key.displayName+'" '}).join(", ")+"])"}}});
var ymS=ky.get(mi(zqd));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});
return e},"es6","es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=u();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?n.has(h)?h=n.get(h):(k=""+ ++A,n.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},t=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!v.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(m,n){n.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.exports=b},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(m,n){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function v(a,c){var g;if(t(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=t(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return u(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=v(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=t;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:u(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=u(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=u(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=u(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=u(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});p.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(h(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var ICN=globalThis.XRegExp;var DW4=-1,VME=function(N){addEventListener("pageshow",function(b){b.persisted&&(DW4=b.timeStamp,N(b))},!0)};var eql=function(N,b,S){var P=gpd,H,K;return function(C){if(b.value>=0&&(C||S)){var G;if((K=b.value-((G=H)!=null?G:0))||H===void 0)H=b.value,b.delta=K,C=b.value,b.rating=C>P[1]?"poor":C>P[0]?"needs-improvement":"good",N(b)}}};var $Wl=function(N){requestAnimationFrame(function(){return requestAnimationFrame(function(){return N()})})};var hqN=function(){var N=performance.getEntriesByType("navigation")[0];if(N&&N.responseStart>0&&N.responseStart<performance.now())return N};var qG9=function(){var N,b;return(b=(N=hqN())==null?void 0:N.activationStart)!=null?b:0};var Kn=-1,we9=new Set,NPZ=function(N){if(document.visibilityState==="hidden"){if(N.type==="visibilitychange")for(var b=_.O(we9),S=b.next();!S.done;S=b.next())S=S.value,S();isFinite(Kn)||(Kn=N.type==="visibilitychange"?N.timeStamp:0,removeEventListener("prerenderingchange",NPZ,!0))}},bLc=function(){if(Kn<0){var N=qG9(),b,S;
Kn=(S=document.prerendering?void 0:(b=globalThis.performance.getEntriesByType("visibility-state").filter(function(P){return P.name==="hidden"&&P.startTime>N})[0])==null?void 0:b.startTime)!=null?S:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",NPZ,!0);addEventListener("prerenderingchange",NPZ,!0);VME(function(){setTimeout(function(){Kn=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return Kn},
onHidden:function(P){we9.add(P)}}};var S7z=function(){var N=N===void 0?-1:N;var b=hqN(),S="navigate";DW4>=0?S="back-forward-cache":b&&(document.prerendering||qG9()>0?S="prerender":document.wasDiscarded?S="restore":b.type&&(S=b.type.replace(/_/g,"-")));return{name:"LCP",value:N,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:S}};var LvE=new WeakMap;var P29=function(N){var b=b===void 0?{}:b;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var S=new PerformanceObserver(function(P){Promise.resolve().then(function(){N(P.getEntries())})});
S.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},b));return S}}catch(P){}};var HLd=function(N){var b=!1;return function(){b||(N(),b=!0)}};var sSd=function(N){document.prerendering?addEventListener("prerenderingchange",function(){return N()},!0):N()};var KG9=function(N){var b=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?N():(N=HLd(N),addEventListener("visibilitychange",N,{once:!0,capture:!0}),b(function(){N();removeEventListener("visibilitychange",N,{capture:!0})}))};var lTu=function(){};
lTu.prototype._processEntry=function(N){var b;(b=this._onBeforeProcessingEntry)==null||b.call(this,N)};var gpd=[2500,4E3],gxa=function(N){var b=b===void 0?{}:b;sSd(function(){var S=bLc(),P=S7z(),H=fTa(b),K=function(m){b.reportAllChanges||(m=m.slice(-1));m=_.O(m);for(var k=m.next();!k.done;k=m.next())k=k.value,H._processEntry(k),k.startTime<S.firstHiddenTime&&(P.value=Math.max(k.startTime-qG9(),0),P.entries=[k],G())},C=P29(K);
if(C){var G=eql(N,P,b.reportAllChanges);for(var a=HLd(function(){K(C.takeRecords());C.disconnect();G(!0)}),R=function(m){m.isTrusted&&(KG9(a),removeEventListener(m.type,R,{capture:!0}))},n=_.O(["keydown",
"click","visibilitychange"]),d=n.next();!d.done;d=n.next())addEventListener(d.value,R,{capture:!0});VME(function(m){P=S7z();G=eql(N,P,b.reportAllChanges);$Wl(function(){P.value=performance.now()-m.timeStamp;G(!0)})})}})};var vvV;var OL9;_.I=function(){return OL9!==void 0?OL9:OL9=document.createElement("template")};
document.head.appendChild(_.I().content);var C2l;_.uI({_template:function(){if(C2l!==void 0)return C2l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;vvV===void 0&&(vvV=document.createElement("template"));var P=vvV;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return C2l=N},
is:"tp-yt-app-toolbar"});var G3b;var r6d;_.vS=function(){};
_.vS=_.uI({_template:function(){if(r6d!==void 0)return r6d;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;G3b===void 0&&(G3b=document.createElement("template"));var P=G3b;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return r6d=N},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.vS.instance||(_.vS.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(N){this._text===N&&(N+="\u00a0");this._text="";this.async(function(){this._text=N},this.timeout)},
_onIronAnnounce:function(N){N.detail&&N.detail.text&&this.announce(N.detail.text)}});
_.vS.instance=null;_.vS.requestAvailability=function(){_.vS.instance||(_.vS.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.vS.instance):document.addEventListener("load",function(){document.body.appendChild(_.vS.instance)})};var c6k;var aAd;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
_.uI({_template:function(){if(aAd!==void 0)return aAd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;c6k===void 0&&(c6k=document.createElement("template"));var P=c6k;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return aAd=N},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.gR,_.Ep],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(N){this.$.textarea.selectionStart=N},set selectionEnd(N){this.$.textarea.selectionEnd=N},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var N=this.$.textarea.validity.valid;N&&(this.required&&this.value===""?N=!1:this.hasValidator()&&(N=_.gR.validate.call(this,this.value)));this.invalid=!N;this.fire("iron-input-validate");return N},
_bindValueChanged:function(N){this.value=N},
_valueChanged:function(N){var b=this.textarea;b&&(b.value!==N&&(b.value=N||N===0?N:""),this.bindValue=N,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(N){var b=_.Tk(N).path;this.value=b?b[0].value:N.target.value},
_constrain:function(N){var b;N=N||[""];for(b=this.maxRows>0&&N.length>this.maxRows?N.slice(0,this.maxRows):N.slice(0);this.rows>0&&b.length<this.rows;)b.push("");return b.join("\n")+"\u00a0"},
_valueForMirror:function(){var N=this.textarea;if(N)return this.tokens=N&&N.value?N.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Rp9;var WGV;_.uI({_template:function(){if(WGV!==void 0)return WGV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;Rp9===void 0&&(Rp9=document.createElement("template"));var P=Rp9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return WGV=N},
is:"tp-yt-iron-collapse",behaviors:[_.$M],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(N,b){N=N==="auto"?"":N;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==N;this._desiredSize=N;this._updateTransition(!1);b&&(b=this._calcSize(),N===""&&(this.style[this._dimensionMax]="",N=this._calcSize()),this.style[this._dimensionMax]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=N!==b);this.style[this._dimensionMax]=N;b||this._transitionEnd()},
enableTransition:function(N){_.p2._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!N},
_updateTransition:function(N){this.style.transitionDuration=N&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(N){_.Tk(N).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var nvZ;var dHz;var mHl=void 0,k39={properties:{sizingTarget:{type:Object,value:function(){var N;return(N=this.hostElement)!=null?N:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1},addSpacing:{type:Boolean,value:!1}},get _defaultPositionTarget(){var N,
b=_.Tk((N=this.hostElement)!=null?N:this).parentNode;b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=b.host);return b},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var N;this._memoizedIsRTL=window.getComputedStyle((N=this.hostElement)!=
null?N:this).direction=="rtl"}return this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var N;window.getComputedStyle((N=this.hostElement)!=null?N:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var N,b=window.getComputedStyle((N=this.hostElement)!=null?N:this);N=window.getComputedStyle(this.sizingTarget);var S,P,H;this._fitInfo={inlineStyle:{top:((S=this.hostElement)!=null?S:this).style.top||"",left:((P=this.hostElement)!=null?P:this).style.left||"",position:((H=this.hostElement)!=null?H:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:b.top!=="auto"?"top":b.bottom!=="auto"?"bottom":null,horizontally:b.left!=="auto"?"left":b.right!=="auto"?"right":null},sizedBy:{height:N.maxHeight!=="none",width:N.maxWidth!=="none",minWidth:parseInt(N.minWidth,10)||0,minHeight:parseInt(N.minHeight,10)||0},margin:{top:parseInt(b.marginTop,10)||0,right:parseInt(b.marginRight,10)||0,bottom:parseInt(b.marginBottom,10)||0,left:parseInt(b.marginLeft,10)||0}}}},
resetFit:function(){var N=this._fitInfo||{},b;for(b in N.sizerInlineStyle)this.sizingTarget.style[b]=N.sizerInlineStyle[b];for(b in N.inlineStyle){var S=void 0;((S=this.hostElement)!=null?S:this).style[b]=N.inlineStyle[b]}this._fitInfo=null},
refit:function(){var N=this.sizingTarget.scrollLeft,b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=N;this.sizingTarget.scrollTop=b},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var N;((N=this.hostElement)!=null?N:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var b;((b=this.hostElement)!=null?b:this).style.left="0px";var S;((S=this.hostElement)!=null?S:this).style.top="0px";var P,H=((P=this.hostElement)!=null?P:this).getBoundingClientRect();S=this.__getNormalizedRect(this.positionTarget);P=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(P={left:P.left+24,right:P.right-24,top:P.top+24,bottom:P.bottom-24});if(this.expandSizingTargetForScrollbars){var K=this.sizingTarget.offsetWidth;var C=this.sizingTarget.offsetHeight;var G=this.sizingTarget.clientWidth;var a=this.sizingTarget.clientHeight}N=this._fitInfo.margin;var R={width:H.width+N.left+N.right,height:H.height+N.top+N.bottom};b=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,R,H,S,P);this.addSpacing&&(S.left-R.width===b.left?b.left-=8:S.top-R.height===b.top?b.top-=
8:S.right===b.left?b.left+=8:S.bottom===b.top&&(b.top+=8));R=b.left+N.left;var n=b.top+N.top;S=Math.min(P.right-N.right,R+H.width);var d=Math.min(P.bottom-N.bottom,n+H.height);R=Math.max(P.left+N.left,Math.min(R,S-this._fitInfo.sizedBy.minWidth));n=Math.max(P.top+N.top,Math.min(n,d-this._fitInfo.sizedBy.minHeight));S=Math.max(S-R,this._fitInfo.sizedBy.minWidth);d=Math.max(d-n,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=S+"px";this.sizingTarget.style.maxHeight=d+"px";R-=H.left;
H=n-H.top;var m;((m=this.hostElement)!=null?m:this).style.left=R+"px";var k;((k=this.hostElement)!=null?k:this).style.top=H+"px";if(this.expandSizingTargetForScrollbars){m=this.sizingTarget.offsetHeight;C=m-this.sizingTarget.clientHeight-(C-a);if(C>0){this.sizingTarget.style.maxHeight=Math.min(P.height-N.top-N.bottom,d+C)+"px";C=this.sizingTarget.offsetHeight;a=C-m;var M;b.verticalAlign==="top"?M=H:b.verticalAlign==="middle"?M=H-a/2:b.verticalAlign==="bottom"&&(M=H-a);M=Math.max(P.top+N.top,Math.min(M,
P.bottom-N.bottom-C));var l;((l=this.hostElement)!=null?l:this).style.top=M+"px"}M=this.sizingTarget.offsetWidth;K=M-this.sizingTarget.clientWidth-(K-G);if(K>0){mHl!==void 0?G=mHl:(G=document.createElement("div"),Object.assign(G.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),l=document.createElement("div"),l.style.width="200px",l.style.height="200px",G.appendChild(l),document.body.appendChild(G),mHl=Math.abs(G.offsetWidth-100)>1?G.offsetWidth-G.clientWidth:
0,document.body.removeChild(G),G=mHl);this.sizingTarget.style.maxWidth=Math.min(P.width-N.left-N.right,S+K-G)+"px";K=this.sizingTarget.offsetWidth+G;G=K-M;var u;b.horizontalAlign==="left"?u=R:b.horizontalAlign==="center"?u=R-G/2:b.horizontalAlign==="right"&&(u=R-G);u=Math.max(P.left+N.left,Math.min(u,P.right-N.right-K));var J;((J=this.hostElement)!=null?J:this).style.left=u+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var N=this._fitInfo;if(!N.positionedBy.vertically){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";var S;((S=this.hostElement)!=null?S:this).style.top="0px"}if(!N.positionedBy.horizontally){var P;((P=this.hostElement)!=null?P:this).style.position="fixed";var H;((H=this.hostElement)!=null?H:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var K;b=((K=this.hostElement)!=null?K:this).getBoundingClientRect();
N.sizedBy.height||this.__sizeDimension(b,N.positionedBy.vertically,"top","bottom","Height");N.sizedBy.width||this.__sizeDimension(b,N.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(N,b,S,P,H){this.__sizeDimension(N,b,S,P,H)},
__sizeDimension:function(N,b,S,P,H){var K=this._fitInfo,C=this.__getNormalizedRect(this.fitInto);C=H==="Width"?C.width:C.height;N=(b=b===P)?C-N[P]:N[S];S=K.margin[b?S:P];P="offset"+H;var G;K=((G=this.hostElement)!=null?G:this)[P]-this.sizingTarget[P];this.sizingTarget.style["max"+H]=C-S-N-K+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var N=this._fitInfo.positionedBy;if(!N.vertically||!N.horizontally){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";if(!N.vertically){var S;((S=this.hostElement)!=null?S:this).style.top="0px"}if(!N.horizontally){var P;((P=this.hostElement)!=null?P:this).style.left="0px"}var H;b=((H=this.hostElement)!=null?H:this).getBoundingClientRect();H=this.__getNormalizedRect(this.fitInto);if(!N.vertically){S=H.top-b.top+(H.height-
b.height)/2;var K;((K=this.hostElement)!=null?K:this).style.top=S+"px"}if(!N.horizontally){N=H.left-b.left+(H.width-b.width)/2;var C;((C=this.hostElement)!=null?C:this).style.left=N+"px"}}}},
__getNormalizedRect:function(N){return N===document.documentElement||N===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:N.getBoundingClientRect()},
__getOffscreenArea:function(N,b,S){return Math.abs(Math.min(0,N.top)+Math.min(0,S.bottom-(N.top+b.height)))*b.width+Math.abs(Math.min(0,N.left)+Math.min(0,S.right-(N.left+b.width)))*b.height},
__getPosition:function(N,b,S,P,H,K){var C=[{verticalAlign:"top",horizontalAlign:"left",top:H.top+this.verticalOffset,left:H.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:H.top+this.verticalOffset,left:H.right-S.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:H.bottom-S.height-this.verticalOffset,left:H.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:H.bottom-S.height-this.verticalOffset,left:H.right-S.width-
this.horizontalOffset}];if(this.noOverlap){for(var G=0,a=C.length;G<a;G++){var R={},n;for(n in C[G])R[n]=C[G][n];C.push(R)}C[0].top=C[1].top+=H.height;C[2].top=C[3].top-=H.height;C[4].left=C[6].left+=H.width;C[5].left=C[7].left-=H.width}b=b==="auto"?null:b;N=N==="auto"?null:N;N&&N!=="center"||(C.push({verticalAlign:"top",horizontalAlign:"center",top:H.top+this.verticalOffset+(this.noOverlap?H.height:0),left:H.left-P.width/2+H.width/2+this.horizontalOffset}),C.push({verticalAlign:"bottom",horizontalAlign:"center",
top:H.bottom-S.height-this.verticalOffset-(this.noOverlap?H.height:0),left:H.left-P.width/2+H.width/2+this.horizontalOffset}));b&&b!=="middle"||(C.push({verticalAlign:"middle",horizontalAlign:"left",top:H.top-P.height/2+H.height/2+this.verticalOffset,left:H.left+this.horizontalOffset+(this.noOverlap?H.width:0)}),C.push({verticalAlign:"middle",horizontalAlign:"right",top:H.top-P.height/2+H.height/2+this.verticalOffset,left:H.right-S.width-this.horizontalOffset-(this.noOverlap?H.width:0)}));b==="middle"&&
N==="center"&&C.push({verticalAlign:"middle",horizontalAlign:"center",top:H.top-P.height/2+H.height/2+this.verticalOffset,left:H.left-P.width/2+H.width/2+this.horizontalOffset});for(G=0;G<C.length;G++){P=C[G];H=P.verticalAlign===b;a=P.horizontalAlign===N;if(!this.dynamicAlign&&!this.noOverlap&&H&&a){var d=P;break}R=(!b||H)&&(!N||a);if(this.dynamicAlign||R){P.offscreenArea=this.__getOffscreenArea(P,S,K);if(P.offscreenArea===0&&R){d=P;break}P.alignsOk=H+a;d=d||P;H=P.offscreenArea-d.offscreenArea;if(H<
0||H===0&&P.alignsOk>d.alignsOk)d=P}}return d}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Oc,TP9,tOk;Oc=Element.prototype;TP9=Oc.matches||Oc.matchesSelector||Oc.mozMatchesSelector||Oc.msMatchesSelector||Oc.oMatchesSelector||Oc.webkitMatchesSelector;tOk=function(){};
_.FGE=function(N){var b=MOS,S=[];return b._collectTabbableNodes(N,S)?b._sortByTabIndex(S):S};
_.v=tOk.prototype;_.v.isFocusable=function(N){return TP9.call(N,"input, select, textarea, button, object")?TP9.call(N,":not([disabled])"):TP9.call(N,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.v._normalizedTabIndex=function(N){return this.isFocusable(N)?(N=N.getAttribute("tabindex")||0,Number(N)):-1};
_.v._collectTabbableNodes=function(N,b){if(N.nodeType!==Node.ELEMENT_NODE||!this._isVisible(N))return!1;var S=this._normalizedTabIndex(N),P=S>0;S>=0&&b.push(N);if(N.localName==="content"||N.localName==="slot")S=_.Tk(N).getDistributedNodes();else{var H;S=((H=_.Tk(N).shadowRoot)!=null?H:_.Tk(N.root||N)).children}for(N=0;N<S.length;N++)P=this._collectTabbableNodes(S[N],b)||P;return P};
_.v._isVisible=function(N){var b=N.style;return b.visibility!=="hidden"&&b.display!=="none"?(b=window.getComputedStyle(N),b.visibility!=="hidden"&&b.display!=="none"):!1};
_.v._sortByTabIndex=function(N){var b=N.length;if(b<2)return N;var S=Math.ceil(b/2);b=this._sortByTabIndex(N.slice(0,S));N=this._sortByTabIndex(N.slice(S));return this._mergeSortByTabIndex(b,N)};
_.v._mergeSortByTabIndex=function(N,b){for(var S=[];N.length>0&&b.length>0;)this._hasLowerTabOrder(N[0],b[0])?S.push(b.shift()):S.push(N.shift());return S.concat(N,b)};
_.v._hasLowerTabOrder=function(N,b){N=Math.max(N.tabIndex,0);b=Math.max(b.tabIndex,0);return N===0||b===0?b>N:N>b};
var MOS=new tOk;var BPc;var lA9;_.uI({_template:function(){if(lA9!==void 0)return lA9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;BPc===void 0&&(BPc=document.createElement("template"));var P=BPc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return lA9=N},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.Tk(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Tk(this.parentNode).removeChild(this)},
_onTransitionend:function(N){N&&N.target===this&&this.complete()},
_openedChanged:function(N){N?this.prepare():(N=window.getComputedStyle(this),N.transitionDuration!=="0s"&&N.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var Cn=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;el(document.documentElement,"tap",function(){});
document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};
Cn.prototype._bringOverlayAtIndexToFront=function(N){var b=this._overlays[N];if(b){var S=this._overlays.length-1,P=this._overlays[S];P&&this._shouldBeBehindOverlay(b,P)&&S--;if(!(N>=S)){P=Math.max(this._getZ(_.LGl(this)),this._minimumZ);for(this._getZ(b)<=P&&this._applyOverlayZ(b,P);N<S;)this._overlays[N]=this._overlays[N+1],N++;this._overlays[S]=b}}};
Cn.prototype.addOverlay=function(N){var b=this._overlays.indexOf(N);if(b>=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var S=this._overlays[b-1],P=Math.max(this._getZ(S),this._minimumZ),H=this._getZ(N);S&&this._shouldBeBehindOverlay(N,S)&&(this._applyOverlayZ(S,P),b--,P=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));H<=P&&this._applyOverlayZ(N,P);this._overlays.splice(b,0,N)}this.trackBackdrop()};
Cn.prototype.removeOverlay=function(N){N=this._overlays.indexOf(N);N!==-1&&(this._overlays.splice(N,1),this.trackBackdrop())};
_.LGl=function(N){return N._overlays[N._overlays.length-1]};
_.v=Cn.prototype;_.v.trackBackdrop=function(){var N=this._overlayWithBackdrop();if(N||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(N)-1,this.backdropElement.opened=!!N,this.backdropElement.prepare()};
_.v._overlayWithBackdrop=function(){for(var N=this._overlays.length-1;N>=0;N--)if(this._overlays[N].withBackdrop)return this._overlays[N]};
_.v._getZ=function(N){var b=this._minimumZ;if(N){var S,P,H=Number(((S=N.hostElement)!=null?S:N).style.zIndex||window.getComputedStyle((P=N.hostElement)!=null?P:N).zIndex);H===H&&(b=H)}return b};
_.v._setZ=function(N,b){var S;((S=N.hostElement)!=null?S:N).style.zIndex=b};
_.v._applyOverlayZ=function(N,b){this._setZ(N,b+2)};
_.v._overlayInPath=function(N){N=N||[];for(var b=0;b<N.length;b++){var S=void 0;if(((S=N[b].polymerController)!=null?S:N[b])._manager===this)return N[b]}};
_.v._onCaptureClick=function(N){var b=this._overlays.length-1;if(b!==-1)for(var S=_.Tk(N).path,P,H;(P=this._overlays[b])&&this._overlayInPath(S)!==((H=P.hostElement)!=null?H:P);)if(P._onCaptureClick(N),P.allowClickThrough)b--;else break};
_.v._onCaptureFocus=function(N){var b=_.LGl(this);b&&b._onCaptureFocus(N)};
_.v._onCaptureKeyDown=function(N){var b=_.LGl(this);b&&(_.XX.keyboardEventMatchesKeys(N,"esc")?b._onCaptureEsc(N):_.XX.keyboardEventMatchesKeys(N,"tab")&&b._onCaptureTab(N))};
_.v._shouldBeBehindOverlay=function(N,b){return!N.alwaysOnTop&&b.alwaysOnTop&&!b.contains(N)};
_.d0.Object.defineProperties(Cn.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var N=document.activeElement;N&&N instanceof Element!==!1||(N=document.body);for(;N.root&&_.Tk(N.root).activeElement;)N=_.Tk(N.root).activeElement;return N}}});
_.Gy=new Cn;var ueU=0,QoE=0,x4u=null,osb=[],tw=["wheel","mousewheel","DOMMouseScroll"],i2f;_.T("web_no_lock_on_touchstart_killswitch")&&(tw.push("touchstart"),tw.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.ra={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},
_manager:{type:Object,value:_.Gy},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var N;return this._focusedChild||_.Tk((N=this.hostElement)!=null?N:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var N;return _.FGE((N=this.hostElement)!=null?N:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var N;this._observer=_.Tk((N=this.hostElement)!=null?N:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var N;_.Tk((N=this.hostElement)!=null?N:this).unobserveNodes(this._observer)}this._observer=null;for(var b in this.__rafs)this.__rafs[b]!==null&&cancelAnimationFrame(this.__rafs[b]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(N){this.fire("iron-overlay-canceled",N,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var N;((N=this.hostElement)!=null?N:this).style.outline="none";var b;((b=this.hostElement)!=null?b:this).style.display="none"}},
_openedChanged:function(N){if(N){var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-hidden")}else{var S;((S=this.hostElement)!=null?S:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var N;if(this.withBackdrop&&!((N=this.hostElement)!=null?N:this).hasAttribute("tabindex")){var b;((b=this.hostElement)!=null?b:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var S;((S=this.hostElement)!=null?S:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var N;((N=this.hostElement)!=null?N:this).style.display="none";var b;((b=this.hostElement)!=null?b:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var N,b;((N=this.hostElement)!=null?N:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="none";var S,P;((S=this.hostElement)!=null?S:this).style.transform=((P=this.hostElement)!=null?P:this).style.webkitTransform="none";var H;((H=this.hostElement)!=null?H:this).style.display=""},
_finishPositioning:function(){var N;((N=this.hostElement)!=null?N:this).style.display="none";this.scrollTop=this.scrollTop;var b,S;((b=this.hostElement)!=null?b:this).style.transition=((S=this.hostElement)!=null?S:this).style.webkitTransition="";var P,H;((P=this.hostElement)!=null?P:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="";var K;((K=this.hostElement)!=null?K:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var N=this._manager.deepActiveElement,b;if(!(b=N===document.body))a:{for(;N;N=N.assignedSlot||N.parentNode||N.host)if(N===this){b=!0;break a}b=!1}b&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(N){this.noCancelOnOutsideClick||this.cancel(N)},
_onCaptureFocus:function(N){if(this.withBackdrop){var b=_.Tk(N).path;b.indexOf(this)===-1?(N.stopPropagation(),this._applyFocus()):this._focusedChild=b[0]}},
_onCaptureEsc:function(N){this.noCancelOnEscKey||this.cancel(N)},
_onCaptureTab:function(N){if(this.withBackdrop){this.__ensureFirstLastFocusables();var b=N.shiftKey,S=b?this.__firstFocusableNode:this.__lastFocusableNode;b=b?this.__lastFocusableNode:this.__firstFocusableNode;if(S===b)S=!0;else{var P=this._manager.deepActiveElement;S=P===S||P===this}S&&(N.preventDefault(),this._focusedChild=b,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var N=this._focusableNodes;this.__firstFocusableNode=N[0];this.__lastFocusableNode=N[N.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(N,b){var S=this.__rafs;S[N]!==null&&cancelAnimationFrame(S[N]);S[N]=requestAnimationFrame(function(){S[N]=null;b.call(this)}.bind(this))},
__updateScrollObservers:function(N,b,S){N&&b&&this.__isValidScrollAction(S)?(S==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),i2f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(N=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),N!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(N,1),i2f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-
1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager()),
this.__removeScrollListeners())},
__addScrollListeners:function(){if(!this.__rootNodes){this.__rootNodes=[];if(Sg)for(var N=this;N;)N.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&N.host&&this.__rootNodes.push(N),N=N.host||N.assignedSlot||N.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(b){b.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(N){N.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(N){return N==="lock"||N==="refit"||N==="cancel"},
__onCaptureScroll:function(N){if(!(this.__isAnimating||_.Tk(N).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(N)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.cS=[k39,_.$M,_.ra];_.uI({_template:function(){if(dHz!==void 0)return dHz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;nvZ===void 0&&(nvZ=document.createElement("template"));var P=nvZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return dHz=N},
is:"tp-yt-iron-dropdown",behaviors:[_.Ep,_.XX,_.cS,EEk],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var N=_.Tk(this.$.content).getDistributedNodes(),b=0,S=N.length;b<S;b++)if(N[b].nodeType===Node.ELEMENT_NODE)return N[b]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.ra._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.ra._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.ra._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var N=this.containedElement,b=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),S=0;S<b.length;S++)b[S].node=N;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(N){this._readied&&(N?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var N=this.focusTarget||this.containedElement;N&&this.opened&&!this.noAutoFocus?N.focus():_.ra._applyFocus.apply(this,arguments)}});var fA9;var uJ9;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var QSE=new _.Dt({type:"iconset"});
_.uI({_template:function(){if(uJ9!==void 0)return uJ9;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;fA9===void 0&&(fA9=document.createElement("template"));
var P=fA9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return uJ9=N},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(N){N=(N||"").split(":");this._iconName=N.pop();this._iconsetName=N.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.Tk(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=QSE.byKey(this._iconsetName)){var N=this._iconset.applyIcon(this,this._iconName,this.theme);N&&N.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.Tk(this.root).appendChild(this._img)}});var xHO;var ov9;_.uI({_template:function(){if(ov9!==void 0)return ov9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;xHO===void 0&&(xHO=document.createElement("template"));var P=xHO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return ov9=N},
is:"tp-yt-iron-input",behaviors:[_.gR],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){_.vS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Tk(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Tk(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var N=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":N=/[0-9.,e-]/}return N},_bindValueChanged:function(N,b){b&&(N===void 0?b.value=null:N!==b.value&&(this.inputElement.value=N),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:N}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(N){var b=N.keyCode==19||N.keyCode==20||N.keyCode==45||N.keyCode==46||N.keyCode==144||N.keyCode==145||N.keyCode>32&&N.keyCode<41||N.keyCode>111&&N.keyCode<124;return!(N.keyCode==8||N.keyCode==9||N.keyCode==13||N.keyCode==27)&&!(N.charCode==0&&b)},
_onKeypress:function(N){if(this.allowedPattern||this.inputElement.type==="number"){var b=this._patternRegExp;if(b&&!(N.metaKey||N.ctrlKey||N.altKey)){this._patternAlreadyChecked=!0;var S=String.fromCharCode(N.charCode);this._isPrintable(N)&&!b.test(S)&&(N.preventDefault(),this._announceInvalidCharacter("Invalid character "+S+" not entered."))}}},
_checkPatternValidity:function(){var N=this._patternRegExp;if(!N)return!0;for(var b=0;b<this.inputElement.value.length;b++)if(!N.test(this.inputElement.value[b]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var N=this.inputElement.checkValidity();N&&(this.required&&this.bindValue===""?N=!1:this.hasValidator()&&(N=_.gR.validate.call(this,this.bindValue)));this.invalid=!N;this.fire("iron-input-validate");return N},
_announceInvalidCharacter:function(N){this.fire("iron-announce",{text:N})},
_computeValue:function(N){return N}});var iLE;var J69;var UHO=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),ZL9=UHO&&UHO[1]>=8;
_.uI({_template:function(){if(J69!==void 0)return J69;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;iLE===void 0&&(iLE=document.createElement("template"));var P=iLE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return J69=N},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[qJO,_.$M,_.XpN,MrS],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,
_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return _.Tk(_.Tk(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var N=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,N-this._physicalCount)},set _virtualStart(N){N=this._clamp(N,0,this._maxVirtualStart);this.grid&&(N-=N%this._itemsPerRow);this._virtualStartVal=N},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(N){N%=this._physicalCount;N<0&&(N=this._physicalCount+N);this.grid&&(N-=N%this._itemsPerRow);this._physicalStartVal=N},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(N){this._physicalCountVal=N},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var N=this._firstVisibleIndexVal;if(N==null){var b=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
N=this._iterateItems(function(S,P){b+=this._getPhysicalSizeIncrement(S);if(b>this._scrollPosition)return this.grid?P-P%this._itemsPerRow:P;if(this.grid&&this._virtualCount-1===P)return P-P%this._itemsPerRow})||0}return N},
get lastVisibleIndex(){var N=this._lastVisibleIndexVal;if(N==null){if(this.grid)N=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var b=this._physicalTop+this._scrollOffset;this._iterateItems(function(S,P){b<this._scrollBottom&&(N=P);b+=this._getPhysicalSizeIncrement(S)})}this._lastVisibleIndexVal=N}return N},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.L7);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(N){this.style.webkitOverflowScrolling=N===this?"touch":"";this.style.overflowY=N===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.L7)},
updateViewportBoundaries:function(){var N=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(N["padding-top"],10);this._isRTL=N.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var N=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),b=N-this._scrollPosition,S=b>=0;this._scrollPosition=N;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(b)>this._physicalSize&&this._physicalSize>0?(b-=this._scrollOffset,S=Math.round(b/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=S,this._physicalStart+=S,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(N=this._getReusables(S),S?(this._physicalTop=N.physicalTop,this._virtualStart+=N.indexes.length,this._physicalStart+=N.indexes.length):(this._virtualStart=this._virtualStart-N.indexes.length,this._physicalStart=this._physicalStart-N.indexes.length),this._update(N.indexes,S?null:N.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),wb))},
_getReusables:function(N){var b=[],S=this._hiddenContentSize*this._ratio,P=this._virtualStart,H=this._virtualEnd,K=this._physicalCount,C=this._physicalTop+this._scrollOffset;var G=this._physicalBottom+this._scrollOffset;var a=this._scrollPosition,R=this._scrollBottom;if(N){var n=this._physicalStart;G=a-C}else n=this._physicalEnd,G-=R;for(;;){var d=this._getPhysicalSizeIncrement(n);G-=d;if(b.length>=K||G<=S)break;if(N){if(H+b.length+1>=this._virtualCount)break;if(C+d>=a-this._scrollOffset)break;b.push(n);
C+=d;n=(n+1)%K}else{if(P-b.length<=0)break;if(C+this._physicalSize-d<=R)break;b.push(n);C-=d;n=n===0?K-1:n-1}}return{indexes:b,physicalTop:C-this._scrollOffset}},
_update:function(N,b){if(!(N&&N.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(N);this._updateMetrics(N);if(b)for(;b.length;)N=b.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(N);this._positionItems();this._updateScrollerSize()}},
_createPool:function(N){this._ensureTemplatized();var b,S=Array(N);for(b=0;b<N;b++){var P=this.stamp(null);S[b]=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}return S},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(N){N=this._clamp(this._physicalCount+N,3,this._virtualCount-this._virtualStart);N=this._convertIndexToCompleteRow(N);if(this.grid){var b=N%this._itemsPerRow;b&&N-b<=this._physicalCount&&(N+=this._itemsPerRow);N-=b}N-=this._physicalCount;b=Math.round(this._physicalCount*.5);if(!(N<0)){if(N>0){b=window.performance.now();[].push.apply(this._physicalItems,this._createPool(N));for(var S=0;S<N;S++)this._physicalSizes.push(0);this._physicalCount+=N;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=N);this._update();this._templateCost=(window.performance.now()-b)/N;b=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||b===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,b)),H3b):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,b),wb))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var N=this._getReusables(!0);this._physicalTop=N.physicalTop;this._virtualStart+=N.indexes.length;this._physicalStart+=N.indexes.length;this._update(N.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var N={__key__:!0};N[this.as]=!0;N[this.indexAs]=!0;N[this.selectedAs]=!0;N.tabIndex=!0;this._instanceProps=N;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(N,b){typeof b!=="undefined"&&(this.notifyResize(),_.oo(),N&&this._updateGridMetrics())},
_itemsChanged:function(N){if(N.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.L7);else if(N.path==="items.splices"){this._adjustVirtualIndex(N.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(N.value.indexSplices.some(function(S){return S.addedCount>0||S.removed.length>0})){var b=this._getActiveElement();
this.contains(b)&&b.blur()}N=N.value.indexSplices.some(function(S){return S.index+S.addedCount>=this._virtualStart&&S.index<=this._virtualEnd},this);
this._isClientFull()&&!N||this._debounce("_render",this._render,_.L7)}else N.path!=="items.length"&&this._forwardItemPath(N.path,N.value)},
_forwardItemPath:function(N,b){N=N.slice(6);var S=N.indexOf(".");S===-1&&(S=N.length);var P,H=this.modelForElement(this._offscreenFocusedItem),K=parseInt(N.substring(0,S),10);if(P=this._isIndexRendered(K)){var C=this._getPhysicalIndex(K);var G=this.modelForElement(this._physicalItems[C])}else H&&(G=H);G&&G[this.indexAs]===K&&(N=N.substring(S+1),N=this.as+(N?"."+N:""),G._setPendingPropertyOrPath(N,b,!1,!0),G._flushProperties&&G._flushProperties(),P&&(this._updateMetrics([C]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(N){N.forEach(function(b){b.removed.forEach(this._removeItem,this);b.index<this._virtualStart&&(b=Math.max(b.addedCount-b.removed.length,b.index-this._virtualStart),this._virtualStart+=b,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=b))},this)},
_removeItem:function(N){this.$.selector.deselect(N);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===N&&this._removeFocusedItem()},
_iterateItems:function(N,b){var S,P;if(arguments.length===2&&b)for(P=0;P<b.length;P++){var H=b[P];var K=this._computeVidx(H);if((S=N.call(this,H,K))!=null)return S}else{H=this._physicalStart;for(K=this._virtualStart;H<this._physicalCount;H++,K++)if((S=N.call(this,H,K))!=null)return S;for(H=0;H<this._physicalStart;H++,K++)if((S=N.call(this,H,K))!=null)return S}},
_computeVidx:function(N){return N>=this._physicalStart?this._virtualStart+(N-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+N},
_assignModels:function(N){this._iterateItems(function(b,S){var P=this._physicalItems[b],H=this.items&&this.items[S];if(H!=null){var K=this.modelForElement(P);K.__key__=null;this._forwardProperty(K,this.as,H);this._forwardProperty(K,this.selectedAs,this.$.selector.isSelected(H));this._forwardProperty(K,this.indexAs,S);this._forwardProperty(K,"tabIndex",this._focusedVirtualIndex===S?0:-1);this._physicalIndexForKey[K.__key__]=b;K._flushProperties&&K._flushProperties(!0);P.removeAttribute("hidden")}else P.setAttribute("hidden",
"")},N)},
_updateMetrics:function(N){_.oo();var b=0,S=0,P=this._physicalAverageCount,H=this._physicalAverage;this._iterateItems(function(K){S+=this._physicalSizes[K];this._physicalSizes[K]=this._physicalItems[K].offsetHeight;b+=this._physicalSizes[K];this._physicalAverageCount+=this._physicalSizes[K]?1:0},N);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(S=this._itemsPerRow===1?S:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+b-S,this._itemsPerRow=1);this._physicalAverageCount!==P&&(this._physicalAverage=Math.round((H*P+b)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var N=this._physicalTop;if(this.grid){var b=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(S,P){var H=Math.floor(P%this._itemsPerRow*this._itemWidth+b);this._isRTL&&(H*=-1);this.translate3d(H+"px",N+"px",0,this._physicalItems[S]);this._shouldRenderNextRow(P)&&(N+=this._rowHeight)})}else this._iterateItems(function(S){this.translate3d(0,N+"px",0,this._physicalItems[S]);
N+=this._physicalSizes[S]})},
_getPhysicalSizeIncrement:function(N){return this.grid?this._computeVidx(N)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[N]},
_shouldRenderNextRow:function(N){return N%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var N=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(N!==0){this._physicalTop=this._physicalTop-N;var b=this._scrollPosition;!ZL9&&b>0&&this._resetScrollPosition(b-N)}},
_resetScrollPosition:function(N){this.scrollTarget&&N>=0&&(this._scrollPosition=this._scrollTop=N)},
_updateScrollerSize:function(N){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((N=(N=(N=N||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(N){return this.scrollToIndex(this.items.indexOf(N))},
scrollToIndex:function(N){if(!(typeof N!=="number"||N<0||N>this.items.length-1)&&(_.oo(),this._physicalCount!==0)){N=this._clamp(N,0,this._virtualCount-1);if(!this._isIndexRendered(N)||N>=this._maxVirtualStart)this._virtualStart=this.grid?N-this._itemsPerRow*2:N-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var b=this._physicalStart,S=this._virtualStart,P=0,H=this._hiddenContentSize;S<N&&
P<=H;)P+=this._getPhysicalSizeIncrement(b),b=(b+1)%this._physicalCount,S++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+P);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.L7)},
selectItem:function(N){return this.selectIndex(this.items.indexOf(N))},
selectIndex:function(N){if(!(N<0||N>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(N)){var b=this.modelForElement(this._physicalItems[this._getPhysicalIndex(N)]);b&&(b[this.selectedAs]=!0);this.updateSizeForIndex(N)}this.$.selector.selectIndex(N)}},
deselectItem:function(N){return this.deselectIndex(this.items.indexOf(N))},
deselectIndex:function(N){N<0||N>=this._virtualCount||(this._isIndexRendered(N)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(N)])[this.selectedAs]=!1,this.updateSizeForIndex(N)),this.$.selector.deselectIndex(N))},
toggleSelectionForItem:function(N){return this.toggleSelectionForIndex(this.items.indexOf(N))},
toggleSelectionForIndex:function(N){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(N):this.$.selector.isSelected(this.items[N]))?this.deselectIndex(N):this.selectIndex(N)},
clearSelection:function(){this._iterateItems(function(N){this.modelForElement(this._physicalItems[N])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(N){(N?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(N){var b=this.modelForElement(N.target);if(b){var S=_.Tk(N).path[0];N=this._getActiveElement();var P=this._physicalItems[this._getPhysicalIndex(b[this.indexAs])];if(S.localName!=="input"&&S.localName!=="button"&&S.localName!=="select"){S=b.tabIndex;b.tabIndex=-100;var H=N?N.tabIndex:-1;b.tabIndex=S;N&&P!==N&&P.contains(N)&&H!==-100||this.toggleSelectionForItem(b[this.as])}}},
_multiSelectionChanged:function(N){this.clearSelection();this.$.selector.multi=N},
updateSizeForItem:function(N){return this.updateSizeForIndex(this.items.indexOf(N))},
updateSizeForIndex:function(N){if(!this._isIndexRendered(N))return null;this._updateMetrics([this._getPhysicalIndex(N)]);this._positionItems();return null},
_manageFocus:function(){var N=this._focusedVirtualIndex;N>=0&&N<this._virtualCount?this._isIndexRendered(N)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(N){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(N/this._itemsPerRow)*this._itemsPerRow:N},
_isIndexRendered:function(N){return N>=this._virtualStart&&N<=this._virtualEnd},
_isIndexVisible:function(N){return N>=this.firstVisibleIndex&&N<=this.lastVisibleIndex},
_getPhysicalIndex:function(N){return(this._physicalStart+(N-this._virtualStart))%this._physicalCount},
focusItem:function(N){this._focusPhysicalItem(N)},
_focusPhysicalItem:function(N){if(!(N<0||N>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(N)||this.scrollToIndex(N);var b=this._physicalItems[this._getPhysicalIndex(N)],S=this.modelForElement(b),P;S.tabIndex=-100;b.tabIndex===-100&&(P=b);P||(P=_.Tk(b).querySelector('[tabindex="-100"]'));S.tabIndex=0;this._focusedVirtualIndex=N;P&&P.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var N=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var b=this.stamp(null);this._focusBackfillItem=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}this._offscreenFocusedItem=this._physicalItems[N];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[N]=this._focusBackfillItem;this._focusedPhysicalIndex=N;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var N=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),b=this._physicalItems[N];if(b){var S=this.modelForElement(b),P=this.modelForElement(this._offscreenFocusedItem);S[this.as]===P[this.as]?(this._focusBackfillItem=b,S.tabIndex=-1,this._physicalItems[N]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(N){N=this.modelForElement(N.target);var b=this.modelForElement(this._focusedItem),S=this._offscreenFocusedItem!==null,P=this._focusedVirtualIndex;N&&(b===N?this._isIndexVisible(P)||this.scrollToIndex(P):(this._restoreFocusedItem(),b&&(b.tabIndex=-1),N.tabIndex=0,this._focusedVirtualIndex=P=N[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(P),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],S&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(N){switch(N.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&N.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&N.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(N)}},
_clamp:function(N,b,S){return Math.min(S,Math.max(b,N))},
_debounce:function(N,b,S){this._debouncers=this._debouncers||{};this._debouncers[N]=_.L2(this._debouncers[N],S,b.bind(this));_.f2(this._debouncers[N])},
_forwardProperty:function(N,b,S){N._setPendingProperty(b,S)},
_forwardHostPropV2:function(N,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).forwardHostProp(N,b)},this)},
_notifyInstancePropV2:function(N,b,S){Zof(this.as,b)&&(N=N[this.indexAs],b==this.as&&(this.items[N]=S),this.notifyPath(o5(this.as,"items."+N,b),S))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(N,b,S){b.indexOf(this.as+".")===0&&this.notifyPath("items."+N.__key__+"."+b.slice(this.as.length+1),S)},
_forwardParentPath:function(N,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).notifyPath(N,b)},this)},
_forwardParentProp:function(N,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&(this.modelForElement(S)[N]=b)},this)},
_getActiveElement:function(){var N=this._itemsParent.node.domHost;return _.Tk(N?N.root:document).activeElement},
_scrollTargetChanged:function(N,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(b)if(N==="document")this.scrollTarget=this._doc;else if(typeof N==="string"){var S,P;this.scrollTarget=(b=(P=(S=this.domHost)==null?void 0:S.polymerController)!=null?P:this.domHost)&&b.$?b.$[N]:_.Tk(this.ownerDocument).querySelector("#"+N)}else this._isValidScrollTarget()&&(this._oldScrollTarget=N,this._toggleScrollListener(this._shouldHaveListener,N))}});var jSk;var zpV;var A6z=function(N,b,S,P){N-=S;b-=P;return Math.sqrt(N*N+b*b)},Xrb=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
JFs.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var U4Y=function(N){N.maxRadius=0;N.mouseDownStart=0;N.mouseUpStart=0;N.xStart=0;N.yStart=0;N.xEnd=0;N.yEnd=0;N.containerMetrics=new JFs(N.element)};
Z2e.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var N=Xrb()-this.mouseDownStart;this.mouseUpStart&&(N-=this.mouseUpElapsed);return N},get mouseUpElapsed(){return this.mouseUpStart?Xrb()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var N=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(N*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-N/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var N=this.radius/(this.containerMetrics.size/2);var b=this.xNow-this.containerMetrics.width/2;var S=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+b+"px, "+S+"px)";this.waveContainer.style.transform="translate3d("+b+"px, "+S+"px, 0)";this.wave.style.webkitTransform="scale("+N+","+N+")";this.wave.style.transform="scale3d("+N+","+N+",1)"},
downAction:function(N){var b=this.containerMetrics.width/2,S=this.containerMetrics.height/2;U4Y(this);this.mouseDownStart=Xrb();this.center?(this.xStart=b,this.yStart=S):(this.xStart=N?N.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=N?N.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=b,this.yEnd=S);N=this.containerMetrics;b=this.xStart;S=this.yStart;this.maxRadius=Math.max(A6z(b,S,0,0),A6z(b,S,
N.width,0),A6z(b,S,0,N.height),A6z(b,S,N.width,N.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=Xrb())},
remove:function(){_.Tk(_.Tk(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.uI({_template:function(){if(zpV!==void 0)return zpV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;jSk===void 0&&(jSk=document.createElement("template"));var P=jSk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return zpV=N},
is:"tp-yt-paper-ripple",behaviors:[_.XX],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},
animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},
get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){_.Tk(this).parentNode.nodeType==11?this.keyEventTarget=_.Tk(this).getOwnerRoot().host:this.keyEventTarget=_.Tk(this).parentNode;var N=this.keyEventTarget;this.listen(N,"up","uiUpAction");this.listen(N,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(N){N.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var N=0;N<this.ripples.length;++N)if(!this.ripples[N].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(N){this.noink||this.downAction(N)},
downAction:function(N){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(N),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(N){this.noink||this.upAction(N)},
upAction:function(N){this.holdDown||(this.ripples.forEach(function(b){b.upAction(N)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var N=0;N<this.ripples.length;++N){var b=this.ripples[N];b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var N=new Z2e(this);_.Tk(this.$.waves).appendChild(N.waveContainer);this.$.background.style.backgroundColor=N.color;this.ripples.push(N);this._setAnimating(!0);return N},
removeRipple:function(N){var b=this.ripples.indexOf(N);b<0||(this.ripples.splice(b,1),N.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var N;for(N=0;N<this.ripples.length;++N){var b=this.ripples[N];b.draw();this.$.background.style.opacity=b.outerOpacity;b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(N,b){b!==void 0&&(N?this.downAction():this.upAction())}});var aQ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(N){YM._downHandler.call(this,N);this.pressed&&this.ensureRipple(N)},
ensureRipple:function(N){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var b=this._rippleContainer||this.root;b&&_.Tk(b).appendChild(this._ripple);if(N){b=_.Tk(this._rippleContainer||this);var S=_.Tk(N).rootTarget;b.deepContains(S)&&this._ripple.uiDownAction(N)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(N){this.hasRipple()&&(this._ripple.noink=N)}};var Evb={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var N=1;this.disabled?N=0:this.active||this.pressed?N=4:this.receivedFocusFromKeyboard&&(N=3);this._setElevation(N)},
_computeKeyboardClass:function(N){this.toggleClass("keyboard-focus",N)},
_spaceKeyDownHandler:function(N){YM._spaceKeyDownHandler.call(this,N);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(N){YM._spaceKeyUpHandler.call(this,N);this.hasRipple()&&this._ripple.uiUpAction()}},pr9=[u09,
_.Ep,aQ,Evb];_.Y7S={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(N){N&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=N)},
_createRipple:function(){var N=aQ._createRipple();N.id="ink";N.setAttribute("center","");N.classList.add("circle");return N}};
_.y6k=[u09,_.Ep,aQ,_.Y7S];_.IAN=[_.y6k,oEV,{_checkedChanged:function(){x59._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){aQ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var DH9;var VO9;var gvd=function(){};
_.v=gvd.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._createRipple=function(){};
_.v._noinkChanged=function(){};
_.v._computeKeyboardClass=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setElevation=function(){};
gvd=_.uI({_template:function(){if(VO9!==void 0)return VO9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;DH9===void 0&&(DH9=document.createElement("template"));var P=DH9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return VO9=N},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[pr9],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Evb._calculateElevation.apply(this):this._setElevation(0)}});var epk;var $H9;var hpc={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(N){_.T("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(N)},
_onDialogClickWrapped:function(N){_.T("dialog_behavior_no_tap_killswitch")||this._onDialogClick(N)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(N,b){b&&(N?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(N){if(N){var b;((b=this.hostElement)!=null?b:this).setAttribute("aria-modal","true")}else{var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(N){this.closingReason=this.closingReason||{};this.closingReason.confirmed=N},
_onDialogClick:function(N){for(var b=_.Tk(N).path,S=0,P,H=b.indexOf((P=this.hostElement)!=null?P:this);S<H;S++)if(P=b[S],P.hasAttribute&&(P.hasAttribute("dialog-dismiss")||P.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(P.hasAttribute("dialog-confirm"));this.close();N.stopPropagation();break}}},q74=[_.cS,
hpc];var wrc=document.createElement("template");_.B(wrc,'<custom-style><style is="custom-style">/* autoprefixer: off */\n/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\nSPDX-License-Identifier: BSD-3-Clause\n*/\nhtml {\n  --primary-text-color: var(--light-theme-text-color);\n  --primary-background-color: var(--light-theme-background-color);\n  --secondary-text-color: var(--light-theme-secondary-color);\n  --disabled-text-color: var(--light-theme-disabled-color);\n  --divider-color: var(--light-theme-divider-color);\n  --error-color: #dd2c00;\n  --primary-color: #3f51b5;\n  --light-primary-color: #c5cae9;\n  --dark-primary-color: #303f9f;\n  --accent-color: #ff4081;\n  --light-accent-color: #ff80ab;\n  --dark-accent-color: #f50057;\n  --light-theme-background-color: #fff;\n  --light-theme-base-color: #000;\n  --light-theme-text-color: #212121;\n  --light-theme-secondary-color: #737373;\n  --light-theme-disabled-color: #9b9b9b;\n  --light-theme-divider-color: #dbdbdb;\n  --dark-theme-background-color: #212121;\n  --dark-theme-base-color: #fff;\n  --dark-theme-text-color: #fff;\n  --dark-theme-secondary-color: #bcbcbc;\n  --dark-theme-disabled-color: #646464;\n  --dark-theme-divider-color: #3c3c3c;\n  --text-primary-color: var(--dark-theme-text-color);\n  --default-primary-color: var(--primary-color);\n}</style></custom-style>');
document.head.appendChild(wrc.content);var NC9=document.createElement("template");_.B(NC9,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(NC9.content);_.uI({_template:function(){if($H9!==void 0)return $H9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;epk===void 0&&(epk=document.createElement("template"));var P=epk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return $H9=N},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[q74,EEk],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},
_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},
_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var bFz;var Src;_.uI({_template:function(){if(Src!==void 0)return Src;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;bFz===void 0&&(bFz=document.createElement("template"));var P=bFz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Src=N},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var N,b,S;if(((N=window.ShadyDOM)==null?void 0:N.noPatch)!==!0&&((b=window.ShadyDOM)==null?void 0:b.noPatch)!=="on-demand"||((S=this.__shady_parentNode)==null?void 0:S.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(hpc)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var PWl=_.$E(['<iron-iconset-svg name="paper-dropdown-menu" size="24">\n<svg><defs>\n<g id="arrow-drop-down"><path d="M12,15.7L5.6,9.4l0.7-0.7l5.6,5.6l5.6-5.6l0.7,0.7L12,15.7z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),HFk=_.fLO(PWl);HFk.setAttribute("style","display: none;");document.head.appendChild(HFk.content);var sdV;var KQZ;var vjd;var OFb;_.uI({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[hH],configure:function(N){var b=N.node,S=b.getBoundingClientRect().height;return this._effect=new KeyframeEffect(b,[{height:S/2+"px"},{height:S+"px"}],this.timingFromConfig(N))}});
_.uI({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[hH],configure:function(N){var b=N.node,S=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:S/2+"px"},{width:S+"px"}],this.timingFromConfig(N))}});
_.uI({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[hH],configure:function(N){var b=N.node,S=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:S+"px"},{width:S-S/20+"px"}],this.timingFromConfig(N))}});
_.uI({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[hH],configure:function(N){var b=N.node,S=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this._effect=new KeyframeEffect(b,[{height:S+"px",transform:"translateY(0)"},{height:S/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(N))}});var RQ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},CWV=function(){};
_.v=CWV.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._focusBlurHandler=function(){};
_.v._changedControlState=function(){};
_.v._setFocused=function(){};
CWV=_.uI({_template:function(){if(OFb!==void 0)return OFb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;vjd===void 0&&(vjd=document.createElement("template"));var P=vjd;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return OFb=N},
is:"tp-yt-paper-menu-button",behaviors:[_.XX,_.Ep],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,
value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"tp-yt-paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:RQ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:RQ.ANIMATION_CUBIC_BEZIER}}]}},
closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"tp-yt-paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:RQ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var N=_.Tk(this.$.content).getDistributedNodes(),b=0,S=N.length;b<S;b++)if(N[b].nodeType===Node.ELEMENT_NODE)return N[b]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(N,b){N?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):b!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(N){_.Ep._disabledChanged.apply(this,arguments);N&&this.opened&&this.close()},
__onIronOverlayCanceled:function(N){var b=this.$.trigger;_.Tk(N.detail).path.indexOf(b)>-1&&N.preventDefault()}});
Object.keys(RQ).forEach(function(N){CWV[N]=RQ[N]});var G5N=_.y8.IronButtonState,r19=(0,_.EH)(HTMLElement);
_.uI({_template:function(){if(KQZ!==void 0)return KQZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;sdV===void 0&&(sdV=document.createElement("template"));var P=sdV;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return KQZ=N},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[G5N,_.Ep,aQ,_.Iy,_.gR],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(N){var b=(0,_.jl)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:N});b.shadowRoot.appendChild(N);return r19.prototype._attachDom.call(this,N)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var N=this.contentElement;N&&N.selectedItem&&this._setSelectedItem(N.selectedItem)},
get contentElement(){for(var N=_.Tk(this.$.content).getDistributedNodes(),b=0,S=N.length;b<S;b++)if(N[b].nodeType===Node.ELEMENT_NODE)return N[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(N){this._setSelectedItem(N.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(N){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)===this&&this.open()},
_selectedItemChanged:function(N){var b="";N?b=N.label||N.getAttribute("label")||N.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(N,b){return b?b:N?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var N=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",N)},
_computeLabelClass:function(N,b,S){var P="label";if(N)S&&(P+=" label-is-hidden");else if(S||b)P+=" label-is-floating";return P},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var c1b;var aIk;_.uI({is:"tp-yt-paper-icon-button",_template:function(){if(aIk!==void 0)return aIk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;c1b===void 0&&(c1b=document.createElement("template"));var P=c1b;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return aIk=N},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.y6k],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(N,b){var S=this.getAttribute("aria-label");S&&b!=S||this.setAttribute("aria-label",N)}});var R5z;var WQl;_.WS=[u09,_.Ep,{hostAttributes:{role:"option",tabindex:"0"}}];_.uI({_template:function(){if(WQl!==void 0)return WQl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;R5z===void 0&&(R5z=document.createElement("template"));var P=R5z;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return WQl=N},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.WS]});var njl;var dOz;var mO9={attached:function(){this.fire("addon-attached")},
update:function(){}};var k5k=1,TC9=1,tAb=1,MAO=[_.Ep,_.XX,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,
value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},inputDir:{type:String},_typesThatHaveText:{type:Array},
_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText="date datetime datetime-local month time week file".split(" ")},
attached:function(){this._updateAriaLabelledBy();!ks&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(N,b){N?N=N+" "+b:N=b;return N},
_onAddonAttached:function(N){N=_.Tk(N).rootTarget;if(N.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,N.id);else{var b="paper-input-add-on-"+TC9++;N.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(N){_.Ep._focusBlurHandler.call(this,N);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var N=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",N);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(N){try{var b=this.inputElement.selectionStart;this.value=N;this.inputElement.selectionStart=b;this.inputElement.selectionEnd=b}catch(S){this.value=N}},
_computeAlwaysFloatLabel:function(N,b){return b||N},
_updateAriaLabelledBy:function(){var N=_.Tk(this.root).querySelector("label");if(N){if(N.id)var b=N.id;else b="paper-input-label-"+k5k++,N.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+tAb++)},
_onChange:function(N){this.shadowRoot&&this.fire(N.type,{sourceEvent:N},{node:this,bubbles:N.bubbles,cancelable:N.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var N=document.activeElement;N instanceof HTMLElement&&N!==document.body&&N!==document.documentElement||this._focusableElement.focus()}}}];var FQ4;var BCl;_.uI({_template:function(){if(BCl!==void 0)return BCl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;FQ4===void 0&&(FQ4=document.createElement("template"));var P=FQ4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return BCl=N},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[mO9],properties:{_charCounterStr:{type:String,value:"0"}},update:function(N){if(N.inputElement){N.value=N.value||"";var b=N.value.toString().length.toString();N.inputElement.hasAttribute("maxlength")&&(b+="/"+N.inputElement.getAttribute("maxlength"));this._charCounterStr=b}}});var lI4;var LQZ;_.uI({_template:function(){if(LQZ!==void 0)return LQZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;lI4===void 0&&(lI4=document.createElement("template"));var P=lI4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return LQZ=N},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return Lt(this.attrForValue)},get _inputElement(){return _.Tk(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(N){this._addons||(this._addons=[]);N=N.target;this._addons.indexOf(N)===-1&&(this._addons.push(N),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(N){this._handleValueAndAutoValidate(N.target)},
_onValueChanged:function(N){var b=N.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,b.value===void 0||b.value===""))return;this._handleValueAndAutoValidate(N.target)},
_handleValue:function(N){var b=this._inputElementValue;b||b===0||N.type==="number"&&!N.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:N,value:b,invalid:this.invalid})},
_handleValueAndAutoValidate:function(N){this.autoValidate&&N&&(this.invalid=!(N.validate?N.validate(this._inputElementValue):N.checkValidity()));this._handleValue(N)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(N){if(this._addons)for(var b,S=0;b=this._addons[S];S++)b.update(N)},
_computeInputContentClass:function(N,b,S,P,H){var K="input-content";N?(H&&(K+=" label-is-hidden"),P&&!this.noUnfloatedLabelError&&(K+=" is-invalid")):(N=this.querySelector("label"),b||H?(K+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",P?K+=" is-invalid":S&&(K+=" label-is-highlighted")):(N&&(this.$.labelAndInputContainer.style.position="relative"),P&&!this.noUnfloatedLabelError&&(K+=" is-invalid")));S&&(K+=" focused");return K},
_computeUnderlineClass:function(N,b){var S="underline";b?S+=" is-invalid":N&&(S+=" is-highlighted");return S},
_computeAddOnContentClass:function(N,b){var S="add-on-content";b?S+=" is-invalid":N&&(S+=" is-highlighted");return S}});var fI9;var uzE;_.uI({_template:function(){if(uzE!==void 0)return uzE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;fI9===void 0&&(fI9=document.createElement("template"));var P=fI9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return uzE=N},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[mO9],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(N){this._setInvalid(N.invalid)}});_.uI({is:"tp-yt-paper-input",_template:function(){if(dOz!==void 0)return dOz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;njl===void 0&&(njl=document.createElement("template"));var P=njl;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return dOz=N},
behaviors:[MAO,_.Iy],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&&
this.$.container._handleValueAndAutoValidate(this.inputElement)}});var Qdc;var xOV;_.uI({_template:function(){if(xOV!==void 0)return xOV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=
N.content,S=b.insertBefore;Qdc===void 0&&(Qdc=document.createElement("template"));var P=Qdc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return xOV=N},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.WS]});var ojd;var iF9;_.uI({_template:function(){if(iF9!==void 0)return iF9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;ojd===void 0&&(ojd=document.createElement("template"));var P=ojd;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return iF9=N},
is:"tp-yt-paper-item-body"});var J1k;var UOV;var ZF9=function(){};
_.v=ZF9.prototype;_.v.indexOf=function(){};
_.v.selectPrevious=function(){};
_.v.selectNext=function(){};
_.v.selectIndex=function(){};
_.v.forceSynchronousItemUpdate=function(){};
_.v._checkFallback=function(){};
_.v._addListener=function(){};
_.v._removeListener=function(){};
_.v._activateEventChanged=function(){};
_.v._updateItems=function(){};
_.v._selectSelected=function(){};
_.v._filterItem=function(){};
_.v._valueToItem=function(){};
_.v._valueToIndex=function(){};
_.v._indexToValue=function(){};
_.v._valueForItem=function(){};
_.v._observeItems=function(){};
_.v._itemActivate=function(){};
_.v.multiChanged=function(){};
_.v._updateAttrForSelected=function(){};
_.v._updateSelected=function(){};
_.v._selectMulti=function(){};
_.v._selectionChange=function(){};
_.v._toggleSelected=function(){};
_.v._valuesToItems=function(){};
_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v.select=function(){};
_.v._resetTabindices=function(){};
_.v._updateMultiselectable=function(){};
_.v._focusWithKeyboardEvent=function(){};
_.v._clearSearchText=function(){};
_.v._focusPrevious=function(){};
_.v._focusNext=function(){};
_.v._applySelection=function(){};
_.v._focusedItemChanged=function(){};
_.v._onIronItemsChanged=function(){};
_.v._onShiftTabDown=function(){};
_.v._onFocus=function(){};
_.v._onUpKey=function(){};
_.v._onDownKey=function(){};
_.v._onEscKey=function(){};
_.v._onKeydown=function(){};
_.v._activateHandler=function(){};
_.v._disabledChanged=function(){};
_.v._setSelectedItem=function(){};
_.v._setItems=function(){};
_.v._setSelectedItems=function(){};
_.v._setFocusedItem=function(){};
ZF9=_.uI({_template:function(){if(UOV!==void 0)return UOV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;J1k===void 0&&(J1k=document.createElement("template"));var P=J1k;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return UOV=N},
is:"tp-yt-paper-listbox",behaviors:[ZS4],hostAttributes:{role:"listbox"}});var jdE;var z5Z;var A1l={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(N,b){return[N||b?"active":"",b?"cooldown":""].join(" ")},
__activeChanged:function(N,b){this.__setAriaHidden(!N);this.__coolingDown=!N&&b},
__altChanged:function(N){this.setAttribute("aria-label",N||"loading")},
__setAriaHidden:function(N){N?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.uI({_template:function(){if(z5Z!==void 0)return z5Z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;jdE===void 0&&(jdE=document.createElement("template"));var P=jdE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return z5Z=N},
is:"tp-yt-paper-spinner",behaviors:[A1l]});var X$Z;var Ejk;_.uI({_template:function(){if(Ejk!==void 0)return Ejk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;X$Z===void 0&&(X$Z=document.createElement("template"));var P=X$Z;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Ejk=N},
is:"tp-yt-paper-spinner-lite",behaviors:[A1l]});var p$9;var Yr9;_.uI({_template:function(){if(Yr9!==void 0)return Yr9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;p$9===void 0&&(p$9=document.createElement("template"));var P=p$9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Yr9=N},
is:"tp-yt-paper-tab",behaviors:[_.Ep,_.y8.IronButtonState,aQ],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var N=_.Tk(this).parentNode;return!!N&&!!N.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(N){if(this.link){var b=this.queryEffectiveChildren("a");b&&N.target!==b&&b.click()}}});var y1N;var II4;var DOS=_.$E(['<iron-iconset-svg name="paper-tabs" size="24">\n<svg><defs>\n<g id="chevron-left"><path d="M14.6,18.4L8.3,12l6.4-6.4l0.7,0.7L9.7,12l5.6,5.6L14.6,18.4z"/></g>\n<g id="chevron-right"><path d="M9.4,18.4l-0.7-0.7l5.6-5.6L8.6,6.4l0.7-0.7l6.4,6.4L9.4,18.4z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),VAc=_.fLO(DOS);document.head.appendChild(VAc.content);_.uI({_template:function(){if(II4!==void 0)return II4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;y1N===void 0&&(y1N=document.createElement("template"));var P=y1N;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return II4=N},
is:"tp-yt-paper-tabs",behaviors:[_.$M,_.zrN],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(N){_.Tk(this).querySelectorAll("tp-yt-paper-tab").forEach(N?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(N){N.setAttribute("noink","")},
_removeNoinkAttribute:function(N){N.removeAttribute("noink")},
_computeScrollButtonClass:function(N,b,S,P){return!b||S?"hidden":N?P?"hidden":"not-visible":""},
_computeTabsContentClass:function(N,b){var S="tabs-content";N&&(S+=" scrollable");if(!N||b)S+=" fit-container";return S},
_computeSelectionBarClass:function(N,b){var S="selection-bar";N?S+=" hidden":b&&(S+=" align-bottom");return S},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(N){return""+N},
_onIronSelect:function(N){this._tabChanged(N.detail.item,this._previousTab);this._previousTab=N.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.e2._activateHandler.apply(this,arguments)},
_scheduleActivation:function(N,b){this._pendingActivationItem=N;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,b)},
_delayedActivationHandler:function(){var N=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;N.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(N){N.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(N,b){this.scrollable&&this._affectScroll(b&&-b.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(N){this.$.tabsContainer.scrollLeft+=N;N=this.$.tabsContainer.scrollLeft;this._leftHidden=N===0||this.hideScrollButtons;this._rightHidden=N===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(N,b){if(N){var S=this.$.tabsContent.getBoundingClientRect(),P=S.width,H=N.getBoundingClientRect();S=H.left-S.left;this._pos={width:this._calcPercent(H.width,P),left:this._calcPercent(S,P)};if(this.noSlide||b==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var K=b.getBoundingClientRect();b=this.items.indexOf(b);N=this.items.indexOf(N);this.$.selectionBar.classList.add("expand");
N=b<N;this._isRTL&&(N=!N);N?this._positionBar(this._calcPercent(H.left+H.width-K.left,P)-5,this._left):this._positionBar(this._calcPercent(K.left+K.width-H.left,P)-5,this._calcPercent(S,P)+5);this.scrollable&&this._scrollToSelectedIfNeeded(H.width,S)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(N,b){b-=this.$.tabsContainer.scrollLeft;b<0?this.$.tabsContainer.scrollLeft+=b:(b+=N-this.$.tabsContainer.offsetWidth,b>0&&(this.$.tabsContainer.scrollLeft+=b))},
_calcPercent:function(N,b){return 100*N/b},
_positionBar:function(N,b){N=N||0;b=b||0;this._width=N;this._left=b;this.transform("translateX("+b+"%) scaleX("+N/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var N=this.$.selectionBar.classList;N.contains("expand")?(N.remove("expand"),N.add("contract"),this._positionBar(this._pos.width,this._pos.left)):N.contains("contract")&&N.remove("contract")}});var gjl;var e5b;_.uI({_template:function(){if(e5b!==void 0)return e5b;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;gjl===void 0&&(gjl=document.createElement("template"));var P=gjl;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return e5b=N},
is:"tp-yt-paper-textarea",behaviors:[MAO,_.Iy],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(N){this.$.input.textarea.selectionStart=N},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(N){this.$.input.textarea.selectionEnd=N},_ariaLabelledByChanged:function(N){this._focusableElement.setAttribute("aria-labelledby",N)},
_ariaDescribedByChanged:function(N){this._focusableElement.setAttribute("aria-describedby",N)},
get _focusableElement(){return this.inputElement.textarea}});var $Ok;var h5z;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier:
BSD-3-Clause
*/
var qrd=function(){};
_.v=qrd.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
qrd=_.uI({is:"tp-yt-paper-toggle-button",_template:function(){if(h5z!==void 0)return h5z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;$Ok===void 0&&($Ok=document.createElement("template"));var P=$Ok;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return h5z=N},
behaviors:[_.IAN],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.W_(this,function(){_.hA(this,"pan-y")})},
_ontrack:function(N){N=N.detail;N.state==="start"?this._trackStart(N):N.state==="track"?this._trackMove(N):N.state==="end"&&this._trackEnd(N)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(N){N=N.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+N:N)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+N:N));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var N=aQ._createRipple();N.id="ink";N.setAttribute("recenters","");N.classList.add("circle","toggle-ink");return N}});var w$4;var N_N;_.uI({_template:function(){if(N_N!==void 0)return N_N;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;w$4===void 0&&(w$4=document.createElement("template"));var P=w$4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return N_N=N},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var N=_.Tk(this).parentNode,b=_.Tk(this).getOwnerRoot(),S;this.for?S=_.Tk(b).querySelector("#"+this.for):S=N.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:N;return S},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(N){N==="entry"?this.show():N==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Tk(this).textContent.trim()===""){for(var N=!0,b=_.Tk(this).getEffectiveChildNodes(),S=0;S<b.length;S++)if(b[S].textContent.trim()!==""){N=!1;break}if(N)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var N=this.offset;this.marginTop!=14&&this.offset==14&&(N=this.marginTop);var b=this.offsetParent.getBoundingClientRect(),S=this._target.getBoundingClientRect(),P=this.getBoundingClientRect(),H=(S.width-P.width)/2,K=(S.height-P.height)/2,C=S.left-b.left,G=S.top-b.top;switch(this.position){case "top":var a=C+H;var R=G-P.height-N;break;case "bottom":a=C+H;R=G+S.height+N;break;case "left":a=C-P.width-N;R=G+K;break;case "right":a=C+S.width+
N,R=G+K}this.fitToVisibleBounds?(b.left+a+P.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,a)+"px",this.style.right="auto"),b.top+R+P.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,R)+"px",this.style.bottom="auto")):(this.style.left=a+"px",this.style.top=R+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(N){N!==500&&this.updateStyles({"--paper-tooltip-delay-in":N+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(N){if(N==="entry"&&this.animationEntry!=="")return this.animationEntry;if(N==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[N]&&typeof this.animationConfig[N][0].name==="string"){if(this.animationConfig[N][0].timing&&this.animationConfig[N][0].timing.delay&&this.animationConfig[N][0].timing.delay!==0){var b=this.animationConfig[N][0].timing.delay;N==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):N==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+
"ms"})}return this.animationConfig[N][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var b84=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(b84,_.rc);var S0d=_.FH(b84,[0,_.s7]);var nn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(nn,_.rc);var PAO=[3,4],H89=[5,6];var sEk=[0,PAO,H89,_.G5,-1,_.SO,_.rC,-1,CLS,GEZ];var Kr4=_.FH(nn,sEk),vaZ=_.li(sEk);var O8O=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(O8O,_.rc);var CA4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(CA4,_.rc);var GIb=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(GIb,_.rc);var rB9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(rB9,_.rc);var cBS=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(cBS,_.rc);var da=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(da,_.rc);da.prototype.getSource=function(){return _.o9(this,1)};
da.prototype.getMessage=function(){return _.xp(this,4)};
da.prototype.getData=function(){return _.k0(this,cBS,8)};var aJd=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(aJd,_.rc);var m3=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(m3,_.rc);var k6=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(k6,_.rc);var Ty=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ty,_.rc);Ty.prototype.getUrl=function(){return _.xp(this,1)};
Ty.prototype.setUrl=function(N){return _.En(this,1,N)};
Ty.prototype.hasUrl=function(){return _.Fi(_.kp(this,1))!=null};var RR9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(RR9,_.rc);var WrN=[3];var naz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(naz,_.rc);var tj=function(N){var b=new naz;return _.Ti(b,2,N)};
naz.prototype.getLanguage=function(){return Jm(this,4,MD)};
var dmN=function(N){var b=tj(1);return _.o$(b,6,MD,N)},MD=[3,
4,5,6];var mm9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(mm9,_.rc);var Fr=function(N){var b=new mm9;return _.Ti(b,1,N)},BS=function(N,b){return _.o$(N,2,kI9,b)},kI9=[2,
3,4,5];var T_b=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(T_b,_.rc);var lb=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lb,_.rc);var tyZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(tyZ,_.rc);var MyE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(MyE,_.rc);var FrO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(FrO,_.rc);var B_b=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(B_b,_.rc);var lJZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lJZ,_.rc);var Ln=function(N){return _.k0(N,k6,5)};var Lrl=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Lrl,_.rc);Lrl.prototype.getValue=function(){return uJ(this,1)};var fJ9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(fJ9,_.rc);var fn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(fn,_.rc);fn.prototype.getMetadata=function(){return _.UG(this,FrO,7,ub)};
fn.prototype.hasMetadata=function(){return _.tm(this,FrO,7,ub)};
var uFZ=_.N$e(fn),ub=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var QD=function(N){this.JSC$12406_name_=N;this.files_=[];this.directories_=[];this.directoryMap_={}};
QD.prototype.getName=function(){return this.JSC$12406_name_};var oQ=function(N,b){this.callback_=b;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new QD("");QEd(this,N,this.rootDirectory_);x6(this)},QEd=function(N,b,S){for(var P=0;P<b.length;P++){var H=b[P];
H.isFile?(N.fileOps_++,H.file((0,_.pT)(N.handleFileSuccess_,N,S),(0,_.pT)(N.handleFileError_,N))):N.unscannedDirectories_.push(new xmZ(H,S))}},x6=function(N){if(N.unscannedDirectories_.length>0&&N.directoryOps_<5&&!N.hasError_){N.directoryOps_++;
var b=N.unscannedDirectories_.shift(),S=b.entry,P=new QD(S.name);b=b.parent;b.directoryMap_[P.getName()]=P;b.directories_.push(P);S=S.createReader();S.readEntries((0,_.pT)(N.handleDirectorySuccess_,N,S,P),(0,_.pT)(N.handleDirectoryError_,N))}N.directoryOps_!=0||N.fileOps_!=0||N.unscannedDirectories_.length!=0&&!N.hasError_||N.callback_(N.rootDirectory_.files_,N.rootDirectory_.directories_,N.hasError_)};
oQ.prototype.handleDirectorySuccess_=function(N,b,S){QEd(this,S,b);S.length==0?(this.directoryOps_--,x6(this)):N.readEntries((0,_.pT)(this.handleDirectorySuccess_,this,N,b),(0,_.pT)(this.handleDirectoryError_,this))};
oQ.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;x6(this)};
oQ.prototype.handleFileSuccess_=function(N,b){N.files_.push(b);this.fileOps_--;x6(this)};
oQ.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;x6(this)};
var xmZ=function(N,b){this.entry=N;this.parent=b};var ib=function(N){_.J1.call(this);_.lH(N,"drop",this.onObjectsDropped_,!1,this);_.lH(N,"dragenter",this.onFilesDragged_,!1,this);_.lH(N,"dragover",this.onFilesDragged_,!1,this);_.lH(N,"dragleave",this.onDragLeave_,!1,this);_.lH(N,"dragend",this.onDragLeave_,!1,this)};
_.Km(ib,_.J1);var oa9=function(N,b){_.uW.call(this,"f");this.files=N;this.directories=b};
_.Km(oa9,_.uW);var i89=function(){_.uW.call(this,"h")};
_.Km(i89,_.uW);var JB9=function(){_.uW.call(this,"i")};
_.Km(JB9,_.uW);var UmE=function(){_.uW.call(this,"g")};
_.Km(UmE,_.uW);ib.prototype.onObjectsDropped_=function(N){var b=this;N.preventDefault();var S=N.event_.dataTransfer;if((N=S&&S.items)&&N.length>0&&N[0].webkitGetAsEntry){S=[];for(var P=[],H=0;H<N.length;H++){var K=N[H].webkitGetAsEntry();K?S.push(K):P.push(N[H])}new oQ(S,function(C,G,a){a?b.dispatchEvent(new UmE("Error occurred while reading from the file system.")):b.dispatchEvent(new oa9(C,G,P))})}else(N=S&&S.files)&&this.dispatchEvent(new oa9(Array.from(N),[]))};
ib.prototype.onFilesDragged_=function(N){N.type==="dragenter"&&this.dispatchEvent(new i89);N.preventDefault()};
ib.prototype.onDragLeave_=function(){this.dispatchEvent(new JB9)};var Z8l=function(N,b){this.JSC$12429_name_=N;this.inputElement_=b};
Z8l.prototype.getName=function(){return this.JSC$12429_name_};
Z8l.prototype.getInputElement=function(){return this.inputElement_};var Jj=function(N,b,S){b=b===void 0?"single_file":b;S=S===void 0?[]:S;_.J1.call(this);this.overlayTarget_=N;this.parentOverlay_=N!=null?N.parentNode:_.U5("scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=S;this.overlay_=jE9(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.F(Jj,_.J1);
var jE9=function(N,b,S,P){var H=document.createElement("input");H.setAttribute("type","file");H.setAttribute("name","Filedata");_.lH(H,"change",N.onFilesSelected_,!1,N);S==="multiple_file"&&(H.multiple="true");S==="single_directory"&&(H.webkitdirectory="true");P.length>0&&H.setAttribute("accept",P.join(","));H.style.position="absolute";H.style.overflow="hidden";H.style.height="0px";H.style.width="0px";H.style.opacity="0";H.setAttribute("aria-hidden","true");H.setAttribute("tabIndex",-1);if(N.overlayTarget_!=
null)return H.style.height=b.offsetHeight+"px",H.style.width=b.offsetWidth+"px",N.parentOverlay_&&(N.parentOverlay_.style.position="relative"),_.Yv(H,b),eO(H,new _.ek(b.offsetLeft,b.offsetTop)),H;N.parentOverlay_.appendChild(H);return H};
Jj.prototype.click=function(){this.overlay_.click()};
Jj.prototype.onFilesSelected_=function(N){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(R){}b=!1}if(b){var S;N=Array.from((S=N.target.files)!=null?S:[]);S=[];if(this.selectorType_==="single_directory"&&(_.FG||rk||_.B_)){S=new QD("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<N.length;b++)for(var P=N[b],H=P.webkitRelativePath.split("/"),K=S,C=0;C<H.length;C++){var G=H[C];if(C==H.length-1){G!="."&&K.files_.push(P);break}var a=K.directoryMap_[G];a==void 0&&(G=
a=new QD(G),K.directoryMap_[G.getName()]=G,K.directories_.push(G));K=a}S=S.directories_}this.dispatchEvent(new zRZ(N,S,null))}else N=N.target.value,N.match(/^c:\\fakepath\\/i)&&(N=N.substring(12)),this.dispatchEvent(new zRZ([],[],new Z8l(N,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=jE9(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var zRZ=function(N,b){_.uW.call(this,"j");this.files=N;this.directories=b};
_.F(zRZ,_.uW);var AB4=function(N){this.uploadUrl_=N};var X09=function(){_.J1.call(this)};
_.Km(X09,_.J1);var Uc=function(N){_.uW.call(this,N)};
_.Km(Uc,_.uW);var Zs=function(N){_.uW.call(this,N)};
_.Km(Zs,_.uW);var Ea9=function(N,b,S,P,H){_.J1.call(this);S=document.createElement("form");S.setAttribute("method",b);S.setAttribute("enctype","multipart/form-data");S.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",H);S.appendChild(b);S.appendChild(P);this.JSC$12446_form_=S;N=new _.DV(N);_.vW(N,"upload_protocol","multipart");this.JSC$12446_url_=N.toString();this.JSC$12446_request_=new kM;this.state_=
"Ready";this.JSC$12446_errorDescription_=null;this.JSC$12446_eventHandler_=new _.fx(this);_.QS(this,this.JSC$12446_eventHandler_);this.JSC$12446_eventHandler_.listen(this.JSC$12446_request_,"success",this.onTransferSuccess_);this.JSC$12446_eventHandler_.listen(this.JSC$12446_request_,"error",this.onTransferError_)};
_.F(Ea9,X09);_.v=Ea9.prototype;_.v.run=function(){this.state_="Transferring";var N=this.JSC$12446_request_,b=this.JSC$12446_form_;if(N.JSC$11714_active_)throw Error("ue");var S=new _.DV(this.JSC$12446_url_||b.action);N.JSC$11714_form_=b;b=N.JSC$11714_form_;S=_.hS(S.toString());S!==void 0&&(b.action=S);e99(N)};
_.v.getResponseCode=function(){return null};
_.v.getResponseText=function(){return this.JSC$12446_request_&&this.JSC$12446_request_.getResponseText()||null};
_.v.JSC$30372_getErrorDescription=function(){return this.JSC$12446_errorDescription_};
_.v.cancel=function(){this.JSC$12446_request_&&this.JSC$12446_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Uc("o"))};
_.v.pause=function(){};
_.v.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Uc("l"))};
_.v.onTransferError_=function(){this.JSC$12446_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Uc("n"))};var jD=function(){_.DI.call(this)};
_.F(jD,_.DI);jD.prototype.createXhr=function(){var N=_.DI.prototype.createXhr.call(this);N.upload&&(N.upload.onprogress=(0,_.pT)(this.onProgress_,this));return N};
jD.prototype.onProgress_=function(N){this.dispatchEvent(N)};var p04=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},yBz=function(N,b){var S=N.attempt_+1;
if(N.maxAttempts_>0&&S>N.maxAttempts_)return!1;S==0?b():N.delayCallId_=Yj(function(){N.delayCallId_=null;b()},Y09(N),N);
N.attempt_=S;return!0};
p04.prototype.reset=function(){this.delayCallId_&&_.Ps.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Y09=function(N){var b=250*Math.pow(2,N.attempt_);N.maxDelayMs_>=0&&(b=Math.min(b,N.maxDelayMs_));return b};var zPp=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var zy=function(){_.J1.call(this);this.JSC$12456_request_=this.state_=null;this.JSC$12456_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12456_bytesTransferred_=0;this.retryIterator_=new p04;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12456_errorDescription_=null;this.JSC$12456_eventHandler_=new _.fx(this);_.QS(this,this.JSC$12456_eventHandler_);this.JSC$12456_url_=this.blob_=null;this.JSC$12456_method_=void 0;this.chunkSize_=this.JSC$12456_metadata_=
this.JSC$12456_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12456_responseText_=this.JSC$12456_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Km(zy,X09);_.v=zy.prototype;_.v.run=function(){Aj(this)};
_.v.getResponseCode=function(){return this.JSC$12456_responseCode_};
_.v.getResponseText=function(){return this.JSC$12456_responseText_};
_.v.JSC$30372_getErrorDescription=function(){return this.JSC$12456_errorDescription_};
_.v.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12456_eventHandler_.removeAll();this.JSC$12456_request_&&this.JSC$12456_request_.abort();this.retryIterator_.reset();var N=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(N==="Upload"||N==="Query")N=new jD,N.JSC$10029_withCredentials_=this.JSC$12456_withCredentials_,N.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12456_bytesTransferred_=
0;this.dispatchEvent(new Uc("o"))}};
_.v.pause=function(){this.pauseRequested_=!0};
var Aj=function(N){var b=N.state_;N.pauseRequested_?(N.pauseRequested_=!1,N.stateAfterUnpausing_=b,N.state_="Paused"):yBz(N.retryIterator_,function(){switch(N.state_){case "Start":N.JSC$12456_request_=new jD;var S=_.Vm.clone(N.JSC$12456_headers_);N.blob_.size!=null&&(S["Content-Length"]=N.blob_.size);S=AFs(S);S["X-Goog-Upload-Protocol"]="resumable";S["X-Goog-Upload-Command"]="start";N.JSC$12456_eventHandler_.removeAll();N.JSC$12456_eventHandler_.listen(N.JSC$12456_request_,"complete",N.onStartComplete_);
N.JSC$12456_request_.JSC$10029_withCredentials_=N.JSC$12456_withCredentials_;N.JSC$12456_request_.send(N.JSC$12456_url_,N.JSC$12456_method_,N.JSC$12456_metadata_,S);N.lastCommandResponseCode_=null;N.dispatchEvent(new Zs("q"));break;case "Upload":S=N.transferHandle_.uploadUrl_;var P=N.blob_.size;if(M0l()){var H=N.chunkSize_;var K=N.offset_+H>=P;P=t0c(N.blob_,N.offset_,K?P:N.offset_+H)}else N.offset_=0,P=N.blob_,K=!0;N.JSC$12456_request_=new jD;N.JSC$12456_request_.JSC$10029_withCredentials_=N.JSC$12456_withCredentials_;
N.JSC$12456_eventHandler_.removeAll();N.JSC$12456_eventHandler_.listen(N.JSC$12456_request_,"progress",N.onUploadProgress_);H=(0,_.pT)(N.JSC$12458_onUploadComplete_,N,N.offset_+P.size,K);N.JSC$12456_eventHandler_.listen(N.JSC$12456_request_,"complete",H);N.lastCommandResponseCode_=null;N.dispatchEvent(new Zs("q"));K=Object.assign({},N.JSC$12456_headers_||{},{"X-Goog-Upload-Command":"upload"+(K?", finalize":""),"X-Goog-Upload-Offset":N.offset_});N.JSC$12456_request_.send(S,"POST",P,K);break;case "Query":N.JSC$12456_request_=
new jD;N.JSC$12456_eventHandler_.removeAll();N.JSC$12456_eventHandler_.listen(N.JSC$12456_request_,"complete",N.onQueryComplete_);S=Object.assign({},N.JSC$12456_headers_||{},{"X-Goog-Upload-Command":"query"});N.JSC$12456_request_.send(N.transferHandle_.uploadUrl_,"POST","",S);N.lastCommandResponseCode_=null;N.dispatchEvent(new Zs("q"));break;default:throw Error("mf");}})||Xr(N,"Transfer encountered too many consecutive failures.")},Xr=function(N,b){N.state_="Error";
N.JSC$12456_errorDescription_=b;N.dispatchEvent(new Uc("n"))};
zy.prototype.onStartComplete_=function(N){var b=N.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new Zs("r"));if(IJ9(b))Dmb(this,b);else if(Vy9(b)){N=rA(N.target.getAllResponseHeaders());for(var S in N)_.Ka(S.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Uc("m"));S=My(N,"X-Goog-Upload-URL");N=(N=My(N,"X-Goog-Upload-Chunk-Granularity"))?parseInt(N,10):1;S===void 0||isNaN(N)||N<=0?Xr(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
N)*N,this.transferHandle_=new AB4(S),this.dispatchEvent(new Uc("p")),this.state_="Upload",this.retryIterator_.reset(),Aj(this))}else Aj(this)};
zy.prototype.onUploadProgress_=function(N){this.JSC$12456_bytesTransferred_=this.offset_+N.loaded;this.dispatchEvent(new Uc("k"))};
zy.prototype.JSC$12458_onUploadComplete_=function(N,b,S){var P=this,H,K;return _.r(function(C){switch(C.nextAddress){case 1:H=S.target;P.lastCommandResponseCode_=H.getStatus();P.dispatchEvent(new Zs("r"));if(gaZ(H)||H.getStatus()==404)return P.JSC$12456_bytesTransferred_=N,Dmb(P,H),C.return();if(Vy9(H)){C.jumpTo(2);break}if(!(K=P.detectCorruptedBlobEnabled_)){C.jumpTo(3);break}return C.yield(eRk(P),4);case 4:K=C.yieldResult;case 3:if(K)return Xr(P,"Blob has been modified or corrupted."),C.return();
P.requireUploadRequestModification_=H.getStatus()==400;P.state_="Query";Aj(P);return C.return();case 2:if(b)return Xr(P,"Got a non-final success response after issuing a finalize command."),C.return();P.JSC$12456_bytesTransferred_=N;P.offset_=N;P.retryIterator_.reset();Aj(P);return C.return()}})};
zy.prototype.onQueryComplete_=function(N){var b=N.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new Zs("r"));IJ9(b)?(b.getStatus()===200&&(this.JSC$12456_bytesTransferred_=this.blob_.size),Dmb(this,b)):Vy9(b)?(N=rA(N.target.getAllResponseHeaders()),N=parseInt(My(N,"X-Goog-Upload-Size-Received"),10),isNaN(N)?Xr(this,"Server did not respond with current offset."):N<this.offset_?Xr(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
N+"."):this.requireUploadRequestModification_&&this.offset_===N?Xr(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<N&&this.retryIterator_.reset(),this.offset_=this.JSC$12456_bytesTransferred_=N,this.state_="Upload",Aj(this))):Aj(this)};
var Dmb=function(N,b){N.JSC$12456_responseCode_=b.getStatus();var S=rA(b.getAllResponseHeaders());Xuu(S);N.JSC$12456_responseText_=b.getResponseText();N.state_="Response received";N.dispatchEvent(new Uc("l"))},Vy9=function(N){var b=N.getStatus();
N=rA(N.getAllResponseHeaders());N=My(N,"X-Goog-Upload-Status");return b===200&&N==="active"},gaZ=function(N){N=rA(N.getAllResponseHeaders());
return My(N,"X-Goog-Upload-Status")==="final"},IJ9=function(N){if(gaZ(N))return!0;
N=N.getStatus();return N>=400&&N<500},eRk=function(N){var b;
return _.r(function(S){if(S.nextAddress==1){if(!N.blob_||N.originalBlobSize_<=0)return S.return(!1);if(N.blob_.size!==N.originalBlobSize_)return S.return(!0);_.u4(S,2);if(b=t0c(N.blob_,0,1)){var P=S.yield,H=new S2,K=KhZ(H);H.reader_.readAsBinaryString(b);S=P.call(S,K,4)}else S=S.return(!0);return S}if(S.nextAddress!=2)return S.return(N.blob_.size!==N.originalBlobSize_);_.UE(S);return S.return(!0)})};var $ml=function(N,b,S,P,H,K){_.J1.call(this);this.payload_=P;this.JSC$12459_url_=N;this.JSC$12459_method_=b;this.JSC$12459_headers_=S;this.JSC$12459_metadata_=H;this.encoding_=K||"binary";N=new _.Ys;this.boundary_="uploader-"+HW()+"-"+N.JSC$11563_toIsoString();this.JSC$12459_responseText_=this.JSC$12459_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12459_errorDescription_=null;this.JSC$12459_eventHandler_=new _.fx(this);_.QS(this,this.JSC$12459_eventHandler_)};
_.F($ml,X09);_.v=$ml.prototype;
_.v.run=function(){var N=_.Vm.clone(this.JSC$12459_headers_);this.payload_.length!=null&&(N["Content-Length"]=this.payload_.length);N=AFs(N);N["X-Goog-Upload-Protocol"]="multipart";N["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new jD;this.JSC$12459_eventHandler_.removeAll();this.JSC$12459_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12459_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12459_url_,this.JSC$12459_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12459_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",N)};
_.v.getResponseCode=function(){return this.JSC$12459_responseCode_};
_.v.getResponseText=function(){return this.JSC$12459_responseText_};
_.v.JSC$30372_getErrorDescription=function(){return this.JSC$12459_errorDescription_};
_.v.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12459_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Uc("o")))};
_.v.pause=function(){};
_.v.onTransferProgress_=function(){this.dispatchEvent(new Uc("k"))};
_.v.onTransferComplete_=function(N){var b=N.target.getStatus();b===void 0||b===-1?(this.JSC$12459_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Uc("n"))):(this.JSC$12459_responseCode_=b,N=N.target,b=rA(N.getAllResponseHeaders()),Xuu(b),this.JSC$12459_responseText_=N.getResponseText(),this.state_="Complete",this.dispatchEvent(new Uc("l")))};_.hRz=function(N,b,S,P){P=P===void 0?!1:P;if(S instanceof Z8l)return new Ea9(N,"POST",b,S.getInputElement(),"");if(typeof S==="string"||S instanceof String)return new $ml(N,"POST",b,S,"");var H=new zy(void 0);H.JSC$12456_url_=N;H.JSC$12456_method_="POST";H.JSC$12456_headers_=b;H.blob_=S;H.originalBlobSize_=S.size;H.JSC$12456_metadata_="";P&&(H.JSC$12456_withCredentials_=P);H.state_="Start";return H};var Ec=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ec,_.rc);_.v=Ec.prototype;_.v.getEnableSsEngine=function(){return _.fm(this,2)};
_.v.getEnableAwr=function(){return _.fm(this,3)};
_.v.getAlohaAutoGaRollout=function(){return _.fm(this,5)};
_.v.getEnableConfigurator=function(){return _.fm(this,6)};
_.v.getEnableMweb=function(){return _.fm(this,7)};
var w04=function(){var N=q04();return _.lZ(N,7,!0)};
Ec.prototype.getEnableCtlConsentCheckbox=function(){return _.fm(this,8)};
Ec.prototype.getEnableIframe=function(){return _.fm(this,9)};
var q04=function(){var N=new Ec;N=_.lZ(N,5,!0);N=_.lZ(N,2,!0);N=_.lZ(N,4,!1);N=_.lZ(N,8,!0);return _.lZ(N,9,!0)};
Ec.prototype.getEnableScreenshotNudge=function(){return _.fm(this,10)};
var Nub=function(){var N=w04();return _.lZ(N,10,!0)};
Ec.prototype.getEnableWebStartupConfigEndpoint=function(){return _.fm(this,11)};
Ec.prototype.getEnableJunkNudge=function(){return _.fm(this,12)};
var syI=function(){var N=Nub();return _.lZ(N,12,!0)};
_.v=Ec.prototype;_.v.getEnableConfiguratorLocale=function(){return _.fm(this,13)};
_.v.getEnableTinyNoPointer=function(){return _.fm(this,14)};
_.v.getEnableSupportSessionLogging=function(){return _.fm(this,15)};
_.v.getEnableFileUploadForScreenshot=function(){return _.fm(this,16)};
_.v.getEnableDirectDeflectionForSingleCategory=function(){return _.fm(this,17)};
_.v.getEnableImageSanitization=function(){return _.fm(this,18)};
_.v.getEnableAlohaBinarySplit=function(){return _.fm(this,19)};
_.v.getEnableDbFeedbackIntents=function(){return _.fm(this,20)};
_.v.getEnableMarkMandatoryFieldsWithRequired=function(){return _.fm(this,21)};
_.v.getEnableFeedbackCategoryCustomUi=function(){return _.fm(this,22)};
_.v.getEnableRealtimeCtl=function(){return _.fm(this,23)};var H1U=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(H1U,_.rc);var Ess=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var YHL="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var yFs=_.$E(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ITa=_.$E(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var FV=function(){var N=Error.call(this,"Form is either loading or already opened");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="DuplicateFormError"};
_.F(FV,Error);var Vee,$4L,gs9,hPu;var pn,bOb;
pn=function(N,b,S){N.timeOfStartCall=(new Date).getTime();var P=S||_.Ps,H=P.document,K=N.nonce||_.vM(P.document);K&&!N.nonce&&(N.nonce=K);if(N.flow=="help"){var C=_.hl("document.location.href",P);!N.helpCenterContext&&C&&(N.helpCenterContext=C.substring(0,1200));C=!0;if(b&&JSON&&JSON.stringify){var G=JSON.stringify(b);(C=G.length<=1200)&&(N.psdJson=G)}C||(b={invalidPsd:!0})}b=[N,b,S];P.GOOGLE_FEEDBACK_START_ARGUMENTS=b;S=N.feedbackServerUri||"//www.google.com/tools/feedback";if(C=P.GOOGLE_FEEDBACK_START)C.apply(P,b);
else{P=S+"/load.js?";for(var a in N)b=N[a],b==null||_.D_(b)||(P+=encodeURIComponent(a)+"="+encodeURIComponent(b)+"&");N=zn(H).createElement("SCRIPT");K&&N.setAttribute("nonce",K);_.cM(N,_.ZB(P));H.body.appendChild(N)}};
bOb=function(N,b,S,P){var H,K;return _.r(function(C){H=S||_.Ps;var G=N.serverEnvironment==="DEV",a=S||_.Ps;a=N.nonce||_.vM(a.document);G={integrationKeys:{productId:N.productId,feedbackBucket:N.bucket,triggerId:N.triggerId},callbacks:{onClose:N.callback,onLoad:N.onLoadCallback},formContent:{locale:N.locale,disableScreenshot:N.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:N.abuseLink,additionalDataConsent:N.additionalDataConsent},initializationData:{isLocalServer:G,nonce:a,useNightlyRelease:G,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:N.feedbackServerUri,colorScheme:N.colorScheme},extraData:{productVersion:N.productVersion,authUser:N.authuser,configuratorId:N.configuratorId,customZIndex:N.customZIndex,tinyNoPointer:N.tinyNoPointer,
allowNonLoggedInFeedback:N.allowNonLoggedInFeedback,enableAnonymousFeedback:N.enableAnonymousFeedback}};b&&(a=new Map(Object.entries(b)),G.extraData.productSpecificData=a);K=G;return C.yield(b1o(K,P,H),0)})};
_.Sy9=function(N,b,S){try{if(N.flow==="help"){var P=N.helpCenterPath.replace(/^\//,"");_.Kg(S||window,"https://support.google.com/"+P)}else N.flow==="submit"?pn(N,b,S):Kpb(N.productId,N.feedbackServerUri).then(function(H){H=_.k0(H,Ec,1);var K=!F99||(H==null?void 0:H.getEnableMweb()),C=!N.tinyNoPointer||(H==null?void 0:H.getEnableTinyNoPointer());!H||H.getAlohaAutoGaRollout()&&K&&C?bOb(N,b,S,H).catch(function(G){!G||G instanceof FV||pn(N,b,S)}):pn(N,b,S)},function(H){!H||H instanceof FV||pn(N,b,S)})}catch(H){bOb(N,
b,S,null).catch(function(K){!K||K instanceof FV||pn(N,b,S)})}};
_.aB("userfeedback.api.startFeedback",_.Sy9);var vM9=/https?:\/\/\S+\.\S+/,O1b=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],CGo=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var kwe=function(N){var b=N.split(""),S=[-263237435,15,b,function(P,H,K){var C=H.length;K.forEach(function(G,a,R){this.push(R[a]=H[(H.indexOf(G)-H.indexOf(this[a])+a+C--)%H.length])},P.split(""))},
function(P,H){P=(P%H.length+H.length)%H.length;H.splice(-P).reverse().forEach(function(K){H.unshift(K)})},
"response",function(){for(var P=64,H=[];++P-H.length-32;){switch(P){case 58:P-=14;case 91:case 92:case 93:continue;case 123:P=47;case 94:case 95:case 96:continue;case 46:P=95}H.push(String.fromCharCode(P))}return H},
null,12,1540023973,65941107,null,b,function(P,H){for(P=(P%H.length+H.length)%H.length;P--;)H.unshift(H.pop())},
695603893,function(P){for(var H=P.length;H;)P.push(P.splice(--H,1)[0])},
"'[;'[(",function(P,H){P.push(H)},
null,function(P,H,K,C,G){return H(K,C,G)},
"continuation",b,function(P,H){if(P.length!=0){H=(H%P.length+P.length)%P.length;var K=P[0];P[0]=P[H];P[H]=K}},
function(){for(var P=64,H=[];++P-H.length-32;){switch(P){case 91:P=44;continue;case 123:P=65;break;case 65:P-=18;continue;case 58:P=96;continue;case 46:P=95}H.push(String.fromCharCode(P))}return H},
'"),/]];'];S[7]=S;S[11]=S;S[18]=S;try{(((0,S[15])(S[21]),S[22])(S[11],S[9]),S[22])(S[new Date("1970-01-01T04:30:12.000+04:30")/1E3],S[1]),((0,S[22])(S[11],S[23]),S[4])(S[10],S[18]),(0,S[20])(S[21],S[14])<<(0,S[17])(S[18],S[1]),(0,S[4])(S[8],S[21]),(0,S[19])((0,S[19])((0,S[17])(S[7],S[9]),S[3],S[20],(0,S[6])(),S[2]),S[3],S[5],(0,S[15])(),S[2])}catch(P){return"aTlOUOubTO4AP____8P_"+N}return b.join("")};_.P3l=new _.WF("runAttestationCommand");var HO9=new _.WF("verifyCommand");_.Mv=new _.WF("accessibilityContext");var sjc=new _.WF("accessibilityData");var KK9=new _.WF("profileCardCommand");var RQp=new _.WF("signInEndpoint");var aXU=new _.WF("signOutEndpoint");var OO9;_.vS9=new _.WF("accountItemSectionRenderer");OO9=new _.WF("accountItemRenderer");_.C39=new _.WF("saveCommandToSessionStorageAction");var Gmz=new _.WF("crossAccountChannelTransferEndpoint");var KFI=new _.WF("getAccountMenuEndpoint");_.viI=new _.WF("getAccountSwitcherEndpoint");var s1I=new _.WF("getAccountsListEndpoint");var rqk=new _.WF("getAccountsListInnertubeEndpoint");_.cqE=new _.WF("addToToastAction");var aaE=new _.WF("hideEnclosingAction");_.Y6=new _.WF("replaceEnclosingAction");var Rd4=new _.WF("buttonRefreshAction");var WKd=new _.WF("adsControlFlowOpportunityReceivedCommand");var nS9=new _.WF("openAdAllowlistInstructionCommand");var dk9=new _.WF("videoMastheadAdPrimaryVideoRenderer");var mkN=new _.WF("displayAdRenderer");_.kmz=new _.WF("inFeedAdLayoutRenderer");var Tul=new _.WF("sequenceItemInPlayerAdLayoutRenderer");_.tVO=new _.WF("adSlotRenderer");var MVN=new _.WF("adAvatarViewModel");var FKb=new _.WF("adBadgeViewModel");var Buz=new _.WF("adButtonViewModel");var lac=new _.WF("adImageViewModel");var uqa=new _.WF("reelsAdCardButtonedViewModel");var LK9=new _.WF("reelsPlayerOverlayLayoutViewModel");var faV=new _.WF("formDataDecoratorCommand");var uIN=new _.WF("updateConversationIdCommand");var Qjk=new _.WF("showSchedulingPanelCommand");var xk9=new _.WF("backstageCommentsRenderer");var oSN=new _.WF("backstageImageRenderer");var iOl=new _.WF("backstagePostRenderer");var Jqk=new _.WF("backstageZeroStateRenderer");var Uk9=new _.WF("postRenderer");var ZOl=new _.WF("sharedPostRenderer");var jjE=new _.WF("createBackstagePostEndpoint");var zd9=new _.WF("getPostVideoPreviewEndpoint");var Aql=new _.WF("updateBackstagePostEndpoint");var XF9=new _.WF("filterChipTransformCommand");var ESz=new _.WF("insertRichSectionCommand");var qh9=new _.WF("talkToRecsDeselectCommand");var pFV=new _.WF("talkToRecsNextCommand");var hZI=new _.WF("talkToRecsSelectCommand");var uDY=new _.WF("talkToRecsUpdateTextCommand");_.Wd=new _.WF("browseEndpoint");_.YyS=new _.WF("confirmDialogEndpoint");var yql=new _.WF("expandOnHoverCardRenderer");var IaZ=new _.WF("lumiereShelfDetailsRenderer");var Dkk=new _.WF("revealBusinessEmailCommand");var VVN=new _.WF("validateChannelHandleCommand");var gSd=new _.WF("channelCreationFormEndpoint");var edc=new _.WF("aboutChannelViewModel");var $k4=new _.WF("channelThumbnailWithLinkRenderer");var hdl=new _.WF("channelCreationServiceEndpoint");var qyz=new _.WF("updateChannelPageSettingsEndpoint");var yD=function(N){this.delegate=N},IQ=function(){yD.apply(this,arguments)};
_.F(IQ,yD);_.d0.Object.defineProperties(IQ.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(N){this.delegate.entityMetadata=N}}});var wFk=function(){IQ.apply(this,arguments)};
_.F(wFk,IQ);wFk.prototype.getAssociations=function(){return[]};
wFk.prototype.getTypeName=function(){return"channelHandle"};var rLe=new _.WF("webThumbnailDetailsExtensionData");_.J5=new _.WF("commandContext");var NKE=new _.WF("addVideoLinkAction");var b2V=new _.WF("banAuthorAction");var SHS=new _.WF("createCommentAction");var Pm9=new _.WF("createCommentReplyAction");var H29=new _.WF("createPollAction");var so4=new _.WF("hideIdentityChipAction");var KvE=new _.WF("openUpdateCommentDialogAction");var vsz=new _.WF("pinCommentAction");var O29=new _.WF("removeCommentAction");var CmS=new _.WF("unpinCommentAction");var Ds=new _.WF("updateBackstagePollAction");var GtS=new _.WF("updateCommentVoteAction");var rF9=new _.WF("commentThreadRenderer");var cFk=function(){IQ.apply(this,arguments)};
_.F(cFk,IQ);cFk.prototype.getAssociations=function(){return[]};
cFk.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var aTZ=function(){IQ.apply(this,arguments)};
_.F(aTZ,IQ);aTZ.prototype.getAssociations=function(){return[]};
aTZ.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.RPV=new _.WF("commentDialogRenderer");var Wv9=new _.WF("reloadCommentsCommand");var ns4=new _.WF("updateCommentsSettingsEndpoint");var d4N=new _.WF("commentViewModel");var m4k=new _.WF("triStateButtonViewModel");var kt9=new _.WF("voiceReplyContainerViewModel");_.vN=new _.WF("commandExecutorCommand");var oq=new _.WF("emoji");var TKd=new _.WF("updateCreatorChannelInnertubeCommand");_.tek=new _.WF("appendContinuationItemsAction");_.Me9=new _.WF("changeEngagementPanelVisibilityAction");_.J8=new _.WF("continuationCommand");var FvE=new _.WF("hideReportedCommentAction");var BKb=new _.WF("listMutationCommand");_.VD=new _.WF("openPopupAction");var lTz=new _.WF("persistSubscriptionsDisplayPreferencesCommand");var JFk;_.LvO=new _.WF("playlistRemoveVideosAction");_.fT9=new _.WF("updatePlaylistAction");_.ueb=new _.WF("addToPlaylistCommand");_.QoO=new _.WF("endPlaylistCommand");_.x4z=new _.WF("recoverPlaylistCommand");_.osV=new _.WF("refreshPlaylistCommand");_.i2N=new _.WF("refreshFormCommand");JFk=new _.WF("openOnePickAddVideoModalCommand");_.RBo=new _.WF("reloadContinuationItemsCommand");_.U4E=new _.WF("scrollToEngagementPanelCommand");var Z2d=new _.WF("selectCountryCommand");var joV=new _.WF("showReloadUiCommand");var zP9=new _.WF("undoFeedbackAction");var AFk=new _.WF("updateButtonAction");var Xuz=new _.WF("updateSubscribeButtonAction");var Esk=new _.WF("updateToggleAction");var puz=new _.WF("webNativeShareCommand");_.GY=new _.WF("webCommandMetadata");_.eD=new _.WF("webHandleServiceEndpointExtension");var T1s=new _.WF("webNavigationEndpointData");var YHS=new _.WF("backgroundAudioPlaybackCommand");var yFk=new _.WF("copyLinkCommand");var IT9=new _.WF("playlistVotingRefreshPopupCommand");var D4V=new _.WF("selectChipCommand");var Ved=new _.WF("setCookieCommand");var gsc=new _.WF("setLocalStorageCommand");var ePS=new _.WF("setPrefStorageEntryCommand");var wuE;_.$4S=new _.WF("settingsUpdateCheckboxCommand");_.hPz=new _.WF("settingsUpdateTextCommand");_.qHl=new _.WF("settingsUpdateOptionsCommand");wuE=new _.WF("settingsUpdateSwitchCommand");_.NRl=new _.WF("settingsUpdateConnectedAppRendererCommand");var b14=new _.WF("showCreatorChatbotEngagementPanelCommand");var Spz=new _.WF("updateTextInputFormFieldRendererCommand");var PGE=new _.WF("updateToggleButtonStateCommand");var H1b=new _.WF("updateUrlParamCommand");var sy9=new _.WF("webSubmitFormCommand");var KpV=new _.WF("channelSwitcherPageRenderer"),vMc=new _.WF("updateChannelSwitcherPageAction");_.wO=new _.WF("continuationItemRenderer");_.$6=new _.WF("richItemRenderer");var O1V=new _.WF("richSectionRenderer");_.CG4=new _.WF("richShelfRenderer");_.G$z=new _.WF("metadataBadgeRenderer");_.rHV=new _.WF("multiPageMenuNotificationSectionRenderer");_.cHz=new _.WF("playlistLoopButtonStateRenderer");var at9=new _.WF("claimLegacyYoutubeChannelEndpoint");var R2d=new _.WF("getNotificationMenuEndpoint");var WpE=new _.WF("getSearchInVideoCommand");_.nMd=new _.WF("getTranscriptEndpoint");_.CA=new _.WF("signalServiceEndpoint");var dPE=new _.WF("verifyAgeEndpoint");var MfL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(MfL,_.rc);MfL.prototype.getPath=function(){return _.xp(this,1)};
MfL.prototype.getValue=function(){return _.xp(this,2)};var mPZ=[0,_.qW,-1];var k$4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(k$4,_.rc);var tfL=_.FH(k$4,[0,_.b2,mPZ]);var TR9=new _.WF("dismissalEndpoint");var t2N=new _.WF("elementsCommand");_.JM=new _.WF("innertubeCommand");var M2c=new _.WF("multipleInlinePlaybackCommand");var HdY=new _.WF("loggingDirectives");var FpN=new _.WF("acknowledgeChannelTouStrikeCommand");var BRS=function(){IQ.apply(this,arguments)};
_.F(BRS,IQ);BRS.prototype.getAssociations=function(){return[]};
BRS.prototype.getTypeName=function(){return"booleanEntity"};var lt4=function(){IQ.apply(this,arguments)};
_.F(lt4,IQ);lt4.prototype.getAssociations=function(){return[]};
lt4.prototype.getTypeName=function(){return"stringEntity"};var yC=new _.WF("entityBatchUpdate");_.Lpz=new _.WF("entityUpdateCommand");var ftk=function(){IQ.apply(this,arguments)};
_.F(ftk,IQ);ftk.prototype.getAssociations=function(){var N=[];this.delegate.alternateChannel&&N.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&N.push.apply(N,_.IX(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&N.push(this.delegate.oneofChannelEntity);return[].concat(_.IX(new Set(N)))};
ftk.prototype.getTypeName=function(){return"fakeChannel"};var uX4=function(){IQ.apply(this,arguments)};
_.F(uX4,IQ);uX4.prototype.getAssociations=function(){var N=[];this.delegate.entryCollection&&N.push(this.delegate.entryCollection);return[].concat(_.IX(new Set(N)))};
uX4.prototype.getTypeName=function(){return"fakePlaylist"};
var Qy9=function(){IQ.apply(this,arguments)};
_.F(Qy9,IQ);Qy9.prototype.getAssociations=function(){var N=[];this.delegate.parentPlaylist&&N.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=_.O(this.delegate.entries),S=b.next();!S.done;S=b.next())N.push.apply(N,_.IX((new xPZ(S.value)).getAssociations()));return[].concat(_.IX(new Set(N)))};
Qy9.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var xPZ=function(){yD.apply(this,arguments)};
_.F(xPZ,yD);xPZ.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);return[].concat(_.IX(new Set(N)))};var oMN=function(){IQ.apply(this,arguments)};
_.F(oMN,IQ);oMN.prototype.getAssociations=function(){var N=[];this.delegate.descriptionEntity&&N.push(this.delegate.descriptionEntity);this.delegate.creators&&N.push.apply(N,_.IX(this.delegate.creators));this.delegate.theBiggestFan&&N.push(this.delegate.theBiggestFan);return[].concat(_.IX(new Set(N)))};
oMN.prototype.getTypeName=function(){return"fakeVideo"};
var i1V=function(){IQ.apply(this,arguments)};
_.F(i1V,IQ);i1V.prototype.getAssociations=function(){return[]};
i1V.prototype.getTypeName=function(){return"fakeVideoDescription"};var JH9=new _.WF("fantasyRosterViewModel");var UPk=new _.WF("addFollowUpSurveyCommand");var Z1z=new _.WF("getSurveyCommand");var jy4=new _.WF("ratingSurveyOptionRenderer");_.ZM=new _.WF("feedbackEndpoint");var z2O=new _.WF("reportHistoryTableCellRenderer"),AHc=new _.WF("reportHistoryTableTextCellRenderer"),Xo4=new _.WF("reportHistoryTableReasonCellRenderer");_.EMO=new _.WF("flagEndpoint");var poS=new _.WF("deleteFlowStepsCommand");_.Ypd=new _.WF("flowNextStepCommand");_.yH9=new _.WF("flowPrevStepCommand");var ItS=new _.WF("getFlowCommand");var DPl=new _.WF("submitFormWithValidationFlowCommand");_.V2E=new _.WF("updateFlowCommand");var gME=function(){IQ.apply(this,arguments)};
_.F(gME,IQ);gME.prototype.getAssociations=function(){return[]};
gME.prototype.getTypeName=function(){return"flowStateEntity"};var e2E=new _.WF("flowFormState");_.hj=new _.WF("flowStepRenderer");var $P9=new _.WF("gameCardRenderer");var h2c=new _.WF("accountLinkingStateChangedCommand");var qpb=function(){IQ.apply(this,arguments)};
_.F(qpb,IQ);qpb.prototype.getAssociations=function(){return[]};
qpb.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var wo9=new _.WF("changeMiniAppPlayStateCommand");var Na4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Na4,_.rc);var qD=[1,2,3];var bnZ=[0,qD,KJE,_.NH,qdb];var Sc9=_.FH(Na4,bnZ),Pb9=_.li(bnZ);var Hn9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Hn9,_.rc);var sQO=[0,_.DC,_.qW];var K39=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(K39,_.rc);var v6c=[0,_.qW,_.DC,-1];var wa=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(wa,_.rc);var On9=_.li([0,1,sQO,_.s7,v6c,_.qW]);var Cb9=new _.WF("miniAppScoreChallengeViewModel");var Gy9=new _.WF("miniGameCardViewModel");var rjz=new _.WF("teaserCardViewModel");var cjE=function(){IQ.apply(this,arguments)};
_.F(cjE,IQ);cjE.prototype.getAssociations=function(){return[]};
cjE.prototype.getTypeName=function(){return"logoEntity"};var ask=new _.WF("feedbackItemRenderer");var RFO=function(){IQ.apply(this,arguments)};
_.F(RFO,IQ);RFO.prototype.getAssociations=function(){return[]};
RFO.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.W3k=new _.WF("playerInterstitialRenderer");var n6N=new _.WF("getKidsBlocklistPickerCommand");_.dD4=new _.WF("updateKidsBlacklistEndpoint");_.Np=new _.WF("likeEndpoint");var mDN,ky9,TaE;mDN=new _.WF("addChatItemAction");ky9=new _.WF("removeChatItemAction");TaE=new _.WF("markChatItemAsDeletedAction");_.tDO=new _.WF("setLiveChatCollapsedStateAction");var MDz=function(){IQ.apply(this,arguments)};
_.F(MDz,IQ);MDz.prototype.getAssociations=function(){return[]};
MDz.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var F34=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(F34,_.rc);F34.prototype.getPayloadCase=function(){return _.F5(this,BaS)};
var BaS=[3,4];var ls9=[0,_.b2,[0,[1,2],_.NH,_.SO,[0,_.wV,1,_.wV]]];var L3E=[0,_.qW,-1];var fsd=[0,[1],_.NH];var bt=[0,[1,2],_.NH,_.SO,[0,_.s7]];var S1=[0,_.qW];var urz=[0,[0,_.$p,_.eM,[0,_.wV,_.KL,_.wV]],1,[0,_.$p]];var QQV=[0,Va];var xDk=[0,Va];var o6d=[0,xDk,QQV];var ind=[0,_.b2,[0,[1,2],_.NH,-1],_.$p];var JjZ=[0,[2],1,_.SO,[0,_.wV,-1,ind]];var UDZ=[0,[1],_.SO,[0,_.wV,_.qW,_.KL,1,ind]];var ZnS=[0,_.eM,-1,hO9,_.s7];var jQ4=[0,[0,I9,-3],-4];var PC=[0,_.$p,-3,_.qW,_.$p,_.G5,_.$p,ls9,_.$p,-2];var HC=[0,_.b2,[0,[1,2],_.NH,-1],_.$p,_.qW];var zFV=[0,[3],bt,[0,[2,3,4],rON,_.NH,-2],_.SO,[0,_.qW],_.DC];var AjO=[0,[3,5],_.qW,_.gV,_.SO,[0,1,_.DC,_.s7],_.s7,_.SO,[0,_.s7,_.DC]];var XSN=[0,2,_.gV,_.qW,-1];var E6V=[0,HqN];var pSc=[0,[3,4],2,NE9,_.NH,_.qW];var Ycl=[0,_.s7,-2,1,_.qW];var yjz=[0,_.qW,-1,_.s7];var Is9=[0,S1,function(){return sw},
S1,_.qW],DDk=[0,_.s7,S1,bt,function(){return sw},
_.qW],sw=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],S1,_.gV,[0,_.$p,1,_.$p,1,_.$p,1,_.s7,-1,S1],[0,1,_.$p,2,_.$p,_.s7,_.$p],1,_.gV,-1,_.qW,_.gV,2,I9,[0,I9,_.gV],_.qW,1,urz,1,bt,_.G5,1,[0,[0,_.b2,[0,_.qW,_.$p,_.s7]]],[0,_.$p,[0,_.DC,[0,_.KL]],_.DC,1,[0,SaO,-1]],_.qW,[0,1,_.qW],76,_.SO,[0,bt,HC,urz,1,[0,_.b2,HC]],1,_.SO,[0,bt,_.qW,_.$p],
_.SO,[0,bt,fsd],_.SO,[0,bt,fsd,_.gV],_.SO,[0,bt,fsd],_.SO,[0,bt,_.b2,S1,bt,vQb],_.SO,[0,bt,S1,_.qW],_.SO,[0,bt,_.$p,PC,-1,_.$p],4,_.SO,[0,bt,_.$p,_.gV,PC,_.$p],_.SO,[0,[4,9],bt,_.s7,_.gV,_.NH,HC,1,urz,_.qW,_.NH,Ycl],_.SO,[0,bt,S1,bt,_.s7,_.qW],_.SO,[0,_.$p,bt,PC,_.$p,_.qW],_.SO,[0,bt,S1,bt,_.s7,_.qW],1,_.SO,[0,bt,_.s7,_.qW,PC],_.SO,[0,bt,_.s7,[0,_.qW,_.gV],_.qW,_.gV,_.qW,_.Hr,-2,3,yjz,_.b2,yjz,yjz,Ycl],_.SO,[0,bt,_.s7,UDZ,_.b2,[0,xDk,JjZ],S1,_.b2,o6d,_.qW,1,_.s7,ZnS,jQ4,$Sb,-1],_.SO,[0,bt,[0,_.KL,
-1,UDZ,_.b2,[0,xDk,JjZ,QQV],[0,_.rC],1,_.wV],S1,_.qW],_.SO,[0,bt,HC,_.qW,[0,_.eM]],_.SO,function(){return DDk},
_.SO,[0,bt,_.gV,_.qW,-1,_.$p],_.SO,[0,[6,7],bt,_.b2,XSN,_.s7,HC,1,_.SO,pSc,_.SO,E6V],_.SO,[0,_.b2,XSN,_.s7,_.$p],_.SO,[0,_.qW,Oh9,-1],_.SO,[0,S1,_.b2,o6d,_.qW],_.SO,[0,bt,S1,_.qW],_.SO,[0,_.Hr,_.qW],_.SO,[0,L3E],_.SO,[0,L3E],_.SO,[0,HC],_.SO,[0,S1,HC],_.SO,function(){return Is9},
_.SO,[0,S1,_.qW],_.SO,[0,S1,_.qW],1,_.SO,[0,_.$p,bt,PC,_.$p,PC],_.SO,[0,_.rC],1,_.SO,[0],1,_.SO,[0,S1,_.s7,bt,_.s7],_.SO,[0,[1,2],_.SO,pSc,_.SO,E6V,_.gV],_.SO,[0,_.rC,HC,AjO,_.qW,_.gV],_.SO,[0,AjO,_.qW,_.gV],_.SO,[0,ZnS,HC,_.$p,jQ4],_.SO,zFV,_.SO,[0],_.SO,[0,_.qW,-1,_.DC],_.SO,[0,S1,_.qW],_.SO,[0,zFV,_.DC,_.qW],_.SO,[0,bt,PC,_.$p],_.SO,[0,bt,PC,_.$p],_.SO,[0,ZnS,jQ4,HC,_.G5,_.$p,$Sb,-1],_.SO,[0,bt,PC,_.$p]];var VDO=[0,_.b2,sw];var g69=_.FH(F34,[0,BaS,1,_.DC,_.SO,[0,[18,22,24],VDO,3,[0,VDO],1,_.DC,[0,_.b2,[0,_.gV,I9],_.gV],1,sw,-1,[0,_.hm,-2,_.G5,_.hm,-1,_.G5,_.hm,ls9,_.hm,-2],gZ9,[!0,_.qW,[0,fsd,2,_.qW,_.gV,_.$p,2,_.qW,_.Hr]],[0,[1,2,3],[5,6],_.SO,[0,_.wV],_.SO,[0,_.wV,-1],_.SO,[0,_.wV],1,_.SO,L3E,_.SO,[0,_.qW]],[0,sw,-1],_.rC,sw,_.SO,sw,[0,VDO],_.DC,sw,_.SO,sw,_.qW,_.SO,sw],_.SO,xuS,_.DC]);var eF9=new _.WF("liveChatEndpoint");var $Dl=new _.WF("liveChatItemContextMenuEndpoint");var hFz=new _.WF("liveChatReplayEndpoint");_.qc9=new _.WF("emojiPickerRenderer");var wS9=new _.WF("liveChatAuthorBadgeViewModel");var NU9=new _.WF("deleteLiveChatMessageCommand");var bcc=new _.WF("liveChatActionEndpoint");var SwN=new _.WF("createLiveChatPollEndpoint");var Ptc=new _.WF("manageLiveChatUserEndpoint");var Hc9=new _.WF("moderateLiveChatEndpoint");_.srZ=new _.WF("sendLiveChatMessageEndpoint");var KOk=new _.WF("sendLiveChatVoteEndpoint");var vDl=new _.WF("clearLocationCommand");var Oc4=new _.WF("resolveLocationCommand");var Ctz=new _.WF("interactionLoggingCommandMetadata");var GD4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(GD4,_.rc);var rTz=function(N,b){return _.lw(N,1,b)};var cTZ=[0,_.$p];var axz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(axz,_.rc);var RlV=function(N,b){return i5(N,1,GD4,b)};axz.prototype.JSC$12555_serializeBinary=whp([0,_.b2,cTZ]);var oMf={SLI_STATUS_UNKNOWN:"SLI_STATUS_UNKNOWN",SLI_STATUS_SUCCESS:"SLI_STATUS_SUCCESS",SLI_STATUS_FAILURE:"SLI_STATUS_FAILURE",SLI_STATUS_TIMEOUT:"SLI_STATUS_TIMEOUT",SLI_STATUS_ABORTED:"SLI_STATUS_ABORTED",SLI_STATUS_CANCELLED:"SLI_STATUS_CANCELLED",SLI_STATUS_REJECTED:"SLI_STATUS_REJECTED"};var WOO={MAIN_APP_WEB_PAGE_TYPE_UNKNOWN:"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN",MAIN_APP_WEB_PAGE_TYPE_BROWSE:"MAIN_APP_WEB_PAGE_TYPE_BROWSE",MAIN_APP_WEB_PAGE_TYPE_SEARCH:"MAIN_APP_WEB_PAGE_TYPE_SEARCH",MAIN_APP_WEB_PAGE_TYPE_WATCH:"MAIN_APP_WEB_PAGE_TYPE_WATCH",MAIN_APP_WEB_PAGE_TYPE_CHANNEL:"MAIN_APP_WEB_PAGE_TYPE_CHANNEL",MAIN_APP_WEB_PAGE_TYPE_PLAYLIST:"MAIN_APP_WEB_PAGE_TYPE_PLAYLIST",MAIN_APP_WEB_PAGE_TYPE_SETTING:"MAIN_APP_WEB_PAGE_TYPE_SETTING",MAIN_APP_WEB_PAGE_TYPE_SHORTS:"MAIN_APP_WEB_PAGE_TYPE_SHORTS"},
nDz={MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN:"MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN",MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE:"MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE",MAIN_APP_WEB_REQUEST_TYPE_LOAD:"MAIN_APP_WEB_REQUEST_TYPE_LOAD"};var N9U={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY"};_.Deo=new _.WF("logFlowLoggingEventCommand");_.mt=new _.WF("loggingContext");var dpz=new _.WF("audioTrackSelectActionCommand");var mpz=new _.WF("captionLanguageSelectActionCommand");var kDS=new _.WF("showAudioTrackPickerActionCommand");var TU9=new _.WF("showCaptionLanguageSelectActionCommand");var t19=new _.WF("dismissDialogEndpoint");var M14=new _.WF("dismissPlayerOverlayCommand");var FO9=new _.WF("hideItemSectionVideosByIdCommand");var BU9=new _.WF("showMiniplayerCommand");var lxz=function(){IQ.apply(this,arguments)};
_.F(lxz,IQ);lxz.prototype.getAssociations=function(){return[]};
lxz.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var LO9=function(){IQ.apply(this,arguments)};
_.F(LO9,IQ);LO9.prototype.getAssociations=function(){return[]};
LO9.prototype.getTypeName=function(){return"downloadStatusEntity"};var fxN=function(){IQ.apply(this,arguments)};
_.F(fxN,IQ);fxN.prototype.getAssociations=function(){return[]};
fxN.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var uyS=function(){IQ.apply(this,arguments)};
_.F(uyS,IQ);uyS.prototype.getAssociations=function(){var N=[];this.delegate.downloadsList&&N.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&N.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&N.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&N.push(this.delegate.refresh);return[].concat(_.IX(new Set(N)))};
uyS.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var QrN=function(){IQ.apply(this,arguments)};
_.F(QrN,IQ);QrN.prototype.getAssociations=function(){var N=[];this.delegate.refresh&&N.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=_.O(this.delegate.downloads),S=b.next();!S.done;S=b.next())N.push.apply(N,_.IX((new xpd(S.value)).getAssociations()));return[].concat(_.IX(new Set(N)))};
QrN.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var xpd=function(){yD.apply(this,arguments)};
_.F(xpd,yD);xpd.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.playlist&&N.push(this.delegate.playlist);this.delegate.videoItem&&N.push(this.delegate.videoItem);this.delegate.playlistItem&&N.push(this.delegate.playlistItem);return[].concat(_.IX(new Set(N)))};var oD4=function(){IQ.apply(this,arguments)};
_.F(oD4,IQ);oD4.prototype.getAssociations=function(){var N=[];this.delegate.localImageEntities&&N.push.apply(N,_.IX(this.delegate.localImageEntities));return[].concat(_.IX(new Set(N)))};
oD4.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ic9=function(){IQ.apply(this,arguments)};
_.F(ic9,IQ);ic9.prototype.getAssociations=function(){var N=[];this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.localImageEntities&&N.push.apply(N,_.IX(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.IX(new Set(N)))};
ic9.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var JTE=function(){IQ.apply(this,arguments)};
_.F(JTE,IQ);JTE.prototype.getAssociations=function(){return[]};
JTE.prototype.getTypeName=function(){return"offlineabilityEntity"};var Upk=function(){IQ.apply(this,arguments)};
_.F(Upk,IQ);Upk.prototype.getAssociations=function(){var N=[];this.delegate.fakeChildren&&N.push.apply(N,_.IX(this.delegate.fakeChildren));return[].concat(_.IX(new Set(N)))};
Upk.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Zc9=function(){IQ.apply(this,arguments)};
_.F(Zc9,IQ);Zc9.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&N.push(this.delegate.offlineVideoPolicy);return[].concat(_.IX(new Set(N)))};
Zc9.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var jrZ=function(){IQ.apply(this,arguments)};
_.F(jrZ,IQ);jrZ.prototype.getAssociations=function(){return[]};
jrZ.prototype.getTypeName=function(){return"continuationTokenEntity"};var zl9=function(){IQ.apply(this,arguments)};
_.F(zl9,IQ);zl9.prototype.getAssociations=function(){var N=[];this.delegate.channelOwner&&N.push(this.delegate.channelOwner);this.delegate.videos&&N.push.apply(N,_.IX(this.delegate.videos));this.delegate.collaboratorChannels&&N.push.apply(N,_.IX(this.delegate.collaboratorChannels));this.delegate.downloadState&&N.push(this.delegate.downloadState);this.delegate.refresh&&N.push(this.delegate.refresh);return[].concat(_.IX(new Set(N)))};
zl9.prototype.getTypeName=function(){return"mainPlaylistEntity"};var ATk=function(){IQ.apply(this,arguments)};
_.F(ATk,IQ);ATk.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.channelContributor&&N.push(this.delegate.channelContributor);return[].concat(_.IX(new Set(N)))};
ATk.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var XCc=function(){yD.apply(this,arguments)};
_.F(XCc,yD);XCc.prototype.getAssociations=function(){var N=[];this.delegate.recommendedVideoMetadata&&N.push.apply(N,_.IX((new EDz(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.IX(new Set(N)))};
var EDz=function(){yD.apply(this,arguments)};
_.F(EDz,yD);EDz.prototype.getAssociations=function(){var N=[];this.delegate.localImageEntities&&N.push.apply(N,_.IX(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.IX(new Set(N)))};var pC4=function(){yD.apply(this,arguments)};
_.F(pC4,yD);pC4.prototype.getAssociations=function(){var N=[];this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);return[].concat(_.IX(new Set(N)))};var YwS=function(){IQ.apply(this,arguments)};
_.F(YwS,IQ);YwS.prototype.getAssociations=function(){var N=[];this.delegate.owner&&N.push(this.delegate.owner);this.delegate.downloadState&&N.push(this.delegate.downloadState);this.delegate.userState&&N.push.apply(N,_.IX((new pC4(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&N.push.apply(N,_.IX((new XCc(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.IX(new Set(N)))};
YwS.prototype.getTypeName=function(){return"mainVideoEntity"};var yTZ=function(){IQ.apply(this,arguments)};
_.F(yTZ,IQ);yTZ.prototype.getAssociations=function(){var N=[];this.delegate.userChannelDetails&&N.push(this.delegate.userChannelDetails);return[].concat(_.IX(new Set(N)))};
yTZ.prototype.getTypeName=function(){return"ytMainChannelEntity"};var IxZ=function(){IQ.apply(this,arguments)};
_.F(IxZ,IQ);IxZ.prototype.getAssociations=function(){var N=[];this.delegate.channelOwner&&N.push(this.delegate.channelOwner);this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&N.push.apply(N,_.IX(this.delegate.localImageEntities));this.delegate.downloadStatus&&N.push(this.delegate.downloadStatus);return[].concat(_.IX(new Set(N)))};
IxZ.prototype.getTypeName=function(){return"ytMainVideoEntity"};var lRU=new _.WF("downloadsPageSmartDownloadsOptInBannerParams");var Qf_=new _.WF("downloadsPageUpsellBannerParams");var Dp4=function(){IQ.apply(this,arguments)};
_.F(Dp4,IQ);Dp4.prototype.getAssociations=function(){return[]};
Dp4.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var V19=function(){IQ.apply(this,arguments)};
_.F(V19,IQ);V19.prototype.getAssociations=function(){return[]};
V19.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var gDE=function(){IQ.apply(this,arguments)};
_.F(gDE,IQ);gDE.prototype.getAssociations=function(){return[]};
gDE.prototype.getTypeName=function(){return"macroMarkerEntity"};var elz=function(){IQ.apply(this,arguments)};
_.F(elz,IQ);elz.prototype.getAssociations=function(){return[]};
elz.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var $pE=function(){IQ.apply(this,arguments)};
_.F($pE,IQ);$pE.prototype.getAssociations=function(){return[]};
$pE.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var hlV=function(){IQ.apply(this,arguments)};
_.F(hlV,IQ);hlV.prototype.getAssociations=function(){return[]};
hlV.prototype.getTypeName=function(){return"playerStateEntity"};var qw9=function(){IQ.apply(this,arguments)};
_.F(qw9,IQ);qw9.prototype.getAssociations=function(){return[]};
qw9.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var wCV=function(){IQ.apply(this,arguments)};
_.F(wCV,IQ);wCV.prototype.getAssociations=function(){return[]};
wCV.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var NtO=function(){IQ.apply(this,arguments)};
_.F(NtO,IQ);NtO.prototype.getAssociations=function(){return[]};
NtO.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.YE=new _.WF("dislikeButtonViewModel");_.pS=new _.WF("likeButtonViewModel");var bi9=new _.WF("videoSummaryContentViewModel");var SPO=new _.WF("videoSummaryParagraphViewModel");var PPl=new _.WF("changeTimelyActionVisibilityCommand");var Hid=new _.WF("hideEngagementPanelEndpoint");var swS=new _.WF("refreshPanelEndpoint");var KW9=new _.WF("scrollToSectionEndpoint");var vAz=new _.WF("seekToVideoTimestampCommand");_.U_=new _.WF("showEngagementPanelEndpoint");var OiE=new _.WF("showTransientPlayerScrimOverlayCommand");var CPd=new _.WF("toggleEngagementPanelCommand");_.Gs9=new _.WF("createBroadcastCommand");var rNE=new _.WF("metadataUpdateCommand");var cN4=function(){IQ.apply(this,arguments)};
_.F(cN4,IQ);cN4.prototype.getAssociations=function(){return[]};
cN4.prototype.getTypeName=function(){return"featuredProductsEntity"};var ayk=function(){IQ.apply(this,arguments)};
_.F(ayk,IQ);ayk.prototype.getAssociations=function(){return[]};
ayk.prototype.getTypeName=function(){return"pinnedProductEntity"};var Rxz=function(){IQ.apply(this,arguments)};
_.F(Rxz,IQ);Rxz.prototype.getAssociations=function(){return[]};
Rxz.prototype.getTypeName=function(){return"trendingOfferEntity"};_.WW9=new _.WF("merchandiseShelfRenderer");var nAE=new _.WF("shoppingContentLineItemViewModel");var d$c=new _.WF("gridMovieRenderer");_.m$c=new _.WF("movieRenderer");var ksS=function(){IQ.apply(this,arguments)};
_.F(ksS,IQ);ksS.prototype.getAssociations=function(){return[]};
ksS.prototype.getTypeName=function(){return"compositeSourceEntity"};var TtV=function(){IQ.apply(this,arguments)};
_.F(TtV,IQ);TtV.prototype.getAssociations=function(){var N=[];this.delegate.compositeSourceKeys&&N.push.apply(N,_.IX(this.delegate.compositeSourceKeys));return[].concat(_.IX(new Set(N)))};
TtV.prototype.getTypeName=function(){return"multiviewStagingEntity"};var tcV=function(){IQ.apply(this,arguments)};
_.F(tcV,IQ);tcV.prototype.getAssociations=function(){var N=[];this.delegate.trackDownloadMetadatas&&N.push.apply(N,_.IX(this.delegate.trackDownloadMetadatas));return[].concat(_.IX(new Set(N)))};
tcV.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Mcb=function(){IQ.apply(this,arguments)};
_.F(Mcb,IQ);
Mcb.prototype.getAssociations=function(){var N=[];this.delegate.downloadedTracks&&N.push.apply(N,_.IX(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&N.push.apply(N,_.IX(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&N.push.apply(N,_.IX(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&N.push.apply(N,_.IX(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&N.push.apply(N,_.IX(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
N.push.apply(N,_.IX(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&N.push.apply(N,_.IX(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&N.push.apply(N,_.IX(this.delegate.metadataOnlyTracks));return[].concat(_.IX(new Set(N)))};
Mcb.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var FWk=function(){IQ.apply(this,arguments)};
_.F(FWk,IQ);FWk.prototype.getAssociations=function(){var N=[];this.delegate.trackDownloadMetadatas&&N.push.apply(N,_.IX(this.delegate.trackDownloadMetadatas));return[].concat(_.IX(new Set(N)))};
FWk.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var BtS=function(){IQ.apply(this,arguments)};
_.F(BtS,IQ);BtS.prototype.getAssociations=function(){var N=[];this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.localImageEntities&&N.push.apply(N,_.IX(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.IX(new Set(N)))};
BtS.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var lyZ=function(){IQ.apply(this,arguments)};
_.F(lyZ,IQ);
lyZ.prototype.getAssociations=function(){var N=[];this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&N.push.apply(N,_.IX(this.delegate.primaryArtists));this.delegate.details&&N.push(this.delegate.details);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.tracks&&N.push.apply(N,_.IX(this.delegate.tracks));this.delegate.share&&N.push(this.delegate.share);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.refresh&&
N.push(this.delegate.refresh);return[].concat(_.IX(new Set(N)))};
lyZ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var LWZ=function(){IQ.apply(this,arguments)};
_.F(LWZ,IQ);LWZ.prototype.getAssociations=function(){var N=[];this.delegate.albumRelease&&N.push(this.delegate.albumRelease);this.delegate.tracks&&N.push.apply(N,_.IX(this.delegate.tracks));return[].concat(_.IX(new Set(N)))};
LWZ.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var fy9=function(){IQ.apply(this,arguments)};
_.F(fy9,IQ);fy9.prototype.getAssociations=function(){var N=[];this.delegate.albumRelease&&N.push(this.delegate.albumRelease);return[].concat(_.IX(new Set(N)))};
fy9.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var uBV=function(){IQ.apply(this,arguments)};
_.F(uBV,IQ);uBV.prototype.getAssociations=function(){var N=[];this.delegate.details&&N.push(this.delegate.details);this.delegate.userDetails&&N.push(this.delegate.userDetails);return[].concat(_.IX(new Set(N)))};
uBV.prototype.getTypeName=function(){return"musicArtist"};
var QwS=function(){IQ.apply(this,arguments)};
_.F(QwS,IQ);QwS.prototype.getAssociations=function(){var N=[];this.delegate.parentArtist&&N.push(this.delegate.parentArtist);return[].concat(_.IX(new Set(N)))};
QwS.prototype.getTypeName=function(){return"musicArtistDetail"};
var x$k=function(){IQ.apply(this,arguments)};
_.F(x$k,IQ);x$k.prototype.getAssociations=function(){var N=[];this.delegate.parentArtist&&N.push(this.delegate.parentArtist);return[].concat(_.IX(new Set(N)))};
x$k.prototype.getTypeName=function(){return"musicArtistUserDetail"};var oA9=function(){IQ.apply(this,arguments)};
_.F(oA9,IQ);oA9.prototype.getAssociations=function(){return[]};
oA9.prototype.getTypeName=function(){return"musicLibraryEdit"};var iiE=function(){IQ.apply(this,arguments)};
_.F(iiE,IQ);iiE.prototype.getAssociations=function(){return[]};
iiE.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var JNE=function(){IQ.apply(this,arguments)};
_.F(JNE,IQ);
JNE.prototype.getAssociations=function(){var N=[];this.delegate.tracks&&N.push.apply(N,_.IX(this.delegate.tracks));this.delegate.refresh&&N.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&N.push(this.delegate.details);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&N.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.entryCollection&&
N.push(this.delegate.entryCollection);this.delegate.share&&N.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&N.push.apply(N,_.IX((new U$9(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.IX(new Set(N)))};
JNE.prototype.getTypeName=function(){return"musicPlaylist"};
var U$9=function(){yD.apply(this,arguments)};
_.F(U$9,yD);U$9.prototype.getAssociations=function(){var N=[];this.delegate.creatorEntity&&N.push(this.delegate.creatorEntity);return[].concat(_.IX(new Set(N)))};var ZiE=function(){IQ.apply(this,arguments)};
_.F(ZiE,IQ);ZiE.prototype.getAssociations=function(){return[]};
ZiE.prototype.getTypeName=function(){return"musicShare"};var jwz=function(){IQ.apply(this,arguments)};
_.F(jwz,IQ);
jwz.prototype.getAssociations=function(){var N=[];this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&N.push.apply(N,_.IX(this.delegate.artists));this.delegate.audioModeVersion&&N.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&N.push(this.delegate.videoModeVersion);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.details&&N.push(this.delegate.details);this.delegate.albumRelease&&N.push(this.delegate.albumRelease);this.delegate.share&&
N.push(this.delegate.share);this.delegate.libraryEdit&&N.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);this.delegate.lyrics&&N.push(this.delegate.lyrics);return[].concat(_.IX(new Set(N)))};
jwz.prototype.getTypeName=function(){return"musicTrack"};
var zxc=function(){IQ.apply(this,arguments)};
_.F(zxc,IQ);zxc.prototype.getAssociations=function(){var N=[];this.delegate.parentTrack&&N.push(this.delegate.parentTrack);return[].concat(_.IX(new Set(N)))};
zxc.prototype.getTypeName=function(){return"musicTrackDetail"};
var ANb=function(){IQ.apply(this,arguments)};
_.F(ANb,IQ);ANb.prototype.getAssociations=function(){var N=[];this.delegate.parentTrack&&N.push(this.delegate.parentTrack);return[].concat(_.IX(new Set(N)))};
ANb.prototype.getTypeName=function(){return"musicTrackUserDetail"};var $e=new _.WF("musicResponsiveListItemRenderer");var dxL=new _.WF("addToPlaylistEndpoint");var Xy9=new _.WF("captionPickerEndpoint");var EAb=new _.WF("suggestStats");var py9=new _.WF("backstageImageUploadEndpoint");var YPO=new _.WF("createBackstagePostDialogEndpoint");_.yN9=new _.WF("createCommentReplyDialogEndpoint");_.Iyd=new _.WF("updateCommentDialogEndpoint");_.D$9=new _.WF("updateCommentReplyDialogEndpoint");var Vcl=new _.WF("menuEndpoint");var dRu=new _.WF("modalEndpoint");var gAS=new _.WF("playlistEditorEndpoint");var exE=new _.WF("copyTextEndpoint");var $$Z,hxd;$$Z=new _.WF("shareEndpoint");hxd=new _.WF("shareEntityEndpoint");_.qPS=new _.WF("shareEntityServiceEndpoint");_.OlE=new _.WF("userFeedbackEndpoint");_.Iv=new _.WF("watchEndpoint");var rrs=new _.WF("watchPlaylistEndpoint");var wyN=new _.WF("addUpcomingEventReminderEndpoint");_.Kc=new _.WF("getCommentsFromInboxCommand");var N2c=new _.WF("notificationOptOutEndpoint");var bGb=new _.WF("recordNotificationInteractionsEndpoint");var SQO=new _.WF("removeUpcomingEventReminderEndpoint");_.DG=new _.WF("getDownloadActionCommand");_.Pnl=new _.WF("offlineOrchestrationActionCommand");var HG9=function(){IQ.apply(this,arguments)};
_.F(HG9,IQ);HG9.prototype.getAssociations=function(){return[]};
HG9.prototype.getTypeName=function(){return"captionTrack"};var sfZ=function(){IQ.apply(this,arguments)};
_.F(sfZ,IQ);sfZ.prototype.getAssociations=function(){return[]};
sfZ.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var KDl=function(){IQ.apply(this,arguments)};
_.F(KDl,IQ);KDl.prototype.getAssociations=function(){return[]};
KDl.prototype.getTypeName=function(){return"offlineVideoPolicy"};var vgd=function(){IQ.apply(this,arguments)};
_.F(vgd,IQ);vgd.prototype.getAssociations=function(){return[]};
vgd.prototype.getTypeName=function(){return"offlineVideoStreams"};var OGE=function(){IQ.apply(this,arguments)};
_.F(OGE,IQ);OGE.prototype.getAssociations=function(){var N=[];this.delegate.transfer&&N.push(this.delegate.transfer);this.delegate.adsPlaybackData&&N.push.apply(N,_.IX(this.delegate.adsPlaybackData));this.delegate.drmLicense&&N.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&N.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.IX(new Set(N)))};
OGE.prototype.getTypeName=function(){return"playbackData"};var CnS=function(){IQ.apply(this,arguments)};
_.F(CnS,IQ);CnS.prototype.getAssociations=function(){return[]};
CnS.prototype.getTypeName=function(){return"refresh"};var Gl9=function(){IQ.apply(this,arguments)};
_.F(Gl9,IQ);Gl9.prototype.getAssociations=function(){var N=[];this.delegate.offlineVideoStreams&&N.push.apply(N,_.IX(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&N.push.apply(N,_.IX(this.delegate.captionTrack));return[].concat(_.IX(new Set(N)))};
Gl9.prototype.getTypeName=function(){return"transfer"};var rDk=function(){IQ.apply(this,arguments)};
_.F(rDk,IQ);rDk.prototype.getAssociations=function(){return[]};
rDk.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var cDd=new _.WF("showMoreDrawerCommand");var aRc=new _.WF("updateEngagementPanelContentCommand");var RYd=new _.WF("getPdgBuyFlowCommand");var WDb=new _.WF("liveChatPurchaseMessageEndpoint");var ngN=new _.WF("openSuperStickerBuyFlowCommand");var dZl=new _.WF("updatePdgFeatureEnablementCommand");var mZ4=function(){IQ.apply(this,arguments)};
_.F(mZ4,IQ);mZ4.prototype.getAssociations=function(){return[]};
mZ4.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var kl4=function(){IQ.apply(this,arguments)};
_.F(kl4,IQ);kl4.prototype.getAssociations=function(){return[]};
kl4.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.T29=new _.WF("pdgCommentChipRenderer");_.t$4=new _.WF("permissionRoleBottomBarRenderer");_.M$k=new _.WF("updatePermissionRoleCommand");var FD4=new _.WF("prefetchWatchCommand");var B2z=new _.WF("updatePlayerErrorMessageCommand");var OKa=new _.WF("toggleCaptionsVisibilityCommand");var lRb=new _.WF("playerDisclosureViewModel");_.LDk=new _.WF("quickActionsViewModel");var fRZ=new _.WF("playerResponse");var uok=new _.WF("playlistRenderer");_.Qfl=new _.WF("playlistVideoListRenderer");_.vC=new _.WF("playlistEditEndpoint");var xZz=new _.WF("createImagePollCommand");var ogZ=new _.WF("createQuizCommand");var iGz=new _.WF("quizRenderer");var JD9=new _.WF("uploadedVideoRenderer");var UZb=new _.WF("decorateMessageEndpoint");var ZGk=new _.WF("lpOfferCardOptionViewModel");var jfd=new _.WF("sfvAudioItemPlaybackCommand");var zYV=function(){IQ.apply(this,arguments)};
_.F(zYV,IQ);zYV.prototype.getAssociations=function(){return[]};
zYV.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Ow=new _.WF("reelNonVideoContentEndpoint");_.kn=new _.WF("reelWatchEndpoint");var ADb=new _.WF("reelActionBarViewModel");_.Cc=new _.WF("reelItemRenderer");var Xt9=new _.WF("reelMetapanelViewModel");_.GD=new _.WF("reelNonVideoContentRenderer");_.Eg4=new _.WF("reelPlayerOverlayRenderer");var ptZ=new _.WF("shortsLockupViewModel");var YQz=new _.WF("sponsorButtonViewModel");var yD9=new _.WF("reelItemWatchResponse");var IRl=new _.WF("textBadgeRenderer");_.rU=new _.WF("buttonRenderer");_.cC=new _.WF("toggleButtonRenderer");var Thb=new _.WF("switchButtonViewModel");_.DZb=new _.WF("confirmDialogRenderer");var V$z;V$z=new _.WF("menuRenderer");_.ggl=new _.WF("menuFlexibleItemRenderer");var eYS=new _.WF("pollRenderer");_.$ZO=new _.WF("backgroundPromoRenderer");var qQz;_.hYk=new _.WF("chipCloudRenderer");qQz=new _.WF("chipCloudChipRenderer");var wt4=new _.WF("dropdownRenderer");var NDc=new _.WF("gridVideoRenderer");_.bN9=new _.WF("itemSectionRenderer");_.SMc=new _.WF("messageRenderer");var P$b=new _.WF("sortFilterHeaderRenderer");_.ar=new _.WF("videoRenderer");var HNk=new _.WF("resolveUrlCommandMetadata");var sHN=function(){IQ.apply(this,arguments)};
_.F(sHN,IQ);sHN.prototype.getAssociations=function(){return[]};
sHN.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.KLk=new _.WF("getAnswerCommand");_.nX=new _.WF("searchEndpoint");var vuO=new _.WF("genAiRichTextViewModel");var WF9=new _.WF("overviewAnswerViewModel");var ON9=new _.WF("videoOverviewViewModel");var C$d=new _.WF("addToPlaylistServiceEndpoint");var GFb=new _.WF("clearSearchHistoryEndpoint");var rRV=new _.WF("clearWatchHistoryEndpoint");var cR4=new _.WF("webSerializedServiceEndpointExtension");_.aiO=new _.WF("createCommentEndpoint");var Ru9=new _.WF("createCommentReplyEndpoint");var WL9=new _.WF("performCommentActionEndpoint");var nul=new _.WF("updateCommentEndpoint");var dJ9=new _.WF("updateCommentReplyEndpoint");_.Rr=new _.WF("createPlaylistServiceEndpoint");var mJ4=new _.WF("deletePlaylistEndpoint");var kFd=new _.WF("deleteVideoEndpoint");var nia=new _.WF("getReportFormEndpoint");var TDl=new _.WF("modifyChannelNotificationPreferenceEndpoint");var fXO;_.Wm=new _.WF("offlinePlaylistEndpoint");fXO={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_SYNC:"ACTION_SYNC",ACTION_APPROVE:"ACTION_APPROVE",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY",ACTION_TOGGLE_AUTO_DOWNLOAD:"ACTION_TOGGLE_AUTO_DOWNLOAD"};var us9;_.a2=new _.WF("offlineVideoEndpoint");us9={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_DOWNLOAD_IMMEDIATELY:"ACTION_DOWNLOAD_IMMEDIATELY",ACTION_REDOWNLOAD:"ACTION_REDOWNLOAD",ACTION_RENEW:"ACTION_RENEW",ACTION_RENEW_WITH_PROMPT:"ACTION_RENEW_WITH_PROMPT",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY"};var tz9=new _.WF("pingingEndpoint");_.MzV=new _.WF("selectActiveIdentityEndpoint");var FL9=new _.WF("setSettingEndpoint");var ww9=new _.WF("undoFeedbackEndpoint");var BDz=new _.WF("unsubscribeEndpoint");_.lik=new _.WF("updatedMetadataEndpoint");var LLZ=function(){IQ.apply(this,arguments)};
_.F(LLZ,IQ);LLZ.prototype.getAssociations=function(){return[]};
LLZ.prototype.getTypeName=function(){return"settingEntity"};_.fiE=new _.WF("updateLocalAppSettingCommand");var uOZ=new _.WF("saveImageToDeviceEndpoint");var QHN=new _.WF("shareImageCommand");var xJ4=new _.WF("sharingProviderDataCommand");var ouZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ouZ,_.rc);var iNE=[0,_.qW,-1];ouZ.prototype.JSC$12762_serializeBinary=whp(iNE);var JRl=_.li(iNE);var UJS=new _.WF("userMentionSuggestionRenderer");var ZN9=new _.WF("liveChatTunnelCommand");var jHV=new _.WF("showSponsorshipsGiftOfferDialogCommand");var zuE=new _.WF("sponsorshipsScrollableShelfViewModel");var ARO=new _.WF("updateUpcomingEventReminderButtonStateCommand");var XcO=new _.WF("upcomingEventReminderButtonStateRenderer");var Eu9=new _.WF("subscribeEndpoint");var pc9=new _.WF("registerTasksCommand");var YME=new _.WF("hideSheetCommand");var yRl=new _.WF("hideSnackbarCommand");var Ii4=new _.WF("showDialogCommand");_.Mb=new _.WF("showSheetCommand");var DJd=new _.WF("showSnackbarCommand");var Vzc=function(){IQ.apply(this,arguments)};
_.F(Vzc,IQ);Vzc.prototype.getAssociations=function(){return[]};
Vzc.prototype.getTypeName=function(){return"chipEntity"};var gub=function(){IQ.apply(this,arguments)};
_.F(gub,IQ);gub.prototype.getAssociations=function(){return[]};
gub.prototype.getTypeName=function(){return"dismissState"};_.UW=new _.WF("avatarViewModel");var euZ=new _.WF("badgeViewModel");_.WC=new _.WF("buttonViewModel");_.nc=new _.WF("chipViewModel");var $JV=new _.WF("contentPreviewImageViewModel");var hud=new _.WF("decoratedAvatarViewModel");_.Axp=new _.WF("engagementBarViewModel");_.qMO=new _.WF("imageBannerViewModel");var wcb=new _.WF("lockupContentMetadataRowExtension");_.N3b=new _.WF("lockupMetadataViewModel");_.b59=new _.WF("lockupViewModel");var SNE=new _.WF("avatarStackViewModel");_.P8d=new _.WF("contentMetadataViewModel");var H5E=function(){IQ.apply(this,arguments)};
_.F(H5E,IQ);H5E.prototype.getAssociations=function(){return[]};
H5E.prototype.getTypeName=function(){return"pageHeaderEntity"};_.snb=new _.WF("pageHeaderViewModel");var KTS=new _.WF("snackbarViewModel");var vJb=new _.WF("thumbnailHoverOverlayToggleActionsViewModel");_.dU=new _.WF("toggleButtonViewModel");var O59=function(){IQ.apply(this,arguments)};
_.F(O59,IQ);O59.prototype.getAssociations=function(){return[]};
O59.prototype.getTypeName=function(){return"votingEntity"};_.XGp=new _.WF("votingViewModel");var C84=new _.WF("sectionHeaderViewModel");var Grl=new _.WF("notifyDropdownOptionSelectedCommand");var $lu=new _.WF("listViewModel");_.F$=new _.WF("listItemViewModel");var rCc=new _.WF("dialogHeaderViewModel");var cCc=function(){IQ.apply(this,arguments)};
_.F(cCc,IQ);cCc.prototype.getAssociations=function(){return[]};
cCc.prototype.getTypeName=function(){return"dataFreshnessEntity"};var PXe=new _.WF("suspenseViewModel");var acb=new _.WF("tooltipViewModel");var Rmz=function(){IQ.apply(this,arguments)};
_.F(Rmz,IQ);Rmz.prototype.getAssociations=function(){return[]};
Rmz.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var WTN=function(){IQ.apply(this,arguments)};
_.F(WTN,IQ);WTN.prototype.getAssociations=function(){return[]};
WTN.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var nJV=function(){IQ.apply(this,arguments)};
_.F(nJV,IQ);nJV.prototype.getAssociations=function(){return[]};
nJV.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.dTE=new _.WF("transcriptSubmitCaptionCorrectionCommand");var mTb=function(){IQ.apply(this,arguments)};
_.F(mTb,IQ);mTb.prototype.getAssociations=function(){return[]};
mTb.prototype.getTypeName=function(){return"buttonEntity"};var sge=new _.WF("unpluggedStringRunImage");var krk=new _.WF("tabViewModel");var T3N=new _.WF("tabbedViewModel");var t6b=function(){IQ.apply(this,arguments)};
_.F(t6b,IQ);t6b.prototype.getAssociations=function(){return[]};
t6b.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.M69=new _.WF("updateDescriptionAction");var FT9=new _.WF("updateToggleButtonTextAction");var B3E=new _.WF("showFullscreenPlayerControlsCommand");var lc9=new _.WF("updateVideoMetadataCommand");_.LT4=new _.WF("autoplaySwitchButtonRenderer");var zN;_.fc9=new _.WF("multiMarkersPlayerBarRenderer");zN=new _.WF("chapterRenderer");var uLZ=new _.WF("heatMarkerRenderer");var rYI=new _.WF("heatmapRenderer");var QnN=new _.WF("smartSkipPlayerScrimOverlayRenderer");var xT9=new _.WF("timedMarkerDecorationRenderer");var lDY=new _.WF("postWebToNativeMessageCommand");var JI=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(JI,_.rc);JI.prototype.getMethodName=function(){return _.xp(this,1)};var oJ9=[0,_.qW,-2];JI.prototype.JSC$12784_serializeBinary=whp(oJ9);var i5N=_.FH(JI,oJ9);var JCN=new _.WF("whitelistEditEndpoint");var UTd=new _.WF("clearUrlParamCommand");var Z5b=new _.WF("commerceActionCommand");_.jn9=new _.WF("getPaymentInstrumentsParamsCommand");var zm9=new _.WF("getPaymentsClientTokenCommand");var AC9=new _.WF("googlePaymentBillingCommand");var XO4=new _.WF("googlePaymentPurchaseManagerCommand");_.EJO=new _.WF("logGtmCommand");var pOS=new _.WF("updateCardItemOnClickCommand");_.YNk=new _.WF("ypcPauseSubscriptionCommand");_.yCN=new _.WF("ypcResumeSubscriptionCommand");var IcV=function(){IQ.apply(this,arguments)};
_.F(IcV,IQ);IcV.prototype.getAssociations=function(){return[]};
IcV.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var DTZ=function(){IQ.apply(this,arguments)};
_.F(DTZ,IQ);DTZ.prototype.getAssociations=function(){return[]};
DTZ.prototype.getTypeName=function(){return"commerceCartListEntity"};var V69=function(){IQ.apply(this,arguments)};
_.F(V69,IQ);V69.prototype.getAssociations=function(){return[]};
V69.prototype.getTypeName=function(){return"iconBadgeEntity"};var gJl=function(){IQ.apply(this,arguments)};
_.F(gJl,IQ);gJl.prototype.getAssociations=function(){return[]};
gJl.prototype.getTypeName=function(){return"pdpStateEntity"};var emc=function(){IQ.apply(this,arguments)};
_.F(emc,IQ);emc.prototype.getAssociations=function(){return[]};
emc.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var S3_=new _.WF("ypcOffersEndpoint");var $T4=new _.WF("cardItemRenderer"),hmc=new _.WF("cardItemTextRenderer");var qNk=new _.WF("commerceCartItemQuantityPickerRenderer");var wOk=new _.WF("linkCardRenderer");var mUe=new _.WF("quantityIncrementerButtonViewModel");var N4N=new _.WF("quantityIncrementerViewModel");var bWk=new _.WF("themedImageViewModel");_.SDc=new _.WF("ypcCancelRecurrenceEndpoint");var Pkb=new _.WF("ypcCompleteTransactionEndpoint");_.HW9=new _.WF("ypcGetCartEndpoint");_.gx=new _.WF("ypcGetOffersEndpoint");_.mO=new _.WF("ypcHandleTransactionEndpoint");var sDV=new _.WF("ypcLogWalletAnalyticDataEndpoint");_.Kq9=new _.WF("ypcRedeemCodeEndpoint");var vtb=new _.WF("ypcUpdateFopEndpoint");BS(Fr(1),tj(4));X5N((new MessageChannel).port2);var OW9=function(){this.register=new Map},JHI=function(N,b,S){N=N+"_"+b;
kD.register.has(N)?S=kD.register.get(N):(S=S(),kD.register.set(N,S));return S},CkE=function(N){N=_.O(N.register.values());
for(var b=N.next();!b.done;b=N.next())_.nS(b.value,"ABORTED")};
OW9.prototype.clear=function(){CkE(this);this.register.clear()};
var kD=new OW9;var ata=Date.now().toString();var nMe=WpY();var BRL={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,SHARE:7,PUSH_NOTIFICATIONS:8,RICH_GRID_WATCH:9,UNPLUGGED_BROWSE:10,PICTURE_IN_PICTURE: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 GqO;GqO=1;_.f6=function(N){this.veData=N};
_.FA=function(N){return new _.f6({trackingParams:N})};
_.OW=function(N,b,S,P,H,K){var C=GqO++;return new _.f6({veType:N,veCounter:C,elementIndex:S,dataElement:b,youtubeData:P,jspbYoutubeData:H,loggingDirectives:K})};
_.v=_.f6.prototype;
_.v.getAsJson=function(){var N={};this.veData.trackingParams!==void 0?N.trackingParams=this.veData.trackingParams:(N.veType=this.veData.veType,this.veData.veCounter!==void 0&&(N.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(N.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(N.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(N.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(N.isCounterfactual=!0);
return N};
_.v.getAsJspb=function(){var N=new vRd;this.veData.trackingParams!==void 0?N.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.ZC(N,2,this.veData.veType),this.veData.veCounter!==void 0&&_.ZC(N,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.ZC(N,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.lw(N,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();_.xI(N,7,b)}this.veData.youtubeData!==void 0&&_.xI(N,8,this.veData.jspbYoutubeData);
return N};
_.v.toString=function(){return JSON.stringify(this.getAsJson())};
_.v.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.v.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.aB("yt_logging_screen.getRootVeType",t2f);_.aB("yt_logging_screen.getCurrentCsn",_.Qh);_.aB("yt_logging_screen.getCttAuthInfo",xy);_.aB("yt_logging_screen.setCurrentScreen",_.iZ);var rJ4=function(){this.events=new Map},cJk=function(N){var b=[];
N=_.O(N.events.values());for(var S=N.next();!S.done;S=N.next())b.push(S.value);return b};
rJ4.prototype.clear=function(){this.events.clear()};var RyV=function(){this.logTransport=new au9;this.loggedEventRegister=new rJ4;this.unloggedEventRegister=new rJ4;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12821_flushTimer=new _.Lx(this.flushInterval);this.JSC$12821_flushTimer.listen("tick",this.flush,!1,this)};
RyV.prototype.flush=function(){if(this.eventsCount){var N={loggedEvents:cJk(this.loggedEventRegister),unloggedEvents:cJk(this.unloggedEventRegister)};if(_.T("export_player_version_to_ytconfig")){var b;(b=_.Vg("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var S=_.Vg("PLAYER_CLIENT_VERSION");if(S){S=S.split("-");var P="";S.length>1&&(P=S[S.length-1]);S=cHu(P.startsWith("canary_experiment")?"canary":P.startsWith("canary_control")?"control":"none")}else S=
"CLIENT_CANARY_STATE_UNKNOWN";N.dimensions={playerClientVersion:b,playerCanaryState:S}}this.logTransport.flush(N);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12821_flushTimer.enabled&&this.JSC$12821_flushTimer.stop()}};
var WqE=function(N){TD==null&&(TD=new RyV);var b=TD;var S=b.loggedEventRegister;N.dimensions=N.dimensions||{};N.dimensions.csn=_.Qh()||"";var P=fts(N.dimensions).join(";");if(N.records!=null)if(S.events.has(P)){var H;(H=S.events.get(P).records)==null||H.push.apply(H,_.IX(N.records))}else S.events.set(P,N);b.JSC$12821_flushTimer.enabled||b.JSC$12821_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var au9=function(){};
au9.prototype.flush=function(N,b){_.T("enable_client_sli_logging")&&_.Dn("sliEventBatch",N,{sendIsolatedPayload:!!b})};var TD;var kg4;kg4=function(N){var b=mqZ;N=N===void 0?{}:N;b=b.name;var S=i1b("SUCCESS");WqE({dimensions:N,records:[{name:b,state:"SLI_STATE_END",status:S}]})};
_.UPs=function(N,b,S,P){this.name=N;this.sliId=b;this.timeoutMs=S;this.statusOnTimeout=P;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.UPs.prototype.getId=function(){return this.sliId};
_.Wp=function(N,b){b=b===void 0?{}:b;N.ongoing||(N.ongoing=!0,N.dimensions=b,N.logSliId=Sr9(),WqE({dimensions:N.dimensions,records:[{name:N.name,state:"SLI_STATE_START",sliId:N.logSliId}]}),N.timeoutMs>0&&(N.timeoutHandle=setTimeout(function(){_.nS(N,N.statusOnTimeout)},N.timeoutMs)))};
_.nS=function(N,b){N.ongoing&&(N.timeoutMs>0&&clearTimeout(N.timeoutHandle),N.ongoing=!1,b={dimensions:N.dimensions,records:[{name:N.name,status:i1b(b),state:"SLI_STATE_END",sliId:N.logSliId}]},kD.register.delete(N.name+"_"+N.sliId),WqE(b))};var mqZ=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var TZz=function(){IQ.apply(this,arguments)};
_.F(TZz,IQ);TZz.prototype.getAssociations=function(){return[]};
TZz.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var tJc=new _.WF("highlightTextDecoratorColorMapExtension");var MJS=new _.WF("styleRunColorMapExtension");var poL=_.$E(["data-"]),ItL={};var V2Y={};var tT=function(N){this.wrappedPromise_=N===void 0?null:N;this.state_=0;this.JSC$12852_value_=null};
tT.prototype.then=function(N,b,S){return this.wrappedPromise_?this.wrappedPromise_.then(N,b,S):this.state_===1&&N?(N=N.call(S,this.JSC$12852_value_))&&typeof N.then==="function"?N:_.Mp(N):this.state_===2&&b?(N=b.call(S,this.JSC$12852_value_))&&typeof N.then==="function"?N:_.FMd(N):this};
tT.prototype.getValue=function(){return this.JSC$12852_value_};
tT.prototype.isRejected=function(){return this.state_==2};
wWz(tT);_.FMd=function(N){var b=new tT;N=N===void 0?null:N;b.state_=2;b.JSC$12852_value_=N===void 0?null:N;return b};
_.Mp=function(N){var b=new tT;N=N===void 0?null:N;b.state_=1;b.JSC$12852_value_=N===void 0?null:N;return b};var Ona="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var BZN=["load","abort","error"],Fy=function(N,b,S){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12872_maxAspectRatio_=N;this.disableAnimation_=b===void 0?!1:b;this.disableExifRotation_=S===void 0?!1:S;this.JSC$12872_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12872_reject_=this.resolve_=null};
Fy.prototype.transform=function(N){var b=this;this.mime_=N.type;GI(OUN(N),this.dataUrlRead_,this.readError_,this);GI(v9Z(N.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(S,P){b.resolve_=S;b.JSC$12872_reject_=P})};
Fy.prototype.dataUrlRead_=function(N){this.dataUrl_=N;this.angle_!=null&&lU9(this)};
Fy.prototype.exifRead_=function(N){if(this.disableExifRotation_)this.angle_=0;else{a:if(N=new DataView(N),N.byteLength<2||N.getUint16(0)!==65496)N=-2;else{for(var b=2,S=N.byteLength;b<S;){var P=N.getUint16(b),H=N.getUint16(b+2);if(P===65505){b+=4;P=N.getUint32(b);H=N.getUint16(b+4);if(P!==1165519206||H!==0)break;b+=6;P=N.getUint16(b)===18761;b+=N.getUint32(b+4,P);H=N.getUint16(b,P);b+=2;for(var K=0;K<H;K++){if(N.getUint16(b,P)===274){b+=8;N=N.getUint16(b,P);break a}b+=12}}else if(P>>8!==255)break;
else b+=H+2}N=-1}switch(N){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&lU9(this)};
Fy.prototype.readError_=function(){this.JSC$12872_reject_()};
var lU9=function(N){TS(N.JSC$12872_image_,BZN,N.completeTransform_,!1,N);N.JSC$12872_image_.src=_.VK(N.dataUrl_).toString();N.JSC$12872_image_.src!=DB.toString()&&N.JSC$12872_image_.src.substr(0,11)==="data:image/"||N.JSC$12872_reject_()};
Fy.prototype.completeTransform_=function(){if(this.JSC$12872_image_.src!=DB.toString()){var N=_.VK(this.dataUrl_),b=this.JSC$12872_image_.naturalHeight?this.JSC$12872_image_.naturalWidth/this.JSC$12872_image_.naturalHeight:null;this.invalidAspectRatio=b>this.JSC$12872_maxAspectRatio_||b<1/this.JSC$12872_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var S=this.JSC$12872_image_.naturalWidth,P=this.JSC$12872_image_.naturalHeight,H=b=0,K=this.JSC$12872_image_.naturalHeight?this.JSC$12872_image_.naturalWidth/
this.JSC$12872_image_.naturalHeight:null;K>this.JSC$12872_maxAspectRatio_?(S=this.JSC$12872_maxAspectRatio_*P,b=(S-this.JSC$12872_image_.naturalWidth)/2,this.cropped=!0):K<1/this.JSC$12872_maxAspectRatio_?(P=this.JSC$12872_maxAspectRatio_*S,H=(P-this.JSC$12872_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)K=S,S=P,P=K,K=b,b=H,H=K;switch(this.angle_){case 90:H-=S;break;case 180:b-=S;H-=P;break;case 270:b-=
P}this.cropped||this.angle_%360!==0?(N=document.createElement("canvas"),N.width=S||1,N.height=P||1,this.JSC$12872_image_.naturalWidth&&this.JSC$12872_image_.naturalHeight&&(S=N.getContext("2d"),S.rotate(Math.PI/180*this.angle_),S.drawImage(this.JSC$12872_image_,b,H,this.JSC$12872_image_.naturalWidth,this.JSC$12872_image_.naturalHeight)),this.transformedData=_.VK(N.toDataURL(this.mime_))):this.transformedData=N}else this.transformedData=N;this.resolve_(this)}};var BC=function(N,b){_.uW.call(this,N);this.value=b};
_.F(BC,_.uW);
var lt=function(N,b,S,P,H,K,C){C=C===void 0?!1:C;_.J1.call(this);var G=this;this.JSC$12877_url_=N;this.channelId_=b;this.maxFileSizeMb_=S;this.JSC$12877_maxAspectRatio_=P;this.dropZoneEl_=H;this.rejectInvalidAspectRatio_=C;this.selectButtonEl_=K;this.JSC$12877_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new ib(this.dropZoneEl_);this.selectOverlay_=new Jj(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12877_image_=this.transfer_=null;this.handler_=new _.fx(this);_.QS(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(K,"click",function(){G.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.F(lt,_.J1);lt.prototype.disposeInternal=function(){for(var N=this.selectButtonEl_.nextSibling;N&&N.parentNode&&N.tagName=="INPUT";)N.parentNode.removeChild(N),N=this.selectButtonEl_.nextSibling;this.cancel();_.J1.prototype.disposeInternal.call(this)};
lt.prototype.uploadPromise=function(){if(this.JSC$12877_image_==null)return null;this.uploadPromise_||LMd(this);return this.uploadPromise_};
lt.prototype.cancel=function(){fU4(this);this.JSC$12877_image_=null};
var fU4=function(N){N.transfer_&&N.transfer_.cancel();N.transfer_=null;N.uploadPromise_=null;N.resolve_=null;N.JSC$12877_reject_=null},LMd=function(N){fU4(N);
N.transfer_=_.hRz(N.JSC$12877_url_,{"X-YouTube-ChannelId":N.channelId_},N.JSC$12877_image_);N.handler_.listenOnce(N.transfer_,"l",N.JSC$12879_onUploadComplete_);N.handler_.listenOnce(N.transfer_,"n",N.onUploadError_);N.transfer_.run();N.uploadPromise_=new Promise(function(b,S){N.resolve_=b;N.JSC$12877_reject_=S})};
_.v=lt.prototype;_.v.onChange_=function(N){N.files.length&&(this.JSC$12877_image_=N.files[0],this.JSC$12877_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12877_image_=null,this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(LMd(this),(new Fy(this.JSC$12877_maxAspectRatio_)).transform(this.JSC$12877_image_).then((0,_.pT)(this.onPreview_,this),(0,_.pT)(this.onPreviewError_,this))))};
_.v.onPreview_=function(N){if(N.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12877_image_=null),this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;N.cropped&&this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.CHANGE_EVENT",N.transformedData))};
_.v.onPreviewError_=function(){this.JSC$12877_image_=null;this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.v.onHover_=function(N){N.stopPropagation();N.preventDefault();if(N.type==="dragover")N=!0;else if(N.type==="dragleave")N=!1;else return;this.dispatchEvent(new BC("yt.comments.ImageUploadOverlay.HOVER_EVENT",N))};
_.v.JSC$12879_onUploadComplete_=function(){var N=(0,_.FoE)(this.transfer_.getResponseText());this.resolve_(N.encryptedBlobId)};
_.v.onUploadError_=function(){this.JSC$12877_reject_();fU4(this)};var ulb=function(N){N=N||{};var b={},S={};this.url=N.url||"";this.args=N.args||_.Vm.clone(b);this.assets=N.assets||{};this.attrs=N.attrs||_.Vm.clone(S);this.fallback=N.fallback||null;this.fallbackMessage=N.fallbackMessage||null;this.html5=!!N.html5;this.disable=N.disable||{};this.loaded=!!N.loaded;this.messages=N.messages||{}};
ulb.prototype.clone=function(){var N=new ulb,b;for(b in this)if(this.hasOwnProperty(b)){var S=this[b];_.bL(S)=="object"?N[b]=_.Vm.clone(S):N[b]=S}return N};var Q8E,xqV,o34,e8,Jrd,UqV,ZH4,j8Z,z0S,Ar4,X29,E39,p2z,Y$b,yrN,IUd,Dqb,VJS,g39,e0b,$q9,h0k,q$Z,w2Z,NlN,bCS,SUb,PUV,HCZ,Uwo,sL4,Kml,vN9,OCO,CUZ,Ga9,ra9,ca9,aSO,R$b,Jxo,Wmc,nNZ,d1Z,m19,kaV,TlV,tq9,MqO,Fmc,Bll,lSV,LmO,fSl,u3E,QLV,Lc,x19,oNS,iC9,JaV,U1S,ZCd,jLz,z$c,AaZ,X8Z,ENE,p8d,YUz,yaz,ISZ,D19,VqO,gN9,e$E,o5e,$1b,h$c,qUE,w8b,NSO,bZd,SJk,PrV,HZN,saV,KIl,v8k,OZz,Cr4,GH9,r$E,c$9,a99,R79,WIO,n8Z,di9,mil,kH9,TSd;Q8E=["account/accounts_list"];xqV=["acknowledge_channel_tou_strike"];o34=["notification/add_upcoming_event_reminder"];
_.iHV=["att/get"];e8=["browse","music/browse","streaming_browse","unplugged/browse"];Jrd=["channel/claim_legacy_youtube_channel"];UqV=["history/clear_search_history"];ZH4=["history/clear_watch_history"];j8Z=["comment/perform_comment_action"];z0S=["comment/get_comment_replies"];Ar4=["ypc/commerce_action"];X29=["backstage/create_post"];E39=["live/create_broadcast"];p2z=["channel/create_channel"];Y$b=["comment/create_comment_reply"];yrN=["comment/create_comment"];IUd=["live_chat/create_poll"];Dqb=["playlist/create"];
VJS=["decorate_message"];g39=["live_chat/delete_message"];e0b=["playlist/delete"];$q9=["video/delete"];h0k=["like/dislike"];q$Z=["dismissal/dismiss"];w2Z=["flag/flag"];NlN=["flow"];bCS=["account/account_menu"];SUb=["playlist/get_add_to_playlist"];PUV=["get_answer"];HCZ=["channel/get_channel_creation_form"];Uwo=["offline/get_download_action"];sL4=["kids/get_kids_blocklist_picker"];Kml=["live_chat/get_item_context_menu"];vN9=["live_chat/get_live_chat_message_buy_flow"];OCO=["live_chat/get_live_chat_replay"];
CUZ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Ga9=["live_chat/get_live_chat_super_sticker_buy_flow"];ra9=["notification/get_notification_menu"];ca9=["playlist/get_settings_editor"];aSO=["backstage/get_post_video_preview"];R$b=["account/get_profile_card"];Jxo=["share/get_share_panel"];Wmc=["share/get_sharing_provider_data"];nNZ=["get_survey"];d1Z=["notification/get_unseen_count"];m19=["get_user_mention_suggestions"];kaV=["get_watch"];TlV=["guide"];
tq9=["feedback"];MqO=["kids/update_blacklist"];Fmc=["like/like"];Bll=["live_chat/live_chat_action"];lSV=["live_chat/manage_user"];LmO=["video_manager/metadata_update"];fSl=["live_chat/moderate"];u3E=["notification/modify_channel_preference"];QLV=["notification/opt_out"];Lc=["get_panel","get_posts_by_host_panel"];x19=["player"];oNS=["browse/edit_playlist"];iC9=["notification/record_interactions"];JaV=["reel/reel_item_watch"];U1S=["reel/reel_watch_sequence"];ZCd=["like/removelike"];jLz=["notification/remove_upcoming_event_reminder"];
z$c=["flag/get_form"];AaZ=["miniapp/report_value"];X8Z=["navigation/resolve_url"];ENE=["channel/reveal_business_email"];p8d=["in_video/search"];YUz=["search","sfv/search","unplugged/search"];yaz=["live_chat/send_message"];ISZ=["live_chat/send_live_chat_vote"];D19=["account/set_setting"];VqO=["submit_caption_correction"];gN9=["submit_form"];e$E=["subscription/subscribe"];o5e=["get_transcript"];$1b=["resolve_location","unplugged/resolve_location"];h$c=["subscription/unsubscribe"];qUE=["backstage/update_post"];
w8b=["channel_edit/update_channel_page_settings"];NSO=["comment/update_comment_reply"];bZd=["comment/update_comment"];SJk=["comment/update_comments_settings"];PrV=["creator/update_creator_channel"];HZN=["pdg/update_enablement"];saV=["updated_metadata"];KIl=["channel_edit/validate_channel_handle"];v8k=["verify_age"];OZz=["next","unplugged/watch_next"];Cr4=["whitelist/edit"];GH9=["ypc/cancel_recurrence"];r$E=["ypc/complete_transaction"];c$9=["ypc/get_cart"];a99=["ypc/get_fix_instrument_params"];
R79=["ypc/get_offers"];WIO=["ypc/get_payment_instruments_params"];n8Z=["ypc/handle_transaction"];di9=["ypc/log_payment_server_analytics"];mil=["ypc/pause_subscription"];kH9=["ypc/redeem_code"];TSd=["ypc/resume_subscription"];var tI9=[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,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,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,
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,271884,222932,279119,271886,213915,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,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,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,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,21409,282218,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,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,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,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,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,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];var rX=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.aB("yt.msgs_",rX);var fc=new _.nO("ACTION_ROUTER_TOKEN");_.ut=function(){this.autonavState_=_.T("kevlar_is_pupi_enabled")?2:TaY()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.ut.prototype.getState=function(){return this.autonavState_};
_.ut.prototype.pause=function(N){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=N):this.autonavState_==1&&(this.disabledAutonavPauseReason_=N)};
_.ut.prototype.setState=function(N,b,S){b&&(this.autoplayChangedByUser=!0);b=this.autonavState_===3||N===3;this.autonavState_!=N&&(this.autonavState_=N,N!=3&&_.tDE(N==2),N=_.T("kevlar_is_pupi_enabled")?S||b:!0,_.sX.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,N,S))};
_.ut.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.He(_.ut);var Qj=function(){this.um=!1};var xD={},ine=(xD.auto_search="LATENCY_ACTION_AUTO_SEARCH",xD.ad_to_ad="LATENCY_ACTION_AD_TO_AD",xD.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",xD.app_startup="LATENCY_ACTION_APP_STARTUP",xD.browse="LATENCY_ACTION_BROWSE",xD.cast_splash="LATENCY_ACTION_CAST_SPLASH",xD.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",xD.channels="LATENCY_ACTION_CHANNELS",xD.chips="LATENCY_ACTION_CHIPS",xD.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",xD.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
xD.editor="LATENCY_ACTION_EDITOR",xD.embed="LATENCY_ACTION_EMBED",xD.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",xD.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",xD.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",xD.explore="LATENCY_ACTION_EXPLORE",xD.favorites="LATENCY_ACTION_FAVORITES",xD.home="LATENCY_ACTION_HOME",xD.inboarding="LATENCY_ACTION_INBOARDING",xD.landing="LATENCY_ACTION_LANDING",xD.learning="LATENCY_ACTION_LEARNING",
xD.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",xD.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",xD.library="LATENCY_ACTION_LIBRARY",xD.live="LATENCY_ACTION_LIVE",xD.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",xD.management="LATENCY_ACTION_MANAGEMENT",xD.mini_app="LATENCY_ACTION_MINI_APP_PLAY",xD.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",xD.onboarding="LATENCY_ACTION_ONBOARDING",xD.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
xD.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",xD.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",xD.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",xD.prebuffer="LATENCY_ACTION_PREBUFFER",xD.prefetch="LATENCY_ACTION_PREFETCH",xD.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",xD.profile_switcher="LATENCY_ACTION_LOGIN",xD.projects="LATENCY_ACTION_PROJECTS",xD.reel_watch="LATENCY_ACTION_REEL_WATCH",xD.results="LATENCY_ACTION_RESULTS",xD.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
xD.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",xD.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",xD.review="LATENCY_ACTION_REVIEW",xD.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",xD.search_ui="LATENCY_ACTION_SEARCH_UI",xD.search_suggest="LATENCY_ACTION_SUGGEST",xD.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",xD.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",xD.seek="LATENCY_ACTION_PLAYER_SEEK",xD.settings="LATENCY_ACTION_SETTINGS",xD.store="LATENCY_ACTION_STORE",
xD.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",xD.tenx="LATENCY_ACTION_TENX",xD.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",xD.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",xD.watch="LATENCY_ACTION_WATCH",xD.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",xD["watch,watch7"]="LATENCY_ACTION_WATCH",xD["watch,watch7_html5"]="LATENCY_ACTION_WATCH",xD["watch,watch7ad"]="LATENCY_ACTION_WATCH",xD["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",xD.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
xD.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",xD.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",xD.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",xD.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",xD.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",xD.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",xD.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",xD),MIE=0;var hFu=function(N,b){pO.call(this,1,arguments);this.timer=b};
_.F(hFu,pO);var $D_=new VZb("aft-recorded",hFu);var jQo=_.Ps.ytLoggingGelSequenceIdObj_||{};_.aB("ytLoggingGelSequenceIdObj_",jQo);var or=_.Ps.ytLoggingLatencyUsageStats_||{};_.aB("ytLoggingLatencyUsageStats_",or);var JT=function(){this.cleanupJob=0},XSf=function(){JT.instance||(JT.instance=new JT);
return JT.instance};
_.v=JT.prototype;_.v.baseline=function(N,b,S){Uw(this,"baseline_"+N)||_.Dn("latencyActionBaselined",{clientActionNonce:N},{timestamp:b,cttAuthInfo:S})};
_.v.tick=function(N,b,S,P){Uw(this,"tick_"+N+"_"+b)||_.Dn("latencyActionTicked",{tickName:N,clientActionNonce:b},{timestamp:S,cttAuthInfo:P})};
_.v.info=function(N,b,S){var P=Object.keys(N).join("");Uw(this,"info_"+P+"_"+b)||(N=Object.assign({},N),N.clientActionNonce=b,_.Dn("latencyActionInfo",N,{cttAuthInfo:S}))};
_.v.jspbInfo=function(N,b,S){for(var P="",H=0;H<JO(N).length;H++)JO(N)[H]!==void 0&&(P=H===0?P.concat(""+H):P.concat("_"+H));Uw(this,"info_"+P+"_"+b)||(_.En(N,2,b),b={cttAuthInfo:S},S=_.T("jspb_sparse_encoded_pivot")?new Ad([{}]):new Ad,_.o$(S,7,FaO,N),zFb("latencyActionInfo",S,b))};
_.v.span=function(N,b,S){var P=Object.keys(N).join("");Uw(this,"span_"+P+"_"+b)||(N.clientActionNonce=b,_.Dn("latencyActionSpan",N,{cttAuthInfo:S}))};
var Uw=function(N,b){or[b]=or[b]||{count:0};var S=or[b];S.count++;S.time=(0,_.nh)();N.cleanupJob||(N.cleanupJob=_.XC(_.Dj,function(){var P=(0,_.nh)(),H;for(H in or)or[H]&&P-or[H].time>6E4&&delete or[H];N&&(N.cleanupJob=0)},5E3));
return S.count>5?(S.count===6&&Math.random()*1E5<1&&(S=new _.jU("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||_.$h(S)),!0):!1};var FIl,BSl;FIl=window;BSl=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.M7=FIl.performance||FIl.mozPerformance||FIl.msPerformance||FIl.webkitPerformance||new BSl;var eFp=!1,pS9=!1,qcp=(0,_.pT)(_.M7.clearResourceTimings||_.M7.webkitClearResourceTimings||_.M7.mozClearResourceTimings||_.M7.msClearResourceTimings||_.M7.oClearResourceTimings||_.Qo,_.M7);var ZBu=_.$U(function(N,b,S,P,H,K,C){if(!_.T("web_csi_action_sampling_enabled")||!_.dX(K).actionDisabled){var G=C==null?void 0:C.spanStatus;C=C==null?void 0:C.rootSpanNonce;var a=_.mn(K);if(a.gelSpans)a.gelSpans[N]=!0;else{var R={};a.gelSpans=(R[N]=!0,R)}MIE++;N={spanName:N,spanLengthUsec:String(Math.round(b*1E3)),spanNonce:MIE};C&&(N.rootSpanNonce=C);G&&(N.spanStatus=G);P&&(N.spanInfo=P);H&&(N.parentSpanNonce=H);S&&(N.spanStartTimeUsec=String(Math.round(S*1E3)));_.kR(K||"").span[String(N.spanName)]=
N;S=_.mn(K);S.gelSpans||(S.gelSpans={});_.UY(S.gelSpans,N);S=uru(K);K=_.dX(K).cttAuthInfo;XSf().span(N,S,K);return N.spanNonce}}),l9S=window;
l9S.ytcsi&&(l9S.ytcsi.infoGel=_.lC,l9S.ytcsi.tick=_.uC);var Ctu=function(N){pO.call(this,1,arguments);this.csn=N};
_.F(Ctu,pO);var qKe=new VZb("screen-created",Ctu),lxu=[],Oco=BUI,LOp=0,JZ=new Map,GDo=new Map,rTu=new Map;var xra=Symbol("Df"),V3=new WeakMap;var Zx=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},kH=function(){Zx.instance||(Zx.instance=new Zx);
return Zx.instance};
_.v=Zx.prototype;_.v.setClient=function(N){this.client=N};
_.v.JSC$12961_newScreen=function(){this.clear();this.csn=_.Qh()};
_.v.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.v.reportShown=function(N,b,S,P){var H=this.JSC$12961_getTrackingParams(N),K=N.visualElement?N.visualElement:H;b=this.shownElements.has(K);var C=this.visibleState.get(K);this.shownElements.add(K);this.visibleState.set(K,!0);N.impressionLog&&!b&&N.impressionLog();if(H||N.visualElement)if(S=LIb(this,N,S))if(K=f9V(this,N),j1(this,N)||K){H=N.visualElement?N.visualElement:_.FA(H);var G=N.interactionLoggingClientData;K||b?j1(this,N)&4?C||kDL(this.client,S,H,G):j1(this,N)&1&&!b&&nDu(this.client,S,H,G,P):
nDu(this.client,S,H,G,P)}};
_.v.reportHidden=function(N,b,S,P){var H=this.JSC$12961_getTrackingParams(N),K=N.visualElement?N.visualElement:H;b=this.hiddenElements.has(K);var C=this.visibleState.get(K);this.hiddenElements.add(K);this.visibleState.set(K,!1);if(C===!1)return!0;if(!H&&!N.visualElement)return!1;S=LIb(this,N,S);if(!S||!j1(this,N)&&f9V(this,N))return!1;H=N.visualElement?N.visualElement:_.FA(H);j1(this,N)&8?TUp(this.client,S,H,void 0,void 0,P):j1(this,N)&2&&!b&&(N=this.client,P=iC({cttAuthInfo:xy(S)||void 0,automatedLogEventSource:P},
S),b={csn:S,ve:H.getAsJson(),eventType:2},S==="UNDEFINED_CSN"?zY("visualElementHidden",P,b):N?yE("visualElementHidden",b,N,P):_.Dn("visualElementHidden",b,P));return!0};
_.v.JSC$12961_getTrackingParams=function(N){var b=this.getData(N),S,P;if(_.T("il_use_view_model_logging_context")&&(b==null?0:(S=b.context)==null?0:(P=S.loggingContext)==null?0:P.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var H,K;if(b==null?0:(H=b.rendererContext)==null?0:(K=H.loggingContext)==null?0:K.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams||
"";var C;return((C=N.veContainer)==null?0:C.trackingParams)?N.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""};
_.v.JSC$12961_elementShouldLogGesture=function(N,b){N=this.getData(N);return!!((Math.floor(Number(N&&N.loggingDirectives&&N.loggingDirectives.gestures&&N.loggingDirectives.gestures.types||""))||0)&b)};
_.v.JSC$12961_getNearestParentVe=function(N){var b=this.JSC$12961_getTrackingParams(N);return N.visualElement?N.visualElement:b?_.FA(b):N.parentElement?this.JSC$12961_getNearestParentVe(N.parentElement):null};
var LIb=function(N,b,S){var P=_.Qh(S);return N.csn===null||P===N.csn||S?P:(N=new _.jU("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:N.csn,current_csn:P}),_.$h(N),null)};
Zx.prototype.getData=function(N){var b,S=N.data||((b=N.props)==null?void 0:b.data);if(!S||N.isWebComponentWrapper){var P;S=(P=V3.get(N))==null?void 0:P[xra]}return S};
var f9V=function(N,b){var S;return!((S=N.getData(b))==null||!S.loggingDirectives)},j1=function(N,b){N=N.getData(b);
return Math.floor(Number(N&&N.loggingDirectives&&N.loggingDirectives.visibility&&N.loggingDirectives.visibility.types||""))||1};var zD;zD=function(){};
_.W7=function(){zD.instance||(zD.instance=new zD);return zD.instance};
zD.prototype.setClient=function(N){_.$U(kH().setClient).bind(kH())(N)};
_.ujE=function(){_.W7();_.$U(kH().JSC$12961_newScreen).bind(kH())()};
zD.prototype.clear=function(){_.$U(kH().clear).bind(kH())()};
zD.prototype.reportShown=function(N,b,S,P){_.$U(kH().reportShown).bind(kH())(N,b,S,P)};
zD.prototype.reportHidden=function(N,b,S,P){return _.$U(kH().reportHidden).bind(kH())(N,b,S,P)};
var pDu=function(N,b){return _.$U(kH().JSC$12961_getTrackingParams).bind(kH())(b)},oxf=function(N,b){return _.$U(kH().JSC$12961_getNearestParentVe).bind(kH())(b)};var AT,QaE;AT=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.dG=function(){AT.instance||(AT.instance=new AT);return AT.instance};
AT.prototype.setClient=function(N){this.client=N};
QaE=function(N,b,S){S=S===void 0?{}:S;_.$U(function(){var P,H,K,C=((P=_.t(b==null?void 0:b.commandMetadata,_.GY))==null?void 0:P.rootVe)||((H=_.t(b==null?void 0:b.commandMetadata,Ctz))==null?void 0:(K=H.screenVisualElement)==null?void 0:K.uiType);if(C){P=_.t(b==null?void 0:b.commandMetadata,HNk);if(P==null?0:P.parentTrackingParams){var G=_.FA(P.parentTrackingParams);if(P.parentCsn)var a=P.parentCsn}else S.clickedVisualElement?G=S.clickedVisualElement:b.clickTrackingParams&&(G=_.FA(b.clickTrackingParams));
a:{P=_.t(b,_.Iv);H=_.t(b,rrs);if(P){if(H=MDu(P,"VIDEO")){P={token:H,videoId:P.videoId};break a}}else if(H&&(P=MDu(H,"PLAYLIST"))){P={token:P,playlistId:H.playlistId};break a}P=void 0}S=Object.assign({},{cttAuthInfo:P,parentCsn:a},S);if(_.T("expectation_logging")){var R;S.loggingExpectations=((R=_.t(b==null?void 0:b.commandMetadata,Ctz))==null?void 0:R.loggingExpectations)||void 0}_.Xy(N,C,G,S)}else _.$h(new _.jU("Error: Trying to create a new screen without a rootVeType",b))})()};
_.Xy=function(N,b,S,P){P=P===void 0?{}:P;_.$U(function(){tI9.includes(b)||(_.$h(new _.jU("createClientScreen() called with a non-page VE",b)),b=83769);P.isHistoryNavigation||(N.forwardHistoryStack=[],N.backHistoryStack.push({rootVe:b,key:P.key||""}));N.graftQueue=[];N.stateChangedQueue=[];P.dataPromises?xiO(N,b,S,P):o8E(N,b,S,P)})()};
_.iZE=function(N,b,S){S=S===void 0?0:S;_.$U(function(){b.then(function(P){N.pendingScreenCreation.has(S)&&N.pendingScreenFn&&N.pendingScreenFn();var H=_.Qh(S),K=_.uZ(S);if(H&&K){var C={automatedLogEventSource:3},G;(P==null?0:(G=P.response)==null?0:G.trackingParams)&&UR(N.client,H,K,_.FA(P.response.trackingParams),!1,C);var a;(P==null?0:(a=P.playerResponse)==null?0:a.trackingParams)&&UR(N.client,H,K,_.FA(P.playerResponse.trackingParams),!1,C)}})})()};
AT.prototype.graftServerVe=function(N,b,S){var P=this;return _.$U(function(){var H=_.FA(N);_.Ew(P,H,b,S);return H})()};
_.i_o=function(N,b,S,P){return _.T("enable_client_ve_spec")&&b.clientVeSpec?(b=_.OW(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),_.Ew(N,b,S,P)?b:null):b.trackingParams?N.graftServerVe(b.trackingParams,S,P):null};
_.n7=function(N,b,S,P){return _.$U(function(){if(!b.veType)return _.ed(new _.jU("Error: Trying to graft a client VE without a veType.")),null;if(b.visibilityTypes){var H=b.visibilityTypes.reduce(function(K,C){return K|C});
H={visibility:{types:String(H)}}}H=_.OW(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,H);return _.Ew(N,H,S,P)?H:null})()};
_.Ew=function(N,b,S,P){P=P===void 0?0:P;return _.$U(function(){if(N.pendingScreenCreation.has(P))return N.graftQueue.push([b,S]),!0;var H=_.Qh(P),K=S||_.uZ(P);if(H&&K){if(_.T("combine_ve_grafts")){var C=N.cachedVisualElements.get(K.toString());C?C.push(b):(N.cachedRootVisualElements.set(K.toString(),K),N.cachedVisualElements.set(K.toString(),[b]));N.attachTimeout||(N.attachTimeout=_.XC(_.Dj,function(){J$9(N,H)},1200))}else UR(N.client,H,K,b);
return!0}return!1})()};
_.pc=function(N,b,S){S=S===void 0?0:S;var P=N.recurringGrafts.get(S)||new Map;if(_.T("smarter_ve_dedupping"))for(var H=Array.from(P.keys()),K=0;K<H.length;K++){var C=void 0,G=void 0;var a=b;var R=H[K];R.isClientVe()&&a.isClientVe()?(C=a.getAsJson(),G=R.getAsJson(),a=C.veType!==G.veType||C.elementIndex!==G.elementIndex||C.dataElement!==G.dataElement||a.getLoggingDirectives()!==R.getLoggingDirectives()?!1:!0):a=R.veData.trackingParams!==void 0&&a.veData.trackingParams!==void 0?((G=a.veData)==null?void 0:
G.trackingParams)===((C=R.veData)==null?void 0:C.trackingParams):!1;if(a)return}else if(P.has(b))return;P.set(b,void 0);N.recurringGrafts.set(S,P);_.Qh(S)==="UNDEFINED_CSN"||N.pendingScreenCreation.has(S)||_.Ew(N,b,void 0,S)};
_.YD=function(N,b,S,P){P=_.Qh(P===void 0?0:P);if(!P)return!1;M1o(N.client,P,b,S);return!0};
_.yj=function(N,b,S,P){if(!b)return!1;P=_.Qh(P===void 0?0:P);if(!P)return!1;M1o(N.client,P,_.FA(b),S);return!0};
_.A8=function(N,b){var S=b.getScreenLayer&&b.getScreenLayer();if(b.visualElement)return _.YD(N,b.visualElement,void 0,S);b=pDu(_.W7(),b);return _.yj(N,b,void 0,S)};
AT.prototype.clickCommand=function(N,b,S){return _.yj(this,N.clickTrackingParams,b,S===void 0?0:S)};
AT.prototype.stateChanged=function(N,b,S){this.visualElementStateChanged(_.FA(N),b,S===void 0?0:S)};
AT.prototype.visualElementStateChanged=function(N,b,S){S=S===void 0?0:S;S===0&&this.pendingScreenCreation.has(S)?this.stateChangedQueue.push([N,b]):this.logStateChanged(N,b,S)};
AT.prototype.logStateChanged=function(N,b,S){S=S===void 0?0:S;var P=_.Qh(S);N=N||_.uZ(S);return P&&N?(FOa(this.client,P,N,b),!0):!1};
var xiO=function(N,b,S,P){P=P===void 0?{}:P;N.pendingScreenCreation.add(P.layer||0);N.pendingScreenFn=function(){o8E(N,b,S,P);var C=_.uZ(P.layer);if(C){for(var G=_.O(N.graftQueue),a=G.next();!a.done;a=G.next())a=a.value,_.Ew(N,a[0],a[1]||C,P.layer);C=_.O(N.stateChangedQueue);for(G=C.next();!G.done;G=C.next())G=G.value,N.logStateChanged(G[0],G[1])}};
S||_.Qh(P.layer)||N.pendingScreenFn();if(P.dataPromises)for(var H=_.O(P.dataPromises),K=H.next();!K.done;K=H.next())_.iZE(N,K.value,P.layer);else _.ge(Error("Ef"))},o8E=function(N,b,S,P){P=P===void 0?{}:P;
var H=void 0;P.layer||(P.layer=0);H=P.parentLayer!==void 0?P.parentLayer:P.layer;var K=_.Qh(H);H=_.uZ(H);var C=S||H,G;C&&(P.parentCsn!==void 0?G={clientScreenNonce:P.parentCsn,visualElement:C}:K&&K!=="UNDEFINED_CSN"&&(G={clientScreenNonce:K,visualElement:C}));var a,R=_.Vg("EVENT_ID");K==="UNDEFINED_CSN"&&R&&(a={servletData:{serializedServletEventId:R}});_.T("combine_ve_grafts")&&K&&J$9(N,K);_.T("no_client_ve_attach_unless_shown")&&C&&K&&WOE(C,K);try{var n=_.cTO(N.client,b,G,P.csnToClone,P.cttAuthInfo,
a,P.implicitGestureType,void 0,P.loggingExpectations,P.automatedLogEventSource)}catch(k){_.hd(k,{rootVeType:b,rootVe:H,parentVisualElement:S,currentCsn:K,parentEl:G,csnToClone:P.csnToClone});_.ge(k);return}_.iZ(n,b,P.layer,P.cttAuthInfo);K&&K!=="UNDEFINED_CSN"&&H&&!lto(K)&&TUp(N.client,K,H,!0);N.backHistoryStack[N.backHistoryStack.length-1]&&!N.backHistoryStack[N.backHistoryStack.length-1].csn&&(N.backHistoryStack[N.backHistoryStack.length-1].csn=n||"");_.lC({clientScreenNonce:n});_.ujE();var d=_.uZ(P.layer);
K&&K!=="UNDEFINED_CSN"&&d&&_.T("music_web_mark_root_visible")&&_.ER(n,d);N.pendingScreenCreation.delete(P.layer||0);N.pendingScreenFn=void 0;var m;(m=N.recurringGrafts.get(P.layer))==null||m.forEach(function(k,M){k?_.Ew(N,M,k,P.layer):d&&_.Ew(N,M,d,P.layer)});
Uid(N)},Uid=function(N){for(var b=0;b<N.afterNewScreenOneOffJobs.length;b++){var S=N.afterNewScreenOneOffJobs[b];
try{S()}catch(P){_.ge(P)}}for(b=N.afterNewScreenOneOffJobs.length=0;b<N.afterNewScreenRecurringJobs.length;b++){S=N.afterNewScreenRecurringJobs[b];try{S()}catch(P){_.ge(P)}}},J$9=function(N,b){if(b===void 0)for(var S=Fpf(),P=0;P<S.length;P++)S[P]!==void 0&&J$9(N,S[P]);
else N.cachedVisualElements.forEach(function(H,K){(K=N.cachedRootVisualElements.get(K))&&axu(N.client,b,K,H)}),N.cachedVisualElements.clear(),N.cachedRootVisualElements.clear(),N.attachTimeout=void 0};var Ir=function(N){N=N===void 0?{layer:0}:N;this.um=!1;this.createScreenConfig=N;N={};this.vbL=(N.response=!1,N.playerResponse=!1,N)};
_.F(Ir,Qj);Ir.prototype.validate=function(N){return!(!N.data||!N.data.response&&!N.data.playerResponse)};
Ir.prototype.handle=function(N){var b=_.dG(),S=this.createScreenConfig.layer;N.data.response&&N.data.response.trackingParams&&!this.vbL.response&&(b.graftServerVe(N.data.response.trackingParams,void 0,S),this.vbL.response=!0);N.data.playerResponse&&N.data.playerResponse.trackingParams&&!this.vbL.playerResponse&&(b.graftServerVe(N.data.playerResponse.trackingParams,void 0,S),this.vbL.playerResponse=!0)};var Dx=function(){this.mO=_.Y9();this.k5=[];this.vkR=0};
Dx.prototype.processChunk=function(N){if(N){for(var b=_.O(this.k5),S=b.next();!S.done;S=b.next())S=S.value,S.validate(N)&&(S.handle(N),S.um=!0);_.uC("np"+this.vkR);this.vkR++}};var oDo=function(N,b,S){S=S===void 0?{}:S;this.name=N;this.id=gX.nextSpanId++;this.sessionId=gX.sessionId;this.attributes=b;this.status="SPAN_STATUS_UNSET";var P;this.startTime=(P=S.startTime)!=null?P:(0,_.nh)();this.isActiveSpan=S.active;if(N=gX.stack[gX.stack.length-1])this.parentId=N.id,N.children||(N.children=[]),N.children.push(this);N=_.O(gX.processors);for(b=N.next();!b.done;b=N.next()){b=b.value;try{var H=P=void 0;(H=(P=b).onSpanStart)==null||H.call(P,this)}catch(K){_.$h(K)}}S.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",S.endTime))};
oDo.prototype.end=function(N,b){N=N===void 0?"SPAN_STATUS_OK":N;this.endTime=b=b===void 0?(0,_.nh)():b;this.duration=this.endTime-this.startTime;this.status=N;this.isActiveSpan!==!1&&(gX.stack[gX.stack.length-1]===this?gX.stack.pop():_.$h(Error("Ff`"+String(this.name))));N=_.O(gX.processors);for(b=N.next();!b.done;b=N.next()){b=b.value;try{var S=void 0,P=void 0;(P=(S=b).onSpanEnd)==null||P.call(S,this)}catch(H){_.$h(H)}}};
oDo.prototype.addAttributes=function(N){Object.assign(this.attributes,N)};
var icI={end:function(){},
addAttributes:function(){}},gX={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},xpe={rootSpan:function(){return gX.stack[0]}};var hZ={};var E1u=function(N){this.observers=[];this.value=N};
_.v=E1u.prototype;_.v.subscribe=function(N){var b=this;if(N.idx!=null)throw Error("Hf");N.idx=this.observers.length;this.observers.push(N);try{N(this.value)}catch(S){}return function(){var S=b.observers[b.observers.length-1];b.observers[N.idx]=S;S.idx=N.idx;b.observers.pop()}};
_.v.update=function(N){this.value=N(this.value);this.notify()};
_.v.mutate=function(N){N(this.value);this.notify()};
_.v.set=function(N){this.value=N;this.notify()};
_.v.notify=function(){for(var N=_.O(this.observers),b=N.next();!b.done;b=N.next()){b=b.value;try{b(this.value)}catch(S){}}};var NLa,ZZ9,A$S;_.rG=function(N,b,S,P,H,K,C,G){C=C===void 0?[]:C;G=G===void 0?[]:G;this.buildCommandPayload=N;this.navigate=b;this.handleServiceRequest=S;this.sendAction=P;this.JSC$13010_screenManager=H;this.commandResolverMap=K;this.autoLogResolverAllowlist=C;this.metaCommandClickLoggingDenylist=G;this.pendingCommands=new Set;this.isTracingEnabled=!1;ZZ9(this)};
NLa=function(N,b,S){var P=[_.Lpz,pFV],H=Xwp,K=Exb,C=_.dG(),G=jal;S=S===void 0?[]:S;P=P===void 0?[]:P;_.rG.instance=new _.rG(N,b,H,K,C,G,S,P)};
ZZ9=function(N){if(!N.isTracingEnabled&&et("command")){var b=N.resolveCommand;N.resolveCommand=function(S,P){a:{for(H in S)if(Object.prototype.hasOwnProperty.call(S,H)){var H={commandType:H};break a}H={}}return $R("command",H,b.bind(this,S,P))};
N.isTracingEnabled=!0}};
A$S=function(N,b,S){if(!N.commandResolverMap)return!1;var P=XC9(b,N.commandResolverMap);return P?((N.autoLogResolverAllowlist.some(function(H){return!!_.t(b,H)})||(S==null?0:S.forceClickLogging))&&z79(N,b,S),P instanceof Promise?P.then(function(H){H.resolve(b,S)}):P.resolve(b,S),!0):!1};
_.rG.prototype.resolveCommand=function(N,b){var S=this,P=Xfc(N);if(A$S(this,N,b))return!0;if(P)return E84(this,N,b);if(!this.buildCommandPayload)return jrO(N,"Unhandled command by buildCommandPayload"),!1;var H=this.buildCommandPayload(N,b);if(b==null?0:b.commandController)H.commandController=b.commandController;if(H.type===0){if(!this.navigate)return zlI(N,"navigate"),!1;if(!pfb(H.command))return jrO(N,"Page requests need to specify a url"),!1;_.T("logging_avoid_blocking_during_navigation")&&_.ZUI().transition("application_navigating");
N=this.navigate(H)||[];Ko9(N).then(function(){S.pendingCommands.delete(H.command)});
return!0}if(H.type===1){if(!this.handleServiceRequest)return zlI(N,"handleServiceRequest"),!1;(b==null?0:b.forceClickLogging)&&z79(this,H.command,b);N=this.handleServiceRequest(H);Ko9(N).then(function(){S.pendingCommands.delete(H.command)});
return!0}if(H.type===2){if(!this.sendAction)return zlI(N,"sendAction"),!1;z79(this,H.command,b);this.sendAction(H);return!0}return!1};
var z79=function(N,b,S){if((S==null||!S.disableClickTracking)&&N.JSC$13010_screenManager)if(b.clickTrackingParams&&_.T("log_click_with_layer_from_element_in_command_handler")){var P;S=S==null?void 0:(P=S.form)==null?void 0:P.element;N.JSC$13010_screenManager.clickCommand(b,null,S&&S.getScreenLayer&&S.getScreenLayer())}else b.clickTrackingParams?N.JSC$13010_screenManager.clickCommand(b):!_.T("disable_clicked_visual_element_in_command_handler")&&(S==null?0:S.clickedVisualElement)&&_.YD(N.JSC$13010_screenManager,
S.clickedVisualElement)},Xfc=function(N){var b=!!_.t(N,_.vN),S;
N=((S=_.t(N,_.CA))==null?void 0:S.signal)==="CLIENT_SIGNAL";return b||N},E84=function(N,b,S){var P=_.t(b,_.vN);
if(P)var H=(P==null?void 0:P.commands)||[];else{var K;if(((K=_.t(b,_.CA))==null?void 0:K.signal)==="CLIENT_SIGNAL"){var C;H=((C=_.t(b,_.CA))==null?void 0:C.actions)||[]}}if(H){(P=YJ4(N,H))&&z79(N,b,S);b=_.O(H);for(H=b.next();!H.done;H=b.next()){H=H.value;try{var G=Object.assign({},S);P&&(G.disableClickTracking=!0);N.resolveCommand(H,G)}catch(a){a instanceof Error&&_.ge(a)}}return!0}jrO(b,"Could not handle the meta command");return!1},YJ4=function(N,b){return b.every(function(S){return N.metaCommandClickLoggingDenylist.some(function(P){return!!_.t(S,
P)})})},pfb=function(N){var b;
return!((b=_.t(N==null?void 0:N.commandMetadata,_.GY))==null||!b.url)};var Vj=function(){Qj.apply(this,arguments)};
_.F(Vj,Qj);Vj.prototype.validate=function(N){var b,S;return!this.um&&!!((b=N.data.response)==null?0:(S=b.onResponseReceivedEndpoints)==null?0:S.length)};
Vj.prototype.handle=function(N){var b=_.rG.instance;N=_.O(N.data.response.onResponseReceivedEndpoints);for(var S=N.next();!S.done;S=N.next())b.resolveCommand(S.value)};var y$z,I9Z,e1;
y$z=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.KA();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.gU=function(){I9Z||(I9Z=new y$z);return I9Z};
e1=function(){var N=_.gU();N.miniplayerButtonActivation=!1;N.userActivation=!1;N.playlistWatchPageActivation=!1;N.productDetailsPageActivation=!1;N.miniAppPageActivation=!1;N.playablesDestPageActivation=!1;N.lockupActivation=!1;N.showMiniplayerCommandActivation=!1;N.playlistSuggestionsShelfActivation=!1;N.mediaSessionPipActivation=!1;N.watchPipActivation=!1;N.watchWhileActivation=!1;N.shortsPipActivation=!1;N.companionCanvasActivation=!1};
_.DiE=function(){var N=_.gU(),b=N.mediaSessionPipActivation,S=N.watchPipActivation,P=N.watchWhileActivation,H=N.playlistWatchPageActivation,K=N.lockupActivation,C=N.showMiniplayerCommandActivation,G=N.navigatingAwayFromWatchDeletedVideo,a=N.shortsPipActivation,R=N.playlistSuggestionsShelfActivation,n=N.productDetailsPageActivation,d=N.miniAppPageActivation,m=N.playablesDestPageActivation,k=N.companionCanvasActivation;return!N.miniplayerButtonActivation&&!H&&!R&&!n&&!d&&!m&&!K&&!C&&!b&&!S&&!P&&!a&&
!k||G};var x3o;_.$D=_.wX("FEwhat_to_watch","/",3854);_.oKL=_.wX("FEdownloads","/feed/downloads",42352);x3o=_.wX("FEmusic_offline","browse/FEmusic_offline",42352);var $G=function(N,b){b=b===void 0?[]:b;var S=S===void 0?[]:S;b=PW_.apply(null,[HFs.apply(null,_.IX(b))].concat(_.IX(S)));this.store=OFU(N,void 0,b)};
$G.prototype.getState=function(){return this.store.getState()};
$G.prototype.dispatch=function(N){return this.store.dispatch(N)};
$G.prototype.subscribe=function(N){return this.store.subscribe(N)};
$G.prototype.replaceReducer=function(N){return this.store.replaceReducer(N)};
$G.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.hT=function(N,b,S){var P=b(N.getState());return N.subscribe(function(){var H=b(N.getState());if(H!==P){var K=P;P=H;S(H,K)}})};var x$s;_.t5=function(N,b,S){return _.HU({type:"REPLACE_ENTITY",payload:{entityPayload:S,entityType:N,key:b}})};
x$s=function(N){return _.HU({type:"REPLACE_ENTITIES",payload:N})};
_.oJ=function(N,b,S,P){return _.HU({type:"UPDATE_ENTITY",payload:{entityPayload:S,entityType:N,key:b,mergeOption:P}})};var wCb=function(N){var b=this;N=N===void 0?[]:N;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;N.forEach(function(S){b.append(S)})};
_.v=wCb.prototype;_.v.getLength=function(){return this.totalLength};
_.v.append=function(N){var b=this.arrays.length===0?!1:(b=this.arrays[this.arrays.length-1])&&b.buffer===N.buffer&&b.byteOffset+b.length===N.byteOffset;b?(b=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+N.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(N);this.totalLength+=N.length};
_.v.split=function(N){for(var b=new wCb,S=new wCb,P=_.O(this.arrays),H=P.next();!H.done;H=P.next())H=H.value,N>=H.length?(b.append(H),N-=H.length):N?(b.append(new Uint8Array(H.buffer,H.byteOffset,N)),S.append(new Uint8Array(H.buffer,H.byteOffset+N,H.length-N)),N=0):S.append(H);return{headView:b,tailView:S}};
_.v.isFocused=function(N){return N>=this.arrayPos&&N<this.arrayPos+this.arrays[this.arrayIdx].length};
_.v.focus=function(N){if(!this.isFocused(N))for(N<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=N&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var VIz=function(N,b){N.focus(b);return N.arrays[N.arrayIdx][b-N.arrayPos]};(function(){var N=function(P){return new Uint8Array(P)},b=function(P){for(var H=new Uint8Array(P.length),K=0;K<P.length;K++)H[K]=P[K];
return H},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?N:b})();
var V1p=Array(1024),Dpo=window.TextDecoder?new TextDecoder:void 0,elu=window.TextEncoder?new TextEncoder:void 0;var qwa=function(N){this.arrayView=N;this.pos=0;this.pendingTagAndType=-1},sI=function(N){var b=VIz(N.arrayView,N.pos);
++N.pos;if(b<128)return b;for(var S=b&127,P=1;b>=128;)b=VIz(N.arrayView,N.pos),++N.pos,P*=128,S+=(b&127)*P;return S},NtE=function(N,b){var S=N.pendingTagAndType;
for(N.pendingTagAndType=-1;N.pos+1<=N.arrayView.totalLength;){S<0&&(S=sI(N));var P=S>>3,H=S&7;if(P===b)return!0;if(P>b){N.pendingTagAndType=S;break}S=-1;switch(H){case 0:sI(N);break;case 1:N.pos+=8;break;case 2:P=sI(N);N.pos+=P;break;case 5:N.pos+=4}}return!1};var SPE=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=hlb(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},OI=function(N,b){b=N.pos+b;
if(!(N.buf.length>=b)){for(var S=N.buf.length*2;S<b;)S*=2;N.buf=hlb(S,N.wasm,N.buf.subarray(0,N.pos));N.view=new DataView(N.buf.buffer,N.buf.byteOffset,N.buf.byteLength)}},vU=function(N,b){if(b>268435455){OI(N,4);
for(var S=b&1073741823,P=0;P<4;P++)N.view.setUint8(N.pos,S&127|128),S>>=7,N.pos+=1;b=Math.floor(b/268435456)}for(OI(N,4);b>127;)N.view.setUint8(N.pos,b&127|128),b>>=7,N.pos+=1;N.view.setUint8(N.pos,b);N.pos+=1};for(var PP_={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},bip={},g89=_.O(Object.entries(PP_)),e74=g89.next();!e74.done;e74=g89.next()){var $iE=_.O(e74.value),h7Z=$iE.next().value,qJZ=$iE.next().value,wfZ=h7Z,NHb=qJZ;NHb&&(bip[NHb]=wfZ)};var swL=function(N,b){N=N===void 0?{}:N;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(P,H){var K,C=(K=H.options)==null?void 0:K.persistenceOption;if(C&&C!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&C!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!H.entityKey)return _.ge(Error("Jf")),P;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return H=new _.jU("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey}),_.ge(H),P;var G=(0,_.Vm.getAnyKey)(H.payload);
return vAu(P,G,H.entityKey,H.payload[G])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var a=_.Ku(H).entityType;G=vAu(P,a,H);break a}catch(d){if(d instanceof Error){H=new _.jU("Failed to deserialize entity key",{entityKey:H,originalMessage:d.message});_.ge(H);G=P;break a}throw d;}G=void 0}return G}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return H=new _.jU("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey}),_.ge(H),P;G=(0,_.Vm.getAnyKey)(H.payload);
var R,n;return OiY(P,G,H.entityKey,H.payload[G],(R=H.fieldMask)==null?void 0:(n=R.mergeOptions)==null?void 0:n.repeatedFieldsMergeOption)}return P},N);
case "REPLACE_ENTITY":var S=b.payload;return vAu(N,S.entityType,S.key,S.entityPayload);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(P,H){var K=b.payload[H];return Object.keys(K).reduce(function(C,G){return vAu(C,H,G,K[G])},P)},N);
case "UPDATE_ENTITY":return S=b.payload,OiY(N,S.entityType,S.key,S.entityPayload,S.mergeOption);default:return N}};var CPe;var bY9=!1,qp,wU,N$,bP,Sc,SmO=function(N){_.E5.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!bY9){var b,S=new Uint8Array(256),P=new Uint8Array(256);var H=1;for(b=0;b<256;b++)S[H]=b,P[b]=H,H^=H<<1^(H>>7&&283);qp=new Uint8Array(256);wU=ry(256);N$=ry(256);bP=ry(256);Sc=ry(256);for(var K=0;K<256;K++){H=K?P[255^S[K]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;qp[K]=H;b=H<<1^(H>>7&&283);var C=b^H;wU[K]=b<<24|H<<16|H<<8|C;N$[K]=C<<24|wU[K]>>>8;bP[K]=H<<24|N$[K]>>>
8;Sc[K]=H<<24|bP[K]>>>8}bY9=!0}H=ry(44);for(S=0;S<4;S++)H[S]=N[4*S]<<24|N[4*S+1]<<16|N[4*S+2]<<8|N[4*S+3];for(P=1;S<44;S++)N=H[S-1],S%4||(N=(qp[N>>16&255]^P)<<24|qp[N>>8&255]<<16|qp[N&255]<<8|qp[N>>>24],P=P<<1^(P>>7&&283)),H[S]=H[S-4]^N;this.key=H};
_.F(SmO,_.E5);
SmO.prototype.encrypt=function(N){var b=N.length;N=new Uint8Array(N.buffer.slice(N.byteOffset,N.byteOffset+b));for(var S=this.cipherBlock,P=0;P<b&&this.blockOffset<16;)N[P++]^=S[this.blockOffset++];for(var H=b-(b-P)%16;P<H;)P6c(this),N[P++]^=S[0],N[P++]^=S[1],N[P++]^=S[2],N[P++]^=S[3],N[P++]^=S[4],N[P++]^=S[5],N[P++]^=S[6],N[P++]^=S[7],N[P++]^=S[8],N[P++]^=S[9],N[P++]^=S[10],N[P++]^=S[11],N[P++]^=S[12],N[P++]^=S[13],N[P++]^=S[14],N[P++]^=S[15];if(P<b)for(P6c(this),this.blockOffset=0;P<b;)N[P++]^=
S[this.blockOffset++];return N};
var P6c=function(N){for(var b=N.key,S=N.counter[0]^b[0],P=N.counter[1]^b[1],H=N.counter[2]^b[2],K=N.counter[3]^b[3],C=3;C>=0&&!(N.counter[C]=-~N.counter[C]);C--);for(var G,a,R=4;R<40;)C=wU[S>>>24]^N$[P>>16&255]^bP[H>>8&255]^Sc[K&255]^b[R++],G=wU[P>>>24]^N$[H>>16&255]^bP[K>>8&255]^Sc[S&255]^b[R++],a=wU[H>>>24]^N$[K>>16&255]^bP[S>>8&255]^Sc[P&255]^b[R++],K=wU[K>>>24]^N$[S>>16&255]^bP[P>>8&255]^Sc[H&255]^b[R++],S=C,P=G,H=a;N=N.cipherBlock;C=b[40];N[0]=qp[S>>>24]^C>>>24;N[1]=qp[P>>16&255]^C>>16&255;N[2]=
qp[H>>8&255]^C>>8&255;N[3]=qp[K&255]^C&255;C=b[41];N[4]=qp[P>>>24]^C>>>24;N[5]=qp[H>>16&255]^C>>16&255;N[6]=qp[K>>8&255]^C>>8&255;N[7]=qp[S&255]^C&255;C=b[42];N[8]=qp[H>>>24]^C>>>24;N[9]=qp[K>>16&255]^C>>16&255;N[10]=qp[S>>8&255]^C>>8&255;N[11]=qp[P&255]^C&255;C=b[43];N[12]=qp[K>>>24]^C>>>24;N[13]=qp[S>>16&255]^C>>16&255;N[14]=qp[P>>8&255]^C>>8&255;N[15]=qp[H&255]^C&255};var HYE=!1;(function(){var N=function(P){return new Uint8Array(P)},b=function(P){for(var H=new Uint8Array(P.length),K=0;K<P.length;K++)H[K]=P[K];
return H},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?N:b})();
var Py;var v$N=function(N){a:{if(!HYE&&!rk){if(Py){var b=Py;break a}Py=(b=window.crypto)==null?void 0:b.subtle;var S,P,H;if(((S=Py)==null?0:S.importKey)&&((P=Py)==null?0:P.sign)&&((H=Py)==null?0:H.encrypt)){b=Py;break a}Py=void 0}b=void 0}b&&(this.nativeEncryptor=new ssb(N,b));this.encryptorPolyfill=new K7S(N)};
v$N.prototype.encrypt=function(N,b){var S=this,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!S.nativeEncryptor){H.jumpTo(2);break}_.u4(H,3);return H.yield(S.nativeEncryptor.encrypt(N,b),5);case 5:return H.return(H.yieldResult);case 3:P=_.UE(H),_.$h(P),HYE=!0,S.nativeEncryptor=void 0;case 2:return H.return(S.encryptorPolyfill.encrypt(N,b))}})};
v$N.prototype.decrypt=function(N,b){return this.encrypt(N,b)};
var ssb=function(N,b){this.JSC$13083_aesKey=N;this.subtleCrypto=b};
ssb.prototype.encrypt=function(N,b){var S=this,P;return _.r(function(H){if(H.nextAddress==1)return _.u4(H,2),H.yield(OYz(S,N,b),4);if(H.nextAddress!=2)return H.return(H.yieldResult);P=_.UE(H);_.$h(P);HYE=!0;throw P;})};
var OYz=function(N,b,S){var P,H;return _.r(function(K){switch(K.nextAddress){case 1:if(N.cryptoKey){K.jumpTo(2);break}return K.yield(N.subtleCrypto.importKey("raw",N.JSC$13083_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:N.cryptoKey=K.yieldResult;case 2:return P={name:"AES-CTR",counter:S,length:128},K.yield(N.subtleCrypto.encrypt(P,N.cryptoKey,b),4);case 4:return H=K.yieldResult,K.return(new Uint8Array(H))}})},K7S=function(N){this.JSC$13086_aesKey=N};
K7S.prototype.encrypt=function(N,b){this.encryptor||(this.encryptor=new SmO(this.JSC$13086_aesKey));for(var S=this.encryptor,P=0;P<4;P++)S.counter[P]=b[P*4]<<24|b[P*4+1]<<16|b[P*4+2]<<8|b[P*4+3];S.blockOffset=16;return this.encryptor.encrypt(N)};
K7S.prototype.decrypt=function(N,b){return this.encrypt(N,b)};var C69={},cNo=WK("yt-idb-pref-storage",{objectStores:(C69.prefs={addedAtVersion:1},C69),shared:!1,upgrade:function(N,b){b(1)&&b5(NN(N,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Hy=function(N){this.token=N};
_.Hy.getInstance=function(){return _.r(function(N){return N.return(new Promise(function(b){_.RB().then(function(S){S?(_.Hy.instance||(_.Hy.instance=new _.Hy(S)),b(_.Hy.instance)):b(void 0)})}))})};
_.Hy.prototype.get=function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1)return K.yield(ays(b.token),2);if(K.nextAddress!=3)return S=K.yieldResult,K.yield(S.get("prefs",N),3);P=K.yieldResult;if(!P)return K.return();H=(0,_.nh)();return P.expirationTimestampMs<=H?K.return():K.return(P.value)})};
_.Hy.prototype.set=function(N,b,S){S=S===void 0?31536E3:S;var P=this,H,K,C;return _.r(function(G){if(G.nextAddress==1)return H=(0,_.nh)(),K={key:N,value:b,expirationTimestampMs:H+S*1E3},G.yield(ays(P.token),2);C=G.yieldResult;return G.yield(C.put("prefs",K),0)})};
_.Hy.prototype.remove=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(ays(b.token),2);S=P.yieldResult;return P.yield(S.delete("prefs",N),0)})};var sP={},GO4=(sP.INVALID_ENCODER_VERSION="Invalid encoder version",sP.KEY_CREATION_FAILED="Failed to create encoder key",sP.UNKNOWN_DECODE_ERROR="Failed to decode PES data",sP.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",sP.WRONG_DATA_TYPE="Encoder cannot process the data type",sP),cU=function(N,b){b=b===void 0?{}:b;_.jU.call(this,GO4[N],Object.assign({},{name:"PESEncoderError",type:N},b));this.type=N;this.level="WARNING";Object.setPrototypeOf(this,cU.prototype)};
_.F(cU,_.jU);var Ki=function(){};
Ki.prototype.encode=function(N,b){try{return this.encodeImpl(N,b)}catch(S){d$9(S,WWI)}};
Ki.prototype.decode=function(N,b){try{return this.decodeImpl(N,b)}catch(S){d$9(S,nAY)}};
var rnd=function(N,b,S){var P;return _.r(function(H){if(H.nextAddress==1)return _.u4(H,2),H.yield(N.decodeAsyncImpl(b,S),4);if(H.nextAddress!=2)return H.return(H.yieldResult);P=_.UE(H);d$9(P,nAY);_.Zd(H)})};
Ki.prototype.decodeAsyncImpl=function(N,b){return Promise.resolve(this.decodeImpl(N,b))};var vy=function(N,b){this.aesEncryptor=N;this.aesEncryptorAsync=b};
_.F(vy,Ki);vy.prototype.encodeImpl=function(N,b){b=m$9(b);N=(new TextEncoder).encode(JSON.stringify(N));return this.aesEncryptor.encrypt(N,b)};
vy.prototype.decodeImpl=function(N,b){if(!(N instanceof Uint8Array))throw Rxu(1);var S=new TextDecoder;b=m$9(b);N=this.aesEncryptor.decrypt(N,b);return JSON.parse(S.decode(N))};
vy.prototype.decodeAsyncImpl=function(N,b){var S=this,P,H,K;return _.r(function(C){if(C.nextAddress==1){if(!(N instanceof Uint8Array))throw Rxu(1);P=new TextDecoder;H=m$9(b);return C.yield(S.aesEncryptorAsync.decrypt(N,H),2)}K=C.yieldResult;return C.return(JSON.parse(P.decode(K)))})};var ksL={accountLinkStatusEntity:qpb,booleanEntity:BRS,buttonEntity:mTb,captionTrack:HG9,channelHandle:wFk,chipEntity:Vzc,commerceAcquisitionClientPayloadEntity:IcV,commerceCartListEntity:DTZ,compositeSourceEntity:ksS,multiviewStagingEntity:TtV,contextNoteFeedEntityPayload:cFk,contextNoteUserRatingEntityPayload:aTZ,continuationTokenEntity:jrZ,downloadQualityPickerEntity:lxz,downloadsPageRefreshTokenEntity:fxN,downloadsPageViewConfigurationEntity:Dp4,downloadStatusEntity:LO9,dismissState:gub,sfvAudioItemCurrentlyPlayingEntity:zYV,
emojiFountainDataEntity:WTN,emojiCustomizationSetEntity:Rmz,fakeChannel:ftk,fakePlaylist:uX4,fakePlaylistEntryCollection:Qy9,fakeVideo:oMN,fakeVideoDescription:i1V,featuredProductsEntity:cN4,flowStateEntity:gME,iconBadgeEntity:V69,interstitialInteractionStateEntity:RFO,likeButtonAnimationEntity:V19,liveChatPollStateEntity:MDz,dataFreshnessEntity:cCc,liveViewerLeaderboardChatEntryPointStateEntity:mZ4,liveViewerLeaderboardPointsEntity:kl4,liveReactionsDataEntity:nJV,logoEntity:cjE,macroMarkerEntity:gDE,
mainDownloadsLibraryEntity:uyS,mainDownloadsListEntity:QrN,mainPlaylistDownloadStateEntity:oD4,mainPlaylistEntity:zl9,mainPlaylistVideoEntity:ATk,mainVideoDownloadStateEntity:ic9,mainVideoEntity:YwS,markersEngagementPanelSyncEntity:elz,markersVisibilityOverrideEntity:$pE,musicAlbumReleaseDetail:LWZ,musicAlbumReleaseDownloadMetadataEntity:tcV,musicAlbumRelease:lyZ,musicAlbumReleaseUserDetail:fy9,musicArtistDetail:QwS,musicArtist:uBV,musicArtistUserDetail:x$k,musicDownloadsLibraryEntity:Mcb,musicLibraryEdit:oA9,
musicLibraryStatusEntity:iiE,musicPlaylist:JNE,musicPlaylistDownloadMetadataEntity:FWk,musicShare:ZiE,musicTrackDetail:zxc,musicTrackDownloadMetadataEntity:BtS,musicTrack:jwz,musicTrackUserDetail:ANb,offlineOrchestrationActionWrapperEntity:sfZ,offlineVideoPolicy:KDl,offlineVideoStreams:vgd,offlineabilityEntity:JTE,orchestrationWebSamplingEntity:Upk,pageHeaderEntity:H5E,pdpStateEntity:gJl,pinnedProductEntity:ayk,playbackData:OGE,playerStateEntity:hlV,quantityIncrementerEntity:emc,refresh:CnS,saveToPlaylistListEntity:sHN,
selectedChipIndexEntityPayload:qw9,settingEntity:LLZ,stringEntity:lt4,suggestedFeedbackChipStateEntity:wCV,transfer:Gl9,trendingOfferEntity:Rxz,videoDownloadContextEntity:rDk,videoOverviewAsyncDataEntity:TZz,videoPlaybackPositionEntity:t6b,votingEntity:O59,ytMainChannelEntity:yTZ,youchatPendingResponseEntity:NtO,ytMainDownloadedVideoEntity:Zc9,ytMainVideoEntity:IxZ};var cnZ,RTN,dy,fyp,uBb,dFz,kOS,mF9,n$O;cnZ=function(N,b){this.JSC$13105_wrapped=N;this.JSC$13105_encoderRegistry=b;this.changedKeys={}};
RTN=function(N,b){return aF4(N.JSC$13105_encoderRegistry,b.version).decode(b.data,b.key)};
_.W79=function(N,b,S){return N.JSC$13105_wrapped.objectStore("EntityStore").get(b).then(function(P){if(P){if(S&&P.entityType!==S)throw Error("Kf");return RTN(N,P)}})};
dy=function(N,b,S){return S?(S=S.map(function(P){return _.W79(N,P,b)}),w7.all(S)):N.JSC$13105_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(P){return P.map(function(H){return RTN(N,H)})})};
_.LWO=function(N,b,S){var P=Hie(b),H=aF4(N.JSC$13105_encoderRegistry,1),K=Object.assign({},b);return N.JSC$13105_wrapped.objectStore("EntityStore").get(P).then(function(C){if(C){if(C.entityType!==S)throw Error("Kf");K.entityMetadata||(C=RTN(N,C),K.entityMetadata=C.entityMetadata)}}).then(function(){var C={key:P,
entityType:S,data:H.encode(K,P),version:1};return w7.all([N.JSC$13105_wrapped.objectStore("EntityStore").put(C),n$O(N,K,S)])}).then(function(){dFz(N,P,S);
return P})};
fyp=function(N,b){var S=_.Ku(b).entityType;return w7.all([N.JSC$13105_wrapped.objectStore("EntityStore").delete(b),mF9(N,b)]).then(function(){dFz(N,b,S)})};
uBb=function(N,b,S,P){var H=aF4(N.JSC$13105_encoderRegistry,1);return _.W79(N,b,P).then(function(K){if(K){K=IxO(K,S);var C={key:b,entityType:P,data:H.encode(K,b),version:1};return w7.all([N.JSC$13105_wrapped.objectStore("EntityStore").put(C),n$O(N,K,P)])}}).then(function(){dFz(N,b,P);
return b})};
dFz=function(N,b,S){var P=N.changedKeys[S];P||(P=new Set,N.changedKeys[S]=P);P.add(b)};
kOS=function(N,b,S){var P=Hie(b);S=Ttb(S);if(!S)return w7.resolve([]);S=new S(b);N=N.JSC$13105_wrapped.objectStore("EntityAssociationStore");b=[];S=_.O(S.getAssociations());for(var H=S.next();!H.done;H=S.next())b.push(N.put({parentEntityKey:P,childEntityKey:H.value}));return w7.all(b).then(function(K){return K.map(function(C){return C[1]})})};
mF9=function(N,b){return N.JSC$13105_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
n$O=function(N,b,S){var P=Hie(b);return mF9(N,P).then(function(){return kOS(N,b,S)})};var THl=function(){};
_.F(THl,Ki);THl.prototype.encodeImpl=function(N){return N};
THl.prototype.decodeImpl=function(N){if(N instanceof Uint8Array)throw Rxu(0);return N};var FWs=function(){this.cacheMap={};this.cacheMap[0]=new THl;if(!_.T("aes_pes_encoder_killswitch")){var N=this.cacheMap;try{var b=_.Ul();var S=m$9(b);var P=new vy(new K7S(S),new v$N(S))}catch(H){throw N=H instanceof Error?new cU("KEY_CREATION_FAILED",{originalMessage:H.message}):new cU("KEY_CREATION_FAILED"),_.ge(N),N;}N[1]=P}},aF4=function(N,b){b=b===void 0?0:b;
N=N.cacheMap[b];if(!N)throw b=new cU("INVALID_ENCODER_VERSION",{encoderVersion:b}),_.ge(b),b;return N};var Rp=function(N,b){_.E5.call(this);this.token=N;this.JSC$13119_encoderRegistry=b;this.observers=[];N=new _.Ps.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Ul());N.onmessage=this.JSC$13119_handleMessage.bind(this);this.channel=N};
_.F(Rp,_.E5);_.nu=function(N,b,S){var P,H,K,C;return _.r(function(G){if(G.nextAddress==1)return G.yield(rNY(N.token),2);if(G.nextAddress!=3)return P=G.yieldResult,G.yield(_.Ou(P,["EntityStore","EntityAssociationStore"],b,function(a){H=new cnZ(a,N.JSC$13119_encoderRegistry);return S(H)}),3);
K=G.yieldResult;H&&(C=H.changedKeys,Object.keys(C).length>0&&(N.channel.postMessage(C),tmO(N,C)));return G.return(K)})};
Rp.prototype.observe=function(N){var b=this;this.observers.push(N);return function(){var S=b.observers.indexOf(N);S>=0&&b.observers.splice(S,1)}};
var wI_=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(_.nu(N,{mode:"readonly",enableRetries:!0},function(P){return P.JSC$13105_wrapped.objectStore("EntityStore").getAll()}),2);
b=S.yieldResult;return S.return(Promise.all(b.filter(function(P){return!!P}).map(function(P){var H,K;
return _.r(function(C){if(C.nextAddress==1){H=P.key;K=P.entityType;var G=C.yield;var a=rnd(aF4(N.JSC$13119_encoderRegistry,P.version),P.data,P.key);return G.call(C,a,2)}return C.return({key:H,entityType:K,data:C.yieldResult})})})))})};
Rp.prototype.JSC$13119_handleMessage=function(N){tmO(this,N.data)};
var tmO=function(N,b){N=_.O(N.observers);for(var S=N.next();!S.done;S=N.next())S=S.value,S(b)};
Rp.prototype.disposeInternal=function(){this.channel.close()};
var tcb;var OP,F7S,gAL;OP={};_.Mmb=(OP.mainVideoEntity="mainVideoEntityActionMetadata",OP.mainPlaylistEntity="mainPlaylistEntityActionMetadata",OP.musicTrack="musicTrackEntityActionMetadata",OP.musicPlaylist="musicPlaylistEntityActionMetadata",OP);F7S=new _.nO("DOWNLOADS_ENTITY_TYPE_MAP");_.lV=_.Cu("","downloadsPageViewConfigurationEntity");gAL=_.Cu("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.fRO=_.Cu("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Cu("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Cu("SMART_DOWNLOADS_ENABLED","settingEntity");_.Cu("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var JNY=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var EAU=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var BHN={isLeaderTab:!0};var WDU={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Ci=window,A0=Ci.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Rua=Ci.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Xk,kFe=Ci.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||RJ,EYl=Ci.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Xm9,z9N=Ci.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||qbb,gmO=Ci.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||HfE;var aiE;Db({id:"America/Los_Angeles",names:["PST","PST","PDT","PDT"],std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,
203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,
60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]});var iNY=TD_(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(N){return N}}}),W2e=TD_(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(N){return N}}}),BDu=new Map;var UJL=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],QHf;var lFz=function(N){return _.HU({type:"SET_EPHEMERAL_ACTION",payload:N})};var L7V={ephemeralAction:null};var fFS=zb({ephemeralAction:function(N,b){N=N===void 0?L7V.ephemeralAction:N;switch(b.type){case "SET_EPHEMERAL_ACTION":return b.payload;default:return N}}});var u44=function(N){return _.HU({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:N})};var Qsc={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var xFE={sharedUi:Qsc,a11y:L7V,entities:{}},KTL={sharedUi:function(N,b){N=N===void 0?Qsc:N;switch(b.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},N,{animatedThumbnailEnabled:b.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},N,{inlinePreviewEnabled:b.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},N,{currentPageType:b.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},N,{currentPageSubType:b.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},N,{persistentPanelVisible:b.payload});default:return N}},
a11y:fFS,entities:KWp};var Eua={playlistId:"",inviteLinkURL:""};var o$9={continuationCommand:{}};var qME=zb({continuationCommand:function(N,b){N=N===void 0?o$9.continuationCommand:N;switch(b.type){case "SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return N}}});var YMY={currentFormId:"",commandsMap:{}};var wcU=zb({isLeaderTab:function(N,b){N=N===void 0?BHN.isLeaderTab:N;switch(b.type){case "SET_IS_LEADER_TAB":var S,P;return(P=b==null?void 0:(S=b.payload)==null?void 0:S.isLeaderTab)!=null?P:N;default:return N}}});var Jnc;_.iYk=function(N){return _.HU({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:N}})};
Jnc=function(N){return _.HU({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:N}})};var Gs={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var snU=zb({isDesktopSmallWidth:function(N,b){N=N===void 0?Gs.isDesktopSmallWidth:N;switch(b.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return N}},
isShortsActive:function(N,b){N=N===void 0?Gs.isShortsActive:N;switch(b.type){case "SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return N}},
isWatchWhileMode:function(N,b){N=N===void 0?Gs.isWatchWhileMode:N;switch(b.type){case "SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return N}},
playerState:function(N,b){N=N===void 0?Gs.playerState:N;switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return N}},
isFullscreen:function(N,b){N=N===void 0?Gs.isFullscreen:N;switch(b.type){case "SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return N}},
isSmallScreenSqueezeback:function(N,b){N=N===void 0?Gs.isSmallScreenSqueezeback:N;switch(b.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return N}},
isShortsPipActive:function(N,b){N=N===void 0?Gs.isShortsPipActive:N;switch(b.type){case "SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return N}},
isPlaybackStarted:function(N,b){N=N===void 0?Gs.isPlaybackStarted:N;switch(b.type){case "SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return N}}});var Iio={currentMode:"canvas-hidden"};var O5a=function(){return function(N){return function(b){var S=N(b);_.St(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return S}}};var UFN,k2e;UFN=new _.GB;_.Pm=new _.nO("WATCH_PLAYER_PROMISE_TOKEN");_.ZYb=new _.GB;_.jsk=new _.nO("SHORTS_PLAYER_PROMISE_TOKEN");k2e=new _.nO("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var C8o=function(){return function(N){return function(b){b.type==="ENTITY_LOADED"&&_.aN().resolve(_.Pm).then(function(S){var P;(P=S.dispatchReduxAction)==null||P.call(S,b)});
return N(b)}}};var zTz={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var N3U=zb({additionalContext:function(N,b){N=N===void 0?zTz.additionalContext:N;switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var S;return(S=b.payload)!=null?S:"";default:return N}},
impersonatedChannelUrl:function(N,b){N=N===void 0?zTz.impersonatedChannelUrl:N;switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var S;return(S=b.payload)!=null?S:"";default:return N}},
selectedVideoIds:function(N,b){N=N===void 0?zTz.selectedVideoIds:N;switch(b.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var S={};return Object.assign({},N,(S[b.payload]=!0,S));case "VIDEO_UNSELECTED":return b=b.payload,N=Object.assign({},N),delete N[b],N;default:return N}}});var Anz={parentClickTrackingParams:""};var b5a=zb({parentClickTrackingParams:function(N,b){N=N===void 0?Anz.parentClickTrackingParams:N;switch(b.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return N}}});var XZE=function(N){return _.HU({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:N})},E$O=function(N){return _.HU({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:N})};var pZd={stepStates:{}};var SNY=zb({stepStates:function(N,b){N=N===void 0?pZd.stepStates:N;switch(b.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var S=N,P=b.payload,H,K,C;N={};b={selectionStates:Object.assign({},(C=(H=S[P.stepId])==null?void 0:H.selectionStates)!=null?C:{},(N[P.token]={isSelected:P.isSelected},N)),userQuery:(K=S[P.stepId])==null?void 0:K.userQuery};H={};return Object.assign({},S,(H[P.stepId]=b,H));case "TALK_TO_RECS_UPDATE_USER_QUERY":return H=N,K=b.payload,C=
{selectionStates:Object.assign({},(P=(S=H[K.stepId])==null?void 0:S.selectionStates)!=null?P:{}),userQuery:{userQuery:K.userQuery,token:K.userQueryToken}},S={},Object.assign({},H,(S[K.stepId]=C,S));default:return N}}});var Ymb,yn9,DFE;Ymb=function(N){return _.HU({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:N})};
yn9=function(N){return _.HU({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:N})};
_.i0=function(N){return _.HU({type:"SET_CURRENT_PAGE_TYPE",payload:N})};
_.IFd=function(N){return _.HU({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:N})};
DFE=function(N){return _.HU({type:"SET_CHIP_BAR_IS_STICKY",payload:N})};var Vz9={scrollAtTop:!0,guideIsExpanded:!1,guideIsVisibleButNotPersistent:!1,miniplayerIsActive:!1,singleOptionSurveyIsActive:!1,slimlineSurveyRatingSelectedIndex:-1,miniplayerPlaybackState:-1,richGridMiniMode:!1,richGridItemsPerRow:4,richGridSlimItemsPerRow:8,richGridContainerWidth:void 0,richGridStyle:"RICH_GRID_STYLE_UNKNOWN",currentPageType:"WEB_PAGE_TYPE_UNKNOWN",inlinePreviewIsActive:!1,inlinePreviewIsEnabled:!0,darkModeIsEnabled:!1,tabGesturesIsActive:!1,isOnline:!0,chipBarIsSticky:!1,frostedGlassMode:"none"};_.Vm9=function(N){return _.HU({type:"SET_PLAYER_STATE",payload:{playerState:N}})};var rt={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:euO(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var P8e=zb({isTheaterMode:function(N,b){N=N===void 0?euO():N;switch(b.type){case "SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return N}},
isWatchActive:function(N,b){N=N===void 0?rt.isWatchActive:N;switch(b.type){case "SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return N}},
isLearningJourneyActive:function(N,b){N=N===void 0?rt.isLearningJourneyActive:N;switch(b.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return b.payload.isLearningJourneyActive;default:return N}},
isWatchFullscreen:function(N,b){N=N===void 0?rt.isWatchFullscreen:N;switch(b.type){case "SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return N}},
isWatchNarrowWidth:function(N,b){N=N===void 0?rt.isWatchNarrowWidth:N;switch(b.type){case "SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return N}},
isSwatcherooActive:function(N,b){N=N===void 0?rt.isSwatcherooActive:N;switch(b.type){case "SET_IS_SWATCHEROO_ACTIVE":return b.payload.isSwatcherooActive;default:return N}},
isWatchRetroMode:function(N,b){N=N===void 0?rt.isWatchRetroMode:N;switch(b.type){case "SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return N}},
isLiveChatCollapsed:function(N,b){N=N===void 0?rt.isLiveChatCollapsed:N;switch(b.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return N}},
openEngagementPanels:function(N,b){N=N===void 0?rt.openEngagementPanels:N;var S=[].concat(_.IX(N));switch(b.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return S.push(b.payload.panelToAdd),S;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return S.splice(S.indexOf(b.payload.panelToRemove),1),S;default:return N}},
playerState:function(N,b){N=N===void 0?rt.playerState:N;switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return N}},
watchScrollTop:function(N,b){N=N===void 0?rt.watchScrollTop:N;switch(b.type){case "SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return N}},
watchWindowSize:function(N,b){N=N===void 0?rt.watchWindowSize:N;switch(b.type){case "SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return N}}});var g$c={surveyFeedbackData:{feedbackTokens:[]}};var H5Y=zb({surveyFeedbackData:function(N,b){N=N===void 0?g$c.surveyFeedbackData:N;switch(b.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},N,b.payload);default:return N}}});var $Jb={};var rC9=void 0;_.T("web_enable_redux_store_on_demand")||(rC9=Gr_());var eTN=function(N,b,S){var P=this;this.listId=N;this.JSC$13263_updateCallback=b;this.isOfflineVideoCallback=S;_.h0().subscribe(function(){P.handleUpdate()})};
eTN.prototype.getPlaylistData=function(){var N=_.h0().getState().entities;if(this.listId&&this.listId!=="PPSV"){var b=HGa(N,this.listId,!0),S=_.Cu(this.listId,"mainPlaylistEntity"),P,H;N=N==null?void 0:(P=N.mainPlaylistEntity)==null?void 0:(H=P[S])==null?void 0:H.title;return cC9(b,N,this.listId)}b=_.pya(JDp(N));N=_.pya(_.Lu(N));N=b.concat(N);return cC9(N)};
eTN.prototype.getPlaylistId=function(){return this.listId};
eTN.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13263_updateCallback(this.listId,this.getPlaylistData(),{})};var cy=function(N,b,S,P){P=P===void 0?[]:P;this.JSC$13266_playlistNetworkManager=N;this.listId=b;this.JSC$13266_updateCallback=S;this.videoIds=P;this.pendingUpdates=[];this.currentIndex=0};
cy.prototype.JSC$13266_setCurrentIndex=function(N){this.currentIndex=N};
cy.prototype.setListId=function(N){this.listId=N};
var $FZ=function(N,b){N.currentCreateRequest&&N.currentCreateRequest.cancel(b);N.currentUpdateRequest&&N.currentUpdateRequest.cancel(b);N.currentRefreshRequest&&N.currentRefreshRequest.cancel(b)};
cy.prototype.delete=function(){$FZ(this,"PROXY DELETED")};
cy.prototype.addVideos=function(N,b,S){var P=this;S!==void 0?this.videoIds.splice.apply(this.videoIds,[S,0].concat(_.IX(N))):this.videoIds.push.apply(this.videoIds,_.IX(N));this.listId||this.currentCreateRequest?(N.forEach(function(H,K){H={addedVideoId:H,action:"ACTION_ADD_VIDEO"};S&&(H.addedVideoPosition=S+K);P.pendingUpdates.push(H)}),aw(this)):hTc(this,b.onCreateListCommand)};
var qmz=function(N,b,S,P,H){zEo(N.videoIds,b,S);b>N.currentIndex&&S<=N.currentIndex?N.JSC$13266_setCurrentIndex(N.currentIndex+1):b===N.currentIndex?N.JSC$13266_setCurrentIndex(S):b<N.currentIndex&&S>=N.currentIndex&&N.JSC$13266_setCurrentIndex(N.currentIndex-1);N.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:P,movedSetVideoIdPredecessor:H});aw(N)},hTc=function(N,b){$FZ(N,"OBSOLETE");
N.currentCreateRequest=wZb(N.JSC$13266_playlistNetworkManager,b,N.videoIds);_.z5(N.currentCreateRequest,function(){N.currentCreateRequest=void 0}).then(function(S){N.setListId(S.playlistId);
N.pendingUpdates.length>0?aw(N):NfV(N)})},aw=function(N){if(N.pendingUpdates.length!==0&&(N.currentRefreshRequest&&N.currentRefreshRequest.cancel("OBSOLETE"),!N.currentUpdateRequest&&!N.currentCreateRequest)){var b=N.pendingUpdates.splice(0,N.pendingUpdates.length);
N.currentUpdateRequest=N.JSC$13266_playlistNetworkManager.updatePlaylist(N.listId,b);_.z5(N.currentUpdateRequest,function(){N.currentUpdateRequest=void 0}).then(function(){N.pendingUpdates.length>0?aw(N):NfV(N)}).thenCatch(function(){N.pendingUpdates.unshift.apply(N.pendingUpdates,_.IX(b))})}},NfV=function(N){N.currentRefreshRequest=_.bwb(N.JSC$13266_playlistNetworkManager,N.listId,N.currentIndex,N.videoIds[N.currentIndex]);
_.z5(N.currentRefreshRequest,function(){N.currentRefreshRequest=void 0}).then(function(b){N.JSC$13266_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})};
cy.prototype.size=function(){return this.videoIds.length};var S1O=function(N,b,S,P){P=P===void 0?[]:P;cy.call(this,N,b,S,P);this.JSC$13266_playlistNetworkManager=N;this.listId=b;this.JSC$13266_updateCallback=S;this.videoIds=P};
_.F(S1O,cy);_.Rw=function(N,b,S,P,H,K,C){H=H===void 0?[]:H;C=C===void 0?dC:C;cy.call(this,N,b,S,H);this.JSC$13266_playlistNetworkManager=N;this.listId=b;this.JSC$13266_updateCallback=S;this.onAuthChange=P;this.videoIds=H;this.storage=K;this.cookieReader=C;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.PX(_.Dj,this.checkLoggedInStatusChange.bind(this),1E3)};
_.F(_.Rw,cy);_.v=_.Rw.prototype;_.v.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.PX(_.Dj,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v.JSC$13266_setCurrentIndex=function(N){cy.prototype.JSC$13266_setCurrentIndex.call(this,N);this.store()};
_.v.delete=function(){_.Dj.cancelJob(this.queueSapisIdJob);cy.prototype.delete.call(this)};
_.v.setListId=function(N){cy.prototype.setListId.call(this,N);this.store()};
_.v.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var PBc=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Hw4=["playerResponse","videoDetails"],sY9=["response","currentVideoEndpoint","watchEndpoint","videoId"],KYE=["response","currentVideoEndpoint","watchEndpoint","playlistId"],vPz=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Ow9=["response","contents","twoColumnWatchNextResults","playlist","playlist"],CBc=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Gf9=["response","contents","twoColumnWatchNextResults"];var Wy={},dTY=(Wy.WEB_UNPLUGGED="^unplugged/",Wy.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Wy.WEB_UNPLUGGED_OPS="^unplugged/",Wy.WEB_UNPLUGGED_PUBLIC="^unplugged/",Wy.WEB_CREATOR="^creator/",Wy.WEB_KIDS="^kids/",Wy.WEB_EXPERIMENTS="^experiments/",Wy.WEB_MUSIC="^music/",Wy.WEB_REMIX="^music/",Wy.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Wy.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Wy);var n3O,wZb;n3O=function(N,b){this.networkManager=N;this.innertubeTransportService=b};
wZb=function(N,b,S){if(!_.t(b,_.Rr))return _.f7(Error("Of"));_.t(b,_.Rr).videoIds=S;S={create_playlist_title:_.cN("QUEUE",void 0,"Queue")};return WTf(_.pU(N.innertubeTransportService,b,S),acU)};
_.bwb=function(N,b,S,P){b={videoId:P,playlistId:b,playlistIndex:S};S=_.q6(OZz);return WTf(_.ni(N.innertubeTransportService,b,S),nJb)};
n3O.prototype.updatePlaylist=function(N,b){return WTf(_.pU(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:N,actions:b}}),Rmu)};var rp9=function(N){this.storage=N},cp9;
rp9.prototype.store=function(N,b){b=b===void 0?0:b;if(this.storage&&N.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",N),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(S){}};
rp9.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
rp9.prototype.getPlaylistId=function(){if(!this.storage)return null;var N=null;try{N=this.storage.get("TLPQplaylist")}catch(b){}return N};var t6U=["navigationEndpoint","watchEndpoint","videoId"],T3f=["nextButtonVideo","watchEndpoint","videoId"];_.ts=new _.nO("NETWORK_TOKEN");_.$9=new _.nO("PAGE_TOKEN");_.dt=new _.nO("PLAYLIST_TOKEN");var arE;arE=new _.nO("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Mn=new _.nO("INNERTUBE_TRANSPORT_TOKEN");var R34,mW,nP9,dVc,kfd,Tfb;R34=new Set(["ci","cr","carml"]);mW=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13313_parkedJobs=new Map;this.parkedProcessors=new Map};
_.kA=function(){mW.instance||(mW.instance=new mW);return mW.instance};
mW.prototype.onAny=function(N){return _.WYN(this,N,2)};
mW.prototype.parkOrScheduleJob=function(N,b,S,P,H){_.Ts(this,S)?_.oT().addJob(N,b,P):(H&&(N=nP9(N),dVc(this,N,b,S,H)),H=this.JSC$13313_parkedJobs.get(S),H||(this.JSC$13313_parkedJobs.set(S,[]),H=this.JSC$13313_parkedJobs.get(S)),H.push({job:N,priority:b,delay:P}))};
mW.prototype.addListener=function(N,b,S){S&&(b=nP9(b),dVc(this,b,0,N,S));S=this.parkedProcessors.get(N);S||(this.parkedProcessors.set(N,[]),S=this.parkedProcessors.get(N));S.push(b)};
mW.prototype.processSignal=function(N){if(!_.Ts(this,N)){this.inProgressSignals.add(N);var b=this.JSC$13313_parkedJobs.get(N);if(b){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,_.oT().addJob(S.job,S.priority,S.delay);this.JSC$13313_parkedJobs.delete(N)}if(b=this.parkedProcessors.get(N)){b=_.O(b);for(S=b.next();!S.done;S=b.next())S=S.value,S();this.parkedProcessors.delete(N)}this.signals.push(N);this.inProgressSignals.delete(N)}};
_.Ts=function(N,b){return R34.has(b)||_.g8("IS_HOMEPAGE_COLD")||_.g8("IS_RESULTS_PAGE_COLD")||_.g8("IS_WATCH_PAGE_COLD")?N.signals.indexOf(b)>=0:!0};
nP9=function(N){var b=!1;return function(){b||(b=!0,N())}};
dVc=function(N,b,S,P,H){if(mVc.has(P))_.oT().addJob(b,S,H);else{var K=N.compoundSignals.get(P);K&&_.oT().addJob(function(){_.Ts(N,P)||(K.isTimeoutConditionSatisfied?_.oT().addJob(b,S):K.timeoutConditionObservers.push(function(){_.oT().addJob(b,S)}))},S,H)}};
_.WYN=function(N,b,S){if(b.length>1){var P=[],H=Object.create(null);b=_.O(b);for(var K=b.next();!K.done;K=b.next())K=K.value,H[K]||(P.push(K),H[K]=!0);b=P}if(b.length===1)return b[0];K=b;P="";H=S===2?"|":"&";K.sort();K=_.O(K);for(var C=K.next();!C.done;C=K.next())P+=C.value+H;if(!N.compoundSignals.get(P)){H=0;K=[];C=_.O(b);for(var G=C.next();!G.done;G=C.next())G=G.value,H++,_.Ts(N,G)||K.push(G);(S=S===2)&&H>K.length||!S&&!K.length?N.signals.push(P):kfd(N,P,S,b,K)}return P};
kfd=function(N,b,S,P,H){var K=H.length,C=function(){S||--K===0?N.processSignal(b):Tfb(N,b)};
H=_.O(H);for(var G=H.next();!G.done;G=H.next())N.addListener(G.value,C);N.compoundSignals.set(b,{signals:P,isOnAny:S,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Tfb(N,b)};
Tfb=function(N,b){if(!_.Ts(N,b)){var S=N.compoundSignals.get(b);if(S&&!S.isTimeoutConditionSatisfied){for(var P=!1,H=0,K=0,C=_.O(S.signals),G=C.next();!G.done;G=C.next()){var a=G.value;G=!_.Ts(N,a);mVc.has(a)?P=!0:(a=N.compoundSignals.get(a))?G&&!a.isTimeoutConditionSatisfied&&(K++,S.isInitialized||a.timeoutConditionObservers.push(function(){Tfb(N,b)})):G&&H++}S.isInitialized=!0;
S.isOnAny?P&&(S.isTimeoutConditionSatisfied=!0):H===0&&K===0&&(S.isTimeoutConditionSatisfied=!0);if(S.isTimeoutConditionSatisfied)for(S=_.O(S.timeoutConditionObservers),P=S.next();!P.done;P=S.next())P=P.value,P()}}};
mW.prototype.processSignal=mW.prototype.processSignal;mW.prototype.parkOrScheduleJob=mW.prototype.parkOrScheduleJob;mW.prototype.onAny=mW.prototype.onAny;_.aB("ytsignals.getInstance",_.kA);mW.prototype.onAny=mW.prototype.onAny;mW.prototype.parkOrScheduleJob=mW.prototype.parkOrScheduleJob;mW.prototype.processSignal=mW.prototype.processSignal;var mVc=new Set(["eop","eocs","dl","pcl"]);_.E_=new _.nO("MINIPLAYER_SERVICE");var tN,tCN,MC4;tN=function(N,b,S){var P=_.sX.getInstance();if(!cp9){var H=new wNO;var K=void 0,C=_.Vg("ID_TOKEN");C&&H.isAvailable()&&(K=new El(H,"yt-queue"+C));cp9=new rp9(K)}H=cp9;K=_.kA();this.JSC$13320_actionRouter=P;this.JSC$13320_pageManager=N;this.playlistManager=b;this.JSC$13320_playlistNetworkManager=S;this.storage=H;this.signals=K;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.M$=function(){if(!tCN){var N=_.aN(),b=N.resolve(_.cq(_.$9)),S=N.resolve(_.cq(_.ts)),P=N.resolve(_.cq(_.dt));N=N.resolve(_.Mn);tCN=new tN(b,P,new n3O(S,N))}return tCN};
MC4=function(N,b,S){if(S){var P;if(((P=N.responsePlaylistData)==null?void 0:P.playlistId)!==S)return}N.responsePlaylistData&&(S=fca(b,N.responsePlaylistData),N.responsePlaylistData=(0,_.Vm.unsafeClone)(N.responsePlaylistData),Qnf(N.responsePlaylistData,S));S=N.temporaryItems.findIndex(function(H){return H.videoId===b});
S>-1&&N.temporaryItems.splice(S,1);_.FB(N,_.By(N,N.response?N.response.autoplayRenderer:void 0))};
_.FYb=function(N,b){if(N.responsePlaylistData){var S=uLO(b,N.responsePlaylistData);Qnf(N.responsePlaylistData,S);if(N.queueProxy){var P=N.queueProxy;S<0||(P.videoIds.splice(S,1),S<P.currentIndex&&P.JSC$13266_setCurrentIndex(P.currentIndex-1),P.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:b}),aw(P))}}_.FB(N,_.By(N,N.response?N.response.autoplayRenderer:void 0))};
tN.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.FB(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
tN.prototype.setPlaylistData=function(N,b,S){this.temporaryItems=[];this.listId=N;this.responsePlaylistData=b;_.FB(this,_.By(this,S))};
var BfZ=function(N){return(N==null?0:N.playlistId)?N.playlistId:"PPSV"},lrZ=function(N){return N&&N.playlistId?N.playlistId==="PPSV"?!0:SQE(_.h0().getState().entities,N.playlistId):!1};
tN.prototype.isPlayingOfflineVideo=function(){return this.response?lrZ(this.response):!1};
tN.prototype.closeMiniplayer=function(N){var b=this.queueProxy&&this.queueProxy.size()<=1,S=_.aN().resolve(_.E_);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),S.close(!0);else{S.pipController.getWindow()&&window.focus();b=this.responsePlaylistData;var P=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=_.cN("QUEUE_CLEARED_UNPLURALIZED")||_.am("QUEUE_CLEARED",P);b=_.Nn(b);S=_.cN("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");P=_.cN("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.am("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",P);var H=_.cN("MINIPLAYER_CLOSE",void 0,"Close"),K=_.cN("CANCEL",void 0,"Cancel");_.qk(this.JSC$13320_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.gy(S),dialogMessages:[_.gy(P)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gy(H),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
b]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.gy(K)}}}}}}],N)}};
_.By=function(N,b){var S={},P=N.response;S.autoplayRenderer=b;if(!N.responsePlaylistData&&!N.temporaryItems.length)return!P||!P.hasRelatedVideoData&&_.T("kevlar_prefetch_data_augments_network_data")||(S.playerData={rvs:P.relatedVideoArgs,endScreenRenderer:P.endScreenRenderer}),S;S.playerData={};if(N.index===void 0)return _.ge(Error("Qf")),S;S.panel=N.responsePlaylistData?(0,_.Vm.unsafeClone)(N.responsePlaylistData):{titleText:_.gy(_.cN("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
b=S.panel;if(b.contents)for(var H=_.O(N.temporaryItems),K=H.next();!K.done;K=H.next())b.contents.push({playlistPanelVideoRenderer:K.value});N.queueProxy&&P&&P.playingVideo&&P.playingVideoId&&!LTo(P.playingVideoId,S.panel)&&(b=P.playingVideo,H=S.panel,K=N.index,H.contents&&H.contents.splice(K===void 0?0:K,0,{playlistPanelVideoRenderer:b}));P&&P.playingVideoId&&(b=N.index,H=S.panel,b=!H.contents||b>=H.contents.length?void 0:H.contents[b].playlistPanelVideoRenderer,b&&b.videoId===P.playingVideoId||(b=
fca(P.playingVideoId,S.panel),N.index=b!==-1?b:N.index?N.index-1:0));b=lcI(N.index+1,S.panel);H=void 0;N.index>0&&(H=lcI(N.index-1,S.panel));if(H||b)S.autoplayRenderer=M6p(b,H,S.autoplayRenderer);!b&&(P==null?0:P.relatedVideoArgs)&&(S.playerData.rvs=P.relatedVideoArgs);P=P?P.playlistIndexOffset:0;N.queueProxy?KqI(S.panel,N.index,P,B3Y,!0,!0,!0):KqI(S.panel,N.index,P);S.playerData.playlistPanelRenderer=S.panel;return S};
tN.prototype.openToast=function(N){_.aN().resolve(_.E_).openToast(N,_.cN("ADDED_TO_QUEUE",void 0,"Added to queue"))};
tN.prototype.isMiniplayerActive=function(){return _.aN().resolve(_.E_).isMiniplayerActive()};
_.FB=function(N,b){N.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);N.playlistManager.setPlaylistData(b.panel||null);b.playerData&&N.playlistManager.setPlayerPlaybackControlData(b.playerData)};var OWa="#";var LYZ={},frb={},uu4={},QYO={},xVV={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",params:[{key:"kc",value:"66"},{key:"cw",value:"st"},{key:"zb",value:"xz"},{key:"zl",value:"16"},{key:"pf",value:"sy"}]},{service:"bh",params:[{key:"ip",value:"54"},{key:"tb",value:"dv"},{key:"pi",value:"pn"},{key:"fg",value:"35"},{key:"wm",value:"vo"}]},{service:"fp",params:[{key:"hw",value:"91"}]},{service:"rk",params:[{key:"pe",value:"sf"},{key:"rv",value:"jn"},{key:"aw",value:"pw"}]}],maxAgeSeconds:87,
mainAppWebResponseContext:{loggedOut:43,trackingParam:"dd",datasyncId:"xp"},webResponseContextExtensionData:{hasDecorated:75}},playabilityStatus:{status:"by",playableInEmbed:2,miniplayer:{miniplayerRenderer:{playbackMode:"tj"}},offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:"pz",ypcGetOfflineUpsellEndpoint:{params:"xm"}},trackingParams:"pq"}},contextParams:"lu"},streamingData:{expiresInSeconds:"53",formats:[{itag:80,url:"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes",
mimeType:'video/webm; codecs="vp9"',bitrate:88,width:96,height:65,lastModified:"1665263132187531",contentLength:"17",quality:"rc",fps:8,qualityLabel:"ab",projectionType:"by",averageBitrate:50,audioQuality:"th",approxDurationMs:"86",audioSampleRate:"88",audioChannels:34},{itag:95,url:"hs",mimeType:"nm",bitrate:56,width:13,height:14,lastModified:"10",quality:"fu",fps:54,qualityLabel:"yj",projectionType:"wu",audioQuality:"tu",approxDurationMs:"51",audioSampleRate:"87",audioChannels:44}],adaptiveFormats:[{itag:50,
url:"fu",mimeType:"uz",bitrate:80,width:80,height:85,initRange:{start:"16",end:"71"},indexRange:{start:"1",end:"26"},lastModified:"70",contentLength:"66",quality:"cx",fps:61,qualityLabel:"xt",projectionType:"pe",averageBitrate:68,approxDurationMs:"1"},{itag:77,url:"rj",mimeType:"lh",bitrate:16,width:17,height:47,initRange:{start:"51",end:"44"},indexRange:{start:"87",end:"61"},lastModified:"13",contentLength:"21",quality:"ie",fps:23,qualityLabel:"ig",projectionType:"bl",averageBitrate:16,colorInfo:{primaries:"et",
transferCharacteristics:"zu",matrixCoefficients:"od"},approxDurationMs:"59"},{itag:7,url:"fc",mimeType:"gr",bitrate:71,width:11,height:3,initRange:{start:"100",end:"7"},indexRange:{start:"36",end:"98"},lastModified:"88",contentLength:"77",quality:"rb",fps:46,qualityLabel:"gq",projectionType:"ld",averageBitrate:99,colorInfo:{primaries:"xd",transferCharacteristics:"uu",matrixCoefficients:"zc"},approxDurationMs:"44"},{itag:10,url:"kl",mimeType:"wb",bitrate:51,width:69,height:3,initRange:{start:"92",
end:"79"},indexRange:{start:"42",end:"72"},lastModified:"99",contentLength:"6",quality:"ee",fps:40,qualityLabel:"em",projectionType:"wz",averageBitrate:48,approxDurationMs:"86"},{itag:44,url:"hp",mimeType:"kq",bitrate:84,width:53,height:22,initRange:{start:"48",end:"51"},indexRange:{start:"54",end:"44"},lastModified:"25",contentLength:"47",quality:"xy",fps:11,qualityLabel:"zl",projectionType:"za",averageBitrate:95,colorInfo:{primaries:"ot",transferCharacteristics:"av",matrixCoefficients:"ow"},approxDurationMs:"85"},
{itag:20,url:"di",mimeType:"nc",bitrate:15,width:19,height:92,initRange:{start:"82",end:"58"},indexRange:{start:"80",end:"37"},lastModified:"46",contentLength:"40",quality:"wo",fps:44,qualityLabel:"pt",projectionType:"bg",averageBitrate:3,colorInfo:{primaries:"wq",transferCharacteristics:"is",matrixCoefficients:"ou"},approxDurationMs:"47"},{itag:44,url:"oe",mimeType:"mh",bitrate:37,width:43,height:24,initRange:{start:"29",end:"91"},indexRange:{start:"97",end:"97"},lastModified:"52",contentLength:"43",
quality:"cr",fps:44,qualityLabel:"hc",projectionType:"cr",averageBitrate:12,approxDurationMs:"97"},{itag:32,url:"gq",mimeType:"sh",bitrate:42,width:32,height:13,initRange:{start:"71",end:"87"},indexRange:{start:"70",end:"4"},lastModified:"67",contentLength:"16",quality:"sb",fps:66,qualityLabel:"mv",projectionType:"kk",averageBitrate:51,colorInfo:{primaries:"pk",transferCharacteristics:"ea",matrixCoefficients:"cq"},approxDurationMs:"70"},{itag:71,url:"zt",mimeType:"bl",bitrate:12,width:68,height:12,
initRange:{start:"63",end:"2"},indexRange:{start:"28",end:"68"},lastModified:"33",contentLength:"0",quality:"dh",fps:6,qualityLabel:"jv",projectionType:"sy",averageBitrate:75,colorInfo:{primaries:"us",transferCharacteristics:"ka",matrixCoefficients:"xw"},approxDurationMs:"16"},{itag:98,url:"vl",mimeType:"lg",bitrate:88,width:23,height:83,initRange:{start:"49",end:"34"},indexRange:{start:"43",end:"90"},lastModified:"84",contentLength:"77",quality:"xu",fps:50,qualityLabel:"jz",projectionType:"om",averageBitrate:16,
highReplication:95,approxDurationMs:"46"},{itag:85,url:"ri",mimeType:"dh",bitrate:77,width:86,height:54,initRange:{start:"40",end:"98"},indexRange:{start:"15",end:"85"},lastModified:"25",contentLength:"53",quality:"rq",fps:62,qualityLabel:"nx",projectionType:"wg",averageBitrate:35,colorInfo:{primaries:"oa",transferCharacteristics:"kb",matrixCoefficients:"kk"},approxDurationMs:"26"},{itag:10,url:"zz",mimeType:"lq",bitrate:55,width:89,height:43,initRange:{start:"94",end:"98"},indexRange:{start:"73",
end:"51"},lastModified:"3",contentLength:"36",quality:"yo",fps:5,qualityLabel:"we",projectionType:"ve",averageBitrate:83,colorInfo:{primaries:"yu",transferCharacteristics:"fu",matrixCoefficients:"ox"},approxDurationMs:"11"},{itag:62,url:"hv",mimeType:"th",bitrate:76,width:28,height:79,initRange:{start:"97",end:"100"},indexRange:{start:"58",end:"63"},lastModified:"53",contentLength:"22",quality:"ou",fps:7,qualityLabel:"cm",projectionType:"xv",averageBitrate:35,approxDurationMs:"98"},{itag:91,url:"vr",
mimeType:"wo",bitrate:41,width:4,height:79,initRange:{start:"80",end:"83"},indexRange:{start:"14",end:"58"},lastModified:"50",contentLength:"38",quality:"ic",fps:64,qualityLabel:"sq",projectionType:"du",averageBitrate:61,colorInfo:{primaries:"ok",transferCharacteristics:"ud",matrixCoefficients:"ob"},approxDurationMs:"73"},{itag:48,url:"lq",mimeType:"zl",bitrate:4,width:16,height:65,initRange:{start:"93",end:"50"},indexRange:{start:"52",end:"44"},lastModified:"74",contentLength:"86",quality:"mi",fps:43,
qualityLabel:"rz",projectionType:"ji",averageBitrate:61,colorInfo:{primaries:"qo",transferCharacteristics:"fk",matrixCoefficients:"jy"},approxDurationMs:"70"},{itag:34,url:"cr",mimeType:"la",bitrate:53,width:29,height:97,initRange:{start:"89",end:"45"},indexRange:{start:"93",end:"45"},lastModified:"52",contentLength:"74",quality:"xn",fps:60,qualityLabel:"xs",projectionType:"lf",averageBitrate:1,approxDurationMs:"18"},{itag:67,url:"mr",mimeType:"cs",bitrate:79,width:9,height:85,initRange:{start:"56",
end:"96"},indexRange:{start:"71",end:"84"},lastModified:"78",contentLength:"80",quality:"ld",fps:2,qualityLabel:"no",projectionType:"uq",averageBitrate:35,colorInfo:{primaries:"mj",transferCharacteristics:"ry",matrixCoefficients:"cc"},approxDurationMs:"43"},{itag:57,url:"fi",mimeType:"to",bitrate:80,width:81,height:29,initRange:{start:"6",end:"96"},indexRange:{start:"73",end:"48"},lastModified:"32",contentLength:"11",quality:"ck",fps:82,qualityLabel:"fo",projectionType:"px",averageBitrate:95,colorInfo:{primaries:"az",
transferCharacteristics:"mq",matrixCoefficients:"oc"},approxDurationMs:"44"},{itag:52,url:"ea",mimeType:"xm",bitrate:18,initRange:{start:"15",end:"16"},indexRange:{start:"4",end:"33"},lastModified:"65",contentLength:"67",quality:"es",projectionType:"mp",averageBitrate:52,highReplication:82,audioQuality:"za",approxDurationMs:"24",audioSampleRate:"1",audioChannels:92,loudnessDb:.9787435365879406},{itag:37,url:"kk",mimeType:"xg",bitrate:78,initRange:{start:"38",end:"94"},indexRange:{start:"27",end:"17"},
lastModified:"61",contentLength:"2",quality:"nh",projectionType:"ar",averageBitrate:69,audioQuality:"la",approxDurationMs:"95",audioSampleRate:"66",audioChannels:50,loudnessDb:.6461265012758731},{itag:45,url:"oc",mimeType:"nm",bitrate:12,initRange:{start:"21",end:"45"},indexRange:{start:"21",end:"13"},lastModified:"45",contentLength:"85",quality:"vs",projectionType:"xp",averageBitrate:32,audioQuality:"tv",approxDurationMs:"1",audioSampleRate:"99",audioChannels:42,loudnessDb:.39295968942278037},{itag:37,
url:"zf",mimeType:"be",bitrate:29,initRange:{start:"27",end:"87"},indexRange:{start:"81",end:"20"},lastModified:"6",contentLength:"33",quality:"pe",projectionType:"pb",averageBitrate:100,audioQuality:"zi",approxDurationMs:"70",audioSampleRate:"32",audioChannels:68,loudnessDb:.2781731101164002}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"bj"},
videostatsDelayplayUrl:{baseUrl:"vx"},videostatsWatchtimeUrl:{baseUrl:"px"},ptrackingUrl:{baseUrl:"tg"},qoeUrl:{baseUrl:"wx"},atrUrl:{baseUrl:"xz",elapsedMediaTimeSeconds:45},videostatsScheduledFlushWalltimeSeconds:[99,32,39],videostatsDefaultFlushIntervalSeconds:3,youtubeRemarketingUrl:{baseUrl:"mb",elapsedMediaTimeSeconds:63},googleRemarketingUrl:{baseUrl:"yn",elapsedMediaTimeSeconds:83}},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"ew",name:{simpleText:"ez"},vssId:"fj",languageCode:"wd",
kind:"ez",isTranslatable:21}],audioTracks:[{captionTrackIndices:[87]}],translationLanguages:[{languageCode:"xu",languageName:{simpleText:"fw"}},{languageCode:"zl",languageName:{simpleText:"xc"}},{languageCode:"jr",languageName:{simpleText:"md"}},{languageCode:"sc",languageName:{simpleText:"wf"}},{languageCode:"nj",languageName:{simpleText:"xn"}},{languageCode:"of",languageName:{simpleText:"av"}},{languageCode:"tv",languageName:{simpleText:"ok"}},{languageCode:"nu",languageName:{simpleText:"ry"}},
{languageCode:"zy",languageName:{simpleText:"nb"}},{languageCode:"pt",languageName:{simpleText:"eq"}},{languageCode:"vr",languageName:{simpleText:"cc"}},{languageCode:"wh",languageName:{simpleText:"hd"}},{languageCode:"hp",languageName:{simpleText:"ds"}},{languageCode:"ka",languageName:{simpleText:"up"}},{languageCode:"sw",languageName:{simpleText:"zp"}},{languageCode:"rh",languageName:{simpleText:"eq"}},{languageCode:"bq",languageName:{simpleText:"at"}},{languageCode:"hu",languageName:{simpleText:"fg"}},
{languageCode:"ai",languageName:{simpleText:"iy"}},{languageCode:"rj",languageName:{simpleText:"oz"}},{languageCode:"sq",languageName:{simpleText:"fe"}},{languageCode:"tn",languageName:{simpleText:"vk"}},{languageCode:"jr",languageName:{simpleText:"jg"}},{languageCode:"vc",languageName:{simpleText:"hv"}},{languageCode:"yn",languageName:{simpleText:"ky"}},{languageCode:"pa",languageName:{simpleText:"rw"}},{languageCode:"lr",languageName:{simpleText:"kv"}},{languageCode:"ud",languageName:{simpleText:"fn"}},
{languageCode:"hq",languageName:{simpleText:"io"}},{languageCode:"rp",languageName:{simpleText:"qx"}},{languageCode:"xf",languageName:{simpleText:"sm"}},{languageCode:"fs",languageName:{simpleText:"ty"}},{languageCode:"so",languageName:{simpleText:"xl"}},{languageCode:"fk",languageName:{simpleText:"ff"}},{languageCode:"fw",languageName:{simpleText:"wz"}},{languageCode:"rn",languageName:{simpleText:"zw"}},{languageCode:"wq",languageName:{simpleText:"yt"}},{languageCode:"oh",languageName:{simpleText:"oo"}},
{languageCode:"ts",languageName:{simpleText:"jt"}},{languageCode:"xy",languageName:{simpleText:"ga"}},{languageCode:"jy",languageName:{simpleText:"sx"}},{languageCode:"lw",languageName:{simpleText:"cf"}},{languageCode:"fc",languageName:{simpleText:"qr"}},{languageCode:"ji",languageName:{simpleText:"cc"}},{languageCode:"qs",languageName:{simpleText:"pi"}},{languageCode:"vx",languageName:{simpleText:"hk"}},{languageCode:"jt",languageName:{simpleText:"eh"}},{languageCode:"fb",languageName:{simpleText:"iu"}},
{languageCode:"mf",languageName:{simpleText:"st"}},{languageCode:"en",languageName:{simpleText:"vr"}},{languageCode:"go",languageName:{simpleText:"kp"}},{languageCode:"sc",languageName:{simpleText:"rk"}},{languageCode:"bx",languageName:{simpleText:"ci"}},{languageCode:"pu",languageName:{simpleText:"qj"}},{languageCode:"fa",languageName:{simpleText:"ht"}},{languageCode:"bw",languageName:{simpleText:"af"}},{languageCode:"rr",languageName:{simpleText:"jt"}},{languageCode:"ef",languageName:{simpleText:"yy"}},
{languageCode:"bn",languageName:{simpleText:"wu"}},{languageCode:"ov",languageName:{simpleText:"ae"}},{languageCode:"sm",languageName:{simpleText:"hi"}},{languageCode:"tq",languageName:{simpleText:"ie"}},{languageCode:"fn",languageName:{simpleText:"et"}},{languageCode:"jw",languageName:{simpleText:"bu"}},{languageCode:"iz",languageName:{simpleText:"gc"}},{languageCode:"bk",languageName:{simpleText:"jh"}},{languageCode:"vw",languageName:{simpleText:"fq"}},{languageCode:"xt",languageName:{simpleText:"or"}},
{languageCode:"kq",languageName:{simpleText:"ch"}},{languageCode:"pa",languageName:{simpleText:"cs"}},{languageCode:"ef",languageName:{simpleText:"eq"}},{languageCode:"mk",languageName:{simpleText:"ig"}},{languageCode:"me",languageName:{simpleText:"pv"}},{languageCode:"ll",languageName:{simpleText:"nz"}},{languageCode:"yd",languageName:{simpleText:"pu"}},{languageCode:"dj",languageName:{simpleText:"vx"}},{languageCode:"xc",languageName:{simpleText:"ca"}},{languageCode:"wb",languageName:{simpleText:"il"}},
{languageCode:"ww",languageName:{simpleText:"jf"}},{languageCode:"xi",languageName:{simpleText:"ba"}},{languageCode:"ae",languageName:{simpleText:"hx"}},{languageCode:"uj",languageName:{simpleText:"xu"}},{languageCode:"hq",languageName:{simpleText:"gp"}},{languageCode:"we",languageName:{simpleText:"pk"}},{languageCode:"kt",languageName:{simpleText:"ek"}},{languageCode:"hy",languageName:{simpleText:"ab"}},{languageCode:"hm",languageName:{simpleText:"nu"}},{languageCode:"uw",languageName:{simpleText:"rx"}},
{languageCode:"or",languageName:{simpleText:"nf"}},{languageCode:"dh",languageName:{simpleText:"zn"}},{languageCode:"kb",languageName:{simpleText:"js"}},{languageCode:"vg",languageName:{simpleText:"xe"}},{languageCode:"dl",languageName:{simpleText:"so"}},{languageCode:"lz",languageName:{simpleText:"hb"}},{languageCode:"ny",languageName:{simpleText:"xr"}},{languageCode:"ag",languageName:{simpleText:"us"}},{languageCode:"zr",languageName:{simpleText:"ae"}},{languageCode:"yq",languageName:{simpleText:"yc"}},
{languageCode:"up",languageName:{simpleText:"dc"}},{languageCode:"zn",languageName:{simpleText:"jw"}},{languageCode:"uh",languageName:{simpleText:"ms"}},{languageCode:"mt",languageName:{simpleText:"vf"}},{languageCode:"lt",languageName:{simpleText:"ln"}},{languageCode:"vf",languageName:{simpleText:"rd"}},{languageCode:"my",languageName:{simpleText:"rk"}},{languageCode:"ei",languageName:{simpleText:"ul"}},{languageCode:"dj",languageName:{simpleText:"cz"}},{languageCode:"kb",languageName:{simpleText:"hp"}},
{languageCode:"jj",languageName:{simpleText:"zf"}},{languageCode:"ew",languageName:{simpleText:"ff"}},{languageCode:"jo",languageName:{simpleText:"iz"}},{languageCode:"ja",languageName:{simpleText:"uz"}},{languageCode:"yd",languageName:{simpleText:"or"}},{languageCode:"tl",languageName:{simpleText:"tw"}},{languageCode:"mw",languageName:{simpleText:"th"}},{languageCode:"pq",languageName:{simpleText:"zp"}},{languageCode:"pq",languageName:{simpleText:"pk"}},{languageCode:"ef",languageName:{simpleText:"fj"}},
{languageCode:"qq",languageName:{simpleText:"vu"}},{languageCode:"pj",languageName:{simpleText:"kp"}},{languageCode:"ab",languageName:{simpleText:"xw"}},{languageCode:"re",languageName:{simpleText:"ln"}},{languageCode:"ht",languageName:{simpleText:"wo"}},{languageCode:"ju",languageName:{simpleText:"wb"}},{languageCode:"yq",languageName:{simpleText:"xv"}}],defaultAudioTrackIndex:70}},videoDetails:{videoId:"ux",title:"jb",lengthSeconds:"90",keywords:"th ts yg gy ih iq zj".split(" "),channelId:"pg",
isOwnerViewing:6,shortDescription:"ts",isCrawlable:62,thumbnail:{thumbnails:[{url:"vx",width:8,height:58},{url:"bp",width:44,height:79},{url:"oh",width:47,height:66},{url:"hm",width:34,height:55},{url:"vr",width:0,height:20}]},allowRatings:24,viewCount:"49",author:"xr",isPrivate:70,isUnpluggedCorpus:66,isLiveContent:99},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"96",endTimeMs:"46",watermark:{thumbnails:[{url:"li",width:91,height:28}]},trackingParams:"an",navigationEndpoint:{clickTrackingParams:"mg",
commandMetadata:{webCommandMetadata:{url:"rd",webPageType:"nc",rootVe:69,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:"qg"}},channelName:"ei",subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:"pz"}]},subscribed:44,enabled:33,type:"ue",channelId:"ki",showPreferences:71,subscribedButtonText:{runs:[{text:"lk"}]},unsubscribedButtonText:{runs:[{text:"jn"}]},trackingParams:"oj",unsubscribeButtonText:{runs:[{text:"ad"}]},serviceEndpoints:[{clickTrackingParams:"wm",commandMetadata:{webCommandMetadata:{sendPost:4,
apiUrl:"ky"}},subscribeEndpoint:{channelIds:["zt"],params:"at"}},{clickTrackingParams:"jg",commandMetadata:{webCommandMetadata:{sendPost:28}},signalServiceEndpoint:{signal:"ok",actions:[{clickTrackingParams:"lt",openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:"po",dialogMessages:[{runs:[{text:"ou"},{text:"jt"},{text:"zz"}]}],confirmButton:{buttonRenderer:{style:"mm",size:"oi",isDisabled:43,text:{runs:[{text:"kc"}]},serviceEndpoint:{clickTrackingParams:"gk",commandMetadata:{webCommandMetadata:{sendPost:18,
apiUrl:"kc"}},unsubscribeEndpoint:{channelIds:["cm"],params:"ar"}},accessibility:{label:"iy"},trackingParams:"gs"}},cancelButton:{buttonRenderer:{style:"jb",size:"pe",isDisabled:69,text:{runs:[{text:"uv"}]},accessibility:{label:"qu"},trackingParams:"pe"}},primaryIsCancel:48}},popupType:"ma"}}]}}],subscribeAccessibility:{accessibilityData:{label:"vh"}},unsubscribeAccessibility:{accessibilityData:{label:"lg"}},signInEndpoint:{clickTrackingParams:"eu",commandMetadata:{webCommandMetadata:{url:"na"}}}}}},
allowSwipeDismiss:55,annotationId:"jd"}}],playerConfig:{audioConfig:{loudnessDb:.9620880668073215,perceptualLoudnessDb:.541474004793957,enablePerFormatLoudness:31},streamSelectionConfig:{maxBitrate:"61"},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:100,minReadAheadMediaTimeMs:21,readAheadGrowthRateMs:29}},webPlayerConfig:{useCobaltTvosDash:55,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:"of",commandMetadata:{webCommandMetadata:{sendPost:31,apiUrl:"xl"}},
webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"tr"}},subscribeCommand:{clickTrackingParams:"fs",commandMetadata:{webCommandMetadata:{sendPost:13,apiUrl:"xp"}},subscribeEndpoint:{channelIds:["qs"],params:"oa"}},unsubscribeCommand:{clickTrackingParams:"ls",commandMetadata:{webCommandMetadata:{sendPost:91,apiUrl:"wc"}},unsubscribeEndpoint:{channelIds:["fo"],params:"vt"}},addToWatchLaterCommand:{clickTrackingParams:"ua",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"iu"}},playlistEditEndpoint:{playlistId:"rv",
actions:[{addedVideoId:"iw",action:"rd"}]}},removeFromWatchLaterCommand:{clickTrackingParams:"un",commandMetadata:{webCommandMetadata:{sendPost:20,apiUrl:"bl"}},playlistEditEndpoint:{playlistId:"zg",actions:[{action:"ya",removedVideoId:"dk"}]}}},gatewayExperimentGroup:"vb"}},storyboards:{playerStoryboardSpecRenderer:{spec:"aj",recommendedLevel:87}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"mm",width:57,height:94}]},embed:{iframeUrl:"bd",width:51,height:73},title:{simpleText:"sg"},
description:{simpleText:"yv"},lengthSeconds:"18",ownerProfileUrl:"bg",externalChannelId:"eg",isFamilySafe:88,availableCountries:"hn sd lt tx nw mq iz aj vi xa ec iv rj vb ro po mv mx cn ld tn ay gv bs vf da ss km uo mg wv md lo nc vh li jh lj qq ci ob zy pu bl jm ge tt ov ue vp ka nh uc gb rs gu hm uv nq ga qu hr pj zq rh nn yv or zg ai qj cv vg hr zm al mj fz yx st tt ih vm wq gx wi ys ug vb uh rf ry ba xu ce eq bx he jm ie nb cd qz no yq qe jy wd pm nb hk em im iv ld gz fe ut md gw sf yz yp xr gm uo kg yo wv da wt ry it gz mm ho mf lq tu im lu gm pa ny gu ds yx yh jk qb jv mp bi nr mc bg ym zt sh kd gj dp qw eh no pj nq dy gt cm pg ce jt xv tf ue ke hs xh tc ad yg uh cd zc rj kq sp vv xt bo am kg kx xb fr il qi ap pe tg im cs vy zu cq bu og tf ze zj um vd ot al zl um jv ss md xm nv id es jf as zb ms uv jh xz em uv bk zx wp ay ub pa rf yi zm em pu xs".split(" "),
isUnlisted:24,hasYpcMetadata:38,viewCount:"6",category:"qh",publishDate:"eb",ownerChannelName:"mf",uploadDate:"ax"}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:"ha"},trackingParams:"ra",prominent:9,logVisibilityUpdates:88,onTapCommand:{clickTrackingParams:"dy",changeEngagementPanelVisibilityAction:{targetId:"qc",visibility:"mh"}}}},cueRanges:[{startCardActiveMs:"41",endCardActiveMs:"81",teaserDurationMs:"31",iconAfterTeaserMs:"65"}],
trackingParams:"sn"}}],headerText:{simpleText:"mi"},icon:{infoCardIconRenderer:{trackingParams:"tq"}},closeButton:{infoCardIconRenderer:{trackingParams:"nz"}},trackingParams:"ss",allowTeaserDismiss:55,logIconVisibilityUpdates:49}},trackingParams:"lt",attestation:{playerAttestationRenderer:{challenge:"rg",botguardData:{program:"vk",interpreterSafeUrl:(LYZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",LYZ),serverEnvironment:83}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["vs"],
joinLatencySeconds:85,rebufferTimeSeconds:89,watchTimeWindowSeconds:21,refractorySeconds:41},text:{runs:[{text:"it"},{text:"qt",bold:60}]},endpoint:{clickTrackingParams:"lw",commandMetadata:{webCommandMetadata:{url:"ih",webPageType:"xa",rootVe:73}},urlEndpoint:{url:"ms",target:"tj"}},trackingParams:"vd",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:"pp"}]},actionButton:{buttonRenderer:{text:{runs:[{text:"yw"}]},navigationEndpoint:{clickTrackingParams:"sq",commandMetadata:{webCommandMetadata:{url:"wp",
webPageType:"zn",rootVe:21}},urlEndpoint:{url:"ju",target:"dy"}},trackingParams:"zj"}},trackingParams:"nh"}}}},messages:[{mealbarPromoRenderer:{icon:{thumbnails:[{url:"ek",width:71,height:69}]},messageTexts:[{runs:[{text:"ew"}]}],actionButton:{buttonRenderer:{style:"gz",size:"tz",text:{runs:[{text:"ga"}]},trackingParams:"qr",command:{clickTrackingParams:"wk",commandExecutorCommand:{commands:[{clickTrackingParams:"dw",commandMetadata:{webCommandMetadata:{url:"po",webPageType:"fl",rootVe:70,apiUrl:"ot"}},
browseEndpoint:{browseId:"pl",params:"zo"}},{commandMetadata:{webCommandMetadata:{sendPost:10,apiUrl:"rv"}},feedbackEndpoint:{feedbackToken:"xi",uiActions:{hideEnclosingContainer:25}}}]}}}},dismissButton:{buttonRenderer:{style:"ol",size:"og",text:{runs:[{text:"yv"}]},trackingParams:"ch",command:{clickTrackingParams:"uu",commandExecutorCommand:{commands:[{clickTrackingParams:"ig",commandMetadata:{webCommandMetadata:{sendPost:71,apiUrl:"en"}},feedbackEndpoint:{feedbackToken:"wh",uiActions:{hideEnclosingContainer:45}}}]}}}},
triggerCondition:"pb",style:"uq",trackingParams:"rp",impressionEndpoints:[{clickTrackingParams:"xb",commandMetadata:{webCommandMetadata:{sendPost:73,apiUrl:"wl"}},feedbackEndpoint:{feedbackToken:"wf",uiActions:{hideEnclosingContainer:95}}}],isVisible:17,messageTitle:{runs:[{text:"ir"}]},enableSharedFeatureForImpressionHandling:21}}],adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"7",offsetEndMilliseconds:"39"},
hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg",width:46,height:25}]},trackingParams:"ye"},trackingParams:"dq",templatedCountdown:{templatedAdText:{text:"ps",isTemplated:82,trackingParams:"cc"}},durationMilliseconds:44}},skippableRenderer:{skipButtonRenderer:{message:{text:"xz",
isTemplated:30,trackingParams:"um"},trackingParams:"ge"}},trackingParams:"zg",skipOffsetMilliseconds:88}},trackingParams:"qd",visitAdvertiserRenderer:{buttonRenderer:{style:"fv",text:{simpleText:"on"},icon:{iconType:"vw"},navigationEndpoint:{clickTrackingParams:"mk",commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110",
webPageType:"ry",rootVe:62}},urlEndpoint:{url:"lq",target:"wt"}},trackingParams:"mh"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"kw",isTemplated:93,trackingParams:"jg"},trackingParams:"at"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"rl",isTemplated:73,trackingParams:"le"}},trackingParams:"tr"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"le",size:"nb",isDisabled:41,serviceEndpoint:{clickTrackingParams:"jt",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(frb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",frb),trackingParams:"vy"}},popupType:"xn"}},icon:{iconType:"vl"},trackingParams:"lm",accessibilityData:{accessibilityData:{label:"qi"}}}},hoverText:{simpleText:"zk"},trackingParams:"qa"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"pv"}]},trackingParams:"jo"},headline:{text:"qx",isTemplated:10,trackingParams:"um"},description:{text:"mf",trackingParams:"fe"},
actionButton:{buttonRenderer:{text:{simpleText:"kq"},navigationEndpoint:{clickTrackingParams:"cm",commandMetadata:{webCommandMetadata:{url:"wa",webPageType:"nq",rootVe:69}},urlEndpoint:{url:"ln",target:"nd"}},trackingParams:"no"}},startMs:45,trackingParams:"ge"}},adLayoutLoggingData:{serializedAdServingDataEntry:"xd"},elementId:"tc",inPlayerSlotId:"gg",inPlayerLayoutId:"cm"}},trackingParams:"uy",layoutId:"ff",associatedPlayerBytesLayoutId:"dy"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"gv"}]},
trackingParams:"at"},headline:{text:"ow",isTemplated:66,trackingParams:"za"},description:{text:"ds",isTemplated:95,trackingParams:"fc"},actionButton:{buttonRenderer:{style:"ys",text:{simpleText:"aq"},navigationEndpoint:{clickTrackingParams:"vu",commandMetadata:{webCommandMetadata:{url:"zn",webPageType:"jv",rootVe:38}},urlEndpoint:{url:"df",target:"xe"}},trackingParams:"za"}},durationMilliseconds:44,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"xg"}},navigationEndpoint:{clickTrackingParams:"vg",
loggingUrls:[{baseUrl:"bc"}],commandMetadata:{webCommandMetadata:{url:"sn",webPageType:"vb",rootVe:34}},urlEndpoint:{url:"ex",target:"nb"}},trackingParams:"iw",backgroundImage:{thumbnail:{thumbnails:[{url:"cm"}]},trackingParams:"br"},adRendererCommands:{impressionCommand:{clickTrackingParams:"dj",commandExecutorCommand:{commands:[{clickTrackingParams:"li",loggingUrls:[{baseUrl:"wa"}],pingingEndpoint:{hack:0}}]}}},skipButton:{skipButtonRenderer:{message:{text:"jg",isTemplated:95,trackingParams:"by"},
trackingParams:"kl"}},adLayoutLoggingData:{serializedAdServingDataEntry:"kt"},layoutId:"cv",inPlayerSlotId:"qt",inPlayerLayoutId:"yy",associatedPlayerBytesLayoutId:"dx"}},{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"pz",width:32,height:43}]},trackingParams:"iz"},trackingParams:"yo",templatedCountdown:{templatedAdText:{text:"we",isTemplated:91,trackingParams:"si"}},
durationMilliseconds:10}},skippableRenderer:{skipButtonRenderer:{message:{text:"bp",isTemplated:93,trackingParams:"mo"},trackingParams:"cp"}},trackingParams:"qr",skipOffsetMilliseconds:60}},trackingParams:"zf",visitAdvertiserRenderer:{buttonRenderer:{style:"ya",text:{simpleText:"fv"},icon:{iconType:"bx"},navigationEndpoint:{clickTrackingParams:"bw",commandMetadata:{webCommandMetadata:{url:"ht",webPageType:"gv",rootVe:14}},urlEndpoint:{url:"wi",target:"te"}},trackingParams:"gr"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"ox",
isTemplated:66,trackingParams:"td"},trackingParams:"ng"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"zu",isTemplated:15,trackingParams:"py"}},trackingParams:"hb"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"vn",size:"cw",isDisabled:56,serviceEndpoint:{clickTrackingParams:"jh",openPopupAction:{popup:{aboutThisAdRenderer:{url:(uu4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",uu4),trackingParams:"yl"}},popupType:"tw"}},
icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",
rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",
text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},
trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:"330100",offsetEndMilliseconds:"594666"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},
trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(QYO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",QYO),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"1234",
slotType:"SLOT_TYPE_PLAYER_BYTES",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},triggerEvent:"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},
renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],
activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action",
elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",
loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},
{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},
{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",
target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",
abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],
layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",
type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var IuU=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{},
webPlayerConfig:{webPlayerActionsPorting:{}}}},playerConfig:{audioConfig:{},streamSelectionConfig:{},webPlayerConfig:{webPlayerActionsPorting:{}}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]},{jsonRepresentation:'{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}',
objectRepresentation:xVV},{jsonRepresentation:'{"playerResponse":{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}}',
objectRepresentation:{playerResponse:xVV}}];var Uhu;_.CX=[[["bmQjdzNhZWtqZDl2bzhta2k=","eGdpZjF1cmc1MmN2YWx1ZSM1"],"cGE4ZG1vdWJlZmtBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCNv"]];
Uhu=[[["aTdpcHJpbWFyeSN1cWUzdDlhZHQ=",null,null],[null,["c2UtcmVzdWx0cy1yZW5kZXJlciM3NTcwdWpoOXZtNDl5dGQtdHdvLWNvbHVtbi1icm93","MTZjYXo0azZ3bmZzdHlsZS1zY29wZSM2"],null],["OXJsdDNmemt2dndtYXN0aGVhZC1hZCNp",["I3JvNXI0b2prZW1pdHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="],null],[null,["I2R5YXI5ZHd5ZXU5a3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXI=","MDRnMjIyNGgxZGVzdHlsZS1zY29wZSNm"],null],[null,["dDR1bmVyOHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjdnNtbG4=","NWtwZW1nMjZhZTNzdHlsZS1zY29wZSN5"],null],[null,["ZXJlciM3M3FiNmgxNGV2aHd5dGQtYWQtc2xvdC1yZW5k"],
null]],[["ci1hZHMjaXQ4d3A2MnV4NnVwbGF5ZQ==",null,null]]];_.OK=["bG9iYWxDYWxsYmFja3MjMzg2eHg1NzJpZ2t1Zw==","ZWQjOGk3dmVmeGFncmZ3b25BYm5vcm1hbGl0eURldGVjdA==","bkFkU2tpcCM0NnB5em50aXVraDVv","c3BvbnNlI2RlYzNkMXhsczhxeXJhd19wbGF5ZXJfcmU=","dDUzYWRTbG90cyNiM3FodmFrcG0="];_.lP="bG9iYWxDYWxsYmFja3MjMzg2eHg1NzJpZ2t1Zw== ZWQjOGk3dmVmeGFncmZ3b25BYm5vcm1hbGl0eURldGVjdA== bkFkU2tpcCM0NnB5em50aXVraDVv c3BvbnNlI2RlYzNkMXhsczhxeXJhd19wbGF5ZXJfcmU= ZXVlX211bHRpcGxlX3NraXBzX2tzI25ndzYxZ251OWxvY3dlYl9wbGF5bGlzdF9xdQ== Yl9zYV9lZiNybWZlNW1zbGNtdW1h dDUzYWRTbG90cyNiM3FodmFrcG0=".split(" ");var Li;Li=function(N,b,S){this.k3O=N;this.zik=b;this.ypL=S};
_.PuU=[new Li("b.f_",!1,0),new Li("j.s_",!1,2),new Li("r.s_",!1,4),new Li("e.h_",!1,6),new Li("i.s_",!0,8),new Li("s.t_",!1,10),new Li("p.h_",!1,12),new Li("s.i_",!1,14),new Li("f.i_",!1,16),new Li("a.b_",!1,18),new Li("a.o_",!1),new Li("g.o_",!1,22),new Li("p.i_",!1,24),new Li("p.m_",!1),new Li("n.k_",!0,20),new Li("i.f_",!1),new Li("a.s_",!0),new Li("m.c_",!1),new Li("n.h_",!1,26),new Li("o.p_",!1),new Li("m.p_",!0,28),new Li("o.a_",!1),new Li("d.p_",!1),new Li("e.i_",!1)].reduce(function(N,b){N[b.k3O]=
b;return N},{});var oPz=function(){};
oPz.prototype.flush=function(N,b){N=N===void 0?[]:N;b=b===void 0?!1:b;if(_.T("enable_client_streamz_web")){N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=$fV(S.value),this.rootSpec&&_.xI(S,2,this.rootSpec),S={serializedIncrementBatch:_.iL(S.JSC$9840_serializeBinary())},_.Dn("streamzIncremented",S,{sendIsolatedPayload:b})}};
var aup=function(){};
_.F(aup,oPz);var iwc=function(N){var b=new Y5k;var S=new XvO;S=_.En(S,1,"botguard");N=_.En(S,2,N);this.rootSpec=_.o$(b,1,ygd,N)};
_.F(iwc,oPz);var sK,Jp9=new Map;var AJb,WqY,B4p,mhe,tEY,iW9,Etu,xho;AJb=2;WqY=2;B4p=2;mhe=2;tEY=2;iW9=2;Etu=2;xho=new DXZ;var Zw4,jYl;Zw4=function(){this.ongoingFlowNonces=new Map};
_.cd=function(){jYl||(jYl=new Zw4);return jYl};
_.rQ=function(N,b,S){return{eventType:{flowEventNamespace:N,flowEventType:b},metadata:S,statusCode:void 0,csn:void 0,can:void 0}};
_.s8I=function(N,b){var S=_.cd(),P=z39(S,b,!0);S.logFlowEvent(N,b,P,void 0)};
Zw4.prototype.logFlowEvent=function(N,b,S,P){b={flowNonce:S||z39(this,b),flowType:b,flowEventType:N.eventType};N.metadata&&(b.flowMetadata=N.metadata);N.statusCode!==void 0&&(b.flowEventStatus=N.statusCode);N.csn&&(b.csn=N.csn);N.can&&(b.can=N.can);_.Dn("flowEvent",b,P)};
var z39=function(N,b,S){S=S===void 0?!1:S;var P=N.ongoingFlowNonces.get(b);if(!P||S)P=L6(16),N.ongoingFlowNonces.set(b,P);return P};_.Apz=new Ihc;var GgE={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var fi=function(N,b,S,P,H,K,C){S=S===void 0?!1:S;P=P===void 0?!1:P;K=K===void 0?_.M$():K;this.um=!1;this.ySH=N;this.mYY=b;this.iIB=S;this.fromHistory=P;this.previousVideoId=H;this.nTU=K;this.tempData=C;this.jNF=new _.VUc};
_.F(fi,Qj);fi.prototype.validate=function(N){return!(!N.data.playerResponse||N.data.page!=="watch"&&N.data.page!=="learning_journey_watch"&&N.data.page!=="shorts"||this.um)};
fi.prototype.handle=function(N){var b=this,S=_.t(N.endpoint,_.Iv),P=_.t(N.endpoint,_.kn);if(_.T("kevlar_continue_playback_without_player_response")&&(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback)&&!this.fromHistory)this.ySH.resolve();else{var H={};S?H.watch_endpoint=S:P&&(H.watch_endpoint=P,P.endTimeSeconds&&(H.end=P.endTimeSeconds));N.data.page==="watch"?(N.data.filler||this.iIB||(_.Q3("cfg"),_.sX.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(H,XLc(this,N.endpoint)),_.T("enable_masthead_quartile_ping_fix")&&Object.assign(H,EPb(this)),Object.assign(H,void 0),N.data.forceExternalPlaylist&&(H.external_list=!0)):N.data.page==="shorts"?_.sX.getInstance().triggerAction("yt-start-loading-shorts"):N.data.page==="learning_journey_watch"&&_.sX.getInstance().triggerAction("yt-start-loading-learning-journey");if(S=this.mYY()){try{S.loadVideoWithPlayerResponse(N.data.playerResponse,H),S.getPlayerPromise().then(this.ySH.resolve)}catch(K){_.ge(K),
this.ySH.resolve()}this.um=!0;S.getPlayerPromise().then(function(K){K.addEventListener("onAbnormalityDetected",function(){var C=N.data.playerResponse,G=K.getVideoData().cpn;Etu=0;_.UVb=G;if(G=S$f(C))b.jNF.increment("IN_PLAYER"),_.a3(5),_.T("ab_st_vid_ks")?K.pauseVideo(!0):K.stopVideo(),C.playabilityStatus=Object.assign({},C.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:G}}),C.videoDetails=void 0,_.sX.getInstance().triggerOptionalAction("yt-updated-playability-status",
C.playabilityStatus)})})}else _.$h(Error("Tf"))}};
var XLc=function(N,b){var S=_.t(b,_.Iv);if(b&&S&&S.playlistId&&S.videoId&&(N=N.nTU,N.queueProxy?(N=N.queueProxy,S=N.listId===S.playlistId?N.attributionData.get(S.videoId):void 0):S=void 0,S))return{queue_info:S}},EPb=function(N){var b;
if((b=N.tempData)==null?0:b.adpings)return{adpings:N.tempData.adpings}};var uP=function(N,b,S){this.um=!1;this.fNG=N;this.tGz=b;this.xjF=S};
_.F(uP,Qj);uP.prototype.validate=function(N){return!!_.Vm.getValueByKeys.apply(null,[N.data].concat(_.IX(Gf9)))};
uP.prototype.handle=function(N){var b=this;this.fNG.promise.then(function(){var S=N.data;var P=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(PBc))),H=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(Ow9))),K=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(sY9)));var C=(C=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(Hw4))))?{videoId:C.videoId,thumbnail:C.thumbnail,title:C.title?_.gy(C.title):void 0,shortBylineText:C.author?_.gy(C.author):void 0}:void 0;var G=void 0;_.T("web_get_playlist_id_from_current_endpoint_ks")||
(G=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(KYE))));var a=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(CBc))),R=_.Vm.getValueByKeys.apply(null,[S].concat(_.IX(vPz))),n=!!a||!!R&&!!R.results&&R.results.length>0,d=0;H&&H.currentIndex&&H.localCurrentIndex&&(d=H.currentIndex-H.localCurrentIndex);H&&H.playlistId&&(G=H.playlistId);S={rawResponse:S,autoplayRenderer:P,hasRelatedVideoData:n,playingVideo:C,playingVideoId:K,playlistPanelRenderer:H,playlistId:G,playlistIndex:H&&H.currentIndex,relatedVideoArgs:a,
endScreenRenderer:R,playlistIndexOffset:d};a:{P=b.xjF;H=b.tGz;P.response=S;if(lrZ(S))P.downloadPlaylistProxy&&P.downloadPlaylistProxy.getPlaylistId()===BfZ(S)||(P.downloadPlaylistProxy=new eTN(BfZ(S),P.setPlaylistData.bind(P),P.isPlayingOfflineVideo.bind(P))),P.responsePlaylistData=P.downloadPlaylistProxy.getPlaylistData(),P.listId=BfZ(S),P.index=0;else if(S.playlistPanelRenderer&&S.playlistId&&S.autoplayRenderer)S.playlistId.startsWith("TLPQ")?P.queueProxy?P.listId===S.playlistId?(P.index=S.playlistIndex,
P.responsePlaylistData=S.playlistPanelRenderer,P.queueProxy.JSC$13266_setCurrentIndex(P.index)):S.playingVideoId&&P.index!==void 0&&H.clientParams.autoSaveToQueue&&(P.index+=1,P.queueProxy.JSC$13266_setCurrentIndex(P.index),P.queueProxy.addVideos([S.playingVideoId],{},P.index)):(P.queueProxy=new _.Rw(P.JSC$13320_playlistNetworkManager,S.playlistId,P.setPlaylistData.bind(P),P.clearQueue.bind(P),_.HWa(S.playlistPanelRenderer),P.storage),P.responsePlaylistData=S.playlistPanelRenderer,P.listId=S.playlistId,
P.index=S.playlistIndex):(P.index=S.playlistIndex,P.listId!==S.playlistId&&P.clearQueue(),P.responsePlaylistData=S.playlistPanelRenderer,P.listId=S.playlistId,P.playlistProxy=new S1O(P.JSC$13320_playlistNetworkManager,S.playlistId,P.setPlaylistData.bind(P),_.HWa(S.playlistPanelRenderer)));else if(!P.queueProxy)P.responsePlaylistData=void 0;else if(S.playingVideoId&&H.clientParams.autoSaveToQueue){if(P.index===void 0){_.ge(Error("Pf"));P.clearQueue();break a}P.queueProxy.videoIds.includes(S.playingVideoId)||
(P.index+=1,P.queueProxy.JSC$13266_setCurrentIndex(P.index),P.queueProxy.addVideos([S.playingVideoId],{},P.index))}_.FB(P,_.By(P,P.response.autoplayRenderer))}})};var pLz=function(N,b){b=b===void 0?_.M$():b;Dx.call(this);this.k5.push(new uP(this.mO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.k5.push(new fi(this.mO,N,!1,!1));_.T("web_response_commands_chunk_processor")&&this.k5.push(new Vj)};
_.F(pLz,Dx);pLz.prototype.processChunk=function(N){N&&N.data.player===void 0&&this.mO.resolve();Dx.prototype.processChunk.call(this,N)};var QP=function(N,b){N=N===void 0?{layer:0}:N;this.um=!1;this.createScreenConfig=N;this.yMX=b};
_.F(QP,Qj);QP.prototype.validate=function(N){return!(this.um||!N.endpoint)};
QP.prototype.handle=function(N){var b=_.dG(),S,P,H=(P=_.t((S=N.endpoint)==null?void 0:S.commandMetadata,_.GY))==null?void 0:P.rootVe;this.yMX&&H?_.Xy(b,H,this.yMX,this.createScreenConfig):QaE(b,N.endpoint,this.createScreenConfig);this.um=!0};var xA=function(N,b){this.um=!1;this.uEU=N;this.previousVideoId=b};
_.F(xA,Qj);xA.prototype.validate=function(N){return _.T("kevlar_continue_playback_without_player_response")&&(N=_.t(N.endpoint,_.Iv),(N==null?0:N.videoId)&&this.previousVideoId&&(N==null?void 0:N.videoId)===this.previousVideoId&&(N==null?0:N.continuePlayback))?!1:this.uEU.vkR===0};
xA.prototype.handle=function(N){_.sX.getInstance().triggerAction("yt-stop-old-player",N.data,!0)};var Y19=function(N){N=N===void 0?{layer:0}:N;Dx.call(this);this.k5.push(new xA(this));this.k5.push(new QP(N));this.k5.push(new Ir(N))};
_.F(Y19,Dx);var ow=function(){Qj.apply(this,arguments)};
_.F(ow,Qj);ow.prototype.validate=function(N){return!!N.data.preconnect};
ow.prototype.handle=function(N){_.uC("bc");N=_.O(N.data.preconnect);for(var b=N.next();!b.done;b=N.next())b=b.value,(new Image).src=b};var yp4=function(N,b,S,P,H,K,C){S=S===void 0?{layer:0}:S;K=K===void 0?_.M$():K;Dx.call(this);if(P)if(H){H=K;this.k5.push(new uP(this.mO,b,H));this.k5.push(new ow);var G,a;this.k5.push(new fi(this.mO,N,!1,!((G=b.clientParams)==null||!G.fromHistory),(a=b.clientParams)==null?void 0:a.previousVideoId,H,b.tempData));var R;this.k5.push(new xA(this,(R=b.clientParams)==null?void 0:R.previousVideoId));var n;(n=b.clientParams)!=null&&n.fromHistory||(S.layer||(S=Object.assign({},S,{layer:0})),this.k5.push(new QP(S,
C)),this.k5.push(new Ir(S)))}else this.k5.push(new uP(this.mO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},K)),this.k5.push(new fi(this.mO,N,!1,!1));else this.k5.push(new xA(this)),this.k5.push(new QP(S)),this.k5.push(new Ir(S));_.T("web_response_commands_chunk_processor")&&P&&this.k5.push(new Vj)};
_.F(yp4,Dx);yp4.prototype.processChunk=function(N){N&&N.data.player===void 0&&this.mO.resolve();Dx.prototype.processChunk.call(this,N)};var Ir4=function(){this.um=this.um=!1};
_.F(Ir4,Qj);Ir4.prototype.validate=function(N){return!this.um&&!(!N.data.csn||!N.data.rootVe)};
Ir4.prototype.handle=function(N){this.um=!0;_.iZ(N.data.csn,N.data.rootVe,3)};var DVS=function(N,b,S){S=S===void 0?{layer:0}:S;Dx.call(this);this.k5.push(new fi(this.mO,N));this.k5.push(new QP(S));this.k5.push(new Ir(S))};
_.F(DVS,Dx);var VCZ=function(N,b,S,P,H){S=S===void 0?{layer:0}:S;P=P===void 0?_.M$():P;Dx.call(this);var K=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;K&&this.k5.push(new Ir4);this.k5.push(new uP(this.mO,b,P));this.k5.push(new ow);var C,G;this.k5.push(new fi(this.mO,N,K,!((C=b.clientParams)==null||!C.fromHistory),(G=b.clientParams)==null?void 0:G.previousVideoId,P,b.tempData));var a;this.k5.push(new xA(this,(a=b.clientParams)==null?void 0:a.previousVideoId));var R;(R=b.clientParams)!=null&&R.fromHistory||
(S.layer||(S=Object.assign({},S,{layer:K?3:0})),this.k5.push(new QP(S,H)),this.k5.push(new Ir(S)));_.T("web_response_commands_chunk_processor")&&this.k5.push(new Vj)};
_.F(VCZ,Dx);var iP,$VO;iP={};
_.gPE=(iP["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},iP["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},iP["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},iP["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},iP["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},iP["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},iP["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},iP);_.JN=new _.h2("yt-edu");_.e39=function(){this.JSC$13418_eduDisplayedThisLoad_={}};
$VO=function(N){var b=_.e39.getInstance();var S=_.d7("kevlar_tooltip_impression_cap");b=S&&parseInt(_.JN.get(N+"-impression")||0,10)>=S||_.JN.get(N+"-dismissed")?!1:(S=_.gPE[N])&&!b.JSC$13418_eduDisplayedThisLoad_[S.setKey||N]&&(S.titleText&&_.cN(S.titleText)||S.bodyText&&_.cN(S.bodyText))?!0:!1;if(!b)return null;b=_.gPE[N];if(!b)return null;S=b.bodyText?_.cN(b.bodyText):void 0;var P=b.titleText?_.cN(b.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:b.position,popup:{bubbleHintRenderer:{text:P?
_.gy(P):void 0,detailsText:S?_.gy(S):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.gy(_.cN("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:N}}]}}}}}}}},{eduImpressionAction:{key:N}}]};
_.He(_.e39);var KMe=!1;for(var h3z="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),q19=[],UP=6;UP>=1;UP--)q19.push({columnCount:UP,query:UP==1?0:UP*2*107-4+32,className:"grid-"+UP+"-columns",width:UP*2*107+"px"});_.Zy=function(N){this.actionRouter_=N=N===void 0?_.sX.getInstance():N;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.wL9(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.wL9=function(N){var b=N.documentWidth_-(N.miniGuideVisible_?72:0)-(N.guidePersistentAndVisible_?240:0)-(N.persistentPanelVisible_?400:0);return q19.find(function(S){return b>S.query})};
_.He(_.Zy);var Nic=function(){var N=this;this.JSC$13430_keyboardInUse=!1;document.addEventListener("keydown",function(){N.onKeydown()});
document.addEventListener("mousedown",function(){N.JSC$13430_keyboardInUse=!1})},bj9;
Nic.prototype.isKeyBoardInUse=function(){return this.JSC$13430_keyboardInUse};
Nic.prototype.onKeydown=function(){this.JSC$13430_keyboardInUse=!0};var SSN,AN;_.jc=new _.h2("yt-mentions");_.zs=function(){};
SSN=function(N,b){return AN(b,"drag-to-reorder-edu-displayed")};
AN=function(N,b,S,P,H,K){S=S===void 0?"OPEN_POPUP_POSITION_TOP":S;if(b){if(_.jc.get(b))return;_.jc.set(b,!0,P)}if(H&&K!==void 0){b=Number(_.jc.get(H)||0);if(b>=K)return;_.jc.set(H,b+1)}return[{openPopupAction:{popupType:"HINT",position:S,popup:{bubbleHintRenderer:{detailsText:N,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.He(_.zs);var Pj9,HjV,si9;Pj9=function(N,b,S,P){this.JSC$13440_taskManager_=N;this.onFulfilled_=typeof b==="function"?b:null;this.onRejected_=typeof S==="function"?S:null;this.JSC$13440_context_=P};
HjV=function(N,b){N.onFulfilled_&&_.Bm(N.JSC$13440_taskManager_,function(){N.onFulfilled_.call(N.JSC$13440_context_,b)})};
si9=function(N,b){N.onRejected_&&_.Bm(N.JSC$13440_taskManager_,function(){N.onRejected_.call(N.JSC$13440_context_,b)})};
_.XB=function(N){this.JSC$13443_taskManager_=N;this.callbacks_=[]};
_.XB.prototype.then=function(N,b,S){this.callbacks_.push(new Pj9(this.JSC$13443_taskManager_,N,b,S));return this};
_.XB.prototype.onSuccess=function(N){this.callbacks_.forEach(function(b){HjV(b,N)})};
_.XB.prototype.onFailure=function(N){this.callbacks_.forEach(function(b){si9(b,N)})};
_.XB.prototype.cancel=function(){this.callbacks_.length=0};
wWz(_.XB);_.crf=null;_.mh=new _.nO("ACTIVITY_TOKEN");var KXk;_.u0=new _.nO("PAGE_REQUEST_TOKEN");KXk=new _.nO("FETCH_PBJ_TOKEN");_.vFO=function(N){if(N.validatedFragments_.length==0)return null;if(!N.mergedPrefetchedData_){for(var b=[],S=_.O(N.validatedFragments_),P=S.next();!P.done;P=S.next()){P=_.O(N.fragmentConfiguration_[P.value].graftedKeys);for(var H=P.next();!H.done;H=P.next())(H=N.prefetchedData_[H.value].trackingParams)&&b.push(H)}N.mergedPrefetchedData_={};Object.assign(N.mergedPrefetchedData_,N.prefetchedData_,{clientSideGrafts:b})}return N.mergedPrefetchedData_};var OjV;_.EP=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
OjV=function(N,b,S){if(_.aUE(b))return N.prefetchCache_.get(_.R0L(b,S))};_.pi=new _.nO("NAVIGATION_TOKEN");var CjZ=function(N){var b=this;var S=S===void 0?dqa():S;var P=P===void 0?_.aN().resolve(_.pi):P;this.onePickCommand=N;this.JSC$13515_playlistNetworkManager=S;this.navigationManager=P;this.videoPickerBuilder=_.WMs("yt-addtoplaylist");_.MlN(Wik(nyd(RM4(this.videoPickerBuilder.setTitle(N.modalTitle).setSize(1E3).addView(mc9()).addView(dc9())).addView("youtube"),N.selectButtonLabel)),function(H){b.handleAction(H)})};
CjZ.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
CjZ.prototype.handleAction=function(N){var b=this;if(N&&this.onePickCommand.listId&&N.action==="picked"&&N.docs){var S=[];N.docs.forEach(function(P){S.push({addedVideoId:P.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13515_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,S).then(function(){_.T("playlist_add_video_hard_reload_killswitch")?b.navigationManager.reload():GUl(b.navigationManager)})}};var rcZ=function(){if(this.constructor===rcZ)throw new TypeError("Vf");};
_.v=rcZ.prototype;_.v.dispose=function(){};
_.v.disconnect=function(){};
_.v.reconnect=function(){};
_.v.observe=function(N,b,S){return{element:N,option:S}};
_.v.unobserveByKey=function(){};var mqO=function(N,b){b=b===void 0?0:b;rcZ.call(this);this.viewroot=N;this.defaultPrescanHeight=b;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),N?{root:N,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.F(mqO,rcZ);_.v=mqO.prototype;_.v.dispose=function(){this.disconnect();this.handlers.clear()};
_.v.disconnect=function(N){this.isConnected=!1;this.pauseObservingUntilReconnect=N===void 0?!1:N;this.observer.disconnect();N=_.O(this.prescanObservers.values());for(var b=N.next();!b.done;b=N.next())b.value.disconnect()};
_.v.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var N=_.O(this.handlers),b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;var P=S.next().value;S=!1;P=_.O(P.keys());for(var H=P.next();!H.done;H=P.next())if((H=H.value)&&H.state==="prescan"){S=!0;break}S&&cck(this,b).observe(b);this.observer.observe(b)}}};
_.v.handleObserveEvent=function(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var S=this.handlers.get(b.target);if(S){var P=b.isIntersecting;S=_.O(S);for(var H=S.next();!H.done;H=S.next()){var K=_.O(H.value);H=K.next().value;K=K.next().value;H&&(H.state==="visible"&&P||H.state==="hidden"&&!P)&&(K(b.target,H.state),H.calledOnce&&this.unobserveByKey({element:b.target,option:H}))}}}};
_.v.handlePrescanEvent=function(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var S=this.handlers.get(b.target);if(S&&b.isIntersecting){S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;P&&P.state==="prescan"&&(H(b.target,P.state),P.calledOnce&&this.unobserveByKey({element:b.target,option:P}))}}}};
_.v.observe=function(N,b,S){var P=(P=this.handlers.get(N))&&P.has(S)?{element:N,option:S}:void 0;if(P)return P;P={element:N,option:S};this.handlers.has(N)||this.handlers.set(N,new Map);var H=this.handlers.get(N);H&&!H.has(S)&&H.set(S,b);this.pauseObservingUntilReconnect||(S.state==="prescan"&&cck(this,N).observe(N),this.observer.observe(N));return P};
_.v.unobserveByKey=function(N){var b=this.handlers.get(N.element);if(b&&b.has(N.option)){b.delete(N.option);if(N&&N.option.state==="prescan")for(var S=_.O(this.prescanObservers.values()),P=S.next();!P.done;P=S.next())P.value.unobserve(N.element);b.size===0&&(this.handlers.delete(N.element),this.observer.unobserve(N.element))}};
var cck=function(N,b){var S=N.defaultPrescanHeight;b.hasAttribute("prescan-height")&&(b=Number(b.getAttribute("prescan-height")),isNaN(b)||(S=b));if(N.prescanObservers.has(S))return N.prescanObservers.get(S);b="-0.1px -0.1px "+S+"px -0.1px";b=new IntersectionObserver(N.handlePrescanEvent.bind(N),N.viewroot?{root:N.viewroot,rootMargin:b}:{rootMargin:b});N.prescanObservers.set(S,b);return b};var awc=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Rg9=function(){var N,b=this;this.JSC$13532_actionRouter=N=N===void 0?_.sX.getInstance():N;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},WXN,Iw,m2S;
Rg9.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.T("kevlar_use_vimio_behavior")&&_.Vg("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=kgo())};
Rg9.prototype.dispose=function(){this.visibilityMonitor&&_.iW(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Rg9.prototype.handleVisibilityRefreshed=function(){for(var N=_.O(this.targetMap.entries()),b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;_.nFc(this,b,S)}};
_.Dy=function(N,b,S){Iw(N,S);var P=_.d2N(N,b);P.element=S;N.targetedElements.set(S,b);_.nFc(N,b,P)};
Iw=function(N,b){var S=N.targetedElements.get(b);if(S){var P=N.targetMap.get(S);P&&(delete P.element,N.targetMap.set(S,P));N.targetedElements.delete(b);N.visibilityObserver&&N.visibilityObservedElementHandlerKeys&&(S=N.visibilityObservedElementHandlerKeys.get(b))&&(N.visibilityObserver.unobserveByKey(S),N.visibilityObservedElementHandlerKeys.delete(b))}};
_.nFc=function(N,b,S){var P=S.action,H=S.element;H&&P&&(awc.includes(b)||_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||N.visibilityMonitor&&N.visibilityMonitor.isNodeVisible(H)?m2S(N,b,S):N.visibilityObserver&&(N.visibilityObservedElementHandlerKeys||(N.visibilityObservedElementHandlerKeys=new WeakMap),P=N.visibilityObserver.observe(H,function(){m2S(N,b,S);N.visibilityObservedElementHandlerKeys.delete(H)},{calledOnce:!0,
state:"visible"}),N.visibilityObservedElementHandlerKeys.set(H,P)))};
m2S=function(N,b,S){var P=S.action;(S=S.element)&&P&&(_.qk(N.JSC$13532_actionRouter,[P],S),N.targetMap.delete(b),N.targetedElements.delete(S),N.triggeredTargets.add(b))};
_.d2N=function(N,b){var S=N.targetMap.get(b);S||(S={},N.targetMap.set(b,S));return S};
_.VP=function(){WXN||(WXN=new Rg9);return WXN};var kUV=document.createElement("div");kUV.style.touchAction="pan-down";var TZu=kUV.style.touchAction==="pan-down";var TiZ,thO;TiZ=function(){this.hammerFn=M3E();this.JSC$13540_screenManager=_.dG();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.OW(83615);_.pc(this.JSC$13540_screenManager,this.ve);tJ9()};
_.gt=function(){thO||(thO=new TiZ);return thO};
TiZ.prototype.registerTouchEvents=function(N,b,S){var P=_.$I.apply(3,arguments),H=this.hammerFn(N,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});S&&H.set({touchAction:S});this.nodeManagerMapping.set(N,H);var K=
MJL(b);P=_.O(P);for(var C=P.next();!C.done;C=P.next()){C=C.value;if(C.includes("swipe")||C.includes("pinch")||C.includes("pan"))C.includes("swipe")?H.get("swipe").set({enable:!0,direction:K,velocity:.2}):C.includes("pinch")?H.get("pinch").set({enable:!0}):C.includes("pan")&&(H.get("pan").set({enable:!0,direction:K}),H.get("swipe").set({enable:!0,direction:K,velocity:.2}),H.get("swipe").recognizeWith("pan"));Mhb(this,N,H,C)}};
var Mhb=function(N,b,S,P){S.on(P,function(H){if(P.includes("pinch"))N.lastPinchTime=Date.now();else if(P.includes("swipe")&&Date.now()-N.lastPinchTime<400)return;H.pointerType!=="mouse"&&(H=P==="doubletap"?{coordinates:H.center}:P.includes("pan")?H:P.includes("swipe")?{target:H.target}:{},b.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:H})))})};
TiZ.prototype.unregisterTouchEvents=function(N){var b=_.$I.apply(1,arguments),S=this.nodeManagerMapping.get(N);if(S){b=_.O(b);for(var P=b.next();!P.done;P=b.next())S.off(P.value);this.nodeManagerMapping.delete(N);N.style.touchAction="unset"}};var FXZ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.F6={getLocalStorage:_.xv(function(){try{var N=new qRI;var b=N.isAvailable()?N:null}catch(S){return null}return b?new _.Q6(b):null}),
getSessionStorage:_.xv(function(){var N=new wNO;return N.isAvailable()?new _.Q6(N):null})};var Bi9=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Aro=function(){Bi9.instance||(Bi9.instance=new Bi9);
return Bi9.instance},X2I=function(N){var b=N.networkEvents;
N.networkEvents=[];return _.T("enable_network_monitoring")?b:[]};var lwk;lwk={};_.LX9=WK("yt-serviceworker-metadata",{objectStores:(lwk.auth={addedAtVersion:1},lwk["resource-manifest-assets"]={addedAtVersion:2},lwk),shared:!0,upgrade:function(N,b){b(1)&&NN(N,"resource-manifest-assets");b(2)&&NN(N,"auth")},
version:2});var LMe=self.location.origin+"/";fUo([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);fUo([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);fUo([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);fUo([/purge_shell=1/]);var fwz=void 0;fwz=fwz===void 0?[]:fwz;
for(var ubV=[],QiZ=_.O(bAb),x2d=QiZ.next();!x2d.done;x2d=QiZ.next())ubV.push({key:x2d.value});for(var oFk=_.O(fwz),ijb=oFk.next();!ijb.done;ijb=oFk.next())ubV.push(ijb.value);var Jc4,fX=_.Ps==null?void 0:(Jc4=_.Ps.performance)==null?void 0:Jc4.memory,xqb=!1,E3a={},Jre={},u1={},Q7=navigator;var ec=function(N){this.JSC$13585_expiringStorage=new Az(N)};
ec.prototype.set=function(N,b,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$13585_expiringStorage.set(N,b,S)};
ec.prototype.get=function(N){return this.JSC$13585_expiringStorage.get(N)};
ec.prototype.remove=function(N){this.JSC$13585_expiringStorage.remove(N)};var e0U=_.$E(["https://www.youtube.com/",""]),$qp=_.$E(["https://studio.youtube.com/",""]),bCL="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",q$O=null,Km_;var U2S=_.$E(["https://www.youtube.com/iframe_api"]),$A=function(){this.playerResolver_=_.Y9();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Qo;this.playbackDurationSeconds_=0},ZjN=function(N){var b=function(){return window.YT&&typeof window.YT.ready==="function"};
if(b())return _.KA(window.YT);var S=_.Y9(),P=_.U5("SCRIPT");P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||(P.onload=_.Qo,P.onreadystatechange=_.Qo,P.onerror=_.Qo,b()?S.resolve(window.YT):S.reject(new _.jU("Failed to load the iframe player library","script.onload",P.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
P.onerror=function(H){P.onload=_.Qo;P.onreadystatechange=_.Qo;P.onerror=_.Qo;S.reject(new _.jU("Failed to load the iframe player library","script.onerror",H&&H.target&&H.target.src))};
_.cM(P,_.Mz(U2S));N.insertBefore(P,N.firstChild);return S.promise},ji9=function(N,b,S){var P,H;
_.r(function(K){switch(K.nextAddress){case 1:return N.playbackEndedCallback_=S,_.u4(K,2),K.yield(ZjN(b.parentElement||null),4);case 4:P=K.yieldResult;_.su(K,3);break;case 2:return H=_.UE(K),H instanceof _.jU&&H.args&&H.args[0]=="script.onerror"?_.$h(H):_.ge(H),K.return();case 3:P.ready(function(){return new P.Player(b,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:N.onPlayerReady_.bind(N),onStateChange:N.onPlayerStateChange_.bind(N),
onCueRangeExit:N.onCueRangeExit_.bind(N)}})}),_.Zd(K)}})};
_.v=$A.prototype;_.v.getPlayerPromise=function(){return this.playerPromise_};
_.v.onPlayerReady_=function(N){this.playerResolver_.resolve(N.target)};
_.v.onPlayerStateChange_=function(N){if(N.data==YT.PlayerState.PLAYING){N=N.target;var b=N.getCurrentTime();N.addCueRange("playback",b,b+this.playbackDurationSeconds_)}};
_.v.onCueRangeExit_=function(N){N.data=="playback"&&(N.target.stopVideo(),this.playbackEndedCallback_())};
_.v.stopVideo=function(){this.playerPromise_.then(function(N){N.stopVideo()})};
var zgZ=function(N){N.playerVars_&&N.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?_.$h(new _.jU("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(N.playerVars_)})};
$A.prototype.playVideo=function(){var N=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new _.jU("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),_.ge(b)):b.loadVideoByPlayerVars(N.playerVars_)})};
var Ack=function(N,b,S,P,H){b&&(S===void 0&&(S=0),P===void 0&&(P=0),N.playbackDurationSeconds_=P/1E3,N.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:S/1E3,player_params:H})};
$A.prototype.mute=function(){this.playerPromise_.then(function(N){N.mute()})};
$A.prototype.unMute=function(){this.playerPromise_.then(function(N){N.unMute()})};var aSE=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var hN;hN=function(){this.tokenJars={};if(this.cookiesEnabled=_.Jz()){var N=_.xb.get("CONSISTENCY",void 0);N&&X3c(this,{encryptedTokenJarContents:N})}};
_.Wm9=function(){hN.instance||(hN.instance=new hN);return hN.instance};
hN.prototype.handleResponse=function(N,b){if(!b)throw Error("$f");var S,P;b=((S=b.innerTubeRequest.context)==null?void 0:(P=S.request)==null?void 0:P.consistencyTokenJars)||[];var H;(N=(H=N.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(b,N)};
hN.prototype.replace=function(N,b){N=_.O(N);for(var S=N.next();!S.done;S=N.next())delete this.tokenJars[S.value.encryptedTokenJarContents];X3c(this,b)};
var X3c=function(N,b){if(b.encryptedTokenJarContents&&(N.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var S=Number(b.expirationSeconds);setTimeout(function(){delete N.tokenJars[b.encryptedTokenJarContents]},S*1E3);
N.cookiesEnabled&&_.iQ("CONSISTENCY",b.encryptedTokenJarContents,S,void 0,!0)}};var EF4,q$;EF4=window.location.hostname.split(".").slice(-2).join(".");_.pX=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var N=_.Vg("LOCATION_PLAYABILITY_TOKEN");_.Vg("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=p3O(this))&&(N=this.localStorage.get("yt-location-playability-token"));N&&(this.locationPlayabilityToken=N,this.mostRecentPosition=void 0)};
_.pX.getInstance=function(){q$=_.hl("yt.clientLocationService.instance");q$||(q$=new _.pX,_.aB("yt.clientLocationService.instance",q$));return q$};
_.pX.prototype.setLocationOnInnerTubeContext=function(N){N.client||(N.client={});if(this.mostRecentPosition)N.client.locationInfo||(N.client.locationInfo={}),N.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),N.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),N.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),N.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)N.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.pX.prototype.handleResponse=function(N){var b;N=(b=N.responseContext)==null?void 0:b.locationPlayabilityToken;N!==void 0&&(this.locationPlayabilityToken=N,this.mostRecentPosition=void 0,_.Vg("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=p3O(this))&&this.localStorage.set("yt-location-playability-token",N,15552E3):_.iQ("YT_CL",JSON.stringify({loctok:N}),15552E3,EF4,!0))};
var p3O=function(N){return N.localStorage===void 0?new _.h2("yt-client-location"):N.localStorage};
_.pX.prototype.clearLocationPlayabilityToken=function(N){N==="TVHTML5"?(this.localStorage=p3O(this))&&this.localStorage.remove("yt-location-playability-token"):_.IpU("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.pX.prototype.getCurrentPositionFromGeolocation=function(){var N=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var b=!1,S=1E4;_.Vg("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,S=15E3);return new Promise(function(P,H){navigator.geolocation.getCurrentPosition(function(K){N.mostRecentPosition=K;P(K)},function(K){H(K)},{enableHighAccuracy:b,
maximumAge:0,timeout:S})})};
_.pX.prototype.createUnpluggedLocationInfo=function(N){var b={};N=N.coords;if(N==null?0:N.latitude)b.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)b.longitudeE7=Math.floor(N.longitude*1E7);if(N==null?0:N.accuracy)b.locationRadiusMeters=Math.round(N.accuracy);return b};
_.pX.prototype.createLocationInfo=function(N){var b={};N=N.coords;if(N==null?0:N.latitude)b.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)b.longitudeE7=Math.floor(N.longitude*1E7);return b};var YS4=function(N,b){var S=j0();N||(N="unknown");b||(b="unknown");N="MAIN_APP_WEB_PAGE_TYPE_"+N.toUpperCase();N in WOO||(N="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in nDz||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Wp(S,{mainAppWeb:{pageType:N,requestType:b,isShellLoad:_.g8("IS_SHELL_LOAD",!1)}})},ycZ={start:function(){_.Wp(jyo(),{mainAppWeb:_.Yn()})},
success:function(){_.nS(jyo(),"SUCCESS")},
failure:function(){_.nS(jyo(),"FAILURE")},
cancelled:function(){_.nS(jyo(),"CANCELLED")}};var IwE,D2k,Tlb;IwE=_.$E(["/sw.js"]);D2k=_.$E(["/sw.js?0"]);_.Vh9=_.Mz(IwE);Tlb=_.Mz(D2k);var gFl=function(){var N=Error.apply(this,arguments);this.message=N.message;"stack"in N&&(this.stack=N.stack)};
_.F(gFl,Error);_.DK.prototype.load=function(N){this.megabloxUrl_=_.Vg("YPC_MB_URL");_.zk(this.megabloxUrl_,(0,_.pT)(function(){N&&N()},this))};
_.FfU=function(N,b,S,P,H,K,C,G,a,R,n){_.MqE(a);N.load((0,_.pT)(function(){try{var d=K?K:_.Vg("HL"),m=_.Vg("SESSION_INDEX");_.W3s("client",function(){sBE("59",{helpCenterPath:"/youtube",locale:d,window:window}).JSC$10208_loadChatSupport({authuser:String(m)})})}catch(k){throw y7(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),H&&H(k),_.ge(k),k;
}egl(this,b,S,P,H,K,C,G,a,R,n)},N))};
_.DK.prototype.openFixFlowDialog=function(N,b,S,P){this.load((0,_.pT)(function(){try{$2V(this,_.hl("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(N).withIntegratorCallback(b).load(S,P)}catch(H){throw _.ge(H),H;}},this))};
var $2V=function(N,b,S,P){var H=b.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.T("enable_window_constrained_buy_flow_dialog")&&(H=H.usingPopupStyle(_.hl("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));P&&(H=H.usingCloseCallback(P));b.bootstrap.fromPaymentsUrl(N.megabloxUrl_);N=b.bootstrap.asMashupMode(H);S=S?S:_.Vg("HL");N.usingGaiaIndex(_.Vg("SESSION_INDEX")).usingLocale(S).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.T("enable_google_payments_buyflow_material2_style_web")?
N.usingStyle(":m2;pc=#444;ac=#065fd4"):N.usingStyle(":md;pc=#444;ac=#065fd4");return N},egl=function(N,b,S,P,H,K,C,G,a,R,n){try{var d=_.hl("payments.business.integration");
if(!d)throw new gFl("payments.business.integration is undefined");var m=d.standaloneContextAuthId.forUserId(),k=$2V(N,d,K,function(){Bl_(!1);G&&G()});
C&&k.usingServerAnalyticsEventHandler(C);var M=k.inStandaloneContext(m).buyFlow(function(l){if(l&&(!l.integratorData||l.integratorData===""||l.error))if(l.error!=null)if(String(l.error)==="-1")_.Fm9(a);else{var u=String(l.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";y7(10,n,u,l.debugCode);_.I3(u,a,l.debugCode);u=new _.jU("PAYMENT_ERROR_MESSAGE::"+l.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+l.internalErrorDetails);
_.ge(u)}else y7(10,n,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.I3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",a,"EMPTY_INTEGRATOR_DATA"),_.ge(Error("cg"));S&&(Bl_(!1),S(l))}).withEncryptedParameters(b);
R&&M.withClientParameters(bac(_.TmI(R)));M.load(function(){y7(24,n);_.xR("ttc",void 0,"commerce_transaction");LA("commerce_transaction");P&&(P(),Bl_(!0))},function(l){if(l==null?0:l.debugCode)var u=l==null?void 0:l.debugCode;
else if(!l||(l==null?0:l.debugCode))u="EMPTY_LOAD_FAILURE_ERROR",_.ge(Error(u));else{u="EMPTY_LOAD_FAILURE_DEBUG_CODE";var J=new _.jU("LOAD_FAILURE:"+l.message," DEBUG_CODE:"+u);_.ge(J)}y7(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",u);_.I3("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a,u);_.ge(l);H&&H(l)})}catch(l){throw l instanceof gFl&&(y7(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),H&&H(l)),_.ge(l),l;
}};var hgc;hgc=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.TzI=function(N,b){b=b===void 0?!1:b;N=hgc.test(N)?_.ZB(N):null;!b&&window.payments||!N?(N=_.Y9(),b=N.promise,N.resolve()):b=_.Vl9(N,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};var qSd;qSd=_.$E(["//www.googletagmanager.com/gtm.js?id=",""]);_.wt=function(N,b){_.Nb(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Vg("GL")}),b=_.U5("SCRIPT"),b.async=!0,_.cM(b,_.Mz(qSd,N)),b.id="gtm",N=document.getElementsByTagName("script"),N.length==0?document.head.appendChild(b):(N=N[0],N.parentNode.insertBefore(b,N)))};
_.NZ=function(N){if(N=JSON.parse(N))window.dataLayer=window.dataLayer||[],window.dataLayer.push(N)};var w3S,NT9;w3S=_.$E(["https://clients2.google.com/gr/gr_sync.js"]);_.mGs=function(){};
_.mGs.prototype.init=function(){if(NT9()){var N=_.Y9();N.resolve();return N.promise}return _.Vl9(_.Mz(w3S)).then(function(){if(!NT9())throw Error("dg");},function(){throw Error("eg");
})};
_.kvE=function(){if(!NT9())return"";var N=window.google.gr;N.init({async:{schedule:"sync"},merchantId:"youtube"});N.start();N=N.finish();return N==null?"":N};
NT9=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.F(_.z,PolymerFakeBaseClassWithoutHtml);_.kq=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.F(_.kq,PolymerFakeBaseClassWithoutHtml);var lSb=window.ShadyDOM;var Cro,v8s,r$Y,c$a,R7p,WIE,bn,P4;Cro=_.T("enable_shadydom_free_scoped_query_methods");v8s=_.T("enable_shadydom_free_scoped_node_methods");r$Y=_.T("enable_shadydom_free_scoped_readonly_properties_batch_one");c$a=_.T("enable_shadydom_free_parent_node");R7p=_.T("enable_shadydom_free_children");WIE=_.T("enable_shadydom_free_last_child");bn=window.ShadyDOM;_.Gd=bn&&bn.noPatch&&bn.wrap?bn.wrap:bn?function(N){return bn.patch(N)}:function(N){return N};
P4=function(N){if(N instanceof ShadowRoot)this.host=(0,_.Gd)(N.host),this.root=N;else if(N.$$){this.host=(0,_.Gd)(N);var b;this.root=(b=N.root)!=null?b:this.host}else if(N.polymerController){this.host=(0,_.Gd)(N);var S;this.root=(S=this.host.shadowRoot)!=null?S:this.host}else this.root=this.host=(0,_.Gd)(N)};
OZu();GHa();n8O();dip();a9I();var b$b={querySelector:function(N,b){b=AaO(b,hs(N));return _.T("sunnydom_native_scoped_query_selectors")?fS_(N,b):fS_(_.qn(N),b)},
querySelectorAll:function(N,b){b=AaO(b,hs(N));return _.T("sunnydom_native_scoped_query_selectors")?Array.from(u3Y(N,b)):u3Y(_.qn(N),b)}},SzO={appendChild:function(N,b){var S=hs(N),P=_.$n(b);
return _.sab(_.qn(N),S?_.bI(b,S,P):b)},
cloneNode:function(N,b){var S=_.$n(N);N=_.qn(N);b=eZ(N).prototype.cloneNode.call(N,b);return S?S7(b,S):b},
contains:function(N,b){var S=hs(N),P=_.$n(b);return S!==P?!1:KI_(N,b)},
insertBefore:function(N,b,S){var P=hs(N),H=_.$n(b);N=_.qn(N);b=P?_.bI(b,P,H):b;return eZ(N).prototype.insertBefore.call(N,b,S)},
removeChild:function(N,b){var S=hs(N);N=_.qn(N);b=S?S7(b,S):b;return eZ(N).prototype.removeChild.call(N,b)},
replaceChild:function(N,b,S){var P=hs(N),H=_.$n(b);b=P?_.bI(b,P,H):H?S7(b,H):b;S=P?S7(S,P):S;N=_.qn(N);return eZ(N).prototype.replaceChild.call(N,b,S)},
getRootNode:function(N,b){b=b===void 0?{composed:!0}:b;var S;if(((S=b)!=null?S:{}).composed)N=HZf(N);else{b=N;for(N=x1p(N);N;)b=N,N=ENY(N);N=b}return N}},kHI=r$Y?{firstChild:qUY,
nextSibling:e$Y,previousSibling:h$9,firstElementChild:w8U,lastElementChild:bZe,nextElementSibling:gNI,previousElementSibling:$1U,childNodes:SJs}:{};c$a&&(kHI.parentNode=VqE);R7p&&(kHI.children=Prb);WIE&&(kHI.lastChild=NSE);Cro&&mi_(b$b);v8s&&mi_(SzO);TSe();var tIa=function(N){this.node=N instanceof ShadowRoot?N.host:N};
MIY();FI_();var LIU=new WeakMap;var ujY=Symbol("Cd");var J$p=new Set(["tap","track","down","up"]),Uie=_.T("pbcm_fi_query_decorators");var S$=function(){return _.kq.apply(this,arguments)||this};
_.F(S$,_.kq);_.v=S$.prototype;_.v.getState=function(){return this.store.getState()};
_.v.dispatch=function(N){this.store.dispatch(N)};
_.v.beforeRegister=function(){if(this&&typeof this==="object"){var N;var b=!!this.useSignals||!((N=this.polymerController)==null||!N.useSignals)}else b=!1;if(!b&&this.properties)for(b=_.O(Object.keys(this.properties)),N=b.next();!N.done;N=b.next()){var S=N.value;N=this.properties[S];if(N.selector){if(N.computed)throw Error("lg");S=["reduxPropertiesRecomputeTrigger",'"'+S+'"'].concat(_.IX(N.selectorArgs||[])).join(",");N.computed="recomputeReduxSelector("+S+")"}}};
_.v.attached=function(){var N=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){N.reduxPropertiesRecomputeTrigger++}));
_.T("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.v.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.v.recomputeReduxSelector=function(N,b){var S=_.$I.apply(2,arguments),P=this.properties[b].selector;if(!P)throw Error("jg`"+b);return P.apply(null,[this.store.getState()].concat(_.IX(S)))};
_.v.select=function(N){var b=_.$I.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return N.apply(null,[this.store.getState()].concat(_.IX(b)))};
_.d0.Object.defineProperties(S$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
S$.prototype.recomputeReduxSelector=S$.prototype.recomputeReduxSelector;_.p([_.U(),_.y("design:type",Number)],S$.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.p([_.Td()],S$);var Pt=[],A$L={},iI=function(){return kX.apply(this,arguments)||this};
_.F(iI,kX);iI.prototype._addPropertyEffect=function(N,b,S){if(b==="__observeEffects"&&S){var P,H=(P=S.info.method)!=null?P:S.info.methodName;if(H){var K=this[H];this[H]=function(){Pt.push(H);try{K==null||K.apply(this,arguments)}finally{Pt.pop()}}}}_.p2._addPropertyEffect.apply(this,[N,
b,S])};
iI.prototype._setPendingProperty=function(N,b,S){if(Pt.length){var P=Pt[Pt.length-1],H;(H=A$L[this.is])!=null&&H.has(P)||(Xf9(this.is,P),_.Dn("polymerPropertyChangedInObserver",{componentName:this.is,observerName:P}))}return _.p2._setPendingProperty.apply(this,[N,b,S])};
_.p([aAe()],iI);var E8o=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),YJo,FE={};_.T("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=FE);var L3=function(){return _.kq.apply(this,arguments)||this};
_.F(L3,_.kq);L3.prototype._setUnmanagedPropertyToNode=function(N,b,S){N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!0);if(S!==N[b]||typeof S==="object")N[b]=S;N.is&&N.polymerController&&N.polymerController!==N&&B4(N.is,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!1)};
_.p([_.Td()],L3);pfU()&&(P_.prototype._setUnmanagedPropertyToNode=(new L3)._setUnmanagedPropertyToNode);_.P69={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(N){},set polymerController(N){}}]};var oA=function(){var N=kX.apply(this,arguments)||this;N.json=function(){};
return N};
_.F(oA,kX);oA.prototype.equals=function(N,b){return N===b};
oA.prototype.isEmpty=function(N){var b;(b=!N)||(b=_.yu(N)&&N.length===0);return b};
_.p([aAe()],oA);var PfZ=function(N){N=RPb(N);sc.call(this,N)};
_.F(PfZ,sc);PfZ.prototype.addProvider=function(N){N=N.key?N:RPb([N])[0];var b=this.keyIdToIndex.get(N.key.id);if(b){if(g8p(N,this.providers[b]))throw Error("mg`"+N.key.displayName);}else sc.prototype.addProvider.call(this,N)};
var H$N=new PfZ([]);var slZ=!1;var NHU={};slZ||(wfO(),slZ=!0);
NHU.InjectBehavior={initializeInjection:function(){var N=this.provide;try{if((N=N!=null?N:[])&&N.length>0)for(var b=RPb(N),S=_.O(b),P=S.next();!P.done;P=S.next())H$N.addProvider(P.value);var H=new Set;e7o(this.behaviors||[],H);b={};for(var K=_.O(H),C=K.next();!C.done;C=K.next()){var G=C.value;G.inject&&Object.assign(b,G.inject)}this.inject&&Object.assign(b,this.inject);for(var a=_.O(Object.keys(b)),R=a.next();!R.done;R=a.next()){var n=R.value,d=b[n];try{this[n]=H$N.resolve(d)}catch(m){throw m;}}}catch(m){throw Error(m.message);
}}};var SmE;var HYY=/\bclass\b/.test(function(){}.toString()),v$f=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var K19=function(N){this.wasDefined=!0;Array.isArray(N)||N instanceof Array?(this.JSC$13743_getImpl=N[0],this.JSC$13743_setImpl=N[1]):this.JSC$13743_getImpl=N};
_.v=K19.prototype;_.v.getWithPath=function(N){return GOo(this.JSC$13743_getImpl(),N)};
_.v.setWithPath=function(N,b){var S=this;if(N.length)throw Error("ng");if(!this.JSC$13743_setImpl)throw Error("og");Zq(function(){S.JSC$13743_setImpl(b)})};
_.v.notifyPath=function(){throw Error("pg");};
_.v.notifySplices=function(){throw Error("qg");};
_.v.getChangeRecordSignal=function(N,b){var S=this;if(N.length)throw Error("rg");return function(){var P=S.getWithPath(N);return{path:b!=null?b:"",base:P,value:P}}};
_.v.getSplicesSignal=function(){throw Error("sg");};
_.v.getPathMutationSignal=function(){throw Error("tg");};
_.v.pop=function(){throw Error("ug");};
_.v.push=function(){throw Error("vg");};
_.v.splice=function(){throw Error("wg");};
_.v.unshift=function(){throw Error("xg");};var Ht=function(N){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(N)||N instanceof Array?(this.JSC$13748_getImpl=N[0],this.JSC$13748_setImpl=N[1]):this.JSC$13748_getImpl=N;this.wasDefined=!1;_.fQ(function(){b.wasDefined=b.JSC$13748_getImpl()!==void 0})};
Ht.prototype.getWithPath=function(N){return GOo(this.JSC$13748_getImpl(),N)};
Ht.prototype.setWithPath=function(N,b){var S=this;if(N[N.length-1]!=="*"&&N[N.length-1]!=="splices"){var P=_.fQ(function(){return S.getWithPath([])});
if(N.length===0){if(!this.JSC$13748_setImpl)throw Error("yg");if(P===b)return;this.wasDefined||(this.wasDefined=b!==void 0);Zq(function(){S.JSC$13748_setImpl(b)})}else{for(var H=0;H<N.length-1;H++){if(!P)return;
P=P[N[H]]}H=N[N.length-1];P&&(P[H]=b);this.wasDefined||(this.wasDefined=N.length>1||b!==void 0)}vWl(this,N,{pathComponents:N,value:b})}};
Ht.prototype.notifyPath=function(N,b){N.length===0?b&&this.setWithPath(N,b.value):vWl(this,N,{pathComponents:N,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})};
var vWl=function(N,b,S,P){if(N.setMutationSignal){var H=++N.mutationIndex,K=[N.observedPath],C=N.observedPath,G;b.length===0&&(G=C);for(var a=0;a<b.length;a++){var R=C.subPaths[b[a]];if(!R)break;K.push(R);C=R;a===b.length-1&&(G=R)}for(b=!1;K.length;)C=K.shift(),C.data={index:H,mutation:S,spliceMutationIndex:P},b||(b=C===G),b&&K.push.apply(K,_.IX(Object.values(C.subPaths)));Zq(function(){N.setMutationSignal(H)})}};
Ht.prototype.notifySplices=function(N,b){var S=this,P=_.fQ(function(){return S.getWithPath(N)}),H=[].concat(_.IX(N),["splices"]);
vWl(this,H,{pathComponents:H,value:{indexSplices:b}});if(P==null?0:P.length)b=this.mutationIndex,H=[].concat(_.IX(N),["length"]),vWl(this,H,{pathComponents:H,value:P.length},b)};
var O$S=function(N,b,S,P,H,K){N.notifySplices(S,[{index:P,addedCount:H,removed:K,object:b,type:"splice"}])},Cfl=function(N,b){N=N.observedPath;
for(var S=0;S<b.length;S++){var P=b[S],H=N.subPaths[P];H||(H={pathComponents:b.slice(0,S+1),subPaths:{}},N.subPaths[P]=H);N=H}},ri4=function(N,b,S){Cfl(N,b);
if(!N.getMutationSignal){var P=_.O(_.QF(N.mutationIndex,void 0,"sNBMCd"));N.getMutationSignal=P.next().value;N.setMutationSignal=P.next().value}var H=N.getMutationSignal;return _.UB(function(){H();return S(G9d(N,b))},void 0,"zvsXEd")};
Ht.prototype.getChangeRecordSignal=function(N,b){var S=this,P=this.mutationIndex,H;return ri4(this,N,function(K){if(K&&K.index>P){var C=K.mutation;P=K.index;H=void 0}K=_.fQ(function(){return S.getWithPath(N)});
if(C){var G=C.pathComponents[C.pathComponents.length-1],a=[].concat(_.IX(C.pathComponents));if(G==="splices"||G==="length")return{base:K,path:(b?[b].concat(_.IX(a)):a).join("."),value:C.value};var R=N.length>a.length?N:a,n;return{base:K!=null?K:C.fallbackWhenUndefined,path:(b?[b].concat(_.IX(R)):R).join("."),value:(n=_.fQ(function(){return S.getWithPath(R)}))!=null?n:C.fallbackWhenUndefined}}H||(H={base:K,
path:(b?[b].concat(_.IX(N)):N).join("."),value:K});return H})};
Ht.prototype.getSplicesSignal=function(N){var b=this.mutationIndex,S;return ri4(this,N,function(P){if(P&&P.index>b&&P.spliceMutationIndex!==b){var H=P.mutation;b=P.index;S=void 0}return H&&H.pathComponents[H.pathComponents.length-1]==="splices"?S=P=H.value:S})};
Ht.prototype.getPathMutationSignal=function(N){var b=this;Cfl(this,N);if(!this.getMutationSignal){var S=_.O(_.QF(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=S.next().value;this.setMutationSignal=S.next().value}var P=this.getMutationSignal,H=this.mutationIndex,K;return _.UB(function(){P();var C=G9d(b,N);if(C&&C.index>H&&C.mutation&&rne(C.mutation.pathComponents,N)){var G=C.mutation;H=C.index}if(!K||H!==K.index){var a,R;C=(R=_.fQ(function(){return b.getWithPath(N)}))!=null?R:(a=G)==null?
void 0:a.fallbackWhenUndefined;
K={index:H,value:C}}return K},void 0,"RXYC9b")};
var G9d=function(N,b){N=N.observedPath;b=_.O(b);for(var S=b.next();!S.done;S=b.next())N=N.subPaths[S.value];return N.data};
Ht.prototype.pop=function(N){var b=this,S=_.fQ(function(){return b.getWithPath(N)});
if(!(S instanceof Array))throw Error("zg");var P=S.length>0,H=S.pop();P&&O$S(this,S,N,S.length,0,[H]);return H};
Ht.prototype.push=function(N){var b=_.$I.apply(1,arguments),S=this,P=_.fQ(function(){return S.getWithPath(N)});
if(!(P instanceof Array))throw Error("Ag");var H=P.length,K=P.push.apply(P,_.IX(b));b.length&&O$S(this,P,N,H,b.length,[]);return K};
Ht.prototype.splice=function(N,b,S){var P=_.$I.apply(3,arguments),H=this,K=_.fQ(function(){return H.getWithPath(N)});
if(!(K instanceof Array))throw Error("Bg");b<0?b=K.length-Math.floor(-b):b&&(b=Math.floor(b));var C=K.splice.apply(K,[b,S].concat(_.IX(P)));(P.length||C.length)&&O$S(this,K,N,b,P.length,C);return C};
Ht.prototype.unshift=function(N){var b=_.$I.apply(1,arguments),S=this,P=_.fQ(function(){return S.getWithPath(N)});
if(!(P instanceof Array))throw Error("Cg");var H=P.unshift.apply(P,_.IX(b));b.length&&O$S(this,P,N,0,b.length,[]);return H};var sQ=function(N,b,S){this.model=N;this.unknownSignalResolver=b;this.options=S;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=_.O(TH_());N=b.next().value;b=b.next().value;this.owner=N;this.disposeImpl=b};
sQ.prototype.dispose=function(){if(!this.isDisposed){for(var N=_.O(this.childSignalProxies),b=N.next();!b.done;b=N.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ci9=function(N,b){N=_.aO(N.owner);try{b()}finally{_.aO(N)}};
sQ.prototype.effect=function(N){ci9(this,function(){_.VF(N,"h")})};
var a4z=function(N,b){N.options!=null||(N.options={});var S;(S=N.options).immutableProps!=null||(S.immutableProps=new Set);N.options.immutableProps.add(b)},DFY=function(N,b){b=""+b;
RhO(N,b);var S,P;if((S=N.options)==null?0:(P=S.immutableProps)==null?0:P.has(b))return!0;var H;if((H=N.model.__signalCache)==null?0:H.has(b))S=N.model.__signalCache.get(b),Array.isArray(S)&&a4z(N,b);var K,C,G;return(G=(K=N.options)==null?void 0:(C=K.immutableProps)==null?void 0:C.has(b))!=null?G:!1},W1V=function(N,b){var S;
N.unknownSignalResolver&&(S=N.unknownSignalResolver(b));var P,H;((P=N.options)==null?0:(H=P.immutableProps)==null?0:H.has(b))?S!=null||(S=new K19(_.QF(N.model[b],void 0,"By5iP"))):S!=null||(S=new Ht(_.QF(N.model[b],void 0,"CXghNc")));var K=N.model.hostElement;Object.defineProperty(N.model,b,{get:function(){I9O(K,b);return S.getWithPath([])},
set:function(C){lI(K,b);N.setWithPath([b],C)},
configurable:!0});return S},RhO=function(N,b){var S,P,H;
((S=N.model.__signalCache)==null||!S.has(b))&&((P=N.options)==null?0:(H=P.externalSignalProps)==null?0:H.has(b))&&N.model[b]},zd=function(N,b){b=""+b;
var S=N.signalCache[b];if(S!==void 0)return S;S=!1;RhO(N,b);var P;if((P=N.model.__signalCache)==null?0:P.has(b))if(S=N.model.__signalCache.get(b),Array.isArray(S))S=!0,a4z(N,b);else return N.signalCache[b]=N.model.__signalCache.get(b).signal,N.signalCache[b];var H,K;P=(K=(H=N.options)==null?void 0:H.reactivityMode)!=null?K:0;var C,G;if(!((C=N.options)==null?0:(G=C.reactiveProps)==null?0:G.has(b))&&!S&&P===1)throw Error("Dg`"+b);H=S?nWZ(N,b):W1V(N,b);return N.signalCache[b]=H},nWZ=function(N,b){var S=
Object.getOwnPropertyDescriptor(N.model.constructor.prototype,b),P=function(){return N.model[b]};
return new K19(S&&S.get&&!S.set?P:[P,function(H){N.model[b]=H}])};
sQ.prototype.getWithPath=function(N){var b=_.O(N);N=b.next().value;b=Gz(b);I9O(this.model.hostElement,""+N);return zd(this,N).getWithPath(b)};
sQ.prototype.setWithPath=function(N,b){if(N.length){lI(this.model.hostElement,N.join("."));var S=_.O(N);N=S.next().value;S=Gz(S);zd(this,N).setWithPath(S,b)}};
sQ.prototype.getPathMutationSignal=function(N){var b=_.O(N);N=b.next().value;b=Gz(b);return zd(this,N).getPathMutationSignal(b)};
sQ.prototype.notifyPath=function(N,b){var S=_.O(N);N=S.next().value;S=Gz(S);zd(this,N).notifyPath(S,b)};
var deE=function(N,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}};
var S=ZL(b.path),P=_.O(S),H=P.next().value;P=Gz(P);var K,C;if(b.type==="path"&&(S.length===1||((K=N.options)==null?0:(C=K.immutableProps)==null?0:C.has(H))))return function(){var d=N.getWithPath(S.slice(0,1));d=GOo(d,S.slice(1));return{rootWasDefined:zd(N,S[0]).wasDefined,value:d}};
var G=zd(N,H);if(b.type==="path"){var a=G.getPathMutationSignal(P);return function(){var d,m=(d=a())==null?void 0:d.value;return{rootWasDefined:G.wasDefined,value:m}}}if(b.type==="splices"){var R=G.getSplicesSignal(P);
return function(){var d=R();return{rootWasDefined:G.wasDefined,value:d}}}var n=G.getChangeRecordSignal(P,""+H);
return function(){var d=n();return{rootWasDefined:G.wasDefined,value:d}}},dFu=function(N,b,S){var P=S.map(function(G){return deE(N,G)}),H=S.length===0,K=[],C=S.length!==1||S[0].type!=="path"?!1:!0;
N.effect(function(){for(var G=P.length,a=[],R=!!K.length,n=0;n<G;n++){var d=P[n](),m=d.rootWasDefined;d=d.value;H||(H=m);a[n]=d;C&&(a[n+G]=R?K[n]:a[n],K[n]=d)}H&&q8(N.owner,function(){return void b.apply(null,_.IX(a))})})},cnO=function(N,b,S,P,H){var K=zd(N,b);
H!==void 0&&K.setWithPath([],H);dFu(N,function(){var C=_.$I.apply(0,arguments);lI(N.model.hostElement,b,!0);K.setWithPath([],S.apply(null,_.IX(C)))},P)};
sQ.prototype.arrayPush=function(N){var b=_.$I.apply(1,arguments),S=_.O(N),P=S.next().value;S=Gz(S);P=zd(this,P);return P.push.apply(P,[S].concat(_.IX(b)))};
sQ.prototype.arraySplice=function(N,b,S){var P=_.$I.apply(3,arguments),H=_.O(N),K=H.next().value;H=Gz(H);K=zd(this,K);return K.splice.apply(K,[H,b,S].concat(_.IX(P)))};
sQ.prototype.arrayUnshift=function(N){var b=_.$I.apply(1,arguments),S=_.O(N),P=S.next().value;S=Gz(S);P=zd(this,P);return P.unshift.apply(P,[S].concat(_.IX(b)))};
sQ.prototype.notifySplices=function(N,b){var S=_.O(N);N=S.next().value;S=Gz(S);zd(this,N).notifySplices(S,b)};var me9=!0,k9V=!1,VCO=!1,TT9=!1,tvV=0;TT9=!1;tvV=0;me9=!0;k9V=VCO=!1;var L7b=/([^\s]+?)\(([\s\S]*)\)/,F7L=/\.([^.]+)$/,u4o=/\\,/g,tmE=/&comma;/g,MmU=/\\(.)/g,fFL=[],BHf={"*":"wildcard",splices:"splices"};var Anu=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),UFf=/[A-Z]/,Mvc=["class","hidden","id","on-dom-change"],E$E=new Set([].concat(_.IX(Mvc),
["if","notify-dom-change","restamp"])),pZe=new Set([].concat(_.IX(Mvc),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),YmU=new Set(["restamp"]);var EFo=new Set(["className","id"]);var g$9=Symbol(),bwU=window;var CB9=window;var nPp=0,cpa=0,A_=[],WYf=0,rpa=!1,R3o=document.createTextNode("");(new window.MutationObserver(arY)).observe(R3o,{characterData:!0});var Ej=new Map,XE=0,F1d=function(N){this.mappedHandleId=N},mV9=function(N,b,S,P){this.mappedHandleId=N;
var H=this;this.mappedHandleId=N;this.callback=b;this.waitTime=S;this.schedulerPriority=P;this.handleId=_.Dj.addJob(function(){H.callback();Ej.delete(H.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.F(mV9,F1d);mV9.prototype.cancel=function(){_.Dj.cancelJob(this.handleId);Ej.delete(this.mappedHandleId)};
var kfe=function(N,b){this.mappedHandleId=N;var S=this;this.mappedHandleId=N;this.callback=b;this.handleId=dV9(function(){S.callback();Ej.delete(S.mappedHandleId)})};
_.F(kfe,F1d);kfe.prototype.cancel=function(){var N=this.handleId-cpa;N<0||A_.length<=N||(A_[N]=null);Ej.delete(this.mappedHandleId)};var FYU=function(){};
FYU.prototype.cancel=function(){this.jobHandle!==void 0&&(TfU(this.jobHandle),this.jobHandle=void 0)};
FYU.prototype.run=function(N,b,S){var P=this;this.cancel();this.callback=N;this.jobHandle=_.p3(function(){N();P.callback=void 0},b,S)};
FYU.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var tCf=new WeakMap;var BT9=Wu(function(N){for(var b=N,S=0;S<3;S++)b=Object.getPrototypeOf(b);delete b.prototype.connectedCallback;var P=function(){return N.apply(this,arguments)||this};
_.F(P,N);P.prototype._attachDom=function(H){if(!H)return null;var K=(0,_.Gd)(this.hostElement);K.attachShadow({mode:"open",shadyUpgradeFragment:H});K.shadowRoot.appendChild(H);return K.shadowRoot};
P.prototype._takeAttributes=function(){for(var H=this.hostElement.attributes,K=0;K<H.length;K++){var C=H[K],G=void 0,a=void 0;(a=(G=this).__attributeReaction)==null||a.call(G,C.name,null,C.value)}};
P.prototype._readyClients=function(){N.prototype._readyClients.call(this);this.root=this};
P.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);N.prototype.connectedCallback.call(this)};
_.d0.Object.defineProperties(P,{template:{configurable:!0,enumerable:!0,get:function(){return P.prototype._template}}});
return P}),l4z=Wu(function(N){var b=function(){return N.apply(this,arguments)||this};
_.F(b,N);b.prototype.created=function(){if(this.__notifyEffects)for(var S=_.O(Object.values(this.__notifyEffects)),P=S.next();!P.done;P=S.next()){P=_.O(P.value);for(var H=P.next();!H.done;H=P.next())H.value.fn=frU}if(this.__reflectEffects)for(S=_.O(Object.values(this.__reflectEffects)),P=S.next();!P.done;P=S.next())for(P=_.O(P.value),H=P.next();!H.done;H=P.next())H.value.fn=uuo};
b.prototype._addEventListenerToNode=function(S,P,H){S=ys(S);el(S,P,H)||N.prototype._addEventListenerToNode.call(this,S,P,H)};
b.prototype._removeEventListenerFromNode=function(S,P,H){S=ys(S);$7(S,P,H)||N.prototype._removeEventListenerFromNode.call(this,S,P,H)};
b.prototype._propertiesChanged=function(S,P,H){if(this.__dataToNotify&&this.__notifyEffects)for(var K=_.O(Object.keys(this.__dataToNotify)),C=K.next();!C.done;C=K.next()){C=C.value;var G=LYO(C);this.__notifyEffects[G]||delete this.__dataToNotify[C]}else this.__dataToNotify=null;N.prototype._propertiesChanged.call(this,S,P,H)};
b.prototype.fire=function(S,P,H){P=P===void 0?{}:P;var K;return _.bC(ys((K=H==null?void 0:H.node)!=null?K:this),S,P,H)};
b.prototype._ensureAttribute=function(S,P){var H=ys(this);H.hasAttribute(S)||j7(H,P,S)};
b.prototype.isLightDescendant=function(S){var P=ys(this);return ys(P)!==S&&_.H4(P).contains(S)&&_.H4(P).getRootNode()===_.H4(S).getRootNode()};
return b});
_.Ep.ready=function(){var N;((N=this.hostElement)!=null?N:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var b;((b=this.hostElement)!=null?b:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.$M._subscribeIronResize=function(N){var b;((b=N.hostElement)!=null?b:N).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.$M._unsubscribeIronResize=function(N){var b;((b=N.hostElement)!=null?b:N).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var oPu=[Array,Boolean,Date,Number,Object,String],DL=function(N,b,S,P){this.polySiInfo=N;this.polySiParams=b;this.polySiContext=S;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;P||this instanceof HTMLElement&&(P=this);if(!P)throw Error("Kg");this.allowedProps=b.allowedProps;this.hostElement=P;this.is=N.is;this.upgradeDisabled=!!b.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");N=new Set(b.reactiveSchemas.filter(function(H){return H.type!==
"observe"}).map(function(H){return H.propertyKey}));
this.signalProxy=new sQ(this,void 0,{reactiveProps:N,reactivityMode:b.reactivityMode});this.__dataHasAccessor={};b=_.O(b.reactiveSchemas);for(N=b.next();!N.done;N=b.next())N=N.value,N.type==="signal"&&(this.__dataHasAccessor[N.propertyKey]=!0);this.upgradeDisabled||L14(this)};
DL.prototype.getExtraMethodsToForward=function(){return[]};
var L14=function(N){N.polySiContext.didRegister||(N.registered(),N.polySiContext.didRegister=!0);N.polySiContext.finalizedTemplate||(N.polySiContext.finalizedTemplate={},N.polySiParams.templateGetter&&(N.polySiContext.finalizedTemplate.processedTemplate=Gfp(N.polySiParams.templateGetter,N.polySiParams.is)));f4Z(N);var b=N.hostElement;b.loggingStatus!=null||(b.loggingStatus={});b.loggingStatus.isInitializing=!0;_.fQ(function(){return void N.created()});
b.loggingStatus.isInitializing=!1;N.isPolySiElementConnected&&uZ4(N)},uZ4=function(N){N.didCallReady||(_.fQ(function(){return void N.ready()}),N.didCallReady=!0);
N.isAttached=!0;N.attached()};
_.v=DL.prototype;_.v.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||uZ4(this)};
_.v.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.v.attributeChangedCallback=function(N,b,S){if(this.upgradeDisabled)N==="disable-upgrade"&&S===null&&(this.upgradeDisabled=!1,L14(this));else if(b!==S){var P=_.av(N),H=this.polySiContext.typesForSignals[P];if(H&&(!this.reflecting||_.T("polysi_attribute_changed_serializing_killswitch"))){switch(H){case Object:try{var K=JSON.parse(S)}catch(G){K=S}break;case Array:try{K=JSON.parse(S)}catch(G){K=null}break;case Date:K=isNaN(S)?String(S):Number(S);K=new Date(K);break;case Boolean:K=S!==null;break;case Number:K=
Number(S);break;default:K=S}this[P]=K}P=_.O(this.polySiParams.behaviors);for(H=P.next();!H.done;H=P.next())K=void 0,(K=H.value.attributeChanged)==null||K.call(this,N,b,S);var C;(C=this.attributeChanged)==null||C.call(this,N,b,S)}};
_.v.attributeChangedCallbackWrapper=function(N,b,S){this.attributeChangedCallback(N,b,S)};
_.v.setPropertiesFromInitialAttributeValues=function(){for(var N=0;N<this.hostElement.attributes.length;N++){var b=this.hostElement.attributes[N];(b.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(b.name))&&this.attributeChangedCallback(b.name,null,b.value)}};
_.v.created=function(){this.provide=this.polySiParams.provide;var N;(N=this.initializeInjection)==null||N.call(this);N=_.O(this.polySiParams.reactiveSchemas);for(var b=N.next();!b.done;b=N.next())b=b.value,b.type==="signal"&&(this.mutablePropNames.add(b.propertyKey),zd(this.signalProxy,b.propertyKey));xVb(this,this.polySiInfo,this.polySiParams.behaviors);N=_.O(this.polySiParams.reactiveSchemas);for(b=N.next();!b.done;b=N.next())b=b.value,b.type==="signal"&&b.value!==void 0&&(this.signalProxy.model[b.propertyKey]=
typeof b.value==="function"?b.value.call(this):b.value);if(this.polySiParams.signalProperties)for(N=_.O(this.polySiParams.signalProperties),b=N.next();!b.done;b=N.next()){b=b.value;var S=void 0;((S=this.__signalCache)==null?0:S.has(b))||(this.signalProxy.model[b]=void 0)}TT9||Qld(this);QYE(this);N=_.O(this.polySiParams.behaviors);for(b=N.next();!b.done;b=N.next())S=void 0,(S=b.value.created)==null||S.call(this);var P;(P=this.polySiInfo.created)==null||P.call(this)};
_.v.registered=function(){var N=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var b=Object.getPrototypeOf(this);b.addReactiveSchema=function(G){N.polySiParams.reactiveSchemas.push(G)};
for(var S=_.O(this.polySiParams.behaviors),P=S.next();!P.done;P=S.next()){var H=void 0;(H=P.value.beforeRegister)==null||H.call(b)}var K;(K=this.polySiInfo.beforeRegister)==null||K.call(b);b.addReactiveSchema=Jpp;S=_.O(this.polySiParams.behaviors);for(P=S.next();!P.done;P=S.next())H=void 0,(H=P.value.registered)==null||H.call(b);var C;(C=this.polySiInfo.registered)==null||C.call(b)};
_.v.ready=function(){var N;(N=this.beforeReady)==null||N.call(this);TT9&&Qld(this);var b;if(N=(b=this.polySiContext.finalizedTemplate)==null?void 0:b.processedTemplate){N=OwI(N.template,N.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:N.hasInsertionPoint,thisCtx:this});b=N.nodesById;N=N.root;var S=this.hostElement;var P=P===void 0?!1:P;S=(0,_.Gd)(S);if(!S.attachShadow)throw Error("Id");if(!S.shadowRoot||P)S.attachShadow({mode:"open",shadyUpgradeFragment:N}),S.shadowRoot.appendChild(N);
this.root=S.shadowRoot;this.$=b}xe9(this);P=_.O(this.polySiParams.behaviors);for(b=P.next();!b.done;b=P.next())N=void 0,(N=b.value.ready)==null||N.call(this);var H;(H=this.polySiInfo.ready)==null||H.call(this)};
_.v.attached=function(){for(var N=_.O(this.polySiParams.behaviors),b=N.next();!b.done;b=N.next()){var S=void 0;(S=b.value.attached)==null||S.call(this)}var P;(P=this.polySiInfo.attached)==null||P.call(this)};
_.v.detached=function(){for(var N=_.O(this.polySiParams.behaviors),b=N.next();!b.done;b=N.next()){var S=void 0;(S=b.value.detached)==null||S.call(this)}var P;(P=this.polySiInfo.detached)==null||P.call(this)};
var f4Z=function(N){for(var b=_.O(N.polySiParams.behaviors),S=b.next();!S.done;S=b.next())if(S=S.value,S.listeners)for(var P in S.listeners)vPu(N,N.hostElement,P,S.listeners[P]);if(N.polySiInfo.listeners)for(var H in N.polySiInfo.listeners)vPu(N,N.hostElement,H,N.polySiInfo.listeners[H])},vPu=function(N,b,S,P,H){N=C6p(N,P,H);
el(b,S,N)||b.addEventListener(S,N);return N},Qld=function(N){for(var b=_.O(N.polySiParams.reactiveSchemas),S=b.next();!S.done;S=b.next())S=S.value,S.type==="compute"||S.type==="computeWithMethod"?aFo(N.signalProxy,S,N):S.type==="redux"?n$E(N.signalProxy,S,N.store):S.type==="signal"&&S.readOnly&&W7p(N.signalProxy,S)},xe9=function(N){for(var b=_.O(N.polySiParams.reactiveSchemas),S=b.next(),P={};!S.done;P={schema$jscomp$12:void 0},S=b.next())P.schema$jscomp$12=S.value,P.schema$jscomp$12.type==="notify"?
mFI(N.signalProxy,P.schema$jscomp$12,N.hostElement):P.schema$jscomp$12.type==="observe"?kOL(N.signalProxy,P.schema$jscomp$12,N):P.schema$jscomp$12.type==="reflect"&&N.signalProxy.effect(function(K){return function(){var C=N.signalProxy.getWithPath([K.schema$jscomp$12.propertyKey]);
N.reflecting=!0;xFY(N.hostElement,K.schema$jscomp$12.propertyKey,C,!0);N.reflecting=!1}}(P));
if(N.reflectedAttributes)for(b=_.O(Object.entries(N.reflectedAttributes)),P=b.next(),S={};!P.done;S={key$jscomp$938:void 0,value$jscomp$10271:void 0},P=b.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;S.key$jscomp$938=P;S.value$jscomp$10271=H;N.signalProxy.effect(function(K){return function(){N.reflecting=!0;xFY(N.hostElement,K.key$jscomp$938,(0,K.value$jscomp$10271)(),!0);N.reflecting=!1}}(S))}};
_.v=DL.prototype;_.v._setPendingProperty=function(N,b){this.set(N,b);return!1};
_.v._enableProperties=function(){};
_.v._setPendingPropertyOrPath=function(N,b){this.notifyPath(N,b);return!1};
_.v._addPropertyEffect=function(){};
_.v._stampTemplate=function(){throw Error("Lg");};
_.v.fire=function(N,b,S){b=b===void 0?{}:b;S=S===void 0?{}:S;var P,H,K={bubbles:(P=S.bubbles)!=null?P:!0,cancelable:!!S.cancelable,composed:(H=S.composed)!=null?H:!0},C;return _.bC(UVU((C=S.node)!=null?C:this.hostElement),N,b,K)};
_.v.get=function(N,b){var S=ZL(N);return b?GOo(b,S):N==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(S)};
_.v.linkPaths=function(){};
_.v.listen=function(N,b,S){N=UVU(N);this.boundListeners!=null||(this.boundListeners=new WeakMap);var P=this.boundListeners.get(N);P||(P={},this.boundListeners.set(N,P));var H=b+S;P[H]||(P[H]=vPu(this,N,b,S))};
_.v.notifyPath=function(N,b){this.signalProxy.notifyPath(ZL(N),arguments.length===2?{value:b}:void 0)};
_.v.canNotifyPath=function(N){return this.mutablePropNames.has(N)&&!DFY(this.signalProxy,N)};
_.v.notifySplices=function(N,b){this.signalProxy.notifySplices(ZL(N),b)};
_.v.pop=function(N){var b=this.signalProxy;N=ZL(N);var S=_.O(N);N=S.next().value;S=Gz(S);return zd(b,N).pop(S)};
_.v.push=function(N){var b=_.$I.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ZL(N)].concat(_.IX(b)))};
_.v.set=function(N,b,S){if(S)throw Error("Mg");N==="hidden"?this.hostElement.hidden=!!b:this.signalProxy.setWithPath(ZL(N),b)};
_.v.setProperties=function(N){N=_.O(Object.entries(N));for(var b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;this[b]=S}};
_.v.splice=function(N,b,S){var P=_.$I.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ZL(N),b,S].concat(_.IX(P)))};
_.v.unlinkPaths=function(){};
_.v.unlisten=function(N,b,S){N=UVU(N);if(this.boundListeners){var P=this.boundListeners.get(N);if(P){S=b+S;var H=P[S];H&&($7(N,b,H)||N.removeEventListener(b,H),delete P[S])}}};
_.v.unshift=function(N){var b=_.$I.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ZL(N)].concat(_.IX(b)))};
_.d0.Object.defineProperties(DL.prototype,{useSignals:{configurable:!0,enumerable:!0,get:function(){return!0}},
disableEnforceFastDefaultValuesCheck:{configurable:!0,enumerable:!0,get:function(){return!0}},
__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!0}},
observers:{configurable:!0,enumerable:!0,get:function(){return[]},
set:function(){}},
properties:{configurable:!0,enumerable:!0,get:function(){return{}},
set:function(){}}});var DVL=[Array,Boolean,Date,Number,Object,String];var e3I=!1;var KG=function(){var N=HTMLElement.apply(this,arguments)||this;N.restamp=!1;N.notifyDomChange=!1;N.JSC$13856_didCallConnected=!1;N.JSC$13856_renderDebouncer=null;N.disableTemplateUpdateSignalImpl=Vs()?void 0:_.QF(!1,void 0,"OUmlUc");var b;N.getDisableTemplateUpdate=(b=N.disableTemplateUpdateSignalImpl)==null?void 0:b[0];var S;N.setDisableTemplateUpdate=(S=N.disableTemplateUpdateSignalImpl)==null?void 0:S[1];return N};
_.F(KG,HTMLElement);var oWZ=function(N){N.conditionSignalImpl!=null||(N.conditionSignalImpl=new Ht(_.QF(!1,void 0,"Mh1Uwb")));return N.conditionSignalImpl};
_.v=KG.prototype;_.v.showHideChildren=function(N){i$c(this,N,this.if)};
_.v.attributeChangedCallback=function(N,b,S){if(this.JSC$13856_didCallConnected)throw Error("Qg`"+N);N==="notify-dom-change"?this.notifyDomChange=S!==null:N==="restamp"&&(this.restamp=S!==null)};
_.v.debounceRender=function(){this.JSC$13856_renderDebouncer=_.L2(this.JSC$13856_renderDebouncer,wb,this.JSC$13856_renderImpl.bind(this));_.f2(this.JSC$13856_renderDebouncer)};
_.v.disconnectedCallback=function(){var N=(0,_.Gd)(this).parentNode;(!N||N.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in N&&!N.host)&&Jik(this)};
_.v.connectedCallback=function(){var N=this;if(_.T("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13856_didCallConnected=!0,me9?$VE():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.T("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){oWZ(N).getWithPath([]);N.debounceRender()});
else{var b=(0,_.Gd)(this).parentNode,S={parentNode:b==null?void 0:b.nodeName};b instanceof Element&&(S.parentClassName=b.className);_.$h(new _.jU("PsDomIf connected with undefined parentSignalProxy",S))}};
_.v.render=function(){_.oo()};
_.v.JSC$13856_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var N=this.if,b=!1;if(N){this.hasInstance()||(Uez(this),b=!0);a:{var S=(0,_.Gd)(this).parentNode;if(this.hasInstance()){var P=this.instance.children;if((P==null?0:P.length)&&(0,_.Gd)(this).previousSibling!==P[P.length-1])for(var H=0;H<P.length;H++)(0,_.Gd)(S).insertBefore(P[H],this)}else{if(!S){S=!1;break a}Z$V(this,S)}S=!0}if(!S)return}else this.restamp&&Jik(this);i$c(this,!1,N);N&&!b&&Uez(this);k9V&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.hasInstance=function(){return!!this.instance};
var Z$V=function(N,b){var S=N.parentSignalProxy;if(Vs()){var P=_.O(_.QF(!0,void 0,"QhELFb"));var H=P.next().value;P=P.next().value;S=N.parentSignalProxy}else{var K;var C=new sQ((K=jl9(N))!=null?K:{},function(a){var R=zd(N.parentSignalProxy,a).getChangeRecordSignal([]);a=_.QF(void 0,void 0,"RUDHfc");var n=new Ht(a);C.effect(function(){if(N.getDisableTemplateUpdate&&!N.getDisableTemplateUpdate()){var d=R();n.notifyPath(ZL(d.path),{value:d.value})}});
return n});
N.parentSignalProxy.childSignalProxies.push(C);var G=S=C}S=OwI(N.templateInfo,N.templateInfo.nodeInfoList,S,{eventListenerHost:N.eventListenerHost,hasInsertionPoint:N.templateInfo.hasInsertionPoint,thisCtx:N.eventListenerHost,enabledSignal:Vs()?H:void 0,getModel:function(){return jl9(N)}}).root;
N.instance={root:S,children:[],hidden:!1,signalProxy:G,getTemplateUpdatesEnabled:H,setTemplateUpdatesEnabled:P};G=_.O(S.childNodes);for(H=G.next();!H.done;H=G.next())N.instance.children.push(H.value);(0,_.Gd)(b).insertBefore(N.instance.root,N)},jl9=function(N){if((N=N.parentSignalProxy.model)&&!N.hostElement){var b={},S;
for(S in N)N.hasOwnProperty(S)&&(b[S]=N[S]);return b}},Jik=function(N){if(N.instance){var b=N.instance.children;
if(b.length){var S=(0,_.Gd)(b[0]).parentNode;if(S){S=(0,_.Gd)(S);for(var P=0;P<b.length;P++)S.removeChild(b[P])}}Vs()?N.instance.setTemplateUpdatesEnabled(!1):N.instance.signalProxy.dispose();N.instance=void 0}},i$c=function(N,b,S){b=b||!S;
N.instance&&N.instance.hidden!==b&&(N.instance.hidden=b,gPY(b,N.instance.children))},Uez=function(N){if(Vs()){var b=N.instance;
b&&q8(N.parentSignalProxy.owner,function(){return!b.getTemplateUpdatesEnabled()})&&b.setTemplateUpdatesEnabled(!0)}else N.setDisableTemplateUpdate(!1)};
_.d0.Object.defineProperties(KG.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var N=this;return q8(this.parentSignalProxy.owner,function(){return oWZ(N).getWithPath([])})},
set:function(N){N||(Vs()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));oWZ(this).setWithPath([],!!N)}}});
_.d0.Object.defineProperties(KG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",KG);var zhV=[],vt=function(){var N=HTMLElement.apply(this,arguments)||this;N.as="item";N.indexAs="index";N.itemsIndexAs="itemsIndex";N.targetFramerate=20;N.notifyDomChange=!1;N.isDetached=!1;N.JSC$13863_renderDebouncer=null;N.instances=[];N.chunkingId=null;N.chunkCount=null;N.shouldMeasureChunk=!1;N.shouldContinueChunking=!1;N.renderStartTime=null;N.JSC$13863_didCallConnected=!1;return N};
_.F(vt,HTMLElement);var Ai9=function(N){N.itemSignalImpl!=null||(N.itemSignalImpl=new Ht(_.QF(zhV,void 0,"sOVFgf")));return N.itemSignalImpl},XDS=function(N,b){Array.isArray(b)||(b=zhV);
Ai9(N).setWithPath([],b)};
_.v=vt.prototype;_.v.showHideChildren=function(N){for(var b=_.O(this.instances),S=b.next();!S.done;S=b.next())gPY(N,S.value.children)};
_.v.notifyPath=function(N,b){N=ZL(N);N[0]==="items"&&(N.length===1?XDS(this,b):Ai9(this).setWithPath(N.slice(1),b))};
_.v.canNotifyPath=function(N){return N==="items"};
_.v.attributeChangedCallback=function(N,b,S){if(this.JSC$13863_didCallConnected)throw Error("Rg`"+N);N==="as"?this.as=S:N==="index-as"?this.indexAs=S:N==="items-index-as"?this.itemsIndexAs=S:N==="initial-count"?this.initialCount=Number(S):N==="notify-dom-change"?this.notifyDomChange=S!==null:N==="target-framerate"&&(this.targetFramerate=Number(S))};
_.v.disconnectedCallback=function(){this.isDetached=!0;for(var N=0;N<this.instances.length;N++)EWk(this,N);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.v.connectedCallback=function(){var N=this;if(_.T("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var b=Ai9(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var H=b(),K=ZL(H.path);if(K[0]===void 0||K[0]==="splices"||K[0]==="length")N.debounceRender();else{var C=K[0];if(C=N.instances[typeof C==="string"?Math.floor(Number(C)):C])K=[N.as].concat(_.IX(K.slice(1))),C.signalProxy.notifyPath(K,H)}});
this.JSC$13863_didCallConnected=!0;me9?$VE():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var S=(0,_.Gd)((0,_.Gd)(this).parentNode),P=0;P<this.instances.length;P++)S.insertBefore(this.instances[P].root,this);this.chunkingId&&this.render()}}else S=(0,_.Gd)(this).parentNode,P={parentNode:S==null?void 0:S.nodeName},S instanceof Element&&(P.parentClassName=S.className),_.$h(new _.jU("PsDomRepeat connected with undefined parentSignalProxy",P))};
_.v.debounceRender=function(){this.JSC$13863_renderDebouncer=_.L2(this.JSC$13863_renderDebouncer,wb,this.JSC$13863_renderImpl.bind(this));_.f2(this.JSC$13863_renderDebouncer)};
_.v.render=function(){this.debounceRender();_.oo()};
_.v.JSC$13863_renderImpl=function(){var N=this;if(!this.parentSignalProxy.isDisposed){var b=this.items,S=pDz(this,b.length);YzS(this,b,S);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){N.chunkingId=null;if(N.shouldMeasureChunk){var P=performance.now()-N.renderStartTime;N.chunkCount=Math.round(Math.ceil(1E3/N.targetFramerate)/P*N.chunkCount)||1}N.shouldContinueChunking&&N.debounceRender()}));
k9V&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var pDz=function(N,b){var S=b,P=N.instances.length;if(N.initialCount){if(N.chunkCount){var H=Math.min(Math.max(b-P,0),N.chunkCount);S=Math.min(P+H,b)}else S=Math.min(b,N.initialCount),H=Math.max(S-P,0),N.chunkCount=H||1;N.shouldMeasureChunk=H===N.chunkCount;N.shouldContinueChunking=S<b;N.renderStartTime=performance.now()}return S},YzS=function(N,b,S){for(var P=0;P<S;P++){var H=N.instances[P],K=b[P];
H?(H.signalProxy.setWithPath([N.as],K),H.signalProxy.setWithPath([N.indexAs],P)):yi9(N,K,P)}for(b=N.instances.length-1;b>=P;b--)S=N,H=b,EWk(S,H),_.O(S.instances.splice(H,1)).next().value.signalProxy.dispose()},EWk=function(N,b){N=N.instances[b];
b=(0,_.Gd)(N.root);for(var S=0;S<N.children.length;S++)b.appendChild(N.children[S])},yi9=function(N,b,S){var P={};
b=Object.assign({},I4c(N),(P[N.as]=b,P[N.indexAs]=S,P[N.itemsIndexAs]=S,P));var H=new sQ(b,function(C){if(C!==N.as&&C!==N.indexAs){if(C===N.itemsIndexAs)return zd(H,N.indexAs);var G=zd(N.parentSignalProxy,C).getChangeRecordSignal([]);C=_.QF(void 0,void 0,"DS4mcc");var a=new Ht(C);H.effect(function(){var R=G();a.notifyPath(ZL(R.path),{value:R.value})});
return a}});
N.parentSignalProxy.childSignalProxies.push(H);P=OwI(N.templateInfo,N.templateInfo.nodeInfoList,H,{eventListenerHost:N.eventListenerHost,getModel:function(){var C={};return Object.assign({},I4c(N),(C[N.as]=H.model[N.as],C[N.indexAs]=H.model[N.indexAs],C[N.itemsIndexAs]=H.model[N.indexAs],C))},
hasInsertionPoint:N.templateInfo.hasInsertionPoint,thisCtx:N.eventListenerHost,methodInvocationRequirement:tvV,enabledSignal:N.stampingEnabled}).root;b={root:P,children:[],signalProxy:H};P=_.O(P.childNodes);for(var K=P.next();!K.done;K=P.next())b.children.push(K.value);P=(P=N.instances[S+1])?P.children[0]:N;(0,_.Gd)((0,_.Gd)(N).parentNode).insertBefore(b.root,P);N.instances[S]=b},I4c=function(N){if((N=N.parentSignalProxy.model)&&!N.hostElement){var b={},S;
for(S in N)N.hasOwnProperty(S)&&(b[S]=N[S]);return b}};
vt.prototype.itemForElement=function(N){var b=this,S=this.instances.find(function(P){return P.children.includes(N)});
if(S)return q8(this.parentSignalProxy.owner,function(){return S.signalProxy.getWithPath([b.as])})};
vt.prototype.indexForElement=function(N){var b=this.instances.findIndex(function(S){return S.children.includes(N)});
return b>=0?b:void 0};
_.d0.Object.defineProperties(vt.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var N=this;return q8(this.parentSignalProxy.owner,function(){return Ai9(N).getWithPath([])})},
set:function(N){XDS(this,N)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.d0.Object.defineProperties(vt,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return"as index-as initial-count items-index-as notify-dom-change target-framerate".split(" ")}}});
customElements.define("ps-dom-repeat",vt);var De4,Vv9;_.OQ=new _.nO("STATE_STORE_TOKEN");De4=new _.nO("SELECT_TOKEN");Vv9=new _.nO("DISPATCH_TOKEN");var SSf={getSelectFn:function(){var N;return(N=_.aN().resolve(_.cq(De4)))!=null?N:h3u},
getDispatchFn:function(){var N;return(N=_.aN().resolve(_.cq(Vv9)))!=null?N:_.gq().dispatch.bind(_.gq())},
getAppStore:function(){return _.aN().resolve(_.OQ)}},q1p,bjI=!1;var CjO=function(){};var KXs=void 0;var gW9=function(){};
gW9.prototype.hasAttribute=function(N){if(N==="dir")return!1;if(N==="disable-upgrade"){var b,S;return(S=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?S:!1}throw Error("Sg`"+N);};
gW9.prototype.attributeChangedCallbackWrapper=function(N,b,S){if(N==="disable-upgrade"&&this.__isUpgradeDisabled&&S===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var P;((P=this.hostElement)!=null?P:this).isConnected&&this.connectedCallback()}else b===S||this.__isReflecting||this.attributeChangedCallback(N,b,S)};
gW9.prototype.getExtraMethodsToForward=function(){for(var N=this,b=[],S=_.O(ehS),P=S.next(),H={};!P.done;H={tagName$jscomp$67:void 0,name$jscomp$630:void 0},P=S.next())H.name$jscomp$630=P.value,P=void 0,H.name$jscomp$630==="_setPendingProperty"?(H.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),P=function(K){return function(C,G,a){B4(K.tagName$jscomp$67,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return N._setPendingProperty(C,G,a)}}(H)):P=function(K){return function(){return N[K.name$jscomp$630].apply(N,
_.IX(_.$I.apply(0,arguments)))}}(H),b.push([H.name$jscomp$630,
P]);return b};
for(var ccs=l4z(BT9((0,_.EH)(gW9))),nF9=["disabled","disable-upgrade"],$e9=(0,_.EH)(function(){}),hh4=new Set(Object.getOwnPropertyNames($e9.prototype)),thE=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.IX(hh4))),m2L=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),ehS=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),qzN=new Set([].concat(_.IX(m2L),_.IX(ehS),_.IX(hh4))),wDS=_.O(qzN),N14=wDS.next();!N14.done;N14=wDS.next())E8o.add(N14.value);var TiO={created:function(){QYE(this);this.initializeInjection()}};var x2e=!1,Sr=window.ShadyDOM,Acs=["appendChild","insertBefore","removeChild","replaceChild"],zgO=[Node];Sr&&zgO.push(Sr.Wrapper);var D2s,Vhp,$2b={};var P7,b$U=new WeakMap,qSe=new Set;var K1p=new Set("context didCallReady is info params signalProxy".split(" ")),O$L="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Cf_="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var bdz=zb({entities:KWp}),SqO=new $G(bdz);var PaE=function(){return _.kq.apply(this,arguments)||this};
_.F(PaE,_.kq);_.d0.Object.defineProperties(PaE.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return SqO}}});
_.p([_.Td()],PaE);_.CG=[S$.prototype,PaE.prototype];_.Gl={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var N=this,b={};setTimeout(function(){var S;return _.bC((S=N.hostElement)!=null?S:N,"yt-live-chat-add-tooltip-target",b)},0);
this.handler_=b.handler},
detached:function(){if(this.handler_){var N;this.handler_.removeElementFromSupportingTooltips((N=this.hostElement)!=null?N:this)}this.handler_=null}}};_.GS=new _.nO("ICON_MANAGER_TOKEN");var HdE=[48,20,18,16,15,13,12],Qle=new Map,l4u=new Set,Mv9=new Set,BTa=new Set,tvb=new Set,F1e=new Set,f4O=new Promise(function(N){var b=!1,S=!1,P=!1,H=[],K=function(C){if("detail"in C)if(C=C.detail,C.name==="yt-icons")L1o(C),b=!0;else if(C.name==="yt-sys-icons")L1o(C),S=!0;else{var G;((G=C.name)==null?0:G.includes("yt-sys-icons"))&&C.size!==24&&(L1o(C,!0),H.push(C.size),H.length===HdE.length&&(P=!0))}b&&S&&P&&(window.removeEventListener("iron-iconset-added",K),N())};
window.addEventListener("iron-iconset-added",K)}),sgd=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.r2={};_.r2.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.es,computeHref_:function(N,b){b=b===void 0?!1:b;if(!N||N.commandExecutorCommand)return null;var S=tFY(N,b);return b||S!==null?S?_.T("enable_polymer_resin")?_.VK(S).toString():S:null:(_.$h(new _.jU("computeHref was null",this.is,N)),null)},
computeOptionalHref_:function(N){return this.computeHref_(N,!0)},
computeNofollow_:function(N){return N?c5s(N)?"nofollow":null:null},
computeIcon_:function(N){return N&&N.iconType?_.C7(N.iconType):""},
resolveCommand:function(N,b,S){b=b===void 0?{}:b;return _.c7(N,this.hostElement,b,S===void 0?!1:S)}};var vcc,ct;_.KPd={};vcc=null;
ct={isVisibilityRoot:!1,properties:{observeVisibleOption:{type:String,value:null},observeHiddenOption:{type:String,value:null},observePrescanOption:{type:String,value:null},viewroot:Object,visibilityMonitorKeys:{type:Array,value:void 0},visibilityObserver:Object},created:function(){this.visibilityObserverForChild_=this.localVisibilityObserver_=null;this.visibilityOptionVisible_=this.observeVisibleOption?{calledOnce:this.observeVisibleOption=="observe_once",state:"visible"}:null;this.visibilityOptionHidden_=
this.observeHiddenOption?{calledOnce:this.observeHiddenOption=="observe_once",state:"hidden"}:null;this.visibilityOptionPrescan_=this.observePrescanOption?{calledOnce:this.observePrescanOption=="observe_once",state:"prescan"}:null},
attached:function(){this.isVisibilityRoot&&(this.visibilityObserverForChild_=kgo(this.viewroot));_.p3(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var N=this;this.unobserve_();if(_.T("kevlar_vimio_use_shared_monitor"))Rq(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var b=[];this.visibilityOptionVisible_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=b}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){xeI(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var N=_.wY(this.parentNode,function(S){var P,H=(P=S.polymerController)!=null?P:S;return!!H.getVisibilityObserverForChild&&H.getVisibilityObserverForChild()},!0);
if(N){var b;this.localVisibilityObserver_=((b=N.polymerController)!=null?b:N).getVisibilityObserverForChild()}else vcc||(vcc=kgo()),this.localVisibilityObserver_=vcc;return this.localVisibilityObserver_},visibilityCallback:function(N){N?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.T("kevlar_use_vimio_behavior")||(ct={});ct&&!_.T("kevlar_use_vimio_behavior")&&(delete ct.attached,delete ct.detached);_.KPd.YtVisibilityObserverBehavior=[ct];var Odl={};Odl.YtVisualElementBehavior=[_.KPd.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.T("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var N=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportShown(this,void 0,N)}},
onHidden:function(){if(_.T("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.T("kevlar_vimio_use_shared_monitor")){var N=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportHidden(this,void 0,N)}},
getVisibilityLogger:function(){return _.T("kevlar_use_vimio_behavior")?_.W7():null},
shouldSkipLogging:function(){if(_.Vg("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var N=this.getParentRenderer&&this.getParentRenderer();if(!N)return!1;var b,S=(b=N.polymerController)!=null?b:N;if(!S.data)return!1;N=this.data.trackingParams;N=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:N;var P;b=(P=S.data)==null?void 0:P.trackingParams;var H,K;b=((H=S.data)==null?0:H.loggingDirectives)?(K=S.data)==null?void 0:K.loggingDirectives.trackingParams:b;return N&&b&&N===
b}}];var jla=new Map,B7;var QRE=function(N){this.layer=N},d6=function(N){return N.layer!==void 0?N.layer:N.parent?d6(N.parent):N.layer=0};var YzL;_.h={};YzL=0;_.h.YtRendererBehavior=[_.r2.YtComponentBehavior,Odl.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.T("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var N,b;(b=(N=this.monitorScrollElement)!=null?N:this.hostElement)==null||b.removeEventListener("scroll",_.aA(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Ueu(this.hostElement);Iw(_.VP(),this.hostElement);V3.delete(this.hostElement)},
registerRenderer:function(N){var b;((b=N.polymerController)!=null?b:N).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(N),this.markDirty())},
unregisterRenderer_:function(N){this.useVimio_||(this.childCache_.delete(N),this.markDirty())},
attached:function(){var N=this,b=this.getParentRenderer();if(b){var S,P,H;(P=(S=(H=b.polymerController)!=null?H:b).registerRenderer)==null||P.call(S,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var K,C;(C=(K=this.monitorScrollElement)!=null?K:this.hostElement)==null||C.addEventListener("scroll",_.aA(this,this.onScroll))}_.Dj.addJob(function(){zhb(N.hostElement)},8);
S=new QRE(this.screenLayer||void 0);(b=V3.get(b))&&b.layerNode&&(S.parent=b.layerNode);b={};fxf(this.hostElement,(b.isRenderer=!0,b.layerNode=S,b[xra]=this.data,b))},
getParentRenderer:function(){for(var N=this.hostElement.parentNode,b,S;N&&((b=V3.get(N))==null||!b.isRenderer)&&!((S=N.polymerController)!=null?S:N).isRenderer_;)N=N.parentNode||N.host;return N},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.T("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.g8("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.T("debug_web_ve_data")&&this.data.trackingParams){var N="";try{N=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(S){_.ge(S)}if(N){var b=ER9(N,1);b!==void 0&&(this.hostElement.dataset.veIndex=String(b));N=ER9(N,2);
N!==void 0&&(this.hostElement.dataset.ve=String(N))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.T("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.FA(this.data.loggingDirectives.trackingParams)),this.visualElement=_.n7(_.dG(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var N=this.data.targetId;_.Dy(_.VP(),N,this.hostElement)}else Iw(_.VP(),this.hostElement)},
onScroll:function(){var N=Date.now();N-this.lastHandledScroll_<50||(this.lastHandledScroll_=N,this.markDirty())},
markDirty:function(){_.T("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():yia(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var N=this.getParentRenderer();if(N&&(N=V3.get(N))&&N.layerNode)return d6(N.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.IX(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var N=0;N<this.data.impressionEndpoints.length;N++)this.sendImpression(this.data.impressionEndpoints[N]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(N){N.clickTrackingParams&&delete N.clickTrackingParams;var b,S;(N==null?0:(b=N.commandMetadata)==null?0:(S=b.webCommandMetadata)==null?0:S.sendPost)?_.HN(this.hostElement,[N,{impression:!0}]):_.sR(this.hostElement,[N],this.hostElement)},
logExplicitClick:function(N){var b=_.Qh(this.getScreenLayer());if(b){var S,P=(S=N.polymerController)!=null?S:N;N=P.visualElement;P=P.trackingParams||P.clickTrackingParams;!N&&P&&(N=_.FA(P));N&&_.y3(b,N)}}}];var Ca9={},af=function(){return _.kq.apply(this,arguments)||this};
_.F(af,_.kq);af.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
af.prototype.onPdgItemBehaviorClick=af.prototype.onPdgItemBehaviorClick;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],af.prototype,"data",void 0);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],af.prototype,"onPdgItemBehaviorClick",null);_.p([_.Td()],af);Ca9.YtPdgLiveChatItemBehavior=[af.prototype,_.h.YtRendererBehavior];var GX9;var r7N;_.Rf={};_.Rf.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Wt=function(){var N=kX.apply(this,arguments)||this;N.switchTemplateAtRegistration=!1;return N};
_.F(Wt,kX);Wt.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||gWa(this),_.BfO(this,"doRender"),this.doRender())};
Wt.prototype.debounceRender=function(){this.templatingFn&&_.Yq(this,"doRender",this.doRender)};
Wt.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.ge(Error("bh"))};
Wt.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.p([aAe()],Wt);var c79=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,nG={},qzf=(nG[1]={filterString:null,isUnwrappable:null,unwrap:null},nG[2]={filterString:function(N,b,S){return Kf(S)},
isUnwrappable:function(N){return N instanceof wc},
unwrap:function(N){return b4(N)}},nG[3]={filterString:function(N,b,S){return c79.test(S)?S:DB.toString()},
isUnwrappable:function(N){return EL(N)},
unwrap:function(N){return _.YI(N)}},nG[4]={filterString:function(){return DB.toString()},
isUnwrappable:function(N){return N instanceof UL},
unwrap:function(N){return _.jo(N).toString()}},nG[5]={filterString:function(N,b,S){return S},
isUnwrappable:function(N){return typeof N==="string"},
unwrap:function(N){return N.toString()}},nG[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(N){return N instanceof _.OE},
unwrap:function(N){return GJ(N)}},nG[8]={filterString:function(N,b,S){S=String(S).toLowerCase();
return pzf(N,b,S)?S:"zClosurez"},
isUnwrappable:null,unwrap:null},nG[10]={filterString:null,isUnwrappable:null,unwrap:null},nG);cz[bD["default"]]=N1o;var bdu=[];(function(){var N=r8;r8=function(b){N==null||N(b);uH(function(){for(var S=0;S<b.length;S++)SqE(b[S])})}})();var a6d=function(){var N=_.kq.apply(this,arguments)||this;N.hasUnmounted=!1;return N};
_.F(a6d,_.kq);_.v=a6d.prototype;_.v.beforeRegister=function(){var N=this.doIdomRender;this.templatingFn?_.ge(Error("ah")):(this.templatingFn=N,this.switchTemplateAtRegistration=!0,hho(this))};
_.v.attached=function(){};
_.v.detached=function(){SqE(this.hostElement)};
_.v.renderIdom=function(){throw Error("dh");};
_.v.doIdomRender=function(){var N=this;Ub9(this.hostElement,function(){N.renderIdom()})};
_.p([_.Td()],a6d);var RcV=[Wt.prototype,a6d.prototype];var WPb,ncz=function(){return WPb!==void 0?WPb:WPb=document.createElement("template")};
document.head.appendChild(ncz().content);var dRz;var mR9,kXk=function(){return mR9!==void 0?mR9:mR9=document.createElement("template")};
document.head.appendChild(kXk().content);var T1k;var tR4=document.head,MR9=tR4.appendChild,FPk;if(T1k===void 0){var B1Z=document.createElement("template");_.B(B1Z,"\x3c!--css-build:shady--\x3e");B1Z.content.insertBefore(kXk().content.cloneNode(!0),B1Z.content.firstChild);T1k=B1Z}FPk=T1k;MR9.call(tR4,FPk.content);var l6b,LPk=function(){return l6b!==void 0?l6b:l6b=document.createElement("template")};
document.head.appendChild(LPk().content);var f6N;var u2k=document.head,QgS=u2k.appendChild,xRc;if(f6N===void 0){var oc9=document.createElement("template");_.B(oc9,"\x3c!--css-build:shady--\x3e");oc9.content.insertBefore(LPk().content.cloneNode(!0),oc9.content.firstChild);f6N=oc9}xRc=f6N;QgS.call(u2k,xRc.content);var id9=document.head,J7S=id9.appendChild,URk;if(dRz===void 0){var Zd9=document.createElement("template");_.B(Zd9,"\x3c!--css-build:shady--\x3e");Zd9.content.insertBefore(ncz().content.cloneNode(!0),Zd9.content.firstChild);dRz=Zd9}URk=dRz;J7S.call(id9,URk.content);var jgN,zcO=function(){return jgN!==void 0?jgN:jgN=document.createElement("template")};
document.head.appendChild(zcO().content);var A7E;_.T8=new _.nO("DARK_THEME_TOKEN");var XYN=new _.WF("accessibilityProperties");var EcO=new _.WF("layoutProperties");var pYk=new _.WF("imageType");var Yqz={};if("ytAttributedStringLinkHoverColor"in Yqz)throw Error("gh`ytAttributedStringLinkHoverColor");(function(N,b){Yqz[N]="value"in b&&"unit"in b?vc9(N,b):function(S){try{return b(S)}catch(P){throw Error("eh`"+N+"`"+P.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var y7V=function(N){var b=this;this.holdTime=N===void 0?500:N;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(S){var P=new CustomEvent("LONG_PRESS"),H;(H=S.changedTouches[0].target)==null||H.dispatchEvent(P)};
this.ontouchstart=function(S){b.longPressTimeout=_.ml(_.Dj,function(){b.onlongpress(S);b.longPressOccurred=!0},b.holdTime)};
this.ontouchmove=function(){_.Dj.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0};
this.ontouchend=function(S){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var P;(P=S.changedTouches[0].target)==null||P.dispatchEvent(new Event("click"))}_.Dj.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var l6U=function(N,b){y7V.call(this,b);var S=this;this.callback=N;this.onlongpress=function(P){var H;(H=S.callback)==null||H.call(S,P)}};
_.F(l6U,y7V);var LPs=function(N,b){var S=Object.assign({},b);N=_.O(new Map([["ontouchstart",N.ontouchstart],["ontouchend",N.ontouchend],["ontouchmove",N.ontouchmove]]));for(var P=N.next(),H={};!P.done;H={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},P=N.next()){var K=_.O(P.value);P=K.next().value;K=K.next().value;H.eventName$jscomp$103=P;H.eventHandler$jscomp$2=K;b[H.eventName$jscomp$103]=function(C){return function(G){var a;(a=S[C.eventName$jscomp$103])==null||a.call(S,G);(0,C.eventHandler$jscomp$2)(G)}}(H)}};_.Wq=new _.nO("COMMAND_HANDLER_TOKEN");var Cap=new _.WF("parallelCommand");var c7I=new _.WF("performOnceCommand");var r7f=new _.WF("serialCommand");var a6e=void 0;var I6k=function(){this.data=[];this.consumer=null};
I6k.prototype.push=function(N){this.consumer?this.consumer(N):this.data.push(N)};var Vw={};_.QF(Vw,void 0,"sgPmTd");_.QF(null,void 0,"jypsq");_.QF(null,void 0,"mWiOof");var MTY=new I6k;var tRo=[uHO,Q$Z,xjz,iDc,oIE,fB9,JS9,Ujd];var DRk=new _.WF("bracketTextDecorator");var p7=new _.WF("highlightTextDecorator");_.YY=new _.nO("APP_DIRECTION_TOKEN");var ZdI={calledOnce:!1,state:"visible"},URs={calledOnce:!1,state:"hidden"};var VRz=new _.nO("ICON_WIZ_COMPONENT_TOKEN");_.cX=_.A(function(N){var b=N.icon;var S=N.active;var P=N.className;var H=N.style;var K=N.dataSelected;var C=N.dataDisabled;var G=N.role;var a=N.animateIcon;var R=N.themeOverride;var n=N.ariaHidden;var d=N.ariaExpanded;var m=N.ariaLabel;var k=N.tabindex;var M=N.id;var l=N.size;var u=N.iconFilter;var J=N.gradientColor;var Z=N.onKeydown;var D=N.title;return _.c(_.W,{cond:b,then:function(){var Y=_.aN().resolve(VRz);return _.c(Y,{icon:b,dataSelected:K,dataDisabled:C,animateIcon:a,themeOverride:R,ariaExpanded:d,
tabindex:k,id:M,active:S,size:l,role:G,className:P,ariaHidden:n,ariaLabel:m,style:function(){return H!=null&&H()||l==null||!l()?H==null?void 0:H():"width: "+(l==null?void 0:l())+"px;height: "+((l==null?void 0:l())+"px;")},
title:D,iconFilter:u,gradientColor:J,onKeydown:Z})}})},"n");
_.cX.idomCompat={callbacks:{onKeydown:!0}};var DRs=new _.WF("borderImageProcessor");var ecu=window.devicePixelRatio||1;var wYs=new Map([["yt_outline_bag_black_24","bag"]]);var d2=function(N){var b=this;this.margin=.1;this.whenInViewportWithMargin=N;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()});
window.addEventListener("touchend",function(){b.requestScan()});
window.addEventListener("updateui",function(){b.requestScan()});
var S=new _.GR((0,_.pT)(this.requestScan,this),100);window.addEventListener("scroll",function(){S.fire()},!0);
window.addEventListener("resize",(0,_.pT)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.pT)(this.requestScan,this))};
d2.prototype.observe=function(N){this.observationTargets.includes(N)||this.observationTargets.push(N)};
d2.prototype.unobserve=function(N){this.observationTargets=this.observationTargets.filter(function(b){return b!==N})};
d2.prototype.requestScan=function(){var N=this;this.scanRequested||(uH(function(){gc9(N)}),this.scanRequested=!0)};
var gc9=function(N){var b=(1+N.margin)*(document.documentElement.clientHeight||window.innerHeight);N.observationTargets=N.observationTargets.filter(function(S){var P=S.getBoundingClientRect();(P=b>P.top&&!!P.height)&&N.whenInViewportWithMargin(S);return!P&&S.parentNode});
N.scanRequested=!1};
d2.prototype.disconnect=function(){this.observationTargets=[]};var ecz,hc4;ecz=_.O(_.QF(Hep(),void 0,"O3X2wd"));_.$RV=ecz.next().value;hc4=ecz.next().value;window.addEventListener("resize",function(){hc4(Hep())});var qqk={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},wYk=void 0,Ngd=window.innerWidth,be9=window.innerHeight;window.addEventListener("resize",function(){wYk=void 0});var S8S;if("IntersectionObserver"in window)S8S=vke();else{if(wYk===void 0){var PsO;PsO="matchMedia"in window?window.matchMedia(qqk.landscape+","+qqk.portrait).matches:void 0;wYk=PsO!==void 0?PsO:Ngd>=930&&be9>=550||Ngd>=550&&be9>=930}S8S=wYk?{observe:function(N){uH(function(){var b;(b=N.onViewportEntered)==null||b.call(N)})},
unobserve:function(){}}:new d2(function(N){uH(function(){var b;
(b=N.onViewportEntered)==null||b.call(N)})})}var sGb=S8S;var He9=_.A(function(N){var b=!1,S=_.Ct("img",function(P){_.ej(function(){b=!0;P.onload=null})});
_.gA(function(){var P,H=(P=N.data)==null?void 0:P.call(N),K,C=(K=N.getSrc)==null?void 0:K.call(N).cb,G;P=(G=N.config)==null?void 0:G.call(N);if(G=S.value)if(K=function(R,n){if(!b)return C?C(R,n):R},GeO(G,P),_.T("web_image_dont_reload_same_src")&&CsU(G,H,K))_.T("web_image_dont_reload_same_src_simulate_load")&&G.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var a;OeL(G,H||null,K,P,(a=N.lazy)==null?void 0:a.call(N))}},"zS0jKb");
return _.c("img",{el:S})},"p");
He9.idomCompat=!0;_.gG=_.A(function(N){var b=function(){var S,P=N.data(),H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp,Xf,YO,Wk;var S9={contentMode:(H=N.contentMode)==null?void 0:H.call(N),loadedClass:(K=N.loadedClass)==null?void 0:K.call(N),isPreloaded:(C=N.isPreloaded)==null?void 0:C.call(N),notifyOnLoaded:(G=N.notifyOnLoaded)==null?void 0:G.call(N),notifyOnUnloaded:(a=N.notifyOnUnloaded)==null?void 0:a.call(N),preferredThumbnail:(R=N.preferredThumbnail)==null?void 0:R.call(N),preserveHeight:(n=N.preserveHeight)==
null?void 0:n.call(N),preserveWidth:(d=N.preserveWidth)==null?void 0:d.call(N),objectPosition:(m=N.objectPosition)==null?void 0:m.call(N),targetWidth:(k=N.targetWidth)==null?void 0:k.call(N),targetHeight:(M=N.targetHeight)==null?void 0:M.call(N),shouldShowPlaceholder:(l=N.shouldShowPlaceholder)==null?void 0:l.call(N),useWidth:(u=N.useWidth)==null?void 0:u.call(N),isToggled:(J=N.isToggled)==null?void 0:J.call(N),alt:(Z=N.alt)==null?void 0:Z.call(N),className:(D=N.className)==null?void 0:D.call(N),
onerror:N.onerror,onload:N.onload,style$:((Y=N.style$)==null?void 0:Y.call(N))||((V=N.style)==null?void 0:V.call(N)),color:(g=N.color)==null?void 0:g.call(N),width:(e=N.width)==null?void 0:e.call(N),height:(se=N.height)==null?void 0:se.call(N),"aria-hidden$":(YO=(Ca=N["aria-hidden$"])==null?void 0:Ca.call(N))!=null?YO:(ML=N.ariaHidden)==null?void 0:ML.call(N),draggable:(na=N.draggable)==null?void 0:na.call(N),"data-disabled$":(Wk=(To=N["data-disabled$"])==null?void 0:To.call(N))!=null?Wk:(jp=N.dataDisabled)==
null?void 0:jp.call(N),size:(Xf=N.size)==null?void 0:Xf.call(N)};return cLL(P,S9,(S=N.hideOn404)==null?void 0:S.call(N))};
return _.c(_.Al,null,_.c(_.ZH,{when:function(){var S;return((S=b())==null?void 0:S.type)==="image"}},function(){return _.c(He9,{data:function(){return b().image},
getSrc:{cb:function(S,P){var H=b().image.sources,K=b().config.isPreloaded,C=b().config.useWidth,G=b().config.targetWidth,a=b().config.targetHeight,R=b().config.preferredThumbnail;return _.$Rb(P,H,K,C,G,a,R)||""}},
config:function(){var S=b().config,P;for(P in S)S[P]===void 0&&delete S[P];return S},
lazy:N.renderLazy})}),_.c(_.ZH,{when:function(){var S;
return((S=b())==null?void 0:S.type)==="icon"}},function(){return _.c(_.cX,{icon:function(){return b().iconName},
role:function(){return b().config.role},
className:function(){return b().config.className},
style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")},
ariaLabel:function(){return b().config["aria-label$"]},
ariaHidden:function(){return b().config["aria-hidden$"]},
dataDisabled:function(){return b().config["data-disabled$"]},
active:function(){return b().config.isToggled},
size:function(){return b().config.size}})}))},"q");
_.gG.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var sGV=_.A(function(N){var b=function(H){var K,C,G=_.VN(function(k){K=H();C=$l(function(){for(var M=_.O(d()),l=M.next();!l.done;l=M.next()){l=nkI(l.value);l=typeof l==="string"?document.createTextNode(l):l;if(!(l instanceof Node)){M=new _.jU("Part is not a node",l,typeof l);_.ge(M);break}k.appendChild(l)}})}),a=_.$q(N.config),R=function(){var k,M=H();
return!((k=a())==null||!k.ariaLabel)||!(M.commandRuns&&M.commandRuns.length!==0||M.paragraphStyleRuns&&M.paragraphStyleRuns.length!==0)},n=R1s(a,{isEqual:moU}),d=function(){var k=H(),M=n(),l=[],u=k.content.length,J,Z=(J=_.aN().resolve(_.cq(_.T8)))==null?void 0:J();
if(k.paragraphStyleRuns)for(var D=_.O(k.paragraphStyleRuns),Y=D.next();!Y.done;Y=D.next()){var V=l.push,g=V.apply;var e=void 0,se=Y.value;if((e=se.listGroup)!=null&&e.listItems){var Ca=[];b:switch(se.listGroup.listType){case "LIST_TYPE_BULLET":var ML="ul";break b;default:ML="span"}Ca.push(XA({run:se,textLength:u,tag:ML,config:{className:"yt-core-attributed-string__list-group"},startIndex:se.startIndex,length:se.length}));for(var na=_.O(se.listGroup.listItems),To=na.next();!To.done;To=na.next()){var jp=
To.value;b:switch(se.listGroup.listType){case "LIST_TYPE_BULLET":var Xf="li";break b;default:Xf="span"}Ca.push(XA({run:se,textLength:u,tag:Xf,startIndex:jp.startIndex,length:jp.length}))}var YO=Ca}else YO=[];g.call(V,l,_.IX(YO))}if(k.styleRuns&&(M==null||!M.noStyleRuns))for(var Wk=_.O(k.styleRuns),S9=Wk.next();!S9.done;S9=Wk.next()){var Vu=S9.value,n9=Vu,mc=Z,f9=M,mJ=QgL({extension:_.t(n9.styleRunExtensions,MJS),isDarkTheme:mc===void 0?!1:mc,runColor:n9.fontColor}),Bk=void 0,RU=n9,Ab=[];mJ&&Ab.push("yt-core-attributed-string--link-inherit-color");
RU.italic&&Ab.push("yt-core-attributed-string--italicized");RU.underline&&RU.strikethrough?Ab.push("yt-core-attributed-string--underline-strikethrough",ocp(RU.underline)):RU.underline?Ab.push("yt-core-attributed-string--underlined",ocp(RU.underline)):RU.strikethrough&&Ab.push("yt-core-attributed-string--strikethrough",ocp(RU.strikethrough));if(RU.baselineOffset){a:switch(RU.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Bk="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Bk=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Bk="yt-core-attributed-string--baseline-offset-unknown"}Ab.push(Bk)}var kZ=Ab.join(" ");var Ib=n9,Ud=mJ,ob={};if(Ib.weight||Ib.weightLabel)ob.fontWeight=xR9(Ib,f9==null?void 0:f9.isHeadline).toString();Ud&&(ob.color=Ud);l.push(XA({run:Vu,textLength:u,tag:"span",config:{className:kZ,style:ob},startIndex:Vu.startIndex,length:Vu.length}))}if(k.decorationRuns)for(var PM=_.O(k.decorationRuns),Vz=PM.next();!Vz.done;Vz=PM.next()){var ck=
Vz.value,d9={};if(ck.textDecorator){var sa=ck.textDecorator,$O=Z===void 0?!1:Z,qS=[],Do=_.t(sa,p7),Nj=_.t(sa,DRk);if(Do){var nq=qS,pq=nq.concat,R_=[],Gn=QgL({extension:_.t(Do.highlightTextDecoratorExtensions,tJc),isDarkTheme:$O,runColor:Do.backgroundColor});Gn&&R_.push("background-color: "+Gn+";");Do.backgroundCornerRadius!==void 0&&R_.push("border-radius: "+Do.backgroundCornerRadius+"px;");Do.leftPadding!==void 0&&R_.push("padding-left: "+Do.leftPadding+"px;");Do.rightPadding!==void 0&&R_.push("padding-right: "+
Do.rightPadding+"px;");Do.topPadding!==void 0&&R_.push("padding-top: "+Do.topPadding+"px;");Do.bottomPadding!==void 0&&R_.push("padding-bottom: "+Do.bottomPadding+"px;");qS=pq.call(nq,R_)}else if(Nj){var g9=qS,Lq=g9.concat,Kq=$O?"#2ba640":"#107516",Ah=Nj.color?u2s(Nj.color):Kq;qS=Lq.call(g9,["padding: 2px;","border-top: solid "+Ah+" 2px;","border-bottom: solid "+Ah+" 2px;","background: linear-gradient(135deg, "+Ah+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Ah+" 3px, rgba(0, 0, 0, 0) 3px);"])}var Hv=
qS.join(" ");d9.style$=Hv;var XK=ck.textDecorator,lz=[],i4=_.t(XK,DRk);_.t(XK,p7)?lz.push("yt-core-attributed-string--highlight-text-decorator"):i4&&lz.push("yt-core-attributed-string--bracket-text-decorator");var fE=lz.join(" ");d9.className=fE;d9.dir="auto"}var uY=_.t(ck.textDecorator,p7),Ee=_.t(ck.textDecorator,DRk),ep=_.t(ck.textDecorator,p7),MS=_.t(ck.textDecorator,DRk);l.push(XA({run:ck,textLength:u,tag:"span",config:d9,startIndex:(uY==null?void 0:uY.startIndex)||(Ee==null?void 0:Ee.startIndex)||
0,length:(ep==null?void 0:ep.length)||(MS==null?void 0:MS.length)||0}))}if(k.commandRuns&&(M==null||!M.noEndpoints))for(var tO=_.O(k.commandRuns),LD=tO.next();!LD.done;LD=tO.next()){var fq=LD.value,Qz=f6f(fq,M);l.push(XA({run:fq,textLength:u,tag:"a",config:Qz,startIndex:fq.startIndex,length:fq.length}))}if(k.attachmentRuns)for(var lE=_.O(k.attachmentRuns),YQ=lE.next();!YQ.done;YQ=lE.next()){var CD=YQ.value,T4=void 0,Un=void 0,F1={className:"yt-core-attributed-string--inline-block-mod"};if((Un=CD.element)==
null?0:Un.properties){var pD=(T4=CD.element)==null?void 0:T4.properties,mA=[],SH=_.t(pD,EcO);if(SH==null?0:SH.margin){var Lv=SH.margin;Lv.left&&mA.push("margin-left: "+iH(Lv.left)+";");Lv.right&&mA.push("margin-right: "+iH(Lv.right)+";");Lv.top&&mA.push("margin-top: "+iH(Lv.top)+";");Lv.bottom&&mA.push("margin-bottom: "+iH(Lv.bottom)+";")}var Dq=mA.length!==0?mA.join(" "):void 0;F1.style$=Dq}var g5=F1,YA=void 0,qY={alt:"",preserveHeight:!0,preserveWidth:!0},A1=["yt-core-attributed-string__image-element"];
if(CD.alignment){a:switch(CD.alignment){case "ALIGNMENT_BASELINE":var fv="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":fv="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:fv="yt-core-attributed-string__image-element--image-alignment-bottom"}A1.push(fv)}if((YA=CD.element)==null?0:YA.properties){var Fw=[],tM=_.t(CD.element.properties,EcO);(tM==null?0:tM.height)&&Fw.push("height: "+iH(tM.height)+
";");(tM==null?0:tM.width)&&Fw.push("width: "+iH(tM.width)+";");var Ye=Fw.length!==0?Fw.join(" "):void 0;qY.style$=Ye;var yc=void 0;var yP=((yc=_.t(CD.element.properties,XYN))==null?void 0:yc.label)||"";qY.alt=yP}qY.className=A1.join(" ");var X5=qY,Xz=void 0;var Er=void 0,qc=void 0;var pF=((qc=CD.element)==null?0:qc.type)?(Er=_.t(CD.element.type,pYk))==null?void 0:Er.image:void 0;l.push(XA({run:CD,textLength:u,tag:"img",image:pF,imageConfig:X5,imageWrapperConfig:g5,startIndex:CD.startIndex,length:(Xz=
CD.length)!=null?Xz:0}))}if(M==null?0:M.headerRuns)for(var If=_.O(M.headerRuns),bE=If.next();!bE.done;bE=If.next()){var Oa=bE.value;if(Oa.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Oa.headerMapping)){a:{switch(Oa.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var lL="yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":lL=
"yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":lL="yt-core-attributed-string--heading-3";break a}lL=void 0}l.push(XA({run:Oa,textLength:u,tag:"span",config:lL?{className:lL}:void 0,startIndex:Oa.startIndex,length:Oa.length}))}}var Hh=n();if(Hh==null?0:Hh.userInput)for(var Qm=_.O(l),s5=Qm.next();!s5.done;s5=Qm.next()){var bM=s5.value;if(bM.tag!=="a"&&bM.tag!=="li"){var EI=void 0;(EI=bM).config||(EI.config={});bM.config.dir=bM.tag==="ul"?_.aN().resolve(_.YY):
"auto"}}if(H().content){var vr=H().content;EcE(l);for(var uq={data:null,start:0,end:vr.length,parts:[]},Mlf=_.O(l),QI=Mlf.next();!QI.done;QI=Mlf.next()){var xV=QI.value;A7Y(uq,xV.startIndex,xV.endIndex,xV)}XYf(vr,uq);var FeY=uq.parts}else FeY=[];return FeY},m=!0;
_.gA(function(){H();n();if(m&&(m=!1,Wxf(H(),K)))return;var k=d();Promise.resolve().then(function(){var M=G.value;if(M){M.innerText="";var l;(l=C)==null||l();C=_.E2(M,function(){return _.c(doo,{parts:k})},"r")}})},"Dfzccf");
return _.c("span",{el:G,class:function(){var k;if(k=H()){k=H();var M=a(),l=[];l.push("yt-core-attributed-string");(M==null?0:M.className)&&l.push(M==null?void 0:M.className);(M==null?0:M.ellipsisTruncate)?l.push("yt-core-attributed-string--ellipsis-truncate"):(M==null?0:M.noWrap)?l.push("yt-core-attributed-string--white-space-no-wrap"):(M==null?0:M.noPreWrap)||l.push("yt-core-attributed-string--white-space-pre-wrap");(M==null?0:M.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color");
k.alignment&&l.push(ida(k.alignment));k.lineBreakMode&&l.push("yt-core-attributed-string--word-wrapping");k=l.join(" ")}return k},
dir:function(){var k;return((k=a())==null?0:k.userInput)?"auto":void 0},
"aria-label":function(){var k;return R()?(k=a())==null?void 0:k.ariaLabel:void 0},
role:function(){return R()?"text":void 0}})},S=R1s(function(){var H,K=(H=N.text)==null?void 0:H.call(N);
if(K)return H=_.yN(K)?K:_.xH(K),(H==null?0:H.content)?H:void 0},{isEqual:Wxf}),P;
return((P=N.config)==null?0:P.contentAsserted)?b(S):_.c(_.W,{cond:S,then:b})},"t");
sGV.idomCompat=!0;_.mD=_.A(function(N){var b=_.$q(N.text),S=keY(N);N.contentAsserted!==void 0&&(S.contentAsserted=!0);return _.c(sGV,{text:b,config:S})},"u");
_.mD.idomCompat=!0;var Tgb=function(N,b,S){b=b===void 0?"unknown":b;S=S===void 0?{}:S;_.jU.call(this,N+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(Tgb,_.jU);_.hM=new WeakMap;_.$H=!1;var lPU,LxL,BgI;_.kg=Symbol("ih");_.er=Symbol("jh");lPU=Symbol("kh");LxL=new Set(Object.getOwnPropertyNames(Element.prototype));BgI=Symbol("lh");var Kx9=_.A(function(N){return _.c("yt-attributed-string",{"aria-label":N.ariaLabel,hidden:N.hidden,id:N.id,class:N.className,"force-default-style":N.forceDefaultStyle},_.c(_.mD,{text:N.data,ariaLabel:N.ariaLabel,ellipsisTruncate:N.ellipsisTruncate,isOverlay:N.isOverlay,linkInheritColor:N.linkInheritColor,noPreWrap:N.noPreWrap,noWrap:N.noWrap,userInput:N.userInput,noEndpoints:N.noEndpoints,headerRuns:N.headerRuns,isHeadline:N.isHeadline}))},"v");
_.T("web_wiz_attributed_string")&&_.qu(Kx9,"yt-attributed-string",{props:{ariaHidden:_.kg,ariaLabel:_.kg,className:_.kg,ellipsisTruncate:_.kg,isOverlay:_.kg,linkInheritColor:_.kg,noEndpoints:_.kg,noStyleRuns:_.kg,noLinkColor:_.kg,noPreWrap:_.kg,noWrap:_.kg,skipOnClick:_.kg,userInput:_.kg,headerRuns:_.kg,isHeadline:_.kg,id:_.kg,data:_.kg,hidden:_.kg,forceDefaultStyle:_.kg,text:_.er,disableUpgrade:_.er,disable:_.er,slot:_.er}});var Tl=function(){return _.z.apply(this,arguments)||this};
_.F(Tl,_.z);Tl.prototype.renderIdom=function(){if(this.data&&!this.disable){this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns};var N=this.data,b=this.config;N&&(N=_.yN(N)?N:_.xH(N),N!=null&&N.content&&(b=b||{},b.contentAsserted=!0,PsE(sGV)({text:N,config:b})))}};
_.p([_.L(RcV),_.y("design:type",Object)],Tl.prototype,"ytIdomTemplatingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tl.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Tl.prototype,"ariaLabel",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"disable",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"ellipsisTruncate",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"isOverlay",void 0);
_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"linkInheritColor",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"noPreWrap",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"noWrap",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"userInput",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tl.prototype,"noEndpoints",void 0);_.p([_.U(),_.y("design:type",Array)],Tl.prototype,"headerRuns",void 0);
_.p([_.J_({is:"yt-attributed-string",disableElementRegistration:!0})],Tl);
_.T("web_wiz_attributed_string")||_.X(Tl,"yt-attributed-string",function(){if(A7E===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
N.content.insertBefore(zcO().content.cloneNode(!0),N.content.firstChild);A7E=N}N=A7E;return N},{mode:2});var vkd,OeS,JLe;vkd=function(){this.firstThumbnailLoaded=!1};
_.Csb=function(){OeS||(OeS=new vkd);return OeS};
JLe=function(N){var b=_.Csb();b.firstThumbnailLoaded||(b.firstThumbnailLoaded=!0,_.uC("ftl",N))};
vkd.prototype.reset=function(){this.firstThumbnailLoaded=!1};var uSa=0,ieL=new WeakMap,xo9=0,bo=new Set;var GeZ,rLd=function(){return GeZ!==void 0?GeZ:GeZ=document.createElement("template")};
document.head.appendChild(rLd().content);var cLS;var z1a,Xxa,tD;_.HX=_.Ps.caches;tD=function(){};
tD.prototype.open=function(N){return _.HX.open(aPV(N))};
tD.prototype.has=function(N){return _.HX.has(aPV(N))};
tD.prototype.delete=function(N){return _.HX.delete(aPV(N))};
tD.prototype.match=function(N,b){var S=this,P,H,K,C,G,a;return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(S.keys(),2);case 2:P=R.yieldResult,H=_.O(P),K=H.next();case 3:if(K.done){R.jumpTo(5);break}C=K.value;return R.yield(S.open(C),6);case 6:return G=R.yieldResult,R.yield(G.match(N,b),7);case 7:if(a=R.yieldResult)return R.return(a);K=H.next();R.jumpTo(3);break;case 5:return R.return()}})};
var Eka=function(){};
_.F(Eka,tD);var aPV=function(N){if(N.includes(":"))throw Error("oh`"+N);return N+":"+_.Ul("CacheStorage get")};
Eka.prototype.keys=function(){var N,b,S,P,H,K,C,G,a;return _.r(function(R){if(R.nextAddress==1)return N=[],b=_.Ul("CacheStorage keys"),R.yield(_.HX.keys(),2);S=R.yieldResult;P=_.O(S);for(H=P.next();!H.done;H=P.next())K=H.value,C=_.jGs(K),G=C.originalName,a=C.datasyncId,a===b&&N.push(G);return R.return(N)})};var MZ=function(){var N=_.z.apply(this,arguments)||this;N.objectURL=null;N.loadTime=Infinity;return N};
_.F(MZ,_.z);_.v=MZ.prototype;
_.v.renderIdom=function(){Zee(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var N=this.config,b=this.shouldRenderLazy;PsE(_.gG)({contentMode:N.contentMode,loadedClass:N.loadedClass,isPreloaded:N.isPreloaded,notifyOnLoaded:N.notifyOnLoaded,notifyOnUnloaded:N.notifyOnUnloaded,preferredThumbnail:N.preferredThumbnail,preserveHeight:N.preserveHeight,preserveWidth:N.preserveWidth,objectPosition:N.objectPosition,targetWidth:N.targetWidth,
targetHeight:N.targetHeight,shouldShowPlaceholder:N.shouldShowPlaceholder,useWidth:N.useWidth,isToggled:N.isToggled,alt:N.alt,className:N.className,onerror:N.onerror,onload:N.onload,style$:N.style$,color:N.color,width:N.width,height:N.height,"aria-hidden$":N["aria-hidden$"],draggable:N.draggable,"data-disabled$":N["data-disabled$"],data:this.data,callback:void 0,renderLazy:b===void 0?!0:b,hideOn404:!1})}}};
_.v.objectFitToContentMode=function(N){switch(N){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.v.logThumbnailFailureVe=function(){var N=_.OW(197497);_.Ew(_.dG(),N);var b=_.Qh();b&&N&&b&&_.pA(b,[N])};
_.v.loadImageFromCacheIfExists=function(N){var b=this,S=N.target;(S==null?0:S.src)&&Y8O(S.src).then(function(P){b.objectURL=_.eo(P).toString();b.setSrc(S,b.objectURL)}).catch(function(){})};
_.v.onError=function(N){var b=this;if(_.T("web_use_cache_for_image_fallback")){var S=N.target;S&&Y8O(S.src).then(function(P){b.objectURL=_.eo(P).toString();b.setSrc(S,b.objectURL)}).catch(function(){_.T("kevlar_woffle_log_thumbnail_failure_ve")&&b.logThumbnailFailureVe();
_.T("kevlar_woffle_fallback_image")&&b.setSrc(S,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.v.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.v.setConfig=function(){var N=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(b){N.loadImageFromCacheIfExists(b);N.revokeObjectURL();UoL(N.hostElement)},
onerror:function(b){N.onError(b)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.T("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.v.setSrc=function(N,b){b&&(N.src=b)};
_.p([_.L(RcV),_.y("design:type",Object)],MZ.prototype,"ytIdomTemplatingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MZ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],MZ.prototype,"alt",void 0);_.p([_.U(),_.y("design:type",Boolean)],MZ.prototype,"ftlEligible",void 0);_.p([_.U(),_.y("design:type",Number)],MZ.prototype,"height",void 0);_.p([_.U(),_.y("design:type",Boolean)],MZ.prototype,"notifyOnLoaded",void 0);
_.p([_.U(),_.y("design:type",Boolean)],MZ.prototype,"notifyOnUnloaded",void 0);_.p([_.U(),_.y("design:type",String)],MZ.prototype,"objectFit",void 0);_.p([_.U(),_.y("design:type",String)],MZ.prototype,"objectPosition",void 0);_.p([_.U(),_.y("design:type",String)],MZ.prototype,"preferredThumbnail",void 0);_.p([_.U(),_.y("design:type",Boolean)],MZ.prototype,"preserveHeight",void 0);_.p([_.U(),_.y("design:type",Boolean)],MZ.prototype,"preserveWidth",void 0);
_.p([_.U({value:!0}),_.y("design:type",Boolean)],MZ.prototype,"useWidth",void 0);_.p([_.U({value:function(){return!_.g8("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.y("design:type",Boolean)],MZ.prototype,"shouldRenderLazy",void 0);_.p([_.U(),_.y("design:type",Number)],MZ.prototype,"width",void 0);_.p([_.J_({is:"yt-image",disableElementRegistration:!0})],MZ);
_.X(MZ,"yt-image",function(){if(cLS===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);N.content.insertBefore(rLd().content.cloneNode(!0),N.content.firstChild);
cLS=N}N=cLS;return N},{mode:2});var Fo=function(){return _.z.apply(this,arguments)||this};
_.F(Fo,_.z);Fo.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var N=_.UZ(this.data.onVisibleCommand);N&&this.ytComponentBehavior.resolveCommand(N)}};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Fo.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],Fo.prototype,"ytVisibilityBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fo.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Fo);
_.X(Fo,"yt-bumper-user-edu-content-view-model",function(){if(r7N===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;GX9===void 0&&(GX9=document.createElement("template"));var P=GX9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);r7N=N}N=r7N;return N},{mode:0});var R1k;var WxN,nk9=function(){if(WxN!==void 0)return WxN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;R1k===void 0&&(R1k=document.createElement("template"));var P=R1k;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return WxN=N};var do4;_.Bt={};do4=new Set(["ytd-section-list-renderer","yt-horizontal-list-renderer","ytd-item-section-renderer","ytd-watch-next-secondary-results-renderer","ytd-video-primary-info-renderer"]);_.Bt.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var N=this.getContext_();return N?N.getTaskManager():_.Dj},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var N=_.bC(this.hostElement,"yt-get-context-provider",{});N.detail&&N.detail.contextProvider?this.cachedProviderNode_=N.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return do4.has(this.hostElement.localName)},
getNetworkManager:function(){var N=this.getContext_();if(N)return N.getNetworkManager()}};var e1U,mob,TgV,keE;_.ln=function(N){var b=mob.get(N);if(b&&(b=b.pop()))return keE++,b;TgV++;try{var S=document.createElement(N)}catch(P){throw new _.jU("ElementPool failed to create element",N,P.message);}return S};
e1U=function(N){var b=N.is;if(b){var S=mob.get(b);S||(S=[],mob.set(b,S));var P=_.Vg("ELEMENT_POOL_CONFIG")||{};S.length>=(P[b]!==void 0?P[b]:_.Vg("ELEMENT_POOL_DEFAULT_CAP",0))||S.push(N)}else _.$h(new _.jU("Element pool should only handle custom elements:",N.nodeName))};
mob=new Map;TgV=0;keE=0;var sb=new WeakMap,gkE=new WeakMap;var M4c;_.LG=function(N,b,S){S=S===void 0?_.oT():S;this.JSC$14130_defaultPriority=N;this.signal=b;this.scheduler=S;this.nextJobDescriptor=0;this.JSC$14130_parkedJobs=[];this.scheduledJobs=new Map};
_.fG=function(N,b){if(b){var S=_.kA();N.signal&&!_.Ts(S,N.signal)?(S.addListener(N.signal,function(){N.processSignal()}),N.JSC$14130_parkedJobs.push({job:b,
priority:void 0})):t4O(N,b)}};
M4c=function(N,b){if(b!==N.JSC$14130_defaultPriority){N.JSC$14130_defaultPriority=b;for(var S=_.O(N.scheduledJobs.values()),P=S.next();!P.done;P=S.next())P=P.value,N.scheduler.cancelJob(P.jobId),P.jobId=N.scheduler.addJob(P.jobWrapper,b)}};
_.LG.prototype.flushJobs=function(){M4c(this,10);this.processSignal()};
_.LG.prototype.cancel=function(){for(var N=_.O(this.scheduledJobs),b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;this.scheduler.cancelJob(S.jobId);this.scheduledJobs.delete(b)}this.JSC$14130_parkedJobs=[]};
_.LG.prototype.processSignal=function(){for(var N=_.O(this.JSC$14130_parkedJobs),b=N.next();!b.done;b=N.next())b=b.value,t4O(this,b.job,b.priority);this.JSC$14130_parkedJobs=[]};
var t4O=function(N,b,S){S=S||N.JSC$14130_defaultPriority;if(S===10)Sa(b);else{var P=N.nextJobDescriptor++,H=function(){b();N.scheduledJobs.delete(P)},K=N.scheduler.addJob(H,S);
N.scheduledJobs.set(P,{jobWrapper:H,jobId:K,priority:S})}};var Fxl;_.un={};Fxl={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.un.YtRendererstamperBehavior=[_.Bt.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var N in this.stampDom){var b=this.stampDom[N];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:IPO(b.id),args:[{type:"wildcard",path:N}]}})}else{(N=(this.constructor.generatedFrom||this).observers)||(N=[]);for(b in this.stampDom){var S=this.stampDom[b];S&&S.id&&N.push(IPO(S.id)+"("+b+".*)")}this.constructor.generatedFrom.observers=N}},
addStampDomObserverFns_:function(){for(var N in this.stampDom){var b=this.stampDom[N];b.id?(this[IPO(b.id)]=this.rendererStamperObserver_.bind(this,N,b.id),this.hasDataPath_[N]=!1):(b=new _.jU("Bad rendererstamper config",this.is+":"+N),_.ge(b))}},
rendererStamperObserver_:function(N,b,S){if(S.path==N){if(S.value===void 0&&!this.hasDataPath_[N])return;this.hasDataPath_[N]=S.value!==void 0}this.rendererStamperApplyChangeRecord_(N,b,S)},
rendererStamperApplyChangeRecord_:function(N,b,S){var P=this.renderJobsMap_[b],H=null;N==S.path?(S=S.value,_.yu(S)||(S=S===void 0||S===null?[]:[S]),N=this.stampDom[N],N.mapping&&(H=this.stampDomArray_.bind(this,S,b,N.mapping,N.reuseComponents,N.events,N.stamperStableList)),P&&P.cancel(),S=N.usePageScheduler?this.getTaskManager():void 0,P||N.initialRenderPriority==void 0)?N.renderPriority==void 0||P||(P=new _.LG(N.renderPriority,N.waitForSignal,S),this.renderJobsMap_[b]=P):(P=new _.LG(N.initialRenderPriority,
N.waitForSignal,S),this.renderJobsMap_[b]=P,H=function(K,C){K();M4c(C,10)}.bind(this,H,P)):H=N+".splices"==S.path?this.stampDomArraySplices_.bind(this,N,b,S.value):this.forwardRendererStamperChanges_.bind(this,N,b,S);
P?_.fG(P,H):H()},
forwardRendererStamperChanges_:function(N,b,S){var P=S.path.slice(N.length+1),H=this.getStampContainer_(b),K=P.indexOf("."),C=P.substring(0,K),G=!1,a=0,R=parseInt(C,0);if(C[0]=="#"){G=parseInt(C.substring(1),0);R=this.get(N);var n=this.get([N,C]);R[G]==n?a=G:a=R.indexOf(n);G=!0}else isNaN(R)||(a=R,G=!0);G&&(P=P.substring(C.length+1),K=P.indexOf("."));C=this.polymerDom(H).children[a];var d;if(H=(d=C==null?void 0:C.polymerController)!=null?d:C)P="data"+P.slice(K),typeof H.notifyPath!=="function"?_.$h(new _.jU("notifyPath missing",
this.is+": "+N+", "+b)):S.value?H.notifyPath(P,S.value):H.notifyPath(P)},
stampDomArraySplices_:function(N,b,S){if(S&&S.indexSplices){var P=this.getStampContainer_(b);if(P){for(var H=this.polymerDom(P),K=V4L(this.stampDom[N].reuseComponents),C=S.indexSplices.length,G=0;G<C;G++){for(var a=S.indexSplices[G],R=H.children[a.index],n=a.removed.length;n>0;n--)R&&R.parentElement&&(this.polymerDom(R.parentElement).removeChild(R),K&&e1U(R),R=H.children[a.index]);n=this.stampDom[N].mapping;for(var d=a.index+a.addedCount,m=document.createDocumentFragment(),k=K,M=a.index;M<d;M++){var l=
a.object[M],u=yL_(n,l);if(u){var J=n[u];l=l[u];u=this.getComponentName_(J,l);var Z=R?sb.has(R):!1;k&&R&&R.is==u&&Z?(u=R,this.telemetry_.reuse++,R=R.nextElementSibling):k&&R&&Z?(u=this.createComponent_(J,l,K),Z=this.polymerDom(R).nextElementSibling,H.insertBefore(u,Z),h1Y(this.is,H,R,K),R=Z):(k=!1,u=this.createComponent_(J,l,K),m.appendChild(u));this.deferRenderStamperBinding_(u,J,l)}else J=new _.jU("Unimplemented type",N,b,P.tagName,Object.keys(l)[0]),_.ge(J)}H.insertBefore(m,R)}this.flushRenderStamperComponentBindings_();
this.stampDom[N].events&&_.bC(this.hostElement,"yt-rendererstamper-finished",{container:P})}else N=new _.jU("Container object not found",b,this.hostElement?this.hostElement.is:""),_.ge(N)}},
stampDomArray_:function(N,b,S,P,H,K){var C=this.getStampContainer_(b);if(C)if(b=this.polymerDom(C),P=V4L(P),N){var G=0,a=0,R;if(K=K===void 0?_.g8("STAMPER_STABLE_LIST",!1):K||!1)for(R=b.firstElementChild;R&&!sb.has(R)&&N.length>a;){K=N[a];var n=yL_(S,K);if(n){if(this.getComponentName_(S[n],K[n])!=R.is){var d=this.createComponent_(S[n],K[n],P),m=this.polymerDom(R).nextElementSibling;m?b.insertBefore(d,m):b.appendChild(d);h1Y(this.is,b,R,P);R=d}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(R,
S[n],K[n]);G++;a++;R=this.polymerDom(R).nextElementSibling}else a++}q8U(this.is,b,G,P);G=R;if(N.length>a){K=document.createDocumentFragment();for(n=N.length;a<n;a++)if(d=N[a],m=yL_(S,d))R=this.createComponent_(S[m],d[m],P),this.deferRenderStamperBinding_(R,S[m],d[m]),K.appendChild(R);G&&this.polymerDom(G).parentNode&&R&&!sb.has(R)?b.insertBefore(K,G):b.appendChild(K)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();H&&_.bC(this.hostElement,"yt-rendererstamper-finished",
{container:C})}else q8U(this.is,b,0,P);else N=new _.jU("Container object not found",b,this.hostElement?this.hostElement.is:""),_.ge(N)},
polymerDom:function(N){return this.minimizePipBreakages?N:_.Tk(N)},
getStampContainer_:function(N){return this.$&&this.$[N]||_.H4(this.hostElement).querySelector("#"+N)},
getComponentName_:function(N,b){return typeof N==="string"?N:N.matcher?N.matcher.call(this,b):N.component},
createComponent_:function(N,b,S){N=this.getComponentName_(N,b);try{var P=qSe.has(N);if(S&&!P){var H=_.ln(N);try{_.rq(H)}catch(K){S="Failed to clear styles for "+N+".",K.message&&(S+=" Original error: "+K.message),_.$h(new _.jU(S))}}else H=document.createElement(N)}catch(K){return H="YtRendererStamperBehavior failed to create "+N+".",K.message&&(H+=" Original description: "+K.message),K.message="YtRendererStamperBehavior failed to create element",_.hd(K,H),Fxl.hasOwnProperty(N)?_.$h(K):_.ge(K),document.createElement("SPAN")}this.telemetry_.create++;
return H},
deferRenderStamperBinding_:function(N,b,S){this.deferredBindingTasks_.push({component:N,typeOrConfig:b,data:S})},
flushRenderStamperComponentBindings_:function(){for(var N=0,b=this.deferredBindingTasks_.length;N<b;N++){var S=this.deferredBindingTasks_[N];if(!S)break;var P=void 0,H=void 0,K=void 0,C=void 0,G=S.component,a=S.typeOrConfig;S=S.data;var R=(C=G.polymerController)!=null?C:G;C=G.loggingStatus;try{C&&(C.isRendererStamper=!0);if(typeof a!=="string"){for(K in a.attributes)a.attributes[K]===!0?G.setAttribute(K,""):a.attributes[K]===!1?G.removeAttribute(K):G.setAttribute(K,a.attributes[K]);for(H in a.params)R[H]=
a.params[H],G!==R&&B4(G.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(P in a.properties){var n=a.properties[P];if(n){var d=DoO(n);R[P]=this.get(d);G!==R&&B4(G.localName,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(P==="on-tap"||P==="on-click"){var m=this.get(d);G.addEventListener("click",m);gkE.set(G,{property:P,listener:{type:"element",eventName:"click",handler:m}})}}else{var k=new _.jU("Undefined property binding",P);_.ge(k)}}}if(a.classListBinding){var M=DoO(a.classListBinding),
l=M?this[M]:null;if(l)for(P=0;P<l.length;P++)_.K3(G,l[P],!0)}R.data=S}finally{C&&(C.isRendererStamper=!1)}if(P=sb.get(G))G.hidden=!1,sb.delete(G),_.Dj.cancelJob(P)}this.deferredBindingTasks_.length=0}}];_.qu(_.A(function(N){function b(){S().seconds&&K(GFU({seconds:Number(S().seconds)-Date.now()/1E3}))}
var S=N.targetTimestamp;N=N.className;var P=_.O(_.QF("",void 0,"U1Q8Ae")),H=P.next().value,K=P.next().value;_.pM(function(){b();var C=setInterval(function(){b()},1E3);
_.ej(function(){clearInterval(C)})});
return _.c("yt-countdown",{class:_.KU("ytCountDownHost",N)},_.c("div",null,H))},"x"),"yt-countdown",{props:{targetTimestamp:_.kg,
className:_.er}});_.QJ=new _.nO("KEY_MANAGER_TOKEN");var K$u={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.xg=_.A(function(N){var b=_.Ct("a",N.ref),S=N.aTagConfig?N.aTagConfig:_.UB(function(){var P,H,K,C,G;var a=(G=_.UZ((K=N.command)==null?void 0:K.call(N)))!=null?G:(C=N.command)==null?void 0:C.call(N);return _.jr({innertubeCommand:a,skipOnClick:(P=N.skipOnClick)==null?void 0:P.call(N),defaultTarget:(H=N.target)==null?void 0:H.call(N)})||{}},void 0,"TAvz0");
_.gA(function(){_.T("mweb_get_endpoint_from_atag_command")||(b.value._data=S()._data,b.value.params=S().params)},"dcjvAe");
return _.c("a",{el:b,href:function(){return S().href$},
rel:function(){return S().rel$},
class:function(){var P,H;return(H=S().className)!=null?H:(P=N.className)==null?void 0:P.call(N)},
style:function(){var P;if((P=N.style)==null?0:P.call(N))return N.style();var H;return((H=N.disabled)==null?0:H.call(N))?"pointer-events:none":""},
"aria-haspopup":function(){return!!S()["aria-haspopup$"]},
"force-new-state":CU(function(){return S()["force-new-state$"]}),
title:CU(function(){var P,H;return(H=S().title$)!=null?H:(P=N.title)==null?void 0:P.call(N)}),
role:CU(function(){var P;return((P=N.role)==null?void 0:P.call(N))||S().role$}),
target:CU(function(){return S().target$}),
dir:CU(function(){var P;return((P=N.dir)==null?void 0:P.call(N))||S().dir}),
tabindex:function(){var P;return S().tabindex$?Number(S().tabindex$):(P=N.tabIndex)==null?void 0:P.call(N)},
"aria-hidden":function(){var P,H;return(H=S()["aria-hidden$"])!=null?H:(P=N.ariaHidden)==null?void 0:P.call(N)},
"aria-label":function(){var P,H;return(H=S()["aria-label$"])!=null?H:(P=N.ariaLabel)==null?void 0:P.call(N)},
"aria-current":N.ariaCurrent,"aria-disabled":N.disabled,"aria-labelledby":N.ariaLabelledby,"aria-describedby":N.ariaDescribedby,"aria-selected":N.ariaSelected,"tab-identifier":N.tabIdentifier,"on:pointerdown":_.Ob(function(P){var H,K;return void((K=(H=S()).onpointerdown)==null?void 0:K.call(H,P))}),
"on:click":_.Ob(function(P){var H,K;(K=(H=S()).onclick)==null||K.call(H,P);var C;(C=N.onClick)==null||C.call(N,P)}),
"on:focusin":_.Ob(function(P){var H;(H=N.onFocusin)==null||H.call(N,P)}),
"on:focusout":_.Ob(function(P){var H;(H=N.onFocusout)==null||H.call(N,P)})},N.children)},"z");var Rks={duration:1E3,easing:"ease",fill:"forwards"};aEe.componentType=zz;var daa={duration:1E3,easing:"ease",fill:"forwards"},LxS=_.A(function(N){var b=_.Ct("animated-rolling-character"),S=void 0,P=function(){var G,a;return Vh((G=N.character)==null?void 0:G.call(N))||Vh((a=N.previousCharacter)==null?void 0:a.call(N))},H=_.O(_.QF(0,void 0,"CYT8Ob")),K=H.next().value,C=H.next().value;
_.pM(function(){if(window.ResizeObserver&&_.T("web_fix_rolling_numbers_zoom_safari")){var G=new _.GR(function(){var R,n,d=Math.round(((n=(R=b.value.querySelector("div"))==null?void 0:R.getBoundingClientRect().height)!=null?n:0)*100)/100;d&&C(d)},500),a=new ResizeObserver(function(){G.fire()});
a.observe(b.value);_.ej(function(){a.disconnect();G.dispose()})}});
_.gA(function(){var G=_.T("web_fix_rolling_numbers_zoom_safari")?K:N.marginMultiplier;if(G()){var a;(a=S)==null||a.cancel();if(P()){var R;a=((R=N.previousCharacter)==null?0:R.call(N))?Number(N.previousCharacter())+10:N.rollUp()?0:30;var n;if((n=N.shouldAnimate)==null||!n.call(N)){var d,m;a-=nLb((d=N.character)==null?void 0:d.call(N),(m=N.previousCharacter)==null?void 0:m.call(N),N.rollUp(),a)}}else{a=N.rollUp()?0:2;var k;(k=N.shouldAnimate)!=null&&k.call(N)||(R=a,n=N.rollUp()?-1:1,a=R-n)}b.value.style.marginTop=
"-"+a*G()+"px";var M;if((M=N.shouldAnimate)==null?0:M.call(N)){var l,u;S=map(b.value,(l=N.character)==null?void 0:l.call(N),(u=N.previousCharacter)==null?void 0:u.call(N),N.rollUp(),a,P(),G())}else{var J;b.value.style.display=((J=N.character)==null?0:J.call(N))?"":"none"}}},"CA6Pmf");
return _.c("animated-rolling-character",{el:b,class:"animatedRollingCharacterHost"},_.c(_.W,{cond:P,then:function(){return _.c(Bg9,null)},
else:function(){return _.c(lPb,{character:N.character})}}))},"C");
LxS.idomCompat=!0;var k0u=_.T("web_enable_sink_animated_rolling_character_and_number")?LxS:aEe,fPO=_.T("web_enable_sink_animated_rolling_character_and_number")?LxS:W$u(aEe),Bg9=_.A(function(){for(var N=[],b=1;b<30;b++)N.push(_.c("div",null,b%10));return _.c(_.nM,null,_.c("div",null,"\u00a0"),N,_.c("div",null,"\u00a0"))},"D"),lPb=_.A(function(N){var b=N.character;
return _.c(_.nM,null,_.c("div",null,"\u00a0"),_.c(_.W,{cond:function(){return!(b==null?0:b())||_.Oe(b==null?void 0:b())},
then:function(){return _.c("div",null,"\u00a0")},
else:function(){return _.c("div",null,b)}}),_.c("div",null,"\u00a0"))},"E");TBY.componentType=zz;var uS9=_.A(function(N){var b=void 0,S=void 0,P=function(){var K;return((K=N.fontSizeMultiplier)==null?0:K.call(N))?N.heightPx()*N.fontSizeMultiplier():N.heightPx()},H=_.UB(function(){if(!N.numberText())return[];
var K,C,G=((K=N.forceRollUp)==null?void 0:K.call(N))||!S||!((C=N.numberValue)==null?0:C.call(N))||S<N.numberValue(),a,R=N.numberText();K=P();C=!((a=N.shouldAnimate)==null||!a.call(N));a=[];var n=0,d=0,m=(b?b.replace(/\D/g,"").length:0)-(R?R.replace(/\D/g,"").length:0),k=b?b.split(/(\d)/).filter(Boolean):[];for(R=R.split(/(\d)/).filter(Boolean);m<0;){var M=R[d];a.push({character:M,rollUp:G,marginMultiplier:K,shouldAnimate:C});d++;Vh(M)&&m++}for(;n<m;)M=k[n],a.push({previousCharacter:M,rollUp:G,marginMultiplier:K,
shouldAnimate:C}),n++,Vh(M)||m++;for(;d<R.length;)m=R[d],M=k[n],Vh(m)===Vh(M)?(d++,n++):Vh(m)?(n++,m=void 0):Vh(M)&&(d++,M=void 0),a.push({character:m,previousCharacter:M,rollUp:G,marginMultiplier:K,shouldAnimate:C});b=N.numberText();var l;S=(l=N.numberValue)==null?void 0:l.call(N);return a},void 0,"kWiBv");
return _.c("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return N.numberText()?["height: "+P()+"px;","line-height: "+N.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.c(_.zj,{each:H,keyBy:"INDEX"},function(K){return _.c(fPO,{character:function(){return K().character},
previousCharacter:function(){return K().previousCharacter},
marginMultiplier:function(){return K().marginMultiplier},
rollUp:function(){return K().rollUp},
shouldAnimate:function(){return K().shouldAnimate}})}))},"F");
uS9.idomCompat=!0;_.QGk=_.T("web_enable_sink_animated_rolling_character_and_number")?uS9:W$u(TBY);var xoc=function(N,b){this.fillAnimation=new Animation(BBa(N),document.timeline);this.strokeAnimation=new Animation(lEo(b),document.timeline)};
xoc.prototype.play=function(){var N,b;(b=(N=this.fillAnimation).play)==null||b.call(N);var S,P;(P=(S=this.strokeAnimation).play)==null||P.call(S)};
xoc.prototype.cancel=function(){var N,b;(b=(N=this.fillAnimation).cancel)==null||b.call(N);var S,P;(P=(S=this.strokeAnimation).cancel)==null||P.call(S)};_.of=_.A(function(N){var b=N.model;var S=N.pointerDownEvent;var P=N.pointerUpEvent;var H=N.pointerLeaveEvent;var K=N.hovered;N=_.Ct("yt-touch-feedback-shape");var C=_.Ct("div"),G=_.Ct("div"),a=_.O(_.qI(function(){return(P==null?0:P())||(H==null?0:H())?!1:!(S==null||!S())||!1})),R=a.next().value,n=a.next().value,d=void 0,m=function(){!d&&G.value&&C.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(d=new xoc(G.value,C.value));
var Z;(Z=d)==null||Z.play()},k=function(){var Z;
(Z=d)==null||Z.cancel()},M=function(){var Z;
(Z=d)==null||Z.cancel()};
_.gA(function(){(P==null?0:P())&&m()},"bg756c");
_.gA(function(){(S==null?0:S())&&k()},"QAes8c");
_.gA(function(){(H==null?0:H())&&M()},"YaFbrc");
a=_.Ob(function(){m();n(!1)});
var l=_.Ob(function(){k();n(!0)}),u=_.Ob(function(){M();
n(!1)});
_.ej(function(){if(d){var Z;(Z=d)==null||Z.cancel();d=void 0}});
var J={};R=_.KU("yt-spec-touch-feedback-shape",function(){return L$O(b().color)},function(){return fE9(b().thumbnailSize,!!b().isExtended)},(J["yt-spec-touch-feedback-shape--focused"]=function(){return!!b().focused&&!b().disabled},J["yt-spec-touch-feedback-shape--circular"]=function(){return!!b().circular},J["yt-spec-touch-feedback-shape--down"]=R,J["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!b().triggerEvents},J["yt-spec-touch-feedback-shape--hovered"]=function(){return K==
null?void 0:K()},J));
return _.c("yt-touch-feedback-shape",{el:N,class:R,style:_.r5({"margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}),
"on:mousedown":l,"on:mouseup":a,"on:pointerleave":u,"on:touchstart":l,"on:touchend":a,"aria-hidden":!0},_.c(_.W,{cond:function(){return!!b().hoverEffect},
then:function(){return _.c("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.r5({"border-radius":function(){return b().borderRadius},
background:function(){var Z;if(Z=b().hoverEffect){for(var D=[],Y=_.O((Z==null?void 0:Z.lightingTechniques)||[]),V=Y.next();!V.done;V=Y.next())switch(V.value){case 2:var g=V=void 0,e=void 0,se=void 0;D.push("linear-gradient(180deg, "+((V=Z)==null?void 0:(g=V.palette)==null?void 0:g.keyLight)+", "+((e=Z)==null?void 0:(se=e.palette)==null?void 0:se.background)+")")}var Ca,ML;D.push((Ca=b().hoverEffect)==null?void 0:(ML=Ca.palette)==null?void 0:ML.background);Z=D.join(", ")}else Z=void 0;return Z}})})}}),
_.c("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.r5({"border-radius":function(){return b().borderRadius},
"border-color":function(){var Z,D;return(Z=b().touchEffect)==null?void 0:(D=Z.palette)==null?void 0:D.background}}),
el:C}),_.c("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.r5({"border-radius":function(){return b().borderRadius},
"background-color":function(){var Z,D;return(Z=b().touchEffect)==null?void 0:(D=Z.palette)==null?void 0:D.background}}),
el:G}))},"J");
_.of.idomCompat=!0;var okZ={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};var JD=_.dI();JD=JD.toLowerCase();if(_.Go(JD,"android")){var ieS=JD.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);ieS&&parseFloat(ieS[1])<100||JD.match("("+Object.keys(okZ).join("|")+")")};var JLd=_.A(function(N){return _.c(_.W,{cond:N.aTagConfig,then:function(b){return _.c(_.xg,{aTagConfig:b,disabled:N.disabled,className:N.className,style:N.style,title:N.title,ariaLabel:N.ariaLabel,ariaCurrent:function(){var S,P;return((S=N.toggleable)==null?void 0:S.call(N))&&((P=N.toggled)==null?void 0:P.call(N))},
ref:N.ref},N.children)},
else:function(){return _.c("button",{el:_.VN(N.ref),"on:click":_.Ob(function(b){var S;return(S=N.onClick)==null?void 0:S.call(N,b)}),
class:N.className,title:N.title,style:N.style,disabled:N.disabled,"aria-pressed":function(){var b,S;return((b=N.toggleable)==null?0:b.call(N))?!((S=N.toggled)==null||!S.call(N)):void 0},
"aria-label":N.ariaLabel,"aria-disabled":N.visiblyDisabled,"aria-hidden":N.ariaHidden,tabindex:N.tabIndex},N.children)}})},"K"),Zed=_.A(function(N){var b=N.data;
var S=N.hasIconLeading;var P=N.hasIconLeadingTrailing;var H=N.hasIconTrailing;var K=N.iconButton;var C=N.iconClassName;var G=N.secondaryIconClassName;var a=N.icon;var R=N.secondaryIcon;var n=N.textContentClassName;return _.c(UQ,{className:"",style:"display: inherit; justify-content: center"},_.c(_.W,{debugInstance:"V4z1Uc",cond:function(){return a&&(S()||P()||(K==null?void 0:K()))},
then:function(){return _.c(UQ,null,_.c("div",{class:C,"aria-hidden":"true"},a==null?void 0:a()))}}),_.c(_.W,{debugInstance:"ok3btb",
cond:function(){return(b().buttonText||b().animatedTextProps||b().formattedButtonText)&&!(K==null?0:K())},
then:function(){return _.c(UQ,null,_.c(UoS,{className:n,iconPosition:function(){return b().iconPosition},
text:function(){return b().buttonText},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps}}))}}),_.c(_.W,{debugInstance:"DO5Rz",
cond:H,then:function(){return _.c(UQ,null,_.c("div",{class:C},a==null?void 0:a()))}}),_.c(_.W,{debugInstance:"bnojSc",
cond:P,then:function(){return _.c(UQ,null,_.c("div",{class:G},R==null?void 0:R()))}}),_.c(_.W,{debugInstance:"HN3kad",
cond:function(){return!b().disabled&&!0},
then:function(){return _.c(_.of,{model:function(){var d=b();return{color:d.style==="overlay-dark"?4:d.style==="overlay"?d.type==="filled"?4:3:d.type==="filled"||d.style==="call-to-action-inverse"||d.style==="mono-inverse"?2:1}}})}}))},"L"),UoS=_.A(function(N){var b=function(){var S,P;
return((S=N.iconPosition)==null?void 0:S.call(N))==="icon-with-label"||((P=N.oneOffCustomTextWrap)==null?void 0:P.call(N))};
return _.c("div",{class:N.className,"aria-hidden":function(){var S,P,H;return((S=N.ariaHidden)==null?void 0:S.call(N))&&(!((P=N.animatedTextProps)==null||!P.call(N))||!((H=N.formattedButtonText)==null||!H.call(N)))}},_.c(_.Al,null,_.c(_.ZH,{when:function(){var S;
return(S=N.animatedTextProps)==null?void 0:S.call(N)}},function(){return _.c(_.QGk,{numberText:function(){return N.animatedTextProps().numberText},
numberValue:function(){return N.animatedTextProps().numberValue},
heightPx:function(){return N.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return N.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return N.animatedTextProps().shouldAnimate},
forceRollUp:function(){return N.animatedTextProps().forceRollUp}})}),_.c(_.ZH,{when:function(){var S;
return(S=N.formattedButtonText)==null?void 0:S.call(N)}},function(){return _.c(_.mD,{text:function(){return Object.assign({},N.formattedButtonText(),{lineBreakMode:b()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":N.formattedButtonText().lineBreakMode,
alignment:b()?"TEXT_ALIGNMENT_CENTER":N.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!b()}})}),_.c(_.ZH,{when:function(){var S,P;
return((S=N.iconPosition)==null?void 0:S.call(N))==="icon-with-label"&&((P=N.text)==null?void 0:P.call(N))}},function(){return _.c(_.mD,{text:function(){return{content:N.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.c(_.j_,null,function(){return N.text})))},"M"),jGk=_.A(function(N){return _.c(_.W,{debugInstance:"kM7Sgc",
cond:N.hasLabel,then:function(){var b;return _.c("label",{class:N.className},N.children,(b=N.textContent)==null?void 0:b.call(N))},
else:function(){return N.children}})},"N"),UQ=_.A(function(N){return N.children},"O");var z19=_.A(function(N){function b(){K(void 0);G(void 0);R(void 0)}
var S=_.VN(),P=_.O(_.QF(void 0,void 0,"Ug77pc")),H=P.next().value,K=P.next().value;P=_.O(_.QF(void 0,void 0,"XGf7Zb"));var C=P.next().value,G=P.next().value,a=_.O(_.QF(void 0,void 0,"w55oqd"));P=a.next().value;var R=a.next().value;a=_.O(_.QF(0,void 0,"rBgpzc"));var n=a.next().value,d=a.next().value;a=_.Ob(function(){switch(n()){case 1:d(2);break;case 3:var k,M;(M=(k=S.value).hidePopover)==null||M.call(k);d(0);b()}});
_.gA(function(){if(N.show()){var k;K((k=N.children)==null?void 0:k.call(N));var M;G((M=N.location)==null?void 0:M.call(N));var l;R((l=N.classNames)==null?void 0:l.call(N));switch(n()){case 0:var u,J;(J=(u=S.value).showPopover)==null||J.call(u);d(1);break;case 3:d(1);var Z,D;(D=(Z=S.value).hidePopover)==null||D.call(Z);var Y,V;(V=(Y=S.value).showPopover)==null||V.call(Y)}}else switch(n()){case 2:d(3);break;case 1:var g,e;(e=(g=S.value).hidePopover)==null||e.call(g);b();d(0)}},"Z8V4Qb");
_.YU(function(){});
var m={};return _.c("yt-popover",{popover:"manual",el:S,style:_.r5({left:function(){var k;return(k=C())==null?void 0:k.left},
top:function(){var k;return(k=C())==null?void 0:k.top},
bottom:function(){var k;return(k=C())==null?void 0:k.bottom},
right:function(){var k;return(k=C())==null?void 0:k.right}}),
class:_.KU("ytPopoverComponentHost",P,(m.ytPopoverComponentHostClosing=function(){return n()===3},m.ytPopoverComponentHostSeeThrough=function(){var k;
return((k=N.seeThrough)==null?void 0:k.call(N))===!0},m)),
"on:animationend":a},H)},"Q");var ALb={left:"0px",right:"auto",top:"0px",bottom:"auto"},Xx9=function(){var N=this;this.registerTooltipElement=function(S){var P;N.tooltipElement=(P=S.querySelector("yt-popover"))!=null?P:void 0};
var b=_.O(_.QF(void 0,void 0,"EIh5sc"));this.state=b.next().value;this.setState=b.next().value;b=_.O(_.QF(void 0,void 0,"PC1M0b"));this.schedulerJobID=b.next().value;this.setSchedulerJobID=b.next().value},jPU=function(N,b){var S=R7,P=_.Dj.addJob(function(){var H=Ek9(S,N,b);
S.currentConfig=b;S.setState({text:b.text,location:_.T("web_tooltip_location_fix")?void 0:H,anchor:N,offset:b.offset,style:b.style})},4,b.delay);
S.setSchedulerJobID(P)},zkp=function(){var N=R7,b=N.schedulerJobID();
b&&(_.Dj.cancelJob(b),N.setSchedulerJobID(void 0));N.setState(void 0);N.currentConfig=void 0};
Xx9.prototype.notify=function(N,b){var S;((S=this.state())==null?void 0:S.anchor)===N&&(S=Ek9(this,N,b),this.currentConfig=b,this.setState({text:b.text,location:_.T("web_tooltip_location_fix")?void 0:S,anchor:N,offset:b.offset,style:b.style}))};
var Ek9=function(N,b,S){var P=b.getBoundingClientRect();b=window.innerWidth;var H=window.innerHeight,K=S.location,C=S.offset;S=S.text;if(N=N.tooltipElement){var G=getComputedStyle(N);N=G.font;var a=a7(G.lineHeight),R=a7(G.paddingLeft),n=a7(G.paddingRight),d=a7(G.paddingTop);G=a7(G.paddingBottom);var m=document.createElement("canvas").getContext("2d");m.font=N;S={width:m.measureText(S).width+R+n,height:a+d+G}}else S=void 0;N=S;if(!N)return ALb;S=N.width;N=N.height;R=C+N;d=C+S;a=P.top>=R;R=H-P.bottom>=
R;n=P.left>=d;d=b-P.right>=d;G=K;switch(K){case "top":!a&&R&&(G="bottom");break;case "bottom":!R&&a&&(G="top");break;case "left":!n&&d&&(G="right");break;case "right":!d&&n&&(G="left")}switch(G){case "top":K=P.left+P.width/2-S/2;P=P.top-N-C;break;case "bottom":K=P.left+P.width/2-S/2;P=P.bottom+C;break;case "left":K=P.left-S-C;P=P.top+P.height/2-N/2;break;case "right":K=P.right+C;P=P.top+P.height/2-N/2;break;default:K=P.left+P.width/2-S/2,P=P.bottom+C}C=Object.assign({},ALb);K+S>b?(C.right="0px",C.left=
"auto"):(C.left=Math.round(Math.max(0,K)+window.scrollX)+"px",C.right="auto");P+N>H?(C.bottom="0px",C.top="auto"):(C.top=Math.round(Math.max(0,P)+window.scrollY)+"px",C.bottom="auto");return C};var R7;R7=new Xx9;_.pxS=_.A(function(){var N=_.UB(function(){var H;return(H=R7.state())==null?void 0:H.anchor},void 0,"tiGUn"),b=_.UB(function(){var H;
return(H=R7.state())==null?void 0:H.text},void 0,"TA2GQe"),S=_.UB(function(){var H;
return(H=R7.state())==null?void 0:H.style},void 0,"ucvFsf"),P=_.T("web_tooltip_location_fix")?_.UB(function(){var H=N();
var K=R7.currentConfig;if(H&&K)return Ek9(R7,H,K)},void 0,"EpDz6"):_.UB(function(){var H;
return(H=R7.state())==null?void 0:H.location},void 0,"aRJtfd");
return _.c("yt-tooltip",{class:"ytTooltipContainerHost",el:_.VN(R7.registerTooltipElement),"aria-hidden":"true"},_.c(z19,{classNames:function(){switch(S()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:P,show:function(){return!!b()&&!!P()},
seeThrough:!0},b))},"R");var gYs=WW("stamper-context");_.ZR=_.A(function(N){var b=N.data;var S=N.icon;var P=N.iconName;var H=N.animateIcon;var K=N.secondaryIcon;var C=N.secondaryIconName;var G=N.focusedOverride;var a=N.clientOnlyWizTooltipsEnabled;Xa9();var R=u9p(b),n=R.size,d=R.style;N=R.disabled;var m=R.onTap,k=R.alignByText,M=R.aTagConfig,l=R.customColors,u=R.segmentedPosition,J=R.toggled,Z=R.toggleable,D=R.accessibilityLabel,Y=R.onToggle,V=R.iconPosition,g=R.oneOffCustomTextWrap,e=R.disableTextEllipsis,se=R.disableBackdropFilter,Ca=R.tooltipText,
ML=R.ariaHidden,na=R.tabIndex,To=R.buttonText,jp=R.formattedButtonText,Xf=R.animatedTextProps,YO=R.onClickRateLimitMs,Wk=iJU(b,S,K,P,C,G,H),S9=Wk.type;S=Wk.shouldFocus;P=Wk.hasIconLeading;H=Wk.hasIconTrailing;var Vu=Wk.hasIconLeadingTrailing,n9=Wk.hasIconOnly;K=Wk.hasIconOnly40;var mc=Wk.hasIconWithLabel;C=Wk.iconButton;var f9=Wk.visiblyDisabled;G=Wk.overrideSmallSizeIcon;var mJ=Wk.iconToRender;Wk=Wk.secondaryIconToRender;var Bk=_.O(AEL(Ca,R.tooltipShape)).next().value,RU=function(Ud){m==null||m(Ud);
Z()&&(Y==null||Y(Ud))},Ab=_.UB(function(){return YO==null?void 0:YO()},void 0,"siKywb"),kZ=_.UB(function(){return Ab()?tWd(RU,Ab()):RU},void 0,"wDTcN");
R={};var Ib={};return _.c(jGk,{className:_.KU("yt-spec-button-shape-with-label",(R["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()==="overlay-dark"},R)),
hasLabel:mc,textContent:function(){return _.c(UoS,{text:To,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:g,iconPosition:V,formattedButtonText:jp,animatedTextProps:Xf})}},_.c(JLd,{aTagConfig:M,
className:_.KU("yt-spec-button-shape-next",function(){return JEo(S9())},function(){return f9()?void 0:Uaf(d())},function(){return ZJL(n())},(Ib["yt-spec-button-shape-next--disabled"]=f9,Ib["yt-spec-button-shape-next--focused"]=S,Ib["yt-spec-button-shape-next--icon-trailing"]=H,Ib["yt-spec-button-shape-next--icon-leading"]=P,Ib["yt-spec-button-shape-next--icon-leading-trailing"]=Vu,Ib["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Vu()&&!(To()||jp())},Ib["yt-spec-button-shape-next--icon-button"]=
function(){return n9()||mc()},Ib["yt-spec-button-shape-next--icon-only-default"]=K,Ib["yt-spec-button-shape-next--align-by-text"]=k,Ib["yt-spec-button-shape-next--segmented-start"]=function(){return u()==="start"},Ib["yt-spec-button-shape-next--segmented-end"]=function(){return u()==="end"},Ib["yt-spec-button-shape-next--override-small-size-icon"]=G,Ib["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=g,Ib["yt-spec-button-shape-next--disable-text-ellipsis"]=e,Ib["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!se()&&!_.T("web_disable_backdrop_filter")},Ib)),
style:function(){var Ud=l();if(Ud){var ob=Ud.color;var PM=Ud.backgroundColor;Ud=Ud.borderColor;var Vz="";ob&&(Vz+="color: "+ob+";");PM&&(Vz+="background-color: "+PM+";");Ud&&(Vz+="border-color: "+Ud+";");ob={style:Vz}}else ob={};return ob.style},
onClick:function(Ud){kZ()(Ud)},
disabled:N,ariaLabel:D,toggleable:Z,toggled:J,title:function(){return(a==null?0:a())||!Ca()?"":Ca()},
visiblyDisabled:f9,ariaHidden:ML,tabIndex:na,ref:function(Ud){(a==null?0:a())&&Bk(Ud)}},_.c(Zed,{data:b,
hasIconLeading:P,hasIconLeadingTrailing:Vu,hasIconTrailing:H,iconButton:C,icon:mJ,textContentClassName:"yt-spec-button-shape-next__button-text-content",iconClassName:"yt-spec-button-shape-next__icon",secondaryIconClassName:"yt-spec-button-shape-next__secondary-icon",secondaryIcon:Wk})))},"T");
_.ZR.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.j$=_.A(function(N){var b=N.data;var S=N.className;var P=N.style;var H=N.useOutlinedIcon;var K=N.buttonOverrides;var C=N.animatedTextProps;var G=N.onClick;var a=N.target;var R=_.Ct("button-view-model",function(Y){Y.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var V=b().targetId;V&&_.Dy(_.VP(),V,Y);return function(){Iw(_.VP(),Y)}}),n=function(){return b().iconName},d=_.nU(function(Y){a:{var V=b().entityKey,g=b().buttonEntitySelectorType;
if(g&&V)switch(g){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":Y=(Y=_.vX(Y,V))?{isHidden:Y.adsState==="ADS_STATE_NONE"||Y.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:Y={isHidden:!1};break a}Y=void 0}return Y}),m,k=(m=_.aN().resolve(_.cq(_.T8)))==null?void 0:m(),M=function(){var Y=b();
var V=K==null?void 0:K(),g=C==null?void 0:C(),e=a==null?void 0:a();if(Y){var se=gLs(Y.type);var Ca=!!Y.title||!!Y.titleFormatted;var ML=!(!Y.iconName&&!Y.iconImage);Ca=ML&&!Ca?"icon-only":ML?Y.iconTrailing||Y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Ca==="icon-only-40"&&(se="text");var na;ML=(na=V==null?void 0:V.state)!=null?na:eka(Y.state);var To,jp=(To=V==null?void 0:V.disabled)!=null?To:Y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.T("web_button_vm_refactor_disabled")){var Xf;jp=(Xf=V==null?void 0:V.disabled)!=null?Xf:ML==="disabled"}g=g&&g.numberText&&!isNaN(Number(g.numberValue))?g:void 0;To=Object;Xf=To.assign;na=Y.title;var YO=Y.titleFormatted,Wk=Y.accessibilityText,S9=VQs(Y.style),Vu=$aI(Y.buttonSize);e=DaI(Y,R,jp,G,e);jp=jp&&!Y.onDisabledTap;var n9=yEO(Y,R),mc=Y.customFontColor,f9=Y.customBackgroundColor;var mJ=Y.customBorderColor;var Bk=Y.customDarkThemeFontColor,RU=Y.customDarkThemeBackgroundColor,Ab=Y.customDarkThemeBorderColor;
mc=k&&Bk?Bk:mc;f9=k&&RU?RU:f9;mJ=k&&Ab?Ab:mJ;mJ={color:mc?_.o3(mc):void 0,backgroundColor:f9?_.o3(f9):void 0,borderColor:mJ?_.o3(mJ):void 0};if(Ab=_.t(Y.tooltipData,acb)){var kZ;f9={text:(kZ=Ab.tooltipText)!=null?kZ:"",location:paE(Ab.placement),style:Ab.style}}else f9=void 0;Y=Xf.call(To,{},{buttonText:na,formattedButtonText:YO,animatedTextProps:g,accessibilityLabel:Wk,style:S9,type:se,state:ML,size:Vu,iconPosition:Ca,onTap:e,disabled:jp,aTagConfig:n9,customColors:mJ,tooltipText:Y.tooltip,tooltipShape:f9},
V)}else Y={style:"mono",type:"text",state:"active",size:"M"};Y.focused=J();return Y},l=function(){return xab(M(),!!b().iconName)};
N=_.O(_.QF(!1,void 0,"yZ8hab"));m=N.next().value;var u=N.next().value,J=m;N=_.Ob(function(){var Y=_.aN().resolve(_.cq(_.QJ));Y&&u(Y.isKeyBoardInUse());return!1});
m=_.Ob(function(){u(!1);return!1});
_.gA(function(){var Y,V=_.t(b==null?void 0:(Y=b())==null?void 0:Y.onVisible,_.JM);V&&_.ZN(V,{disableClickTracking:!0})},"G9MlKd");
var Z=function(){var Y;return(b==null?0:(Y=b())==null?0:Y.iconImage)?{sources:[b().iconImage]}:void 0},D=_.T("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.c("button-view-model",{el:R,class:_.KU("ytSpecButtonViewModelHost",S),"on:focusin":N,"on:focusout":m},_.c(_.W,{cond:function(){var Y,V;return!((V=b().entityKey&&b().buttonEntitySelectorType&&((Y=d())==null?void 0:Y.isHidden))!=null&&V)},
then:function(){return _.c(_.W,{cond:Z,then:function(Y){return _.c(_.ZR,{data:M,icon:function(){return _.c(_.gG,{data:Y,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:D})},
else:function(){return _.c(_.ZR,{data:M,icon:function(){return _.c(_.cX,{icon:n,active:function(){return(H==null?0:H())?!1:M().toggled},
animateIcon:function(){var Y;return!!(P==null?0:(Y=P())==null?0:Y.animateIcon)},
size:l})},
clientOnlyWizTooltipsEnabled:D})}})}}))},"V");
_.j$.idomCompat={callbacks:{onClick:!0}};_.qu(_.A(function(N){return _.c("yt-button-view-model",{id:N.id,class:_.KU(N.scopingClassName,N.classes),icon:function(){var b;return(b=N.icon)==null?void 0:b.call(N)},
"dialog-dismiss":function(){var b;return((b=N.dialogDismiss)==null?0:b.call(N))?"":void 0}},_.c(_.j$,{data:function(){var b;
return(b=N.data)==null?void 0:b.call(N)},
className:function(){var b;return(b=N.className)==null?void 0:b.call(N)},
style:function(){var b;return(b=N.style)==null?void 0:b.call(N)},
useOutlinedIcon:function(){var b;return(b=N.useOutlinedIcon)==null?void 0:b.call(N)},
buttonOverrides:function(){var b;return(b=N.buttonOverrides)==null?void 0:b.call(N)},
animatedTextProps:function(){var b;return(b=N.animatedTextProps)==null?void 0:b.call(N)},
onClick:function(b){var S;return(S=N.onClick)==null?void 0:S.call(N,b)}}))},"W"),"yt-button-view-model",{props:{data:_.kg,
className:_.kg,style:_.kg,useOutlinedIcon:_.kg,buttonOverrides:_.kg,animatedTextProps:_.kg,onClick:_.er,scopingClassName:_.kg,id:_.kg,icon:_.kg,dialogDismiss:_.kg,classes:_.kg,target:_.er}});_.qu(_.A(function(N){var b=N.data;var S=N.id;var P=N.className;var H=N.iconName;var K=N.animateIcon;var C=N.secondaryIconName;N=_.O(_.QF(!1,void 0,"TtJl8"));var G=N.next().value,a=N.next().value,R=function(){var d=_.aN().resolve(_.cq(_.QJ));d&&a(d.isKeyBoardInUse())},n=function(){a(!1)};
N=_.Ct("yt-button-shape",function(d){if(_.aN().resolve(_.cq(_.QJ)))return d.addEventListener("focusin",R),d.addEventListener("focusout",n),function(){d.removeEventListener("focusin",R);d.removeEventListener("focusout",n)}});
return _.c("yt-button-shape",{el:N,id:S,class:P},_.c(_.W,{cond:b,then:function(){return _.c(_.ZR,{data:b,iconName:H,secondaryIconName:C,focusedOverride:G,animateIcon:K})}}))},"X"),"yt-button-shape",{props:{data:_.kg,
id:_.kg,className:_.kg,iconName:_.kg,animateIcon:_.kg,secondaryIconName:_.kg,clientOnlyWizTooltipsEnabled:_.kg,disableUpgrade:_.kg},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var zl=function(){var N=_.z.apply(this,arguments)||this;N.isGoalActive=!0;return N};
_.F(zl,_.z);zl.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
zl.prototype.progressBarChanged=function(){var N=_.H4(this.hostElement).querySelector("#progress-bar-progress"),b,S,P,H=(P=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((S=this.creatorGoalState)==null?void 0:S.totalGoalCount)*100)!=null?P:0,K;N.style.width=((K=Math.min(H,100))!=null?K:0)+"%"};
zl.prototype.goalStateChanged=function(){var N;this.isGoalActive=((N=this.creatorGoalState)==null?void 0:N.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;N={"--yt-progress-bar-color":I49((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};_.rq(this.hostElement,N)};
zl.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.d0.Object.defineProperties(zl.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var N;return this.isGoalActive&&!((N=this.creatorGoalState)==null||!N.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.creatorGoalState)==null?0:N.endTimestampMs){var b;N=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(N)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.creatorGoalState)==null?0:N.themedTargetImage){var b;N=_.t((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,bWk);return this.isAppDarkTheme()?N==null?void 0:N.imageDark:N==null?void 0:N.imageLight}}}});
_.d0.Object.defineProperties(zl,{template:{configurable:!0,enumerable:!0,get:function(){return nk9()}}});
zl.prototype.goalStateChanged=zl.prototype.goalStateChanged;zl.prototype.progressBarChanged=zl.prototype.progressBarChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],zl.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);
_.p([_.U({selectorArgs:["data.creatorGoalEntityKey"],selector:function(N,b){return _.GL(N.entities,"creatorGoalEntity",b)}}),
_.y("design:type",Object)],zl.prototype,"creatorGoalState",void 0);_.p([_.U(),_.y("design:type",Object)],zl.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],zl.prototype,"isGoalActive",void 0);_.p([_.f("creatorGoalState","isGoalActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zl.prototype,"shouldShowCountdown",null);_.p([_.f("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],zl.prototype,"endTimestamp",null);
_.p([_.f("creatorGoalState"),_.y("design:type",Object),_.y("design:paramtypes",[])],zl.prototype,"targetIconThemedImage",null);_.p([_.W4("creatorGoalState.currentGoalCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zl.prototype,"progressBarChanged",null);_.p([_.W4("creatorGoalState.creatorGoalState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zl.prototype,"goalStateChanged",null);
_.p([_.J_({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],zl);_.X(zl,"yt-creator-goal-progress-flow-view-model",function(){return nk9()},{mode:0});var Y8Z;var yLl;var AD=function(){return _.z.apply(this,arguments)||this};
_.F(AD,_.z);AD.prototype.attached=function(){var N,b,S;if(this==null?0:(N=this.data)==null?0:(b=N.pdgPurchasedBumperLoggingDirectives)==null?0:(S=b.loggingDirectives)==null?0:S.trackingParams){var P,H,K;wa9(this==null?void 0:(P=this.data)==null?void 0:(H=P.pdgPurchasedBumperLoggingDirectives)==null?void 0:(K=H.loggingDirectives)==null?void 0:K.trackingParams)}};
AD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],AD.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],AD.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],AD);
_.X(AD,"yt-live-chat-item-bumper-view-model",function(){if(yLl===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Y8Z===void 0&&(Y8Z=document.createElement("template"));var P=Y8Z;S.call(b,P.content.cloneNode(!0),N.content.firstChild);yLl=N}N=yLl;return N},{mode:0});var IPZ;var DoZ;_.I7=function(N,b){this.data=N;this.actions=b;this.data=N;this.actions=b};
_.zR=function(){};_.Xo={};_.Xo.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(N,b){Nnb(this.hostElement,N,b)},
getNavigationEndpointPopupAction:function(N){return bls(N,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(N,b){StE(this.hostElement,N,b,this.openPopupConfig)}};var cts=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.EQ={};
_.EQ.YtEndpointBehavior=[_.Xo.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Vg("openPopupConfig");(this.useClickHandler=_.g8("useClickHandler",!1))?this.hostElement.addEventListener("click",c4(this,this.onEndpointClick_)):(el(this.hostElement,"tap",c4(this,this.onEndpointTap_)),el(this.hostElement,"touchend",c4(this,this.onEndpointTouchEnd_)));el(this.hostElement,"touchstart",c4(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
c4(this,this.onEndpointTapStart_))},
onEndpointClick_:function(N){sIE(this.hostElement,N,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(N){var b=this.hostElement,S=this.openPopupConfig,P=this.disableCommandHandlerOverride;P=P===void 0?!1:P;var H=Pp_(N);if(H){H.href&&ZK(H.href);var K=N.detail;var C=K.sourceEvent;K=K.preventer;C=C.button!==void 0?C.button===0&&!d5(C):K?!d5(K):!0;H.data&&C&&HlU(b,H,N,S,P)}},
onEndpointTouchEnd_:function(N){d5(N)||Pp_(N)&&N.preventDefault()},
onEndpointTapStart_:function(N){GKa(N)}}];_.pG={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(N){for(var b=_.sX.getInstance(),S=_.O(Object.keys(N)),P=S.next();!P.done;P=S.next()){var H=P.value;P=N[H];if(this&&this[P]){var K=b.actionRoutingMap.get(H);K||(K=new Map,b.actionRoutingMap.set(H,K));b.registerActionHandler(this,H,this[P].bind(this),K)}else H=Error("md"),H.params=P,_.e_(H)}},
unregisterActionMap:function(N){_.vz(_.sX.getInstance(),N,this)}}]};var TR=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_"+(_.T("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.T("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.T("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.T("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.T("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.T("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var k9;var t8=new Map;var mQ9=window.matchMedia("(forced-colors: active)").matches;var V4S;var gkO;var e1b=new _.nO("LOTTIE_LOADER_TOKEN");_.Yg=_.A(function(N){var b=N.data;var S=N.className;var P=N.animationName;var H=N.animationRef;var K=N.elRefForInterop;var C=_.GQ("lottie-component"),G;_.ej(function(){var R;return void((R=G)==null?void 0:R.destroy())});
var a;_.gA(function(){var R=_.he(P);if(R!==a){a=R;var n=Object.assign({},{animationName:R,animationRef:_.he(H)},_.he(b));try{_.aN().resolve(e1b)().then(function(k){var M;(M=G)==null||M.destroy();var l,u;M=(u=K==null?void 0:(l=K())==null?void 0:l.value)!=null?u:C.value;l=n.animationRef;u=n.listeners;k=k.loadAnimation(Object.assign({},{container:M},n.animationConfig));l&&(l.lottieEl=k);if(u)for(M=_.O(Object.entries(u)),l=M.next();!l.done;l=M.next())u=_.O(l.value),l=u.next().value,(u=u.next().value)&&
k.addEventListener(l,u);G=k})}catch(k){R=k;
var d="LottieComponent error.";R.message&&(d+=" Original description: "+R.message);_.hd(R,d);_.$h(R);var m;((m=n.listeners)==null?0:m.error)&&n.listeners.error(R)}}},"nrJISd");
return _.c(Tpo,{cond:function(){return!(K==null?0:K())},
then:function(){return _.c("lottie-component",{class:_.KU("ytLottieComponentHost",S),el:C})}})},"Z");_.qu(_.A(function(N){return _.c("ytd-lottie-player",{id:N.id,hidden:N.hidden,class:N.className,"aria-label":N.ariaLabel,style:"display: block;"},_.c(_.Yg,{data:N.data,animationName:function(){var b;return((b=N.data().animationConfig)==null?void 0:b.name)||""},
animationRef:function(){return N.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.kg,
id:_.kg,hidden:_.kg,className:_.kg,ariaLabel:_.kg}});var yJ=function(){var N=_.z.apply(this,arguments)||this;N.animationRef={};N.delhiIconsEnabled=_.T("enable_web_delhi_icons");return N};
_.F(yJ,_.z);_.v=yJ.prototype;
_.v.handlePropertyChange=function(){var N=this.animatedIcon,b=this.active,S=this.isDarkTheme;if(N){var P=this.previousActive!==b;this.previousActive=b;this.animationRef.lottieEl?P?this.toggleAnimation(b,N.totalFrames):_.T("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(b,N.totalFrames):b?this.initializeAnimationAsToggled(N.lottiePlayerProps,N.totalFrames):this.initializeAnimationAsUntoggled(N.lottiePlayerProps);N.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
N.type;this.lottiePlayerProps=this.computeLottiePlayerProps(N,S)}};
_.v.computeLottiePlayerProps=function(N,b){var S=this.deepCloneLottiePlayerProps(N);b?(b=N.nameDarkTheme,N=N.pathDarkTheme):(b=N.name,N=N.path);S.animationConfig.name=b;(b=t8.get(N))?S.animationConfig.animationData=b:S.animationConfig.path=N;return S};
_.v.initializeAnimationAsToggled=function(N,b){N.animationConfig.initialSegment=[b-1,b]};
_.v.initializeAnimationAsUntoggled=function(N){N.animationConfig.initialSegment=void 0};
_.v.toggleAnimation=function(N,b){if(N){var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,b],!0)}else{var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,1],!0)}};
_.v.setAnimationState=function(N,b){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(N?b-1:0,!0)};
_.v.deepCloneLottiePlayerProps=function(N){var b=Object.assign({},N.lottiePlayerProps.animationConfig);N=Object.assign({},N.lottiePlayerProps);N.animationConfig=b;return N};
yJ.prototype.handlePropertyChange=yJ.prototype.handlePropertyChange;_.p([_.U(),_.y("design:type",Object)],yJ.prototype,"animatedIcon",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],yJ.prototype,"active",void 0);_.p([_.U(),_.y("design:type",Boolean)],yJ.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],yJ.prototype,"animatedIconType",void 0);_.p([_.U(),_.y("design:type",Boolean)],yJ.prototype,"previousActive",void 0);
_.p([_.U(),_.y("design:type",Object)],yJ.prototype,"lottiePlayerProps",void 0);_.p([_.U(),_.y("design:type",Object)],yJ.prototype,"animationRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yJ.prototype,"delhiIconsEnabled",void 0);_.p([_.W4("animatedIcon","active","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yJ.prototype,"handlePropertyChange",null);_.p([_.J_({is:"yt-animated-icon",disableElementRegistration:!0})],yJ);
_.X(yJ,"yt-animated-icon",function(){if(gkO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;V4S===void 0&&(V4S=document.createElement("template"));var P=V4S;S.call(b,P.content.cloneNode(!0),N.content.firstChild);gkO=N}N=gkO;return N},{mode:2});var $o9;var h1E;_.ME=_.A(function(N){var b={value:null,cancelled:!1};_.ej(function(){b.cancelled=!0});
var S=_.UB(N.data,{equals:function(P,H){return P.iconName===H.iconName&&P.iconStyle===H.iconStyle&&P.iconSize===H.iconSize&&P.iconSetName===H.iconSetName&&P.iconSelected===H.iconSelected}},"ck24jb");
return _.c("span",{class:"yt-icon-shape",el:_.VN(function(P){_.gA(function(){var H,K=(H=N.options)==null?void 0:H.call(N);H=S();F4o(P,b,H,K)},"v878Je")})})},"ba");
_.ME.idomCompat=!0;var YFp=["youtube_fill","youtube_outline"];var q8b=new _.Dt({type:"iconset",value:void 0}),g2=function(){var N=_.z.apply(this,arguments)||this;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.iconName="";N.iconsetName="yt-icons";N.iconset=null;N.missingIconSet=!1;N.iconType=null;N.iconShapeDataSignal=_.QF(void 0,void 0,"TaEgXd");N.renderingOptionsSignal=_.QF({iconWidth:"100%",iconHeight:"100%",iconFilter:N.iconFilter,iconColor:N.gradientColor},void 0,"a1vqYe");N.wizHasRendered=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return N};
_.F(g2,_.z);g2.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
g2.prototype.handlePropertyChange=function(){var N=this,b,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J;return _.r(function(Z){switch(Z.nextAddress){case 1:if(b=!N.icon&&!N.iconName||!N.isAttached)return Z.return();S=N;P=S.icon;H=S.size;K=S.defaultToFilled;C=S.active;G=S.targetContainer;N.toggleContainerClass(G);_.T("kevlar_use_wil_icons")&&P&&(a=TTI(P),N.iconType=a.length?a[1]:null);if(P){Z.jumpTo(2);break}N.iconsetName="";N.iconName="";return Z.yield(N.renderIcon(G,P),3);case 3:return Z.return();case 2:R=wxk(P);
n=TTI(R);n.length&&(N.iconsetName=n[0],N.iconName=n[1]);if(!_.T("kevlar_use_wil_icons")){Z.jumpTo(4);break}d=g2;m=NBN;k=N.iconType;M=N.active;l=N.defaultToFilled;u=N.size;J=N.iconsetName;return Z.yield(bJz(),6);case 6:return Z.yield(m.call(d,k,M,l,u,J,Z.yieldResult),5);case 5:N.iconShapeData=Z.yieldResult;case 4:if(N.shouldRenderIconShape(G)){Z.jumpTo(7);break}return Z.yield(N.determineIconSet(R,C,K,H,G),7);case 7:return Z.yield(N.renderIcon(G,P),0)}})};
g2.prototype.toggleContainerClass=function(N){N?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var wxk=function(N){return!_.T("default_to_innertube_icon")||N.indexOf(":")>0?N:_.C7(N)};
_.v=g2.prototype;_.v.determineIconSet=function(N,b,S,P){var H=this;return _.r(function(K){return K.nextAddress==1?_.T("kevlar_system_icons")||_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?K.yield(H.switchToYtSysIconset(N,b,S,P),3):K.jumpTo(2):K.nextAddress!=2?K.return():K.yield(H.useYtSysIconsetForMissingIcons(N,b,S,P),0)})};
_.v.switchToYtSysIconset=function(N,b,S,P){var H=this,K,C,G,a,R,n,d;return _.r(function(m){switch(m.nextAddress){case 1:if(!N||H.iconsetName!=="yt-icons"&&H.iconsetName!=="yt-sys-icons"){m.jumpTo(0);break}K=TTI(N);C=K[1];var k=C;if(uZo(k))C=k;else{var M=k=k.toLowerCase();(k=sgd.get(k))&&(M=k);C=M}_.T("enable_polymer_icons_replace_underscores_dash")&&C.includes("_filled")&&(C=C.replace(/_filled/g,"-filled"));return m.yield(OZ(C,!0),3);case 3:return G=m.yieldResult,m.yield(OZ(C,!1),4);case 4:if((a=
m.yieldResult)||b&&G)H.iconsetName="yt-sys-icons";H.iconName=H.getIconName(C,b,S,a,G);if(P===24){m.jumpTo(0);break}R="yt-sys-icons"+P+":"+H.iconName;return m.yield(OZ(R,!1,!0),6);case 6:return n=m.yieldResult,m.yield(OZ(R,!0,!0),7);case 7:d=m.yieldResult;H.iconName=H.getIconName(C,b,S,n,d);if(!b&&n||b&&d)H.iconsetName="yt-sys-icons"+P;_.Zd(m)}})};
_.v.getIconName=function(N,b,S,P,H){N.includes("-filled")&&(N=N.replace("-filled",""));return H&&(b||S)?N+"-filled":N};
_.v.useYtSysIconsetForMissingIcons=function(N,b,S,P){var H=this,K,C;return _.r(function(G){if(G.nextAddress==1)return H.iconsetName!=="yt-icons"?G.jumpTo(0):G.yield(OZ(H.iconName,!1,!1,!0),3);if(G.nextAddress!=4)return K=G.yieldResult,G.yield(OZ(H.iconName,!1),4);C=G.yieldResult;if(K||!C)return G.jumpTo(0);H.iconsetName="yt-sys-icons";return G.yield(H.switchToYtSysIconset(N,b,S,P),0)})};
_.v.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var bJz=function(){return _.r(function(N){try{return N.return(_.aN().resolve(_.GS))}catch(b){return N.return(new Promise(function(S){_.kA().parkOrScheduleJob(function(){S(_.aN().resolve(_.GS))},2,"ci")}))}})},NBN=function(N,b,S,P,H,K){P=P===void 0?24:P;
if(N){N=N.toLowerCase();var C=N.endsWith("_filled")||N.endsWith("-filled");b={iconName:N,iconStyle:(b===void 0?0:b)||(S===void 0?0:S)||C?"youtube_fill":"youtube_outline",iconSize:P,iconSetName:H===void 0?"yt-icons":H};S=!!K.resolveIcon(b);S||(b.iconSize=void 0,S=!!K.resolveIcon(b));!S&&C&&(b.iconName=N.substring(0,N.length-7),b.iconSize=P,S=!!K.resolveIcon(b),S||(b.iconSize=void 0,S=!!K.resolveIcon(b)));S||(b.iconStyle=void 0,S=!!K.resolveIcon(b));S||_.$h(new _.jU("Icon not supported",{iconName:b.iconName,
iconStyle:b.iconStyle,iconSize:b.iconSize,iconType:N}));return S?b:void 0}};
_.v=g2.prototype;_.v.shouldRenderIconShape=function(N){if(!_.T("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;N=this.getContainer(N);return!kKY(N,this.icon)};
_.v.renderIcon=function(N,b){var S=this,P,H,K,C,G,a,R,n;return _.r(function(d){switch(d.nextAddress){case 1:if(b&&S.icon!==b)return d.return();P=S.getContainer(N);H=kKY(P,S.icon);if(S.shouldRenderIconShape(N)&&S.iconType)return S.applyIconShape(H,P),d.return();S.removeIconShape();if(!P)return d.return();S.iconName===""&&S.iconset&&P&&(S.removeStaticIcon(S.iconset,P),H&&S.removeAnimatedIcon(P));if(S.iconName===""&&S.iconset||!S.iconsetName||!q8b)return d.return();S.iconset=q8b.byKey(S.iconsetName);
if(!S.iconset)return S.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.aA(S,S.onIconsetAdded)),d.return();S.missingIconSet&&(S.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.aA(S,S.onIconsetAdded)));C=(K=H||S.isAnimatedIcon?nzo(S.icon):void 0)&&!K.lazyLoad;a=K&&((G=K)==null?void 0:G.lazyLoad)&&(K.lottiePlayerProps.animationConfig.animationData?!0:t8.get(S.isDarkTheme?K.pathDarkTheme:K.path)?!0:!1);if(C||a)return S.applyAnimatedIcon(P,K,S.iconset),d.return();if(a||
(R=K)==null||!R.lazyLoad){d.jumpTo(2);break}n=tYb(K,S.isDarkTheme);S.applyStaticIcon(S.iconset,P,S.iconName,N,H);return d.yield(n,3);case 3:return d.yield(S.renderIcon(S.targetContainer,S.icon),4);case 4:return d.return();case 2:S.applyStaticIcon(S.iconset,P,S.iconName,N,H),_.Zd(d)}})};
_.v.getContainer=function(N){var b,S=(b=HZf(this.hostElement))==null?void 0:b.host;b=!!S&&!!S.polymerController;if(!N||b)return N?this.getTargetContainer(N,S):this.hostElement};
_.v.getTargetContainer=function(N,b){var S=_.H4(b).querySelector("#"+N);S||(N=new _.jU("yt-icon container missing",b.is,N),_.ge(N));return S};
_.v.applyStaticIcon=function(N,b,S,P,H){H&&this.removeAnimatedIcon(b);this.removeIconShape();H=H&&!!this.iconType&&!!this.iconShapeData&&_.T("kevlar_use_wil_icons");try{H?this.applyIconShape(!1,b):N.applyIcon(b,S)}catch(K){this.handleError(K,P,b)}};
_.v.applyIconShape=function(N,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),N&&this.removeAnimatedIcon(b));N={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var S=_.O(this.iconShapeDataSignal);b=S.next().value;S=S.next().value;var P=_.O(this.renderingOptionsSignal),H=P.next().value;P=P.next().value;S(this.iconShapeData);P(N);if(!this.wizHasRendered)for(this.wizHasRendered=!0,N=_.O(BnO(b,H)).next().value;N.firstChild;)_.H4(this.hostElement).appendChild(N.firstChild)};
_.v.removeIconShape=function(){if(_.T("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.v.removeStaticIcon=function(N,b){N.removeIcon(b)};
_.v.applyAnimatedIcon=function(N,b,S){this.removeStaticIcon(S,N);this.removeIconShape();var P;S=this.animatedIconElement&&((P=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:P.type)===b.type;if(this.animatedIconElement&&S){this.animatedIconElement.polymerController.animatedIcon=b;var H;((H=this.animatedIconElement)==null?void 0:H.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(N),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=b,this.animatedIconElement.polymerController.active=this.active,_.T("delhi_modern_web_player_icons")?(b=dQs(N,this.icon)&&N.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=b?b.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.T("kevlar_use_wil_icons")?
N.insertBefore(this.animatedIconElement,N.childNodes[0]):(N=_.H4(N),N.insertBefore(this.animatedIconElement,N.childNodes[0]))};
_.v.removeAnimatedIcon=function(N){_.T("kevlar_use_wil_icons")?this.animatedIconElement&&N.contains(this.animatedIconElement)&&N.removeChild(this.animatedIconElement):(N=_.H4(N),this.animatedIconElement&&N.contains(this.animatedIconElement)&&N.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.v.handleError=function(N,b,S){_.hd(N,this.iconName,b,S);b=kKY(S,this.icon);var P=!1;window.location.href.includes("JpymaW6Lh2w")?P=!0:S._svgIcon&&(S=(S=S._svgIcon.parentNode)?S.tagName:"unknown",_.hd(N,S),S==="YT-ICON"&&N.name==="NotFoundError"?P=!0:N.name==="NotFoundError"&&b&&(P=!0));P?_.$h(N):_.ge(N)};
_.d0.Object.defineProperties(g2,{template:{configurable:!0,enumerable:!0,get:function(){if(h1E===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;
$o9===void 0&&($o9=document.createElement("template"));var P=$o9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);h1E=N}N=h1E;return N}}});
g2.prototype.handlePropertyChange=g2.prototype.handlePropertyChange;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],g2.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",String)],g2.prototype,"icon",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],g2.prototype,"active",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],g2.prototype,"defaultToFilled",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],g2.prototype,"isAnimatedIcon",void 0);
_.p([_.U({value:24}),_.y("design:type",Number)],g2.prototype,"size",void 0);_.p([_.U({value:""}),_.y("design:type",String)],g2.prototype,"targetContainer",void 0);_.p([_.U(),_.y("design:type",Object)],g2.prototype,"animatedIconElement",void 0);_.p([_.U(),_.y("design:type",Object)],g2.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],g2.prototype,"ariaHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],g2.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],g2.prototype,"role",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],g2.prototype,"tabindex",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],g2.prototype,"title",void 0);_.p([_.U(),_.y("design:type",String)],g2.prototype,"style",void 0);_.p([_.U(),_.y("design:type",String)],g2.prototype,"iconFilter",void 0);_.p([_.U(),_.y("design:type",String)],g2.prototype,"gradientColor",void 0);
_.p([_.W4("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],g2.prototype,"handlePropertyChange",null);_.p([_.J_({is:"yt-icon",noInjection:!0})],g2);var lve="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),fvb=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Sfz={};Sfz.YtPlaintextBehavior=[_.XX,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(N){N.preventDefault();N=N.clipboardData.getData("text/plain");document.execCommand("insertText",!1,N)},
preventRichTextFormatting_:function(N){_.R9&&(N=N.detail.keyboardEvent,N.stopImmediatePropagation(),N.preventDefault())}}];var PeO;var HJk;var e$=function(){var N=_.z.apply(this,arguments)||this;N.ignoreShadyDom=!1;N.hasChange_=!1;N.hasSetTitle_=!1;N.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.Vg("INNERTUBE_CLIENT_NAME")==="WEB";N.ytFormattedStringObserverHandlerKeys_=void 0;return N};
_.F(e$,_.z);_.v=e$.prototype;_.v.created=function(){this.useIOObserverForVisibilityLogging_=_.T("kevlar_use_vimio_behavior")&&_.Vg("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.v.ready=function(){_.Vg("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.v.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.v.detached=function(){this.unobserveIOObservers_()};
_.v.clearContents_=function(){for(var N=this.getRoot(),b=N.lastChild;b&&b.tagName!=="STYLE";){try{N.removeChild(b)}catch(S){break}b=N.lastChild}};
_.v.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var N=_.O(this.ytFormattedStringObserverHandlerKeys_),b=N.next();!b.done;b=N.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.v.resetForAttributedString=function(){var N=this.getRoot();!N.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),N.appendChild(this.ytAttributedStringElementRef))};
_.v.resetForFormattedString=function(){var N=this.getRoot(),b=N.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=N.removeChild(b))};
_.v.textChanged=function(){this.textChanged_(this.text)};
_.v.textChanged_=function(N){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!N||!N.runs&&!N.simpleText;if(_.T("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var S=b;b=b.nextSibling;this.hostElement.removeChild(S)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
S=N.simpleText;var P;!S&&((P=N.runs)==null?void 0:P.length)===1&&this.isSimpleString_(N.runs[0])&&(S=N.runs[0].text);S!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Vg("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(S!==void 0){try{b.textContent=S}catch(H){}b.textContent||(this.isEmpty=!0)}else N=N.runs,S!==void 0&&(N=[{text:S}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),N&&this.updateText_(N),
b.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.v.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.v.computeAriaLabel_=function(N){return N};
_.v.computeEllipsisTruncateStyling=function(N,b){return N&&!b};
_.v.computeUseAttributedString=function(N){return _.T("web_replace_formatted_with_attributed_string")&&KPe(N)&&!this.disableAttributedString&&!this.enableContentEditable};
_.v.setNodeStyle_=function(N,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.T("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var S=null;this.noStyles||(N.bold&&(b.classList.add("bold"),S="bold"),N.deemphasize&&(b.classList.add("deemphasize"),S="deemphasize"),N.italics&&b.classList.add("italic"),
N.strikethrough&&b.classList.add("strikethrough"),N.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),N.bracket&&b.classList.add("bracket"),N.textColor&&(b.style.color=_.xn(N.textColor)));S!==b.getAttribute("style-target")&&(S?b.setAttribute("style-target",S):b.removeAttribute("style-target"))};
_.v.setUpVisibilityLogging_=function(N,b){var S=this;this.setNodeTrackingParams_(N,b);var P;((P=b.data)==null?0:P.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(N=this.ytRendererBehavior.visibilityObserver.observe(b,function(H){var K=S.ytRendererBehavior.getVisibilityLogger();K&&K.reportShown(H)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(H){var K=S.ytRendererBehavior.getVisibilityLogger();
K&&K.reportHidden(H)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(N),this.ytFormattedStringObserverHandlerKeys_.push(b))};
_.v.setNodeTrackingParams_=function(N,b){b.data||(b.data={});if((N=N.loggingDirectives?N.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=N};
_.v.computeHasLinkOnly_=function(N){return!(!N||N.length!==1||this.noEndpoints||!N[0].navigationEndpoint)};
_.v.getRoot=function(){var N=this.buildScopeDomOptions();return this.enableContentEditable?_.H4(_.H4(this.hostElement,N).querySelector("[contenteditable]")):_.H4(this.hostElement,N)};
_.v.fixContenteditableScope=function(){var N=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(S){N(S)}))};
N(this.getRoot())};
_.v.updateText_=function(N){for(var b=N.length,S=this.getRoot(),P=S.firstChild;P&&P.nodeName==="STYLE";)P=P.nextSibling;for(var H=0;H<b&&P;){var K=N[H],C=_.T("remove_cr_char")&&K.text?K.text.replace("\r",""):K.text;if(this.isSimpleString_(K)&&!this.useMixedDirectionFormattedStrings)if(P.nodeName==="#text"){P.textContent!=C&&(P.textContent=C);H++;P=P.nextSibling;continue}else break;if(_.t(K,oq))break;else if(!this.noEndpoints&&K.navigationEndpoint){if(P.nodeName!=="A")break;this.setDataOnAnchor_(P,
K.navigationEndpoint)}else if(P.nodeName!=="SPAN")break;this.setNodeStyle_(K,P);this.setUpVisibilityLogging_(K,P);P.textContent!=C&&(P.textContent=C);H++;P=P.nextSibling}if(P)for(K=S.lastChild,P=H?P.previousSibling:null;K&&K!=P;){try{S.removeChild(K)}catch(G){break}K=S.lastChild}H!==b&&this.addTextNodes_(N,H)};
_.v.addTextNodes_=function(N,b){for(var S=document.createDocumentFragment(),P=N.length;b<P;b++){var H=N[b],K=_.T("remove_cr_char")&&H.text?H.text.replace("\r",""):H.text;if(this.isSimpleString_(H)&&!this.useMixedDirectionFormattedStrings)S.appendChild(document.createTextNode(K));else{var C=_.t(H,oq);if(C){if(C.image){var G=document.createElement("img");C.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");C.isCustomEmoji&&(G.dataset.emojiId=C.emojiId);G.src=_.wG(C.image.thumbnails,
this.emojiSize);(H=this.get("image.accessibility.accessibilityData.label",C))?G.alt=H:C.shortcuts&&C.shortcuts.length>0?G.alt=C.shortcuts[0]:C.emojiId&&(G.alt=C.emojiId);S.appendChild(G);this.hasEmoji=!0}}else!this.noEndpoints&&H.navigationEndpoint?(G=document.createElement("a"),G.classList.add("yt-simple-endpoint"),G.setAttribute("spellcheck","false"),this.setDataOnAnchor_(G,H.navigationEndpoint)):G=document.createElement("span"),this.setNodeStyle_(H,G),this.setUpVisibilityLogging_(H,G),G.appendChild(document.createTextNode(K)),
S.appendChild(G)}}this.getRoot().appendChild(S)};
_.v.isSimpleString_=function(N){return(this.noEndpoints||!N.navigationEndpoint)&&!_.t(N,oq)&&(this.noStyles||!(N.bold||N.deemphasize||N.italics||N.strikethrough||N.errorUnderline||N.bracket||N.textColor))&&!N.loggingDirectives};
_.v.getRawText=function(){return _.es(this.text)};
_.v.getFirstRunText=function(){var N;if(((N=this.text)==null?0:N.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.v.setFirstRunText=function(N){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=N,this.textChanged_(this.text))};
_.v.setDataOnAnchor_=function(N,b){var S=this;!_.T("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(N.onclick=this.serviceEndpointHandler_(b),qj(N,"#")):G8f({text:this.text,command:b},function(){MFY(N,b,S.target)})};
_.v.isServiceEndpoint_=function(N){var b;return!((b=_.t(N==null?void 0:N.commandMetadata,_.GY))==null||!b.sendPost)};
_.v.isSignalServiceEndpoint_=function(N){return!!_.t(N,_.CA)};
_.v.serviceEndpointHandler_=function(N){var b=this;return function(S){_.HN(b.hostElement,[N]);S.preventDefault()}};
_.v.overrideAriaLabelChanged_=function(){var N=this.getRoot();this.enableContentEditable&&N&&N.setAttribute("aria-label",this.overrideAriaLabel)};
_.v.enableContentEditableChanged_=function(){var N=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=_.H4(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.lastChild.id!=="contenteditable-root"){var S=document.createElement("div");S.id="contenteditable-root";S.setAttribute("contenteditable","true");S.setAttribute("dir","auto");S.onfocus=function(){N.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
b.appendChild(S);this.overrideAriaLabel&&S.setAttribute("aria-label",this.overrideAriaLabel)}}else S=_.sj(this.hostElement).firstChild,S instanceof HTMLElement&&S.id==="contenteditable-root"&&_.H4(this.hostElement,b).removeChild(S)};
_.v.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.v.getNodesForVisibilityLogging_=function(){return _.Cm(this.getRoot().childNodes,function(N){var b;return!((b=N.data)==null||!b.trackingParams)})};
_.v.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.v.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var N=this.ytRendererBehavior.getVisibilityLogger();N&&this.getNodesForVisibilityLogging_().forEach(function(b){N.reportShown(b)})}};
_.v.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var N=this.ytRendererBehavior.getVisibilityLogger();N&&this.getNodesForVisibilityLogging_().forEach(function(b){N.reportHidden(b)})}};
_.d0.Object.defineProperties(e$.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.T("enable_mixed_direction_formatted_strings")}}});
e$.prototype.enableContentEditableChanged_=e$.prototype.enableContentEditableChanged_;e$.prototype.overrideAriaLabelChanged_=e$.prototype.overrideAriaLabelChanged_;e$.prototype.ellipsisTruncateChanged_=e$.prototype.ellipsisTruncateChanged_;e$.prototype.textChanged=e$.prototype.textChanged;_.p([_.L(Sfz.YtPlaintextBehavior),_.y("design:type",Object)],e$.prototype,"ytPlaintextBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],e$.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],e$.prototype,"text",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"noEndpoints",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"noStyles",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],e$.prototype,"isDarkTheme",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],e$.prototype,"splitLines",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],e$.prototype,"forceDefaultStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],e$.prototype,"ellipsisTruncate",void 0);_.p([_.U(),_.y("design:type",Object)],e$.prototype,"ignoreShadyDom",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.y("design:type",Boolean)],e$.prototype,"ellipsisTruncateStyling",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.y("design:type",String)],e$.prototype,"ariaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],e$.prototype,"isEmpty",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.y("design:type",Boolean)],e$.prototype,"hasLinkOnly_",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"hasEmoji",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"disableAttributedString",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"isOverlay",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"linkInheritColor",void 0);
_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"noPreWrap",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"userInput",void 0);_.p([_.U({value:16}),_.y("design:type",Number)],e$.prototype,"emojiSize",void 0);_.p([_.U(),_.y("design:type",String)],e$.prototype,"target",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"enableContentEditable",void 0);_.p([_.U(),_.y("design:type",String)],e$.prototype,"overrideAriaLabel",void 0);
_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"respectHtmlDir",void 0);_.p([_.U(),_.y("design:type",Boolean)],e$.prototype,"respectLangDir",void 0);_.p([_.f("plaintextOnly"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],e$.prototype,"useMixedDirectionFormattedStrings",null);_.p([_.U({computed:"computeUseAttributedString(text)"}),_.y("design:type",Boolean)],e$.prototype,"useYtAttributedString",void 0);
_.p([_.W4("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e$.prototype,"textChanged",null);_.p([_.W4("ellipsisTruncate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e$.prototype,"ellipsisTruncateChanged_",null);_.p([_.W4("overrideAriaLabel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e$.prototype,"overrideAriaLabelChanged_",null);
_.p([_.W4("enableContentEditable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],e$.prototype,"enableContentEditableChanged_",null);_.p([_.J_({is:"yt-formatted-string",disableElementRegistration:!0})],e$);
_.X(e$,"yt-formatted-string",function(){if(HJk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;PeO===void 0&&(PeO=document.createElement("template"));var P=PeO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);HJk=N}N=HJk;return N});var sPZ;var K$z;var vLc;var OJZ;var $g=function(){var N=_.z.apply(this,arguments)||this;N.focused=!1;N.disabled=!1;N.isOverlay=!1;return N};
_.F($g,_.z);$g.prototype.triggerDown=function(){if(!this.disabled){_.K3(this.hostElement,"down",!0);var N;(N=this.currentAnimation)==null||N.cancel()}};
$g.prototype.triggerUp=function(){if(!this.disabled){_.K3(this.hostElement,"down",!1);var N=this.fillElement;var b=this.strokeElement;typeof GroupEffect==="function"?(N=new GroupEffect([BBa(N),lEo(b)]),N=new Animation(N,document.timeline)):N=new xoc(N,b);this.currentAnimation=N;var S;(S=this.currentAnimation)==null||S.play()}};
_.p([_.dq(".stroke"),_.y("design:type",HTMLElement)],$g.prototype,"strokeElement",void 0);_.p([_.dq(".fill"),_.y("design:type",HTMLElement)],$g.prototype,"fillElement",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$g.prototype,"focused",void 0);_.p([_.U(),_.y("design:type",Object)],$g.prototype,"disabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$g.prototype,"isOverlay",void 0);_.p([_.J_({is:"yt-interaction",disableElementRegistration:!0})],$g);
_.X($g,"yt-interaction",function(){if(OJZ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vLc===void 0&&(vLc=document.createElement("template"));var P=vLc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);OJZ=N}N=OJZ;return N},{mode:2});var hD=function(){return _.z.apply(this,arguments)||this};
_.F(hD,_.z);_.v=hD.prototype;_.v.ready=function(){var N=this,b=_.H4(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){bj9||(bj9=new Nic);N.keyboardFocused=bj9.isKeyBoardInUse()});
b.addEventListener("blur",function(){N.keyboardFocused=!1;N.rippleUp_()})};
_.v.computeTabIndex_=function(N){return N?-1:0};
_.v.computeButtonAriaPressed_=function(N){if(this.toggleable)return N?"true":"false"};
_.v.rippleDown_=function(){_.H4(this.hostElement).querySelector("#interaction").triggerDown()};
_.v.rippleUp_=function(){_.H4(this.hostElement).querySelector("#interaction").triggerUp()};
_.v.onPressedChanged_=function(){var N=_.sj(_.H4(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.sj(_.H4(this.hostElement).querySelector("#button")).children[0];N&&(N.active=this.pressed)};
hD.prototype.onPressedChanged_=hD.prototype.onPressedChanged_;hD.prototype.rippleUp_=hD.prototype.rippleUp_;hD.prototype.rippleDown_=hD.prototype.rippleDown_;_.p([_.U(),_.y("design:type",String)],hD.prototype,"label",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],hD.prototype,"disabled",void 0);_.p([_.U(),_.y("design:type",Boolean)],hD.prototype,"pressed",void 0);_.p([_.U(),_.y("design:type",Object)],hD.prototype,"toggleable",void 0);
_.p([_.U(),_.y("design:type",Boolean)],hD.prototype,"untabbable",void 0);_.p([_.U(),_.y("design:type",Boolean)],hD.prototype,"keyboardFocused",void 0);_.p([_.RA("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hD.prototype,"rippleDown_",null);_.p([_.RA("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hD.prototype,"rippleUp_",null);
_.p([_.W4("pressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hD.prototype,"onPressedChanged_",null);_.p([_.J_({is:"yt-icon-button",disableElementRegistration:!0})],hD);
_.X(hD,"yt-icon-button",function(){if(K$z===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;sPZ===void 0&&(sPZ=document.createElement("template"));var P=sPZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);K$z=N}N=K$z;return N},{mode:2});var Ce9;var G0z=function(){var N=document.body,b=N.appendChild;if(Ce9===void 0){var S=document.createElement("template");_.B(S,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
Ce9=S}S=Ce9;b.call(N,S.content)};
document.body?G0z():window.addEventListener("DOMContentLoaded",G0z);var rEc=_.$E(["aria-"]),qZ={};qZ.YtRenderButtonBehavior=[_.h.YtRendererBehavior,_.EQ.YtEndpointBehavior,{properties:{alignByText:{type:Boolean,value:!1,reflectToAttribute:!0},iconAlignByText:{type:Boolean,value:!1,reflectToAttribute:!0},disableTextTransform:{type:Boolean,reflectToAttribute:!0},useKeyboardFocused:{type:Boolean,value:function(){return!!_.aN().resolve(_.cq(_.QJ))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var N=this.computeHref_(this.endpoint,!0);N?qj(this.elements_.endpoint,N):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){N=this.buttonClass.split(" ");N=_.O(N);for(var b=N.next();!b.done;b=N.next())b=b.value,_.K3(this.hostElement,b,!0),this.elements_.button&&_.K3(this.elements_.button,b,!0),this.elements_.text&&_.K3(this.elements_.text,b,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(N=null,this.buttonAccessibility&&(N=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=N:N?_.RX([_.ko(rEc)],this.elements_.button,"aria-label",N):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var N=_.aN().resolve(_.cq(_.QJ));N&&(this.keyboardFocused=N.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.ln("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.Tk(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Tk(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(N,b){if(b)for(N=b.split(" "),N=_.O(N),b=N.next();!b.done;b=N.next())b=b.value,_.K3(this.hostElement,b,!1),this.elements_.button&&_.K3(this.elements_.button,b,!1),this.elements_.text&&_.K3(this.elements_.text,b,!1)},
buttonIconChanged_:function(N){this.elements_.icon?N?(this.elements_.icon.icon=N,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Tk(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.C3(this.hostElement,"is-paper-button-with-icon",!1)):N&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.Tk(this.elements_.button).appendChild(this.elements_.icon):_.Tk(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.C3(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(N){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,N){var b=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(N){case "yt_icon_button_with_label":b=!0;_.K3(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();N=_.Tk(this.elements_.button).firstElementChild;
this.elements_.icon=N;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Tk(this.elements_.endpoint).appendChild(this.elements_.button);_.Tk(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.ln("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.Tk(this.elements_.button).appendChild(this.elements_.text);_.Tk(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),N=_.Tk(this.elements_.button).firstElementChild,this.elements_.icon=N,this.setIconActive_(this.elements_.icon),
_.Tk(this.elements_.endpoint).appendChild(this.elements_.button)}_.C3(this.hostElement,"is-icon-button",b);_.C3(this.hostElement,"is-paper-button",!b);_.C3(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var S;_.H4((S=this.container.hostElement)!=null?S:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Tk(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(N){if(N!=void 0||this.disabled)this.disabled=N,this.elements_.button&&(this.elements_.button.disabled=N)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(N){_.T("kevlar_system_icons")&&N&&this.data&&(this.data.isSelected!==void 0?N.active=this.data.isSelected:this.data.isToggled!==void 0&&(N.active=this.data.isToggled))},
observeBasicPalette_:function(N){_.FM(this.hostElement,N)},
disabledChanged_:function(N){this.data&&this.set("data.isDisabled",N)},
onYtButtonTap_:function(N){if(this.disabled)N.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.HN(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(N=this.disableCommandHandlerOverride,!this.data||!this.data.command||N||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.T("handle_service_request_actions")||_.HN(this.hostElement,[this.serviceEndpoint]),
_.bC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.T("handle_service_request_actions")?(N=[],this.serviceEndpoint&&N.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&N.push(this.data.command),N.length&&_.sR(this.hostElement,N,this.hostElement)):this.data&&this.data.command&&(N=this.data.command,N.accountUnlinkCommand||N.accountLinkCommand||N.insertAdCommand||N.insertHighlightMarkerCommand||
N.createLivestreamHighlightClipCommand||N.getVideoUploadFeedbackCommand||N.musicDeletePrivatelyOwnedEntityCommand||N.ypcCancelRecurrenceEndpoint||N.getMultiSelectCommandEndpoint?_.HN(this.hostElement,[N]):_.sR(this.hostElement,[N],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var N,b=_.H4((N=this.container.hostElement)!=null?N:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(S){break}},
getYtIconButton_:function(){var N=this.reuseEnabled_()?_.ln("yt-icon-button"):document.createElement("yt-icon-button"),b=_.Tk(N).firstElementChild;if(b&&b.is!="yt-icon"){for(b=_.Tk(N);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),_.Tk(N).appendChild(b));return N},
reuseEnabled_:function(){return _.T("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.ln("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.ln("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.cE9={};
_.cE9.YtButtonBehavior=[qZ.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var N=this.data;N&&(this._setEndpoint(this.computeEndpoint_(N)),this._setServiceEndpoint(this.computeServiceEndpoint_(N)),this._setCommand(this.computeCommand_(N)),this._setButtonIcon(this.computeButtonIcon_(N)),this._setButtonText(this.computeButtonText_(N,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(N)),this._setButtonTooltip(this.computeTooltip_(N)),this._setButtonClass(this.computeButtonClass_(N)),this._setIconPositionType(this.computeIconPositionType_(N)),this.updateRenderedElements())},
setPressedState:function(N){var b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!N},
computeIconPositionType_:function(N){return N&&N.iconPosition||null},
computeEndpoint_:function(N){var b=N&&N.navigationEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.url"),P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:N&&N.command&&N.command.modalEndpoint?N.command:S&&!P&&N.command?N.command:null},
computeServiceEndpoint_:function(N){var b=N&&N.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:S&&N.command?N.command:null},
computeCommand_:function(N){return N&&N.command||null},
computeButtonIcon_:function(N){return N&&N.icon&&N.icon.iconType?_.C7(N.icon.iconType):null},
computeButtonText_:function(N,b){return!b&&N&&N.text||null},
computeAccessibility_:function(N){return this.get("accessibilityData.accessibilityData",N)||N&&N.accessibility||(N&&N.text?{label:this.getSimpleString(N.text)}:null)},
computeTooltip_:function(N){return N?N.isDisabled&&N.disabledTooltip||N.tooltip||null:null},
computeButtonClass_:function(N){var b=N&&N.style?N.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=N&&N.size?N.size.toLowerCase().replace(/_/g,"-")+" ":"";N.colorData&&N.colorData.basicColorPaletteData&&N.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var BX={};var aEd;var Rkk;var W$z,nLV=function(){return W$z!==void 0?W$z:W$z=document.createElement("template")};
document.head.appendChild(nLV().content);var da9;var ma9,k0z=function(){return ma9!==void 0?ma9:ma9=document.createElement("template")};
document.head.appendChild(k0z().content);var TBE;var tQV,MQd=function(){return tQV!==void 0?tQV:tQV=document.createElement("template")};
document.head.appendChild(MQd().content);var F$E;var BB9=document.head,lE4=BB9.appendChild,L$Z;if(F$E===void 0){var fEc=document.createElement("template");_.B(fEc,"\x3c!--css-build:shady--\x3e");fEc.content.insertBefore(MQd().content.cloneNode(!0),fEc.content.firstChild);F$E=fEc}L$Z=F$E;lE4.call(BB9,L$Z.content);var u99=document.head,QPc=u99.appendChild,xaV;if(TBE===void 0){var oLb=document.createElement("template");_.B(oLb,"\x3c!--css-build:shady--\x3e");oLb.content.insertBefore(k0z().content.cloneNode(!0),oLb.content.firstChild);TBE=oLb}xaV=TBE;QPc.call(u99,xaV.content);var iJb=document.head,JE4=iJb.appendChild,UaN;if(da9===void 0){var ZJS=document.createElement("template");_.B(ZJS,"\x3c!--css-build:shady--\x3e");ZJS.content.insertBefore(nLV().content.cloneNode(!0),ZJS.content.firstChild);da9=ZJS}UaN=da9;JE4.call(iJb,UaN.content);var jPb;_.lo("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");jPb=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.w2=function(){return _.z.apply(this,arguments)||this};
_.F(_.w2,_.z);_.w2.prototype.created=function(){this.openPopupConfig=_.Vg("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.w2.prototype.onYtNavigate_=function(N){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),N.stopPropagation(),N.preventDefault())};
_.d0.Object.defineProperties(_.w2,{template:{configurable:!0,enumerable:!0,get:function(){if(Rkk===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;aEd===void 0&&(aEd=document.createElement("template"));var P=aEd;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Rkk=N}N=Rkk;return N}}});
_.w2.prototype.onYtNavigate_=_.w2.prototype.onYtNavigate_;_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],_.w2.prototype,"ytOpenPopupBehavior",void 0);_.p([_.L(_.cE9.YtButtonBehavior),_.y("design:type",Object)],_.w2.prototype,"ytButtonBehavior",void 0);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.w2.prototype,"onYtNavigate_",null);
_.p([_.J_({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:jPb})],_.w2);var zk9;var AES=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live"),NJ=function(){var N=_.z.apply(this,arguments)||this;N.isPressed=!1;N.forceIconButton=!1;N.forceIconOnly=!1;N.forceModernIconButton=!1;N.skipCommandHandling=!1;N.alignByText=!1;N.fitToVisibleBounds=!0;N.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};N.onTap=function(b){_.bC(N.hostElement,"yt-service-request-sent-button-renderer",b)};
return N};
_.F(NJ,_.z);_.v=NJ.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.v.onClick=function(N){var b,S=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");S&&b&&N.stopPropagation()};
_.v.computeIcon=function(){var N,b,S=(N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType;if(S)return _.C7(S)};
_.v.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.v.handleUpdateButtonAction=function(N){N=_.t(N,AFk);var b=_.t(N==null?void 0:N.updatedButton,_.rU);if(this.data&&N&&b){var S=this.data;S.targetId&&N.targetId&&S.targetId===N.targetId&&(this.data=b)}};
_.d0.Object.defineProperties(NJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var N=this;if(this.data){var b=Jtu({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.bC(N.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.bC(N.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});b.alignByText=this.alignByText;return b}}}});
_.d0.Object.defineProperties(NJ,{template:{configurable:!0,enumerable:!0,get:function(){if(zk9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');zk9=N}N=zk9;return N}}});
NJ.prototype.onClick=NJ.prototype.onClick;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],NJ.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],NJ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"isPressed",void 0);
_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"forceIconButton",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"forceIconOnly",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"forceModernIconButton",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"skipCommandHandling",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"alignByText",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"buttonTooltipPosition",void 0);
_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"fitToVisibleBounds",void 0);_.p([_.U({computed:"computeTooltip(data)"}),_.y("design:type",Object)],NJ.prototype,"tooltip",void 0);_.p([_.U(),_.y("design:type",Object)],NJ.prototype,"overrides",void 0);_.p([_.U(),_.y("design:type",Boolean)],NJ.prototype,"disabled",void 0);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],NJ.prototype,"onClick",null);
_.p([_.f("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.y("design:type",Object),_.y("design:paramtypes",[])],NJ.prototype,"computedButtonShape",null);_.p([_.J_({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!AES,cssBuildOptOut:!0}),_.J_({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!AES,cssBuildOptOut:!0})],NJ);var Xac;var ELN;var b$=function(){var N=_.z.apply(this,arguments)||this;N.empty_=!0;N.loadTime=Infinity;N.pendingPaint=!1;N.hasChange_=!1;N.oldThumbnail_=null;N.oldDelayedSrc_="";N.objectURL_=null;return N};
_.F(b$,_.z);_.v=b$.prototype;_.v.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.v.ready=function(){var N=this.shouldShowPlaceholder_();_.K3(this.hostElement,"no-transition",!0);N&&this.hostElement.classList.add("with-placeholder")};
_.v.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.v.isThumbPreloaded_=function(N){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",N)};
_.v.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||paO};
_.v.computeThumbnailSrc_=function(N){return N&&N.thumbnails?_.wG(N.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.v.computeAlt_=function(){var N=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&N||""};
_.v.thumbnailChanged_=function(){var N=_.O([this.thumbnail,this.oldThumbnail_]),b=N.next().value;N=N.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(N=this.computeThumbnailSrc_(N),this.computeThumbnailSrc_(b)===N))return;_.T("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&_.g8("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.W_(this,this.onReload_):_.W_(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}};
_.v.delayedSrcChanged_=function(){var N=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===N||this.resetImage_()};
_.v.setSrc_=function(N){N?(_.H4(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.H4(this.hostElement).querySelector("#img").src=N):(_.H4(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.v.resetImage_=function(){Zee(this.hostElement);this.empty_=!0;this.setSrc_(paO);this.ytRendererBehavior.invalidate(!1)};
_.v.observePlaceholderColor_=function(){var N=this.thumbnail&&this.thumbnail.placeholderColor;N?this.hostElement.style.backgroundColor=_.xn(N):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.v.onLoad_=function(){_.H4(this.hostElement).querySelector("#img").src&&_.H4(this.hostElement).querySelector("#img").src!==paO&&(UoL(this.hostElement),this.notifyOnLoaded&&_.bC(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.v.onError_=function(){var N=this;if(_.T("web_use_cache_for_image_fallback"))Y8O(_.H4(this.hostElement).querySelector("#img").src).then(function(b){N.objectURL_=_.eo(b).toString();N.setSrc_(N.objectURL_)}).catch(function(){_.T("kevlar_woffle_fallback_image")&&N.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.v.onPrescanVisible=function(){this.onShow_()};
_.v.onVisible=function(){if(_.T("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.v.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var N=this.computeSrc_();N!==_.H4(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(N))}};
_.v.onReload_=function(){this.empty_=!1;var N=this.computeSrc_();N!==_.H4(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(N))};
_.v.shouldShowPlaceholder_=function(){return _.T("kevlar_thumbnail_bg")};
b$.prototype.observePlaceholderColor_=b$.prototype.observePlaceholderColor_;b$.prototype.delayedSrcChanged_=b$.prototype.delayedSrcChanged_;b$.prototype.thumbnailChanged_=b$.prototype.thumbnailChanged_;_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"alt",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],b$.prototype,"ariaHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"id",void 0);_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],b$.prototype,"ytVisibilityBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",String)],b$.prototype,"delayedSrc",void 0);
_.p([_.U(),_.y("design:type",Object)],b$.prototype,"thumbnail",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"loaded",void 0);_.p([_.U(),_.y("design:type",Boolean)],b$.prototype,"notifyOnLoaded",void 0);_.p([_.U(),_.y("design:type",Number)],b$.prototype,"height",void 0);_.p([_.U(),_.y("design:type",Number)],b$.prototype,"width",void 0);_.p([_.U({value:function(){return"width"}}),
_.y("design:type",String)],b$.prototype,"dimension",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"fit",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"fitHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"fitWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"objectFit",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"objectPosition",void 0);_.p([_.U(),_.y("design:type",String)],b$.prototype,"preferredThumbnail",void 0);_.p([_.U({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.y("design:type",String)],b$.prototype,"alt_",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],b$.prototype,"sharedTooltipText",void 0);
_.p([_.U(),_.y("design:type",Boolean)],b$.prototype,"ftlEligible",void 0);_.p([_.U({value:void 0}),_.y("design:type",String)],b$.prototype,"observeHiddenOption",void 0);_.p([_.U({value:"observe_once"}),_.y("design:type",String)],b$.prototype,"observePrescanOption",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],b$.prototype,"roundedContainer",void 0);
_.p([_.t_("thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b$.prototype,"thumbnailChanged_",null);_.p([_.t_("delayedSrc"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b$.prototype,"delayedSrcChanged_",null);_.p([_.W4("thumbnail.placeholderColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b$.prototype,"observePlaceholderColor_",null);
_.p([_.J_({is:"yt-img-shadow",disableElementRegistration:!0})],b$);var paO=_.g8("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.H7()(b$,"yt-img-shadow",function(){if(ELN===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Xac===void 0&&(Xac=document.createElement("template"));var P=Xac;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ELN=N}N=ELN;return N},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var Drs;_.Sz=new _.nO("SCREEN_MANAGER_TOKEN");Drs=new _.nO("LOG_INITIAL_SCREEN_TOKEN");var YfV=fU({entities:{}});_.Pc=uo(YfV)(YfV.entities,{selectSfvAudioItemPlaybackState:function(N,b){var S,P;N=(P=_.GL(N,"sfvAudioItemCurrentlyPlayingEntity",b))!=null?P:void 0;return(S=N==null?void 0:N.sfvAudioItemPlaybackState)!=null?S:void 0},
playlistLoopStateEntitySelector:jIu,toggleMenuServiceItemEntitySelector:zNo});_.Hc=_.A(function(N){function b(e){return _.t(e,_.WC)}
function S(){var e=P().isTogglingDisabled||l()&&P().toggledIsTogglingDisabled,se=e||m()?l():!l();u(se);Z(!1);if(!e){var Ca;(Ca=C)==null||Ca(!!se)}var ML;((ML=K)==null?0:ML())||_.yj(_.aN().resolve(_.Sz),P().trackingParams);var na;if(!se||!b(P().defaultButtonViewModel)||(na=K)!=null&&na()){var To;!b(P().toggledButtonViewModel)||((To=K)==null?0:To())||_.yj(_.aN().resolve(_.Sz),b(P().toggledButtonViewModel).trackingParams)}else _.yj(_.aN().resolve(_.Sz),b(P().defaultButtonViewModel).trackingParams)}
var P=N.data,H=N.buttonShapeOverrides,K=N.disableExplicitClickLogging,C=N.onToggle,G=N.style,a=N.useOutlinedIcon,R=N.className,n=function(){var e,se;return l()?(e=N.animatedTextPropsToggled)==null?void 0:e.call(N):(se=N.animatedTextPropsDefault)==null?void 0:se.call(N)},d=_.UB(function(){return n()?Object.assign({},n(),{shouldAnimate:J()}):void 0},void 0,"Zp4uoe"),m=function(){var e;
return((e=V())==null?void 0:e.isToggled)!==void 0},k=_.O(_.qI(function(){var e,se,Ca;
return m()?(e=V())==null?void 0:e.isToggled:(Ca=H==null?void 0:(se=H())==null?void 0:se.toggled)!=null?Ca:P().isToggled})),M=k.next().value;
k=k.next().value;var l=M,u=k;k=_.O(_.qI(function(){var e,se;return(e=N.animatedTextPropsToggled)==null?void 0:(se=e.call(N))==null?void 0:se.shouldAnimate}));
M=k.next().value;k=k.next().value;var J=M,Z=k;M=_.O(_.QF(!1,void 0,"mq3Zfe"));var D=M.next().value,Y=M.next().value,V=_.nU(function(e){a:{var se=P().entityKey,Ca=P().toggledStateEntitySelectorType;if(Ca)switch(Ca){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!se)break;e=_.Pc.selectSfvAudioItemPlaybackState(e,se);if(e==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){e={isToggled:!0};break a}if(e){e={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":e={isToggled:_.pTf(e).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":e={isToggled:_.pTf(e).includes("engagement-panel-live-chat-item-section")};break a;default:_.$h(new _.jU("Error: entitySelectorType defined but not matched in selector.",e,Ca))}e=void 0}return e}),g=function(){return Object.assign({},H==null?void 0:H(),{onToggle:S,
toggleable:!0,toggled:l(),focused:D()})};
return _.c("toggle-button-view-model",{"on:focusin":_.Ob(function(){var e=_.aN().resolve(_.cq(_.QJ));e&&Y(e.isKeyBoardInUse());return!1}),
"on:focusout":_.Ob(function(){Y(!1);return!1})},_.c(_.W,{cond:function(){return l()?b(P().toggledButtonViewModel):b(P().defaultButtonViewModel)},
then:function(e){return _.c(_.j$,{data:e,className:R,style:G,useOutlinedIcon:a,buttonOverrides:g,animatedTextProps:d})}}))},"da");
_.Hc.idomCompat={callbacks:{onToggle:!0}};_.qu(_.A(function(N){return _.c("yt-toggle-button-view-model",{class:function(){var b;return(b=N.scopingClassName)==null?void 0:b.call(N)}},_.c(_.Hc,{data:function(){var b;
return(b=N.data)==null?void 0:b.call(N)},
buttonShapeOverrides:function(){var b;return(b=N.overrides)==null?void 0:b.call(N)},
animatedTextPropsDefault:function(){var b;return(b=N.animatedTextPropsDefault)==null?void 0:b.call(N)},
animatedTextPropsToggled:function(){var b;return(b=N.animatedTextPropsToggled)==null?void 0:b.call(N)},
disableExplicitClickLogging:function(){var b;return(b=N.disableExplicitClickLogging)==null?void 0:b.call(N)},
onToggle:function(b){var S;return(S=N.onToggle)==null?void 0:S.call(N,b)},
style:function(){var b;return(b=N.style)==null?void 0:b.call(N)},
useOutlinedIcon:function(){var b;return(b=N.useOutlinedIcon)==null?void 0:b.call(N)},
className:function(){var b;return(b=N.className)==null?void 0:b.call(N)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.kg,
buttonShapeOverrides:_.kg,overrides:_.kg,animatedTextPropsDefault:_.kg,animatedTextPropsToggled:_.kg,disableExplicitClickLogging:_.kg,onToggle:_.er,style:_.kg,useOutlinedIcon:_.kg,className:_.kg,scopingClassName:_.kg}});var sM=function(){return _.z.apply(this,arguments)||this};
_.F(sM,_.z);sM.prototype.onTap=function(N){N.stopPropagation();N=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.oJ("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:N})):this.ytLiveChatReduxBehavior.dispatch(_.t5("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:N}))};
_.d0.Object.defineProperties(sM.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.engagementState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=_.t(this.data.toggleButton,_.dU),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var S;b=((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}else{var P,H,K;b=((P=this.likeCountState)==null?void 0:(H=P.likeCountIfIndifferent)==null?void 0:H.content)||((K=this.data.likeCountPlaceholder)==null?void 0:K.content)||""}var C,G;S=((C=this.likeCountState)==null?void 0:(G=
C.likeCountIfLiked)==null?void 0:G.content)||"1";C=_.t(N.toggledButtonViewModel,_.WC);return Object.assign({},N,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.t(N.defaultButtonViewModel,_.WC),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},C,{title:S})}})}}}});
sM.prototype.onTap=sM.prototype.onTap;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],sM.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],sM.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sM.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.likeCountEntityKey"],selector:YtI}),_.y("design:type",Object)],sM.prototype,"likeCountState",void 0);_.p([_.U({selectorArgs:["data.engagementStateKey"],selector:hkO}),_.y("design:type",Object)],sM.prototype,"engagementState",void 0);_.p([_.f("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sM.prototype,"isLiked",null);
_.p([_.f("data","likeCountState","isLiked"),_.y("design:type",Object),_.y("design:paramtypes",[])],sM.prototype,"toggleButton",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sM.prototype,"onTap",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],sM);
_.X(sM,"yt-live-chat-like-button-view-model",function(){if(DoZ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;IPZ===void 0&&(IPZ=document.createElement("template"));var P=IPZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);DoZ=N}N=DoZ;return N},{mode:0});var yEZ;var IEO;var KN=function(){return _.z.apply(this,arguments)||this};
_.F(KN,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KN.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],KN);
_.X(KN,"yt-live-chat-paid-message-footer-renderer",function(){if(IEO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;yEZ===void 0&&(yEZ=document.createElement("template"));var P=yEZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);IEO=N}N=IEO;return N},{mode:0});var Da9;var VQk;var gLk;var ek9,$a9=function(){if(ek9!==void 0)return ek9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;gLk===void 0&&(gLk=document.createElement("template"));var P=gLk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return ek9=N};var vc=function(){return _.z.apply(this,arguments)||this};
_.F(vc,_.z);vc.prototype.onTap=function(N){N.stopPropagation()};
_.d0.Object.defineProperties(vc.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=_.t(this.data.replyButton,_.WC),b,S,P,H,K,C,G,a=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(S=this.data)==null?void 0:(P=S.replyCountPlaceholder)==null?void 0:P.content:((H=this.replyCountState)==null?void 0:(K=H.replyCount)==null?void 0:K.content)||((C=this.data)==null?void 0:(G=C.replyCountPlaceholder)==null?void 0:G.content)||"",R;return Object.assign({},
N,{title:a,accessibilityText:(R=this.replyCountState)==null?void 0:R.replyButtonAccessibilityText})}}}});
_.d0.Object.defineProperties(vc,{template:{configurable:!0,enumerable:!0,get:function(){return $a9()}}});
vc.prototype.onTap=vc.prototype.onTap;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],vc.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vc.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.replyCountEntityKey"],selector:function(N,b){return _.GL(N.entities,"replyCountEntity",b)}}),
_.y("design:type",Object)],vc.prototype,"replyCountState",void 0);_.p([_.f("data","replyCountState"),_.y("design:type",Object),_.y("design:paramtypes",[])],vc.prototype,"buttonViewModel",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],vc.prototype,"onTap",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],vc);_.X(vc,"yt-live-chat-reply-button-view-model",function(){return $a9()},{mode:0});var hkZ;var qfc;var OM=function(){var N=_.z.apply(this,arguments)||this;N.ariaLabel="";return N};
_.F(OM,_.z);
OM.prototype.dataChanged=function(){for(var N=(0,_.Gd)(_.H4(this.hostElement).querySelector("#image"));N.firstChild;)N.removeChild(N.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield_empty",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();N.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img");
var S=_.fPE(this.data.customThumbnail.thumbnails,16);S?(b.src=S,N.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):_.$h(new _.jU("Could not compute URL for thumbnail",this.data.customThumbnail))}};
OM.prototype.identity=function(N){return N};
OM.prototype.computeType=function(N){return K7(N||void 0)};
OM.prototype.dataChanged=OM.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],OM.prototype,"data",void 0);_.p([_.U({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.y("design:type",Object)],OM.prototype,"ariaLabel",void 0);_.p([_.U({computed:"computeType(data)",reflectToAttribute:!0}),_.y("design:type",String)],OM.prototype,"type",void 0);
_.p([_.U({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.y("design:type",String)],OM.prototype,"sharedTooltipText",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_new_shield_moderator_badge")}}),
_.y("design:type",Boolean)],OM.prototype,"enableNewModeratorBadge",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],OM.prototype,"dataChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],OM);
_.X(OM,"yt-live-chat-author-badge-renderer",function(){if(qfc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;hkZ===void 0&&(hkZ=document.createElement("template"));var P=hkZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qfc=N}N=qfc;return N},{mode:0});var wac;var NnV;var CN=function(){return _.z.apply(this,arguments)||this};
_.F(CN,_.z);_.v=CN.prototype;_.v.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.v.computeBadgesInsideChip=function(N){return N?N.filter(function(b){return K7(b.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.v.computeBadgesOutsideChip=function(N){return this.prependChatBadges||!N?[]:N.filter(function(b){b=K7(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})};
_.v.computeBadgesBeforeChip=function(N){return this.prependChatBadges&&N?N.filter(function(b){b=K7(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]};
_.v.computeIsHighlighted=function(N,b){var S=!!cip(N,"owner"),P=!!cip(N,"verified");N=!!cip(N,"moderator");return(S||P&&!N)&&!b};
_.v.computeAuthorType=function(N){return rio(N)};
_.v.computeAuthorClass=function(N,b){return b?(N?N+" ":"")+"single-line":N};
_.v.onSeedColorChanged=function(){_.T("live_chat_author_name_color_usernames")||_.T("live_chat_seed_color_usernames")||_.T("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.T("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
CN.prototype.onSeedColorChanged=CN.prototype.onSeedColorChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CN.prototype,"authorName",void 0);_.p([_.U(),_.y("design:type",Array)],CN.prototype,"authorBadges",void 0);
_.p([_.U({computed:"computeAuthorType(authorBadges)"}),_.y("design:type",String)],CN.prototype,"authorType",void 0);_.p([_.U({computed:"computeAuthorClass(authorType, singleLine)"}),_.y("design:type",String)],CN.prototype,"authorClass",void 0);_.p([_.U({computed:"computeBadgesInsideChip(authorBadges)"}),_.y("design:type",Array)],CN.prototype,"badgesInsideChip",void 0);_.p([_.U({computed:"computeBadgesOutsideChip(authorBadges)"}),_.y("design:type",Array)],CN.prototype,"badgesOutsideChip",void 0);
_.p([_.U({computed:"computeBadgesBeforeChip(authorBadges)"}),_.y("design:type",Array)],CN.prototype,"badgesBeforeChip",void 0);_.p([_.U({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.y("design:type",Boolean)],CN.prototype,"isHighlighted",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_new_shield_moderator_badge")}}),
_.y("design:type",Boolean)],CN.prototype,"enableNewModeratorTextColor",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],CN.prototype,"singleLine",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],CN.prototype,"disableHighlighting",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],CN.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({value:_.T("live_chat_prepend_badges"),reflectToAttribute:!0}),_.y("design:type",Boolean)],CN.prototype,"prependChatBadges",void 0);
_.p([_.U(),_.y("design:type",String)],CN.prototype,"authorNameColor",void 0);_.p([_.dq("#author-name"),_.y("design:type",HTMLDivElement)],CN.prototype,"username",void 0);_.p([_.W4("authorNameColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CN.prototype,"onSeedColorChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],CN);
_.X(CN,"yt-live-chat-author-chip",function(){if(NnV===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;wac===void 0&&(wac=document.createElement("template"));var P=wac;S.call(b,P.content.cloneNode(!0),N.content.firstChild);NnV=N}N=NnV;return N},{mode:0});var blk;var StO;var GF=function(){var N=_.z.apply(this,arguments)||this;N.debounceCommand=_.oS(function(b){N.ytComponentBehavior.resolveCommand(b)},1500);
return N};
_.F(GF,_.z);GF.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var N=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",b,S,P=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(S=this.data)==null?void 0:S.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.oJ("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:N}));(N=_.UZ(P))&&this.debounceCommand(N)}};
_.d0.Object.defineProperties(GF.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var N,b;if(!((N=this.data)==null?0:(b=N.creatorThumbnail)==null?0:b.sources))return{};N={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;N.thumbnails.push(b);return N}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
GF.prototype.onTap=GF.prototype.onTap;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],GF.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],GF.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.engagementStateKey"],selector:hkO}),_.y("design:type",Object)],GF.prototype,"engagementState",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GF.prototype,"thumbnailDetails",null);_.p([_.f("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GF.prototype,"isHearted",null);_.p([_.f("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GF.prototype,"isEditable",null);
_.p([_.f("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GF.prototype,"showCreatorView",null);_.p([_.f("data","engagementState"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GF.prototype,"showButton",null);_.p([_.f("data","isHearted"),_.y("design:type",String),_.y("design:paramtypes",[])],GF.prototype,"label",null);_.p([_.f("data","isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],GF.prototype,"heartHoverText",null);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GF.prototype,"onTap",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],GF);
_.X(GF,"yt-live-chat-creator-heart-view-model",function(){if(StO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;blk===void 0&&(blk=document.createElement("template"));var P=blk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);StO=N}N=StO;return N},{mode:0});var Ppl=function(){this.internalMap={}};
_.v=Ppl.prototype;_.v.contains=function(N){return Object.prototype.hasOwnProperty.call(this.internalMap,N)};
_.v.get=function(N){if(this.contains(N))return this.internalMap[N]};
_.v.set=function(N,b){this.internalMap[N]=b};
_.v.getKeys=function(){return Object.keys(this.internalMap)};
_.v.remove=function(N){delete this.internalMap[N]};var rD=function(){this.mappings=new Ppl;this.errorCallbacks=new Set};
rD.prototype.getModuleId=function(N){return N.serviceId.getModuleId()};
rD.prototype.get=function(N){a:{var b=this.mappings.get(N.toString());switch(b.type){case "mapping":N=b.value;break a;case "factory":b=b.value();this.mappings.set(N.toString(),{type:"mapping",value:b});N=b;break a;default:N=_.$Z(b)}}return N};
rD.prototype.registerService=function(N,b){this.mappings.set(N.toString(),{type:"mapping",value:b});return N};
rD.prototype.onLoadError=function(N){var b=this;this.errorCallbacks.add(N);return function(){b.errorCallbacks.delete(N)}};
new rD;var Hlb=function(){};
_.v=Hlb.prototype;
_.v.JSC$14404_getRequest=function(N,b,S){b=b===void 0?{}:b;S=S===void 0?OAz:S;var P=b;if(this.isNavigationCommand()){var H,K=(H=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:H.url;P=_.nNO(N.clickTrackingParams,!0,!1,K,this.JSC$14404_getClientScreen(P))}else P=_.nNO(N.clickTrackingParams,!1,this.includeCsn);P={context:P};if(H=this.getExtension(N))return this.JSC$14404_buildRequest(P,H,b),H=this.getApiUrl(N),K=Object.assign({},{command:N},this.getRequestConfig(N,b)),P={input:H,requestShell:Yy(H),
innerTubeRequest:P,config:K},P.config.authStrategy?P.config.authStrategy.identity=S:P.config.authStrategy={identity:S},(N=this.JSC$14404_getRequestKey(N,b))&&!P.config.requestKey&&(P.config.requestKey=N),P;N=new _.jU("Error: Failed to create Request from Command.",N);_.ge(N)};
_.v.getApiUrl=function(N){var b=_.q6(this.getApiPaths(N)),S;(N=(S=_.t(N.commandMetadata,_.GY))==null?void 0:S.apiUrl)&&(b=N);return qpU(h29(b))};
_.v.isNavigationCommand=function(){return!1};
_.v.JSC$14404_getClientScreen=function(){};
_.v.JSC$14404_getRequestKey=function(){};
_.v.getRequestConfig=function(){};
_.d0.Object.defineProperties(Hlb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var cc=function(){};
_.F(cc,Hlb);cc.prototype.JSC$14411_getStoreKey=function(){};
cc.prototype.JSC$14404_getRequestKey=function(N,b){b=b===void 0?{}:b;return this.JSC$14411_getStoreKey(N,b)};var aH=function(){};
_.F(aH,cc);aH.prototype.JSC$14404_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Yy("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
aH.prototype.getApiPaths=function(){return[]};
aH.prototype.getExtension=function(){};
aH.prototype.JSC$14404_buildRequest=function(){};var sIO={},K4V=(sIO.GET_DATASYNC_IDS=Ub(aH),sIO);var vzE,OlO,CpO,W49,RH,avk,GK9,ctk,rt9;vzE="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");OlO=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.XM=function(N,b,S,P,H,K,C,G,a){this.endpointMap=N;this.networkManager=b;this.authService=S;this.responseProcessorMap=P;this.innertubeResponseStore=H;this.contextProcessors=K;this.asyncContextProcessors=C;this.localInnertubeRouter=G;this.requestSequencer=a;this.inflightRequests=new Map;N.signalEndpointMap||(N.signalEndpointMap={});N.signalEndpointMap=Object.assign({},K4V,N.signalEndpointMap)};
CpO=function(N,b,S,P,H,K,C,G,a){if(_.XM.instance!==void 0){if(P=_.XM.instance,N=[N!==P.endpointMap,b!==P.networkManager,S!==P.authService,H!==P.innertubeResponseStore,K!==P.contextProcessors,C!==P.asyncContextProcessors,G!==P.localInnertubeRouter],N.some(function(R){return R}))throw new _.jU("InnerTubeTransportService is already initialized",N);
}else _.XM.instance=new _.XM(N,b,S,P,H,K,C,G,a)};
_.pU=function(N,b,S){var P=P===void 0?OAz:P;var H=GK9(N,b);return H?new _.u5(function(K,C){var G,a,R,n,d;return _.r(function(m){switch(m.nextAddress){case 1:return m.yield(H,2);case 2:G=m.yieldResult;a=G.JSC$14404_getRequest(b,S,P);if(!a){C(new _.jU("Error: Failed to build request for command.",b));m.jumpTo(0);break}ZK(a.input);n=((R=a.requestShell)==null?void 0:R.mode)==="cors"?"cors":void 0;if(N.authService.syncHeaders){d=rt9(a.config,n);m.jumpTo(4);break}return m.yield(ctk(a.config,n),5);case 5:d=
m.yieldResult;case 4:K(avk(N,a,d)),_.Zd(m)}})}):_.f7(new _.jU("Error: No request builder found for command.",b))};
W49=function(N,b,S,P){var H=H===void 0?OAz:H;var K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g;return _.r(function(e){switch(e.nextAddress){case 1:K=VYY(b,N.endpointMap);if(!K)throw new _.jU("Error: No streaming request builder found for command",b);C=K.JSC$14404_getRequest(b,S,H);if(!C)throw new _.jU("Failed to build YtRequest for streaming Command",b);if((G=N.localInnertubeRouter)==null||!G.shouldPreferLocalResponse(C.input,C.innerTubeRequest)){e.jumpTo(2);break}return e.yield(N.localInnertubeRouter.localInnertubeResponse(C.input,
C.innerTubeRequest),3);case 3:return a=e.yieldResult,R={},a.playerResponse&&(RH(N,a.playerResponse,C),R.player=a.playerResponse,(n=P)==null||n(R,a)),a.watchNextResponse&&(RH(N,a.watchNextResponse,C),R.content=a.watchNextResponse,(d=P)==null||d(R,a)),e.return(R);case 2:k=((m=C.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(N.authService.syncHeaders){M=rt9(C.config,k);e.jumpTo(4);break}return e.yield(ctk(C.config,k),5);case 5:M=e.yieldResult;case 4:return J=(u=(l=C.requestShell)==null?
void 0:l.headers)!=null?u:{},C.requestShell=Object.assign({},C.requestShell,{headers:Object.assign({},J,M)}),Z=Object.assign({},C.requestShell),D=JSON.stringify(C.innerTubeRequest),C.requestShell.method==="POST"&&(Z=Object.assign({},Z,{body:D})),Y=function(se,Ca){RH(N,Ca.playerResponse||Ca.watchNextResponse||Ca.reelItemWatchResponse||Ca.reelWatchSequenceResponse,C);P==null||P(se,Ca);_.T("web_watch_stop_scheduler_on_player_response")&&Ca.playerResponse&&apE()},V={},e.yield(RN4(N.networkManager,C.input,
Z,Y),6);
case 6:return V=e.yieldResult,((g=C.config)==null?0:g.responseTick)&&_.uC(C.config.responseTick),e.return(V)}})};
_.ni=function(N,b,S,P,H){H=H===void 0?{authStrategy:{identity:OAz}}:H;var K=K===void 0?!0:K;var C=function(){};
C=vD_(srO(S));b.context||(b.context=_.nNO(P,K));return new _.u5(function(G){var a,R,n,d,m;return _.r(function(k){if(k.nextAddress==1)return a=h29(S),R=_.p6(a),N.authService.syncHeaders?(n=rt9(H,R),k.jumpTo(2)):k.yield(ctk(H,R),3);k.nextAddress!=2&&(n=k.yieldResult);d=qpU(h29(S));m={input:d,requestShell:Yy(d),innerTubeRequest:b,config:H};G(avk(N,m,n,C));_.Zd(k)})})};
RH=function(N,b,S){var P;if(b&&!(b==null?0:(P=b.sequenceMetaData)==null?0:P.skipProcessing)&&N.responseProcessorMap){P=_.O(vzE);for(var H=P.next();!H.done;H=P.next())H=H.value,N.responseProcessorMap[H]&&N.responseProcessorMap[H].handleResponse(b,S)}};
avk=function(N,b,S,P){P=P===void 0?function(){}:P;
var H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp,Xf,YO,Wk,S9,Vu,n9,mc,f9,mJ,Bk,RU,Ab,kZ,Ib,Ud;return _.r(function(ob){switch(ob.nextAddress){case 1:C=(H=b.config)==null?void 0:(K=H.storeStrategy)==null?void 0:K.storeKey;if(!(C&&N.innertubeResponseStore&&N.innertubeResponseStore.has(C))||((G=b.config)==null?0:(a=G.storeStrategy)==null?0:a.disableCache)){ob.jumpTo(2);break}return ob.yield(N.innertubeResponseStore.get(C),3);case 3:R=ob.yieldResult;if(!R||R.isExpired()){ob.jumpTo(2);break}n=
_.Pp(R);if(!_.T("web_process_response_store_responses")||R.isProcessed()){ob.jumpTo(5);break}RH(N,n,b);return ob.yield(N.innertubeResponseStore.markAsProcessed(C),5);case 5:return ob.return(Promise.resolve(n));case 2:if(!((d=b)==null?0:(m=d.innerTubeRequest)==null?0:m.context)){ob.jumpTo(7);break}k=b.innerTubeRequest.context;if(!(N.asyncContextProcessors&&N.asyncContextProcessors.length>0)){ob.jumpTo(8);break}M=[];l=_.O(N.asyncContextProcessors);for(u=l.next();!u.done;u=l.next())J=u.value,Z=J.processContext(b),
Z.wrappedPromise_&&M.push(Z.wrappedPromise_);if(!(M.length>0)){ob.jumpTo(8);break}return ob.yield(Promise.all(M),8);case 8:D=_.O(N.contextProcessors||[]),Y=D.next();case 11:if(Y.done){ob.jumpTo(7);break}V=Y.value;return ob.yield(V.processContext(k),12);case 12:Y=D.next();ob.jumpTo(11);break;case 7:if((g=N.localInnertubeRouter)==null||!g.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){ob.jumpTo(15);break}return ob.yield(N.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),
16);case 16:return e=ob.yieldResult,RH(N,e,b),ob.return(e);case 15:return(ML=(Ca=b.config)==null?void 0:Ca.requestKey)&&N.inflightRequests.has(ML)?se=N.inflightRequests.get(ML):(na=JSON.stringify(b.innerTubeRequest),Xf=(jp=(To=b.requestShell)==null?void 0:To.headers)!=null?jp:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},Xf,S)}),YO=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(YO=Object.assign({},YO,{body:na})),((Wk=b.config)==null?0:Wk.requestTick)&&
_.uC(b.config.requestTick),S9=function(){return N.networkManager.fetch(b.input,YO,b.config)},se=N.requestSequencer?nz4(N.requestSequencer,b,S9):S9(),ML&&N.inflightRequests.set(ML,se)),ob.yield(se,17);
case 17:(Vu=ob.yieldResult)&&_.T("web_streaming_player")&&Array.isArray(Vu)&&(Vu=Vu[0].playerResponse);if(Vu&&"error"in Vu&&((n9=Vu)==null?0:(mc=n9.error)==null?0:mc.details))for(f9=Vu.error.details,mJ=_.O(f9),Bk=mJ.next();!Bk.done;Bk=mJ.next())RU=Bk.value,(Ab=RU["@type"])&&OlO.indexOf(Ab)>-1&&(delete RU["@type"],Vu=RU);ML&&N.inflightRequests.has(ML)&&N.inflightRequests.delete(ML);((kZ=b.config)==null?0:kZ.responseTick)&&_.uC(b.config.responseTick);if(Vu||(Ib=N.localInnertubeRouter)==null||!Ib.canProvideFallbackResponse(b.input,
b.innerTubeRequest)){ob.jumpTo(18);break}return ob.yield(N.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),19);case 19:Vu=ob.yieldResult;case 18:return RH(N,Vu,b),((Ud=b.config)==null?0:Ud.processorTick)&&_.uC(b.config.processorTick),P(),ob.return(Vu||void 0)}})};
_.Eb=function(N,b){return DQE(b,N.endpointMap)};
GK9=function(N,b){N=gzE(b,N.endpointMap);if(N!==void 0)return Promise.resolve(N)};
ctk=function(N,b){var S,P,H,K;return _.r(function(C){if(C.nextAddress==1){H=(S=N)==null?void 0:(P=S.authStrategy)==null?void 0:P.sessionIndex;var G=C.yield;var a=_.KA(HXO({sessionIndex:H}));return G.call(C,a,2)}K=C.yieldResult;return C.return(Promise.resolve(Object.assign({},eNa(b),K)))})};
rt9=function(N,b){var S;N=N==null?void 0:(S=N.authStrategy)==null?void 0:S.sessionIndex;S=HXO({sessionIndex:N});return Object.assign({},eNa(b),S)};var dQk,mQc,kKE,TnS,tYV,MYO,lvd,L4k,dD,fvV,utZ,BnZ,QIc;dQk=0;mQc=/tone[1-5]/;kKE=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");TnS="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
tYV=Number.MAX_SAFE_INTEGER;MYO=RegExp("\ufe0f","g");_.Wc=function(N){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;N&&_.F44(this,N)};
_.F44=function(N,b){try{_.lQ(b,{context:N,onSuccess:function(P,H){Array.isArray(H)?N.load(H):(P=new _.jU("Emoji manager JSON response was not an array!",{response:H}),_.ge(P))},
onError:function(P){P=new _.jU("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:_.TW(P).toString()});_.$h(P)}})}catch(P){var S=new _.jU("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b});
_.$h(S)}};
_.Wc.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Wc.prototype.load=function(N,b){if(b)if(N.length)N=N.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=BnZ(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(_.IX(new Set(this.emojis.concat(N))));this.hasInitializedShortcutCharMap=!1;N=Array(this.emojis.length);for(b=0;b<this.emojis.length;b++){var S=this.emojis[b];if(S.emojiId){this.emojiMap[S.emojiId]=S;this.emojiMap[S.emojiId].index=
b;for(var P=0;S.shortcuts&&P<S.shortcuts.length;P++)this.emojiShortcutMap[S.shortcuts[P].toLocaleLowerCase()]=S;N[b]=S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId}}N.sort(function(H,K){return K.length-H.length});
if(N.length)try{this.emojiRegex=new RegExp(N.join("|").replace("*","\\*"),"gi")}catch(H){this.emojiRegex=/$./}else this.emojiRegex=/$./};
lvd=function(N,b){b=_.O(b);for(var S=b.next();!S.done;S=b.next()){var P=S.value;if(P.emojiId&&N.emojiMap[P.emojiId]){S=Object.assign({},N.emojiMap[P.emojiId],P);N.emojiMap[P.emojiId]=S;var H=void 0;S.index&&((H=N.emojis[S.index])==null?void 0:H.emojiId)===P.emojiId&&(N.emojis[S.index]=S);P=void 0;if((P=S.shortcuts)==null?0:P.length)for(N.hasInitializedShortcutCharMap=!1,P=_.O(S.shortcuts),H=P.next();!H.done;H=P.next())N.emojiShortcutMap[H.value.toLocaleLowerCase()]=S}}};
L4k=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(_.Hy.getInstance(),2);if(P.nextAddress!=3)return(b=P.yieldResult)?P.yield(b.get("ytlc-emoji-pref"),3):P.return();(S=P.yieldResult)&&lvd(N,Object.keys(S).map(function(H){return{emojiId:H,stickyPrefId:S[H]}}).filter(function(H){return!!H.emojiId&&!!H.stickyPrefId}));
_.Zd(P)})};
_.nN=function(N,b,S){return(N=N.emojiMap[b])&&(!N.isLocked||S!==void 0&&S)?N:void 0};
dD=function(N,b,S){S=_.nN(N,b,S===void 0?!1:S);var P=b.match("\u200d");S&&N.skinTone!==0&&(N=(P==null?void 0:P.length)===1?_.nN(N,b.replace("\u200d",kKE[N.skinTone]+"\u200d")):_.nN(N,b+kKE[N.skinTone]))&&(S=N);return S};
fvV=function(N,b){var S=N.emojiMap[b];return(S==null?0:S.stickyPrefId)?N.emojiMap[S.stickyPrefId]:dD(N,b)};
_.vP=function(N,b){N=N.emojiShortcutMap[b.toLocaleLowerCase()];return!N||N.isLocked?null:N};
utZ=function(N,b,S){return BnZ(N,S===void 0?!1:S)[b]||{}};
BnZ=function(N,b){b=b===void 0?!1:b;if(!N.hasInitializedShortcutCharMap){N.hasInitializedShortcutCharMap=!0;for(var S=0;S<N.emojis.length;S++){var P=N.emojis[S];if(!(P.isLocked||b&&P.isCustomEmoji&&P.emojiId&&!N.pickerCustomEmojiIds.includes(P.emojiId)))for(var H=0;P.shortcuts&&H<P.shortcuts.length;H++){var K=P.shortcuts[H];K.startsWith(":_")&&P.isCustomEmoji&&(N.emojiShortcutCharMap[":_"]==null&&(N.emojiShortcutCharMap[":_"]=Object.create(null)),N.emojiShortcutCharMap[":_"][K]=P);if(!(K.length<3||
!P.isCustomEmoji&&mQc.test(K))){var C=K.substr(0,3).toLocaleLowerCase();N.emojiShortcutCharMap[C]==null&&(N.emojiShortcutCharMap[C]=Object.create(null));N.emojiShortcutCharMap[C][K]=P}}}}return N.emojiShortcutCharMap};
_.Wc.prototype.createEmoji=function(N,b){b=b===void 0?!0:b;var S=document.createElement("img");N.isCustomEmoji||S.classList.add("small-emoji");S.classList.add("emoji");S.classList.add("yt-formatted-string");S.src=N.image?_.wG(N.image.thumbnails,this.emojiSize)||"":"";var P=void 0;N.image&&N.image.accessibility&&N.image.accessibility.accessibilityData&&(P=N.image.accessibility.accessibilityData.label);S.alt=P?P:(N.isCustomEmoji&&N.shortcuts?N.shortcuts[0]:N.emojiId)||"";N.isCustomEmoji&&(S.dataset.emojiId=
N.emojiId);_.rV&&(S.setAttribute("contenteditable","false"),S.setAttribute("unselectable","on"));b&&(N.shortcuts&&N.shortcuts.length&&S.setAttribute("shared-tooltip-text",N.shortcuts[0]),S.id="emoji-"+dQk++);return S};
_.Wc.prototype.createDocumentFragment=function(N,b,S,P){b=b===void 0?!1:b;S=S===void 0?!0:S;P=P===void 0?!1:P;N=N.replace(MYO,"");for(var H=document.createDocumentFragment(),K=0,C,G=0;(C=this.emojiRegex.exec(N))!=null;){var a=_.nN(this,C[0])||_.vP(this,C[0]);!a||a.isCustomEmoji&&!b||(a=this.createEmoji(a,S),K!==C.index&&H.appendChild(document.createTextNode(N.substring(K,C.index))),H.appendChild(a),K=C.index+C[0].length,G++)}if(!P||G)return H.appendChild(document.createTextNode(N.substr(K))),H};
QIc=function(N,b,S){var P,H,K,C,G,a,R,n,d;return _.r(function(m){if(m.nextAddress==1){if(!b.emojiId||!N.emojiMap[b.emojiId])return m.return();P=Object.assign({},N.emojiMap[b.emojiId],{stickyPrefId:S});N.emojiMap[b.emojiId]=P;b.index&&((H=N.emojis[b.index])==null?void 0:H.emojiId)===b.emojiId&&(N.emojis[b.index]=P);if((K=b.shortcuts)==null?0:K.length)for(N.hasInitializedShortcutCharMap=!1,C=_.O(b.shortcuts),G=C.next();!G.done;G=C.next())a=G.value,N.emojiShortcutMap[a.toLocaleLowerCase()]=P;return m.yield(_.Hy.getInstance(),
2)}if(m.nextAddress!=4)return(R=m.yieldResult)?m.yield(R.get("ytlc-emoji-pref"),4):m.jumpTo(0);d=(n=m.yieldResult)!=null?n:{};d[b.emojiId]=S;return m.yield(R.set("ytlc-emoji-pref",d,tYV),0)})};
_.mL=new _.Wc;var ilV;_.ku={};
ilV={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.T("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.T("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new V4(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var N=_.H4(this.hostElement||this).querySelector("#inline-action-button-container");N&&N.setAttribute("aria-hidden","true");this.menuButton=_.H4(this.hostElement).querySelector("#menu-button")},
attached:function(){var N=this.menuButton;N&&(N.addEventListener("focusin",_.aA(this,this.onMenuButtonFocus_)),N.addEventListener("focusout",_.aA(this,this.onMenuButtonBlur_)))},
detached:function(){var N=this.menuButton;N&&(N.removeEventListener("focusin",_.aA(this,this.onMenuButtonFocus_)),N.removeEventListener("focusout",_.aA(this,this.onMenuButtonBlur_)))},
identity:_.iY,truthy:function(N){return!!N},
computeTimestampString:function(N){return N?N.timestampText?this.getSimpleString(N.timestampText):this.TIME_FORMATTER.format(new Date(N.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(N){return N},
computeMenuVisible_:function(N,b){return N||b},
computeHasInlineActionButtons:function(N){if(!N)return!1;var b,S;return!((b=N.inlineActionButtons)==null||!b.length)||!((S=N.additionalInlineActionButtons)==null||!S.length)},
createDocumentFragmentFromString:function(N){var b=_.mL.createDocumentFragment.bind(_.mL),S;if((S=this.participantsManager)==null||!S.viewerRegex)return b(N);S=document.createDocumentFragment();for(var P=0,H;(H=this.participantsManager.viewerRegex.exec(N))!=null;){if(H.index>0){var K=":"+H[0]+":";if((_.nN(_.mL,K)||_.vP(_.mL,K))&&N.indexOf(K)===H.index-1)continue}S.appendChild(b(N.substring(P,H.index)));P=document.createElement("span");P.appendChild(b(H[0]));P.classList.add("mention");S.appendChild(P);
P=H.index+H[0].length}S.appendChild(b(N.substring(P)));return S},
createDocumentFragment:function(N){var b=document.createDocumentFragment();if(N.simpleText)return b.appendChild(this.createDocumentFragmentFromString(N.simpleText)),b;if(!N.runs)return b;for(var S=0;S<N.runs.length;S++){var P=N.runs[S];if(P.emoji)b.appendChild(_.mL.createEmoji(P.emoji));else if(P.text)if(P.navigationEndpoint){var H=document.createElement("a");H.classList.add("yt-simple-endpoint");MFY(H,P.navigationEndpoint);_.H4(H).appendChild(this.createDocumentFragmentFromString(P.text));b.appendChild(H)}else b.appendChild(this.createDocumentFragmentFromString(P.text))}return b},
hasModerationOverlayVisible:function(){var N;return((N=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:N.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(N){N.composedPath().some(function(b){return(b=b instanceof Element?b:null)?b.tagName&&(b.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||b.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.T("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(N)},
colorFromDecimal:function(N){return I49(N)},
markAsDeleted:function(N,b){this.set("data.deletedStateMessage",N);this.set("data.showOriginalContentMessage",b)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(N){if(this.data.contextMenuEndpoint){var b=_.aN().resolve(_.ts),S=this.data.contextMenuEndpoint,P;(P=_.XM.instance)&&_.Eb(P,S)?(b=xQd(b,S),P=_.ni(P,{},b)):P=_.ozO(b,S);P.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);N&&N.stopPropagation()}},
handleGetContextMenuResponse_:function(N){var b=_.XM.instance;b&&_.Eb(b,{liveChatEndpoint:{}})||(N=N.response);N.liveChatItemContextMenuSupportedRenderers&&N.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(N.liveChatItemContextMenuSupportedRenderers.menuRenderer);N.actions&&_.St(this.hostElement,"yt-live-chat-actions",[N.actions])},
handleGetContextMenuError:function(N){if(N instanceof Error||N instanceof Object||N instanceof String)var b=N;_.ge(new _.jU("Error encountered calling GetLiveChatItemContextMenu",b))},
showContextMenu_:function(N){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.bC(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.bC(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.ku.YtLiveChatItemBehavior=[ilV,_.r2.YtComponentBehavior,_.Xo.YtOpenPopupBehavior];_.TF=function(){};var Jtz;var UQS;var ZlV;var jIz;var tR=function(){var N=_.z.apply(this,arguments)||this;N.active=!1;N.identity=_.iY;return N};
_.F(tR,_.z);tR.prototype.dataChanged=function(){this.active=!1};
tR.prototype.onClick=function(){_.bC(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
tR.prototype.dataChanged=tR.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],tR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tR.prototype,"active",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tR.prototype,"dataChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],tR);
_.X(tR,"yt-live-chat-text-input-field-suggestion",function(){if(jIz===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;ZlV===void 0&&(ZlV=document.createElement("template"));var P=ZlV;S.call(b,P.content.cloneNode(!0),N.content.firstChild);jIz=N}N=jIz;return N},{mode:0});_.MJ=function(N,b,S){return CustomEvent.call(this,N,{detail:{value:b,path:S}})||this};
_.F(_.MJ,CustomEvent);_.FO=function(){var N=_.z.apply(this,arguments)||this;N.viewerName=null;N.actionMap={"yt-live-chat-actions":"onChatMessage_"};N.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];N.PARTICIPANT_TIME_USEC_=3E8;return N};
_.F(_.FO,_.z);_.v=_.FO.prototype;_.v.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.v.addParticipant=function(N){var b=_.ZaI(this.participants,N,function(P,H){P=P[Object.keys(P)[0]];H=H[Object.keys(H)[0]];P=String(_.es(P.authorName)).toLowerCase();H=String(_.es(H.authorName)).toLowerCase();return P<H?-1:P==H?0:1}.bind(this));
if(b>=0){var S=this.participants[b];S[Object.keys(S)[0]].timestampUsec&&this.splice("participants",b,1,N)}else this.splice("participants",-b-1,0,N);N=N[Object.keys(N)[0]];b=_.es(N.authorName).toLocaleLowerCase();S=b.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(S)||(this.allParticipantsCharMap_[S]={});this.allParticipantsCharMap_[S][b]=N};
_.v.getAuthorsFromPrefix=function(N){return this.allParticipantsCharMap_.hasOwnProperty(N)?this.allParticipantsCharMap_[N]:null};
_.v.computeViewerRegex_=function(N){if(!N)return null;N=N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var b=N.indexOf("@")===0&&_.T("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(b+N.replace(/ /g,"\\s*")+"|^"+N.replace(/ /g,"\\s*")+"$|^"+N.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+N.replace(/ /g,"\\s*")+"$|(?<=\\s)"+N.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.v.checkForStaleParticipants_=function(){var N=this;this.trimOldParticipants_();this.asyncHandle_&&TfU(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.p3(function(){N.checkForStaleParticipants_()},3E4))};
_.v.onChatMessage_=function(N){var b=this,S=Date.now()*1E3;N.forEach(function(P){if(P=_.t(P,mDN)){P=P.item;var H=Object.keys(P)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(H)!=-1&&P[H].timestampUsec>=S-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(P)}},this);
this.checkForStaleParticipants_()};
_.v.trimOldParticipants_=function(){for(var N=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var S=this.participants[b];S=S[Object.keys(S)[0]];S.timestampUsec&&S.timestampUsec<N-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",b,1)}};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],_.FO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],_.FO.prototype,"viewerName",void 0);_.p([_.U({computed:"computeViewerRegex_(viewerName)"}),_.y("design:type",Object)],_.FO.prototype,"viewerRegex",void 0);_.p([_.U({value:function(){return[]},
notify:!0}),_.y("design:type",Array)],_.FO.prototype,"participants",void 0);_.p([_.J_({is:"yt-live-chat-participants-manager",noInjection:!0})],_.FO);var zN4=/.*([:@#].*?)$/,Bc=/\u00a0/g,AtO=String.fromCharCode(160),XTZ={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},l$=function(){var N=_.z.apply(this,arguments)||this;N.disabled=!1;N.liveChatRichMessageInput=null;N.messageInput=null;N.isValidWithNoInputText=!1;N.suggestions=[];N.emojiManager=_.mL;N.inputMethodEditorActive=
!1;N.suggestionIndex=-1;N.JSC$14462_lastSuggestionRange=null;return N};
_.F(l$,_.z);_.v=l$.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.v.attached=function(){_.B_&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.v.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.v.dataChanged=function(){if(!this.ignoreColorMapping){var N=!1,b={},S;for(S in XTZ)this.data&&this.data.hasOwnProperty(S)&&(b[XTZ[S]]=this.colorFromDecimal(this.data[S]),N=!0);N&&_.rq(this.hostElement,b)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.v.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.v.colorFromDecimal=function(N){N=Math.floor(Number(N));return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
_.v.preventDrag=function(N){N.dataTransfer&&(N.dataTransfer.dropEffect="none");N.preventDefault()};
_.v.preventResize=function(N){N.returnValue=!1};
_.v.onInputChange=function(){var N=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var S=window.getSelection();if(S){var P=S.getRangeAt(0);S.removeAllRanges();S.addRange(P)}}if(S=this.getCurrentRange())P=this.calculateTextBeforeRange(S),this.completeEmojisInRange(S,P,!0)||this.updateSuggestions(S,P);P=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(P);
_.bC(this.hostElement,"yt-live-chat-message-input-change",P);b&&this.characterCount===0&&b.remove();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>N):S&&!S.collapsed&&S.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(N=this.input.childNodes.length-1;N>=0;N--)this.input.childNodes[N].nodeName==="BR"&&this.input.childNodes[N].remove()};
_.v.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.v.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var N=this.getCurrentRange();N&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.mergeOverflowText=function(N){if(N){var b=document.createRange();b.selectNodeContents(N);b=b.extractContents();this.input.insertBefore(b,N)}};
_.v.checkRangeAtEndOfInput=function(){var N=this.getCurrentRange();if(N){var b=_.H4(this.hostElement).querySelector("#overflow-text"),S=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?S.selectNode(b.previousSibling):S.selectNodeContents(b.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?S.selectNode(this.input.lastChild):S.selectNodeContents(this.input.lastChild));S.collapse(!1);return S.isPointInRange(N.startContainer,
N.startOffset)}return!1};
_.v.handleOverflowText=function(N){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=_.H4(this.hostElement).querySelector("#overflow-text"),S=this.getCurrentRange();this.input.normalize();N=this.checkRangeAtEndOfInput()&&N;this.mergeOverflowText(b);for(var P,H=0,K=0,C,G=this.input.childNodes,a=0;a<G.length;a++){var R=G[a];R instanceof Text?(K+=R.textContent.length,K>this.maxCharacterLimit&&(P=R,H=this.maxCharacterLimit+R.textContent.length-K)):R instanceof HTMLImageElement&&
(P=void 0,K=R.dataset.emojiId&&((P=this.data)==null?0:P.emojiCharacterCount)?K+this.data.emojiCharacterCount:K+R.alt.length,P=this.input,H=a);if(K>this.maxCharacterLimit&&P){C=document.createRange();C.collapse(!1);b?(K=this.input.lastChild.previousSibling,K instanceof Text?C.setEnd(this.input.lastChild.previousSibling,K.textContent.length):K instanceof HTMLImageElement&&C.setEnd(this.input,this.input.childNodes.length-1)):C.selectNodeContents(this.input);C.setStart(P,H);break}}C&&(P=!1,S&&(N=C.isPointInRange(S.startContainer,
S.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),_.H4(_.H4(this.hostElement).querySelector("#input")).appendChild(b),P=!0),b&&(S=C.extractContents(),b.insertBefore(S,b.firstChild),N&&b.firstChild&&(S=document.createRange(),P?S.setStartAfter(b.lastChild):S.setStartAfter(b.firstChild),S.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(S))))}};
_.v.checkForDuplicateSpans=function(){for(var N=0;N<this.input.childNodes.length;N++){var b=this.input.childNodes[N];if(b.nodeName==="SPAN"){var S=document.createRange();S.selectNodeContents(b);S=S.extractContents();this.input.insertBefore(S,b);b.remove()}}this.handleOverflowText(!0)};
_.v.getCurrentRange=function(){var N=window.getSelection();return N&&N.rangeCount?N.getRangeAt(0).cloneRange():null};
_.v.getInputRange=function(){var N=this.getCurrentRange();if(N){for(var b=N.commonAncestorContainer,S=!1,P=_.H4(this.hostElement).querySelector("#input");b;){if(b===P){S=!0;break}b=b.parentNode}S||(N=null)}N||(N=this.getRangeAtEnd());return N};
_.v.getRangeAtEnd=function(){var N=document.createRange(),b=_.H4(this.hostElement).querySelector("#input").lastChild;!b||b.nodeName!=="#text"&&b.nodeName!=="SPAN"?(N.selectNodeContents(_.H4(this.hostElement).querySelector("#input")),N.collapse(!1)):b.nodeName==="#text"?N.setStart(b,b.textContent.length):N.setStart(b,b.childNodes.length);return N};
_.v.getChatParticipantSuggestions=function(N,b,S,P){var H=_.T("live_chat_enable_handles_web_text_input_update");if(b)for(var K in b)if(K.indexOf(N)===0||H&&K.indexOf(S+N)===0){var C=b[K],G=_.es(C.authorName);P.push({suggestion:{author:!0,authorType:S,image:C.authorPhoto,alt:G,text:G}});if(P.length>=64)break}};
_.v.getSuggestions=function(N){var b=[],S=N.substring(0,3),P=utZ(_.mL,S,!0);if(P)for(var H in P)if(H.toLocaleLowerCase().indexOf(N)===0){var K=P[H];if(K&&K.emojiId){if(K=fvV(_.mL,K.emojiId)){var C=void 0,G=void 0,a=void 0,R=void 0,n=((C=K.image)==null?0:(G=C.accessibility)==null?0:(a=G.accessibilityData)==null?0:a.label)||K.isCustomEmoji?(R=K.shortcuts)==null?void 0:R[0]:K.emojiId;b.push({suggestion:{emoji:!0,image:K.image,alt:n,text:H,textToInsertWhenSelected:K.isCustomEmoji?H:n}})}if(b.length>=
64)break}}if(!this.participantsManager)return null;if(S.indexOf("@")===0||S.indexOf("#")===0)P=S.charAt(0),N=N.substring(1),H=_.T("live_chat_enable_handles_web_text_input_update"),S.indexOf("@")===0&&H&&(H=this.participantsManager.getAuthorsFromPrefix(S.substring(0,2)),this.getChatParticipantSuggestions(N,H,P,b)),S=S.substring(1),S=this.participantsManager.getAuthorsFromPrefix(S),this.getChatParticipantSuggestions(N,S,P,b);return b?b.sort(function(d,m){return m.suggestion.text<d.suggestion.text?-1:
m.suggestion.text===d.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(N){var b=_.T("live_chat_enable_handles_web_text_input_update"),S=N.authorType;b=N.text.indexOf(S)===0&&b?N.text+AtO:S+N.text+AtO;N.emoji?this.insertTextAtRange(this.JSC$14462_lastSuggestionRange,N.textToInsertWhenSelected||""):N.author&&this.insertTextAtRange(this.JSC$14462_lastSuggestionRange,b)};
_.v.updateSuggestionsAtCaret=function(){var N=this.getCurrentRange();N&&this.updateSuggestions(N,this.calculateTextBeforeRange(N))};
_.v.offsetStartOfRangeBy=function(N,b){for(;b>0;)if(N.startOffset-b>=0){N.setStart(N.startContainer,N.startOffset-b);break}else{b=N.startContainer instanceof HTMLImageElement?b-N.startContainer.alt.length:b-N.startOffset;var S=N.startContainer.previousSibling;if(!S){N.setStart(N.startContainer,0);break}if(_.T("live_chat_require_space_for_autocomplete_emoji")){var P=void 0,H=void 0;N.setStart(S,((P=S)==null?void 0:(H=P.textContent)==null?void 0:H.length)||0)}else N.setStart(S,S.childNodes.length||
0)}};
_.v.updateSuggestions=function(N,b){var S=this;this.JSC$14462_lastSuggestionRange&&(this.JSC$14462_lastSuggestionRange.detach(),this.JSC$14462_lastSuggestionRange=null);if((b=zN4.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(N,b.length),this.JSC$14462_lastSuggestionRange=N,(N=this.getSuggestions(b))&&N.length))){this.suggestions=N;_.W_(this,function(){_.H4(S.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(N.length-1);return}this.dropdown.opened=!1};
_.v.completeEmojisInRange=function(N,b,S){var P=b.replace(/[\s\xa0]+$/,"");b=b.length-P.length;P=P.split(" ");P=P[P.length-1].trim().toLocaleLowerCase();var H=P.lastIndexOf(":");if(S&&!b&&H!==P.length-1)return!1;H!==-1&&(S=P.lastIndexOf(":",H-1),S!==-1&&(P=P.substring(S)));if((S=_.vP(_.mL,P))&&S.emojiId){S=fvV(_.mL,S.emojiId)||null;this.offsetStartOfRangeBy(N,P.length+b);var K,C,G,a;P=(((K=S)==null?0:K.isCustomEmoji)?(C=S)==null?void 0:(G=C.shortcuts)==null?void 0:G[0]:(a=S)==null?void 0:a.emojiId)||
"";b&&(P+=AtO);this.insertTextAtRange(N,P);this.dropdown.opened=!1;return!0}return!1};
_.v.onSuggestion=function(N){this.insertSuggestion(N.detail);this.dropdown.opened=!1};
_.v.onKeyPress=function(N){N.keyCode===13&&(N.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.bC(this.hostElement,"yt-live-chat-send-message"))};
_.v.completeEmojis=function(){var N=document.createRange(),b=_.H4(this.hostElement).querySelector("#input").lastChild;b?N.setStart(b,b.childNodes.length):(N.selectNodeContents(_.H4(this.hostElement).querySelector("#input")),N.collapse(!1));this.completeEmojisInRange(N,this.calculateTextBeforeRange(N),_.T("live_chat_require_space_for_autocomplete_emoji"))};
_.v.maybePreventTextFormatting=function(N){!_.R9||!N.ctrlKey&&!N.metaKey||N.keyCode!==66&&N.keyCode!==73||(N.stopImmediatePropagation(),N.preventDefault())};
_.v.onKeyDown=function(N){this.maybePreventTextFormatting(N);if(this.dropdown.opened)switch(N.keyCode){case 27:this.dropdown.opened=!1;N.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;N.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);N.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),N.preventDefault()}};
_.v.onKeyUp=function(N){switch(N.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.rV)this.onInputChange()};
_.v.changeSuggestionIndex=function(N){if(this.dropdown.opened){var b=_.H4(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<b.children.length&&(b.children[this.suggestionIndex].active=!1);var S=this.suggestions.length;this.suggestionIndex=(N+S)%S;N=b.children[this.suggestionIndex];N.active=!0;b.scrollTop=N.offsetTop}};
_.v.onInputPaste=function(N){N.preventDefault();(N=N.clipboardData)&&N.types&&(N=N.getData("text/plain")||"",N=N.replace(/\n/g,""),this.insertText(N));(N=this.getCurrentRange())&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.onFocus=function(){this._setFocused(!0)};
_.v.onBlur=function(){this._setFocused(!1)};
_.v.insertText=function(N){this.insertTextAtRange(this.getInputRange(),N)};
_.v.insertTextAtRange=function(N,b){if(N&&(N.collapsed||N.deleteContents(),b=_.mL.createDocumentFragment(b,!0,!1))){for(var S=_.O((b==null?void 0:b.childNodes)||[]),P=S.next();!P.done;P=S.next()){P=P.value;var H=void 0,K=void 0,C=void 0,G=void 0,a=void 0;(C=(H=window)==null?void 0:(K=H.ShadyCSS)==null?void 0:K.ScopingShim)==null||(a=(G=C).scopeNode)==null||a.call(G,P,this.hostElement.localName)}S=b.lastChild;N.insertNode(b);this.focused||this.input.focus();if(this.focused){N=N.cloneRange();N.selectNodeContents(S);
N.collapse(!1);if(b=window.getSelection())b.removeAllRanges(),b.addRange(N);N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}N=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(N);_.bC(this.hostElement,"yt-live-chat-message-input-change",N)}};
_.v.setLiveChatRichMessageInput=function(N){_.H4(_.H4(this.hostElement).querySelector("#input")).textContent="";if(N&&N.textSegments){for(var b=0;b<N.textSegments.length;b++){var S=N.textSegments[b];S.text?_.H4(_.H4(this.hostElement).querySelector("#input")).appendChild(_.mL.createDocumentFragment(S.text,!0,!1)):S.emojiId&&(S=_.nN(_.mL,S.emojiId))&&_.H4(_.H4(this.hostElement).querySelector("#input")).appendChild(_.mL.createEmoji(S,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.v.setText=function(N){this.setLiveChatRichMessageInput(N?{textSegments:[{text:N}]}:null)};
_.v.calculateTextBeforeRange=function(N){var b="",S=N.startContainer;if(S&&S instanceof Text){var P;b=((P=S.textContent)==null?void 0:P.substring(0,N.startOffset))||"";S=S.previousSibling}for(;S&&S instanceof Text;)b=S.textContent+b,S=S.previousSibling;return b.replace(Bc," ")};
_.v.calculateLiveChatRichMessageInput=function(){for(var N=[],b="",S=_.H4(_.H4(this.hostElement).querySelector("#input")).childNodes,P=0;P<S.length;P++){var H=S[P];H instanceof Text?b+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(b&&(N.push({text:b.replace(Bc," ")}),b=""),N.push({emojiId:H.dataset.emojiId})):b+=H.alt)}b&&N.push({text:b.replace(Bc," ")});if(S=_.H4(this.hostElement).querySelector("#overflow-text")){b="";S=S.childNodes;for(P=0;P<S.length;P++)H=S[P],H instanceof Text?
b+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(b&&(N.push({text:b.replace(Bc," ")}),b=""),N.push({emojiId:H.dataset.emojiId})):b+=H.alt);b&&N.push({text:b.replace(Bc," ")})}return{textSegments:N}};
_.v.computeCharacterCount=function(N){if(!N||!N.textSegments)return 0;for(var b=0,S=0;S<N.textSegments.length;S++){var P=N.textSegments[S];if(P.text)b+=P.text.length;else if(P.emojiId){var H=void 0;if((H=this.data)==null?0:H.emojiCharacterCount)b+=this.data.emojiCharacterCount;else{var K=H=void 0,C=void 0;b+=((K=_.nN(_.mL,(H=P)==null?void 0:H.emojiId))==null?void 0:(C=K.shortcuts)==null?void 0:C[0].length)||0}}}return b};
_.v.characterCountChanged=function(){_.bC(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.v.focusedChanged=function(){this.hostElement.dispatchEvent(new _.MJ("focused-changed",this.focused))};
_.v.focus=function(){this.setFocus(!1)};
_.v.focusAtEnd=function(){this.setFocus(!0)};
_.v.setFocus=function(N){N=N?this.getRangeAtEnd():this.getInputRange();_.H4(this.hostElement).querySelector("#input").focus();var b=window.getSelection();b&&(b.removeAllRanges(),b.addRange(N))};
_.v.insertEmoji=function(N){var b,S=((N==null?0:N.isCustomEmoji)?(b=N.shortcuts)==null?void 0:b[0]:N==null?void 0:N.emojiId)||"";this.insertText(S)};
_.v.computeText=function(N){if(!N||!N.textSegments)return"";for(var b="",S=0;S<N.textSegments.length;S++){var P=N.textSegments[S];if(P.text)b+=P.text;else if(P.emojiId){var H=void 0,K=void 0,C=void 0;b+=((K=_.nN(_.mL,(H=P)==null?void 0:H.emojiId))==null?void 0:(C=K.shortcuts)==null?void 0:C[0])||""}}return b};
_.v.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.d0.Object.defineProperties(l$.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
l$.prototype.focusedChanged=l$.prototype.focusedChanged;l$.prototype.characterCountChanged=l$.prototype.characterCountChanged;l$.prototype.onSuggestion=l$.prototype.onSuggestion;l$.prototype.onMessageSet=l$.prototype.onMessageSet;l$.prototype.dataChanged=l$.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],l$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],l$.prototype,"disabled",void 0);_.p([_.f("disabled"),_.y("design:type",Number),_.y("design:paramtypes",[])],l$.prototype,"inputTabIndex",null);_.p([_.f("data.maxCharacterLimit"),_.U({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],l$.prototype,"maxCharacterLimit",null);
_.p([_.f("liveChatRichMessageInput"),_.U({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],l$.prototype,"characterCount",null);_.p([_.f("maxCharacterLimit, characterCount"),_.U({readOnly:!0,notify:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],l$.prototype,"remainingCharacterCount",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],l$.prototype,"isChatMessageInput",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],l$.prototype,"inputExpanded",void 0);_.p([_.U({readOnly:!0,notify:!0}),_.y("design:type",Object)],l$.prototype,"liveChatRichMessageInput",void 0);_.p([_.U(),_.y("design:type",Object)],l$.prototype,"messageInput",void 0);_.p([_.U(),_.y("design:type",Boolean)],l$.prototype,"ignoreColorMapping",void 0);_.p([_.f("characterCount"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],l$.prototype,"hasText",null);
_.p([_.U(),_.y("design:type",Object)],l$.prototype,"isValidWithNoInputText",void 0);_.p([_.f("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.U(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],l$.prototype,"isInputValid",null);_.p([_.U({readOnly:!0,value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],l$.prototype,"focused",void 0);_.p([_.U(),_.y("design:type",Array)],l$.prototype,"suggestions",void 0);
_.p([_.U(),_.y("design:type",_.Wc)],l$.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",_.FO)],l$.prototype,"participantsManager",void 0);_.p([_.U(),_.y("design:type",Boolean)],l$.prototype,"noUnderline",void 0);_.p([_.U(),_.y("design:type",Object)],l$.prototype,"inputMethodEditorActive",void 0);_.p([_.dq("#dropdown"),_.y("design:type",Object)],l$.prototype,"dropdown",void 0);_.p([_.dq("#input"),_.y("design:type",HTMLElement)],l$.prototype,"input",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l$.prototype,"dataChanged",null);_.p([_.W4("messageInput"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l$.prototype,"onMessageSet",null);_.p([_.RA("yt-live-chat-select-suggestion"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],l$.prototype,"onSuggestion",null);
_.p([_.W4("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l$.prototype,"characterCountChanged",null);_.p([_.W4("focused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],l$.prototype,"focusedChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],l$);
_.EzV=_.X(l$,"yt-live-chat-text-input-field-renderer",function(){if(UQS===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;Jtz===void 0&&(Jtz=document.createElement("template"));var P=Jtz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);UQS=N}N=UQS;return N},{mode:0});var LN=function(){var N=_.z.apply(this,arguments)||this;N.buttonOverrides={style:"overlay",type:"filled"};N.allowAnimations=!1;N.modern=_.T("web_button_rework_with_live");N.noPadding=!1;return N};
_.F(LN,_.z);_.v=LN.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.v.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.attached=function(){this.allowAnimations=!1};
_.v.dataChanged=function(){if(this.data){var N={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.rq(this.hostElement,N);this.allowAnimations=!0}};
_.v.messageChanged=function(){var N,b=(N=this.data)==null?void 0:N.message;N=_.H4(_.H4(this.hostElement).querySelector("#message"));N.textContent="";b&&N.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.v.computeShowOnlyHeader=function(N,b){return!N||N.pdgLikeButton||N.replyButton||N.buyFlowButton?!1:this.isEmpty(N,b)&&!N.footer};
_.v.computeShowFooterDivider=function(N,b,S){return N?!!N.footer&&!this.isEmpty(N,b)&&!S:!1};
_.v.computeIsUserEditable=function(N){return!!N.inputField};
_.v.computeHasHeartButton=function(N){return(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.v.computeNoveltyImage=function(N){if(N.headerOverlayImage&&N.headerOverlayImage.thumbnails.length){var b=N.headerOverlayImage.thumbnails[0],S,P;if((S=N.pdgPurchasedNoveltyLoggingDirectives)==null?0:(P=S.loggingDirectives)==null?0:P.trackingParams){var H,K;wa9((H=N.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(K=H.loggingDirectives)==null?void 0:K.trackingParams)}return b.width||0}return 0};
_.v.computeAuthorPhotoSize=function(N){return(N==null?0:N.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.v.inputFocus=function(){var N=_.H4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");N&&N.focus()};
_.v.inputInsertEmoji=function(N){var b=_.H4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.insertEmoji(N)};
_.v.inputMessage=function(){var N=_.H4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),b;return N&&((b=this.data)==null?0:b.inputField)?(N.completeEmojis(),_.ja(N.liveChatRichMessageInput)):null};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.v.isEmpty=function(N,b){return N?N.empty||!(N.message||N.inputField||b):!0};
_.v.onLowerBuyButtonClick=function(){var N,b=_.t((N=this.data)==null?void 0:N.buyButton,_.rU);b&&b.trackingParams&&!Vva(b.command)&&(N=_.FA(b.trackingParams))&&(b=_.Qh())&&_.y3(b,N)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.d0.Object.defineProperties(LN.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
LN.prototype.isDeletedChanged=LN.prototype.isDeletedChanged;LN.prototype.messageChanged=LN.prototype.messageChanged;LN.prototype.dataChanged=LN.prototype.dataChanged;_.p([_.L(Ca9.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],LN.prototype,"ytPdgLiveChatItemBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],LN.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],LN.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],LN.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hkO}),_.y("design:type",Object)],LN.prototype,"engagementState",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.y("design:type",Boolean)],LN.prototype,"isUserEditable",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.y("design:type",Boolean)],LN.prototype,"hasHeartButton",void 0);_.p([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Boolean)],LN.prototype,"showOnlyHeader",void 0);
_.p([_.U({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.y("design:type",Boolean)],LN.prototype,"showFooterDivider",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],LN.prototype,"allowAnimations",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],LN.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({computed:"computeNoveltyImage(data)"}),_.y("design:type",Number)],LN.prototype,"noveltyWidth",void 0);
_.p([_.U({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],LN.prototype,"authorPhotoSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],LN.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],LN.prototype,"noPadding",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LN.prototype,"dataChanged",null);
_.p([_.W4("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LN.prototype,"messageChanged",null);_.p([_.f("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LN.prototype,"hideLowerBumper",null);_.p([_.W4("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LN.prototype,"isDeletedChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],LN);
_.X(LN,"yt-live-chat-paid-message-renderer",function(){if(VQk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Da9===void 0&&(Da9=document.createElement("template"));var P=Da9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);VQk=N}N=VQk;return N},{mode:0});var pTN;var Yt9;var fN=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;return N};
_.F(fN,_.kq);fN.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Vg("openPopupConfig")};
_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],fN.prototype,"ytOpenPopupBehavior",void 0);_.p([_.Td()],fN);_.u$=[_.Xo.YtOpenPopupBehavior,fN.prototype];var ytN;var cys=[_.Wd,gSd,_.ZM,_.KLk,_.DG,_.nMd,_.vC,_.kn,_.nX,_.lik,_.Iv];_.T("web_show_ep_endpoint_response_received")&&cys.push(_.U_);var CRb=new _.nO("RESPONSE_RECEIVED_COMMANDS"),ryU=new _.nO("RESPONSE_RECEIVED_COMMANDS");var HKb="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),PgY=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],S4U=["GET_UNSEEN_NOTIFICATION_COUNT"];var Qe=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;N.serviceEndpointHandlers=[];return N};
_.F(Qe,_.kq);Qe.prototype.created=function(){var N=this;this.endpointHandlerActionMap={"yt-service-request":function(b,S,P,H){var K;return bKs(N.hostElement,b,S,P,H,N.serviceEndpointHandlers,(K=N.onEntitiesUpdated)==null?void 0:K.bind(N))}}};
Qe.prototype.attached=function(){_.Kt(_.sX.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Qe.prototype.detached=function(){_.vz(_.sX.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.p([_.Td()],Qe);_.IvN=[Qe.prototype];var DQO,VYE=function(){return DQO!==void 0?DQO:DQO=document.createElement("template")};
document.head.appendChild(VYE().content);var gzO;var eN9=document.head,$QE=eN9.appendChild,hN9;if(gzO===void 0){var qt4=document.createElement("template");_.B(qt4,"\x3c!--css-build:shady--\x3e");qt4.content.insertBefore(VYE().content.cloneNode(!0),qt4.content.firstChild);gzO=qt4}hN9=gzO;$QE.call(eN9,hN9.content);var wTE,Nwz=function(){return wTE!==void 0?wTE:wTE=document.createElement("template")};
document.head.appendChild(Nwz().content);var bKk;var S4b=document.head,PgE=S4b.appendChild,HKV;if(bKk===void 0){var s19=document.createElement("template");_.B(s19,"\x3c!--css-build:shady--\x3e");s19.content.insertBefore(Nwz().content.cloneNode(!0),s19.content.firstChild);bKk=s19}HKV=bKk;PgE.call(S4b,HKV.content);var KF9;_.lo("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.lo("sharingRendererButtons","buttonRenderer","ytd-button-renderer");KF9=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live");_.xu=function(){var N=_.z.apply(this,arguments)||this;N.isPressed=!1;N.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return N};
_.F(_.xu,_.z);_.v=_.xu.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.onHintIdChanged=function(){var N=this,b,S,P=(b=this.ytButtonBehavior.data)==null?void 0:(S=b.hint)==null?void 0:S.hintRenderer;if(P&&P.hintId){b=_.PN(this.hostElement,"yt-get-opened-popups-action");b=(b&&b.length===1?b[0]:[]).length>0;var H=null;P.hintId!=="sponsor-pre-purchase"||b?P.hintId.startsWith("sponsor-post-purchase")&&!b?H=$VO("membership-manage"):P.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!b&&(H=$VO("membership-freebie-join")):H=$VO("membership-join");H&&_.Dj.addLowPriorityJob(function(){for(var K=
_.O(H),C=K.next();!C.done;C=K.next())N.ytComponentBehavior.resolveCommand(C.value)})}};
_.v.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.v.onYtNavigate=function(N){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);b&&(N.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.v.onYtServiceRequestSent=function(N,b){this.handleServiceRequestActions(b);_.bC(this.hostElement,"yt-service-request-sent-button-renderer")};
_.v.onServiceRequestCompleted=function(N,b){this.handleServiceRequestActions(b);_.bC(this.hostElement,"yt-service-request-completed-button-renderer")};
_.v.updateButton=function(N){var b;if(N=(b=_.t(N,AFk))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=_.t(N,_.rU)};
_.v.handleUpdateButtonAction=function(N){var b=this.ytButtonBehavior.data;b.targetId&&N.updateButtonAction.targetId&&b.targetId===N.updateButtonAction.targetId&&this.updateButton(N)};
_.v.handleServiceRequestActions=function(N){if(N=N.actions)for(var b=0;b<N.length;b++)this.updateButton(N[b])};
_.d0.Object.defineProperties(_.xu,{template:{configurable:!0,enumerable:!0,get:function(){if(ytN===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);ytN=N}N=ytN;return N}}});
_.xu.prototype.onServiceRequestCompleted=_.xu.prototype.onServiceRequestCompleted;_.xu.prototype.onYtServiceRequestSent=_.xu.prototype.onYtServiceRequestSent;_.xu.prototype.onYtNavigate=_.xu.prototype.onYtNavigate;_.xu.prototype.onPressedStateChanged=_.xu.prototype.onPressedStateChanged;_.xu.prototype.onHintIdChanged=_.xu.prototype.onHintIdChanged;_.p([_.U(),_.y("design:type",Object)],_.xu.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],_.xu.prototype,"isPressed",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],_.xu.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.cE9.YtButtonBehavior),_.y("design:type",Object)],_.xu.prototype,"ytButtonBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],_.xu.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],_.xu.prototype,"ytComponentBehavior",void 0);
_.p([_.L(qZ.YtRenderButtonBehavior),_.y("design:type",Object)],_.xu.prototype,"ytRenderButtonBehavior",void 0);_.p([_.W4("data.hint.hintRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.xu.prototype,"onHintIdChanged",null);_.p([_.W4("isPressed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],_.xu.prototype,"onPressedStateChanged",null);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],_.xu.prototype,"onYtNavigate",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],_.xu.prototype,"onYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],_.xu.prototype,"onServiceRequestCompleted",null);_.p([_.Uj({is:"ytd-button-renderer",disableElementRegistration:KF9})],_.xu);var oH=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.F(oH,_.z);_.v=oH.prototype;_.v.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.v.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.dataChanged=function(){if(this.data&&this.data.sticker){var N=_.wG(this.data.sticker.thumbnails,this.stickerWidth);N||_.mxu(N).thenCatch(function(){_.$h(new _.jU("Failed to load Super Sticker with url",N))})}};
_.v.computeAuthorPhotoSize=function(N){return(N==null?0:N.isV2Style)?32:40};
_.v.computeIsV2Style=function(N){return(N==null?0:N.isV2Style)?!0:!1};
_.v.onStickerLoaded=function(N){var b,S,P;(b=_.gQ(N))==null||(S=b.parentNode)==null||(P=S.classList)==null||P.add("sticker-loaded")};
_.v.computeNoveltyImageWidth=function(N){var b,S;if(N==null?0:(b=N.headerOverlayImage)==null?0:(S=b.thumbnails)==null?0:S.length){b=N.headerOverlayImage.thumbnails[0];var P,H;if((P=N.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=P.loggingDirectives)==null?0:H.trackingParams){var K,C;wa9((K=N.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(C=K.loggingDirectives)==null?void 0:C.trackingParams)}return b.width||0}return 0};
_.v.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.v.updateStickerStyles=function(){var N=this.data;N&&(N={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.authorNameTextColor)},
_.rq(this.hostElement,N))};
_.v.onBuyButtonClick=function(){var N,b=_.t((N=this.data)==null?void 0:N.buyButton,_.rU);b&&!Vva(b.command)&&this.ytRendererBehavior.logExplicitClick(b)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.d0.Object.defineProperties(oH.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
oH.prototype.updateStickerStyles=oH.prototype.updateStickerStyles;oH.prototype.isDeletedChanged=oH.prototype.isDeletedChanged;oH.prototype.onStickerLoaded=oH.prototype.onStickerLoaded;oH.prototype.dataChanged=oH.prototype.dataChanged;_.p([_.L(Ca9.YtPdgLiveChatItemBehavior),_.y("design:type",Object)],oH.prototype,"ytPdgLiveChatItemBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],oH.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oH.prototype,"data",void 0);
_.p([_.U({computed:"computeAuthorPhotoSize(data)"}),_.y("design:type",Number)],oH.prototype,"authorPhotoSize",void 0);_.p([_.U(),_.y("design:type",Boolean)],oH.prototype,"isDeleted",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],oH.prototype,"dashboardMoneyFeed",void 0);_.p([_.U({computed:"computeNoveltyImageWidth(data)"}),_.y("design:type",Number)],oH.prototype,"noveltyWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oH.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.y("design:type",Boolean)],oH.prototype,"isV2Style",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oH.prototype,"dataChanged",null);_.p([_.RA("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oH.prototype,"onStickerLoaded",null);
_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],oH.prototype,"stickerWidth",null);_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],oH.prototype,"stickerHeight",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oH.prototype,"hasHeartButton",null);_.p([_.f("data","dashboardMoneyFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oH.prototype,"hideLowerBumper",null);
_.p([_.W4("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oH.prototype,"isDeletedChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oH.prototype,"updateStickerStyles",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],oH);
_.X(oH,"yt-live-chat-paid-sticker-renderer",function(){if(Yt9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;pTN===void 0&&(pTN=document.createElement("template"));var P=pTN;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Yt9=N}N=Yt9;return N},{mode:0});var vi9;var OK9;var Cg9,GCZ=function(){return Cg9!==void 0?Cg9:Cg9=document.createElement("template")};
document.head.appendChild(GCZ().content);var ryb,cyk=function(){return ryb!==void 0?ryb:ryb=document.createElement("template")};
document.head.appendChild(cyk().content);var a8Z;var RB4,WFc=function(){return RB4!==void 0?RB4:RB4=document.createElement("template")};
document.head.appendChild(WFc().content);var ni9;var dxS=document.head,mxz=dxS.appendChild,kCE;if(ni9===void 0){var TwS=document.createElement("template");_.B(TwS,"\x3c!--css-build:shady--\x3e");TwS.content.insertBefore(WFc().content.cloneNode(!0),TwS.content.firstChild);ni9=TwS}kCE=ni9;mxz.call(dxS,kCE.content);var tP9=document.head,MPd=tP9.appendChild,FFS;if(a8Z===void 0){var i$=document.createElement("template");_.B(i$,"\x3c!--css-build:shady--\x3e");i$.content.insertBefore(cyk().content.cloneNode(!0),i$.content.firstChild);i$.content.insertBefore(GCZ().content.cloneNode(!0),i$.content.firstChild);a8Z=i$}FFS=a8Z;MPd.call(tP9,FFS.content);var JR=function(){var N=_.kq.apply(this,arguments)||this;N.focusedIndex=0;N.verticalOffset=0;N.verticalAlign="top";N.dynamicAlign=!0;return N};
_.F(JR,_.kq);JR.prototype.emojiUrl=function(N){N=_.nN(this.emojiManager,N);if(!N)return"";var b;N=(b=N.image)==null?void 0:b.thumbnails;return _.wG(N,24)||""};
var Bwb=function(N){var b;N.emojiVariants&&(b=N.data)!=null&&b.target&&_.W_(N,function(){N.set("verticalOffset",-1*N.hostElement.clientHeight);var S=_.H4(N.hostElement).querySelector("img");S&&S.focus()})};
_.v=JR.prototype;_.v.onKeyboardEnter=function(){};
_.v.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.v.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.v.onKeyDown=function(N){switch(N.keyCode){case 13:this.onKeyboardEnter();N.preventDefault();break;case 40:this.changeFocus(1);N.preventDefault();break;case 38:this.changeFocus(-1);N.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.v.onYtEmojiSelect=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1)return P=(S=b.data)==null?void 0:S.emoji,C=((H=P)==null?void 0:H.stickyPrefId)||((K=P)==null?void 0:K.emojiId),a=(G=N.detail)==null?void 0:G.emojiId,C&&a&&C!==a?n.yield((R=b.emojiManager)==null?void 0:QIc(R,P,a),2):n.return();_.St(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[P,a]);_.Zd(n)})};
_.v.changeFocus=function(N){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+N+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(N=_.H4(this.hostElement).querySelector("#variants"))&&N.children[this.focusedIndex].focus())};
_.d0.Object.defineProperties(JR.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
JR.prototype.onYtEmojiSelect=JR.prototype.onYtEmojiSelect;JR.prototype.onKeyDown=JR.prototype.onKeyDown;JR.prototype.onEmojiVariantsChanged=JR.prototype.onEmojiVariantsChanged;JR.prototype.onVerticalOffsetOrPositionTargetChanged=JR.prototype.onVerticalOffsetOrPositionTargetChanged;_.p([_.L(_.cS),_.y("design:type",Object)],JR.prototype,"ironOverlayBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",_.Wc)],JR.prototype,"emojiManager",void 0);
_.p([_.U(),_.y("design:type",Object)],JR.prototype,"emojiVariants",void 0);_.p([_.U(),_.y("design:type",Object)],JR.prototype,"focusedIndex",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],JR.prototype,"positionTarget",null);_.p([_.U({reflectToAttribute:!0}),_.f("verticalOffset","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],JR.prototype,"isPositioned",null);_.p([_.U(),_.y("design:type",Object)],JR.prototype,"verticalOffset",void 0);
_.p([_.U(),_.y("design:type",Object)],JR.prototype,"verticalAlign",void 0);_.p([_.U(),_.y("design:type",Object)],JR.prototype,"dynamicAlign",void 0);_.p([_.W4("verticalOffset","positionTarget"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JR.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.p([_.W4("emojiVariants"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JR.prototype,"onEmojiVariantsChanged",null);
_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],JR.prototype,"onKeyDown",null);_.p([_.RA("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],JR.prototype,"onYtEmojiSelect",null);_.p([_.Td()],JR);var l89=[JR.prototype];var LFS;var f8b;var uYE=/medium-light|medium-dark|light|medium|dark/,Q1d=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,xxz=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),UM=function(){var N=_.z.apply(this,arguments)||this;N.userSelection={left:null,right:null};N.scrollAction="lock";N.isEmojiDraftInProgress=!1;return N};
_.F(UM,_.z);_.v=UM.prototype;_.v.onClick=function(N){N=_.gQ(N);N instanceof HTMLImageElement&&this.selectOrUpdateEmoji(N)};
_.v.selectOrUpdateEmoji=function(N){var b=N.getAttribute("selection");b&&(b==="default"?_.bC(this.hostElement,"yt-emoji-select",_.nN(this.emojiManager,N.id)):b==="left"?this.userSelection=Object.assign({},this.userSelection,{left:N.src}):b==="right"?this.userSelection=Object.assign({},this.userSelection,{right:N.src}):b==="user"&&this.userSelection.left&&this.userSelection.right&&_.bC(this.hostElement,"yt-emoji-select",_.nN(this.emojiManager,N.id)))};
_.v.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.v.onMultiSelectorThumbnailRowChanged=function(){var N,b,S;((N=this.data)==null?0:(b=N.emoji)==null?0:(S=b.multiSelectorThumbnailRow)==null?0:S.length)&&this.openSelector()};
_.v.getThumbnailFromEmojiRow=function(N){var b,S;return(N==null?void 0:(b=N.thumbnails)==null?void 0:(S=b[0])==null?void 0:S.url)||""};
_.v.getEmojiAltTextForPartialSelector=function(N){var b;return((b=this.getThumbnailFromEmojiRow(N).match(Q1d))==null?void 0:b[0])||""};
_.v.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.v.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.v.getRowSelection=function(N){return["left","right"][N]};
_.v.getIdFromComposedEmoji=function(N){return(N==null?void 0:N.emojiId)||""};
_.v.getEmojiFromPartialSelections=function(N,b){if(!N&&!b)return null;var S,P,H=(S=this.data)==null?void 0:(P=S.emoji)==null?void 0:P.variantIds;if(!H||!H.length)return null;var K;N=(K=N.match(uYE))==null?void 0:K[0];var C;b=(C=b.match(uYE))==null?void 0:C[0];if(!N||!b)return null;var G=xxz.get(N);C=xxz.get(b);if(G===C){C=Array.from(xxz.values()).filter(function(R){return R!==G}).join("|");
var a=new RegExp("^((?!("+C+")).)*"+G+"$")}else a=new RegExp(G+".*"+C);return(H=H.find(function(R){return a.test(R)}))&&_.nN(this.emojiManager,H)||null};
_.v.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var N,b=this.ytEmojiSelectorBehavior.emojiUrl(((N=this.data.emoji)==null?void 0:N.emojiId)||"");_.H4(this.hostElement).querySelector('[selection="user"]').src.includes(b)||(this.isEmojiDraftInProgress=!0)}};
_.v.onDomChange=function(){Bwb(this.ytEmojiSelectorBehavior)};
_.v.getFocusableElements=function(){return _.H4(this.hostElement).querySelectorAll("img").filter(function(N){return N.getAttribute("role")==="option"})};
_.v.changeFocus=function(N){var b=this.getFocusableElements();b!=null&&b.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+N+b.length)%b.length,this.ytEmojiSelectorBehavior.focusedIndex<b.length&&(N=b[this.ytEmojiSelectorBehavior.focusedIndex])&&N.focus())};
_.v.onKeyboardEnter=function(){var N=this.getFocusableElements();N!=null&&N.length&&(N=N[this.ytEmojiSelectorBehavior.focusedIndex])&&N instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(N),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.d0.Object.defineProperties(UM.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S,P;return this.emojiManager&&((b=this.data)==null?0:(S=b.emoji)==null?0:(P=S.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.nN(N.emojiManager,H)}).filter(function(H){return!!H}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var N,b=(N=this.userSelection)==null?void 0:N.left,S;N=(S=this.userSelection)==null?void 0:S.right;return b&&N?this.getEmojiFromPartialSelections(b,N):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.composedEmojiSelection)==null?0:N.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var b;N=(b=this.userSelection)==null?void 0:b.left;var S;b=(S=this.userSelection)==null?void 0:S.right;if(!N&&!b){var P;return this.ytEmojiSelectorBehavior.emojiUrl(((P=this.data.emoji)==null?void 0:P.emojiId)||"")}return N&&!b?N:!N&&b?b:""}}});
UM.prototype.onMultiSelectorThumbnailRowChanged=UM.prototype.onMultiSelectorThumbnailRowChanged;UM.prototype.onClick=UM.prototype.onClick;_.p([_.L(_.cS),_.y("design:type",Object)],UM.prototype,"ironOverlayBehavior",void 0);_.p([_.L(l89),_.y("design:type",Object)],UM.prototype,"ytEmojiSelectorBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UM.prototype,"data",void 0);_.p([_.U(),_.y("design:type",_.Wc)],UM.prototype,"emojiManager",void 0);
_.p([_.U(),_.y("design:type",Object)],UM.prototype,"userSelection",void 0);_.p([_.U(),_.y("design:type",Object)],UM.prototype,"scrollAction",void 0);_.p([_.U(),_.y("design:type",Object)],UM.prototype,"isEmojiDraftInProgress",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],UM.prototype,"emojiVariants",null);_.p([_.f("data","userSelection"),_.y("design:type",Object),_.y("design:paramtypes",[])],UM.prototype,"composedEmojiSelection",null);
_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],UM.prototype,"onClick",null);_.p([_.W4("data.emoji.multiSelectorThumbnailRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UM.prototype,"onMultiSelectorThumbnailRowChanged",null);_.p([_.f("data","userSelection","composedEmojiSelection"),_.y("design:type",String),_.y("design:paramtypes",[])],UM.prototype,"draftEmojiUrl",null);
_.p([_.J_({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],UM);
_.X(UM,"yt-emoji-multi-person-selector",function(){if(f8b===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;LFS===void 0&&(LFS=document.createElement("template"));var P=LFS;S.call(b,P.content.cloneNode(!0),N.content.firstChild);f8b=N}N=f8b;return N},{mode:2});var oiE;var iK9;var Zi=function(){var N=_.z.apply(this,arguments)||this;N.tooltip_=null;return N};
_.F(Zi,_.z);_.v=Zi.prototype;_.v.dataChanged_=function(){var N;if((N=this.data)==null?0:N.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.H4(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Gd)(this.tooltip_).textContent=this.data.tooltip};
_.v.computeTargetId=function(){var N;return((N=this.data)==null?void 0:N.targetId)||""};
_.v.computeId_=function(N){return N};
_.v.computeIcon_=function(N){return _.C7(N)};
_.v.onTap_=function(){this.active=!this.active;_.bC(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.v.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("active-changed",this.active))};
_.d0.Object.defineProperties(Zi.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var N,b;if((N=this.data)==null?0:(b=N.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var S,P;return((S=this.data)==null?void 0:(P=S.icon)==null?void 0:P.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Zi.prototype.activeChangedForBinding=Zi.prototype.activeChangedForBinding;Zi.prototype.dataChanged_=Zi.prototype.dataChanged_;_.p([_.L(_.Gl.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],Zi.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Zi.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.y("design:type",String)],Zi.prototype,"id",void 0);
_.p([_.U({computed:"computeTargetId(data.targetId)"}),_.y("design:type",String)],Zi.prototype,"targetId",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Zi.prototype,"active",void 0);_.p([_.U({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.y("design:type",String)],Zi.prototype,"icon",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zi.prototype,"dataChanged_",null);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Zi.prototype,"iconFilled",null);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zi.prototype,"activeChangedForBinding",null);_.p([_.J_({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Zi);
_.X(Zi,"yt-emoji-picker-category-button-renderer",function(){if(iK9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;oiE===void 0&&(oiE=document.createElement("template"));var P=oiE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);iK9=N}N=iK9;return N},{mode:2});var JyS;var Uxz;var jz=function(){var N=_.z.apply(this,arguments)||this;N.ariaLabel=null;N.ariaActivedescendant=null;N.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};N.JSC$14527_ignoreNextFocus_=!1;N.longPressTimeoutId=-1;return N};
_.F(jz,_.z);_.v=jz.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var N=_.dG(),b=0;b<this.emoji.length;b++){var S={veType:88013,elementIndex:b},P=this.emoji[b];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(S=_.n7(N,S))&&(P.visualElement=S)}};
_.v.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.v.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.v.emojiSkinToneChanged_=function(N){this.skinTone=N};
_.v.dataChanged=function(){this.data&&this.data.emojiData&&lvd(this.emojiManager,this.data.emojiData)};
_.v.emojiUrl=function(N){N=this.getEmoji(N);if(!N)return"";var b;N=(b=N.image)==null?void 0:b.thumbnails;return _.wG(N,24)||""};
_.v.emojiAlt=function(N){var b=this.get("image.accessibility.accessibilityData.label",N);return b?b:N.isCustomEmoji?N.shortcuts[0]:N.emojiId};
_.v.emojiAriaLabel=function(N){return N.shortcuts?N.shortcuts[0]:""};
_.v.emojiAriaSelected=function(N,b,S){return N&&S==b?"true":"false"};
_.v.getEmoji=function(N){if(this.emojiManager)return this.shouldUseStickyPreferences?fvV(this.emojiManager,N):dD(this.emojiManager,N)};
_.v.computeId_=function(N){return N.categoryId||""};
_.v.computeEmoji=function(N){var b=this;return this.emojiManager?N.emojiIds?N.emojiIds.map(function(S){return S?_.nN(b.emojiManager,S):null}).filter(kCY):N.emojiData?N.emojiData.map(function(S){var P=!!S.emojiId&&_.nN(b.emojiManager,S.emojiId);
return P?Object.assign({},P,S):null}).filter(kCY):[]:[]};
_.v.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.v.computeAriaLabel_=function(N){return _.es(N)};
_.v.computeAriaActivedescendant_=function(N,b){return N&&N[b]?N[b].emojiId||"":""};
_.v.handleLongPressEmojiWithVariants=function(N,b){this.changeFocusToEmoji(N.emojiId,!1);this.openVariantSelector(N,b)};
_.v.onMouseDown=function(N){var b=this;this.hostElement!==document.activeElement&&(this.JSC$14527_ignoreNextFocus_=!0);if(N.button===0){var S=_.gQ(N);if(S instanceof HTMLImageElement){var P=_.H4(this.hostElement).querySelector("#repeat").itemForElement(S);this.emojiContainsVariants(P)&&(this.longPressTimeoutId=setTimeout(function(){b.handleLongPressEmojiWithVariants(P,S)},500))}}};
_.v.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.v.onFocus=function(){this.JSC$14527_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14527_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.emojiContainsVariants=function(N){return!!(N&&N.variantIds&&N.variantIds.length)};
_.v.onClick=function(N){clearTimeout(this.longPressTimeoutId);N=_.gQ(N);if(N instanceof HTMLImageElement){var b=N.id;this.changeFocusToEmoji(b,!1);var S=this.getEmoji(b),P;if(P=this.shouldUseStickyPreferences&&this.emojiContainsVariants(S)){var H;P=!((H=this.emojiManager.emojiMap[b])!=null&&H.stickyPrefId)}P?(H=_.H4(this.hostElement).querySelector("#repeat").itemForElement(N),this.openVariantSelector(H,N)):_.bC(this.hostElement,"yt-emoji-select",S)}};
_.v.isActiveEmojiWithVariants=function(N,b){return N&&b?b.stickyPrefId?N===b.stickyPrefId:N===b.emojiId:!1};
_.v.onCloseEmojiVariantSelector=function(N){this.activeEmojiWithVariantsId===N&&(this.activeEmojiWithVariantsId="")};
_.v.onMouseOver_=function(N){N=_.gQ(N);N instanceof HTMLImageElement&&_.bC(this.hostElement,"yt-emoji-hover",_.nN(this.emojiManager,N.id))};
_.v.changeFocus_=function(N,b){this.focusedIndex=(this.focusedIndex+N+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(N=this.emoji[this.focusedIndex],b&&(this.showFocus=!0,_.H4(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.bC(this.hostElement,"yt-emoji-hover",N)))};
_.v.changeFocusToEmoji=function(N,b){if(N){var S=this.emoji.findIndex(function(P){return P.emojiId===N});
S!==-1&&this.changeFocus_(S-this.focusedIndex,b)}};
_.v.onKeyDown_=function(N){switch(N.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var b=this.emoji[this.focusedIndex];if(b&&b.emojiId){if(this.emojiContainsVariants(b)){var S=_.H4(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(b,S)}else _.bC(this.hostElement,"yt-emoji-select",dD(this.emojiManager,b.emojiId)),this.hostElement.focus();N.preventDefault()}}break;case 40:this.changeFocus_(1,!0);N.preventDefault();break;case 38:this.changeFocus_(-1,!0),
N.preventDefault()}};
_.v.onEmojiStickyPreferenceChanged=function(N,b){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&N.emojiId&&N.variantIds&&N.variantIds.includes(b)&&this.activeEmojiWithVariantsId!==b&&this.setStickyEmojiPreference(N.emojiId,b)};
_.v.openVariantSelector=function(N,b){this.activeEmojiWithVariantsId=N.stickyPrefId||N.emojiId||"";_.bC(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:N,target:b})};
_.v.setStickyEmojiPreference=function(N,b){if(this.data){var S=this.emoji.findIndex(function(H){return H.emojiId===N});
if(S!==-1){var P=this.emoji[S];P.stickyPrefId=b;this.set("emoji."+S,Object.assign({},P));this.activeEmojiWithVariantsId=b}}};
jz.prototype.onKeyDown_=jz.prototype.onKeyDown_;jz.prototype.onMouseOver_=jz.prototype.onMouseOver_;jz.prototype.onClick=jz.prototype.onClick;jz.prototype.onBlur_=jz.prototype.onBlur_;jz.prototype.onFocus=jz.prototype.onFocus;jz.prototype.onMouseUp=jz.prototype.onMouseUp;jz.prototype.onMouseDown=jz.prototype.onMouseDown;jz.prototype.dataChanged=jz.prototype.dataChanged;jz.prototype.disableIncrementalLoadingChanged_=jz.prototype.disableIncrementalLoadingChanged_;jz.prototype.emojiManagerChanged_=jz.prototype.emojiManagerChanged_;
jz.prototype.emojiChanged_=jz.prototype.emojiChanged_;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],jz.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jz.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data)"}),_.y("design:type",String)],jz.prototype,"id",void 0);_.p([_.U({computed:"computeEmoji(data)"}),_.y("design:type",Array)],jz.prototype,"emoji",void 0);_.p([_.U(),_.y("design:type",Number)],jz.prototype,"skinTone",void 0);
_.p([_.U(),_.y("design:type",_.Wc)],jz.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Boolean)],jz.prototype,"disableIncrementalLoading",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],jz.prototype,"focusedIndex",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],jz.prototype,"showFocus",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.y("design:type",Object)],jz.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.y("design:type",Object)],jz.prototype,"ariaActivedescendant",void 0);_.p([_.U({value:60}),_.y("design:type",Number)],jz.prototype,"domRepeatTargetFramerate",void 0);_.p([_.U({value:1}),_.y("design:type",Number)],jz.prototype,"domRepeatInitialCount",void 0);_.p([_.U({value:""}),_.y("design:type",String)],jz.prototype,"activeEmojiWithVariantsId",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],jz.prototype,"shouldUseStickyPreferences",void 0);_.p([_.W4("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"emojiChanged_",null);_.p([_.W4("emojiManager"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"emojiManagerChanged_",null);
_.p([_.W4("disableIncrementalLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"disableIncrementalLoadingChanged_",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"dataChanged",null);_.p([_.RA("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],jz.prototype,"onMouseDown",null);
_.p([_.RA("mouseup"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"onMouseUp",null);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"onFocus",null);_.p([_.RA("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jz.prototype,"onBlur_",null);
_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],jz.prototype,"onClick",null);_.p([_.RA("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],jz.prototype,"onMouseOver_",null);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],jz.prototype,"onKeyDown_",null);
_.p([_.J_({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],jz);
_.X(jz,"yt-emoji-picker-category-renderer",function(){if(Uxz===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;JyS===void 0&&(JyS=document.createElement("template"));var P=JyS;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Uxz=N}N=Uxz;return N},{mode:2});var ZKk;var j1V;var zB9;var Ayk;var zF=function(){var N=_.z.apply(this,arguments)||this;N.ariaLabel=null;N.ariaActivedescendant=null;N.getFormattedStringRawText=_.es;N.JSC$14533_ignoreNextFocus_=!1;return N};
_.F(zF,_.z);_.v=zF.prototype;_.v.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.emojiUrl=function(N){var b,S;N=(b=dD(this.emojiManager,N,!0))==null?void 0:(S=b.image)==null?void 0:S.thumbnails;return _.wG(N,24)||""};
_.v.emojiAlt=function(N){var b=this.get("image.accessibility.accessibilityData.label",N);return b?b:N.isCustomEmoji?N.shortcuts[0]:N.emojiId};
_.v.emojiId=function(N){return"emoji"+N};
_.v.computeId_=function(N){return N.categoryId||""};
_.v.computeAriaActivedescendant_=function(N){return this.emoji&&N<this.emoji.length?this.emojiId(N):""};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var N=_.dG(),b=0;b<this.emoji.length;b++){var S={veType:88013,elementIndex:b},P=this.emoji[b];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(S=_.n7(N,S))&&(P.visualElement=S)}};
_.v.computeEmoji_=function(N){var b=this;return this.emojiManager?N.emojiIds.map(function(S){return _.nN(b.emojiManager,S,!0)}).filter(TwL):[]};
_.v.titleOffsetChanged_=function(){var N=this.hostElement.getBoundingClientRect(),b=_.H4(this.hostElement).querySelector("#title").getBoundingClientRect();N=Math.max(0,Math.min(this.titleOffset,N.height-b.height));_.H4(this.hostElement).querySelector("#title").style.top=N+"px"};
_.v.onEmojiMouseOver_=function(N){_.bC(this.hostElement,"yt-emoji-hover",N.model.item)};
_.v.onEmojiTap_=function(N){this.data.command&&(N=vzY(_.aN().resolve(_.cq(Pz)),this.data.command,N),_.bC(this.hostElement,"yt-navigate",N))};
_.v.emojiAriaLabel=function(N){return N.shortcuts[0]};
_.v.emojiAriaSelected=function(N,b,S){return N&&S==b?"true":"false"};
_.v.changeFocus_=function(N,b){var S=this.emoji.length;this.focusedIndex=(this.focusedIndex+N+S)%S;N=this.emoji[this.focusedIndex];if(b){var P;(P=_.H4(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||P.scrollIntoView(!1);_.bC(this.hostElement,"yt-emoji-hover",N)}};
_.v.onMouseDown_=function(){this.JSC$14533_ignoreNextFocus_=!0};
_.v.onFocus_=function(){this.JSC$14533_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14533_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.onKeyDown_=function(N){switch(N.keyCode){case 13:this.onEmojiTap_(N);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);N.preventDefault();break;case 38:this.changeFocus_(-1,!0),N.preventDefault()}};
zF.prototype.onKeyDown_=zF.prototype.onKeyDown_;zF.prototype.onBlur_=zF.prototype.onBlur_;zF.prototype.onFocus_=zF.prototype.onFocus_;zF.prototype.onMouseDown_=zF.prototype.onMouseDown_;zF.prototype.onEmojiTap_=zF.prototype.onEmojiTap_;zF.prototype.titleOffsetChanged_=zF.prototype.titleOffsetChanged_;zF.prototype.emojiChanged_=zF.prototype.emojiChanged_;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],zF.prototype,"data",void 0);_.p([_.U({computed:"computeId_(data)"}),_.y("design:type",String)],zF.prototype,"id",void 0);_.p([_.U({computed:"computeEmoji_(data)"}),_.y("design:type",Array)],zF.prototype,"emoji",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],zF.prototype,"titleOffset",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.y("design:type",Object)],zF.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.y("design:type",Object)],zF.prototype,"ariaActivedescendant",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],zF.prototype,"showFocus",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],zF.prototype,"focusedIndex",void 0);_.p([_.U(),_.y("design:type",_.Wc)],zF.prototype,"emojiManager",void 0);
_.p([_.W4("emoji"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zF.prototype,"emojiChanged_",null);_.p([_.W4("titleOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zF.prototype,"titleOffsetChanged_",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],zF.prototype,"onEmojiTap_",null);
_.p([_.RA("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zF.prototype,"onMouseDown_",null);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zF.prototype,"onFocus_",null);_.p([_.RA("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zF.prototype,"onBlur_",null);
_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],zF.prototype,"onKeyDown_",null);_.p([_.J_({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],zF);
_.X(zF,"yt-emoji-picker-upsell-category-renderer",function(){if(Ayk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;zB9===void 0&&(zB9=document.createElement("template"));var P=zB9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Ayk=N}N=Ayk;return N},{mode:2});var X6O;var Eik;var AR=function(){var N=_.z.apply(this,arguments)||this;N.scrollAction="lock";N.verticalAlign="top";return N};
_.F(AR,_.z);_.v=AR.prototype;_.v.onClick=function(N){N=_.gQ(N);N instanceof HTMLImageElement&&_.bC(this.hostElement,"yt-emoji-select",_.nN(this.emojiManager,N.id))};
_.v.openSelector=function(){this.ironOverlayBehavior.open()};
_.v.onDomChange=function(){Bwb(this.ytEmojiSelectorBehavior)};
_.v.computeIsFamilySelector=function(N){var b;return(N==null?void 0:(b=N.emoji)==null?void 0:b.emojiId)==="\ud83d\udc6a"};
_.v.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var N=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];N&&N.emojiId&&(_.bC(this.hostElement,"yt-emoji-select",_.nN(this.emojiManager,N.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.d0.Object.defineProperties(AR.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S,P;return this.emojiManager&&((b=this.data)==null?0:(S=b.emoji)==null?0:(P=S.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.nN(N.emojiManager,H)}).filter(function(H){return!!H}):[]}}});
AR.prototype.onClick=AR.prototype.onClick;_.p([_.L(_.cS),_.y("design:type",Object)],AR.prototype,"ironOverlayBehavior",void 0);_.p([_.L(l89),_.y("design:type",Object)],AR.prototype,"ytEmojiSelectorBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],AR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",_.Wc)],AR.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Object)],AR.prototype,"scrollAction",void 0);_.p([_.U(),_.y("design:type",Object)],AR.prototype,"verticalAlign",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.y("design:type",Boolean)],AR.prototype,"isFamilySelector",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],AR.prototype,"emojiVariants",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],AR.prototype,"onClick",null);_.p([_.J_({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],AR);
_.X(AR,"yt-emoji-variant-selector",function(){if(Eik===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;X6O===void 0&&(X6O=document.createElement("template"));var P=X6O;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Eik=N}N=Eik;return N},{mode:2});var p6O=/:/g,Y4b=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],XO=function(){var N=_.z.apply(this,arguments)||this;N.emojiVariantSelector=null;N.emojiMultiPersonSelector=null;N.identity=_.iY;N.lastAnimationTime_=0;N.animationStart_=null;N.animationEnd_=null;return N};
_.F(XO,_.z);_.v=XO.prototype;
_.v.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.v.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.mL)};
_.v.attached=function(){_.rV&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&L4k(this.emojiManager)};
_.v.dataChanged=function(){var N;if((N=this.data)==null?0:N.categories){N=this.emojiManager;var b=this.getCustomEmojiIds();N.pickerCustomEmojiIds=[].concat(_.IX(TnS),_.IX(b))}};
_.v.getCustomEmojiIds=function(){var N,b=(N=this.data.categories)==null?void 0:N.find(function(K){var C;return((C=K.emojiPickerCategoryRenderer)==null?void 0:C.categoryId)&&Y4b.includes(K.emojiPickerCategoryRenderer.categoryId)}),S;
N=(S=this.data.categories)==null?void 0:S.find(function(K){return K.emojiPickerUpsellCategoryRenderer});
var P,H;return[b==null?void 0:(P=b.emojiPickerCategoryRenderer)==null?void 0:P.emojiIds,N==null?void 0:(H=N.emojiPickerUpsellCategoryRenderer)==null?void 0:H.emojiIds].flat().filter(function(K){return!!K})};
_.v.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.v.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.v.updateCategoriesAndPlaceholderInternal=function(N,b){var S=this;N&&b&&(this.categories=N.categories||[],this.categoryButtons=N.categoryButtons||[],this.resetPlaceholder(),this.search="",_.p3(function(){S.updateButtons_()}))};
_.v.computeId_=function(N){return N.id||""};
_.v.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(N){return N.emojiPickerCategoryRenderer&&N.emojiPickerCategoryRenderer.emojiData}):!1};
_.v.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.v.onShowEmojiVariantSelector=function(N){var b=N.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:N.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:N.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onIronOverlayClosed=function(N){var b=fvV(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&N.composedPath&&(N.composedPath().includes(_.H4(this.hostElement).querySelector("#emoji-variant-selector"))||N.composedPath().includes(_.H4(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.St(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onEmojiVariantSelectorMouseup=function(N){var b=N.target.firstChild;this.variantSelectorOpened&&b&&_.p3(function(){b.noCancelOnOutsideClick=!1},100)};
_.v.onEmojiVariantSelectorMousedown=function(N){N=N.target.firstChild;this.variantSelectorOpened&&N&&(N.noCancelOnOutsideClick=!1)};
_.v.onSelectCategory_=function(N){var b=this.search!="";this.search="";for(var S=_.H4(this.hostElement).querySelector("#categories").children,P=0;P<S.length;P++){var H=S[P];if(H.id==N.detail.categoryId){b?(_.H4(this.hostElement).querySelector("#categories").scrollTop=H.offsetTop,this.updateButtons_()):(this.animationStart_=_.H4(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=H.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.v.onEmojiHover_=function(N){this.placeholder=N.detail.shortcuts?N.detail.shortcuts[0]:""};
_.v.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.v.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.v.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.v.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.v.computeSearchCategory_=function(N){N=N.replace(p6O,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();N=N.split(" ");for(var b=[],S=this.emojiManager.emojis,P=0;P<S.length;P++){var H=S[P];if(H.searchTerms)for(var K=0;K<H.searchTerms.length;K++){for(var C=H.searchTerms[K].toLocaleLowerCase(),G=!1,a=0;a<N.length;a++)if(C.indexOf(N[a])!=-1){G=!0;break}if(G&&(!H.isCustomEmoji||!H.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(H.emojiId))){b.push(H.emojiId);
break}}}return{categoryId:-1,emojiIds:b}};
_.v.computeSearchEmptyMessage_=function(N,b){return N&&b&&b.emojiIds&&b.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.v.computeSearching_=function(N){return this.emojiManager&&N.replace(p6O,"").length>1};
_.v.computeSkinToneHidden=function(){var N;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((N=this.data)==null||!N.hideSkinTonePicker)};
_.v.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.v.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.v.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.v.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.v.selectSkinTone_=function(N){N=Number(N.target.getAttribute("tone"));this.set("emojiManager.skinTone",N);_.St(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[N]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.v.skinToneChanged_=function(){_.H4(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var N=_.H4(this.hostElement).querySelector("#dropdown-content").children,b=0;b<N.length;b++)b===this.skinTone?N[b].setAttribute("selected",""):N[b].removeAttribute("selected")};
_.v.animateScroll_=function(N){this.lastAnimationTime_||(this.lastAnimationTime_=N);N-=this.lastAnimationTime_;N<200?(_.H4(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*N/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.H4(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.v.searchChanged_=function(){this.updateButtons_()};
_.v.updateButtons_=function(){var N=null;if(!this.search)for(var b=_.H4(this.hostElement).querySelector("#categories").scrollTop,S=_.H4(this.hostElement).querySelector("#categories").children,P=0;P<S.length;P++){var H=S[P];H.offsetTop<=b&&(N=H.id)}b=_.H4(this.hostElement).querySelector("#category-buttons").children;for(S=0;S<b.length;S++)P=b[S],P.active=P.id===N};
XO.prototype.searchChanged_=XO.prototype.searchChanged_;XO.prototype.skinToneChanged_=XO.prototype.skinToneChanged_;XO.prototype.onEmojiHover_=XO.prototype.onEmojiHover_;XO.prototype.onSelectCategory_=XO.prototype.onSelectCategory_;XO.prototype.onShowEmojiVariantSelector=XO.prototype.onShowEmojiVariantSelector;XO.prototype.updateCategoriesAndPlaceholder_=XO.prototype.updateCategoriesAndPlaceholder_;XO.prototype.dataChanged=XO.prototype.dataChanged;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],XO.prototype,"data",void 0);_.p([_.U({value:function(){return[]}}),
_.y("design:type",Array)],XO.prototype,"categories",void 0);_.p([_.U({value:function(){return[]}}),
_.y("design:type",Array)],XO.prototype,"categoryButtons",void 0);_.p([_.U({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.y("design:type",Boolean)],XO.prototype,"disableScroll",void 0);_.p([_.U({computed:"computeId_(data)",reflectToAttribute:!0}),_.y("design:type",String)],XO.prototype,"id",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],XO.prototype,"selected",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],XO.prototype,"disableIncrementalLoading",void 0);_.p([_.U(),_.y("design:type",String)],XO.prototype,"placeholder",void 0);_.p([_.U({value:""}),_.y("design:type",String)],XO.prototype,"search",void 0);_.p([_.U({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.y("design:type",Boolean)],XO.prototype,"searching",void 0);_.p([_.U({computed:"computeSearchCategory_(search)"}),_.y("design:type",Object)],XO.prototype,"searchCategory",void 0);
_.p([_.U({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.y("design:type",Object)],XO.prototype,"searchEmptyMessage",void 0);_.p([_.U({computed:"identity(emojiManager.skinTone)"}),_.y("design:type",Number)],XO.prototype,"skinTone",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],XO.prototype,"skinToneOpened",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],XO.prototype,"variantSelectorOpened",void 0);
_.p([_.U({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.y("design:type",Boolean)],XO.prototype,"skinToneHidden",void 0);_.p([_.U(),_.y("design:type",_.Wc)],XO.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Object)],XO.prototype,"emojiVariantSelector",void 0);_.p([_.U(),_.y("design:type",Object)],XO.prototype,"emojiMultiPersonSelector",void 0);
_.p([_.U({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.y("design:type",Boolean)],XO.prototype,"shouldUseStickyPreferences",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XO.prototype,"dataChanged",null);_.p([_.W4("data","selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XO.prototype,"updateCategoriesAndPlaceholder_",null);
_.p([_.RA("yt-show-emoji-variant-selector"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],XO.prototype,"onShowEmojiVariantSelector",null);_.p([_.RA("yt-emoji-picker-select-category"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],XO.prototype,"onSelectCategory_",null);_.p([_.RA("yt-emoji-hover"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],XO.prototype,"onEmojiHover_",null);
_.p([_.W4("skinTone"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XO.prototype,"skinToneChanged_",null);_.p([_.W4("search"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XO.prototype,"searchChanged_",null);_.p([_.J_({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],XO);
_.X(XO,"yt-emoji-picker-renderer",function(){if(j1V===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;ZKk===void 0&&(ZKk=document.createElement("template"));var P=ZKk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);j1V=N}N=j1V;return N},{mode:2});var EM=function(){var N=_.z.apply(this,arguments)||this;N.emojiManager=_.mL;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.selectedIndex=1;N.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return N};
_.F(EM,_.z);_.v=EM.prototype;_.v.handleEmojiCustomizationVisible=function(N){this.emojiPickerRenderer.selected=N;this.selectedIndex=1;N?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.v.emojiCustomizationSetChanged=function(){var N;(N=this.data)!=null&&N.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.hb(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.v.updateSaveButtonState=function(N){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.t5("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:N}))};
_.v.emojiUrl=function(N){N=_.nN(this.emojiManager,N);if(!N)return"";var b;N=(b=N.image)==null?void 0:b.thumbnails;return _.wG(N,24)||""};
_.v.emojiAlt=function(N){var b=_.nN(this.emojiManager,N);if(!b)return N;var S,P,H,K=(b==null?void 0:(S=b.image)==null?void 0:(P=S.accessibility)==null?void 0:(H=P.accessibilityData)==null?void 0:H.label)||"";return K?K:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||N};
_.v.emojiAriaLabel=function(N){var b,S;return((b=_.nN(this.emojiManager,N))==null?void 0:(S=b.shortcuts)==null?void 0:S[0])||N};
_.v.onEmojiClick=function(N){N.model.index!==0&&(this.selectedIndex=N.model.index)};
_.v.onEmojiSelect=function(N){N=N.detail;var b,S;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((S=this.emojiCustomizationSet)==null?0:S.emojiId)&&N.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,N.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.t5("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,N.emojiId,this.selectedIndex)}))};
_.v.canEditEmoji=function(N,b,S){N=N.indexOf(b);return N===S||N===0||S===0?!1:!0};
_.v.getUpdatedEmojiIdList=function(N,b,S){var P=N.indexOf(b);N=[].concat(_.IX(N));P>=0&&(N[P]=N[S]);N[S]=b;return N};
_.d0.Object.defineProperties(EM,{template:{configurable:!0,enumerable:!0,get:function(){if(OK9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;vi9===void 0&&(vi9=document.createElement("template"));var P=vi9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);OK9=N}N=OK9;return N}}});
EM.prototype.onEmojiSelect=EM.prototype.onEmojiSelect;_.p([_.L(_.CG),_.y("design:type",Object)],EM.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],EM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.dq("yt-emoji-picker-renderer"),_.y("design:type",Object)],EM.prototype,"emojiPickerRenderer",void 0);
_.p([_.U({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(N,b){return _.GL(N.entities,"emojiCustomizationSetEntity",b)},
observer:"emojiCustomizationSetChanged"}),_.y("design:type",Object)],EM.prototype,"emojiCustomizationSet",void 0);_.p([_.U(),_.y("design:type",Object)],EM.prototype,"originalEmojiSet",void 0);_.p([_.U(),_.y("design:type",_.Wc)],EM.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Object)],EM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],EM.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],EM.prototype,"selectedIndex",void 0);
_.p([_.RA("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],EM.prototype,"onEmojiSelect",null);_.p([_.J_({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],EM);var yyE;var I8z;var Dxc;var VP9;var pN=function(){var N=_.z.apply(this,arguments)||this;N.authorBadges=[];return N};
_.F(pN,_.z);_.v=pN.prototype;_.v.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.v.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.v.dataChanged=function(){var N=rio(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",N)};
_.v.updateMessage=function(){var N=this.data.message,b=_.H4(_.H4(this.hostElement).querySelector("#message"));b.textContent="";N&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N))};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.v.onShowOriginalClick=function(N){N.preventDefault();this.showOriginal=!0};
_.v.computeShowBar=function(N,b,S){return N&&b||S};
_.v.computeAuthorBadges=function(N){return N.authorBadges||[]};
_.v.computeAuthorIsOwner=function(N){return!!cip(N.authorBadges,"owner")};
_.v.computeAuthorNameColor=function(N){var b;if(_.T("live_chat_author_name_color_usernames")&&(N==null?0:(b=N.authorName)==null?0:b.simpleText))return _.mep(_.k9b(N.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(N==null?0:N.authorSeedColorArgb))return _.mep(_.v7(N.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var S;return _.T("live_chat_simple_color_usernames")&&(N==null?0:(S=N.authorName)==null?0:S.simpleText)&&(N==null?0:N.authorUsernameColorLight)&&
(N==null?0:N.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.v7(N.authorUsernameColorDark):_.v7(N.authorUsernameColorLight):""};
pN.prototype.updateMessage=pN.prototype.updateMessage;pN.prototype.dataChanged=pN.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],pN.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pN.prototype,"data",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"showOriginal",void 0);_.p([_.U({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"isDimmed",void 0);_.p([_.U({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"showBar",void 0);
_.p([_.U({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],pN.prototype,"authorBadges",void 0);_.p([_.U({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"authorIsOwner",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"inCollapsedBanner",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"inBanner",void 0);
_.p([_.U({value:_.T("live_chat_hide_avatars"),reflectToAttribute:!0}),_.y("design:type",Boolean)],pN.prototype,"avatarHidden",void 0);_.p([_.U({computed:"computeAuthorNameColor(data)"}),_.y("design:type",String)],pN.prototype,"authorNameColor",void 0);_.p([_.U(),_.y("design:type",_.FO)],pN.prototype,"participantsManager",void 0);_.p([_.U({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.y("design:type",Object)],pN.prototype,"filledButtonOverrides",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pN.prototype,"dataChanged",null);_.p([_.W4("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pN.prototype,"updateMessage",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],pN);
_.X(pN,"yt-live-chat-text-message-renderer",function(){if(VP9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Dxc===void 0&&(Dxc=document.createElement("template"));var P=Dxc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);VP9=N}N=VP9;return N},{mode:0});var Yu=function(){var N=_.z.apply(this,arguments)||this;N.tonalButtonOverrides={type:"tonal",style:"overlay"};return N};
_.F(Yu,_.z);
Yu.prototype.configureRendererStamper=function(){return{"data.infoDialogButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.autoModeratedItem":{id:"auto-moderated-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"},attributes:{"hide-inline-action-buttons":!0,"no-hover-effect":!0}}}},"data.moderationButtons":{id:"moderation-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.additionalInlineActionButtons":{id:"additional-inline-action-buttons",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[tonalButtonOverrides]]"}}}}}};
Yu.prototype.shouldSupportInlineActionButtons=function(){return!0};
Yu.prototype.shouldSupportWholeItemClick=function(){return!0};
_.d0.Object.defineProperties(Yu.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],Yu.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Yu.prototype,"data",void 0);_.p([_.U(),_.y("design:type",_.FO)],Yu.prototype,"participantsManager",void 0);
_.p([_.U(),_.y("design:type",Object)],Yu.prototype,"tonalButtonOverrides",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.infoDialogButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Yu.prototype,"hasInfoDialogButton",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Yu);
_.X(Yu,"yt-live-chat-auto-mod-message-renderer",function(){if(I8z===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;yyE===void 0&&(yyE=document.createElement("template"));var P=yyE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);I8z=N}N=I8z;return N},{mode:0});var gi9;var eB9;var $xN;var hBc=function(){return _.z.apply(this,arguments)||this};
_.F(hBc,_.z);_.p([_.U(),_.y("design:type",Object)],hBc.prototype,"data",void 0);_.p([_.Uj({is:"ytd-factoid-renderer",disableElementRegistration:!0})],hBc);
_.X(hBc,"ytd-factoid-renderer",function(){if($xN!==void 0)return $xN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $xN=N},{mode:1});var ye=function(){return _.z.apply(this,arguments)||this};
_.F(ye,_.z);ye.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.p([_.U(),_.y("design:type",Object)],ye.prototype,"data",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],ye);
_.X(ye,"yt-live-chat-channel-activity-reputation-renderer",function(){if(eB9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;gi9===void 0&&(gi9=document.createElement("template"));var P=gi9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);eB9=N}N=eB9;return N},{mode:0});var q49;var w69;var IH=function(){return _.z.apply(this,arguments)||this};
_.F(IH,_.z);IH.prototype.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Boolean)],IH.prototype,"menuFocused",void 0);_.p([_.U(),_.y("design:type",Object)],IH.prototype,"data",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],IH.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],IH);
_.X(IH,"yt-live-chat-donation-announcement-renderer",function(){if(w69===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;q49===void 0&&(q49=document.createElement("template"));var P=q49;S.call(b,P.content.cloneNode(!0),N.content.firstChild);w69=N}N=w69;return N},{mode:0});var NF9;var byk,S69=function(){if(byk!==void 0)return byk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;NF9===void 0&&(NF9=document.createElement("template"));var P=NF9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return byk=N};var Di=function(){return _.z.apply(this,arguments)||this};
_.F(Di,_.z);_.d0.Object.defineProperties(Di,{template:{configurable:!0,enumerable:!0,get:function(){return S69()}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Di.prototype,"data",void 0);_.p([_.J_({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Di);_.X(Di,"yt-live-chat-empty-feed-view-model",function(){return S69()},{mode:0});var Pdk;var Hy9;var Ve=function(){return _.z.apply(this,arguments)||this};
_.F(Ve,_.z);Ve.prototype.configureRendererStamper=function(){return{"data.channelAvatar.avatarViewModel":{id:"avatar",mapping:{image:{component:"yt-image",attributes:{height:"36",width:"36","preserve-height":"true","preserve-width":"true"}}}}}};
_.d0.Object.defineProperties(Ve.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var N,b;return{runs:[{text:(N=this.data)==null?void 0:(b=N.channelName)==null?void 0:b.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var N=[],b;if((b=this.data)==null||!b.channelBadges)return N;var S;b=_.O((S=this.data)==null?void 0:S.channelBadges);for(S=b.next();!S.done;S=b.next()){S=_.t(S.value,wS9);var P=void 0,H=void 0;if((P=S)==null?0:(H=P.badgeImage)==null?0:H.sources)P=void 0,H={liveChatAuthorBadgeRenderer:{tooltip:S.tooltip,accessibility:{accessibilityData:{label:(P=_.t(S.rendererContext,_.Mv))==null?void 0:P.label}}}},S.badgeImage.sources[0].clientResource?H.liveChatAuthorBadgeRenderer.icon=
{iconType:S.badgeImage.sources[0].clientResource.imageName}:H.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:S.badgeImage.sources},N.push(H)}return N}}});
_.p([_.U(),_.y("design:type",Object)],Ve.prototype,"data",void 0);_.p([_.f("data.channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ve.prototype,"channelName",null);_.p([_.f("data.channelBadges"),_.y("design:type",Array),_.y("design:paramtypes",[])],Ve.prototype,"channelBadges",null);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ve);
_.X(Ve,"yt-live-chat-identity-view-model",function(){if(Hy9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Pdk===void 0&&(Pdk=document.createElement("template"));var P=Pdk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Hy9=N}N=Hy9;return N},{mode:0});var sVk;var KUb;var vf9;var Oyk;var gD=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;N.supportsInlineActionButtons=!0;return N};
_.F(gD,_.z);gD.prototype.ready=function(){var N;((N=document.querySelector("yt-live-chat-app"))==null?0:N.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
gD.prototype.dataChanged=function(N){var b=(0,_.Gd)(_.H4(this.hostElement).querySelector("#detail-text"));b.textContent="";(N==null?0:N.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N.detailText))};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],gD.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.y("design:type",Object)],gD.prototype,"data",void 0);
_.p([_.U({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],gD.prototype,"hidden",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],gD);
_.X(gD,"yt-live-chat-legacy-paid-message-renderer",function(){if(Oyk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vf9===void 0&&(vf9=document.createElement("template"));var P=vf9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Oyk=N}N=Oyk;return N},{mode:0});var Cdz;var G2l;var rUE={},ez=function(){return _.kq.apply(this,arguments)||this};
_.F(ez,_.kq);ez.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ez.prototype.onLiveChatMembershipItemBehaviorClick=ez.prototype.onLiveChatMembershipItemBehaviorClick;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ez.prototype,"data",void 0);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],ez.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.p([_.Td()],ez);
rUE.YtLiveChatMembershipItemBehavior=[ez.prototype,_.h.YtRendererBehavior];var $u=function(){var N=_.z.apply(this,arguments)||this;N.supportsInlineActionButtons=!0;N.hasPrimaryHeaderText=!1;N.showOnlyHeader=!1;N.authorBadges=[];N.modern=_.T("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.F($u,_.z);_.v=$u.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.v.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.v.messageChanged=function(){var N=this.data.message,b=(0,_.Gd)(_.H4(this.hostElement).querySelector("#message"));b.textContent="";N&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N))};
_.v.computeHasPrimaryHeaderText=function(N){return!(!N||!N.headerPrimaryText)};
_.v.computeShowOnlyHeader=function(N,b){return this.isMessageEmpty(N,b)};
_.v.computeAuthorBadges=function(N){return N.authorBadges||[]};
_.v.isMessageEmpty=function(N,b){return!N||N.empty?!0:!N.message&&!N.inputField&&!b};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.v.getInputElement=function(){return _.H4(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.v.inputFocus=function(){var N=this.getInputElement();N&&N.focus()};
_.v.inputInsertEmoji=function(N){var b=this.getInputElement();b&&b.insertEmoji(N)};
_.v.inputMessage=function(){var N=this.getInputElement();return N&&this.data.inputField?(N.completeEmojis(),_.ja(N.liveChatRichMessageInput)):null};
_.v.onFooterButtonClick=function(){this.data.footerButton&&_.bC(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.v.shouldSupportWholeItemClick=function(){return!0};
$u.prototype.isDeletedChanged=$u.prototype.isDeletedChanged;$u.prototype.messageChanged=$u.prototype.messageChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],$u.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(rUE.YtLiveChatMembershipItemBehavior),_.y("design:type",Object)],$u.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$u.prototype,"data",void 0);_.p([_.U({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.y("design:type",Object)],$u.prototype,"hasPrimaryHeaderText",void 0);_.p([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.y("design:type",Object)],$u.prototype,"showOnlyHeader",void 0);
_.p([_.U({computed:"computeAuthorBadges(data)"}),_.y("design:type",Array)],$u.prototype,"authorBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$u.prototype,"modern",void 0);_.p([_.W4("data.message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$u.prototype,"messageChanged",null);_.p([_.W4("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$u.prototype,"isDeletedChanged",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],$u);
_.X($u,"yt-live-chat-membership-item-renderer",function(){if(G2l===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Cdz===void 0&&(Cdz=document.createElement("template"));var P=Cdz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);G2l=N}N=G2l;return N},{mode:0});var cU4;var aXb;var hR=function(){return _.z.apply(this,arguments)||this};
_.F(hR,_.z);hR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hR.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],hR);
_.X(hR,"yt-live-chat-mode-change-message-renderer",function(){if(aXb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;cU4===void 0&&(cU4=document.createElement("template"));var P=cU4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);aXb=N}N=aXb;return N},{mode:0});var RQ9;var WUk;var qJ=function(){return _.z.apply(this,arguments)||this};
_.F(qJ,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],qJ.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qJ.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],qJ);
_.X(qJ,"yt-live-chat-moderation-message-renderer",function(){if(WUk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;RQ9===void 0&&(RQ9=document.createElement("template"));var P=RQ9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);WUk=N}N=WUk;return N},{mode:0});var nfE;var dCb;var wD=function(){return _.z.apply(this,arguments)||this};
_.F(wD,_.z);wD.prototype.onClick=function(){var N;if((N=this.data)!=null&&N.onClickCommand){var b;_.rG.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],wD.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],wD.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wD.prototype,"data",void 0);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],wD);
_.X(wD,"yt-live-chat-offer-click-count-message-renderer",function(){if(dCb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;nfE===void 0&&(nfE=document.createElement("template"));var P=nfE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);dCb=N}N=dCb;return N},{mode:0});var mCS;var k2d=function(){return _.z.apply(this,arguments)||this};
_.F(k2d,_.z);_.p([_.U(),_.y("design:type",Object)],k2d.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],k2d);
_.X(k2d,"yt-live-chat-placeholder-item-renderer",function(){if(mCS===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);mCS=N}N=mCS;return N},{mode:0});var TF9;var t5S;var M5S=new V4(7),NT=function(){var N=_.z.apply(this,arguments)||this;N.data={};return N};
_.F(NT,_.z);NT.prototype.dataChanged=function(){var N;((N=this.data)==null?0:N.class)&&_.K3(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&_.K3(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
NT.prototype.computeTimestampString=function(N){return M5S.format(new Date(N/1E3))};
NT.prototype.dataChanged=NT.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],NT.prototype,"data",void 0);_.p([_.U({computed:"computeTimestampString(data.timestampUsec)"}),_.y("design:type",String)],NT.prototype,"timestampString",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NT.prototype,"dataChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],NT);
_.X(NT,"yt-live-chat-server-error-message",function(){if(t5S===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;TF9===void 0&&(TF9=document.createElement("template"));var P=TF9;S.call(b,P.content.cloneNode(!0),N.content.firstChild);t5S=N}N=t5S;return N},{mode:0});var FUz;var BF9;var b8=function(){var N=_.z.apply(this,arguments)||this;N.defaultToFilledIcon=!1;return N};
_.F(b8,_.z);b8.prototype.computeHasPrimaryColorIcon=function(N){return N==="SPARK"||N==="SPONSORSHIP_STAR"};
b8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],b8.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],b8.prototype,"defaultToFilledIcon",void 0);_.p([_.U(),_.y("design:type",Object)],b8.prototype,"data",void 0);
_.p([_.U({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.y("design:type",Boolean)],b8.prototype,"hasPrimaryColorIcon",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],b8);
_.X(b8,"yt-live-chat-viewer-engagement-message-renderer",function(){if(BF9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;FUz===void 0&&(FUz=document.createElement("template"));var P=FUz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);BF9=N}N=BF9;return N},{mode:0});var lX9;var S6=function(){var N=_.z.apply(this,arguments)||this;N.modernUpdate=!1;N.buttonStyle="overlay";N.buttonType="filled";return N};
_.F(S6,_.z);S6.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
S6.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],S6.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],S6.prototype,"modernUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],S6.prototype,"buttonStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],S6.prototype,"buttonType",void 0);
_.p([_.Uj({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],S6);
_.X(S6,"ytd-ad-hover-text-button-renderer",function(){if(lX9!==void 0)return lX9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return lX9=N},{mode:1});var LU9;var PO=function(){var N=_.z.apply(this,arguments)||this;N.buttonOverrides={size:"XS"};return N};
_.F(PO,_.z);PO.prototype.onHelpTap=function(N){this.data&&this.data.informationDialog&&(_.bC(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),N.preventDefault(),N.stopPropagation())};
_.p([_.U(),_.y("design:type",Object)],PO.prototype,"buttonOverrides",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],PO.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],PO);
_.X(PO,"ytd-live-chat-purchased-product-message-renderer",function(){if(LU9!==void 0)return LU9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return LU9=N},{mode:1});var fXZ;var usc;var HO=function(){var N=_.z.apply(this,arguments)||this;N.isContainerDeleted=!1;return N};
_.F(HO,_.z);HO.prototype.onContextMenuClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
HO.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
HO.prototype.isContainerDeletedChanged=HO.prototype.isContainerDeletedChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],HO.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HO.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],HO.prototype,"isContainerDeleted",void 0);
_.p([_.U(),_.y("design:type",String)],HO.prototype,"deletedStateMessage",void 0);_.p([_.W4("isContainerDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HO.prototype,"isContainerDeletedChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],HO);
_.X(HO,"ytd-sponsorships-live-chat-header-renderer",function(){if(usc!==void 0)return usc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return usc=N},{mode:1});var sN=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.F(sN,_.z);sN.prototype.configureRendererStamper=function(){return{"data.optInPrompt":{id:"opt-in-prompt",mapping:{liveChatViewerEngagementMessageRenderer:{component:"yt-live-chat-viewer-engagement-message-renderer",params:{defaultToFilledIcon:!0}},buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
sN.prototype.onCtaButtonClick=function(){var N,b=_.t((N=this.data)==null?void 0:N.optInPrompt,_.rU);if(N=this.maybeGetButtonCommand(b)){var S;(S=_.dG())==null||S.clickCommand(N)}};
sN.prototype.maybeGetButtonCommand=function(N){return!N||!N.command||_.t(N.command,jHV)===void 0&&_.t(N.command,ZN9)===void 0?null:N.command};
sN.prototype.shouldHideOptinPrompt=function(N,b){return!N||b};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],sN.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sN.prototype,"modern",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],sN);
_.X(sN,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(fXZ!==void 0)return fXZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return fXZ=N},{mode:1});var QVN;var K5=function(){return _.z.apply(this,arguments)||this};
_.F(K5,_.z);K5.prototype.onContextMenuClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
K5.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
K5.prototype.isDeletedChanged=K5.prototype.isDeletedChanged;_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],K5.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],K5.prototype,"data",void 0);_.p([_.W4("isDeleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K5.prototype,"isDeletedChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],K5);
_.X(K5,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(QVN!==void 0)return QVN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QVN=N},{mode:1});var vO=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return N};
_.F(vO,_.z);_.v=vO.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.v.handleLiveChatAction=function(N){_.t(N,TaE)?this.handleMarkChatItemAsDeletedAction(_.t(N,TaE)):_.t(N,ky9)&&this.handleRemoveChatItemAction(_.t(N,ky9))};
_.v.handleLiveChatActions=function(N){N.forEach(this.handleLiveChatAction,this)};
_.v.handleMarkChatItemAsDeletedAction=function(N){var b=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(P,H){var K=Object.keys(P)[0];Object.values(P)[0].id===N.targetItemId&&b.markAsDeleted("data.items",H,K,N.deletedStateMessage,N.showOriginalContentMessage)})};
_.v.handleRemoveChatItemAction=function(N){var b=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(P,H){Object.values(P)[0].id===N.targetItemId&&b.splice("data.items",H,1)})};
_.v.markAsDeleted=function(N,b,S,P,H){N=[N,b,S].join(".");this.set(N+".deletedStateMessage",P);this.set(N+".showOriginalContentMessage",H)};
_.p([_.U(),_.y("design:type",Object)],vO.prototype,"data",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],vO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],vO);
_.X(vO,"yt-live-chat-item-display-list-renderer",function(){if(KUb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;sVk===void 0&&(sVk=document.createElement("template"));var P=sVk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);KUb=N}N=KUb;return N},{mode:0});var xCE;var ofc,iyS=function(){if(ofc!==void 0)return ofc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;xCE===void 0&&(xCE=document.createElement("template"));var P=xCE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return ofc=N};var ON=function(){var N=_.z.apply(this,arguments)||this;N.isHeader=!1;return N};
_.F(ON,_.z);ON.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.d0.Object.defineProperties(ON,{template:{configurable:!0,enumerable:!0,get:function(){return iyS()}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ON.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ON.prototype,"isHeader",void 0);_.p([_.J_({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],ON);_.X(ON,"yt-live-chat-item-display-renderer",function(){return iyS()},{mode:0});var JUO,UC9,XJV,AUZ;
JUO={home:{"ytd-thumbnail":1,"ytd-topbar-menu-button-renderer":1,"ytd-item-section-renderer":5,"ytd-shelf-renderer":5,"yt-horizontal-list-renderer":5,"ytd-grid-video-renderer":30,"ytd-button-renderer":11,"tp-yt-paper-icon-button":7,"tp-yt-paper-button":5,"yt-formatted-string":5,"tp-yt-paper-tooltip":2,"yt-next-continuation":1,"~ytd-guide-entry-renderer":17,"~ytd-guide-signin-promo-renderer":1,"~ytd-browse":{count:1,signals:["yt-app-context","aa"]}},search:{"yt-next-continuation":1,"ytd-button-renderer":2,
"ytd-channel-renderer":2,"ytd-item-section-renderer":1,"ytd-video-renderer":20,"ytd-promoted-video-renderer":1,"ytd-search-pyv-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-shelf-renderer":1,"ytd-vertical-list-renderer":1,"ytd-thumbnail-overlay-hover-text-renderer":2,"ytd-thumbnail-overlay-side-panel-renderer":2,"yt-formatted-string":3,"iron-icon":1,"tp-yt-iron-icon":1,"tp-yt-paper-button":3,"tp-yt-paper-tooltip":33,
"yt-icon":1,"ytd-playlist-renderer":1,"ytd-playlist-video-thumbnail-renderer":1,"ytd-subscribe-button-renderer":1,"~ytd-search":{count:1,signals:["yt-app-context","aa"]}},watch:{"yt-next-continuation":2,"ytd-video-view-count-renderer":1,"ytd-button-renderer":3,"ytd-toggle-button-renderer":2,"ytd-menu-renderer":1,"ytd-compact-video-renderer":19,"ytd-compact-promoted-video-renderer":1,"ytd-compact-playlist-renderer":1,"ytd-compact-radio-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,
"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-player-legacy-desktop-watch-ads-renderer":1,"tp-yt-paper-button":20,"tp-yt-paper-icon-button":20,"tp-yt-paper-tooltip":30,"yt-formatted-string":5}};UC9={home:"eohps",search:"eosps",watch:"eowps"};_.Zyc=["watch","search","home"];
_.C5=function(){this.JSC$14644_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14644_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Vg("PRECONSTRUCTION_DELAY",0);this.signals_=_.kA();this.targetPage_=""};
_.C5.prototype.init=function(N,b){N=N===void 0?"":N;b=b===void 0?null:b;if(this.JSC$14644_isInitialized_)this.abort();else if(this.JSC$14644_isInitialized_=!0,N&&_.jVl(this,N),b){var S=_.Ts(this.signals_,"pcl")?0:10,P=function(){for(var H=0,K;K=_.Zyc[H++];)K!=N&&K!=b&&this.pendingPages_.push(K);_.zQc(this)}.bind(this);
this.signals_.parkOrScheduleJob(P,S,"pcl")}};
_.C5.prototype.abort=function(){this.fragmentJobId_&&(_.Dj.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);AUZ(this)};
_.jVl=function(N,b){N.JSC$14644_isInitialized_&&!N.targetPage_&&(N.targetPage_=b,XJV(N,b),N.isInitialPass_=!1,XJV(N,b),N.signals_.processSignal(UC9[N.targetPage_]),AUZ(N),_.zQc(N))};
_.zQc=function(N){N.pendingPages_.length&&!N.pagePreparerJobId_&&(N.pagePreparerJobId_=_.XC(_.Dj,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.jVl(this,this.pendingPages_.shift())}.bind(N),N.DEFAULT_DELAY_))};
XJV=function(N,b){if(b=JUO[b])for(var S in b){var P=!1,H=S;S.charAt(0)=="~"&&(P=!0,H=S.substring(1));var K=b[S];K=typeof K=="object"?K:{count:K};b[S]=K;K.componentName=H;K.count>0&&(N.isInitialPass_?P||N.isSeenDuringInitialPass_[H]||(N.JSC$14644_queue_.push({componentName:H,count:1,signals:K.signals}),N.isSeenDuringInitialPass_[H]=!0,K.count--):N.JSC$14644_queue_.push(K))}};
AUZ=function(N){N.JSC$14644_queue_.length=0;N.targetPage_="";N.isInitialPass_=!0;N.signals_.processSignal("eop")};
_.C5.getInstance=function(){return _.b0(_.C5)};var Efd=function(){this.signals=_.kA();this.init()};
Efd.prototype.startPreconstruction=function(){_.C5.getInstance().init(_.g8("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Efd.prototype.init=function(){pJ4(this);window.Polymer&&V09&&v3b();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var N=_.Ps.ytcsi;if(N&&N.gt&&(N=N.gt())&&N.tick&&(N.tick.aft>0||N.tick.pbs>0)&&(_.g8("IS_HOMEPAGE_COLD")||_.g8("IS_RESULTS_PAGE_COLD")||_.g8("IS_WATCH_PAGE_COLD"))){Y6Z(this);break a}$no($D_,this.onNotifications,this)}};
var pJ4=function(N){var b=function(){N.signals.processSignal("dl")};
document.readyState==="complete"?(_.qB(Error("uh"),"WARNING"),b()):_.lNY(window,"load",b)};
Efd.prototype.onNotifications=function(N){N.timer||(_.g8("IS_HOMEPAGE_COLD")||_.g8("IS_RESULTS_PAGE_COLD")||_.g8("IS_WATCH_PAGE_COLD"))&&Y6Z(this)};
var Y6Z=function(N){N.signals.parkOrScheduleJob(function(){N.signals.processSignal("eocs")},10,"eor")};
new Efd;var yU4=function(){return _.kq.apply(this,arguments)||this};
_.F(yU4,_.kq);_.d0.Object.defineProperties(yU4.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_entity_store_from_dependency_injection")?_.gq():_.h0()}}});
_.p([_.Td()],yU4);_.Gr=[S$.prototype,yU4.prototype];var IXl=["ytd-rich-shelf-renderer"],r3=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;N.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";N.followUpDialogPromise=null;N.followUpDialogPromiseResolve=null;N.followUpDialogPromiseReject=null;return N};
_.F(r3,_.kq);_.v=r3.prototype;_.v.dismissibleItemIsDismissedChanged_=function(N){_.T("kevlar_fluid_dismiss")&&(N?_.bC(this.hostElement,"yt-dismissible-item-dismissed"):_.bC(this.hostElement,"yt-dismissible-item-undismissed"))};
_.v.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.v.dismissibleItemReset_=function(){var N=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.u5(function(b,S){N.followUpDialogPromiseResolve=b;N.followUpDialogPromiseReject=S});
_.bC(this.hostElement,"yt-enable-lockup-interaction")};
_.v.dismissibleItemOnYtServiceRequestSent_=function(N,b){b.actions&&this.dismissibleItemProcessActions(b.actions,N)};
_.v.dismissibleItemOnRequestSent=function(N){for(var b=_.O(N.detail),S=b.next();!S.done;S=b.next()){var P=void 0;(S=(P=_.t(S.value,_.CA))==null?void 0:P.actions)&&this.dismissibleItemProcessActions(S,N)}};
_.v.dismissibleItemOnCommandSent=function(N,b){b&&this.dismissibleItemProcessActions(b,N)};
_.v.setAndGetDismissedContentId=function(N){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+N};
_.v.replayDismissAction=function(N){this.dismissibleItemProcessActions([N])};
_.v.dismissibleItemProcessActions=function(N,b){for(var S=0;S<N.length;S++){var P=N[S],H=void 0;((H=_.t(P,_.vN))==null?0:H.commands)&&this.dismissibleItemProcessActions(_.t(P,_.vN).commands,b);if(_.t(P,_.Y6)){if(H=_.t(P,_.Y6),!H.replaceParentSection||IXl.includes(this.hostElement.nodeName.toLowerCase()))H.groupDismissal&&tPp(this,H.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(H),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.t5("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:P})),P=void 0,(P=b)==null||P.stopPropagation()}else if(_.t(P,aaE))this.dismissibleItemHandleHideEnclosingAction_(),P=void 0,(P=b)==null||P.stopPropagation();else if(_.t(P,zP9))P=_.t(P,zP9),H=void 0,((H=P)==null?0:H.targetGroupId)&&tPp(this,{targetGroupId:P.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.t5("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
P=void 0,(P=b)==null||P.stopPropagation();else if(_.t(P,_.CA))(P=_.t(P,_.CA).actions)&&_.sR(this.hostElement,P,this.hostElement),P=void 0,(P=b)==null||P.stopPropagation();else{var K=H=void 0;((H=_.t(P,_.Sl))==null?void 0:H.signal)!=="TELL_US_WHY"||((K=_.t(P,_.Sl))==null?0:K.targetId)&&_.T("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),P=void 0,(P=b)==null||P.stopPropagation())}}};
_.v.dismissibleItemOnYtServiceRequestCompleted_=function(N,b){var S=this.get("feedbackResponses.0.followUpDialog",b.data);S?this.followUpDialogPromiseResolve(S):b.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(b.actions,N)};
_.v.dismissibleItemHandleReplaceEnclosingAction_=function(N){this.dismissedRenderer=N.item;this.isDismissed=!0;var b=null;(b=_.H4(this.hostElement).querySelector("#dismissed"))&&_.W_(this,function(){_.Cv(b)});
_.bC(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.v.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.v.dismissibleItemHandleUndoFeedbackAction_=function(){_.bC(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.v.dismissibleItemHandleTellUsWhySignalAction_=function(){var N=this;this.followUpDialogPromise.then(function(b){N.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:b}})})};
r3.prototype.dismissibleItemOnYtServiceRequestCompleted_=r3.prototype.dismissibleItemOnYtServiceRequestCompleted_;r3.prototype.dismissibleItemOnCommandSent=r3.prototype.dismissibleItemOnCommandSent;r3.prototype.dismissibleItemOnRequestSent=r3.prototype.dismissibleItemOnRequestSent;r3.prototype.dismissibleItemOnYtServiceRequestSent_=r3.prototype.dismissibleItemOnYtServiceRequestSent_;r3.prototype.dismissibleItemDataChanged_=r3.prototype.dismissibleItemDataChanged_;
r3.prototype.dismissibleItemIsDismissedChanged_=r3.prototype.dismissibleItemIsDismissedChanged_;_.p([_.L(_.u$),_.y("design:type",Object)],r3.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],r3.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],r3.prototype,"isDismissed",void 0);_.p([_.U(),_.y("design:type",Object)],r3.prototype,"dismissedRenderer",void 0);
_.p([_.W4("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],r3.prototype,"dismissibleItemIsDismissedChanged_",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],r3.prototype,"dismissibleItemDataChanged_",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],r3.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.p([_.RA("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],r3.prototype,"dismissibleItemOnRequestSent",null);
_.p([_.RA("yt-dismissible-item-action"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Array]),_.y("design:returntype")],r3.prototype,"dismissibleItemOnCommandSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],r3.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.p([_.Td()],r3);_.cO=[_.u$,_.Gr,r3.prototype];var an=function(){var N=_.kq.apply(this,arguments)||this;N.disableGridStateAware=!1;N.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};N.currentGridClass="";return N};
_.F(an,_.kq);an.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.W_(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var N=this.gridStateAwareGetElement();_.K3(N,"grid",!0)}};
an.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
an.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.H4(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
an.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var N="grid-disabled";else{N=_.Zy.getInstance();var b=this.get("pageSubtype");N=b&&h3z.includes(b)?"grid-disabled":N.currentSnapState_?N.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&N!==this.currentGridClass&&(N&&_.K3(b,N,!0),this.currentGridClass&&_.K3(b,this.currentGridClass,!1),this.currentGridClass=N)};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],an.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",String)],an.prototype,"gridStateAwareSizingElementSelector",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],an.prototype,"disableGridStateAware",void 0);_.p([_.Td()],an);_.Rn=[an.prototype,_.pG.YtActionHandlerBehavior];_.WO=new _.nO("GUIDE_TOKEN");var d3;_.n5={};d3=function(){var N=_.kq.apply(this,arguments)||this;N.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return N};
_.F(d3,_.kq);_.v=d3.prototype;_.v.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var N=_.aN().resolve(_.cq(_.WO));N&&(this.guidePersistentAndVisible=N.getGuidePersistentAndVisible(),this.activeEndpoint=N.getActiveEndpoint(),this.guideOpened=N.getGuideOpened(),this.miniGuideVisible=N.getMiniGuideVisible())};
_.v.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.v.handleGuideStateAction=function(N){this.guidePersistentAndVisible=N};
_.v.handleMiniGuideStateAction=function(N){this.miniGuideVisible=N};
_.v.handleGuideOpenedAction=function(N){this.guideOpened=N};
_.v.handleActiveEndpointAction=function(N){this.activeEndpoint=N};
d3.prototype.onActiveEndpointChange=d3.prototype.onActiveEndpointChange;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],d3.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],d3.prototype,"guidePersistentAndVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],d3.prototype,"miniGuideVisible",void 0);_.p([_.U(),_.y("design:type",Object)],d3.prototype,"activeEndpoint",void 0);
_.p([_.W4("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d3.prototype,"onActiveEndpointChange",null);_.p([_.U(),_.y("design:type",Boolean)],d3.prototype,"guideOpened",void 0);_.p([_.Td()],d3);_.n5.YtdGuideStateAwareBehavior=[];_.n5.YtdGuideStateAwareBehavior.push(d3.prototype,_.pG.YtActionHandlerBehavior);var DCN=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],mT=function(){var N=_.kq.apply(this,arguments)||this;N.hoverJobId=0;N.JSC$14671_touched=!1;return N};
_.F(mT,_.kq);_.v=mT.prototype;_.v.created=function(){this.useExpandableTooltip=!DCN.includes(this.is)};
_.v.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.v.detached=function(){this.useExpandableTooltip=!1};
_.v.lockupOnDown=function(N){this.interactionElement&&!_.VC(_.V7(N),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.v.lockupOnUp=function(N){this.interactionElement&&!_.VC(_.V7(N),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.v.onTouchStart=function(){this.JSC$14671_touched=!0};
_.v.lockupOnMouseEnter=function(){var N=this,b=_.d7("kevlar_lockup_hover_delay",-1);this.JSC$14671_touched&&b>=0?(_.Dj.cancelJob(this.hoverJobId),this.hoverJobId=_.Dj.addJob(function(){N.lockupIsHovered=!0},8,b),this.JSC$14671_touched=!1):this.lockupIsHovered=!0};
_.v.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Dj.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.v.lockupOnPopupClosed=function(N,b){var S;((S=b.popupRenderer)==null?void 0:S.is)==="ytd-menu-popup-renderer"&&(N=b.popupRenderer.veData,b=_.Qh(),N&&b&&_.YR(b,[N]))};
_.v.lockupOnLockupRequested=function(N){var b=N.detail.videoIds[0],S;N.detail&&b===((S=this.data)==null?void 0:S.videoId)&&(N.detail.returnValue=[this.data])};
_.v.lockupOnYtServiceRequestSent=function(N,b){if(N=b.actions)for(var S=0;S<N.length;S++){var P=N[S];if(P.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&b.ajaxPromise){var H=void 0,K=(H=_.t(b.endpoint,_.vC))==null?void 0:H.playlistId;H=void 0;P=(H=P.removedVideoId)!=null?H:"";MC4(_.M$(),P,K)}else P.action==="ACTION_REMOVE_VIDEO"&&b.ajaxPromise&&(K=void 0,P=(K=P.setVideoId)!=null?K:"",_.FYb(_.M$(),P))}};
_.v.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.v.lockupOnLockupEnabled=function(){if(!this.$){var N=_.aN().resolve(_.$9).getCurrentPage(),b=this.getParentRenderer?this.getParentRenderer():void 0;_.$h(new _.jU("component not ready",this.is,this.isAttached,N==null?void 0:N.is,b==null?void 0:b.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
mT.prototype.lockupOnLockupEnabled=mT.prototype.lockupOnLockupEnabled;mT.prototype.lockupOnLockupDisabled=mT.prototype.lockupOnLockupDisabled;mT.prototype.lockupOnYtServiceRequestSent=mT.prototype.lockupOnYtServiceRequestSent;mT.prototype.lockupOnLockupRequested=mT.prototype.lockupOnLockupRequested;mT.prototype.lockupOnPopupClosed=mT.prototype.lockupOnPopupClosed;mT.prototype.lockupOnMouseLeave=mT.prototype.lockupOnMouseLeave;mT.prototype.lockupOnMouseEnter=mT.prototype.lockupOnMouseEnter;
mT.prototype.onTouchStart=mT.prototype.onTouchStart;mT.prototype.lockupOnUp=mT.prototype.lockupOnUp;mT.prototype.lockupOnDown=mT.prototype.lockupOnDown;_.p([_.U(),_.y("design:type",Object)],mT.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],mT.prototype,"lockupIsHovered",void 0);_.p([_.U(),_.y("design:type",Boolean)],mT.prototype,"lockupTouchTriggered",void 0);_.p([_.U(),_.y("design:type",Boolean)],mT.prototype,"useExpandableTooltip",void 0);
_.p([_.dq("#interaction"),_.y("design:type",Object)],mT.prototype,"interactionElement",void 0);_.p([_.RA("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],mT.prototype,"lockupOnDown",null);_.p([_.RA("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],mT.prototype,"lockupOnUp",null);
_.p([_.RA("touchstart"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mT.prototype,"onTouchStart",null);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mT.prototype,"lockupOnMouseEnter",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mT.prototype,"lockupOnMouseLeave",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],mT.prototype,"lockupOnPopupClosed",null);_.p([_.RA("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],mT.prototype,"lockupOnLockupRequested",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],mT.prototype,"lockupOnYtServiceRequestSent",null);_.p([_.RA("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mT.prototype,"lockupOnLockupDisabled",null);
_.p([_.RA("yt-enable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mT.prototype,"lockupOnLockupEnabled",null);_.p([_.Td()],mT);_.kJ=[mT.prototype];_.V5N={YtdReduxBehavior:[]};_.V5N.YtdReduxBehavior.push.apply(_.V5N.YtdReduxBehavior,_.Gr);var Tr=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;N.disableNowPlaying=!1;N.disableTooltips=!1;N.useHoveredProperty=!1;N.hovered=!1;N.isThumbnailHovered_=!1;N.addBackground=_.T("kevlar_thumbnail_bg");N.nowPlaying=!1;N.disableRounding=!1;N.size="small";return N};
_.F(Tr,_.kq);_.v=Tr.prototype;_.v.computeThumbnailOverlaySidePanelWidth_=function(N,b){return N-b};
_.v.computeSize=function(N,b){if(!this.disableRounding){if(!N&&!b)return"small";N=Math.max(N||0,b||0);return N>=256?"large":N>=96?"medium":"small"}};
_.v.computeFinalHoveredState_=function(N,b,S){return this.nowPlaying?!1:_.T("kevlar_thumbnail_fluid")&&N?b:S};
_.v.computeHoverOverlays_=function(N,b){return N&&b?b:void 0};
_.v.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.v.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.v.checkMiniplayer_=function(){var N;if(((N=this.data)==null?0:N.playlistSetVideoId)&&_.T("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{N=_.gU();var b=N.currentEndpoint;!this.disableNowPlaying&&b&&_.t(b,_.Iv)&&this.data?(b=_.t(b,_.Iv),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=N==null?void 0:N.isVideoPlaying):this.nowPlaying=!1}};
Tr.prototype.checkMiniplayer_=Tr.prototype.checkMiniplayer_;Tr.prototype.onMouseLeave_=Tr.prototype.onMouseLeave_;Tr.prototype.onMouseEnter_=Tr.prototype.onMouseEnter_;Tr.prototype.computeHoverOverlays_=Tr.prototype.computeHoverOverlays_;Tr.prototype.computeFinalHoveredState_=Tr.prototype.computeFinalHoveredState_;Tr.prototype.computeSize=Tr.prototype.computeSize;Tr.prototype.computeThumbnailOverlaySidePanelWidth_=Tr.prototype.computeThumbnailOverlaySidePanelWidth_;
_.p([_.L(_.Gr),_.y("design:type",Object)],Tr.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],Tr.prototype,"height",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tr.prototype,"bottomSidePanel",void 0);_.p([_.U(),_.y("design:type",Number)],Tr.prototype,"width",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"disableNowPlaying",void 0);
_.p([_.U({selector:_.op}),_.y("design:type",Boolean)],Tr.prototype,"miniplayerIsActive",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"disableTooltips",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"useHoveredProperty",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"hovered",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"isThumbnailHovered_",void 0);
_.p([_.U({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.y("design:type",Boolean)],Tr.prototype,"finalHoveredState_",void 0);_.p([_.U({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.y("design:type",Number)],Tr.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Tr.prototype,"addBackground",void 0);
_.p([_.U({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.y("design:type",Object)],Tr.prototype,"hoverOverlays_",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Tr.prototype,"nowPlaying",void 0);_.p([_.U(),_.y("design:type",Boolean)],Tr.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.y("design:type",Object)],Tr.prototype,"disableRounding",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.y("design:type",Object)],Tr.prototype,"size",void 0);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tr.prototype,"onMouseEnter_",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tr.prototype,"onMouseLeave_",null);
_.p([_.W4("data","disableNowPlaying","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tr.prototype,"checkMiniplayer_",null);_.p([_.Td()],Tr);var gfk=[Tr.prototype];_.tC={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(N,b){return N+":"+_.gI(b)},
getPlayerListener_:function(N,b,S){N=this.getPlayerListenerKey_(N,b);b=this.playerListeners_.get(N);S&&this.playerListeners_.delete(N);return b},
savePlayerListener_:function(N,b){var S=b.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(N,b),S);return S},
listenToPlayerEvent:function(N,b,S){S=this.savePlayerListener_(b,S);N.addEventListener(b,S)},
listenToPlayerEvents:function(N,b){b.forEach(function(S,P){this.listenToPlayerEvent(N,P,S)}.bind(this))},
unlistenFromPlayerEvent:function(N,b,S){S=this.getPlayerListener_(b,S,!0);N.removeEventListener(b,S)},
unlistenFromPlayerEvents:function(N,b){b.forEach(function(S,P){this.unlistenFromPlayerEvent(N,P,S)}.bind(this))}}};
_.MT=function(){};_.eQz=new _.nO("PLAYER_API_TOKEN");var l8a=!1,Q1e,f8U=!1,oiY;var bK=function(N,b,S,P,H){_.E5.call(this);var K=this;this.playerId=b;this.webPlayerContextConfig=P;this.zNZ=H;this.zHr=!1;this.api={};this.lhD=this.m1N=null;this.c11=new _.uQ;this.vF={};this.rsN=this.jhF=this.elementId=this.dCG=this.config=null;this.zAk=!1;this.wu=this.fr1=null;this.qVn={};this.yvX=["onReady"];this.lastError=null;this.ajI=NaN;this.c9F={};this.sKL=0;this.wm=this.targetElement=N;_.QS(this,this.c11);$CV(this);S?this.sKL=setTimeout(function(){K.loadNewVideoConfig(S)},0):P&&(hQE(this),
q6E(this))};
_.F(bK,_.E5);bK.prototype.getId=function(){return this.playerId};
bK.prototype.loadNewVideoConfig=function(N){if(!this.isDisposed()){this.sKL&&(clearTimeout(this.sKL),this.sKL=0);var b=N||{};b instanceof ulb||(b=new ulb(b));this.config=b;this.setConfig(N);q6E(this);this.isReady()&&wJE(this)}};
var hQE=function(N){var b;N.webPlayerContextConfig?b=N.webPlayerContextConfig.rootElementId:b=N.config.attrs.id;N.elementId=b||N.elementId;N.elementId==="video-player"&&(N.elementId=N.playerId,N.webPlayerContextConfig?N.webPlayerContextConfig.rootElementId=N.playerId:N.config.attrs.id=N.playerId);var S;((S=N.wm)==null?void 0:S.id)===N.elementId&&(N.elementId+="-player",N.webPlayerContextConfig?N.webPlayerContextConfig.rootElementId=N.elementId:N.config.attrs.id=N.elementId)};
bK.prototype.setConfig=function(N){this.dCG=N;this.config=Ndc(N);hQE(this);if(!this.jhF){var b;this.jhF=bs9(this,((b=this.config.args)==null?void 0:b.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var S;if((S=this.config)==null?0:S.attrs)N=this.config.attrs,(b=N.width)&&this.wm&&(this.wm.style.width=gP(Number(b)||b,!0)),(N=N.height)&&this.wm&&(this.wm.style.height=gP(Number(N)||N,!0))};
bK.prototype.getConfig=function(){return this.dCG};
var wJE=function(N){if(N.config&&N.config.loaded!==!0)if(N.config.loaded=!0,!N.config.args||N.config.args.autoplay!=="0"&&N.config.args.autoplay!==0&&N.config.args.autoplay!==!1){var b;N.api.loadVideoByPlayerVars((b=N.config.args)!=null?b:null)}else N.api.cueVideoByPlayerVars(N.config.args)},P99=function(N){var b=!0,S=N.getPlayerElement();
S&&N.config&&(b=S.dataset.version===SAl(N));return b&&!!_.hl("yt.player.Application.create")},q6E=function(N){if(!N.isDisposed()&&!N.zAk){var b=P99(N);
if(b&&(N.getPlayerElement()?"html5":null)==="html5")N.rsN="html5",N.isReady()||HsN(N);else if(sFO(N),N.rsN="html5",b&&N.wu&&N.targetElement)N.targetElement.appendChild(N.wu),HsN(N);else{N.config&&(N.config.loaded=!0);var S=!1;N.fr1=function(){S=!0;var P=KBO(N,"player_bootstrap_method")?_.hl("yt.player.Application.createAlternate")||_.hl("yt.player.Application.create"):_.hl("yt.player.Application.create");var H=N.config?Ndc(N.config):void 0;P&&P(N.targetElement,H,N.webPlayerContextConfig,N.zNZ);HsN(N)};
N.zAk=!0;b?N.fr1():(_.zk(SAl(N),N.fr1),(b=vBZ(N))&&kyp(b||""),OsV(N)&&!S&&_.aB("yt.player.Application.create",null))}}};
bK.prototype.getPlayerElement=function(){var N=_.Nb(document,this.elementId);!N&&this.wm&&this.wm.querySelector&&(N=this.wm.querySelector("#"+this.elementId));return N};
var HsN=function(N){if(!N.isDisposed()){var b=N.getPlayerElement(),S=!1;b&&b.getApiInterface&&b.getApiInterface()&&(S=!0);if(S){N.zAk=!1;if(!KBO(N,"html5_remove_not_servable_check_killswitch")){var P;if((b==null?0:b.isNotServable)&&N.config&&(b==null?0:b.isNotServable((P=N.config.args)==null?void 0:P.video_id)))return}C9E(N)}else N.ajI=setTimeout(function(){HsN(N)},50)}},C9E=function(N){$CV(N);
N.zHr=!0;var b=N.getPlayerElement();if(b){N.m1N=GPO(N,b,"addEventListener");N.lhD=GPO(N,b,"removeEventListener");var S=b.getApiInterface();S=S.concat(b.getInternalApiInterface());for(var P=N.api,H=0;H<S.length;H++){var K=S[H];P[K]||(P[K]=GPO(N,b,K))}}for(var C in N.vF)N.vF.hasOwnProperty(C)&&N.m1N&&N.m1N(C,N.vF[C]);wJE(N);N.jhF&&N.jhF(N.api);N.c11.publish("onReady",N.api)},GPO=function(N,b,S){var P=b[S];
return function(){var H=_.$I.apply(0,arguments);try{return N.lastError=null,P.apply(b,H)}catch(K){if(S!=="sendAbandonmentPing")throw K.params=S,N.lastError=K,H=new _.jU("PlayerProxy error in method call",{error:K,method:S,playerId:N.playerId}),H.level="WARNING",H;}}},$CV=function(N){N.zHr=!1;
if(N.lhD)for(var b in N.vF)N.vF.hasOwnProperty(b)&&N.lhD(b,N.vF[b]);for(var S in N.c9F)N.c9F.hasOwnProperty(S)&&clearTimeout(Number(S));N.c9F={};N.m1N=null;N.lhD=null;b=N.api;for(var P in b)b.hasOwnProperty(P)&&(b[P]=null);b.addEventListener=function(H,K){N.addEventListener(H,K)};
b.removeEventListener=function(H,K){N.removeEventListener(H,K)};
b.destroy=function(){N.dispose()};
b.getLastError=function(){return N.getLastError()};
b.getPlayerType=function(){return N.getPlayerType()};
b.getCurrentVideoConfig=function(){return N.getConfig()};
b.loadNewVideoConfig=function(H){N.loadNewVideoConfig(H)};
b.isReady=function(){return N.isReady()}};
bK.prototype.isReady=function(){return this.zHr};
bK.prototype.addEventListener=function(N,b){var S=this;this.isDisposed();var P=bs9(this,b);P&&(_.Z_(this.yvX,N)||this.vF[N]||(b=rfE(this,N),this.m1N&&this.m1N(N,b)),this.c11.subscribe(N,P),N==="onReady"&&this.isReady()&&setTimeout(function(){P(S.api)},0))};
bK.prototype.removeEventListener=function(N,b){this.isDisposed()||(b=bs9(this,b))&&this.c11.unsubscribe(N,b)};
var bs9=function(N,b){var S=b;if(typeof b==="string"){if(N.qVn[b])return N.qVn[b];S=function(){var P=_.$I.apply(0,arguments),H=_.hl(b);if(H)try{H.apply(_.Ps,P)}catch(K){throw P=new _.jU("PlayerProxy error when executing callback",{error:K}),P.level="ERROR",P;}};
N.qVn[b]=S}return S?S:null},rfE=function(N,b){var S=function(P){var H=function(){N.isDisposed();
if(!N.isDisposed())try{N.c11.publish(b,P!=null?P:void 0)}catch(G){var C=new _.jU("PlayerProxy error when creating global callback",{error:G.message,event:b,playerId:N.playerId,data:P,originalStack:G.stack,componentStack:G.componentStack});C.level="WARNING";throw C;}};
if(KBO(N,"web_player_publish_events_immediately"))H();else{var K=setTimeout(function(){H();_.Vm.remove(N.c9F,String(K))},0);
_.Vm.add(N.c9F,String(K),!0)}};
return N.vF[b]=S};
bK.prototype.getPlayerType=function(){return this.rsN||(this.getPlayerElement()?"html5":null)};
bK.prototype.getLastError=function(){return this.lastError};
var sFO=function(N){N.cancel();$CV(N);N.rsN=null;N.config&&(N.config.loaded=!1);var b=N.getPlayerElement();b&&(P99(N)||!OsV(N)?N.wu=b:(b&&b.destroy&&b.destroy(),N.wu=null));N.targetElement&&_.E7(N.targetElement)};
bK.prototype.cancel=function(){this.fr1&&_.gMY(SAl(this),this.fr1);clearTimeout(this.ajI);this.zAk=!1};
bK.prototype.disposeInternal=function(){sFO(this);if(this.wu&&this.config&&this.wu.destroy)try{this.wu.destroy()}catch(b){var N=new _.jU("PlayerProxy error during disposal",{error:b});N.level="ERROR";throw N;}this.qVn=null;for(N in this.vF)this.vF.hasOwnProperty(N)&&delete this.vF[N];this.dCG=this.config=this.api=null;delete this.targetElement;delete this.wm;_.E5.prototype.disposeInternal.call(this)};
var OsV=function(N){var b,S;N=(b=N.config)==null?void 0:(S=b.args)==null?void 0:S.fflags;return!!N&&N.indexOf("player_destroy_old_version=true")!==-1},SAl=function(N){return N.webPlayerContextConfig?N.webPlayerContextConfig.jsUrl:(N=N.config.assets)?N.js:""},vBZ=function(N){return N.webPlayerContextConfig?N.webPlayerContextConfig.cssUrl:(N=N.config.assets)?N.css:""},KBO=function(N,b){if(N.webPlayerContextConfig)var S=N.webPlayerContextConfig.serializedExperimentFlags;
else{var P;if((P=N.config)==null?0:P.args)S=N.config.args.fflags}return(S||"").split("&").includes(b+"=true")},Ndc=function(N){for(var b={},S=_.O(Object.keys(N)),P=S.next();!P.done;P=S.next()){P=P.value;
var H=N[P];b[P]=typeof H==="object"?_.Vm.clone(H):H}return b};var j1b={},ZKs="player_uid_"+(Math.random()*1E9>>>0);var FL=function(N,b,S,P,H,K){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=N;this.container=b;this.commandResolver=S;this.apiResolver=X6E();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.GB;P||K?cfb(this):am9(this);this.pendingPlayerResponse=P;this.pendingWatchNextResponse=H;this.pendingPlayerVars=K;R4S(this)};
FL.prototype.loadVideoWithPlayerResponse=function(N,b,S){this.loadVideo(N,b,S)};
FL.prototype.loadVideoWithPlayerVars=function(N){return this.loadVideo(void 0,void 0,N)};
FL.prototype.destroy=function(N){if(N=_.Nb(document,N))N=ZKs+"_"+_.gI(N),(N=j1b[N])&&N.dispose()};
var nBb=function(N,b){var S;_.r(function(P){if(P.nextAddress==1)return N.pendingWatchNextResponse=b,N.synchronousApi?(S=N.synchronousApi,P.jumpTo(2)):P.yield(N.api,3);P.nextAddress!=2&&(S=P.yieldResult);if(!WBz(N,S))return P.return();N.pendingWatchNextResponse&&(S.updateVideoData({raw_watch_next_response:N.pendingWatchNextResponse}),N.pendingWatchNextResponse=void 0);_.Zd(P)})},WBz=function(N,b){var S;
if(!(b==null?0:(S=b.isReady)==null?0:S.call(b))){var P;_.$h(new _.jU("playerApi is falsey",{synchronousApi:N.synchronousApi,apiResolved:N.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(P=b.isReady)==null?void 0:P.call(b))===!0,playerApiMethods:b?Object.keys(b):[]}));return!1}return!0},dlk=function(N,b){if(typeof N[b]==="function")return N[b]()},mlS=function(N){var b=window,S,P=(S=b.ytplayer)==null?void 0:S.bootstrapPlayerContainer;
if((S=P==null?void 0:P.firstElementChild)&&_.K8(S,"html5-video-player")){var H,K,C=(H=b.ytplayer)==null?void 0:(K=H.bootstrapWebPlayerContextConfig)==null?void 0:K.contextId;H=N.webPlayerContextConfig.contextId;if(C&&C===H){P!==N.container&&(P=!1,dlk(S,"getPlayerState")===2&&(P=!0),N.container.appendChild(S),P||dlk(S,"playVideo"));var G;if((G=b.ytplayer)==null?0:G.bootstrapPlayerResponse)N.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},R4S=function(N){var b,S,P,H,K;
_.r(function(C){if(C.nextAddress==1)return N.pageReadyOrDataAvailable?C.jumpTo(2):C.yield(N.pageReadyOrDataAvailableResolver.promise,2);if(C.nextAddress!=4)return!_.T("kevlar_player_unified_player_loading")||LFL()&&uYY()?C.jumpTo(4):C.yield(JyL(),4);mlS(N);if(N.pendingPlayerResponse||N.pendingPlayerVars)b=Uxu(N.pendingPlayerResponse,N.pendingWatchNextResponse,N.pendingPlayerVars),N.pendingPlayerResponse&&N.pendingPlayerResponse===N.bootstrapPlayerResponse&&(b.loaded=!0),N.bootstrapPlayerResponse=
void 0;S=Ays(N.container,b,N.webPlayerContextConfig);((P=b)==null?0:P.loaded)&&N.pendingWatchNextResponse?(nBb(N,N.pendingWatchNextResponse),N.pendingPlayerResponse=void 0,N.pendingPlayerVars=void 0):kP9(N);H=function(G){S.removeEventListener("onReady",H);N.synchronousApi=G;N.apiResolver.resolve(G)};
S.addEventListener("onReady",H);N.commandResolver!==void 0&&(K=N.commandResolver,S.addEventListener("innertubeCommand",function(G){K(G)}));
_.Zd(C)})};
FL.prototype.loadVideo=function(N,b,S){var P=this,H,K,C,G,a,R,n,d,m;return _.r(function(k){if(k.nextAddress==1)return P.pendingPlayerResponse=N,P.pendingWatchNextResponse=b,P.pendingPlayerVars=S,cfb(P),P.synchronousApi?(H=P.synchronousApi,k.jumpTo(2)):k.yield(P.api,3);k.nextAddress!=2&&(H=k.yieldResult);if(!WBz(P,H))return k.return(new Promise(function(){}));
C=new Promise(function(M){K=M});
G=function(){var M=H.getPlayerResponse();M&&(H.removeEventListener("onVideoDataChange",G),K(M))};
H.addEventListener("onVideoDataChange",G);if(P.pendingPlayerResponse||P.pendingPlayerVars)P.pendingPlayerResponse&&P.pendingPlayerResponse===P.bootstrapPlayerResponse?(K(P.pendingPlayerResponse),P.pendingWatchNextResponse&&nBb(P,P.pendingWatchNextResponse)):(a=Uxu(P.pendingPlayerResponse,P.pendingWatchNextResponse,P.pendingPlayerVars),(m=(R=P.pendingPlayerResponse)==null?void 0:(n=R.playerConfig)==null?void 0:(d=n.playbackStartConfig)==null?void 0:d.startPaused)?H.cueVideoByPlayerVars(a.args):H.loadVideoByPlayerVars(a.args)),
kP9(P),P.bootstrapPlayerResponse=void 0;return k.return(C)})};
var am9=function(N){if(document.readyState==="complete"||document.readyState==="interactive")cfb(N);else{var b=function(){document.removeEventListener("DOMContentLoaded",b);cfb(N)};
document.addEventListener("DOMContentLoaded",b)}},cfb=function(N){N.pageReadyOrDataAvailable=!0;
N.pageReadyOrDataAvailableResolver.resolve()},kP9=function(N){N.pendingPlayerResponse=void 0;
N.pendingWatchNextResponse=void 0;N.pendingPlayerVars=void 0};
_.d0.Object.defineProperties(FL.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var BO=function(N){$S.call(this,N===void 0?"document_active":N);var b=this;this.overridePriority=10;this.JSC$14704_hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(S){b.transition("document_disposed",{event:S})});
window.addEventListener("beforeunload",function(S){b.transition("document_disposed_preventable",{event:S})});
window.addEventListener("unload",function(S){b.transition("document_disposed",{event:S});b.JSC$14704_hasRun=new Map})};
_.F(BO,$S);
BO.prototype.runPreventableDispose=function(N,b){if(!this.JSC$14704_hasRun.get("document_disposed_preventable")){N(b==null?void 0:b.event);var S,P;if((b==null?0:(S=b.event)==null?0:S.defaultPrevented)||(b==null?0:(P=b.event)==null?0:P.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.JSC$14704_hasRun=new Map;this.transition("document_active");return}}this.JSC$14704_hasRun.set("document_disposed_preventable",!0);this.JSC$14704_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
BO.prototype.runDispose=function(N,b){this.JSC$14704_hasRun.get("document_disposed")?this.transition("document_active"):(N(b==null?void 0:b.event),this.JSC$14704_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
BO.prototype.runFlush=function(N,b){N(b==null?void 0:b.event);this.transition("document_active")};
BO.prototype.runActive=function(){};var l8=function(N){$S.call(this,N===void 0?"document_visibility_unknown":N);var b=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(S){document.visibilityState==="visible"?b.transition("document_visible",{event:S}):b.transition("document_hidden",
{event:S})});
_.T("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(S){b.transition("document_backgrounded",{event:S})}),window.addEventListener("focus",function(S){b.transition("document_foregrounded",{event:S})}))};
_.F(l8,$S);l8.prototype.runVisible=function(N,b){N(b==null?void 0:b.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
l8.prototype.runHidden=function(N,b){N(b==null?void 0:b.event);_.T("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
l8.prototype.runBackgrounded=function(N,b){N(b==null?void 0:b.event)};
l8.prototype.runForegrounded=function(N,b){N(b==null?void 0:b.event)};var L5=function(){this.teardownLifecycle=new BO;this.visibilityLifecycle=new l8};
L5.prototype.install=function(){var N=_.$I.apply(0,arguments),b=this;N.forEach(function(S){b.teardownLifecycle.install(S)});
N.forEach(function(S){b.visibilityLifecycle.install(S)})};var f5=function(){L5.call(this);var N={};this.install((N.document_disposed={callback:this.abortSlisAndFlush},N));_.T("combine_ve_grafts")&&(N={},this.install((N.document_disposed={callback:this.flushInteractionLoggingAttachVes},N)));N={};this.install((N.flush_logs={callback:this.logFinalPayload},N));_.T("web_log_cfg_cee_ks")||_.XC(_.Dj,Tdz)};
_.F(f5,L5);var Eis=function(){f5.loggingInstance||(f5.loggingInstance=new f5);return f5.loggingInstance};
f5.prototype.logFinalPayload=function(){if(_.T("web_fp_via_jspb")){var N=new Msb,b=_.Qh();b&&_.En(N,1,b);b=_.T("jspb_sparse_encoded_pivot")?new Ad([{}]):new Ad;_.o$(b,380,FaO,N);zFb("finalPayload",b);_.T("web_fp_via_jspb_and_json")&&_.Dn("finalPayload",{csn:_.Qh()})}else _.Dn("finalPayload",{csn:_.Qh()})};
f5.prototype.abortSlisAndFlush=function(){CkE(kD);TD!=null&&TD.flush()};
f5.prototype.flushInteractionLoggingAttachVes=function(){J$9(_.dG())};
var Tdz=function(){var N=_.Vg("CLIENT_EXPERIMENT_EVENTS");if(N){var b=b9O();N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,b(S)&&_.Dn("genericClientExperimentEvent",{eventType:S});delete _.Iu.CLIENT_EXPERIMENT_EVENTS}};var twO={};
twO.YtPlayerBehavior=[_.tC.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var N=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.GB;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;p6E(function(){N.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.hA(this,"pan-down"),_.T("kevlar_pinch_fullscreen")&&_.gt().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.T("kevlar_pinch_fullscreen")&&_.gt().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(N,b,S){var P=this;SF(this.useUnifiedPlayer_());if(this.mainAppPlayer_)SF(!1,"MainAppPlayer already created.");else{var H=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.H4(this.hostElement).querySelector("#container");this.mainAppPlayer_=new FL(this.getWebPlayerContextConfig_(),H,function(K){return _.c7(K,P.hostElement)},N,b,S);
this.mainAppPlayer_.api.then(function(K){P.player_=K;P.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UFN.resolve(K)})}},
loadVideoWithPlayerResponse:function(N,b){var S=this;if(this.useUnifiedPlayer_()){var P=this.watchNextData,H,K=(H=N.videoDetails)==null?void 0:H.videoId,C,G,a;(H=(C=this.watchNextData)==null?void 0:(G=C.currentVideoEndpoint)==null?void 0:(a=G.watchEndpoint)==null?void 0:a.videoId)&&K!=H&&(P=void 0,_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(N,P,b):this.createMainAppPlayer_(N,P,b);this.mainAppPlayer_.api.then(function(){_.bC(S.hostElement,
"yt-player-updated")})}else this.update(MPe(N,b))},
loadVideoWithPlayerVars:function(N){var b=this;this.useUnifiedPlayer_()?(_.T("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(N):this.createMainAppPlayer_(void 0,void 0,N),this.mainAppPlayer_.api.then(function(){_.bC(b.hostElement,"yt-player-updated")})):this.update({args:N})},
update:function(N){var b=this;if(this.useUnifiedPlayer_())SF(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(N);var S=Pbp(N.args);S&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==S&&Object.assign(N.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(N).then(function(P){_.bC(b.hostElement,"yt-player-updated",_.T("kevlar_player_updated_obsolete_player_killswitch")?
P:void 0)})}_.ed(new _.jU("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.getPlayerPromise(),2);S=P.yieldResult;if(!S)throw Error("wh");N&&b.updatePlayerPlaylist_(N);_.Zd(P)})},
acquireApi_:function(N){var b=this;if(this.useUnifiedPlayer_())SF(!1,"Invalid method call in kevlar_unified_player.");else return _.Dj.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(SF(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(S){b.shouldAutoplay_(N)?S.loadVideoByPlayerVars(N.args):S.cueVideoByPlayerVars(N.args)})):this.initPlayerPromise_=this.initPlayerContainer_(N),this.initPlayerPromise_},
initPlayerContainer_:function(N){var b=this;if(this.useUnifiedPlayer_())SF(!1,"Invalid method call in kevlar_unified_player.");else return SF(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.$h(Error("xh")),SF(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.T("kevlar_player_container_query_killswitch")?this.$.container:_.H4(this.hostElement).querySelector("#container"),JyL().then(function(){var S=b.initPlayer_(N);b.playerResolver_.resolve(S);
return S})},
onPlayerReady_:function(N,b){this.useUnifiedPlayer_()?SF(!1,"Invalid method call in kevlar_unified_player."):(N.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UFN.resolve(N),b(N))},
maybeCallApiMethodOnElement_:function(N,b){if(typeof N[b]==="function")return N[b]()},
maybeAdoptBootstrapPlayer_:function(){var N=window,b,S=(b=N.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=S==null?void 0:S.firstElementChild)&&b.classList.contains("html5-video-player")){var P,H,K=(P=N.ytplayer)==null?void 0:(H=P.bootstrapWebPlayerContextConfig)==null?void 0:H.contextId;P=this.getWebPlayerContextConfig_().contextId;if(K&&K===P){S!==this.playerContainer_&&(S=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(S=!0),this.playerContainer_.appendChild(b),S||this.maybeCallApiMethodOnElement_(b,
"playVideo"));var C;if((C=N.ytplayer)==null?0:C.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=N.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(N){var b=this;if(this.useUnifiedPlayer_())SF(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(S){b.maybeAdoptBootstrapPlayer_();var P=N?FFL(N):void 0;P&&P==b.bootstrapPlayerResponse_&&(N.loaded=!0);P=b.playerContainer_;var H=b.getWebPlayerContextConfig_();P=Ays(P,N,H);b.player_=P;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,S);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand",
b.onPlayerInnerTubeCommand_.bind(b))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(N){N.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(N){N.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var N=_.aN().resolve(_.$9).getCurrentPage();N&&N.getScrollTop()<=0?_.hA(this,"pan-down"):_.hA(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(N){N.isFullscreen()||N.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(N){N.isFullscreen()&&N.toggleFullscreen()})},
updatePlayerPlaylist_:function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1)return S=_.aN().resolve(_.cq(_.dt)),P=!!(S&&S.playlistComponent&&S.playlistComponent.loopOn),K.yield(b.getPlayerPromise(),2);var C=H=K.yieldResult,G=C.updatePlaylist,a=[];if(_.T("kevlar_player_playlist_use_local_index")){var R,n;var d=(n=(R=N.localCurrentIndex)!=null?R:N.currentIndex)!=null?n:0}else{var m;d=(m=N.currentIndex)!=null?m:0}if(N.contents)for(R=0;R<N.contents.length;R++)if((n=N.contents[R])&&n.playlistPanelVideoRenderer)if(FTa(n)){n=
n.playlistPanelVideoRenderer;m="";n.shortBylineText&&(m=_.es(n.shortBylineText));var k="";n.title?k=_.es(n.title):n.unplayableText&&(k=_.es(n.unplayableText));a.push({author:m,title:k,encrypted_id:n.videoId})}else R<d&&--d;G.call(C,{index:d,list:N.playlistId?N.playlistId:"",loop:P,playlist_title:N.title,playlist_length:a.length,video:a,fetch:0,external_list:"1",title:N.title?N.title:"",playlist_author:N.ownerName?_.es(N.ownerName):void 0});_.Zd(K)})},
focusOnPlayer:function(){_.W_(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var N=this.playerContainer_.querySelector(".html5-video-player");N&&(_.u8(_.aN().resolve(_.mh)),N.focus())}})},
preparePlayer:function(){var N=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(b){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")b();else{var S=function(){document.removeEventListener("DOMContentLoaded",S);b()};
document.addEventListener("DOMContentLoaded",S)}})).then(function(){return JyL()}).then(function(){N.initPlayerPromise_||N.preparePlayerJobId_||(N.preparePlayerJobId_=_.XC(_.Dj,function(){N.initPlayerPromise_||(N.initPlayerPromise_=N.initPlayerContainer_())}))}):_.ed(new _.jU("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(N){this.useUnifiedPlayer_()?SF(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(N)||(N.args.autoplay="0")},
shouldAutoplay_:function(N){if(this.useUnifiedPlayer_())SF(!1,"Invalid method call in kevlar_unified_player.");else{var b=this.get("args.el",N);return b&&b!="detailpage"&&this.isMiniplayerActive_()||b&&(b=="sponsorshipsoffer"||b=="handlesclaiming")&&this.get("args.autoplay",N)=="0"?!1:(N=FFL(N))&&this.get("playerConfig.playbackStartConfig.startPaused",N)?!1:!0}},
isMiniplayerActive_:function(){return _.aN().resolve(_.E_).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var N=this.getPlayer();if(N){var b=N.getPlayerState();_.T("kevlar_player_check_ad_state_on_stop")&&(b=N.getPlayerState(N.getPresentingPlayerType()));b!=5&&N.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(N,b,S){S=S===void 0?!1:S;var P=this,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return b||(b=P.hostElement),H=P.useUnifiedPlayer_()?!!P.mainAppPlayer_:!!P.initPlayerPromise_,H?a.yield(P.getPlayerPromise(),2):(S?N.insertBefore(b,N.firstChild):N.appendChild(b),a.return());K=a.yieldResult;C=K.getPlayerState(K.getPresentingPlayerType());G=!1;if(C==-1||C==1||C==3)G=!0;S?N.insertBefore(b,N.firstChild):N.appendChild(b);G&&K.playVideo();K.setSize(NaN,NaN);_.Zd(a)})},
watchNextDataChanged_:function(N){var b=this;N&&(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&nBb(this.mainAppPlayer_,N):this.getPlayerPromise().then(function(S){S.updateVideoData(b.computeWatchNextPlayerVars_(N))}))},
computeWatchNextPlayerVars_:function(N){if(this.useUnifiedPlayer_()&&_.T("kevlar_unified_player_update_watch_next_killswitch"))SF(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:N}},
maybeSendAbandonmentPing_:function(){var N=this.getPlayer();N&&N.getPlayerState()!=5&&N.getPlayerState()!=0&&N.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var N=_.Vg("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(N=Object.assign({},N),N.rootElementId=this.playerId);N.serializedExperimentIds&&N.serializedExperimentFlags||_.$h(Error("yh"));return N},
hasWebPlayerContextConfig_:function(){return!!_.Vg("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(N){this.useUnifiedPlayer_()?SF(!1,"Invalid method call in kevlar_unified_player."):_.c7(N,this.hostElement)},
useUnifiedPlayer_:function(){var N=_.T("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.T("kevlar_unified_player")||N}}];var MwN={};MwN.YtPlaylistPanelBehavior=[_.h.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(N){N=N.detail;if(N.actions.loop!=void 0||N.actions["yt-icons:loop"]!=void 0)this.loopOn=N.actions.loop||N.actions["yt-icons:loop"];if(N.actions.shuffle!=void 0||N.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=N.actions.shuffle||N.actions["yt-icons:shuffle"]},
setMenuData_:function(N){if(!N||!N.playlistButtons||N.isInfinite)return null;for(var b=N.playlistButtons.menuRenderer.topLevelButtons,S=b.length,P=0;P<S;P++)if(b[P].toggleButtonRenderer){var H=b[P].toggleButtonRenderer;H.defaultIcon.iconType=="LOOP"&&this.loopOn?H.isToggled=this.loopOn:H.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(H.isToggled=this.shuffleOn)}return N.playlistButtons}}];_.Qr={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(N,b,S){var P=this.getClickTarget_(b);if(P&&this.isClickAllowed_(P)){b.preventDefault();N=(0,_.Vm.unsafeClone)(N);var H=this.getContainerBoundingRect();b=this.getRelativeClickXy_(b,H);this.expandEndpointUrlMacros_(N,{NX:b[0],NY:b[1],NB:P.code});S&&this.truncateWebCommendMetadataUrl_(N);_.bC(this.hostElement,"yt-navigate",{endpoint:N})}},
getClickTarget_:function(N){if(!this.clickTargetMap)return null;N=_.V7(N)||[];N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;if(b===_.H4(this.hostElement).querySelector("#menu"))break;if(b=this.clickTargetMap.get(b.id))return b}return null},
getRelativeClickXy_:function(N,b){var S=Math.round(N.detail.x-b.left);N=Math.round(N.detail.y-b.top);return S<0||N<0?[null,null]:[S,N]},
getContainerBoundingRect:function(){return _.H4(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(N,b){for(var S=_.O(N.loggingUrls||[]),P=S.next();!P.done;P=S.next())P=P.value,P.baseUrl&&(P.baseUrl=m8a(P.baseUrl,b));N.urlEndpoint&&N.urlEndpoint.url&&(N.urlEndpoint.url=m8a(N.urlEndpoint.url,b));N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url&&(N.commandMetadata.webCommandMetadata.url=m8a(N.commandMetadata.webCommandMetadata.url,b))},
truncateWebCommendMetadataUrl_:function(N){if(N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url){var b=N.commandMetadata.webCommandMetadata.url,S=b.indexOf("&pp=");if(S>0){var P=b.indexOf("&",S+1);N.commandMetadata.webCommandMetadata.url=P>S&&P<b.length?b.slice(0,S)+b.slice(P):b.slice(0,S)}}},
configureClickTargets:function(N,b,S){this.containerId=N;this.clickTargetMap=new Map;N=_.O(b);for(b=N.next();!b.done;b=N.next())if(b=b.value,b.location){var P=S.get(b.location);P&&(_.K3(_.H4(this.hostElement).querySelector("#"+P),"yt-simple-endpoint",this.isClickAllowed_(b)),this.clickTargetMap.set(P,b))}},
isClickAllowed_:function(N){return N.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.xJ={};
_.xJ.YtLazyListBehavior=[_.Bt.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var N=(this.constructor.generatedFrom||this).observers;N||(N=[]);N.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
N}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var N=this.renderElementsOutsideVisibleArea_;N&&(M4c(N,4),N.processSignal())},
deepLazyListObserver_:function(N){var b=this;if(N){var S=N.value||[];if(this.itemsPath==N.path){var P=this.nonDeferredItemCount;N=0;P>-1&&S.length>P&&(N=_.Vg("REMAINING_DOVA_DEFERRED_CHUNKS",-1));N>0?(P>0&&(P=S.slice(0,P),this.setInitialItemsOnDataChanged(P)),(P=this.renderElementsOutsideVisibleArea_)?P.cancel():(P=this.renderElementsOutsideVisibleArea_=new _.LG(2,"eocs"),_.lNY(window,"scroll",function(){return b.renderDeferredElements()})),_.fG(P,function(){b.setInitialItemsOnDataChanged(S)}),_.DH("REMAINING_DOVA_DEFERRED_CHUNKS",
N-1)):this.setInitialItemsOnDataChanged(S)}else if(this.itemsPath+".splices"==N.path)this.onItemsUpdated_(S);
else P="shownItems"+N.path.substr(this.itemsPath.length),this.useSignals&&P==="shownItems.length"||this.notifyPath(P,N.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(N){N&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(N),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(N){N=N.indexSplices;for(var b=0,S=N.length;b<S;b++){var P=N[b];if(P.index<this.shownCount&&(P.removed&&this.splice("shownItems",P.index,P.removed.length),P.addedCount)){var H=P.object.slice(P.index,P.index+P.addedCount);P=["shownItems",P.index,0];P.push.apply(P,H);this.splice.apply(this,P)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(N){this.cancelPendingTasks_();N||(N=[]);this.items_=N;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.g8("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.W_(this,this.tryRenderChunk_)))},
fillRange_:function(N,b){this.canShowMore&&this.items_&&(N=this.items_.slice(N,b),N.unshift("shownItems"),this.push.apply(this,N),this.shownCount=b,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var N=this;this.canShowMore&&_.Yq(this,"renderChunk",function(){N.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.g8("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Bm(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var N=this.renderElementsOutsideVisibleArea_;N&&(N.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var N=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(N-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=N;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(N){return Math.ceil(1E3/N)},
onCanShowMoreUpdated_:function(N){this.data&&this.items_!==null&&(N?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(N){!this.shouldUseTaskManager()&&this.data&&(!N&&this.canShowMore?(_.BfO(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):N&&this.partiallyRenderedItems_.has(this.items_)&&(_.T("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var JC;_.on={};
JC=function(){var N=_.kq.apply(this,arguments)||this;N.atStart=!0;N.atEnd=!0;N.startIndex=0;N.endIndex=0;N.scrollCount=0;N.initialStartIndex=0;N.disableScrollEventListener=!1;N.useFloorScrolling=!1;N.isSearch=!1;N.dragging=!1;N.dragMouseStart=0;N.dragOffsetStart=0;N.disableWheelScroll=!1;N.centerListItems=!1;N.offset=0;N.minComponentWidth=0;N.marginWidthRight=0;N.marginWidthLeft=0;N.setButtonsStateRequested=!1;N.itemsVisibilityObserver=null;N.fullyVisibleItemsIndices=[];N.JSC$14733_onWheelScroll=function(b){if(N.isSearch&&
!N.disableWheelScroll&&_.T("desktop_enable_dmpanel_wheel_scroll")){var S=b.shiftKey?Math.abs(b.deltaY)>Math.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;S!==0&&(b.preventDefault(),N.ytLazyListBehavior.fillRemainingListItems(),N.offset+=S,i8(N),N.reposition_())}};
N.onPointerDown=function(b){FB9(N)&&(N.dragMouseStart=b.clientX,N.dragOffsetStart=N.offset,N.dragging=!0)};
N.onPointerMove=function(b){FB9(N)&&N.dragging&&(N.ytLazyListBehavior.fillRemainingListItems(),N.offset=N.dragOffsetStart-(b.clientX-N.dragMouseStart),i8(N),N.reposition_())};
N.onPointerUp=function(){FB9(N)&&(N.dragging=!1)};
return N};
_.F(JC,_.kq);var Bd9=function(N){var b=_.H4(N.hostElement).querySelector("#items").children;if(!b)return 0;var S=0;N=_.O(N.fullyVisibleItemsIndices);for(var P=N.next();!P.done;P=N.next())S+=b[P.value].clientWidth;return S},FB9=function(N){return N.isSearch&&_.T("desktop_enable_dmpanel_click_drag_scroll")};
JC.prototype.created=function(){this.cachedViewportWidth=_.Vg("initialInnerWidth")||window.innerWidth;this.JSC$14733_cachedViewportHeight=_.Vg("initialInnerHeight")||window.innerHeight;_.Vg("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.DH("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
JC.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();lm9(this)};
JC.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.T("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var N;(N=this.itemsVisibilityObserver)==null||N.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()};
var lm9=function(N){var b=_.H4(N.hostElement).querySelector("#scroll-container");if(b){if(!N.itemsVisibilityObserver){var S=window.getComputedStyle(b).marginRight;N.itemsVisibilityObserver=new IntersectionObserver(function(P){LB9(N,P)},{root:b,
rootMargin:S,threshold:.98})}if(b=_.H4(N.hostElement).querySelector("#items"))N.itemsObserver=new hLk(b,function(P){fmE(N,P)})}},fmE=function(N,b){u79(N)&&(Array.from(b.addedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){N.itemsVisibilityObserver&&N.itemsVisibilityObserver.observe(S)}),Array.from(b.removedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){N.itemsVisibilityObserver&&N.itemsVisibilityObserver.unobserve(S)}))},
LB9=function(N,b){var S=new Set(N.fullyVisibleItemsIndices);
b=_.O(b);for(var P=b.next();!P.done;P=b.next()){P=P.value;var H=P.target.parentElement;H?(H=Array.from(H.children).indexOf(P.target),P.isIntersecting?S.add(H):S.has(H)&&S.delete(H)):_.$h(new _.jU("Parent element not found",P.target.nodeName))}N.fullyVisibleItemsIndices=Array.from(S).sort(function(K,C){return K-C});
S.size===0?_.$h(new _.jU("No visible entries in horizontal list")):(N.startIndex=N.fullyVisibleItemsIndices[0],N.endIndex=N.fullyVisibleItemsIndices[N.fullyVisibleItemsIndices.length-1])},u79=function(N){N.data?N=(N=N.data)&&N.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===N.itemSizeConstraint:!1:N=!1;
return N};
_.v=JC.prototype;_.v.addScrollEventListeners=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container");N.style.touchAction="pan-y";N.addEventListener("wheel",this.JSC$14733_onWheelScroll);N.addEventListener("pointerdown",this.onPointerDown);N.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.v.removeScrollEventListeners=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container");N.removeEventListener("wheel",this.JSC$14733_onWheelScroll);N.removeEventListener("pointerdown",this.onPointerDown);N.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.v.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.W_(this,this.setStartIndex,[this.initialStartIndex])};
_.v.reposition_=function(){var N=_.Vg("HTML_DIR")=="rtl"?"":"-",b=_.H4(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+N+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.v.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.W_(this,this.setButtonsState_))};
_.v.setButtonsState_=function(){this.setButtonsStateRequested=!1;var N=_.H4(this.hostElement).querySelector("#items").firstElementChild;if(N){this.minComponentWidth||(this.minComponentWidth=QFd(this,N));N=_.H4(this.hostElement).querySelector("#scroll-container").clientWidth;var b=_.H4(this.hostElement).querySelector("#items");b=_.T("kevlar_horizontal_list_scroll_width_killswitch")?b.clientWidth:b.scrollWidth;var S=this.get(this.ytLazyListBehavior.itemsPath,this);if(S){var P=Math.round(N/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+P,S.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+N&&(this.atEnd=!1):this.atEnd=this.offset+N>=b-20?!0:!1;this.atStart=this.offset<=20}};
_.v.setStartIndex=function(N){if(!this.minComponentWidth){var b=_.H4(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=QFd(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*N;i8(this);this.reposition_()};
_.v.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.oo();var N=_.H4(this.hostElement).querySelector("#scroll-container").clientWidth;_.T("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=QFd(this,_.H4(this.hostElement).querySelector("#items").firstElementChild));N=this.useFloorScrolling?Math.floor(N/this.minComponentWidth)||1:Math.round(N/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&xlO(this);this.offset+=u79(this)?
Bd9(this):N*this.minComponentWidth;i8(this);this.reposition_();this.scrollCount++};
_.v.prevClick_=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container").clientWidth;N=this.useFloorScrolling?Math.floor(N/this.minComponentWidth)||1:Math.round(N/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=u79(this)?Bd9(this):this.minComponentWidth*this.scrollCount-1):this.offset-=u79(this)?Bd9(this):N*this.minComponentWidth;this.centerListItems&&xlO(this);i8(this);this.reposition_()};
_.v.onIronResize_=function(){this.resizeSupportEnabled&&_.W_(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.v.onItemsTransitionEnd_=function(N){_.gQ(N)===_.H4(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.v.onChildElementFocus_=function(N){N=N.target.closest("#items > *");var b=_.H4(this.hostElement).querySelector("#scroll-container");if(b.contains(N)){if(_.T("web_horizontal_list_behavior_focus_killswitch"))if(N.offsetLeft<this.offset)this.offset=Math.abs(N.offsetLeft)<N.clientWidth?0:N.offsetLeft;else if(N.offsetLeft+N.clientWidth>this.offset+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.oo(),this.offset=N.offsetLeft+N.clientWidth-b.clientWidth;else return;else{var S=_.H4(this.hostElement).querySelector("#items"),
P=_.Vg("HTML_DIR")==="rtl",H=P?S.clientWidth-N.offsetLeft:N.offsetLeft;S=P?S.clientWidth-(N.offsetLeft+N.clientWidth):N.offsetLeft+N.clientWidth;var K=P?H>this.offset+b.clientWidth:H<this.offset,C=P?S<this.offset:S>this.offset+b.clientWidth,G=P?K:C;if(P?C:K)b=P?S:H,this.offset=Math.abs(b)<N.clientWidth?0:b;else if(G)this.ytLazyListBehavior.fillRemainingListItems(),_.oo(),this.offset=(P?H:S)-b.clientWidth;else return}i8(this);this.reposition_()}};
_.v.observeShownItems_=function(){this.reset()};
_.v.checkComponentWidthResize=function(){var N=_.H4(this.hostElement).querySelector("#items").firstElementChild;N&&(N=QFd(this,N),this.centerListItems||N!==this.minComponentWidth)&&(this.minComponentWidth=N,this.offset=N*this.scrollCount,this.centerListItems&&xlO(this),i8(this),this.reposition_())};
var QFd=function(N,b){var S=window.getComputedStyle(b).marginRight;S=Math.floor(Number(S.replace("px","")));var P=window.getComputedStyle(b).marginLeft;P=Math.floor(Number(P.replace("px","")));N.centerListItems&&!N.marginWidthRight&&(N.marginWidthRight=S,N.marginWidthLeft=P);return N.resizeSupportEnabled?b.getBoundingClientRect().width+S:b.offsetWidth+S},i8=function(N){var b=_.H4(N.hostElement).querySelector("#scroll-container").clientWidth,S=_.H4(N.hostElement).querySelector("#items").clientWidth;
N.offset<0?N.offset=0:N.offset+b>=S&&(N.offset=S-b)},xlO=function(N){N.offset-=(_.H4(N.hostElement).querySelector("#scroll-container").clientWidth+N.marginWidthRight-N.minComponentWidth)/2-N.marginWidthLeft};
_.d0.Object.defineProperties(JC.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var N=_.Vg("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(N==-1)N=this.JSC$14733_cachedViewportHeight,N=N>1320?5:N>1020?4:N>730?3:N>430?2:1;else if(N==0)return 0;_.DH("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",N-1);N=_.Vg("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(N>-1)return N;N=this.cachedViewportWidth;N=N>1600?6:N>1400?5:N>1300?4:N>1090?5:N>870?4:N>660?3:2;_.DH("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
N);return N},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.T("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
JC.prototype.observeShownItems_=JC.prototype.observeShownItems_;JC.prototype.onChildElementFocus_=JC.prototype.onChildElementFocus_;JC.prototype.onItemsTransitionEnd_=JC.prototype.onItemsTransitionEnd_;JC.prototype.onIronResize_=JC.prototype.onIronResize_;JC.prototype.prevClick_=JC.prototype.prevClick_;JC.prototype.nextClick_=JC.prototype.nextClick_;JC.prototype.setButtonsState_=JC.prototype.setButtonsState_;JC.prototype.requestButtonsStateUpdate_=JC.prototype.requestButtonsStateUpdate_;
JC.prototype.reposition_=JC.prototype.reposition_;JC.prototype.reset=JC.prototype.reset;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],JC.prototype,"ytLazyListBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],JC.prototype,"atStart",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],JC.prototype,"atEnd",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"startIndex",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"endIndex",void 0);_.p([_.U({value:6}),_.y("design:type",Number)],JC.prototype,"initialCount",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"scrollCount",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"initialStartIndex",void 0);
_.p([_.U(),_.y("design:type",Object)],JC.prototype,"disableScrollEventListener",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"supportComponentResize",void 0);_.p([_.U({value:function(){var N=this;return function(){return N.prevClick_()}}}),
_.y("design:type",Function)],JC.prototype,"boundPrevClick",void 0);_.p([_.U({value:function(){var N=this;return function(){return N.nextClick_()}}}),
_.y("design:type",Function)],JC.prototype,"boundNextClick",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"useFloorScrolling",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"isSearch",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"dragging",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"dragMouseStart",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"dragOffsetStart",void 0);
_.p([_.U(),_.y("design:type",Object)],JC.prototype,"disableWheelScroll",void 0);_.p([_.U(),_.y("design:type",Object)],JC.prototype,"centerListItems",void 0);_.p([_.RA("iron-resize"),_.W4("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JC.prototype,"onIronResize_",null);_.p([_.RA("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],JC.prototype,"onItemsTransitionEnd_",null);
_.p([_.RA("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],JC.prototype,"onChildElementFocus_",null);_.p([_.W4("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JC.prototype,"observeShownItems_",null);_.p([_.Td()],JC);_.on.YtdHorizontalListBehavior=[];_.on.YtdHorizontalListBehavior.push(_.$M,_.h.YtRendererBehavior,_.xJ.YtLazyListBehavior,_.n5.YtdGuideStateAwareBehavior,JC.prototype);var yyY=["APP_STATE","PI"];var UN,Zc=function(N){this.hostElement=N},j6=function(N,b){if(b&&(gia(b.viewableCommands)||gia(b.endOfSessionCommands))){var S=$xf(b.viewableCommands);
b=$xf(b.endOfSessionCommands);if(!UN){var P=_.d7("custom_active_view_tos_timeout_ms");UN=P>0&&P!==36E5?new mA9(eBa(),P):new mA9(eBa())}TWO(UN,N.hostElement);tKE(UN,N.hostElement,S,b)}},zr=function(N){UN&&TWO(UN,N.hostElement)};var oB9=_.$E(["about:blank"]),isk={pushState:window.history.pushState,replaceState:window.history.replaceState};var AC=function(N){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=N;this.internalPushState=N.pushState.bind(N);this.internalReplaceState=N.replaceState.bind(N)};
AC.prototype.init=function(){this.initialized=!0};
AC.prototype.pushState=function(N,b){this.initialized||this.init();this.internalPushState&&this.internalPushState(N,"",b)};
AC.prototype.replaceState=function(N,b){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(N,"",b)};
AC.prototype.getState=function(){return this.history&&this.history.state};var Jf4=function(N){var b=function(){var S=N.apply(this,arguments)||this;S.boundHistoryPushState=!1;S.boundHistoryReplaceState=!1;S.debugInfo={};return S};
_.F(b,N);b.prototype.init=function(){var S=_.U5("IFRAME");_.SW(S,_.Mz(oB9));S.sandbox="allow-same-origin";S.style.display="none";this.iframe=S;document.body.appendChild(S);this.bindHistoryStateFunctions();N.prototype.init.call(this)};
b.prototype.bindHistoryStateFunctions=function(){var S=this,P=[],H;this.iframe&&((H=this.iframe.contentWindow)==null?0:H.history)&&(H=this.iframe.contentWindow.history)&&(P.push(H),Object.getPrototypeOf(H)&&P.push(Object.getPrototypeOf(H)));window.history&&P.push(window.history);H=window.history;Object.getPrototypeOf(H)&&P.push(Object.getPrototypeOf(H));P.push(isk);H=function(C){for(var G=null,a=0;a<P.length;a++){var R=P[a][C];if(typeof R==="function"){G=R.bind(window.history);S.debugInfo[C]=a;break}}return G};
if(!this.boundHistoryReplaceState){var K=H("replaceState");K&&(this.internalReplaceState=K,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(H=H("pushState"))&&(this.internalPushState=H,this.boundHistoryPushState=!0)};
return b}(AC),Ulb=function(){return Jf4.call(this,window.history)||this};
_.F(Ulb,Jf4);Ulb.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var XL=function(N){this.browserHistory=N;this.initialized=!1};
XL.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
XL.prototype.pushState=function(N,b){this.initialized||this.init();this.browserHistory.pushState(N,b)};
XL.prototype.replaceState=function(N,b){this.initialized||this.init();this.browserHistory.replaceState(N,b)};
XL.prototype.handlePopstate=function(N){return N.state};_.Zs9=function(N,b,S,P,H){this.endpoint=N;this.forward=b;this.historyEntry=S;this.JSC$31070_savedComponentState=P;this.legacyBorder=H===void 0?!1:H};var jFO=function(N,b){this.rootData=N;this.scrollTop=b};_.EN=new _.nO("EPHEMERAL_STORE_TOKEN");_.p5=function(N){this.data=Object.assign({},N);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates};
_.p5.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.nh)()};
_.p5.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.Pp=function(N){return Object.assign({},N.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var z4d=function(){this.maxSize=100;this.timeToDataCache=new Map};
z4d.prototype.get=function(N){var b=this.timeToDataCache.get(N);b&&(this.timeToDataCache.delete(N),this.timeToDataCache.set(N,b));if(b&&b.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var S=_.aN().resolve(_.EN),P=Afc(b),H=!!P;if(P){if(P.content){var K=YJ(S,P.content);H&&K?b.rootData.response=_.Pp(K):H=!1}P.player&&(K=YJ(S,P.player),H&&K?b.rootData.playerResponse=_.Pp(K):H=!1);P.reelSequence&&(S=YJ(S,P.reelSequence),H&&S?b.rootData.reelWatchSequenceResponse=
_.Pp(S):H=!1)}H||(this.timeToDataCache.delete(N),b=void 0)}return b};
z4d.prototype.set=function(N,b){if(b.rootData&&(_.T("web_use_response_store_for_history_cache")||_.T("mweb_use_new_history_manager"))){var S=Afc(b),P=Object.assign({},b.rootData);S&&(S.content&&b.rootData.response&&(XHd(this,S.content,b.rootData.response),P.response=null),S.player&&b.rootData.playerResponse&&(XHd(this,S.player,b.rootData.playerResponse),P.playerResponse=null),S.reelSequence&&b.rootData.reelWatchSequenceResponse&&(XHd(this,S.reelSequence,b.rootData.reelWatchSequenceResponse),P.reelWatchSequenceResponse=
null));b=new jFO(P,b.scrollTop)}this.timeToDataCache.has(N)?this.timeToDataCache.delete(N):this.timeToDataCache.size>=this.maxSize&&(S=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(S.value));this.maxSize!==0&&this.timeToDataCache.set(N,b)};
z4d.prototype.clear=function(){this.timeToDataCache.clear()};
var Afc=function(N){var b=_.aN().resolve(_.cq(_.u0)),S;if((S=N.rootData)==null?0:S.endpoint)return b==null?void 0:PRo(b,N.rootData.endpoint);var P;_.$h(new _.jU("History snapshot response data does not contain endpoint",(P=N.rootData)==null?void 0:P.url));return null},XHd=function(N,b,S){if(N.maxSize>0){var P;
(N=(P=S.responseContext)==null?void 0:P.maxAgeSeconds)&&Number(N)>0&&(P=_.aN().resolve(_.EN),S=sW(S,N),P.put(b,new _.p5(S)))}};var EBb=function(N,b,S){this.endpoint=b;this.JSC$31076_savedComponentState=S===void 0?null:S;this.entryTime=N};var w6a=1;var yr=function(N){var b=function(){var S=N.apply(this,[].concat(_.IX(_.$I.apply(0,arguments))))||this;S.historyEntryTime=0;S.historySnapshotCache=S.createHistoryCache();return S};
_.F(b,N);b.prototype.createHistoryCache=function(){return new z4d};
b.prototype.saveAndReplace=function(S,P,H){var K=window.location.href;var C=C===void 0?{}:C;var G=(G=this.browserHistory.getState())&&G.entryTime?G.entryTime:NFp();S=this.createNewHistoryEntry(S,C,G);this.saveSnapshot(G,P,H);this.replaceState(S,K||window.location.href)};
b.prototype.saveAndPush=function(S,P,H,K,C){C=C===void 0?{}:C;this.saveSnapshot(this.historyEntryTime,H,K);H=this.historySnapshotCache;K=this.historyEntryTime;var G=H.timeToDataCache.keys();G=_.O(G);for(var a=G.next();!a.done;a=G.next())a=a.value,a>K&&H.timeToDataCache.delete(a);P=this.createNewHistoryEntry(P,C);this.pushState(P,S)};
b.prototype.saveSnapshot=function(S,P,H){this.historySnapshotCache.set(S,new jFO(P,H))};
b.prototype.createNewHistoryEntry=function(S,P,H){H=H===void 0?NFp():H;return new EBb(H,S,P)};
b.prototype.handlePopstate=function(S){var P=N.prototype.handlePopstate.call(this,S),H=null,K=null,C=!1,G=null;P&&P.entryTime&&(G=this.historySnapshotCache.get(P.entryTime)||null,C=P.entryTime>this.historyEntryTime,this.historyEntryTime=P.entryTime,H=P.endpoint,K=P.JSC$31076_savedComponentState);this.handleHistoryCacheLoad(new _.Zs9(H,C,G,K),S);return P};
b.prototype.pushState=function(S,P){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);N.prototype.pushState.call(this,S,P)};
b.prototype.replaceState=function(S,P){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);N.prototype.replaceState.call(this,S,P)};
b.prototype.handleHistoryCacheLoad=function(){};
return b}(XL),pH9=function(){var N=yr.call(this,new Ulb)||this;
N.dispatchElement=null;N.entryIndex=0;return N};
_.F(pH9,yr);_.v=pH9.prototype;_.v.init=function(N){N=N===void 0?!0:N;yr.prototype.init.call(this);this.initialized||(N||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.v.handlePopstate=function(N){var b=null;N.state||(b="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return yr.prototype.handlePopstate.call(this,N);var S=new CustomEvent("yt-history-pop",{cancelable:!0});_.St(this.dispatchElement,"yt-history-pop",[S,{errorMsg:b}]);_.PN(this.dispatchElement,"yt-close-all-popups-action");if(!S.defaultPrevented){S=_.aN().resolve(_.$9);b=S.getCurrentData();var P=S.getCurrentPage();S=0;P?(P=_.St(this.dispatchElement,"yt-get-page-offset",
[P]),P.length>0&&(S=P[0])):_.$h(new _.jU("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:b?b.page:"undefined"}));b&&(b.csn=_.Qh());this.saveSnapshot(this.historyEntryTime,b,S)}return yr.prototype.handlePopstate.call(this,N)};
_.v.handleHistoryCacheLoad=function(N,b){N.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.O(_.PN(this.dispatchElement,"yt-history-will-navigate",[b])).next().value||_.St(this.dispatchElement,"yt-history-load",[b,N]))};
_.v.pushState=function(N,b){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var S=new _.jU("history.pushState is not a function",this.getDebugString());_.ge(S)}yr.prototype.pushState.call(this,N,b)};
_.v.replaceState=function(N,b){if(!this.browserHistory.boundHistoryReplaceState){var S=new _.jU("history.replaceState is not a function",this.getDebugString());_.ge(S)}yr.prototype.replaceState.call(this,N,b)};
_.v.saveAndPush=function(N,b,S,P,H){H=H===void 0?{}:H;S&&(S.csn=_.Qh());yr.prototype.saveAndPush.call(this,N,b,S,P,H)};
_.v.getDebugString=function(){var N=[];this.initialized&&N.push("i");this.browserHistory.boundHistoryReplaceState&&N.push("bhr");this.browserHistory.boundHistoryPushState&&N.push("bhs");"replaceState"in this.browserHistory.debugInfo&&N.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&N.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&N.push("ei:"+String(this.entryIndex));return N.join(",")};
_.In=function(N,b){N.init(!0);var S=N.browserHistory.getState();N.replaceState(S,Hm(b))};
pH9.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Dc=new _.nO("DESKTOP_HISTORY_MANAGER_TOKEN");var YAl=[10,20,30,40,50,60],Vr=function(){this.currentPartitionIndex=0},yf9=function(N){kg4({mainAppWeb:_.Yn(),
survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},ImS=function(N){kg4({mainAppWeb:_.Yn(),
survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Dl9=function(N){return N.currentPartitionIndex>=0&&N.currentPartitionIndex<YAl.length?YAl[N.currentPartitionIndex]:-1},VwO=function(N){return N.currentPartitionIndex>0&&N.currentPartitionIndex-1<YAl.length?YAl[N.currentPartitionIndex-1]:-1};
Vr.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var N=VwO(this);N>0&&ImS(N);N=Dl9(this);N>0&&yf9(N);gB9(this)}};
var gB9=function(N){var b=Dl9(N);if(b>0){var S=VwO(N);S<0&&(S=0);N.intervalId=_.Dj.addJob(function(){var P=VwO(N);P>0&&ImS(P);P=Dl9(N);P>0&&yf9(P);gB9(N)},3,(b-S)*6E4);
N.currentPartitionIndex+=1}else N.currentPartitionIndex=-1};var e4d=function(N){ux.call(this,N,132);this.isDocument=N===document.documentElement};
_.F(e4d,ux);e4d.prototype.calculateScrollDelta=function(N,b,S){var P=0;N<b?P=N<b-100?-48:-8:N>b+S&&(P=N>b+S+100?48:8);return P};
e4d.prototype.JSC$11628_onMouseMove=function(N){this.isDocument||(N.clientX=N.event_.pageX,N.clientY=N.event_.pageY);ux.prototype.JSC$11628_onMouseMove.call(this,N)};_.$lz=function(N,b){var S=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14787_dragListGroup=null;this.onDraggerCreated=function(P){var H=P.JSC$11624_dragger;H.scrollTarget_=S.scrollElement;P=P.draggerEl;H&&P.menuOpened&&H.setEnabled(!1)};
this.onDragStart=function(P){var H=P.draggerEl;P=P.currDragItem;var K=Object.assign({},P==null?void 0:P.data);K.trackingParams=void 0;H.data=K;H.style.position="absolute";H.style.width=(P==null?void 0:P.clientWidth)+"px";H.style.zIndex="2030";H.onDrag&&H.onDrag();P=_.hh(H);(K=P.querySelector("ytd-app"))?_.H4(K).appendChild(H):P.body.appendChild(H);S.dragScrollSupport=new e4d(S.scrollElement);S.dragScrollSupport.horizontalScrolling_=!1;H=S.dragScrollSupport;H.constrainScroll_=!!H.margin_&&!1};
this.onDrop=function(P){S.handleDrop(P);S.dragScrollSupport&&(_.Wv(S.dragScrollSupport),S.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(S.JSC$14787_dragListGroup){var P=S.JSC$14787_dragListGroup;T5z(P,P.currDragItem_)}};
this.handleDrop=b};
_.g3=function(N){N.JSC$14787_dragListGroup&&(_.iW(N.JSC$14787_dragListGroup,r89,N.onDragStart),_.iW(N.JSC$14787_dragListGroup,Whk,N.onDragStart),N.JSC$14787_dragListGroup.dispose(),N.JSC$14787_dragListGroup=null);N.dragScrollSupport&&(_.Wv(N.dragScrollSupport),N.dragScrollSupport=null);N.scrollElement.removeEventListener("scroll",N.onReorderableScroll)};
_.h4z=function(N,b,S,P){P=P===void 0?"":P;_.g3(N);S&&(N.scrollElement=S);N.JSC$14787_dragListGroup=new Po;N.JSC$14787_dragListGroup.hysteresisDistance_=2;dEZ(N.JSC$14787_dragListGroup,b);N.JSC$14787_dragListGroup.draggerElClasses_=aU("dragging").split(" ");P&&mEd(N.JSC$14787_dragListGroup,function(H){var K=H||document,C=null;K.getElementsByClassName?C=K.getElementsByClassName(P)[0]:C=VWE("*",P,H);return C||H});
_.lH(N.JSC$14787_dragListGroup,CoV,N.onDraggerCreated);_.lH(N.JSC$14787_dragListGroup,r89,N.onDragStart);_.lH(N.JSC$14787_dragListGroup,Whk,N.onDrop);N.JSC$14787_dragListGroup.init();N.scrollElement.addEventListener("scroll",N.onReorderableScroll,{passive:!0})};
_.d0.Object.defineProperties(_.$lz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var qA9=function(){this.skipNextNavigation=!1},wHb=function(N,b,S){if(!b)return!1;
if(N.skipNextNavigation)return N.skipNextNavigation=!1;if(_.t(S,_.Hz))return!1;var P,H,K;if((P=_.t(S,_.Wd))==null?0:(H=P.browseEndpointContextSupportedConfigs)==null?0:(K=H.browseEndpointContextMainConfig)==null?0:K.skipConfirmation)return!1;var C;return((C=_.t(b.commandMetadata,_.GY))==null?void 0:C.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
qA9.prototype.showConfirmationDialog=function(N,b){this.navigateParams=b;this.customConfirmationCommand?_.aN().resolve(_.Wq).resolveCommand(this.customConfirmationCommand):(b={openPopupAction:{popup:{confirmDialogRenderer:{title:_.gy(_.cN("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.gy(_.cN("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.gy(_.cN("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.gy(_.cN("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.sX.getInstance().triggerAction("yt-open-popup-action",b,N))};
qA9.prototype.cancelPendingNavigation=function(){var N;((N=this.navigateParams)==null?void 0:N.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var NNd=function(){},SC9=function(N,b,S,P,H,K,C){S=S===void 0?{}:S;
C=C===void 0?{}:C;var G=_.aN().resolve(_.u0),a,R=(a=_.t(b,_.Hz))==null?void 0:a.url;return R?y4O(G,R,S,window.location.href,function(n,d){b0E(N,n,d,!1,!0,S,K,P)},function(){return!1}):yG(G,b,S,window.location.href,dQ(b),function(n,d){b0E(N,n,d,!1,!0,S,K,P)},H,C)},b0E=function(N,b,S,P,H,K,C,G){if(!N.JSC$14802_chunkHandler)if(S.page==="learning_journey_watch"&&_.T("web_enable_canvas_on_learning_journey")){var a=!_.t(G,_.Wd);
H=H||P;if(a)if(H){if(_.T("kevlar_continue_playback_without_player_response")){var R;var n=(R=_.t(G,_.Iv))==null?void 0:R.videoId}P={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:n},tempData:K}}else P={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else P={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};N.JSC$14802_chunkHandler=new yp4(_.qE,P,C,a,H)}else if(S.page==="watch"||S.page==="learning_journey_watch")if(H||P){if(_.T("kevlar_continue_playback_without_player_response")){var d;
a=(d=_.t(G,_.Iv))==null?void 0:d.videoId}N.JSC$14802_chunkHandler=new VCZ(_.qE,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:a},tempData:K},C)}else N.JSC$14802_chunkHandler=new pLz(_.qE);else S.page==="shorts"&&H&&!P?N.JSC$14802_chunkHandler=new DVS(_.qE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:K},C):N.JSC$14802_chunkHandler=new Y19(C);N.JSC$14802_chunkHandler.processChunk({endpoint:b,data:S});return N.JSC$14802_chunkHandler.mO.promise},
Pc9=function(N,b,S,P,H){(S=_.vFO(S))&&b0E(N,b,S,!1,!0,P,void 0,H)};_.H0V=new _.nO("NAVIGATION_SERVICE_TOKEN");var szc=function(){this.pendingNavigationPromise=null};
_.v=szc.prototype;_.v.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.v.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.v.addEventListener=function(){throw Error("zh");};
_.v.dispatchEvent=function(){throw Error("zh");};
_.v.removeEventListener=function(){throw Error("zh");};var K29=new _.nO("APP_ROOT");var S6p=null;var v_l=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],e6=function(){_.J1.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];O0V(this)};
_.F(e6,_.J1);e6.prototype.verifyUser=function(){var N=O0V(this),b=N.logout;if(!N.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1};
var O0V=function(N){var b=v_l.map(function(H){var K;return(K=_.xb.get(H))!=null?K:""}),S=b.some(function(H,K){return N.sessionCookies&&N.sessionCookies[K]!==""&&H===""}),P=b.some(function(H,K){return N.sessionCookies&&N.sessionCookies[K]!==H});
N.sessionCookies=b;return{logout:S,sessionChange:P}};
e6.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Dj.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Oys=new _.nO("POSTMESSAGE_TUNNEL_TOKEN");var sVs=["/parent_tools","/file_download","/artist_roster"],rUY=[uHO,Q$Z,xjz,iDc,oIE,fB9,JS9,Ujd];var $J=new _.nO("NAVIGATION_CONFIRMATION_SERVICE");var CcN="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),GGE=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],hC=function(N,b){this.pendingNavigationPromise=null;this.JSC$14825_clientRoot=N;this.historyManager=b;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=
new NNd;this.debugString=N.is;N={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.Kt(_.sX.getInstance(),N,this.JSC$14825_clientRoot)},W2d,n_z,dsz,msk,RnV;
_.F(hC,szc);hC.prototype.reload=function(){_.jZ(window.location.href)};
var GUl=function(N){N.currentEndpoint&&_.t(N.currentEndpoint,_.kn)?N.reload():N.currentEndpoint&&N.navigate(N.currentEndpoint,!0,void 0,{disableCache:!0})};
hC.prototype.navigate=function(N,b,S,P,H,K,C,G){b=b===void 0?!1:b;S=S===void 0?{}:S;P=P===void 0?{}:P;var a=_.aN().resolve($J),R;if(!C&&wHb(a,(R=this.currentEndpoint)!=null?R:void 0,N))return a.showConfirmationDialog(this.JSC$14825_clientRoot.parentElement,{endpoint:N,reload:b,params:S,tempData:P,requestType:H,createScreenConfig:K}),!1;var n=_.kA();_.Ts(n,"eocs")||n.parkOrScheduleJob(function(){n.processSignal("eocs")},10,"eor");
Pds();C=dQ(N);a=P.autonav==="1";R=_.Qh();e6.instance||(e6.instance=new e6);var d=e6.instance.verifyUser(),m;if(_.T("enable_dark_theme_only_on_shorts")){var k=document.documentElement.hasAttribute("dark"),M=_.As(!0)==="USER_INTERFACE_THEME_DARK";if(C==="shorts"){if(!k)if(_.T("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var l;_.jZ((l=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:l.url,void 0,void 0,window.top)}}else{var u;_.jZ(_.Pq((u=_.t(N==
null?void 0:N.commandMetadata,_.GY))==null?void 0:u.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.T("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!k){var J;_.jZ(_.Pq((J=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:J.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(M!==k){var Z;_.jZ(_.Pq((Z=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:Z.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(C==="watch"){if(rQ9(_.aN().resolve(_.E_),
N)&&(d||_.T("fix_miniplayer_navigation_killswitch")))return!1;_.T("block_all_player_prefetch_requests")||(m=OjV(_.b0(_.EP),N,a))}else{var D,Y=(D=_.t(this.currentEndpoint,_.Iv))==null?void 0:D.videoId;Y&&_.Hy.getInstance().then(function(jp){jp&&jp.set("yt-miniplayer-shown-video-id",Y)})}m&&(S.frags=m.missingFragments_.join(","));
l=null;var V;u=(V=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:V.ignoreNavigation;if(!u)if(_.T("kevlar_command_url")){var g;l=(g=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?void 0:g.url}else l=_.r5Y(N,S);if(l&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&l==this.lastNavigationUrl)return _.lC({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.nS(j0(),"CANCELLED")}l&&(this.lastNavigationUrl=l);HHo();_.DH("IS_HOMEPAGE_COLD",
!1);_.DH("IS_RESULTS_PAGE_COLD",!1);_.DH("IS_WATCH_PAGE_COLD",!1);N.loggingUrls&&N.loggingUrls.forEach(function(jp){jp.baseUrl&&_.Pl(jp.baseUrl)});
_.WUs(N,K?K.layer:0)&&_.T("kevlar_flush_logs_on_away_navigation")&&_.VE();if(cUo(N))return!1;YS4(C,H);if(!l)return u||_.$h(new _.jU("Can't construct url for endpoint",N)),_.nS(j0(),"FAILURE"),!1;_.Hyp();V=N&&_.t(N,_.Wd)&&_.t(N,_.Wd).browseId.startsWith("UC");S=(g=_.T("enable_dark_theme_only_on_shorts")&&C==="shorts"?!1:_.X6()&&document.documentElement.hasAttribute("dark")!==_.zB())?{themeRefresh:1}:{};g&&!_.Jz()&&_.As()==="USER_INTERFACE_THEME_DARK"&&(S.theme="dark");V=g||cQN(l)&&!V&&!_.T("kevlar_disable_url_allowlist");
d||(V=!0);if(V||_.Vg("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var e;var se=(e=window.top)==null?void 0:e.location.href}catch(jp){var Ca;se=(Ca=jp)==null?void 0:Ca.message}_.$h(new _.jU("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:se}))}N=_.T("kevlar_redirect_on_window_killswitch")?window.top:window;ZK(l);_.jZ(_.Pq(l,S),void 0,void 0,N);_.nS(j0(),"ABORTED");return!1}_.T("kevlar_early_popup_close")&&_.St(this.JSC$14825_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14802_chunkHandler=void 0;var ML;se=dQ((ML=this.currentEndpoint)!=null?ML:void 0);(ML=C==="shorts"&&se==="shorts")||_.NUp();_.$U(Yc_)("nr",void 0);a&&_.lC({webInfo:{navigationReason:"an"}});N.clickTrackingParams&&(P.itct=N.clickTrackingParams,P.csn=R);Nlf(P);P.endpoint=JSON.stringify(N);_.T("enable_unknown_lact_fix_on_html5")&&(_.aN().resolve(_.mh),P.lact=_.nv());_.Vm.isEmpty(P)||_.e0(l,P);!_.T("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(K=Object.assign({},{layer:0},K,{parentLayer:3}));this.pendingNavigationPromise=K=SC9(this.pageFetcher,N,P,this.currentEndpoint,this.JSC$14825_isNetworkPromiseStale.bind(this),K,G);K=K.then(this.handleNavigateSuccess.bind(this,K,N,m,P),this.handleNavigateFail.bind(this,K,N));_.gU().navigationFinishPromise=K;b={endpoint:N,pageType:C,url:Hm(l),reload:!!b,noProgressBar:ML};H&&(b.type=H);var na;H=_.R3((na=this.currentEndpoint)!=null?na:null);na=_.R3(N!=null?N:null);this.fireEvent("yt-navigate-start",
b);var To;(To=_.aN().resolve(_.cq(_.H0V)))==null||To.publish("navigation-start",{sourcePageSubtype:H,destinationPageSubtype:na});m&&Pc9(this.pageFetcher,N,m,P,this.currentEndpoint);return!0};
hC.prototype.JSC$14825_isNetworkPromiseStale=function(N){return N!=this.pendingNavigationPromise};
var a$S=function(N,b,S,P,H){var K=dQ(b);b={endpoint:b,pageType:K};H&&(b.errorMessage=H);_.$h(S);b.navigationDoneMs=_.uC("nd");b.navigationErrorReason=P;N.fireEvent("yt-navigate-error",b)};
hC.prototype.handleNavigateFail=function(N,b,S){var P=void 0;S instanceof _.zM&&(P=S,CKp(S));if(this.JSC$14825_isNetworkPromiseStale(N))return _.f7(P);_.nS(j0(),"FAILURE");a$S(this,b,S,"101");return _.f7(S)};
hC.prototype.handleNavigateSuccess=function(N,b,S,P,H){if(this.JSC$14825_isNetworkPromiseStale(N))return _.KA();this.pendingNavigationPromise=null;if(!H)return b=new _.jU("Missing data in response for navigation endpoint",b),_.f7(b);if(H.reload)return window.location.reload(!0),_.KA();S&&(N={},_.Vm.extend(N,_.vFO(S),H),H=N);var K,C;S=(K=H)==null?void 0:(C=K.timing)==null?void 0:C.responseStart;S!=null&&_.uC("srt",S);_.uC("pdc");var G,a;K=(G=H)==null?void 0:(a=G.timing)==null?void 0:a.info;K!=null&&
(G=_.$U(_.DDs)(K),_.lC(G));_.nS(j0(),"SUCCESS");RnV(this,b,H,1,P);return _.KA()};
var cQN=function(N){var b=N;_.T("kevlar_no_redirect_to_classic_2_ks")||(b=(new _.DV(N)).getPath());if(b==="/"||b==="/red")return!1;var S=!0;CcN.forEach(function(P){N.indexOf(P)===0&&(S=!1)});
GGE.forEach(function(P){var H=P.url;_.T(P.expFlag)&&N.indexOf(H)===0&&(S=!1)});
return S};
hC.prototype.publishPageData=function(N){this.fireEvent("yt-page-data-fetched",{pageData:N})};
W2d=function(N,b,S,P,H,K){var C=null;b.page!=="watch"&&b.page!=="learning_journey_watch"||P?b.filler||_.St(N.JSC$14825_clientRoot,"yt-stop-old-player",[b]):C=b0E(N.pageFetcher,H,b,S,!1,K,void 0,N.currentEndpoint);if(C)return C.then(N.publishPageData.bind(N,b));N.publishPageData(b);return _.KA()};
n_z=function(N,b,S){var P=null;if(!S)return P=new _.jU("Empty data",N.debugString,b);var H=S.response;if(!H)return P;var K={endpointType:dQ(b)||"unknown"};H.responseContext?(H=H.responseContext.errors)&&(P=new _.jU("Errors in response context",N.debugString,b,H,K)):P=H.error||H.errorMetadata?new _.jU("Errors in response",N.debugString,b,H.error,H.errorMetadata,K):new _.jU("responseContext missing",N.debugString,b,Object.keys(H).sort().join(","),K);var C,G,a,R;if(N=S==null?void 0:(C=S.response)==null?
void 0:(G=C.responseContext)==null?void 0:(a=G.webResponseContextExtensionData)==null?void 0:(R=a.webResponseContextDebugData)==null?void 0:R.debugErrorMessages)for(C=0;C<N.length;C++);return P};
dsz=function(N){var b,S,P,H;return N==null?void 0:(b=N.response)==null?void 0:(S=b.responseContext)==null?void 0:(P=S.errors)==null?void 0:(H=P.error)==null?void 0:H["0"]};
msk=function(N,b){var S;if(S=b.url&&!b.url.startsWith("/clip"))S=b.url,S=!_.T("webfe_parse_debug_param_in_resolveurl_service")&&N.searchDebugUrlMatcher.test(S)||kYu(S)?!0:!1;if(S)kYu(b.url)&&_.SU(window.location.href).themeRefresh?(b=_.$y(b.url,"themeRefresh"),_.In(N.historyManager,b)):b.url&&!hB9(b.url)&&_.In(N.historyManager,b.url);else if(b.endpoint){var P,H,K;(S=(P=b.endpoint)==null?void 0:(H=P.commandMetadata)==null?void 0:(K=H.webCommandMetadata)==null?void 0:K.url)&&!hB9(S)&&_.In(N.historyManager,
S);S&&b.url&&S!=b.url&&!b.url.match("playnext=1")&&new _.jU("Response url mismatch in response data",N.debugString,S,b.url)}};
_.kGN=function(N,b,S,P,H,K,C,G){K=K===void 0?!1:K;var a=_.aN().resolve($J),R;if(!G&&wHb(a,(R=N.currentEndpoint)!=null?R:void 0,b))return a.showConfirmationDialog(N.JSC$14825_clientRoot.parentElement,{endpoint:b,data:S,navigationType:P,tempData:H,isMiniplayer:K,isForwardHistoryNavigation:C==null?void 0:C.forward}),_.KA();N.pageFetcher.JSC$14802_chunkHandler=void 0;return RnV(N,b,S,P,H,K)};
RnV=function(N,b,S,P,H,K){K=K===void 0?!1:K;N.isMiniplayerExpansion=K;var C=P===2;N.currentEndpoint=b;N.numNavigations++;N.numNavigations&&(E3a.navigationCount=N.numNavigations);_.DH("NUM_NAV",N.numNavigations);var G=n_z(N,b,S);if(G)return a$S(N,b,G,"102",dsz(S)),_.f7(G);var a,R,n,d;G=S.rootVe||(S==null?void 0:(a=S.response)==null?void 0:(R=a.responseContext)==null?void 0:(n=R.webResponseContextExtensionData)==null?void 0:(d=n.ytConfigData)==null?void 0:d.rootVisualElementType);!C&&S&&msk(N,S);var m,
k;a=S==null?void 0:(m=S.response)==null?void 0:(k=m.responseContext)==null?void 0:k.maxAgeSeconds;if(!C&&!isNaN(a)){var M;_.T("kevlar_use_response_ttl_to_invalidate_cache")?M=(0,_.nh)()+1E3*a:_.T("kevlar_always_invalidate_cache")&&(M=0);isNaN(M)||(S.expirationTime=M)}_.b0(_.EP).prefetchCache_.clear();C||S.page!=="watch"||P!==1?P=W2d(N,S,C,!!K,b,H):(N.publishPageData(S),P=_.KA());H=P.then(function(){var l=dQ(b);l={endpoint:b,pageType:l,fromHistory:C,response:S};l.navigationDoneMs=_.uC("nd");N.fireEvent("yt-navigate-finish",
l);var u;(u=_.aN().resolve(_.cq(_.H0V)))==null||u.publish("navigation-end")});
S.csn&&G&&S.clientSideGrafts&&P.then(N.attachClientSideGrafts.bind(N,S,_.uZ()));return H};
_.v=hC.prototype;_.v.attachClientSideGrafts=function(N,b){N.clientSideGrafts&&b&&N.clientSideGrafts.forEach(function(S){if(b&&S){var P=_.FA(S);_.T("combine_ve_grafts")?_.dG().graftServerVe(S,b):_.AZ(N.csn,b,P)}})};
_.v.handleSignalActionHistoryBack=function(){window.history.back()};
_.v.handleSignalActionCloseWindow=function(){window.close()};
_.v.handleSignalActionReloadPage=function(){this.reload()};
_.v.handleSignalActionSoftReloadPage=function(){GUl(this)};
_.v.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.v.fireEvent=function(N,b){N=new CustomEvent(N,{bubbles:!0,cancelable:!1,composed:!0,detail:b});this.dispatchEvent(N)};
_.v.addEventListener=function(N,b){this.JSC$14825_clientRoot.addEventListener(N,b)};
_.v.dispatchEvent=function(N){return this.JSC$14825_clientRoot.dispatchEvent(N)};
_.v.removeEventListener=function(N,b){this.JSC$14825_clientRoot.removeEventListener(N,b)};
hC[RN]=[K29,_.Dc];var TNb;var tic=function(){return _.z.apply(this,arguments)||this};
_.F(tic,_.z);_.d0.Object.defineProperties(tic,{template:{configurable:!0,enumerable:!0,get:function(){if(TNb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);TNb=N}N=TNb;return N}}});
_.p([_.L(twO.YtPlayerBehavior),_.y("design:type",Object)],tic.prototype,"ytPlayerBehavior",void 0);_.p([_.Uj({is:"ytd-player"})],tic);var MiS;var F2k;var BN4;var qT=function(){var N=_.z.apply(this,arguments)||this;N.forceModernIconButton=!1;N.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return N};
_.F(qT,_.z);qT.prototype.configureRendererStamper=function(){return{button:{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0,styleActionButton:!0},properties:{overrides:"[[overrides]]",forceModernIconButton:"[[forceModernIconButton]]",disableTextTransform:"[[disableTextTransform]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]"}}}}}};
qT.prototype.handleAccountLinkingStateChangedCommand=function(N){if(N=_.t(N,h2c)){var b,S=(b=this.data)==null?void 0:b.providerKey;b=N.providerKey;S&&b&&S.id===b.id&&S.subject===b.subject&&(N=N.linked,N!==void 0&&(this.set("data.linked",N),this.notifyPath("data.linked"),_.T("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(N)))}};
qT.prototype.setPlayerAccountLinkState=function(N){var b=new axz;RlV(b,rTz(new GD4,N));var S=_.qE();S&&S.getPlayerPromise().then(function(P){P.setAccountLinkState(_.iL(b.JSC$12555_serializeBinary(),4));P.updateAccountLinkingConfig(N)})};
qT.prototype.handleShowAccountLinkDialog=function(){var N=this.get("button.buttonRenderer.command");N&&_.OR([N],this.hostElement)};
_.d0.Object.defineProperties(qT.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.p([_.L([_.pG.YtActionHandlerBehavior]),_.y("design:type",Object)],qT.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qT.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],qT.prototype,"overrides",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qT.prototype,"forceModernIconButton",void 0);_.p([_.U({value:"bottom"}),_.y("design:type",String)],qT.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],qT.prototype,"forceIconButton",void 0);_.p([_.U(),_.y("design:type",Boolean)],qT.prototype,"disableTextTransform",void 0);
_.p([_.f("data","data.linked","data.isWarning"),_.y("design:type",Object),_.y("design:paramtypes",[])],qT.prototype,"button",null);_.p([_.Uj({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],qT);
_.X(qT,"ytd-account-link-button-renderer",function(){if(BN4!==void 0)return BN4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return BN4=N},{mode:1});var l$9;var L2O=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],w3=function(){return _.z.apply(this,arguments)||this};
_.F(w3,_.z);w3.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
w3.prototype.updateButtonActiveState=function(){var N=this,b=!!L2O.find(function(S){return N.currentState===S});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.T("enable_web_delhi_icons")&&(b=!1);this.button&&(this.button.isPressed=b)};
_.d0.Object.defineProperties(w3.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.playlistLoopStateEntity)==null?void 0:N.state)||((b=this.data)==null?void 0:b.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var N=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=_.O(this.data.states);for(var S=b.next();!S.done;S=b.next()){S=_.t(S.value,_.cHz);var P=void 0;if(((P=S)==null?void 0:P.state)===this.currentState){N=S;break}}}return N}}});
w3.prototype.updateButtonActiveState=w3.prototype.updateButtonActiveState;_.p([_.L(_.Gr),_.y("design:type",Object)],w3.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Pc.playlistLoopStateEntitySelector}),_.y("design:type",Object)],w3.prototype,"playlistLoopStateEntity",void 0);_.p([_.U(),_.y("design:type",Object)],w3.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],w3.prototype,"forceIconOnly",void 0);_.p([_.dq("ytd-button-renderer"),_.y("design:type",_.xu)],w3.prototype,"button",void 0);
_.p([_.f("data","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],w3.prototype,"currentState",null);_.p([_.W4("currentButtonStateRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w3.prototype,"updateButtonActiveState",null);_.p([_.f("currentState"),_.y("design:type",Object),_.y("design:paramtypes",[])],w3.prototype,"currentButtonStateRenderer",null);
_.p([_.Uj({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],w3);
_.X(w3,"ytd-playlist-loop-button-renderer",function(){if(l$9!==void 0)return l$9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return l$9=N},
{mode:1});var f$9;var udk=_.cN("DOWNLOAD",{},"Download"),Qzl=_.cN("DOWNLOADING",{},"Downloading"),xsN=_.cN("DOWNLOADED",{},"Downloaded"),o_N=_.cN("RETRY",{},"Retry"),Nh=function(){var N=_.z.apply(this,arguments)||this;N.forceIconButton=!1;N.forceIconOnly=!1;N.overrides=!1;N.buttonTooltipPosition=!1;N.styleActionButton=!1;N.disableTextTransform=!1;N.downloadProgress=0;N.isDownloadComplete=!1;N.isHidden=!0;N.transferState="TRANSFER_STATE_UNKNOWN";N.isVideoDeletedByUser=!1;N.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return N};
_.F(Nh,_.z);_.v=Nh.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var N;(N=this.data)!=null&&N.text||(N=_.UI(_.h0().getState(),this.videoId),this.updateButtonState(N))};
_.v.computeVideoId=function(N){return N};
_.v.computePlayerStateEntityKey=function(N){return N};
_.v.showHideButton=function(){this.updateButtonVisibility()};
_.v.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var N;((N=this.playerStateEntity)==null?void 0:N.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(N){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Qzl||!_.kG(N))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(N){case "TRANSFER_STATE_UNKNOWN":N=udk;var b="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":N=o_N;b="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":N=xsN;b="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":N=
Qzl;b="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":N=o_N;b="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;default:N=udk,b="OFFLINE_DOWNLOAD",S="ACTION_ADD"}this.isVideoDeletedByUser&&(N=udk,b="OFFLINE_DOWNLOAD",S="ACTION_ADD");var P=Object.assign({},this.data);P.text=_.gy(N);P.tooltip=N;P.icon={iconType:b};P.size="SIZE_DEFAULT";P.style="STYLE_DEFAULT";_.t(P.command,_.a2)&&(_.t(P.command,_.a2).action=S);this.set("data",P)}};
_.v.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var N="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?N="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?N="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?N="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?N="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?N="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(N="OFFLINE_PIN",this.isDownloadComplete=!0);var b;N!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=_.gy(Qzl),b.tooltip=Qzl,b.icon={iconType:N},_.t(b.command,_.a2)&&(_.t(b.command,_.a2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
Nh.prototype.updateProgress=Nh.prototype.updateProgress;Nh.prototype.onTransferStateChanged=Nh.prototype.onTransferStateChanged;Nh.prototype.showHideButton=Nh.prototype.showHideButton;Nh.prototype.dataChanged=Nh.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"forceIconButton",void 0);
_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"forceIconOnly",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"overrides",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"styleActionButton",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"disableTextTransform",void 0);
_.p([_.U({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.y("design:type",String)],Nh.prototype,"videoId",void 0);_.p([_.U({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.y("design:type",String)],Nh.prototype,"playerStateEntityKey",void 0);_.p([_.U(),_.y("design:type",Object)],Nh.prototype,"data",void 0);_.p([_.U({selector:js,selectorArgs:["videoId"]}),_.y("design:type",Object)],Nh.prototype,"downloadProgress",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Nh.prototype,"isDownloadComplete",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Nh.prototype,"isHidden",void 0);_.p([_.U({selector:_.UI,selectorArgs:["videoId"]}),_.y("design:type",String)],Nh.prototype,"transferState",void 0);_.p([_.U({selector:_.sHf,selectorArgs:["videoId"]}),_.y("design:type",Object)],Nh.prototype,"isVideoDeletedByUser",void 0);
_.p([_.U({selector:wto,selectorArgs:["videoId"]}),_.y("design:type",Object)],Nh.prototype,"offlineabilityState",void 0);_.p([_.U({selector:_.vX,selectorArgs:["playerStateEntityKey"]}),_.y("design:type",Object)],Nh.prototype,"playerStateEntity",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Nh.prototype,"showTooltips",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Nh.prototype,"sendCommandWhenDisabled",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],Nh.prototype,"disabled",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nh.prototype,"dataChanged",null);_.p([_.t_("offlineabilityState","playerStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nh.prototype,"showHideButton",null);
_.p([_.t_("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nh.prototype,"onTransferStateChanged",null);_.p([_.t_("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Nh.prototype,"updateProgress",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Nh);
_.X(Nh,"ytd-download-button-renderer",function(){if(f$9!==void 0)return f$9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return f$9=N},{mode:2});var i04;var JQl,Usc=function(){if(JQl!==void 0)return JQl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return JQl=N};var Z0d=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live"),jzk=_.d7("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,bk=function(){var N=_.z.apply(this,arguments)||this;N.isPressed=!1;N.forceIconButton=!1;N.forceIconOnly=!1;N.forceModernIconButton=!1;N.alignByText=!1;N.isShorts=!1;N.animatedText=!1;N.shouldAnimate=!1;N.JSC$14863_browserSupportsAnimation=_.T("web_supports_animations_api");N.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};N.onTap=function(){var b;if((b=N.data)==null||!b.defaultNavigationEndpoint){var S;b=!((S=N.data)==null?0:S.isToggled);var P;if((P=N.data)==null||!P.preventAutoToggle){N.shouldAnimate=!1;N.disableTextUpdateJobId&&_.Dj.cancelJob(N.disableTextUpdateJobId);N.disableTextUpdateJobId=_.Dj.addLowPriorityJob(function(){N.disableTextUpdateJobId=void 0},jzk);
var H;N.set("data.isToggled",!((H=N.data)==null?0:H.isToggled));S=N.getInnertubeIcon();P={toggled:b,actions:{}};S&&(P.actions[S.toLowerCase()]=b);_.bC(N.hostElement,"yt-toggle-button",P)}}};
return N};
_.F(bk,_.z);_.v=bk.prototype;_.v.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Dj.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.toggle=function(N){var b;this.set("data.isToggled",N!==void 0?N:!((b=this.data)==null?0:b.isToggled))};
_.v.handleUpdateToggleButtonStateCommand=function(N){if(this.data){N=_.t(N,PGE);var b,S,P,H=(b=this.data)==null?void 0:(S=b.toggleButtonSupportedData)==null?void 0:(P=S.toggleButtonIdData)==null?void 0:P.id;H&&N&&H===(N==null?void 0:N.buttonId)&&this.set("data.isToggled",N.toggled)}};
_.v.handleUpdateToggleButtonTextAction=function(N){if(this.data){N=_.t(N,FT9);var b,S,P,H=(b=this.data)==null?void 0:(S=b.toggleButtonSupportedData)==null?void 0:(P=S.toggleButtonIdData)==null?void 0:P.id;H&&N&&H===(N==null?void 0:N.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=N.defaultNumericalValue,this.set("data.defaultText",N.defaultText),this.set("data.toggledText",N.toggledText),this.shouldAnimate=!1)}};
_.v.getInnertubeIcon=function(){var N=this.data;if(N){var b,S,P=((b=N.defaultIcon)==null?0:b.iconType)?(S=N.defaultIcon)==null?void 0:S.iconType:null,H,K;b=((H=N.toggledIcon)==null?0:H.iconType)?(K=N.toggledIcon)==null?void 0:K.iconType:P;return N.isToggled?b:P}};
_.v.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.d0.Object.defineProperties(bk.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14863_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var b=N.renderer;var S=N.element;var P=N.toggled;var H=N.onTapCallback;var K=N.commandClientArgs;var C=N.overrides;var G=N.forceIcon;var a=N.forceModernIconButton;var R=N.forceDisabled;var n=N.useAnimatedText;var d=N.animatedTextProps;N=mCL(b,P);G=!b.defaultIcon||!G&&b.defaultText?b.defaultIcon?"leading":void 0:a?"icon-only":"icon-only-40";G==="icon-only-40"&&(N.type="text");var m;a=Object;var k=a.assign,M;a:switch((M=
b.style)==null?void 0:M.styleType){case "STYLE_COMPACT_GRAY":M={size:"S"};break a;default:M={size:"M"}}var l=!!P;var u=(u=P&&b.toggledText||b.defaultText)?_.xH(u):void 0;n?(n=_.es(P&&b.toggledText||b.defaultText))&&d&&!isNaN(Number(d.numberValue))?(d.numberText=n,P&&(d.numberValue+=1),n=d):n=void 0:n=void 0;var J,Z,D,Y;var V=(d=((Z=P?b.toggledAccessibilityData||((V=b.toggledText)==null?void 0:V.accessibility):b.accessibilityData||((J=b.defaultText)==null?void 0:J.accessibility))==null?void 0:(D=Z.accessibilityData)==
null?void 0:D.label)||((Y=b.accessibility)==null?void 0:Y.label))?d:_.es(P&&b.toggledText||b.defaultText);R=R===void 0?b.isDisabled:R;S=dCU(b,P,H,S,K);P=nfY(b,P);P!=null&&P.length?(P=_.jr({innertubeCommand:kXs(P),forceNewState:!0}),P=zS(P)?P:void 0):P=void 0;b=k.call(a,{},N,M,{iconPosition:G},C,{focused:!1,toggled:l,toggleable:!0,formattedButtonText:u,animatedTextProps:n,accessibilityLabel:V,disabled:R,onTap:S,aTagConfig:P},utO((m=b.colorData)==null?void 0:m.basicColorPaletteData));b.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var N=this.getInnertubeIcon();if(N)return _.C7(N)}}});
bk.prototype.resetAnimation=bk.prototype.resetAnimation;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],bk.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],bk.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],bk.prototype,"isPressed",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"forceIconButton",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"forceIconOnly",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"forceModernIconButton",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"alignByText",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"overrides",void 0);
_.p([_.U(),_.y("design:type",Boolean)],bk.prototype,"disabled",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"isShorts",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.y("design:type",Object)],bk.prototype,"animatedText",void 0);_.p([_.U(),_.y("design:type",String)],bk.prototype,"textNumberValue",void 0);_.p([_.U({computed:"computeTooltip(data, data.isToggled)"}),_.y("design:type",Object)],bk.prototype,"tooltip",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bk.prototype,"resetAnimation",null);_.p([_.f("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.y("design:type",Object),_.y("design:paramtypes",[])],bk.prototype,"computedButtonShape",null);_.p([_.f("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],bk.prototype,"computedIcon",null);
_.p([_.Uj({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],bk);Z0d&&_.X(bk,"ytd-toggle-button-renderer",Usc,{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var zn9=_.A(function(N){function b(R){var n;return _.r(function(d){if(d.nextAddress==1)return(n=!TFI(R,G())||!G().enabled)?d.jumpTo(2):d.yield(lXI(),3);d.nextAddress!=2&&(n=d.yieldResult);if(n)return d.return();S();setTimeout(function(){C(!1)},1500);
_.Zd(d)})}
function S(){setTimeout(function(){C(!0);var R;(R=P.lottieEl)==null||R.goToAndPlay(0)},150)}
var P=_.rx(),H=_.O(_.QF(!1,void 0,"UfUosc")),K=H.next().value,C=H.next().value,G=_.$q(N.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.YU(function(){var R,n;((R=N.settings)==null?void 0:(n=R.call(N))==null?void 0:n.uniqueId)==="this is not intended behavior"&&_.$h(new _.jU("Smartimation Settings is undefined"))});
_.gA(function(){G().experimentEnabled&&(G().enabled?t5L(b):(C(!1),M5L(b)),_.ej(function(){M5L(b)}))},"IHhVmc");
_.gA(function(){G().timings.join("");G().experimentEnabled&&(FUu(G()),_.ej(function(){BFa(G())}))},"fsfhOe");
var a=_.UB(function(){var R=P,n=G().uniqueId+"-border",d,m;var k="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((m=(d=_.aN().resolve(_.cq(_.T8)))==null?void 0:d())!=null&&m?"dark":"light")+"_v2.json";return{animationRef:R,animationConfig:{name:n,autoplay:!1,loop:!1,path:k}}},void 0,"UWvUGe");
H={};return _.c("yt-smartimation",{class:_.KU(N.className,"smartimation",(H["smartimation--experiment-enabled"]=function(){return G().experimentEnabled},H["smartimation--active-border"]=K,H["smartimation--enable-masking"]=LUI(),H))},_.c(_.W,{cond:function(){return G().experimentEnabled},
then:function(){return _.c("div",{class:"smartimation__border"},_.c(_.Yg,{className:"smartimation__border-gradient",data:a,animationName:function(){return a().animationConfig.name}}))}}),_.c("div",{class:"smartimation__content"},N.children))},"ha");
zn9.idomCompat=!0;_.qu(zn9,"yt-smartimation",{props:{className:_.kg,settings:_.kg}});var SE=function(){var N=_.z.apply(this,arguments)||this;N.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};N.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};N.shouldEnableSmartimation=!1;return N};
_.F(SE,_.z);SE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
SE.prototype.onDataChanged=function(){var N,b;this.shouldEnableSmartimation=(((N=this.data)==null?void 0:(b=N.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
SE.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var N=_.t(this.data.likeButton,_.cC),b=_.t(this.data.dislikeButton,_.cC);return!!((N==null?0:N.isToggled)||(b==null?0:b.isToggled))};
SE.prototype.configureRendererStamper=function(){return{"data.likeButton":{id:"segmented-like-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[likeButtonOverride]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[likeButtonOverride]]",animatedText:"[[true]]",textNumberValue:"[[data.likeCount]]"}}}},"data.dislikeButton":{id:"segmented-dislike-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}},
toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}}}}};
_.d0.Object.defineProperties(SE.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var N,b,S=((N=this.data)==null?void 0:(b=N.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:S,enabled:this.shouldEnableSmartimation,experimentEnabled:S.length>0}}}});
SE.prototype.onDataChanged=SE.prototype.onDataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SE.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],SE.prototype,"likeButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],SE.prototype,"dislikeButtonOverride",void 0);
_.p([_.f("shouldEnableSmartimation"),_.y("design:type",Object),_.y("design:paramtypes",[])],SE.prototype,"smartimationSettings",null);_.p([_.W4("data"),_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SE.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],SE);
_.X(SE,"ytd-segmented-like-dislike-button-renderer",function(){if(i04!==void 0)return i04;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return i04=N},{mode:1});var AQV;var XBd;(XBd=document.body)==null||XBd.setAttribute("rounded-container","");var E_9={};E_9.YtToggleButtonBehavior=[_.pG.YtActionHandlerBehavior,qZ.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var N=this.data.isToggled;if(!this.isModal_(N)){if(!this.data.preventAutoToggle){this.toggle();var b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;_.bC(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var S=this.data.toggledServiceEndpoint||null;if(b&&S||b&&this.data.preventAutoToggle)N=N?S:b,b=this.disableCommandHandlerOverride,_.T("killswitch_toggle_button_behavior_resolve_command")||b?_.HN(this.hostElement,
[N]):_.c7(N,this.hostElement),_.bC(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:N})}},
stateChanged_:function(){var N=this.data;if(N){var b=N.isToggled;this._setEndpoint(this.computeEndpoint_(N));this._setServiceEndpoint(this.computeServiceEndpoint_(N));this._setButtonIcon(this.computeButtonIcon_(N,b));this._setButtonText(this.computeButtonText_(N,b));this._setButtonAccessibility(this.computeAccessibility_(N,b));this._setButtonTooltip(this.computeTooltip_(N,b));this._setButtonClass(this.computeButtonClass_(N,b));this._setIconPositionType(this.computeIconPositionType_(N));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}},
shouldSetIconActiveState_:function(){return _.T("kevlar_system_icons")},
toggle:function(N){this.set("data.isToggled",N!==void 0?N:!this.data.isToggled);_.T("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(N){if(N){var b,S;return!!((b=this.data)==null?0:(S=b.toggledServiceEndpoint)==null?0:S.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(N){return N&&N.defaultNavigationEndpoint||null},
computeButtonIcon_:function(N,b){var S=N&&N.defaultIcon?_.C7(N.defaultIcon.iconType):null;N=N&&N.toggledIcon?_.C7(N.toggledIcon.iconType):S;return b?N:S},
handleUpdateToggleButtonStateCommand_:function(N){N=N.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==N.buttonId&&this.toggle(N.toggled)},
computeButtonText_:function(N,b){return N?b&&N.toggledText||N.defaultText||null:null},
computeAccessibility_:function(N,b){return N?(b?this.get("toggledAccessibilityData.accessibilityData",N):this.get("accessibilityData.accessibilityData",N))||N.accessibility||null:null},
computeTooltip_:function(N,b){return N?b&&N.toggledTooltip||N.defaultTooltip||null:null},
computeButtonClass_:function(N,b){if(!N)return"";var S="",P=N.toggledStyle||N.style;if(b=b?P:N.style){b.styleType&&(b=b.styleType);try{S+=b.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.hd(H,b,typeof b),_.$h(H)}}if(N=N.size){N.sizeType&&(N=N.sizeType);try{S+=N.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.hd(H,N,typeof N),_.$h(H)}}return S.trim()},
computeIconPositionType_:function(N){return N&&N.iconPosition||null},
computeServiceEndpoint_:function(N){var b=N&&N.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:S&&N.command?N.command:null},
handleUpdateToggleButtonTextAction_:function(N){N=N.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==N.buttonId&&(this.set("data.defaultText",N.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",N.toggledText),this.notifyPath("data.toggledText"))}}];_.lo("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var pBE=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live"),Pn=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.roundedContainer=!0;return N};
_.F(Pn,_.z);Pn.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Pn.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var N=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var S,P;b.actions.playlistId=(S=this.data.defaultServiceEndpoint)==null?void 0:(P=S.playlistEditEndpoint)==null?void 0:P.playlistId;_.bC(this.hostElement,"yt-toggle-button",b)}(N=N?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(N)}};
Pn.prototype.onYtNavigate=function(N){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);b&&(N.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.d0.Object.defineProperties(Pn,{template:{configurable:!0,enumerable:!0,get:function(){if(AQV===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);AQV=N}N=AQV;return N}}});
Pn.prototype.onYtNavigate=Pn.prototype.onYtNavigate;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],Pn.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(E_9.YtToggleButtonBehavior),_.y("design:type",Object)],Pn.prototype,"ytToggleButtonBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Pn.prototype,"data",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Pn.prototype,"showTooltips",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Pn.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Pn.prototype,"roundedContainer",void 0);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Pn.prototype,"onYtNavigate",null);
_.p([_.Uj({is:"ytd-toggle-button-renderer",disableElementRegistration:pBE})],Pn);var YCd,yQl;_.Hn=new _.nO("PANEL_CONTROLLER_TOKEN");_.sD=new _.nO("SHEET_CONTROLLER_TOKEN");_.KW=new _.nO("DIALOG_CONTROLLER_TOKEN");YCd=new _.nO("DIALOG_CONTAINER_TOKEN");yQl=new _.nO("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.vn=new _.nO("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Zy9=_.cN("DOWNLOAD",{},"Download"),jV_=_.cN("DOWNLOADING",{},"Downloading"),zQ9=_.cN("DOWNLOADED",{},"Downloaded"),AUO=_.cN("RETRY",{},"Retry");var I$d=_.A(function(N){var b=yUo,S=function(){return""},P=XJb(N.data),H=Efe(N.data),K=pJo(N.data),C=Y6O(N.data);
b=function(){var G=N.data(),a=JUE(G,P(),H(),K(),C()),R=!!G.videoId,n=a.text;return{title:R?n:void 0,tooltip:R?void 0:n,accessibilityText:n,onTap:a.onTap,iconName:a.iconType,style:G.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:a.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:G.buttonSize}};
S={};S=_.KU("ytDownloadButtonViewModelHost",(S.ytDownloadButtonViewModelIsHidden=function(){var G=N.data(),a=C();return G.playlistId||a()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||a()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},S));
return _.c("download-button-view-model",{class:S},_.c(_.j$,{data:b}))},"ia");
I$d.idomCompat=!0;var wJY=new _.nO("SUBMIT_API_SERVICE_TOKEN");var $Cb,hQY,Nd9={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var mlL=new _.nO("RENDERER_LOGGER_TOKEN");var R4L=new _.nO("RENDERER_STAMPER_OPTIONS_TOKEN");var SA_;_.mH=new SxS;SA_=new Map;var WBu="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),dls=["notificationTextRenderer","notificationMultiActionRenderer"],
nBU="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),amI=P9p(function(N){return _.he(N==null?void 0:N.targetId)}).useUpdatableData;var cfU=0,GPE=new Set;_.kY.debugName="EjJbCe";var Dsz=_.A(function(N){var b=N.data;N=N.className;_.pM(function(){b().formId||_.ge(Error("Dh"))});
var S=_.eQu(function(){return b().formId},function(){return b().beforeSubmitCommand},function(){return b().afterSubmitCommand}),P=S.submitForm,H=S.isValid,K=S.isSubmitting,C=function(){return{state:b().isDisabled||!H()||K()?"disabled":"active"}};
return _.c("yt-submit-button-view-model",{class:_.KU("ytSubmitButtonViewModelHost",N)},_.c(_.kY,{data:function(){return b().button}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
buttonOverrides:C,onClick:P})}}))},"la");var g_N=_.A(function(N){var b=N.backgroundLottieRef;var S=N.foregroundLottieRef;var P=N.children;var H=N.wrapperClass;var K=N.disableAnimation;N=function(){return(_.T("web_animated_actions")||_.T("web_animated_actions_v2"))&&!(K==null?0:K())};
return _.c("yt-animated-action",{class:_.KU("ytAnimatedActionHost",H)},_.c("div",{class:"ytAnimatedActionContentWithBackground"},_.c(_.W,{cond:N,then:function(){return _.c(Vi4,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(kPI()?"dark":"light")+"_v5.json"}}}})}}),P),_.c(_.W,{cond:N,
then:function(){return _.c(Vi4,{lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(kPI()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
g_N.idomCompat=!0;var Vi4=_.A(function(N){var b=N.wrapperClass;var S=N.lottieClass;var P=N.lottiePlayerProps;return _.c("div",{class:_.KU("ytAnimatedActionLottie",b),"aria-hidden":"true"},_.c(_.Yg,{className:S,data:P,animationName:function(){return P().animationConfig.name}}))},"na");var Tdu={isOpen:!1};var Mwf={isAllowed:!1};var Bda={errorMessage:"",title:"",privacy:"",isDisabled:!0};var LBp={isOpen:!1};var u7a={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var enV={response:void 0};var xlE=function(N,b){N=N===void 0?enV:N;switch(b.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},N,{response:b.payload});default:return N}};var $sb={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var oBI=function(N,b){N=N===void 0?$sb:N;switch(b.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},N,{nextDisabled:b.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},N,{nextCommand:b.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},N,{footerSubmissionData:b.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},N,{isImpersonationValid:b.payload});default:return N}};var hn9={reportFormData:void 0,reportDetailsFormData:void 0};var iss=function(N,b){N=N===void 0?hn9:N;switch(b.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},N,{reportFormData:b.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},N,{reportDetailsFormData:b.payload});default:return N}};var qC9=void 0;_.T("mweb_enable_redux_store_on_demand")||(qC9=new $G(Jfo()));var OD=_.T("enable_web_delhi_icons");var wBE=_.A(function(N){N=_.h_(N,{themeOverride:void 0,animationRef:{}});var b=N.animatedIconType,S=N.active,P=N.themeOverride,H=N.animationRef;N=N.staticIconFn;var K=_.O(_.QF(void 0,void 0,"l48agc")),C=K.next().value,G=K.next().value,a=function(){a:{var u=b();var J=P==null?void 0:P();var Z;J=(J==null?void 0:J.useDarkTheme)||((Z=_.aN().resolve(_.cq(_.T8)))==null?void 0:Z());switch(u){case "LIKE":qC9||(qC9=new $G(Jfo()));u=(u=sPO(qC9.getState()))&&u.animationLightUrl&&u.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:J?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:J?u.animationDarkUrl:u.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(u){J=u;break a}J="animated_like_icon_"+(J?"dark":"light")+"_"+(OD?"v5":"v4");J={lottiePlayerProps:{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+J+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(OD?" animated-like-icon-delhi":"")}}},totalFrames:OD?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":J={lottiePlayerProps:{animationConfig:{name:J?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(J?"dark":"light")+(OD?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(OD?" animated-subscribe-icon-delhi":"")}}},totalFrames:OD?120:79,lazyLoad:!1};break a}J=
void 0}return J},R=function(){var u,J;
return(J=(u=a())==null?void 0:u.lottiePlayerProps.animationConfig.name)!=null?J:""},n=function(){if(a()){var u=a().lottiePlayerProps.animationConfig.path;
return t8.get(u)||C()}};
K=_.O(_.QF(!1,void 0,"sDrGId"));var d=K.next().value;K=K.next().value;var m=ZsI(K),k=function(){var u=a(),J,Z,D;return(D=u==null?void 0:(J=u.lottiePlayerProps.animationConfig)==null?void 0:(Z=J.rendererSettings)==null?void 0:Z.className)!=null?D:""},M=void 0,l=void 0;
_.gA(function(){var u=a(),J=R(),Z=n(),D=d(),Y=S();if(u&&(l!==J&&(l=J,M=Y,J=H(),m.animationConfig=u.lottiePlayerProps.animationConfig,m.animationRef=J,Z&&(m.animationConfig.animationData=Z,m.animationConfig.path=void 0),J=u.lottiePlayerProps.animationConfig.path,!t8.get(J)&&u.lazyLoad&&J&&UlU(J,G)),!(D||u.lazyLoad&&!Z))){if(Z=!H().lottieEl)Y?(D=u.totalFrames,m.animationConfig.initialSegment=[D-1,D]):m.animationConfig.initialSegment=void 0;if(M!==Y&&!Z)if(Z=H(),Y){var V;(V=Z.lottieEl)==null||V.playSegments([0,
u.totalFrames],!0)}else{var g;(g=Z.lottieEl)==null||g.playSegments([0,1],!0)}M=Y}},"RQVZ1d");
return _.c("animated-icon",{class:"ytAnimatedIconHost"},_.c(_.W,{cond:function(){var u,J;return!((u=a())==null||!u.lottiePlayerProps.animationConfig.path||((J=a())==null?0:J.lazyLoad)&&!n()||d())},
then:function(){return _.c(_.Yg,{data:m,animationName:R,className:k,animationRef:H})},
else:N}))},"pa");_.CW=_.A(function(N){var b=_.Ct("yt-subscribe-button-view-model"),S=_.Ct("div"),P=_.Ct("div"),H=_.rx(),K=_.rx(),C=_.rx(),G=_.nf(XHe,function(){return N.data().stateEntityStoreKey}),a=_.nf(EBU,function(){var Vu,n9;
return(n9=(Vu=N.data().notificationStateEntityStoreKeys)==null?void 0:Vu.subsNotificationStateKey)!=null?n9:""}),R=function(){return!N.data().enableSubscribeButtonPostClickAnimation},n=_.O(_.QF(0,void 0,"YtsSKb")),d=n.next().value,m=n.next().value;
n=_.O(_.QF(0,void 0,"V6JxRe"));var k=n.next().value,M=n.next().value;n=_.O(_.QF(!1,void 0,"JUCSZ"));var l=n.next().value,u=n.next().value;n=_.O(_.QF(!1,void 0,"oV6jwf"));var J=n.next().value,Z=n.next().value;n=_.O(_.QF(!1,void 0,"hK1Whe"));var D=n.next().value,Y=n.next().value,V;n=_.O(_.QF(!1,void 0,"Asaolf"));var g=n.next().value,e=n.next().value,se=function(){Z(!0);_.Bm(_.Dj,function(){Z(!1)},1500)};
_.gA(function(){var Vu=J();_.fQ(function(){Vu&&!R()&&G()&&NNe(H,K,C)})},"Qq6Hsf");
_.gA(function(){var Vu=G();_.fQ(function(){if(!R()&&Vu){var n9;((n9=N.animateWidth)==null?0:n9.call(N))&&wHU(b.value,!!Vu.subscribed,d(),k());var mc,f9;((mc=V)==null?0:mc.subscribed)||!Vu.subscribed||Vu.key!==((f9=V)==null?void 0:f9.key)||se();V=Vu}})},"hog8te");
n=_.UB(function(){var Vu,n9,mc,f9=N.data(),mJ=!((Vu=G())==null||!Vu.subscribed);Vu=!((n9=N.isOverlay)==null||!n9.call(N));n9=l()?b:void 0;var Bk=(mc=a())==null?void 0:mc.state;mc=g();qAa(f9,Bk);return Af9({model:f9,subscribed:mJ,isOverlay:Vu,element:n9,notificationState:Bk,disableTextEllipsis:!0,focused:mc})},void 0,"hc1PRd");
var Ca=function(){var Vu;if(!R()&&((Vu=N.animateWidth)==null?0:Vu.call(N))&&(S==null?0:S.value)&&(P==null?0:P.value)&&!D()){Vu=G();var n9=_.O((Vu==null?0:Vu.subscribed)?[S,P]:[P,S]),mc=n9.next().value;n9=n9.next().value;mc=Math.ceil(mc.value.getBoundingClientRect().width);n9=Math.ceil(n9.value.getBoundingClientRect().width);m(mc);M(n9);wHU(b.value,!(Vu==null||!Vu.subscribed),mc,n9);Y(!0)}},ML=_.Ob(function(Vu){Ca();
var n9=G();n9&&(Vu.detail.endpoint.subscribeEndpoint||Vu.detail.endpoint.unsubscribeEndpoint)&&e4e(b.value,!n9.subscribed,n9)}),na=function(){var Vu=_.aN().resolve(_.cq(_.QJ));
Vu&&e(Vu.isKeyBoardInUse())},To=function(){e(!1)};
_.OX("yt-player-subscribe",function(Vu){var n9=G();n9&&Vu===N.data().channelId&&e4e(b.value,!0,n9)});
_.OX("yt-player-unsubscribe",function(Vu){var n9=G();n9&&Vu===N.data().channelId&&e4e(b.value,!1,n9)});
_.OX("yt-update-subscribe-button-action",function(Vu){Vu=_.t(Vu,Xuz);var n9=G();n9&&Vu&&Vu.channelId===N.data().channelId&&e4e(b.value,!!Vu.subscribed,n9)});
_.YU(function(){b.value&&(b.value.addEventListener("focusin",na),b.value.addEventListener("focusout",To));var Vu=_.XC(_.Dj,function(){Ca()});
u(!0);_.ej(function(){_.Dj.cancelJob(Vu);b.value&&(b.value.removeEventListener("focusin",na),b.value.removeEventListener("focusout",To))})});
var jp=function(){var Vu,n9,mc;if(mc=!((Vu=G())==null||!Vu.subscribed))Vu=!!N.data().disableNotificationBell,mc=(n9=a())==null?void 0:n9.state,mc=!Vu&&!!mc;return mc},Xf=function(){var Vu;
return!((Vu=G())==null?0:Vu.subscribed)},YO=function(){var Vu,n9;
if(n9=Xf()){n9=!!N.data().disableNotificationBell;var mc=(Vu=a())==null?void 0:Vu.state;n9=!n9&&!!mc}return n9},Wk={},S9={};
return _.c("yt-subscribe-button-view-model",{class:_.KU(N.className,"ytSubscribeButtonViewModelHost",(Wk.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Vu,n9;return!((Vu=G())==null||!Vu.subscribed)&&((n9=N.animateWidth)==null?void 0:n9.call(N))&&J()},Wk.ytSubscribeButtonViewModelHostHidden=function(){var Vu;
return!((Vu=G())==null?0:Vu.subscribed)&&N.data().hideWhenUnsubscribed},Wk)),
el:b,"on:yt-service-request-sent":ML},_.c(g_N,{backgroundLottieRef:H,foregroundLottieRef:K,wrapperClass:_.KU("ytSubscribeButtonViewModelAnimatedActionWrapper",(S9.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Vu;return((Vu=N.animateWidth)==null?void 0:Vu.call(N))&&J()},S9.ytSubscribeButtonViewModelStaticWidth=function(){var Vu;
return!((Vu=N.animateWidth)==null?0:Vu.call(N))},S9)),
disableAnimation:R},_.c("div",{el:S,class:"ytSubscribeButtonViewModelContainer"},_.c(_.ZR,{data:n,icon:function(){return _.c(_.W,{cond:jp,then:function(){var Vu=function(){var n9;return gBI((n9=a())==null?void 0:n9.state)};
return _.c(_.W,{cond:function(){return R()||Vu()!=="NOTIFICATIONS_NONE"},
then:function(){return _.c(_.cX,{icon:Vu})},
else:function(){return _.c(wBE,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:C})}})}})},
secondaryIconName:function(){return jp()?"EXPAND":void 0}}))),_.c("div",{el:P,
class:"ytSubscribeButtonViewModelInvisible"},_.c(_.W,{cond:function(){var Vu;return((Vu=N.animateWidth)==null?void 0:Vu.call(N))&&!R()&&!D()},
then:function(){return _.c(_.ZR,{data:_.UB(function(){var Vu;return Af9({model:N.data(),subscribed:Xf(),isOverlay:!((Vu=N.isOverlay)==null||!Vu.call(N)),element:b,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Vu;return YO()?gBI((Vu=a())==null?void 0:Vu.state):void 0},
secondaryIconName:function(){return YO()?"EXPAND":void 0}})}})))},"sa");
_.CW.idomCompat=!0;var Ns4=_.A(function(N){var b=N.data;var S=_.nf(XHe,function(){return b().subscriptionStateEntityKey});
return _.c(_.W,{cond:function(){var P=b(),H=S();return!P.hideWhenUnsubscribed||(H==null?0:H.subscribed)?_.t(b().button,_.WC):void 0},
then:function(P){return _.c("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.c(_.j$,{data:P,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
Ns4.idomCompat=!0;var bpO,Gq;bpO=_.A(function(N){return _.c(_.kY,{data:function(){return N.actionRow().actions}},{buttonViewModel:function(b){var S=b.data;
return _.c(Gq,{isRow:N.isRow,isIconOnlyButton:function(){return b0Y(S())},
useIntrinsicWidth:N.useIntrinsicWidth},_.c(_.j$,{data:S}))},
subscribeButtonViewModel:function(b){return _.c(Gq,{isRow:N.isRow},_.c(_.CW,{data:b.data,isOverlay:!1,animateWidth:function(){return!N.isRow()}}))},
downloadButtonViewModel:function(b){var S=b.data;return _.c(Gq,{isRow:N.isRow,isIconOnlyButton:function(){return!!S().playlistId}},_.c(I$d,{data:S}))},
submitButtonViewModel:function(b){var S=b.data;return _.c(Gq,{isRow:N.isRow,isIconOnlyButton:function(){var P=S();return b0Y(_.t(P==null?void 0:P.button,_.WC))}},_.c(Dsz,{data:S}))},
toggleButtonViewModel:function(b){var S=b.data;return _.c(Gq,{isRow:N.isRow,isIconOnlyButton:function(){var P=S();return b0Y(_.t(P.isToggled?P.toggledButtonViewModel:P.defaultButtonViewModel,_.WC))}},_.c(_.Hc,{data:S}))},
subscribePlusButtonViewModel:function(b){return _.c(Gq,{isRow:N.isRow},_.c(Ns4,{data:b.data}))}})},"ua");
Gq=_.A(function(N){var b={};return _.c("div",{class:_.KU("ytFlexibleActionsViewModelAction",(b.ytFlexibleActionsViewModelActionRowAction=N.isRow,b.ytFlexibleActionsViewModelActionIntrinsicWidth=N.useIntrinsicWidth,b.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,b.ytFlexibleActionsViewModelActionIconOnlyButton=N.isIconOnlyButton,b))},N.children)},"va");
_.r4=_.A(function(N){var b=function(){var P;return((P=N.layout)==null?void 0:P.call(N))===1},S={};
return _.c("yt-flexible-actions-view-model",{class:_.KU("ytFlexibleActionsViewModelHost",N.className,(S.ytFlexibleActionsViewModelInline=function(){return!b()},S.ytFlexibleActionsViewModelScrollable=function(){return N.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},S))},_.c(_.zj,{each:function(){return N.data().actionsRows||[]}},function(P){return _.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"ytFlexibleActionsViewModelActionRow"},_.c(bpO,{actionRow:P,isRow:b,useIntrinsicWidth:function(){return!!N.data().respectActionIntrinsicWidth}}))},
else:function(){return _.c(bpO,{actionRow:P,isRow:b})}})}))},"wa");_.qu(_.r4,"yt-flexible-actions-view-model",{props:{data:_.kg,layout:_.kg,justifyContentOverride:_.kg,className:_.kg}});_.cn=_.A(function(N){var b=_.nf(_.io,function(){var H;return(H=N.data().dislikeEntityKey)!=null?H:""}),S=_.UB(function(){var H=b();
return H?H.likeStatus==="DISLIKE":_.t(N.data().toggleButtonViewModel,_.dU).isToggled},void 0,"fNr9he"),P=_.UB(function(){return Object.assign({},_.t(N.data().toggleButtonViewModel,_.dU),{isToggled:S()})},void 0,"AezoCc");
return _.c("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.c(_.Hc,{data:P,buttonShapeOverrides:N.buttonShapeOverrideables,onToggle:function(H){var K=b();K&&H!==(K.likeStatus==="DISLIKE")&&K.key&&_.e7(_.oJ("likeStatusEntity",K.key,{likeStatus:H?"DISLIKE":"INDIFFERENT",hadUserInteraction:H}))}}))},"xa");
_.cn.idomCompat=!0;_.aD=_.A(function(N){var b=_.T("web_supports_animations_api"),S=R1s(function(m){var k=R();if(!m){var M,l;return{numberText:(l=k==null?void 0:(M=k.likeCountIfIndifferent)==null?void 0:M.content)!=null?l:"",numberValue:Number(k==null?void 0:k.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var u;M=(k==null?void 0:(u=k.likeCountIfIndifferent)==null?void 0:u.content)!==m.numberText;if(G()||!M)return m;var J;return{numberText:(k==null?void 0:(J=k.likeCountIfIndifferent)==null?void 0:J.content)||
"",numberValue:Number(k==null?void 0:k.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!k}}),P=R1s(function(m){var k=R();
if(!m){var M,l;return{numberText:(l=k==null?void 0:(M=k.likeCountIfLiked)==null?void 0:M.content)!=null?l:"",numberValue:Number(k==null?void 0:k.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var u;M=(k==null?void 0:(u=k.likeCountIfIndifferent)==null?void 0:u.content)!==m.numberText;if(G()||!M)return m;var J;return{numberText:(k==null?void 0:(J=k.likeCountIfLiked)==null?void 0:J.content)||"",numberValue:Number(k==null?void 0:k.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!k}}),H=_.O(_.QF(void 0,
void 0,"xYSlUe")),K=H.next().value,C=H.next().value,G=K,a=_.nf(_.io,function(){var m,k;
return(k=(m=N.data())==null?void 0:m.likeStatusEntityKey)!=null?k:""}),R=_.nf(YtI,function(){var m,k;
return((m=N.likeCountEntity)==null?void 0:(k=m.call(N))==null?void 0:k.key)||""}),n=_.UB(function(){var m;
return((m=a())==null?void 0:m.likeStatus)==="LIKE"},void 0,"DG5Osd"),d=function(){var m;
return b&&!((m=N.likeCountEntity)==null||!m.call(N))};
return _.c("like-button-view-model",{class:_.KU("ytLikeButtonViewModelHost",N.className)},_.c(_.Hc,{data:function(){var m=Object,k=m.assign,M;var l=_.t((M=N.data())==null?void 0:M.toggleButtonViewModel,_.dU);return k.call(m,{},l||{},{isToggled:n()})},
buttonShapeOverrides:N.buttonShapeOverrideables,animatedTextPropsDefault:function(){return d()?S():void 0},
animatedTextPropsToggled:function(){return d()?P():void 0},
onToggle:function(m){SCp(m,a(),G(),C)},
style:function(){var m;return((m=N.disableIconAnimation)==null?0:m.call(N))?void 0:{animateIcon:"true"}}}))},"ya");
_.aD.idomCompat=!0;var ST9=_.A(function(N){var b=function(){return _.t(N.data().likeButtonViewModel,_.pS)},S=function(){var H;
return((H=b())==null?void 0:H.likeStatusEntityKey)||""},P=_.UB(function(){var H,K;
var C=(K=_.nf(_.io,S)())!=null?K:(H=b())==null?void 0:H.likeStatusEntity;H=N.data();var G;H=(H==null?void 0:(G=H.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:H,enabled:(C==null?void 0:C.likeStatus)==="INDIFFERENT"&&H.length>0,experimentEnabled:H.length>0}},void 0,"zZ3GQb");
return _.c("segmented-like-dislike-button-view-model",{class:_.KU("ytSegmentedLikeDislikeButtonViewModelHost",N.className),"button-renderer":!0},_.c(zn9,{settings:P},_.c("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.c(_.W,{cond:b,then:function(H){return _.c(_.aD,{data:H,likeCountEntity:function(){return N.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.T("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.c(_.W,{cond:function(){return _.t(N.data().dislikeButtonViewModel,_.YE)},
then:function(H){return _.c(_.cn,{data:H,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
ST9.idomCompat=!0;_.qu(ST9,"segmented-like-dislike-button-view-model",{props:{data:_.kg,className:_.kg}});var Phz=_.A(function(N){var b=N.data;var S=N.className;var P=N.setMinWidth;var H=N.forceIconOnly;var K=_.Ct("account-link-button-view-model"),C=_.nf(_.PcI,function(){var m;return(m=b().accountLinkStatusEntityKey)!=null?m:""}),G=_.nf(_.PcI,function(){var m;
return(m=b().accountLinkStatusSecondaryEntityKey)!=null?m:""}),a=function(){if(!_.T("web_account_link_secondary_killswitch")){var m,k;
return((m=C())==null?void 0:m.linked)||((k=G())==null?void 0:k.linked)}var M;return(M=C())==null?void 0:M.linked};
_.gA(function(){var m=C();if(m){var k=RlV(new axz,rTz(new GD4,!!m.linked));_.Cf().then(function(M){M&&(M.setAccountLinkState(_.iL(k.JSC$12555_serializeBinary(),4)),M.updateAccountLinkingConfig(!!m.linked))})}},"IvZF7");
var R=function(){return _.t(b().toggleButtonViewModel,_.dU)};
_.OX("yt-signal-action-show-account-link-dialog",function(){if(R()){var m=a()?R().toggledButtonViewModel:R().defaultButtonViewModel;m=_.t(m,_.WC);var k;if((k=C())==null?0:k.isWarning){k=_.t(b().warningButtonViewModel,_.WC);if(!k){_.qB(Error("Eh"));return}m=k}var M;(k=_.UZ((M=m)==null?void 0:M.onTap))&&_.OR([k],K.value)}else _.qB(Error("Fh"))});
var n=function(){var m=R();return Object.assign({},m,{isToggled:a()})},d=function(){return(H==null?0:H())?{iconPosition:"icon-only"}:{}};
return _.c("account-link-button-view-model",{class:_.KU("ytwAccountLinkButtonViewModelHost",S,function(){return(P==null?0:P())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:K,"button-renderer":!0},_.c("div",null,_.c(_.W,{cond:function(){var m;if((m=C())==null?0:m.isWarning)return(m=_.t(b().warningButtonViewModel,_.WC))||_.qB(Error("Eh")),m},
then:function(m){return _.c(_.j$,{data:m,buttonOverrides:d})},
else:function(){return _.c(_.Hc,{data:n,buttonShapeOverrides:d})}})))},"Ba");_.qu(Phz,"account-link-button-view-model",{props:{data:_.kg,className:_.er,setMinWidth:_.er,forceIconOnly:_.er}});_.lo("menuRenderer","menuRenderer","ytd-menu-renderer");
var HpV={buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},segmentedLikeDislikeButtonRenderer:{component:"ytd-segmented-like-dislike-button-renderer"},segmentedLikeDislikeButtonViewModel:{component:"segmented-like-dislike-button-view-model"},accountLinkButtonRenderer:{component:"ytd-account-link-button-renderer",properties:{overrides:"[[buttonOverride]]",
forceModernIconButton:"[[tonalOverride]]",disableTextTransform:"[[disableTextTransformOnButtons]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceIconOnly:"[[topLevelIconsOnly]]"}},accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{className:"ytd-menu-renderer"},properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},downloadButtonRenderer:{component:"ytd-download-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},playlistLoopButtonRenderer:{component:"ytd-playlist-loop-button-renderer",properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{buttonOverrides:"[[buttonOverrides]]",scopingClassName:"[[is]]"}},flexibleActionsViewModel:{component:"yt-flexible-actions-view-model"}},
sx9=_.T("web_fix_missing_action_buttons")?100:200,RD=function(){var N=_.z.apply(this,arguments)||this;N.safeArea=!_.T("kevlar_flex_menu_safe_area_killswitch");N.tonalOverride=!1;N.threeDotSize="M";N.isOverlay=!1;N.useOverlayDark=!1;N.topLevelIconsOnly=!1;N.JSC$14997_lastWidth=0;N.maybeUpdateFlexibleMenu=function(){_.T("web_fix_missing_action_buttons")?requestAnimationFrame(N.maybeUpdateFlexibleMenuImpl):N.maybeUpdateFlexibleMenuImpl()};
N.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=N.data)!=null&&b.flexibleItems){N.maybeFlushDebouncer();b=N.hostElement.clientWidth;var S=b>N.JSC$14997_lastWidth,P,H=((P=N.topLevelButtonsContainer)==null?void 0:P.scrollHeight)||0,K;P=((K=N.flexibleItemButtonsContainer)==null?void 0:K.scrollHeight)||0;K=N.hostElement.scrollHeight>Math.max(H,P)+8;S?(N.resetFlexibleItems(),N.JSC$14997_lastWidth=N.hostElement.clientWidth,N.maybeUpdateFlexibleMenu()):K&&(N.shrinkFlexibleMenu(),N.JSC$14997_lastWidth=
b)}};
N.computeThreeDotButtonShape=function(){if(N.tonalOverride)return Object.assign({},{onTap:function(){N.onOverflowTap()},
iconPosition:"icon-only",style:N.isOverlay?N.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:N.threeDotSize,state:"active",accessibilityLabel:N.computeAccessibilityLabel(N.data)},N.threeDotButtonOverride)};
N.onOverflowTap=function(){var b,S,P,H,K,C;_.r(function(G){switch(G.nextAddress){case 1:if(N.data.fetchMenuCommand)return b=_.aN().resolve(_.Wq),b.resolveCommand(N.data.fetchMenuCommand,{form:{element:N.hostElement}}),G.return();if(N.data.isDisabled&&N.data.disabledCommand)return _.c7(N.data.disabledCommand,N.hostElement),G.return();S=N.createMenuRendererVe();P={items:N.items};N.data.menuPopupAccessibility&&(P.menuPopupAccessibility=N.data.menuPopupAccessibility);N.data.footer&&(P.footer=N.data.footer);
H={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:P},veData:S}};K=_.aN().resolve(_.sD);if(!_.T("ytd-menu-singleton-sheet-killswitch")){G.jumpTo(2);break}return G.yield(K.openSheet({openPopupActionCommand:H},N.hostElement),3);case 3:return G.return();case 2:return G.yield(K.isSheetOpen(),4);case 4:return(C=G.yieldResult)?G.yield(K.closeSheet(),0):G.yield(K.openSheet({openPopupActionCommand:H},N.hostElement),0)}})};
return N};
_.F(RD,_.z);_.v=RD.prototype;_.v.updateButtonOverrides=function(){if(!_.T("menu_renderer_label_update_upkillswitch")){var N=_.H4(this.hostElement).querySelector("yt-button-view-model");N&&(N.buttonOverrides=this.buttonOverrides)}};
_.v.computeHasItems=function(){var N;return((N=this.topLevelButtonData)==null?void 0:N.length)||this.hasFlexibleItems};
_.v.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.v.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.rq(this.hostElement,{"--ytd-menu-renderer-button-color":_.xn(this.data.iconColor)}))};
_.v.onStamperFinished=function(){this.JSC$14997_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.v.setupFlexibleMenu=function(){var N=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.GR(this.maybeUpdateFlexibleMenu,sx9,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){N.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.v.maybeFlushDebouncer=function(){if(_.T("web_replace_formatted_with_attributed_string")){var N;(N=this.topLevelButtons)==null||N.forEach(function(S){var P;(S=(P=S.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&lrO(S)});
var b;(b=this.flexibleItemButtons)==null||b.forEach(function(S){var P;(S=(P=S.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&lrO(S)})}};
_.v.resetFlexibleItems=function(){var N;if((N=this.data)!=null&&N.flexibleItems){_.T("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(S){return _.t(S,_.ggl).topLevelButton});
_.T("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.v.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.v.shrinkFlexibleMenu=function(){var N;(N=this.flexAsTopLevelButtons)!=null&&N.length&&(this.flexAsTopLevelButtons=[].concat(_.IX(this.flexAsTopLevelButtons.slice(0,-1))))};
_.v.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:HpV,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:HpV,events:!0}}};
_.v.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.detached=function(){this.icon="MORE_VERT"};
_.v.computeTopLevelButtonData=function(N){if(!N)return[];var b;N=(b=N==null?void 0:N.topLevelButtons)!=null?b:[];return _.Vm.unsafeClone([].concat(_.IX(N)))};
_.v.computeItems=function(N,b){if(!N)return[];var S=[];if(b){var P=(N.flexibleItems||[]).map(function(C){return _.t(C,_.ggl)});
P=_.O(P);for(var H=P.next();!H.done;H=P.next())H=H.value,b.includes(H.topLevelButton)||(H=H.menuItem)&&S.push(H)}var K;N=(K=N==null?void 0:N.items)!=null?K:[];return[].concat(_.IX(S),_.IX(N))};
_.v.computeMenuActive=function(N,b){return N||b};
_.v.onPopupOpened=function(){this.overlayOpen=!0;_.bC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.v.onPopupClosed=function(){this.overlayOpen=!1;_.bC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.onPopupCanceled=function(){this.overlayOpen=!1;_.bC(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.computeAccessibilityLabel=function(N){return this.get("accessibility.accessibilityData.label",N)};
_.v.isHidden=function(N,b){return this.tonalOverride||!N?!0:N.fetchMenuCommand||N.isDisabled&&N.disabledCommand?!1:!(b==null?0:b.length)};
_.v.isModernOverflowHidden=function(N,b){return this.tonalOverride&&N?N.fetchMenuCommand?!1:!(b==null?0:b.length):!0};
_.v.createMenuRendererVe=function(){var N=this.data.trackingParams,b=_.Qh(),S=_.uZ();return N&&b&&S?(N=_.FA(N),S=_.OW(7591),_.T("combine_ve_grafts")?_.Ew(_.dG(),S,N):_.AZ(b,N,S),S):null};
_.d0.Object.defineProperties(RD.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.flexAsTopLevelButtons)==null||!N.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
RD.prototype.onPopupCanceled=RD.prototype.onPopupCanceled;RD.prototype.onPopupClosed=RD.prototype.onPopupClosed;RD.prototype.onPopupOpened=RD.prototype.onPopupOpened;RD.prototype.tonalOverrideChanged=RD.prototype.tonalOverrideChanged;RD.prototype.resetFlexibleItems=RD.prototype.resetFlexibleItems;RD.prototype.setupFlexibleMenu=RD.prototype.setupFlexibleMenu;RD.prototype.iconButtonColorChanged=RD.prototype.iconButtonColorChanged;RD.prototype.updateButtonOverrides=RD.prototype.updateButtonOverrides;
_.p([_.L(_.u$),_.y("design:type",Object)],RD.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#button-shape"),_.y("design:type",HTMLElement)],RD.prototype,"buttonShape",void 0);_.p([_.dq("#button"),_.y("design:type",Object)],RD.prototype,"button",void 0);
_.p([_.U(),_.y("design:type",Object)],RD.prototype,"data",void 0);_.p([_.U({computed:"computeTopLevelButtonData(data)"}),_.y("design:type",Array)],RD.prototype,"topLevelButtonData",void 0);_.p([_.U(),_.y("design:type",Array)],RD.prototype,"flexAsTopLevelButtons",void 0);_.p([_.U({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.y("design:type",Array)],RD.prototype,"items",void 0);_.p([_.U({value:"MORE_VERT"}),_.y("design:type",String)],RD.prototype,"icon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RD.prototype,"safeArea",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.y("design:type",Boolean)],RD.prototype,"menuActive",void 0);_.p([_.U(),_.y("design:type",Boolean)],RD.prototype,"menuFocused",void 0);_.p([_.U({value:"bottom"}),_.y("design:type",String)],RD.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.y("design:type",Boolean)],RD.prototype,"overlayOpen",void 0);
_.p([_.U({value:!0}),_.y("design:type",Boolean)],RD.prototype,"forceIconButton",void 0);_.p([_.U(),_.y("design:type",Boolean)],RD.prototype,"styleActionButton",void 0);_.p([_.U(),_.y("design:type",Boolean)],RD.prototype,"disableTextTransformOnButtons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RD.prototype,"tonalOverride",void 0);_.p([_.U(),_.y("design:type",Object)],RD.prototype,"threeDotSize",void 0);
_.p([_.U(),_.y("design:type",Object)],RD.prototype,"threeDotButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],RD.prototype,"isOverlay",void 0);_.p([_.U(),_.y("design:type",Object)],RD.prototype,"useOverlayDark",void 0);_.p([_.U({computed:"computeButtonOverride(tonalOverride)"}),_.y("design:type",Object)],RD.prototype,"buttonOverride",void 0);_.p([_.U(),_.y("design:type",Boolean)],RD.prototype,"minimizePipBreakages",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],RD.prototype,"hasCustomIconColor",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("flexAsTopLevelButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],RD.prototype,"hasFlexibleItems",null);_.p([_.U({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.y("design:type",Boolean)],RD.prototype,"hasItems",void 0);_.p([_.U(),_.y("design:type",Object)],RD.prototype,"topLevelIconsOnly",void 0);
_.p([_.W4("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"updateButtonOverrides",null);_.p([_.f("topLevelIconsOnly"),_.y("design:type",Object),_.y("design:paramtypes",[])],RD.prototype,"buttonOverrides",null);_.p([_.dq("#top-level-buttons-computed"),_.y("design:type",HTMLElement)],RD.prototype,"topLevelButtonsContainer",void 0);_.p([_.md(".top-level-buttons > *"),_.y("design:type",Array)],RD.prototype,"topLevelButtons",void 0);
_.p([_.dq("#flexible-item-buttons"),_.y("design:type",HTMLElement)],RD.prototype,"flexibleItemButtonsContainer",void 0);_.p([_.md("#flexible-item-buttons > *"),_.y("design:type",Array)],RD.prototype,"flexibleItemButtons",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"iconButtonColorChanged",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"setupFlexibleMenu",null);_.p([_.t_("topLevelIconsOnly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"resetFlexibleItems",null);_.p([_.W4("tonalOverride"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"tonalOverrideChanged",null);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"onPopupOpened",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"onPopupClosed",null);_.p([_.RA("yt-popup-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RD.prototype,"onPopupCanceled",null);
_.X(RD,"ytd-menu-renderer",function(){if(F2k===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);F2k=N}N=F2k;return N},{mode:2});var KSl;var v4E;_.Wn=_.A(function(N){var b=N.data;var S=function(){if(b().icon)a:{var H={iconName:b().icon};for(var K=_.aN().resolve(_.GS),C=_.O([12,24]),G=C.next();!G.done;G=C.next()){var a=G.value;G=Object.assign({},H,{iconStyle:"youtube_fill",iconSize:a});a=Object.assign({},H,{iconStyle:"youtube_outline",iconSize:a});if(K.resolveIcon(G)){H=G;break a}if(K.resolveIcon(a)){H=a;break a}}H=void 0}else H=void 0;return H};
N={};var P={};return _.c("badge-shape",{class:_.KU("yt-badge-shape",function(){return Ccf(b().type)},(N["yt-badge-shape--overlay"]=function(){return b().isOverlay},N["yt-badge-shape--ads-include-dot"]=function(){return b().adsIncludeDot},N["yt-badge-shape--thumbnail-badge"]=function(){a:switch(b().type){case 17:case 18:case 19:var H=!0;
break a;default:H=!1}return H},N["yt-badge-shape--status-badge"]=function(){a:switch(b().type){case 12:case 13:case 14:case 15:case 16:var H=!0;
break a;default:H=!1}return H},N["yt-badge-shape--no-text"]=function(){return!b().text},N["yt-badge-shape--modern"]=function(){return b().modern||_.T("web_modern_badge_shape")},N["yt-badge-shape--typography"]=function(){a:{var H=b();
if(H.shouldInheritTypography)switch(H.type){case 0:case 1:case 9:H=!0;break a;default:H=!1}else H=!1}return!H},N)),
style:_.r5({"background-color":function(){var H;return(H=b().customColors)==null?void 0:H.backgroundColor}}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},_.c(_.W,{cond:function(){return b().animation},
then:function(H){return _.c(_.Yg,{className:"yt-badge-shape__icon",data:H,animationName:function(){return H().animationConfig.name||""}})}}),_.c(_.W,{cond:function(){var H;
return S()&&!((H=b())==null?0:H.animation)},
then:function(){return _.c("div",{class:"yt-badge-shape__icon"},_.c(_.ME,{data:function(){return S()}}))}}),_.c("div",{class:_.KU("yt-badge-shape__text",(P["yt-badge-shape__text--clip-text-overflow"]=function(){return b().clipTextOverflow},P["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(b().numBadgesInRow||0)>1},P))},function(){var H;
return(H=b())==null?void 0:H.text}))},"Ca");
_.Wn.idomCompat=!0;_.qu(_.Wn,"badge-shape",{props:{data:_.kg}});var nW=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.animated=_.T("animated_live_badge_icon");N.useBadgeShape=_.T("web_badge_shape_defrag");return N};
_.F(nW,_.z);_.v=nW.prototype;_.v.addTooltips=function(){for(var N=_.H4(this.hostElement).querySelectorAll(".badge"),b=0,S;S=N[b++];){var P=this.repeatElement.itemForElement(S);S=_.H4(S);S.lastChild&&S.lastChild.is==="tp-yt-paper-tooltip"&&S.removeChild(S.lastChild);if(P=P.metadataBadgeRenderer&&P.metadataBadgeRenderer.tooltip){var H=_.ln("tp-yt-paper-tooltip");(0,_.Gd)(H).textContent=P;H.setAttribute("position","top");H.setAttribute("aria-hidden","true");S.appendChild(H)}}};
_.v.badgesChanged=function(){var N=this;_.kA().parkOrScheduleJob(function(){N.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.v.standaloneRoundedBadgeChanged=function(){var N=this.useRoundedBadge?this.useRoundedBadge:void 0;N&&(this.useRoundedBadge=N)};
_.v.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.computeStyle=function(N){_.T("kevlar_ytb_live_badges")&&N==="BADGE_STYLE_TYPE_LIVE_NOW"&&(N="badge-style-type-live-now-alternate");return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeRole=function(N){return this.computeAriaLabel(N)?"img":"status"};
_.v.computeAriaLabel=function(N){var b;return(N==null?void 0:(b=N.accessibilityData)==null?void 0:b.label)||(N==null?void 0:N.label)};
_.v.computeBadgeShape=function(N){if(N){var b,S;var P=v__(N.style);var H=O0b(N.style),K=N.label,C=((b=N.accessibilityData)==null?void 0:b.label)||N.label;a:switch(N.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":b=!0;break a;default:b=!1}var G=(S=N.icon)==null?void 0:S.iconType;a:switch(N.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":N=!0;break a;default:N=!1}P={type:P,brNzRatingBadgeType:H,text:K,accessibilityText:C,
isOverlay:b,icon:G!=="PREMIUM"?G:void 0,modern:_.T("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:N}}else P={};return P};
_.v.updateComputedBadges=function(N,b,S){var P=this;(b=b?[b]:S?[S]:void 0)?this.computedBadges=b:this.computedBadges=N==null?void 0:N.filter(function(H){var K;if((K=H.metadataBadgeRenderer)==null?0:K.groups){K=!1;H=_.O(H.metadataBadgeRenderer.groups);for(var C=H.next();!C.done;C=H.next()){C=C.value;var G=void 0;K=K||((G=P.hiddenBadgeGroups)==null?void 0:G.includes(C))}return!K}return!0})};
_.v.useFilledIcons=function(N){return _.T("kevlar_system_icons")&&(N==="AUDIO_BADGE"||N==="CHECK_CIRCLE_THICK"||N==="OFFICIAL_ARTIST_BADGE"||N==="SPONSORSHIP_STAR"||N==="PERSON_RADAR_FILLED"||N==="PERSON_RADAR")};
_.v.computeBadgeShapeStyle=function(N){return this.useBadgeShape?N==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||N==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":N==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.v.computeIcon=function(N){var b,S;N=N==null?void 0:(b=N.metadataBadgeRenderer)==null?void 0:(S=b.icon)==null?void 0:S.iconType;if(N!=="PREMIUM"&&N)return _.C7(N)};
_.v.computeStandaloneBadge=function(N){var b;N=N==null?void 0:(b=N.icon)==null?void 0:b.iconType;return N==="PREMIUM_STANDALONE"||N==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
nW.prototype.hiddenBadgeGroupsChanged=nW.prototype.hiddenBadgeGroupsChanged;nW.prototype.standaloneBadgeChanged=nW.prototype.standaloneBadgeChanged;nW.prototype.standaloneRoundedBadgeChanged=nW.prototype.standaloneRoundedBadgeChanged;nW.prototype.badgesChanged=nW.prototype.badgesChanged;_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"hidden",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],nW.prototype,"componentBehavior",void 0);
_.p([_.U(),_.y("design:type",Array)],nW.prototype,"badges",void 0);_.p([_.U(),_.y("design:type",Object)],nW.prototype,"topStandaloneBadge",void 0);_.p([_.U(),_.y("design:type",Object)],nW.prototype,"bottomStandaloneBadge",void 0);_.p([_.U(),_.y("design:type",Object)],nW.prototype,"computedBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"mediumFontAdBadge",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"useRoundedBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"largeFontAdBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"overlayAd",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"overlayPremium",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"noDotAdBadge",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"collectionTruncate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"isThumbnailBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nW.prototype,"wrapBadges",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],nW.prototype,"numBadgesInRow",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nW.prototype,"systemIcons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nW.prototype,"animated",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nW.prototype,"useBadgeShape",void 0);_.p([_.U({value:[]}),_.y("design:type",Array)],nW.prototype,"hiddenBadgeGroups",void 0);_.p([_.dq("#repeat"),_.y("design:type",Qs)],nW.prototype,"repeatElement",void 0);_.p([_.t_("badges"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nW.prototype,"badgesChanged",null);
_.p([_.t_("useRoundedBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nW.prototype,"standaloneRoundedBadgeChanged",null);_.p([_.t_("topStandaloneBadge","bottomStandaloneBadge"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nW.prototype,"standaloneBadgeChanged",null);_.p([_.t_("hiddenBadgeGroups"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nW.prototype,"hiddenBadgeGroupsChanged",null);
_.p([_.Uj({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],nW);
var OpS=_.H7()(nW,"ytd-badge-supported-renderer",function(){if(v4E===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);v4E=N}N=v4E;return N},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.sZ("kevlar_poly_si_batch_j053")?1:2});var d4=function(){var N=_.z.apply(this,arguments)||this;N.iconType="STAR";N.plaMedium=_.T("enable_pla_resizing_for_desktop_medium");N.plaLarge=_.T("enable_pla_resizing_for_desktop_large");N.plaExtraLarge=_.T("enable_pla_resizing_for_desktop_extra_large");N.standardizeIconSize=_.T("kevlar_system_icons");N.mediaHoverOverlayInitialVisibility=_.T("enable_top_landscape_image_button_command_web");N.noBottomMargin=!1;N.thumbnailObjectFit="CONTAIN";N.thumbnailFitHeight=!0;N.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return N};
_.F(d4,_.z);_.v=d4.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",d4.JSC$15010_DEFAULT_CLICK_LOCATION_BEHAVIOR,d4.JSC$15010_CLICK_LOCATION_ID_MAP))};
_.v.onTap=function(N){this.onTapOrClick(N)};
_.v.onTapOrClick=function(N){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,N,!1)};
_.v.updateMediaBackgroundImage=function(){var N=this.get("data.image.thumbnail.thumbnails");N&&(N=_.wG(N,0))&&_.rq(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+N+")"})};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var N=0;N<this.data.impressionEndpoints.length;N++){var b=this.data.impressionEndpoints[N];b.clickTrackingParams&&delete b.clickTrackingParams;_.aN().resolve(_.Wq).resolveCommand(b,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var S;((S=this.data)==null?0:S.activeView)&&j6(this.activeView,this.data.activeView)}};
_.v.handleMuteAd=function(){};
_.v.attached=function(){var N=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.detached=function(){_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
_.d0.Object.defineProperties(d4.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.titleText)return"";var b;return _.cN("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
d4.prototype.onTap=d4.prototype.onTap;d4.prototype.dataChanged=d4.prototype.dataChanged;
d4.JSC$15010_CLICK_LOCATION_ID_MAP=_.T("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
d4.JSC$15010_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.T("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.cO),_.y("design:type",Object)],d4.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],d4.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],d4.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.L([_.pG.YtActionHandlerBehavior]),_.y("design:type",Object)],d4.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],d4.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],d4.prototype,"clickCommand",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],d4.prototype,"miniMode",void 0);_.p([_.U(),_.y("design:type",String)],d4.prototype,"iconType",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"plaMedium",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"plaLarge",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"plaExtraLarge",void 0);_.p([_.f("data.titleText"),_.y("design:type",String),_.y("design:paramtypes",[])],d4.prototype,"titleAriaLabel",null);_.p([_.f("data.rating"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"getRating",null);_.p([_.f("data.price"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"getPrice",null);
_.p([_.f("data.thirdLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"getThirdLine",null);_.p([_.f("data.fourthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"getFourthLine",null);_.p([_.f("data.fifthLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"getFifthLine",null);_.p([_.f("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computeRatingHidden",null);
_.p([_.f("getPrice"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computePriceHidden",null);_.p([_.f("getThirdLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computeThirdLineHidden",null);_.p([_.f("getFourthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computeFourthLineHidden",null);_.p([_.f("getFifthLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computeFifthLineHidden",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.energyIcon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"hasEnergyIcon",null);_.p([_.f("computePriceHidden","computeRatingHidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"computeSecondaryTextHidden",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"standardizeIconSize",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],d4.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.layout"),_.y("design:type",String),_.y("design:paramtypes",[])],d4.prototype,"layout",null);_.p([_.f("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],d4.prototype,"mediaThumbnailWidth",null);
_.p([_.f("layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],d4.prototype,"useRoundedBadge",null);_.p([_.U(),_.y("design:type",String)],d4.prototype,"thumbnailObjectFit",void 0);_.p([_.U(),_.y("design:type",Object)],d4.prototype,"thumbnailFitHeight",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],d4.prototype,"dataChanged",null);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],d4.prototype,"onTap",null);_.p([_.Uj({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],d4);
_.X(d4,"ytd-display-ad-renderer",function(){if(KSl!==void 0)return KSl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KSl=N},{mode:1});var Chl;var GAc;var rK9;var GGY=new Map;var cKO=!1;var mq=function(){var N=_.z.apply(this,arguments)||this;N.DEFAULT_TOOLTIP_OFFSET="10";N.TOOLTIP_OFFSET_NO_BANNER="-8";N.badges=null;N.noEndpoints=!1;N.wrapText=!1;N.forceVerified=!1;N.tooltipPosition="top";N.compactStyle=!1;N.height=0;N.lineHeight=0;return N};
_.F(mq,_.z);_.v=mq.prototype;_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.v.attached=function(){var N=this;this.observer=new MutationObserver(function(b,S){N.handleResized();S.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.v.detached=function(){this.observer&&this.observer.disconnect()};
_.v.logTooltipEvent=function(){_.T("kevlar_wiz_tooltip_event_killswitch")||cKO||(_.rQp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),cKO=!0)};
_.v.handleWindowResized=function(){this.handleResized()};
_.v.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.v.onHeightChanged=function(){if(this.verified){var N=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Vg("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=N:this.textContainerEl.style.marginRight=N}};
_.v.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Vg("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.v.handleResized=function(){var N=this;this.verified&&_.Dj.addLowPriorityJob(function(){N.fitBackgroundToText();var b=getComputedStyle(N.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(N.lineHeight=Number(b[0]));N.height=N.lineHeight&&!N.wrapText?N.lineHeight:N.textEl.offsetHeight})};
_.v.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var N=document.createRange(),b=_.H4(this.textEl).children;b.length>0?N.selectNodeContents(b[0]):N.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(N.getBoundingClientRect().width)+"px"}};
_.v.computeChannelBadgeStyle=function(N){var b;if((N==null?0:(b=N.runs)==null?0:b.length)&&N.runs[0].textColor)return"--ytd-badge-icon-color:"+_.xn(N.runs[0].textColor)+";"};
_.d0.Object.defineProperties(mq.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!(!this.forceVerified&&this.get("badges.0.metadataBadgeRenderer.style")!=="BADGE_STYLE_TYPE_UNIFIED_VERIFIED")}},
hideBadges:{configurable:!0,enumerable:!0,get:function(){return this.verified||!this.badges||this.badges.length===0}},
formattedName:{configurable:!0,enumerable:!0,get:function(){return typeof this.channelName==="string"?_.gy(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var N=this.get("badges.0.metadataBadgeRenderer.tooltip");if(N)return N}return _.es(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
mq.prototype.onLineHeightChanged=mq.prototype.onLineHeightChanged;mq.prototype.onHeightChanged=mq.prototype.onHeightChanged;mq.prototype.onChannelNameChanged=mq.prototype.onChannelNameChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],mq.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"badges",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"channelName",void 0);
_.p([_.U(),_.y("design:type",Object)],mq.prototype,"noEndpoints",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"wrapText",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"forceVerified",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"tooltipPosition",void 0);_.p([_.U(),_.y("design:type",String)],mq.prototype,"tooltip",void 0);_.p([_.U(),_.y("design:type",Boolean)],mq.prototype,"hasChannelArt",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mq.prototype,"compactStyle",void 0);_.p([_.dq("#text-container"),_.y("design:type",HTMLElement)],mq.prototype,"textContainerEl",void 0);_.p([_.dq("#text"),_.y("design:type",Object)],mq.prototype,"textEl",void 0);_.p([_.dq("#verified-tooltip"),_.y("design:type",HTMLElement)],mq.prototype,"verifiedTooltip",void 0);_.p([_.U(),_.y("design:type",Object)],mq.prototype,"height",void 0);
_.p([_.U(),_.y("design:type",Object)],mq.prototype,"lineHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("badges","forceVerified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mq.prototype,"verified",null);_.p([_.f("badges","verified"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mq.prototype,"hideBadges",null);_.p([_.f("channelName"),_.y("design:type",Object),_.y("design:paramtypes",[])],mq.prototype,"formattedName",null);
_.p([_.f("badges","verified","formattedName"),_.y("design:type",String),_.y("design:paramtypes",[])],mq.prototype,"tooltipText",null);_.p([_.f("hasChannelArt"),_.y("design:type",String),_.y("design:paramtypes",[])],mq.prototype,"tooltipOffset",null);_.p([_.W4("channelName"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mq.prototype,"onChannelNameChanged",null);
_.p([_.W4("height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mq.prototype,"onHeightChanged",null);_.p([_.W4("lineHeight","height"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mq.prototype,"onLineHeightChanged",null);_.p([_.Uj({is:"ytd-channel-name",disableElementRegistration:!0})],mq);
_.X(mq,"ytd-channel-name",function(){if(rK9!==void 0)return rK9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return rK9=N},{mode:_.sZ("kevlar_poly_si_batch_j036")?1:2});var kt=function(){var N=_.z.apply(this,arguments)||this;N.standardizeIconSize=_.T("kevlar_system_icons");return N};
_.F(kt,_.z);kt.prototype.basicPaletteChanged=function(){var N;(N=this.data.color)!=null&&N.basicColorPaletteData&&_.FM(this.hostElement,this.data.color.basicColorPaletteData)};
kt.prototype.useFilledIcons=function(N){return _.T("kevlar_system_icons")&&(N==="CHECK_CIRCLE_THICK"||N==="OFFICIAL_ARTIST_BADGE")};
_.d0.Object.defineProperties(kt.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return this.data.authorCreator||((N=this.data)==null?void 0:(b=N.color)==null?void 0:(S=b.basicColorPaletteData)==null?void 0:S.backgroundColor)}}});
kt.prototype.basicPaletteChanged=kt.prototype.basicPaletteChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kt.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],kt.prototype,"standardizeIconSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.authorUnifiedVerified"),_.y("design:type",Object),_.y("design:paramtypes",[])],kt.prototype,"verified",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],kt.prototype,"creator",null);_.p([_.W4("data.color.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kt.prototype,"basicPaletteChanged",null);_.p([_.Uj({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],kt);
_.X(kt,"ytd-author-comment-badge-renderer",function(){if(GAc!==void 0)return GAc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return GAc=N},{mode:1});var a0d;var Tq=function(){return _.z.apply(this,arguments)||this};
_.F(Tq,_.z);Tq.prototype.computeThumbnailWidth=function(N){if(N==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tq.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],Tq.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],Tq.prototype,"surface",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.T("enable_shrink_image_size_on_web_posts_singleton")}),_.y("design:type",Boolean)],Tq.prototype,"searchSxsUx",void 0);_.p([_.U({reflectToAttribute:!0,value:_.T("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],Tq.prototype,"useSmallerPostImageAttachments",void 0);_.p([_.Uj({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Tq);
_.X(Tq,"ytd-backstage-image-renderer",function(){if(a0d!==void 0)return a0d;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return a0d=N},{mode:1});var R_O;var tJ=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;N.selectedItemIndex=-1;return N};
_.F(tJ,_.z);_.v=tJ.prototype;_.v.computeIsChannelOwner=function(N){if(!N)return!0;N=N[0];return!(N&&(N.signinEndpoint||N.selectServiceEndpoint))};
_.v.computeIsImagePoll=function(N){return(N==null?void 0:N.type)==="POLL_TYPE_IMAGE"};
_.v.computeIsTotalVotesDisabled=function(N){return!(N==null?0:N.totalVotes)};
_.v.thumbnailSrc=function(N){var b,S,P,H;return(N==null?0:(b=N.thumbnails)==null?0:(S=b[0])==null?0:S.url)?_.VK((P=N.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.url):void 0};
_.v.progressWidth=function(N){return"width:"+(N?N*100:0)+"%;"};
_.v.textAreaWidth=function(N){return this.isImagePoll?null:"width:"+(N?N*100:0)+"%;"};
_.v.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.v.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var N=this.data.choices,b=0;b<N.length;b++)if(N[b].selected){this.selectedItemIndex=b;break}};
_.v.onPopupClosed=function(N,b){N=Number(this.pollVotes.selected);b.confirmed&&(this.selectChoice(N,!1),_.St(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.v.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.v.onYtCommentPollRevert=function(N,b){b&&(this.selectChoice(b.selectedChoiceIndex,!0),this.set("data.totalVotes",b.totalVotes))};
_.v.onYtServiceRequestSent=function(N,b){if(b.actions)for(N=0;N<b.actions.length;N++){var S=b.actions[N];_.t(S,Ds)&&this.set("data.totalVotes",_.t(S,Ds).totalVotes)}};
_.v.onYtServiceRequestCompleted=function(N){var b=this.get("detail.data.actionResults.0.feedback",N);N=this.get("detail.data.actionResults.0.status",N);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,N==="STATUS_FAILED"?_.bC(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.v.getEndpoint=function(N,b){return b===N?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[N].selectServiceEndpoint||null};
_.v.selectChoice=function(N,b){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++){var P;if(N===this.selectedItemIndex){var H=!1;var K=P=null}else P=(H=S===N)?this.data.choices[S].voteRatioIfSelected:this.data.choices[S].voteRatioIfNotSelected,K=H?this.data.choices[S].votePercentageIfSelected:this.data.choices[S].votePercentageIfNotSelected;this.set("data.choices."+S+".voteRatio",P);
this.set("data.choices."+S+".votePercentage",K);this.set("data.choices."+S+".selected",H)}b||(this.isLoading=!0,(b=this.getEndpoint(N,this.selectedItemIndex))&&_.aN().resolve(_.Wq).resolveCommand(b,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===N?-1:N};
_.d0.Object.defineProperties(tJ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
tJ.prototype.onYtServiceRequestCompleted=tJ.prototype.onYtServiceRequestCompleted;tJ.prototype.onYtServiceRequestSent=tJ.prototype.onYtServiceRequestSent;tJ.prototype.onYtCommentPollRevert=tJ.prototype.onYtCommentPollRevert;tJ.prototype.onPopupClosed=tJ.prototype.onPopupClosed;tJ.prototype.dataChanged=tJ.prototype.dataChanged;_.p([_.L(_.WS),_.y("design:type",Object)],tJ.prototype,"paperItemBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],tJ.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],tJ.prototype,"isLoading",void 0);_.p([_.U({computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],tJ.prototype,"isChannelOwner",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.y("design:type",Boolean)],tJ.prototype,"isImagePoll",void 0);_.p([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],tJ.prototype,"isTotalVotesDisabled",void 0);_.p([_.U(),_.y("design:type",Object)],tJ.prototype,"previousPollInfo",void 0);_.p([_.U(),_.y("design:type",Object)],tJ.prototype,"selectedItemIndex",void 0);_.p([_.dq("#poll-votes"),_.y("design:type",Object)],tJ.prototype,"pollVotes",void 0);
_.p([_.f("isChannelOwner"),_.y("design:type",Object),_.y("design:paramtypes",[])],tJ.prototype,"endpointStyle",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tJ.prototype,"dataChanged",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],tJ.prototype,"onPopupClosed",null);
_.p([_.RA("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],tJ.prototype,"onYtCommentPollRevert",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],tJ.prototype,"onYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tJ.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],tJ);
_.X(tJ,"ytd-backstage-poll-renderer",function(){if(R_O!==void 0)return R_O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option" aria-selected$="[[item.selected]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return R_O=N},{mode:2});var WSb;var n49={autoplay:!1,loop:!1},dK4={simpleText:""},Mh=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;N.usesPanelLockup=!1;N.selectedItemIndex=-1;N.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},n49,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});N.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},n49,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});N.correctnessAnimationProps=[];N.correctnessAnimationRefs=[];return N};
_.F(Mh,_.z);_.v=Mh.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.v.computeIsChannelOwner=function(N){if(!N)return!0;N=N[0];return!(N&&(N.signinEndpoint||N.selectServiceEndpoint))};
_.v.computeIsTotalVotesDisabled=function(N){return!(N==null?0:N.totalVotes)};
_.v.computeIsImageQuiz=function(N){return(N==null?void 0:N.type)==="POLL_TYPE_IMAGE"};
_.v.onExplanationChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var N=this.data.choices;if(N){this.maybeInitializeQuizLotties(N);for(var b=0;b<N.length;b++)if(N[b].isSelected||this.isChannelOwner&&N[b].isCorrect){this.selectedItemIndex=b;return}this.selectedItemIndex=-1}}};
_.v.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var N=this.selectedItemIndex,b=Number(this.quizVotes.selected);this.selectChoice(b);this.sendVoteAction(b,N);this.quizVotes.selected=-1;var S;N=!((S=this.data)==null?0:S.enableAnimation);this.maybePlayAnswerAnimations(N)}};
_.v.onYtCommentPollRevert=function(N,b){b&&(this.selectChoice(b.selectedChoiceIndex),this.set("data.totalVotes",b.totalVotes))};
_.v.onYtServiceRequestSent=function(N,b){if(b.actions)for(N=_.O(b.actions),b=N.next();!b.done;b=N.next())(b=_.t(b.value,Ds))&&this.set("data.totalVotes",b.totalVotes)};
_.v.onYtServiceRequestCompleted=function(N){var b=this.get("detail.data.actionResults.0.feedback",N);N=this.get("detail.data.actionResults.0.status",N);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,N==="STATUS_FAILED"?_.bC(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.v.getAnimationPropsForChoiceIndex=function(N,b){return b[N]};
_.v.maybePlayAnswerAnimations=function(N){N=N===void 0?!1:N;var b;if((b=this.data)!=null&&b.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){b=_.O(this.correctnessAnimationRefs);for(var S=b.next();!S.done;S=b.next()){var P=void 0,H=void 0;(P=S.value)==null||(H=P.lottieEl)==null||H.stop()}if(!(this.selectedItemIndex<0)){b=0;N&&(b=this.isCorrect?37:25);var K,C;(K=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(C=K.lottieEl)==null||C.goToAndPlay(N?b:0,!0);if(!(this.isCorrect||
(K=this.data.choices.findIndex(function(n){return n.isCorrect}),K<0))){var G,a;
(a=(G=this.correctnessAnimationRefs[K])==null?void 0:G.lottieEl)==null||a.goToAndPlay(37,!0);var R;G=(R=this.fadeContainers)==null?void 0:R.item(K);!N&&G&&this.fadeIn(G)}}}};
_.v.thumbnailSrc=function(N){var b,S,P,H;return(N==null?0:(b=N.thumbnails)==null?0:(S=b[0])==null?0:S.url)?_.VK((P=N.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.url):void 0};
_.v.a11yVotedText=function(N,b){var S,P,H=((S=this.data)==null?void 0:(P=S.correctVotedText)==null?void 0:P.simpleText)||"",K,C;S=((K=this.data)==null?void 0:(C=K.votedText)==null?void 0:C.simpleText)||"";if(!b)return"";var G,a;if((G=this.data)==null?0:(a=G.choices)==null?0:a[N].isCorrect)return H;var R,n;return((R=this.data)==null?0:(n=R.choices)==null?0:n[N].isSelected)?S:""};
_.v.getEndpoint=function(N,b){return b===N?this.data.choices[N].deselectServiceEndpoint||null:this.data.choices[N].selectServiceEndpoint||null};
_.v.sendVoteAction=function(N,b){if(N=this.getEndpoint(N,b))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(N)};
_.v.selectChoice=function(N){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++)this.set("data.choices."+b+".isSelected",N===this.selectedItemIndex?!1:b===N);this.selectedItemIndex=this.selectedItemIndex===N?-1:N};
_.v.maybeInitializeQuizLotties=function(N){var b=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=N.map(function(S){return{animationConfig:S.isCorrect?b.baseCorrectLottiePlayerAnimationConfig:b.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){b.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(S){return S.animationRef||{}})};
_.v.fadeIn=function(N){N.classList.add("fade-in");_.PX(_.Dj,function(){N.classList.remove("fade-in")},900)};
_.d0.Object.defineProperties(Mh.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.es(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.choices)==null?void 0:b.some(function(S){return S.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null||!N.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?dK4:this.data.choices[this.selectedItemIndex].explanation||dK4}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null||!N.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Mh.prototype.onYtServiceRequestCompleted=Mh.prototype.onYtServiceRequestCompleted;Mh.prototype.onYtServiceRequestSent=Mh.prototype.onYtServiceRequestSent;Mh.prototype.onYtCommentPollRevert=Mh.prototype.onYtCommentPollRevert;Mh.prototype.dataChanged=Mh.prototype.dataChanged;Mh.prototype.onExplanationChanged=Mh.prototype.onExplanationChanged;_.p([_.L(_.WS),_.y("design:type",Object)],Mh.prototype,"paperItemBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Bt.YtTaskEmitterBehavior),_.y("design:type",Object)],Mh.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],Mh.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mh.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],Mh.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Object)],Mh.prototype,"usesPanelLockup",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.y("design:type",Boolean)],Mh.prototype,"isChannelOwner",void 0);_.p([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.y("design:type",Boolean)],Mh.prototype,"isTotalVotesDisabled",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.y("design:type",Boolean)],Mh.prototype,"isImageQuiz",void 0);_.p([_.U(),_.y("design:type",Object)],Mh.prototype,"previousQuizInfo",void 0);_.p([_.U(),_.y("design:type",Object)],Mh.prototype,"selectedItemIndex",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data","usesPanelLockup"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"shouldUseModernUi",null);
_.p([_.md(".fade-container"),_.y("design:type",Object)],Mh.prototype,"fadeContainers",void 0);_.p([_.U(),_.y("design:type",Array)],Mh.prototype,"correctnessAnimationProps",void 0);_.p([_.f("explanation","showCorrectAnswer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"showExplanation",null);_.p([_.f("isChannelOwner","isAttempted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"showCorrectAnswer",null);
_.p([_.f("isChannelOwner","isAttempted","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"isQuizAnsweringDisabled",null);_.p([_.f("isQuizAnsweringDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mh.prototype,"endpointStyle",null);_.p([_.f("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"isAttempted",null);
_.p([_.f("data","selectedItemIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Mh.prototype,"explanation",null);_.p([_.f("data","selectedItemIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Mh.prototype,"isCorrect",null);_.p([_.dq("ytd-expander"),_.y("design:type",Object)],Mh.prototype,"expander",void 0);_.p([_.dq("#quiz-votes"),_.y("design:type",Object)],Mh.prototype,"quizVotes",void 0);
_.p([_.W4("explanation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mh.prototype,"onExplanationChanged",null);_.p([_.W4("data","isChannelOwner"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mh.prototype,"dataChanged",null);_.p([_.RA("yt-comment-quiz-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Mh.prototype,"onYtCommentPollRevert",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],Mh.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Mh.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Mh);
_.X(Mh,"ytd-backstage-quiz-renderer",function(){if(WSb!==void 0)return WSb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return WSb=N},{mode:1});var mKO;var F_=function(){return _.z.apply(this,arguments)||this};
_.F(F_,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],F_.prototype,"data",void 0);_.p([_.Uj({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],F_);
_.X(F_,"ytd-post-uploaded-video-renderer",function(){if(mKO!==void 0)return mKO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return mKO=N},{mode:1});var kA9;var Bn=function(){return _.z.apply(this,arguments)||this};
_.F(Bn,_.z);Bn.prototype.useFilledIcons=function(N){return N==="SPONSORSHIP_STAR"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Bn.prototype,"data",void 0);_.p([_.Uj({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Bn);
var Ts9=_.H7()(Bn,"ytd-sponsors-only-badge-renderer",function(){if(kA9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);kA9=N}N=kA9;return N},{allowedProps:["data"],
mode:1});var tul;var lk=function(){return _.z.apply(this,arguments)||this};
_.F(lk,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],lk.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lk.prototype,"data",void 0);_.p([_.Uj({is:"ytd-child-video-renderer",disableElementRegistration:!0})],lk);
_.X(lk,"ytd-child-video-renderer",function(){if(tul!==void 0)return tul;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return tul=N},{mode:1});var Mub;var FSZ;var LW=function(){var N=_.z.apply(this,arguments)||this;N.size=0;N.fallbackImageSize={height:void 0,width:9999};N.webModernCollections=!1;return N};
_.F(LW,_.z);_.v=LW.prototype;_.v.computeBlurredImageSize=function(N){return N?{height:N*2,width:N*2}:this.fallbackImageSize};
_.v.computeImageSize=function(N){return N?{height:N,width:N}:this.fallbackImageSize};
_.v.computeObjectFit=function(N){return N?"FILL":"CONTAIN"};
_.v.computePreserve=function(N){return N?!0:!1};
_.v.setBackground=function(){var N,b;if((N=this.data)==null?0:(b=N.thumbnail)==null?0:b.sampledThumbnailColor)N=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+N.red+","+N.green+","+N.blue+",1)"};
LW.prototype.setBackground=LW.prototype.setBackground;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],LW.prototype,"watchFeedThumbnail",void 0);_.p([_.U(),_.y("design:type",Object)],LW.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],LW.prototype,"size",void 0);
_.p([_.U({computed:"computeBlurredImageSize(size)"}),_.y("design:type",Object)],LW.prototype,"blurredImageSize",void 0);_.p([_.U({computed:"computeImageSize(size)"}),_.y("design:type",Object)],LW.prototype,"imageSize",void 0);_.p([_.U({computed:"computePreserve(size)"}),_.y("design:type",String)],LW.prototype,"preserve",void 0);_.p([_.U({computed:"computeObjectFit(size)"}),_.y("design:type",String)],LW.prototype,"objectFit",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],LW.prototype,"webModernCollections",void 0);_.p([_.W4("data.thumbnail.sampledThumbnailColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LW.prototype,"setBackground",null);_.p([_.Uj({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],LW);
_.X(LW,"ytd-playlist-custom-thumbnail-renderer",function(){if(FSZ!==void 0)return FSZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return FSZ=N},{mode:1});var Bs9;var fW=function(){return _.z.apply(this,arguments)||this};
_.F(fW,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fW.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],fW.prototype,"width",void 0);_.p([_.Uj({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],fW);
_.X(fW,"ytd-playlist-video-thumbnail-renderer",function(){if(Bs9!==void 0)return Bs9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Bs9=N},{mode:1});var l0N;var uk=function(){return _.z.apply(this,arguments)||this};
_.F(uk,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uk.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],uk.prototype,"width",void 0);_.p([_.Uj({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],uk);
_.X(uk,"ytd-show-custom-thumbnail-renderer",function(){if(l0N!==void 0)return l0N;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return l0N=N},{mode:1});var LSl;var QT=function(){return _.z.apply(this,arguments)||this};
_.F(QT,_.z);QT.prototype.useFilledIcons=function(N){return N==="MUSIC"||N==="COURSE"};
QT.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=i1(this.overlayColor,"0.8");else if(this.overlayColor){var N=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+N.red+","+N.green+","+N.blue+",0.8)"}};
_.d0.Object.defineProperties(QT.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
QT.prototype.overlayColorChanged=QT.prototype.overlayColorChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QT.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],QT.prototype,"overlayColor",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],QT.prototype,"overlayStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.icon","data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],QT.prototype,"overlayTextStyle",null);_.p([_.W4("overlayColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QT.prototype,"overlayColorChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],QT);
_.X(QT,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(LSl!==void 0)return LSl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return LSl=N},{mode:1});var f0O;var xt=function(){var N=_.z.apply(this,arguments)||this;N.active=!1;return N};
_.F(xt,_.z);xt.prototype.computeIsSpinnerHidden=function(N){return(N==null?void 0:N.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
xt.prototype.computeOverlayIcon=function(N){return(N==null?void 0:N.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(N==null?void 0:N.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xt.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],xt.prototype,"active",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],xt);
_.X(xt,"ytd-thumbnail-overlay-downloading-renderer",function(){if(f0O!==void 0)return f0O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return f0O=N},{mode:1});var uP9;var oD=function(){return _.z.apply(this,arguments)||this};
_.F(oD,_.z);_.d0.Object.defineProperties(oD.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oD.prototype,"data",void 0);_.p([_.f("data.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],oD.prototype,"text",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],oD);
_.X(oD,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(uP9!==void 0)return uP9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return uP9=N},{mode:1});var QxO,xKl=function(){if(QxO!==void 0)return QxO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QxO=N};var ik=function(){return _.z.apply(this,arguments)||this};
_.F(ik,_.z);_.d0.Object.defineProperties(ik,{template:{configurable:!0,enumerable:!0,get:function(){return xKl()}}});
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],ik.prototype,"animateEqualizer",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ik);_.H7()(ik,"ytd-thumbnail-overlay-equalizer",function(){return xKl()},{allowedProps:["animateEqualizer"],
mode:1});var o4c;var JJ=function(){var N=_.z.apply(this,arguments)||this;N.nowPlayingBadge=_.T("web_now_playing_badge");N.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return N};
_.F(JJ,_.z);JJ.prototype.activeChanged=function(){var N=this;_.T("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.W_(this,function(){_.bC(N.hostElement,"yt-playlist-lockup-now-playing-active",N)})};
JJ.prototype.onMiniplayerPlayStateChanged=function(N){var b,S=(b=_.t(_.gU().currentEndpoint,_.Iv))==null?void 0:b.videoId;this.isVideoPlaying=N&&(_.T("web_limit_now_playing_animation_killswitch")||this.videoId===S)};
JJ.prototype.activeChanged=JJ.prototype.activeChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],JJ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],JJ.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.y("design:type",String)],JJ.prototype,"videoId",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],JJ.prototype,"equalizerOnly",void 0);_.p([_.U(),_.y("design:type",Boolean)],JJ.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],JJ.prototype,"nowPlayingBadge",void 0);_.p([_.W4("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JJ.prototype,"activeChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],JJ);
_.X(JJ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(o4c!==void 0)return o4c;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return o4c=N},{mode:1});var ip9;var UD=function(){return _.z.apply(this,arguments)||this};
_.F(UD,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UD.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],UD);
_.X(UD,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(ip9!==void 0)return ip9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ip9=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var JKz;var Zu=function(){return _.z.apply(this,arguments)||this};
_.F(Zu,_.z);Zu.prototype.onDurationChanged=function(){var N,b;_.H4(this.hostElement).querySelector("#progress").style.width=((b=(N=this.data)==null?void 0:N.percentDurationWatched)!=null?b:0)+"%"};
Zu.prototype.onDurationChanged=Zu.prototype.onDurationChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Zu.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Zu.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Zu.prototype,"isLive",void 0);_.p([_.W4("data.percentDurationWatched"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zu.prototype,"onDurationChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Zu);
_.X(Zu,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(JKz!==void 0)return JKz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JKz=N},{mode:1});var UKE;var jE=function(){var N=_.z.apply(this,arguments)||this;N.bottomPanel=!1;N.richGridOverlay=!1;N.watchFeedOverlay=!1;N.isCompact=!1;return N};
_.F(jE,_.z);jE.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.d0.Object.defineProperties(jE.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&_.T("kevlar_system_icons")}}});
jE.prototype.widthChanged=jE.prototype.widthChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jE.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],jE.prototype,"width",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jE.prototype,"bottomPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jE.prototype,"richGridOverlay",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jE.prototype,"watchFeedOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jE.prototype,"isCompact",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jE.prototype,"isIconFilled",null);_.p([_.W4("width","watchFeedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jE.prototype,"widthChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],jE);
_.X(jE,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(UKE!==void 0)return UKE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return UKE=N},{mode:1});var Zp9;var jxc=["CLIP","SHORTS"],zq=function(){var N=_.z.apply(this,arguments)||this;N.animated=_.T("animated_live_badge_icon");N.hasIcon=!1;N.updateTimerIntervalId=0;N.timeSinceLive=0;return N};
_.F(zq,_.z);_.v=zq.prototype;_.v.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.v.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.v.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.v.hasIconOrText=function(){var N,b;return!!(((N=this.data)==null?0:N.icon)||((b=this.data)==null?0:b.text))};
_.v.initializeLiveBadgeTimer=function(){var N=this,b,S=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(S&&this.canShowLiveBadgeTimer()){var P;b=Number((P=this.liveBadgeData)==null?void 0:P.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(S);this.updateTimerIntervalId=_.MX(function(){N.canShowLiveBadgeTimer()?N.timeSinceLive++:(N.timeSinceLive=0,window.clearInterval(N.updateTimerIntervalId))},b)}else this.timeSinceLive=0};
_.v.canShowLiveBadgeTimer=function(){var N=Date.now(),b,S;return N<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&N>Number((S=this.liveBadgeData)==null?void 0:S.startTimestampSec)*1E3};
_.d0.Object.defineProperties(zq.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.cQf(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return jxc.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
zq.prototype.initializeLiveBadgeTimer=zq.prototype.initializeLiveBadgeTimer;zq.prototype.dataChanged=zq.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],zq.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zq.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],zq.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],zq.prototype,"animated",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.y("design:type",Boolean)],zq.prototype,"hideTimeStatus",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],zq.prototype,"hasIcon",void 0);_.p([_.U(),_.y("design:type",Object)],zq.prototype,"timeSinceLive",void 0);_.p([_.f("data","timeSinceLive"),_.y("design:type",Object),_.y("design:paramtypes",[])],zq.prototype,"badgeShapeData",null);
_.p([_.f("data","overlayType"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zq.prototype,"hideBadgeShape",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zq.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],zq.prototype,"overlayStyle",null);
_.p([_.f("data.liveBadgeData"),_.y("design:type",Object),_.y("design:paramtypes",[])],zq.prototype,"liveBadgeData",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.type"),_.y("design:type",Object),_.y("design:paramtypes",[])],zq.prototype,"overlayType",null);_.p([_.f("overlayType","overlayStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zq.prototype,"useFilledIcon",null);
_.p([_.t_("liveBadgeData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zq.prototype,"initializeLiveBadgeTimer",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],zq);
_.X(zq,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Zp9!==void 0)return Zp9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Zp9=N},{mode:_.sZ("kevlar_poly_si_batch_j035")?1:2});var z_9;var AJ=function(){return _.z.apply(this,arguments)||this};
_.F(AJ,_.z);AJ.prototype.configureRendererStamper=function(){return{"data.primaryActionButton":{id:"primary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
AJ.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(N){if(this.hasPlaybackProgressBar)return{percentDurationWatched:N.percentDurationWatched}};
AJ.prototype.computeHasPlaybackProgressBar=function(N){return!!N.percentDurationWatched&&N.percentDurationWatched>0};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],AJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.y("design:type",Boolean)],AJ.prototype,"hasPlaybackProgressBar",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],AJ);
_.X(AJ,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(z_9!==void 0)return z_9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return z_9=N},{mode:1});var AK9;var X99=_.A(function(N){var b=N.data;var S=N.children;var P=function(){return!!b().doubleStack},H=function(){return!!b().includeStackHeight};
return _.c("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!b().experimentEnabled}},_.c(_.W,{cond:b,
then:function(){var K={};return _.c(_.nM,null,_.c(_.W,{cond:H,then:function(){var C={};return _.c("div",{class:_.KU("ytCollectionsStackSpacer",(C.ytCollectionsStackSpacerDoubleStack=P,C))})}}),_.c("div",{class:_.KU((K.ytCollectionsStackRelativeStack=H,K))},_.c(_.W,{cond:P,
then:function(){var C={};return _.c("div",{class:_.KU("ytCollectionsStackCollectionStack2",function(){return b().customClassName2ndStack},(C.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return b().enableResponsiveMode},C)),
style:_.r5({"background-color":function(){return Rnb(b())}})})}}),_.c("div",{class:_.KU("ytCollectionsStackCollectionStack1",function(){return b().customClassName1stStack},function(){return a$L(b().thumbnailSize?b().thumbnailSize:"medium")}),
style:_.r5({"background-color":function(){return Rnb(b())}})}),S))}}))},"Da");_.qu(X99,"yt-collections-stack",{props:{data:_.kg}});var X_=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};N.webModernCollections=!1;N.isSearch=!1;N.isDoubleStack=!1;N.thumbnailSize="medium";return N};
_.F(X_,_.z);_.v=X_.prototype;
_.v.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.v.getThumbnailDetails=function(N){if(N!=null&&N.thumbnailRenderer){var b=N.thumbnailRenderer,S;if((S=b.playlistVideoThumbnailRenderer)==null?0:S.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var P;if((P=b.playlistCustomThumbnailRenderer)==null?0:P.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;N=N.thumbnailRenderer;var H;if((H=N.showCustomThumbnailRenderer)==null?0:H.thumbnail)return N.showCustomThumbnailRenderer.thumbnail}};
_.v.computeOverlayColor=function(N){var b,S;if((b=this.getThumbnailDetails(N))==null?0:(S=b.darkColorPalette)==null?0:S.section2Color)return this.getThumbnailDetails(N).darkColorPalette.section2Color;var P;return(P=this.getThumbnailDetails(N))==null?void 0:P.sampledThumbnailColor};
_.v.computeWebModernCollections=function(N){if(N==null||!N.thumbnailOverlays)return!1;N=_.O(N.thumbnailOverlays);for(var b=N.next();!b.done;b=N.next()){var S=void 0;if((S=b.value)==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.v.computeNavigationEndpoint=function(N){return YwL(N==null?void 0:N.navigationEndpoint)};
_.d0.Object.defineProperties(X_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:N==null?void 0:N.sampledThumbnailColor,vibrantColorPalette:N==null?void 0:N.vibrantColorPalette,darkColorPalette:N==null?void 0:N.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],X_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(gfk),_.y("design:type",Object)],X_.prototype,"ytdThumbnailBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],X_.prototype,"componentBehavior",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],X_.prototype,"watchFeedThumbnail",void 0);_.p([_.U(),_.y("design:type",Number)],X_.prototype,"customThumbnailSize",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],X_.prototype,"hideAria",void 0);_.p([_.U(),_.y("design:type",Object)],X_.prototype,"data",void 0);_.p([_.U({computed:"computeOverlayColor(data)"}),_.y("design:type",Object)],X_.prototype,"overlayColor",void 0);
_.p([_.U({computed:"computeWebModernCollections(data)"}),_.y("design:type",Object)],X_.prototype,"webModernCollections",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],X_.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],X_.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],X_.prototype,"isDoubleStack",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],X_.prototype,"thumbnailSize",void 0);_.p([_.f("data","isDoubleStack","thumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],X_.prototype,"collectionStack",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],X_);
_.X(X_,"ytd-playlist-thumbnail",function(){if(AK9!==void 0)return AK9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return AK9=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var E44;_.qu(_.A(function(N){return _.c("yt-text-view-model",{class:_.KU("ytTextViewModelHost")},_.c(_.mD,{text:function(){return N.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.kg}});var ED=function(){var N=_.z.apply(this,arguments)||this;N.noEndpoints=!1;N.amsterdamPostMvp=_.T("web_amsterdam_post_mvp_playlists");N.badges=[];N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.F(ED,_.z);_.v=ED.prototype;_.v.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.v.getMetadata=function(N){if(!N)return[];var b=[],S=N.shortViewCountText||N.viewCountText;S&&b.push(_.es(S));N.publishedTimeText&&b.push(_.es(N.publishedTimeText));N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&b.push(_.lK(_.es(N.upcomingEventData.upcomingEventText),Number(N.upcomingEventData.startTime)));return b};
_.v.observeDataForBylineSeparator=function(){this.data&&_.K3(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.v.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.xn(this.metadataColor)};
_.v.getSimpleString=function(N){return _.es(N)};
_.v.isBylineHidden=function(N){return this.noByline||!((N==null?0:N.longBylineText)||(N==null?0:N.shortBylineText))};
_.v.isMetadataHidden=function(N){var b;return((b=this.getMetadata(N))==null?void 0:b.length)===0};
_.v.isBylineMetadataSeparatorHidden=function(N){return this.isMetadataHidden(N)||!this.shouldShowVideoInfo};
_.v.isLongByline=function(N,b){return b&&!(N==null||!N.longBylineText)};
_.d0.Object.defineProperties(ED.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var N;return this.amsterdamPostMvp&&!((N=this.data)==null||!N.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
ED.prototype.metadataColorChanged=ED.prototype.metadataColorChanged;ED.prototype.observeDataForBylineSeparator=ED.prototype.observeDataForBylineSeparator;_.p([_.L(_.Gr),_.y("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ED.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],ED.prototype,"noEndpoints",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"isSlimShort",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"radioMeta",void 0);_.p([_.U({selector:_.o7}),_.y("design:type",Object)],ED.prototype,"isGridViewEnabled",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"richMeta",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ED.prototype,"amsterdamPostMvp",void 0);
_.p([_.U(),_.y("design:type",Boolean)],ED.prototype,"noByline",void 0);_.p([_.U({computed:"isLongByline(data, radioMeta)"}),_.y("design:type",Boolean)],ED.prototype,"longByline",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"truncateMetadataLine",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"miniMode",void 0);_.p([_.U(),_.y("design:type",Number)],ED.prototype,"metadataColor",void 0);
_.p([_.U(),_.y("design:type",Array)],ED.prototype,"badges",void 0);_.p([_.U({selector:_.UI,selectorArgs:["data.videoId"]}),_.y("design:type",String)],ED.prototype,"transferState",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"isDownloading",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ED.prototype,"typographyBump",void 0);_.p([_.dq("#metadata-line"),_.y("design:type",HTMLElement)],ED.prototype,"metadataLine",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ED.prototype,"observeDataForBylineSeparator",null);_.p([_.W4("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ED.prototype,"metadataColorChanged",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ED.prototype,"shouldShowVideoInfo",null);
_.p([_.f("badges"),_.y("design:type",String),_.y("design:paramtypes",[])],ED.prototype,"inlineBadgeClass",null);_.p([_.f("longByline"),_.y("design:type",String),_.y("design:paramtypes",[])],ED.prototype,"longBylineClass",null);_.p([_.f("data","longByline"),_.y("design:type",Object),_.y("design:paramtypes",[])],ED.prototype,"bylineText",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ED.prototype,"hasAttributedBylineText",null);
_.p([_.f("isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ED.prototype,"watchFeedBigThumbs",null);_.p([_.Uj({is:"ytd-video-meta-block",disableElementRegistration:!0})],ED);
_.X(ED,"ytd-video-meta-block",function(){if(E44!==void 0)return E44;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return E44=N},{mode:_.sZ("kevlar_poly_si_batch_j080")?1:2});_.lo("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var pW=function(){var N=_.z.apply(this,arguments)||this;N.displayItemCount=2;N.isBackstagePlaylist=!1;N.isPostCompactPlaylist=!1;N.shouldShowChannelThumbnail=!1;return N};
_.F(pW,_.z);_.v=pW.prototype;_.v.computeFirstVideos=function(N,b){return N===void 0||b===void 0?[]:N.slice(0,b)};
_.v.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var N=this.data.thumbnailRenderer;N.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",N.playlistVideoThumbnailRenderer.thumbnail);N.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",N.playlistCustomThumbnailRenderer.thumbnail)}};
_.v.computeThumbnailHeight=function(N,b,S,P,H){return P?H==="BIG"?280:H==="MASSIVE"?337:234:S?240:b?72:N?118:138};
_.v.computeThumbnailWidth=function(N,b,S,P,H){return P?H==="MEDIUM"?450:H==="BIG"?500:H==="MASSIVE"?600:420:S?360:b?128:N?210:246};
_.v.computeUseBiggerThumbs=function(N){return N&&_.T("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelThumbnail=function(N,b){return N&&!(b==null||!b.channelThumbnail)};
_.d0.Object.defineProperties(pW.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
pW.prototype.dataChanged=pW.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],pW.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pW.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],pW.prototype,"displayItemCount",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pW.prototype,"isBackstagePlaylist",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pW.prototype,"isPostCompactPlaylist",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pW.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.y("design:type",Boolean)],pW.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],pW.prototype,"biggerThumbsStyle",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],pW.prototype,"isDownloads",void 0);_.p([_.U({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.y("design:type",Object)],pW.prototype,"shouldShowChannelThumbnail",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pW.prototype,"dataChanged",null);
_.p([_.f("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],pW.prototype,"stackThumbnailSize",null);_.p([_.Uj({is:"ytd-playlist-renderer",disableElementRegistration:!0})],pW);
_.X(pW,"ytd-playlist-renderer",function(){if(Mub===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);Mub=N}N=Mub;return N},{mode:1});var p9E;var YT9;var Yt=function(){var N=_.z.apply(this,arguments)||this;N.startX=0;return N};
_.F(Yt,_.z);Yt.prototype.onEndpointMouseDown=function(N){this.startX=N.clientX};
Yt.prototype.onEndpointClick=function(N){this.startX!==N.clientX&&(N.preventDefault(),N.stopPropagation())};
Yt.prototype.computeObjectFit=function(N){return N==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||N==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||N==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Yt.prototype.computeCardStyle=function(N){return N?N.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.d0.Object.defineProperties(Yt.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.searchRefinementCardRendererStyle)==null?void 0:b.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Yt.prototype,"data",void 0);_.p([_.U({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",Number)],Yt.prototype,"objectFit",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.y("design:type",String)],Yt.prototype,"cardStyle",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],Yt.prototype,"roundContainer",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Yt.prototype,"isAlbumCard",null);_.p([_.f("data","isAlbumCard"),_.y("design:type",Object),_.y("design:paramtypes",[])],Yt.prototype,"collectionStack",null);_.p([_.Uj({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Yt);
_.X(Yt,"ytd-search-refinement-card-renderer",function(){if(YT9!==void 0)return YT9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return YT9=N},{mode:1});var yKb;var yT=function(){var N=_.z.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.F(yT,_.z);_.p([_.U(),_.y("design:type",Object)],yT.prototype,"data",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],yT.prototype,"componentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],yT.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yT.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],yT.prototype,"miniMode",void 0);
_.p([_.Uj({is:"ytd-game-details-renderer",disableElementRegistration:!0})],yT);
_.X(yT,"ytd-game-details-renderer",function(){if(yKb!==void 0)return yKb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yKb=N},{mode:1});var I09;var DKz;var ID=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return N};
_.F(ID,_.z);_.v=ID.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(N){var b=N||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(S){return S.stateId===b.currentStateId})||null:null};
_.v.currentStateRendererData=function(N){return(N=this.currentStateData(N))&&N.state&&N.state.buttonRenderer?N.state.buttonRenderer:null};
_.v.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.v.computeButtonIcon=function(N){N=this.currentStateRendererData(N);var b;return(N==null?0:(b=N.icon)==null?0:b.iconType)?N.icon.iconType.toLowerCase():null};
_.v.computeAccessibility=function(N){return(N=this.currentStateRendererData(N))&&N.accessibilityData?N.accessibilityData.accessibilityData||null:null};
_.v.computeButtonClass=function(N){var b=this.currentStateRendererData(N);if(!b)return"";N="";var S=b.style;S&&(N+=S.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(N+=b.toLowerCase().replace(/_/g,"-")+" ");return N.trim()};
_.v.computeServiceEndpoint=function(N){if(!N)return null;var b=N&&N.serviceEndpoint,S=this.get("command.commandMetadata.webCommandMetadata.sendPost",N);return b?b:S&&N.command?N.command:null};
_.v.computeBellMenuItemParams=function(N){var b;N=(b=_.t(N==null?void 0:N.command,_.vN))==null?void 0:b.commands;if(!N||N.length===0)return null;b=_.t(N[0],_.VD);var S,P;return(b==null?0:(S=b.popup)==null?0:(P=S.menuPopupRenderer)==null?0:P.items)?b.popup.menuPopupRenderer.items.map(function(H){return H.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(N){var b=N.trackingParams,S=this.computeBellMenuItemParams(this.data);this.data&&b&&S&&S.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(N.icon.iconType.toLowerCase())};
_.v.onYtServiceRequestCompleted=function(N,b){(N=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",N)};
_.v.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.v.resetState=function(){this.set("data.currentStateId",3)};
_.v.onYtButtonTapHandler=function(){if(this.data){var N=this.currentStateRendererData(this.data);N&&this.ytRendererBehavior.logExplicitClick(N)}};
ID.prototype.onYtServiceRequestError=ID.prototype.onYtServiceRequestError;ID.prototype.onYtServiceRequestCompleted=ID.prototype.onYtServiceRequestCompleted;ID.prototype.stateChanged=ID.prototype.stateChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ID.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ID.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(qZ.YtRenderButtonBehavior),_.y("design:type",Object)],ID.prototype,"ytRenderButtonBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ID.prototype,"data",void 0);_.p([_.t_("data","data.currentStateId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ID.prototype,"stateChanged",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],ID.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ID.prototype,"onYtServiceRequestError",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],ID);
_.X(ID,"ytd-subscription-notification-toggle-button-renderer",function(){if(DKz!==void 0)return DKz;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return DKz=N},{mode:1});var Vu4;var Du=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};N.tapHandler=function(){if(N.data){var b=N.currentStateRendererData();b&&N.ytRendererBehavior.logExplicitClick(b)}};
return N};
_.F(Du,_.z);_.v=Du.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(){var N=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===N.data.currentStateId})||null:null};
_.v.currentStateRendererData=function(){var N=this.currentStateData();return N&&N.state&&N.state.buttonRenderer?N.state.buttonRenderer:null};
_.v.computeAccessibilityLabel=function(){var N,b,S;return(N=this.currentStateRendererData())==null?void 0:(b=N.accessibilityData)==null?void 0:(S=b.accessibilityData)==null?void 0:S.label};
_.v.computeBellMenuItemParams=function(){var N,b,S=(b=_.t((N=this.data)==null?void 0:N.command,_.vN))==null?void 0:b.commands;if(!S||S.length===0)return null;N=_.t(S[0],_.VD);var P,H;return(N==null?0:(P=N.popup)==null?0:(H=P.menuPopupRenderer)==null?0:H.items)?N.popup.menuPopupRenderer.items.map(function(K){return K.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(N){var b=N.trackingParams,S=this.computeBellMenuItemParams();if(this.data&&b&&S&&S.includes(b)&&(N==null||!N.isDisabled)){var P;((P=_.t(N.serviceEndpoint,_.CA))==null?void 0:P.signal)!=="CLIENT_SIGNAL"&&(this.icon=N.icon.iconType)}};
_.v.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.v.onYtServiceRequestCompleted=function(N,b){if(N=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",N)};
_.v.onYtServiceRequestError=function(){this.icon=void 0};
_.d0.Object.defineProperties(Du.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=this.data,b=this.textLabel,S=this.hostElement,P=this.computeAccessibilityLabel(),H=this.tapHandler,K=this.isOverlay?"overlay":"mono",C=(N==null?0:N.disableButton)?"disabled":"active";b=b?_.xH(b):void 0;return{style:K,type:"tonal",state:C,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:n_u(N,H,S),accessibilityLabel:P}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var N=this.currentStateRendererData(),b,S,P=(S=this.icon)!=null?S:N==null?void 0:(b=N.icon)==null?void 0:b.iconType;if(P)return _.C7(P)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.secondaryIcon)==null?void 0:b.iconType;if(S)return _.C7(S)}}});
Du.prototype.onYtServiceRequestError=Du.prototype.onYtServiceRequestError;Du.prototype.onYtServiceRequestCompleted=Du.prototype.onYtServiceRequestCompleted;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Du.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Du.prototype,"textLabel",void 0);
_.p([_.U(),_.y("design:type",String)],Du.prototype,"icon",void 0);_.p([_.U(),_.y("design:type",Boolean)],Du.prototype,"isOverlay",void 0);_.p([_.f("data.*","textLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],Du.prototype,"computedButtonShape",null);_.p([_.f("data.*","icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Du.prototype,"computedIcon",null);_.p([_.f("computedIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Du.prototype,"computedAnimateIcon",null);
_.p([_.f("data.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],Du.prototype,"computedSecondaryIcon",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],Du.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Du.prototype,"onYtServiceRequestError",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Du);
_.X(Du,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Vu4!==void 0)return Vu4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Vu4=N},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var g4z;_.qu(g_N,"yt-animated-action",{props:{backgroundLottieRef:_.kg,foregroundLottieRef:_.kg,wrapperClass:_.kg,disableAnimation:_.kg},unsafeExternallySettableAttributes:new Set(["key"])});var VT=function(){var N=_.z.apply(this,arguments)||this;N.animatedActionEnabled=_.T("web_animated_actions");N.foregroundLottieRef={};N.backgroundLottieRef={};N.forceIconOnly=!1;N.showTextWhileAnimating=!1;N.keyboardFocused=!1;N.isAnimating=!1;N.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return N};
_.F(VT,_.z);_.v=VT.prototype;_.v.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.v.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onYtServiceRequestSent=function(N,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)};
_.v.onYtServiceRequestCompleted=function(N,b){(N=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=N)};
_.v.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.rq(this.hostElement)};
_.v.onPlayerSubscribe=function(N){this.isCompactRed()||N!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.v.onPlayerUnsubscribe=function(N){this.isCompactRed()||N!==this.data.channelId||this.updateSubscriptionState(!1)};
_.v.handleUpdateSubscribeButtonAction=function(N){N=_.t(N,Xuz);var b;N&&N.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!N.subscribed)};
_.v.computeButtonStyle=function(N){return this.get("style.styleType",N)||null};
_.v.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.v.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.v.updateSubscriptionState=function(N){if(N!==this.subscribed){this.set("data.subscribed",N);var b,S=(b=this.data)==null?void 0:b.subscribedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.t5("subscriptionStateEntity",S,{key:S,subscribed:N}));this.isCompactRed()||_.bC(this.hostElement,"yt-subscription-changed",N);N||(_.St(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!N),N&&this.hasBellButton&&this.startAnimation())}};
_.v.startAnimation=function(){var N=this;if(!this.isAnimating){var b=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var S;(S=this.backgroundLottieRef.lottieEl)==null||S.goToAndPlay(0);var P;(P=this.foregroundLottieRef.lottieEl)==null||P.goToAndPlay(0);_.Dj.addJob(function(){N.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Dj.addJob(function(){N.updateContainerToFitContent(!!N.subscribed,!0)},2,1500);
_.Dj.addJob(function(){N.isAnimating=!1},2,b)}};
_.v.maybeAnimateBellIcon=function(){var N=_.sj(this.hostElement).querySelector("yt-animated-icon");if(N){var b;(b=N.animationRef.lottieEl)==null||b.goToAndPlay(0)}};
_.v.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.v.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.v.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var N;this.unsubscribedWidth=(N=this.subscribeButtonShape)==null?void 0:N.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.v.updateContainerToFitContent=function(N,b){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(N?(N=this.subscribedWidth,b=this.isAnimating&&!b,this.subscribedIconOnlyWidth===void 0||b||(N=this.subscribedIconOnlyWidth),this.hostElement.style.width=N+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.v.clearContainerSize=function(){this.hostElement.style.width=""};
_.v.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.v.maybeSetSubscribedButtonIconOnlyWidth=function(){var N=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var b;N.subscribedIconOnlyWidth=(b=N.bellButton)==null?void 0:b.getBoundingClientRect().width;requestAnimationFrame(function(){if(N.bellButton){var S;N.bellButton.textLabel=
(S=N.data)==null?void 0:S.subscribedButtonText}})})))};
_.d0.Object.defineProperties(VT.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var N;return(N=this.data)==null?void 0:N.subscribedButtonText}var b;return this.forceIconOnly?void 0:(b=this.data)==null?void 0:b.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var N,b,S=((N=this.data)==null?void 0:(b=N.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"subscribe",timings:S,enabled:S.length>0&&!this.subscribed,experimentEnabled:S.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!this.subscribed&&((N=this.data)==null?void 0:N.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var b=N.renderer;var S=N.element;var P=N.subscribed;var H=N.commandController;var K=N.isOverlay;N=N.stopPropagation;var C=TNU(b,P);K&&(C.style="overlay");K=Object;var G=K.assign,a;a:switch((a=b.style)==null?void 0:a.styleType){case "COMPACT_GRAY":case "COMPACT_RED":a={size:"S"};break a;default:a={size:"M"}}var R=kGf(b,
P);var n=(n=P?b.subscribedButtonText:b.unsubscribedButtonText)?_.xH(n):void 0;return G.call(K,{},C,a,{focused:!1,toggled:P,accessibilityLabel:R,formattedButtonText:n,onTap:mss(b,P,S,H,N)})}}}});
VT.prototype.onMouseDown=VT.prototype.onMouseDown;VT.prototype.onDataChanged=VT.prototype.onDataChanged;VT.prototype.observedSubscribed=VT.prototype.observedSubscribed;VT.prototype.onYtServiceRequestCompleted=VT.prototype.onYtServiceRequestCompleted;VT.prototype.onYtServiceRequestSent=VT.prototype.onYtServiceRequestSent;VT.prototype.maybeUpdateBellButtonText=VT.prototype.maybeUpdateBellButtonText;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],VT.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VT.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.subscribedEntityKey"],selector:XHe}),_.y("design:type",Object)],VT.prototype,"subscriptionStateEntity",void 0);_.p([_.U({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.y("design:type",Boolean)],VT.prototype,"subscribed",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],VT.prototype,"branded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],VT.prototype,"animatedActionEnabled",void 0);
_.p([_.U(),_.y("design:type",Object)],VT.prototype,"foregroundLottieRef",void 0);_.p([_.U(),_.y("design:type",Object)],VT.prototype,"backgroundLottieRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],VT.prototype,"overlayButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.y("design:type",Object)],VT.prototype,"buttonStyle",void 0);_.p([_.U(),_.y("design:type",Object)],VT.prototype,"forceIconOnly",void 0);
_.p([_.U(),_.y("design:type",Object)],VT.prototype,"showTextWhileAnimating",void 0);_.p([_.U({value:function(){return!!_.aN().resolve(_.cq(_.QJ))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],VT.prototype,"useKeyboardFocused",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],VT.prototype,"keyboardFocused",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],VT.prototype,"isAnimating",void 0);_.p([_.f("data.notificationPreferenceButton.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"hasBellButton",null);
_.p([_.W4("subscribedButtonText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"maybeUpdateBellButtonText",null);_.p([_.f("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"subscribedButtonText",null);_.p([_.f("data.timedAnimationData.animationTiming","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"smartimationSettings",null);
_.p([_.U({reflectToAttribute:!0}),_.f("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"subscribeButtonHidden",null);_.p([_.U({reflectToAttribute:!0}),_.f("subscribed","hasBellButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"subscribeButtonInvisible",null);
_.p([_.U({reflectToAttribute:!0}),_.f("subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"unsubscribeButtonHidden",null);_.p([_.dq("ytd-subscription-notification-toggle-button-renderer-next"),_.y("design:type",Object)],VT.prototype,"bellButton",void 0);_.p([_.dq("#subscribe-button-shape"),_.y("design:type",HTMLElement)],VT.prototype,"subscribeButtonShape",void 0);
_.p([_.f("overlayButton","subscribed","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],VT.prototype,"buttonShape",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],VT.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],VT.prototype,"onYtServiceRequestCompleted",null);
_.p([_.W4("subscribed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"observedSubscribed",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VT.prototype,"onDataChanged",null);_.p([_.RA("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VT.prototype,"onMouseDown",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],VT);
_.X(VT,"ytd-subscribe-button-renderer",function(){if(g4z!==void 0)return g4z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return g4z=N},{mode:1});var g4=function(){var N=_.z.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.F(g4,_.z);g4.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],g4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],g4.prototype,"isRichGrid",void 0);_.p([_.Uj({is:"ytd-game-card-renderer",disableElementRegistration:!0})],g4);
_.X(g4,"ytd-game-card-renderer",function(){if(I09!==void 0)return I09;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return I09=N},{mode:1});var eE={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.T("defer_menus")&&!FXZ?0:void 0,waitForSignal:"eocs"};var e_d;var $KZ;var $t=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return N};
_.F($t,_.z);_.v=$t.prototype;_.v.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.v.onSeriesReminderStateEntityChange=function(){var N,b,S;((N=this.eventReminderStateEntity)==null?0:N.key)&&((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.t5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.v.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.v.onYtServiceRequestError=function(){var N;this.updateReminderStateEntitiesFromButtonState((N=this.data)==null?void 0:N.currentState)};
_.v.handleUpdateUpcomingEventReminderButtonStateCommand=function(N){if(N=_.t(N,ARO)){var b,S=(b=this.data)==null?void 0:b.targetId;S&&N.targetId===S&&_.p3(this.updateReminderStateEntitiesFromButtonState.bind(this,N.state))}};
_.v.getButtonStateFromReminderState=function(){var N;if(((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var b;if(((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var S,P;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((P=this.eventReminderStateEntity)==
null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var H;return(H=this.data)==null?void 0:H.currentState};
_.v.updateReminderStateEntitiesFromButtonState=function(N){if(N){switch(N){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":N="UPCOMING_EVENT_REMINDER_STATE_NONE";var b="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":N="UPCOMING_EVENT_REMINDER_STATE_SINGLE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":N="UPCOMING_EVENT_REMINDER_STATE_NONE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var S;
((S=this.eventReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.t5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:N})));var P;((P=this.seriesReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.t5("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:b})))}};
_.d0.Object.defineProperties($t.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var N=this.getButtonStateFromReminderState(),b,S;if(N&&((b=this.data)==null?0:(S=b.states)==null?0:S.length))for(b=_.O(this.data.states),S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;if(((P=_.t(S,XcO))==null?void 0:P.state)===N)return _.t(S,XcO)}}}});
$t.prototype.onYtServiceRequestError=$t.prototype.onYtServiceRequestError;$t.prototype.onYtServiceRequestCompleted=$t.prototype.onYtServiceRequestCompleted;$t.prototype.onSeriesReminderStateEntityChange=$t.prototype.onSeriesReminderStateEntityChange;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],$t.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],$t.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$t.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:pHI}),_.y("design:type",Object)],$t.prototype,"eventReminderStateEntity",void 0);
_.p([_.U({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(N,b){return _.GL(N.entities,"sportsSeriesReminderStateEntity",b)}}),
_.y("design:type",Object)],$t.prototype,"seriesReminderStateEntity",void 0);_.p([_.f("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],$t.prototype,"currentButtonStateRenderer",null);_.p([_.W4("seriesReminderStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$t.prototype,"onSeriesReminderStateEntityChange",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$t.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$t.prototype,"onYtServiceRequestError",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],$t);
_.X($t,"ytd-upcoming-event-reminder-button-renderer",function(){if($KZ!==void 0)return $KZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return $KZ=N},{mode:1});var h_E;var hJ=function(){return _.z.apply(this,arguments)||this};
_.F(hJ,_.z);hJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.d0.Object.defineProperties(hJ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.T("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],hJ.prototype,"shelfDismissal",void 0);_.p([_.f("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],hJ.prototype,"text",null);
_.p([_.f("data.responseText"),_.y("design:type",Object),_.y("design:paramtypes",[])],hJ.prototype,"textAriaLabel",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],hJ);
_.X(hJ,"ytd-notification-multi-action-renderer",function(){if(h_E!==void 0)return h_E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return h_E=N},{mode:1});var qTc;var qh=function(){return _.z.apply(this,arguments)||this};
_.F(qh,_.z);qh.prototype.ready=function(){var N=this;_.H4(this.hostElement).querySelector("#undo").addEventListener("tap",function(){N.onUndoTap()})};
qh.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qh.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],qh);
_.X(qh,"ytd-notification-text-renderer",function(){if(qTc!==void 0)return qTc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qTc=N},{mode:1});var w9z;var w4=function(){var N=_.z.apply(this,arguments)||this;N.mouseOverDelayJobId=0;N.fadeInImageDelayJobId=0;N.startTimeMs=-1;N.loadingStartTimeMs=-1;N.loadingEndTimeMs=-1;N.hasVideoPreview=!1;return N};
_.F(w4,_.z);_.v=w4.prototype;_.v.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.v.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.showThumbnail=function(){var N=this;this.csn=_.Qh();_.Q3("fmth");_.Dj.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.PX(_.Dj,function(){N.loadingStartTimeMs=(0,_.nh)();var b=_.H4(N.hostElement).querySelector("#thumbnail");b.complete?N.displayMouseOverImage():b.addEventListener("load",_.aA(N,N.displayMouseOverImage))},150):_.K3(_.H4(this.hostElement).querySelector("#play"),"show",!0)};
_.v.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.v.onTap=function(){this.removeVideoPreview()};
_.v.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var N=this.videoId,b=this.csn,S=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,P=this.startTimeMs,H=this.hasVideoPreview,K=_.FA(this.trackingParams),C={isMovingThumbnail:H};H&&P>0&&(S>0&&(C.movingThumbnailLoadingDurationMs=Math.round(S)),C.durationHoveredMs=Math.round((0,_.nh)()-P));N&&(C.videoId=N);_.Im(b,K,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:C});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.v.removeVideoPreview=function(){_.Dj.cancelJob(this.mouseOverDelayJobId);_.Dj.cancelJob(this.fadeInImageDelayJobId);var N=_.H4(this.hostElement).querySelector("#thumbnail");_.K3(N,"fade-in",!1);N.removeEventListener("load",_.aA(this,this.displayMouseOverImage));N=_.H4(this.hostElement).querySelector("#play");_.K3(N,"fade-in",!1);_.K3(N,"show",!1)};
_.v.displayMouseOverImage=function(){var N=_.H4(this.hostElement).querySelector("#thumbnail"),b=_.H4(this.hostElement).querySelector("#play");this.isImageAvailable(N)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.nh)(),this.startTimeMs=(0,_.nh)(),this.fadeInImageDelayJobId=_.PX(_.Dj,function(){_.K3(N,"fade-in",!0)},50)):_.K3(b,"fade-in",!0)};
_.v.computeThumbnail=function(N,b){var S;N&&N.movingThumbnailDetails&&N.movingThumbnailDetails.thumbnails&&b?S=_.wG(N.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):S=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(S)return _.VK(S)};
_.v.isImageAvailable=function(N){return!(!N.src||N.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||N.naturalWidth===120)};
w4.prototype.onTap=w4.prototype.onTap;w4.prototype.dataChanged=w4.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],w4.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],w4.prototype,"csn",void 0);_.p([_.U(),_.y("design:type",Object)],w4.prototype,"trackingParams",void 0);
_.p([_.U(),_.y("design:type",String)],w4.prototype,"videoId",void 0);_.p([_.U(),_.y("design:type",Boolean)],w4.prototype,"isAttachedAndDataSet",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w4.prototype,"dataChanged",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],w4.prototype,"onTap",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],w4);
_.X(w4,"ytd-moving-thumbnail-renderer",function(){if(w9z!==void 0)return w9z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return w9z=N},{mode:1});var NWN;_.CS=function(N){this.hostElement=N;this.eventSink=null;this.eventList=[]};
_.CS.prototype.shouldForward=function(){var N,b;return(b=(N=this.eventSink)==null?void 0:N.isConnected)!=null?b:document.body.contains(this.eventSink)};
_.CS.prototype.start=function(N,b){this.eventSink&&this.stop();for(var S=0;S<N.length;S++)this.hostElement.addEventListener(N[S],_.aA(this,this.forwardEvent));var P;this.eventSink=(P=b.hostElement)!=null?P:b;this.eventList=N};
_.CS.prototype.stop=function(){for(var N=0;N<this.eventList.length;N++)this.hostElement.removeEventListener(this.eventList[N],_.aA(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.CS.prototype.forwardEvent=function(N,b){this.shouldForward()&&(N.stopPropagation(),this.eventSink instanceof Element?_.bC(this.eventSink,N.type,b):_.$h(new _.jU("eventSink is not an element")))};_.Nq={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.CS(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(N,b){this.forwarder_.start(N,b)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var bu=function(){return _.z.apply(this,arguments)||this};
_.F(bu,_.z);_.v=bu.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Vg("HTML_DIR")==="rtl"?"right":"left"};
_.v.dataChanged=function(){this.popupOpen=!1};
_.v.computeAriaLabel=function(N){return _.t(N,sjc).label};
_.v.onTap=function(N){N.stopPropagation();N.preventDefault();this.data.command&&_.aN().resolve(_.Wq).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
bu.prototype.onPopupClosed=bu.prototype.onPopupClosed;bu.prototype.onPopupOpened=bu.prototype.onPopupOpened;bu.prototype.onTap=bu.prototype.onTap;bu.prototype.dataChanged=bu.prototype.dataChanged;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],bu.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.qP),_.y("design:type",Object)],bu.prototype,"ironButtonState",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],bu.prototype,"componentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],bu.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:-1}),_.y("design:type",Number)],bu.prototype,"tabindex",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.y("design:type",Object)],bu.prototype,"ariaLabel",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],bu.prototype,"disableTooltips",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],bu.prototype,"popupOpen",void 0);
_.p([_.U(),_.y("design:type",Element)],bu.prototype,"eventSink",void 0);_.p([_.dq("#tooltip"),_.y("design:type",Object)],bu.prototype,"tooltip",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bu.prototype,"dataChanged",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],bu.prototype,"onTap",null);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bu.prototype,"onPopupOpened",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bu.prototype,"onPopupClosed",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],bu);
_.X(bu,"ytd-thumbnail-overlay-button-renderer",function(){if(NWN!==void 0)return NWN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return NWN=N},{mode:1});var brO;var SJ=function(){return _.z.apply(this,arguments)||this};
_.F(SJ,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],SJ.prototype,"disableAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],SJ.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],SJ.prototype,"transparentBackground",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],SJ.prototype,"noPadding",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],SJ);
_.X(SJ,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(brO!==void 0)return brO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return brO=N},{mode:1});var S3l;var P2=function(){return _.z.apply(this,arguments)||this};
_.F(P2,_.z);P2.prototype.computeIconPosition=function(N){return this.get("iconPosition",N)||null};
P2.prototype.computeIconStyle=function(N){return this.get("iconStyle",N)||null};
P2.prototype.computeIsIconStyleFilled=function(N){if(!N)return!1;var b;return N.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=N.icon)==null?void 0:b.iconType)==="ERROR_BLACK"};
_.p([_.U(),_.y("design:type",Object)],P2.prototype,"data",void 0);_.p([_.U({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.y("design:type",Object)],P2.prototype,"iconPosition",void 0);_.p([_.U({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.y("design:type",Object)],P2.prototype,"iconStyle",void 0);_.p([_.U({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],P2.prototype,"iconStyleFilled",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],P2);
_.X(P2,"ytd-thumbnail-overlay-icon-renderer",function(){if(S3l!==void 0)return S3l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return S3l=N},{mode:1});var PXd;var H2=function(){return _.z.apply(this,arguments)||this};
_.F(H2,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],H2.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],H2);
_.X(H2,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(PXd!==void 0)return PXd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PXd=N},{mode:1});var Hrz;var s$=function(){var N=_.z.apply(this,arguments)||this;N.isPreviewLoading=!1;return N};
_.F(s$,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],s$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],s$.prototype,"isPreviewLoading",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],s$);
_.X(s$,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Hrz!==void 0)return Hrz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Hrz=N},{mode:1});var sW4;var KH=function(){return _.z.apply(this,arguments)||this};
_.F(KH,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KH.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],KH);
_.X(KH,"ytd-thumbnail-overlay-pinking-renderer",function(){if(sW4!==void 0)return sW4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sW4=N},{mode:1});var KCl;var v2=function(){var N=_.z.apply(this,arguments)||this;N.disableTooltips=!1;N.isLoading=!1;N.useExpandableTooltip=!1;N.toggled=!1;N.hovered=!1;N.mouseoverDelayJobId=0;N.toggleDelayJobId=0;N.expandAnimationDelayJobId=0;return N};
_.F(v2,_.z);_.v=v2.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.H4(this.hostElement).querySelector("#tooltip").position=_.Vg("HTML_DIR")==="rtl"?"right":"left"};
_.v.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Dj.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Dj.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Dj.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.v.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Dj.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Dj.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Dj.cancelJob(this.expandAnimationDelayJobId)};
_.v.computeIcon=function(N,b,S){return(N=S?b:N)&&N.iconType?_.C7(N.iconType):void 0};
_.v.computeAriaLabel=function(N,b,S){return _.t(S?b:N,sjc).label};
_.v.computeTooltip=function(N,b,S){return S?b:N};
_.v.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.v.computeIconOnHover=function(N,b){if((N==null?0:N.iconType)&&!b)return _.C7(N.iconType)};
_.v.onTap=function(N){var b=this;N.stopPropagation();N.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(N=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(N),this.useExpandableTooltip&&(this.toggleDelayJobId=_.PX(_.Dj,function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=_.PX(_.Dj,function(){b.set("data.isToggled",
!1)},200))},2E3))};
_.v.onMouseenter=function(){var N=this;this.mouseoverDelayJobId=_.PX(_.Dj,function(){N.hovered=!0},300)};
_.v.onMouseleave=function(){_.Dj.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.v.onServiceRequestCompleted=function(N,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)};
_.v.serviceRequestWasSuccessful=function(N){return _.t(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.vC)?N.data.status==="STATUS_SUCCEEDED":!0};
v2.prototype.onServiceRequestCompleted=v2.prototype.onServiceRequestCompleted;v2.prototype.onPopupClosed=v2.prototype.onPopupClosed;v2.prototype.onPopupOpened=v2.prototype.onPopupOpened;v2.prototype.onMouseleave=v2.prototype.onMouseleave;v2.prototype.dataChanged=v2.prototype.dataChanged;_.p([_.L(_.qP),_.y("design:type",Object)],v2.prototype,"ironButtonState",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],v2.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],v2.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],v2.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.y("design:type",Object)],v2.prototype,"ariaLabel",void 0);_.p([_.U(),_.y("design:type",Object)],v2.prototype,"disableTooltips",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],v2.prototype,"popupOpen",void 0);_.p([_.U(),_.y("design:type",Object)],v2.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Element)],v2.prototype,"eventSink",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v2.prototype,"useExpandableTooltip",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.y("design:type",Object)],v2.prototype,"toggled",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v2.prototype,"hovered",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.y("design:type",Object)],v2.prototype,"iconOnHover",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v2.prototype,"dataChanged",null);
_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v2.prototype,"onMouseleave",null);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v2.prototype,"onPopupOpened",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],v2.prototype,"onPopupClosed",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],v2.prototype,"onServiceRequestCompleted",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],v2);
_.X(v2,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(KCl!==void 0)return KCl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KCl=N},{mode:_.sZ("kevlar_poly_si_batch_j053")?1:2});var vCc;var OrE=_.A(function(N){var b=N.data;var S=N.thumbnailSize;var P=function(){return b().enableSegmentView};
return _.c("yt-thumbnail-overlay-progress-bar-view-model",{class:_.KU("ytThumbnailOverlayProgressBarHost",function(){return ti9(S==null?void 0:S())})},_.c(_.W,{cond:P,
then:function(){return _.c("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.c("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+b().startPercent+"%"}}),_.c("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+b().segmentDurationPercent+"%"}},_.c("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.c("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.c("div",null," ",function(){return b().segmentLabel})),_.c("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.c("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.c(_.W,{cond:function(){return!P()&&b().startPercent},
then:function(){var H={};return _.c("div",{class:_.ff("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(H.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.T("web_enable_modern_progress_bar_overlay"),H))},_.c("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))},"Fa");
OrE.idomCompat=!0;_.CXN=_.A(function(N){var b=_.rx(),S=_.nU(function(H){var K,C,G;a:{var a=(K=N.data())==null?void 0:K.animationActivationTargetId;K=((C=N.data())==null?void 0:C.animationActivationEntityKey)||"";C=(G=N.data())==null?void 0:G.animationActivationEntitySelectorType;if(K&&a)switch(C){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":H=_.vX(H,K);G=_.aN().resolve(_.cq(_.E_));a=!!(H&&H.videoId===a&&(G==null?0:G.isMiniplayerActive()));a={activated:a,playAnimation:a&&H.playerState==="PLAYER_STATE_PLAYING"};
break a}a=void 0}return a});
_.gA(function(){var H;if((H=S())==null?0:H.activated){var K;if((K=S())==null?0:K.playAnimation){var C;(C=b.lottieEl)==null||C.goToAndPlay(0)}else{var G;(G=b.lottieEl)==null||G.goToAndStop(0)}}},"DbQiXd");
var P=function(){var H,K=!((H=S())==null||!H.activated);if(N.data()){H=N.data();var C=void 0;H.icon&&(C=_.I6s(H.icon),C=Nge(C));var G=void 0,a;if((a=H.backgroundColor)==null?0:a.lightTheme){var R;G={backgroundColor:i1((R=H.backgroundColor)==null?void 0:R.lightTheme,"0.8")}}if(H.text||C||K){if(K&&H.lottieData&&b){R=H.lottieData;var n,d,m;a={animationConfig:{name:R.url,path:R.url,autoplay:(n=R.settings)==null?void 0:n.autoplay,loop:(m=(d=R.settings)==null?void 0:d.loop)!=null?m:!0},animationRef:b}}else a=
void 0;if(K)n=17;else b:switch(H.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":n=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":n=19;break b;default:n=17}K={type:n,text:K&&H.animatedText?H.animatedText:H.text,icon:C,customColors:G,animation:a}}else K=void 0}else K=void 0;return K};
return _.c("yt-thumbnail-badge-view-model",{class:_.KU("ytThumbnailBadgeViewModelHost",N.class)},_.c(_.W,{cond:P,then:function(){return _.c(_.Wn,{data:function(){return P()}})}}))},"Ha");var Gcb=_.A(function(N){var b={},S={};return _.c("yt-thumbnail-bottom-overlay-view-model",{class:_.KU("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return N.data().enableGradientBackground},b))},_.c(_.kY,{data:function(){return N.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(P){return _.c(OrE,{data:P.data,
thumbnailSize:N.thumbnailSize})}}),_.c("div",{class:_.KU("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var P;
return MiL((P=N.thumbnailSize)==null?void 0:P.call(N))},(S.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var P;
return(P=N.isClip)==null?void 0:P.call(N)},S.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var P;
return!_.T("web_enable_modern_progress_bar_overlay")&&((P=N.thumbnailSize)==null?void 0:P.call(N))==="small"},S))},_.c(_.kY,{data:function(){return N.data().badge}},{thumbnailBadgeViewModel:function(P){return _.c(_.CXN,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.c(_.kY,{data:function(){return N.data().badges}},{thumbnailBadgeViewModel:function(P){return _.c(_.CXN,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
Gcb.idomCompat=!0;_.qu(Gcb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.er,thumbnailSize:_.er,isClip:_.er}});var O$=_.A(function(N){var b=N.data;var S=N.className;N=N.alwaysShow;var P=_.l$p(),H={};return _.c("thumbnail-hover-overlay-view-model",{el:_.VN(_.iK(function(){return b().rendererContext})),
class:_.KU("ytThumbnailHoverOverlayViewModelHost",S,(H.ytThumbnailHoverOverlayViewModelHostForceHover=N,H)),"aria-label":function(){var K;return(K=_.t(b().rendererContext,_.Mv))==null?void 0:K.label},
role:function(){return _.xY(b().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.xY(b().rendererContext)!==void 0?0:void 0},
"on:keypress":P},_.c("div",{class:_.KU("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var K="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:K="ytThumbnailHoverOverlayViewModelStyleCover"}return K})},_.c(_.W,{cond:function(){return b().icon},
then:function(K){return _.c(_.gG,{data:K,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.c(_.W,{cond:function(){return b().text},
then:function(K){return _.c(_.mD,{text:K,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
O$.idomCompat=!0;var ro9=_.A(function(N){var b=N.data;return _.c(_.kY,{data:function(){return b==null?void 0:b().overlays}},{thumbnailHoverOverlayViewModel:O$})},"La");
ro9.idomCompat=!0;var cok={};var aeN=_.A(function(N){var b=N.data;var S=N.image;var P=N.state;var H=N.iconType;var K=N.overlays;var C=N.isOverlay;var G=_.GQ("div");N=_.O(_.QF(!0,void 0,"AA4e7b"));var a=N.next().value,R=N.next().value,n=function(){return!!b().onTap},d=_.$q(H,"LIVE");
_.gA(function(){var k=b();requestAnimationFrame(function(){if(G.value===null)var M=!0;else{var l=G.value;M=k.badgeText;var u=JQ_(k.size);M in cok?l=cok[M]:(l=l.clientWidth,cok[M]=l);(M=l>u)?G.value.style.display="none":G.value.style.visibility="visible"}R(M)})},"vNdN8b");
var m=function(){var k={};return k["yt-spec-avatar-shape__image"]=!0,k["yt-spec-avatar-shape__image--ads-app"]=b().type===1,k["yt-spec-avatar-shape__image--inscribed-square"]=b().type===2,k};
return _.c("yt-avatar-shape",null,_.c("div",{el:_.VN(Z0e(n,{keydown:function(k){if(k.key==="Enter"){var M;(M=k.currentTarget)==null||M.click()}},
click:function(k){var M,l;return void((l=(M=b()).onTap)==null?void 0:l.call(M,k))}})),
class:function(){var k={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},M=b();k=(k[M.clusterLayoutConfig?AQb(M.clusterLayoutConfig):XBe(M.size)]=!0,k["yt-spec-avatar-shape__button--tappable"]=n(),k);(M=b().avatarButtonCustomClassName)&&(k[M]=!0);return _.ff(k)},
"aria-label":function(){return n()?b().accessibilityText:""},
role:function(){return n()?"button":void 0},
tabindex:function(){return n()?0:void 0}},_.c("div",{class:function(){var k,M=b(),l=P==null?void 0:P(),u=C==null?void 0:C(),J=!((k=M.decorations)==null||!k.includes(2)||M.size!=="medium"&&M.size!=="large"),Z=M.size==="tiny"||M.size==="extra-small",D,Y,V,g,e={};
k=(e["yt-spec-avatar-shape--live-ring"]=!!(((D=M.decorations)==null?0:D.includes(0))&&pBY(M.size)),e["yt-spec-avatar-shape--stories-watched"]=J&&!(l==null||!l.storiesWatched),e["yt-spec-avatar-shape--stories-unwatched"]=J&&!(l==null?0:l.storiesWatched),e["yt-spec-avatar-shape--background-border"]=YCe(M.decorations)&&!Z,e["yt-spec-avatar-shape--background-border-thin"]=YCe(M.decorations)&&Z,e["yt-spec-avatar-shape__on-select-border"]=!((Y=M.decorations)==null||!Y.includes(4)),e["yt-spec-avatar-shape__white-border"]=
!((V=M.decorations)==null||!V.includes(5)),e["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((g=M.decorations)==null?0:g.includes(5))&&Z),e["yt-spec-avatar-shape--is-overlay"]=!!u,e);return _.ff(k)},
style:function(){a:{var k=b().clusterLayoutConfig;if(k){b:{var M=k.numAvatarsInCluster;var l=k.avatarIndex;if(l!==M-1){switch(k.clusterSize){case "small":k="32";break;case "medium":k="36";break;case "40":k="40";break;default:M=void 0;break b}M="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+k+"x"+k+"_avatars_"+M+"_index_"+l+".svg"}else M=void 0}if(M){M=_.r5({"-webkit-mask-image":"url("+M+")","mask-image":"url("+M+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}M=void 0}return M}},_.c("div",{class:function(){var k={};
var M=b();k=(k[M.clusterLayoutConfig?jzs(M.clusterLayoutConfig):zna(M.size)]=!0,k["yt-spec-avatar-shape--no-margin"]=YCe(b().decorations),k["yt-spec-avatar-shape--square"]=b().type===2,k);return _.ff(k)}},_.c(_.gG,{data:S,
alt:function(){return!n()&&b().accessibilityText?b().accessibilityText:""},
targetWidth:function(){return E_p(b().size)},
targetHeight:function(){return E_p(b().size)},
className:function(){return _.ff(m())}}),_.c(_.W,{cond:function(){var k;
return((k=b().decorations)==null?void 0:k.includes(0))&&pBY(b().size)},
then:function(){return _.c("div",{class:function(){var k={};k=(k["yt-spec-avatar-shape__live-badge"]=!0,k["yt-spec-avatar-shape__live-badge--badge-small"]=b().size==="small",k["yt-spec-avatar-shape__live-badge--badge-medium"]=b().size==="medium"||b().size==="48",k["yt-spec-avatar-shape__live-badge--badge-large"]=b().size==="large",k["yt-spec-avatar-shape__live-badge--badge-extra-large"]=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",k);return _.ff(k)}},_.c(_.W,{cond:function(){return b().badgeText},
then:function(k){return _.c("div",{class:"yt-spec-avatar-shape__badge-text",el:G},k)}}),_.c(_.W,{cond:a,
then:function(){return _.c("div",{class:"yt-spec-avatar-shape__badge-icon"},_.c(_.cX,{icon:d,size:function(){a:switch(b().size){case "extra-large":var k=16;break a;default:k=13}return k}}))}}))}}),_.c(_.W,{cond:function(){var k,M;
return((k=b().decorations)==null?void 0:k.includes(1))||((M=b().decorations)==null?void 0:M.includes(0))&&!pBY(b().size)},
then:function(){return _.c("div",{class:function(){var k=b(),M,l,u={};var J=(u["yt-spec-avatar-shape__live-dot"]=!((M=k.decorations)==null||!M.includes(0)||pBY(k.size)),u["yt-spec-avatar-shape__new-content"]=!((l=k.decorations)==null||!l.includes(1)),u);return _.ff(J)}})}}),_.c(_.W,{cond:function(){return!!K},
then:function(){return _.c("div",{class:function(){var k={};k=Object.assign((k["yt-spec-avatar-shape__image-overlays"]=!0,k),m());return _.ff(k)}},K==null?void 0:K())}})))))},"Oa");
aeN.idomCompat={callbacks:{overlays:!0}};_.CH=_.A(function(N){function b(){S().endpoint&&_.AM(S().endpoint)}
var S=N.data;var P=N.decorations;var H=N.avatarButtonCustomClassName;var K=N.isOverlay;var C=N.clusterLayoutConfig;return _.c("avatar-view-model",null,_.c(_.W,{cond:function(){return S().image},
then:function(G){return _.c(aeN,{data:function(){return I$e({data:S(),onTap:S().endpoint?b:void 0,decorations:P==null?void 0:P(),badgeText:void 0,accessibilityText:S().accessibilityText,avatarButtonCustomClassName:H==null?void 0:H(),clusterLayoutConfig:C==null?void 0:C()})},
image:G,iconType:"RADAR_LIVE",overlays:function(){return _.c(ro9,{data:S})},
isOverlay:K})}}))},"Pa");
_.CH.idomCompat=!0;_.Gg=_.A(function(N){var b=N.data;N=N.className;var S=_.GQ("yt-decorated-avatar-view-model"),P=function(){return _.t(b().avatar,_.UW)},H=_.UB(function(){var K,C=b(),G=P(),a=_.xY(b().rendererContext),R=(K=S.value)!=null?K:void 0,n;
if(G){R={data:C,avatar:G,onTap:a,element:R};K=R.data;C=R.avatar;G=R.onTap;a=R.element;R=R.commandController;G=G?enb(G,a,R):void 0;a=[];K.liveData&&a.push(0);var d;R=(d=K.liveData)==null?void 0:d.liveBadgeText;d=(n=_.t(K.rendererContext,_.Mv))==null?void 0:n.label;n=I$e({data:C,onTap:G,decorations:a,badgeText:R,accessibilityText:d?d:K.a11yLabel})}else n={size:"medium"};return n},void 0,"c00kWd");
return _.c("yt-decorated-avatar-view-model",{class:_.KU("ytDecoratedAvatarViewModelHost",N),el:S},_.c(_.W,{cond:function(){var K;return(K=P())==null?void 0:K.image},
then:function(K){return _.c(aeN,{data:H,image:K,iconType:"RADAR_LIVE",overlays:function(){return _.c(ro9,{data:P})}})}}))},"Qa");
_.Gg.idomCompat=!0;_.rZ=_.A(function(N){var b=function(){var G;return Object.assign({},N.data(),(G=N.overrides)==null?void 0:G.call(N))},S=function(){return _.o2(b().rendererContext)},P=function(){var G=b().avatars,a,R;
return(R=(a=(G==null?0:G[0])?_.t(G[0],_.UW):void 0)==null?void 0:a.avatarImageSize)!=null?R:"AVATAR_SIZE_UNKNOWN"},H=function(){return g_f(b())},K=function(){if(b().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var G=void 0;
else if((G=N.decorations)==null?0:G.call(N))G=N.decorations();else{G=b();var a=0;G.avatars&&(a+=G.avatars.length);G.decoratedText&&(a+=1);G=a>1?[3]:[]}return G},C={};
return _.c("yt-avatar-stack-view-model",{el:_.VN(_.iK(function(){return b().rendererContext})),
class:_.KU("yt-avatar-stack-view-model",N.className,(C["yt-avatar-stack-view-model--tappable"]=S,C["yt-avatar-stack-view-model--is-overlay"]=N.isOverlay,C["yt-avatar-stack-view-model--medium-text"]=N.useMediumText,C)),tabindex:function(){return S()?0:void 0},
role:function(){return S()?"link":void 0},
"aria-label":function(){var G,a;return(a=(G=_.t(b().rendererContext,_.Mv))==null?void 0:G.label)!=null?a:""}},_.c(_.W,{cond:function(){var G;
return b().avatars&&!((G=N.hideAvatar)==null?0:G.call(N))},
then:function(){return _.c("div",{class:"yt-avatar-stack-view-model__avatars"},_.c(_.W,{cond:function(){return b().decoratedText},
then:function(G){var a={};return _.c("div",{class:_.KU("yt-avatar-stack-view-model__text-container",(a["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return P()==="AVATAR_SIZE_XXS"||P()==="AVATAR_SIZE_XS"},a["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var R;
return((R=N.isOverlay)==null?void 0:R.call(N))&&(P()==="AVATAR_SIZE_XXS"||P()==="AVATAR_SIZE_XS")},a)),
style:_.r5({width:function(){return H().avatarSizeInPx+"px"},
height:function(){return H().avatarSizeInPx+"px"}})},_.c(_.mD,{text:G,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.c("div",{style:function(){return _.r5(H().avatarStackStyle)()},
class:function(){return H().avatarStackClass}},_.c(_.kY,{data:function(){return H().avatars.reverse()}},{avatarViewModel:function(G,a){return _.c("div",{style:function(){var R,n;
return _.r5((n=(R=H()).avatarStyle)==null?void 0:n.call(R,a()))()},
class:function(){return H().avatarClass}},_.c(_.CH,{data:G.data,
decorations:K,avatarButtonCustomClassName:function(){return H().avatarButtonCustomClassName},
isOverlay:N.isOverlay,clusterLayoutConfig:function(){var R,n;return(n=(R=H()).clusterLayoutConfig)==null?void 0:n.call(R,a())}}))},
decoratedAvatarViewModel:function(G,a){return _.c("div",{style:function(){var R,n;return _.r5((n=(R=H()).avatarStyle)==null?void 0:n.call(R,a()))()},
class:function(){return H().avatarClass}},_.c(_.Gg,{data:G.data}))}})))}}),_.c(_.W,{cond:function(){return b().text},
then:function(G){return _.c(_.mD,{text:G,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.rZ.idomCompat=!0;_.qu(_.A(function(N){var b=N.data;var S=N.thumbnailSize;return _.c("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.c("div",{class:_.KU("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return $sU(S==null?void 0:S())})},_.c(_.kY,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(P){return _.c(_.rZ,{data:P.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.kg,
thumbnailSize:_.kg}});var RX9=_.A(function(N){N=_.h_(N,{hidden:!1});var b=N.data;N=N.hidden;return _.c("yt-thumbnail-overlay-title-view-model",{class:_.KU("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var S="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:S="ytThumbnailOverlayTitleViewModelPositionTop"}return S}),
hidden:N},_.c(_.W,{cond:function(){return b().leadingContent},
then:function(S){return _.c("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.c(_.kY,{data:S},{decoratedAvatarViewModel:_.Gg}))}}),_.c("div",null,_.c(_.mD,{text:function(){return b().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(){return _.c(_.mD,{text:function(){return b().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
RX9.idomCompat=!0;_.qu(RX9,"yt-thumbnail-overlay-title-view-model",{props:{data:_.kg,hidden:_.kg}});_.WCl=_.A(function(N){N=_.h_(N,{isClip:!1});var b=N.data,S=N.thumbnailSize,P={};return _.c("yt-thumbnail-overlay-badge-view-model",{class:_.KU("yt-thumbnail-overlay-badge-view-model",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var H="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:H="yt-thumbnail-overlay-badge-view-model--bottom-end"}return H},function(){return hnp(S==null?void 0:S())},(P["yt-thumbnail-overlay-badge-view-model--clip"]=N.isClip,
P))},_.c(_.kY,{data:function(){return b().thumbnailBadges}},{thumbnailBadgeViewModel:function(H){return _.c(_.CXN,{data:H.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.WCl.idomCompat=!0;_.qu(_.WCl,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.kg,thumbnailSize:_.kg,isClip:_.kg}});var nCd=_.A(function(N){var b=N.data;N=N.hidden;var S=_.UB(function(){return b().indicatorCount||0},void 0,"AbKnMc"),P={};
return _.c("yt-page-indicator-view-model",{class:_.KU("ytPageIndicatorViewModelHost",(P.ytPageIndicatorViewModelIndicatorHidden=function(){return!b().indicatorCount},P)),
hidden:N},_.c(_.zj,{each:function(){return Array(S())}},function(H,K){var C={};
return _.c("div",{class:_.KU("ytPageIndicatorViewModelIndicator",(C.ytPageIndicatorViewModelIndicatorSelected=function(){return b().selectedIndex===K()},C))})}))},"Va");
nCd.idomCompat=!0;_.qu(nCd,"yt-page-indicator-view-model",{props:{data:_.kg,hidden:_.kg}});var c2=function(){var N=_.z.apply(this,arguments)||this;N.eventSink=function(){return N};
N.disableInteraction=!1;N.noRoundedCorners=!1;N.isPreviewLoading=!1;N.isOriginalAspectRatio=!1;N.computedObjectFit=!1;N.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return N};
_.F(c2,_.z);_.v=c2.prototype;
_.v.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.T("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.v.onImageLoaded=function(){this.loaded=!0};
_.v.onImageUnloaded=function(){this.loaded=!1};
_.v.computeRichThumbnail=function(N,b,S,P){if(N&&b&&!P&&!_.T("disable_moving_thumbs_handling")&&!S)return b};
_.v.computeImageWidth=function(N,b){return b||9999};
_.v.computeIsOriginalAspectRatio=function(N){return N};
_.v.computeIsLive=function(N){if(N==null?0:N.badges)for(var b=0;b<N.badges.length;b++){var S=N.badges[b];if(S.metadataBadgeRenderer&&S.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(N==null?0:N.thumbnailOverlays)for(b=0;b<N.thumbnailOverlays.length;b++)if(S=N.thumbnailOverlays[b],S.thumbnailOverlayTimeStatusRenderer&&S.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.v.computeObjectFit=function(N,b){return b||(N?"CONTAIN":"")};
_.v.computeNavigationEndpoint=function(N,b,S){return N?b:S};
_.v.computeHasClip=function(N){N=_.O(N||[]);for(var b=N.next();!b.done;b=N.next())if(b.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.v.computeOverlayColor=function(N){var b;return(N==null?0:(b=N.darkColorPalette)==null?0:b.section2Color)?N.darkColorPalette.section2Color:N==null?void 0:N.sampledThumbnailColor};
_.d0.Object.defineProperties(c2.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.MQe(this.width)}}});
c2.prototype.onImageUnloaded=c2.prototype.onImageUnloaded;c2.prototype.onImageLoaded=c2.prototype.onImageLoaded;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],c2.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],c2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(gfk),_.y("design:type",Object)],c2.prototype,"ytdThumbnailBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],c2.prototype,"componentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],c2.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],c2.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],c2.prototype,"circular",void 0);
_.p([_.U({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.y("design:type",Object)],c2.prototype,"richThumbnail",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.y("design:type",Boolean)],c2.prototype,"hasClip",void 0);_.p([_.U(),_.y("design:type",Object)],c2.prototype,"eventSink",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],c2.prototype,"queued",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],c2.prototype,"richGridThumbnail",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],c2.prototype,"useExpandableTooltip",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],c2.prototype,"useUntranslatedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c2.prototype,"disableInteraction",void 0);
_.p([_.U({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.y("design:type",Object)],c2.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],c2.prototype,"nowPlayingEqualizerOnly",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],c2.prototype,"hidePlaybackStatus",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],c2.prototype,"objectFit",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c2.prototype,"noRoundedCorners",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],c2.prototype,"watchFeedThumbnail",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c2.prototype,"isPreviewLoading",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.y("design:type",Object)],c2.prototype,"isOriginalAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.y("design:type",Object)],c2.prototype,"computedObjectFit",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.y("design:type",Boolean)],c2.prototype,"isLiveVideo",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],c2.prototype,"loaded",void 0);_.p([_.U({computed:"computeOverlayColor(data.thumbnail)"}),_.y("design:type",Object)],c2.prototype,"overlayColor",void 0);_.p([_.U(),_.y("design:type",Boolean)],c2.prototype,"minimizePipBreakages",void 0);_.p([_.U({selector:_.ptO}),_.y("design:type",Boolean)],c2.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U(),_.y("design:type",Number)],c2.prototype,"width",void 0);
_.p([_.f("inlinePreviewIsEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],c2.prototype,"isPreviewDisabled",null);_.p([_.f("width"),_.y("design:type",String),_.y("design:paramtypes",[])],c2.prototype,"thumbnailSize",null);_.p([_.RA("image-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c2.prototype,"onImageLoaded",null);
_.p([_.RA("image-unloaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c2.prototype,"onImageUnloaded",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-thumbnail"})],c2);
var dAN=_.H7()(c2,"ytd-thumbnail",function(){if(vCc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);vCc=N}N=vCc;return N},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var Nso=function(N){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15270_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15270_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(S){mAc(b,S)};
this.onLockupMouseLeaveFn=function(S){S=S.relatedTarget;var P,H;((P=document.getElementsByTagName("ytd-video-preview"))==null?0:(H=P.item(0))==null?0:H.contains(S))||(b.terminateVideoPreview(),a8(b))};
this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();a8(b)};
this.onTouchStart=function(){b.JSC$15270_touched=!0};
this.mediaRenderer=N.mediaRenderer;this.thumbnailElement=N.thumbnailElement;this.lockupElement=N.lockupElement;this.videoPreviewOptsInput=N.videoPreviewOpts;kcN(this);R8(this)?this.thumbnailElement?this.lockupElement?(this.lockupElement.addEventListener("mouseenter",this.onMouseMoveFn),this.lockupElement.addEventListener("mouseleave",this.onLockupMouseLeaveFn),this.lockupElement.addEventListener("touchstart",this.onTouchStart),this.thumbnailElement.addEventListener("mousedown",this.onThumbnailMouseDownFn)):
_.$h(Error("Gh")):_.$h(Error("Hh")):TWZ(this)},qv=function(N){TWZ(N);
var b;(b=N.lockupElement)==null||b.removeEventListener("mouseenter",N.onMouseMoveFn);var S;(S=N.lockupElement)==null||S.removeEventListener("mouseleave",N.onLockupMouseLeaveFn);var P;(P=N.lockupElement)==null||P.removeEventListener("touchstart",N.onTouchStart);var H;(H=N.thumbnailElement)==null||H.removeEventListener("mousedown",N.onThumbnailMouseDownFn);a8(N)},kcN=function(N){N.inlinePreviewIsEnabledForUser=_.h0().getState().ui.inlinePreviewIsEnabled;
N.unsubscribeFromInlinePreviewIsEnabled=_.hT(_.h0(),_.ptO,function(b){(N.inlinePreviewIsEnabledForUser=b)||a8(N)});
N.JSC$15270_unsubscribeFromInlinePreviewIsActive=_.hT(_.h0(),_.Ego,function(b){(N.inlinePreviewIsActive=b)||a8(N)})},TWZ=function(N){N.unsubscribeFromInlinePreviewIsEnabled();
N.unsubscribeFromInlinePreviewIsEnabled=function(){};
N.JSC$15270_unsubscribeFromInlinePreviewIsActive();N.JSC$15270_unsubscribeFromInlinePreviewIsActive=function(){}},mAc=function(N,b){b.buttons>0||(b=_.d7("kevlar_lockup_hover_delay",-1),N.JSC$15270_touched&&b>=0?(_.Dj.cancelJob(N.videoPreviewJobId),N.videoPreviewJobId=_.PX(_.Dj,function(){tKO(N)},b),N.JSC$15270_touched=!1):tKO(N))},$wu=function(N){N.videoPreviewJobId=_.PX(_.Dj,function(){return _.r(function(b){return b.yield(MKz(N,{isAutoplay:!0}),0)})})},tKO=function(N){!N.previewTriggered&&R8(N)&&
(N.inlinePreviewIsActive&&N.terminateVideoPreview(),N.previewTriggered=!0,N.mediaRenderer.isInlinePreviewTriggered=!0,_.Dj.cancelJob(N.videoPreviewJobId),N.videoPreviewJobId=_.PX(_.Dj,function(){return _.r(function(b){return b.yield(MKz(N),0)})}))},MKz=function(N,b){b=b===void 0?{}:b;
var S=b.isAutoplay===void 0?!1:b.isAutoplay;var P,H,K,C;return _.r(function(G){if(G.nextAddress==1){if(!R8(N))return G.return();P=N.getVideoPreviewOpts();if(!P)return G.return();S&&(P.isAutoplay=!0);return(K=(H=_.PN(N.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&H[0])?G.yield(H[0],3):G.jumpTo(2)}G.nextAddress!=2&&(K=G.yieldResult===1);if(K){var a=(C=N.mediaRenderer)==null?void 0:C.data;a&&(wBY(a)?delete a.inlinePlayerData:"inlinePlaybackEndpoint"in a&&delete a.inlinePlaybackEndpoint)}_.Zd(G)})};
Nso.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var N,b;if((b=(N=this.videoPreviewOptsInput)==null?void 0:N.videoPreviewData)!=null)N=b;else if(N=this.mediaRenderer.data)if(wBY(N))N={inlinePlaybackEndpoint:_.UZ(N.inlinePlayerData.onVisible),navigationEndpoint:_.UZ(N.onTap),thumbnail:"image"in N?N.image:N.thumbnail,thumbnailOverlays:void 0,accessibilityText:qCI(N)};else if("multipleInlinePlaybackEndpoint"in N){var S=_.t(_.t(N.multipleInlinePlaybackEndpoint,t2N),M2c);if(S!=
null&&S.playerDescriptors){b=[];S=_.O(S.playerDescriptors);for(var P=S.next();!P.done;P=S.next())P=P.value,b.push({inlinePlaybackEndpoint:P.inlinePlaybackEndpoint,navigationEndpoint:P.navigationEndpoint,thumbnail:P.thumbnail,thumbnailOverlays:P.thumbnailOverlays,accessibilityText:qCI(N)});N=b}else N=void 0}else N={inlinePlaybackEndpoint:N.inlinePlaybackEndpoint,navigationEndpoint:N.navigationEndpoint,thumbnail:N.thumbnail,thumbnailOverlays:N.thumbnailOverlays,accessibilityText:qCI(N)};else N=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:N,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var R8=function(N){var b;if(b=N.inlinePreviewIsEnabledForUser)b=(N=N.mediaRenderer.data)?"inlinePlaybackEndpoint"in N&&N.inlinePlaybackEndpoint||wBY(N)&&N.inlinePlayerData||"multipleInlinePlaybackEndpoint"in N&&N.multipleInlinePlaybackEndpoint?!0:!1:!1;return b};
Nso.prototype.terminateVideoPreview=function(){_.St(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var a8=function(N){_.Dj.cancelJob(N.videoPreviewJobId);N.inlinePreviewIsActive=!1;N.previewTriggered=!1;N.mediaRenderer.isInlinePreviewTriggered=!1};var FCS=_.$E(["#"]),W2=function(){var N=_.z.apply(this,arguments)||this;N.isDisabled=!1;return N};
_.F(W2,_.z);_.v=W2.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":eE,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.getMetadata=function(N){var b=[];if(N.metadataText&&Object.keys(N.metadataText).length>0){var S=this.ytRendererBehavior.getSimpleString(N.metadataText);N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&(S=_.lK(S,Number(N.upcomingEventData.startTime)));b.push(S)}else N.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(N.shortViewCountText)),N.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(N.publishedTimeText)),N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&
(S=this.ytRendererBehavior.getSimpleString(N.upcomingEventData.upcomingEventText),b.push(_.lK(S,Number(N.upcomingEventData.startTime))));return b};
_.v.calculateBylineText=function(N){return N.shortBylineText?N.shortBylineText:N.bylineText?N.bylineText:null};
_.v.calculateIsDisabled=function(N){return!!N.isDisabled};
_.v.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N)||_.R8U(FCS)};
_.v.onDetailsTap=function(N){var b=this.data&&this.data.navigationEndpoint;b&&!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.T("kevlar_grid_video_renderer_killswitch")?_.bC(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15277_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:_.H4(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.H4(this.hostElement).querySelector("ytd-thumbnail")})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15277_inlinePreviewHoverListener)==null||qv(N)};
_.v.computeThumbnailWidth=function(N,b){return b&&b>0?b:N?360:210};
_.v.computeNumBadgesInRow=function(N){var b;return((b=N.badges)==null?void 0:b.length)||0};
_.v.computeShowChannelThumbnail=function(N,b){var S;return b&&!!(N==null?0:(S=N.channelThumbnailSupportedRenderers)==null?0:S.channelThumbnailWithLinkRenderer)};
_.d0.Object.defineProperties(W2.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15277_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
W2.prototype.dataChanged=W2.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],W2.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],W2.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.kJ),_.y("design:type",Object)],W2.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],W2.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],W2.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],W2.prototype,"noEndpoints",void 0);_.p([_.U({computed:"calculateBylineText(data)"}),_.y("design:type",Object)],W2.prototype,"bylineText",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],W2.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],W2.prototype,"isDownloading",void 0);_.p([_.U({reflectToAttribute:!0,value:0}),_.y("design:type",Number)],W2.prototype,"width",void 0);_.p([_.U({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.y("design:type",Object)],W2.prototype,"isDisabled",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],W2.prototype,"dataChanged",null);_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],W2.prototype,"isHovered",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],W2.prototype,"hasAttributedBylineText",null);
_.p([_.f("bylineText","hasAttributedBylineText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],W2.prototype,"showBylineText",null);_.p([_.Uj({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],W2);
_.X(W2,"ytd-grid-video-renderer",function(){if(e_d!==void 0)return e_d;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return e_d=N},{mode:_.sZ("kevlar_poly_si_batch_j047")?1:2});var BWz;var nH=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.skipRoundingTop=!1;N.disableTopPadding=!1;N.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");N.extractOverlay=!1;return N};
_.F(nH,_.z);nH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
nH.prototype.onClick=function(N){var b,S=(b=this.data)==null?void 0:b.sourceEndpoint;!_.VC(_.V7(N),this.hostElement,["A".toString()])&&S&&_.bC(this.hostElement,"yt-navigate",{endpoint:S})};
_.d0.Object.defineProperties(nH.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.data)==null?void 0:N.paragraphMaxLines)!=null?b:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nH.prototype,"showVerticalDividers",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nH.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nH.prototype,"skipRoundingTop",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nH.prototype,"disableTopPadding",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],nH.prototype,"amsterdamEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nH.prototype,"extractOverlay",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],nH.prototype,"showMetadataAtTop",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],nH.prototype,"showMetadataBelowTitle",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],nH.prototype,"hasMenu",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.truncateParagraphs"),_.y("design:type",Object),_.y("design:paramtypes",[])],nH.prototype,"truncateParagraphs",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.paragraphMaxLines"),_.y("design:type",Number),_.y("design:paramtypes",[])],nH.prototype,"paragraphMaxLines",null);
_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],nH.prototype,"background",null);_.p([_.Uj({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],nH);
_.X(nH,"ytd-info-panel-content-renderer",function(){if(BWz!==void 0)return BWz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return BWz=N},{mode:_.sZ("kevlar_poly_si_batch_j076")?1:2});var lec;var LCd;var fe4;var uq9;var dZ=function(){return _.z.apply(this,arguments)||this};
_.F(dZ,_.z);dZ.prototype.computeStyle=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dZ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],dZ.prototype,"style_",void 0);_.p([_.J_({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],dZ);
_.X(dZ,"yt-channel-thumbnail-with-link-renderer",function(){if(uq9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;fe4===void 0&&(fe4=document.createElement("template"));var P=fe4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);uq9=N}N=uq9;return N},{mode:2});var mM=function(){return _.z.apply(this,arguments)||this};
_.F(mM,_.z);mM.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mM.prototype.computeTitleStyle=function(N){return N||null};
mM.prototype.computeAvatarStyle=function(N){return N||null};
mM.prototype.computeShowNavigationButton=function(N,b){return!(N==null||!N.navigationButton||b)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.y("design:type",String)],mM.prototype,"titleStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.y("design:type",String)],mM.prototype,"avatarStyle",void 0);_.p([_.U(),_.y("design:type",Boolean)],mM.prototype,"hideNavigationButton",void 0);_.p([_.Uj({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],mM);
_.X(mM,"ytd-rich-list-header-renderer",function(){if(LCd!==void 0)return LCd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return LCd=N},{mode:_.sZ("kevlar_poly_si_batch_j058")?1:2});var k3=function(){return _.z.apply(this,arguments)||this};
_.F(k3,_.z);k3.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k3.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],k3.prototype,"isSearch",void 0);_.p([_.Uj({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],k3);
_.X(k3,"ytd-preview-card-renderer",function(){if(lec!==void 0)return lec;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return lec=N},{mode:1});var QWO;var Tg=function(){return _.z.apply(this,arguments)||this};
_.F(Tg,_.z);Tg.prototype.configureRendererStamper=function(){return{"data.menu":eE}};
Tg.prototype.dataChanged=function(){var N=this.get("colorExtractionPalette.section1Color",this.data);N=_.xn(N);_.rq(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":N})};
Tg.prototype.computeCardStyle=function(N){return this.get("style.value",N)||null};
Tg.prototype.dataChanged=Tg.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],Tg.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tg.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.y("design:type",String)],Tg.prototype,"cardStyle",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tg.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Tg);
_.X(Tg,"ytd-compact-channel-recommendation-card-renderer",function(){if(QWO!==void 0)return QWO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QWO=N},{mode:1});var xAV;var oCZ;var tr=function(){var N=_.z.apply(this,arguments)||this;N.alignAuto=!1;N.collapsed=!0;N.isToggled=!1;N.alwaysCollapsed=!1;N.canToggle=!0;N.collapsedHeight=80;N.disableToggle=!1;N.alwaysToggleable=!1;N.reversed=!1;N.shouldUseNumberOfLines=!1;N.recomputeOnResize=!1;N.canToggleJobId=0;N.lastReversed=!1;return N};
_.F(tr,_.z);_.v=tr.prototype;_.v.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.v.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.v.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var N=_.H4(this.hostElement),b=N.childNodes,S=document.createDocumentFragment(),P=N.childNodes.length-1;P>=0;P--)_.H4(S).appendChild(b[P]);_.T("enable_shadydom_free_scoped_node_methods")?_.sj(this.hostElement).appendChild(S):N.appendChild(S)}};
_.v.ready=function(){var N=this;_.p3(function(){N.initChildrenObserver()},1)};
_.v.attached=function(){var N;(N=this.resizeObserver)==null||N.observe(this.content)};
_.v.detached=function(){this.detachObserver()};
_.v.toggle=function(N,b){this.canToggle&&(this.isToggled=b,_.bC(this.hostElement,"yt-refit"),N&&N.stopPropagation())};
_.v.reset=function(){this.childrenChanged()};
_.v.onIronResize=function(){this.recomputeOnResize&&!_.T("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.v.computeIsMoreVisible=function(N,b){return N&&!b};
_.v.computeShouldUseNumberOfLines=function(N){try{return!!N&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1};
_.v.computeIsLessVisible=function(N,b){return N&&b};
_.v.observeCollapsedHeightAndMaxLines=function(){var N=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.rq(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):_.rq(this.hostElement,{"--ytd-expander-collapsed-height":N+"px","--ytd-expander-max-lines":""})};
_.v.handleMoreTap=function(N){this.disableToggle||(_.bC(this.hostElement,"yt-expander-more-tapped"),this.toggle(N,!0))};
_.v.handleLessTap=function(N){_.bC(this.hostElement,"yt-expander-less-tapped");this.toggle(N,!1)};
_.v.initChildrenObserver=function(){var N=this;this.observer=new MutationObserver(function(){N.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.T("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.GR(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var b;(b=N.resizeThrottle)==null||b.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.v.childrenChanged=function(){var N=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Sa(function(){N.canToggleJobId=0;N.calculateCanCollapse()})}))};
_.v.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.v.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.v.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("collapsed-changed",this.collapsed))};
_.v.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("is-toggled-changed",this.isToggled))};
_.v.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("can-toggle-changed",this.canToggle))};
_.d0.Object.defineProperties(tr.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
tr.prototype.canToggleChangedForBinding=tr.prototype.canToggleChangedForBinding;tr.prototype.isToggledChangedForBinding=tr.prototype.isToggledChangedForBinding;tr.prototype.collapsedChangedForBinding=tr.prototype.collapsedChangedForBinding;tr.prototype.observeCollapsedHeightAndMaxLines=tr.prototype.observeCollapsedHeightAndMaxLines;tr.prototype.onIronResize=tr.prototype.onIronResize;tr.prototype.reversedChanged=tr.prototype.reversedChanged;tr.prototype.toggledChanged=tr.prototype.toggledChanged;
tr.prototype.alwaysToggleableChanged=tr.prototype.alwaysToggleableChanged;_.p([_.L(_.$M),_.y("design:type",Object)],tr.prototype,"ironResizableBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tr.prototype,"alignAuto",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tr.prototype,"collapsed",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"isToggled",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"alwaysCollapsed",void 0);
_.p([_.U(),_.y("design:type",Object)],tr.prototype,"canToggle",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"collapsedHeight",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"disableToggle",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"alwaysToggleable",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"reversed",void 0);_.p([_.U(),_.y("design:type",Number)],tr.prototype,"maxNumberOfLines",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.y("design:type",Object)],tr.prototype,"shouldUseNumberOfLines",void 0);_.p([_.U(),_.y("design:type",Object)],tr.prototype,"recomputeOnResize",void 0);_.p([_.dq("#content"),_.y("design:type",HTMLDivElement)],tr.prototype,"content",void 0);_.p([_.t_("alwaysToggleable"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"alwaysToggleableChanged",null);
_.p([_.t_("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"toggledChanged",null);_.p([_.f("canToggleJobId"),_.y("design:type",Object),_.y("design:paramtypes",[])],tr.prototype,"isResetting",null);_.p([_.W4("reversed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"reversedChanged",null);
_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"onIronResize",null);_.p([_.W4("maxNumberOfLines","collapsedHeight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"observeCollapsedHeightAndMaxLines",null);_.p([_.W4("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"collapsedChangedForBinding",null);
_.p([_.W4("isToggled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"isToggledChangedForBinding",null);_.p([_.W4("canToggle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tr.prototype,"canToggleChangedForBinding",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-expander"})],tr);
_.X(tr,"ytd-expander",function(){if(oCZ!==void 0)return oCZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return oCZ=N},{mode:1});var Mq=function(){return _.z.apply(this,arguments)||this};
_.F(Mq,_.z);Mq.prototype.computeIsCarousel=function(N){return!!N.isCarousel};
Mq.prototype.observeLightsourcePalette=function(){var N,b=(N=this.data)==null?void 0:N.vibrantsourceColorPaletteData;b&&_.FM(this.hostElement,b)};
Mq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Mq.prototype.observeLightsourcePalette=Mq.prototype.observeLightsourcePalette;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mq.prototype,"data",void 0);_.p([_.U({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Mq.prototype,"isCarousel",void 0);
_.p([_.W4("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mq.prototype,"observeLightsourcePalette",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Mq);
_.X(Mq,"ytd-media-upsell-renderer",function(){if(xAV!==void 0)return xAV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xAV=N},{mode:2});var ir9;var Fl=function(){var N=_.z.apply(this,arguments)||this;N.JSC$15304_playerEvents=new Map;N.listeningToPlayer=!1;N.startX=0;N.active=!1;N.shouldShowButtons=_.T("web_buttons_hidden_killswitch");N.isHighlighted=!1;N.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");N.enableProblemWalkthrough=_.T("problem_walkthrough_sd");return N};
_.F(Fl,_.z);_.v=Fl.prototype;
_.v.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.v.created=function(){this.JSC$15304_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.aA(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.aA(this,this.onActiveUpdate))};
_.v.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.aA(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.aA(this,this.onActiveUpdate))};
_.v.onDataChanged=function(){this.removePlayerListeners()};
_.v.onColorPaletteChange=function(){var N={},b;if(_.As()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var S=this.data.darkColorPalette;N["--ytd-macro-markers-list-item-background-color"]=_.o3(this.get("section2Color",S))}else{var P;_.As()==="USER_INTERFACE_THEME_LIGHT"&&((P=this.data)==null?0:P.lightColorPalette)&&(S=this.data.lightColorPalette,N["--ytd-macro-markers-list-item-background-color"]=_.o3(this.get("section3Color",S)))}S?(N["--ytd-macro-markers-list-item-title-color"]=
_.o3(this.get("primaryTitleColor",S)),N["--ytd-macro-markers-list-item-secondary-color"]=_.o3(this.get("secondaryTitleColor",S)),N["--ytd-macro-markers-list-item-timestamp-background-color"]=_.o3(this.get("section1Color",S)),this.customButtonProperties={customColors:{color:_.o3(this.get("primaryTitleColor",S))}},this.useColorSampling=!0):(N["--ytd-macro-markers-list-item-background-color"]="initial",N["--ytd-macro-markers-list-item-title-color"]="initial",N["--ytd-macro-markers-list-item-secondary-color"]=
"initial",N["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.rq(this.hostElement,N)};
_.v.onEndpointMouseDown=function(N){this.startX=N.clientX};
_.v.onEndpointClick=function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1){if(b.startX!==N.clientX)return N.preventDefault(),K.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return K.jumpTo(0);if(N.button!==0||N.shiftKey||N.altKey||N.metaKey||N.ctrlKey||_.VC(_.V7(N),b.hostElement,["BUTTON".toString()]))return K.return();N.stopPropagation();N.preventDefault();return b.data?K.yield(_.w5().getPlayerPromise(),3):K.return()}S=K.yieldResult;
H=(P=_.t(b.data.onTap,_.Iv))==null?void 0:P.startTimeSeconds;H!==void 0&&S.seekToTimeWithAnimation(H*1E3,_.es(b.data.title));_.Zd(K)})};
_.v.computeLayout=function(N){return N};
_.v.computeIsHighlighted=function(N){return!!N};
_.v.computeCarouselType=function(N){return N};
_.v.hideCarousel=function(N){return this.hideThumbnail(N)};
_.v.hideThumbnail=function(N){return this.enableProblemWalkthrough&&N!==null&&N==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.v.onRepeatButtonToggle=function(N){var b=this;N.detail.toggled&&_.w5().getPlayerPromise().then(function(S){b.ytPlayerListenerBehavior.listenToPlayerEvents(S,b.JSC$15304_playerEvents);b.listeningToPlayer=!0})};
_.v.onLoopRangeChange=function(N){var b=_.H4(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var S=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(S){var P=Number(S.endTimeMs);if(Number(S.startTimeMs)!==(N==null?void 0:N.startTimeMs)||P!==(N==null?void 0:N.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.v.removePlayerListeners=function(){var N=this;this.listeningToPlayer&&_.w5().getPlayerPromise().then(function(b){N.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,N.JSC$15304_playerEvents);N.listeningToPlayer=!1})};
_.v.onActiveUpdate=function(N){this.active=N.detail.active};
Fl.prototype.onColorPaletteChange=Fl.prototype.onColorPaletteChange;Fl.prototype.onDataChanged=Fl.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],Fl.prototype,"ytPlayerListenerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Fl.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Fl.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fl.prototype,"shouldShowButtons",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.y("design:type",String)],Fl.prototype,"layout",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.y("design:type",Object)],Fl.prototype,"isHighlighted",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"useHighlightStyling",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fl.prototype,"enableProblemWalkthrough",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.y("design:type",String)],Fl.prototype,"carouselType",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fl.prototype,"useColorSampling",void 0);_.p([_.U(),_.y("design:type",Boolean)],Fl.prototype,"seekWithAnimationOnClick",void 0);_.p([_.U(),_.y("design:type",Object)],Fl.prototype,"customButtonProperties",void 0);
_.p([_.dq("#repeat-button"),_.y("design:type",HTMLElement)],Fl.prototype,"repeatButton",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fl.prototype,"onDataChanged",null);_.p([_.W4("data.lightColorPalette","data.darkColorPalette"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fl.prototype,"onColorPaletteChange",null);
_.p([_.Uj({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Fl);
_.X(Fl,"ytd-macro-markers-list-item-renderer",function(){if(ir9!==void 0)return ir9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ir9=N},{mode:1});var Jol;var UAN;var B2=function(){return _.z.apply(this,arguments)||this};
_.F(B2,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],B2.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],B2);
_.X(B2,"ytd-title-and-button-list-header-renderer",function(){if(UAN!==void 0)return UAN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return UAN=N},{mode:1});var Zrc;var jWc=new _.nO("BUTTON_RENDERER_TOKEN");_.lu=_.A(function(N){var b=_.aN().resolve(jWc);return _.c(b,Object.assign({},N,{overrides:N.buttonOverrides}))},"Wa");var zXN=_.A(function(N){var b=N.data,S=_.$q(N.useSquareAspectRatio,!1);return _.c("dismissed-mini-game-card-view-model",null,_.c(_.W,{cond:function(){var P,H;return(P=b().responseText)==null?void 0:(H=P.runs)==null?void 0:H.length},
then:function(){var P={};return _.c("div",{class:_.KU("yt-mini-game-card-view-model__dismissed-card",(P["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!S()},P["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.T("web_game_card_force_2_by_3")},P["yt-mini-game-card-view-model--dismissed-square-card"]=S,P))},_.c("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.c(_.W,{cond:function(){return b().responseText.runs[0].text},
then:function(H){return _.c("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:H},H)}}),_.c(_.kY,{data:function(){return b().buttons}},{buttonRenderer:_.lu,
buttonViewModel:_.j$})))}}))},"Xa");var Ao9=_.A(function(N){var b=N.data;return _.c("br-nz-badge-shape",{class:_.KU(function(){return bpE(b().brNzRatingBadgeType)}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},function(){var S;
return(S=b())==null?void 0:S.text})},"Ya");_.LH=_.A(function(N){var b=function(){var S=N.data(),P,H,K,C,G;if(S){var a=!((P=N.workaroundShortsIsThumbnailBadge)==null||!P.call(N));P=(H=N.modern)==null?void 0:H.call(N);H=(K=N.numBadgesInRow)==null?void 0:K.call(N);K=(C=N.clipTextOverflow)==null?void 0:C.call(N);C=(G=N.inheritTypography)==null?void 0:G.call(N);var R;a:switch(S.badgeStyle){case "BADGE_OVERLAY":G=!0;break a;default:G=!1}S={type:a?17:STI(S.badgeStyle),brNzRatingBadgeType:Phu(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:G,
modern:P||_.T("web_modern_badge_view_model"),accessibilityText:S.accessibilityLabel||((R=_.t(S.rendererContext,_.Mv))==null?void 0:R.label),numBadgesInRow:H,clipTextOverflow:K,shouldInheritTypography:C}}else S=void 0;return S};
return _.c("yt-badge-view-model",{class:_.KU("ytBadgeViewModelHost",N.class)},_.c(_.Al,null,_.c(_.ZH,{when:function(){var S;return!((S=b())==null||!S.brNzRatingBadgeType)}},function(){return _.c(Ao9,{data:function(){return b()}})}),_.c(_.ZH,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return _.c(_.Wn,{data:function(){return b()}})})))},"Za");
_.LH.idomCompat=!0;var VK9=_.A(function(N){N=_.h_(N,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=N.data,S=N.useFullWidth,P=N.isDesktopWeb,H=N.addSearchResultTopMargin,K=function(){return b().layout},C=function(){return b().title},G=function(){return b().metadataText?b().metadataText:b().genre},a=function(){return b().channelName},R=function(){return b().image},n=function(){return b().colorPalette},d=function(){return b().actionButton},m=function(){return b().overflowButton},
k=function(){return b().avatar},M=function(){return b().ageRating},l=function(){var D={};
D=_.KU("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(D["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return P()},D));
return _.c("div",{class:D},_.c(XE4,{imageData:R,colorPalette:n}),_.c(ECE,{onTap:function(){return b().onTap},
imageData:R,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.c(_.W,{cond:function(){return!P()},
then:function(){return _.c(_.nM,null,_.c(pEb,{layout:K,colorPalette:n,isDesktopWeb:P,overflowButton:m,avatar:k,onTap:function(){return b().onTap},
genre:G,title:C,channelName:a}),_.c(Y3b,{actionButton:d}))}}))},u=function(){var D={};
D=_.KU((D["yt-mini-game-card-view-model--search-result-desktop"]=function(){return P()},D["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!P()},D["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return H()},D));
return _.c("div",{class:D},l(),_.c(yo9,{description:function(){return b().description},
isDesktopWeb:P,title:C,genre:G,onTap:function(){return b().onTap},
actionButton:d,overflowButton:m,avatar:k,channelName:a}))},J=function(){var D={};
D=_.KU("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(D["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return P()},D["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return P()&&b().width===135},D["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return P()},D["yt-mini-game-card-view-model--big-metadata-font"]=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},D["yt-mini-game-card-view-model--use-full-width"]=
function(){return S()},D["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.T("web_game_card_force_2_by_3")},D));
return _.c("div",{class:D},_.c(Ied,{colorPalette:n,isDesktopWeb:P,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
actionButton:d,imageData:R}),_.c(pEb,{layout:K,colorPalette:n,isDesktopWeb:P,overflowButton:m,avatar:k,onTap:function(){return b().onTap},
genre:G,title:C,channelName:a}),_.c(_.W,{cond:M,then:function(Y){return _.c(DAl,{ageRating:Y})}}))},Z=function(){var D={};
D=_.KU("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(D["yt-mini-game-card-view-model--square-card-desktop"]=function(){return P()},D["yt-mini-game-card-view-model--use-full-width"]=function(){return S()},D));
return _.c("div",{class:D},_.c(ECE,{onTap:function(){return b().onTap},
imageData:R,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.c(pEb,{layout:K,colorPalette:n,isDesktopWeb:P,overflowButton:m,avatar:k,onTap:function(){return b().onTap},
genre:G,title:C,channelName:a}),_.c(_.W,{cond:M,then:function(Y){return _.c(DAl,{ageRating:Y})}}))};
return _.c("mini-game-card-view-model",{class:N.className},_.c(_.Al,null,_.c(_.ZH,{when:function(){return K()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return J()}),_.c(_.ZH,{when:function(){return K()==="MINI_APP_LAYOUT_SQUARE"}},function(){return Z()}),_.c(_.ZH,{when:function(){return K()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return u()})))},"$a");
VK9.idomCompat=!0;var Y3b=_.A(function(N){var b=_.$q(N.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.c(_.kY,{data:N.actionButton},{buttonViewModel:function(S){return _.c("div",{class:b},_.c(_.j$,{data:S.data}))}})},"ab"),ECE=_.A(function(N){var b=N.onTap;
var S=N.imageData;var P=N.accessibilityText;var H=N.overlayBadgeText;var K=N.iconName;var C=N.unplayableInlinePlaybackIconName;N=N.isDesktopWeb;return _.c(_.xg,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:b},_.c(_.gG,{data:S,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(P==null?void 0:P())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.c(gCV,{overlayBadgeText:H,iconName:K,unplayableInlinePlaybackIconName:C,isDesktopWeb:N}))},"bb"),gCV=_.A(function(N){var b=N.overlayBadgeText;
var S=N.iconName;var P=N.unplayableInlinePlaybackIconName;var H=N.isDesktopWeb;return _.c("div",{class:"yt-mini-game-card-view-model__badge-container"},_.c(_.W,{cond:S,then:function(K){return _.c("div",{class:"yt-mini-game-card-view-model__badge"},_.c("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.c(_.cX,{icon:K,className:"yt-mini-game-card-view-model__icon",size:12}),_.c("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b)))}}),_.c(_.W,{cond:function(){return!S()&&
b()},
then:function(){return _.c("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},b)}}),_.c(_.W,{cond:function(){return P()&&H()},
then:function(){return _.c("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.c(_.cX,{icon:P,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),XE4=_.A(function(N){var b=N.colorPalette;
var S=N.imageData;var P=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor};
return _.c(_.nM,null,_.c("div",{class:"yt-mini-game-card-view-model__background-base",style:_.r5({"background-color":function(){return i1(P(),"1")}})}),_.c("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.r5({"background-image":function(){return"url("+S().sources[0].url+")"}})}),_.c("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.r5({background:function(){return"linear-gradient(180deg,\n    "+i1(P(),".8")+" 0%,\n    "+i1(P(),".4")+" 25%,\n    "+i1(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))},"db"),pEb=_.A(function(N){var b=N.layout;
var S=N.colorPalette;var P=N.overflowButton;var H=N.avatar;var K=N.onTap;var C=N.title;var G=N.channelName;var a=N.genre;var R=function(){var n;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((n=S())==null?0:n.textPrimaryColor)?"color: "+i1(S().textPrimaryColor,".7"):""};
return _.c("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.c(_.W,{cond:H,then:function(){return _.c("div",{class:"yt-mini-game-card-view-model__avatar"},_.c(_.kY,{data:H},{avatarViewModel:_.CH}))}}),_.c(_.xg,{command:K,
className:"yt-mini-game-card-view-model__metadata-details"},_.c("h3",{class:"yt-mini-game-card-view-model__title",title:C},C),_.c(_.W,{cond:H,then:function(){return _.c("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.c("span",{class:"yt-mini-game-card-view-model__genre",title:G,style:R},G),_.c("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:R},a))},
else:function(){return _.c("span",{class:"yt-mini-game-card-view-model__genre",title:a},a)}})),_.c("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.c(_.kY,{data:P},{buttonViewModel:function(n){var d=n.data;
return _.c(_.j$,{data:function(){return Object.assign({},d(),{customFontColor:b()==="MINI_APP_LAYOUT_SINGLETON"?d().customFontColor:void 0})}})}})))},"eb"),Ied=_.A(function(N){var b=N.colorPalette;
var S=N.isDesktopWeb;var P=N.onTap;var H=N.accessibilityText;var K=N.overlayBadgeText;var C=N.iconName;var G=N.unplayableInlinePlaybackIconName;var a=N.actionButton;N=N.imageData;return _.c("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.c(XE4,{imageData:N,colorPalette:b}),_.c(ECE,{onTap:P,imageData:N,accessibilityText:H,overlayBadgeText:K,iconName:C,unplayableInlinePlaybackIconName:G,isDesktopWeb:S}),_.c(_.W,{cond:function(){return a==null?void 0:a()},
then:function(){return _.c(Y3b,{actionButton:a})}}))},"fb"),yo9=_.A(function(N){var b=N.description;
var S=N.isDesktopWeb;var P=N.title;var H=N.genre;var K=N.onTap;var C=N.actionButton;var G=N.overflowButton;var a=N.avatar;N=N.channelName;var R={};R=_.KU("yt-mini-game-card-view-model--search-result-metadata-wrapper",(R["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=S,R["yt-mini-game-card-view-model--show-unplayable-on-hover"]=S,R["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!S()},R));
var n={};n=_.KU("yt-mini-game-card-view-model__search-result-info-row",(n["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!S()},n));
return _.c("div",{class:R},_.c("div",{class:n},_.c(_.xg,{command:K,className:"yt-mini-game-card-view-model__metadata-details"},_.c("h3",{class:"yt-mini-game-card-view-model__title",title:P},P),_.c("span",{class:"yt-mini-game-card-view-model__genre",title:H},H)),_.c(Y3b,{actionButton:C,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.c("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.c(_.kY,{data:G},{buttonViewModel:_.j$}))),_.c("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.c("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.c("div",{class:"yt-mini-game-card-view-model__avatar"},_.c(_.kY,{data:a},{avatarViewModel:function(d){var m=d.data;return _.c(_.CH,{data:function(){return Object.assign({},m(),{avatarImageSize:S()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.c(_.xg,{command:K,
className:"yt-mini-game-card-view-model__description"},_.c("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},N)),_.c(_.xg,{command:K,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.c("div",null)))),_.c(_.W,{cond:S,then:function(){return _.c(_.xg,{command:K,className:"yt-mini-game-card-view-model__description"},b)}}))},"gb"),DAl=_.A(function(N){var b=N.ageRating;
return _.c("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.c(_.gG,{data:function(){return{sources:[{url:b().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.c(_.LH,{data:function(){return{badgeText:b().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.qu(VK9,"mini-game-card-view-model",{props:{data:_.kg,className:_.kg,useFullWidth:_.kg,isDesktopWeb:_.kg,addSearchResultTopMargin:_.kg}});_.qu(zXN,"dismissed-mini-game-card-view-model",{props:{data:_.kg,useSquareAspectRatio:_.kg}});var fH=function(){var N=_.z.apply(this,arguments)||this;N.isSearch=!1;N.isRichGrid=!1;return N};
_.F(fH,_.z);_.v=fH.prototype;_.v.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.v.dismissibleItemOnYtServiceRequestSent=function(N,b){b.actions&&this.dismissibleItemProcessActions(N,b.actions)};
_.v.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.v.dataChanged=function(){this.dismissibleItemReset()};
_.v.dismissibleItemProcessActions=function(N,b){for(var S=0;S<b.length;S++){var P=b[S];_.t(P,_.Y6)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.t(P,_.Y6)),N.stopPropagation())}};
_.v.dismissibleItemHandleReplaceEnclosingAction=function(N){this.dismissedRenderer=N.item;this.isDismissed=!0};
_.d0.Object.defineProperties(fH.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var N;return!!this.data&&!((N=this.dismissedRenderer)==null?0:N.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.dismissedRenderer)==null||!N.notificationMultiActionRenderer)}}});
fH.prototype.dataChanged=fH.prototype.dataChanged;fH.prototype.dismissibleItemOnRequestSent=fH.prototype.dismissibleItemOnRequestSent;fH.prototype.dismissibleItemOnYtServiceRequestSent=fH.prototype.dismissibleItemOnYtServiceRequestSent;_.p([_.U(),_.y("design:type",Object)],fH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fH.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],fH.prototype,"isDismissed",void 0);
_.p([_.U(),_.y("design:type",Object)],fH.prototype,"dismissedRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fH.prototype,"isRichGrid",void 0);_.p([_.f("data.layout"),_.y("design:type",Object),_.y("design:paramtypes",[])],fH.prototype,"useSquareAspectRatio",null);_.p([_.f("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],fH.prototype,"showCard",null);
_.p([_.f("data","dismissedRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],fH.prototype,"showDismissed",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],fH.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],fH.prototype,"dismissibleItemOnRequestSent",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fH.prototype,"dataChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],fH);
_.X(fH,"ytd-mini-game-card-view-model",function(){if(Zrc!==void 0)return Zrc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Zrc=N},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var eXk;var $A9;var uu=function(){return _.mN.apply(this,arguments)||this};
_.F(uu,_.mN);uu.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
uu.prototype.getContinuationUrl=function(N){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Hq(N,b)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uu.prototype,"data",void 0);_.p([_.J_({is:"yt-reload-continuation",noInjection:!0})],uu);var hXd;var q3k;var Qd=function(){var N=_.z.apply(this,arguments)||this;N.notificationData={};return N};
_.F(Qd,_.z);_.v=Qd.prototype;_.v.isMenuExpanded=function(N){return N&&N.length<=1?"undefined":"false"};
_.v.dataChanged_=function(){this.selected=void 0;var N=this.computeSelectedIndex_(this.data);N>=0&&(this.selected=N);N=this.data&&this.data.length>1;_.K3(this.hostElement,"has-items",N);_.H4(this.hostElement).querySelector("#label").tabIndex=N?0:-1};
_.v.onDropdownOpen=function(){var N=_.Qh();if(this.parentTrackingParams&&this.data){var b=_.FA(this.parentTrackingParams);this.data.forEach(function(S){N&&b&&S.trackingParams&&(S=_.FA(S.trackingParams),_.AZ(N,b,S),_.pA(N,[S]))})}else this.parentTrackingParams||_.$h(new _.jU("No parent tracking params passed in for yt-dropdown-menu."))};
_.v.hasNotification=function(N){var b;if(N.targetId&&((b=this.notificationData)==null?0:b.targetId)){var S;return N.targetId===((S=this.notificationData)==null?void 0:S.targetId)}};
_.v.computeSelectedIndex_=function(N){if(N)for(var b=0,S=N.length;b<S;b++)if(N[b].selected)return b;return-1};
_.v.computeLabel_=function(N){return this.data&&N!=void 0?this.data[N].title:""};
_.v.computeShowIcon_=function(N,b){return!b&&!!N};
_.v.computeVerticalOffset_=function(N){return N?36:0};
_.v.computeEndpoint_=function(N){return N.endpoint||N.navigationEndpoint};
_.v.onLabelClick_=function(N){this.data&&this.data.length<=1?N.stopPropagation():this.menuExpanded="true"};
_.v.onIronActivate_=function(N){N=N.detail.item;var b=_.H4(this.hostElement).querySelector("#repeat").itemForElement(N);if(b&&b.trackingParams){var S=_.Qh(),P=_.FA(b.trackingParams);S&&_.y3(S,P)}if(b&&b.serviceEndpoint)_.T("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(b.serviceEndpoint):_.HN(this.hostElement,[b.serviceEndpoint]),_.bC(this.hostElement,"yt-playlist-reloading");else a:{if((b=N.querySelector("yt-supported-renderers"))&&
(b=b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();break a}(N=N.querySelector("yt-reload-continuation"))&&N.trigger()}};
_.v.onTap_=function(N){N.preventDefault()};
_.v.onItemTap_=function(N){this.ytEndpointBehavior.onEndpointTap_(N)};
_.v.onLinkFocus_=function(N){try{var b=N.target}catch(P){}if(b){var S=b.querySelector("tp-yt-paper-item");S&&_.Yq(this,"focus",function(){S.focus()})}};
_.v.onMenuClose_=function(){this.menuExpanded="false"};
_.v.isLabelIconActive_=function(N){return N==="true"};
_.v.computeHasSubtitle_=function(N){return!!N};
_.v.computeHrefForItem_=function(N){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(N))};
_.v.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
_.d0.Object.defineProperties(Qd.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Qd.prototype.onMenuClose_=Qd.prototype.onMenuClose_;Qd.prototype.onTap_=Qd.prototype.onTap_;Qd.prototype.onIronActivate_=Qd.prototype.onIronActivate_;Qd.prototype.onDropdownOpen=Qd.prototype.onDropdownOpen;Qd.prototype.dataChanged_=Qd.prototype.dataChanged_;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],Qd.prototype,"ytEndpointBehavior",void 0);
_.p([_.U(),_.y("design:type",Array)],Qd.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Qd.prototype,"parentTrackingParams",void 0);_.p([_.U(),_.y("design:type",Object)],Qd.prototype,"selected",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Qd.prototype,"useLabel",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Qd.prototype,"useComputedAriaLabel",void 0);_.p([_.U(),_.y("design:type",String)],Qd.prototype,"icon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],Qd.prototype,"iconLabel",void 0);_.p([_.U(),_.y("design:type",String)],Qd.prototype,"ariaLabel",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Qd.prototype,"disabled",void 0);_.p([_.U({computed:"isMenuExpanded(data)"}),_.y("design:type",String)],Qd.prototype,"menuExpanded",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Qd.prototype,"closeOnActivate",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.y("design:type",Boolean)],Qd.prototype,"modernButtons",void 0);_.p([_.U(),_.y("design:type",Object)],Qd.prototype,"notificationData",void 0);_.p([_.f("ariaLabel, selected"),_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],Qd.prototype,"computedAriaLabel",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qd.prototype,"dataChanged_",null);
_.p([_.RA("paper-dropdown-open"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Qd.prototype,"onDropdownOpen",null);_.p([_.RA("iron-activate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Qd.prototype,"onIronActivate_",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Qd.prototype,"onTap_",null);
_.p([_.RA("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Qd.prototype,"onMenuClose_",null);_.p([_.J_({is:"yt-dropdown-menu",disableElementRegistration:!0})],Qd);
_.X(Qd,"yt-dropdown-menu",function(){if(q3k===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;hXd===void 0&&(hXd=document.createElement("template"));var P=hXd;S.call(b,P.content.cloneNode(!0),N.content.firstChild);q3k=N}N=q3k;return N},{mode:2});var x3=function(){var N=_.z.apply(this,arguments)||this;N.hasNotification=!1;return N};
_.F(x3,_.z);x3.prototype.computeId=function(N){return N};
x3.prototype.computeHorizontalAlign=function(N){return N?"right":"left"};
x3.prototype.computeAccessibilityLabel=function(N){var b,S;return((b=N.accessibility)==null?void 0:(S=b.accessibilityData)==null?void 0:S.label)||null};
x3.prototype.notificationDataChanged=function(){var N;this.hasNotification=!!this.notificationData&&!((N=this.data)==null?0:N.icon)};
x3.prototype.notificationDataChanged=x3.prototype.notificationDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gl.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],x3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],x3.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],x3.prototype,"id",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],x3.prototype,"isRightAligned",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],x3.prototype,"disabled",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],x3.prototype,"closeOnActivate",void 0);_.p([_.U(),_.y("design:type",Object)],x3.prototype,"notificationData",void 0);_.p([_.U(),_.y("design:type",Object)],x3.prototype,"hasNotification",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],x3.prototype,"useComputedAriaLabel",void 0);_.p([_.W4("notificationData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],x3.prototype,"notificationDataChanged",null);_.p([_.J_({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],x3);
_.X(x3,"yt-sort-filter-sub-menu-renderer",function(){if($A9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;eXk===void 0&&(eXk=document.createElement("template"));var P=eXk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$A9=N}N=$A9;return N},{mode:2});var wEO=_.A(function(N){var b=N.data;var S=_.Ob(function(){var K=b().onTap;(K=_.t(K,_.JM))&&_.aN().resolve(_.Wq).resolveCommand(K);return!1}),P=function(){return{sources:[{url:b().thumbnailUrl,
width:120,height:90}]}},H=function(){return b().rating&&b().ratingA11yLabel&&b().reviewsCount&&b().reviewsCountA11yLabel};
return _.c("place-data-view-model",null,_.c(_.W,{cond:function(){return b().placeName&&b().placeCategory},
then:function(){return _.c("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":S},_.c(_.gG,{data:P,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.c(_.xg,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return b().onTap}},_.c("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return b().placeName}},function(){return b().placeName})),_.c("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.c(_.W,{cond:H,
then:function(){return _.c("div",{class:_.KU("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.c("span",{class:"score",title:function(){return b().ratingA11yLabel}},function(){return b().rating}),_.c("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.c(_.cX,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.c("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return b().reviewsCountA11yLabel}},function(){return b().reviewsCount}))},
else:function(){return _.c("div",{class:_.KU("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.c("div",{class:_.KU("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.c("span",{class:"category",
title:function(){return b().placeCategory}},function(){return b().placeCategory}))))}}))},"ib");
wEO.idomCompat=!0;_.qu(wEO,"place-data-view-model",{props:{data:_.kg}});var NrN=new _.nO("INLINE_PLAYBACK_HOOK_TOKEN");var bPc=fU({sharedUi:Qsc});_.pf=uo(bPc)(bPc.sharedUi,{animatedThumbnailEnabledSelector:function(N){return N.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(N){return N.inlinePreviewEnabled},
currentPageTypeSelector:function(N){return N.currentPageType},
currentPageSubTypeSelector:function(N){return N.currentPageSubType},
persistentPanelVisibleSelector:function(N){return N.persistentPanelVisible}});var SgZ=function(N){this.setActiveSlideIndex=N;this.jobIds=[];this.isSlideshowPlaying=!1},skd=function(N,b){N.isSlideshowPlaying||(N.isSlideshowPlaying=!0,PO9(N),HP4(N,b,0))},PO9=function(N){_.PX(_.Dj,function(){N.setActiveSlideIndex(0)},1)},HP4=function(N,b,S){N.jobIds.push(_.PX(_.Dj,function(){var P=S<b-1?S+1:0;
N.setActiveSlideIndex(P);HP4(N,b,P)},1800))};var Kuz,OPZ;Kuz=new _.nO("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.vK4=new _.nO("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");OPZ=new _.nO("COMMON_MARK_VIEW_MODEL_TOKEN");var COz=new _.nO("IMAGE_ON_LOAD_HANDLER_TOKEN");var GVS=_.A(function(N){return _.c("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.c(_.W,{cond:function(){var b;return(b=N.data())==null?void 0:b.thumbnail},
then:function(b){return _.c(_.gG,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.r9c=_.A(function(N){var b=N.data;var S=N.lockupExperiments;N={};return _.c("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.c("div",{class:_.KU("ytThumbnailOverlayButtonViewModelButton",(N.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var P;return S&&((P=S())==null?void 0:P.useLegacySizedIconButton)},N))},_.c(_.kY,{data:function(){return b().overlayButton}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
buttonOverrides:function(){var H;return S&&((H=S())==null?0:H.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.r9c.idomCompat=!0;var c9O=_.A(function(N){return _.c("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ob(function(b){b.preventDefault();return!1})},_.c(_.kY,{data:function(){return N.data().buttons}},{toggleButtonViewModel:function(b){return _.c("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.c(_.Hc,{data:b.data}))}}))},"lb");
c9O.idomCompat=!0;var aOl=_.A(function(N){var b=function(){var S;return((S=_.t(N.data().rendererContext,_.Mv))==null?void 0:S.label)||""};
return _.c("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.c(_.W,{cond:function(){return N.data().image},
then:function(){return _.c("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.c(_.gG,{data:function(){return N.data().image},
alt:b}))}}),_.c(_.W,{cond:function(){return N.data().text},
then:function(){return _.c("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return N.data().text})}}))},"mb");var RIO;RIO=_.pf.animatedThumbnailEnabledSelector;_.o8=_.A(function(N){var b=[],S=function(){var m,k;return _.MQe((m=N.width)==null?void 0:m.call(N),(k=N.height)==null?void 0:k.call(N))},P=_.aN().resolve(_.cq(COz)),H=_.Ct("yt-thumbnail-view-model",function(){b.push("elRef.value set");
var m;(m=N.playbackRef)==null||m.call(N,{thumbnailElRef:H,thumbnail:N.data().image,thumbnailOverlays:N.data().overlays,thumbnailSize:S()})});
_.YU(function(){b.push("onInit");_.ej(function(){b.push("onCleanup")})});
var K=_.nU(RIO),C=function(){var m,k;return(k=(m=N.aspectRatio)==null?void 0:m.call(N))!=null?k:0},G=function(){return(N.data().image?_.y7b(N.data().image):C())<=1&&C()===0},a=function(){return G()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},R=function(){H.value||_.$h(new _.jU("Thumbnail elRef.value is null",b.join("\n")));
P&&H.value&&P(H.value)},n=function(){var m,k;
return((m=N.hovered)==null?void 0:m.call(N))&&S()!=="large"&&((k=N.data().overlays)==null?void 0:k.some(function(M){return _.t(M,vJb)}))},d={};
return _.c("yt-thumbnail-view-model",{class:_.KU("ytThumbnailViewModelHost",N.className,function(){return sxI(C())},function(){var m,k;
a:{var M=S(),l=(m=N.disableRounding)==null?void 0:m.call(N);m=(k=N.isClip)==null?void 0:k.call(N);if(!l&&!m)switch(M){case "large":k="ytThumbnailViewModelLarge";break a;case "small":k="ytThumbnailViewModelSmall";break a;default:k="ytThumbnailViewModelMedium";break a}k=void 0}return k},(d.ytThumbnailViewModelCinematic=G,d)),
style:_.r5({"background-color":function(){var m,k=G()?(m=N.data().backgroundColor)==null?void 0:m.lightTheme:void 0;return k?i1(k,"1"):void 0}}),
el:H},_.c(_.W,{cond:G,then:function(){return _.c("div",{class:"ytThumbnailViewModelBlurredImage"},_.c(_.gG,{data:function(){return N.data().image},
alt:"",contentMode:a,targetWidth:N.width,onload:R}))}}),_.c("div",{class:"ytThumbnailViewModelImage"},_.c(_.gG,{data:function(){return N.data().image},
alt:"",contentMode:a,targetWidth:N.width,onload:R}),null),_.c(_.kY,{data:function(){return n()?void 0:N.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:RX9,thumbnailOverlayBadgeViewModel:function(m){return _.c(_.WCl,{data:m.data,thumbnailSize:S,isClip:N.isClip})},
thumbnailBottomOverlayViewModel:function(m){return _.c(Gcb,{data:m.data,thumbnailSize:S,isClip:N.isClip})},
thumbnailOverlayFullViewModel:aOl,thumbnailOverlayButtonViewModel:function(m){return _.c(_.r9c,{data:m.data,lockupExperiments:N.lockupExperiments})},
channelDisclosureViewModel:function(m){m=m.data;var k;return _.c("div",null,(k=_.aN().resolve(_.cq(Kuz)))==null?void 0:k({data:m}))}}),_.c(_.kY,{data:function(){var m;
return((m=N.hovered)==null?0:m.call(N))?N.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(m){return _.c(O$,{data:m.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:c9O}),_.c(_.kY,{data:function(){var m;return((m=N.hovered)==null?0:m.call(N))&&K()?N.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:GVS}),_.c(_.W,{cond:N.isClip,then:function(){return _.c("div",{class:"ytPinkingNsHost"},_.c("svg",{class:"ytPinkingNsPinkingLeft"},_.c("defs",null,_.c("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.c("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.c("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.c("svg",{class:"ytPinkingNsPinkingRight"},_.c("defs",null,_.c("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.c("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.c("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.o8.idomCompat={callbacks:{playbackRef:!0}};var Wuk=_.A(function(N){var b=_.O(_.QF(-1,void 0,"RW2Ole")),S=b.next().value,P=b.next().value;_.YU(function(){var H=new SgZ(P);skd(H,N.data().thumbnails.length);_.ej(function(){if(H.isSlideshowPlaying){H.isSlideshowPlaying=!1;for(var K=H.jobIds,C=0,G=K.length;C<G;C++)_.Dj.cancelJob(K[C]);H.jobIds.length=0}})});
return _.c("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.c(_.kY,{data:function(){return N.data().thumbnails}},{thumbnailViewModel:function(H,K){return _.c("div",{class:function(){var C=!N.data().primaryThumbnail,G=K(),a=S(),R=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
C&&G===0&&R.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");G<=a&&R.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return R.join(" ")}},_.c(_.o8,{data:H.data,
disableRounding:N.disableRounding}))}}))},"ob");
Wuk.idomCompat=!0;var KS_=new _.nO("DWELL_DETECTOR_REGISTRY_TOKEN");var d3z=_.A(function(N){var b=v4Y(N.triggeringElement),S=function(){return!!N.data().primaryThumbnail},P=function(){var K,C=(K=N.data())==null?void 0:K.maxHeight,G;
K=(G=N.maxHeight)==null?void 0:G.call(N);return C!=null&&K!=null?Math.min(C,K):K!=null?K:C},H=function(){var K=P();
if(K){var C;if(S()&&(C=N.includeStackHeight)!=null&&C.call(N)){var G;C=((G=N.doubleStack)==null?0:G.call(N))?8:4}else C=0;K=K-C-1;if(!(K<0)){G=Math;C=G.ceil;var a,R;var n=tQb((R=(a=N.aspectRatio)==null?void 0:a.call(N))!=null?R:0);return C.call(G,K*n)}}};
return _.c("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.r5({height:function(){return P()?P()+"px":void 0},
width:function(){return H()?H()+"px":void 0}})},_.c(nKS,{stackEnabled:S,
thumbnailSize:function(){var K,C;return _.MQe((K=N.width)==null?void 0:K.call(N),(C=N.height)==null?void 0:C.call(N))},
doubleStack:N.doubleStack,stackColor:function(){return N.data().stackColor},
includeStackHeight:N.includeStackHeight},_.c(_.kY,{data:function(){return N.data().primaryThumbnail}},{thumbnailViewModel:function(K){var C={};
return _.c(_.o8,{data:K.data,width:N.width,height:N.height,aspectRatio:N.aspectRatio,disableRounding:N.disableRounding,className:_.KU((C.ytCollectionThumbnailViewModelHostHasStacks=S,C)),hovered:N.hovered,playbackRef:N.playbackRef})}}),_.c(_.W,{cond:function(){var K;
return b()&&((K=N.data().thumbnails)==null?void 0:K.length)},
then:function(){return _.c("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.c(Wuk,{data:N.data,disableRounding:function(){return!S()}}))}})))},"pb");
d3z.idomCompat={callbacks:{playbackRef:!0}};
var nKS=_.A(function(N){var b=N.children;var S=N.stackEnabled;var P=N.thumbnailSize;var H=N.doubleStack;var K=N.stackColor;var C=N.includeStackHeight;var G,a=(G=_.aN().resolve(_.cq(_.T8)))==null?void 0:G();return _.c(_.W,{cond:S,then:function(){return _.c(X99,{data:function(){var R,n;return{experimentEnabled:!0,thumbnailSize:P(),doubleStack:H==null?void 0:H(),color:a?K==null?void 0:(R=K())==null?void 0:R.darkTheme:K==null?void 0:(n=K())==null?void 0:n.lightTheme,enableResponsiveMode:!1,includeStackHeight:C==
null?void 0:C()}}},b)},
else:function(){return b}})},"qb");var m3d=new _.nO("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Jr;_.iu={calledOnce:!0,state:"visible"};Jr={calledOnce:!0,state:"hidden"};_.U$=_.A(function(N){var b=N.data;var S=N.customCommandResolver;var P=N.className;var H=N.delayedClassName;var K=N.animationEntityKey;var C=N.isCompactWidth;var G=N.isContentWidth;N=_.O(_.QF(!1,void 0,"pC3tUb"));var a=N.next().value,R=N.next().value,n=_.$q(K,""),d=_.nf(PeE,n),m=function(){var na,To;return(To=(na=d())==null?void 0:na.value)!=null?To:!1},k=function(){_.e7(_.t5("booleanEntity",n(),{key:n(),
value:!0}));V=void 0};
K=_.O(_.qI(m));var M=K.next().value,l=K.next().value;K=_.O(_.qI(m));var u=K.next().value,J=K.next().value;K=_.O(_.qI(function(){var na;return m()?(na=b().styleTransitionConfig)==null?void 0:na.destinationStyle:void 0}));
var Z=K.next().value,D=K.next().value,Y=function(){var na=Object.assign({},b(),Z()&&{style:Z()});var To,jp,Xf=na.label,YO=(To=na.interaction)==null?void 0:(jp=To.accessibility)==null?void 0:jp.label;To=na.iconImage?na.label&&na.label.content?na.iconLeading?"leading":"trailing":"icon-only":void 0;na={formattedButtonText:Xf,accessibilityLabel:YO,style:rKI(na.style),type:cKE(na.style),state:"active",size:GA9(na.size),iconPosition:To,disabled:!1,aTagConfig:Ch_(na,S)};_.T("enable_desktop_vdcbg_components")&&
(na.focused=a());return na},V;
K=_.nt({visibilityCallback:function(na){var To,jp=(To=b().interaction)==null?void 0:To.onFirstVisible;na&&jp&&_.AM(jp)},
showOption:_.iu});var g=function(){return xab(Y(),!!b().iconImage)};
N={};var e={};P=_.KU(function(){return"ytwAdButtonViewModelHost"},function(){return b().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var na=!!b().delayedAppearanceConfig,To=M();
return na?To?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var na=!!b().delayedAppearanceConfig,To=u();
return na?To?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!b().delayedAppearanceConfig||M()?H==null?void 0:H():""},(N.ytwAdButtonViewModelHostCompactWidth=function(){return C==null?void 0:C()},N),(e.ytwAdButtonViewModelHostContentWidth=function(){return G==null?void 0:G()},e),P!=null?P:"");
var se=function(){var na,To=(na=b().delayedAppearanceConfig)==null?void 0:na.delayedInvisibleSeconds;To&&(V=_.Bm(_.Dj,function(){l(!0);Ca()},To*1E3))},Ca=function(){var na,To=(na=b().delayedAppearanceConfig)==null?void 0:na.delayedVisibleSeconds;
To&&(V=_.Bm(_.Dj,function(){J(!0);ML()},To*1E3))},ML=function(){var na,To=(na=b().styleTransitionConfig)==null?void 0:na.styleTransitionSeconds,jp,Xf=(jp=b().styleTransitionConfig)==null?void 0:jp.destinationStyle;
To&&Xf?V=_.Bm(_.Dj,function(){D(Xf);k()},To*1E3):k()};
_.YU(function(){se()});
_.ej(function(){V&&_.Dj.cancelJob(V)});
return _.c("ad-button-view-model",{"on:focusin":_.Ob(_.T("enable_desktop_vdcbg_components")?function(){var na=_.aN().resolve(_.cq(_.QJ));na&&R(na.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Ob(_.T("enable_desktop_vdcbg_components")?function(){R(!1);return!1}:void 0),
class:P,el:_.VN(K),style:_.r5({"transition-duration":"0.3s"})},_.c(_.W,{cond:Y,then:function(){return _.c(_.ZR,{data:Y,icon:function(){return _.c(_.W,{cond:function(){return b().iconImage},
then:function(na){return _.c(_.gG,{data:na,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var kVN=_.A(function(N){var b=N.data;N=function(){return b().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var S=_.nt({visibilityCallback:function(K){var C,G=(C=b().interaction)==null?void 0:C.onFirstVisible;K&&G&&_.AM(G)},
showOption:_.iu}),P={},H={};return _.c("ad-button-group-view-model",{class:_.KU("ytwAdButtonGroupViewModelHost",(P.ytwAdButtonGroupViewModelHostCompactWidth=N,P)),el:_.VN(S)},_.c("div",{class:_.KU("ytwAdButtonGroupViewModelHostSecondaryButton",(H.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=N,H))},_.c(_.kY,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(K){return _.c(_.U$,{data:K.data})}})),_.c("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.c(_.kY,
{data:function(){return b().primaryAdButton}},{adButtonViewModel:function(K){return _.c(_.U$,{data:K.data})}})))},"tb");var Trd=_.A(function(N){var b=function(){var S;return((S=N.data())==null?void 0:S.answers)||[]};
return _.c("yt-survey-icons",{class:"ytSurveyIconsHost"},_.c("div",{class:"ytSurveyIconsHeader"},_.c("div",{class:"ytSurveyIconsTitle"},function(){var S;return(S=N.data())==null?void 0:S.text}),_.c("div",null,_.c(_.ZR,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var S;(S=N.onDismiss)==null||S.call(N)}}},
iconName:"DISMISSAL"}))),_.c("div",null,_.c("div",{class:"ytSurveyIconsAnswers"},_.c(_.zj,{each:function(){return b()},
keyBy:"INDEX"},function(S,P){return _.c("div",null,_.c(_.ZR,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var H;(H=N.onSelect)==null||H.call(N,S(),P)}}},
icon:function(){return _.c(_.cX,{icon:function(){var H,K;return(H=S())==null?void 0:(K=H.icon)==null?void 0:K.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.c("div",{class:"ytSurveyIconsAnswersText"},_.c("div",null,function(){return b().length?b()[0].text:""}),_.c("div",null,function(){return b().length?b()[b().length-1].text:""}))))},"ub");var tbk=_.A(function(N){var b=_.VN(_.iK(function(){var a;return(a=N.data())==null?void 0:a.rendererContext},void 0,void 0,void 0,!0)),S=_.O(_.QF(!1,void 0,"GW0yjf")),P=S.next().value,H=S.next().value,K=_.nf(H0b,function(){var a;
return(a=N.data().keys)==null?void 0:a.surveyEntityKey}),C=_.nf(sz9,function(){var a;
return(a=N.data().keys)==null?void 0:a.surveyStateEntityKey});
_.OX("ytd-slimline-survey-show-action",function(){H(!1)});
var G=function(){var a,R;var n=(a=C())==null?void 0:(R=a.questionStack)==null?void 0:R[0];if(n!==void 0){var d,m;return(d=K())==null?void 0:(m=d.questions)==null?void 0:m[n]}};
S={};return _.c("yt-slimline-survey-view-model",{el:b,class:_.KU("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return P()},S))},_.c("div",{class:"ytSlimlineSurveyViewModelContainer"},_.c(_.W,{cond:function(){var a;
return((a=G())==null?void 0:a.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.c(Trd,{data:function(){return G()},
onSelect:function(a,R){var n,d;return _.r(function(m){H(!0);if(d=(n=N.data())==null?void 0:n.onSelectRating)_.AM(d),_.e7(Ymb(R));_.Zd(m)})},
onDismiss:function(){H(!0);var a;var R=(a=K())==null?void 0:a.dismissalFeedbackToken;a=R?{feedbackEndpoint:{feedbackToken:R}}:void 0;a&&_.ZN(a,{form:{element:b.value}})}})}})))},"vb");var Mb9=_.A(function(N){return _.c("yt-table-view-model",{class:_.KU("ytTableViewModelHost",N.className)},_.c(_.zj,{each:function(){return N.data().rows||[]}},function(b){var S={};
return _.c("div",{class:_.KU("ytTableViewModelRow",(S.ytTableViewModelRowBottomBorder=function(){return N.data().showSeparators},S))},_.c(_.zj,{each:function(){return(b==null?void 0:b.cells)||[]}},function(P,H){var K,C={};
return _.c("span",{class:_.KU((C.ytTableViewModelRowLabel=function(){return H()===0&&N.data().showHorizontalHeaders},C.ytTableViewModelCell=function(){return!N.data().showHorizontalHeaders||H()>0},C))},(K=P.text)==null?void 0:K.content)}))}))},"wb");var FuO=_.A(function(N){return _.c("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.c(_.kY,{data:function(){var b;return(b=N.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.c(_.r4,{data:b.data,
layout:function(){var S;return((S=N.lockupStyle())==null?void 0:S.arrangement)===1?0:1},
justifyContentOverride:function(){var S;return((S=N.lockupStyle())==null?void 0:S.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(b){return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.c(tbk,{data:b.data}))},
expandableMetadataViewModel:function(b){b=b.data;var S;return _.c("div",{class:_.KU("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(S=_.aN().resolve(_.cq(m3d)))==null?void 0:S({data:b}))},
adButtonGroupViewModel:function(b){return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.c(kVN,{data:b.data}))},
adButtonViewModel:function(b){return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.c(_.U$,{data:b.data,isCompactWidth:!0}))},
tableViewModel:function(b){return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.c(Mb9,{data:b.data}))},
aiCompanionAttachmentViewModel:function(b){b=b.data;var S;return _.c("div",{class:"ytLockupAttachmentsViewModelAttachment"},(S=_.aN().resolve(_.cq(_.vK4)))==null?void 0:S({data:b}))}}))},"xb");var mKE=_.d7("rich_grid_min_item_width",310),n4a=_.d7("rich_grid_max_item_width",500);var f0E,LS_;f0E=16/9;LS_=2/3;_.ZU=_.A(function(N){var b=N.data;var S=N.className;var P=N.imageSizeConfig;var H=N.notifyOnLoaded;var K=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},C=function(){var m;
return _.o2((m=b())==null?void 0:m.rendererContext)};
N={};N=(N.ytContentPreviewImageViewModelHost=!0,N.ytContentPreviewImageViewModelCircleImage=function(){return K()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},N.ytContentPreviewImageViewModelTappable=function(){return C()},N);
var G=function(){var m,k;return(k=(m=_.t(b().rendererContext,_.Mv))==null?void 0:m.label)!=null?k:""},a=function(){return QxE(b())},R=function(){var m=uPI(K(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",P==null?void 0:P(),xK_(a()),b().layoutWidth,b().layoutHeight),k=Object.assign({},m);
m.width&&(k.width=Math.round(m.width));m.height&&(k.height=Math.round(m.height));m.maxWidth&&(k.maxWidth=Math.round(m.maxWidth));m.maxHeight&&(k.maxHeight=Math.round(m.maxHeight));return k},n=_.UB(function(){return R().height},void 0,"CxFlJb"),d=_.UB(function(){return R().width},void 0,"lb8Jhd");
return _.c("yt-content-preview-image-view-model",{el:_.VN(_.iK(function(){var m;return(m=b())==null?void 0:m.rendererContext})),
role:function(){return C()?"link":void 0},
tabindex:function(){return C()?0:void 0},
class:_.KU(S,N,function(){var m=K();var k=P==null?void 0:P();m=m==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||m==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||m==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||m==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(k==null?void 0:k.size)!=null&&k.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(k==null?void 0:k.size)!=null&&k.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return m}),
style:function(){var m=R(),k=[];m.width&&k.push("width: "+m.width+"px");m.height&&k.push("height: "+m.height+"px");m.maxWidth&&k.push("max-width: "+m.maxWidth+"px");m.maxHeight&&k.push("max-height: "+m.maxHeight+"px");m.fullWidth&&k.push("width: 100%");return k.join(";")}},_.c(_.W,{cond:a,
then:function(m){return _.c(_.gG,{data:m,alt:G,"data-disabled$":function(){return!G()},
notifyOnLoaded:H,targetWidth:d,targetHeight:n,preserveWidth:function(){return!!d()},
preserveHeight:function(){return!!n()}})}}),_.c(_.kY,{data:function(){var m;
return(m=b())==null?void 0:m.overlays}},{thumbnailHoverOverlayViewModel:O$,
thumbnailOverlayButtonViewModel:_.r9c}))},"yb");
_.ZU.idomCompat=!0;var jJ=_.A(function(N){var b=N.data;var S=N.className;var P=N.useSmallLayout;var H=N.useMediumText;var K=N.useHeavyText;var C=function(){return!(H==null||!H())||!(K==null||!K())};
N={};return _.c("yt-attribution-view-model",{el:_.VN(_.iK(function(){var G;return(G=b())==null?void 0:G.rendererContext})),
class:_.KU(S,(N.ytAttributionViewModelHost=!0,N.ytAttributionViewModelMediumText=H,N.ytAttributionViewModelHeavyText=K,N))},_.c(_.W,{cond:function(){return _.o2(b().rendererContext)},
then:function(){return _.c("button",{class:"ytAttributionViewModelTappable"},_.c(BrN,{data:b,useSmallLayout:P,badgesShouldInheritTypography:C}))},
else:function(){return _.c(BrN,{data:b,useSmallLayout:P,badgesShouldInheritTypography:C})}}))},"zb"),BrN=_.A(function(N){var b=N.data;
var S=N.useSmallLayout;var P=N.badgesShouldInheritTypography;var H=function(){return{size:(S==null?0:S())?16:24}};
return _.c(_.nM,null,_.c(_.kY,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(K){return _.c(_.ZU,{data:K.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:H})}}),_.c(_.kY,{data:function(){return b().badge}},{badgeViewModel:function(K){return _.c(_.LH,{data:K.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:P})}}),_.c(_.W,{cond:function(){return b().text},
then:function(){return _.c(_.mD,{text:function(){return b().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.c(_.W,{cond:function(){return b().suffix},
then:function(){return _.c(_.mD,{text:function(){return b().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
jJ.idomCompat=!0;var lOO,Lul,fOZ,uDE,Qk4;lOO=_.A(function(N){var b=N.delimiter;var S=N.max;var P=N.index;var H=N.isStandalone;return _.c(_.W,{cond:function(){return S()-1>P()},
then:function(){var K={};return _.c("span",{class:_.KU("yt-content-metadata-view-model__delimiter",(K["yt-content-metadata-view-model__delimiter--standalone"]=H,K)),"aria-hidden":!0},b)}})},"Bb");
Lul=_.A(function(N){var b=N.metadataPart;var S=N.maxLines;return _.c(_.mD,{text:function(){return b().text},
linkInheritColor:!0,className:function(){return o49(S())},
userInput:!0})},"Cb");
fOZ=_.A(function(N){var b=N.metadataPart;var S=N.maxLines;return _.c(_.W,{cond:function(){return b().tooltip},
then:function(P){return _.c("span",{title:P,role:"tooltip"},_.c(Lul,{metadataPart:b,maxLines:S}))},
else:function(){return _.c(Lul,{metadataPart:b,maxLines:S})}})},"Db");
uDE=_.A(function(N){var b=N.metadataPart;var S=N.isOverlay;var P=N.useMediumText;var H=N.hideAvatar;var K=function(){return b().maxLines!==void 0?b().maxLines:1};
return _.c(_.nM,null,_.c(_.kY,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(C){return _.c(_.rZ,{data:C.data,
isOverlay:S,useMediumText:P,hideAvatar:H})},
badgeViewModel:_.LH}),_.c(_.W,{cond:function(){return b().leadingIcon},
then:function(C){return _.c(_.cX,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return C().name},
size:function(){return C().width}})}}),_.c(_.W,{cond:function(){return b().text},
then:function(){return _.c(fOZ,{metadataPart:b,maxLines:K})}}),_.c(_.W,{cond:function(){return b().icon},
then:function(C){return _.c(_.cX,{className:"yt-content-metadata-view-model__icon",icon:function(){return C().name},
size:function(){return C().width}})}}))},"Eb");
Qk4=_.A(function(N){var b=N.metadataRow;var S=N.isInline;var P=N.delimiter;var H=N.isOverlay;var K=N.useMediumText;var C=N.extensions;var G=function(){var R,n=C==null?void 0:(R=C())==null?void 0:R.lockupMetadata;R=b();var d,m;return!!((n==null?0:(d=n.byline)==null?0:d.hideAvatar)&&((m=_.t(R,wcb))==null?void 0:m.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},a=function(){return b().metadataParts||[]};
N={};return _.c("div",{class:_.KU("yt-content-metadata-view-model__metadata-row",(N["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=S,N["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var R,n=C==null?void 0:(R=C())==null?void 0:R.lockupMetadata;R=b();var d,m;return!!((n==null?0:(d=n.byline)==null?0:d.addPadding)&&((m=_.t(R,wcb))==null?void 0:m.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},N["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var R;
return!!(C==null?0:(R=C())==null?0:R.lockupMetadata)&&b().badges&&!b().metadataParts},N))},_.c(_.kY,{data:function(){return b().badges}},{badgeViewModel:function(R){return _.c("div",{class:"yt-content-metadata-view-model__badge"},_.c(_.LH,{data:R.data,
numBadgesInRow:function(){var n,d;return((n=b())==null?void 0:(d=n.badges)==null?void 0:d.length)||0}}))}}),_.c(_.zj,{each:a},function(R,n){return _.c(_.nM,null,_.c(uDE,{metadataPart:R,
isOverlay:H,useMediumText:K,hideAvatar:G}),_.c(lOO,{delimiter:P,max:function(){return a().length},
index:n,isStandalone:!1}))}),_.c(_.W,{cond:function(){return b().isSpacerRow&&!S()},
then:function(){return _.c("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.zg=_.A(function(N){N=_.h_(N,{layout:0,isOverlay:!1});var b=N.data,S=N.layout,P=N.isOverlay,H=N.useMediumText,K=N.extensions,C=function(){return S()===0},G=function(){var R;
return((R=b().metadataRows)==null?void 0:R.filter(function(n){var d,m=K==null?void 0:(d=K())==null?void 0:d.lockupMetadata,k,M;d=!!((m==null?0:(k=m.description)==null?0:k.hideDescription)&&((M=_.t(n,wcb))==null?void 0:M.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var l,u;return!((m==null?0:(l=m.spacer)==null?0:l.hideSpacer)&&((u=_.t(n,wcb))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||d)}))||[]},a={};
return _.c("yt-content-metadata-view-model",{class:_.KU(N.className,"yt-content-metadata-view-model",(a["yt-content-metadata-view-model--inline"]=C,a["yt-content-metadata-view-model--tappable"]=function(){return _.o2(b().rendererContext)},a["yt-content-metadata-view-model--medium-text"]=H,a)),
el:_.VN(_.iK(function(){return b().rendererContext}))},_.c(_.zj,{each:G},function(R,n){return _.c(_.nM,null,_.c(Qk4,{metadataRow:R,
isInline:C,delimiter:function(){return b().delimiter},
isOverlay:P,useMediumText:H,extensions:K}),_.c(_.W,{cond:function(){return C()&&!R.isSpacerRow},
then:function(){return _.c(lOO,{delimiter:function(){return b().delimiter},
max:function(){return G().length},
index:n,isStandalone:!0})}}))}))},"Gb");
_.zg.idomCompat=!0;var x34=_.A(function(N){var b=_.aN().resolve(_.cq(_.T8)),S={};return _.c("yt-lockup-metadata-view-model",{class:_.KU("yt-lockup-metadata-view-model",function(){a:{var P=N.lockupStyle();if(P==null?0:P.isOverlay)P="yt-lockup-metadata-view-model--overlay";else switch(P==null?void 0:P.arrangement){case 1:P="yt-lockup-metadata-view-model--horizontal";break a;default:P="yt-lockup-metadata-view-model--vertical"}}return P},function(){a:{var P=N.lockupStyle();
switch(P==null?void 0:P.titleMaxLines){case 1:P="yt-lockup-metadata-view-model--title-max-lines-1";break a}P=void 0}return P},function(){a:{var P=N.lockupStyle();
if(P==null?0:P.isTiny)P="yt-lockup-metadata-view-model--tiny";else switch(P==null?void 0:P.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":P="yt-lockup-metadata-view-model--compact";break a;default:P="yt-lockup-metadata-view-model--standard"}}return P},(S["yt-lockup-metadata-view-model--overlay"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.isOverlay},S["yt-lockup-metadata-view-model--card"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.isCard},S["yt-lockup-metadata-view-model--centered"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.isCentered},S["yt-lockup-metadata-view-model--typography-bump"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.typographyBump},S["yt-lockup-metadata-view-model--legacy-typography"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.useLegacyTypography},S["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var P;
return(P=N.lockupStyle())==null?void 0:P.useRichGridLegacyTypography},S))},_.c(_.kY,{data:function(){return N.data().image}},{avatarStackViewModel:function(P){return _.c("div",{class:"yt-lockup-metadata-view-model__avatar"},_.c(_.rZ,{data:P.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(P){return _.c("div",{class:"yt-lockup-metadata-view-model__avatar"},_.c(_.CH,{data:P.data}))},
decoratedAvatarViewModel:function(P){return _.c("div",{class:"yt-lockup-metadata-view-model__avatar"},_.c(_.Gg,{data:P.data}))}}),_.c("div",{class:"yt-lockup-metadata-view-model__text-container"},_.c("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var P;return(P=N.data().title)==null?void 0:P.content}},_.c(_.W,{cond:function(){return N.data().title},
then:function(P){return _.c(_.xg,{command:N.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.r5({color:function(){var H;a:{var K=N.lockupStyle();var C=(H=N.hovered)==null?void 0:H.call(N);H=!(b==null||!b());var G;if((K==null?0:(G=K.onFocusEffect)==null?0:G.textPrimaryColor)&&C&&(K=H?K.onFocusEffect.textPrimaryColor.darkTheme:K.onFocusEffect.textPrimaryColor.lightTheme)){K=Js(K);break a}K=void 0}return K}}),
ariaLabel:N.lockupAccessibilityLabel},_.c(_.mD,{text:P,userInput:!0}))}})),_.c("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.r5({color:function(){var P;a:{var H=N.lockupStyle();var K=(P=N.hovered)==null?void 0:P.call(N);P=!(b==null||!b());var C;if((H==null?0:(C=H.onFocusEffect)==null?0:C.textSecondaryColor)&&K&&(H=P?H.onFocusEffect.textSecondaryColor.darkTheme:H.onFocusEffect.textSecondaryColor.lightTheme)){H=Js(H);break a}H=void 0}return H}})},_.c(_.kY,{data:function(){return N.data().metadata}},{contentMetadataViewModel:function(P){return _.c(_.zg,{data:P.data,
layout:function(){var H,K;return(K=(H=N.layout)==null?void 0:H.call(N))!=null?K:1},
useMediumText:function(){var H,K;return((H=N.lockupStyle())==null?void 0:H.typographyBump)||((K=N.lockupStyle())==null?void 0:K.useRichGridLegacyTypography)},
extensions:function(){var H,K,C,G;return{lockupMetadata:{byline:{hideAvatar:((H=N.lockupStyle())==null?void 0:H.arrangement)===0,addPadding:((K=N.lockupStyle())==null?void 0:K.arrangement)===1},description:{hideDescription:!((C=N.lockupStyle())==null||!C.compactMetadata)},spacer:{hideSpacer:!((G=N.lockupStyle())==null||!G.compactMetadata)}}}}})}})),_.c(_.kY,{data:function(){return N.data().attribution}},{attributionViewModel:function(P){return _.c("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.c(jJ,{data:P.data,
useSmallLayout:!0}))}})),_.c("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.c(_.kY,{data:function(){return N.data().menuButton}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
buttonOverrides:function(){var H;return((H=N.lockupStyle())==null?0:H.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
x34.idomCompat=!0;var oKS=_.A(function(N){var b=_.Ct("notification-multi-action-renderer");_.pM(function(){requestAnimationFrame(function(){_.Cv(b.value)})});
var S={},P={},H={};return _.c("notification-multi-action-renderer",{class:_.KU("ytNotificationMultiActionRendererHost",(S.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var K;return(K=N.useLegacyShelfStyle)==null?void 0:K.call(N)},S)),
el:b},_.c("span",{"aria-live":"polite",class:_.KU("ytNotificationMultiActionRendererTextContainer",(P.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var K;return(K=N.useLegacyShelfStyle)==null?void 0:K.call(N)},P))},_.c(_.mD,{text:function(){return N.data().responseText}})),_.c("div",{class:_.KU("ytNotificationMultiActionRendererButtonContainer",(H.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var K;
return(K=N.useLegacyShelfStyle)==null?void 0:K.call(N)},H))},_.c(_.kY,{data:function(){var K;
return(K=N.data().buttons)==null?void 0:K.map(function(C){if(C=C.buttonRenderer){var G,a=Object,R=a.assign,n=(G=C.icon)==null?void 0:G.iconType;G=(G=C.command||C.serviceEndpoint||C.navigationEndpoint)?{innertubeCommand:G}:void 0;C={buttonViewModel:R.call(a,{},{iconName:n,onTap:G,trackingParams:C.trackingParams,titleFormatted:C.text?_.xH(C.text):void 0},JKu(C))}}else C=void 0;return C}).filter(function(C){return!!C})}},{buttonViewModel:function(K,C){return _.c("div",null,_.c(_.j$,{data:K.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var G;return((G=N.useModernStyles)==null?0:G.call(N))?{type:C()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var iPc=_.A(function(N){var b=_.Ct("notification-text-renderer");_.pM(function(){requestAnimationFrame(function(){_.Cv(b.value)})});
return _.c("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.c(_.mD,{text:function(){return N.data().successResponseText}}))},"Lb");_.Ar=_.A(function(N){var b=_.nf(VwE,function(){var P;return UKY((P=N.contentId)==null?void 0:P.call(N))}),S=function(){var P;
return _.t((P=b())==null?void 0:P.command,_.Y6)};
return _.c(_.W,{cond:function(){var P;if(!(P=S())){var H;P=_.t((H=b())==null?void 0:H.command,aaE)}return P},
then:function(){return _.c(_.W,{cond:S,then:function(){var P={};return _.c("div",{class:_.KU("ytDismissibleItemReplacedContent",function(){var H;return Zpa((H=N.aspectRatio)==null?void 0:H.call(N))})},_.c("div",{class:_.KU((P.ytDismissibleItemAspectRatioContainer=function(){var H;
return((H=N.aspectRatio)==null?void 0:H.call(N))!==void 0},P))},_.c(_.kY,{data:function(){var H;
return(H=S())==null?void 0:H.item}},{notificationMultiActionRenderer:function(H){return _.c(oKS,{data:H.data,
useModernStyles:N.useModernStyle,useLegacyShelfStyle:N.useLegacyShelfStyle})},
notificationTextRenderer:iPc})))}})},
else:N.children})},"Mb");_.J94=_.A(function(N){var b=N.data;var S=N.customCommandResolver;N=_.VN(_.nt({visibilityCallback:function(K){var C,G=(C=b().interaction)==null?void 0:C.onFirstVisible;K&&G&&_.AM(G)},
showOption:_.iu}));var P=function(){var K;return((K=b().interaction)==null?0:K.onTap)?function(C){var G;OpL(C,(G=b().interaction)==null?void 0:G.onTap,S)}:void 0},H=function(){var K,C=b(),G=P(),a=(K=_.t(b().rendererContext,_.Mv))==null?void 0:K.label;
a:switch(C.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":K=1;break a;default:K=0}return{size:AKI(C.size),type:K,onTap:G,accessibilityText:a}};
return _.c("ad-avatar-view-model",{class:function(){var K;return((K=b().interaction)==null?0:K.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:N},_.c(_.W,{cond:function(){return b().image},
then:function(K){return _.c(aeN,{data:H,image:K})}}))},"Nb");_.Xl=_.A(function(N){var b=_.h_(N,{hasDot:!1,usedInMasthead:!1}),S=Object.assign({},b),P=b.data,H=b.hasDot;N=b.customCommandResolver;var K=b.usedInMasthead,C=(delete S.data,delete S.hasDot,delete S.customCommandResolver,delete S.usedInMasthead,S);b=function(){return P().style};
b!==void 0&&b!==null||_.qB(Error("Ih"));N=_.z8(function(){return P().interaction},N);
return _.c("ad-badge-view-model",{class:_.KU(function(){var G;return((G=P().interaction)==null?0:G.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var G=C.adRenderingContextType(),a=K();
P();return G!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||a?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.VN(N)},_.c(_.Wn,{data:function(){var G;P();return{type:2,text:(G=P().label)==null?void 0:G.content,adsIncludeDot:H(),isOverlay:P().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var U39;_.E$=_.A(function(N){var b=N.data;var S=N.customCommandResolver;var P=N.adRenderingContextType;return _.c("ad-details-line-view-model",{class:function(){var H;return((H=b().interaction)==null?0:H.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(H){var K,C=(K=b().interaction)==null?void 0:K.onFirstVisible;H&&C&&_.AM(C)},
showOption:_.iu}),_.z8(function(){return b().interaction},S))},_.c(_.W,{cond:function(){return b().style},
then:function(H){return _.c(_.zj,{each:function(){var K;return((K=b())==null?void 0:K.attributes)||[]},
keyBy:"INDEX"},function(K){return _.c(U39,{attribute:K,style:H,adRenderingContextType:function(){return P()}})})}}))},"Pb");
U39=_.A(function(N){var b=N.attribute;var S=N.style;var P=N.adRenderingContextType;return _.c(_.W,{cond:function(){return b().text},
then:function(H){return _.c(_.mD,{text:H,className:function(){var K=P();S();return K==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var ZPz=_.A(function(N){var b=N.data;var S=N.typographyBump;var P=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},H=function(){return{size:"M"}};
N={};return _.c(_.nM,null,_.c("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.c(_.mD,{text:function(){return b().headline},
className:_.KU("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return P==null?void 0:P()},N.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(S==null?void 0:S())&&!(P==null?0:P())},N)),
linkInheritColor:!0}),_.c(_.W,{cond:function(){return b().description},
then:function(K){var C={};return _.c(_.mD,{text:K,className:_.KU("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return P==null?void 0:P()},C.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(S==null?void 0:S())&&!(P==null?0:P())},C)),
linkInheritColor:!0})}}),_.c(_.W,{cond:function(){return b().secondaryDescription},
then:function(K){var C={};return _.c(_.mD,{text:K,className:_.KU("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(C.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return S==null?void 0:S()},C)),
linkInheritColor:!0})}}),_.c("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.c(_.W,{cond:function(){return b().adAvatar},
then:function(){return _.c("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.c(_.kY,{data:function(){return b().adAvatar}},{adAvatarViewModel:_.J94}))}}),_.c(_.kY,{data:function(){return b().adBadge}},{adBadgeViewModel:function(K){return _.c(_.Xl,{data:K.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.c(_.kY,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.c(_.E$,{data:K.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}}))),_.c("div",{class:function(){return _.T("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":P()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:function(K){return _.c(_.j$,{data:K.data,
buttonOverrides:_.T("enable_desktop_vdc_components")?H:function(){a:switch(b().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var C="S";break a;default:C="M"}return{size:C}}})}})))},"Rb"),jkN=_.A(function(N){var b=N.data;
var S=N.noBottomMargin;var P=N.useVideoLockupTopPadding;var H=N.typographyBump;N={};N=_.KU("ytwFeedAdMetadataViewModelHostMetadata",(N.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return S==null?void 0:S()},N.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},N));
var K=function(){return b().adBadge};
K!==void 0&&K!==null||_.qB(Error("Jh"));K={};var C={};return _.c(_.nM,null,_.c(_.W,{cond:function(){return b().adAvatar},
then:function(){return _.c("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.c(_.kY,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(G){return _.c(_.J94,{data:G.data})}}))}}),_.c("div",{class:N},_.c("div",{class:_.KU("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return H==null?void 0:H()},K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(H==
null?void 0:H())&&_.T("web_enable_typography_bump_v2")},K))},_.c(_.mD,{text:function(){return b().headline},
linkInheritColor:!0})),_.c(_.W,{cond:function(){return b().description},
then:function(G){return _.c(_.mD,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.c("div",{class:function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.T("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.c(_.kY,{data:function(){return b().adBadge}},
{adBadgeViewModel:function(G){return _.c(_.Xl,{data:G.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.c(_.kY,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(G){return _.c(_.E$,{data:G.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}})),_.c(_.W,{cond:function(){return b().secondaryDescription},
then:function(G){return _.c(_.mD,{text:G,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.c("div",{class:_.KU("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(C.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},C))},_.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:_.j$})))},"Sb"),pH=_.A(function(N){var b=N.data;
var S=N.noBottomMargin;var P=N.listenToTapEvent;var H=N.setTouchEndHandler;var K=N.useVideoLockupTopPadding;var C=N.typographyBump;N=_.nt({visibilityCallback:function(d){var m,k=(m=b().interaction)==null?void 0:m.onFirstVisible;d&&k&&_.AM(k)},
showOption:_.iu});var G=_.z8(function(){return b().interaction},void 0,function(){return P==null?void 0:P()}),a=_.O(_.QF(!1,void 0,"N3Oquc")),R=a.next().value,n=a.next().value;
a=_.Ob(function(d){(H==null?0:H())&&!R()&&(d.currentTarget.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
return _.c("feed-ad-metadata-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.VN(N,G),"on:touchend":a},_.c(_.Al,null,_.c(_.ZH,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.c(ZPz,{data:b,
typographyBump:C})}),_.c(_.ZH,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.c(jkN,{data:b,
noBottomMargin:S,useVideoLockupTopPadding:K,typographyBump:C})})))},"Tb");var zIS,A9c;zIS=_.pf.inlinePreviewEnabledSelector;_.Y3=_.A(function(N){return _.c("yt-lockup-view-model",{class:_.KU(N.className,"yt-lockup-view-model--wrapper")},_.c(_.Ar,{contentId:function(){return N.data().contentId},
useModernStyle:!0,aspectRatio:function(){var b,S;return((b=N.containerType)==null?void 0:b.call(N))!==3?Bsa(N.data().contentType,(S=N.force16By9ThumbnailAspectRatio)==null?void 0:S.call(N)):void 0}},function(){return _.c(A9c,Object.assign({},N))}))},"Ub");
A9c=_.A(function(N){N=_.h_(N,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var b=N.data,S=N.containerLayoutConfig,P=N.containerType,H=N.sizing,K=N.protectBackground,C=N.typographyBump,G=N.force16By9ThumbnailAspectRatio,a=N.thumbnailFixedWidth,R=N.thumbnailTargetWidth,n=N.lockupExperiments,
d=N.elementsPerRow,m=N.useOverlayStyling,k=_.aN().resolve(_.cq(_.T8));N=_.VN(_.iK(function(){var YO;return(YO=b())==null?void 0:YO.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var M=_.nU(zIS),l=_.aN().resolve(_.cq(NrN)),u=l?{}:void 0,J=function(){var YO,Wk,S9;return(S9=(Wk=_.t((YO=b())==null?void 0:YO.rendererContext,_.Mv))==null?void 0:Wk.label)!=null?S9:void 0},Z=function(){var YO;
return(YO=_.t(b().metadata,_.N3b))==null?void 0:YO.endorsement},D=function(){var YO=S==null?void 0:S(),Wk;
if(YO==null?0:YO.containerType){var S9=(Wk=b())==null?void 0:Wk.contentType;Wk=n();var Vu=C(),n9=R(),mc=K();YO=Object.assign({},l0f(Tsa(YO),X$(YO.responsiveSize),Vu,S9,YO.force16By9ThumbnailAspectRatio,n9,mc,void 0,Wk),{thumbnailFixedWidth:YO.contentPreviewWidth})}else YO=l0f(P(),H(),C(),(S9=b())==null?void 0:S9.contentType,G(),R(),K(),m(),n());return YO};
l&&u&&l({enabled:function(){return M()},
itemPlaybackModel:function(){return b().itemPlayback},
thumbnailElRef:function(){return u.thumbnailElRef},
containerElRef:N,options:function(){var YO=u.thumbnailOverlays||[],Wk=Z(),S9;!Wk||((S9=n())==null?0:S9.onFocusEffect)||YO.push(Wk);var Vu,n9;return{thumbnail:u.thumbnail,thumbnailOverlays:YO,accessibilityText:J(),thumbnailSize:u.thumbnailSize,enableRounding:D().isCollection,containPlayerWithinThumbnail:D().isCollection,mouseleaveCallback:function(){g(!1)},
trackingParams:(Vu=_.t(b().rendererContext,_.mt))==null?void 0:(n9=Vu.loggingDirectives)==null?void 0:n9.trackingParams}}});
var Y=0;l=_.O(_.QF(!1,void 0,"v0iGab"));var V=l.next().value,g=l.next().value;l=_.O(_.QF(!1,void 0,"PVKcBd"));var e=l.next().value,se=l.next().value;l=_.Ob(function(){e()?(_.Dj.cancelJob(Y),Y=_.Dj.addJob(function(){g(!0)},8,32)):g(!0);
return!0});
var Ca=_.Ob(function(YO){YO=YO.relatedTarget;var Wk=document.querySelector("ytd-video-preview");YO&&Wk&&Wk.contains(YO)||(Y&&(_.Dj.cancelJob(Y),Y=0),g(!1))});
_.ej(function(){Y&&(_.Dj.cancelJob(Y),Y=0)});
var ML=z_a(function(){se(!0)}),na=ML.touchFeedbackEvents,To=ML.touchFeedbackOnPointerUp,jp=ML.touchFeedbackOnPointerDown;
ML=ML.touchFeedbackOnPointerLeave;var Xf={};return _.c(_.nM,null,_.c("div",{el:N,class:_.KU("yt-lockup-view-model",function(){a:{var YO=D();if(YO.metadataOnThumbnail)YO="yt-lockup-view-model--metadata-on-thumbnail";else switch(YO.arrangement){case 1:YO="yt-lockup-view-model--horizontal";break a;default:YO="yt-lockup-view-model--vertical"}}return YO},function(){a:{var YO=D();
if(YO.metadataOnThumbnail)YO="yt-lockup-view-model--metadata-on-thumbnail";else{switch(YO.collectionStackNumber){case 1:YO="yt-lockup-view-model--collection-stack-1";break a;case 2:YO="yt-lockup-view-model--collection-stack-2";break a}YO=void 0}}return YO},function(){var YO;
return _.ipI((YO=b())==null?void 0:YO.contentId)},(Xf["yt-lockup-view-model--card"]=function(){return D().isCard},Xf["yt-lockup-view-model--compact"]=function(){return D().isTiny||D().sizing!=="STANDARD"},Xf["yt-lockup-view-model--protect-background"]=K,Xf["yt-lockup-view-model--add-margins"]=function(){return D().addMarginForFullbleed},Xf["yt-lockup-view-model--centered"]=function(){return D().isCentered},Xf["yt-lockup-view-model--fullbleed"]=function(){return D().fullbleed},Xf["yt-lockup-view-model--single-column-grid"]=
function(){return d()===1&&P()===2},Xf["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var YO;
return(YO=n())==null?void 0:YO.useRichGridLegacyMargin},Xf["yt-lockup-view-model--flex-none"]=function(){return!_.T("lockup_flex_none_killswitch")},Xf)),
"on:mousedown":jp,"on:mouseleave":Ca,"on:mouseup":To,"on:mouseover":l,"on:touchstart":jp,"on:touchend":To,"on:pointerleave":ML},_.c(_.of,{model:function(){var YO,Wk,S9=Object,Vu=S9.assign,n9=(u==null?void 0:u.thumbnailSize)||"small";a:{var mc=D();var f9=!!(Z()&&((YO=n())==null?0:YO.onFocusEffect));switch((u==null?void 0:u.thumbnailSize)||"small"){case "small":YO=4;break;case "large":YO=12;break;default:YO=8}if(f9)mc=YO+12;else{switch(mc.collectionStackNumber){case 1:mc=YO+8;break a;case 2:mc=YO+12;
break a}mc=void 0}}n9={thumbnailSize:n9,triggerEvents:!0,customTopExtend:mc};var mJ;mc=(Wk=n())==null?void 0:Wk.onFocusEffect;f9=!(k==null||!k());if(mc){var Bk,RU;Wk=f9?(Bk=mc.onFocusColor)==null?void 0:Bk.darkTheme:(RU=mc.onFocusColor)==null?void 0:RU.lightTheme;var Ab,kZ;Bk=f9?(Ab=mc.keyLightColor)==null?void 0:Ab.darkTheme:(kZ=mc.keyLightColor)==null?void 0:kZ.lightTheme;var Ib;Ab=f9?(mJ=mc.touchResponseColor)==null?void 0:mJ.darkTheme:(Ib=mc.touchResponseColor)==null?void 0:Ib.lightTheme;mJ={background:Wk!==
void 0?Js(Wk):void 0,keyLight:Bk!==void 0?Js(Bk):void 0};Ib=[];kZ=_.O(mc.lightingTechniques||[]);for(Bk=kZ.next();!Bk.done;Bk=kZ.next())switch(Bk.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Ib.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Ib.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Ib.push(3)}mJ={hoverEffect:{palette:mJ,lightingTechniques:Ib},touchEffect:{palette:{background:Ab!==void 0?Js(Ab):void 0}}}}else mJ={};return Vu.call(S9,{},n9,mJ)},
hovered:function(){return V()},
pointerDownEvent:na.pointerDownEvent,pointerUpEvent:na.pointerUpEvent,pointerLeaveEvent:na.pointerLeaveEvent}),_.c(_.W,{cond:function(){var YO;return Z()&&V()&&((YO=n())==null?void 0:YO.onFocusEffect)},
then:function(){return _.c("div",{class:"yt-lockup-view-model__endorsement"},_.c(_.kY,{data:function(){return Z()}},{attributionViewModel:function(YO){return _.c(jJ,{data:YO.data,
useHeavyText:!0})}}))}}),_.c(_.xg,{command:function(){var YO;
return _.xY((YO=b())==null?void 0:YO.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(a()||D().thumbnailFixedWidth)&&D().arrangement===1?"width: "+(a()||D().thumbnailFixedWidth):""}},_.c(_.kY,{data:function(){var YO;
return(YO=b())==null?void 0:YO.contentImage}},{thumbnailViewModel:function(YO){return _.c(_.o8,{data:YO.data,
aspectRatio:function(){return D().aspectRatio},
disableRounding:function(){return D().disableRounding},
width:R,hovered:function(){return V()&&!(M()&&b().itemPlayback)},
isClip:function(){var Wk;return((Wk=b())==null?void 0:Wk.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Hpb(u),lockupExperiments:function(){return n()}})},
collectionThumbnailViewModel:function(YO){return _.c(d3z,{data:YO.data,aspectRatio:function(){return D().aspectRatio},
disableRounding:function(){return D().disableRounding},
width:R,doubleStack:function(){return D().collectionStackNumber===2},
hovered:function(){return V()&&!(M()&&b().itemPlayback)},
playbackRef:Hpb(u)})},
decoratedAvatarViewModel:_.Gg})),_.c("div",{class:"yt-lockup-view-model__metadata"},_.c(_.kY,{data:function(){var YO;return(YO=b())==null?void 0:YO.metadata}},{lockupMetadataViewModel:function(YO){return _.c(x34,{data:YO.data,
hovered:V,lockupStyle:D,lockupCommand:function(){var Wk;return _.xY((Wk=b())==null?void 0:Wk.rendererContext)},
lockupAccessibilityLabel:function(){return J()},
layout:function(){var Wk;return((Wk=n())==null?0:Wk.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(YO){return _.c(pH,{data:YO.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:C})}}),_.c(_.kY,{data:function(){var YO;
return(YO=b())==null?void 0:YO.attachmentSlot}},{lockupAttachmentsViewModel:function(YO){return _.c(FuO,{data:YO.data,
lockupStyle:D})}}))),_.c(_.kY,{data:function(){var YO;
return(YO=b())==null?void 0:YO.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(YO){return _.c(FuO,{data:YO.data,
lockupStyle:D})}}))},"Vb");
_.Y3.idomCompat=!0;_.qu(_.Y3,"yt-lockup-view-model",{props:{data:_.kg,containerLayoutConfig:_.kg,containerType:_.kg,sizing:_.kg,protectBackground:_.kg,typographyBump:_.kg,thumbnailFixedWidth:_.kg,thumbnailTargetWidth:_.kg,force16By9ThumbnailAspectRatio:_.kg,className:_.kg,lockupExperiments:_.kg,elementsPerRow:_.kg,useOverlayStyling:_.kg}});var YTp,XbN=_.A(function(N){var b=_.h_(N,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),S=b.text,P=b.alwaysShowTruncationText;N=b.truncationText;var H=b.onTextClick,K=b.maxLines,C=b.disableTextMask,G=b.textStyle,a=b.accessibilityLabel,R=b.textSize,n=b.alwaysTruncateAtMaxLines,d=b.expandOnClick;b=_.O(_.QF(!1,void 0,"EzA1q"));var m=b.next().value,k=b.next().value;b=_.Ob(function(){d()&&k(!m());H==null||H()});
var M=function(){a:switch(R()){case "medium":var e=2;break a;case "large":e=2.2;break a;default:e=1.8}return e},l=DKu(S,function(){return m()?Infinity:K()},M,C,n,m),u=l.isTruncated;
S=l.displayText;n=l.contentRef;var J=l.hiddenRef,Z=l.placeholderTruncationTextRef,D=l.hiddenTruncationTextRef;l=l.truncationTextRef;var Y={},V={},g={};return _.c("truncated-text",{class:_.KU((Y["yt-truncated-text"]=!0,Y["yt-truncated-text--overlay"]=function(){return G()==="overlay"},Y["yt-truncated-text--medium-text"]=function(){return R()==="medium"},Y["yt-truncated-text--large-text"]=function(){return R()==="large"},Y["yt-truncated-text--primary-text"]=function(){return G()==="primary-text"},Y)),
"on:click":b,style:function(){return"line-height: "+M()+"rem;"}},_.c("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:n,style:function(){return m()?"":"max-height: "+K()*M()+"rem;"}},_.c(_.mD,{text:S}),_.c("button",{"aria-disabled":!0,
disabled:!0,class:_.KU((V["yt-truncated-text__inline-button"]=!0,V["yt-truncated-text--hidden"]=function(){return!(!m()&&(P!=null&&P()||u()))},V)),
el:Z,style:function(){return"line-height: "+M()+"rem;"}},_.c(_.mD,{text:N}))),_.c("truncated-text-content",{class:_.KU("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:J,style:function(){return m()?"":"max-height: "+K()*M()+"rem;"},
"aria-hidden":"true"},_.c(_.mD,{text:S}),_.c("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:D,style:function(){return"line-height: "+M()+"rem;"}},_.c(_.mD,{text:N}))),_.c("button",{"aria-label":a,
class:_.KU((g["yt-truncated-text__absolute-button"]=function(){return!C()},g["yt-truncated-text__bottom-button"]=function(){return C()},g["yt-truncated-text--hidden"]=function(){return!(!m()&&(P!=null&&P()||u()))},g)),
el:l,style:function(){return"line-height: "+M()+"rem;"}},_.c(_.mD,{text:N})))},"Xb");
XbN.idomCompat={callbacks:{onTextClick:!0}};var Ygz=_.A(function(N){var b=N.data;N=N.className;var S=_.UB(function(){return g4u(b())},void 0,"uDhDke"),P=_.c(_.nM,null,_.c(_.W,{cond:function(){return b().heroText||b().image},
then:function(){return _.c(EKb,{data:b})}}),_.c(pbO,{data:b,
sizeSmall:function(){return b().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.c("yt-video-attribute-view-model",{class:N},_.c("div",{class:function(){var H=b();a:switch(H.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var K="yt-video-attribute-view-model--vertical";break a;default:K="yt-video-attribute-view-model--horizontal"}a:switch(H.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var C="yt-video-attribute-view-model--image-small";break a;default:C="yt-video-attribute-view-model--image-large"}a:switch(H.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var G=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":G="yt-video-attribute-view-model--image-avatar";break a;default:G=""}a:switch(H.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var a="yt-video-attribute-view-model--metadata-header";break a;default:a=""}a:switch(H.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var R="yt-video-attribute-view-model--container-card";break a;default:R=""}return["yt-video-attribute-view-model",K,C,
G,a,R,g4u(H)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.r5({"background-color":function(){var H=b();if(H.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var K="";else{K=H.lightColorPalette;H=H.darkColorPalette;var C,G=((C=_.aN().resolve(_.cq(_.T8)))==null?0:C())&&H?H:K;K=(K=G==null?void 0:G.section2Color)?_.o3(K):""}return K}})},_.c(_.W,{cond:S,
then:function(){return _.c(_.xg,{className:"yt-video-attribute-view-model__content-container",command:S,role:"group",ariaLabel:function(){return b().title}},P)},
else:function(){return _.c("div",{class:"yt-video-attribute-view-model__content-container"},P)}})))},"Yb");
Ygz.idomCompat=!0;var EKb=_.A(function(N){var b=N.data;var S,P=(S=_.aN().resolve(_.cq(_.T8)))==null?void 0:S(),H=function(){return P&&b().darkThemeImage?b().darkThemeImage:b().image},K=_.UB(function(){return e_e(b())},void 0,"UDqj0b");
return _.c("div",{class:"yt-video-attribute-view-model__hero-section"},_.c(_.Al,null,_.c(_.ZH,{when:H},function(){return _.c(_.gG,{data:function(){return H()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.c(_.ZH,{when:function(){return b().heroText}},function(){return _.c("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.c("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return b().heroText}))})),_.c(_.W,{cond:function(){return b().overflowMenuOnTap},
then:function(){return _.c("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.c(_.ZR,{data:K,iconName:"MORE_VERT"}))}}))},"Zb");
EKb.idomCompat=!0;var pbO=_.A(function(N){var b=N.data;N=N.sizeSmall;var S=function(){return b().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},P=_.UB(function(){return zS(_.jr({innertubeCommand:g4u(b())}))?"link":g4u(b())?"button":"group"},void 0,"e2MmYe"),H={};
return _.c("div",{class:_.KU("yt-video-attribute-view-model__metadata",(H["yt-video-attribute-view-model--small-font"]=N,H)),role:P},_.c("h1",{class:"yt-video-attribute-view-model__title"},function(){return b().title}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(){return _.c("h4",{class:"yt-video-attribute-view-model__subtitle"},_.c(_.W,{cond:S,then:function(){return _.c(XbN,{text:function(){return Vuo(b().subtitle)},
truncationText:function(){return Vuo(b().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.c("span",null,function(){return b().subtitle})}}))}}),_.c(_.W,{cond:function(){return b().secondarySubtitle},
then:function(K){return _.c("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.c(_.mD,{text:function(){var C=K();if(C!=null&&C.attachmentRuns){for(var G=[],a=_.O(C.attachmentRuns),R=a.next();!R.done;R=a.next())R=R.value,R.element&&G.push(Object.assign({},R,{element:Object.assign({},R.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));C=Object.assign({},C,{attachmentRuns:G})}return C}}))}}),_.c(_.kY,
{data:function(){return b().buttonViewModel}},{buttonViewModel:function(K){return _.c(_.j$,{data:K.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
pbO.idomCompat=!0;_.qu(Ygz,"yt-video-attribute-view-model",{props:{data:_.kg,className:_.kg}});var yd=function(){var N=_.z.apply(this,arguments)||this;N.useHighlightStyling=_.T("web_enable_deeper_metadata_highlight_styling");N.isSearch=!1;N.JSC$15520_lastScrollContainerWidth=NaN;N.pageLoadingFromNavigation=!1;N.currentIndex=0;N.supportComponentResize=!1;return N};
_.F(yd,_.z);_.v=yd.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.aA(this,this.onPageChange))};
_.v.detached=function(){document.removeEventListener("yt-page-type-changed",_.aA(this,this.onPageChange))};
_.v.getItemsPath=function(){return"data.cards"};
_.v.onIronResize=function(){this.updateListStyles()};
_.v.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var N;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(N=this.data)==null?void 0:N.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.T("problem_walkthrough_sd")&&!!this.centerItems};
_.v.computeCardListStyle=function(N){return N||null};
_.v.computeEmpty=function(N){return!this.get("cards.length",N)};
_.v.computeThumbnailStyle=function(N){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",N)||null};
_.v.computeHasSubtitle=function(N){return!!this.get("header.richListHeaderRenderer.subtitle",N)};
_.v.computeInitialCountNumber=function(N){return this.hasSquareMiniApp&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.v.computeUseFloorScrolling=function(N){return N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.v.computeHasGameCard=function(N){return(N=this.get("cards",N))?N.some(function(b){return b.gameCardRenderer}):!1};
_.v.computeCenterHeaderTitle=function(N){return!(N==null||!N.centerHeaderTitle)};
_.v.computeHasPortraitMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.v.computeHasSquareMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.v.computeHasSkinnyWidthPortraitMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1};
_.v.computeCenterItems=function(N){return!!N};
_.v.computeHasInfoPanel=function(N){var b;return N==null?void 0:(b=N.cards)==null?void 0:b.some(function(S){return S.infoPanelContentRenderer})};
_.v.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.v.getItemByIndex=function(N){var b=this.items.children;return b&&b.length>N?b[N]:void 0};
_.v.onPageChange=function(){var N=this;this.pageLoadingFromNavigation=!0;_.Dj.addJob(function(){N.pageLoadingFromNavigation=!1;_.PN(N.hostElement,"yt-terminate-video-preview-action")},8)};
_.v.updateListStyles=function(){if(_.T("problem_walkthrough_sd")&&this.JSC$15520_scrollContainer!==void 0){var N=this.JSC$15520_scrollContainer.clientWidth;N!==this.JSC$15520_lastScrollContainerWidth&&(this.JSC$15520_lastScrollContainerWidth=N,_.rq(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(N*.8,415)+"px"}),_.bC(this.hostElement,"iron-resize"))}};
_.d0.Object.defineProperties(yd.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.T("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.cards)==null?0:(S=b[0])==null?0:S.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.cards)==null?0:(S=b[0])==null?0:S.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return _.T("enable_desktop_amsterdam_info_panels")&&!!((N=this.data)==null?0:(b=N.cards)==null?0:(S=b[0])==null?0:S.infoPanelContentRenderer)}}});
yd.prototype.dataChanged=yd.prototype.dataChanged;yd.prototype.onIronResize=yd.prototype.onIronResize;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],yd.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.L(_.cO),_.y("design:type",Object)],yd.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yd.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],yd.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yd.prototype,"useHighlightStyling",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.y("design:type",Object)],yd.prototype,"cardListStyle",void 0);_.p([_.U({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.y("design:type",Boolean)],yd.prototype,"empty",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasSubtitle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.y("design:type",Boolean)],yd.prototype,"thumbnailStyle",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasGameCard",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.y("design:type",Boolean)],yd.prototype,"centerHeaderTitle",void 0);
_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasPortraitMiniApp",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasSquareMiniApp",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.p([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.y("design:type",Boolean)],yd.prototype,"hasInfoPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yd.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],yd.prototype,"inlineStructuredDescription",void 0);_.p([_.dq("#scroll-container"),_.y("design:type",HTMLDivElement)],yd.prototype,"JSC$15520_scrollContainer",void 0);
_.p([_.U({computed:"computeInitialCountNumber(data.style.type)"}),_.y("design:type",Number)],yd.prototype,"initialCount",void 0);_.p([_.U({computed:"computeUseFloorScrolling(data.style.type)"}),_.y("design:type",Boolean)],yd.prototype,"useFloorScrolling",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.y("design:type",Boolean)],yd.prototype,"centerItems",void 0);_.p([_.U(),_.y("design:type",Object)],yd.prototype,"pageLoadingFromNavigation",void 0);
_.p([_.U(),_.y("design:type",Object)],yd.prototype,"currentIndex",void 0);_.p([_.U(),_.y("design:type",Number)],yd.prototype,"scrollCount",void 0);_.p([_.U(),_.y("design:type",Object)],yd.prototype,"supportComponentResize",void 0);_.p([_.dq("#items"),_.y("design:type",HTMLDivElement)],yd.prototype,"items",void 0);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yd.prototype,"onIronResize",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yd.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.f("inlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yd.prototype,"hideNavigationButton",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yd.prototype,"modernChapters",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yd.prototype,"hasVideoAttributeViewModels",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yd.prototype,"modernInfoPanels",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],yd);
_.X(yd,"ytd-horizontal-card-list-renderer",function(){if(Jol!==void 0)return Jol;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Jol=N},{mode:_.sZ("kevlar_poly_si_batch_j072")?1:2});var y99=_.A(function(N){var b=N.data;var S={};return _.c("video-summary-content-view-model",{class:_.KU("videoSummaryContentViewModelHost",N.className,(S.videoSummaryContentViewModelHostIsSearch=N.isSearch,S))},_.c(_.zj,{each:function(){var P=[],H=b().paragraphs;if(H==null||!H.length)return[];for(var K=0;K<H.length;K++){var C=_.t(H[K],SPO),G=void 0;K>0&&(G=_.t(H[K-1],SPO));G&&!!G.marker===!!C.marker?P[P.length-1].paragraphs.push(C):P.push({isList:!!C.marker,paragraphs:[C]})}return P},
keyBy:"INDEX"},function(P){return _.c(_.W,{cond:function(){return P().isList},
then:function(){return _.c("ul",{class:"videoSummaryContentViewModelList"},_.c(_.zj,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(H){return _.c("li",{class:"videoSummaryContentViewModelListItem"},_.c(_.mD,{text:function(){return H().text}}))}))},
else:function(){return _.c("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.c(_.zj,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(H){return _.c("p",{class:"videoSummaryContentViewModelParagraph"},_.c(_.mD,{text:function(){return H().text}}))}))}})}),_.c(_.W,{cond:function(){return!!_.t(b().likeButtonViewModel,_.pS)&&!!_.t(b().dislikeButtonViewModel,_.YE)},
then:function(){return _.c("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.c("div",{class:"videoSummaryContentViewModelLikeButton"},_.c(_.aD,{data:function(){return _.t(b().likeButtonViewModel,_.pS)},
disableIconAnimation:!0})),_.c(_.cn,{data:function(){return _.t(b().dislikeButtonViewModel,_.YE)}}))}}))},"ac");
y99.idomCompat=!0;_.qu(y99,"video-summary-content-view-model",{props:{data:_.kg,isSearch:_.kg,className:_.kg}});var I8=function(){var N=_.z.apply(this,arguments)||this;var b,S;N.isExpanded=(S=(b=N.data)==null?void 0:b.isExpanded)!=null?S:!1;N.disableExpand=!1;N.showProminentLabel=!1;N.showRightSideLabel=!0;N.toggleExpandableContent=function(P){N.disableExpand||(P.stopPropagation(),_.ea(_.V7(P),N.hostElement,["info","expanded-subtitle"])||(N.isExpanded=!N.isExpanded,N.ytRendererBehavior.logExplicitClick(N.data),N.JSC$15531_cardList&&!_.T("expandable_metadata_a11y_fix_ks")&&_.W_(N,function(){_.Ov(N.hostElement)})))};
N.useSquareThumbnail=!1;N.startX=0;return N};
_.F(I8,_.z);_.v=I8.prototype;_.v.computeUseSquareThumbnail=function(){var N;return(N=this.data)==null?void 0:N.useSquareThumbnail};
_.v.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.v.dataChanged=function(){if(this.data){var N,b;this.isExpanded=(b=(N=this.data)==null?void 0:N.isExpanded)!=null?b:!1;var S,P,H,K;if(N=this.isDarkTheme()?(S=this.data)==null?void 0:(P=S.colorData)==null?void 0:P.darkColorPalette:(H=this.data)==null?void 0:(K=H.colorData)==null?void 0:K.lightColorPalette){var C,G;if((C=this.data)==null?0:(G=C.colorData)==null?0:G.vibrantColorPalette)N.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.FM(this.hostElement,N)}}};
_.v.isExpandedChanged=function(){this.isExpanded&&this.JSC$15531_cardList&&_.bC(this.JSC$15531_cardList,"iron-resize")};
_.v.computeIsExpanded=function(N){return!!N.isExpanded};
_.v.computeShowProminentLabel=function(N,b){var S;return!!(N==null?0:(S=N.header)==null?0:S.showLeadingCollapsedLabel)&&!b};
_.v.computeShowRightSideLabel=function(N,b){var S;return!(N==null?0:(S=N.header)==null?0:S.showLeadingCollapsedLabel)&&!b};
_.v.captureContentClick=function(N){if(!this.disableExpand)if(_.T("expandable_metadata_fix_killswitch")){var b=N.target;_.dzV(b,"ytd-macro-markers-list-item-renderer")||N.stopPropagation();(b==null?void 0:b.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.ea(_.V7(N),this.hostElement,["items"])||_.VC(_.V7(N),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.v.timestampClick=function(N){N.stopPropagation();var b,S;(N=(b=this.data)==null?void 0:(S=b.header)==null?void 0:S.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(N)};
_.v.onDown=function(N){N.stopPropagation();this.startX=N.detail?N.detail.x:0};
_.v.onUp=function(N){this.skipKeyInteraction(N)&&N.stopPropagation()};
_.v.skipKeyInteraction=function(N){var b=N.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||N.detail&&N.detail.x!==this.startX)return!0;N=_.V7(N);N=_.O(N);for(b=N.next();!b.done;b=N.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d0.Object.defineProperties(I8.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.t((N=this.data)==null?void 0:N.expandedContent,bi9)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.t((N=this.data)==null?void 0:N.expandedContent,_.b59)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.useCustomColors)&&!((b=this.data)==null||!b.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.data)==null?0:(b=N.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.data)==null?0:(b=N.header)==null?0:b.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.header)==null?void 0:b.expandedSubtitleTapCommand;N=S&&_.t(S,_.Hz);return _.T("web_open_ai_support_links_external_window")&&(N==null?void 0:N.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.header)==null?void 0:b.expandedSubtitleTapCommand;N=S&&_.t(S,_.Hz);return _.T("web_open_ai_support_links_external_window")&&(N==null?void 0:N.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.data)==null?0:(b=N.header)==null?0:b.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
I8.prototype.onUp=I8.prototype.onUp;I8.prototype.onDown=I8.prototype.onDown;I8.prototype.isExpandedChanged=I8.prototype.isExpandedChanged;I8.prototype.dataChanged=I8.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],I8.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],I8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],I8.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],I8.prototype,"disableExpand",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],I8.prototype,"isSearch",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],I8.prototype,"isWatch",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.y("design:type",Object)],I8.prototype,"showProminentLabel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.y("design:type",Object)],I8.prototype,"showRightSideLabel",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"hasVideoSummary",null);_.p([_.U({value:!1,reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"hasLockupViewModel",null);_.p([_.U({reflectToAttribute:!0}),_.f("data","isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"useCustomColors",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"showInfoButton",null);_.p([_.f("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"showTimestamp",null);_.p([_.f("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"showExpandedSubtitle",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],I8.prototype,"expandedSubtitleTarget",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],I8.prototype,"expandedSubtitleRel",null);_.p([_.f("data","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],I8.prototype,"showThumbnail",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],I8.prototype,"useVppShoppingDestinationStyle",null);
_.p([_.U(),_.y("design:type",Object)],I8.prototype,"toggleExpandableContent",void 0);_.p([_.dq("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],I8.prototype,"JSC$15531_cardList",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.y("design:type",Object)],I8.prototype,"useSquareThumbnail",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I8.prototype,"dataChanged",null);
_.p([_.W4("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],I8.prototype,"isExpandedChanged",null);_.p([_.RA("down"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],I8.prototype,"onDown",null);_.p([_.RA("up"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],I8.prototype,"onUp",null);
_.p([_.Uj({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],I8);
_.X(I8,"ytd-expandable-metadata-renderer",function(){if(p9E!==void 0)return p9E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return p9E=N},{mode:1});var IOd,D3l=function(){if(IOd!==void 0)return IOd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return IOd=N};_.qu(_.rZ,"yt-avatar-stack-view-model",{props:{className:_.kg,data:_.kg,overrides:_.kg,isOverlay:_.kg,useMediumText:_.kg,decorations:_.kg,hideAvatar:_.kg}});_.lo("itemSectionRenderer","videoRenderer","ytd-video-renderer");var DU=function(){var N=_.z.apply(this,arguments)||this;N.disableExpand=!1;N.shouldShowChannelInfo=!1;N.hasAttributedBylineText=!1;N.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return N};
_.F(DU,_.z);_.v=DU.prototype;_.v.computeUseSearchUi=function(){var N,b;return this.isSearch||((N=this.data)==null?void 0:(b=N.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.computeUseThreeLineTitle=function(){var N;return((N=this.data)==null?void 0:N.maxTitleLines)===3};
_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.T("polymer_video_renderer_defer_menu")&&!FXZ?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.v.attached=function(){_.K3(this.hostElement,"blue-links",_.T("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.C3(_.H4(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var N=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;N&&((b=_.t(N.commandMetadata,_.eD))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(N);this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15536_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.JSC$15536_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15536_inlinePreviewHoverListener)==null||qv(N)};
_.v.onTextWrapperClick=function(N){var b,S,P=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(S=this.data)==null?void 0:S.navigationEndpoint;b=_.ea(_.V7(N),this.hostElement,["expandable-metadata"]);!P||b&&!_.T("expandable_metadata_fix_killswitch")||_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.bC(this.hostElement,"yt-navigate",{endpoint:P})};
_.v.computeThumbnailWidth=function(N,b,S,P,H){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:P?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:S?360:b?128:N?210:246};
_.v.computeUseBiggerThumbs=function(N){return N&&_.T("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.v.computeHasAttributedBylineText=function(){var N;return!((N=this.data)==null||!N.attributedBylineText)};
_.v.computeVideoStyle=function(){if(_.T("enable_video_style")){var N,b;return(N=this.data)==null?void 0:(b=N.style)==null?void 0:b.value}};
_.v.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.handleHideItemSectionVideosByIdCommand=function(N){var b;N=(b=_.t(N,FO9))==null?void 0:b.videoId;this.data&&this.data.videoId===N&&(this.isHidden=!0)};
_.v.getMetadataSnippetContainerClass=function(N){return N?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.v.computeTitleText=function(N,b,S){return N?S:b};
_.v.computeDescriptionSnippet=function(N,b,S){return N?S:b};
_.v.computeSnippetText=function(N,b,S){return N?S:b};
_.v.computeNavigationEndpoint=function(N,b){return N?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint};
_.v.hideInlineTitleIcon=function(N,b){return N||!b};
_.d0.Object.defineProperties(DU.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var N;return(N=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?N:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!(this==null?0:(N=this.data)==null?0:(b=N.channelThumbnailSupportedRenderers)==null?0:(S=b.channelThumbnailWithLinkRenderer)==null?0:S.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.t((N=this.data)==null?void 0:N.avatar,SNE)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15536_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.d0.Object.defineProperties(DU,{template:{configurable:!0,enumerable:!0,get:function(){return D3l()}}});
DU.prototype.dataChanged=DU.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],DU.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.kJ),_.y("design:type",Object)],DU.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],DU.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],DU.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],DU.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DU.prototype,"isBackstageVideo",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DU.prototype,"isPostCompactVideo",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],DU.prototype,"isHistory",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DU.prototype,"isRichGridVideoPost",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DU.prototype,"isHidden",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],DU.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.y("design:type",Boolean)],DU.prototype,"useSearchUi",void 0);_.p([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.y("design:type",Boolean)],DU.prototype,"useThreeLineTitle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.y("design:type",Boolean)],DU.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.y("design:type",Object)],DU.prototype,"videoStyle",void 0);_.p([_.U({computed:"computeDisableExpand(videoStyle)"}),_.y("design:type",Object)],DU.prototype,"disableExpand",void 0);
_.p([_.U({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.y("design:type",Object)],DU.prototype,"shouldShowChannelInfo",void 0);_.p([_.U({computed:"computeHasAttributedBylineText(data)"}),_.y("design:type",Object)],DU.prototype,"hasAttributedBylineText",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],DU.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.y("design:type",String)],DU.prototype,"inlineTitleIcon",void 0);_.p([_.U({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.y("design:type",Object)],DU.prototype,"computedNavigationEndpoint",void 0);_.p([_.U({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(N,b){return _.GL(N.entities,"searchVideoResultEntity",b)}}),
_.y("design:type",Object)],DU.prototype,"searchVideoResultEntity",void 0);_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],DU.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],DU.prototype,"JSC$15536_dismissibleMedia",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],DU.prototype,"dataChanged",null);
_.p([_.f("searchVideoResultEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DU.prototype,"hideTranslation",null);_.p([_.f("searchVideoResultEntity"),_.y("design:type",Array),_.y("design:paramtypes",[])],DU.prototype,"hiddenBadgeGroups",null);_.p([_.f("data","useAvatar"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DU.prototype,"shouldShowChannelThumbnail",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DU.prototype,"useAvatar",null);
_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],DU.prototype,"isHovered",null);_.p([_.Uj({is:"ytd-video-renderer",disableElementRegistration:!0})],DU);_.X(DU,"ytd-video-renderer",function(){return D3l()},{mode:_.sZ("kevlar_poly_si_batch_j047")?1:2});var Vd=function(){var N=_.z.apply(this,arguments)||this;N.editDialog=null;N.roundedContainer=!0;N.isLoading=!1;N.isRichGrid=!1;N.isRichGridRepost=!1;N.reduceSidePaddings=_.T("reduce_side_paddings_in_shelf");N.JSC$15543_spinnerEl=null;return N};
_.F(Vd,_.z);_.v=Vd.prototype;
_.v.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){var N=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,S=this.data.actions&&this.data.actions.length;b<S;b++)this.openEditDialog(_.t(this.data.actions[b],KvE));if((b=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(b=this.get("buttonRenderer.hint.hintRenderer.hintId",b))&&b.startsWith("share-post-hint")){var P=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(P){_.zs.getInstance();var H=AN(_.gy(_.cN("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Dj.addLowPriorityJob(function(){_.sR(N.hostElement,H,P)})}}}};
_.v.updatePoll=function(N){N>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15543_spinnerEl||(this.JSC$15543_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.H4(this.hostElement).appendChild(this.JSC$15543_spinnerEl));this.JSC$15543_spinnerEl&&(this.JSC$15543_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(N){var b=this.get("updateCommentDialogEndpoint",N.detail.endpoint);b&&(this.openEditDialog(b),N.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(N,b){b&&this.updatePoll(b.selectedChoiceIndex)};
_.v.onYtServiceRequestSent=function(N,b){var S;b.endpoint&&(_.t(b.endpoint,nul)||_.t(b.endpoint,WL9)&&((S=_.t(b.endpoint,WL9))==null||!S.clientActions))&&(this.isLoading=!0);if(b.actions)for(N=0;N<b.actions.length;N++)S=b.actions[N],_.t(S,Ds)&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S==void 0&&(S=-1),this.updatePoll(S))};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.editDialogEl.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.v.computeIsPostHidden=function(N,b){return!!N||b};
_.v.computeSurfaceType=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeUsesCompactLockup=function(N){return N==="BACKSTAGE_SURFACE_TYPE_HOME"||N==="BACKSTAGE_SURFACE_TYPE_SEARCH"||N==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||N==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||N==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||N==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeShowWithoutToolbar=function(N){return!N.actionButtons&&!N.actionMenu};
_.v.computePostAttachment=function(N){if(N.backstageAttachment){if(_.t(N.backstageAttachment,eYS))return"poll";if(_.t(N.backstageAttachment,iGz))return"quiz";if(_.t(N.backstageAttachment,_.ar))return"video";if(_.t(N.backstageAttachment,JD9))return"uploaded-videos";if(_.t(N.backstageAttachment,oSN))return N.contentText?"image":"image-only";if(_.t(N.backstageAttachment,uok))return"playlist"}return"none"};
_.v.computePostTabIndex=function(N){return N?0:-1};
_.v.computeButtonTooltipPosition=function(N){return this.computeUsesCompactLockup(N)?"top":"bottom"};
_.v.computeHasText=function(N){return!(N==null||!N.contentText)};
_.v.onTap=function(N){var b,S;if(((b=this.data)==null?0:b.navigationEndpoint)&&((S=this.data)==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.d0.Object.defineProperties(Vd.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.gy("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,eYS))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,JD9))}}});
Vd.prototype.onYtServiceRequestCompleted=Vd.prototype.onYtServiceRequestCompleted;Vd.prototype.onYtServiceRequestSent=Vd.prototype.onYtServiceRequestSent;Vd.prototype.onYtCommentPollRevert=Vd.prototype.onYtCommentPollRevert;Vd.prototype.onYtCommentboxDismiss=Vd.prototype.onYtCommentboxDismiss;Vd.prototype.onYtNavigate=Vd.prototype.onYtNavigate;Vd.prototype.isLoadingChanged=Vd.prototype.isLoadingChanged;Vd.prototype.dataChanged=Vd.prototype.dataChanged;Vd.prototype.contentTextChanged=Vd.prototype.contentTextChanged;
_.p([_.L(_.cO),_.y("design:type",Object)],Vd.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Vd.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Vd.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],Vd.prototype,"editDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Vd.prototype,"roundedContainer",void 0);_.p([_.U(),_.y("design:type",Object)],Vd.prototype,"isLoading",void 0);_.p([_.U({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.y("design:type",String)],Vd.prototype,"surface",void 0);
_.p([_.U({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Vd.prototype,"usesCompactLockup",void 0);_.p([_.U({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Vd.prototype,"showWithoutToolbar",void 0);_.p([_.U({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.y("design:type",String)],Vd.prototype,"attachment",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Vd.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Vd.prototype,"isRichGridRepost",void 0);_.p([_.U({reflectToAttribute:!0,value:_.T("use_better_post_dismissals")}),_.y("design:type",Boolean)],Vd.prototype,"useBetterPostDismissals",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Vd.prototype,"reduceSidePaddings",void 0);
_.p([_.U({computed:"computeHasText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Vd.prototype,"hasText",void 0);_.p([_.dq("#expander"),_.y("design:type",Object)],Vd.prototype,"expander",void 0);_.p([_.dq("#action-buttons"),_.y("design:type",Object)],Vd.prototype,"actionButtons",void 0);_.p([_.dq("#edit-dialog"),_.y("design:type",HTMLElement)],Vd.prototype,"editDialogEl",void 0);
_.p([_.W4("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vd.prototype,"contentTextChanged",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vd.prototype,"dataChanged",null);_.p([_.W4("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vd.prototype,"isLoadingChanged",null);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Vd.prototype,"onYtNavigate",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vd.prototype,"onYtCommentboxDismiss",null);_.p([_.RA("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Vd.prototype,"onYtCommentPollRevert",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],Vd.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],Vd.prototype,"onYtServiceRequestCompleted",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vd.prototype,"voteCount",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vd.prototype,"commentCount",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vd.prototype,"hasPoll",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vd.prototype,"hasUploadedVideo",null);_.p([_.Uj({is:"ytd-post-renderer",disableElementRegistration:!0})],Vd);
_.X(Vd,"ytd-post-renderer",function(){if(Chl!==void 0)return Chl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Chl=N},{mode:1});var VbN;var gK9;var gZ=function(){return _.z.apply(this,arguments)||this};
_.F(gZ,_.z);gZ.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],gZ.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gZ.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gZ.prototype,"data",void 0);
_.p([_.U({value:"$.items.children"}),_.y("design:type",String)],gZ.prototype,"itemsPath",void 0);_.p([_.U({value:1}),_.y("design:type",Number)],gZ.prototype,"initialCount",void 0);_.p([_.U({reflectToAttribute:!0,value:_.T("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],gZ.prototype,"useSmallerPostImageAttachments",void 0);_.p([_.U(),_.y("design:type",String)],gZ.prototype,"surface",void 0);_.p([_.Uj({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gZ);
_.X(gZ,"ytd-post-multi-image-renderer",function(){if(gK9!==void 0)return gK9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return gK9=N},{mode:_.sZ("kevlar_poly_si_batch_j079")?1:2});var eI9={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
eJ=function(){var N=_.z.apply(this,arguments)||this;N.hasInlineCommentSection=!1;N.editDialog=null;N.isLoading=!1;N.shouldHideAuthor=!1;N.shouldShowVideoTime=!1;N.isInEngagementPanel=!1;N.hideBorder=!1;N.usesFullLockup=!1;N.shouldShowMenuInCompactView=!1;N.JSC$15558_spinnerEl=null;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.F(eJ,_.z);_.v=eJ.prototype;_.v.configureRendererStamper=function(){return eI9};
_.v.computeIsPollHeaderEnabled=function(N){return(N==null?void 0:N.pollMetadataIcon)!=null};
_.v.getPublishTimeStampString=function(N,b){b=new Date((Number(b)-60*((new Date).getTimezoneOffset()-(new Date(Number(b)*1E3)).getTimezoneOffset()))*1E3);b=(new V4(10)).format(b);if(N&&N.runs&&N.runs.length)for(var S=0;S<N.runs.length;S++)N.runs[S].text&&(N.runs[S].text=N.runs[S].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",b));return N};
_.v.created=function(){this.JSC$15558_spinnerEl=null};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var N;if((N=this.data)==null?0:N.actions){N=_.O(this.data.actions);for(var b=N.next();!b.done;b=N.next())this.openEditDialog(_.t(b.value,KvE))}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){_.H4(this.hostElement).querySelector("#action-buttons").reply()};
_.v.updatePoll=function(N,b){b&&this.set("data.pollMetadataVoteCountText",b);this.hasInlineCommentSection&&(N=N>=0,b=_.H4(this.hostElement).querySelector("#action-buttons"),N?b.reply():b.hideReplyDialog())};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15558_spinnerEl||(this.JSC$15558_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.H4(this.hostElement).appendChild(this.JSC$15558_spinnerEl));this.JSC$15558_spinnerEl&&(this.JSC$15558_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(N){var b=this.get("updateCommentDialogEndpoint",N.detail.endpoint);b&&(this.openEditDialog(b),N.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(N,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)};
_.v.onYtServiceRequestSent=function(N,b){N.stopPropagation();N=_.t(b.endpoint,WL9);if(_.t(b.endpoint,nul)||N&&!N.clientActions)this.isLoading=!0;if(b.actions)for(N=0;N<b.actions.length;N++){var S=b.actions[N],P=_.t(S,Ds);P&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S===void 0&&(S=-1),this.updatePoll(S,P.totalVotes))}};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.editDialogElement.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.v.computeIsBodyHidden=function(N,b){return!!N||b};
_.d0.Object.defineProperties(eJ.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var N=this.data,b=N.showPostAuthorBackgroundHighlight,S=N.postAuthorBadgeType,P=N.authorEndpoint;if(!b&&S!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&S!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var H,K,C;N=_.gy(((H=N.authorText)==null?void 0:(K=H.runs)==null?void 0:(C=K[0])==null?void 0:C.text)||"");H=void 0;switch(S){case "POST_AUTHOR_BADGE_TYPE_ARTIST":H={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":H={iconType:b?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:N,authorEndpoint:P,authorCreator:b,icon:H}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var N,b;if((N=this.data)==null?0:(b=N.pollMetadataIcon)==null?0:b.iconType)return _.C7(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.gy("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,eYS))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,iGz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.t(this.data.backstageAttachment,JD9))}}});
eJ.prototype.onYtServiceRequestCompleted=eJ.prototype.onYtServiceRequestCompleted;eJ.prototype.onYtServiceRequestSent=eJ.prototype.onYtServiceRequestSent;eJ.prototype.onYtCommentPollRevert=eJ.prototype.onYtCommentPollRevert;eJ.prototype.onYtCommentboxDismiss=eJ.prototype.onYtCommentboxDismiss;eJ.prototype.onYtNavigate=eJ.prototype.onYtNavigate;eJ.prototype.isLoadingChanged=eJ.prototype.isLoadingChanged;eJ.prototype.dataChanged=eJ.prototype.dataChanged;eJ.prototype.contentTextChanged=eJ.prototype.contentTextChanged;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],eJ.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eJ.prototype,"rendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],eJ.prototype,"rendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],eJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.dq("#contentTextExpander"),_.y("design:type",Object)],eJ.prototype,"expander",void 0);_.p([_.dq("#edit-dialog"),_.y("design:type",Element)],eJ.prototype,"editDialogElement",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"hasInlineCommentSection",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"editDialog",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"isLoading",void 0);
_.p([_.U({computed:"computeIsPollHeaderEnabled(data)"}),_.y("design:type",Boolean)],eJ.prototype,"isPollHeaderEnabled",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"shouldHideAuthor",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"shouldShowVideoTime",void 0);_.p([_.U(),_.y("design:type",Object)],eJ.prototype,"isInEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],eJ.prototype,"hideBorder",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],eJ.prototype,"usesFullLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],eJ.prototype,"shouldShowMenuInCompactView",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eJ.prototype,"authorCommentBadge",null);_.p([_.f("isInEngagementPanel"),_.y("design:type",Number),_.y("design:paramtypes",[])],eJ.prototype,"postTextMaxLines",null);
_.p([_.f("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],eJ.prototype,"pollIcon",null);_.p([_.W4("data.contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eJ.prototype,"contentTextChanged",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eJ.prototype,"dataChanged",null);
_.p([_.W4("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eJ.prototype,"isLoadingChanged",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],eJ.prototype,"onYtNavigate",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eJ.prototype,"onYtCommentboxDismiss",null);
_.p([_.RA("yt-comment-poll-revert"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],eJ.prototype,"onYtCommentPollRevert",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],eJ.prototype,"onYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],eJ.prototype,"onYtServiceRequestCompleted",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eJ.prototype,"voteCount",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],eJ.prototype,"commentCount",null);
_.p([_.f("data.backstageAttachment"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eJ.prototype,"hasPoll",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eJ.prototype,"hasQuiz",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eJ.prototype,"hasUploadedVideo",null);_.p([_.Uj({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],eJ);
_.X(eJ,"ytd-backstage-post-renderer",function(){if(VbN!==void 0)return VbN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return VbN=N},{mode:1});var $3E;var $3=function(){var N=_.z.apply(this,arguments)||this;N.editDialog=null;N.showExpandButton=!1;N.isRichGrid=!1;N.usesFullLockup=!1;return N};
_.F($3,_.z);_.v=$3.prototype;_.v.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.v.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.v.computeShowExpandButton=function(N){return this.usesCompactLockup||N&&N.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.v.computeUsesCompactLockup=function(N){return!!N.condensedContent};
_.v.computeShowFullContentText=function(N){return!N};
_.v.onYtNavigate=function(N){N=this.get("updateCommentDialogEndpoint",N.detail.endpoint);this.openEditDialog(N)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.repostEditDialogEl.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.v.onTap=function(N){if(this.data){var b=null;this.usesCompactLockup&&!_.VC(_.V7(N)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):N.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",N.target.data));b&&_.bC(this.hostElement,"yt-navigate",{endpoint:b})}};
$3.prototype.onYtCommentboxDismiss=$3.prototype.onYtCommentboxDismiss;$3.prototype.onYtNavigate=$3.prototype.onYtNavigate;$3.prototype.dataChanged=$3.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$3.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],$3.prototype,"editDialog",void 0);_.p([_.U({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],$3.prototype,"usesCompactLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$3.prototype,"showExpandButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$3.prototype,"isRichGrid",void 0);
_.p([_.U({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.y("design:type",Boolean)],$3.prototype,"showFullContentText",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$3.prototype,"usesFullLockup",void 0);_.p([_.dq("#more"),_.y("design:type",Object)],$3.prototype,"moreButtonEl",void 0);_.p([_.dq("#repost-content-text"),_.y("design:type",HTMLElement)],$3.prototype,"repostContentTextEl",void 0);
_.p([_.dq("#repost-edit-dialog"),_.y("design:type",HTMLElement)],$3.prototype,"repostEditDialogEl",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$3.prototype,"dataChanged",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$3.prototype,"onYtNavigate",null);
_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$3.prototype,"onYtCommentboxDismiss",null);_.p([_.Uj({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],$3);
_.X($3,"ytd-shared-post-renderer",function(){if($3E!==void 0)return $3E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $3E=N},{mode:1});var hIE;var qgd;var hr=function(){return _.z.apply(this,arguments)||this};
_.F(hr,_.z);hr.prototype.attached=function(){var N=this;this.networkStatusManager||(this.networkStatusManager=new _.sv,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){N.onlineHandler()}))};
hr.prototype.detached=function(){var N=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){N.onlineHandler()}),delete this.networkStatusManager)};
hr.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hr.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],hr);
_.X(hr,"ytd-reload-page-button-renderer",function(){if(qgd!==void 0)return qgd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return qgd=N},{mode:1});var wbc={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},qq=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(qq,_.z);_.v=qq.prototype;_.v.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.v.computeHasBodyText=function(N){return!!N.bodyText};
_.v.computeButtons=function(N){var b=[];N.ctaButton&&b.push(N.ctaButton);N.secondaryButton&&b.push(N.secondaryButton);return b};
_.v.computeRendererStyle=function(N){return N.style?N.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():N.icon?"":"no-icon"};
_.v.getIconName=function(N,b){b=b===void 0?!1:b;if(N===void 0)return"";N=this.get("icon.iconType",N);var S;_.T("enable_hlp_client_icon_pick")?S=this.getThemedIcon(N,b):S=N;(b=wbc[S])||(b="yt-icons");return[b,S].join(":")};
_.v.getThemedIcon=function(N,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(N)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(N)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":N};
_.v.isThumbnail=function(N){return!!N.thumbnail};
_.v.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qq.prototype,"data",void 0);
_.p([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],qq.prototype,"rendererStyle",void 0);_.p([_.U({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.y("design:type",String)],qq.prototype,"iconName",void 0);_.p([_.U({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],qq.prototype,"thumbnail",void 0);_.p([_.U({computed:"computeButtons(data)"}),_.y("design:type",Array)],qq.prototype,"buttons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],qq.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],qq.prototype,"hasBodyText",void 0);_.p([_.Uj({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],qq);
_.H7()(qq,"ytd-background-promo-renderer",function(){if(hIE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);hIE=N}N=hIE;return N},{allowedProps:["data"],
mode:1});var Nhl;var wZ=function(){return _.z.apply(this,arguments)||this};
_.F(wZ,_.z);_.d0.Object.defineProperties(wZ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(K=H.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wZ.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wZ.prototype,"collectionStack",null);_.p([_.Uj({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],wZ);
_.X(wZ,"ytd-compact-station-renderer",function(){if(Nhl!==void 0)return Nhl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Nhl=N},{mode:1});var b49;var N1=function(){var N=_.z.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.F(N1,_.z);N1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],N1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],N1.prototype,"isRichGrid",void 0);_.p([_.Uj({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],N1);
_.X(N1,"ytd-grid-channel-renderer",function(){if(b49!==void 0)return b49;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return b49=N},{mode:1});var SOZ;var bU=function(){return _.z.apply(this,arguments)||this};
_.F(bU,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bU.prototype,"data",void 0);_.p([_.Uj({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],bU);
_.X(bU,"ytd-grid-movie-playlist-renderer",function(){if(SOZ!==void 0)return SOZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return SOZ=N},{mode:1});var Pl4;var Sq=function(){var N=_.z.apply(this,arguments)||this;N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.modernButtons=_.T("web_modern_buttons");return N};
_.F(Sq,_.z);Sq.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Sq.prototype.configureRendererStamper=function(){return{"data.menu":eE}};
Sq.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Sq.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.T("woffle_playlist_renderer_killswitch")){var N,b=ARE(this.entityInfo,this.transferState,this.downloadProgress,(N=this.data)==null?void 0:N.playlistId,this.isOnline);N=b.viewPlaylistText;var S=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!N||!!S;this.set("data.viewPlaylistText",N);S&&S.length>0&&this.set("data.badges",S);b&&b.length>0&&this.set("data.thumbnailOverlays",
b)}};
_.d0.Object.defineProperties(Sq.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.menu)}}});
Sq.prototype.transferStateChanged=Sq.prototype.transferStateChanged;Sq.prototype.dataChanged=Sq.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],Sq.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Sq.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({selector:_.$ZE,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],Sq.prototype,"downloadProgress",void 0);_.p([_.U({selector:_.Zb,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],Sq.prototype,"transferState",void 0);_.p([_.U({selector:eYL,selectorArgs:["data.playlistId"]}),_.y("design:type",Object)],Sq.prototype,"entityInfo",void 0);_.p([_.U({selector:_.J0}),_.y("design:type",Boolean)],Sq.prototype,"isOnline",void 0);
_.p([_.U(),_.y("design:type",Object)],Sq.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Sq.prototype,"downloadRenderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Sq.prototype,"modernButtons",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Sq.prototype,"isDownloads",void 0);_.p([_.f("transferState"),_.U({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],Sq.prototype,"downloadState",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Sq.prototype,"menuHidden",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sq.prototype,"dataChanged",null);_.p([_.t_("transferState","downloadProgress","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sq.prototype,"transferStateChanged",null);
_.p([_.Uj({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Sq);
_.X(Sq,"ytd-grid-playlist-renderer",function(){if(Pl4!==void 0)return Pl4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Pl4=N},{mode:1});var H49;var P8=function(){return _.z.apply(this,arguments)||this};
_.F(P8,_.z);P8.prototype.configureRendererStamper=function(){return{"data.menu":eE,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d0.Object.defineProperties(P8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(K=H.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],P8.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],P8.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],P8.prototype,"data",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],P8.prototype,"collectionStack",null);_.p([_.Uj({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],P8);
_.X(P8,"ytd-grid-radio-renderer",function(){if(H49!==void 0)return H49;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return H49=N},{mode:1});var sZE;var H8=function(){return _.z.apply(this,arguments)||this};
_.F(H8,_.z);H8.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
H8.prototype.computeNavigationEndpoint=function(N){return YwL(N==null?void 0:N.navigationEndpoint)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],H8.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],H8.prototype,"data",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],H8.prototype,"computedNavigationEndpoint",void 0);
_.p([_.Uj({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],H8);
_.X(H8,"ytd-grid-show-renderer",function(){if(sZE!==void 0)return sZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sZE=N},{mode:1});var KEN;_.sU=function(N){this.playerClient=N};
_.v2b=function(N,b,S){S=S===void 0?{}:S;return N.playerClient.setOption("ad",b,S)};
_.sU.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.sU.prototype.executeCommand=function(N,b){this.getOptions().includes("executeCommand")?_.v2b(this,"executeCommand",{command:N,layoutId:b}):_.yw("Calling executeCommand when adModule is not loaded")};var KC=function(){return _.z.apply(this,arguments)||this};
_.F(KC,_.z);KC.prototype.getLayoutId=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
KC.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var N=_.qE(),b=this.getLayoutId(),S=this.data.clickthroughEndpoint;N&&b&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(P){(new _.sU(P)).executeCommand(S,b)}):_.bC(this.hostElement,"yt-navigate",{endpoint:S})}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],KC);
_.X(KC,"ytd-shopping-companion-item-renderer",function(){if(KEN!==void 0)return KEN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KEN=N},{mode:1});var O4b;var OU=function(){var N=_.z.apply(this,arguments)||this;N.isExpandableContent=!1;return N};
_.F(OU,_.z);_.d0.Object.defineProperties(OU.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?void 0:N.price)||((b=this.data)==null?void 0:(S=b.dealsData)==null?void 0:S.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var N,b;if((N=this.data)!=null&&N.dealsData&&((b=this.data)==null||!b.priceReplacementText)){N=this.data.dealsData;var S,P,H;return((S=N.salesData)==null?void 0:S.originalPrice)||((P=N.priceDropData)==null?void 0:P.referencePrice)||((H=N.promotionData)==null?void 0:H.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var N,b;return(N=this.data)==null?void 0:(b=N.dealsData)==null?void 0:b.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],OU.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],OU.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],OU.prototype,"isExpandableContent",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"showCta",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"ctaText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"hasPriceTopPosition",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"hasPriceBottomPosition",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"useNewStyle",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"showPriceReplacementText",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"priceValue",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"showDeal",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"showAffiliateDisclaimer",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"useSaleStyle",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"useFromBrandCtaStyle",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"useFromVendorCtaStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],OU.prototype,"useShoppingCollectionCtaStyle",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],OU);
_.X(OU,"ytd-vertical-product-card-renderer",function(){if(O4b!==void 0)return O4b;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return O4b=N},{mode:1});var Cll;var CC=function(){return _.z.apply(this,arguments)||this};
_.F(CC,_.z);CC.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],CC.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CC.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],CC);
_.X(CC,"ytd-grid-movie-renderer",function(){if(Cll!==void 0)return Cll;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Cll=N},{mode:1});var GhS;var Ga=function(){var N=_.z.apply(this,arguments)||this;N.roundedFix=_.T("web_enable_merch_item_rounding_fix");N.itemStyle="small-item";return N};
_.F(Ga,_.z);Ga.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var N,b,S,P,H=(b=_.t((N=this.data)==null?void 0:N.buttonCommand,_.cqE))==null?void 0:(S=b.item)==null?void 0:(P=S.notificationTextRenderer)==null?void 0:P.successResponseText;H&&_.$KO(this.hostElement,H)}};
_.d0.Object.defineProperties(Ga.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ga.prototype,"roundedFix",void 0);_.p([_.U(),_.y("design:type",Object)],Ga.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],Ga.prototype,"itemStyle",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"hasPrice",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"hasPriceReplacementText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"hasAdditionalFeesText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"hasAffiliateDisclaimer",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"isProductPlaceholder",null);
_.p([_.U(),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"hideOpenInNewIcon",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ga.prototype,"ariaLabel",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Ga);
_.X(Ga,"ytd-merch-shelf-item-renderer",function(){if(GhS!==void 0)return GhS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GhS=N},{mode:1});_.qu(_.A(function(N){return _.c("button-card-view-model",{el:_.VN(_.iK(function(){return N.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return N.data().title},
role:"button"},_.c(_.of,{model:{}}),_.c("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.c("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.c(_.W,{cond:function(){return N.data().image},
then:function(b){return _.c(_.gG,{data:b,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.c("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return N.data().title})))},"bc"),"button-card-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){N=_.h_(N,{className:void 0});var b=N.data;N=N.className;var S=_.UB(function(){return b().onTapCommand},void 0,"SXkP9e");
return _.c("ytd-shopping-item-card",{class:_.KU("ytdShoppingItemCardHost",N)},_.c(_.xg,{command:S,className:"ytdShoppingItemCardHostLink"},_.c("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.c(_.kY,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(P){return _.c(_.o8,{data:P.data,
aspectRatio:3})}})),_.c("div",null,_.c("p",{class:"ytdShoppingItemCardHostItemTitle"},_.c(_.mD,{text:function(){return b().itemTitle}})),_.c("p",{class:"ytdShoppingItemCardHostPrice"},_.c(_.mD,{text:function(){return b().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.kg,
className:_.kg}});var rWc={isAdsVideo:!0},cWz={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},ak9={showPlayerControls:!1,videoPreviewDurationMs:15E3},RHV={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},WES={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var Dz=null,h_Y={};var NWf="WEB_PAGE_TYPE_ACCOUNTS WEB_PAGE_TYPE_WELCOME WEB_PAGE_TYPE_ACCOUNT_SELECTOR WEB_PAGE_TYPE_SIGN_IN_IDENTIFIER_ENTRY WEB_PAGE_TYPE_SIGN_IN_PASSWORD_ENTRY WEB_PAGE_TYPE_SIGN_IN_DEVICE_PROMPT_CHALLENGE WEB_PAGE_TYPE_UNKNOWN".split(" "),rl={},brE=(rl.FEwhat_to_watch="home",rl.FEhashtag="hashtag",rl.FEtrending="trending",rl.FEhistory="history",rl.SPunlimited="premium",rl.FEmemberships_and_purchases="paid_memberships",rl.SPredeem_code="redeem",rl.SPverify_location="locate",rl.SPminor_moment="minor_moment",
rl.FEmini_app_container="mini_app",rl.FEnews_destination="news",rl.SPopen_in_app="open_in_app",rl.FEexplore="explore",rl.FEsubscriptions="subscriptions",rl.FEsfv_audio_pivot="sfv_audio_pivot",rl.FEplaylist_aggregation="playlist_aggregation",rl);document.getElementById("theme-meta");document.getElementById("app");document.getElementById("player");document.getElementById("player-container-id");document.getElementById("player-control-container");document.getElementById("player-endscreen-container");document.getElementById("player-shorts-container");document.getElementById("player-cinematics-container");document.getElementById("full-screen-content-id");_.KA("init");var n2d=function(){},ThV=_.A(function(N){var b=N.data;
var S=N.inlineMetadata;var P=N.aspectRatio;var H=N.scrimStyle;var K=N.className;var C=N.useDefaultStyle;var G=N.titleStyle;var a=new n2d,R=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",n=_.UB(function(){return(C==null?0:C())?R==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),d=_.UB(function(){return _.he(S)||n()||!1},void 0,"SEL6Qd"),m=function(){return(H==null?void 0:H())!==void 0?H==null?void 0:H():1},
k=_.UB(function(){return b().belowThumbnailMetadata||!d()},void 0,"KAqk1b");
N=_.nt({visibilityCallback:function(se){var Ca=b().onFirstVisible;se&&Ca&&_.AM(Ca)},
showOption:{calledOnce:!0,state:"visible"}});var M=_.VN(),l={},u=_.KU(function(){return n(),"shortsLockupViewModelHostThumbnailContainer"},(l.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.he(P)===1},l.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.he(P)===2},l.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.T("web_shorts_2_by_3_lockups_study")&&!_.T("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
l)),J=_.UB(function(){if(_.he(P)===1)return 1;
_.he(P);return 2},void 0,"Bg5Es"),Z,D=function(){if(a){var se;
(se=Z)==null||qv(se);var Ca;if(a.hostElement&&((Ca=a.data)==null?0:Ca.inlinePlayerData)){var ML,na;se=((ML=a.data)==null?0:(na=ML.inlinePlayerData)==null?0:na.enableAudioControl)?Object.assign({},WES):Object.assign({},RHV);var To,jp;((To=a.data)==null?void 0:(jp=To.inlinePlayerData)==null?void 0:jp.maxPlaybackLengthSec)!==void 0&&(se.videoPreviewDurationMs=a.data.inlinePlayerData.maxPlaybackLengthSec*1E3);Z=Zz({mediaRenderer:a,lockupElement:a.hostElement,thumbnailElement:M.value,videoPreviewOpts:se})}}};
_.gA(function(){a&&(a.data=b(),D())},"wo9C7e");
var Y=_.UB(function(){return b().thumbnail},void 0,"haijYd");
l=_.UB(function(){return b().badge},void 0,"RpDeSe");
var V=_.UB(function(){return b().onTap},void 0,"hOfuOb"),g={},e={};
return _.c("ytm-shorts-lockup-view-model",{el:_.VN(function(se){a&&(a.hostElement=se)},D,N),
class:_.KU("shortsLockupViewModelHost",K)},_.c(_.nM,null,_.c(_.xg,{command:V,className:_.KU("shortsLockupViewModelHostEndpoint",(g.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!k()},g),"reel-item-endpoint",""),
ariaHidden:function(){return!d()},
tabIndex:function(){return d()?0:-1}},_.c("div",{el:M,
class:_.KU("shortsLockupViewModelHostThumbnailParentContainer",(e.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!n()},e))},_.c(_.W,{cond:Y,
then:function(){return _.c("div",{class:u},_.c(_.gG,{data:function(){var se;return(se=Y==null?void 0:Y())!=null?se:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.c(_.kY,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(se){return _.c(_.o8,{data:se.data,
aspectRatio:function(){return J()},
disableRounding:function(){return n()}})}}),null),_.c(_.W,{cond:d,
then:function(){return _.c(dgd,{data:b,scrimStyle:m,useDefaultStyle:C,titleStyle:G})}}),_.c(_.kY,{data:l},{badgeViewModel:function(se){return _.c(_.LH,{data:se.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.c(_.W,{cond:function(){return d()&&b().menuOnTap},
then:function(){return _.c(mgN,{data:b,inlineMetadata:!0})}}),_.c(_.W,{cond:k,
then:function(){return _.c(khc,{data:b,useDefaultStyle:C,inlineMetadata:d})}})))},"ec"),dgd=_.A(function(N){var b=N.data;
var S=N.scrimStyle;var P=N.useDefaultStyle;var H=N.titleStyle;var K=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",C=P&&_.T("web_hide_primary_text_for_pivot_panel"),G=_.UB(function(){return(P==null?0:P())?K==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
N={};N=_.KU("shortsLockupViewModelHostInlineMetadata",(N.shortsLockupViewModelHostMetadataRounded=function(){return!G()},N.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(S==null?void 0:S())===3&&!_.T("enable_shorts_lockup_new_scrim")},N.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(S==null?void 0:S())===3&&_.T("enable_shorts_lockup_new_scrim")},N.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(S==null?void 0:S())===2||(S==null?void 0:
S())===4},N.shortsLockupViewModelHostShowOverPlayer=function(){return!0},N),"image-overlay-text");
var a={};return _.c("div",{class:N},_.c("h3",{class:_.KU("shortsLockupViewModelHostMetadataTitle",(a.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(S==null?void 0:S())===4},a.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return b().belowThumbnailMetadata},a.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(H==null?void 0:H())===1},a.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(H==null?void 0:H())===2},a)),
"aria-label":function(){return b().accessibilityText}},_.c(_.W,{cond:function(){var R;
return!((R=b().overlayMetadata)==null||!R.primaryText)&&!C},
then:function(){return _.c(_.mD,{text:function(){var R;return(R=b().overlayMetadata)==null?void 0:R.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.c(_.W,{cond:function(){var R;
return(R=b().overlayMetadata)==null?void 0:R.secondaryText},
then:function(){return _.c(tB9,{data:b,scrimStyle:S,className:void 0})}}))},"fc"),khc=_.A(function(N){var b=N.data;
var S=N.useDefaultStyle;var P=N.inlineMetadata;var H=_.T("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",K=_.UB(function(){return(S==null?0:S())?H==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),C=_.VN(),G;
N=_.Ob(function(k){if(_.Qw(_.uK(k),C.value,["AVATAR-VIEW-MODEL"]))return!1;var M;(M=G)==null||M.click();return!1});
var a=_.UB(function(){return b().belowThumbnailMetadata||b().overlayMetadata},void 0,"GwezKf"),R=function(){return b().menuOnTap&&!P()},n=function(){var k;
return(k=a())==null?void 0:k.avatar},d={},m={};
return _.c("div",{class:_.KU(function(){return K()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(d.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!n()},d.shortsLockupViewModelHostOutsideMetadataHasMenu=R,d)),
"on:click":N,el:C,role:"presentation"},_.c(_.kY,{data:n},{avatarViewModel:function(k){return _.c(_.CH,{data:k.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.c("div",null,_.c("h3",{class:_.KU("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(m.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var k,M;
return!((k=a())==null?0:(M=k.primaryText)==null?0:M.content)},m.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=P,m)),
role:"presentation"},_.c(_.xg,{ref:function(k){return void(G=k)},
command:function(){return b().onTap},
className:_.KU("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var k,M;return(k=a())==null?void 0:(M=k.primaryText)==null?void 0:M.content},
"aria-label":function(){return b().accessibilityText}},_.c(_.W,{cond:function(){var k;
return(k=a())==null?void 0:k.primaryText},
then:function(k){return _.c(_.mD,{text:k,noEndpoints:!0,noStyleRuns:!0})}}))),_.c(_.W,{cond:function(){var k;
return(k=a())==null?void 0:k.secondaryText},
then:function(k){return _.c("div",{class:_.KU("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.c(_.mD,{text:k,noStyleRuns:!0}))}})),_.c(_.W,{cond:R,
then:function(){return _.c(mgN,{data:b,inlineMetadata:!1})}}))},"gc"),tB9=_.A(function(N){var b=N.data;
var S=N.scrimStyle;N=N.className;var P={};return _.c("div",{class:_.KU((P.shortsLockupViewModelHostMetadataSubhead=function(){return(S==null?void 0:S())!==4},P.shortsLockupViewModelHostMetadataSubheadNew=_.T("enable_shorts_lockup_new_scrim"),P.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(S==null?void 0:S())===4},P),N),
"aria-hidden":"true"},_.c(_.mD,{text:function(){var H;return(H=b().overlayMetadata)==null?void 0:H.secondaryText},
noStyleRuns:!0}))},"hc"),mgN=_.A(function(N){var b=N.data;
var S=N.inlineMetadata;N={};N=_.KU((N.shortsLockupViewModelHostInlineMetadataMenu=function(){return S()},N.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!S()},N.shortsLockupViewModelHostShowOverPlayer=function(){return!0},N),"image-overlay-text");
return _.c("div",{class:N},_.c(_.ZR,{data:function(){return{style:S()?"overlay":"mono",accessibilityLabel:b().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(P){P.preventDefault();P.stopPropagation();var H=_.jr({elementsCommand:b().menuOnTap,forceNewState:!0});if(H==null?0:H.onclick)H.onclick(P)}}},
iconName:"MORE_VERT"}))},"ic");var MBd=_.A(function(N){var b=N.data;var S=N.inlineMetadata;var P=N.aspectRatio;var H=N.scrimStyle;var K=N.className;var C=N.useDefaultStyle;N=_.UB(function(){var G=b().entityId;return G?G.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.c("ytm-shorts-lockup-view-model-v2",{class:_.KU("shortsLockupViewModelHost",K)},_.c(_.Ar,{contentId:N,aspectRatio:function(){return(P==null?void 0:P())===1?1:(P==null?void 0:P())===2?2:4}},function(){return _.c(ThV,{data:b,
inlineMetadata:S,aspectRatio:P,scrimStyle:H,className:K,useDefaultStyle:C})}))},"jc");_.qu(MBd,"ytm-shorts-lockup-view-model-v2",{props:{data:_.er,inlineMetadata:_.er,aspectRatio:_.er,scrimStyle:_.er,className:_.er,useDefaultStyle:_.er,titleStyle:_.er}});var FEk=16/9*210,c8=function(){var N=_.z.apply(this,arguments)||this;N.isExpandableContent=!1;N.hideShelfHeader=!1;N.engagementPanel=!1;N.buttonClasses=["arrow"];N.isSearch=!1;N.disableScrollEventListener=!1;N.containsLockup=!1;N.overrideArrowPositionForProductCard=!1;N.overrideArrowPositionForShoppingItemCard=!1;N.overrideArrowPositionForReelItems=!1;N.overrideArrowPositionForGridMovie=!1;N.overrideArrowPositionToCenter=!1;N.isSearchPostShelf=!1;N.overrideArrowPositionForMixedShelf=!1;N.overrideArrowPositionForMixedShelfShortsOnly=
!1;N.hasBigThumbsReelItems=!1;N.shouldUseMixedListHeight=!1;N.shouldUseShortsListHeight=!1;N.gridVideoWidth=0;N.isSearchVodShelf=!1;N.disableWheelScroll=!1;N.sizing="COMPACT";N.shortsLockupAspectRatio=0;return N};
_.F(c8,_.z);_.v=c8.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.T("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.v.computeInitialCountNumber=function(N){if(!N)return 6;var b=N.items.some(function(K){return!!K.topicRecommendationsChipRenderer}),S=N.items.some(function(K){return!!K.displayAdRenderer}),P=this.computeShouldListItemsHaveEqualHeight(N),H=N.items.some(function(K){return!!K.gridPlaylistRenderer});
N=N.items.some(function(K){return!!K.shoppingItemCardViewModel});
return b?9:S?8:H||P?10:N?7:6};
_.v.computeContainsPost=function(N){return!!N&&!!N.items&&N.items.some(function(b){return!!b.postRenderer})};
_.v.computeContainsLockup=function(){if(_.T("web_horizontal_list_lockup_arrow_killswitch"))return!1;var N,b;return(N=this.data)==null?void 0:(b=N.items)==null?void 0:b.some(function(S){return!!S.lockupViewModel})};
_.v.maybeUpdateLockupAspectRatio=function(){var N,b;if(this.computeContainsLockup()&&((N=this.data)==null?0:(b=N.items)==null?0:b.length)){var S;N=Bsa((S=this.data.items[0].lockupViewModel)==null?void 0:S.contentType,this.data.force16By9ThumbnailAspectRatio);S=F$Y(N);S=this.computeLockupWidth()/S;_.rq(this.hostElement,{"--yt-horizontal-list-content-height":S+"px"})}};
_.v.computeOverrideArrowPositionForProductCard=function(N){if(this.isExpandableContent)return!1;var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){return!!S.verticalProductCardRenderer}))};
_.v.computeOverrideArrowPositionForShoppingItemCard=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){return!!S.shoppingItemCardViewModel}))};
_.v.computeOverrideArrowPositionForReelItemRenderer=function(N){return this.containsReelItemRenderer(N)};
_.v.computeHasBigThumbsReelItems=function(N,b){return N&&this.containsReelItemRenderer(b)};
_.v.computeShouldListItemsHaveEqualHeight=function(N){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(N==null?void 0:N.itemSizeConstraint)};
_.v.computeShouldListItemsHaveShortsHeight=function(N){return this.computeShouldListItemsHaveEqualHeight(N)&&!this.containsGridVideoRenderer(N)};
_.v.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.v.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.v.containsReelItemRenderer=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){return!(!S.reelItemRenderer&&!S.shortsLockupViewModel)}))};
_.v.containsGridVideoRenderer=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){return!!S.gridVideoRenderer||!!S.lockupViewModel}))};
_.v.computeContainsGridMovieRenderer=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){return!!S.gridMovieRenderer}))};
_.v.computeOverrideArrowPositionToCenter=function(N){return this.computeIsSearchPostShelf(N)};
_.v.computeIsSearchPostShelf=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){var P,H;return((H=(P=S.postRenderer)==null?void 0:P.surface)!=null?H:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.v.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(N){var b;return!!(N==null?0:(b=N.items)==null?0:b.some(function(S){var P,H,K;return((K=(P=S.backgroundPromoRenderer)==null?void 0:(H=P.style)==null?void 0:H.value)!=null?K:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.v.computeIsSearchVodShelf=function(N,b){return N&&this.containsGridVideoRenderer(b)};
_.v.computeDisableWheelScroll=function(N,b){return this.computeIsSearchVodShelf(N,b)};
_.v.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.v.computeShortsLockupAspectRatio=function(){return 1};
_.v.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.rq(this.hostElement,{"--ytd-reel-item-thumbnail-height":FEk+"px"})};
c8.prototype.dataChanged=c8.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],c8.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],c8.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],c8.prototype,"isExpandableContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"hideShelfHeader",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Array)],c8.prototype,"buttonClasses",void 0);_.p([_.U(),_.y("design:type",Object)],c8.prototype,"isSearch",void 0);
_.p([_.U(),_.y("design:type",Object)],c8.prototype,"disableScrollEventListener",void 0);_.p([_.U({computed:"computeInitialCountNumber(data)"}),_.y("design:type",Number)],c8.prototype,"initialCount",void 0);_.p([_.U({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],c8.prototype,"supportComponentResize",void 0);_.p([_.U({computed:"computeContainsPost(data)"}),_.y("design:type",Boolean)],c8.prototype,"containsPost",void 0);
_.p([_.U({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"containsLockup",void 0);_.p([_.U({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],c8.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForProductCard",void 0);_.p([_.U({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForReelItems",void 0);_.p([_.U({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForGridMovie",void 0);
_.p([_.U({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionToCenter",void 0);_.p([_.U({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"isSearchPostShelf",void 0);_.p([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.p([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.p([_.U({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"hasBigThumbsReelItems",void 0);
_.p([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"shouldUseMixedListHeight",void 0);_.p([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"shouldUseShortsListHeight",void 0);_.p([_.U({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"gridVideoWidth",void 0);
_.p([_.U({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"isSearchVodShelf",void 0);_.p([_.U({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.y("design:type",Object)],c8.prototype,"disableWheelScroll",void 0);_.p([_.U({computed:"computeSizing(isSearch)"}),_.y("design:type",Object)],c8.prototype,"sizing",void 0);
_.p([_.U({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.y("design:type",Object)],c8.prototype,"shortsLockupAspectRatio",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],c8.prototype,"dataChanged",null);
_.X(c8,"yt-horizontal-list-renderer",function(){if(MiS===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);MiS=N}N=MiS;return N},{mode:1});var BhN=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
BhN.prototype.subscribe=function(N,b){var S=this.subscriptions.get(N);if(!S)return function(){};
S.add(b);return function(){S.delete(b)}};
BhN.prototype.unsubscribe=function(N,b){(N=this.subscriptions.get(N))&&N.delete(b)};
BhN.prototype.publish=function(N,b){b=b===void 0?{}:b;(N=this.subscriptions.get(N))&&N.forEach(function(S){S(b)})};var lkZ;var LE9=[10,12,14,16,18,20,24,28,32,36],fkd=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],aL=function(){var N=_.z.apply(this,arguments)||this;N.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";N.hideOverflow=!1;N.useRoboto=!1;N.fontClass="";N.overflown=!1;N.actionMap={"yt-window-resized":"resize"};return N};
_.F(aL,_.z);_.v=aL.prototype;
_.v.attached=function(){var N=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.W_(this,function(){N.resize()});
if(!_.rV){var b,S,P;(b=document)==null||(S=b.fonts)==null||(P=S.ready)==null||P.then(function(){N.resize()})}};
_.v.dataChanged=function(){this.resize()};
_.v.guideIsExpandedChanged=function(){this.resize()};
_.v.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var N=this.getMaxNumLines(),b=this.getMinFont(),S=this.getMaxFont(),P=this.useRoboto?LE9:fkd;for(P=P.filter(function(K){return K<=S&&K>=b});P.length>1;){var H=Math.floor(P.length/2);
this.updateFontSize(P[H]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=N)P=P.slice(H,P.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>N)P=P.slice(0,H);else break}this.updateFontSize(P[P.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(N)}};
_.v.handleOverflow=function(N){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>N&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",N.toString()))};
_.v.updateFontSize=function(N){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+N;this.textNode.classList.add(this.fontClass)};
_.v.getMaxFont=function(){var N=this.useRoboto?LE9:fkd;N=N[N.length-1];return this.maxFontSize&&this.maxFontSize<=N?this.maxFontSize:N};
_.v.getMinFont=function(){var N=(this.useRoboto?LE9:fkd)[0];return this.minFontSize&&this.minFontSize>=N?this.minFontSize:N};
_.v.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.v.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.v.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.es(this.text).split("\n").length-1:Infinity};
_.v.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
aL.prototype.guideIsExpandedChanged=aL.prototype.guideIsExpandedChanged;aL.prototype.dataChanged=aL.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],aL.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],aL.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aL.prototype,"text",void 0);
_.p([_.U(),_.y("design:type",String)],aL.prototype,"fontFamily",void 0);_.p([_.U(),_.y("design:type",Number)],aL.prototype,"maxWidth",void 0);_.p([_.U(),_.y("design:type",Number)],aL.prototype,"maxHeight",void 0);_.p([_.U(),_.y("design:type",Number)],aL.prototype,"maxFontSize",void 0);_.p([_.U(),_.y("design:type",Number)],aL.prototype,"minFontSize",void 0);_.p([_.U(),_.y("design:type",Number)],aL.prototype,"maxLines",void 0);_.p([_.U(),_.y("design:type",Object)],aL.prototype,"hideOverflow",void 0);
_.p([_.U({selector:_.jfe}),_.y("design:type",Boolean)],aL.prototype,"guideIsExpanded",void 0);_.p([_.dq("#container"),_.y("design:type",HTMLElement)],aL.prototype,"containerNode",void 0);_.p([_.dq("#text"),_.y("design:type",HTMLElement)],aL.prototype,"textNode",void 0);_.p([_.t_("text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aL.prototype,"dataChanged",null);
_.p([_.t_("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aL.prototype,"guideIsExpandedChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],aL);
_.X(aL,"yt-dynamic-sizing-formatted-string",function(){if(lkZ!==void 0)return lkZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return lkZ=N},{mode:1});var ua9;_.QZN=function(N){_.NL.call(this,N)};
_.F(_.QZN,_.NL);var xgk=function(N){_.NL.call(this,N)};
_.F(xgk,_.QZN);var RL=function(){return _.z.apply(this,arguments)||this};
_.F(RL,_.z);RL.prototype.onTapSuspendedChannel=function(){var N;if((N=this.data)!=null&&N.serviceEndpoint){var b,S;(N=(S=_.t((b=this.data)==null?void 0:b.serviceEndpoint,_.Hz))==null?void 0:S.url)?_.jZ(N,void 0,void 0,window.top):(b=new xgk("Did not handle suspended account tap. No appealUrl."),_.ge(b))}else b=new xgk("Did not handle suspended account tap. No serviceEndpoint."),_.ge(b)};
RL.prototype.onTap=function(){var N=this,b=_.dG(),S,P=(S=_.n7(b,{veType:7116}))!=null?S:void 0;_.A8(b,{visualElement:P});_.UK();this.saveRoleText();var H;if((H=this.data)==null?0:H.youtubeSuspended)this.onTapSuspendedChannel();else{var K=!1,C,G;(b=(G=_.t((C=this.data)==null?void 0:C.serviceEndpoint,_.MzV))==null?void 0:G.supportedTokens)&&b.forEach(function(a){if(a.accountSigninToken)if(K=!0,N.onAccountItemTap)N.onAccountItemTap(a.accountSigninToken.signinUrl);else _.jZ(a.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!K){if(C=this.get("serviceEndpoint",this.data))K=!0,this.ytComponentBehavior.resolveCommand(C);K||_.ed(new xgk("Did not handle account switch tap. No token."))}}};
RL.prototype.saveRoleText=function(){if(this.data){var N=this.data,b=N.channelDelegationRole;if(b){var S,P=(S=_.t(N==null?void 0:N.serviceEndpoint,_.MzV))==null?void 0:S.supportedTokens;if(!P){var H,K,C,G;P=(H=_.t(N==null?void 0:N.serviceEndpoint,_.VD))==null?void 0:(K=H.popup)==null?void 0:(C=K.confirmDialogRenderer)==null?void 0:(G=C.confirmButton)==null?void 0:G.buttonRenderer;var a;P=(a=_.t(P==null?void 0:P.command,_.vN))==null?void 0:a.commands;if(!P)return;var R;P=(R=_.t(P[1],_.MzV))==null?
void 0:R.supportedTokens}if(P){a=void 0;R=_.O(P);for(P=R.next();!P.done;P=R.next())if(P=P.value,P.datasyncIdToken){a=P.datasyncIdToken.datasyncIdToken;break}if(a){var n;a:{if(_.VJL()&&(R=_.pE(a+"::pom"))){R=new ec(R);break a}R=void 0}(n=R)==null||n.set("role_text",b);if((Km_?Km_:window.location).href.indexOf("studio")!==-1&&(n=g3p())){R=n.src?(new URL(n.src)).origin:"*";var d;(d=n.contentWindow)==null||d.postMessage({action:"save_pom_role",datasyncId:a,roleText:b},R)}}}}}};
_.d0.Object.defineProperties(RL.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.accountPhoto)==null?void 0:b.thumbnails;return S&&S.length>0&&(S[0].height===36||S[0].height===48)?S[0].height:40}}});
RL.prototype.onTap=RL.prototype.onTap;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RL.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Function)],RL.prototype,"onAccountItemTap",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RL.prototype,"enableRingForActiveAccount",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],RL.prototype,"thumbnailSize",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RL.prototype,"onTap",null);_.p([_.Uj({is:"ytd-account-item-renderer",disableElementRegistration:!0})],RL);
_.X(RL,"ytd-account-item-renderer",function(){if(ua9!==void 0)return ua9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ua9=N},{mode:1});var o2z;var W8=function(){return _.z.apply(this,arguments)||this};
_.F(W8,_.z);W8.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.aN().resolve(_.Wq).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],W8.prototype,"data",void 0);_.p([_.Uj({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],W8);
_.X(W8,"ytd-identity-chip-renderer",function(){if(o2z!==void 0)return o2z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return o2z=N},{mode:1});var i49;var JWS;var UgZ;var Z4E;var nC=function(){var N=_.z.apply(this,arguments)||this;N.richItemMinWidth=_.d7("wn_grid_min_item_width",310);N.isShorts=!1;N.isWatchNext=!1;N.isExploreHub=!1;return N};
_.F(nC,_.z);_.d0.Object.defineProperties(nC.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var N=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.rq(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var S;if(((S=this.data)==null?0:S.rows)&&b)for(b*=this.data.rows,S=0;S<b;S++)N.push({});return N}}});
_.p([_.L(_.Gr),_.y("design:type",Object)],nC.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nC.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.xG,value:3}),_.y("design:type",Number)],nC.prototype,"itemsPerRow",void 0);_.p([_.U({selector:_.ZGs,value:6}),_.y("design:type",Number)],nC.prototype,"slimItemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],nC.prototype,"richItemMinWidth",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],nC.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nC.prototype,"isShorts",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nC.prototype,"isWatchNext",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nC.prototype,"isExploreHub",void 0);
_.p([_.f("isExploreHub"),_.U({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],nC.prototype,"shimmerAnimation",null);_.p([_.f("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.y("design:type",Array),_.y("design:paramtypes",[])],nC.prototype,"cardItems",null);_.p([_.Uj({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],nC);
_.jZz=_.H7()(nC,"ytd-ghost-grid-renderer",function(){if(Z4E===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);Z4E=N}N=Z4E;return N},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.qu(_.A(function(N){var b=_.h_(N,{numberOfComments:3}).numberOfComments,S=_.h_(N,{isInitialLoad:!1}).isInitialLoad,P=_.h_(N,{engagementPanel:!1}).engagementPanel,H=function(){return Math.min(Number(b==null?void 0:b())||20,20)};
return _.c("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.c(_.W,{cond:function(){return!(P==null?0:P())&&(S==null?void 0:S())},
then:function(){return _.c("div",{class:"ytGhostCommentsComments"},_.c("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.c("div",{class:_.KU("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.c("div",{class:_.KU("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.c("div",{class:"ytGhostCommentsGhostCard"},_.c("div",{class:"ytGhostCommentsAvatar"},_.c("div",{class:"ytGhostCommentsCircle"})),_.c("div",{class:"ytGhostCommentsComments"},_.c("div",{class:"ytGhostCommentsMeta"},
_.c("div",{class:_.KU("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.c("div",{class:_.KU("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.c("div",{class:"ytGhostCommentsComments"},_.c(_.zj,{each:function(){return Array((H==null?void 0:H())||3)}},function(){return _.c("div",{class:"ytGhostCommentsGhostCard"},_.c("div",{class:"ytGhostCommentsAvatar"},_.c("div",{class:"ytGhostCommentsCircle"})),_.c("div",{class:"ytGhostCommentsHost"},_.c("div",{class:"ytGhostCommentsMeta"},
_.c("div",{class:_.KU("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.c("div",{class:_.KU("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.c("div",{class:_.KU("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.c("div",{class:"ytGhostCommentsGhostLikeDislike"},_.c("div",{class:_.KU("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.c("div",{class:_.KU("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.kg,
isInitialLoad:_.kg,engagementPanel:_.kg},unsafeExternallySettableAttributes:new Set(["hidden"])});_.lo("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var dl=function(){var N=_.z.apply(this,arguments)||this;N.isOverridable=!1;N.spinnerActive=!1;N.showButton=!1;N.isCommentsSection=!1;N.engagementPanel=!0;N.isShortsGrid=!1;N.isShortsPage=!1;N.isWatchPage=!1;N.originalShowButton=!1;N.endOfList=!1;return N};
_.F(dl,_.z);_.v=dl.prototype;_.v.resetIntersectionObserver=function(){var N;(N=this.observer)==null||N.disconnect();this.observer=void 0};
_.v.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var N,b;((N=this.data)==null?void 0:N.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.v.initializeIntersectionObserver=function(){var N=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S.value.isIntersecting&&(N.triggerContinuation(),N.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.v.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.v.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var N;((N=this.data)==null?0:N.continuationEndpoint)&&(N=_.t(this.data.continuationEndpoint,_.J8))&&this.ytdReduxBehavior.dispatch(_.HU({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:N}}))};
_.v.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.v.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.v.onServiceRequestCompleted=function(N,b){if(!_.T("kevlar_hide_spinner_on_empty_continuation_killswitch")){var S;(S=b.actions)!=null&&S.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.v.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.v.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.v.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.v.numberOfGhostCommentsChanged=function(){var N=3;if(this.engagementPanel){var b,S,P;N=Math.floor(((((b=this.hostElement)==null?void 0:(S=b.parentElement)==null?void 0:(P=S.parentElement)==null?void 0:P.scrollHeight)||108)-108)/108);N=this.isInitialLoad?Math.max(N,3):3}b=[].concat(_.IX(this.hostElement.querySelectorAll("yt-ghost-comments")));b=_.O(b);for(S=b.next();!S.done;S=b.next())S=S.value,S.numberOfComments=N,S.isInitialLoad=this.isInitialLoad,S.engagementPanel=this.engagementPanel};
_.v.detached=function(){this.resetIntersectionObserver()};
_.d0.Object.defineProperties(dl.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
dl.prototype.numberOfGhostCommentsChanged=dl.prototype.numberOfGhostCommentsChanged;dl.prototype.continuationTriggerOffsetChanged=dl.prototype.continuationTriggerOffsetChanged;dl.prototype.showButtonChanged=dl.prototype.showButtonChanged;dl.prototype.onYtServiceRequestCompletedForButtonRenderer=dl.prototype.onYtServiceRequestCompletedForButtonRenderer;dl.prototype.onServiceRequestCompleted=dl.prototype.onServiceRequestCompleted;dl.prototype.onYtServiceRequestSentForButtonRenderer=dl.prototype.onYtServiceRequestSentForButtonRenderer;
dl.prototype.observeData=dl.prototype.observeData;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],dl.prototype,"ytVisibilityBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],dl.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],dl.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"isOverridable",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"spinnerActive",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"showButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],dl.prototype,"isCommentsSection",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],dl.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"isShortsGrid",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Xtp}),_.y("design:type",Object)],dl.prototype,"isShortsPage",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.ADU}),_.y("design:type",Object)],dl.prototype,"isWatchPage",void 0);_.p([_.U(),_.y("design:type",Number)],dl.prototype,"continuationTriggerOffset",void 0);
_.p([_.U(),_.y("design:type",Object)],dl.prototype,"endOfList",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],dl.prototype,"isInitialLoad",void 0);_.p([_.dq("ytd-button-renderer"),_.y("design:type",_.xu)],dl.prototype,"buttonRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],dl.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.f("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.y("design:type",Object),_.y("design:paramtypes",[])],dl.prototype,"showGhostCardComments",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"observeData",null);
_.p([_.RA("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],dl.prototype,"onServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-completed-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.p([_.t_("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"showButtonChanged",null);
_.p([_.t_("continuationTriggerOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"continuationTriggerOffsetChanged",null);_.p([_.W4("isInitialLoad","engagementPanel"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dl.prototype,"numberOfGhostCommentsChanged",null);_.p([_.Uj({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],dl);
_.X(dl,"ytd-continuation-item-renderer",function(){if(UgZ!==void 0)return UgZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return UgZ=N},{mode:1});var zHV;var mm=function(){var N=_.z.apply(this,arguments)||this;N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.downloadState="DOWNLOAD_STATE_UNKNOWN";N.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";N.offlineVideoPolicyExpirationTimestamp=0;N.downloadedVideoPlaybackPosition=0;return N};
_.F(mm,_.z);mm.prototype.dataChanged=function(){var N;this.videoData=_.t((N=this.data)==null?void 0:N.renderer,NDc);this.transferStateChanged()};
mm.prototype.downloadProgressChanged=function(){if(this.entityInfo){var N=Object.assign({},this.videoData),b=XcE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),S=b.publishedTimeText,P=b.badges;N.shortViewCountText=b.shortViewCountText;N.publishedTimeText=S;N.badges=P;this.set("videoData",N)}};
mm.prototype.transferStateChanged=function(){if(this.entityInfo){var N=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",b=_.kG(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ma(this.entityInfo.policyEntity),S=Object.assign({},this.videoData),P=XcE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),H=P.publishedTimeText,K=P.badges;S.shortViewCountText=
P.shortViewCountText;S.publishedTimeText=H;S.badges=K;S.isDisabled=b;S.isWatched=this.downloadedVideoPlaybackPosition>0;S.navigationEndpoint=b?void 0:EDu(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var C;N&&((C=this.videoData)==null?0:C.videoId)&&!_.T("dl_resume_click_killswitch")&&(S.isDisabled=!1,S.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});S.thumbnailOverlays=zuY(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",S)}};
mm.prototype.transferStateChanged=mm.prototype.transferStateChanged;mm.prototype.downloadProgressChanged=mm.prototype.downloadProgressChanged;mm.prototype.dataChanged=mm.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],mm.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mm.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],mm.prototype,"videoData",void 0);_.p([_.U({selector:js,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"downloadProgress",void 0);_.p([_.U(),_.y("design:type",Number)],mm.prototype,"relativeDateReference",void 0);_.p([_.U({selector:_.UI,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"transferState",void 0);
_.p([_.U({selector:KLs,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"downloadState",void 0);_.p([_.U({selector:IR_,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"offlinePolicyAction",void 0);_.p([_.U({selector:DZU,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.p([_.U({selector:zL,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"downloadedVideoPlaybackPosition",void 0);_.p([_.U({selector:gg_,selectorArgs:["videoData.videoId"]}),_.y("design:type",Object)],mm.prototype,"entityInfo",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],mm.prototype,"isDownloading",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mm.prototype,"dataChanged",null);
_.p([_.t_("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mm.prototype,"downloadProgressChanged",null);_.p([_.t_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mm.prototype,"transferStateChanged",null);
_.p([_.Uj({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],mm);
_.X(mm,"ytd-downloaded-video-grid-video-renderer",function(){if(zHV!==void 0)return zHV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return zHV=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var AWN;var kN=function(){};
kN.prototype.resolve=function(N,b){var S=this;return _.r(function(P){return P.yield(S.resolveCommand(N,b),0)})};var XjE,Ta;XjE=P9p(function(N){return N.targetId},{shouldPersist:!1});
Ta=XjE.updateData;_.E29=XjE.useUpdatableData;var pjk,YOE;pjk=P9p(function(N){return N.targetId});
YOE=pjk.updateData;_.yWO=pjk.useUpdatableData;var IkZ=Hru.bind(null,Ta),Dgb=Hru.bind(null,YOE);(function(N,b,S){var P=_.t(S==null?void 0:S.updatedRenderer,_.Qfl);return P?N({targetId:b},function(){return P}):!1}).bind(null,Ta);var ta=function(){};
_.F(ta,kN);ta.prototype.resolveCommand=function(N){var b;return _.r(function(S){b=_.t(N,_.RBo);if(!b)return S.return();IkZ(b.targetId,b);_.Zd(S)})};var M1=function(){var N=_.kq.apply(this,arguments)||this;N.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return N};
_.F(M1,_.kq);_.v=M1.prototype;_.v.configureContinuationPathMap=function(){return{}};
_.v.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.v.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.v.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.v.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.v.handleAppendContinuationItemsAction=function(N){var b=_.t(N,_.tek);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var S=WH9(N),P=S&&this.continuationPathMap[S];if(P&&S)if(N=this.get(P,this.data)){a:{for(S=0;S<N.length;S++){var H=N[S],K=void 0,C=!!_.t((K=_.t(H,O1V))==null?void 0:K.content,_.$ZO);if(_.t(H,_.wO)||C)break a}S=N.length}P="data."+P;b.continuationItems?S===N.length-1?(this.pop(P),this.push.apply(this,[P].concat(_.IX(b.continuationItems)))):
S===N.length?this.push.apply(this,[P].concat(_.IX(b.continuationItems))):this.splice.apply(this,[P,S,1].concat(_.IX(b.continuationItems))):this.splice(P,S,1);(_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation"))&&_.bC(this.hostElement,"yt-append-continuation-items-action-finished");_.bC(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.$h(new _.jU("append continuation items does not exist",S));else _.$h(new _.jU("append continuation path does not exist",
S))}};
_.v.handleReloadContinuationItemsCommand=function(N){var b=_.t(N,_.RBo);if(this.data&&b){if(!_.T("web_reload_continuation_items_command_resolver_killswitch")){var S=_.aN().resolve(_.cq(ta));S&&S.resolveCommand(N)}if(this.data.targetId&&this.continuationPathMap&&b.targetId===this.data.targetId&&(!_.T("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||b.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var P;S=(P=b.slot)==null?void 0:P.replace("RELOAD_CONTINUATION_SLOT_",
"");P=(N=WH9(N)+"-"+(S==null?void 0:S.toLowerCase()))&&this.continuationPathMap[N];if(!P||!N||!S)_.$h(new _.jU("reload continuation path does not exist",N));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(b)){if(b.replaceWithFirstItem){var H;this.set("data."+P,((H=b.continuationItems)==null?0:H.length)?b.continuationItems[0]:{})}else this.set("data."+P,b.continuationItems?b.continuationItems:[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;
_.bC(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.v.handleShowReloadUiCommand=function(N){N=_.t(N,joV);var b;((b=this.data)==null?0:b.targetId)&&(N==null?0:N.targetId)&&N.targetId===this.data.targetId&&(this.continuationIsReloading=!0,N.content&&(this.reloadUiContent=N.content))};
M1.prototype.observeData=M1.prototype.observeData;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],M1.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],M1.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],M1.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],M1.prototype,"continuationIsReloading",void 0);
_.p([_.U(),_.y("design:type",Object)],M1.prototype,"reloadUiContent",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M1.prototype,"observeData",null);_.p([_.Td()],M1);_.F3=[_.r2.YtComponentBehavior,_.pG.YtActionHandlerBehavior,M1.prototype];_.B8={};_.B8.YtNextContinuationBehavior=[_.Bt.YtTaskEmitterBehavior,{_noAccessors:!0,listeners:{"yt-load-next-continuation":"onLoadNextContinuation_"},nextContinuation:void 0,pendingContinuationRequest_:void 0,listeningForNavigate_:!1,created:function(){},
detached:function(){this.stopListeningForNavigate_()},
canUseContextualNetworkManager_:function(){return this.shouldUseTaskManager()&&!!this.getNetworkManager()},
startListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||this.listeningForNavigate_||(document.addEventListener("yt-navigate-start",_.aA(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.aA(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(N,b){N.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,b,{}):(N={locationRetrieved:function(S){this.makeNextContinuationRequest_(S,b,{})}.bind(this)},_.bC(this.hostElement,"yt-retrieve-location",N))},
makeNextContinuationRequest_:function(N,b,S){_.Q3("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();N=b(N);var P;this.canUseContextualNetworkManager_()&&(P=this.getNetworkManager());P||(P=_.aN().resolve(_.ts));b=_.XM.instance;if(_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){P=_.q6([N.startsWith("/")?N.substr(1):N]);var H,K;S=_.ni(b,{},P,S==null?void 0:(H=S.context)==null?void 0:(K=H.clickTracking)==null?void 0:K.clickTrackingParams).then(function(C){return{response:C}})}else S=
this.nextContinuation.usePost?P.postData(N,S):P.fetchData(N);
S.then(this.updateNextContinuationData_.bind(this,N));this.pendingContinuationRequest_=S;this.startListeningForNavigate_()},
updateNextContinuationData_:function(N,b){var S=this;_.Q3("ncl");this.pendingContinuationRequest_=void 0;if(b){var P={};this.nextContinuation&&(P=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[P.continuationType]){N=b.response.continuationContents[P.continuationType];var H=P.header||"data.header",K=N[P.responseHeaderKey||"header"];K&&this.set(H,K);H=P.contentsArray||"data.contents";K=this.getContents_(N,P.responseContentsKey||"contents")||[];
this.pathExists_(H)?(K.unshift(H),this.push.apply(this,K)):this.set(H,K);K&&(sWo(_.dG(),b.response,this.hostElement,function(C){_.St(S.hostElement,"yt-store-grafted-ve-action",[C])}),_.bC(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b,
page:this,contentsArray:H}));this.set(P.continuationsArray||"data.continuations",N[P.responseContinuationsKey||"continuations"]||[])}else b.reload?_.$h(new _.jU("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,H={request:_.Pq(N,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(H.responseContentKeys=
Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(H.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new _.jU("Malformed continuation",H),N.indexOf("/comment_service_ajax")==0?_.$h(b):_.ge(b)),this.set(P.continuationsArray||"data.continuations",[])}else _.ed(new _.jU("Missing continuation response",N))},
getContents_:function(N,b){b=b.split(".");return _.Vm.getValueByKeys(N,b)},
pathExists_:function(N){var b=this;N=N.toString().split(".");for(var S=0;S<N.length;S++)if(b=b[N[S]],b===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var VBz;var g2z;var lU=function(){var N=_.z.apply(this,arguments)||this;N.triggered_=!1;return N};
_.F(lU,_.z);_.v=lU.prototype;_.v.attached=function(){this.maybeTriggerAutoload()};
_.v.detached=function(){this.hasBeenTriggered_=!1};
_.v.onPrescanVisible=function(){this.onShow()};
_.v.onShow=function(){this.showButton||this.trigger()};
_.v.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.bC(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.v.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.v.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.v.computeLabel_=function(N,b){return N===void 0?null:N.label||!b?N.label:this.showMoreText_};
_.v.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.v.getContinuationUrl=function(N){var b={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Hq(N,b)};
_.v.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
lU.prototype.showButtonChanged_=lU.prototype.showButtonChanged_;lU.prototype.observeData_=lU.prototype.observeData_;_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],lU.prototype,"ytVisibilityBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lU.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],lU.prototype,"showButton",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],lU.prototype,"showIcon",void 0);_.p([_.U({computed:"computeLabel_(data, showButton)"}),_.y("design:type",Object)],lU.prototype,"label",void 0);_.p([_.U({value:_.gy(_.cN("SHOW_MORE",void 0,"Show More"))}),_.y("design:type",Object)],lU.prototype,"showMoreText_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],lU.prototype,"spinnerActive_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],lU.prototype,"hasBeenTriggered_",void 0);
_.p([_.U({value:void 0}),_.y("design:type",String)],lU.prototype,"observeVisibleOption",void 0);_.p([_.U({value:void 0}),_.y("design:type",String)],lU.prototype,"observeHiddenOption",void 0);_.p([_.U({value:"observe_once"}),_.y("design:type",Object)],lU.prototype,"observePrescanOption",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"observeData_",null);
_.p([_.W4("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lU.prototype,"showButtonChanged_",null);_.p([_.J_({is:"yt-next-continuation",disableElementRegistration:!0})],lU);
_.X(lU,"yt-next-continuation",function(){if(g2z===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;VBz===void 0&&(VBz=document.createElement("template"));var P=VBz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);g2z=N}N=g2z;return N},{mode:2});var eHN;var $gb;var LC=function(){return _.z.apply(this,arguments)||this};
_.F(LC,_.z);LC.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],LC.prototype,"data",void 0);_.p([_.J_({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],LC);
_.X(LC,"yt-music-pass-small-feature-info-renderer",function(){if($gb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;eHN===void 0&&(eHN=document.createElement("template"));var P=eHN;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$gb=N}N=$gb;return N},{mode:2});_.lo("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var fC=function(){var N=_.z.apply(this,arguments)||this;N.isCollapsible=!1;N.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return N};
_.F(fC,_.z);_.v=fC.prototype;_.v.computeIsCollapsible=function(N){return!!(((N==null?0:N.showMoreText)||(N==null?0:N.visibleRowCount))&&(N==null?0:N.isCollapsible))};
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.v.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.v.onIronResize=function(){var N=this;_.Yq(this,"updateGridInitItems",function(){N.maybeUpdateInitialItemsDisplayed()})};
_.v.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var N=this.getVisibleWidth();N!==0&&(N=Math.floor(N/214)*(this.data.visibleRowCount||2),N!==this.initialCount&&(this.initialCount=N,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.v.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.v.computeExpandVisible=function(N,b,S,P){return N&&b&&S&&!!P&&!!P.showMoreText};
_.v.computeShowMoreButton=function(N){return{text:N,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.v.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.v.initCollapsed=function(){var N=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.W_(this,function(){_.PN(N.hostElement,"yt-refit-popups-action")})};
_.v.fillRestIfNotCollapsible=function(){var N=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!N||this.ytLazyListBehavior.fillRemainingListItems()};
_.v.computeViewAllHidden=function(N,b){return N||!b.viewAllEndpoint};
fC.prototype.fillRestIfNotCollapsible=fC.prototype.fillRestIfNotCollapsible;fC.prototype.initCollapsed=fC.prototype.initCollapsed;fC.prototype.onIronResize=fC.prototype.onIronResize;fC.prototype.persistentGuideChanged=fC.prototype.persistentGuideChanged;_.p([_.L(_.$M),_.y("design:type",Object)],fC.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],fC.prototype,"ytLazyListBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],fC.prototype,"ytNextContinuationBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],fC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.L(_.F3),_.y("design:type",Object)],fC.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fC.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],fC.prototype,"collapsed",void 0);_.p([_.U(),_.y("design:type",Number)],fC.prototype,"initialCount",void 0);_.p([_.U({computed:"computeShowMoreButton(data.showMoreText)"}),_.y("design:type",Object)],fC.prototype,"showMoreButton",void 0);
_.p([_.U({computed:"computeIsCollapsible(data)"}),_.y("design:type",Object)],fC.prototype,"isCollapsible",void 0);_.p([_.dq("#items"),_.y("design:type",HTMLElement)],fC.prototype,"items",void 0);_.p([_.t_("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fC.prototype,"persistentGuideChanged",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fC.prototype,"onIronResize",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fC.prototype,"initCollapsed",null);_.p([_.t_("canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fC.prototype,"fillRestIfNotCollapsible",null);_.p([_.Uj({is:"ytd-grid-renderer",disableElementRegistration:!0})],fC);
_.X(fC,"ytd-grid-renderer",function(){if(AWN!==void 0)return AWN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return AWN=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var uU=function(){return _.z.apply(this,arguments)||this};
_.F(uU,_.z);
uU.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uU.prototype,"data",void 0);_.p([_.Uj({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],uU);
_.X(uU,"ytd-carousel-ad-renderer",function(){if(JWS!==void 0)return JWS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JWS=N},{mode:1});var hHc;var Q0=function(){return _.z.apply(this,arguments)||this};
_.F(Q0,_.z);_.v=Q0.prototype;_.v.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Q0.JSC$15742_CLICK_LOCATION_ID_MAP))};
_.v.onSitelinkTap=function(N){N.stopPropagation();var b,S,P=N==null?void 0:(b=N.model)==null?void 0:(S=b.item)==null?void 0:S.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,N,!1)};
_.v.onTap=function(N){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,N,!1)};
_.v.sendImpression=function(){if(this.data&&this.data.content)for(var N=_.O(this.data.content.impressionEndpoints||[]),b=N.next();!b.done;b=N.next()){b=_.O(b.value.loggingUrls||[]);for(var S=b.next();!S.done;S=b.next())S=S.value,S.baseUrl&&Hl(S.baseUrl,S.attributionSrcMode)}};
Q0.prototype.onTap=Q0.prototype.onTap;Q0.prototype.dataChanged=Q0.prototype.dataChanged;Q0.JSC$15742_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Q0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Q0.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Q0.prototype,"data",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Q0.prototype,"dataChanged",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Q0.prototype,"onTap",null);_.p([_.Uj({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Q0);
_.X(Q0,"ytd-promoted-sparkles-text-search-renderer",function(){if(hHc!==void 0)return hHc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return hHc=N},{mode:1});var qOS;var xN=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-mute-ad-action":"handleMuteAd"};return N};
_.F(xN,_.z);_.v=xN.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.T("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.v.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.v.computeHasAdBadge=function(N){return!(N==null||!N.adBadge)};
_.v.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",xN.JSC$15751_DEFAULT_AD_BADGE_RENDERER),_.K3(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&j6(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,xN.JSC$15751_CLICK_LOCATION_ID_MAP))};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var N;(((N=this.data)==null?void 0:N.impressionCommands)||[]).forEach(function(b){b=_.O(b.loggingUrls||[]);for(var S=b.next();!S.done;S=b.next())S=S.value,S.baseUrl&&Hl(S.baseUrl,S.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.v.onTap=function(N){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint,P;(b=(P=this.data)==null?void 0:P.thumbnailNavigationEndpoint)&&_.ea(_.V7(N),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,N,!1):S&&this.ytSparklesClickLocationBehavior.handleClick(S,N,!1)};
_.v.handleMuteAd=function(){this.collapsed=!0};
_.v.attached=function(){var N=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.detached=function(){_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
_.d0.Object.defineProperties(xN.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var N;return!(((N=this.data)==null?void 0:N.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var N;return!(((N=this.data)==null?void 0:N.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
xN.prototype.dataChanged=xN.prototype.dataChanged;
xN.JSC$15751_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
xN.JSC$15751_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.cN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],xN.prototype,"actionHandlerBehavior",void 0);
_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],xN.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],xN.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],xN.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],xN.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.y("design:type",Boolean)],xN.prototype,"fixAlignmentSmallScreens",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs_square")}}),
_.y("design:type",Boolean)],xN.prototype,"useBiggerThumbsSquare",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.mediaHoverOverlay"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"hideHoverOverlay",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"webSearchLayout",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"webSearchLayoutLandscape",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"webSearchLayoutSquare",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"sparklesCtaNoBackground",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.actionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"hideActionButton",null);_.p([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],xN.prototype,"buttonOverride",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.y("design:type",Boolean)],xN.prototype,"hasNewAdBadge",void 0);_.p([_.f("data.promotedSparklesWebStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xN.prototype,"useRoundedBadge",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xN.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],xN);
_.X(xN,"ytd-promoted-sparkles-web-renderer",function(){if(qOS!==void 0)return qOS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return qOS=N},{mode:1});var wjO;var oL=function(){var N=_.z.apply(this,arguments)||this;N.isInlinePreviewTriggered=!1;N.enableMonoStyle=_.T("enable_default_mono_cta_migration_web_client");return N};
_.F(oL,_.z);_.v=oL.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.v.computeShowCta=function(N){return!(N==null||!N.ctaRenderer)};
_.v.onCtaClick=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.ctaRenderer)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.v.onWatchButtonClick=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.watchButtonRenderer)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.v.onTap=function(){};
_.v.dataChanged=function(){if(this.data){var N;_.T("enable_inline_muted_playback_on_web_search")&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",oL.JSC$15755_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&j6(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",oL.JSC$15755_DEFAULT_CLICK_LOCATION_BEHAVIOR,oL.JSC$15755_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"));var b;if(((b=this.data)==null?0:b.forceImpAutoplay)&&_.T("enable_force_imp_autoplay_on_desktop_search")){var S;(S=this.JSC$15756_inlinePreviewHoverListener)==null||$wu(S)}}};
_.v.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var N=_.O(this.data.impressionUrls),b=N.next();!b.done;b=N.next())b=b.value,NGe(b,SZe(b));this.data.impressionsFired=!0}};
_.v.maybeComputeHref=function(){return null};
_.v.computeIsShortDR=function(N){return!(N==null||!N.watchButtonRenderer)&&!(N==null||!N.ctaRenderer)&&!!this.enableShortDR};
_.v.computeIsNewUiOrShortDr=function(N){return!!this.enableUiUpdate||this.computeIsShortDR(N)};
_.v.computeIsNewUiAndNotShortDr=function(N){return!!this.enableUiUpdate&&!this.computeIsShortDR(N)};
_.v.computeHideAvatar=function(N){return!((N==null?0:N.channelThumbnail)&&this.computeIsNewUiOrShortDr(N))};
_.v.onClick=function(N){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&S&&(_.t(S,_.Iv)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(S,N,!!_.t(S,_.Iv)),N.stopPropagation();else if(S&&_.t(S,_.Iv))this.ytSparklesClickLocationBehavior.handleClick(S,N,!0),N.stopPropagation();else if(S){var P,H;((P=this.data)==null?0:P.navigationEndpoint)&&((H=this.data)==null?0:H.adPlaybackContextParams)&&(b=this.data.navigationEndpoint,N=this.data.adPlaybackContextParams,
b.commandMetadata&&_.t(b.commandMetadata,_.GY)&&_.t(b.commandMetadata,_.GY).url&&(b=_.SU(_.t(b.commandMetadata,_.GY).url).adurl)&&_.PCO(b)&&_.e0(_.XV(b),{encoded_ad_playback_context:N}));this.ytComponentBehavior.resolveCommand(S)}};
_.v.computeButtonOverride=function(N){if(this.computeIsNewUiOrShortDr(N))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.v.onThumbnailContainerClick=function(N){this.onClick(N)};
_.v.computeThumbnailWidth=function(N,b){return N?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360};
_.v.attached=function(){var N=this,b;_.T("enable_inline_muted_playback_on_web_search")&&((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.detached=function(){var N;_.T("enable_inline_muted_playback_on_web_search")&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15756_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:rWc})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15756_inlinePreviewHoverListener)==null||qv(N)};
oL.prototype.dataChanged=oL.prototype.dataChanged;oL.prototype.onTap=oL.prototype.onTap;oL.JSC$15755_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.cN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};oL.JSC$15755_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
oL.JSC$15755_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],oL.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],oL.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.dq("#main-container"),_.y("design:type",HTMLElement)],oL.prototype,"mainContainer",void 0);
_.p([_.U(),_.y("design:type",Object)],oL.prototype,"isInlinePreviewTriggered",void 0);_.p([_.U(),_.y("design:type",Object)],oL.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],oL.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_video_display_compact_button_group_for_desktop_search")}}),
_.y("design:type",Boolean)],oL.prototype,"enableShortDR",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_vac_ui_update_for_desktop_search")}}),
_.y("design:type",Boolean)],oL.prototype,"enableUiUpdate",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],oL.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.y("design:type",Boolean)],oL.prototype,"showCta",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.y("design:type",Boolean)],oL.prototype,"isShortDr",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.y("design:type",Boolean)],oL.prototype,"isShortDrOrNewUi",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.y("design:type",Boolean)],oL.prototype,"isNewUiAndNotShortDr",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],oL.prototype,"buttonOverride",void 0);_.p([_.U({computed:"computeSecondaryButtonOverride(data)"}),_.y("design:type",Object)],oL.prototype,"secondaryButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oL.prototype,"enableMonoStyle",void 0);
_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],oL.prototype,"thumbnail",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oL.prototype,"onTap",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oL.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],oL);
_.X(oL,"ytd-promoted-video-renderer",function(){if(wjO!==void 0)return wjO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wjO=N},{mode:1});var Nvl;var iU=function(){var N=_.z.apply(this,arguments)||this;N.useRoundedBadge=!0;N.sitelinkIds=[];return N};
_.F(iU,_.z);_.v=iU.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.T("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.v.dataChanged=function(){var N;(N=this.data)!=null&&N.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,iU.JSC$15761_CLICK_LOCATION_ID_MAP)};
_.v.onTap=function(N){var b,S=(b=this.data)==null?void 0:b.navigationCommand;S&&!_.ea(_.V7(N),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(S,N,!1)};
_.v.onSitelinkTap=function(N){var b,S,P=N==null?void 0:(b=N.model)==null?void 0:(S=b.item)==null?void 0:S.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,N,!1)};
_.v.configureSitelinkClickTargets=function(){var N=this,b,S,P=(b=this.data)==null?void 0:(S=b.clickLocationTargets)==null?void 0:S.find(function(H){return H.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
P&&_.H4(this.hostElement).querySelectorAll(".sitelink").forEach(function(H){_.K3(H,"yt-simple-endpoint",!0);N.sitelinkIds.push(H.id);var K,C;(K=N.ytSparklesClickLocationBehavior)==null||(C=K.clickTargetMap)==null||C.set(H.id,P)})};
_.v.sendImpression=function(){var N,b,S=((N=this.data)==null?void 0:(b=N.impressionCommand)==null?void 0:b.loggingUrls)||[];N=_.O(S);for(b=N.next();!b.done;b=N.next())b=b.value,b.baseUrl&&Hl(b.baseUrl,b.attributionSrcMode)};
_.v.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.d0.Object.defineProperties(iU.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
iU.prototype.onTap=iU.prototype.onTap;iU.prototype.dataChanged=iU.prototype.dataChanged;iU.JSC$15761_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],iU.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],iU.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iU.prototype,"showFavicon",null);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],iU.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],iU.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.y("design:type",Boolean)],iU.prototype,"enableThumbnailScalingFix",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iU.prototype,"dataChanged",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],iU.prototype,"onTap",null);_.p([_.Uj({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],iU);
_.X(iU,"ytd-text-image-no-button-layout-renderer",function(){if(Nvl!==void 0)return Nvl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Nvl=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var bRd;var Ja=function(){var N=_.z.apply(this,arguments)||this;N.isInlinePlaybackState=!1;N.uiUpdate=_.T("web_modern_buttons");N.hideCta=_.T("hide_cta_for_home_web_video_ads");N.noBottomMargin=!1;N.animateInTimeStamp=_.d7("hide_cta_for_home_web_video_ads_animate_in_time");N.animateInCta=!1;N.isHovered=!1;N.enableMonoStyle=_.T("enable_default_mono_cta_migration_web_client");N.player=null;N.JSC$15768_playerEvents=new Map;N.JSC$15768_preventProgressSaveTimer=null;N.delayedCtaJobId=null;return N};
_.F(Ja,_.z);_.v=Ja.prototype;_.v.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.v.attached=function(){this.JSC$15768_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15768_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.T("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.v.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15768_playerEvents)};
_.v.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Ja.JSC$15767_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ja.JSC$15767_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.v.hoverChanged=function(){var N=this;this.delayedCtaJobId&&(_.Dj.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.T("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Bm(_.Dj,function(){N.buttonContainer.classList.add("show-delayed-buttons")},_.d7("delayed_cta_on_web_delay_milliseconds")))};
_.v.setPlayer=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return(b=_.PN(N.hostElement,"yt-get-inline-preview-player-action"))&&b[0]?S.yield(b[0].getPlayerPromise(),3):S.jumpTo(0);N.player=S.yieldResult;N.ytPlayerListenerBehavior.listenToPlayerEvents(N.player,N.JSC$15768_playerEvents);_.Zd(S)})};
_.v.onPlaybackStart=function(){var N=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15768_preventProgressSaveTimer=_.PX(_.Dj,function(){N.JSC$15768_preventProgressSaveTimer=null},1E4))};
_.v.onVideoProgress=function(N){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&N>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.v.resetPreventProgressSaveTimer=function(){_.Dj.cancelJob(this.JSC$15768_preventProgressSaveTimer);this.JSC$15768_preventProgressSaveTimer=null};
_.v.getSimpleString=function(N){return _.es(N)};
_.v.onClick=function(N){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint,P;b=(P=this.data)==null?void 0:P.channelEndpoint;var H,K;((K=_.t((H=this.data)==null?void 0:H.adCtaButton,_.rU))==null?0:K.command)&&_.ea(_.V7(N),this.hostElement,["call-to-action"])||(b&&_.ea(_.V7(N),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(b,N,!1):!_.ea(_.V7(N),this.hostElement,
["secondary-button"])&&S&&(_.T("enable_short_dr_for_desktop_launchable")?(P=!!_.t(S,_.Iv),this.isInlinePlaybackState&&P&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,N,P)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,N,!0))))}};
_.v.updateWatchEndpointStartTime=function(){var N,b;this.player&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&((b=this.data)==null?0:b.navigationEndpoint)&&!this.JSC$15768_preventProgressSaveTimer&&(N=Math.floor(this.player.getCurrentTime()),_.t(this.data.navigationEndpoint,_.Iv).startTimeSeconds=N,_.t(this.data.inlinePlaybackEndpoint,_.Iv).startTimeSeconds=N)};
_.v.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.d0.Object.defineProperties(Ja.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}});
Ja.prototype.hoverChanged=Ja.prototype.hoverChanged;Ja.prototype.dataChanged=Ja.prototype.dataChanged;
Ja.JSC$15767_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
Ja.JSC$15767_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Ja.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],Ja.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],Ja.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ja.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"isInlinePlaybackState",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ja.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"uiUpdate",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"hideCta",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"animateInCta",void 0);_.p([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Ja.prototype,"buttonOverride",void 0);
_.p([_.U({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.y("design:type",Object)],Ja.prototype,"secondaryButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"isHovered",void 0);_.p([_.dq("#button-container"),_.y("design:type",HTMLElement)],Ja.prototype,"buttonContainer",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ja.prototype,"typographyBump",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ja.prototype,"typographyBumpV2",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ja.prototype,"enableMonoStyle",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ja.prototype,"dataChanged",null);
_.p([_.W4("isHovered"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ja.prototype,"hoverChanged",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ja.prototype,"isButtonGroup",null);_.p([_.Uj({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ja);
_.X(Ja,"ytd-ad-inline-playback-meta-block",function(){if(bRd!==void 0)return bRd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bRd=N},{mode:_.sZ("kevlar_poly_si_batch_j065")?1:2});var SVl;var UU=function(){var N=_.z.apply(this,arguments)||this;N.noBottomMargin=!1;N.isInlinePreviewTriggered=!1;N.JSC$15773_activeViewMeasurementDataResolver=_.Y9();return N};
_.F(UU,_.z);_.v=UU.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var N=this;this.updateInlinePreviewHoverListeners();this.JSC$15773_activeViewMeasurementDataResolver.promise.then(function(b){j6(N.activeView,b)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners();_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15773_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.JSC$15773_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rWc})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15773_inlinePreviewHoverListener)==null||qv(N)};
_.v.onDataChanged=function(){var N;((N=this.data)==null?0:N.activeView)&&this.JSC$15773_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",UU.JSC$15772_DEFAULT_CLICK_LOCATION_BEHAVIOR,UU.JSC$15772_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"));var b;if((b=this.data)==
null?0:b.forceImpAutoplay){var S;(S=this.JSC$15773_inlinePreviewHoverListener)==null||$wu(S)}};
_.v.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.v.onThumbnailContainerClick=function(N){if(this.data&&this.data.navigationEndpoint){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,N,!!_.t(S,_.Iv));N.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var N=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,S,P=(S=_.t((b=this.data)==null?void 0:b.onImpression,_.vN))==null?void 0:S.commands;P&&(P.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;N.ytComponentBehavior.resolveCommand(H)}),this.data.impressionsFired=!0)}};
_.d0.Object.defineProperties(UU.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15773_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
UU.prototype.onTypographyBumpChanged=UU.prototype.onTypographyBumpChanged;UU.prototype.onDataChanged=UU.prototype.onDataChanged;UU.JSC$15772_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);UU.JSC$15772_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],UU.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],UU.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],UU.prototype,"ytdLockupBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],UU.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],UU.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UU.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],UU.prototype,"noBottomMargin",void 0);_.p([_.U(),_.y("design:type",Object)],UU.prototype,"isInlinePreviewTriggered",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],UU.prototype,"miniMode",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],UU.prototype,"typographyBump",void 0);_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],UU.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],UU.prototype,"JSC$15773_dismissibleMedia",void 0);
_.p([_.dq("ytd-ad-inline-playback-meta-block"),_.y("design:type",HTMLElement)],UU.prototype,"adInlinePlaybackMetaBlock",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UU.prototype,"onDataChanged",null);_.p([_.t_("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UU.prototype,"onTypographyBumpChanged",null);
_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UU.prototype,"isHovered",null);_.p([_.Uj({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],UU);
_.X(UU,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(SVl!==void 0)return SVl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return SVl=N},{mode:1});var Pyb;var ZS=function(){var N=_.z.apply(this,arguments)||this;N.isInlinePreviewTriggered=!1;N.JSC$15776_activeViewMeasurementDataResolver=_.Y9();return N};
_.F(ZS,_.z);_.v=ZS.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var N=this;this.updateInlinePreviewHoverListeners();this.JSC$15776_activeViewMeasurementDataResolver.promise.then(function(b){j6(N.activeView,b)})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15776_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.JSC$15776_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rWc})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15776_inlinePreviewHoverListener)==null||qv(N)};
_.v.onDataChanged=function(){var N;((N=this.data)==null?0:N.activeView)&&this.JSC$15776_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ZS.JSC$15775_DEFAULT_CLICK_LOCATION_BEHAVIOR,ZS.JSC$15775_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"))};
_.v.onThumbnailContainerClick=function(N){if(this.data&&this.data.navigationEndpoint){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,N,!0);N.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var N=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,S,P=(S=_.t((b=this.data)==null?void 0:b.onImpression,_.vN))==null?void 0:S.commands;P&&(P.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.aN().resolve(_.Wq).resolveCommand(H,{form:{element:N.hostElement}})}),this.data.impressionsFired=!0)}};
_.d0.Object.defineProperties(ZS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15776_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ZS.prototype.onDataChanged=ZS.prototype.onDataChanged;ZS.JSC$15775_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ZS.JSC$15775_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],ZS.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],ZS.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],ZS.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],ZS.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],ZS.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],ZS.prototype,"isInlinePreviewTriggered",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],ZS.prototype,"miniMode",void 0);_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],ZS.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],ZS.prototype,"JSC$15776_dismissibleMedia",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZS.prototype,"onDataChanged",null);_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ZS.prototype,"isHovered",null);_.p([_.Uj({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ZS);
_.X(ZS,"ytd-video-display-full-buttoned-renderer",function(){if(Pyb!==void 0)return Pyb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Pyb=N},{mode:1});var Nv=function(N,b,S,P){P=P===void 0?!1:P;_.NL.call(this,N);this.adsClientErrorMessage=S;this.aggressivelySample=P;this.args=[];b&&this.args.push(b)};
_.F(Nv,_.NL);var qb=function(N,b,S,P){P=P===void 0?!1:P;_.NL.call(this,N);this.adsClientErrorMessage=S;this.aggressivelySample=P;this.args=[];b&&this.args.push(b)};
_.F(qb,_.NL);var HR9=function(N){_.E5.call(this);var b=this;this.initializationFunction=N;this.instance=null;this.addOnDisposeCallback(function(){_.Wv(b.instance);b.instance=null})};
_.F(HR9,_.E5);HR9.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.yw("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var aef=function(){var N=new Map;[].forEach(function(b){N.set(b.JSC$31383_getType(),b)});
this.getters=N};new Promise(function(){});var OrY=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"]]),KC_=new Map([["normal",{requestEvent:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{requestEvent:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",
successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],["error",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),stE=function(N){this.experimentApiProvider=N;N=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=N<.1};var jq=function(N,b,S,P){_.E5.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=S;this.experimentApiProvider=P;this.adsControlFlowManagerHelper=N(this,this,this,this,this);_.QS(this,this.adsControlFlowManagerHelper);N=_.O(b);for(b=N.next();!b.done;b=N.next())_.QS(this,b.value)};
_.F(jq,_.E5);var Kzb=function(N,b,S,P){za(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",b,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P);N=_.O(N.adsControlFlowEventListeners);for(P=N.next();!P.done;P=N.next())Kzb(P.value,b,S)};
_.v=jq.prototype;_.v.onOpportunityProcessedExternallyManaged=function(N,b,S,P){za(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",N,S,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)};
_.v.onSlotReceivedExternallyManaged=function(N,b){Aa(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",N,b)};
_.v.onSlotEntered=function(N){if(X3(this.adsControlFlowManagerHelper,N)!=null){Aa(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",N);this.adsControlFlowManagerHelper.onSlotEntered(N);for(var b=_.O(this.adsControlFlowEventListeners),S=b.next();!S.done;S=b.next())S.value.onSlotEntered(N);if(X3(this.adsControlFlowManagerHelper,N)!=null&&X3(this.adsControlFlowManagerHelper,N).isOccupyingSlotType()&&EU(this.adsControlFlowManagerHelper,N)&&!vmV(this.adsControlFlowManagerHelper,N)){var P;pC(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",N,(P=EU(this.adsControlFlowManagerHelper,N))!=null?P:void 0);N=X3(this.adsControlFlowManagerHelper,N);N.slotLifecycleStage!=="entered"&&YN(N.slot,N.slotLifecycleStage,"enterLayoutForSlot");N.slotLifecycleStage="rendering";N.registeredLayoutRenderingAdapter.startRendering(N.layout)}}};
_.v.onSlotExited=function(N){if(X3(this.adsControlFlowManagerHelper,N)!=null){Aa(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",N);this.adsControlFlowManagerHelper.onSlotExited(N);for(var b=_.O(this.adsControlFlowEventListeners),S=b.next();!S.done;S=b.next())S.value.onSlotExited(N);X3(this.adsControlFlowManagerHelper,N)!=null&&X3(this.adsControlFlowManagerHelper,N).markedForUnscheduleAfterOutboundAdapterRequests&&OR9(this,N)}};
_.v.onLayoutReceivedExternallyManaged=function(N,b,S){N.managerLayer!=="core"&&pC(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",N,b,S)};
var Cyk=function(N,b,S){if(X3(N.adsControlFlowManagerHelper,b)!=null){pC(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,S);N=_.O(N.adsControlFlowEventListeners);for(var P=N.next();!P.done;P=N.next())Cyk(P.value,b,S)}};
jq.prototype.onLayoutExited=function(N,b,S){if(X3(this.adsControlFlowManagerHelper,N)!=null){pC(this.adEventLogger,vC9(S),N,b);this.adsControlFlowManagerHelper.onLayoutExited(N,b);for(var P=_.O(this.adsControlFlowEventListeners),H=P.next();!H.done;H=P.next())H.value.onLayoutExited(N,b,S);(S=EU(this.adsControlFlowManagerHelper,N))&&b.layoutId===S.layoutId&&GZE(this,N)}};
jq.prototype.disposeInternal=function(){var N=ruS(this.adsControlFlowManagerHelper);N=_.O(N);for(var b=N.next();!b.done;b=N.next())OR9(this,b.value);_.E5.prototype.disposeInternal.call(this)};
var OR9=function(N,b){if(X3(N.adsControlFlowManagerHelper,b)!=null)if(X3(N.adsControlFlowManagerHelper,b).JSC$31413_isSlotExitRequested()||X3(N.adsControlFlowManagerHelper,b).JSC$31413_isLayoutExitRequested())X3(N.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(X3(N.adsControlFlowManagerHelper,b).isOccupyingSlotType())X3(N.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,GZE(N,b);else if(X3(N.adsControlFlowManagerHelper,b).JSC$31413_isSlotFillRequested())X3(N.adsControlFlowManagerHelper,
b).markedForUnscheduleAfterOutboundAdapterRequests=!0,X3(N.adsControlFlowManagerHelper,b)!=null&&(Aa(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=X3(N.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var S=EU(N.adsControlFlowManagerHelper,b),P;N.experimentApiProvider.get();(P=_.T("h5_enable_layout_unscheduling_events"))&&(S?cuE(N,b,S):_.yw(Error("Mh"),b,S,void 0,!1));Aa(N.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var H=X3(N.adsControlFlowManagerHelper,b),K=b.slotEntryTrigger,C=H.registeredSlotEntryTriggerAdapters.get(K.triggerId);C&&(C.unregisterTrigger(K),H.registeredSlotEntryTriggerAdapters.delete(K.triggerId));K=_.O(b.slotFulfillmentTriggers);for(C=K.next();!C.done;C=K.next()){C=C.value;var G=H.registeredFulfillmentTriggerAdapters.get(C.triggerId);G&&(G.unregisterTrigger(C),H.registeredFulfillmentTriggerAdapters.delete(C.triggerId))}K=_.O(b.slotExpirationTriggers);
for(C=K.next();!C.done;C=K.next())if(C=C.value,G=H.registeredExpirationTriggerAdapters.get(C.triggerId))G.unregisterTrigger(C),H.registeredExpirationTriggerAdapters.delete(C.triggerId);H.hasLayout()&&(K=H.layout,y0(H,K.layoutExitNormalTriggers),y0(H,K.layoutExitSkipTriggers),y0(H,K.layoutExitMuteTriggers),y0(H,K.layoutExitUserInputSubmittedTriggers),y0(H,K.layoutExitUserCancelledTriggers));H.registeredFulfillmentAdapter=void 0;H.registeredSlotAdapter!=null&&(H.registeredSlotAdapter.release(),H.registeredSlotAdapter=
void 0);H.registeredLayoutRenderingAdapter!=null&&(H.registeredLayoutRenderingAdapter.release(),H.registeredLayoutRenderingAdapter=void 0);H=N.adsControlFlowManagerHelper;X3(H,b)&&(H=aD9(H,b.slotType+"_"+b.slotPhysicalPosition))&&H.delete(b.slotId);Aa(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);N=_.O(N.adsControlFlowEventListeners);for(H=N.next();!H.done;H=N.next())H=H.value,H.onSlotUnscheduled(b),S&&!P&&cuE(H,b,S)}},cuE=function(N,b,S){pC(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
b,S);
pC(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,S);N=_.O(N.adsControlFlowEventListeners);for(var P=N.next();!P.done;P=N.next())P=P.value,S&&cuE(P,b,S)},GZE=function(N,b){if(X3(N.adsControlFlowManagerHelper,b)!=null&&X3(N.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var S=EU(N.adsControlFlowManagerHelper,b);
if(S&&vmV(N.adsControlFlowManagerHelper,b)){if(X3(N.adsControlFlowManagerHelper,b)!=null){var P=N.adEventLogger,H;var K=((H=KC_.get("abandoned"))==null?void 0:H.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";pC(P,K,b,S);N=X3(N.adsControlFlowManagerHelper,b);N.slotLifecycleStage!=="rendering"&&YN(N.slot,N.slotLifecycleStage,"exitLayout");N.slotLifecycleStage="rendering_stop_requested";N.registeredLayoutRenderingAdapter.stopRendering(S,"abandoned")}}else{Aa(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
b);try{P=X3(N.adsControlFlowManagerHelper,b);if(!P)throw new qb("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");P.slotLifecycleStage!=="enter_requested"&&P.slotLifecycleStage!=="entered"&&P.slotLifecycleStage!=="rendering"&&YN(P.slot,P.slotLifecycleStage,"exitSlot");P.slotLifecycleStage="exit_requested";if(P.registeredSlotAdapter===void 0)throw P.slotLifecycleStage="scheduled",new qb("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
P.registeredSlotAdapter.exit()}catch(C){C instanceof qb&&C.adsClientErrorMessage?(ReN(N.adEventLogger,C.adsClientErrorMessage,b),_.yw(C,b,void 0,void 0,C.aggressivelySample)):(ReN(N.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),_.yw(C,b))}}}};var IL=function(N,b,S,P,H,K){_.E5.call(this);this.registry=N;this.experimentApiProvider=K;this.slotMap=new Map};
_.F(IL,_.E5);var aD9=function(N,b){return(N=N.slotMap.get(b))?N:new Map},X3=function(N,b){return aD9(N,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},ruS=function(N){var b=[];
N.slotMap.forEach(function(S){S=_.O(S.values());for(var P=S.next();!P.done;P=S.next())b.push(P.value.slot)});
return b};
IL.prototype.onSlotEntered=function(N){N=X3(this,N);N.slotLifecycleStage!=="enter_requested"&&YN(N.slot,N.slotLifecycleStage,"onSlotEntered");N.slotLifecycleStage="entered"};
var vmV=function(N,b){N=X3(N,b);return N.hasLayout()&&N.isRendering()},EU=function(N,b){(N=X3(N,b))?N.hasLayout()&&!N.layout&&_.yw("Unexpected empty layout",b):_.yw("Unexpected undefined slotState",b);
return(N==null?void 0:N.layout)||null};
IL.prototype.onSlotExited=function(N){N=X3(this,N);N.slotLifecycleStage!=="exit_requested"&&YN(N.slot,N.slotLifecycleStage,"onSlotExited");N.slotLifecycleStage="scheduled"};
IL.prototype.onLayoutExited=function(N,b){N=X3(this,N);N.isPrimaryLayout(b)&&(N.slotLifecycleStage!=="rendering_stop_requested"&&YN(N.slot,N.slotLifecycleStage,"onLayoutExited"),N.slotLifecycleStage="entered")};
var y0=function(N,b){b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=N.registeredLayoutExitTriggerAdapters.get(S.triggerId);P&&(P.unregisterTrigger(S),N.registeredLayoutExitTriggerAdapters.delete(S.triggerId))}},YN=function(N,b,S){_.yw("Slot stage was "+b+" when calling method "+S,N)};var nmN=function(N){_.E5.call(this);this.deps=N;this.JSC$15829_adsControlFlowManager=Wz4(this)};
_.F(nmN,_.E5);var Wz4=function(N){var b=new jq(function(S,P,H,K){return new IL(N.deps.registry,S,P,H,K,N.deps.experimentApiProvider)},new Set(cos(N.deps.registry).concat(N.deps.listeners)),N.deps.adEventLogger,N.deps.experimentApiProvider);
_.QS(N,b);return b};var OAu=function(){};var dU9=function(N,b){_.E5.call(this);this.experimentApiProvider=N;this.eventLoggingSettingsProvider=b;this.eventCount=0;this.premiumAdSeenEventLogger=CCE()()};
_.F(dU9,_.E5);dU9.prototype.logEvent=function(N){za(this,N)};
var Aa=function(N,b,S,P){za(N,b,void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,void 0,P)},pC=function(N,b,S,P,H){za(N,b,void 0,void 0,void 0,S,P?P:void 0,void 0,void 0,S.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,void 0,H);
S=_.aN().resolve(_.cq(Ev))==null?void 0:pv();b=S==null?void 0:S.adsSeenHotConfig;S=S==null?void 0:S.adsHotConfig;(b==null?0:b.logOnAdsSeen)&&(S==null?0:S.webEnablePremiumAdsSeenLogging)&&mUd(N,P?P:void 0,H)},ReN=function(N,b,S){za(N,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:b})},za=function(N,b,S,P,H,K,C,G,a,R,n,d,m){m=m===void 0?0:m;
kZz(N.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",K,"layout:",C,"ping:",G,"Opportunity:",{opportunityType:S,associatedSlotId:P,slotsFromOpportunity:H,triggerBundle:a,adSlotLoggingData:R,adLayoutLoggingData:n});try{var k=function(){N.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||_.yw("Empty PACF event type",K,C);var M=N.eventLoggingSettingsProvider.get();var l;(l=M.alwaysIncludeDebugData)||(M.experimentApiProvider.get(),l=
!1);M=l;l={eventType:b,eventOrder:++N.eventCount};var u={};K&&(u.slotData=GcU(M,K));if(C){var J={type:C.layoutType,controlFlowManagerLayer:OrY.get(C.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};M&&(J.debugData={layoutId:C.layoutId});u.layoutData=J}G&&(u.pingData={pingDispatchStatus:G.dispatchStatus,serializedAdPingMetadata:G.ping.serializedAdPingMetadata,pingIndex:G.index});a&&(u.triggerData=CXf(a.trigger,a.category));S&&(u.opportunityData=roI(M,S,P,H));l.adClientData=u;R&&(l.serializedSlotAdServingData=
R.serializedSlotAdServingDataEntry);n&&(l.serializedAdServingData=n.serializedAdServingDataEntry);d&&(l.errorInfo=d);_.Dn("adsClientStateChange",{adsClientEvent:l})}};
m&&m>0?_.XC(_.oT(),function(){return k()},m):k()}catch(M){kZz(N.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.XC(_.oT(),function(){_.yw(M instanceof Error?M:String(M),K,C,{pacf_message:"exception during pacf logging"})})}},mUd=function(N,b,S){if(b){var P=b.adLayoutLoggingData;
_.XC(_.oT(),function(){N.premiumAdSeenEventLogger!=null&&P&&_.Dn("adsSeenClientLogging",{serializedAdServingDataEntry:P.serializedAdServingDataEntry})},S!=null?S:0)}};var TvE=function(N,b){dU9.call(this,N,b)};
_.F(TvE,dU9);var tTd=function(){},kZz=function(N,b){return _.T(b)};var Fz9=function(){var N=new MTE;this.JSC$15854_adsControlFlowManager=(new nmN(N)).JSC$15829_adsControlFlowManager},MTE=function(){_.E5.call(this);
var N=this;this.experimentApiProvider=new HR9(function(){return new tTd});
var b=new HR9(function(){return new stE(N.experimentApiProvider)});
this.adEventLogger=new TvE(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.F(MTE,_.E5);var Bv9=function(){},lDE,DS=function(){lDE||(lDE=new Bv9);
return lDE},V0=function(N){if(!N.JSC$15865_externallyManagedSlotAdapterCallback){var b=(new Fz9).JSC$15854_adsControlFlowManager;
N.JSC$15865_externallyManagedSlotAdapterCallback=b}return N.JSC$15865_externallyManagedSlotAdapterCallback},LzS=function(N,b,S){var P=b.opportunityType,H=Error("Nh");
if(P!==void 0){var K=V0(N);Kzb(K,P,void 0,S)}else _.yw(H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});K=[];if(b.adSlotAndLayoutMetadata!==void 0){b=_.O(b.adSlotAndLayoutMetadata);for(var C=b.next();!C.done;C=b.next()){var G=C.value;if(C=G.adSlotMetadata)if(K.push(C),N.onSlotReceivedExternallyManaged(C,S),G.adLayoutMetadata){G=_.O(G.adLayoutMetadata);for(var a=G.next();!a.done;a=G.next())N.onLayoutReceivedExternallyManaged(C,a.value,S)}else S>0&&_.yw("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else S>0&&_.yw("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else S>0&&_.yw("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(P!==void 0)N.onOpportunityProcessedExternallyManaged(P,K,void 0,S);else _.yw(H,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Bv9.prototype.onSlotReceivedExternallyManaged=function(N,b){N=wx(N);if(N instanceof qb)_.yw(N,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else V0(this).onSlotReceivedExternallyManaged(N,b)};
Bv9.prototype.onLayoutReceivedExternallyManaged=function(N,b,S){N=wx(N);b=RXI(b);if(N instanceof qb)_.yw(N,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(b instanceof Nv)_.yw(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else V0(this).onLayoutReceivedExternallyManaged(N,b,S)};
Bv9.prototype.onOpportunityProcessedExternallyManaged=function(N,b,S,P){var H=[];b=_.O(b);for(var K=b.next();!K.done;K=b.next())K=wx(K.value),K instanceof qb?_.yw(K,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):H.push(K);V0(this).onOpportunityProcessedExternallyManaged(N,H,S,P)};
var fDd=function(N,b){b=wx(b);if(b instanceof qb)_.yw(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var S=V0(N);Aa(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);S=_.O(S.adsControlFlowEventListeners);for(var P=S.next();!P.done;P=S.next())P=X3(P.value,b),P.slotLifecycleStage!=="not_scheduled"&&YN(P.slot,P.slotLifecycleStage,"onSlotScheduled"),P.slotLifecycleStage="scheduled";N=V0(N);Aa(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);N=_.O(N.adsControlFlowEventListeners);
for(S=N.next();!S.done;S=N.next())S.value.onSlotEntered(b)}},uR9=function(N,b){b=wx(b);
if(b instanceof qb)_.yw(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var S=V0(N);Aa(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);S=_.O(S.adsControlFlowEventListeners);for(var P=S.next();!P.done;P=S.next())P.value.onSlotExited(b);N=V0(N);Aa(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);N=_.O(N.adsControlFlowEventListeners);for(S=N.next();!S.done;S=N.next())S.value.onSlotUnscheduled(b)}},Qt4=function(N,b,S){b=wx(b);
S=RXI(S);if(b instanceof qb)_.yw(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(S instanceof Nv)_.yw(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var P=V0(N);pC(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,S);P=_.O(P.adsControlFlowEventListeners);for(var H=P.next();!H.done;H=P.next())H.value.onLayoutScheduled(b,S);N=V0(N);pC(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,S);N=_.O(N.adsControlFlowEventListeners);
for(P=N.next();!P.done;P=N.next())Cyk(P.value,b,S)}},gl=function(N,b,S){b=wx(b);
S=RXI(S);if(b instanceof qb)_.yw(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(S instanceof Nv)_.yw(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var P=V0(N);pC(P.adEventLogger,vC9("normal"),b,S);P=_.O(P.adsControlFlowEventListeners);for(var H=P.next();!H.done;H=P.next())H.value.onLayoutExited(b,S,"normal");N=V0(N);N=_.O(N.adsControlFlowEventListeners);for(P=N.next();!P.done;P=N.next())cuE(P.value,b,S)}};_.eq=_.A(function(N){var b=_.h_(N,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});N=Object.assign({},b);var S=b.data;b=b.customCommandResolver;var P=(delete N.data,delete N.customCommandResolver,N);N=_.nt({visibilityCallback:function(G,a){var R,n=(R=S().interaction)==null?void 0:R.onFirstVisible;G&&(n&&_.AM(n),P.setOnErrorHandler()&&WC_(a))},
showOption:_.iu});b=_.z8(function(){return S().interaction},b,function(){var G;
return(G=P.listenToTapEvent)==null?void 0:G.call(P)});
var H=_.O(_.QF(!1,void 0,"wAC0Lc")),K=H.next().value,C=H.next().value;H=_.Ob(function(G){var a;((a=P.setTouchEndHandler)==null?0:a.call(P))&&!K()&&(G.currentTarget.click(),C(!0),setTimeout(function(){C(!1)},100));
return!1});
return _.c("ad-image-view-model",{class:function(){var G,a=[((G=S().interaction)==null?0:G.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],R;((R=P.isGridViewEnabled)==null?0:R.call(P))&&a.push("ytwAdImageViewModelHostInGridView");return a.join(" ")},
el:_.VN(N,b),"on:touchend":H},_.c("div",{class:"ytwAdImageViewModelHostImageContainer"},_.c(_.gG,{data:function(){var G;return{sources:S().imageSources,contentMode:(G=S().imageProperties)==null?void 0:G.contentMode}},
alt:function(){var G,a;return((G=S().interaction)==null?void 0:(a=G.accessibility)==null?void 0:a.label)||""},
targetHeight:P.targetHeight,targetWidth:P.targetWidth,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,useWidth:P.useWidth,style:function(){var G,a;return"vertical-align: bottom;"+(((G=S().background)==null?0:G.color)?"background-color:"+_.xn((a=S().background)==null?void 0:a.color)+";":"")},
className:function(){return P.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var G,a;return(a=(G=P.setDraggable)==null?void 0:G.call(P))!=null?a:void 0}})))},"lc");var xUz=_.A(function(N){var b=N.data,S=N.listenToTapEvent,P=function(){};
return _.c("ad-button-hover-overlay-view-model",{"on:click":_.Ob(function(H){if(_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")){var K,C=(K=b().interaction)==null?void 0:K.onTap;C&&_.bC(H.currentTarget,"yt-navigate",{endpoint:_.UZ(C)})}}),
class:function(){var H;return((H=b().interaction)==null?0:H.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(H){var K,C=(K=b().interaction)==null?void 0:K.onFirstVisible;H&&C&&_.AM(C)},
showOption:_.iu}),_.z8(function(){return b().interaction},void 0,function(){return!_.T("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(S==null?void 0:S())}))},function(){return _.T("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.c(_.kY,{data:function(){return b().button}},{adButtonViewModel:function(H){return _.c(_.U$,{data:H.data,
customCommandResolver:P})}}):_.c(_.kY,{data:function(){return b().button}},{adButtonViewModel:_.U$})}())},"mc");var bF;_.qu(_.A(function(N){var b=N.data;N=_.nt({visibilityCallback:function(G,a){if(G){var R;(G=(R=b().interaction)==null?void 0:R.onFirstVisible)&&_.AM(G);var n;if(R=(n=b().adLayoutData)==null?void 0:n.activeViewData)S8(a,R),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&PP(a)})}else _.T("stop_av_measurement_on_detach")&&PP(a)},
showOption:_.iu,hideOption:Jr});var S=_.z8(function(){return b().interaction},void 0,function(){return!0}),P=_.O(_.QF(!1,void 0,"VNDDT")),H=P.next().value,K=P.next().value;
P=_.Ob(function(){K(!0)});
var C=_.Ob(function(){K(!1)});
return _.c("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.VN(N,MKu,S),"on:mouseenter":P,"on:mouseleave":C},_.c("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.r5({"max-width":function(){return _.T("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.c("div",{class:function(){var G;
a:{var a;switch((G=_.t(b().thumbnailImage,lac))==null?void 0:(a=G.imageProperties)==null?void 0:a.renderingAspect){case "RENDERING_ASPECT_SQUARE":G="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":G="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}G=void 0}return G}},_.c(_.kY,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(G){return _.c(_.eq,
{data:G.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})),_.c("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.c(_.W,{cond:function(){var G,a,R;
return(G=_.t(b().thumbnailImage,lac))==null?void 0:(a=G.imageProperties)==null?void 0:(R=a.overlayIcon)==null?void 0:R.iconImage},
then:function(G){return _.c(_.gG,{data:G,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.c("div",{class:function(){return H()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.c(_.kY,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(G){return _.c(xUz,
{data:G.data,
listenToTapEvent:!0})}}))),_.c("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.c(_.kY,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(G){return _.c(pH,{data:G.data,
listenToTapEvent:!0,setTouchEndHandler:_.T("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;N=_.nt({visibilityCallback:function(G,a){if(G){var R;(G=(R=b().interaction)==null?void 0:R.onFirstVisible)&&_.AM(G);var n;if(R=(n=b().adLayoutData)==null?void 0:n.activeViewData)S8(a,R),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&PP(a)})}else _.T("stop_av_measurement_on_detach")&&PP(a)},
showOption:_.iu,hideOption:Jr});var S=_.nU(_.o7),P=_.z8(function(){return b().interaction}),H={},K={},C={};
return _.c("square-image-layout-view-model",{class:_.KU("ytwSquareImageLayoutViewModelHost",(H.ytwSquareImageLayoutViewModelHostColumn=S,H)),el:_.VN(N,FCL,P)},_.c("div",{class:_.KU("ytwSquareImageLayoutViewModelHostImage",(K.ytwSquareImageLayoutViewModelHostColumnImage=S,K))},function(){return _.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(G){return _.c(_.eq,{data:G.data,
isGridViewEnabled:S,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.c("div",{class:_.KU("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=S,C))},_.c(_.kY,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:pH}),function(){return _.c(_.kY,{data:function(){return b().adButton}},{adButtonViewModel:function(G){var a={};
return _.c(_.U$,{data:G.data,className:_.KU((a.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=S,a))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.noBottomMargin;var P=N.typographyBump;N=_.nt({visibilityCallback:function(d,m){if(d){var k;(d=(k=b().interaction)==null?void 0:k.onFirstVisible)&&_.AM(d);var M;if(k=(M=b().adLayoutData)==null?void 0:M.activeViewData)S8(m,k),_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&PP(m)})}else _.T("stop_av_measurement_on_detach")&&PP(m)},
showOption:_.iu,hideOption:Jr});var H=_.z8(function(){return b().interaction},void 0,function(){return _.T("enable_web_home_top_landscape_image_layout_level_click")}),K=function(){return b().interaction};
K!==void 0&&K!==null||_.qB(Error("Oh"));var C=function(){var d,m,k;return(d=_.t(b().thumbnailImage,lac))==null?void 0:(m=d.background)==null?void 0:(k=m.backgroundImageSource)==null?void 0:k.imageSources};
K=_.O(_.QF(!1,void 0,"NFjwje"));var G=K.next().value,a=K.next().value;K=_.Ob(function(){a(!0)});
var R=_.Ob(function(){a(!1)}),n=function(){return G()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.c("top-landscape-image-layout-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)&&_.T("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.VN(N,BWu,H),"on:mouseenter":K,"on:mouseleave":R},_.c("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.c(_.W,{cond:function(){return C()&&C().length>0},
then:function(){return _.c("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.r5({top:"0","background-image":function(){return"url("+String(C()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.c(_.W,{cond:function(){return!!b().adButtonHoverOverlay},
then:function(){return _.c("div",{class:n},_.c(_.kY,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:xUz}))}}),_.c("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.c(_.kY,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(d){return _.c(_.eq,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.T("enable_web_home_top_landscape_image_layout_level_click")})}})),_.c("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.c(_.gG,{data:{sources:[{clientResource:{imageName:_.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.c("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.c(_.kY,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.c(pH,{data:d.data,
noBottomMargin:function(){return S==null?void 0:S()},
listenToTapEvent:function(){return _.T("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return P==null?void 0:P()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.kg,
noBottomMargin:_.kg,typographyBump:_.kg}});var omO=_.A(function(N){var b=N.data,S=_.nt({visibilityCallback:function(H){var K,C=(K=b().interaction)==null?void 0:K.onFirstVisible;H&&C&&_.AM(C)},
showOption:_.iu});N=_.z8(function(){return b().interaction},N.customCommandResolver);
var P={};return _.c("ad-text-image-view-model",{class:_.KU("ytwAdTextImageViewModelHost",(P.ytwAdTextImageViewModelHostDarkBackground=function(){return b().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},P)),
el:_.VN(S,N),"aria-label":function(){var H,K;return(H=b().interaction)==null?void 0:(K=H.accessibility)==null?void 0:K.label}},_.c("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.c(_.mD,{text:function(){return b().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.c(_.W,{cond:function(){return b().overlayIcon},
then:function(H){return _.c("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.c(_.gG,{data:H,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var iRk=_.A(function(N){var b=N.data;return _.c("feed-ad-sitelink-view-model",{class:function(){var S;return((S=b().interaction)==null?0:S.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.VN(_.z8(function(){return b().interaction},N.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var S,P;return(S=b().interaction)==null?void 0:(P=S.accessibility)==null?void 0:P.label},
role:"link",tabindex:0},_.c(_.mD,{text:function(){return b().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var JuE=_.A(function(N){var b=N.data;N={};return _.c("feed-ad-sitelinks-carousel-view-model",{el:_.VN(_.nt({visibilityCallback:function(S){var P,H=(P=b().interaction)==null?void 0:P.onFirstVisible;S&&H&&_.AM(H)},
showOption:_.iu})),class:_.KU("ytwFeedAdSitelinksCarouselViewModelHost",(N.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return b().style==="FEED_AD_SITELINKS_STYLE_NONE"},N))},_.c(_.kY,{data:function(){return b().sitelinks}},{feedAdSitelinkViewModel:iRk}))},"sc");_.qu(_.A(function(N){var b=N.data;N=_.nt({visibilityCallback:function(C,G){if(C){var a;(C=(a=b().interaction)==null?void 0:a.onFirstVisible)&&_.AM(C);var R;(a=(R=b().adLayoutData)==null?void 0:R.activeViewData)&&S8(G,a)}},
showOption:_.iu});var S=_.O(_.QF(!1,void 0,"BzPhl")),P=S.next().value,H=S.next().value;S=_.Ob(function(){H(!0)});
var K=_.Ob(function(){H(!1)});
return _.c("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.VN(N),"on:mouseenter":S,"on:mouseleave":K},_.c("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.c("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.c(_.kY,{data:function(){return b().textImage}},{adTextImageViewModel:omO})),_.c("div",{class:function(){return P()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.c(_.kY,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.c(xUz,{data:C.data,
listenToTapEvent:!0})}}))),_.c("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.c(_.kY,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.c(pH,{data:C.data,
listenToTapEvent:!0})}}),_.c(_.kY,{data:function(){return b().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:JuE})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.typographyBump;return _.c("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.VN(_.nt({visibilityCallback:function(P,H){if(P){var K;(P=(K=b().interaction)==null?void 0:K.onFirstVisible)&&_.AM(P);var C;(K=(C=b().adLayoutData)==null?void 0:C.activeViewData)&&S8(H,K)}},
showOption:_.iu,hideOption:Jr}))},_.c("div",null,_.c(_.kY,{data:function(){return b().videoLockup}},{lockupViewModel:function(P){return _.c(_.Y3,{data:P.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.kg,
noBottomMargin:_.kg,typographyBump:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.className;var P=N.typographyBump;return _.c("video-display-compact-button-group-layout-view-model",{el:_.VN(_.nt({visibilityCallback:function(H,K){if(H){var C;(H=(C=b().interaction)==null?void 0:C.onFirstVisible)&&_.AM(H);var G;(C=(G=b().adLayoutData)==null?void 0:G.activeViewData)&&S8(K,C)}},
showOption:_.iu})),class:_.KU("videoDisplayCompactButtonGroupLayoutViewModelHost",S)},_.c(_.kY,{data:function(){return b().videoLockup}},{lockupViewModel:function(H){return _.c(_.Y3,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.kg,
className:_.kg,typographyBump:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.className;var P=N.typographyBump;return _.c("video-display-compact-buttoned-layout-view-model",{el:_.VN(_.nt({visibilityCallback:function(H,K){if(H){var C;(H=(C=b().interaction)==null?void 0:C.onFirstVisible)&&_.AM(H);var G;(C=(G=b().adLayoutData)==null?void 0:G.activeViewData)&&S8(K,C)}},
showOption:_.iu})),class:_.KU("videoDisplayCompactButtonedLayoutViewModelHost",S)},_.c(_.kY,{data:function(){return b().videoLockup}},{lockupViewModel:function(H){return _.c(_.Y3,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.kg,
className:_.kg,typographyBump:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.className;var P=N.typographyBump;var H=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},K=_.nU(_.o7);
N=_.nt({visibilityCallback:function(R,n){if(R){var d=b();R=d.adLayoutData;var m;(d=(m=d.interaction)==null?void 0:m.onFirstVisible)&&_.AM(d);(m=R==null?void 0:R.activeViewData)&&S8(n,m)}},
showOption:_.iu});var C=_.UB(function(){return{containerType:H()&&K()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:H()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),G=_.UB(function(){return H()&&K()?"":H()?"168px":"50%"},void 0,"Om6kNe"),a=_.UB(function(){return H()&&K()?9999:void 0},void 0,"S71lKd");
return _.c("video-display-compact-layout-view-model",{el:_.VN(N),class:_.KU("videoDisplayCompactLayoutViewModelHost",S)},_.c(_.kY,{data:function(){return b().videoLockup}},{lockupViewModel:function(R){return _.c(_.Y3,{data:R.data,
containerLayoutConfig:C,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:G,thumbnailTargetWidth:a,typographyBump:P})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.kg,
className:_.kg,typographyBump:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=N.typographyBump;return _.c("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.VN(_.nt({visibilityCallback:function(P,H){if(P){var K;(P=(K=b().interaction)==null?void 0:K.onFirstVisible)&&_.AM(P);var C;(K=(C=b().adLayoutData)==null?void 0:C.activeViewData)&&S8(H,K)}},
showOption:_.iu,hideOption:Jr}))},_.c("div",null,_.c(_.kY,{data:function(){return b().videoLockup}},{lockupViewModel:function(P){return _.c(_.Y3,{data:P.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.kg,
noBottomMargin:_.kg,typographyBump:_.kg}});_.UU4=_.A(function(N){var b=N.data;N=_.Ct("ad-card-badge-view-model");return _.c("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:N},_.c(_.W,{cond:function(){return b().imageBadge},
then:function(S){return _.c(_.gG,{data:S,alt:""})}}))},"zc");var ZRE=_.A(function(N){var b=N.data;var S=N.customCommandResolver;return _.c("carousel-ad-card-image-view-model",{class:function(){var P;return((P=b().interaction)==null?0:P.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu}),_.z8(function(){return b().interaction},S)),
"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(P){return _.c(_.eq,{data:P.data,
customCommandResolver:S})}}),_.c("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.c(_.kY,{data:function(){return b().badge}},{adCardBadgeViewModel:_.UU4})),_.c(_.of,{model:{color:4}}))},"Ac");var jtS=_.A(function(N){var b=_.O(_.QF(0,void 0,"JJ0QQc")),S=b.next().value;b.next();var P=b.next().value,H=_.O(_.QF(!1,void 0,"f6YICe"));b=H.next().value;var K=H.next().value,C;_.ej(function(){clearTimeout(C)});
H=_.Ob(function(){var R;((R=N.animate)==null?0:R.call(N))?(K(!0),C=setTimeout(function(){K(!1);G()},200)):G();
return!1});
var G=function(){P(function(R){return(R+N.numShownItems())%N.data().length})},a={};
return _.c("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.c("div",{class:_.KU("ytwHorizontalCarouselCarouselWrapper")},_.c("div",{class:_.KU("ytwHorizontalCarouselCarouselInnerWrapper",(a.ytwHorizontalCarouselAnimating=b,a))},_.c(_.zj,{each:N.data,keyBy:"INDEX"},function(R,n){return _.c("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.r5({"flex-basis":function(){return"calc((100% - (8px * "+(N.numShownItems()-1)+")) / "+N.numShownItems()+")"},
order:function(){var d=n-S();d<0&&(d+=N.data().length);return d}})},N.children(R,n))}))),_.c("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":H},N.nextButton()))},"Bc");var zeE=_.A(function(N){var b=N.data;var S=N.customCommandResolver;var P=N.expansive;return _.c("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.VN(_.nt({visibilityCallback:function(H){var K,C=(K=b().interaction)==null?void 0:K.onFirstVisible;H&&C&&_.AM(C)},
showOption:_.iu}))},_.c(jtS,{data:function(){var H;return((H=b())==null?void 0:H.carouselAdCards)||[]},
nextButton:function(){return _.c(_.kY,{data:function(){return b().nextButton}},{buttonViewModel:function(H){var K=H.data;
return _.c(_.j$,{data:function(){return(P==null?0:P())?Object.assign({},K(),{style:"mono"}):K()},
className:_.T("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(H){return _.c(_.kY,{data:H},{carouselAdCardImageViewModel:function(K){return _.c(ZRE,{data:K.data,customCommandResolver:S})}})}))},"Cc");var Auc=_.A(function(N){var b=N.data;var S=N.customCommandResolver;var P=N.className;var H=N.buttonClassName;var K=N.animationEntityKey;var C=N.expansive;return _.c("carousel-button-view-model",{class:_.KU("ytwCarouselButtonViewModelHost",P)},_.c(_.kY,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(G){return _.c(zeE,{data:G.data,
customCommandResolver:S,expansive:C})}}),_.c(_.kY,{data:function(){return b().button}},{adButtonViewModel:function(G){var a=G.data;
return _.c(_.U$,{data:function(){return(C==null?0:C())?Object.assign({},a(),{style:"AD_BUTTON_STYLE_TONAL"}):a()},
className:H,customCommandResolver:S,animationEntityKey:K})}}))},"Dc");_.XVl=_.A(function(N){var b=N.data;N=N.className;var S=_.Ct("pivot-button-view-model");_.YU(function(){var P;((P=b())==null?0:P.backgroundColor)&&S.value.setAttribute("data-background-color",String(b().backgroundColor))});
return _.c("pivot-button-view-model",{el:S,class:_.KU("ytwPivotButtonViewModelHost",N)},_.c(_.xg,{command:function(){var P=b();P=P.onClickCommand?_.UZ(P.onClickCommand):P.contentDescription?_.Nn(P.contentDescription):void 0;return P},
ariaLabel:function(){return b().contentDescription}},_.c(_.W,{cond:function(){return b().thumbnail},
then:function(P){return _.c(_.gG,{data:P,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.c(_.W,{cond:function(){return b().icon},
then:function(P){return _.c(_.cX,{icon:function(){return P().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.EmE=_.A(function(N){var b=N.data;var S=N.buttonShapeOverrideables;return _.c("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.c(_.kY,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
buttonOverrides:S})},
likeButtonViewModel:function(P){return _.c(_.aD,{data:P.data,buttonShapeOverrideables:S})},
dislikeButtonViewModel:function(P){return _.c(_.cn,{data:P.data,buttonShapeOverrideables:S})},
toggleButtonViewModel:function(P){return _.c(_.Hc,{data:P.data,buttonShapeOverrides:S})}}))},"Fc");var pVO=_.A(function(N){var b=N.avatar;var S=N.headline;var P=N.badge;var H=N.description;var K=N.expansive;N={};return _.c("yt-ad-metadata-shape",{class:_.KU("ytAdMetadataShapeHost",(N.ytAdMetadataShapeHostLarge=K,N))},_.c("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.c(_.W,{cond:b,then:function(C){return _.c(_.J94,{data:function(){return(K==null?0:K())?Object.assign({},C(),{size:"AD_AVATAR_SIZE_M"}):C()}})}}),_.c("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.c(_.mD,{text:S,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.c(_.W,{cond:P,then:function(C){return _.c(_.Xl,{data:function(){return(K==null?0:K())?Object.assign({},C(),{style:"AD_BADGE_STYLE_STARK"}):C()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.c("h2",{class:"ytAdMetadataShapeHostDescription"},_.c(_.mD,{text:H,
linkInheritColor:!0,isHeadline:function(){return K==null?void 0:K()}})))},"Gc");var YVc=_.A(function(N){var b=N.data;var S=N.onShow;var P=N.expansive;N=_.z8(function(){return b().interaction});
_.YU(function(){var K,C=(K=b().animatedRenderingConfig)==null?void 0:K.delayedSecondsToVisible;if(C){var G=setTimeout(S,C*1E3);_.ej(function(){clearTimeout(G)})}});
var H={};return _.c("reels-ad-card-buttoned-view-model",{class:_.KU(function(){var K;return((K=b().interaction)==null?0:K.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(H.ytwReelsAdCardButtonedViewModelHostExpansive=P,H)),
el:_.VN(N)},_.c(pVO,{avatar:function(){return _.t(b().avatar,MVN)},
headline:function(){return b().headline},
badge:function(){return _.t(b().adBadge,FKb)},
description:function(){return b().description},
expansive:P}),_.c(_.kY,{data:function(){return b().ctaButton}},{adButtonViewModel:function(K){var C=K.data;
return _.c(_.U$,{data:function(){return(P==null?0:P())?Object.assign({},C(),{style:"AD_BUTTON_STYLE_FILLED"}):C()}})}}))},"Hc");var yuV=_.A(function(N){var b=N.data;N=N.expansive;var S=_.T("web_ad_metadata_clickable")?_.z8(function(){return b().interaction},void 0,function(){return _.T("web_ad_metadata_clickable")}):void 0,P={};
P=_.ff("ytwReelsAdMetadataViewModelHost",(P.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.T("web_ad_metadata_clickable"),P));return _.c("reels-ad-metadata-view-model",{class:P,el:_.VN(S)},_.c(pVO,{avatar:function(){return _.t(b().avatar,MVN)},
headline:function(){return b().headline},
badge:function(){return _.t(b().adBadge,FKb)},
description:function(){return b().description},
expansive:N}))},"Ic");var IDN={iconPosition:"icon-with-label",size:"L"},DUV=_.A(function(N){var b=N.data;var S=N.overlayDensity;var P=N.extractOverlay;var H=N.extractActionBar;N=_.Ct("reels-player-overlay-layout-view-model");var K=_.$q(S,0),C=function(){var k;return(k=b().reelsAdCardButtonedEntityKey)!=null?k:""},G=function(){return C()+"/ad_button"},a=_.nf(PeE,C),R=function(){var k,M;
return(M=(k=a())==null?void 0:k.value)!=null?M:!1},n=_.nU(le9),d=function(){var k,M=Object.assign({},IDN,(n()||!((k=H==null?void 0:H())!=null&&k))&&{style:"overlay-dark"});
return _.T("mweb_shorts_rhs_no_background_protection")?Object.assign({},M,{type:"text",style:"overlay"}):M};
S={};var m={};return _.c("reels-player-overlay-layout-view-model",{class:_.KU("ytwReelsPlayerOverlayLayoutViewModelHost",(S.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},S.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},S.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return K()===1&&!(P==null?0:P())},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var k;
return(k=P==null?void 0:P())!=null?k:!1},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var k;
return(k=H==null?void 0:H())!=null?k:!1},S)),
"overlay-density":function(){return String(K())},
el:N},_.c("div",{class:_.KU("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(m.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},m))},_.c("div",{"aria-hidden":function(){return R()},
class:_.KU("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return R()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.r5({"transition-duration":function(){return QWE(b())}})},_.c(_.kY,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:function(k){return _.c(yuV,{data:k.data,
expansive:function(){return K()===1}})}}),_.c(_.W,{cond:function(){return b().extension},
then:function(k){return _.c("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.c(_.kY,{data:k},{adButtonViewModel:function(M){return _.c(_.U$,{data:M.data,animationEntityKey:G,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(M){return _.c(Auc,{data:M.data,animationEntityKey:G,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return K()===1}})}}))}})),_.c("div",{"aria-hidden":function(){return!R()},
class:_.KU("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return R()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.r5({"transition-duration":function(){return QWE(b())}})},_.c(_.kY,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(k){return _.c(YVc,{data:k.data,
onShow:function(){_.e7(_.t5("booleanEntity",C(),{key:C(),value:!0}))},
expansive:function(){var M;return(M=P==null?void 0:P())!=null?M:!1}})}}))),_.c("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.c(_.kY,{data:function(){return b().actions}},{reelActionBarViewModel:function(k){return _.c(_.EmE,{data:k.data,
buttonShapeOverrideables:d})}}),_.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:function(k){return _.c(_.j$,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},d())}})}}),_.c(_.kY,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(k){return _.c(_.XVl,{data:k.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.qu(DUV,"reels-player-overlay-layout-view-model",{props:{data:_.kg,overlayDensity:_.kg,extractOverlay:_.kg,extractActionBar:_.kg}});var $N=function(){var N=_.z.apply(this,arguments)||this;N.noBottomMargin=!1;N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;return N};
_.F($N,_.z);_.v=$N.prototype;
_.v.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.T("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var N=this;p6E(function(){N.isAttached&&$Y(N.JSC$15911_storedAdSlotMetadata,N.JSC$15911_storedAdLayoutMetadata,N.adSlotMetadata,N.adLayoutMetadata)&&gl(DS(),N.JSC$15911_storedAdSlotMetadata,N.JSC$15911_storedAdLayoutMetadata)})};
_.v.attached=function(){$Y(this.JSC$15911_storedAdSlotMetadata,this.JSC$15911_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Qt4(DS(),this.JSC$15911_storedAdSlotMetadata,this.JSC$15911_storedAdLayoutMetadata)};
_.v.detached=function(){$Y(this.JSC$15911_storedAdSlotMetadata,this.JSC$15911_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gl(DS(),this.JSC$15911_storedAdSlotMetadata,this.JSC$15911_storedAdLayoutMetadata)};
_.v.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15911_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15911_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15911_storedAdLayoutMetadata!==void 0&&this.JSC$15911_storedAdSlotMetadata!==void 0&&gl(DS(),this.JSC$15911_storedAdSlotMetadata,this.JSC$15911_storedAdLayoutMetadata),Qt4(DS(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15911_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15911_storedAdSlotMetadata=this.adSlotMetadata)};
_.d0.Object.defineProperties($N.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.adLayoutMetadata}}});
$N.prototype.onAdMetadataChanged=$N.prototype.onAdMetadataChanged;$N.prototype.onTypographyBumpChanged=$N.prototype.onTypographyBumpChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$N.prototype,"rendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],$N.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],$N.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],$N.prototype,"noBottomMargin",void 0);_.p([_.U(),_.y("design:type",Object)],$N.prototype,"overlayDensity",void 0);_.p([_.U(),_.y("design:type",Object)],$N.prototype,"extractOverlay",void 0);_.p([_.U(),_.y("design:type",Object)],$N.prototype,"extractActionBar",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],$N.prototype,"typographyBump",void 0);
_.p([_.f("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],$N.prototype,"adLayoutMetadata",null);_.p([_.U(),_.y("design:type",Object)],$N.prototype,"adSlotMetadata",void 0);_.p([_.dq("ytd-video-display-full-buttoned-and-button-group-renderer"),_.y("design:type",HTMLElement)],$N.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.p([_.W4("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$N.prototype,"onTypographyBumpChanged",null);_.p([_.W4("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$N.prototype,"onAdMetadataChanged",null);_.p([_.Uj({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],$N);
_.X($N,"ytd-in-feed-ad-layout-renderer",function(){if(i49!==void 0)return i49;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return i49=N},
{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var VTb;var gmZ;_.qu(_.Xl,"ad-badge-view-model",{props:{data:_.kg,hasDot:_.kg,customCommandResolver:_.er,adRenderingContextType:_.er,usedInMasthead:_.er}});_.qu(_.U$,"ad-button-view-model",{props:{data:_.kg,customCommandResolver:_.er,className:_.er,delayedClassName:_.er,animationEntityKey:_.er,isCompactWidth:_.er,isContentWidth:_.er}});var ha=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return N};
_.F(ha,_.z);_.v=ha.prototype;_.v.computeHasLiveDescription=function(N){return!(N==null||!N.liveDescription)};
_.v.computeHasByline=function(N){return!(N==null||!N.byline)};
_.v.computeUsesAdButtonViewModel=function(N){return!!_.t(N==null?void 0:N.cta,Buz)};
_.v.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.v.onYtToggleButton=function(N){var b,S=(b=this.data)==null?void 0:b.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.t5("upcomingEventReminderStateEntity",S,{key:S,state:N.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.v.attached=function(){this.updateChannelBanner()};
_.v.dataChanged=function(){this.updateChannelBanner()};
_.v.videoReminderStateChanged=function(){var N;this.videoReminderState&&_.t((N=this.data)==null?void 0:N.cta,_.cC)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.v.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var N=_.wG(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);N&&(N.startsWith("//")&&(N="https:"+N),this.hostElement.classList.add("channel-banner"),_.rq(this.hostElement,{"--ytvmh-channel-banner":"url("+N+")"}))}else _.T("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.v.onPlayerReady=function(){this.onIronResize()};
_.v.maybeFlushDebouncer=function(){_.T("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(N){var b;N=(b=N.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0];lrO(N==null?void 0:N.polymerController)})};
_.v.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var N=_.H4(this.hostElement).querySelector("#live-description"),b;N&&((b=this.data)==null?0:b.shortLiveDescription)&&N.clientWidth<N.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
ha.prototype.onIronResize=ha.prototype.onIronResize;ha.prototype.videoReminderStateChanged=ha.prototype.videoReminderStateChanged;ha.prototype.dataChanged=ha.prototype.dataChanged;ha.prototype.onYtToggleButton=ha.prototype.onYtToggleButton;_.p([_.L(_.$M),_.y("design:type",Object)],ha.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ha.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],ha.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ha.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:pHI}),_.y("design:type",Object)],ha.prototype,"videoReminderState",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.y("design:type",Boolean)],ha.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.y("design:type",Boolean)],ha.prototype,"hasLiveDescription",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.y("design:type",Boolean)],ha.prototype,"hasByline",void 0);
_.p([_.U({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.y("design:type",String)],ha.prototype,"adRenderingContextType",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],ha.prototype,"isMasthead",void 0);_.p([_.U({computed:"computeUsesAdButtonViewModel(data)"}),_.y("design:type",Boolean)],ha.prototype,"usesAdButtonViewModel",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.T("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.y("design:type",Boolean)],ha.prototype,"resizableAdBannerSafariFix",void 0);_.p([_.md("yt-formatted-string"),_.y("design:type",Array)],ha.prototype,"formattedStrings",void 0);_.p([_.dq("#cta-button"),_.y("design:type",HTMLElement)],ha.prototype,"ctaButton",void 0);
_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ha.prototype,"onYtToggleButton",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ha.prototype,"dataChanged",null);_.p([_.W4("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ha.prototype,"videoReminderStateChanged",null);
_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ha.prototype,"onIronResize",null);_.p([_.Uj({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],ha);
_.X(ha,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(gmZ!==void 0)return gmZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gmZ=N},{mode:1});var eeb;var q1=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};N.isLocked=!1;return N};
_.F(q1,_.z);_.v=q1.prototype;_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded&&_.PN(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(N){N!==this&&(this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(N){this.isLocked=!0;N!==this&&(this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
q1.prototype.onTap=q1.prototype.onTap;q1.prototype.onMouseOver=q1.prototype.onMouseOver;q1.prototype.onExpandedChanged=q1.prototype.onExpandedChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],q1.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],q1.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],q1.prototype,"expanded",void 0);_.p([_.t_("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q1.prototype,"onExpandedChanged",null);_.p([_.RA("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q1.prototype,"onMouseOver",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q1.prototype,"onTap",null);
_.p([_.Uj({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],q1);
_.X(q1,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(eeb!==void 0)return eeb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.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" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return eeb=N},{mode:1});var $UO;var wl=function(){var N=_.z.apply(this,arguments)||this;N.buttonOverrides={style:"overlay"};N.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");N.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};N.playbackFinished=!1;N.JSC$15925_playerManager=null;N.JSC$15925_mastheadCounter=new Yld;return N};
_.F(wl,_.z);_.v=wl.prototype;_.v.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.created=function(){this.JSC$15925_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15925_playerManager=new $A)};
_.v.ready=function(){var N=this;this.JSC$15925_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=_.H4(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",ji9(this.JSC$15925_playerManager,b,function(){N.onPlaybackEnded()}),_.H4(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var S;
((S=N.data)==null?0:S.navigationEndpoint)&&_.bC(N.hostElement,"yt-navigate",{endpoint:N.data.navigationEndpoint})}))};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15925_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.v.attached=function(){var N=this;_.p3(function(){N.maybePlayVideo()})};
_.v.maybePlayVideo=function(){var N=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15925_playerManager.playVideo(),this.getPlayerPromise().then(function(){N.JSC$15925_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.v.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15925_playerManager.stopVideo()};
_.v.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var N,b={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((N=this.data.playbackStartMs)!=null?N:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else Ack(this.JSC$15925_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zgZ(this.JSC$15925_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.v.getPlayerPromise=function(){return this.JSC$15925_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(N){this.useYtdPlayer?this.toggleMute(N.detail.toggled):N.detail.toggled?this.JSC$15925_playerManager.mute():this.JSC$15925_playerManager.unMute()};
_.v.onYtNavigate=function(N){var b=OCE(N.detail.endpoint),S=CUO(this.data.clickthroughReportingData);b&&S&&(N.detail.endpoint.watchEndpoint?N.detail.tempData=S:_.e0(b,S,30))};
_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded?(_.PN(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(N){N!==this&&(this.stopVideo(),this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(N){N!==this&&(this.isLocked=!0,this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
_.v.lockAndCollapseExpandableTiles=function(){_.St(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.v.unlockExpandableTiles=function(){_.St(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.v.setupYtdPlayer=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.ytdPlayer.getPlayerPromise(),2);b=S.yieldResult;b.addEventListener("onStateChange",function(P){N.onPlayerStateChange(P)});
b.addEventListener("onCueRangeExit",function(P){N.onCueRangeExit(P)});
_.Zd(S)})};
_.v.onPlayerStateChange=function(N){if(N===1&&(N=this.ytdPlayer.getPlayer())){var b=N.getCurrentTime(),S,P,H=b+((P=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?P:0)/1E3;N.addCueRange("playback",b,H);this.JSC$15925_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.v.onCueRangeExit=function(N){N==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.ytdPlayer.getPlayerPromise(),2);S=P.yieldResult;N?S.mute():S.unMute();_.Zd(P)})};
wl.prototype.onTap=wl.prototype.onTap;wl.prototype.onMouseOver=wl.prototype.onMouseOver;wl.prototype.onExpandedChanged=wl.prototype.onExpandedChanged;wl.prototype.onYtNavigate=wl.prototype.onYtNavigate;wl.prototype.onYtToggleButton=wl.prototype.onYtToggleButton;wl.prototype.dataChanged=wl.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],wl.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wl.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],wl.prototype,"expanded",void 0);_.p([_.U(),_.y("design:type",Object)],wl.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.y("design:type",Object)],wl.prototype,"useYtdPlayer",void 0);_.p([_.dq("#ytd-player"),_.y("design:type",Object)],wl.prototype,"ytdPlayer",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wl.prototype,"dataChanged",null);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wl.prototype,"onYtToggleButton",null);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],wl.prototype,"onYtNavigate",null);_.p([_.t_("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wl.prototype,"onExpandedChanged",null);_.p([_.RA("mouseover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wl.prototype,"onMouseOver",null);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wl.prototype,"onTap",null);_.p([_.Uj({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],wl);
_.X(wl,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if($UO!==void 0)return $UO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $UO=N},{mode:1});var heb;var Ni=function(){return _.z.apply(this,arguments)||this};
_.F(Ni,_.z);Ni.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ni.prototype.onShow=function(){var N=_.H4(this.hostElement).querySelector("#live-description"),b;N&&((b=this.data)==null?0:b.shortLiveDescription)&&N.clientWidth<N.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Ni.prototype.onYtToggleButton=function(N){var b,S=(b=this.data)==null?void 0:b.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.t5("upcomingEventReminderStateEntity",S,{key:S,state:N.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Ni.prototype.videoReminderStateChanged=function(){var N;this.videoReminderState&&_.t((N=this.data)==null?void 0:N.cta,_.cC)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Ni.prototype.videoReminderStateChanged=Ni.prototype.videoReminderStateChanged;Ni.prototype.onYtToggleButton=Ni.prototype.onYtToggleButton;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Ni.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ni.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:pHI}),_.y("design:type",Object)],Ni.prototype,"videoReminderState",void 0);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ni.prototype,"onYtToggleButton",null);_.p([_.W4("videoReminderState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ni.prototype,"videoReminderStateChanged",null);
_.p([_.Uj({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Ni);
_.X(Ni,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(heb!==void 0)return heb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return heb=N},{mode:_.sZ("kevlar_poly_si_batch_j065")?1:2});var qVk;var br=function(){var N=_.z.apply(this,arguments)||this;N.useYtdPlayer=_.T("use_ytd_player_for_desktop_masthead");N.buttonOverrides={style:"overlay"};N.JSC$15933_playerManager=null;N.JSC$15933_mastheadCounter=new Yld;N.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return N};
_.F(br,_.z);_.v=br.prototype;_.v.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.created=function(){this.JSC$15933_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15933_playerManager=new $A)};
_.v.ready=function(){var N=this;this.JSC$15933_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var S;(S=this.ytdPlayer)==null||S.remove();ji9(this.JSC$15933_playerManager,this.embeddedPlayer,function(){N.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){N.data&&N.data.navigationEndpoint&&_.bC(N.hostElement,"yt-navigate",{endpoint:N.data.navigationEndpoint})})}};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15933_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.v.dataChanged=function(){var N=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var b=!this.data.disableAutoPlayback,S,P={autoplay:b,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else Ack(this.JSC$15933_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zgZ(this.JSC$15933_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15933_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.St(N.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");N.JSC$15933_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.v.getPlayerPromise=function(){return this.JSC$15933_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(N){this.useYtdPlayer?this.toggleMute(N.detail.toggled):N.detail.toggled?this.JSC$15933_playerManager.mute():this.JSC$15933_playerManager.unMute()};
_.v.onYtNavigate=function(N){var b=OCE(N.detail.endpoint),S=CUO(this.data.clickthroughReportingData);b&&S&&(N.detail.endpoint.watchEndpoint?N.detail.tempData=S:_.e0(b,S,30))};
_.v.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15933_playerManager.stopVideo()};
_.v.setupYtdPlayer=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.ytdPlayer.getPlayerPromise(),2);b=S.yieldResult;b.addEventListener("onStateChange",function(P){N.onPlayerStateChange(P)});
b.addEventListener("onCueRangeExit",function(P){N.onCueRangeExit(P)});
_.Zd(S)})};
_.v.onPlayerStateChange=function(N){if(N===1&&(N=this.ytdPlayer.getPlayer())){var b=N.getCurrentTime(),S,P,H=b+((P=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?P:0)/1E3;N.addCueRange("playback",b,H);_.St(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15933_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.v.onCueRangeExit=function(N){N==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.ytdPlayer.getPlayerPromise(),2);S=P.yieldResult;N?S.mute():S.unMute();_.Zd(P)})};
_.d0.Object.defineProperties(br.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N,b;if(!((N=this.data)==null?0:(b=N.accessibilityData)==null?0:b.label))return"Ad primary link";var S,P;return _.cN("AD_TITLE",{title:(S=this.data)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label})}}});
br.prototype.onYtMastheadHidden=br.prototype.onYtMastheadHidden;br.prototype.onYtNavigate=br.prototype.onYtNavigate;br.prototype.onYtToggleButton=br.prototype.onYtToggleButton;br.prototype.dataChanged=br.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],br.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],br.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],br.prototype,"useYtdPlayer",void 0);_.p([_.dq("ytd-toggle-button-renderer"),_.y("design:type",Object)],br.prototype,"muteButton",void 0);_.p([_.U(),_.y("design:type",Object)],br.prototype,"buttonOverrides",void 0);
_.p([_.f("data.accessibilityData.label"),_.y("design:type",String),_.y("design:paramtypes",[])],br.prototype,"titleAriaLabel",null);_.p([_.dq("#replay-button"),_.y("design:type",Object)],br.prototype,"replayButton",void 0);_.p([_.dq("#player-container"),_.y("design:type",Object)],br.prototype,"playerContainer",void 0);_.p([_.dq("#player"),_.y("design:type",Object)],br.prototype,"embeddedPlayer",void 0);_.p([_.dq("#ytd-player"),_.y("design:type",Object)],br.prototype,"ytdPlayer",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"dataChanged",null);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],br.prototype,"onYtToggleButton",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],br.prototype,"onYtNavigate",null);
_.p([_.RA("yt-masthead-hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],br.prototype,"onYtMastheadHidden",null);_.p([_.Uj({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],br);
_.X(br,"ytd-video-masthead-ad-primary-video-renderer",function(){if(qVk!==void 0)return qVk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qVk=N},{mode:2});var wVk;var SI=function(){var N=_.z.apply(this,arguments)||this;N.collapsed=!1;N.impressionResolver=_.Y9();N.JSC$15937_activeViewMeasurementDataResolver=_.Y9();N.actionMap={"yt-mute-ad-action":"handleMuteAd"};return N};
_.F(SI,_.z);_.v=SI.prototype;_.v.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.ready=function(){var N=this;_.H4(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){N.expandAd()});
this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var S=b.detail.args[1];S.videoMastheadAdMuteCommand&&(N.collapseAd(S.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})};
_.v.attached=function(){var N=this;_.p3(function(){N.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(b){if(!N.collapsed){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,Hl(S.baseUrl,S.attributionSrcMode);N.data.impressionCommand=void 0}});
this.JSC$15937_activeViewMeasurementDataResolver.promise.then(function(b){j6(N.activeView,b)});
_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.dataChanged=function(){var N;((N=this.data.impressionCommand)==null?0:N.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$15937_activeViewMeasurementDataResolver.resolve(this.data.activeView);(N=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(N.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.v.computeWidescreen=function(N){var b;return!!(N&&((b=_.t(N,dk9))==null?0:b.isWidescreen))};
_.v.computeExpandable=function(N){return!!(N&&N.length>0)};
_.v.onIronResize=function(){if(this.expandable){var N=_.H4(this.hostElement).querySelector("#expandable-tile-container :first-child");N&&!N.expanded&&(N.expanded=!0)}};
_.v.handleMuteAd=function(){this.collapseAd(null)};
_.v.restoreCollapsedState=function(N){this.collapsed=_.WN().get("HIDDEN_MASTHEAD_ID")===N};
_.v.collapseAd=function(N){if(N){var b=_.WN();b.set("HIDDEN_MASTHEAD_ID",N);b.save()}(N=_.H4(this.hostElement).querySelector("#video"))&&_.bC(N,"yt-masthead-hidden");this.collapsed=!0};
_.v.expandAd=function(){var N=_.WN();N.set("HIDDEN_MASTHEAD_ID",!1);N.save();location.reload()};
_.v.detached=function(){_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
SI.prototype.onIronResize=SI.prototype.onIronResize;SI.prototype.dataChanged=SI.prototype.dataChanged;_.p([_.L(_.$M),_.y("design:type",Object)],SI.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.Rn),_.y("design:type",Object)],SI.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],SI.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.y("design:type",Boolean)],SI.prototype,"widescreen",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.y("design:type",Boolean)],SI.prototype,"expandable",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SI.prototype,"collapsed",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SI.prototype,"dataChanged",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SI.prototype,"onIronResize",null);_.p([_.Uj({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],SI);
_.X(SI,"ytd-video-masthead-ad-v3-renderer",function(){if(wVk!==void 0)return wVk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wVk=N},{mode:2});var Pf=function(){return _.z.apply(this,arguments)||this};
_.F(Pf,_.z);_.v=Pf.prototype;_.v.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.v.ready=function(){var N=this;p6E(function(){N.isAttached&&$Y(N.JSC$15942_storedAdSlotMetadata,N.JSC$15942_storedAdLayoutMetadata,N.adSlotMetadata,N.adLayoutMetadata)&&gl(DS(),N.JSC$15942_storedAdSlotMetadata,N.JSC$15942_storedAdLayoutMetadata)})};
_.v.attached=function(){$Y(this.JSC$15942_storedAdSlotMetadata,this.JSC$15942_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Qt4(DS(),this.JSC$15942_storedAdSlotMetadata,this.JSC$15942_storedAdLayoutMetadata)};
_.v.detached=function(){$Y(this.JSC$15942_storedAdSlotMetadata,this.JSC$15942_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gl(DS(),this.JSC$15942_storedAdSlotMetadata,this.JSC$15942_storedAdLayoutMetadata)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15942_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15942_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15942_storedAdLayoutMetadata!==void 0&&this.JSC$15942_storedAdSlotMetadata!==void 0&&gl(DS(),this.JSC$15942_storedAdSlotMetadata,this.JSC$15942_storedAdLayoutMetadata),Qt4(DS(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15942_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15942_storedAdSlotMetadata=this.adSlotMetadata)};
_.d0.Object.defineProperties(Pf.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.adLayoutMetadata}}});
Pf.prototype.onAdMetadataChanged=Pf.prototype.onAdMetadataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Pf.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Pf.prototype,"data",void 0);_.p([_.f("data.adLayoutMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pf.prototype,"adLayoutMetadata",null);
_.p([_.U(),_.y("design:type",Object)],Pf.prototype,"adSlotMetadata",void 0);_.p([_.W4("adLayoutMetadata","adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pf.prototype,"onAdMetadataChanged",null);_.p([_.Uj({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Pf);
_.X(Pf,"ytd-page-top-ad-layout-renderer",function(){if(VTb!==void 0)return VTb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return VTb=
N},{mode:_.sZ("kevlar_poly_si_batch_j070")?1:2});var Nm9;var Hf=function(){var N=_.z.apply(this,arguments)||this;N.noBottomMargin=!1;N.overlayDensity=0;N.typographyBump=!1;N.extractOverlay=!1;N.extractActionBar=!1;return N};
_.F(Hf,_.z);_.v=Hf.prototype;
_.v.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var N=this;p6E(function(){N.isAttached&&N.adSlotMetadata&&uR9(DS(),N.adSlotMetadata)})};
_.v.attached=function(){if(this.adSlotMetadata){var N;if(this.adSlotMetadata===((N=this.data)==null?void 0:N.adSlotMetadata))fDd(DS(),this.adSlotMetadata);else{var b;_.$h(Error("Ph`"+this.adSlotMetadata+"`"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}};
_.v.detached=function(){this.adSlotMetadata&&uR9(DS(),this.adSlotMetadata)};
_.v.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.v.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&uR9(DS(),this.adSlotMetadata),fDd(DS(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.d0.Object.defineProperties(Hf.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.kmz),P;return(N=(P=_.t(S==null?void 0:S.renderingContent,mkN))==null?void 0:P.layout)?N.toLowerCase().replace(/_/g,"-"):""}}});
Hf.prototype.onAdSlotMetadataChanged=Hf.prototype.onAdSlotMetadataChanged;Hf.prototype.onTypographyBumpChanged=Hf.prototype.onTypographyBumpChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Hf.prototype,"rendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"noBottomMargin",void 0);_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"overlayDensity",void 0);_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"typographyBump",void 0);_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"extractOverlay",void 0);_.p([_.U(),_.y("design:type",Object)],Hf.prototype,"extractActionBar",void 0);
_.p([_.dq("ytd-in-feed-ad-layout-renderer"),_.y("design:type",HTMLElement)],Hf.prototype,"inFeedAdLayoutRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],Hf.prototype,"layout",null);_.p([_.W4("typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hf.prototype,"onTypographyBumpChanged",null);
_.p([_.W4("data.adSlotMetadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hf.prototype,"onAdSlotMetadataChanged",null);_.p([_.Uj({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Hf);
_.X(Hf,"ytd-ad-slot-renderer",function(){if(Nm9!==void 0)return Nm9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Nm9=N},{mode:_.sZ("kevlar_poly_si_batch_j077")?
1:2});var bkV;var sJ=function(){return _.z.apply(this,arguments)||this};
_.F(sJ,_.z);_.v=sJ.prototype;_.v.created=function(){this.activeView=new Zc(this.hostElement)};
_.v.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.v.maybeComputeHref=function(){return null};
_.v.onTap=function(){};
_.v.onThumbnailContainerClick=function(N){this.onClick(N)};
_.v.onClick=function(N){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;S&&_.t(S,_.Iv)&&(this.ytSparklesClickLocationBehavior.handleClick(S,N,!1),N.stopPropagation())};
_.v.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var N=_.O(this.data.impressionUrls),b=N.next();!b.done;b=N.next())b=b.value,NGe(b,SZe(b));this.data.activeView&&j6(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",sJ.JSC$15950_DEFAULT_CLICK_LOCATION_BEHAVIOR,sJ.JSC$15950_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"))}};
_.v.attached=function(){var N=this;_.T("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zr(N.activeView)})};
_.v.detached=function(){_.T("stop_av_measurement_on_detach")&&zr(this.activeView)};
_.d0.Object.defineProperties(sJ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
sJ.prototype.dataChanged=sJ.prototype.dataChanged;sJ.prototype.onTap=sJ.prototype.onTap;sJ.JSC$15950_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
sJ.JSC$15950_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],sJ.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],sJ.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],sJ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.p([_.U({selector:_.o7}),_.y("design:type",Object)],sJ.prototype,"isGridViewEnabled",void 0);_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sJ.prototype,"watchFeedBigThumbs",null);_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],sJ.prototype,"thumbnailWidth",null);_.p([_.U(),_.y("design:type",Object)],sJ.prototype,"data",void 0);
_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],sJ.prototype,"thumbnail",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sJ.prototype,"onTap",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sJ.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],sJ);
_.X(sJ,"ytd-compact-promoted-video-renderer",function(){if(bkV!==void 0)return bkV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return bkV=N},{mode:1});var SFl;_.lo("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var GH=function(){return _.z.apply(this,arguments)||this};
_.F(GH,_.z);GH.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],GH.prototype,"data",void 0);_.p([_.Uj({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],GH);
_.X(GH,"ytd-search-pyv-renderer",function(){if(SFl!==void 0)return SFl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return SFl=N},{mode:1});var PN9;_.lo("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var rS=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.JSC$15958_handleOpenPostCommentDialogActionAfterStamp=!1;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.F(rS,_.z);_.v=rS.prototype;
_.v.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.v.onStampFinished=function(){this.JSC$15958_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var N=_.H4(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");N?N.openDialog():this.JSC$15958_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.v.computeHideBorder=function(){return this.isInEngagementPanel};
_.v.computeIsCompact=function(){return this.isInEngagementPanel};
_.v.computeUsesCompactLockup=function(N){return N==="BACKSTAGE_SURFACE_TYPE_HOME"||N==="BACKSTAGE_SURFACE_TYPE_SEARCH"||N==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||N==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||N==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||N==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeUsesFullLockup=function(){var N,b=(N=this.data)==null?void 0:N.post,S;N=(S=_.t(b,iOl))==null?void 0:S.surface;var P;S=(P=_.t(b,ZOl))==null?void 0:P.originalPost;var H;if(P=N||((H=_.t(S,iOl))==null?void 0:H.surface))return!this.computeUsesCompactLockup(P)&&this.useUpdatedRepostUi;var K;return((K=_.t(b,ZOl))==null?void 0:K.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.d0.Object.defineProperties(rS.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var N,b;return((b=_.t((N=this.data)==null?void 0:N.post,iOl))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.useUpdatedRepostUi}}});
rS.prototype.onYtCommentModerationPanelEmpty=rS.prototype.onYtCommentModerationPanelEmpty;rS.prototype.onStampFinished=rS.prototype.onStampFinished;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],rS.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],rS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rS.prototype,"roundedContainer",void 0);_.p([_.U({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rS.prototype,"hideBorder",void 0);_.p([_.U({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rS.prototype,"isCompact",void 0);
_.p([_.U({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rS.prototype,"usesFullLockup",void 0);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rS.prototype,"onStampFinished",null);
_.p([_.RA("ytd-comment-moderation-panel-empty"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],rS.prototype,"onYtCommentModerationPanelEmpty",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rS.prototype,"isInEngagementPanel",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rS.prototype,"useUpdatedRepostUi",null);
_.p([_.Uj({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],rS);
_.X(rS,"ytd-backstage-post-thread-renderer",function(){if(PN9!==void 0)return PN9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PN9=N},{mode:1});var Hkb;var cf=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(cf,_.z);cf.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
cf.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var N=this.data.thumbnail.thumbnails;this.isDarkTheme&&(N=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(N=_.wG(N,24,void 0,"height"))?N:void 0}};
cf.prototype.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
cf.prototype.computeHasText=function(){var N;return!((N=this.data)==null||!N.text)};
_.d0.Object.defineProperties(cf.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.VK(this.bannerImageUrl))+'");'}}});
cf.prototype.computeHasText=cf.prototype.computeHasText;cf.prototype.computeBannerImageUrl=cf.prototype.computeBannerImageUrl;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],cf.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],cf.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],cf.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],cf.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",String)],cf.prototype,"bannerImageUrl",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.y("design:type",Boolean)],cf.prototype,"hasText",void 0);_.p([_.W4("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cf.prototype,"computeBannerImageUrl",null);
_.p([_.W4("data.text"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cf.prototype,"computeHasText",null);_.p([_.f("bannerImageUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],cf.prototype,"bannerStyle",null);_.p([_.Uj({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],cf);
_.X(cf,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Hkb!==void 0)return Hkb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Hkb=N},{mode:1});var shk;var aa=function(){return _.z.apply(this,arguments)||this};
_.F(aa,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aa.prototype,"data",void 0);_.p([_.Uj({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],aa);
_.X(aa,"ytd-backstage-zero-state-renderer",function(){if(shk!==void 0)return shk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return shk=N},{mode:1});var K59;var Ra=function(){return _.z.apply(this,arguments)||this};
_.F(Ra,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ra.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],Ra.prototype,"icon",void 0);_.p([_.Uj({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ra);
_.X(Ra,"ytd-post-filter-zero-state-renderer",function(){if(K59!==void 0)return K59;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return K59=N},{mode:1});var v5S;var Ok9={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Wf=function(){return _.z.apply(this,arguments)||this};
_.F(Wf,_.z);Wf.prototype.configureRendererStamper=function(){return Ok9};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Wf.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Wf.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],Wf.prototype,"icon",void 0);_.p([_.Uj({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Wf);
_.X(Wf,"ytd-post-scheduling-zero-state-renderer",function(){if(v5S!==void 0)return v5S;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return v5S=N},{mode:1});var CNE;var nZ=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return N};
_.F(nZ,_.z);nZ.prototype.onTabsActivate=function(N){this.data&&this.data.tabs&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[N.detail.selected].navigationEndpoint})};
nZ.prototype.shouldShowTotalCount=function(N){return N&&N.totalCount!==void 0};
nZ.prototype.handleUpdatePostsTotalCountAction=function(N){var b=this.get(["data.tabs",1,"totalCount"]),S=this.get("updatePostsTotalCountAction.updateType",N);N=this.get("updatePostsTotalCountAction.number",N);b!==void 0&&S!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&N&&(S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+N):S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-N))};
_.d0.Object.defineProperties(nZ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var N=0,b=this.data.tabs.length;N<b;N++)if(this.data.tabs[N].selected)return N;return 0}}});
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],nZ.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nZ.prototype,"rendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nZ.prototype,"data",void 0);_.p([_.f("data.tabs"),_.y("design:type",Number),_.y("design:paramtypes",[])],nZ.prototype,"selected",null);_.p([_.Uj({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],nZ);
_.X(nZ,"ytd-post-stream-filter-renderer",function(){if(CNE!==void 0)return CNE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return CNE=N},{mode:1});var Gw9;var dS=function(){return _.z.apply(this,arguments)||this};
_.F(dS,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dS.prototype,"kevlarBehaviors",void 0);_.p([_.U(),_.y("design:type",Object)],dS.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],dS);
_.X(dS,"ytd-channel-age-gate-renderer",function(){if(Gw9!==void 0)return Gw9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Gw9=N},{mode:1});var rxZ;_.lo("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var mI=function(){var N=_.z.apply(this,arguments)||this;N.data=null;return N};
_.F(mI,_.z);mI.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d0.Object.defineProperties(mI.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?0:(b=N.title)==null?0:(S=b.runs)==null?0:S.length)?147:160}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],mI.prototype,"imageSizePx",null);_.p([_.Uj({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],mI);
_.X(mI,"ytd-channel-owner-empty-state-renderer",function(){if(rxZ!==void 0)return rxZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return rxZ=N},{mode:1});var cxO;var af9;var k8=function(){var N=_.z.apply(this,arguments)||this;N.boundSubmitSearch=function(){N.submitSearch()};
N.boundClearSearch=function(){N.clearSearch()};
return N};
_.F(k8,_.z);_.v=k8.prototype;_.v.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.v.toggleClearButton=function(){this.hideClearButton=Mpb||!this.input.value};
_.v.submitOnEnterKeyUp=function(N){N.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.v.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.v.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.v.submit=function(){_.bC(this.hostElement,"search-query-changed",this.input.value)};
k8.prototype.toggleClearButton=k8.prototype.toggleClearButton;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],k8.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k8.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],k8.prototype,"hideClearButton",void 0);_.p([_.U(),_.y("design:type",Object)],k8.prototype,"boundSubmitSearch",void 0);_.p([_.U(),_.y("design:type",Object)],k8.prototype,"boundClearSearch",void 0);_.p([_.dq("#input"),_.y("design:type",Object)],k8.prototype,"input",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k8.prototype,"toggleClearButton",null);
_.p([_.Uj({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],k8);
_.X(k8,"ytd-channel-switcher-search-box-renderer",function(){if(af9!==void 0)return af9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return af9=N},{mode:1});var RW9;var TH=function(){var N=_.z.apply(this,arguments)||this;N.boundSubmit=function(){N.submit()};
return N};
_.F(TH,_.z);_.v=TH.prototype;_.v.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.v.ready=function(){var N=this;this.form.addEventListener("submit",function(b){return N.onSubmit(b)})};
_.v.onSubmit=function(N){N.preventDefault();return!1};
_.v.toggleClearButton=function(){this.hideClearButton=Mpb||!this.input.value};
_.v.submitOnEnterKeyUp=function(N){N.keyCode===13&&this.submit()};
_.v.submit=function(){var N=this.data.endpoint,b=(0,_.Vm.unsafeClone)(N);_.t(b,_.Wd)?_.t(b,_.Wd).query=this.input.value:_.t(b,_.nX)&&(_.t(b,_.nX).query=this.input.value);var S=_.t(b.commandMetadata,_.GY);(S==null?0:S.url)?(S.url=_.Nc(S.url,"query",this.input.value),_.bC(this.hostElement,"yt-navigate",{endpoint:b})):_.t(b,rqk)?(_.t(b,rqk).channelSwitcherQuery=this.input.value,_.aN().resolve(_.Wq).resolveCommand(b,{form:{element:this.hostElement}})):(N=Error("Qh`"+JSON.stringify(N)),_.ge(N))};
_.v.getUrl=function(N){return this.get("commandMetadata.webCommandMetadata.url",N)};
TH.prototype.toggleClearButton=TH.prototype.toggleClearButton;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],TH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],TH.prototype,"hideClearButton",void 0);
_.p([_.U(),_.y("design:type",Object)],TH.prototype,"boundSubmit",void 0);_.p([_.dq("#form"),_.y("design:type",HTMLFormElement)],TH.prototype,"form",void 0);_.p([_.dq("#input"),_.y("design:type",Object)],TH.prototype,"input",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TH.prototype,"toggleClearButton",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],TH);
_.X(TH,"ytd-search-box-renderer",function(){if(RW9!==void 0)return RW9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return RW9=N},{mode:2});var t$=function(){var N=_.z.apply(this,arguments)||this;N.showSearchBox=!0;return N};
_.F(t$,_.z);t$.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],t$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],t$.prototype,"showSearchBox",void 0);_.p([_.Uj({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],t$);
_.X(t$,"ytd-channel-switcher-header-renderer",function(){if(cxO!==void 0)return cxO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return cxO=N},{mode:1});var W5l;var n5z;var Mi=function(){var N=_.z.apply(this,arguments)||this;N.isDisplayed=!0;return N};
_.F(Mi,_.z);_.v=Mi.prototype;_.v.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.isDisplayed=!0};
_.v.computeType=function(N){return N||"UNKNOWN"};
_.v.onYtServiceRequestCompleted=function(N){N.stopPropagation();this.isDisplayed=!1};
_.v.onClose=function(){this.isDisplayed=!1};
Mi.prototype.onYtServiceRequestCompleted=Mi.prototype.onYtServiceRequestCompleted;Mi.prototype.dataChanged=Mi.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mi.prototype,"data",void 0);
_.p([_.U({computed:"computeType(data.type)",reflectToAttribute:!0}),_.y("design:type",String)],Mi.prototype,"type",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Mi.prototype,"isDisplayed",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mi.prototype,"dataChanged",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Mi.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Mi);
_.X(Mi,"ytd-alert-with-button-renderer",function(){if(n5z!==void 0)return n5z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return n5z=N},{mode:1});var Fj=function(){var N=_.z.apply(this,arguments)||this;N.noResult=!1;N.enableAlertBanner=!1;N.dismissedAlertBanner=!1;N.hideCreateChannelButton=!1;N.boundDismissAlertBanner=function(){N.dismissAlertBanner()};
N.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return N};
_.F(Fj,_.z);_.v=Fj.prototype;_.v.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.v.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.v.updateChannelSwitcherAction=function(N){var b;N=(b=_.t(N,vMc))==null?void 0:b.page;_.t(N,KpV)!==void 0&&(this.data=_.t(N,KpV))};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.searchQueryChanged=function(N,b){if(this.data&&this.data.contents&&this.data.contents.length){N=[];var S=[];this.hideCreateChannelButton=this.noResult=!1;for(var P=document.querySelectorAll("ytd-account-item-renderer"),H=_.O(P),K=H.next();!K.done;K=H.next())K=K.value,S.push(K),K.style.display="block";this.resetRightBorder(S);if(b){this.hideCreateChannelButton=!0;for(S=1;S<this.data.contents.length;S++)if(K=this.data.contents[S],_.t(K,OO9)){var C=void 0,G=void 0;H=(C=_.t(K,OO9))==null?void 0:(G=
C.accountName)==null?void 0:G.simpleText;G=C=void 0;K=(C=_.t(K,OO9))==null?void 0:(G=C.channelHandle)==null?void 0:G.simpleText;(C=P[S-1])&&H&&_.cs(H,b)?N.push(C):_.T("enable_handle_search_on_channel_switcher")&&C&&K&&_.cs(K.toString(),b.toString())?N.push(C):C.style.display="none"}N.length===0&&(this.noResult=!0);this.resetRightBorder(N)}}};
_.v.resetRightBorder=function(N){for(var b=0;b<N.length;b++)N[b].style.borderRight=!this.hideCreateChannelButton&&(b+2)%3===0||this.hideCreateChannelButton&&(b+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.v.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.v.setShowSearchBox=function(N){if(N&&N.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var b=0;b<N.contents.length;b++)_.t(N.contents[b],_.wO)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.v.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.d0.Object.defineProperties(Fj.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.contents)}}});
Fj.prototype.onContinuationItemsUpdated=Fj.prototype.onContinuationItemsUpdated;Fj.prototype.searchQueryChanged=Fj.prototype.searchQueryChanged;Fj.prototype.onDataChanged=Fj.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Fj.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],Fj.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fj.prototype,"data",void 0);_.p([_.dq("ytd-channel-switcher-header-renderer"),_.y("design:type",Object)],Fj.prototype,"channelSwitcherHeaderRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Fj.prototype,"noResult",void 0);
_.p([_.U(),_.y("design:type",Object)],Fj.prototype,"enableAlertBanner",void 0);_.p([_.U(),_.y("design:type",Object)],Fj.prototype,"dismissedAlertBanner",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fj.prototype,"hideCreateChannelButton",void 0);_.p([_.f("data.contents"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fj.prototype,"isLoading",null);_.p([_.U(),_.y("design:type",Object)],Fj.prototype,"boundDismissAlertBanner",void 0);
_.p([_.U({computed:"computeButtonOverride()"}),_.y("design:type",Object)],Fj.prototype,"buttonOverride",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fj.prototype,"onDataChanged",null);_.p([_.RA("search-query-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Fj.prototype,"searchQueryChanged",null);
_.p([_.RA("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Fj.prototype,"onContinuationItemsUpdated",null);_.p([_.Uj({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Fj);
_.X(Fj,"ytd-channel-switcher-page-renderer",function(){if(W5l!==void 0)return W5l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return W5l=N},{mode:1});var dw9;var mw9;var Bf=function(){var N=_.z.apply(this,arguments)||this;N.images=[];N.selectedImageIndex=0;return N};
_.F(Bf,_.z);_.v=Bf.prototype;
_.v.ready=function(){_.lH(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.lH(this.JSC$16003_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.lH(this.JSC$16003_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.lH(this.JSC$16003_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.v.onThumbnailClick=function(N){if(N=N.event_.detail)this.selectedImageIndex=this.images.indexOf(N)};
_.v.updateImageThumbnails=function(N){N=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:N.event_.detail});this.images.splice(this.selectedImageIndex,1,N);this.images=[].concat(_.IX(this.images))};
_.v.cancelImageRepositions=function(){this.selectedImageIndex=0;_.bC(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.v.saveImageRepositions=function(){this.selectedImageIndex=0;_.bC(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.d0.Object.defineProperties(Bf.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var N=this;return(this.images||[]).map(function(b,S){return{image:b,selected:S===N.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("ytd-backstage-image-preview-renderer"),_.y("design:type",Object)],Bf.prototype,"JSC$16003_imagePreviewContainer",void 0);_.p([_.dq(".thumbnail-images-container"),_.y("design:type",HTMLElement)],Bf.prototype,"thumbnailImagesContainer",void 0);_.p([_.U(),_.y("design:type",Array)],Bf.prototype,"images",void 0);
_.p([_.U(),_.y("design:type",Object)],Bf.prototype,"repositionInstructions",void 0);_.p([_.U(),_.y("design:type",Object)],Bf.prototype,"selectedImageIndex",void 0);_.p([_.f("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],Bf.prototype,"thumbnailRendererDatas",null);_.p([_.f("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],Bf.prototype,"selectedImageData",null);
_.p([_.Uj({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Bf);
_.X(Bf,"ytd-backstage-multi-image-reposition-renderer",function(){if(mw9!==void 0)return mw9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return mw9=N},{mode:1});var lr=function(N,b){_.J1.call(this);this.uploadUrl=N;this.channelId=b;this.imagesUploadData=[]};
_.F(lr,_.J1);lr.prototype.getAllUploadStatuses=function(){var N=this,b,S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(kwd(N),2);b=H.yieldResult;S=b.get("succeed");P=b.get("failed");return H.return(S.concat(P))})};
var tfS=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(kwd(N),2);b=P.yieldResult;S=b.get("failed");S.length>0&&Tm9(N,S);return P.return(N.getAllUploadStatuses())})},kwd=function(N){var b,S,P,H,K,C,G;
return _.r(function(a){if(a.nextAddress==1)return b=new Map,a.yield(Promise.allSettled(N.imagesUploadData.map(function(R){return R.uploadPromise})),2);
S=a.yieldResult;P=[];H=_.O(S);for(K=H.next();!K.done;K=H.next())C=K.value,C.status==="fulfilled"&&P.push(C.value);G=N.imagesUploadData.map(function(R){return R.image}).filter(function(R){return P.every(function(n){return n.id!==R.id})});
b.set("succeed",P);b.set("failed",G);return a.return(b)})},Tm9=function(N,b){b=_.O(b);
for(var S=b.next();!S.done;S=b.next()){var P=N;S=S.value;MfS(P,S.id)>=0&&P.cancel(S.id);var H=new F5V(S),K=_.hRz(P.uploadUrl,{"X-YouTube-ChannelId":P.channelId},S.imageBlob);H.transfer=K;H.uploadPromise=Bmz(K,S);P.imagesUploadData.push(H);K.run()}};
lr.prototype.cancel=function(N){var b=MfS(this,N);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(S){return S.image.id!==N}))};
var MfS=function(N,b){return N.imagesUploadData.findIndex(function(S){return S.image.id===b})},Bmz=function(N,b){return new Promise(function(S,P){N.listen("l",function(){var H=N.getResponseText();
H?(H=JSON.parse(H).encryptedBlobId,b.encryptedBlobId=H,S(b)):P("upload failed")});
N.listen("n",function(){P("upload failed")})})},F5V=function(N){this.image=N};var xAb=function(N,b,S,P,H){this.id=N;this.imageBlob=b;this.localImageSrc=S;this.naturalWidth=P;this.naturalHeight=H;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var lfZ=[".jpeg",".jpg",".png"],LZ=function(){var N=_.z.apply(this,arguments)||this;N.showImagesPreview=!1;N.pollOptions=[];N.errorMessage="";N.optionPlaceholderText="";N.optionDefaultText="";N.JSC$16014_imageId=0;N.maxFileSizeMb=0;N.maxAspectRatio=0;N.invalidFileSizeError="";N.invalidAspectRatioError="";N.invalidFileTypeError="";N.imageSelector=new Jj(null,"single_file",lfZ);return N};
_.F(LZ,_.z);_.v=LZ.prototype;_.v.ready=function(){_.lH(this.imageSelector,"j",this.onImageSelect,!1,this);_.lH(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.lH(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.v.dataChanged=function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.cellTemplate)==null?void 0:b.onEmptyCellTap,py9);if(S&&S.uploadUrl&&S.channelId){var P;this.maxFileSizeMb=((P=S.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0;var H;this.maxAspectRatio=((H=S.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0;var K;this.invalidFileSizeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileSizeError);var C;this.invalidAspectRatioError=this.getSimpleString((C=this.data)==
null?void 0:C.invalidAspectRatioError);var G;this.invalidFileTypeError=this.getSimpleString((G=this.data)==null?void 0:G.invalidFileTypeError);this.uploadManager=new lr(S.uploadUrl,S.channelId)}};
_.v.onEditorInfoChange=function(){this.optionPlaceholderText=_.es(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.es(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.v.observeAddImageError=function(){this.errorMessage!==""&&_.bC(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.v.onPollOptionsChange=function(){for(var N=!1,b=[],S=0;S<this.pollOptions.length;S++){var P=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(S+1);this.pollOptions[S].placeholderText!==P?(N=!0,b.push(Object.assign({},this.pollOptions[S],{placeholderText:P}))):b.push(this.pollOptions[S])}N&&(this.pollOptions=b);this.isValid()?_.bC(this.hostElement,"yt-commentbox-post-enable"):_.bC(this.hostElement,"yt-commentbox-post-disable")};
_.v.createPollOptions=function(N){var b=[],S;N=(S=N==null?void 0:N.minPollOptions)!=null?S:0;for(S=0;S<N;S++)b.push(this.createPollOption());return b};
_.v.onImageSelect=function(N){var b=this,S,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1){if(b.selectedImageIndex===void 0)return a.jumpTo(0);S=N.files[0];b.errorMessage="";P=b.validateImage(S);if(P!=="")return b.errorMessage=P,a.return();H=new Fy(b.maxAspectRatio,!1,!0);return a.yield(H.transform(S),3)}if(a.nextAddress!=4)return K=a.yieldResult,K.transformedData?K.invalidAspectRatio?(b.errorMessage=b.invalidAspectRatioError,a.return()):a.yield(oCO(b.JSC$16014_imageId,N.files[0],K.transformedData),
4):(b.errorMessage=b.invalidFileTypeError,a.return());C=a.yieldResult;b.JSC$16014_imageId++;Tm9(b.uploadManager,[C]);G=Object.assign({},b.pollOptions[b.selectedImageIndex],{image:C});b.pollOptions.splice(b.selectedImageIndex,1,G);b.refreshPollOptions();_.bC(b.hostElement,"yt-backstage-poll-image-select");_.Zd(a)})};
_.v.validateImage=function(N){return N.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.v.refreshPollOptions=function(){this.pollOptions=[].concat(_.IX(this.pollOptions))};
_.v.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.IX(this.pollOptions),[this.createPollOption()]))};
_.v.onRemovePollOption=function(N){var b=this.pollOptions[N.model.index];b&&b.image&&this.uploadManager.cancel(b.image.id);this.pollOptions.splice(N.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.bC(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.v.onTextInput=function(){this.refreshPollOptions()};
_.v.onImageButtonClick=function(N){this.selectedImageIndex=N.model.index;this.imageSelector.click()};
_.v.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.v.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.v.saveImageRepositions=function(N){N=N.event_.detail;for(var b=0,S=[],P=_.O(this.pollOptions),H=P.next();!H.done;H=P.next())H=H.value,H.image!==void 0?(H=Object.assign({},H,{image:N[b]}),S.push(H),b++):S.push(H);this.showImagesPreview=!1;this.pollOptions=[].concat(_.IX(S))};
_.v.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var N=0,b=_.O(this.pollOptions),S=b.next();!S.done;S=b.next())if(S=S.value,S.optionText.trim()!==""||S.image!==void 0){if(!S.image||this.hasCustomOptionText&&S.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;N++}return N>=Number(this.editorInfo.minPollOptions)};
_.v.getAllUploadStatuses=function(){var N=this,b,S,P,H;return _.r(function(K){if(K.nextAddress==1)return K.yield(N.uploadManager.getAllUploadStatuses(),2);b=K.yieldResult;S=_.O(b);for(P=S.next();!P.done;P=S.next())if(H=P.value,H.encryptedBlobId===void 0)return K.return(tfS(N.uploadManager));return K.return(b)})};
_.v.getPostCreateOptions=function(){for(var N=[],b=_.O(this.pollOptions),S=b.next();!S.done;S=b.next())S=S.value,S.image!==void 0&&N.push({text:this.hasCustomOptionText?S.optionText:S.placeholderText,image:S.image});return N};
_.v.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.v.createButtonRenderer=function(N,b){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleString(N)}},isDisabled:b}};
_.v.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.v.computeThumbnailRendererData=function(N){return N?{image:N,selected:!1}:void 0};
_.v.getSimpleString=function(N){return _.es(N)};
_.v.updateOptionTextFromBinding=function(N){if(N.target){var b=Array.from(_.H4(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(N.target);if(b>=0){var S;this.pollOptions[b].optionText=(S=N.detail.value)!=null?S:""}}};
_.d0.Object.defineProperties(LZ.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var N,b;return this.pollOptions.length<((b=(N=this.editorInfo)==null?void 0:N.maxPollOptions)!=null?b:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(N){return N.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(N){return N.image}).map(function(N){return N.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(N){return N.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.data)==null?void 0:N.addOptionButtonText;return b?this.createButtonRenderer(b,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.data)==null?void 0:N.repositionImagesButtonLabel;return b?this.createButtonRenderer(b,!this.hasImages):void 0}}});
LZ.prototype.onPollOptionsChange=LZ.prototype.onPollOptionsChange;LZ.prototype.observeAddImageError=LZ.prototype.observeAddImageError;LZ.prototype.onEditorInfoChange=LZ.prototype.onEditorInfoChange;LZ.prototype.dataChanged=LZ.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("ytd-backstage-multi-image-reposition-renderer"),_.y("design:type",Object)],LZ.prototype,"imageRepositionContainer",void 0);
_.p([_.U(),_.y("design:type",Object)],LZ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],LZ.prototype,"editorInfo",void 0);_.p([_.U(),_.y("design:type",lr)],LZ.prototype,"uploadManager",void 0);_.p([_.U(),_.y("design:type",Object)],LZ.prototype,"showImagesPreview",void 0);_.p([_.U(),_.y("design:type",Array)],LZ.prototype,"pollOptions",void 0);_.p([_.U(),_.y("design:type",Object)],LZ.prototype,"errorMessage",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LZ.prototype,"dataChanged",null);_.p([_.t_("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LZ.prototype,"onEditorInfoChange",null);_.p([_.W4("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LZ.prototype,"observeAddImageError",null);
_.p([_.t_("pollOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LZ.prototype,"onPollOptionsChange",null);_.p([_.f("pollOptions","editorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"isAllowedToAddOption",null);_.p([_.f("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"hasImages",null);
_.p([_.f("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"imagesToReposition",null);_.p([_.f("pollOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"hasCustomOptionText",null);_.p([_.f("data","isAllowedToAddOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"addOptionButton",null);_.p([_.f("data","hasImages"),_.y("design:type",Object),_.y("design:paramtypes",[])],LZ.prototype,"repositionImagesButton",null);
_.p([_.Uj({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],LZ);
_.X(LZ,"ytd-backstage-image-poll-editor-renderer",function(){if(dw9!==void 0)return dw9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return dw9=N},{mode:2});var L5c={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var ff9;var fZ=function(){var N=_.z.apply(this,arguments)||this;N.a11yConfig=L5c;N.imageDisplayOffsetTop=0;N.imageDisplayOffsetLeft=0;N.pickerDisplayOffsetTop=0;N.pickerDisplayOffsetLeft=0;N.showPreviewContainer=!0;N.startPicker=!1;N.repositionOptional=!1;N.editOnlyMode=!1;N.savedImageDisplayOffsetTop=0;N.savedImageDisplayOffsetLeft=0;return N};
_.F(fZ,_.z);_.v=fZ.prototype;_.v.created=function(){_.vS.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(N){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){N.detail.keyboardEvent.preventDefault();var b=0,S=0,P="";switch(N.detail.keyboardEvent.key){case "ArrowUp":irp(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":irp(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":irp(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":irp(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}P&&_.cN(P)&&_.bC(this.hostElement,"iron-announce",{text:_.cN(P)});if(S||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),N=_.cN(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),N=_.cN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})),N&&_.bC(this.hostElement,"iron-announce",{text:N})}};
_.v.getPreviewPosition=function(N,b,S,P){return Math.round(100*(N+b*.5-S)/P)};
_.v.calculateDisplayPosition=function(){var N=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/N,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var S=N*this.displayScale*this.imageData.previewCoordinates.left,P=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>N?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-S;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=N>b?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-P;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=N*this.displayScale;this.imageHeight=b*this.displayScale};
_.v.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.v.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.v.getSignedPosition=function(N,b,S){return b==="X"&&_.Vg("HTML_DIR")==="rtl"?S==="-"?N+"px":N*-1+"px":S==="-"?N*-1+"px":N+"px"};
_.v.pickerMove=function(N){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-N.clientX,S=this.pickerOffsetY-N.clientY;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.v.pickerMoveStart=function(N){this.startPicker=!0;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var N=this.generateCropPreview();N&&_.bC(this.hostElement,"ytd-backstage-image-preview-coordinates-update",N)};
_.v.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.bC(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.v.deleteImage=function(){_.bC(this.hostElement,"ytd-backstage-image-preview-delete")};
_.v.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.v.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var N=this.generateCropPreview();N&&_.bC(this.hostElement,"ytd-backstage-image-preview-coordinates-save",N)};
_.v.getPreviewOffset=function(N,b,S){return b&&N?(S==="X"&&_.Vg("HTML_DIR")==="rtl"?300/b*N:300/b*N*-1)+"px":"0px"};
_.v.getSimpleText=function(N){return N?_.es(N):""};
_.v.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.d0.Object.defineProperties(fZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.cN(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.cN(this.a11yConfig.verticalRepositionInstruction)}N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.cN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.cN(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.instruction)==null?void 0:(b=N.previewInstruction)==null?void 0:b.editButtonLabel;return S?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H=this.editOnlyMode?(N=this.instruction)==null?void 0:(b=N.editInstruction)==null?void 0:b.saveImagesButtonLabel:(S=this.instruction)==null?void 0:(P=S.editInstruction)==null?void 0:P.saveButtonLabel;return H?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.instruction)==null?void 0:(b=N.previewInstruction)==null?void 0:b.deleteButtonLabel;return S?{size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.instruction)==null?void 0:(b=N.editInstruction)==null?void 0:b.cancelButtonLabel;N=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return S?{style:N,size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
fZ.prototype.onEditOnlyModeUpdate=fZ.prototype.onEditOnlyModeUpdate;fZ.prototype.onImageChange=fZ.prototype.onImageChange;_.p([_.U(),_.y("design:type",xAb)],fZ.prototype,"imageData",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"instruction",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"a11yConfig",void 0);_.p([_.U(),_.y("design:type",Number)],fZ.prototype,"imageWidth",void 0);_.p([_.U(),_.y("design:type",Number)],fZ.prototype,"imageHeight",void 0);
_.p([_.U(),_.y("design:type",Number)],fZ.prototype,"displayScale",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"imageDisplayOffsetTop",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"imageDisplayOffsetLeft",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"pickerDisplayOffsetTop",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"pickerDisplayOffsetLeft",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"showPreviewContainer",void 0);
_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"startPicker",void 0);_.p([_.U(),_.y("design:type",Number)],fZ.prototype,"pickerOffsetX",void 0);_.p([_.U(),_.y("design:type",Number)],fZ.prototype,"pickerOffsetY",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"repositionOptional",void 0);_.p([_.U(),_.y("design:type",Object)],fZ.prototype,"editOnlyMode",void 0);_.p([_.dq("#picker-container"),_.y("design:type",HTMLElement)],fZ.prototype,"JSC$16027_pickerContainer",void 0);
_.p([_.dq("#picker"),_.y("design:type",HTMLElement)],fZ.prototype,"picker",void 0);_.p([_.dq("#preview-clipper"),_.y("design:type",HTMLElement)],fZ.prototype,"previewClipper",void 0);_.p([_.dq("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],fZ.prototype,"JSC$16027_imageInBackground",void 0);_.p([_.dq("#image-in-picker"),_.y("design:type",HTMLImageElement)],fZ.prototype,"JSC$16027_imageInPicker",void 0);
_.p([_.dq("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],fZ.prototype,"JSC$16027_imageInPreviewClipper",void 0);_.p([_.f("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"altLabelForImage",null);_.p([_.f("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],fZ.prototype,"pickerSize",null);
_.p([_.f("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],fZ.prototype,"imageOrientationStyle",null);_.p([_.f("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],fZ.prototype,"editButton",null);_.p([_.f("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],fZ.prototype,"saveButton",null);_.p([_.f("instruction"),_.y("design:type",Object),_.y("design:paramtypes",[])],fZ.prototype,"deleteButton",null);
_.p([_.f("instruction","editOnlyMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],fZ.prototype,"cancelButton",null);_.p([_.f("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],fZ.prototype,"cropOffsetTop",null);_.p([_.f("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],fZ.prototype,"cropOffsetLeft",null);
_.p([_.f("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"pickerBackgroundStyle",null);_.p([_.f("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"pickerDisplayStyle",null);_.p([_.f("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"imageInPickerStyle",null);
_.p([_.f("cropOffsetLeft","cropOffsetTop","pickerSize"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"previewClipperStyle",null);_.p([_.t_("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fZ.prototype,"onImageChange",null);_.p([_.t_("editOnlyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fZ.prototype,"onEditOnlyModeUpdate",null);
_.p([_.f("showPreviewContainer"),_.y("design:type",String),_.y("design:paramtypes",[])],fZ.prototype,"pickerModeStyle",null);_.p([_.Uj({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],fZ);
_.X(fZ,"ytd-backstage-image-preview-renderer",function(){if(ff9!==void 0)return ff9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ff9=N},{mode:1});var uhN;var Qhd={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var xwZ;var o5d;var ur=function(){var N=_.z.apply(this,arguments)||this;N.a11yConfig=Qhd;N.imageDisplayOffsetTop=0;N.imageDisplayOffsetLeft=0;N.pickerDisplayOffsetTop=0;N.pickerDisplayOffsetLeft=0;N.cropCoordinatesSaved=!1;N.previewSize=0;N.startPicker=!1;N.repositionOptional=!1;return N};
_.F(ur,_.z);_.v=ur.prototype;_.v.created=function(){_.vS.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(N){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){N.detail.keyboardEvent.preventDefault();var b=0,S=0,P="";switch(N.detail.keyboardEvent.key){case "ArrowUp":Jo_(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":Jo_(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":Jo_(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":Jo_(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}P&&_.cN(P)&&_.bC(this.hostElement,"iron-announce",{text:_.cN(P)});if(S||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),N=_.cN(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),N=_.cN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})),N&&_.bC(this.hostElement,"iron-announce",{text:N})}};
_.v.getPreviewPosition=function(N,b,S,P){return Math.round(100*(N+b*.5-S)/P)};
_.v.displayImage=function(){var N=this.JSC$16038_pickerContainer.getBoundingClientRect().width,b=this.JSC$16038_pickerContainer.getBoundingClientRect().height,S=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),P=this.JSC$16038_imageInBackground.naturalWidth,H=this.JSC$16038_imageInBackground.naturalHeight;this.displayScale=Math.max(S/P,S/H);this.imageWidth=P*this.displayScale;this.imageHeight=H*this.displayScale;this.pickerDisplayOffsetLeft=(N-S)/2;this.pickerDisplayOffsetTop=
(b-S)/2;this.imageDisplayOffsetLeft=H>P?this.pickerDisplayOffsetLeft:(N-this.imageWidth)/2;this.imageDisplayOffsetTop=P>H?this.pickerDisplayOffsetTop:(b-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.v.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16038_imageInBackground.src=this.imageData.toString(),this.JSC$16038_imageInPicker.src=this.imageData.toString(),this.JSC$16038_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.v.getSignedPosition=function(N,b,S){return b==="X"&&_.Vg("HTML_DIR")==="rtl"?S==="-"?N+"px":N*-1+"px":S==="-"?N*-1+"px":N+"px"};
_.v.pickerMove=function(N){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-N.clientX,S=this.pickerOffsetY-N.clientY;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.v.pickerMoveStart=function(N){this.startPicker=!0;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.v.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.bC(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.v.getPreviewOffset=function(N,b,S,P){return b&&N&&S?(P==="X"&&_.Vg("HTML_DIR")==="rtl"?S/b*N:S/b*N*-1)+"px":"0px"};
_.v.getSimpleText=function(N){return N?_.es(N):""};
_.v.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var N=this.cropOffsetTop/this.imageHeight,b=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,S=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,P=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.H4(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.bC(this.hostElement,"yt-img-crop-coordinates-update",{top:N,right:b,bottom:S,left:P})}};
_.d0.Object.defineProperties(ur.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.cN(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.cN(this.a11yConfig.verticalRepositionInstruction)}N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.cN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.cN(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var N,b=(N=this.learnMore.runs[0])==null?void 0:N.navigationEndpoint,S;return((S=_.t(b,_.Hz))==null?void 0:S.url)||void 0}}}});
ur.prototype.onImageDataChange=ur.prototype.onImageDataChange;_.p([_.U(),_.y("design:type",Object)],ur.prototype,"imageData",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"instruction",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"a11yConfig",void 0);_.p([_.U(),_.y("design:type",Number)],ur.prototype,"imageWidth",void 0);_.p([_.U(),_.y("design:type",Number)],ur.prototype,"imageHeight",void 0);_.p([_.U(),_.y("design:type",Number)],ur.prototype,"displayScale",void 0);
_.p([_.U(),_.y("design:type",Object)],ur.prototype,"imageDisplayOffsetTop",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"imageDisplayOffsetLeft",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"pickerDisplayOffsetTop",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"pickerDisplayOffsetLeft",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"cropCoordinatesSaved",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"previewSize",void 0);
_.p([_.U(),_.y("design:type",Object)],ur.prototype,"startPicker",void 0);_.p([_.U(),_.y("design:type",Number)],ur.prototype,"pickerOffsetX",void 0);_.p([_.U(),_.y("design:type",Number)],ur.prototype,"pickerOffsetY",void 0);_.p([_.U(),_.y("design:type",Object)],ur.prototype,"repositionOptional",void 0);_.p([_.dq("#picker-container"),_.y("design:type",HTMLElement)],ur.prototype,"JSC$16038_pickerContainer",void 0);_.p([_.dq("#picker"),_.y("design:type",HTMLElement)],ur.prototype,"picker",void 0);
_.p([_.dq("#image-in-picker-background"),_.y("design:type",HTMLImageElement)],ur.prototype,"JSC$16038_imageInBackground",void 0);_.p([_.dq("#image-in-picker"),_.y("design:type",HTMLImageElement)],ur.prototype,"JSC$16038_imageInPicker",void 0);_.p([_.dq("#image-in-preview-clipper"),_.y("design:type",HTMLImageElement)],ur.prototype,"JSC$16038_imageInPreviewClipper",void 0);_.p([_.dq("#full-image-as-preview"),_.y("design:type",HTMLImageElement)],ur.prototype,"imageAsPreview",void 0);
_.p([_.f("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"altLabelForImage",null);_.p([_.f("imageHeight","imageWidth"),_.y("design:type",Number),_.y("design:paramtypes",[])],ur.prototype,"pickerSize",null);_.p([_.f("imageHeight","imageWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],ur.prototype,"imageOrientationStyle",null);
_.p([_.f("instruction.previewInstruction.editButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],ur.prototype,"editButton",null);_.p([_.f("instruction.editInstruction.saveButtonLabel"),_.y("design:type",Object),_.y("design:paramtypes",[])],ur.prototype,"saveButton",null);_.p([_.f("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.y("design:type",Number),_.y("design:paramtypes",[])],ur.prototype,"cropOffsetTop",null);
_.p([_.f("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.y("design:type",Number),_.y("design:paramtypes",[])],ur.prototype,"cropOffsetLeft",null);_.p([_.f("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"pickerBackgroundStyle",null);_.p([_.f("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"pickerDisplayStyle",null);
_.p([_.f("cropOffsetLeft","cropOffsetTop"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"imageInPickerStyle",null);_.p([_.f("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"previewClipperStyle",null);_.p([_.W4("imageData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ur.prototype,"onImageDataChange",null);
_.p([_.f("cropCoordinatesSaved"),_.y("design:type",String),_.y("design:paramtypes",[])],ur.prototype,"pickerModeStyle",null);_.p([_.f("instruction.editInstruction.learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],ur.prototype,"learnMore",null);_.p([_.f("learnMore"),_.y("design:type",Object),_.y("design:paramtypes",[])],ur.prototype,"learnMoreUrl",null);_.p([_.J_({is:"yt-img-crop-picker",disableElementRegistration:!0})],ur);
_.X(ur,"yt-img-crop-picker",function(){if(o5d===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;xwZ===void 0&&(xwZ=document.createElement("template"));var P=xwZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);o5d=N}N=o5d;return N},{mode:2});var QV=function(){var N=_.z.apply(this,arguments)||this;N.errorMessage="";N.hasPreview=!1;N.isBackstagePost=!1;N.dismissButtonOverrides={size:"XS"};return N};
_.F(QV,_.z);_.v=QV.prototype;_.v.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.detached=function(){this.removeOverlay()};
_.v.setPreview=function(N){_.H4(this.hostElement).querySelector("#preview-picker").imageData=N;this.hasPreview=!0;_.bC(this.hostElement,"yt-backstage-image-select-preview")};
_.v.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var N=_.H4(this.hostElement).querySelector("#dropzone");N.classList.remove("dragover");N.classList.remove("error");_.bC(this.hostElement,"yt-backstage-image-select-cancel")};
_.v.setupOverlay=function(){var N=this.imageUploadEndpoint;this.removeOverlay();if(N&&N.imageValidationInfo){var b=_.H4(this.hostElement).querySelector("#dropzone"),S=_.H4(this.hostElement).querySelector("#select");this.overlay=new lt(N.uploadUrl,N.channelId,N.imageValidationInfo.maxFileSizeMb,N.imageValidationInfo.allowedMaxAspectRatio,b,S,!0);_.lH(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.lH(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.lH(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.lH(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.lH(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.v.removeOverlay=function(){this.overlay&&(_.iW(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.iW(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.iW(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.iW(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.iW(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.v.onDragOver=function(N){var b=_.H4(this.hostElement).querySelector("#dropzone");_.K3(b,"dragover",N.value)};
_.v.onPreview=function(N){this.setPreview(N.value)};
_.v.onImageError=function(N){if(N.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var b;N=(b=this.data)==null?void 0:b.fileSizeError}else if(N.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var S;N=(S=this.data)==null?void 0:S.invalidError}else if(N.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var P;N=(P=this.data)==null?void 0:P.invalidAspectRatioError}else return;this.errorMessage=_.es(N);_.H4(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.v.onImageAlert=function(N){this.onImageError(N)};
_.v.uploadPromise=function(){var N=this,b=this.overlay&&this.overlay.uploadPromise();if(b)return b.catch(function(){throw Error(N.data?_.es(N.data.uploadFailureError):"");})};
_.d0.Object.defineProperties(QV.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var N,b;if((N=this.data)==null?0:(b=N.icon)==null?0:b.iconType)return _.C7(this.data.icon.iconType)}}});
QV.prototype.setupOverlay=QV.prototype.setupOverlay;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],QV.prototype,"rendererStamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QV.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],QV.prototype,"imageUploadEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],QV.prototype,"errorMessage",void 0);
_.p([_.U(),_.y("design:type",lt)],QV.prototype,"overlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],QV.prototype,"hasPreview",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],QV.prototype,"isBackstagePost",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],QV.prototype,"selectionCancel",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],QV.prototype,"previewCancel",null);
_.p([_.f("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],QV.prototype,"icon",null);_.p([_.U(),_.y("design:type",Object)],QV.prototype,"dismissButtonOverrides",void 0);_.p([_.W4("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QV.prototype,"setupOverlay",null);_.p([_.Uj({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],QV);
_.X(QV,"ytd-backstage-image-select-renderer",function(){if(uhN!==void 0)return uhN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return uhN=N},{mode:1});var ikk;var Jx4;var x8=function(){var N=_.z.apply(this,arguments)||this;N.selected=!1;return N};
_.F(x8,_.z);_.v=x8.prototype;_.v.computeSelected=function(N){return N==null?void 0:N.selected};
_.v.computeTransform=function(N,b,S){var P,H,K=(H=(P=this.imageContainer)==null?void 0:P.getBoundingClientRect())!=null?H:{width:0,height:0};P=Math.max(K.width/b,K.height/S);S=S*P*N.top;return"translateX("+this.getSignedPosition(b*P*N.left,"X","-")+") translateY("+this.getSignedPosition(S,"Y","-")+")"};
_.v.getSignedPosition=function(N,b,S){return b==="X"&&_.Vg("HTML_DIR")==="rtl"?S==="-"?N+"px":N*-1+"px":S==="-"?N*-1+"px":N+"px"};
_.v.onClick=function(){var N;_.bC(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(N=this.data)==null?void 0:N.image)};
_.v.onKeyPress=function(N){if(N.keyCode===13)this.onClick()};
_.d0.Object.defineProperties(x8.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.image)==null?void 0:b.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)!=null&&N.image){var b;N=(b=this.data)==null?void 0:b.image;return N.previewCoordinates.top!==0||N.previewCoordinates.left!==0?(b=this.computeTransform(N.previewCoordinates,N.naturalWidth,N.naturalHeight),N.naturalHeight>=N.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):N.naturalHeight>=N.naturalWidth?"width:inherit;":"height:inherit;"}}}});
x8.prototype.onKeyPress=x8.prototype.onKeyPress;_.p([_.dq(".image-container"),_.y("design:type",HTMLElement)],x8.prototype,"imageContainer",void 0);_.p([_.U(),_.y("design:type",Object)],x8.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.y("design:type",Object)],x8.prototype,"selected",void 0);_.p([_.f("data.image"),_.y("design:type",Object),_.y("design:paramtypes",[])],x8.prototype,"thumbnailUrl",null);
_.p([_.f("data.image","data.image.previewCoordinates"),_.y("design:type",Object),_.y("design:paramtypes",[])],x8.prototype,"thumbnailStyle",null);_.p([_.RA("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],x8.prototype,"onKeyPress",null);_.p([_.Uj({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],x8);
_.X(x8,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Jx4!==void 0)return Jx4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Jx4=N},{mode:2});var oa=function(N,b,S){S=S===void 0?!1:S;_.J1.call(this);var P=this;this.dropZoneOverlay=new ib(N);this.selectOverlay=S?new Jj(b,"multiple_file",["image/*"]):new Jj(b,"single_file",["image/*"]);this.handler=new _.fx(this);_.QS(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(b,"click",function(){P.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.F(oa,_.J1);oa.prototype.onChange=function(N){var b;(b=N.files)!=null&&b.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:N.files}))};var ir=function(){var N=_.z.apply(this,arguments)||this;N.addImageErrorMessage="";N.errorMessage="";N.images=[];N.selectedImageIndex=0;N.modern=_.T("web_modern_buttons");N.maxNumImagesPerPost=_.d7("max_num_images_per_post_web_ui");N.JSC$16053_imageId=0;return N};
_.F(ir,_.z);_.v=ir.prototype;_.v.created=function(){var N=this;this.JSC$16053_ytReorderableController=new _.$lz(100,function(b){N.handleDrop(b)})};
_.v.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.bC(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.v.observeDragToReorder=function(){var N=this;if(this.showImagesPreview){var b,S=SSN(_.zs.getInstance(),(b=this.data)==null?void 0:b.dragToReorderTooltip);_.Dj.addLowPriorityJob(function(){_.sR(N.hostElement,S,N.thumbnailDragDropArea)})}};
_.v.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.v.computeThumbnail=function(N){return(N==null?void 0:N.localImageSrc)||void 0};
_.v.onRendererstamperFinished=function(){_.h4z(this.JSC$16053_ytReorderableController,_.H4(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.H4(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.v.handleDrop=function(N){var b=N.currDragItem;if(b!=null&&b.data){N=this.images[this.selectedImageIndex];var S=b.data.image,P=this.images.indexOf(S)||0;b=_.Ue(b.parentNode.children,b);this.images.splice(P,1);this.images.splice(b,0,S);this.images=[].concat(_.IX(this.images));this.selectedImageIndex=this.images.indexOf(N)}};
_.v.setUpImagePicker=function(){var N=this.imageUploadEndpoint;N&&N.imageValidationInfo&&(this.uploadManager=new lr(N.uploadUrl,N.channelId),this.initialPicker||(this.initialPicker=new oa(this.dropzone,this.selectLink,!0),_.lH(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new oa(this.addImageButtonContainer,this.addImageSelectButton),_.lH(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.lH(this.JSC$16053_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.lH(this.JSC$16053_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.lH(_.H4(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.v.detached=function(){this.initialPicker&&(_.iW(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.iW(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.g3(this.JSC$16053_ytReorderableController)};
_.v.onInitialSelectImages=function(N){var b=this;return _.r(function(S){return S.yield(b.onSelectImages(N,!1),0)})};
_.v.onAddImage=function(N){var b=this;return _.r(function(S){return S.yield(b.onSelectImages(N,!0),0)})};
_.v.onSelectImages=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g;return _.r(function(e){switch(e.nextAddress){case 1:b?S.addImageErrorMessage="":(S.images=[],S.errorMessage="");P=N.detail;H=S.validateImages([].concat(_.IX(P)));if(H!=="")return b?S.addImageErrorMessage=H:S.errorMessage=H,e.return();K=[].concat(_.IX(P)).map(function(se){return(new Fy(S.maxAspectRatio,!1,!0)).transform(se)});
return e.yield(Promise.allSettled(K),2);case 2:C=e.yieldResult,G=_.O(C.entries()),a=G.next();case 3:if(a.done){e.jumpTo(5);break}R=a.value;n=_.O(R);d=n.next().value;m=n.next().value;k=d;M=m;if(M.status!=="fulfilled"){J=u=l=void 0;b?S.addImageErrorMessage=_.es((l=S.data)==null?void 0:l.invalidError):S.errorMessage=S.errorMessage===""?_.es((u=S.data)==null?void 0:u.invalidError):_.es((J=S.data)==null?void 0:J.multiFileError);e.jumpTo(4);break}Z=M.value;Z.cropped&&_.bC(S.hostElement,"yt-backstage-multi-image-cropped");
if(Z.invalidAspectRatio){V=Y=D=void 0;b?S.addImageErrorMessage=_.es((D=S.data)==null?void 0:D.invalidAspectRatioError):S.errorMessage=S.errorMessage===""?_.es((Y=S.data)==null?void 0:Y.invalidAspectRatioError):_.es((V=S.data)==null?void 0:V.multiFileError);e.jumpTo(4);break}return e.yield(oCO(S.JSC$16053_imageId,N.detail[k],Z.transformedData),8);case 8:g=e.yieldResult,S.images.push(g),S.JSC$16053_imageId++;case 4:a=G.next();e.jumpTo(3);break;case 5:if(S.errorMessage!==""||S.addImageErrorMessage!==
"")return e.return();b?Tm9(S.uploadManager,[S.images[S.images.length-1]]):Tm9(S.uploadManager,S.images);S.images=[].concat(_.IX(S.images));S.selectedImageIndex=b?Math.max(S.images.length-1,0):0;_.bC(S.hostElement,"yt-backstage-multi-image-select");_.Zd(e)}})};
_.v.onThumbnailClick=function(N){if(N=N.event_.detail)this.selectedImageIndex=this.images.indexOf(N)};
_.v.validateImages=function(N){if(N.length>this.maxNumImagesPerPost){var b;return _.es((b=this.data)==null?void 0:b.multiImageExceedMaxImageCountError)}var S=1048576*this.maxFileSizeMb;N=N.filter(function(K){return K.size>S}).length;
if(N===0)return"";var P,H;N=N>1?(P=this.data)==null?void 0:P.multiFileError:(H=this.data)==null?void 0:H.fileSizeError;return _.es(N)};
_.v.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.IX(this.images));this.selectedImageIndex=0};
_.v.repositionImage=function(N){this.images[this.selectedImageIndex].previewCoordinates=N.event_.detail;this.images=[].concat(_.IX(this.images))};
_.v.getAllUploadStatuses=function(){var N=this,b,S,P,H;return _.r(function(K){if(K.nextAddress==1)return K.yield(N.uploadManager.getAllUploadStatuses(),2);b=K.yieldResult;S=_.O(b);for(P=S.next();!P.done;P=S.next())if(H=P.value,H.encryptedBlobId===void 0)return K.return(tfS(N.uploadManager));return K.return(b)})};
_.v.hasImages=function(){return this.images.length>0};
_.v.cancel=function(){for(var N=this.uploadManager,b=_.O(N.imagesUploadData),S=b.next();!S.done;S=b.next())N.cancel(S.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.bC(this.hostElement,"yt-backstage-multi-image-cancel")};
_.d0.Object.defineProperties(ir.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.imageUploadEndpoint)==null?void 0:(b=N.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.imageUploadEndpoint)==null?void 0:(b=N.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var N,b;if((N=this.data)==null?0:(b=N.icon)==null?0:b.iconType)return _.C7(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var N=this;return(this.images||[]).map(function(b,S){return{renderer:{image:b,selected:S===N.selectedImageIndex}}})}}});
ir.prototype.setUpImagePicker=ir.prototype.setUpImagePicker;ir.prototype.onRendererstamperFinished=ir.prototype.onRendererstamperFinished;ir.prototype.observeDragToReorder=ir.prototype.observeDragToReorder;ir.prototype.observeAddImageError=ir.prototype.observeAddImageError;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ir.prototype,"rendererStamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);
_.p([_.dq("#dropzone"),_.y("design:type",HTMLElement)],ir.prototype,"dropzone",void 0);_.p([_.dq("#select-link"),_.y("design:type",HTMLElement)],ir.prototype,"selectLink",void 0);_.p([_.dq("#thumbnail-drag-drop-area"),_.y("design:type",HTMLElement)],ir.prototype,"thumbnailDragDropArea",void 0);_.p([_.dq("#add-image-button-container"),_.y("design:type",HTMLElement)],ir.prototype,"addImageButtonContainer",void 0);
_.p([_.dq("#add-image-button"),_.y("design:type",HTMLElement)],ir.prototype,"addImageSelectButton",void 0);_.p([_.dq("#image-preview-container"),_.y("design:type",Object)],ir.prototype,"JSC$16053_imagePreviewContainer",void 0);_.p([_.U(),_.y("design:type",Object)],ir.prototype,"addImageErrorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],ir.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],ir.prototype,"errorMessage",void 0);
_.p([_.U(),_.y("design:type",Object)],ir.prototype,"imageUploadEndpoint",void 0);_.p([_.U(),_.y("design:type",Array)],ir.prototype,"images",void 0);_.p([_.U(),_.y("design:type",oa)],ir.prototype,"initialPicker",void 0);_.p([_.U(),_.y("design:type",oa)],ir.prototype,"addImagePicker",void 0);_.p([_.U(),_.y("design:type",lr)],ir.prototype,"uploadManager",void 0);_.p([_.U(),_.y("design:type",Object)],ir.prototype,"selectedImageIndex",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ir.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ir.prototype,"maxNumImagesPerPost",void 0);_.p([_.f("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],ir.prototype,"maxAspectRatio",null);_.p([_.f("imageUploadEndpoint"),_.y("design:type",Number),_.y("design:paramtypes",[])],ir.prototype,"maxFileSizeMb",null);
_.p([_.f("data.icon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],ir.prototype,"dropIcon",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ir.prototype,"selectionCancel",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ir.prototype,"previewCancel",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],ir.prototype,"dataForAddImageButton",null);
_.p([_.f("errorMessage"),_.y("design:type",String),_.y("design:paramtypes",[])],ir.prototype,"dropzoneClass",null);_.p([_.f("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ir.prototype,"showImagesPreview",null);_.p([_.f("images"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ir.prototype,"containMaxImages",null);_.p([_.W4("addImageErrorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ir.prototype,"observeAddImageError",null);
_.p([_.W4("showImagesPreview"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ir.prototype,"observeDragToReorder",null);_.p([_.f("images","selectedImageIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],ir.prototype,"selectedImageData",null);_.p([_.f("images","selectedImageIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],ir.prototype,"thumbnailRenderers",null);
_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ir.prototype,"onRendererstamperFinished",null);_.p([_.W4("imageUploadEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ir.prototype,"setUpImagePicker",null);_.p([_.Uj({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],ir);
_.X(ir,"ytd-backstage-multi-image-select-renderer",function(){if(ikk!==void 0)return ikk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ikk=N},{mode:1});var Uw4;var Zk4;var jhO;var J$=function(){var N=_.z.apply(this,arguments)||this;N.boundCaptureFocus=function(b){N.onCaptureFocus(b)};
return N};
_.F(J$,_.z);_.v=J$.prototype;_.v.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.v.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.v.onCaptureFocus=function(N){_.V7(N).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.v.getIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.v.onSelect=function(){var N;if((N=this.data)==null?0:N.onSelectCommand)if(_.T("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=_.t(this.data.onSelectCommand.commandMetadata,_.GY))==null?0:b.url)?_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.aN().resolve(_.Wq).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.d0.Object.defineProperties(J$.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.es(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],J$.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],J$.prototype,"data",void 0);_.p([_.dq("#item"),_.y("design:type",HTMLElement)],J$.prototype,"item",void 0);_.p([_.f("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],J$.prototype,"label",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],J$.prototype,"value",null);_.p([_.Uj({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],J$);
_.X(J$,"ytd-privacy-dropdown-item-renderer",function(){if(jhO!==void 0)return jhO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jhO=N},{mode:1});var UJ=function(){var N=_.z.apply(this,arguments)||this;N.value="";N.label="";N.disabled=!1;return N};
_.F(UJ,_.z);_.v=UJ.prototype;_.v.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.v.dataChanged=function(){this.reset()};
_.v.valueChanged=function(){var N;if(this.value&&(N=this.data)!=null&&N.entries){N=_.O(this.data.entries);for(var b=N.next();!b.done;b=N.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}};
_.v.setInitialLabel=function(){if(this.data&&this.data.entries)for(var N=_.O(this.data.entries),b=N.next();!b.done;b=N.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}};
_.v.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var N=_.O(this.data.entries),b=N.next();!b.done;b=N.next()){b=this.getRendererForEntry(b.value);var S=void 0;if((S=b)==null?0:S.isSelected)return this.getItemRendererValue(b)||-1}return-1};
_.v.getItemRendererValue=function(N){return"stringValue"in N||"int32Value"in N?N.stringValue||N.int32Value||null:null};
_.v.getRendererForEntry=function(N){return N.dropdownItemRenderer||N.privacyDropdownItemRenderer||N.navigationDropdownItemRenderer||null};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("value-changed",this.value))};
_.v.updateValueFromBinding=function(N){this.value=N.detail.value};
UJ.prototype.valueChangedForBinding=UJ.prototype.valueChangedForBinding;UJ.prototype.valueChanged=UJ.prototype.valueChanged;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],UJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],UJ.prototype,"value",void 0);_.p([_.U(),_.y("design:type",Object)],UJ.prototype,"label",void 0);_.p([_.dq("#entries"),_.y("design:type",Object)],UJ.prototype,"entries",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],UJ.prototype,"disabled",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UJ.prototype,"dataChanged",null);
_.p([_.t_("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UJ.prototype,"valueChanged",null);_.p([_.W4("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],UJ.prototype,"valueChangedForBinding",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],UJ);
_.X(UJ,"ytd-flat-dropdown-renderer",function(){if(Zk4!==void 0)return Zk4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Zk4=N},{mode:1});var zWl;var Z9=function(){var N=_.z.apply(this,arguments)||this;N.quizOptions=[];N.explanationPlaceholderText="";N.optionPlaceholderText="";N.correctAnswerIndex=-1;N.isMarkAnswerTooltipShown=!1;N.timer=0;return N};
_.F(Z9,_.z);_.v=Z9.prototype;_.v.dataChanged=function(){this.optionPlaceholderText=_.es(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.es(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.v.onMarkCorrectAnswer=function(N){var b,S=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[N.model.index]=Object.assign({},this.quizOptions[N.model.index],{explanationText:S,isCorrect:!0});this.correctAnswerIndex=N.model.index;this.quizOptions=[].concat(_.IX(this.quizOptions))};
_.v.updatePlaceholderTexts=function(){for(var N=!1,b=[],S=0;S<this.quizOptions.length;S++){var P=this.optionPlaceholderText+" "+(S+1),H=void 0;((H=this.quizOptions[S])==null?void 0:H.placeholderText)!==P?(N=!0,b.push(Object.assign({},this.quizOptions[S],{placeholderText:P}))):b.push(this.quizOptions[S])}N&&(this.quizOptions=b);this.isValid()?_.bC(this.hostElement,"yt-commentbox-post-enable"):_.bC(this.hostElement,"yt-commentbox-post-disable")};
_.v.getSimpleString=function(N){return _.es(N)};
_.v.createQuizOptions=function(N){var b=[],S;N=(S=N==null?void 0:N.minQuizOptions)!=null?S:0;for(S=0;S<N;S++)b.push(this.createQuizOption());return b};
_.v.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.IX(this.quizOptions),[this.createQuizOption()]))};
_.v.onInput=function(){this.quizOptions=[].concat(_.IX(this.quizOptions))};
_.v.onExplanationInput=function(){_.bC(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.v.onRemoveQuizOption=function(N){this.quizOptions.splice(N.model.index,1);N.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:N.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.IX(this.quizOptions));this.quizOptions.length===0&&_.bC(this.hostElement,"yt-quiz-attachment-dismiss")};
_.v.updateHintRenderer=function(){var N=this;clearTimeout(this.timer);this.timer=setTimeout(function(){N.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.v.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var N=0,b=0,S=_.O(this.quizOptions),P=S.next();!P.done;P=S.next()){P=P.value;var H=void 0;if(((H=P.optionText)==null?void 0:H.trim())!==""||P.isCorrect){P.isCorrect&&b++;H=void 0;if(this.hasCustomOptionText&&((H=P.optionText)==null?void 0:H.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;N++}}return N>=
Number(this.editorInfo.minQuizOptions)&&b===1};
_.v.getPostCreateOptions=function(){for(var N=[],b=_.O(this.quizOptions),S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;((P=S.optionText)==null?void 0:P.trim())!==""&&N.push({pollOption:{text:S.optionText,explanation:S.explanationText},isCorrect:S.isCorrect})}return N};
_.v.getExplanationText=function(){var N;return((N=this.quizOptions[this.correctAnswerIndex])==null?void 0:N.explanationText)||""};
_.v.maybeDisplayMarkAnswerEduToolTip=function(){var N,b,S,P,H,K,C;this.shouldShowMarkAnswerTooltip()&&((N=this.editorInfo)==null?0:(b=N.markAnswerButton)==null?0:(S=b.buttonRenderer)==null?0:(P=S.hint)==null?0:(H=P.hintRenderer)==null?0:(K=H.content)==null?0:(C=K.bubbleHintRenderer)==null?0:C.text)&&(_.zs.getInstance(),N=AN(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(N==null?void 0:N.length)>0&&this.optionSelectors&&_.c7(N[0],this.optionSelectors[0]))};
_.v.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var N=0,b=_.O(this.quizOptions),S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;((P=S.optionText)==null?void 0:P.trim())!==""&&N++;if(S.isCorrect)return!1}return N<2?!1:!0};
_.v.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.v.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.v.updateOptionTextFromBinding=function(N){if(N.target){var b=Array.from(_.H4(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(N.target);if(b>=0){var S;this.quizOptions[b].optionText=(S=N.detail.value)!=null?S:""}}};
_.d0.Object.defineProperties(Z9.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.editorInfo)==null?void 0:(b=N.addOptionButton)==null?void 0:b.buttonRenderer;S&&(S.style="STYLE_SUGGESTIVE",S.size="SIZE_SMALL",S.isDisabled=!this.isAllowedToAddOption);return(S==null?0:S.text)?S:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var N,b;return this.quizOptions.length<((b=(N=this.editorInfo)==null?void 0:N.maxQuizOptions)!=null?b:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(N){var b;return(b=N.optionText)==null?void 0:b.trim()})}}});
Z9.prototype.updatePlaceholderTexts=Z9.prototype.updatePlaceholderTexts;Z9.prototype.dataChanged=Z9.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],Z9.prototype,"editorInfo",void 0);_.p([_.U(),_.y("design:type",Array)],Z9.prototype,"quizOptions",void 0);_.p([_.U(),_.y("design:type",Object)],Z9.prototype,"explanationPlaceholderText",void 0);_.p([_.md(".option-selector-button"),_.y("design:type",Array)],Z9.prototype,"optionSelectors",void 0);
_.p([_.t_("editorInfo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z9.prototype,"dataChanged",null);_.p([_.f("editorInfo","isAllowedToAddOption","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z9.prototype,"addAnswerButton",null);_.p([_.f("editorInfo","quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z9.prototype,"isAllowedToAddOption",null);
_.p([_.t_("quizOptions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z9.prototype,"updatePlaceholderTexts",null);_.p([_.f("quizOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z9.prototype,"hasCustomOptionText",null);_.p([_.Uj({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Z9);
_.X(Z9,"ytd-backstage-quiz-editor-renderer",function(){if(zWl!==void 0)return zWl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return zWl=N},{mode:2});var Ax9;var XG9=(RJ.FIRSTDAYOFWEEK+1)%7;var E59;var pGl=[],YF9=0,yxN=0;YF9=0;yxN=24;if(.25*(yxN-YF9)<0)E59=[];else{for(var If9=YF9;If9<yxN;If9+=.25)pGl.push(If9);E59=pGl}var Dw9=E59.map(function(N){N=N*60*60;return{secondsSinceMidnight:N,text:(new V4(7)).format(new Date(0,0,0,0,0,N))}});var VfV;var jI=function(){var N=_.z.apply(this,arguments)||this;N.skipNextOpenDialog=!1;N.errorMessage="";N.previousMonthLabel=_.cN("PREVIOUS_MONTH_LABEL");N.nextMonthLabel=_.cN("NEXT_MONTH_LABEL");return N};
_.F(jI,_.z);_.v=jI.prototype;_.v.attached=function(){var N=this,b=new MutationObserver(function(){N.JSC$16095_calendarMain.scrollHeight>0&&(b.disconnect(),N.calendarConfig&&N.calendarConfig.selectedDate&&N.scrollToDate())});
b.observe(this.JSC$16095_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){b.disconnect()},1E3)};
_.v.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.v.onDateTextChange=function(){if(this.calendarConfig){var N=this.validateDateText();N.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(N.details)):this.textbox.setAttribute("invalid","")}};
_.v.handleDayClick=function(N){N.model.day.date&&(this.commitDate(N.model.day.date),this.dialog.close())};
_.v.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var N=Y3U(this.calendarConfig.selectedDate,this.renderData);N!==void 0&&this.JSC$16095_calendarMain.scrollToIndex(N)}};
_.v.scrollToNextMonth=function(){this.JSC$16095_calendarMain.scrollToIndex(this.JSC$16095_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$16095_calendarMain.firstVisibleIndex===0&&this.JSC$16095_calendarMain.scrollTo(0,0);this.JSC$16095_calendarMain.scrollToIndex(this.JSC$16095_calendarMain.firstVisibleIndex-1)};
_.v.onFormSubmit=function(N){N.preventDefault();this.calendarConfig&&(N=this.validateDateText(),N.isValid&&(this.commitDate(N.details),this.dialog.close()))};
_.v.onEscOrClickingOutside=function(N){N=N.detail.path&&!!N.detail.path.length&&N.detail.path[0];if(N.classList.contains("ytd-calendar-date-picker")){N===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var b=0;b<this.dropdownButton.children.length;b++)this.dropdownButton.children[b]===N&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}N=this.textbox.value!==this.dateText;b=this.validateDateText();N&&b.isValid&&this.commitDate(b.details);this.dialog.close();this.textbox.value=
this.dateText};
_.v.commitDate=function(N){this.calendarConfig&&(this.set("calendarConfig.selectedDate",N),_.bC(this.hostElement,"ytd-calendar-date-selected",N))};
_.v.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var N=this.textbox.value;var b=new Date;N=(new OPO(2)).parse(N,b,{validate:!0})===N.length?ECY(b):void 0;if(!N)return this.errorMessage=_.cN("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};b=this.calendarConfig.start;var S=this.calendarConfig.end;if(Zr9(N,b))return this.errorMessage=_.cN("ENTER_DATE_OR_LATER",{allowed_date:XEo(b)}),{isValid:!1,details:void 0};if(Zr9(S,N))return this.errorMessage=
_.cN("ENTER_DATE_OR_EARLIER",{allowed_date:XEo(S)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:N}};
_.d0.Object.defineProperties(jI.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?XEo(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var N=this.calendarConfig,b=[],S=0;S<7;S++)b.push(RJ.NARROWWEEKDAYS[(S+XG9)%7]);S=[];for(var P=new Date(N.start.year,N.start.month);P.getFullYear()<N.end.year||P.getFullYear()===N.end.year&&P.getMonth()<=N.end.month;){var H=S,K=H.push,C=P.getFullYear(),G=P.getMonth(),a=N,R=void 0,n=[],d=Object.freeze({extraCssClass:"invisible",debugClass:""}),m=new Date(C,G),k=ECY(m);m=m.getDay();for(var M=ECY(new Date);k.month===
G;){m!==XG9&&R||(R=Array.from({length:7}).fill(d),n.push(R));var l={date:{year:C,month:G,day:k.day},extraCssClass:"",debugClass:""};a.selectedDate&&l.date&&UAf(l.date,a.selectedDate)&&(l.extraCssClass+=" selected");if(Zr9(k,a.start)||Zr9(a.end,k))l.extraCssClass+=" disabled";UAf(k,M)&&(l.extraCssClass+=" today");l.extraCssClass=l.extraCssClass.trim();R[(m-XG9+7)%7]=l;k=zXf(k);m=(m+1)%7}K.call(H,{weeks:n,monthLabel:RJ.SHORTMONTHS[G]+" "+C,year:C,month:G,monthLabelExtraCssClass:n[0][2]===d?"shift-down-label":
""});P.setMonth(P.getMonth()+1)}return{months:S,daysOfWeekLabel:b}}}}});
jI.prototype.onEscOrClickingOutside=jI.prototype.onEscOrClickingOutside;jI.prototype.scrollToDate=jI.prototype.scrollToDate;_.p([_.U(),_.y("design:type",Object)],jI.prototype,"calendarConfig",void 0);_.p([_.U(),_.y("design:type",Object)],jI.prototype,"skipNextOpenDialog",void 0);_.p([_.U(),_.y("design:type",Object)],jI.prototype,"errorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],jI.prototype,"previousMonthLabel",void 0);
_.p([_.U(),_.y("design:type",Object)],jI.prototype,"nextMonthLabel",void 0);_.p([_.dq("#textbox"),_.y("design:type",HTMLInputElement)],jI.prototype,"textbox",void 0);_.p([_.dq("#calendar-dialog"),_.y("design:type",Object)],jI.prototype,"dialog",void 0);_.p([_.dq("#calendar-main"),_.y("design:type",Object)],jI.prototype,"JSC$16095_calendarMain",void 0);_.p([_.dq("#date-picker"),_.y("design:type",HTMLElement)],jI.prototype,"dropdownButton",void 0);
_.p([_.f("calendarConfig.selectedDate"),_.y("design:type",String),_.y("design:paramtypes",[])],jI.prototype,"dateText",null);_.p([_.f("calendarConfig","calendarConfig.selectedDate"),_.y("design:type",Object),_.y("design:paramtypes",[])],jI.prototype,"renderData",null);_.p([_.W4("renderData","calendarConfig.selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jI.prototype,"scrollToDate",null);
_.p([_.RA("iron-overlay-canceled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],jI.prototype,"onEscOrClickingOutside",null);_.p([_.J_({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],jI);
_.X(jI,"ytd-calendar-date-picker",function(){if(VfV!==void 0)return VfV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return VfV=N},{mode:2});var g5N=_.cN("UTC_OFFSET_FORMAT",{utc_offset:(new V4("Z")).format(new Date)}),eWd=(new Date).getTimezoneOffset()*-60,$wz=new Date,hW4,qFS=Db($wz.getTimezoneOffset());hW4=o9z(J8z(qFS,$wz));var wGl=_.cN("LOCAL_TIME_GMT_LABEL",{gmt_text:hW4.replace("+0","+").replace("-0","-").replace(":00","")}),zH=function(){var N=_.z.apply(this,arguments)||this;N.selectedTimeIndex=0;N.selectedTimezoneIndex=0;N.timeOfDayOptions=Dw9;return N};
_.F(zH,_.z);_.v=zH.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var N=Aoa();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=N,this.selectedTimeIndex=0;else{var b=pEU(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},N,{selectedDate:b.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(S){return S.secondsSinceMidnight===b.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.v.onDatePicked=function(N){this.selectedDate=N.detail};
_.v.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.bC(this.hostElement,"ytd-date-time-selection-cancelled")};
_.v.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var N=this.selectedDate;N=new Date(N.year,N.month,N.day);_.bC(this.hostElement,"ytd-date-time-selection-update",Math.floor(N.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+N.getTimezoneOffset()*60))}};
_.v.getTimezoneFormat=function(N){return N.localizedDisplayText?N.localizedDisplayText:_.cN("TIMEZONE_FORMAT",{utc_offset_text:""+N.localizedUtcOffset,city_name:""+N.localizedName})};
_.v.updateSelectedTimeIndexFromBinding=function(N){this.selectedTimeIndex=N.detail.value};
_.v.updateSelectedTimezoneIndexFromBinding=function(N){this.selectedTimezoneIndex=N.detail.value};
_.d0.Object.defineProperties(zH.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=this.data.timezoneOptions;var b={name:"Etc/Unknown",localizedName:_.cN("LOCAL_TIME_LABEL"),localizedUtcOffset:g5N,utcOffsetSec:""+eWd,localizedDisplayText:wGl};N?N.length&&N[0].name!==b.name&&(N[0].localizedDisplayText||(b.localizedDisplayText=""),N.unshift(b)):N=[b];return N}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
zH.prototype.onDateTimeTimezoneChange=zH.prototype.onDateTimeTimezoneChange;zH.prototype.onDatePicked=zH.prototype.onDatePicked;zH.prototype.updateDefaultSelectedValue=zH.prototype.updateDefaultSelectedValue;_.p([_.U(),_.y("design:type",Object)],zH.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],zH.prototype,"calendarConfig",void 0);_.p([_.U(),_.y("design:type",Object)],zH.prototype,"selectedDate",void 0);_.p([_.U(),_.y("design:type",Object)],zH.prototype,"selectedTimeIndex",void 0);
_.p([_.U(),_.y("design:type",Object)],zH.prototype,"selectedTimezoneIndex",void 0);_.p([_.dq("#time-listbox"),_.y("design:type",Object)],zH.prototype,"timeListBox",void 0);_.p([_.dq("#timezone-listbox"),_.y("design:type",Object)],zH.prototype,"timezoneListBox",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zH.prototype,"rendererStamperBehavior",void 0);_.p([_.f("data.timezoneOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],zH.prototype,"timeZones",null);
_.p([_.t_("data","timeZones"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zH.prototype,"updateDefaultSelectedValue",null);_.p([_.f("selectedTimezoneIndex","timeZones"),_.y("design:type",Object),_.y("design:paramtypes",[])],zH.prototype,"selectedTimezone",null);_.p([_.f("selectedTimeIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],zH.prototype,"selectedTime",null);
_.p([_.RA("ytd-calendar-date-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],zH.prototype,"onDatePicked",null);_.p([_.W4("selectedTimezone","selectedTime","selectedDate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zH.prototype,"onDateTimeTimezoneChange",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],zH);
_.X(zH,"ytd-date-time-picker-renderer",function(){if(Ax9!==void 0)return Ax9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Ax9=N},{mode:1});var Nz9;var A$=function(){var N=_.z.apply(this,arguments)||this;N.boundOnTapDismissButton=function(){N.dismissTapHandler()};
N.dismissButtonOverrides={size:"XS"};return N};
_.F(A$,_.z);A$.prototype.configureRendererStamper=function(){return{attachmentPreview:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},dismissButton:{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]","on-tap":"[[boundOnTapDismissButton]]"},params:{forceModernIconButton:!0}}}}}};
A$.prototype.dismissTapHandler=function(){_.bC(this.hostElement,"yt-backstage-attachment-dismissed")};
A$.prototype.computeAttachmentType=function(N){return N?N.backstageImageRenderer?"image":N.videoRenderer?"video":"none":"none"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],A$.prototype,"attachmentPreview",void 0);_.p([_.U(),_.y("design:type",Object)],A$.prototype,"dismissButton",void 0);_.p([_.U(),_.y("design:type",Object)],A$.prototype,"boundOnTapDismissButton",void 0);
_.p([_.U(),_.y("design:type",Object)],A$.prototype,"dismissButtonOverrides",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.y("design:type",String)],A$.prototype,"attachmentType",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],A$);
_.X(A$,"ytd-backstage-dismissable-attachment",function(){if(Nz9!==void 0)return Nz9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Nz9=N},{mode:1});var bVS;var Xj=function(){var N=_.z.apply(this,arguments)||this;N.selectedVideoId=void 0;N.picker=void 0;N.dismissButtonOverrides={size:"XS"};N.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return N};
_.F(Xj,_.z);_.v=Xj.prototype;_.v.onServiceRequestCompleted=function(N){N.stopPropagation()};
_.v.handleAddVideoPreviewAction=function(N){N=this.get("addVideoPreviewAction",N);this.onGetVideoPreviewSuccess(N)};
_.v.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.v.onLaunchVideoPicker=function(N){var b=this,S=_.es(this.get("addVideoLinkAction.title",N)),P=this.get("addVideoLinkAction.onePickHostId",N);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",N);P&&(this.picker||(S=_.MlN(_.WMs(P).setTitle(S).addView(mc9()).addView(dc9()),function(H){b.onPickVideo(H)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",N)||S.addView("youtube"),this.picker=S.build()),this.picker.setVisible(!0))};
_.v.onPickVideo=function(N){if(N)if(N.action==="cancel")_.bC(this.hostElement,"yt-video-link-button-cancel");else if(N.action==="picked"){N=N.docs;if(!N||N.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(N=(N==null?0:N.length)?N[0]:void 0)?N.id:void 0;this.setVideoPreview()}};
_.v.setVideoPreview=function(){var N=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){N.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.v.onGetVideoPreviewSuccess=function(N){if(N&&N.videoPreview&&N.cancelButton)this.videoPreview=N.videoPreview,this.cancelButton=N.cancelButton,_.bC(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.v.onGetVideoPreviewError=function(){this.cancel()};
_.v.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.bC(this.hostElement,"yt-video-link-cancel")};
_.v.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Xj.prototype.onServiceRequestCompleted=Xj.prototype.onServiceRequestCompleted;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Xj.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Xj.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Xj.prototype,"videoPreview",void 0);_.p([_.U(),_.y("design:type",Object)],Xj.prototype,"cancelButton",void 0);_.p([_.U(),_.y("design:type",Object)],Xj.prototype,"getVideoPreviewCommand",void 0);_.p([_.U(),_.y("design:type",Object)],Xj.prototype,"dismissButtonOverrides",void 0);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Xj.prototype,"onServiceRequestCompleted",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Xj);
_.X(Xj,"ytd-backstage-video-link-attachment",function(){if(bVS!==void 0)return bVS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bVS=N},{mode:1});var S94;var PqN;var HVE;var EJ=function(){return _.z.apply(this,arguments)||this};
_.F(EJ,_.z);EJ.prototype.dataChanged=function(){this.active=!1};
EJ.prototype.onTap=function(){_.bC(this.hostElement,"yt-select-emoji-suggestion",this.data)};
EJ.prototype.identity=function(N){return N};
_.d0.Object.defineProperties(EJ.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;if((N=this.data)==null?0:(b=N.image)==null?0:(S=b.thumbnails)==null?0:(P=S[0])==null?0:P.url)return N=this.data.image.thumbnails[0].url,N.startsWith("data:image/svg+xml")?XH(N):_.VK(N)}}});
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],EJ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],EJ.prototype,"active",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EJ.prototype,"dataChanged",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],EJ.prototype,"imageSrc",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],EJ);
_.X(EJ,"ytd-emoji-suggestion",function(){if(HVE!==void 0)return HVE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return HVE=N},{mode:1});var sKV=/.*([:@#].*?)$/,pZ=function(){var N=_.z.apply(this,arguments)||this;N.suggestions=[];N.suggestionIndex=-1;N.JSC$16123_lastSuggestionRange=null;return N};
_.F(pZ,_.z);_.v=pZ.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.v.getSuggestions=function(N){var b=[],S=utZ(this.emojiManager,N.substr(0,3));if(S)for(var P in S)if(P.toLocaleLowerCase().indexOf(N)===0){var H=S[P];if(H&&H.emojiId){H=dD(this.emojiManager,H.emojiId);var K=void 0,C=void 0,G=void 0,a=void 0,R=((K=H)==null?0:K.isCustomEmoji)?(C=H)==null?void 0:(G=C.shortcuts)==null?void 0:G[0]:(a=H)==null?void 0:a.emojiId;K=void 0;b.push({suggestion:{image:(K=H)==null?void 0:K.image,alt:R,text:P}});if(b.length>=64)break}}return b?b.sort(function(n,d){return d.suggestion.text<
n.suggestion.text?-1:d.suggestion.text===n.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(N){_.bC(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16123_lastSuggestionRange,text:N.alt});this.dropdown.opened=!1};
_.v.updateSuggestionsAtCaret=function(N){this.updateSuggestions(N,this.retrieveTextBeforeRange(N))};
_.v.offsetStartOfRangeBy=function(N,b){N.startOffset>=b&&N.setStart(N.startContainer,N.startOffset-b)};
_.v.updateSuggestions=function(N,b){var S=this;this.JSC$16123_lastSuggestionRange&&(this.JSC$16123_lastSuggestionRange.detach(),this.JSC$16123_lastSuggestionRange=null);if((b=sKV.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(N,b.length),this.JSC$16123_lastSuggestionRange=N,(N=this.getSuggestions(b))&&N.length)){this.suggestions=N;_.W_(this,function(){S.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(N.length-1);return}this.dropdown.opened=!1};
_.v.onKeyDown=function(N){if(this.dropdown.opened)switch(N.key){case "Escape":this.dropdown.opened=!1;N.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);N.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);N.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),N.preventDefault()}};
_.v.onKeyUp=function(N,b){switch(N.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(b);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b)}};
_.v.onKeyPress=function(N){N.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),N.preventDefault())};
_.v.changeSuggestionIndex=function(N){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(N+this.suggestions.length)%this.suggestions.length,N=this.dropdownContent.children[this.suggestionIndex],N.active=!0,this.dropdownContent.scrollTop=N.offsetTop)};
_.v.retrieveTextBeforeRange=function(N){var b=N.startContainer;return b&&b.nodeType===Node.TEXT_NODE?b.textContent.substr(0,N.startOffset):""};
pZ.prototype.onKeyPress=pZ.prototype.onKeyPress;pZ.prototype.onKeyUp=pZ.prototype.onKeyUp;pZ.prototype.onKeyDown=pZ.prototype.onKeyDown;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Array)],pZ.prototype,"suggestions",void 0);_.p([_.U(),_.y("design:type",_.Wc)],pZ.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Number)],pZ.prototype,"verticalSuggestionsOffset",void 0);
_.p([_.dq("#dropdown"),_.y("design:type",Object)],pZ.prototype,"dropdown",void 0);_.p([_.dq("#dropdown-content"),_.y("design:type",HTMLDivElement)],pZ.prototype,"dropdownContent",void 0);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],pZ.prototype,"onKeyDown",null);_.p([_.RA("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent,Range]),_.y("design:returntype")],pZ.prototype,"onKeyUp",null);
_.p([_.RA("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],pZ.prototype,"onKeyPress",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-emoji-input"})],pZ);
_.X(pZ,"ytd-emoji-input",function(){if(PqN!==void 0)return PqN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PqN=N},{mode:2});var KfO;var Y8=function(){var N=_.z.apply(this,arguments)||this;N.hasMaxOptions=!1;return N};
_.F(Y8,_.z);_.v=Y8.prototype;_.v.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.v.setPrefilledChoices=function(N){var b=this;this.set("pollOptions",[]);var S;for(S=0;S<Math.min(N.length,this.data.maxPollOptions);S++)this.push("pollOptions",N[S].substring(0,this.data.maxPollOptionChars));for(;S<this.data.minPollOptions;S++)this.push("pollOptions","");this.hasMaxOptions=S>=this.data.maxPollOptions;_.W_(this,function(){for(var P=b.pollOptions,H=_.H4(b.hostElement).querySelectorAll(".poll-option-input"),K=0;K<H.length;K++)H[K].value=P[K]})};
_.v.focusChanged=function(){_.rq(this.hostElement)};
_.v.onInput=function(){var N=this;_.Yq(this,"onInput",function(){N.isValid()?_.bC(N.hostElement,"yt-commentbox-post-enable"):_.bC(N.hostElement,"yt-commentbox-post-disable")},300)};
_.v.setPollOptions=function(){var N=[],b,S=((b=this.data)==null?0:b.minPollOptions)?this.data.minPollOptions:0;for(b=0;b<S;b++)N.push("");return N};
_.v.addPollOption=function(){var N=this;_.bC(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Dj.addLowPriorityJob(function(){var b;(b=_.H4(N.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||b.focus()})};
_.v.onRemovePollOption=function(N){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.bC(this.hostElement,"yt-poll-attachment-dismiss")):(N=this.repeat.indexForElement(N.target.parentNode),N!==null&&(this.splice("pollOptions",N,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.bC(this.hostElement,"yt-commentbox-post-enable"))))};
_.v.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.v.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var N=0,b=this.pollOptions.length;N<b;N++)if(this.pollOptions[N].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.v.getPollOptions=function(){return this.pollOptions};
_.v.setPollOptionsFromInputs=function(){for(var N=_.H4(this.hostElement).querySelectorAll(".poll-option-input"),b=0;b<N.length;b++)this.pollOptions[b]=N[b].value.trim()};
_.v.clearPollOptions=function(){var N=_.H4(this.hostElement).querySelectorAll(".poll-option-input");N=_.O(N);for(var b=N.next();!b.done;b=N.next())b.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.v.getSimpleString=function(N){return _.es(N)};
_.v.updateValueFromBinding=function(N){if(N.target&&this.pollOptions){var b=Array.from(_.H4(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(N.target);if(b>=0){var S;this.pollOptions[b]=(S=N.detail.value)!=null?S:"";this.notifyPath("pollOptions."+b)}}};
Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Y8.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],Y8.prototype,"pollOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Y8.prototype,"hasMaxOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Y8.prototype,"enableCreationBox",void 0);
_.p([_.dq("#repeat"),_.y("design:type",Qs)],Y8.prototype,"repeat",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y8.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Y8);
_.X(Y8,"ytd-poll-attachment",function(){if(KfO!==void 0)return KfO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KfO=N},{mode:2});var vVZ;var OVE;var CqN;var Gv9;var yV=function(){return _.z.apply(this,arguments)||this};
_.F(yV,_.z);_.d0.Object.defineProperties(yV.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yV.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.y("design:type",Object)],yV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],yV.prototype,"focused",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("focused"),_.y("design:type",Object),_.y("design:paramtypes",[])],yV.prototype,"ariaSelected",null);_.p([_.J_({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],yV);
_.X(yV,"yt-user-mention-suggestion-renderer",function(){if(Gv9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;CqN===void 0&&(CqN=document.createElement("template"));var P=CqN;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Gv9=N}N=Gv9;return N},{mode:2});var rXb;var cXb;var Ia=function(){var N=_.z.apply(this,arguments)||this;N.focusedSuggestionIndex=-1;return N};
_.F(Ia,_.z);_.v=Ia.prototype;_.v.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.v.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.v.setFocusedSuggestionIndex=function(N){!this.data||!this.data.suggestions||N<0||N>=this.data.suggestions.length||(this.focusedSuggestionIndex=N,N=this.getSuggestionId(N),this._setFocusedSuggestionId(N))};
_.v.advanceSuggestion=function(N){this.focusedSuggestionIndex===-1||N!==-1&&N!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+N),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.v.ensureSuggestionVisible=function(N){N=this.getSuggestionId(N);N=_.H4(this.hostElement).querySelector("[id="+N+"]");N!=null&&(N.offsetTop<this.hostElement.scrollTop?N.scrollIntoView(!0):N.offsetTop+N.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&N.scrollIntoView(!1))};
_.v.getSuggestionId=function(N){return"user-mention-suggestion-"+N};
_.v.onSuggestionTap=function(N){var b=_.t(N.model.item,UJS);this.ytRendererBehavior.logExplicitClick(b);_.bC(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:N.model.index})};
_.v.onSuggestionMouseMove=function(N){N.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(N.model.index)};
_.v.isSuggestionFocused=function(N,b){return N===b};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("focused-suggestion-id-changed",this.focusedSuggestionId))};
Ia.prototype.focusedSuggestionIdChangedForBinding=Ia.prototype.focusedSuggestionIdChangedForBinding;Ia.prototype.onDomChange=Ia.prototype.onDomChange;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ia.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ia.prototype,"focusedSuggestionIndex",void 0);_.p([_.U({readOnly:!0}),_.y("design:type",String)],Ia.prototype,"focusedSuggestionId",void 0);
_.p([_.RA("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ia.prototype,"onDomChange",null);_.p([_.W4("focusedSuggestionId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ia.prototype,"focusedSuggestionIdChangedForBinding",null);_.p([_.J_({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Ia);
_.X(Ia,"yt-user-mention-suggestions-dropdown",function(){if(cXb===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;rXb===void 0&&(rXb=document.createElement("template"));var P=rXb;S.call(b,P.content.cloneNode(!0),N.content.firstChild);cXb=N}N=cXb;return N},{mode:2});var D9=function(){var N=_.z.apply(this,arguments)||this;N.suggestionsResponse=null;N.activeMention=null;N.selectionChangeListener=N.onSelectionChange.bind(N);N.handlesEnabled=_.T("enable_handles_in_mention_suggest_posts");N.handlesInMentionSuggestionsEnabled=_.T("handles_in_mention_suggest_posts");N.zeroPrefixMentionSuggestionEnabled=_.T("enable_zero_prefix_mention_suggestion_web");N.pendingQuery=null;N.flowNonce=null;return N};
_.F(D9,_.z);_.v=D9.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.v.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.v.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.v.hasSuggestions=function(N){return!!(N&&N.suggestions&&N.suggestions.length>0)};
_.v.onInput=function(){var N=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),S=this.activeMention.JSC$11580_getText().slice(-1)===" ",P=this.activeMention.JSC$11580_getText().slice(-2,-1)===" ",H="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11580_getText().slice(-2,
-1))>=0;H=this.zeroPrefixMentionSuggestionEnabled&&H;if(this.activeMention.isCollapsed()||(b||P||H)&&S)this.cancelActiveMention();else{var K=this.activeMention.JSC$11580_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Yq(this,"requestSuggestions",function(){N.requestSuggestions(K)},100)}}}};
_.v.onServiceRequestSent=function(N){N.stopPropagation()};
_.v.onServiceRequestCompleted=function(N){N.stopPropagation();N=N.detail.data;N.query&&(!this.pendingQuery||this.pendingQuery!==N.query)||!this.zeroPrefixMentionSuggestionEnabled&&N.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=N,this.hasSuggestions(N)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.v.onServiceRequestError=function(N){N.stopPropagation()};
_.v.onUserMentionSuggestionSelected=function(N){this.selectSuggestion(N.detail.data,N.detail.index)};
_.v.onSelectionChange=function(){if(this.activeMention){var N=_.Co(),b=this.activeMention.JSC$11580_containsRange(N);N=N&&this.containsHelper(this.dropdown,N.getContainer());b||N||this.cancelActiveMention()}};
_.v.containsHelper=function(N,b){var S;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)===!0)return N.contains(b);for(;b;){if(b===N)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1};
_.v.maybeStartSuggest=function(){var N=_.Co();if(N&&N.isCollapsed()){var b=N.JSC$11580_getStartNode(),S=N.JSC$11580_getStartOffset();if(b instanceof Text&&!(S<1)){var P=b.textContent;!(P=P&&P.charAt(S-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(P)<0||(this.activeMention=_.bG(b,S-1,N.JSC$11580_getEndNode(),N.JSC$11580_getEndOffset()),this.flowNonce=L6(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.v.updateActiveMention=function(){if(this.activeMention){var N=_.Co();N&&N.isCollapsed()&&(this.activeMention=_.bG(this.activeMention.JSC$11580_getStartNode(),this.activeMention.JSC$11580_getStartOffset(),N.JSC$11580_getEndNode(),N.JSC$11580_getEndOffset()))}};
_.v.requestSuggestions=function(N){if(this.activeMention){var b={suggestions_query:N};this.pendingQuery=N;_.HN(this.hostElement,[this.suggestionsEndpoint,b])}};
_.v.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.v.focusPreviousSuggestion=function(N){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),N.preventDefault())};
_.v.focusNextSuggestion=function(N){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),N.preventDefault())};
_.v.selectFocusedSuggestion=function(N){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.t(b,UJS)&&(this.selectSuggestion(_.t(b,UJS),this.dropdown.focusedSuggestionIndex),N.preventDefault())}};
_.v.selectSuggestion=function(N,b){if(N){var S=this.activeMention;if(S){var P=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&N.handle?_.IS(P,"\u00a0\u2068@"+N.handle+"\u2069\u00a0"):this.handlesEnabled?_.IS(P,"\u00a0"+N.displayName+"\u00a0"):_.IS(P,"\u00a0@"+N.displayName+"\u00a0");qj(P,"/channel/"+N.channelId);P.classList.add("yt-formatted-string","yt-simple-endpoint");P.setAttribute("spellcheck","false");S.isCollapsed()||S.JSC$11580_removeContents();S.insertNode(P,!0);N=document.createTextNode(" ");
P.parentNode.insertBefore(N,P.nextSibling);window.getSelection().collapse(N,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var H;b.suggestionSelected.isZeroPrefix=((H=this.suggestionsResponse)==null?void 0:H.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();_.bC(this.hostElement,"yt-mention-inserted")}}};
_.v.getPositionTarget=function(N){return N&&N.getBrowserRangeObject()};
_.v.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.v.onFocusedSuggestionIdChanged=function(N){var b=_.l9L(this.hostElement)[0];b&&(N.detail.value?b.setAttribute("aria-activedescendant",N.detail.value):b.removeAttribute("aria-activedescendant"))};
_.v.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.v.logGELEvent=function(N,b){N={eventType:N,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(N=Object.assign(N,b));_.Dn("userMentionAutoCompleteBoxEvent",N)};
D9.prototype.onDomChange=D9.prototype.onDomChange;D9.prototype.onUserMentionSuggestionSelected=D9.prototype.onUserMentionSuggestionSelected;D9.prototype.onServiceRequestError=D9.prototype.onServiceRequestError;D9.prototype.onServiceRequestCompleted=D9.prototype.onServiceRequestCompleted;D9.prototype.onServiceRequestSent=D9.prototype.onServiceRequestSent;D9.prototype.onInput=D9.prototype.onInput;_.p([_.L(_.XX),_.y("design:type",Object)],D9.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],D9.prototype,"suggestionsEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],D9.prototype,"suggestionsResponse",void 0);_.p([_.U(),_.y("design:type",Object)],D9.prototype,"activeMention",void 0);_.p([_.dq("#dropdown"),_.y("design:type",Object)],D9.prototype,"dropdown",void 0);_.p([_.dq("#iron-dropdown"),_.y("design:type",Object)],D9.prototype,"ironDropdown",void 0);
_.p([_.RA("input"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],D9.prototype,"onInput",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],D9.prototype,"onServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],D9.prototype,"onServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],D9.prototype,"onServiceRequestError",null);_.p([_.RA("yt-user-mention-suggestion-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],D9.prototype,"onUserMentionSuggestionSelected",null);
_.p([_.RA("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],D9.prototype,"onDomChange",null);_.p([_.J_({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],D9);
_.X(D9,"yt-user-mention-autosuggest-input",function(){if(OVE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vVZ===void 0&&(vVZ=document.createElement("template"));var P=vVZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);OVE=N}N=OVE;return N},{mode:2});var VV=null;
_.uI({is:"ytd-commentbox",_template:function(){if(S94!==void 0)return S94;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return S94=N},
behaviors:[_.P69.YtHostElementBehavior,_.XX,_.pG.YtActionHandlerBehavior,_.r2.YtComponentBehavior,_.un.YtRendererstamperBehavior,_.V5N.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(N,b){return _.GL(N.entities,"aadcGuidelinesStateEntityPayload",b)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(N,b){return _.GL(N.entities,"commentboxStateEntity",b)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.mL}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.T("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.T("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.aA(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(N){this.fire(N?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(N){this.set("submitButtonDisabled",void 0);this.clear();N&&this.computeIsEmojiButtonDisplayed_(N)&&(N=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&N.updateEmojiCategories()},
observePrefilledImage_:function(N,b,S){this.isValidPrefilledImage_(N,b,S)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(N,b){this.isValidPrefilledVideo_(N,b)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(N){N&&N.pollData&&N.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(N.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.oo();this.focus()},
detached:function(){document.removeEventListener("tap",_.aA(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(N){N=N.detail;N=N.isCustomEmoji?N.shortcuts[0]:N.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,N);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var N=_.Co();if(N){N=N.getBrowserRangeObject();for(var b=N.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return N;b=b.parentNode}}N=this.getEditableTextArea_();N=_.NP(N,N.childNodes.length);N.select();return N.getBrowserRangeObject()},
insertTextWithEmojis_:function(N,b,S){(b=this.emojiManager.createDocumentFragment(b,!0,!1,S===void 0?!0:S))&&b.childNodes.length!==0&&(N.collapsed||N.deleteContents(),S=b.lastChild,N.insertNode(b),_.w79(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var N=_.Co();if(N){var b=N.JSC$11580_getStartNode(),S=N.JSC$11580_getEndNode();if(yoa(b)&&yoa(S)){var P=N.JSC$11580_getStartOffset(),H;if(_.a9&&b.nodeType===Node.ELEMENT_NODE&&(H=_.gw9(b)))_.NP(H,0).select();else{H=Ko(b)?b:_.wY(b,Ko);var K=Ko(S)?S:_.wY(S,Ko);if(H||K)if(N.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){N=!0;P===b.length&&(N=!1);if(VV==="end"||VV==="right")N=!1;b=b.parentNode;N=[].concat(_.IX(b.parentNode.childNodes)).indexOf(b)+(N?0:1);_.NP(b.parentNode,
N).select()}}else H?H.previousSibling&&H.previousSibling.length>0?_.bG(S,N.JSC$11580_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),H.parentNode.insertBefore(b,H),_.bG(S,N.JSC$11580_getEndOffset(),b,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.bG(b,N.JSC$11580_getStartOffset(),K.nextSibling,1).select():(S=document.createTextNode("\u200b"),K.parentNode.insertBefore(S,K.nextSibling),_.bG(b,N.JSC$11580_getStartOffset(),S,S.length).select()));
VV=null}}else VV=null}else VV=null},
leftKeyPressed_:function(){VV="left"},
rightKeyPressed_:function(){VV="right"},
endKeyPressed_:function(){VV="end"},
maybeDeleteChip_:function(){var N=$Aa(!0);if(N){var b=_.Co(),S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();_.ee(S,b,N,N.childNodes.length).select()}},
maybeBackspaceChip_:function(){var N=$Aa(!1);if(N){var b=_.Co(),S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();_.ee(S,b,N,0).select()}},
maybeBackspaceChipWordMode_:function(N){var b=_.Co();if(b.isCollapsed()){var S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();var P=hXe(S,b,!0);P&&(_.ee(S,b,P,0).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(N){var b=_.Co();if(b.isCollapsed()){var S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();var P=hXe(S,b,!1);P&&(_.ee(S,b,P,P.childNodes.length).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
onTap_:function(N){if(!N.defaultPrevented&&(N.currentTarget.tagName==="YTD-COMMENTBOX"&&Ko(N.target)&&N.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),S=this.$$("#emoji-button"),P=this.getEditableTextArea_();if((N=N.path?N.path:N.composedPath&&N.composedPath())&&!N.includes(b)&&!N.includes(P)&&!N.includes(S))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(N,b,S){return N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&S!==void 0&&S.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(N,b){return N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId},
isValidPrefilledAttachment_:function(N,b,S){return this.isValidPrefilledImage_(N,b,S)||this.isValidPrefilledVideo_(N,S)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.T("enable_multi_image_post_creation")){var N=this.$$("ytd-backstage-multi-image-select-renderer");N&&N.hasImages()&&N.cancel()}else(N=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&N.cancel();(N=this.$["poll-attachment"])&&this.hasPoll_&&N.clearPollOptions();(N=this.$["image-poll-attachment"])&&this.hasImagePoll_&&N.resetPollOptions();(N=this.$["quiz-attachment"])&&this.hasQuiz_&&N.resetQuizOptions();
(N=this.$["video-link-attachment"])&&this.hasVideo_&&N.cancel();(N=this.$["access-restrictions-selector"].firstElementChild)&&N.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.H4(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.H4(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(N,b){N=DA_(N,this.emojiManager,b).cloneNode(!0);for(b=N.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var S=_.A6();_.Snz(S,b);b=S.nextSibling;break;case "DIV":(S=b.lastChild)&&b.nextSibling&&_.Yv(_.A6(),S);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.pL(_.A6(),b);S&&S.nodeName==="BR"&&_.Zg(S);S=b;b.hasChildNodes()?(b=b.firstChild,
_.Pzc(S)):(b=b.nextSibling,_.Zg(S));break;default:b=b.nextSibling}return q3s(N)},
onAddImageError_:function(N){N.stopPropagation();this.errorMessage_=_.gy(N.detail)},
setTextAreaValue_:function(N){N||(N="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof N==="string"&&(N={runs:[{text:N}]});b.text=N},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();VV=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var N=this.getEditableTextArea_();N&&(_.NP(N,N.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Vg("HTML_DIR")==="rtl"){var N=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";N.setAttribute("dir",b)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var N;return G$u((N=this.$["quiz-attachment"])==null?void 0:N.getExplanationText())||G$u(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var N=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(N=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(N,!0);this.updateCharCount_();this.setSubmitButton_();N=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=N.scrollHeight>N.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var N=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:N})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(N){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(N)},
onPasteEmoji_:function(N){N.preventDefault();N.stopImmediatePropagation();N=N.clipboardData.getData("text/plain");this.insertText_(N,!1,!1)},
insertText_:function(N,b,S){b=b===void 0?!1:b;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&N){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(b&&this.emojiInput.offsetStartOfRangeBy(P,N.length),this.insertTextWithEmojis_(P,N,S),Iee(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,N),this.updateSuggestionOffset_(P)))}},
setSubmitButton_:function(){if(this.data){var N=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(N||b){var S=this.getTextAreaValue().trim();b=S===this.previousText_;S=!S||this.aboveCharLimit_;N&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=this.aboveCharLimit_);this.submitButtonDisabled=
b||S||!this.getTextLength();N&&_.T("enable_post_scheduling")&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||S)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.es,computeCreationBoxClass_:function(N){return N?"focused":"not-focused"},
computeFooterMessageClass_:function(N,b){return b?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(N,b){return b?b:N},
computeFooterMessageHidden_:function(N,b){return!b&&!N},
computePlaceholderText_:function(N,b,S){return(S==="video"||S==="image")&&(N==null?0:N.prefilledPlaceholderText)?N==null?void 0:N.prefilledPlaceholderText:b==="poll"||b==="image-poll"?N==null?void 0:N.pollPostPlaceholderText:b==="quiz"?N==null?void 0:N.quizPostPlaceholderText:b==="image"?N==null?void 0:N.imagePostPlaceholderText:N==null?void 0:N.placeholderText},
computeHideAttachmentButtons_:function(N,b,S,P){return N===void 0?!1:P&&this.getSimpleString(P)===this.getSimpleString(N.rateLimitErrorMessage)?!0:b!=="none"||S!=="none"||!N.videoLinkButton&&!N.pollButton&&!N.imagePollButton&&!N.quizButton&&!N.imageButton},
computeHideDismissableAttachment_:function(N){return N!=="image"&&N!=="video"},
computeHasVideo_:function(N){return N==="video"},
computeHasImage_:function(N){return N==="image"},
computeHasPoll_:function(N){return N==="poll"},
computeHasImagePoll_:function(N){return N==="image-poll"},
computeHasQuiz_:function(N){return N==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(N){return N&&N.backstageAttachment?N.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!N.backstageAttachment.quizRenderer&&!N.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(N){if(this.isValidPrefilledAttachment_(N.purpose,N.prefilledImageData,N.backstageAttachment))return N.backstageAttachment},
computeEditAttachment_:function(N){if(this.computePrefilledContent_(N)===void 0)return N.backstageAttachment},
computeAuthorThumbnailDimension_:function(N,b){return N&&!b?24:40},
computeImageUploadEndpoint_:function(N){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",N)},
computeRateLimitErrorCommands_:function(N){var b,S;return N==null?void 0:(b=N.advancedTierFeatures)==null?void 0:(S=b.rateLimit)==null?void 0:S.rateLimitCommands},
computeIsBackstageComment_:function(N){return!(!N||N!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(N){return this.get("submitButton.buttonRenderer.serviceEndpoint",N)||this.get("replyButton.buttonRenderer.serviceEndpoint",N)||this.get("postButton.buttonRenderer.serviceEndpoint",N)},
computeSubmitButtonOverride:function(){if(_.T("web_modern_buttons")){var N,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((N=this.data)==null?0:(b=N.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.T("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(N,b){N=this.get("submitButton.buttonRenderer",N)||this.get("replyButton.buttonRenderer",N)||this.get("postButton.buttonRenderer",N);b&&(N=b);N&&(N=Object.assign({},N),N.serviceEndpoint=void 0,N.isDisabled=this.submitButtonDisabled);return N},
computeHasExternalLinksAccess_:function(N){if(_.T("enable_rfa_external_links")){var b,S,P;return(P=N==null?void 0:(b=N.advancedTierFeatures)==null?void 0:(S=b.externalLinks)==null?void 0:S.allowExternalLinks)!=null?P:!0}return!0},
computeIsEmojiButtonDisplayed_:function(N){return N.emojiButton&&N.emojiPicker&&N.emojiPicker.emojiPickerRenderer&&N.emojiPicker.emojiPickerRenderer.categories?N.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(N){return N.charLimit?N.charLimit:null},
computeDropdownSchedulingPanel_:function(N,b){if(N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b},
computeInlineSchedulingPanel_:function(N,b){if(N==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b},
computeHideAuthorThumbnail_:function(N,b){return N||this.computeUseIdentityChip_(b)},
computeHideIdentityChipRenderer_:function(N,b){return N||!this.computeUseIdentityChip_(b)},
computeUseIdentityChip_:function(N){return!!N&&!!N.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(N){var b,S,P,H;(N==null?0:(b=N.detail)==null?0:(S=b.endpoint)==null?0:S.ypcGetOffersEndpoint)||(N==null?0:(P=N.detail)==null?0:(H=P.endpoint)==null?0:H.ypcOffersEndpoint)?(N.stopPropagation(),_.HN(this,[N.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",N)&&(N.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(N){this.addedAttachment="video";this.selectedVideoId_=N.detail.videoId},
commentboxStateEntityChanged_:function(N){var b=this;(N==null?void 0:N.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(N==null?void 0:N.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){b.focus()})},
onYtServiceRequestSent_:function(N,b){if(b.actions)for(N=_.O(b.actions),b=N.next();!b.done;b=N.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(N){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",N),S,P,H,K=N==null?void 0:(S=N.detail)==null?void 0:(P=S.data)==null?void 0:(H=P.actionResult)==null?void 0:H.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(K){var C;this.dismissData_=N==null?void 0:(C=N.detail)==null?void 0:C.data;this.commentboxStateKey_=K}else{this.clear();var G;this.fire("yt-commentbox-dismiss",N==null?void 0:(G=N.detail)==
null?void 0:G.data)}},
onYtServiceRequestError_:function(N){N.stopPropagation();this.isLoading=!1;var b,S;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",N)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(N=this.get("detail.error.message",N))?this.errorMessage_=this.data.errorMessage||_.gy(N):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(N){if(_.T("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var b=_.O(this.rateLimitErrorCommands),S=b.next();!S.done;S=b.next())if(S=S.value,S.errorLabel===N){_.c7(S.command,this.hostElement);return}this.errorMessage_=_.gy(N)},
submitIfNotBackstagePost_:function(N){if(!this.isBackstagePost)this.onSubmit_(N)},
onSubmit_:function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u;return _.r(function(J){switch(J.nextAddress){case 1:N.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return J.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),J.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),J.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&_.T("enable_multi_image_post_creation"))){J.jumpTo(2);break}S=b.$$("ytd-backstage-multi-image-select-renderer");
return J.yield(S.getAllUploadStatuses(),3);case 3:P=J.yieldResult;if(!P)return J.return();H=_.O(P);for(K=H.next();!K.done;K=H.next())if(C=K.value,C.encryptedBlobId===void 0)return b.isLoading=!1,a=G=void 0,b.errorMessage_=(a=(G=b.imageUploadEndpoint_)==null?void 0:G.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?a:null,J.return();return J.return(b.submitForm_(void 0,void 0,void 0,void 0,S.images,b.taggedVideoId_));case 2:if(!b.hasImagePoll_||!b.$["image-poll-attachment"]){J.jumpTo(4);
break}return J.yield(b.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:R=J.yieldResult;if(!R)return J.return();n=_.O(R);for(d=n.next();!d.done;d=n.next())if(m=d.value,!m.encryptedBlobId)return b.isLoading=!1,k=void 0,b.errorMessage_=(k=b.data.errorMessage)!=null?k:null,J.return();case 4:l=(M=b.$$("ytd-backstage-image-select-renderer"))&&M.uploadPromise(),u=b.getSharedPostId_(),l?l.then(function(){b.submitForm_.apply(b,_.IX(_.$I.apply(0,arguments)))}).catch(function(Z){b.isLoading=!1;
b.errorMessage_=_.gy(Z.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):u?b.submitForm_(void 0,void 0,u):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(),
_.Zd(J)}})},
openSchedulingPanel:function(N){N&&N.scheduleButton&&N.scheduleButton.buttonRenderer&&(this.scheduleButton_=N.scheduleButton.buttonRenderer);N&&N.dateTimePicker&&this.set("data.schedulingDateTimePicker",N.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(N){N.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(N){N.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(N){N.stopPropagation();N.detail.alertMessage&&(this.alertMessage_=N.detail.alertMessage)},
onImageSelected_:function(N){N.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(N){N.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(N){N.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(N.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(N){N.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(N){var b=this.$["video-link-attachment"];b&&b.onLaunchVideoPicker(N)},
onAttachmentDismiss_:function(N){N.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.T("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.T("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var N;if(this.addedAttachment==="image-poll"&&((N=this.$["image-poll-attachment"])==null||!N.isValid()))return!1;var b;if(this.addedAttachment==="quiz"&&((b=this.$["quiz-attachment"])==null||!b.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;N=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(N=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")N=!0;return N||!!this.getTextAreaValue().trim()},
submitForm_:function(N,b,S,P,H,K){var C=this.getTextAreaValue().trim(),G={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&C===this.previousText_&&(C=void 0);C!==void 0&&(G.comment_text=C);this.isLoading=!0;K!=void 0&&(G.tagged_video_id=K);N?(G.image_blob_id=N,this.imagePreviewCoordinates_&&(G.image_preview_coordinates=this.imagePreviewCoordinates_)):b?G.attached_video_id=b:S?G.shared_post_id=S:H&&H.length>0&&(G.images_data=H.map(function(a){return{encryptedBlobId:a.encryptedBlobId,
previewCoordinates:a.previewCoordinates}}));
P&&(G.source_video_id=P);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(G.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(G.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(G.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(G.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.T("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(G.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.HN(this,[this.serviceEndpoint,G])},
onIsInputFocusChanged_:function(N,b){N?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(N){var b=this.getEditableTextArea_();[].concat(_.IX(N.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(P){b.appendChild(document.createTextNode(P))})});
N.preventDefault()},
preventDefault_:function(N){N.preventDefault()},
onSuggestionInsert_:function(N){this.insertTextWithEmojis_(N.detail.range,N.detail.text)},
onEmojiSuggestionClick_:function(N){this.emojiInput.insertSuggestion(N.detail)},
computeSubmitButtonClass_:function(N,b){return!b||N?"":"with-options"},
updateSuggestionOffset_:function(N){if(this.emojiInput&&_.H4(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,S=N.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-S)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;N=N.getBoundingClientRect().left-b;_.H4(this.emojiInput).querySelector("#dropdown").style.marginLeft=N+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(N){if(_.T("enable_post_scheduling")&&this.data&&this.data.purpose){N=N.detail;if(Math.floor(Date.now()/1E3)>=N)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==N?this.scheduledPublishTimeSec_=N:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=N;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var N=["image-button","image-poll-button","poll-button","quiz-button"];_.T("auto_convert_posts_video_tag")||N.push("video-link-button");return N},
getButtonRenderer:function(N,b){if(N)switch(b){case "video-link-button":var S;return((S=N.videoLinkButton)==null?void 0:S.buttonRenderer)||void 0;case "image-button":var P;return((P=N.imageButton)==null?void 0:P.buttonRenderer)||void 0;case "poll-button":var H;return((H=N.pollButton)==null?void 0:H.buttonRenderer)||void 0;case "image-poll-button":var K;return((K=N.imagePollButton)==null?void 0:K.buttonRenderer)||void 0;case "quiz-button":var C;return((C=N.quizButton)==null?void 0:C.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var N;return(N=this.data)==null||!N.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var N,b;return!((N=this.data)==null||!N.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Vg("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var N;((N=this.data)==null?0:N.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.h2("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(N){N.clickTrackingParams&&_.dG().clickCommand(N);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.St(this,"yt-close-popup-action")},
onHideIdentityChip:function(N){var b;this.set("data.placeholderText",(b=N.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var gS=function(){var N=_.z.apply(this,arguments)||this;N.isOpen=!1;N.modern=_.T("web_modern_buttons");N.roundedContainer=!0;N.dropdownButtonOverride=_.T("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;N.inPopupContainer=!1;N.isCommentboxLoading=!1;var b=["image-button","image-poll-button","poll-button"];_.T("enable_quiz_creation")&&b.push("quiz-button");_.T("auto_convert_posts_video_tag")||b.push("video-link-button");N.attachmentButtonIds=b;N.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return N};
_.F(gS,_.z);_.v=gS.prototype;_.v.computeButtonOverride=function(){var N;return((N=this.data)==null?0:N.postOptionsMenu)&&_.T("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.v.configureRendererStamper=function(){var N={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.T("auto_convert_posts_video_tag")||(N["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return N};
_.v.ready=function(){var N=this,b=_.H4(this.hostElement).querySelector("#placeholder-area"),S=function(P){N.onOpen(P)};
b.addEventListener("tap",S);b.addEventListener("keypress",S)};
_.v.showButtonEduTooltip=function(){var N,b,S,P,H,K,C;if(_.T("enable_quiz_creation")&&((N=this.data)==null?0:(b=N.quizButton)==null?0:(S=b.buttonRenderer)==null?0:(P=S.hint)==null?0:(H=P.hintRenderer)==null?0:(K=H.content)==null?0:(C=K.bubbleHintRenderer)==null?0:C.text)&&(_.zs.getInstance(),N=AN(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(N==null?void 0:
N.length)>0)){this.ytComponentBehavior.resolveCommand(N[0],{form:{element:this.quizButton}});return}var G;if((G=this.data)==null?0:G.imagePollButtonTooltip)if(_.zs.getInstance(),G=AN(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(G==null?void 0:G.length)>0){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.imagePollButton}});return}var a;_.T("enable_multi_image_post_creation")&&
((a=this.data)==null?0:a.multiImageButtonTooltip)&&(_.zs.getInstance(),a=AN(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0&&this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.imageButton}}))};
_.v.onCreatePollAction=function(N){_.t(N,H29)&&(this.JSC$16178_commentbox.addedAttachment="poll",this.openDialog())};
_.v.onAddVideoLinkAction=function(N){if(_.t(N,NKE))this.JSC$16178_commentbox.onAddVideoLink(N)};
_.v.onShowSchedulingPanelCommand=function(N){(N=_.t(N,Qjk))&&this.openSchedulingPanel(N)};
_.v.onCreateImagePollCommand=function(N){_.t(N,xZz)&&(this.JSC$16178_commentbox.openImagePollComponent(),this.openDialog())};
_.v.onCreateQuizCommand=function(N){_.t(N,ogZ)&&(this.JSC$16178_commentbox.openQuizComponent(),this.openDialog())};
_.v.openSchedulingPanel=function(N){_.T("enable_post_scheduling")&&(this.openDialog(),this.JSC$16178_commentbox.openSchedulingPanel(N))};
_.v.onCreateCommentAction=function(N){this.get("createCommentAction.contents",N)&&(this.JSC$16178_commentbox.clear(),this.closeDialog())};
_.v.onOpen=function(N){N instanceof KeyboardEvent&&N.type==="keypress"&&N.keyCode!==13&&N.keyCode!==32||(this.data.prepareAccountEndpoint?_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.closeDialog()};
_.v.onYtCommentboxLoadingStart=function(N){N.stopPropagation();this.isCommentboxLoading=!0};
_.v.onYtCommentboxLoadingEnd=function(N){N.stopPropagation();this.isCommentboxLoading=!1};
_.v.onYtVideoLinkButtonCancel=function(N){N.stopPropagation();this.onOpen(N)};
_.v.onYtVideoLinkSelected=function(N){N.stopPropagation();this.onOpen(N)};
_.v.onIronSelect=function(N){N.stopPropagation();N.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=N.detail.item.value&&(this.accessRestriction?(this.accessRestriction=N.detail.item.value,this.onOpen(N)):this.accessRestriction=N.detail.item.value)};
_.v.onYtNavigate=function(N){this.get("detail.endpoint.backstageImageUploadEndpoint",N)&&(this.JSC$16178_commentbox.addedAttachment="image",this.JSC$16178_commentbox.submitButtonDisabled=!0,this.onOpen(N))};
_.v.onRequestSent=function(N){for(var b=_.O(N.detail),S=b.next();!S.done;S=b.next())_.t(S.value,py9)&&(this.JSC$16178_commentbox.addedAttachment="image",this.JSC$16178_commentbox.submitButtonDisabled=!0,this.onOpen(N))};
_.v.openDialog=function(){var N;(N=this.data)!=null&&N.isIneligibleForCommunityPagePostCreation||(this.JSC$16178_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16178_commentbox.focus())};
_.v.onPopupClosed=function(){_.zs.getInstance()};
_.v.computeCreationDisabled=function(N){return!!N};
_.v.computeIsCreationDialog=function(N){return!!N&&N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.v.computeDisabledPostButton=function(N){if(!N)return null;N.isDisabled=!0;return N};
_.v.computeIsCreationDialogWithHeader=function(N){return!this.inPopupContainer&&!!N&&!!N.authorText&&N.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.v.computeIsHeaderHidden=function(N,b){return!N||b};
_.v.computeDropdownRendererClasses=function(N){return N?["text-secondary-style"]:[]};
_.v.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var N=_.H4(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;N&&N.reset()};
gS.prototype.onPopupClosed=gS.prototype.onPopupClosed;gS.prototype.onRequestSent=gS.prototype.onRequestSent;gS.prototype.onYtNavigate=gS.prototype.onYtNavigate;gS.prototype.onIronSelect=gS.prototype.onIronSelect;gS.prototype.onYtVideoLinkSelected=gS.prototype.onYtVideoLinkSelected;gS.prototype.onYtVideoLinkButtonCancel=gS.prototype.onYtVideoLinkButtonCancel;gS.prototype.onYtCommentboxLoadingEnd=gS.prototype.onYtCommentboxLoadingEnd;gS.prototype.onYtCommentboxLoadingStart=gS.prototype.onYtCommentboxLoadingStart;
gS.prototype.onYtCommentboxDismiss=gS.prototype.onYtCommentboxDismiss;gS.prototype.showButtonEduTooltip=gS.prototype.showButtonEduTooltip;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gS.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],gS.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gS.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gS.prototype,"isOpen",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],gS.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gS.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gS.prototype,"roundedContainer",void 0);_.p([_.U(),_.y("design:type",Object)],gS.prototype,"dropdownButtonOverride",void 0);_.p([_.U({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.y("design:type",Boolean)],gS.prototype,"creationDisabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],gS.prototype,"enableCreationBox",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.y("design:type",Boolean)],gS.prototype,"isCreationDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gS.prototype,"inPopupContainer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.y("design:type",Boolean)],gS.prototype,"isCreationDialogWithHeader",void 0);_.p([_.U(),_.y("design:type",Object)],gS.prototype,"accessRestriction",void 0);
_.p([_.U({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.y("design:type",Array)],gS.prototype,"dropdownRendererClasses",void 0);_.p([_.U(),_.y("design:type",Object)],gS.prototype,"isCommentboxLoading",void 0);_.p([_.U(),_.y("design:type",Array)],gS.prototype,"attachmentButtonIds",void 0);_.p([_.dq("#image-button"),_.y("design:type",HTMLElement)],gS.prototype,"imageButton",void 0);
_.p([_.dq("#image-poll-button"),_.y("design:type",HTMLElement)],gS.prototype,"imagePollButton",void 0);_.p([_.dq("#quiz-button"),_.y("design:type",HTMLElement)],gS.prototype,"quizButton",void 0);_.p([_.dq("#commentbox"),_.y("design:type",Object)],gS.prototype,"JSC$16178_commentbox",void 0);_.p([_.W4("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gS.prototype,"showButtonEduTooltip",null);
_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtCommentboxDismiss",null);_.p([_.RA("yt-commentbox-loading-start"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtCommentboxLoadingStart",null);
_.p([_.RA("yt-commentbox-loading-end"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtCommentboxLoadingEnd",null);_.p([_.RA("yt-video-link-button-cancel"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtVideoLinkButtonCancel",null);
_.p([_.RA("yt-video-link-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtVideoLinkSelected",null);_.p([_.RA("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onIronSelect",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onYtNavigate",null);
_.p([_.RA("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],gS.prototype,"onRequestSent",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gS.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],gS);
_.X(gS,"ytd-backstage-post-dialog-renderer",function(){if(Uw4!==void 0)return Uw4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Uw4=N},{mode:1});var aZE;var Rvk;var eI=function(){return _.z.apply(this,arguments)||this};
_.F(eI,_.z);_.v=eI.prototype;_.v.computeHeartButtonStyle=function(N){return(N==null?0:N.styleType)?N.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onYtButtonTap=function(){if(this.data.isEnabled){var N=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(N=this.getEndpoint(N))&&_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})}else(N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(N)};
_.v.toggle=function(N){this.set("data.isHearted",N!==void 0?N:!this.data.isHearted)};
_.v.getEndpoint=function(N){var b,S=(b=this.data)==null?void 0:b.heartEndpoint,P;b=(P=this.data)==null?void 0:P.unheartEndpoint;if(S&&b)return N?b:S};
_.v.computeButtonAccessibility=function(N,b){var S,P,H=N==null?void 0:(S=N.heartedAccessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label,K,C;N=N==null?void 0:(K=N.unheartedAccessibility)==null?void 0:(C=K.accessibilityData)==null?void 0:C.label;return b?H:N};
_.d0.Object.defineProperties(eI.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var N;return _.T("kevlar_system_icons")&&!((N=this.data)==null||!N.isHearted)}}});
eI.prototype.onYtButtonTap=eI.prototype.onYtButtonTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],eI.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eI.prototype,"data",void 0);_.p([_.f("data.isHearted"),_.y("design:type",Object),_.y("design:paramtypes",[])],eI.prototype,"heartTooltip",null);
_.p([_.f("data.isHearted"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eI.prototype,"iconFilled",null);_.p([_.U({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.y("design:type",String)],eI.prototype,"buttonAccessibility",void 0);_.p([_.U({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],eI.prototype,"heartButtonStyle",void 0);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eI.prototype,"onYtButtonTap",null);_.p([_.Uj({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],eI);
_.X(eI,"ytd-creator-heart-renderer",function(){if(Rvk!==void 0)return Rvk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Rvk=N},{mode:1});var $8=function(){var N=_.z.apply(this,arguments)||this;N.hasCreatorReply=!1;N.buttonOverrides={size:"S",iconPosition:"icon-only"};N.replyButtonOverrides={size:"S",type:"text"};N.forceIconButton=!_.T("web_modern_buttons");N.modern=_.T("web_modern_buttons");N.buttonTooltipPosition="bottom";N.systemIcons=_.T("kevlar_system_icons");N.replyDialog=null;return N};
_.F($8,_.z);_.v=$8.prototype;
_.v.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.v.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.v.dataChange=function(){this.replyDialog&&_.H4(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var N,b,S;this.isLiked=this.systemIcons&&!!((N=this.data)==null?0:(b=N.likeButton)==null?0:(S=b.toggleButtonRenderer)==null?0:S.isToggled)};
_.v.computeShowVoteCountBeginning=function(N,b){return N===void 0||b===void 0?!0:N.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.v.computeShowVoteCountEnd=function(N,b){return N===void 0||b===void 0?!0:N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.v.computeShowCommentCount=function(N,b){return N===void 0||b===void 0?!0:N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.v.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.v.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.v.showReplyDialog=function(N){N&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.H4(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=N,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.v.onRequestSent=function(N){N=_.O(N.detail);for(var b=N.next();!b.done;b=N.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)};
_.v.onYtNavigate=function(N){var b,S;(N=(b=_.t(N.detail.endpoint,_.yN9))==null?void 0:(S=b.dialog)==null?void 0:S.commentReplyDialogRenderer)&&this.showReplyDialog(N)};
_.v.onYtServiceRequestSent=function(N,b){N.stopPropagation();if(b.actions)for(N=0;N<b.actions.length;N++){var S=_.t(b.actions[N],GtS);S&&this.handleUpdateCommentVoteAction(S)}};
_.v.handleUpdateCommentVoteAction=function(N){this.voteCount=N.voteCount||_.gy("0");N.voteStatus==="LIKE"?this.JSC$16190_ytdDislikeToggleButtonRenderer.toggle(!1):N.voteStatus==="DISLIKE"?this.JSC$16190_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16190_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16190_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.v.computeReplyButtonHidden=function(N){return N};
_.v.computeReplyButtonBeginning=function(N){return(N==null?0:N.replyButton)&&N.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?N.replyButton:void 0};
_.v.computeReplyButtonEnd=function(N){return(N==null?0:N.replyButton)&&N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?N.replyButton:void 0};
_.v.computeActionButtonStyle=function(N){return(N==null?0:N.style)?N.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.v.onYtToggleButton=function(N){var b,S;this.isLiked=this.systemIcons&&!!((b=N.detail)==null?0:(S=b.actions)==null?0:S.like)};
$8.prototype.onYtToggleButton=$8.prototype.onYtToggleButton;$8.prototype.onButtonTooltipPositionChanged=$8.prototype.onButtonTooltipPositionChanged;$8.prototype.onYtServiceRequestSent=$8.prototype.onYtServiceRequestSent;$8.prototype.onYtNavigate=$8.prototype.onYtNavigate;$8.prototype.onRequestSent=$8.prototype.onRequestSent;$8.prototype.onYtCommentboxDismiss=$8.prototype.onYtCommentboxDismiss;$8.prototype.dataChange=$8.prototype.dataChange;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"voteCount",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"commentCount",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"replyThumbnail",void 0);
_.p([_.U(),_.y("design:type",Object)],$8.prototype,"hasCreatorReply",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$8.prototype,"enableCreationBox",void 0);_.p([_.U({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],$8.prototype,"actionButtonsStyle",void 0);_.p([_.U({computed:"computeReplyButtonBeginning(data)"}),_.y("design:type",Object)],$8.prototype,"replyButtonBeginning",void 0);
_.p([_.U({computed:"computeReplyButtonEnd(data)"}),_.y("design:type",Object)],$8.prototype,"replyButtonEnd",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"buttonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"replyButtonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"forceIconButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$8.prototype,"useCommentIcon",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$8.prototype,"modern",void 0);_.p([_.U(),_.y("design:type",Object)],$8.prototype,"buttonTooltipPosition",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$8.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$8.prototype,"isLiked",void 0);_.p([_.dq("ytd-button-renderer"),_.y("design:type",Object)],$8.prototype,"ytdReplyButtonRenderer",void 0);
_.p([_.dq("#like-button"),_.y("design:type",Object)],$8.prototype,"JSC$16190_ytdLikeToggleButtonRenderer",void 0);_.p([_.dq("#dislike-button"),_.y("design:type",Object)],$8.prototype,"JSC$16190_ytdDislikeToggleButtonRenderer",void 0);_.p([_.dq("#reply-dialog"),_.y("design:type",HTMLElement)],$8.prototype,"replyDialogElement",void 0);_.p([_.dq("#reply-button"),_.y("design:type",HTMLElement)],$8.prototype,"replyButtonElement",void 0);
_.p([_.dq("#reply-button-end"),_.y("design:type",HTMLElement)],$8.prototype,"replyButtonEndElement",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$8.prototype,"dataChange",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$8.prototype,"onYtCommentboxDismiss",null);
_.p([_.RA("yt-service-request-sent-button-renderer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$8.prototype,"onRequestSent",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$8.prototype,"onYtNavigate",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],$8.prototype,"onYtServiceRequestSent",null);_.p([_.W4("buttonTooltipPosition"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$8.prototype,"onButtonTooltipPositionChanged",null);
_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$8.prototype,"onYtToggleButton",null);_.p([_.Uj({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],$8);
_.X($8,"ytd-comment-action-buttons-renderer",function(){if(aZE!==void 0)return aZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return aZE=N},{mode:1});var Wfc;var h$=function(){return _.z.apply(this,arguments)||this};
_.F(h$,_.z);h$.prototype.focus=function(){_.H4(this.hostElement).querySelector("#commentbox").focus()};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],h$.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],h$.prototype,"zeroStepChannelCreationRenderer",void 0);_.p([_.Uj({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],h$);
_.X(h$,"ytd-comment-dialog-renderer",function(){if(Wfc!==void 0)return Wfc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Wfc=N},{mode:1});var nV9;var qi=function(){var N=_.z.apply(this,arguments)||this;N.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.T("enable_web_delhi_icons")};N.replyButtonOverrides={size:"S",type:"text"};return N};
_.F(qi,_.z);_.v=qi.prototype;_.v.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.v.detached=function(){this.replyBox&&this.replyBox.remove()};
_.v.showReplyDialog=function(N){if(N){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",_.H4(this.replyDialogDiv).appendChild(b));b.data=N;this.replyDialogDiv.hidden=!1;b.openDialog()}};
_.v.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.v.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var N,b=_.t((N=this.toolbarSurface)==null?void 0:N.subscribersOnlyDisclaimerSnackbarCommand,_.JM);b&&_.bC(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:b})}};
_.v.onYtServiceRequestSent=function(N,b){N.stopPropagation();if(b.actions)for(var S=0;S<b.actions.length;S++){var P=_.t(b.actions[S],GtS);P?this.handleUpdateCommentVoteAction(P):N.target===this.heartButton&&this.toggleHeartState()}};
_.v.handleUpdateCommentVoteAction=function(N){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.oJ("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:N.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":N.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.v.toggleHeartState=function(){var N;(N=this.toolbarState)!=null&&N.key&&this.ytdReduxBehavior.dispatch(_.oJ("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.d0.Object.defineProperties(qi.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return(((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.likeCountLiked:(S=this.toolbarData)==null?void 0:S.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand)!==void 0&&!_.T("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b=_.t((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand,_.JM),S,P,H,K,C,G,a,R,n;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:b!=null?b:_.t((H=this.toolbarSurface)==null?void 0:H.likeCommand,_.JM),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.t((K=this.toolbarSurface)==null?void 0:K.unlikeCommand,_.JM),defaultCommand:this.isVisiblyDisabled?_.t((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.JM):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.likeInactiveTooltip,toggledTooltip:(a=this.toolbarData)==null?void 0:a.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(R=this.toolbarData)==null?void 0:R.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(n=this.toolbarSharedData)==null?void 0:n.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b=_.t((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand,_.JM),S,P,H,K,C,G,a,R,n,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.t((H=this.toolbarSurface)==null?void 0:H.dislikeCommand,_.JM),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.t((K=this.toolbarSurface)==null?void 0:K.undislikeCommand,_.JM),defaultCommand:this.isVisiblyDisabled?_.t((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.JM):void 0,defaultTooltip:(G=this.toolbarData)==null?void 0:G.dislikeInactiveTooltip,toggledTooltip:(a=this.toolbarData)==null?void 0:
a.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(R=this.toolbarSharedData)==null?void 0:R.dislikeReplyButtonA11y:(n=this.toolbarSharedData)==null?void 0:n.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b,S;if(((N=this.toolbarState)==null?void 0:N.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var P,H,K,C,G,a,R,n,d,m,k,M,l,u;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(P=this.toolbarData)==null?void 0:P.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((H=this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.t((a=this.toolbarSurface)==null?void 0:a.heartCommand,
_.JM),unheartEndpoint:this.isVisiblyDisabled?void 0:_.t((R=this.toolbarSurface)==null?void 0:R.unheartCommand,_.JM),disabledEndpoint:this.isVisiblyDisabled?_.t((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.JM):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(d=this.toolbarData)==null?void 0:d.heartActiveTooltip,unheartedTooltip:(m=this.toolbarData)==null?void 0:m.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((k=
this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(M=this.toolbarSharedData)==null?void 0:M.unheartButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.toolbarSurface)==null||!N.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.commentStrings)!=null&&N.replyButtonText){var b,S,P,H;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(b=this.commentStrings)==null?void 0:b.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.t((S=this.toolbarSurface)==null?void 0:S.replyCommand,_.JM),command:this.isVisiblyDisabled?
_.t((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.JM):this.isSubsOnlyCommentsIneligibleUser?_.t((H=this.toolbarSurface)==null?void 0:H.subscribersOnlySnackbarCommand,_.JM):void 0}}}}});
qi.prototype.onYtServiceRequestSent=qi.prototype.onYtServiceRequestSent;qi.prototype.hideReplyDialogDiv=qi.prototype.hideReplyDialogDiv;_.p([_.U(),_.y("design:type",Object)],qi.prototype,"commentStrings",void 0);_.p([_.U(),_.y("design:type",Boolean)],qi.prototype,"isReply",void 0);_.p([_.U(),_.y("design:type",Object)],qi.prototype,"toolbarData",void 0);_.p([_.U(),_.y("design:type",Object)],qi.prototype,"toolbarSharedData",void 0);
_.p([_.U(),_.y("design:type",String)],qi.prototype,"toolbarStateKey",void 0);_.p([_.U(),_.y("design:type",String)],qi.prototype,"toolbarSurfaceKey",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],qi.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],qi.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.u$),_.y("design:type",Object)],qi.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.dq("#reply-dialog"),_.y("design:type",HTMLElement)],qi.prototype,"replyDialogDiv",void 0);_.p([_.dq("#replybox"),_.y("design:type",Object)],qi.prototype,"replyBox",void 0);_.p([_.dq("ytd-creator-heart-renderer"),_.y("design:type",Object)],qi.prototype,"heartButton",void 0);_.p([_.U({selector:function(N,b){return _.GL(N.entities,"engagementToolbarStateEntityPayload",b)},
selectorArgs:["toolbarStateKey"]}),_.y("design:type",Object)],qi.prototype,"toolbarState",void 0);_.p([_.U({selector:yfa,selectorArgs:["toolbarSurfaceKey"]}),_.y("design:type",Object)],qi.prototype,"toolbarSurface",void 0);_.p([_.U(),_.y("design:type",Object)],qi.prototype,"buttonOverrides",void 0);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qi.prototype,"hideReplyDialogDiv",null);
_.p([_.f("toolbarData","toolbarState"),_.y("design:type",String),_.y("design:paramtypes",[])],qi.prototype,"likeCount",null);_.p([_.f("likeCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"showLikeCount",null);_.p([_.f("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"isVisiblyDisabled",null);_.p([_.f("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.p([_.f("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"isSubsOnlyCommentsEligibleUser",null);_.p([_.f("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"hasPrepareAccountCommand",null);_.p([_.f("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],qi.prototype,"likeToggleButtonRenderer",null);
_.p([_.f("isReply","toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],qi.prototype,"dislikeToggleButtonRenderer",null);_.p([_.f("toolbarData","toolbarState","toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],qi.prototype,"creatorHeartSupportedRenderer",null);_.p([_.f("toolbarSurface"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qi.prototype,"hasReplyCommand",null);
_.p([_.f("toolbarSurface","commentStrings","isVisiblyDisabled"),_.y("design:type",Object),_.y("design:paramtypes",[])],qi.prototype,"replyButtonRenderer",null);_.p([_.U(),_.y("design:type",Object)],qi.prototype,"replyButtonOverrides",void 0);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],qi.prototype,"onYtServiceRequestSent",null);_.p([_.Uj({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],qi);
_.X(qi,"ytd-comment-engagement-bar",function(){if(nV9!==void 0)return nV9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return nV9=N},{mode:1});var dG9;var wS=function(){return _.z.apply(this,arguments)||this};
_.F(wS,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wS.prototype,"data",void 0);_.p([_.Uj({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],wS);
_.X(wS,"ytd-comment-inline-thumbnail-renderer",function(){if(dG9!==void 0)return dG9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return dG9=N},{mode:1});var mGk;var NF=function(){return _.z.apply(this,arguments)||this};
_.F(NF,_.z);NF.prototype.onMessageTap=function(){if(this.onTapCommand){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);N&&this.ytdOpenPopupBehavior.openPopup(N)}};
_.d0.Object.defineProperties(NF.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return(N=this.data)==null?void 0:(b=N.button)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.command}}});
_.p([_.L(_.u$),_.y("design:type",Object)],NF.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],NF.prototype,"data",void 0);_.p([_.f("data.button.buttonRenderer.command"),_.y("design:type",Object),_.y("design:paramtypes",[])],NF.prototype,"onTapCommand",null);_.p([_.Uj({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],NF);
_.X(NF,"ytd-comment-pause-composer-renderer",function(){if(mGk!==void 0)return mGk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return mGk=N},{mode:1});var kvO;var Tz9;var b6=function(){var N=_.z.apply(this,arguments)||this;N.isOpen=!1;return N};
_.F(b6,_.z);_.v=b6.prototype;_.v.dataChanged=function(){this.isOpen=!1};
_.v.onTap=function(){this.data&&(this.data.navigationEndpoint?_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.v.focus=function(){this.JSC$16219_commentbox.focus()};
_.v.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.v.openDialog=function(){this.isOpen=!0;this.JSC$16219_commentbox.focus();this.JSC$16219_commentbox.maybeHeightChanged()};
b6.prototype.onYtCommentboxDismiss=b6.prototype.onYtCommentboxDismiss;b6.prototype.dataChanged=b6.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],b6.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],b6.prototype,"isOpen",void 0);_.p([_.dq("#commentbox"),_.y("design:type",Object)],b6.prototype,"JSC$16219_commentbox",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b6.prototype,"dataChanged",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],b6.prototype,"onYtCommentboxDismiss",null);_.p([_.Uj({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],b6);
_.X(b6,"ytd-comment-reply-dialog-renderer",function(){if(Tz9!==void 0)return Tz9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Tz9=N},{mode:1});var tNz;var Sm=function(){return _.z.apply(this,arguments)||this};
_.F(Sm,_.z);_.d0.Object.defineProperties(Sm.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType;return S?"yt-icons:"+S.toLowerCase():null}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Sm.prototype,"data",void 0);_.p([_.U(),_.f("data.icon"),_.y("design:type",Object),_.y("design:paramtypes",[])],Sm.prototype,"icon",null);_.p([_.Uj({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Sm);
_.X(Sm,"ytd-pinned-comment-badge-renderer",function(){if(tNz!==void 0)return tNz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return tNz=N},{mode:1});var MNS;var Ffb={},BzV={input:!0,meta:!0,br:!0,link:!0,img:!0},PZ=null;Ffb.YtSharedTooltipBehavior={properties:{sharedTooltipPosition:{type:String,value:"bottom"},sharedTooltipAnimationDelay:{type:Number,value:500}},attached:function(){this.hostElement.addEventListener("mouseover",this.onMouseOver_,!0)},
detached:function(){this.hostElement.removeEventListener("mouseover",this.onMouseOver_,!0)},
createTooltipIfRequired_:function(){PZ==null&&(PZ=document.createElement("tp-yt-paper-tooltip"),PZ.offset=8,PZ.fitToVisibleBounds=!0)},
onMouseOver_:function(N){if(N=_.wY(N.target,function(H){return H==this||H.getAttribute&&H.getAttribute("shared-tooltip-text")}.bind(this),!0)){var b=N.getAttribute("shared-tooltip-text");
if(b){var S=this,P=null;N!=this&&(N.tagName.toLowerCase()in BzV?S=N.parentElement:S=N,N.id&&(P=N.id));this.polymerController.createTooltipIfRequired_();if(PZ.parentElement!=S||PZ.for!=P)(0,_.Gd)(PZ).textContent=b,_.H4(S).appendChild(PZ),PZ.for=P,PZ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,PZ.position=this.polymerController.sharedTooltipPosition}}}};var HZ=function(){return _.z.apply(this,arguments)||this};
_.F(HZ,_.z);HZ.prototype.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]",sharedTooltipText:"[[data.tooltip]]"}}}},data:{id:"custom-badge",mapping:{customBadge:{component:"yt-img-shadow",properties:{thumbnail:"[[data.customBadge]]",sharedTooltipText:"[[data.tooltip]]"}}}}}};
HZ.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var N;((N=this.data)==null?0:N.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var b;((b=this.data)==null?0:b.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HZ.prototype.colorChanged=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.color)==null?void 0:(S=b.basicColorPaletteData)==null?void 0:S.foregroundBodyColor;P&&(this.rgbBadgeColor=_.xn(P));_.H4(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
HZ.prototype.tooltipChanged=function(){var N;((N=this.data)==null?0:N.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
HZ.prototype.tooltipChanged=HZ.prototype.tooltipChanged;HZ.prototype.colorChanged=HZ.prototype.colorChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(Ffb.YtSharedTooltipBehavior),_.y("design:type",Object)],HZ.prototype,"ytSharedTooltipBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HZ.prototype,"data",void 0);
_.p([_.U({value:"#4285F4"}),_.y("design:type",String)],HZ.prototype,"rgbBadgeColor",void 0);_.p([_.W4("data.color"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HZ.prototype,"colorChanged",null);_.p([_.W4("data.tooltip"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HZ.prototype,"tooltipChanged",null);_.p([_.Uj({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],HZ);
_.X(HZ,"ytd-sponsor-comment-badge-renderer",function(){if(MNS!==void 0)return MNS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return MNS=N},{mode:1});var lZV;var LfE;var sm=function(){return _.z.apply(this,arguments)||this};
_.F(sm,_.z);sm.prototype.computeState=function(N){switch(N==null?void 0:N.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
sm.prototype.updateStateIdentifier=function(N){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.oJ("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:N}))}};
sm.prototype.onClick=function(){var N=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){N.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){N.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.d0.Object.defineProperties(sm.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.buttonText)||""}}});
_.p([_.U(),_.y("design:type",Object)],sm.prototype,"viewModel",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],sm.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],sm.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.p([_.U({selector:ImL,selectorArgs:["viewModel.triStateKey"]}),_.y("design:type",Object)],sm.prototype,"triStateButtonStateEntity",void 0);
_.p([_.U({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.y("design:type",String)],sm.prototype,"state",void 0);_.p([_.f("viewModel","state"),_.y("design:type",Object),_.y("design:paramtypes",[])],sm.prototype,"data",null);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],sm.prototype,"buttonText",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],sm);
_.X(sm,"ytd-tri-state-button-view-model",function(){if(LfE!==void 0)return LfE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return LfE=N},{mode:1});var fZ4;var uW9;var KY=function(){var N=_.z.apply(this,arguments)||this;N.defaultIconToFilled=!_.T("kevlar_fill_comment_chip_icon_killswitch");return N};
_.F(KY,_.z);KY.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
KY.prototype.dataChanged=function(){if(this.data){var N,b;((N=this.data.chipColorPalette)==null?0:N.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&_.rq(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.o3(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.o3(this.data.chipColorPalette.foregroundTitleColor)});var S;((S=this.data)==null?0:S.command)?(_.rq(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.rq(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
KY.prototype.onTap=function(){var N;if(this.data&&(N=this.data)!=null&&N.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}};
KY.prototype.getIconSize=function(){return _.T("kevlar_fill_comment_chip_icon_killswitch")?24:12};
KY.prototype.onTap=KY.prototype.onTap;KY.prototype.dataChanged=KY.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],KY.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.XX),_.y("design:type",Object)],KY.prototype,"ironA11yKeysBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KY.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],KY.prototype,"basePriceText",void 0);_.p([_.U(),_.y("design:type",Object)],KY.prototype,"chipIcon",void 0);_.p([_.U(),_.y("design:type",Object)],KY.prototype,"defaultIconToFilled",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KY.prototype,"dataChanged",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KY.prototype,"onTap",null);
_.p([_.J_({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],KY);
_.X(KY,"yt-pdg-comment-chip-renderer",function(){if(uW9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;fZ4===void 0&&(fZ4=document.createElement("template"));var P=fZ4;S.call(b,P.content.cloneNode(!0),N.content.firstChild);uW9=N}N=uW9;return N},{mode:2});var vZ=function(){var N=_.z.apply(this,arguments)||this;N.useSmallAvatars=_.T("small_avatars_for_comments");N.commentThreadingEnabled=_.T("web_delhi_comment_threads");N.webWatchCompactComments=_.T("web_watch_compact_comments");N.editDialog=null;return N};
_.F(vZ,_.z);_.v=vZ.prototype;_.v.onShow=function(){_.Q3("cmv",void 0,"wn_comments")};
_.v.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.v.detached=function(){this.editDialog=null;this.expander.reset()};
_.v.updateBackgroundColor=function(){if(this.backgroundColor){var N={"--ytd-comment-paid-background-color":_.o3(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.rq(this.hostElement,N)}else _.rq(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.v.resetExpander=function(){var N;(N=this.expander)==null||N.reset()};
_.v.openEditDialog=function(N){N.dialog&&(this.editDialog=N.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.v.onYtNavigate=function(N){var b=N.detail.endpoint;if(b=_.t(b,_.Iyd)||_.t(b,_.D$9))N.stopPropagation(),this.openEditDialog(b)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null;_.rq(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.v.onAuthorThumbnailClicked=function(){_.T("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.v.onYtCommentboxResize=function(N){var b;(N==null?0:(b=N.detail)==null?0:b.height)&&_.rq(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":N.detail.height+"px"})};
_.d0.Object.defineProperties(vZ.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.commentEntity)==null?void 0:N.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?_.t(b.channelPageEndpoint,_.JM):_.t(b.channelCommand,_.JM),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:
b.isVerified?{iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.commentEntity)==null?void 0:N.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.commentSurfaceEntity)==null?void 0:N.pdgCommentChip,_.T29)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var N;return this.voiceReplyContainerViewModel&&((N=this.voiceReplyContainerViewModel)==null?void 0:N.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.commentSurfaceEntity)==null?void 0:N.voiceReplyContainerViewModel,kt9)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var N;return this.voiceReplyContainerViewModel&&(N=this.voiceReplyContainerViewModel)!=null&&N.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.commentSurfaceEntity)==null?void 0:N.commentBackgroundColor)!=null?b:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var N,b;return(((N=this.commentEntity)==null?void 0:(b=N.properties)==null?void 0:b.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var N,b;if(_.T("enable_profile_cards_on_comments")&&((N=this.commentEntity)==null?0:(b=N.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var S,P;return _.t((S=this.commentEntity)==null?void 0:(P=S.author)==null?void 0:P.profileCardEndpoint,_.JM)}var H,K;return _.t((H=this.commentEntity)==null?void 0:(K=H.avatar)==null?void 0:K.endpoint,_.JM)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var N,b;if(_.T("enable_profile_cards_on_comments")&&((N=this.commentEntity)==null?0:(b=N.author)==null?0:b.channelPageEndpoint)){var S,P;return _.t((S=this.commentEntity)==null?void 0:(P=S.author)==null?void 0:P.channelPageEndpoint,_.JM)}var H,K;return _.t((H=this.commentEntity)==null?void 0:(K=H.avatar)==null?void 0:K.endpoint,_.JM)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H=(N=this.commentEntity)==null?void 0:(b=N.avatar)==null?void 0:(S=b.image)==null?void 0:(P=S.sources)==null?void 0:P[0];return H?{thumbnails:[{url:H.url,width:H.width,height:H.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.commentEntity)==null?0:(b=N.author)==null?0:b.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.commentEntity)==null?void 0:(b=N.author)==null?void 0:b.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.commentEntity)==null?void 0:(b=N.properties)==null?void 0:b.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.commentSurfaceEntity)==null?void 0:N.publishedTimeCommand,_.JM)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var N,b;if(((N=this.commentEntity)==null?0:N.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var S;if((S=this.voiceReplyContainerViewModel)==null?0:S.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var P,H;return((P=this.commentEntity)==null?void 0:(H=P.properties)==null?void 0:H.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.commentSharedEntity)==null?void 0:(b=N.strings)==null?void 0:b.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.commentSharedEntity)==null?void 0:(b=N.strings)==null?void 0:b.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.commentEntity)==null||!N.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var N,b,S=(b=_.t((N=this.viewModel)==null?void 0:N.translateButton,m4k))!=null?b:{},P,H,K,C,G,a,R,n,d,m,k;return Object.assign({},S,{untoggledStateData:Object.assign({},S.untoggledStateData,{buttonText:(P=this.commentEntity)==null?void 0:(H=P.translateData)==null?void 0:H.text}),togglingStateData:Object.assign({},S.togglingStateData,{buttonText:(K=this.commentSharedEntity)==null?
void 0:(C=K.strings)==null?void 0:C.translatingText}),toggledStateData:Object.assign({},S.toggledStateData,{buttonText:(G=this.commentSharedEntity)==null?void 0:(a=G.strings)==null?void 0:a.seeOriginalText}),transitionCommand:((R=this.commentEntity)==null?0:R.translatedContent)?void 0:_.t((n=this.commentEntity)==null?void 0:(d=n.translateData)==null?void 0:d.translateComment,_.JM),triStateKey:(m=this.commentEntity)==null?void 0:(k=m.properties)==null?void 0:k.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((b=_.t(_.t((N=this.toolbarSurface)==null?void 0:N.menuCommand,_.JM),Vcl))==null?void 0:(S=b.menu)==null?void 0:S.menuRenderer)||null}}});
vZ.prototype.onYtCommentboxResize=vZ.prototype.onYtCommentboxResize;vZ.prototype.onYtCommentboxDismiss=vZ.prototype.onYtCommentboxDismiss;vZ.prototype.onYtNavigate=vZ.prototype.onYtNavigate;vZ.prototype.resetExpander=vZ.prototype.resetExpander;vZ.prototype.updateBackgroundColor=vZ.prototype.updateBackgroundColor;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#author-thumbnail > button"),_.y("design:type",HTMLElement)],vZ.prototype,"authorThumbnailAnchor",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vZ.prototype,"linked",null);
_.p([_.f("viewModel","linked"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"linkedCommentBadge",null);_.p([_.U({reflectToAttribute:!0}),_.f("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vZ.prototype,"pinned",null);_.p([_.f("viewModel","pinned"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"pinnedCommentBadge",null);
_.p([_.f("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"authorCommentBadge",null);_.p([_.U({reflectToAttribute:!0}),_.f("authorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"hasAuthorBadge",null);_.p([_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"sponsorCommentBadge",null);
_.p([_.U({reflectToAttribute:!0}),_.f("sponsorCommentBadge"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"hasSponsorBadge",null);_.p([_.f("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"pdgCommentChipRenderer",null);_.p([_.U({reflectToAttribute:!0}),_.f("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"hasVoiceReply",null);
_.p([_.f("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"voiceReplyContainerViewModel",null);_.p([_.f("voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"voiceReplyUnavailableText",null);_.p([_.U(),_.y("design:type",Object)],vZ.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"viewModel",null);
_.p([_.U({selector:function(N,b){return _.GL(N.entities,"commentSharedEntityPayload",b)},
selectorArgs:["viewModel.sharedKey"]}),_.y("design:type",Object)],vZ.prototype,"commentSharedEntity",void 0);_.p([_.U({selector:YA_,selectorArgs:["viewModel.commentKey"]}),_.y("design:type",Object)],vZ.prototype,"commentEntity",void 0);_.p([_.U({selector:function(N,b){return _.GL(N.entities,"commentSurfaceEntityPayload",b)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.y("design:type",Object)],vZ.prototype,"commentSurfaceEntity",void 0);_.p([_.U({selector:yfa,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.y("design:type",Object)],vZ.prototype,"toolbarSurface",void 0);_.p([_.U({selector:ImL,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.y("design:type",Object)],vZ.prototype,"translateButtonState",void 0);
_.p([_.f("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"backgroundColor",null);_.p([_.U({reflectToAttribute:!0}),_.f("viewModel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vZ.prototype,"optimalReadingWidthComments",null);_.p([_.dq("ytd-expander"),_.y("design:type",Object)],vZ.prototype,"expander",void 0);
_.p([_.W4("backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vZ.prototype,"updateBackgroundColor",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"useSmallAvatars",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],vZ.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"commentThreadingEnabled",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],vZ.prototype,"webWatchCompactComments",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"isReply",null);_.p([_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"authorThumbnailEndpoint",null);_.p([_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"authorNameEndpoint",null);
_.p([_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"authorThumbnail",null);_.p([_.f("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],vZ.prototype,"authorTextClass",null);_.p([_.f("commentEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],vZ.prototype,"authorChannelName",null);_.p([_.f("commentEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"publishedTime",null);
_.p([_.f("commentSurfaceEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"publishedTimeCommand",null);_.p([_.f("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"contentText",null);_.p([_.W4("contentText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vZ.prototype,"resetExpander",null);
_.p([_.f("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vZ.prototype,"shouldShowReadMoreInitially",null);_.p([_.f("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],vZ.prototype,"expandText",null);_.p([_.f("commentSharedEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],vZ.prototype,"collapseText",null);_.p([_.f("commentEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vZ.prototype,"shouldShowTranslateButton",null);
_.p([_.f("commentEntity","commentSharedEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"translateButton",null);_.p([_.f("toolbarSurface"),_.y("design:type",Object),_.y("design:paramtypes",[])],vZ.prototype,"overflowMenuRenderer",null);_.p([_.U(),_.y("design:type",Object)],vZ.prototype,"editDialog",void 0);_.p([_.dq("ytd-comment-dialog-renderer"),_.y("design:type",Object)],vZ.prototype,"editCommentDialogContainer",void 0);
_.p([_.dq("ytd-comment-reply-dialog-renderer"),_.y("design:type",Object)],vZ.prototype,"editReplyDialogContainer",void 0);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vZ.prototype,"onYtNavigate",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vZ.prototype,"onYtCommentboxDismiss",null);
_.p([_.RA("yt-commentbox-resize"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],vZ.prototype,"onYtCommentboxResize",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-comment-view-model"})],vZ);
_.X(vZ,"ytd-comment-view-model",function(){if(lZV!==void 0)return lZV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return lZV=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});_.qu(_.A(function(N){var b={};return _.c("yt-sub-thread",{class:_.KU("ytSubThreadHost",(b.ytSubThreadHasButton=N.isButton,b.ytSubThreadHovered=N.hovered,b.ytSubThreadTopLevelThread=function(){var S,P;return((S=N.topLevelThread)==null?void 0:S.call(N))&&!(_.T("small_avatars_for_comments")&&((P=N.engagementPanel)==null?0:P.call(N)))},b))},_.c("div",{class:"ytSubThreadThreadline"},_.c(_.W,{cond:function(){var S;
return!((S=N.isTeaser)==null?0:S.call(N))},
then:function(){return _.c("div",{class:"ytSubThreadConnection"})}}),_.c("div",{class:"ytSubThreadContinuation"}),_.c("div",{class:"ytSubThreadShadow"})),_.c("div",{class:"ytSubThreadSubThreadContent"},N.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.kg,
isTeaser:_.kg,hovered:_.kg,topLevelThread:_.kg,engagementPanel:_.kg}});var Om=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_modern_buttons");N.commentThreadingEnabled=_.T("web_delhi_comment_threads");N.isWatchGrid=_.T("kevlar_watch_grid");N.buttonOverrides=N.commentThreadingEnabled?_.T("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};N.JSC$16265_spinnerEl=null;return N};
_.F(Om,_.z);_.v=Om.prototype;_.v.configureContinuationPathMap=function(){return _.T("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.shouldShowLegacyTeasers=function(N,b){return N&&!b};
_.v.shouldShowExpandedThreads=function(N,b){return this.commentThreadingEnabled&&b&&(N==null?void 0:N.length)>0};
_.v.shouldShowCollapsedThreads=function(N,b){return this.commentThreadingEnabled&&!b&&N};
_.v.computeCommentViewModel=function(N){return _.t(N,d4N)};
_.v.computeThreadRenderer=function(N){return _.t(N,rF9)};
_.v.computeIsContinuationItem=function(N){return!!this.computeContinuationItemRenderer(N)};
_.v.computeButtonRenderer=function(N){return _.t(N,_.rU)};
_.v.computeContinuationItemRenderer=function(N){return _.t(N,_.wO)};
_.v.computeShowButton=function(N){var b;return!((b=this.computeContinuationItemRenderer(N))==null||!b.button)};
_.v.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.v.attached=function(){this.isShowRepliesVisible=!0};
_.v.dataChanged=function(){var N=this.expanderContents;N&&(N.hidden=!0);this.isLoading=!1};
_.v.endsInContinuation=function(N){return!!N&&N.length>0&&!!this.computeContinuationItemRenderer(N[N.length-1])};
_.v.computeShouldShowHideRepliesButton=function(N,b){return!N&&b};
_.v.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.v.isLoadingChanged=function(){this.isLoading&&!this.JSC$16265_spinnerEl&&(this.JSC$16265_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.H4(this.expanderContents).appendChild(this.JSC$16265_spinnerEl));this.JSC$16265_spinnerEl&&(this.JSC$16265_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var N;(N=this.contents)==null||N.classList.remove("reloading")}};
_.v.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var N=_.t(this.data.viewReplies,_.rU);N&&this.ytRendererBehavior.logExplicitClick(N);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var N=_.t(this.data.hideReplies,_.rU);N&&this.ytRendererBehavior.logExplicitClick(N);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var N=_.H4(this.hostElement).querySelector("#expander-contents");N&&(N.hidden=this.isShowRepliesVisible)}};
_.v.computeAlign=function(){if(this.modern){var N;return!((N=this.data)==null?0:N.viewRepliesCreatorThumbnail)}};
_.d0.Object.defineProperties(Om.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var N,b;return this.endsInContinuation((N=this.data)==null?void 0:N.contents)||this.commentThreadingEnabled&&this.endsInContinuation((b=this.data)==null?void 0:b.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var N;return(N=this.data)==null?void 0:N.teaserContents}}});
Om.prototype.isShowMoreChanged=Om.prototype.isShowMoreChanged;Om.prototype.isLoadingChanged=Om.prototype.isLoadingChanged;Om.prototype.triggerFirstContinuation=Om.prototype.triggerFirstContinuation;Om.prototype.dataChanged=Om.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.F3),_.y("design:type",Object)],Om.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Om.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Om.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Om.prototype,"commentThreadingEnabled",void 0);_.p([_.U(),_.y("design:type",Boolean)],Om.prototype,"expanded",void 0);
_.p([_.U(),_.y("design:type",Function)],Om.prototype,"toggleExpanded",void 0);_.p([_.U(),_.y("design:type",Array)],Om.prototype,"addedReplies",void 0);_.p([_.U(),_.y("design:type",Boolean)],Om.prototype,"hovered",void 0);_.p([_.U(),_.y("design:type",Boolean)],Om.prototype,"topLevelThread",void 0);_.p([_.U(),_.y("design:type",Boolean)],Om.prototype,"isLoading",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Om.prototype,"isShowRepliesVisible",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],Om.prototype,"useNewFormatting",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Om.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Om.prototype,"isWatchGrid",void 0);_.p([_.U(),_.y("design:type",Object)],Om.prototype,"buttonOverrides",void 0);_.p([_.dq("#expander-contents"),_.y("design:type",HTMLElement)],Om.prototype,"expanderContents",void 0);
_.p([_.dq("ytd-continuation-item-renderer"),_.y("design:type",Object)],Om.prototype,"continuationItemRenderer",void 0);_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],Om.prototype,"contents",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Om.prototype,"dataChanged",null);_.p([_.f("data.contents","data.subThreads.*"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Om.prototype,"hasContinuation",null);
_.p([_.f("data.teaserContents"),_.y("design:type",Object),_.y("design:paramtypes",[])],Om.prototype,"subThreadTeasers",null);_.p([_.RA("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Om.prototype,"triggerFirstContinuation",null);_.p([_.W4("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Om.prototype,"isLoadingChanged",null);
_.p([_.W4("isShowRepliesVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Om.prototype,"isShowMoreChanged",null);_.p([_.Uj({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Om);
_.X(Om,"ytd-comment-replies-renderer",function(){if(kvO!==void 0)return kvO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return kvO=N},{mode:1});var QKE;var CY=function(){var N=_.z.apply(this,arguments)||this;N.isOpen=!1;N.commentDialog=null;N.useSmallAvatars=_.T("small_avatars_for_comments");N.useSmallAvatarsEngagementPanelOnly=_.T("small_avatars_for_comments_ep");N.placeholderFocusListener=null;N.hasOpenedDialog=!1;N.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return N};
_.F(CY,_.z);_.v=CY.prototype;_.v.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.v.ready=function(){var N=this,b=_.H4(this.hostElement).querySelector("#placeholder-area"),S=_.H4(this.hostElement).querySelector("#simplebox-placeholder"),P=function(H){H.stopPropagation();H instanceof KeyboardEvent&&H.type==="keypress"&&H.keyCode!==13&&H.keyCode!==32||N.openDialog()};
this.placeholderFocusListener=P;S.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",P);b.addEventListener("keypress",P)};
_.v.maybeRemoveFocusEventListener=function(){var N;(N=this.data)!=null&&N.prepareAccountEndpoint&&!_.T("web_comments_simplebox_modal_focus_on_tap_ks")&&(N=_.H4(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(N.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.v.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.v.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.T("web_comment_simplebox_resolve_polymer_command_ks")?_.rG.instance.resolveCommand(this.data.prepareAccountEndpoint):_.c7(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);N&&this.ytdOpenPopupBehavior.openPopup(N);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(N),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.H4(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.v.onYtCommentboxDismiss=function(N){N.stopPropagation();this.isOpen=!1};
_.v.onCreateCommentAction=function(N){this.get("createCommentAction.contents",N)&&(this.isOpen=!1)};
_.v.computeCommentDialog=function(N){return{placeholderText:N.placeholderText,authorThumbnail:N.authorThumbnail,submitButton:N.submitButton,imageButton:N.imageButton,cancelButton:N.cancelButton,emojiButton:N.emojiButton,emojis:N.emojis,emojiPicker:N.emojiPicker,aadcGuidelinesStateEntityKey:N.aadcGuidelinesStateEntityKey,openAadcDialog:N.openAadcDialog,unicodeEmojisUrl:N.unicodeEmojisUrl}};
_.v.onHideIdentityChip=function(N){_.t(N,so4)&&this.set("data.placeholderText",_.t(N,so4).placeholderText)};
CY.prototype.onYtCommentboxDismiss=CY.prototype.onYtCommentboxDismiss;CY.prototype.dataChanged=CY.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],CY.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],CY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CY.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],CY.prototype,"isOpen",void 0);_.p([_.U(),_.y("design:type",Object)],CY.prototype,"commentDialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],CY.prototype,"engagementPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],CY.prototype,"useSmallAvatars",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],CY.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],CY.prototype,"enableCreationBox",void 0);_.p([_.U(),_.y("design:type",Boolean)],CY.prototype,"showCreateDialog",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CY.prototype,"dataChanged",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],CY.prototype,"onYtCommentboxDismiss",null);_.p([_.Uj({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],CY);
_.X(CY,"ytd-comment-simplebox-renderer",function(){if(QKE!==void 0)return QKE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QKE=N},{mode:1});var xGz;_.lo("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var GO=function(){var N=_.z.apply(this,arguments)||this;N.addHoverEffect=_.T("swatcheroo_comments_hover_effect");N.useSmallAvatars=_.T("small_avatars_for_comments");N.scrollingEnabled=_.T("web_comment_threading_scroll_on_collapse");N.isSubThread=!1;N.threadHovered=!1;N.expanded=!1;N.removed=!1;N.addedReplies=[];N.actionMap=N.configureActionMap();N.toggleExpanded=function(){N.expanded=!N.expanded;!N.expanded&&N.scrollingEnabled&&_.St(N.hostElement,"yt-scroll-to-comment-element",[N.commentElement])};
return N};
_.F(GO,_.z);_.v=GO.prototype;_.v.configureActionMap=function(){return _.T("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.v.createCommentReplyAction=function(N){N=_.t(N,Pm9);if(N!=null&&N.contents){var b=N.replyToCommentId,S=N.parentCommentId,P,H=(P=this.commentViewModel)==null?void 0:P.commentId;(H===b||H===S&&!b)&&this.maybeAttachReply(N.contents)}};
_.v.maybeAttachReply=function(N){var b,S;(((b=this.commentEntity)==null?void 0:(S=b.properties)==null?void 0:S.replyLevel)||0)>=3?_.bC(this.hostElement,"yt-pushed-create-comment-reply",N):this.attachReply(N)};
_.v.onPushedCreateCommentReply=function(N){var b,S;(((b=this.commentEntity)==null?void 0:(S=b.properties)==null?void 0:S.replyLevel)||0)>=3||(this.attachReply(N.detail),N.stopPropagation())};
_.v.attachReply=function(N){var b;((b=this.data)==null?0:b.replies)?(b=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+b+".continuationItemRenderer")?b===0?this.push("addedReplies",N):this.splice("data.replies.commentRepliesRenderer.subThreads",b,0,N):this.push("data.replies.commentRepliesRenderer.subThreads",N)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[N],viewReplies:{buttonRenderer:{text:_.bV(_.cN("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.v.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.IX(this.addedReplies))),this.set("addedReplies",[]))};
_.v.removeCommentAction=function(N){N=_.t(N,O29);var b=N==null?void 0:N.commentId,S;b&&((S=this.commentViewModel)==null?void 0:S.commentId)===b&&this.maybeRemoveComment(N.actionResult)};
_.v.banAuthorAction=function(N){N=_.t(N,b2V);var b=N==null?void 0:N.commentId,S;b&&((S=this.commentViewModel)==null?void 0:S.commentId)===b&&this.maybeRemoveComment(N.actionResult)};
_.v.hideReportedCommentAction=function(N){N=_.t(N,FvE);var b=N==null?void 0:N.commentId,S;b&&((S=this.commentViewModel)==null?void 0:S.commentId)===b&&this.maybeRemoveComment(N.actionResult)};
_.v.maybeRemoveComment=function(N){N&&N.status==="STATUS_SUCCEEDED"&&(this.feedbackText=N.feedbackText||_.bV("Reply removed"),this.removed=!0)};
_.v.onTap=function(N){if(this.addHoverEffect&&!this.engagementPanel&&!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||_.c7({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.v.attached=function(){var N=this;this.isSubThread&&(this.expanded=!0);var b;(b=this.commentThreadHitbox)==null||b.addEventListener("mouseover",function(){N.threadHovered=!0});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("mouseout",function(){N.threadHovered=!1});
var P;(P=this.commentThreadHitbox)==null||P.addEventListener("click",function(){N.maybeToggleExpanded()})};
_.v.onDataChanged=function(){var N=_.T("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(N)&&this.set(N,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.v.maybeToggleExpanded=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.replies)==null?void 0:(S=b.commentRepliesRenderer)==null?void 0:S.subThreads,H;(P==null?void 0:P.length)===1&&((H=_.t(P[0],_.wO))==null?0:H.button)&&this.expanded||this.toggleExpanded()};
_.d0.Object.defineProperties(GO.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.data)==null?void 0:N.commentViewModel,d4N)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return _.T("web_delhi_comment_threads")&&!!((N=this.data)==null?0:(b=N.replies)==null?0:(S=b.commentRepliesRenderer)==null?0:S.subThreads)}}});
GO.prototype.onDataChanged=GO.prototype.onDataChanged;GO.prototype.onTap=GO.prototype.onTap;GO.prototype.onAppendContinuationItemsActionFinished=GO.prototype.onAppendContinuationItemsActionFinished;GO.prototype.onPushedCreateCommentReply=GO.prototype.onPushedCreateCommentReply;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],GO.prototype,"ytdReduxBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"addHoverEffect",void 0);_.p([_.U(),_.y("design:type",Object)],GO.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"useSmallAvatars",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"scrollingEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"isSubThread",void 0);_.p([_.dq(".thread-hitbox"),_.y("design:type",HTMLElement)],GO.prototype,"commentThreadHitbox",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"threadHovered",void 0);_.p([_.dq("#comment"),_.y("design:type",HTMLElement)],GO.prototype,"commentElement",void 0);
_.p([_.U(),_.y("design:type",Object)],GO.prototype,"expanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],GO.prototype,"removed",void 0);_.p([_.U(),_.y("design:type",Object)],GO.prototype,"feedbackText",void 0);_.p([_.U(),_.y("design:type",Array)],GO.prototype,"addedReplies",void 0);_.p([_.U({selector:YA_,selectorArgs:["commentViewModel.commentKey"]}),_.y("design:type",Object)],GO.prototype,"commentEntity",void 0);
_.p([_.RA("yt-pushed-create-comment-reply"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],GO.prototype,"onPushedCreateCommentReply",null);_.p([_.RA("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GO.prototype,"onAppendContinuationItemsActionFinished",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GO.prototype,"commentViewModel",null);
_.p([_.f("data.replies.commentRepliesRenderer.subThreads"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GO.prototype,"hasSubThreading",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],GO.prototype,"engagementPanel",void 0);_.p([_.RA("tap"),_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],GO.prototype,"onTap",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GO.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],GO);
_.X(GO,"ytd-comment-thread-renderer",function(){if(xGz!==void 0)return xGz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xGz=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var oVZ;var rH=function(){var N=_.z.apply(this,arguments)||this;N.compactHeader=_.T("web_watch_compact_comments_header");N.hidePanelButton=!1;N.isPostSchedulingEnabled=_.T("enable_post_scheduling");N.hasFinishedStamping=!1;N.JSC$16288_handleOpenPostCommentDialogActionAfterStamp=!1;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.F(rH,_.z);_.v=rH.prototype;
_.v.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.v.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.v.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16288_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.onYtServiceRequestSent=function(N,b){if(!_.T("kevlar_command_handler")&&b.actions)for(N=0;N<b.actions.length;N++){var S=b.actions[N];_.t(S,Qjk)&&_.H4(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.t(S,Qjk))}};
_.v.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var N;if(this.getPrefilledBackstagePostDialog((N=this.data)==null?void 0:N.actions)){_.H4(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=_.H4(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&_.W_(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0};
_.v.computeIsBackstage=function(N){return N};
_.v.onYtCommentboxDismiss=function(){_.H4(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.v.removePrefilledDialog=function(N){if(N==null?0:N.actions){for(var b=N.actions.length-1;b>=0;b--){var S=void 0;((S=_.t(N.actions[b],YPO))==null?0:S.dialog)&&delete N.actions[b]}this.set("data",void 0);this.set("data",N)}};
_.v.getPrefilledBackstagePostDialog=function(N){if(N)for(var b=0;b<N.length;b++){var S=N[b],P=void 0;if((P=_.t(S,YPO))==null?0:P.dialog)return _.t(S,YPO).dialog}return null};
_.v.computeBackstagePostDialog=function(N){return N&&(this.getPrefilledBackstagePostDialog(N.actions)||N.createRenderer)};
_.v.dataChanged=function(){if(this.data){var N=this.data.customEmojis,b=this.data.unicodeEmojisUrl;_.mL.clear();b&&_.F44(_.mL,b);N&&_.mL.load(N)}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var N=_.H4(this.hostElement).querySelector("ytd-comment-simplebox-renderer");N?N.openDialog():this.JSC$16288_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onPostHeaderTap=function(){var N;((N=this.data)==null?0:N.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.d0.Object.defineProperties(rH.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.T("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K,C;return!this.hidePanelButton&&_.T("kevlar_watch_comments_panel_button")&&((C=_.t((N=this.data)==null?void 0:(b=N.sortMenu)==null?void 0:(S=b.sortFilterSubMenuRenderer)==null?void 0:(P=S.subMenuItems)==null?void 0:(H=P[0])==null?void 0:(K=H.serviceEndpoint)==null?void 0:K.commandMetadata,_.GY))==null?void 0:C.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.cN("MINIPLAYER_EXPAND_LABEL"),text:_.gy(_.cN("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
rH.prototype.dataChanged=rH.prototype.dataChanged;rH.prototype.onYtCommentboxDismiss=rH.prototype.onYtCommentboxDismiss;rH.prototype.observePrefilledBackstagePostDialog=rH.prototype.observePrefilledBackstagePostDialog;rH.prototype.onYtServiceRequestSent=rH.prototype.onYtServiceRequestSent;rH.prototype.onStampFinished=rH.prototype.onStampFinished;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],rH.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rH.prototype,"compactHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],rH.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],rH.prototype,"hidePanelButton",void 0);_.p([_.U({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rH.prototype,"isBackstage",void 0);_.p([_.U({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.y("design:type",Object)],rH.prototype,"backstagePostDialog",void 0);
_.p([_.U(),_.y("design:type",Object)],rH.prototype,"isPostSchedulingEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],rH.prototype,"useSpaceBetween",null);_.p([_.U({reflectToAttribute:!0}),_.f("data","hidePanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],rH.prototype,"showCommentsPanelButton",null);
_.p([_.f("data","showCommentsPanelButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],rH.prototype,"commentsPanelButtonData",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rH.prototype,"onStampFinished",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],rH.prototype,"onYtServiceRequestSent",null);
_.p([_.W4("data.actions"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rH.prototype,"observePrefilledBackstagePostDialog",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],rH.prototype,"onYtCommentboxDismiss",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rH.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],rH);
_.X(rH,"ytd-comments-header-renderer",function(){if(oVZ!==void 0)return oVZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return oVZ=N},{mode:1});var iVZ;var cZ=function(){return _.z.apply(this,arguments)||this};
_.F(cZ,_.z);_.p([_.U(),_.y("design:type",Object)],cZ.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.p([_.Uj({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],cZ);
_.X(cZ,"ytd-destination-button-renderer",function(){if(iVZ!==void 0)return iVZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return iVZ=N},{mode:1});var JXc;var as=function(){var N=_.z.apply(this,arguments)||this;N.isRichGrid=!1;N.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return N};
_.F(as,_.z);_.v=as.prototype;_.v.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.v.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.v.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var N;if((N=this.data)==null||!N.isExpanded){N=this.hostElement.clientWidth;var b;if(N&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((N+4)/214);N=this.data.destinationButtons.length;var S=Math.ceil(N/b);this.fullyVisibleRows=N%b===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}}}};
_.v.updateRichGridDestinationButtonsVisibility=function(){var N,b;if(this.isRichGrid&&((N=this.data)==null||!N.isExpanded)&&(b=this.data)!=null&&b.destinationButtons){N=this.richGridItemsPerRow+1;b=this.data.destinationButtons.length;var S=Math.ceil(b/N);this.fullyVisibleRows=b%N===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
_.v.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
as.prototype.updateRichGridDestinationButtonsVisibility=as.prototype.updateRichGridDestinationButtonsVisibility;_.p([_.U(),_.y("design:type",Object)],as.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],as.prototype,"fullyVisibleRows",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],as.prototype,"isShowMoreVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],as.prototype,"isRichGrid",void 0);
_.p([_.U({selector:_.xG,value:0}),_.y("design:type",Number)],as.prototype,"richGridItemsPerRow",void 0);_.p([_.U(),_.y("design:type",Object)],as.prototype,"gridStateActionMap",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],as.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],as.prototype,"ytdReduxBehavior",void 0);_.p([_.W4("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],as.prototype,"updateRichGridDestinationButtonsVisibility",null);_.p([_.Uj({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],as);
_.X(as,"ytd-destination-shelf-renderer",function(){if(JXc!==void 0)return JXc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return JXc=N},{mode:1});var UGb;var Rs=function(){return _.z.apply(this,arguments)||this};
_.F(Rs,_.z);Rs.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Rs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rs.prototype,"data",void 0);_.p([_.Uj({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Rs);
_.X(Rs,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(UGb!==void 0)return UGb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return UGb=N},{mode:1});var ZVV;var WZ=function(){var N=_.z.apply(this,arguments)||this;N.disableAnimation=!1;N.isSlimlineSurvey=!1;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;return N};
_.F(WZ,_.z);WZ.prototype.onTap=function(N){N.preventDefault();this.data&&_.bC(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.d0.Object.defineProperties(WZ.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H;return((N=this.data)==null?0:N.checked)?(b=this.data)==null?void 0:(S=b.onStateIcon)==null?void 0:S.iconType:(P=this.data)==null?void 0:(H=P.defaultStateIcon)==null?void 0:H.iconType}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],WZ.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WZ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],WZ.prototype,"disableAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],WZ.prototype,"isSlimlineSurvey",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],WZ.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],WZ.prototype,"isShortsStyle",void 0);_.p([_.f("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],WZ.prototype,"isAnimatedIcon",null);
_.p([_.f("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Number),_.y("design:paramtypes",[])],WZ.prototype,"iconSize",null);_.p([_.f("isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],WZ.prototype,"isDarkTheme",null);_.p([_.f("data.checked"),_.y("design:type",Object),_.y("design:paramtypes",[])],WZ.prototype,"icon",null);_.p([_.Uj({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],WZ);
_.X(WZ,"ytd-rating-survey-option-renderer",function(){if(ZVV!==void 0)return ZVV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ZVV=N},{mode:2});var jKl;var nY=function(){var N=_.z.apply(this,arguments)||this;N.firstResponseText=null;N.lastResponseText=null;N.selectedNonStarOption=null;N.hideOptions=!1;N.hideUndoButton=!0;N.disableAnimation=!1;N.showResponseRangeText=!1;N.selectedRatingIndex=-1;N.isSlimlineSurvey=!1;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;N.slimlineSurveyRatingSelectedIndex=-1;return N};
_.F(nY,_.z);_.v=nY.prototype;_.v.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.v.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.v.onOptionChange=function(N,b){var S=this;N=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(C,G){C.responseText===b.responseText?S.isSlimlineSurvey?(S.selectedRatingIndex=G,S.ytdReduxBehavior.dispatch(Ymb(G))):(S.setSurveyOptionValue(G,!0,"checked"),S.setSurveyOptionValue(G,!0,"selected")):(S.setSurveyOptionValue(G,!1,"checked"),S.setSurveyOptionValue(G,
!1,"selected"))});
else if(N)this.selectedNonStarOption=b,this.hideOptions=!0;else{var P=this.ytRendererBehavior.getSimpleString(b.responseText),H=!0;this.getOptionRenderers().forEach(function(C,G){S.setSurveyOptionValue(G,H,"checked");S.setSurveyOptionValue(G,!1,"selected");S.ytRendererBehavior.getSimpleString(C.responseText)===P&&(H=!1,S.setSurveyOptionValue(G,!0,"selected"))})}N=b.responseEndpoint;
var K;b.followUpCommand&&(K=_.t(b.followUpCommand,UPk));this.isSlimlineSurvey?(this.resetComponent(),_.St(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.St(this.hostElement,"ytd-inline-survey-rating-select-action",[N,K])};
_.v.showSelectedOption=function(){var N=this;_.Dj.addJob(function(){var b=N.getOptionRenderers()[N.slimlineSurveyRatingSelectedIndex];N.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)};
_.v.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(N){var b;return(b=_.t(N,jy4))!=null?b:{}}):[]};
_.v.onUndoClick=function(){this.resetComponent();_.St(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.v.setSurveyOptionValue=function(N,b,S){this.notifyPath("data.ratings."+N+".ratingSurveyOptionRenderer."+S);this.set("data.ratings."+N+".ratingSurveyOptionRenderer."+S,b)};
_.v.resetComponent=function(){var N=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),S,P;this.firstResponseText=(P=(S=b[0])==null?void 0:S.responseText)!=null?P:null;var H,K;this.lastResponseText=(K=(H=b[b.length-1])==null?void 0:H.responseText)!=null?K:null;b.forEach(function(C,G){N.setSurveyOptionValue(G,!1,"checked");N.setSurveyOptionValue(G,!1,"selected")})};
_.d0.Object.defineProperties(nY.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
nY.prototype.onOptionChange=nY.prototype.onOptionChange;nY.prototype.dataChanged=nY.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],nY.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],nY.prototype,"firstResponseText",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"lastResponseText",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"selectedNonStarOption",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"hideOptions",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"hideUndoButton",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"disableAnimation",void 0);
_.p([_.U(),_.y("design:type",Object)],nY.prototype,"showResponseRangeText",void 0);_.p([_.U(),_.y("design:type",Object)],nY.prototype,"selectedRatingIndex",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"isSlimlineSurvey",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nY.prototype,"isShortsStyle",void 0);_.p([_.U({selector:function(N){return N.ui.slimlineSurveyRatingSelectedIndex}}),
_.y("design:type",Object)],nY.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.p([_.f("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],nY.prototype,"isSingleSelect",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nY.prototype,"dataChanged",null);
_.p([_.RA("ytd-rating-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],nY.prototype,"onOptionChange",null);_.p([_.Uj({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],nY);
_.X(nY,"ytd-rating-survey-renderer",function(){if(jKl!==void 0)return jKl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jKl=N},{mode:1});var zvZ;var AXE;var XIk;var ske=(RJ.FIRSTDAYOFWEEK+1)%7,EV4=function(N,b,S,P){var H="";if(P.selection&&bP9(P.selection))rO(N,P.selection)&&(H+=" selected");else if(P.selection&&SgO(P.selection)){var K=P.selection.selectionState||"START_DATE";rO(N,P.selection.start)&&(H+=" period-start ",K==="START_DATE"&&(H+="selected"));rO(N,P.selection.end)&&(H+=" period-end ",K==="END_DATE"&&(H+="selected"));cP(N,P.selection.start)||cP(P.selection.end,N)||(H+=" highlighted")}if(cP(b,P.start)||cP(P.end,b))H+=" disabled";P.circleToday&&
rO(b,S)&&(H+=" today");return H};var dH=function(){return _.z.apply(this,arguments)||this};
_.F(dH,_.z);_.v=dH.prototype;_.v.attached=function(){var N=this;_.W_(this,function(){N.JSC$16322_calendarMain.scrollHeight>0&&(N.calendarConfig.selection?N.scrollToDate(POa(N.calendarConfig.selection)):N.scrollToDate(N.calendarConfig.end))})};
_.v.updateSelection=function(N){N=Kuu(Object.assign({},this.calendarConfig,{selection:N}),EV4);this.splice.apply(this,["renderData.months",0,N.length].concat(_.IX(N)))};
_.v.scrollToDate=function(N){this.renderData&&(N=vKo(N,this.renderData),N!==void 0&&this.JSC$16322_calendarMain.scrollToIndex(N))};
_.v.scrollToNextMonth=function(){this.JSC$16322_calendarMain.scrollToIndex(this.JSC$16322_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$16322_calendarMain.firstVisibleIndex===0&&this.JSC$16322_calendarMain.scrollTo(0,0);this.JSC$16322_calendarMain.scrollToIndex(this.JSC$16322_calendarMain.firstVisibleIndex-1)};
_.v.handleDayClick=function(N){_.St(this.hostElement,"ytd-calendar-date-clicked",[N.model.day.date])};
_.v.handleDayMouseDown=function(N){N.preventDefault();_.St(this.hostElement,"ytd-calendar-date-mousedown",[N.model.day.date])};
_.v.handleDayMouseUp=function(N){_.St(this.hostElement,"ytd-calendar-date-mouseup",[N.model.day.date])};
_.v.handleDayMouseEnter=function(N){N.preventDefault();_.St(this.hostElement,"ytd-calendar-date-mouseenter",[N.model.day.date])};
_.v.handleDayMouseLeave=function(N){_.St(this.hostElement,"ytd-calendar-date-mouseleave",[N.model.day.date])};
_.d0.Object.defineProperties(dH.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var N=this.calendarConfig,b=EV4;b=b===void 0?EV4:b;for(var S=[],P=0;P<7;P++)S.push(RJ.NARROWWEEKDAYS[(P+ske)%7]);return{months:Kuu(N,b),daysOfWeekLabel:S}}}});
_.p([_.U(),_.y("design:type",Object)],dH.prototype,"calendarConfig",void 0);_.p([_.dq("#calendar-main"),_.y("design:type",Object)],dH.prototype,"JSC$16322_calendarMain",void 0);_.p([_.f("calendarConfig"),_.y("design:type",Object),_.y("design:paramtypes",[])],dH.prototype,"renderData",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],dH);
_.X(dH,"ytd-scrollable-calendar",function(){if(XIk!==void 0)return XIk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return XIk=N},{mode:2});var pIZ;var Y9c;var m7=function(){var N=_.z.apply(this,arguments)||this;N.hideCharCounter=!1;N.hideLabel=!1;N.noLabelFloat=!1;N.autoValidate=!0;N.invalid=!1;N.disabled=!1;N.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return N};
_.F(m7,_.z);_.v=m7.prototype;_.v.reset=function(N){this.value=N&&this.data?this.data.value=N:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.v.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.v.focusTextInput=function(){this.input.focus()};
_.v.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.v.valueChanged=function(){var N,b;if(((N=this.data)==null?0:N.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var S;((S=this.data)==null?void 0:S.value)!==void 0||this.value||(this.value="")}};
_.v.computeLabel=function(N,b){return b?"":_.es(N)};
_.v.computeAriaLabel=function(N,b){return b?_.es(N):""};
_.v.computeErrorMessage=function(N,b,S,P){!N&&b?N=S||this.strings.REQUIRED_LABEL:(N=_.es(P),N=_.Go(N,"&")?"document"in _.Ps?ph9(N):YLz(N):N);return N};
_.v.computeType=function(N){return N==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.v.onTextValueChanged=function(N){this.value=N.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.v.handleUpdateTextInputFormFieldRendererCommand=function(N){(N=_.t(N,Spz))&&this.data&&this.data.id===N.id&&(N.invalid!==void 0&&(this.invalid=N.invalid),N.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",N.invalidValueErrorMessage))};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("value-changed",this.value))};
_.v.updateInvalidFromBinding=function(N){this.invalid=N.detail.value};
_.d0.Object.defineProperties(m7.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var N;return!((N=this.data)==null||!N.isMultiline)}}});
m7.prototype.valueChangedForBinding=m7.prototype.valueChangedForBinding;m7.prototype.valueChanged=m7.prototype.valueChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],m7.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],m7.prototype,"value",void 0);_.p([_.U(),_.y("design:type",String)],m7.prototype,"pattern",void 0);_.p([_.U(),_.y("design:type",String)],m7.prototype,"errorMessage",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],m7.prototype,"componentStyle",void 0);_.p([_.U(),_.y("design:type",Object)],m7.prototype,"hideCharCounter",void 0);
_.p([_.U(),_.y("design:type",Object)],m7.prototype,"hideLabel",void 0);_.p([_.U(),_.y("design:type",Object)],m7.prototype,"noLabelFloat",void 0);_.p([_.U(),_.y("design:type",Function)],m7.prototype,"onValueChanged",void 0);_.p([_.U(),_.y("design:type",Boolean)],m7.prototype,"isMultilineOverride",void 0);_.p([_.U(),_.y("design:type",Object)],m7.prototype,"autoValidate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],m7.prototype,"invalid",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],m7.prototype,"disabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],m7.prototype,"enableOverlayTheme",void 0);_.p([_.U({value:{REQUIRED_LABEL:_.cN("REQUIRED_LABEL",void 0,"Required")}}),_.y("design:type",Object)],m7.prototype,"strings",void 0);_.p([_.dq("#input"),_.y("design:type",Object)],m7.prototype,"input",void 0);
_.p([_.f("data","isMultilineOverride"),_.y("design:type",Object),_.y("design:paramtypes",[])],m7.prototype,"isMultiline",null);_.p([_.t_("data.value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m7.prototype,"valueChanged",null);_.p([_.W4("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],m7.prototype,"valueChangedForBinding",null);_.p([_.J_({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],m7);
_.X(m7,"yt-text-input-form-field-renderer",function(){if(Y9c===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;pIZ===void 0&&(pIZ=document.createElement("template"));var P=pIZ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Y9c=N}N=Y9c;return N},{mode:2});var k$=function(){var N=_.z.apply(this,arguments)||this;N.data=void 0;N.selectionState="START_DATE";N.isStartDateInvalid=!1;N.isEndDateInvalid=!1;N.autoapply=!1;N.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return N};
_.F(k$,_.z);_.v=k$.prototype;_.v.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.v.focus=function(){this.startDateInput.focus()};
_.v.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:aJ(this.data.selection.start),end:aJ(this.data.selection.end)})};
_.v.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.$Z(this.selectionState)}};
_.v.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.v.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.v.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var N=this.calendar.calendarConfig,b=N.end;N=COu({start:N.start,end:this.endDate||b},this.startDateInput.value||"");this.isStartDateInvalid=!N.isValid;N.isValid&&(N=N.value,this.selection=this.endDate?{start:N,end:this.endDate}:N,this.calendar.scrollToDate(N));this.updateInvalidState()}};
_.v.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var N=this.calendar.calendarConfig,b=N.start;N=COu({start:this.startDate||b,end:N.end},this.endDateInput.value||"");this.isEndDateInvalid=!N.isValid;N.isValid&&(N=N.value,this.selection={start:this.startDate,end:N},this.calendar.scrollToDate(N));this.updateInvalidState()}};
_.v.handleCalendarDateClicked=function(N){var b=this.selection&&POa(this.selection),S=this.selection&&HPo(this.selection);b&&!cP(N,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:N},this.selectionState="START_DATE"):(S&&!cP(S,N)?this.selection={start:N,end:S}:this.selection=N,this.selectionState="END_DATE")};
_.v.handleCalendarDateMouseDown=function(N){this.selection&&!bP9(this.selection)&&(this.dragPivot=rO(N,this.selection.start)?this.selection.end:rO(N,this.selection.end)?this.selection.start:N)};
_.v.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.v.handleCalendarDateMouseEnter=function(N){this.dragPivot&&(this.selection={start:function(b,S){return cP(b,S)?b:S}(this.dragPivot,N),
end:function(b,S){return cP(b,S)?S:b}(this.dragPivot,N)},this.dragPivot||(this.selectionState="START_DATE"))};
_.v.handleCalendarDateMouseLeave=function(){};
_.v.handleCalendarSubmitDateRange=function(){this.selection&&!bP9(this.selection)&&_.St(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.v.updateInvalidState=function(){var N=function(b,S){S?b.setAttribute("invalid",""):b.removeAttribute("invalid")};
N(this.startDateInput,this.isStartDateInvalid);N(this.endDateInput,this.isEndDateInvalid)};
_.v.updateDateStrings=function(){this.selection&&(bP9(this.selection)?Nrf(this.selection):(Nrf(this.selection.start),Nrf(this.selection.end)))};
_.v.updateCalendarSelection=function(N){this.calendar.updateSelection(Object.assign({},N,{selectionState:this.selectionState}))};
_.v.updateIsStartDateInvalidFromBinding=function(N){this.isStartDateInvalid=N.detail.value};
_.v.updateIsEndDateInvalidFromBinding=function(N){this.isEndDateInvalid=N.detail.value};
_.v.updateStartDateStringFromBinding=function(){};
_.v.updateEndDateStringFromBinding=function(){};
_.d0.Object.defineProperties(k$.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:aJ(this.data.dateRangeStart),end:aJ(this.data.dateRangeEnd),selection:{start:aJ(this.data.selection.start),end:aJ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&POa(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&HPo(this.selection)}}});
k$.prototype.resetTextboxes=k$.prototype.resetTextboxes;k$.prototype.observeSelection=k$.prototype.observeSelection;k$.prototype.dataChanged=k$.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#calendar"),_.y("design:type",Object)],k$.prototype,"calendar",void 0);
_.p([_.dq("#start-date"),_.y("design:type",Object)],k$.prototype,"startDateInput",void 0);_.p([_.dq("#end-date"),_.y("design:type",Object)],k$.prototype,"endDateInput",void 0);_.p([_.U(),_.y("design:type",Object)],k$.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],k$.prototype,"selection",void 0);_.p([_.U(),_.y("design:type",String)],k$.prototype,"selectionState",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k$.prototype,"calendarConfig",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k$.prototype,"errorMessage",null);_.p([_.f("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],k$.prototype,"startDate",null);_.p([_.f("selection"),_.y("design:type",Object),_.y("design:paramtypes",[])],k$.prototype,"endDate",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k$.prototype,"dataChanged",null);
_.p([_.W4("selection","selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k$.prototype,"observeSelection",null);_.p([_.W4("selectionState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k$.prototype,"resetTextboxes",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],k$);
_.X(k$,"ytd-date-period-picker-renderer",function(){if(AXE!==void 0)return AXE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return AXE=N},{mode:1});var TO=function(){var N=_.z.apply(this,arguments)||this;var b={};N.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return N};
_.F(TO,_.z);TO.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
TO.prototype.handleDateRangeUpdated=function(){};
_.p([_.U(),_.y("design:type",Object)],TO.prototype,"data",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],TO.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],TO.prototype,"rendererstamperBehavior",void 0);_.p([_.Uj({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],TO);
_.X(TO,"ytd-report-history-section-header-renderer",function(){if(zvZ!==void 0)return zvZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return zvZ=N},{mode:1});var yXO;var IZ4;var DGc;var tn=function(){return _.z.apply(this,arguments)||this};
_.F(tn,_.z);_.d0.Object.defineProperties(tn.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?0:(b=N.icon)==null?0:b.iconType)?_.C7(this.data.icon.iconType):""}}});
_.p([_.U(),_.y("design:type",Object)],tn.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],tn.prototype,"icon",null);_.p([_.Uj({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],tn);
_.X(tn,"ytd-report-history-table-text-cell-renderer",function(){if(DGc!==void 0)return DGc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return DGc=N},{mode:1});var MF=function(){return _.z.apply(this,arguments)||this};
_.F(MF,_.z);MF.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MF.prototype,"data",void 0);_.p([_.Uj({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],MF);
_.X(MF,"ytd-report-history-table-reason-cell-renderer",function(){if(IZ4!==void 0)return IZ4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return IZ4=N},{mode:1});var F4=function(){return _.z.apply(this,arguments)||this};
_.F(F4,_.z);F4.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],F4.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],F4.prototype,"data",void 0);_.p([_.Uj({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],F4);
_.X(F4,"ytd-report-history-table-cell-renderer",function(){if(yXO!==void 0)return yXO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return yXO=N},{mode:1});var VNk;var BZ=function(){var N=_.z.apply(this,arguments)||this;N.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return N};
_.F(BZ,_.z);BZ.prototype.onDataChanged=function(){var N;if((N=this.data)==null?0:N.style)this.componentStyle=this.getStyleName(this.data.style)};
BZ.prototype.getCellForColumn=function(N){return this.cells.find(function(b){var S;return((S=_.t(b==null?void 0:b.cell,Xo4)||_.t(b==null?void 0:b.cell,AHc))==null?void 0:S.columnId)===N.type})};
BZ.prototype.getClassForColumn=function(N){switch(N){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
BZ.prototype.getStyleName=function(N){switch(N){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.d0.Object.defineProperties(BZ.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.cells)||[]).map(function(b){return _.t(b,z2O)})}}});
BZ.prototype.onDataChanged=BZ.prototype.onDataChanged;_.p([_.U(),_.y("design:type",Object)],BZ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],BZ.prototype,"columnRenderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],BZ.prototype,"componentStyle",void 0);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],BZ.prototype,"cells",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BZ.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],BZ);
_.X(BZ,"ytd-report-history-table-row-renderer",function(){if(VNk!==void 0)return VNk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return VNk=N},{mode:1});var gVN;var ev9;var GVL={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},r99={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var l6=function(){return _.z.apply(this,arguments)||this};
_.F(l6,_.z);l6.prototype.configureRendererStamper=function(){return{"data.rows":{id:"table-body",mapping:{reportHistoryTableRowRenderer:{component:"ytd-report-history-table-row-renderer",properties:{columnRenderData:"[[columnRenderData]]"},attributes:{role:"row"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",attributes:{role:"row"}}}}}};
l6.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.d0.Object.defineProperties(l6.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.columns)?nKL(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return RIE(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var N=this.tableSpec,b=GVL;b=b===void 0?r99:b;b=Wus(N.columnDimensions,N.columnsToShow||[],b);N=0;b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,N+=S.minWidth+S.paddingLeft+S.paddingRight;return N}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.p([_.L(_.F3),_.y("design:type",Object)],l6.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],l6.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],l6.prototype,"tableSpec",null);_.p([_.f("tableSpec"),_.y("design:type",Array),_.y("design:paramtypes",[])],l6.prototype,"columnRenderData",null);
_.p([_.f("tableSpec"),_.y("design:type",Number),_.y("design:paramtypes",[])],l6.prototype,"totalMinWidth",null);_.p([_.f("totalMinWidth"),_.y("design:type",String),_.y("design:paramtypes",[])],l6.prototype,"tableWidthStyle",null);_.p([_.Uj({is:"ytd-table-renderer",disableElementRegistration:!0})],l6);
_.X(l6,"ytd-table-renderer",function(){if(ev9!==void 0)return ev9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ev9=N},{mode:1});var LY=function(){return _.z.apply(this,arguments)||this};
_.F(LY,_.z);LY.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],LY.prototype,"data",void 0);_.p([_.Uj({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],LY);
_.X(LY,"ytd-report-reason-history-modal-renderer",function(){if(gVN!==void 0)return gVN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gVN=N},{mode:1});var $Gl;var hv9;var q9l;var fY=function(){return _.z.apply(this,arguments)||this};
_.F(fY,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fY.prototype,"data",void 0);_.p([_.Uj({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],fY);
_.X(fY,"ytd-profile-column-stats-entry-renderer",function(){if(q9l!==void 0)return q9l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return q9l=N},{mode:1});var wIl;var u6=function(){return _.z.apply(this,arguments)||this};
_.F(u6,_.z);u6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],u6.prototype,"data",void 0);_.p([_.Uj({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],u6);
_.X(u6,"ytd-profile-column-stats-renderer",function(){if(wIl!==void 0)return wIl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wIl=N},{mode:1});var NM9;var QH=function(){return _.z.apply(this,arguments)||this};
_.F(QH,_.z);_.d0.Object.defineProperties(QH.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.useThumbnailSize)return 80;var b,S;N=(b=this.data)==null?void 0:(S=b.thumbnail)==null?void 0:S.thumbnails;var P;return N&&((P=N[0])==null?void 0:P.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.useThumbnailSize)return 80;var b,S;N=(b=this.data)==null?void 0:(S=b.thumbnail)==null?void 0:S.thumbnails;var P;return N&&((P=N[0])==null?void 0:P.height)||80}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],QH.prototype,"componentStyle",void 0);_.p([_.f("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],QH.prototype,"thumbnailWidth",null);
_.p([_.f("data.useThumbnailSize"),_.y("design:type",Object),_.y("design:paramtypes",[])],QH.prototype,"thumbnailHeight",null);_.p([_.Uj({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],QH);
_.X(QH,"ytd-profile-column-user-info-renderer",function(){if(NM9!==void 0)return NM9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return NM9=N},{mode:1});var x$=function(){return _.z.apply(this,arguments)||this};
_.F(x$,_.z);x$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],x$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],x$.prototype,"componentStyle",void 0);_.p([_.Uj({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],x$);
_.X(x$,"ytd-profile-column-renderer",function(){if(hv9!==void 0)return hv9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return hv9=N},{mode:1});var i6=function(){var N=_.z.apply(this,arguments)||this;N.componentStyle="NON_CENTERED_PROFILE";return N};
_.F(i6,_.z);i6.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
i6.prototype.getIcon=function(N){return N?"settings:"+N.toLowerCase():null};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],i6.prototype,"data",void 0);_.p([_.Uj({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],i6);
_.X(i6,"ytd-page-introduction-renderer",function(){if($Gl!==void 0)return $Gl;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $Gl=N},{mode:1});var bBE;var Jn=function(){return _.z.apply(this,arguments)||this};
_.F(Jn,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Jn.prototype,"data",void 0);_.p([_.Uj({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Jn);
_.X(Jn,"ytd-report-description-renderer",function(){if(bBE!==void 0)return bBE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bBE=N},{mode:1});var Sk9;var PTE;var Um=function(){return _.z.apply(this,arguments)||this};
_.F(Um,_.z);Um.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Um.prototype,"data",void 0);_.p([_.Uj({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Um);
_.X(Um,"ytd-video-report-renderer",function(){if(PTE!==void 0)return PTE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PTE=N},{mode:1});var HBd;_.lo("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.lo("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var ZF=function(){return _.z.apply(this,arguments)||this};
_.F(ZF,_.z);ZF.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
ZF.prototype.computeMessageStyle=function(N){return N};
ZF.prototype.computeButtonOverride=function(N){var b;if((N==null?0:(b=N.style)==null?0:b.value)&&N.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ZF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],ZF.prototype,"shelf",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],ZF.prototype,"panel",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.y("design:type",Boolean)],ZF.prototype,"componentStyle",void 0);_.p([_.U({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],ZF.prototype,"buttonOverride",void 0);_.p([_.Uj({is:"ytd-message-renderer",disableElementRegistration:!0})],ZF);
_.X(ZF,"ytd-message-renderer",function(){if(HBd!==void 0)return HBd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return HBd=N},{mode:1});var jm=function(){return _.z.apply(this,arguments)||this};
_.F(jm,_.z);jm.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}};
jm.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
jm.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.d0.Object.defineProperties(jm.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!(((N=this.data)==null?0:N.header)&&((b=this.data)==null?0:b.table))}}});
jm.prototype.onRequestError=jm.prototype.onRequestError;_.p([_.L(_.F3),_.y("design:type",Object)],jm.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jm.prototype,"data",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jm.prototype,"isUnifiedReportHistory",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jm.prototype,"onRequestError",null);_.p([_.Uj({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],jm);
_.X(jm,"ytd-report-history-section-renderer",function(){if(Sk9!==void 0)return Sk9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Sk9=N},{mode:1});var sCN;var zO=function(){var N=_.z.apply(this,arguments)||this;N.answerExpanded=!1;return N};
_.F(zO,_.z);zO.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zO.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],zO.prototype,"answerExpanded",void 0);_.p([_.Uj({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],zO);
_.X(zO,"ytd-handles-claiming-faq-renderer",function(){if(sCN!==void 0)return sCN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return sCN=N},{mode:1});var Ks4;var v1c=function(){return _.z.apply(this,arguments)||this};
_.F(v1c,_.z);_.p([_.U(),_.y("design:type",Object)],v1c.prototype,"data",void 0);_.p([_.Uj({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],v1c);
_.X(v1c,"ytd-handles-claiming-faq-section-renderer",function(){if(Ks4!==void 0)return Ks4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ks4=N},{mode:1});var OBO;var An=function(){var N=_.z.apply(this,arguments)||this;N.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";N.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";N.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";N.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";N.leftSquiggly=N.leftSquigglyLight;N.rightSquiggly=N.rightSquigglyLight;
N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return N};
_.F(An,_.z);_.v=An.prototype;_.v.updateLeftSquigglyStyle=function(){_.rq(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.v.updateRightSquigglyStyle=function(){_.rq(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.v.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),N?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
An.prototype.updateRightSquigglyStyle=An.prototype.updateRightSquigglyStyle;An.prototype.updateLeftSquigglyStyle=An.prototype.updateLeftSquigglyStyle;_.p([_.U(),_.y("design:type",Object)],An.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],An.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",String)],An.prototype,"leftSquiggly",void 0);_.p([_.U(),_.y("design:type",String)],An.prototype,"rightSquiggly",void 0);
_.p([_.W4("leftSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],An.prototype,"updateLeftSquigglyStyle",null);_.p([_.W4("rightSquiggly"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],An.prototype,"updateRightSquigglyStyle",null);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],An.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],An.prototype,"actionButtonOverride",void 0);_.p([_.Uj({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],An);
_.X(An,"ytd-handles-claiming-header-renderer",function(){if(OBO!==void 0)return OBO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return OBO=N},{mode:1});var CTd;var X4=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";N.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";N.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";N.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
N.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";N.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";N.image0SquigglyBackground=N.image0LightSquigglyBackground;N.image1SquigglyBackground=N.image1LightSquigglyBackground;N.image3SquigglyBackground=N.image3LightSquigglyBackground;return N};
_.F(X4,_.z);_.v=X4.prototype;_.v.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.v.onDataChanged=function(){this.updateTitleAndImages()};
_.v.onThemeChanged=function(){this.updateTitleAndImages()};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
_.v.updateImage0SquigglyBackground=function(){_.rq(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.v.updateImage1SquigglyBackground=function(){_.rq(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.v.updateImage3SquigglyBackground=function(){_.rq(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.v.updateTitleAndImages=function(){var N,b;((N=this.data)==null?void 0:(b=N.titleImages)==null?void 0:b.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
X4.prototype.updateImage3SquigglyBackground=X4.prototype.updateImage3SquigglyBackground;X4.prototype.updateImage1SquigglyBackground=X4.prototype.updateImage1SquigglyBackground;X4.prototype.updateImage0SquigglyBackground=X4.prototype.updateImage0SquigglyBackground;X4.prototype.onThemeChanged=X4.prototype.onThemeChanged;X4.prototype.onDataChanged=X4.prototype.onDataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],X4.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],X4.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"title0",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"title1",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"title2",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"title3",void 0);
_.p([_.U(),_.y("design:type",Object)],X4.prototype,"title4",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"image0",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"image1",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"image2",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"image3",void 0);_.p([_.U(),_.y("design:type",Object)],X4.prototype,"image4",void 0);_.p([_.U(),_.y("design:type",String)],X4.prototype,"image0SquigglyBackground",void 0);
_.p([_.U(),_.y("design:type",String)],X4.prototype,"image1SquigglyBackground",void 0);_.p([_.U(),_.y("design:type",String)],X4.prototype,"image3SquigglyBackground",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X4.prototype,"onDataChanged",null);_.p([_.W4("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X4.prototype,"onThemeChanged",null);
_.p([_.W4("image0SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X4.prototype,"updateImage0SquigglyBackground",null);_.p([_.W4("image1SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X4.prototype,"updateImage1SquigglyBackground",null);
_.p([_.W4("image3SquigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],X4.prototype,"updateImage3SquigglyBackground",null);_.p([_.Uj({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],X4);
_.X(X4,"ytd-handles-claiming-title-images-section-renderer",function(){if(CTd!==void 0)return CTd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return CTd=N},{mode:1});var G_9;var Em=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(Em,_.z);Em.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
Em.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N)};
Em.prototype.onCopyButtonClick=function(){var N=this,b,S,P;return _.r(function(H){return(b=N.data)!=null&&b.primaryChannelUrl?H.yield(navigator.clipboard.writeText(((S=N.data)==null?0:S.encodedChannelUrl)?N.data.encodedChannelUrl:"https://"+_.es((P=N.data)==null?void 0:P.primaryChannelUrl)),0):H.jumpTo(0)})};
_.p([_.U(),_.y("design:type",Object)],Em.prototype,"data",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Em.prototype,"ytComponentBehavior",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Em.prototype,"isDarkTheme",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Em.prototype,"ytActionHandlerBehavior",void 0);_.p([_.Uj({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Em);
_.X(Em,"ytd-handles-claiming-update-social-renderer",function(){if(G_9!==void 0)return G_9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return G_9=N},{mode:1});var rGZ;var pY=function(){var N=_.z.apply(this,arguments)||this;N.JSC$16416_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";N.JSC$16416_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.squigglyBackground=N.JSC$16416_squigglyBackgroundLight;return N};
_.F(pY,_.z);pY.prototype.updateSquigglyBackgroundStyle=function(){_.rq(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
pY.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.squigglyBackground=N?this.JSC$16416_squigglyBackgroundDark:this.JSC$16416_squigglyBackgroundLight};
pY.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),this.squigglyBackground=N?this.JSC$16416_squigglyBackgroundDark:this.JSC$16416_squigglyBackgroundLight)};
pY.prototype.updateSquigglyBackgroundStyle=pY.prototype.updateSquigglyBackgroundStyle;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pY.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],pY.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",String)],pY.prototype,"squigglyBackground",void 0);_.p([_.W4("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pY.prototype,"updateSquigglyBackgroundStyle",null);_.p([_.Uj({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],pY);
_.X(pY,"ytd-handles-claiming-vanity-info-renderer",function(){if(rGZ!==void 0)return rGZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return rGZ=N},{mode:1});var cGO;var Y$=function(){var N=_.z.apply(this,arguments)||this;N.JSC$16419_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";N.JSC$16419_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";N.squigglyBackground=N.JSC$16419_squigglyBackgroundLight;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(Y$,_.z);_.v=Y$.prototype;_.v.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),this.squigglyBackground=N?this.JSC$16419_squigglyBackgroundDark:this.JSC$16419_squigglyBackgroundLight)};
_.v.updateSquigglyBackgroundStyle=function(){_.rq(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.v.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.v.detached=function(){this.stop()};
_.v.stop=function(){this.playerElement.stop()};
_.v.setupVideoPlayer=function(){var N=this,b,S;return _.r(function(P){b=N.data.videoId;S="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";N.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:S});_.Zd(P)})};
Y$.prototype.onDataChanged=Y$.prototype.onDataChanged;Y$.prototype.updateSquigglyBackgroundStyle=Y$.prototype.updateSquigglyBackgroundStyle;_.p([_.U({value:!1}),_.y("design:type",Boolean)],Y$.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",String)],Y$.prototype,"squigglyBackground",void 0);_.p([_.dq("#player"),_.y("design:type",Object)],Y$.prototype,"playerElement",void 0);_.p([_.U(),_.y("design:type",Object)],Y$.prototype,"data",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Y$.prototype,"ytActionHandlerBehavior",void 0);_.p([_.W4("squigglyBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y$.prototype,"updateSquigglyBackgroundStyle",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y$.prototype,"onDataChanged",null);
_.p([_.Uj({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Y$);
_.X(Y$,"ytd-handles-claiming-video-item-renderer",function(){if(cGO!==void 0)return cGO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return cGO=N},{mode:1});var a59;var Is=function(){var N=_.kq.apply(this,arguments)||this;N.dragging=!1;N.dragMouseStart=0;N.dragOffsetStart=0;N.containerWidthDiff=0;N.boundPrevClick=function(){N.set("offset",yH(N,N.offset-(N.scrollDistance||320)))};
N.boundNextClick=function(){N.set("offset",yH(N,N.offset+(N.scrollDistance||320)))};
N.boundScrollContainerMouseDown=function(b){N.dragMouseStart=b.clientX;N.dragOffsetStart=N.offset;N.dragging=!0};
N.boundScrollContainerDrag=function(b){N.dragging&&N.set("offset",yH(N,N.dragOffsetStart-(b.clientX-N.dragMouseStart)))};
N.boundMouseUp=function(){N.onMouseUp()};
N.boundWheelScroll=function(b){var S=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?S=b.deltaX:b.shiftKey&&(S=b.deltaY);S!==0&&(N.offset+=S,b.stopPropagation(),b.preventDefault())};
N.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&N.scrollChipIntoView(b)};
return N};
_.F(Is,_.kq);Is.prototype.attached=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container");N.addEventListener("wheel",this.boundWheelScroll);N.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);N.style.touchAction="pan-y";N.addEventListener("pointerdown",this.boundScrollContainerMouseDown);N.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Is.prototype.detached=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container");N.removeEventListener("wheel",this.boundWheelScroll);N.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);N.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);N.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Is.prototype.reset=function(){this.set("offset",0);_.W_(this,this.setContainerWidthDiff);_.W_(this,this.setButtonsState)};
var yH=function(N,b){return Math.min(Math.max(b,0),N.containerWidthDiff)};
_.v=Is.prototype;_.v.onMouseUp=function(){this.dragging=!1};
_.v.transformContainer=function(){this.offset=yH(this,this.offset);var N=_.Vg("HTML_DIR")==="rtl"?"":"-";_.H4(this.hostElement).querySelector("#chips").style.transform="translateX("+N+this.offset+"px)";_.W_(this,this.setButtonsState)};
_.v.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=yH(this,this.offset));this.atStart=this.offset<=0};
_.v.setContainerWidthDiff=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container"),b=_.H4(this.hostElement).querySelector("#chips");N&&b&&(this.containerWidthDiff=b.clientWidth-N.clientWidth)};
_.v.scrollChipIntoView=function(N){var b=_.H4(this.hostElement).querySelector("#scroll-container");if(b){var S=this.atStart?0:106,P=this.atEnd?0:106;N.offsetLeft<this.offset+S?this.offset=yH(this,N.offsetLeft-S):N.offsetLeft+N.clientWidth>this.offset+b.clientWidth-P&&(this.offset=yH(this,N.offsetLeft+N.clientWidth+P-b.clientWidth))}};
Is.prototype.transformContainer=Is.prototype.transformContainer;_.p([_.U({value:0}),_.y("design:type",Number)],Is.prototype,"offset",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],Is.prototype,"atStart",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Is.prototype,"atEnd",void 0);_.p([_.U(),_.y("design:type",Number)],Is.prototype,"scrollDistance",void 0);
_.p([_.W4("offset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Is.prototype,"transformContainer",null);_.p([_.Td()],Is);var RDz;var Wsc;_.DF=_.A(function(N){var b=N.data;N=_.O(_.QF(!1,void 0,"bob3J"));var S=N.next().value,P=N.next().value;N=function(K){if((b==null?void 0:b().state)!==1){var C,G;(G=(C=b()).onTap)==null||G.call(C,K)}};
var H={};return _.c("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ob(function(){var K=_.aN().resolve(_.cq(_.QJ));if(K){P(K.isKeyBoardInUse());var C,G;(G=(C=b()).onFocusIn)==null||G.call(C)}return!1}),
"on:focusout":_.Ob(function(){P(!1);return!1})},_.c(n1k,{shouldWrapInButton:function(){return b().type!==2},
selected:function(){return b().state===0},
onClick:N,isDropdown:function(){return b().type===1},
accessibilityLabel:function(){return b().type===1?void 0:b().accessibilityLabel}},_.c("div",{class:_.KU("ytChipShapeChip",function(){a:switch(b==null?void 0:b().state){case 0:var K="ytChipShapeActive";
break a;case 1:K="ytChipShapeDisabled";break a;default:K="ytChipShapeInactive"}return K},function(){var K=b().type===1||b().type===2,C=b();
return K||C!=null&&C.startIcon?C==null||!C.startIcon||C!=null&&C.text?K?"ytChipShapeEndIconPadding":(C==null?0:C.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var K=b();
if((K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0){var C;K=((C=_.aN().resolve(_.cq(_.T8)))==null?0:C())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else K="";return K},(H.ytChipShapeFocused=function(){var K;
return S()&&((K=b())==null?void 0:K.state)!==1},H))},_.c(_.W,{cond:function(){return b().startIcon},
then:function(){return _.c(_.cX,{icon:function(){var K;return(K=b())==null?void 0:K.startIcon},
className:_.KU(function(){return b().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var K=b(),C,G=(C=_.aN().resolve(_.cq(_.T8)))==null?void 0:C();
return(K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0&&G?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return b().text},_.c(ddc,{shape:b,
onClick:N}),_.c(_.of,{model:{borderRadius:"8px"}}))))},"Lc");
_.DF.idomCompat=!0;var n1k=_.A(function(N){var b=_.Ob(function(S){N.onClick(S);return!1});
return _.c(_.W,{cond:N.shouldWrapInButton,then:function(){return _.c("button",{class:"ytChipShapeButtonReset","on:click":b,role:function(){return N.isDropdown()?"combobox":"tab"},
"aria-label":N.accessibilityLabel,"aria-selected":N.selected},N.children)},
else:function(){return N.children}})},"Mc"),ddc=_.A(function(N){var b=N.shape;
var S=N.onClick;var P=_.Ob(function(H){S(H);return!1});
return _.c(_.Al,null,_.c(_.ZH,{when:function(){return b().type===1}},function(){return _.c(_.cX,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.c(_.ZH,{when:function(){return b().type===2}},function(){return _.c("button",{class:"ytChipShapeButtonReset",
"on:click":P},_.c(_.cX,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.c(_.ZH,{when:function(){return b().type===0}},function(){return _.c(_.nM,null)}))},"Nc");_.qu(_.DF,"chip-shape",{props:{data:_.kg}});var VH=function(){var N=_.z.apply(this,arguments)||this;N.disableDeselectEvent=!1;N.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return N};
_.F(VH,_.z);_.v=VH.prototype;_.v.onSelectChipCommand=function(N){if(!this.selected&&this.data&&(N=_.t(N,D4V),N.targetId&&N.targetId===this.data.targetId))this.onTap()};
_.v.onFilterChipTransformCommand=function(N){if(!this.selected&&this.data){var b;(N=(b=_.t(N,XF9))==null?void 0:b.chipUniqueId)&&N===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.v.dataChanged=function(){var N=this;_.W_(this,function(){N.data&&N.data.isSelected&&!N.selected&&(N.scrollChipIntoView(),N.onTap())})};
_.v.computeChipStyle=function(N){return N!=null?N:"STYLE_DEFAULT"};
_.v.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.St(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.St(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.v.onFocus=function(){var N=_.aN().resolve(_.cq(_.QJ));N&&N.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.v.scrollChipIntoView=function(){_.bC(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.d0.Object.defineProperties(VH.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return FuE({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
VH.prototype.onFocus=VH.prototype.onFocus;VH.prototype.onTap=VH.prototype.onTap;VH.prototype.dataChanged=VH.prototype.dataChanged;_.p([_.L(_.y8),_.y("design:type",Object)],VH.prototype,"ironButtonState",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],VH.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.XX),_.y("design:type",Object)],VH.prototype,"ironA11yKeysBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VH.prototype,"disableDeselectEvent",void 0);_.p([_.U(),_.y("design:type",Object)],VH.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.icon"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],VH.prototype,"hasIcon",null);
_.p([_.U({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.y("design:type",String)],VH.prototype,"chipStyle",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],VH.prototype,"selected",void 0);_.p([_.f("data","selected"),_.y("design:type",Object),_.y("design:paramtypes",[])],VH.prototype,"chipShapeData",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VH.prototype,"dataChanged",null);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VH.prototype,"onTap",null);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VH.prototype,"onFocus",null);_.p([_.J_({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],VH);
_.X(VH,"yt-chip-cloud-chip-renderer",function(){if(Wsc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;RDz===void 0&&(RDz=document.createElement("template"));var P=RDz;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Wsc=N}N=Wsc;return N},{mode:2});var Lu_=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.mdd=_.A(function(N){function b(){if(Lu_.has(N.data().displayType)){var R=!P(),n;if((n=N.disableDeselection)==null||!n.call(N)||R){N.data().selected=R;n=Object.assign({},C(),{selected:R});G(n);var d;(d=N.callback)==null||d.call(N,n,R)}}}
var S=_.Ct("chip-view-model",function(R){var n=N.data().tooltipTargetId,d=_.VP();n&&_.Dy(d,n,R);return function(){Iw(d,R)}}),P=function(){var R,n;
return!!(((R=N.selected)==null?void 0:R.call(N))!==void 0?(n=N.selected)==null?0:n.call(N):C().selected)},H=_.O(_.qI(N.data)),K=H.next().value;
H=H.next().value;var C=K,G=H,a=_.nf(lOE,function(){return N.data().chipEntityKey||""});
return _.c("chip-view-model",{class:"ytChipViewModelHost",el:S},_.c(_.DF,{data:function(){var R,n=Object.assign({},C(),{selected:P()}),d=a(),m=(R=N.disableDeselection)==null?void 0:R.call(N);a:switch(n.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":R=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":R=3;break a;default:R=0}return{text:(d==null?void 0:d.text)||n.text,state:n.disabled?1:n.selected?0:2,type:R,onTap:fOO(n,S,b,
m),accessibilityLabel:n.accessibilityLabel||n.text}}}))},"Oc");
_.mdd.idomCompat={callbacks:{callback:!0}};_.gH=_.A(function(N){N=_.h_(N,{nextButtonStyle:0});var b=N.data,S=N.callback,P=N.selectionBehavior,H=N.disableChipsScrollAnimation,K=N.nextButtonStyle,C=_.GQ("div");N=_.O(_.QF(!0,void 0,"VwW6Jc"));var G=N.next().value,a=N.next().value;N=_.O(_.QF(!1,void 0,"OIoagd"));var R=N.next().value,n=N.next().value,d=!1,m=0,k=function(){switch(K()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.pM(function(){a(u());n(J())});
N=_.O(_.qI(function(){var Ca={};return b().autoselectedChipIndex!=null?(Ca[b().autoselectedChipIndex]=!0,Ca):{}}));
var M=N.next().value,l=N.next().value,u=function(){var Ca=C.value;return Ca==null||Ca.scrollLeft-1<=0},J=function(){var Ca=C.value;
return Ca==null?!1:Ca.scrollLeft+1>=(Ca==null?NaN:Ca.scrollWidth)-(Ca==null?NaN:Ca.clientWidth)},Z=function(){return b().isHorizontallyScrollable},D=function(Ca){C.value!=null&&(_.Vg("HTML_DIR")==="rtl"&&(Ca=-Ca),C.value.scrollBy({left:Ca,
behavior:(H==null?0:H())?"instant":"smooth"}))},Y=function(){D(-320)},V=function(){D(320)},g=_.Ob(function(Ca){d=!0;
m=Ca.clientX}),e=_.Ob(function(Ca){if(d){Ca=Ca.clientX;
var ML=Ca-m;m=Ca;var na;(na=C.value)==null||na.scrollBy({left:-ML})}}),se=_.Ob(function(){var Ca=u(),ML=J();
Ca!==G()&&a(Ca);ML!==R()&&n(ML)});
_.R5("pointerup",function(){d&&(d=!1)});
return _.c("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.c(_.Ar,{contentId:function(){return b().contentId},
useModernStyle:!0},function(){var Ca={},ML={};return _.c("div",null,_.c(_.W,{cond:function(){return b().title},
then:function(){return _.c("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.c("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return b().title}),_.c(_.kY,{data:function(){return b().overflowButton}},{buttonViewModel:_.j$}))}}),_.c("div",{class:_.KU("ytChipsShelfViewModelChipsShelfContent",k)},_.c(_.W,{cond:function(){return b().previousButton},
then:function(){var na={};return _.c("div",{class:_.KU("ytChipsShelfViewModelLeftArrowContainer",(na.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return G()},na))},_.c(_.kY,{data:function(){return b().previousButton}},{buttonViewModel:function(To){return _.c(_.j$,{data:To.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Y})}}))}}),_.c("div",{el:C,
"on:pointerdown":g,"on:pointermove":e,"on:scroll":se,class:_.KU("ytChipsShelfViewModelChipsScrollContainer",(Ca.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=Z,Ca))},_.c("div",{class:_.KU("ytChipsShelfViewModelChipsContainer",(ML.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=Z,ML.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ML)),role:"tablist"},_.c(_.kY,{data:function(){return b().contents}},{chipViewModel:function(na,To){return _.c("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.c(_.mdd,{data:na.data,
callback:function(jp,Xf){var YO=To(),Wk,S9=(Wk=P==null?void 0:P())!=null?Wk:0;S9===1||S9===2?(Wk={},l((Wk[YO]=Xf,Wk))):S9===0&&(Wk={},l(Object.assign({},M(),(Wk[YO]=Xf,Wk))));S==null||S(jp,Xf,YO)},
disableDeselection:function(){return(P==null?void 0:P())===1},
selected:function(){return!!M()[To()]}}))}}))),_.c(_.W,{cond:function(){return b().nextButton},
then:function(){var na={};return _.c("div",{class:_.KU("ytChipsShelfViewModelRightArrowContainer",(na.ytChipsShelfViewModelRightArrowContainerIsHidden=R,na))},_.c(_.kY,{data:function(){return b().nextButton}},{buttonViewModel:function(To){return _.c(_.j$,{data:To.data,
className:"ytChipsShelfViewModelRightArrow",onClick:V})}}))}})))}))},"Qc");
_.gH.idomCompat={callbacks:{callback:!0}};var k_V=_.A(function(N){var b=N.data;var S=N.showChips;var P=N.isUpdateInProgress;var H=N.chipClickCallback;N=_.O(_.QF(!1,void 0,"uth3se"));var K=N.next().value,C=N.next().value;N=_.O(_.QF(!1,void 0,"qED0bb"));var G=N.next().value,a=N.next().value,R=void 0;_.gA(function(){a(!0);var n=S()&&!P();requestAnimationFrame(function(){C(n)});
R&&clearTimeout(R);R=setTimeout(function(){a(!1)},300)},"fnso6");
_.ej(function(){R&&clearTimeout(R)});
N={};return _.c("ytd-ai-response-box-view-model",{class:_.KU("ytdAiResponseBoxViewModelHost")},_.c("div",{class:_.KU("ytdAiResponseBoxViewModelResponseMessageContainer",(N.ytdAiResponseBoxViewModelResponseMessageContainerHidden=K,N.ytdAiResponseBoxViewModelNotShown=function(){return K()&&!G()},N))},_.c(_.W,{cond:P,
then:function(){return _.c("div",null,_.c(_.mD,{text:function(){return b().responsePendingMessage}}))},
else:function(){return _.c(_.nM,null,_.c(_.W,{cond:function(){var n;return(n=b().responseMessageIcon)==null?void 0:n.iconType},
then:function(n){return _.c("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.c(_.cX,{icon:n}))}}),_.c("div",null,_.c(_.mD,{text:function(){return b().responseMessage}})))}})),_.c(_.kY,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(n){n=n.data;
var d={};return _.c("div",{class:_.KU("ytdAiResponseBoxViewModelChipsShelfContainer",(d.ytdAiResponseBoxViewModelChipsShelfContainerShown=K,d.ytdAiResponseBoxViewModelNotShown=function(){return!K()&&!G()},d))},_.c(_.gH,{data:n,
selectionBehavior:3,nextButtonStyle:1,callback:H}))}}))},"Sc");var TMb;TMb=Object.assign({},{continuation:o$9,download:BHN,canvas:Iio,reportChannelAbuse:zTz,ui:Vz9,share:Anz,talkToRecs:pZd,watch:rt,ypc:g$c,radioButtonGroup:YMY,collabInviteLink:Eua},xFE,{voiceSearch:$Jb,shorts:Gs});_.tLE=fU(TMb);_.ML4=uo(_.tLE);_.FsN=(0,_.ML4)(_.tLE.talkToRecs,{talkToRecsStateSelector:function(N){return N}});_.qu(_.A(function(N){var b=_.O((0,_.E29)(N.data)).next().value;N=_.O(_.QF(!1,void 0,"wK1hV"));var S=N.next().value,P=N.next().value;N=_.O(_.QF(!1,void 0,"QNzWBf"));var H=N.next().value,K=N.next().value;N=_.O(Brf());var C=N.next().value;N=N.next().value;var G=_.nU(_.FsN.talkToRecsStateSelector),a=_.O(_.QF("",void 0,"qkUInc")),R=a.next().value,n=a.next().value;a=_.O(_.QF(!1,void 0,"D8Tnjb"));var d=a.next().value,m=a.next().value,k=_.O(_.QF(!1,void 0,"AAxskd"));a=k.next().value;var M=k.next().value;
k=_.O(_.QF(!1,void 0,"fPqlme"));var l=k.next().value,u=k.next().value;k=_.O(_.QF(!1,void 0,"exlayb"));var J=k.next().value,Z=k.next().value,D=_.Ct("div");k=_.O(_.QF(void 0,void 0,"K6Q9Je"));var Y=k.next().value,V=k.next().value,g=void 0,e=function(Bk){Bk!==S()&&(K(!0),P(Bk),g&&clearTimeout(g),g=setTimeout(function(){K(!1)},300))},se=function(){if(Y()!==void 0){var Bk=Y();
e(window.scrollY>Bk)}},Ca=function(){var Bk;
V((Bk=D.value)==null?void 0:Bk.offsetHeight);C("yt-feed-filter-chip-bar-resize")};
_.YU(function(){var Bk,RU,Ab;n((Ab=(RU=Qko(b(),G()))!=null?RU:(Bk=b().textInputValue)==null?void 0:Bk.content)!=null?Ab:"");m(!!b().welcomeBannerTitle&&!R());Ca();document.addEventListener("scroll",se);_.ej(function(){document.removeEventListener("scroll",se);g&&clearTimeout(g)})});
_.gA(function(){var Bk=Qko(b(),G());Bk!==void 0&&Bk!==R()&&n(Bk)},"dOzUt");
_.gA(function(){d();Ca()},"KIy8if");
k=_.Ob(function(){u(!0);M(!0)});
var ML=_.Ob(function(){M(!1)});
_.gA(function(){b()&&(u(!1),Z(!1))},"vkhp5b");
var na=function(Bk){var RU=b().onUpdateText;RU&&_.AM(RU,{form:{userQuery:Bk}})},To=_.oS(function(Bk){na(Bk)},150),jp=_.Ob(function(Bk){To(Bk.target.value);
return!1});
_.gA(function(){var Bk=Qko(b(),G());Bk&&Bk!==R()&&n(Bk)},"OF3gn");
var Xf=function(){Z(!0);m(!1)},YO=function(){var Bk=_.t(b().submitButton,_.WC);
if(Bk==null?0:Bk.trackingParams){var RU=_.FA(Bk.trackingParams),Ab=_.Qh();Ab&&RU&&_.Im(Ab,RU,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Bk=Bk==null?void 0:Bk.onTap)_.AM(Bk),Xf()},Wk=_.Ob(function(Bk){Bk.key==="Enter"&&(na(Bk.target.value.trim()),YO());
return!1}),S9=function(){YO()},Vu=_.Ob(function(){C("yt-feed-customization-scroll-up")}),n9={},mc={},f9={},mJ={};
return _.c("ytd-feed-customization-form-view-model",{class:_.KU("ytdFeedCustomizationFormViewModelHost",(n9.ytdFeedCustomizationFormViewModelHostCollapsed=S,n9)),el:_.VN(N)},_.c("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:D},_.c("div",{class:_.KU("ytdFeedCustomizationFormViewModelExpandedContent",(mc.ytdFeedCustomizationFormViewModelNotShown=function(){return S()&&!H()},mc))},_.c(_.W,{cond:function(){return b().disclaimer},
then:function(){return _.c("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.c(_.mD,{text:function(){return b().disclaimer}}))}}),_.c(_.W,{cond:d,
then:function(){return _.c("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.c("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.c(_.mD,{text:function(){return b().welcomeBannerTitle}})),_.c("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.c(_.mD,{text:function(){return b().welcomeBannerSubtitle}})))}}),_.c("div",{class:_.KU("ytdFeedCustomizationFormViewModelInputContainer",(f9.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
a,f9))},_.c("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Bk;return(Bk=b().textInputPlaceholder)==null?void 0:Bk.content},
"prop:value":R,"on:focus":k,"on:blur":ML,"on:input":jp,"on:keyup":Wk,maxlength:250}),_.c(_.W,{cond:function(){return!!R()},
then:function(){return _.c(_.kY,{data:function(){return b().clearButton}},{buttonViewModel:function(Bk){return _.c("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.c(_.j$,{data:Bk.data}))}})}}),_.c(_.W,{cond:function(){return J()},
then:function(){return _.c(_.kY,{data:function(){return b().inProgressButton}},{buttonViewModel:function(Bk){return _.c("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.c(_.j$,{data:Bk.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.c(_.kY,{data:function(){return b().submitButton}},{buttonViewModel:function(Bk){return _.c("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.c(_.j$,{data:Bk.data,
onClick:Xf}))}})}}),_.c(_.kY,{data:function(){return b().menuButton}},{buttonViewModel:function(Bk){return _.c("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.c(_.j$,{data:Bk.data}))}})),_.c(_.kY,{data:function(){return b().contents}},{aiResponseBoxViewModel:function(Bk){return _.c("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.c(k_V,{data:Bk.data,
showChips:l,isUpdateInProgress:J,chipClickCallback:S9}))}})),_.c("div",{class:_.KU("ytdFeedCustomizationFormViewModelCollapsedContent",(mJ.ytdFeedCustomizationFormViewModelNotShown=function(){return!S()&&!H()},mJ)),
"on:click":Vu},_.c("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Bk;return R()||((Bk=b().textInputPlaceholder)==null?void 0:Bk.content)}))))},"Xc"),"ytd-feed-customization-form-view-model",{props:{data:_.kg}});var BMk=_.pf.persistentPanelVisibleSelector,em=function(){var N=_.z.apply(this,arguments)||this;N.isDarkTheme=!1;N.notSticky=!1;N.transparentBackground=!1;N.shouldHide=!1;N.disableSticky=!1;N.fluidWidth=!1;N.isClipList=!1;N.defaultChipIndex=0;N.hasSelectedChipContent=!1;N.isPlaylist=!1;N.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");N.toolbarHeight=0;N.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(em,_.z);_.v=em.prototype;
_.v.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.v.attached=function(){var N=this;document.addEventListener("scroll",_.aA(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.aA(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(S){N.handleIntersect(S)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){N.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.v.detached=function(){var N;(N=this.intersectionObserver)==null||N.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",_.aA(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.aA(this,this.onFeedFilterChipBarResize))};
_.v.dataChanged=function(){var N=this,b,S,P=(b=this.data)==null?void 0:(S=b.contents)==null?void 0:S.findIndex(function(K){var C;return!((C=_.t(K,qQz))==null?0:C.navigationEndpoint)});
P&&(this.defaultChipIndex=P);this.updating=!0;var H=this.findSelectedChipIndex();this.selectedIndex!==H&&(this.selectedIndex=-1);_.W_(this,function(){N.selectedIndex=H;N.updateSelectedChipContent(N.selectedIndex);N.updating=!1;N.ytScrollableChipCloudBehavior.reset()})};
_.v.findSelectedChipIndex=function(){var N;if((N=this.data)==null||!N.contents)return 0;N=this.data.contents;for(var b=0;b<N.length;b++){var S=void 0;if((S=_.t(N[b],qQz))==null?0:S.isSelected)return b}return 0};
_.v.computeStyle=function(N){return N};
_.v.handleChipCloudChipSelectAction=function(N){N=this.JSC$16461_chipsSelector.indexOf(N);N>-1&&(this.JSC$16461_chipsSelector.selectIndex(N),this.updateSelectedChipContent(N))};
_.v.updateSelectedChipContent=function(N){var b;if((b=this.data)==null||!b.contents||N<0||N>=this.data.contents.length)this.selectedChipContent=void 0;else{var S;this.selectedChipContent=(S=_.t(this.data.contents[N],qQz))==null?void 0:S.content}};
_.v.handleChipCloudChipDeselectAction=function(){if(_.T("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[this.defaultChipIndex],qQz))==null?void 0:S.navigationEndpoint;P&&_.St(this.hostElement,"yt-browse-section-list-reload-endpoint",[P]);this.JSC$16461_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.v.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.v.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.v.updateDynamicHeight=function(){var N=this;this.hasSelectedChipContent&&!this.notSticky?_.W_(this,function(){var b=_.H4(N.hostElement).querySelector("#chips-wrapper");b&&_.rq(N.hostElement,{"--ytd-chips-bar-dynamic-height":b.clientHeight+"px"})}):_.rq(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.v.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.v.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.v.onResize=function(){this.updateLayout()};
_.v.updateLayout=function(){var N=this.ytScrollableChipCloudBehavior;_.W_(N,N.setContainerWidthDiff);N=this.ytScrollableChipCloudBehavior;_.W_(N,N.setButtonsState)};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.v.handleIntersect=function(N){this.notSticky=this.isChannelPageGrid||this.disableSticky||N[0].intersectionRatio===1};
_.v.updateDimensions=function(){var N=this.ytRendererBehavior.parentComponent;if(N){var b,S=(b=N.headerElement)!=null?b:N;_.rq(this.hostElement,{"--ytd-rich-grid-chips-bar-width":S.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.v.updateSelectedIndexFromBinding=function(N){this.selectedIndex=N.detail.value};
_.v.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var N;(N=this.sortFilterHeaderRendererElement)==null||N.setAttribute("is-playlist-page-with-filters","")}};
_.v.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(DFE(!this.notSticky))};
_.d0.Object.defineProperties(em.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.contents)==null?void 0:b.find(function(P){return _.t(P,P$b)});
return{sortFilterHeaderRenderer:_.t(S,P$b)}}}});
em.prototype.dispatchChipBarIsSticky=em.prototype.dispatchChipBarIsSticky;em.prototype.isPlaylistPageChanged=em.prototype.isPlaylistPageChanged;em.prototype.updateChipBarWidthAndTop=em.prototype.updateChipBarWidthAndTop;em.prototype.onResize=em.prototype.onResize;em.prototype.onPersistentPanelVisibleChanged=em.prototype.onPersistentPanelVisibleChanged;em.prototype.onGuideIsExpandedChanged=em.prototype.onGuideIsExpandedChanged;em.prototype.updateDynamicHeight=em.prototype.updateDynamicHeight;
em.prototype.onSelectedChipContentChanged=em.prototype.onSelectedChipContentChanged;em.prototype.dataChanged=em.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],em.prototype,"actionHandlerBehavior",void 0);
_.p([_.L(_.$M),_.y("design:type",Object)],em.prototype,"ironResizableBehavior",void 0);_.p([_.L(),_.y("design:type",Is)],em.prototype,"ytScrollableChipCloudBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],em.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],em.prototype,"data",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],em.prototype,"selectedIndex",void 0);_.p([_.U({value:320}),_.y("design:type",Number)],em.prototype,"scrollDistance",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"notSticky",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"transparentBackground",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.y("design:type",String)],em.prototype,"componentStyle",void 0);
_.p([_.U({selector:_.jfe}),_.y("design:type",Boolean)],em.prototype,"guideIsExpanded",void 0);_.p([_.U({selector:BMk}),_.y("design:type",Boolean)],em.prototype,"persistentPanelVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"shouldHide",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"disableSticky",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"fluidWidth",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"isClipList",void 0);_.p([_.U(),_.y("design:type",Object)],em.prototype,"defaultChipIndex",void 0);_.p([_.U(),_.y("design:type",Object)],em.prototype,"selectedChipContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"hasSelectedChipContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],em.prototype,"isPlaylist",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],em.prototype,"playlistVotingAnimationEnabled",void 0);_.p([_.dq("#chips"),_.y("design:type",Object)],em.prototype,"JSC$16461_chipsSelector",void 0);_.p([_.dq("ytd-sort-filter-header-renderer"),_.y("design:type",HTMLElement)],em.prototype,"sortFilterHeaderRendererElement",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],em.prototype,"updating",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"dataChanged",null);_.p([_.W4("selectedChipContent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"onSelectedChipContentChanged",null);_.p([_.W4("hasSelectedChipContent","notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"updateDynamicHeight",null);
_.p([_.W4("guideIsExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"onGuideIsExpandedChanged",null);_.p([_.W4("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"onPersistentPanelVisibleChanged",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"onResize",null);
_.p([_.t_("isChannelPageGrid","disableSticky","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"updateChipBarWidthAndTop",null);_.p([_.f("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],em.prototype,"isChannelPageGrid",null);_.p([_.f("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],em.prototype,"isHashtagLandingPage",null);
_.p([_.W4("isPlaylistPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"isPlaylistPageChanged",null);_.p([_.f("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],em.prototype,"isPlaylistPage",null);_.p([_.f("componentStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],em.prototype,"isDisableDeselectEvent",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],em.prototype,"sortFilterHeaderRendererData",null);_.p([_.U({reflectToAttribute:!0,selector:_.yDa}),_.y("design:type",String)],em.prototype,"frostedGlassMode",void 0);_.p([_.W4("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],em.prototype,"dispatchChipBarIsSticky",null);_.p([_.Uj({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],em);
_.X(em,"ytd-feed-filter-chip-bar-renderer",function(){if(a59!==void 0)return a59;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return a59=N},{mode:1});var l59;var LsN=_.A(function(N){var b=N.data;var S=N.buttonIndex;var P=N.selectedIndex;var H=N.onSelect;var K=function(){return S()===P()},C=function(){var G,a;
return(a=(G=b().text)==null?void 0:G.content)!=null?a:""};
N=_.BNo();return _.c("yt-toggleable-image-button-view-model",{class:function(){var G={};G=(G.toggleableImageButtonViewModelHost=!0,G[""]=!0,G.toggleableImageButtonViewModelSemiTransparent=P()!==-1&&!K(),G);return _.ff(G)},
tabindex:0,"aria-label":C,"aria-pressed":K,role:"button","on:keydown":N,"on:click":_.Ob(function(){H(b().onSubmitCommand);return!1})},_.c(_.W,{cond:function(){return b().logo},
then:function(G){return _.c(_.gG,{data:G,className:function(){var a={};a=(a.toggleableImageButtonViewModelImage=!0,a.toggleableImageButtonViewModelCircularRadius=!(!b().backgroundColor||!b().backgroundColorDarkMode),a.toggleableImageButtonViewModelGradientRing=!!(K()&&b().backgroundColor&&b().backgroundColorDarkMode),a);return _.ff(a)},
alt:C,useWidth:!1,style:function(){if(K()&&b().backgroundColor&&b().backgroundColorDarkMode){var a=i1(Number(b().backgroundColorDarkMode),"1");var R=i1(Number(b().backgroundColor),"1");a="background: linear-gradient(180deg,"+a+","+R+") border-box;"}else a="";return a}})}}),_.c(_.of,{model:{borderRadius:"16px"}}),_.c("p",{class:function(){var G={};
G=(G.toggleableImageButtonViewModelLabel=!0,G.toggleableImageButtonViewModelBoldText=K(),G);return _.ff(G)}},_.c(_.mD,{text:function(){return b().text}})))},"Yc");
LsN.idomCompat=!0;var upZ=_.A(function(N){var b=N.data;N=_.O(_.QF({index:-1,command:{}},void 0,"GM3umb"));var S=N.next().value,P=N.next().value;return _.c("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.c("div",{class:"nudgeFormViewModelFormOptions"},_.c(_.kY,{data:function(){return b().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(H,K){return _.c(LsN,{data:H.data,buttonIndex:K,selectedIndex:function(){return S().index},
onSelect:function(C){P({index:K(),command:C})}})}})),_.c(_.mD,{text:function(){return b().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.c("div",{class:"nudgeFormViewModelSubmit"},_.c(_.kY,{data:function(){return b().submitButton}},{buttonViewModel:function(H){return _.c(f5E,{data:H.data,
isDisabled:function(){return S().index===-1},
onClick:function(){_.AM(S().command)}})}})))},"Zc");
upZ.idomCompat=!0;var f5E=_.A(function(N){var b=_.UB(function(){return Object.assign({},N.data(),{state:N.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.c(_.j$,{data:b,onClick:N.onClick})},"$c");_.qu(upZ,"yt-nudge-form-view-model",{props:{data:_.kg}});var $$=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.buttonUpdate=_.T("web_modern_buttons");N.isDarkMode=!1;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return N};
_.F($$,_.z);_.v=$$.prototype;_.v.computeNudgeStyle=function(N){return N?"modernized-nudge":""};
_.v.handleDarkModeToggledAction=function(N){this.isDarkMode=N};
_.v.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.computeIsHorizontalButtons=function(N){return N?!!N.applyModernizedStyle&&!!N.enableHorizontalButtons&&!!N.secondaryButton:!1};
_.d0.Object.defineProperties($$.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.data)==null?void 0:N.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.data)==null?void 0:N.contentsLocation)!=null?b:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.lightIconImage)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],$$.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],$$.prototype,"actionHandlerBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("isHideEnclosingAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$$.prototype,"isHidden",null);_.p([_.U(),_.y("design:type",Object)],$$.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$$.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$$.prototype,"buttonUpdate",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.y("design:type",String)],$$.prototype,"nudgeStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.trimStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],$$.prototype,"trimStyle",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.backgroundStyle"),_.y("design:type",String),_.y("design:paramtypes",[])],$$.prototype,"backgroundStyle",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.contentsLocation"),_.y("design:type",String),_.y("design:paramtypes",[])],$$.prototype,"contentsLocation",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.disableDropShadow"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$$.prototype,"noShadow",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.lightIconImage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$$.prototype,"noIcon",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.y("design:type",Boolean)],$$.prototype,"isHorizontalButtons",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],$$.prototype,"isDarkMode",void 0);_.p([_.Uj({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],$$);
_.X($$,"ytd-feed-nudge-renderer",function(){if(l59!==void 0)return l59;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return l59=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var QCS;var xdN;var hn=function(){var N=_.z.apply(this,arguments)||this;N.collapsed=!1;N.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return N};
_.F(hn,_.z);hn.prototype.configureRendererStamper=function(){return{"data.content":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",params:{isSlimlineSurvey:!0,showResponseRangeText:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hn.prototype.handleRatingSelect=function(){var N;((N=this.data)==null?0:N.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
hn.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],hn.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hn.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.cO),_.y("design:type",Object)],hn.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hn.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],hn.prototype,"collapsed",void 0);_.p([_.Uj({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],hn);
_.X(hn,"ytd-slimline-survey-renderer",function(){if(xdN!==void 0)return xdN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xdN=N},{mode:1});var o1z;var qF=function(){return _.z.apply(this,arguments)||this};
_.F(qF,_.z);qF.prototype.maybeGetBackgroundColor=function(N){return this.isDarkMode?N.section2Color:N.section3Color};
qF.prototype.colorPaletteChanged=function(){var N=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;N&&(N==null?0:N.secondaryTitleColor)&&this.maybeGetBackgroundColor(N)?(this.hostElement.style.backgroundColor=_.xn(this.maybeGetBackgroundColor(N)),this.hostElement.style.color=_.xn(N.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
qF.prototype.colorPaletteChanged=qF.prototype.colorPaletteChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],qF.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qF.prototype,"data",void 0);_.p([_.U({selector:function(N){return N.ui.darkModeIsEnabled}}),
_.y("design:type",Boolean)],qF.prototype,"isDarkMode",void 0);_.p([_.U(),_.y("design:type",Object)],qF.prototype,"lightColorPalette",void 0);_.p([_.U(),_.y("design:type",Object)],qF.prototype,"darkColorPalette",void 0);_.p([_.W4("darkColorPalette","lightColorPalette","data","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qF.prototype,"colorPaletteChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],qF);
_.X(qF,"ytd-endorsement-header-renderer",function(){if(o1z!==void 0)return o1z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return o1z=N},{mode:1});_.qu(_.Gg,"yt-decorated-avatar-view-model",{props:{data:_.kg,className:_.kg}});_.wH=new _.nO("VIEW_TRANSITION_MANAGER_TOKEN");var NV=function(){var N=_.z.apply(this,arguments)||this;N.fullHeight=_.T("web_rich_grid_media_full_height");N.showChannelAvatar=!0;N.hasPlaylistThumbnail=!1;N.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};N.registerThumbnailForPageTransition=function(){_.T("web_thumbnail_to_watch_transition")&&_.iBc(_.aN().resolve(_.wH),N.thumbnail)};
return N};
_.F(NV,_.z);_.v=NV.prototype;
_.v.configureRendererStamper=function(){return{lazyLoadMenu:eE,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.shouldLazyLoadMenu=function(){var N=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.T("kevlar_modern_downloads_page")||!N};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16485_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.JSC$16485_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.v.getVideoPreviewOpts=function(){var N={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)N=ak9;this.isRadio&&(N=cWz);return N};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16485_inlinePreviewHoverListener)==null||qv(N)};
_.v.getOwner=function(){var N,b,S;return((N=this.data)==null?void 0:(b=N.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||_.t((S=this.data)==null?void 0:S.showProviderChannelThumbnail,$k4)};
_.v.updateLockupSize=function(){var N;((N=this.getOwner())==null?0:N.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.v.getFeedbackEndpoint=function(N){if(_.t(N,_.ZM))return N;var b,S;N=(S=(b=_.t(N,_.vN))==null?void 0:b.commands)!=null?S:[];b=_.O(N);for(S=b.next();!S.done;S=b.next())if(S=this.getFeedbackEndpoint(S.value))return S;return null};
_.v.computeNavigationEndpoint=function(N){return YwL(N==null?void 0:N.navigationEndpoint)};
_.v.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var N=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(N)!==JSON.stringify(this.data)&&this.set("data",N)}};
_.v.onDataChanged=function(){var N=this,b=this.getOwner();if(b){this.set("data.owner",b);var S,P,H,K,C,G=((S=this.data)==null?void 0:(P=S.shortBylineText)==null?void 0:(H=P.runs)==null?void 0:(K=H[0])==null?void 0:K.text)||((C=b.name)==null?void 0:C.simpleText);this.set("data.owner.title",G)}var a,R,n,d,m,k;b=((a=this.data)==null?void 0:(R=a.thumbnailRenderer)==null?void 0:R.playlistVideoThumbnailRenderer)||((n=this.data)==null?void 0:(d=n.thumbnailRenderer)==null?void 0:d.playlistCustomThumbnailRenderer)||
((m=this.data)==null?void 0:(k=m.thumbnailRenderer)==null?void 0:k.showCustomThumbnailRenderer);var M;((M=this.data)==null?0:M.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){N.updateLockupSize()});
var l;if(a=((l=this.data)==null?void 0:l.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(a);var u;((u=this.dismissActionToReplayEntity)==null?0:u.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.v.onHiddenChanged=function(){this.updateLockupSize()};
_.v.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.St(this.hostElement,"yt-terminate-video-preview-action");else{var N;(N=this.videoTitleLink)==null||N.focus()}};
_.v.metadataColorChanged=function(){var N;if(this.metadataColor&&((N=this.videoTitle)==null?0:N.style))this.videoTitle.style.color=_.xn(this.metadataColor);else{var b,S;!this.metadataColor&&((b=this.videoTitle)==null?0:(S=b.style)==null?0:S.color)&&(this.videoTitle.style.color="")}};
_.v.onDetailsClick=function(N){var b=this.computedNavigationEndpoint;b&&(_.VC(_.V7(N),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.bC(this.hostElement,"yt-navigate",{endpoint:b}))};
_.v.onRendererTap=function(){this.registerThumbnailForPageTransition();var N,b,S=((N=this.data)==null?void 0:N.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);S&&_.t(S,_.ZM)&&this.ytComponentBehavior.resolveCommand(S)};
_.v.onMouseDown=function(N){var b=N.target,S=this.computedNavigationEndpoint,P;N=b.href||((P=_.t(S==null?void 0:S.commandMetadata,_.GY))==null?void 0:P.url);P=b.data||S;N&&P&&rtp(N,P)};
_.v.computeVideoTitleText=function(){var N;if((N=this.data)==null?0:N.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.v.computeHasPlaylistThumbnail=function(N){var b,S,P,H,K;if((((b=N.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((S=N.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer)||((P=N.thumbnailRenderer)==null?0:P.showCustomThumbnailRenderer)||((H=N.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((K=N.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer))&&N.thumbnailOverlays)for(b=0;b<N.thumbnailOverlays.length;b++)if(S=void 0,(S=N.thumbnailOverlays[b])==
null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.d0.Object.defineProperties(NV.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.T("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var N;return(N=this.data)==null?void 0:N.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var N;return(N=this.data)==null?void 0:N.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16485_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Cue(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.videoId)||((b=this.data)==null?void 0:b.playlistId)||""}}});
NV.prototype.onMouseDown=NV.prototype.onMouseDown;NV.prototype.metadataColorChanged=NV.prototype.metadataColorChanged;NV.prototype.onIsDismissedChanged=NV.prototype.onIsDismissedChanged;NV.prototype.onHiddenChanged=NV.prototype.onHiddenChanged;NV.prototype.onDataChanged=NV.prototype.onDataChanged;NV.prototype.handleReloadDownloadsInfo=NV.prototype.handleReloadDownloadsInfo;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],NV.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],NV.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],NV.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],NV.prototype,"entitySelectorType",void 0);_.p([_.U(),_.y("design:type",Boolean)],NV.prototype,"noEndpoints",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],NV.prototype,"isRadio",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],NV.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NV.prototype,"fullHeight",void 0);
_.p([_.U(),_.y("design:type",Boolean)],NV.prototype,"showDarkVideoMetadata",void 0);_.p([_.U(),_.y("design:type",Boolean)],NV.prototype,"showLightVideoMetadata",void 0);_.p([_.U(),_.y("design:type",Number)],NV.prototype,"metadataColor",void 0);_.p([_.U(),_.y("design:type",Object)],NV.prototype,"showChannelAvatar",void 0);_.p([_.U(),_.y("design:type",Boolean)],NV.prototype,"hidden",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],NV.prototype,"showYtInteraction",void 0);
_.p([_.U(),_.y("design:type",String)],NV.prototype,"dismissedContentId",void 0);_.p([_.U({selectorArgs:["dismissedContentId"],selector:VwE}),_.y("design:type",Object)],NV.prototype,"dismissActionToReplayEntity",void 0);
_.p([_.U({selectorArgs:["entitySelectorType","mediaId"],selector:function(N,b,S){if(_.T("kevlar_modern_downloads_page")&&S&&b&&b!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var P=gg_(N,S);if(P){b=_.UI(N,S);var H=js(N,S),K=KLs(N,S);N=zL(N,S);var C=XcE(P,b,H,K);H=C.shortViewCountText;var G=C.publishedTimeText;C=C.badges;var a=N>0;K=zuY(P,b,K,N);P=_.kG(b)||b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ma(P.policyEntity)?
void 0:EDu(S,N,P.videoEntity.lengthSeconds);b==="TRANSFER_STATE_PAUSED_BY_USER"&&S&&!_.T("dl_resume_click_killswitch")&&(P={offlineVideoEndpoint:{videoId:S,action:"ACTION_RESUME"}});S={shortViewCountText:H,publishedTimeText:G,badges:C,isWatched:a,navigationEndpoint:P,thumbnailOverlays:K}}else S=void 0;return S;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=eYL(N,S))if(P=_.Zb(N,S),K=_.$ZE(N,S),P!=="TRANSFER_STATE_UNKNOWN"){S=ARE(b,P,K,S,_.J0(N));break a}S=void 0}return S;default:_.$h(new _.jU("Error: entitySelectorType defined but not matched in selector.",
N,b))}}}),
_.y("design:type",Object)],NV.prototype,"entityDrivenState",void 0);_.p([_.U({computed:"computeVideoTitleText(data)"}),_.y("design:type",Object)],NV.prototype,"videoTitleText",void 0);_.p([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],NV.prototype,"hasPlaylistThumbnail",void 0);_.p([_.U({computed:"computeNavigationEndpoint(data)"}),_.y("design:type",Object)],NV.prototype,"computedNavigationEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],NV.prototype,"typographyBump",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("typographyBump"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NV.prototype,"typographyBumpV2",null);_.p([_.dq("#video-title"),_.y("design:type",HTMLElement)],NV.prototype,"videoTitle",void 0);_.p([_.dq("#video-title-link"),_.y("design:type",HTMLElement)],NV.prototype,"videoTitleLink",void 0);
_.p([_.dq("#thumbnail"),_.y("design:type",HTMLElement)],NV.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],NV.prototype,"JSC$16485_dismissibleMedia",void 0);_.p([_.f("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],NV.prototype,"lazyLoadMenu",null);_.p([_.f("data.menu"),_.y("design:type",Object),_.y("design:paramtypes",[])],NV.prototype,"immediateLoadMenu",null);
_.p([_.t_("entityDrivenState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"handleReloadDownloadsInfo",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"onDataChanged",null);_.p([_.t_("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"onHiddenChanged",null);
_.p([_.W4("isDismissed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"onIsDismissedChanged",null);_.p([_.W4("metadataColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NV.prototype,"metadataColorChanged",null);_.p([_.RA("mousedown"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],NV.prototype,"onMouseDown",null);
_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NV.prototype,"isHovered",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NV.prototype,"useAvatar",null);_.p([_.f("data","entitySelectorType"),_.y("design:type",String),_.y("design:paramtypes",[])],NV.prototype,"mediaId",null);_.p([_.Uj({is:"ytd-rich-grid-media",disableElementRegistration:!0})],NV);
var JGE=_.H7()(NV,"ytd-rich-grid-media",function(){if(QCS!==void 0)return QCS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QCS=N},{mode:_.sZ("kevlar_poly_si_batch_j072")?1:2});var Udb;var bB=function(){var N=_.z.apply(this,arguments)||this;N.removeMaxWidth=!0;N.insetMetadata=!1;return N};
_.F(bB,_.z);_.v=bB.prototype;_.v.configureRendererStamper=function(){return{innerMenu:eE,outerMenu:Object.assign({},eE,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onDataChanged=function(){var N,b=((N=this.data)==null?void 0:N.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16490_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.JSC$16490_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RHV})};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16490_inlinePreviewHoverListener)==null||qv(N)};
_.v.onRendererTap=function(){var N,b,S=(N=this.data)==null?void 0:(b=N.serviceEndpoints)==null?void 0:b[0];_.t(S,_.ZM)&&this.componentBehavior.resolveCommand(S)};
_.v.onDetailsClick=function(N){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;S&&(_.VC(_.V7(N),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(S))};
_.v.onShow=function(){var N=this.data;N.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(N.onFirstVisibleCommand),delete N.onFirstVisibleCommand)};
_.d0.Object.defineProperties(bB.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var N;return this.insetMetadata?void 0:(N=this.data)==null?void 0:N.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var N;return this.insetMetadata?(N=this.data)==null?void 0:N.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var N=this.data;if(N!=null&&N.badge&&(N=_.t(N.badge,IRl))){var b,S,P;return[{metadataBadgeRenderer:{label:((b=N.label)==null?void 0:(S=b.runs)==null?void 0:S[0].text)||((P=N.label)==null?void 0:P.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var N=this.data;return Object.assign({},N.headline,{accessibility:N.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return this.isSlimShort?(N=this.computedTitle)==null?void 0:(b=N.accessibility)==null?void 0:(S=b.accessibilityData)==null?void 0:S.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.T("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16490_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
bB.prototype.onDataChanged=bB.prototype.onDataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],bB.prototype,"componentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],bB.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.cO),_.y("design:type",Object)],bB.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],bB.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],bB.prototype,"thumbnail",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],bB.prototype,"JSC$16490_dismissibleMedia",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bB.prototype,"removeMaxWidth",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bB.prototype,"insetMetadata",void 0);_.p([_.U(),_.y("design:type",String)],bB.prototype,"dismissedContentId",void 0);_.p([_.U({selectorArgs:["dismissedContentId"],selector:VwE}),_.y("design:type",Object)],bB.prototype,"dismissActionToReplayEntity",void 0);_.p([_.f("insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"thumbnailObjectFit",null);
_.p([_.f("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"innerMenu",null);_.p([_.f("data","insetMetadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"outerMenu",null);_.p([_.U(),_.y("design:type",Object)],bB.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],bB.prototype,"miniMode",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bB.prototype,"onDataChanged",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"shortsBadges",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bB.prototype,"isShort",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bB.prototype,"isSlimShort",null);_.p([_.f("data","isShort"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"computedTitle",null);_.p([_.f("isSlimShort","computedTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],bB.prototype,"computedAccessibilityLabel",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bB.prototype,"shouldForce2By3",null);_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bB.prototype,"isHovered",null);_.p([_.Uj({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],bB);
_.X(bB,"ytd-rich-grid-slim-media",function(){if(Udb!==void 0)return Udb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Udb=N},{mode:_.sZ("kevlar_poly_si_batch_j063")?1:2});var ZBz;var jCN;var SC=function(){return _.z.apply(this,arguments)||this};
_.F(SC,_.z);SC.prototype.computeIcon=function(N){return N&&N.iconType?"yt-sys-icons:"+N.iconType.toLowerCase():""};
SC.prototype.onMouseEnter=function(){this.isHovered=!0};
SC.prototype.onMouseLeave=function(){this.isHovered=!1};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SC.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],SC.prototype,"isHovered",void 0);
_.p([_.Uj({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],SC);
_.X(SC,"ytd-expand-on-hover-card-renderer",function(){if(jCN!==void 0)return jCN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jCN=N},{mode:1});var zDk,AGN=function(){if(zDk!==void 0)return zDk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return zDk=N};_.lo("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var PL=function(){var N=_.z.apply(this,arguments)||this;N.compactStyle=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(PL,_.z);_.v=PL.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.computeHideDot=function(N){return!(N&&N.subscriberCountText&&N.videoCountText)||this.compactStyle};
_.v.hasDualButtons=function(N){return N&&N.purchaseButton&&N.subscribeButton};
_.v.backgroundColorChanged=function(){if(this.data!==void 0){var N=this.data.backgroundColor;this.isDarkTheme&&(N=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=N!=null?_.xn(N):"transparent"}};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.onTap=function(N){var b,S,P=((b=this.data)==null?void 0:b.navigationEndpoint)||((S=this.data)==null?void 0:S.serviceEndpoint);_.t(P,_.gx)&&(P&&_.aN().resolve(_.Wq).resolveCommand(P,{form:{element:this.hostElement}}),N.preventDefault())};
_.v.computeChannelEndpoint=function(N){return _.t(N,_.gx)?null:N};
_.v.computeHrefEndpoint=function(N){return _.t(N,_.gx)?null:this.componentBehavior.computeHref_(N)};
_.v.computeChannelRendererStyle=function(N){return N};
_.v.computeIconSize=function(N){return N?108:136};
_.d0.Object.defineProperties(PL,{template:{configurable:!0,enumerable:!0,get:function(){return AGN()}}});
PL.prototype.backgroundColorChanged=PL.prototype.backgroundColorChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],PL.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],PL.prototype,"componentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],PL.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],PL.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.y("design:type",String)],PL.prototype,"channelRendererStyle",void 0);_.p([_.U({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],PL.prototype,"dualButtons",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],PL.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],PL.prototype,"biggerThumbStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PL.prototype,"compactStyle",void 0);_.p([_.W4("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PL.prototype,"backgroundColorChanged",null);_.p([_.Uj({is:"ytd-channel-renderer",disableElementRegistration:!0})],PL);_.X(PL,"ytd-channel-renderer",function(){return AGN()},{mode:1});var XgN;var E1z;_.lo("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var HL=function(){var N=_.z.apply(this,arguments)||this;N.displayItemCount=2;N.hasPlaylistThumbnail=!1;N.stackThumbnailSize="large";return N};
_.F(HL,_.z);_.v=HL.prototype;_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.computeFirstVideos=function(N,b){return N&&b?N.slice(0,b):[]};
_.v.computeThumbnailWidth=function(N,b){return N?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360};
_.v.computeThumbnailHeight=function(N,b){return N?b==="BIG"?280:b==="MASSIVE"?337:234:202};
_.v.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16503_inlinePreviewHoverListener)==null||qv(N)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16503_inlinePreviewHoverListener=Zz({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:ak9,thumbnailElement:this.thumbnail})};
_.v.computeHasPlaylistThumbnail=function(N){var b,S;if((((b=N.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((S=N.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&N.thumbnailOverlays)for(b=0;b<N.thumbnailOverlays.length;b++)if(S=void 0,(S=N.thumbnailOverlays[b])==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.d0.Object.defineProperties(HL.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16503_inlinePreviewHoverListener)==null?0:R8(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
HL.prototype.dataChanged=HL.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],HL.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HL.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],HL.prototype,"displayItemCount",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],HL.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],HL.prototype,"biggerThumbsStyle",void 0);_.p([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.y("design:type",Object)],HL.prototype,"hasPlaylistThumbnail",void 0);_.p([_.U(),_.y("design:type",String)],HL.prototype,"stackThumbnailSize",void 0);_.p([_.dq("ytd-thumbnail"),_.y("design:type",HTMLElement)],HL.prototype,"thumbnail",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HL.prototype,"dataChanged",null);
_.p([_.f("lockupIsHovered"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],HL.prototype,"isHovered",null);_.p([_.Uj({is:"ytd-radio-renderer",disableElementRegistration:!0})],HL);
_.X(HL,"ytd-radio-renderer",function(){if(E1z!==void 0)return E1z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return E1z=N},{mode:_.sZ("kevlar_poly_si_batch_j058")?1:2});var pgb;_.lo("itemSectionRenderer","showRenderer","ytd-show-renderer");var s1=function(){return _.z.apply(this,arguments)||this};
_.F(s1,_.z);s1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
s1.prototype.computeThumbnailWidth=function(N){return N?360:246};
s1.prototype.computeUseProminentThumbs=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],s1.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],s1.prototype,"isSearch",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.y("design:type",Boolean)],s1.prototype,"useProminentThumbs",void 0);_.p([_.Uj({is:"ytd-show-renderer",disableElementRegistration:!0})],s1);
_.X(s1,"ytd-show-renderer",function(){if(pgb!==void 0)return pgb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return pgb=N},{mode:1});_.lo("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Kw=function(){var N=_.z.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.F(Kw,_.z);Kw.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Kw.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Kw.prototype,"isRichGrid",void 0);_.p([_.Uj({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Kw);
_.X(Kw,"ytd-feed-entry-renderer",function(){if(XgN!==void 0)return XgN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return XgN=N},{mode:1});var Ykc;var vL=function(){return _.z.apply(this,arguments)||this};
_.F(vL,_.z);vL.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.p([_.L(_.Gr),_.y("design:type",Object)],vL.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],vL.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vL.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.xG,value:3}),_.y("design:type",Number)],vL.prototype,"itemsPerRow",void 0);
_.p([_.Uj({is:"ytd-link-card-renderer",disableElementRegistration:!0})],vL);
_.X(vL,"ytd-link-card-renderer",function(){if(Ykc!==void 0)return Ykc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ykc=N},{mode:1});var yGb;var O1=function(){return _.z.apply(this,arguments)||this};
_.F(O1,_.z);_.v=O1.prototype;_.v.configureRendererStamper=function(){return{"data.menu":eE,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onRendererTap=function(N){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,S=(b=this.data)==null?void 0:b.navigationEndpoint;S&&!_.VC(_.V7(N),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(S)?_.VC(_.V7(N),this.hostElement,["A"])||_.bC(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S,{}))}};
_.v.maybeComputeHref=function(N){return this.ytComponentBehavior.computeHref_(N,!0)};
_.v.getNavigationCommand=function(N){return this.isNavigationCommand(N)?N:null};
_.v.isNavigationCommand=function(N){return N?_.t(N,_.Wd)||_.t(N,_.Iv)||_.t(N,_.Hz)?!0:!1:!1};
O1.prototype.onRendererTap=O1.prototype.onRendererTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],O1.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],O1.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],O1.prototype,"data",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],O1.prototype,"onRendererTap",null);_.p([_.Uj({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],O1);
_.X(O1,"ytd-lumiere-promo-item-image-renderer",function(){if(yGb!==void 0)return yGb;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yGb=N},{mode:1});var I5Z;var Cw=function(){return _.z.apply(this,arguments)||this};
_.F(Cw,_.z);Cw.prototype.computeLandscapeThumbnail=function(){var N;return((N=this.data)==null?void 0:N.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Cw.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Cw.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],Cw.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.xG}),_.y("design:type",Number)],Cw.prototype,"itemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.y("design:type",Boolean)],Cw.prototype,"landscapeThumbnail",void 0);_.p([_.Uj({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Cw);
_.X(Cw,"ytd-lumiere-shelf-details-renderer",function(){if(I5Z!==void 0)return I5Z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return I5Z=N},{mode:_.sZ("kevlar_poly_si_batch_j076")?1:2});var Ddc;var Gf=function(){return _.z.apply(this,arguments)||this};
_.F(Gf,_.z);Gf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Gf.prototype,"data",void 0);_.p([_.Uj({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Gf);
_.X(Gf,"ytd-primetime-promo-details-renderer",function(){if(Ddc!==void 0)return Ddc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Ddc=N},{mode:1});var VLO;var rf=function(){return _.z.apply(this,arguments)||this};
_.F(rf,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rf.prototype,"data",void 0);_.p([_.Uj({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],rf);
_.X(rf,"ytd-panel-show-style-metadata-renderer",function(){if(VLO!==void 0)return VLO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return VLO=N},{mode:1});var g1l;var cL=function(){return _.z.apply(this,arguments)||this};
_.F(cL,_.z);_.v=cL.prototype;_.v.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.v.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.v.computeThumbnail=function(N){if(N)return N.smallFormFactorBackgroundThumbnail||N.largeFormFactorBackgroundThumbnail};
_.v.maybeComputeHref=function(N){return this.ytComponentBehavior.computeHref_(N,!0)};
_.v.isNavigationCommand=function(N){return N?_.t(N,_.Wd)||_.t(N,_.Iv)||_.t(N,_.Hz)?!0:!1:!1};
_.v.getNavigationCommand=function(N){return this.isNavigationCommand(N)?N:null};
cL.prototype.onPanelTap=cL.prototype.onPanelTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],cL.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cL.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],cL.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0,value:_.T("web_modern_buttons")}),_.y("design:type",Boolean)],cL.prototype,"modernButtons",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cL.prototype,"onPanelTap",null);_.p([_.Uj({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],cL);
_.X(cL,"ytd-primetime-promo-panel-renderer",function(){if(g1l!==void 0)return g1l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return g1l=N},{mode:1});_.qu(_.A(function(N){N=_.h_(N,{data:{},useFullWidth:!1});var b=N.data,S=N.useFullWidth;N={};return _.c("teaser-card-view-model",{class:_.KU("ytTeaserCardViewModelHost",(N.ytTeaserCardViewModelUseFullWidth=function(){return S()},N))},_.c(_.W,{cond:function(){return b().onTap},
then:function(P){return _.c(_.xg,{className:"ytTeaserCardViewModelLink",command:P},_.c("div",{class:"ytTeaserCardViewModelImageContainer"},_.c(_.W,{cond:function(){return b().image},
then:function(H){return _.c(_.gG,{data:H,className:"ytTeaserCardViewModelImage",alt:""})}})),_.c("p",{class:"ytTeaserCardViewModelCaption"},function(){return b().caption}))}}))},"ad"),"teaser-card-view-model",{props:{data:_.kg,
useFullWidth:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=function(){var P;return _.EW((P=b())==null?void 0:P.iconThemedImage)};
return _.c("yt-edu-card-view-model",null,_.c(_.Ar,{contentId:function(){return b().nudgeId}},function(){return _.c("div",{class:_.KU("ytEduCardViewModelHost",function(){return b().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.c("div",{class:"ytEduCardViewModelTopCornerButton"},_.c(_.kY,{data:function(){return b().dismissButton}},{buttonViewModel:_.j$})),_.c("div",{class:"ytEduCardViewModelContentWrapper"},_.c("div",{class:"ytEduCardViewModelHeaderImage"},_.c(_.W,
{cond:S,
then:function(P){return _.c(_.gG,{data:P,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.c("div",{class:"ytEduCardViewModelTextContainer"},_.c("div",{class:"ytEduCardViewModelTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytEduCardViewModelSubtitle"},_.c(_.mD,{text:function(){return b().subtitle}}))),_.c("div",{class:"ytEduCardViewModelContent"},_.c(_.kY,{data:function(){return b().form}},{nudgeFormViewModel:upZ}))),_.c("div",{class:_.KU("ytEduCardViewModelButtonWrapper",
function(){return b().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.c(_.kY,{data:function(){return b().primaryButton}},{buttonViewModel:function(P){return _.c("div",{class:"ytEduCardViewModelPrimaryButton"},_.c(_.j$,{data:P.data}))}}),_.c(_.kY,{data:function(){return b().secondaryButton}},{buttonViewModel:function(P){return _.c("div",{class:"ytEduCardViewModelSecondaryButton"},_.c(_.j$,{data:P.data}))}})))}))},"bd"),"yt-edu-card-view-model",{props:{data:_.kg}});var eD4=new _.nO("RICH_GRID_VIDEO_RENDERER_TOKEN");_.qu(_.A(function(N){var b=N.data;var S=N.showYtInteractionInContent;var P=function(){return!!b().selectableFeedback};
N=_.O(_.QF(!1,void 0,"qxtgaf"));var H=N.next().value,K=N.next().value;_.YU(function(){var m=_.t(b().primaryButton,_.dU);(m==null?0:m.isToggled)&&K(m.isToggled)});
N=_.Ob(function(m){if(!P())return!1;if(H()){var k;var M=(k=b().selectableFeedback)==null?void 0:k.onDeselect}else{var l;M=(l=b().selectableFeedback)==null?void 0:l.onSelect}M&&_.AM(M,{form:{element:m.target}});K(!H());if(m=_.t(b().primaryButton,_.dU))m.isToggled=H();return!1});
var C=function(){if(!P()){var m,k=(m=b().loggingDirectives)==null?void 0:m.trackingParams;k&&_.yj(_.aN().resolve(_.Sz),k)}},G=_.l$p(),a=function(){var m;
return P()?(m=b().selectableFeedback)==null?void 0:m.a11yLabel:void 0},R=function(){return P()?{toggled:H()}:{}},n=_.aN().resolve(_.cq(eD4)),d={};
return _.c("yt-feedback-item-renderer",{class:_.KU("ytFeedbackItemRendererHost",(d.ytFeedbackItemRendererSelectableFeedback=P,d)),"on:click":N,"on:keydown":G,title:a,"aria-label":a,"aria-pressed":function(){return P()?H():void 0},
tabindex:function(){return P()?0:void 0},
role:function(){return P()?"button":void 0}},_.c("div",{class:"ytFeedbackItemRendererContentContainer"},_.c(_.kY,{data:function(){return b().content}},{videoRenderer:function(m){return _.c(n,{data:m.data,
showYtInteraction:S})},
lockupViewModel:function(m){return _.c(_.Y3,{data:m.data,containerType:2})}})),_.c("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.c(_.kY,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(m){return _.c(_.Hc,{data:m.data,
buttonShapeOverrides:R,disableExplicitClickLogging:!0,onToggle:C})}})))},"cd"),"yt-feedback-item-renderer",{props:{data:_.kg,
showYtInteractionInContent:_.kg}});var aY=function(){var N=_.z.apply(this,arguments)||this;N.isShortsGrid=!1;N.isCompactGrid=!1;N.isShortsPanelGrid=!1;N.renderedFromRichGrid=!1;N.isInFirstColumn=!1;N.noGutterMargins=!1;N.noBottomMargin=!1;N.halfBottomMargin=!1;N.isInlineGroupItem=!1;N.insetMetadata=!1;N.noBottomMarginInAds=!0;N.force16By9ThumbnailAspectRatio=!1;N.useCompactList=!1;N.containerType=2;N.thumbnailTargetWidth=9999;N.isResponsiveGrid=!1;N.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};N.hoverListener=
N.hover.bind(N);N.leaveListener=N.leave.bind(N);N.highlighted=!1;N.JSC$16539_unsubscribeFromInlinePreviewIsActive=function(){};
return N};
_.F(aY,_.z);_.v=aY.prototype;_.v.computeContainerType=function(){return this.useCompactList?3:2};
_.v.itemWidthChanged=function(){var N;this.thumbnailTargetWidth=(N=this.itemWidth)!=null?N:9999};
_.v.updateIsInFirstColumn=function(){var N;this.isInFirstColumn=((N=this.data)==null?void 0:N.colIndex)===0};
_.v.observerContainerType=function(){if(this.lockup){var N=this.lockup;N.containerType=this.containerType;N.sizing=this.sizing;N.typographyBump=this.typographyBump;N.itemWidth=this.itemWidth}this.richGridMedia&&_.T("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.T("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.v.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.v.leave=function(N){N=N.relatedTarget;var b=document.querySelector("ytd-video-preview");N&&b&&_.sj(b).contains(N)||this.removeAndCleanupHighlight()};
_.v.hover=function(){var N;!this.highlighted&&(N=this.data)!=null&&N.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(N=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:N,boxShadow:"0 0 0 10px "+N})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.v.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.v.registerHoverHighlightListeners=function(){var N=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16539_unsubscribeFromInlinePreviewIsActive=_.hT(_.h0(),_.Ego,function(b){N.highlighted&&!b&&N.removeAndCleanupHighlight()})};
_.v.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16539_unsubscribeFromInlinePreviewIsActive()};
_.v.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.v.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.v.getBackgroundColor=function(){var N,b,S=(N=this.data)==null?void 0:(b=N.onFocusEffect)==null?void 0:b.onFocusColor;if(S){if(document.documentElement.hasAttribute("dark")&&(S==null?0:S.darkTheme))return Js(S==null?void 0:S.darkTheme);if(S==null?0:S.lightTheme)return Js(S==null?void 0:S.lightTheme)}};
_.v.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var N=_.Qh(),b,S,P;N&&((b=this.data)==null?0:b.trackingParams)&&((S=this.data)==null?void 0:S.colIndex)!=null&&((P=this.data)==null?void 0:P.rowIndex)!=null&&_.Dp(N,_.FA(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.v.isSlimMediaRenderer=function(N){return!!_.t(N==null?void 0:N.content,_.m$c)||!!_.t(N==null?void 0:N.content,d$c)||!!_.t(N==null?void 0:N.content,_.Cc)||!!_.t(N==null?void 0:N.content,ptZ)};
_.v.isPostRenderer=function(){var N,b;return!!_.t((N=this.data)==null?void 0:N.content,Uk9)||!!_.t((b=this.data)==null?void 0:b.content,ZOl)};
_.v.computeIsGameCardShelf=function(){var N;return!!_.t((N=this.data)==null?void 0:N.content,$P9)};
_.v.computeIsMiniGameCardShelf=function(){var N,b;return!!_.t((N=this.data)==null?void 0:N.content,Gy9)||!!_.t((b=this.data)==null?void 0:b.content,rjz)};
_.v.computeIsTeaserCard=function(){var N;return!!_.t((N=this.data)==null?void 0:N.content,rjz)};
_.v.computeIsSelectableFeedbackItem=function(){var N,b;return!((b=_.t((N=this.data)==null?void 0:N.content,ask))==null||!b.selectableFeedback)};
_.v.computeContainsLumierePosters=function(){var N,b;return((b=_.t((N=this.data)==null?void 0:N.content,IaZ))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.computeIsExpandOnHoverCardShelf=function(){var N;return!!_.t((N=this.data)==null?void 0:N.content,yql)};
_.v.computeIsLinkCardShelf=function(){var N;return!!_.t((N=this.data)==null?void 0:N.content,wOk)};
_.v.computeIsReelItemStyleAvatarCircle=function(N){var b;return((b=_.t(N==null?void 0:N.content,_.Cc))==null?void 0:b.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.v.computeIsLinkCardFullWidth=function(N,b){var S;return((S=_.t(N==null?void 0:N.content,wOk))==null?void 0:S.useFullWidth)||b<=2};
_.d0.Object.defineProperties(aY.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var N;return _.T("web_hover_effect_refactor")&&_.t((N=this.data)==null?void 0:N.content,_.b59)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.T("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var N;if(_.T("web_hover_effect_refactor")&&_.t((N=this.data)==null?void 0:N.content,_.b59))return!1;var b;return!((b=this.data)==null||!b.onFocusEffect)||_.T("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var N;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.T("web_hover_effect_refactor")?(N=this.data)==null?void 0:N.onFocusEffect:void 0}}}});
aY.prototype.richGridHoverHighlightChanged=aY.prototype.richGridHoverHighlightChanged;aY.prototype.observerContainerType=aY.prototype.observerContainerType;aY.prototype.updateIsInFirstColumn=aY.prototype.updateIsInFirstColumn;aY.prototype.itemWidthChanged=aY.prototype.itemWidthChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],aY.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],aY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],aY.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aY.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.y("design:type",Boolean)],aY.prototype,"isPost",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.y("design:type",Boolean)],aY.prototype,"containsLumierePosters",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.y("design:type",Boolean)],aY.prototype,"isSlimMedia",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.y("design:type",Boolean)],aY.prototype,"isGameCardShelf",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.y("design:type",Boolean)],aY.prototype,"isMiniGameCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.y("design:type",Boolean)],aY.prototype,"isTeaserCard",void 0);_.p([_.U({computed:"computeIsSelectableFeedbackItem(data)"}),_.y("design:type",Boolean)],aY.prototype,"isSelectableFeedbackItem",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isShortsGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],aY.prototype,"isSlimGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isCompactGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isShortsPanelGrid",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.y("design:type",Boolean)],aY.prototype,"isExpandOnHoverCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.y("design:type",Boolean)],aY.prototype,"isLinkCardShelf",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.xG,value:3}),_.y("design:type",Number)],aY.prototype,"itemsPerRow",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"renderedFromRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isInFirstColumn",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"noGutterMargins",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"noBottomMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"halfBottomMargin",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isInlineGroupItem",void 0);_.p([_.U(),_.y("design:type",Object)],aY.prototype,"insetMetadata",void 0);_.p([_.U(),_.y("design:type",Object)],aY.prototype,"noBottomMarginInAds",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],aY.prototype,"isShelfItem",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.y("design:type",Boolean)],aY.prototype,"isReelItemStyleAvatarCircle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.y("design:type",Boolean)],aY.prototype,"isLinkCardFullWidth",void 0);_.p([_.U(),_.y("design:type",Object)],aY.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"useCompactList",void 0);_.p([_.U(),_.y("design:type",String)],aY.prototype,"sizing",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],aY.prototype,"typographyBump",void 0);_.p([_.U(),_.y("design:type",Number)],aY.prototype,"itemWidth",void 0);_.p([_.U(),_.y("design:type",Boolean)],aY.prototype,"isHomeShelf",void 0);_.p([_.U(),_.y("design:type",Boolean)],aY.prototype,"isHomeGrid",void 0);
_.p([_.dq("yt-lockup-view-model"),_.y("design:type",HTMLElement)],aY.prototype,"lockup",void 0);_.p([_.dq("ytd-rich-grid-media"),_.y("design:type",HTMLElement)],aY.prototype,"richGridMedia",void 0);_.p([_.dq("ytd-ad-slot-renderer"),_.y("design:type",HTMLElement)],aY.prototype,"adSlotRenderer",void 0);_.p([_.U({computed:"computeContainerType(useCompactList)"}),_.y("design:type",Object)],aY.prototype,"containerType",void 0);_.p([_.U(),_.y("design:type",Object)],aY.prototype,"thumbnailTargetWidth",void 0);
_.p([_.f("showYtInteractionOnRichItem"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aY.prototype,"showYtInteractionOnRichGridMedia",null);_.p([_.f("isSelectableFeedbackItem","richGridHoverHighlight"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aY.prototype,"showYtInteractionOnRichItem",null);_.p([_.f("typographyBump","isHomeGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aY.prototype,"richTypographyBump",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data","isShortsGrid","isCompactGrid"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aY.prototype,"richGridHoverHighlight",null);_.p([_.f("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],aY.prototype,"shortsLockupViewModelAspectRatio",null);_.p([_.f("isInlineGroupItem"),_.y("design:type",Number),_.y("design:paramtypes",[])],aY.prototype,"shortsLockupViewModelScrimStyle",null);
_.p([_.W4("itemWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"itemWidthChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"updateIsInFirstColumn",null);_.p([_.W4("containerType","sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"observerContainerType",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],aY.prototype,"isResponsiveGrid",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],aY.prototype,"lockupExperiments",null);_.p([_.W4("richGridHoverHighlight"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aY.prototype,"richGridHoverHighlightChanged",null);_.p([_.Uj({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],aY);
_.$dZ=_.H7()(aY,"ytd-rich-item-renderer",function(){if(ZBz===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);ZBz=N}N=ZBz;return N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var zIL={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var hIY=_.gy(_.cN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Xbf={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},pbE={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Ygu={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var hDl;var RY=function(){var N=_.z.apply(this,arguments)||this;N.useResponsiveGrid=!1;N.hidden=!1;N.isShowMoreHidden=!1;N.isShowLessHidden=!0;N.hasExpansionButton=!1;N.isInnerShelf=!1;N.allVideosCount=0;N.allPlaylistCount=0;N.haveSmartDownloadsCompleted=!1;N.restrictContentsOverflow=!1;N.firstShownIndex=0;N.horizontalOffset=0;N.atEnd=!0;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
N.disableServiceRequestPropagation=function(b){b.stopPropagation()};
N.nextClick=function(){var b;(b=N.data)!=null&&b.contents&&(N.firstShownIndex+=N.currentElementsPerRow,N.updateHorizontalOffset(),N.updateHorizontalItemVisibility())};
N.previousClick=function(){var b;(b=N.data)!=null&&b.contents&&(N.firstShownIndex-=N.currentElementsPerRow,N.updateHorizontalOffset(),N.updateHorizontalItemVisibility())};
return N};
_.F(RY,_.z);_.v=RY.prototype;
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.Vg("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.v.attached=function(){this.requestElementsPerRow();_.T("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.v.detached=function(){_.T("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.v.refreshGridLayoutNew=function(){var N;if((N=this.data)!=null&&N.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(N=_.Nh_(this.data.responsiveContainerConfiguration,this.containerWidth,2),N=_.A5(Object.assign({},N,{standardUnitMinWidth:this.standardUnitMinWidth}))):N=_.A5({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=N.typographyBump;if(this.elementsPerRow!==
N.numItems||this.gutter!==N.gutter)this.elementsPerRow=N.numItems,this.gutter=N.gutter,this.itemWidth=N.itemWidth,_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":N.gutter+"px"})}};
_.v.computeSizing=function(){if(!this.isLumiere){var N=_.kAI(this.data);return N?N:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.v.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.v.computeButton=function(N){var b=_.t(N,_.rU);N=Object.assign({},_.t(N,_.rU));return b?(N.text||(N.text={simpleText:N.tooltip}),N.style="STYLE_MONO_OUTLINE",N.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",N):b};
_.v.onRowIndexChange=function(){var N=_.Qh(),b,S;((b=this.data)==null?0:b.trackingParams)&&((S=this.data)==null?void 0:S.rowIndex)!=null&&N&&_.Dp(N,_.FA(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.v.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var N,b=((N=this.getRichItemRenderers()[0])==null?void 0:N.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
_.v.onUpdateElementsPerRowAction=function(N,b,S,P,H,K){if(this.containerWidth!==K&&(this.containerWidth=K,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&N&&b&&S&&P&&H&&(this.elementsPerRow!==N||this.postsPerRow!==b||this.slimItemsPerRow!==S||this.gameCardsPerRow!==P||this.miniGameCardsPerRow!==H)&&(this.elementsPerRow=N,this.postsPerRow=b,this.slimItemsPerRow=S,this.gameCardsPerRow=P,this.miniGameCardsPerRow=H,this.updateItemVisibility())};
_.v.isExpandedChanged=function(){var N=this.getRichItemRenderers(),b=this.isExpanded;N.forEach(function(S){S.halfBottomMargin=b})};
_.v.isCollapsedChanged=function(){var N=this.getRichItemRenderers(),b=this.isCollapsed;N.forEach(function(S){S.noBottomMargin=b})};
_.v.getRichItemRenderers=function(){return _.H4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.v.updateItemVisibility=function(){var N=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(P,H){var K;((K=N.data)==null?0:K.isExpanded)?(P.hidden=H>b-1,P.ytRendererBehavior.markDirty()):P.hidden=H>N.currentElementsPerRow-1||H>b-1});
var S=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||S||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||S||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.v.setHeightToSingleRow=function(){var N=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(N[0]).marginBottom,10)||0;N=N.slice(0,this.currentElementsPerRow).reduce(function(S,P){return Math.max(S,P.getBoundingClientRect().height+b)},0);
this.contents.style.height=N+"px"};
_.v.focusNextExpandedItem=function(){var N;((N=this.data)==null?0:N.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.v.focusItem=function(N,b){var S=this.getRichItemRenderers();if(S[N]&&(N=S[N].querySelector(".focus-on-expand"))){if(b){var P;(P=S[this.currentElementsPerRow])==null||P.scrollIntoView({behavior:"smooth",block:"center"})}N.focus({preventScroll:!0})}};
_.v.onDataChange=function(){var N=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var b;if((b=this.data)==null?0:b.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.W_(this,function(){N.updateItemVisibility()});
var S;if((S=this.data)==null?0:S.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.rq(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b<this.data.contents.length;b++)S=_.t(this.data.contents[b],_.$6)||{},S.colIndex=b,S.rowIndex=this.data.rowIndex};
_.v.handleRerenderDownloadsData=function(){_.T("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.v.blockInlinePreview=function(N){var b=this,S;return _.r(function(P){(S=b.inlinePreviewIsEnabled)&&b.ytdReduxBehavior.dispatch(_.IFd(!1));return P.return(new Promise(function(H){N(function(){S&&b.ytdReduxBehavior.dispatch(_.IFd(!0));H()})}))})};
_.v.expandShelf=function(){var N=this;if(this.data){var b,S=(b=_.t(this.data.showMoreButton,_.rU))==null?void 0:b.trackingParams;S&&_.yj(_.dG(),S);this.set("data.isExpanded",!0);this.blockInlinePreview(function(P){N.setHeightToSingleRow();N.updateItemVisibility();N.contents.style.height=N.contents.scrollHeight+"px";_.Dj.addJob(function(){N.contents.style.height="auto";N.focusNextExpandedItem();P()},2,200)})}};
_.v.collapseShelf=function(){var N=this;return _.r(function(b){if(b.nextAddress==1){if(!N.data)return b.return();N.set("data.isExpanded",!1);return b.yield(N.blockInlinePreview(function(S){N.contents.style.height=N.contents.scrollHeight+"px";N.setHeightToSingleRow();_.Dj.addJob(function(){N.updateItemVisibility();N.contents.style.height="auto";S()},2,200)}),2)}_.bC(N.hostElement,"yt-rich-shelf-renderer-collapse",N.data.trackingParams);
N.focusItem(0,!1);_.Zd(b)})};
_.v.updateArrowButtonStatus=function(){this.getRichItemRenderers();var N,b;var S=((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=S};
_.v.onChildElementFocus=function(N){this.hasChevronButtons&&(N=N.target.closest("#contents > *"),this.contents.contains(N)&&(N.offsetLeft<this.horizontalOffset?this.previousClick():N.offsetLeft+N.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.v.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Vg("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.v.updateHorizontalOffset=function(){var N=this.getRichItemRenderers(),b,S;var P=((b=this.data)==null?void 0:(S=b.contents)==null?void 0:S.length)||0;var H;N=((H=N[0])==null?void 0:H.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>P?this.firstShownIndex=P-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*N};
_.v.isSlimMediaShelfRenderer=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!!(_.t(P,_.m$c)||_.t(P,d$c)||_.t(P,_.Cc)||_.t(P,ptZ))};
_.v.isGameCardShelf=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!!_.t(P,$P9)};
_.v.isMiniGameCardShelf=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!!_.t(P,Gy9)||!!_.t(P,rjz)};
_.v.hasGameBoxArtAvatarStyle=function(){var N;return((N=this.data)==null?void 0:N.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.v.hasRoundedGameBoxArtAvatarStyle=function(){var N;return((N=this.data)==null?void 0:N.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.v.isShortsShelf=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!!_.t(P,_.Cc)||!!_.t(P,ptZ)};
_.v.isPostShelfRenderer=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!(!_.t(P,Uk9)&&!_.t(P,ZOl))};
_.v.isLumiereShelf=function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6);return!!_.t(S==null?void 0:S.content,IaZ)};
_.v.isLumiereShelfWithPosters=function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6),P;return((P=_.t(S==null?void 0:S.content,IaZ))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.isExpandOnHoverCardShelf=function(){var N,b,S,P=(S=_.t((N=this.data)==null?void 0:(b=N.contents)==null?void 0:b[0],_.$6))==null?void 0:S.content;return!!_.t(P,yql)};
_.v.computeHasFeaturedBadge=function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.badges)==null?void 0:b[0],_.G$z);return S?S.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHasPaygatedFeaturedBadge=function(){var N,b,S=_.t((N=this.data)==null?void 0:(b=N.badges)==null?void 0:b[0],_.G$z);return S?(S==null?void 0:S.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHeaderHidden=function(){var N,b,S,P,H,K;return!((N=this.data)==null?0:N.icon)&&!((b=this.data)==null?0:b.title)&&!((S=this.data)==null?0:S.subtitle)&&!((P=this.data)==null?0:P.thumbnail)&&!((H=this.data)==null?0:H.badges)&&!((K=this.data)==null?0:K.menu)};
_.v.showCtaButton=function(){var N;return!((N=this.data)==null||!N.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.v.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.v.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.v.computeForce16By9ThumbnailAspectRatio=function(){var N,b;return((N=this.data)==null?void 0:(b=N.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.v.onSectionReactiveDismissal=function(N,b,S){var P,H;var K=(P=this.data)==null?void 0:(H=P.targetingContext)==null?void 0:H.targetGroupId;this&&K&&b.targetGroupId&&K.includes(b.targetGroupId)?(P=this.rowIndex,N=P===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&P<=N)):N=!1;N&&(this.hidden=S)};
_.d0.Object.defineProperties(RY.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var N=this.elementsPerRow;this.isPostShelfRenderer()?N=this.postsPerRow:this.isSlimMediaShelfRenderer()?N=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?N=this.slimItemsPerRow-1:this.isGameCardShelf()?N=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(N=this.miniGameCardsPerRow);return N}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.previousButton)&&!((b=this.data)==null||!b.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.aN().resolve(_.$9).getCurrentPage())==null?void 0:N.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return!((N=this.data)==null?0:(b=N.thumbnail)==null?0:(S=b.accessibility)==null?0:(P=S.accessibilityData)==null?0:P.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
RY.prototype.onChildElementFocus=RY.prototype.onChildElementFocus;RY.prototype.handleRerenderDownloadsData=RY.prototype.handleRerenderDownloadsData;RY.prototype.onDataChange=RY.prototype.onDataChange;RY.prototype.isCollapsedChanged=RY.prototype.isCollapsedChanged;RY.prototype.isExpandedChanged=RY.prototype.isExpandedChanged;RY.prototype.onRowIndexChange=RY.prototype.onRowIndexChange;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],RY.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],RY.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],RY.prototype,"ytdReduxBehavior",void 0);
_.p([_.U({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.y("design:type",Object)],RY.prototype,"useResponsiveGrid",void 0);_.p([_.U(),_.y("design:type",Object)],RY.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],RY.prototype,"standardUnitMinWidth",void 0);_.p([_.U({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],RY.prototype,"elementsPerRow",void 0);_.p([_.U({value:3}),_.y("design:type",Number)],RY.prototype,"postsPerRow",void 0);
_.p([_.U({value:6}),_.y("design:type",Number)],RY.prototype,"slimItemsPerRow",void 0);_.p([_.U({value:6}),_.y("design:type",Number)],RY.prototype,"gameCardsPerRow",void 0);_.p([_.U({value:6}),_.y("design:type",Number)],RY.prototype,"miniGameCardsPerRow",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RY.prototype,"hidden",void 0);_.p([_.U(),_.y("design:type",Object)],RY.prototype,"isShowMoreHidden",void 0);
_.p([_.U(),_.y("design:type",Object)],RY.prototype,"isShowLessHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RY.prototype,"hasExpansionButton",void 0);_.p([_.f("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"isExpanded",null);_.p([_.f("data.isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"isCollapsed",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RY.prototype,"isInnerShelf",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.y("design:type",Boolean)],RY.prototype,"isShorts",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.y("design:type",Boolean)],RY.prototype,"isLumiere",void 0);_.p([_.U({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],RY.prototype,"hasBoxArtThumbnailStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.y("design:type",Boolean)],RY.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.y("design:type",Boolean)],RY.prototype,"hasFeaturedBadge",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.y("design:type",Boolean)],RY.prototype,"hasPaygatedFeaturedBadge",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.y("design:type",Boolean)],RY.prototype,"isHeaderHidden",void 0);_.p([_.U({selector:_.V$u}),_.y("design:type",Object)],RY.prototype,"allVideosCount",void 0);_.p([_.U({selector:wb9}),_.y("design:type",Object)],RY.prototype,"allPlaylistCount",void 0);_.p([_.U({selector:P$U}),_.y("design:type",Object)],RY.prototype,"haveSmartDownloadsCompleted",void 0);
_.p([_.U({selectorArgs:["entitySelectorType"],selector:function(N,b){if(_.T("kevlar_modern_downloads_page")&&b&&b!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var S=N.entities;switch(b){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":b=_.Lu(S);N=no(b);var P=_.TL(b);S=_.uV(S);S=_.bV(IOe(P,S,b.length));return{contents:N,subtitle:S};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return S=_.Lu(S),{contents:no(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return S=
_.fu(S),{contents:no(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return S=_.FDo(S),{contents:no(S)};default:_.$h(new _.jU("Error: entitySelectorType defined but not matched in selector.",N,b))}}}}),
_.y("design:type",Object)],RY.prototype,"entityDrivenRichShelfData",void 0);_.p([_.U({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],RY.prototype,"hasTopCtaButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.y("design:type",Boolean)],RY.prototype,"hasBottomCtaButton",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.y("design:type",Boolean)],RY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],RY.prototype,"restrictContentsOverflow",void 0);_.p([_.U({selector:_.ptO}),_.y("design:type",Boolean)],RY.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U({computed:"computeSizing(data)"}),_.y("design:type",String)],RY.prototype,"sizing",void 0);
_.p([_.U(),_.y("design:type",Boolean)],RY.prototype,"typographyBump",void 0);_.p([_.U(),_.y("design:type",Number)],RY.prototype,"itemWidth",void 0);_.p([_.U(),_.y("design:type",Object)],RY.prototype,"firstShownIndex",void 0);_.p([_.U(),_.y("design:type",Object)],RY.prototype,"horizontalOffset",void 0);_.p([_.U(),_.y("design:type",Object)],RY.prototype,"atEnd",void 0);_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],RY.prototype,"contents",void 0);
_.p([_.W4("data.rowIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RY.prototype,"onRowIndexChange",null);_.p([_.W4("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RY.prototype,"isExpandedChanged",null);_.p([_.W4("isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RY.prototype,"isCollapsedChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RY.prototype,"onDataChange",null);_.p([_.W4("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RY.prototype,"handleRerenderDownloadsData",null);_.p([_.RA("focusin"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],RY.prototype,"onChildElementFocus",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data","isHomePage"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"isTruncated",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"showBottomDivider",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],RY.prototype,"hasChevronButtons",null);
_.p([_.f("firstShownIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],RY.prototype,"previousButtonOverride",null);_.p([_.f("atEnd"),_.y("design:type",Object),_.y("design:paramtypes",[])],RY.prototype,"nextButtonOverride",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"isHomePage",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],RY.prototype,"thumbnailAriaHidden",null);
_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],RY.prototype,"entitySelectorType",null);_.p([_.Uj({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],RY);
_.qk9=_.H7()(RY,"ytd-rich-shelf-renderer",function(){if(hDl===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);hDl=N}N=hDl;return N},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var wgO;_.qu(_.LH,"yt-badge-view-model",{props:{data:_.kg,class:_.kg,workaroundShortsIsThumbnailBadge:_.kg,modern:_.kg,numBadgesInRow:_.kg,clipTextOverflow:_.kg,inheritTypography:_.kg}});_.qu(tbk,"yt-slimline-survey-view-model",{props:{data:_.kg}});var WL=function(){var N=_.z.apply(this,arguments)||this;N.tileLottieAnimationRef={};N.backgroundLottieAnimationRef={};N.isOnHoverBehaviorForLottieEnabled=!0;N.useBiggerShowcaseImage=_.T("enable_desktop_search_bigger_thumbs");N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return N};
_.F(WL,_.z);_.v=WL.prototype;_.v.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.v.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.v.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var N=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);N!==this.hasTile&&this.set("hasTile",N);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.v.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.v.currentColorChanged=function(){this.updateButtonPalette()};
_.v.computeBackgroundStyle=function(N){if(N&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.NE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&b.push('background-image: url("'+S+'");')}var P;((P=N.basicColorData)==null?void 0:P.backgroundColor)!==void 0&&b.push("background-color: "+_.o3(N.basicColorData.backgroundColor)+";");return b.join("")}};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N)};
_.v.getCurrentLogo=function(N,b){if(N)return b?N.darkLogoImage:N.lightLogoImage};
_.v.getCurrentStaticTileImage=function(N,b){if(this.hasStaticTile(N))return N.darkTileImage?b?N.darkTileImage:N.tileImage:N.tileImage};
_.v.computeTitleStyle=function(N){if(this.data&&this.data.title&&N&&N.basicColorData&&N.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.xn(N.basicColorData.foregroundTitleColor)+";"};
_.v.computeSubtitleStyle=function(N){if(this.data&&this.data.subtitle&&N&&N.basicColorData&&N.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.xn(N.basicColorData.foregroundBodyColor)+";"};
_.v.computeSupplementalStyle=function(N){if(this.data&&this.data.supplementalText&&N&&N.supplementalTextColor!==void 0)return N=_.xn(N.supplementalTextColor),"color:"+N+";--yt-endpoint-color:"+N+";--yt-endpoint-hover-color:"+N+";--yt-endpoint-visited-color:"+N+";--yt-formatted-string-bold-font-weight:700;"};
_.v.computeDismissIconStyle=function(N){var b,S;if((N==null?0:(b=N.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(N==null?0:(S=N.dismissButtonColorData)==null?0:S.backgroundColor))return"--yt-button-color:"+_.o3(N.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.o3(N.dismissButtonColorData.backgroundColor)+";"};
_.v.computeOverflowIconStyle=function(N){var b,S;if((N==null?0:(b=N.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(N==null?0:(S=N.dismissButtonColorData)==null?0:S.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.o3(N.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.o3(N.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.o3(N.dismissButtonColorData.foregroundTitleColor)+";"};
_.v.computeBannerStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeLocation=function(N){switch(N==null?void 0:N.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.v.shouldShowTileSection=function(N,b,S){return!this.shouldExpandLogo(N,b,S)&&b};
_.v.shouldShowExpandedLogoSection=function(N,b,S){return this.shouldExpandLogo(N,b,S)&&N!==void 0&&this.hasLogo(N)};
_.v.shouldExpandLogo=function(N,b,S){return N&&b?!1:S>=2};
_.v.hasStaticTile=function(N){return!(N==null||!N.tileImage)};
_.v.hasTileLottie=function(N){var b;return!!(N==null?0:(b=N.tileLottie)==null?0:b.url)};
_.v.hasLogo=function(N){return this.getCurrentLogo(N,this.isDarkTheme)!==void 0};
_.v.getLogoHeight=function(N){return this.logoWithPadding(N)?"26":"20"};
_.v.getExpandedLogoHeight=function(N){return this.logoWithPadding(N)?"31":"24"};
_.v.getLogoImageId=function(N){return this.logoWithPadding(N)?"logo-image-with-padding":"logo-image"};
_.v.getMaxTitleFontSize=function(N){return N.overrideTitleMaxFontSize?String(N.overrideTitleMaxFontSize):"36"};
_.v.hasBackgroundLottie=function(N){var b;return!!(N==null?0:(b=N.backgroundLottie)==null?0:b.url)};
_.v.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var N,b;(N=this.tileLottieAnimationRef)==null||(b=N.lottieEl)==null||b.play();var S,P;(S=this.backgroundLottieAnimationRef)==null||(P=S.lottieEl)==null||P.play()}};
_.v.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var N,b;(N=this.tileLottieAnimationRef)==null||(b=N.lottieEl)==null||b.pause();var S,P;(S=this.backgroundLottieAnimationRef)==null||(P=S.lottieEl)==null||P.pause()}};
_.v.pauseLottie=function(){var N,b;(N=this.tileLottieAnimationRef)==null||(b=N.lottieEl)==null||b.pause();var S,P;(S=this.backgroundLottieAnimationRef)==null||(P=S.lottieEl)==null||P.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.v.performPrimaryButtonAction=function(){var N,b,S;((N=this.data)==null?0:(b=N.primaryButton)==null?0:(S=b.buttonRenderer)==null?0:S.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateButtonPalette=function(){if(this.data&&this.currentColorData){var N;((N=this.data.dismissButton)==null?0:N.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var b;if((b=this.data.primaryButton)==null?0:b.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var S;if((S=this.data.secondaryButton)==
null?0:S.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var P;((P=this.data.primaryButton)==null?0:P.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var H;((H=this.data.primaryButton)==null?0:H.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var K;((K=this.data.secondaryButton)==null?0:K.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var C;((C=this.data.primaryButton)==null?0:C.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.v.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var N=this.getTileLottieDataBasedOnTheme(),b,S;if(N.url!==((b=this.tileLottiePlayerProps)==null?void 0:(S=b.animationConfig)==null?void 0:S.path)){var P,H;(P=this.tileLottieAnimationRef)==null||(H=P.lottieEl)==null||H.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=N.settings)==null?0:K.autoplay);var C,G;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(G=(C=N.settings)==null?void 0:C.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(N.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof N.url==="string"?this.tileLottiePlayerProps.animationConfig.path=N.url:this.tileLottiePlayerProps.animationConfig.animationData=N.url}}};
_.v.getOverflowButton=function(N){return _.t(N.overflowButton,V$z)};
_.v.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var N=this.getBackgroundLottieDataBasedOnTheme(),b,S;if(N.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(S=b.animationConfig)==null?void 0:S.path)){var P,H;(P=this.backgroundLottieAnimationRef)==null||(H=P.lottieEl)==null||H.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=N.settings)==null?0:K.autoplay);var C,G;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(G=(C=N.settings)==null?void 0:C.autoplay)!=null?G:!1,loop:this.getLottieLoopValue(N.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof N.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=N.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
N.url}}};
_.v.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var N;((N=this.tileLottieAnimationRef)==null?void 0:N.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.v.getTileLottieDataBasedOnTheme=function(){var N;if(this.isDarkTheme&&((N=this.data)==null?0:N.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}};
_.v.getBackgroundLottieDataBasedOnTheme=function(){var N;if(this.isDarkTheme&&((N=this.data)==null?0:N.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}};
_.v.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
_.v.getLottieLoopValue=function(N){return N?N.loop!==void 0?N.loop:N.loopCount?N.loopCount-1:!0:!0};
_.v.logoWithPadding=function(N){var b,S,P;return(N=(b=this.getCurrentLogo(N,this.isDarkTheme))==null?void 0:(S=b.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&N%31===0?!0:!1};
WL.prototype.currentColorChanged=WL.prototype.currentColorChanged;WL.prototype.themeChanged=WL.prototype.themeChanged;WL.prototype.dataChanged=WL.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],WL.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],WL.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"primaryButton",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"secondaryButton",void 0);
_.p([_.U({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],WL.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WL.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WL.prototype,"hasTile",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WL.prototype,"hasMetadata",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],WL.prototype,"showLogoImage",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"currentColorData",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.y("design:type",String)],WL.prototype,"bannerStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.y("design:type",String)],WL.prototype,"location",void 0);
_.p([_.U(),_.y("design:type",Object)],WL.prototype,"tileLottiePlayerProps",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"tileLottieAnimationRef",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"backgroundLottiePlayerProps",void 0);_.p([_.U(),_.y("design:type",Object)],WL.prototype,"backgroundLottieAnimationRef",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],WL.prototype,"useBiggerShowcaseImage",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],WL.prototype,"isHideEnclosingAction",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WL.prototype,"dataChanged",null);_.p([_.t_("isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WL.prototype,"themeChanged",null);
_.p([_.t_("currentColorData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WL.prototype,"currentColorChanged",null);_.p([_.Uj({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],WL);
_.X(WL,"ytd-statement-banner-renderer",function(){if(wgO!==void 0)return wgO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wgO=N},{mode:1});var NJV;var nw=function(){var N=_.z.apply(this,arguments)||this;N.isSearch=!1;N.hideShelfHeader=!1;N.engagementPanel=!1;N.disableMouseScroll=!0;N.useFloorScrolling=!0;return N};
_.F(nw,_.z);nw.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.cN("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.cN("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
nw.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
nw.prototype.onDataChanged=nw.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nw.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nw.prototype,"hideShelfHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nw.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],nw.prototype,"disableMouseScroll",void 0);_.p([_.U(),_.y("design:type",Object)],nw.prototype,"useFloorScrolling",void 0);_.p([_.U(),_.y("design:type",Object)],nw.prototype,"data",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nw.prototype,"onDataChanged",null);
_.p([_.Uj({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],nw);
_.X(nw,"ytd-reel-shelf-renderer",function(){if(NJV!==void 0)return NJV;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return NJV=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var b_b;var Sh9;Sh9=_.$E(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.P_V=_.Mz(Sh9);var H_9=_.A(function(N){var b=N.data;N=N.useSmallFont;var S={},P={};return _.c("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.c(_.W,{cond:function(){return b().favicon},
then:function(H){return _.c(_.gG,{data:H,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.c("div",{class:"ytChannelExternalLinkViewModelContainer"},_.c(_.mD,{text:function(){return b().title},
className:_.KU("ytChannelExternalLinkViewModelTitle",(S.ytChannelExternalLinkViewModelTitleSmallFont=N,S)),ellipsisTruncate:!0,userInput:!0}),_.c(_.mD,{text:function(){return b().link},
className:_.KU("ytChannelExternalLinkViewModelLink",(P.ytChannelExternalLinkViewModelLinkSmallFont=N,P)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"dd");
H_9.idomCompat=!0;_.qu(H_9,"yt-channel-external-link-view-model",{props:{data:_.kg,useSmallFont:_.kg}});_.lo("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var df=function(){var N=_.z.apply(this,arguments)||this;N.revealButtonClass="button";N.businessEmailDisplayState="HIDE_SECTION";return N};
_.F(df,_.z);_.v=df.prototype;_.v.refit=function(){var N=this;_.p3(function(){_.PN(N.hostElement,"yt-refit-popups-action")});
_.W_(this,function(){_.PN(N.hostElement,"yt-refit-popups-action")})};
_.v.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zk(_.P_V),this.businessEmailDisplayState="CAPTCHA")};
_.v.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.v.computeEmailHref=function(N){return"mailto:"+N};
_.v.computeSafeUrl=function(N){if(N)return _.VK(N)};
_.v.linkEndpoint=function(N){return _.t(N.onTap,_.JM)};
_.v.linkEndpointToHref=function(N){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(N))};
_.v.onYtServiceRequestCompleted=function(N){var b;if((b=N.detail.data)==null?0:b.businessEmail)this.businessEmail=N.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=N.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=N.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var N=this.JSC$16653_captchaTextarea.value;if(N){N={recaptcha_response_token:N,channel_id:this.metadata.channelId};var b=_.t(this.metadata.onBusinessEmailRevealClickCommand,_.JM);b&&this.ytComponentBehavior.resolveCommand(b,{form:N})}}};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.d0.Object.defineProperties(df.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.data)==null?void 0:N.metadata,edc)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.t(this.metadata.businessEmailRevealButton,_.WC)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var N=new URL(this.metadata.canonicalChannelUrl);return N.host+N.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.t(this.metadata.learnMoreOnTap,_.JM)}}});
df.prototype.onYtServiceRequestCompleted=df.prototype.onYtServiceRequestCompleted;df.prototype.businessEmailMetadataChanged=df.prototype.businessEmailMetadataChanged;df.prototype.refit=df.prototype.refit;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],df.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],df.prototype,"JSC$16653_captchaTextarea",void 0);_.p([_.U(),_.y("design:type",Object)],df.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],df.prototype,"revealButtonClass",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],df.prototype,"metadata",null);
_.p([_.f("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],df.prototype,"revealButton",null);_.p([_.f("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],df.prototype,"channelDisplayUrl",null);_.p([_.t_("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],df.prototype,"refit",null);_.p([_.f("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],df.prototype,"formattedDescription",null);
_.p([_.f("metadata","learnMoreCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],df.prototype,"shouldRendereVerifiedPhoneStatus",null);_.p([_.f("metadata"),_.y("design:type",Object),_.y("design:paramtypes",[])],df.prototype,"learnMoreCommand",null);_.p([_.U(),_.y("design:type",String)],df.prototype,"businessEmailDisplayState",void 0);_.p([_.U(),_.y("design:type",String)],df.prototype,"businessEmail",void 0);
_.p([_.U(),_.y("design:type",String)],df.prototype,"businessEmailErrorMessage",void 0);_.p([_.t_("metadata"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],df.prototype,"businessEmailMetadataChanged",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],df.prototype,"onYtServiceRequestCompleted",null);
_.p([_.Uj({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],df);
_.X(df,"ytd-about-channel-renderer",function(){if(b_b!==void 0)return b_b;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return b_b=N},{mode:1});var sR9;var mY=function(){return _.z.apply(this,arguments)||this};
_.F(mY,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mY.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],mY);
_.X(mY,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(sR9!==void 0)return sR9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sR9=N},{mode:1});var KgE;var kP=function(){return _.z.apply(this,arguments)||this};
_.F(kP,_.z);kP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kP.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],kP.prototype,"aligment",void 0);_.p([_.Uj({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],kP);
_.X(kP,"ytd-channel-list-sub-menu-renderer",function(){if(KgE!==void 0)return KgE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return KgE=
N},{mode:1});var vxE;var Tf=function(){return _.z.apply(this,arguments)||this};
_.F(Tf,_.z);Tf.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tf.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Tf);
_.X(Tf,"ytd-channel-sub-menu-renderer",function(){if(vxE!==void 0)return vxE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return vxE=N},{mode:1});var O_9;var C_l;var tp=function(){var N=_.z.apply(this,arguments)||this;N.isCompact=!1;return N};
_.F(tp,_.z);_.d0.Object.defineProperties(tp.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var N,b;return((b=_.t((N=this.data)==null?void 0:N.endpoint,_.Hz))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],tp.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tp.prototype,"isCompact",void 0);_.p([_.f("isCompact"),_.y("design:type",Number),_.y("design:paramtypes",[])],tp.prototype,"thumbnailWidth",null);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tp.prototype,"openNewWindow",null);_.p([_.Uj({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],tp);
_.X(tp,"ytd-media-lockup-renderer",function(){if(C_l!==void 0)return C_l;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return C_l=N},{mode:1});var Gp4;var MV=function(){return _.z.apply(this,arguments)||this};
_.F(MV,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],MV.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MV.prototype,"data",void 0);_.p([_.Uj({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],MV);
_.X(MV,"ytd-structured-description-channel-lockup-renderer",function(){if(Gp4!==void 0)return Gp4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Gp4=N},{mode:1});var r4Z;var Fu=function(){var N=_.z.apply(this,arguments)||this;N.isCompact=!1;N.collectionsStackColor=_.T("modernize_structured_description_playlist_lockups_v2");return N};
_.F(Fu,_.z);Fu.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.T("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.d0.Object.defineProperties(Fu.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(H=this.data)==null?void 0:(K=H.thumbnail)==null?
void 0:K.vibrantColorPalette:void 0}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Fu.prototype,"componentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fu.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fu.prototype,"showSidePanelThumbnailOverlay",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fu.prototype,"isCompact",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fu.prototype,"collectionsStackColor",void 0);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Fu.prototype,"twoLineTitle",null);_.p([_.f("data","collectionsStackColor"),_.y("design:type",Object),_.y("design:paramtypes",[])],Fu.prototype,"collectionStack",null);
_.p([_.Uj({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Fu);
_.X(Fu,"ytd-structured-description-playlist-lockup-renderer",function(){if(r4Z!==void 0)return r4Z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return r4Z=N},{mode:1});var c49;var BL=function(){return _.z.apply(this,arguments)||this};
_.F(BL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],BL.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],BL);
_.X(BL,"ytd-structured-description-video-lockup-renderer",function(){if(c49!==void 0)return c49;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return c49=N},{mode:2});var lB=function(){return _.z.apply(this,arguments)||this};
_.F(lB,_.z);
lB.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lB.prototype,"data",void 0);_.p([_.Uj({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],lB);
_.X(lB,"ytd-compact-infocard-renderer",function(){if(O_9!==void 0)return O_9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return O_9=N},{mode:1});var a3d;var Lw=function(){return _.z.apply(this,arguments)||this};
_.F(Lw,_.z);Lw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d0.Object.defineProperties(Lw.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],Lw.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Lw.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.o7}),_.y("design:type",Object)],Lw.prototype,"isGridViewEnabled",void 0);
_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Lw.prototype,"watchFeedBigThumbs",null);_.p([_.f("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"168"}),_.y("design:type",String),_.y("design:paramtypes",[])],Lw.prototype,"thumbnailWidth",null);_.p([_.f("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"94"}),_.y("design:type",String),_.y("design:paramtypes",[])],Lw.prototype,"customThumbnailSize",null);
_.p([_.U(),_.y("design:type",Object)],Lw.prototype,"data",void 0);_.p([_.Uj({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Lw);
_.X(Lw,"ytd-compact-playlist-renderer",function(){if(a3d!==void 0)return a3d;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return a3d=N},{mode:1});var RZN;var fw=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return N};
_.F(fw,_.z);_.v=fw.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.v.computeViewStyle=function(N){return N.style?N.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.v.onUpdateElementsPerRowAction=function(N){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&N===1};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
fw.prototype.dataChanged=fw.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],fw.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],fw.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],fw.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],fw.prototype,"hideThumbnail",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.y("design:type",String)],fw.prototype,"viewStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fw.prototype,"roundedContainer",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fw.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],fw);
_.X(fw,"ytd-compact-promoted-item-renderer",function(){if(RZN!==void 0)return RZN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return RZN=N},{mode:1});var WgZ;var uB=function(){return _.z.apply(this,arguments)||this};
_.F(uB,_.z);uB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
uB.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
uB.prototype.onYtNavigate=function(N,b){var S=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var P=this.get("watchEndpoint.videoId",b.endpoint),H=_.PN(this.hostElement,"yt-get-current-video-id-action")[0];_.T("kevlar_mix_handle_first_endpoint_different")&&P&&H&&P!==H||(N.stopPropagation(),_.w5().getPlayerPromise().then(function(K){if(K.getPlayerState()===0&&S.data.secondaryNavigationEndpoint)var C=S.data.secondaryNavigationEndpoint;else{C=
Object.assign({},b.endpoint);var G=_.t(C.commandMetadata,_.GY);G&&(K=Math.floor(K.getCurrentTime()),G.url=_.Hq(G.url,{t:K}),!_.T("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(G=_.t(C,_.Iv)))&&(G.startTimeSeconds=K)}_.bC(S.hostElement,"yt-navigate",{endpoint:C})}))}};
_.d0.Object.defineProperties(uB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(b=N.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(P=S.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(K=H.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
uB.prototype.onYtNavigate=uB.prototype.onYtNavigate;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],uB.prototype,"ytEndpointBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],uB.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.kJ),_.y("design:type",Object)],uB.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],uB.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.o7}),_.y("design:type",Object)],uB.prototype,"isGridViewEnabled",void 0);_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],uB.prototype,"watchFeedBigThumbs",null);
_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],uB.prototype,"thumbnailWidth",null);_.p([_.U(),_.y("design:type",Object)],uB.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],uB.prototype,"collectionStack",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],uB.prototype,"onYtNavigate",null);
_.p([_.Uj({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],uB);
_.X(uB,"ytd-compact-radio-renderer",function(){if(WgZ!==void 0)return WgZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return WgZ=N},{mode:1});var nxS;var Q5=function(){return _.z.apply(this,arguments)||this};
_.F(Q5,_.z);Q5.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Q5.prototype.computeRendererStyle=function(N){return N.style?N.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.p([_.U(),_.y("design:type",Object)],Q5.prototype,"data",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Q5.prototype,"rendererBehavior",void 0);_.p([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.y("design:type",String)],Q5.prototype,"rendererStyle",void 0);_.p([_.Uj({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Q5);
_.X(Q5,"ytd-compact-text-promo-renderer",function(){if(nxS!==void 0)return nxS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return nxS=N},{mode:1});var drO;var xP=function(){var N=_.z.apply(this,arguments)||this;N.isShortsStyle=!1;return N};
_.F(xP,_.z);_.v=xP.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.bC(this.hostElement,"yt-disable-lockup-interaction"):_.bC(this.hostElement,"yt-enable-lockup-interaction"))};
_.v.isMetaBlockEmpty=function(N){return!N||!N.longBylineText&&!N.shortBylineText&&!N.shortViewCountText&&!N.viewCountText};
_.v.computeHasOneLineTitle=function(N){return this.forceOneLineTitle||!(N==null||!N.buttons)};
_.v.computeDisableInteraction=function(){var N;return!((N=this.data)==null?0:N.navigationEndpoint)};
_.v.hasSingularTopStandaloneBadge=function(){var N;return!((N=this.data)==null||!N.topStandaloneBadge)};
_.d0.Object.defineProperties(xP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var N;return this.hasSingularTopStandaloneBadge()?[(N=this.data)==null?void 0:N.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var N;return this.shouldShowTopBadges?((N=this.data)==null?void 0:N.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
xP.prototype.disableInteractionChanged=xP.prototype.disableInteractionChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],xP.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],xP.prototype,"ytdLockupBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],xP.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.y("design:type",Boolean)],xP.prototype,"metaBlockEmpty",void 0);_.p([_.U({selector:_.o7}),_.y("design:type",Object)],xP.prototype,"isGridViewEnabled",void 0);_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xP.prototype,"watchFeedBigThumbs",null);
_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],xP.prototype,"thumbnailWidth",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],xP.prototype,"isShortsStyle",void 0);_.p([_.U(),_.y("design:type",Object)],xP.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.y("design:type",Boolean)],xP.prototype,"hasOneLineTitle",void 0);
_.p([_.U(),_.y("design:type",Boolean)],xP.prototype,"hideThumbnail",void 0);_.p([_.U(),_.y("design:type",Boolean)],xP.prototype,"forceOneLineTitle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.y("design:type",Boolean)],xP.prototype,"disableInteraction",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],xP.prototype,"musicMetadataVideoLockup",void 0);
_.p([_.W4("disableInteraction"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],xP.prototype,"disableInteractionChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xP.prototype,"shouldShowTopBadges",null);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],xP.prototype,"topBadges",null);
_.p([_.f("shouldShowTopBadges","data"),_.y("design:type",Array),_.y("design:paramtypes",[])],xP.prototype,"inlineMetadataBadges",null);_.p([_.f("shouldShowTopBadges"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],xP.prototype,"shouldShowBadgesBelowMetadata",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],xP.prototype,"compactTitleClass",null);_.p([_.Uj({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],xP);
_.X(xP,"ytd-compact-video-renderer",function(){if(drO!==void 0)return drO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return drO=N},{mode:_.sZ("kevlar_poly_si_batch_j067")?1:2});var mrz;_.lo("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var oY=function(){return _.z.apply(this,arguments)||this};
_.F(oY,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oY.prototype,"data",void 0);_.p([_.Uj({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],oY);
_.X(oY,"ytd-counterfactual-renderer",function(){if(mrz!==void 0)return mrz;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return mrz=N},{mode:1});var kpS;var iB=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;return N};
_.F(iB,_.z);iB.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.aN().resolve(_.Wq).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
iB.prototype.computeHidden=function(N){return!!N};
_.d0.Object.defineProperties(iB.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],iB.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.y("design:type",Object)],iB.prototype,"hidden",void 0);_.p([_.f("data.label"),_.y("design:type",String),_.y("design:paramtypes",[])],iB.prototype,"label",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],iB.prototype,"value",null);
_.p([_.Uj({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],iB);
_.X(iB,"ytd-dropdown-item-renderer",function(){if(kpS!==void 0)return kpS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return kpS=N},{mode:1});var TJ4;var txz;var Jp=function(){return _.z.apply(this,arguments)||this};
_.F(Jp,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Jp.prototype,"data",void 0);_.p([_.U({computed:"getSimpleString(data.label)"}),_.y("design:type",String)],Jp.prototype,"label",void 0);_.p([_.Uj({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Jp);
_.X(Jp,"ytd-navigation-dropdown-item-renderer",function(){if(txz!==void 0)return txz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return txz=N},{mode:1});var U1=function(){var N=_.z.apply(this,arguments)||this;N.disabled=!1;N.value="";N.noLabelFloat=!1;N.noUnderline=!1;N.usePrimaryColor=!1;N.hasBackground=!1;N.verticalAlign="top";N.autosize=!1;N.minAutosizeWidth=100;N.autosizeFont="14px Roboto";return N};
_.F(U1,_.z);_.v=U1.prototype;_.v.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.v.open=function(){this.inputEl.open()};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.v.dataChanged=function(){this.reset()};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("value-changed",this.value))};
_.v.stopPropagation=function(N){N.stopPropagation()};
_.v.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var N=this.canvas.getContext("2d");N&&(N.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(N.measureText(this.inputEl.value).width)+24)+"px")}};
_.v.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var N=0,b=this.data.entries.length;N<b;N++){var S=this.data.entries[N],P;for(P in S)if(S.hasOwnProperty(P)){var H=S[P];if("isSelected"in H&&H.isSelected)return"stringValue"in H?H.stringValue||"":"int32Value"in H?H.int32Value||0:0}}return null};
_.v.updateValueFromBinding=function(N){this.value=N.detail.value};
_.d0.Object.defineProperties(U1.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var N=0,b=this.data.entries.length;N<b;N++){var S=this.data.entries[N],P;for(P in S)if(S.hasOwnProperty(P)){var H=S[P];if("isSelected"in H&&H.isSelected&&"label"in H)return this.ytRendererBehavior.getSimpleString(H.label)}}return null}}});
U1.prototype.autoSizeLabel=U1.prototype.autoSizeLabel;U1.prototype.stopPropagation=U1.prototype.stopPropagation;U1.prototype.valueChangedForBinding=U1.prototype.valueChangedForBinding;U1.prototype.dataChanged=U1.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],U1.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],U1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],U1.prototype,"disabled",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"value",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"noLabelFloat",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],U1.prototype,"noUnderline",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],U1.prototype,"theme",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],U1.prototype,"usePrimaryColor",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],U1.prototype,"hasBackground",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"verticalAlign",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"autosize",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"minAutosizeWidth",void 0);_.p([_.U(),_.y("design:type",Object)],U1.prototype,"autosizeFont",void 0);
_.p([_.dq("#entries"),_.y("design:type",Object)],U1.prototype,"entries",void 0);_.p([_.dq("#input"),_.y("design:type",Object)],U1.prototype,"inputEl",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U1.prototype,"dataChanged",null);_.p([_.t_("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U1.prototype,"valueChangedForBinding",null);
_.p([_.RA("iron-overlay-opened"),_.RA("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],U1.prototype,"stopPropagation",null);_.p([_.RA("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],U1.prototype,"autoSizeLabel",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],U1.prototype,"label",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],U1);
_.X(U1,"ytd-dropdown-renderer",function(){if(TJ4!==void 0)return TJ4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return TJ4=N},{mode:1});var Mxc;var Zr=function(){var N=_.z.apply(this,arguments)||this;N.isConstrainedList=!1;return N};
_.F(Zr,_.z);Zr.prototype.configureRendererStamper=function(){return{shownItems:{id:"grid-container",mapping:{channelRenderer:"ytd-channel-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
Zr.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Zr.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Zr.prototype.computeViewAllHidden=function(N,b){return N||!b.viewAllEndpoint};
Zr.prototype.fillRestIfNoShowMore=Zr.prototype.fillRestIfNoShowMore;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],Zr.prototype,"ytLazyListBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Zr.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zr.prototype,"isConstrainedList",void 0);_.p([_.t_("data","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zr.prototype,"fillRestIfNoShowMore",null);_.p([_.Uj({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Zr);
_.X(Zr,"ytd-expanded-shelf-contents-renderer",function(){if(Mxc!==void 0)return Mxc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Mxc=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var Fg4;var jC=function(){return _.z.apply(this,arguments)||this};
_.F(jC,_.z);jC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],jC);
_.X(jC,"ytd-feed-channel-filter-header-renderer",function(){if(Fg4!==void 0)return Fg4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Fg4=N},{mode:1});var BJ9;var l3Z;var Lgd;var zf=function(){return _.z.apply(this,arguments)||this};
_.F(zf,_.z);_.v=zf.prototype;_.v.onClick=function(N){var b,S=(b=this.data)==null?void 0:b.sectionEndpoint;!_.VC(_.V7(N),this.hostElement,["A".toString()])&&S&&_.bC(this.hostElement,"yt-navigate",{endpoint:S})};
_.v.computeHasSectionEndpoint=function(N){return(N==null?void 0:N.sectionEndpoint)!==void 0};
_.v.computeShowHeaderAsLink=function(N){return(N==null?void 0:N.header)!==void 0&&(N==null?void 0:N.sectionEndpoint)!==void 0};
_.v.computeShowSubheaderAsLink=function(N){return(N==null?void 0:N.subheader)!==void 0&&(N==null?void 0:N.sectionEndpoint)!==void 0&&(N==null?void 0:N.header)===void 0};
_.v.getHeaderAsLinkClass=function(N){var b=[],S;(N==null?0:(S=N.headerIcon)==null?0:S.iconType)&&b.push("header-link-active");return b.join(" ")};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],zf.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zf.prototype,"data",void 0);
_.p([_.U({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],zf.prototype,"hasSectionEndpoint",void 0);_.p([_.U({computed:"computeShowHeaderAsLink(data)"}),_.y("design:type",Boolean)],zf.prototype,"showHeaderAsLink",void 0);_.p([_.U({computed:"computeShowSubheaderAsLink(data)"}),_.y("design:type",Boolean)],zf.prototype,"showSubheaderAsLink",void 0);_.p([_.Uj({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],zf);
_.X(zf,"ytd-medical-panel-section-renderer",function(){if(Lgd!==void 0)return Lgd;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Lgd=N},{mode:1});var Ap=function(){var N=_.z.apply(this,arguments)||this;N.isExpanded=!1;N.roundedContainer=!0;N.skipRoundingTop=!1;N.toggleExpandableSection=function(){N.isExpanded=!N.isExpanded};
return N};
_.F(Ap,_.z);
Ap.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandableSections":{id:"expandable-sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[toggleExpandableSection]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[toggleExpandableSection]]"}}}}}};
Ap.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Ap.prototype.dataChanged=Ap.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ap.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ap.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ap.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ap.prototype,"skipRoundingTop",void 0);_.p([_.U(),_.y("design:type",Object)],Ap.prototype,"toggleExpandableSection",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ap.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Ap);
_.X(Ap,"ytd-medical-panel-content-renderer",function(){if(l3Z!==void 0)return l3Z;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return l3Z=N},{mode:1});_.lo("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Xu=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.extractOverlay=!1;N.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");N.hasTitle=!1;N.linkIcon="OPEN_IN_NEW";N.isDismissed=!1;return N};
_.F(Xu,_.z);Xu.prototype.onOverlayConditionsChange=function(){var N=_.H4(this.hostElement).querySelector("ytd-info-panel-content-renderer");N&&(N.set("extractOverlay",this.extractOverlay),N.set("roundedContainer",this.roundedContainer))};
Xu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Xu.prototype.computeHasTitle=function(N){return!(N==null||!N.title)};
Xu.prototype.onClick=function(N){var b,S=(b=this.data)==null?void 0:b.headerEndpoint;!_.VC(_.V7(N),this.hostElement,["BUTTON".toString()])&&S&&this.ytComponentBehavior.resolveCommand(S)};
_.d0.Object.defineProperties(Xu.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}});
Xu.prototype.onOverlayConditionsChange=Xu.prototype.onOverlayConditionsChange;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Xu.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Xu.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Xu.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Xu.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Xu.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xu.prototype,"amsterdamEnabled",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Object)],Xu.prototype,"hasTitle",void 0);
_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.background"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xu.prototype,"background",null);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xu.prototype,"titleStyle",null);
_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.f("data.titleStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xu.prototype,"showLinkIcon",null);_.p([_.U(),_.y("design:type",String)],Xu.prototype,"linkIcon",void 0);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Xu.prototype,"hideDivider",null);
_.p([_.U({selectorArgs:["data.dismissStateEntityKey"],selector:function(N,b){N=_.GL(N.entities,"dismissState",b);return(N==null?void 0:N.isDismissed)||(N==null?void 0:N.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(N==null?void 0:N.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.y("design:type",Object)],Xu.prototype,"isDismissed",void 0);_.p([_.W4("roundedContainer","extractOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xu.prototype,"onOverlayConditionsChange",null);_.p([_.Uj({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Xu);
_.X(Xu,"ytd-info-panel-container-renderer",function(){if(BJ9!==void 0)return BJ9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return BJ9=N},{mode:1});var f3d;_.lo("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var E1=function(){return _.z.apply(this,arguments)||this};
_.F(E1,_.z);E1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
E1.prototype.computeStyle=function(N){return N?N:""};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],E1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.y("design:type",String)],E1.prototype,"titleStyle",void 0);
_.p([_.Uj({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],E1);
_.H7()(E1,"ytd-item-section-header-renderer",function(){if(f3d===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);f3d=N}N=f3d;return N},{allowedProps:["data"],
mode:1});var um9;var QRO,xr9=function(){return QRO!==void 0?QRO:QRO=document.createElement("template")};
document.head.appendChild(xr9().content);var oxN;_.pw=new _.nO("VOTING_ANIMATION_CONTROLLER_TOKEN");var J49=_.A(function(N){var b=N.data;var S=_.Ct("div"),P=_.Ct("div");N=_.O(_.QF("VOTE_STATUS_NONE",void 0,"YPH5mf"));var H=N.next().value,K=N.next().value,C=_.nf(b4a,function(){var m;return(m=b())==null?void 0:m.entityKey}),G=_.T("web_enable_voting_animation")||_.T("enable_music_web_cairo_voting_animation");
_.YU(function(){var m;((m=b().initialState)==null?0:m.status)&&K(b().initialState.status)});
var a=function(){var m,k,M=(k=(m=b().initialState)==null?void 0:m.votes)!=null?k:0,l;m=(l=b().initialState)==null?void 0:l.status;return m==="VOTE_STATUS_UPVOTED"?M-1:m==="VOTE_STATUS_DOWNVOTED"?M+1:M},R=function(){return H()==="VOTE_STATUS_UPVOTED"?a()+1:H()==="VOTE_STATUS_DOWNVOTED"?a()-1:a()},n=function(m){var k=m?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
K(k);var M=R(),l=_.aN().resolve(_.cq(_.pw)),u=C();u&&(m&&(u==null?0:u.upvoteDefaultButtonOnTap)?_.AM(u.upvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(u==null?0:u.upvoteToggledButtonOnTap)&&_.AM(u.upvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var J;m=(J=u==null?void 0:u.enableOptimisticReordering)!=null?J:b().enableOptimisticReordering;G&&l&&b().itemId&&m&&i_4(l,b().itemId,M,k)},d=function(m){var k=m?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
K(k);var M=R(),l=_.aN().resolve(_.cq(_.pw)),u=C();u&&(m&&(u==null?0:u.downvoteDefaultButtonOnTap)?_.AM(u.downvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(u==null?0:u.downvoteToggledButtonOnTap)&&_.AM(u.downvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var J;m=(J=u==null?void 0:u.enableOptimisticReordering)!=null?J:b().enableOptimisticReordering;G&&l&&b().itemId&&m&&i_4(l,b().itemId,M,k)};
N={};N=_.KU("ytVotingViewModelVoteCount",(N.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},N));
return _.c("voting-view-model",{class:"ytVotingViewModelHost"},_.c("div",{el:S},_.c(_.kY,{data:function(){var m=_.t(b().upvoteButton,_.dU);return{toggleButtonViewModel:Object.assign({},m,{isToggled:H()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(m){return _.c(_.Hc,{data:m.data,
onToggle:n})}})),_.c("div",{class:N},function(){var m,k,M;
return H()==="VOTE_STATUS_UPVOTED"?(m=b().initialState)==null?void 0:m.compactVotesUpvoted:H()==="VOTE_STATUS_DOWNVOTED"?(k=b().initialState)==null?void 0:k.compactVotesDownvoted:(M=b().initialState)==null?void 0:M.compactVotes}),_.c("div",{el:P},_.c(_.kY,{data:function(){var m=_.t(b().downvoteButton,_.dU);
return{toggleButtonViewModel:Object.assign({},m,{isToggled:H()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(m){return _.c(_.Hc,{data:m.data,
onToggle:d})}})))},"ed");_.qu(_.A(function(N){var b=N.data;return _.c("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.c("div",{class:_.KU("ytEngagementBarViewModelEngagementBarWrapper",N.className)},_.c(_.kY,{data:function(){return b().actions}},{votingViewModel:J49})))},"fd"),"engagement-bar-view-model",{props:{data:_.kg,
className:_.kg}});var YP=function(){var N=_.z.apply(this,arguments)||this;N.playlistVotingAnimationEnabled=_.T("web_enable_voting_animation");N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.downloadState="DOWNLOAD_STATE_UNKNOWN";N.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";N.offlineVideoPolicyExpirationTimestamp=0;return N};
_.F(YP,_.z);_.v=YP.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.v.canReorderChanged=function(){this.persistentDragHandle=_.T("kevlar_playlist_drag_handles")&&this.canReorder};
_.v.onDrag=function(){if(this.thumbnail){var N=_.H4(this.thumbnail).querySelector("yt-image");N&&(N.shouldRenderLazy=!1)}};
_.v.onMenuOverlayChanged=function(N,b){this.menuOpened=b};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.v.onContentsTap=function(N){var b,S=(b=this.data)==null?void 0:b.serviceEndpoints;if(S&&S.length===1&&_.t(S[0],S3_)&&!_.VC(_.V7(N),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(S[0]);else{var P;(b=(P=this.data)==null?void 0:P.navigationEndpoint)&&_.T("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Urd(_.aN().resolve(_.E_),b):(_.gU().playlistSuggestionsShelfActivation=
!0,_.Z_b(_.aN().resolve(_.E_),b)):b&&!_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.T("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.bC(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))}};
_.v.computeStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(N){return N==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.v.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=XcE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.v.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.dataChanged=function(){if(this.data){var N,b,S,P=((N=this.downloadRenderData)==null?void 0:N.badges)&&((b=this.downloadRenderData)==null?void 0:b.badges)!==((S=this.data)==null?void 0:S.badges),H,K,C;N=((H=this.downloadRenderData)==null?void 0:H.thumbnailOverlays)&&((K=this.downloadRenderData)==null?void 0:K.thumbnailOverlays)!==((C=this.data)==null?void 0:C.thumbnailOverlays);(!this.downloadRenderData||P||N)&&this.downloadStateChanged()}};
_.v.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var N,b,S=(N=this.data.menu)==null?void 0:(b=N.menuRenderer)==null?void 0:b.items;if(S)for(N=_.O(S),b=N.next();!b.done;b=N.next())if(b=b.value,S=void 0,_.t((S=b.menuServiceItemRenderer)==null?void 0:S.serviceEndpoint,_.vC)){var P=S=void 0,H=void 0;b=(S=b)==null?void 0:(P=S.menuServiceItemRenderer)==null?void 0:(H=P.serviceEndpoint)==null?void 0:H.playlistEditEndpoint;H=P=void 0;if(S=(P=b)==null?void 0:(H=P.actions)==null?void 0:
H[0])P=void 0,S.setVideoId=(P=this.data)==null?void 0:P.setVideoId;H=P=S=void 0;if(b=(S=b)==null?void 0:(P=S.clientActions)==null?void 0:(H=P[0])==null?void 0:H.playlistRemoveVideosAction)S=void 0,b.setVideoIds=[(S=this.data)==null?void 0:S.setVideoId]}}};
_.d0.Object.defineProperties(YP.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
YP.prototype.setVideoIdChanged=YP.prototype.setVideoIdChanged;YP.prototype.dataChanged=YP.prototype.dataChanged;YP.prototype.downloadStateChanged=YP.prototype.downloadStateChanged;YP.prototype.onMenuOverlayChanged=YP.prototype.onMenuOverlayChanged;YP.prototype.canReorderChanged=YP.prototype.canReorderChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],YP.prototype,"ytdReduxBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],YP.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],YP.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],YP.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YP.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"canReorder",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"menuOpened",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"handleIsHovered",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"persistentDragHandle",void 0);_.p([_.U(),_.y("design:type",Object)],YP.prototype,"downloadRenderData",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],YP.prototype,"styleType",void 0);_.p([_.U({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],YP.prototype,"thumbnailWidth",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"isDownloads",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],YP.prototype,"playlistVotingAnimationEnabled",void 0);
_.p([_.U({selector:js,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"downloadProgress",void 0);_.p([_.U(),_.y("design:type",Number)],YP.prototype,"relativeDateReference",void 0);_.p([_.U({selector:_.UI,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"transferState",void 0);_.p([_.U({selector:KLs,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"downloadState",void 0);
_.p([_.U({selector:IR_,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"offlinePolicyAction",void 0);_.p([_.U({selector:DZU,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.p([_.U({selector:gg_,selectorArgs:["data.videoId"]}),_.y("design:type",Object)],YP.prototype,"entityInfo",void 0);_.p([_.U({selector:_.op}),_.y("design:type",Boolean)],YP.prototype,"miniplayerIsActive",void 0);
_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],YP.prototype,"playlistVideoId",null);_.p([_.dq("#thumbnail"),_.y("design:type",Object)],YP.prototype,"thumbnail",void 0);_.p([_.t_("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YP.prototype,"canReorderChanged",null);
_.p([_.RA("yt-menu-overlay-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Boolean]),_.y("design:returntype")],YP.prototype,"onMenuOverlayChanged",null);_.p([_.t_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YP.prototype,"downloadStateChanged",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YP.prototype,"dataChanged",null);_.p([_.t_("data.setVideoId"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YP.prototype,"setVideoIdChanged",null);_.p([_.Uj({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],YP);
_.X(YP,"ytd-playlist-video-renderer",function(){if(oxN!==void 0)return oxN;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);N.content.insertBefore(xr9().content.cloneNode(!0),N.content.firstChild);return oxN=N},{mode:1});var jRk;var y5=function(){return _.z.apply(this,arguments)||this};
_.F(y5,_.z);_.p([_.U(),_.y("design:type",Object)],y5.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],y5.prototype,"rendererBehavior",void 0);_.p([_.Uj({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],y5);
_.X(y5,"ytd-premium-browse-footer-renderer",function(){if(jRk!==void 0)return jRk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jRk=N},{mode:1});var zZz;var IY=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return N};
_.F(IY,_.z);_.v=IY.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.handleDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.computeHeaderLogoThumbnail=function(N,b){if(N)return b?N.darkLogo:N.lightLogo};
_.v.computeHeaderLogoHeight=function(N,b){var S,P,H;return(N=(S=this.computeHeaderLogoThumbnail(N,b))==null?void 0:(P=S.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.height)&&N%31===0?"31":"24"};
_.v.computeHeaderLogoMarginBottom=function(N,b){return this.computeHeaderLogoHeight(N,b)==="24"?"0":"-7"};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],IY.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],IY.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],IY.prototype,"isDarkTheme",void 0);_.p([_.U({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.y("design:type",Object)],IY.prototype,"themeLogo",void 0);
_.p([_.U({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.y("design:type",String)],IY.prototype,"logoHeight",void 0);_.p([_.U({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.y("design:type",String)],IY.prototype,"logoMarginBottom",void 0);_.p([_.Uj({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],IY);
_.X(IY,"ytd-primetime-promo-header-renderer",function(){if(zZz!==void 0)return zZz;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return zZz=N},{mode:1});var A4E;_.Dr=_.A(function(N){var b=N.className;var S=N.data;var P=N.isOverlay;var H=N.maxLinesOverride;var K=N.useMediumText;var C=function(){return S().alwaysShowTruncationText},G=function(){return S().truncationText},a=function(){return K!==void 0&&K()?"medium":"small"},R=function(){return P!==void 0&&P()?"overlay":"default"},n=function(){var M,l;
return(l=(M=_.t(S().rendererContext,_.Mv))==null?void 0:M.label)!=null?l:""};
N=_.O(_.QF(!1,void 0,"llBUm"));var d=N.next().value,m=N.next().value;N=_.Ob(function(){S().expandOnTap&&m(!d());return!1});
var k={};return _.c("yt-description-preview-view-model",{el:_.VN(_.iK(function(){return S().rendererContext})),
class:_.KU("ytDescriptionPreviewViewModelHost",b,(k.ytDescriptionPreviewViewModelClickable=function(){var M;return!((M=_.t(S().rendererContext,_.J5))==null||!M.onTap)},k.ytDescriptionPreviewViewModelIsOverlay=P,k)),
"on:click":N},_.c(_.W,{cond:function(){return S().description},
then:function(M){return _.c(_.W,{cond:d,then:function(){var l={};return _.c("div",{class:_.KU("ytDescriptionPreviewViewModelDescription",(l.ytDescriptionPreviewViewModelDescriptionMediumText=K,l))},_.c(_.mD,{text:M}))},
else:function(){return _.c(XbN,{text:M,alwaysShowTruncationText:C,truncationText:G,maxLines:function(){var l;return(l=H==null?void 0:H())!=null?l:S().maxLines},
textStyle:R,accessibilityLabel:n,textSize:a})}})}}))},"gd");
_.Dr.idomCompat=!0;var ExV=_.A(function(N){var b=_.Ob(function(H){var K;(K=N.onClick)==null||K.call(N,H)}),S={},P={};
return _.c("yt-shelf-header-layout",{class:_.KU("yt-shelf-header-layout",(S["yt-shelf-header-layout--disable-horizontal-padding"]=N.disableHorizontalPadding,S["yt-shelf-header-layout--disable-vertical-padding"]=N.disableVerticalPadding,S["yt-shelf-header-layout--responsive"]=N.useResponsiveLayout,S["yt-shelf-header-layout--narrow"]=function(){var H,K;return((H=N.useResponsiveLayout)==null?void 0:H.call(N))&&((K=N.forceSmallLayout)==null?void 0:K.call(N))},S["yt-shelf-header-layout--is-overlay"]=N.isOverlay,
S["yt-shelf-header-layout--tappable"]=N.isInteractive,S["yt-shelf-header-layout--optional-medium-layout-padding"]=N.useUpdatedPadding,S)),
"on:click":b,tabindex:function(){var H;return((H=N.isInteractive)==null?0:H.call(N))?0:void 0}},_.c("div",{class:"yt-shelf-header-layout__header-row"},_.c(_.W,{cond:N.leadingIcon,
then:function(H){return _.c("div",{class:"yt-shelf-header-layout__leading-icon"},_.c(_.cX,{icon:H}))},
else:function(){return _.c(_.W,{cond:N.hasLeadingImage,then:function(){var H,K={};return _.c("div",{class:_.KU("yt-shelf-header-layout__leading-image",(K["yt-shelf-header-layout__leading-image--circular-image"]=N.circularImage,K))},(H=N.leadingImage)==null?void 0:H.call(N))}})}}),_.c("div",{class:"yt-shelf-header-layout__label-container"},_.c(_.W,{cond:N.hasSuperlabel,
then:function(){var H;return _.c("div",{class:"yt-shelf-header-layout__superlabel"},(H=N.superlabel)==null?void 0:H.call(N))}}),_.c("div",{class:"yt-shelf-header-layout__title-row"},_.c(Xw9,{text:N.title,
className:_.KU("yt-shelf-header-layout__title",(P["yt-shelf-header-layout__title--small-title"]=N.forceSmallLayout,P)),tagLevel:N.tagLevel}),_.c(_.W,{cond:N.hasDetail,then:function(){var H;return _.c("div",{class:"yt-shelf-header-layout__detail"},(H=N.detail)==null?void 0:H.call(N))}})),_.c(_.W,{cond:N.hasSublabel,
then:function(){var H;return _.c("div",{class:"yt-shelf-header-layout__sublabel"},(H=N.sublabel)==null?void 0:H.call(N))}})),_.c(_.W,{cond:N.hasTrailingActions,
then:function(){var H;return _.c("div",{class:"yt-shelf-header-layout__trailing-actions"},(H=N.trailingActions)==null?void 0:H.call(N))}})),_.c(_.W,{cond:N.hasBottomAccessory,
then:function(){var H;return _.c("div",{class:"yt-shelf-header-layout__bottom-accessory"},(H=N.bottomAccessory)==null?void 0:H.call(N))}}))},"hd");
ExV.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var Xw9=_.A(function(N){var b=N.text;var S=N.className;var P=N.tagLevel;return _.c(_.Al,null,_.c(_.ZH,{when:function(){return(P==null?void 0:P())===0}},function(){return _.c("h2",{class:S},b())}),_.c(_.ZH,{when:function(){return(P==null?void 0:P())===1}},function(){return _.c("h3",{class:S},b())}),_.c(_.ZH,{when:function(){return(P==null?void 0:P())===2}},function(){return _.c("h4",{class:S},b())}),_.c(_.j_,null,function(){return _.c("h2",{class:S},b())}))},"id");var y4Z,pwb,YhS;_.V5=_.A(function(N){var b=N.className;var S=N.data;var P=N.disableHorizontalPadding;var H=N.disableVerticalPadding;var K=N.forceSmallLayout;var C=N.useResponsiveLayout;var G=N.isOverlay;N=N.useUpdatedPadding;return _.c("yt-section-header-view-model",{class:_.KU("ytSectionHeaderViewModelHost",b),style:_.r5({"background-color":function(){return dO(S().backgroundColor)?_.o3(dO(S().backgroundColor)):void 0}})},_.c(ExV,{hasDetail:!1,
title:function(){return _.c(_.mD,{text:function(){return S().headline}})},
hasTitle:!0,sublabel:function(){return _.c(pwb,{data:S})},
hasSublabel:function(){return!!S().sublabel||!!S().bottomBadge},
superlabel:function(){return _.c(YhS,{data:S})},
hasSuperlabel:function(){return!!S().superlabel||!!S().topBadge},
leadingImage:function(){return _.c(y4Z,{leadingAccessory:function(){return S().leadingAccessory}})},
hasLeadingImage:function(){return!!S().leadingAccessory},
trailingActions:function(){return _.c(_.kY,{data:function(){return S().trailingActions}},{flexibleActionsViewModel:_.r4})},
hasTrailingActions:function(){return!!S().trailingActions},
disableHorizontalPadding:function(){return(P==null?void 0:P())||S().disableHorizontalPadding},
disableVerticalPadding:H,forceSmallLayout:K,useResponsiveLayout:C,isOverlay:G,isInteractive:function(){return!!_.xY(S().rendererContext)},
onClick:function(a){if(_.o2(S().rendererContext)){var R=_.xY(S().rendererContext);R&&_.ZN(R,{form:{element:a.target,event:a}})}},
bottomAccessory:function(){return _.c(_.kY,{data:function(){return S().bottomAccessory}},{descriptionPreviewViewModel:function(a){return _.c(_.Dr,{data:a.data,
useMediumText:!0})},
commonMarkViewModel:function(a){a=a.data;var R;return _.c(_.nM,null,(R=_.aN().resolve(_.cq(OPZ)))==null?void 0:R({data:a}))}})},
hasBottomAccessory:function(){return!!S().bottomAccessory},
useUpdatedPadding:N}))},"jd");
y4Z=_.A(function(N){var b=N.leadingAccessory;return _.c(_.nM,null,_.c(_.W,{cond:function(){var S;return(S=b().image)!=null?S:_.EW(b().themedImage)},
then:function(S){return _.c(_.gG,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.c(_.W,{cond:function(){return _.t(b().avatar,_.UW)},
then:function(S){return _.c(_.CH,{data:S})}}))},"kd");
pwb=_.A(function(N){var b=N.data;return _.c(_.nM,null,_.c(_.W,{cond:function(){return _.t(b().bottomBadge,euZ)},
then:function(S){var P={};return _.c(_.LH,{data:S,class:_.KU((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!b().sublabel},P))})}}),_.c(_.W,{cond:function(){return b().sublabel},
then:function(S){return _.c(_.mD,{text:S})}}))},"ld");
YhS=_.A(function(N){var b=N.data;return _.c(_.nM,null,_.c(_.W,{cond:function(){return _.t(b().topBadge,euZ)},
then:function(S){var P={};return _.c(_.LH,{data:S,class:_.KU((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!b().superlabel},P))})}}),_.c(_.W,{cond:function(){return b().superlabel},
then:function(S){return _.c(_.mD,{text:S})}}))},"md");_.qu(_.V5,"yt-section-header-view-model",{props:{data:_.kg,className:_.kg,disableHorizontalPadding:_.kg,disableVerticalPadding:_.kg,forceSmallLayout:_.kg,useResponsiveLayout:_.kg,isOverlay:_.kg,useUpdatedPadding:_.kg}});_.lo("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var gf=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return N};
_.F(gf,_.z);_.v=gf.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.v.onDataChange=function(){var N=this;_.W_(this,function(){N.updateItemVisibility()})};
_.v.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N,this.updateItemVisibility())};
_.v.updateItemVisibility=function(){var N=this;this.data&&this.data.panels&&_.H4(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,S){b.hidden=S>N.elementsPerRow-1})};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
gf.prototype.onDataChange=gf.prototype.onDataChange;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],gf.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],gf.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],gf.prototype,"data",void 0);_.p([_.U({value:3}),_.y("design:type",Number)],gf.prototype,"elementsPerRow",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gf.prototype,"onDataChange",null);_.p([_.Uj({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],gf);
_.X(gf,"ytd-primetime-promo-renderer",function(){if(A4E!==void 0)return A4E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return A4E=N},{mode:1});var I39;var eC=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return N};
_.F(eC,_.z);eC.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
eC.prototype.handleButtonRefreshAction=function(N){if(N=_.t(N,Rd4))this.set("data.button",N.membershipButton),this.notifyPath("data.button")};
_.d0.Object.defineProperties(eC.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.avatars)==null?void 0:b.slice(0,8))||[]}}});
_.p([_.U(),_.y("design:type",Object)],eC.prototype,"data",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],eC.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eC.prototype,"rendererBehavior",void 0);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],eC.prototype,"avatars",null);
_.p([_.Uj({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],eC);
_.X(eC,"ytd-recognition-shelf-renderer",function(){if(I39!==void 0)return I39;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return I39=N},{mode:1});var Drk;var Vx4;var $P=function(){var N=_.z.apply(this,arguments)||this;N.modernButtons=_.T("web_modern_buttons");return N};
_.F($P,_.z);_.v=$P.prototype;
_.v.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.v.dataChanged=function(){this.collapsed=!0};
_.v.computeVisibleItems=function(N,b){return N!==void 0&&N.items?b?N.items.slice(0,this.data.collapsedItemCount):N.items:[]};
_.v.computeHideShowMore=function(N,b,S){return N>=b||!S};
_.v.computeHideShowAll=function(N,b,S){return!(N&&b)||S};
_.v.onMoreClick=function(){this.collapsed=!1};
_.d0.Object.defineProperties($P.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.m6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.T("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
$P.prototype.dataChanged=$P.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$P.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],$P.prototype,"isSearch",void 0);
_.p([_.U({computed:"computeVisibleItems(data,collapsed)"}),_.y("design:type",Array)],$P.prototype,"visibleItems",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],$P.prototype,"collapsed",void 0);_.p([_.U({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.y("design:type",Boolean)],$P.prototype,"hideShowMore",void 0);
_.p([_.U({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.y("design:type",Boolean)],$P.prototype,"hideShowAll",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$P.prototype,"modernButtons",void 0);_.p([_.f("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$P.prototype,"typographyBump",null);
_.p([_.f("isSearch"),_.y("design:type",Object),_.y("design:paramtypes",[])],$P.prototype,"lockupExperiments",null);_.p([_.f("isSearch"),_.y("design:type",String),_.y("design:paramtypes",[])],$P.prototype,"thumbnailWidth",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$P.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],$P);
_.X($P,"ytd-vertical-list-renderer",function(){if(Vx4!==void 0)return Vx4;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Vx4=N},{mode:1});var gx9=_.$E(["#"]);_.lo("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var hp=function(){var N=_.z.apply(this,arguments)||this;N.isConstrainedList=!1;return N};
_.F(hp,_.z);_.v=hp.prototype;
_.v.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.computeThumbnailStyle=function(N){return N||""};
_.v.computePlaceAnnotationUnderTitle=function(){var N;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((N=this.data)==null?void 0:N.thumbnailStyle)||"")};
_.v.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N)||_.R8U(gx9)};
_.v.computeIsPromoShelf=function(N){var b;return(N=N==null?void 0:(b=N[0])==null?void 0:b.metadataBadgeRenderer)?N.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.v.computePlaceBadgeBesideTitle=function(N){var b;return(N==null?0:(b=N[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(N):!1};
_.v.computeMenuIcon=function(N){return this.computeIsPromoShelf(N)?"yt-icons:more_vert":"yt-icons:more"};
_.v.onDataChange=function(){var N,b;((N=this.data)==null?0:(b=N.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.v.onLockupRequested=function(N){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&N.detail&&N.detail.videoIds){for(var b=this.data.content.gridRenderer.items,S=new Set,P=_.O(N.detail.videoIds),H=P.next();!H.done;H=P.next())S.add(H.value);N.detail.returnValue=b.filter(function(K){return K.gridVideoRenderer&&K.gridVideoRenderer.videoId&&S.has(K.gridVideoRenderer.videoId)}).map(function(K){return K.gridVideoRenderer})}};
_.v.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
hp.prototype.onLockupRequested=hp.prototype.onLockupRequested;hp.prototype.onDataChange=hp.prototype.onDataChange;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],hp.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],hp.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hp.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],hp.prototype,"isSearch",void 0);_.p([_.U(),_.y("design:type",Object)],hp.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("kevlar_fluid_dismiss")}}),
_.y("design:type",Boolean)],hp.prototype,"enableFluidDismiss",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.y("design:type",String)],hp.prototype,"thumbnailStyle",void 0);_.p([_.U({computed:"computeMenuIcon(data.badges)"}),_.y("design:type",String)],hp.prototype,"menuIcon",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.y("design:type",Boolean)],hp.prototype,"featuredPromo",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hp.prototype,"onDataChange",null);_.p([_.RA("yt-lockup-requested"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hp.prototype,"onLockupRequested",null);_.p([_.Uj({is:"ytd-shelf-renderer",disableElementRegistration:!0})],hp);
_.X(hp,"ytd-shelf-renderer",function(){if(Drk!==void 0)return Drk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Drk=N},{mode:1});var eZ9;var qV=function(){return _.z.apply(this,arguments)||this};
_.F(qV,_.z);qV.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.d0.Object.defineProperties(qV.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qV.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],qV.prototype,"isPlaylist",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],qV.prototype,"isClipList",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],qV.prototype,"isPlaylistPageWithFilters",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qV.prototype,"hasTitle",null);_.p([_.U(),_.f("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.y("design:type",Object),_.y("design:paramtypes",[])],qV.prototype,"isRightAligned",null);
_.p([_.Uj({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],qV);
_.X(qV,"ytd-sort-filter-header-renderer",function(){if(eZ9!==void 0)return eZ9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return eZ9=N},{mode:1});var $rO;var wf=function(){var N=_.z.apply(this,arguments)||this;N.enableRightArrowHidden=_.T("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return N};
_.F(wf,_.z);wf.prototype.attached=function(){var N=this;this.enableRightArrowHidden&&(this.JSC$16782_throttledOnResize=new _.GR(function(){var b;(b=N.ytdHorizontalListBehavior)==null||b.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var b;
(b=N.JSC$16782_throttledOnResize)==null||b.fire()}),this.resizeObserver.observe(this.hostElement))};
wf.prototype.detached=function(){if(this.enableRightArrowHidden){var N;(N=this.resizeObserver)==null||N.disconnect();var b;(b=this.JSC$16782_throttledOnResize)==null||b.dispose()}};
wf.prototype.configureRendererStamper=function(){return{"data.creatorVideosButton":{id:"infocard-videos-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.creatorAboutButton":{id:"infocard-channel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.infocards":{id:"infocards-section",mapping:{compactInfocardRenderer:"ytd-compact-infocard-renderer"}},creatorCustomUrlButtons:{id:"items",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"}}}}}};
wf.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.d0.Object.defineProperties(wf.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.T("enable_creator_details_shelf_m2")){var N=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&N.push(this.data.creatorVideosButton);var S;((S=this.data)==null?0:S.creatorAboutButton)&&N.push(this.data.creatorAboutButton);b=_.O(this.data.creatorCustomUrlButtons||[]);for(S=b.next();!S.done;S=b.next())N.push(S.value);return N}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.T("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],wf.prototype,"ytdHorizontalListBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wf.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],wf.prototype,"engagementPanel",void 0);
_.p([_.U(),_.y("design:type",Object)],wf.prototype,"enableRightArrowHidden",void 0);_.p([_.f("enableRightArrowHidden","atEnd"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wf.prototype,"hideRightArrow",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wf.prototype,"creatorCustomUrlButtons",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data","creatorCustomUrlButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],wf.prototype,"showCreatorCustomUrlButtons",null);_.p([_.f("showCreatorCustomUrlButtons"),_.y("design:type",Number),_.y("design:paramtypes",[])],wf.prototype,"channelAvatarSize",null);_.p([_.Uj({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],wf);
_.X(wf,"ytd-video-description-infocards-section-renderer",function(){if($rO!==void 0)return $rO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return $rO=N},{mode:_.sZ("kevlar_poly_si_batch_j067")?1:2});var hZ9;var N2=function(){return _.z.apply(this,arguments)||this};
_.F(N2,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],N2.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],N2.prototype,"infoIcon",void 0);_.p([_.Uj({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],N2);
_.X(N2,"ytd-eom-settings-disclaimer-renderer",function(){if(hZ9!==void 0)return hZ9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return hZ9=N},{mode:1});var qhc;var bj=function(){return _.z.apply(this,arguments)||this};
_.F(bj,_.z);_.d0.Object.defineProperties(bj.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.suppressPaddingDisclaimer)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],bj.prototype,"componentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bj.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bj.prototype,"suppressPaddingDisclaimer",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],bj);
_.X(bj,"ytd-product-list-header-renderer",function(){if(qhc!==void 0)return qhc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qhc=N},{mode:1});var wwc;var Sh=function(){return _.z.apply(this,arguments)||this};
_.F(Sh,_.z);Sh.prototype.computeThumbnailStyle=function(N){if(N&&(N=_.xn(N)))return"background-color:"+N+";"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sh.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.y("design:type",Object)],Sh.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Sh);
_.X(Sh,"ytd-hashtag-tile-renderer",function(){if(wwc!==void 0)return wwc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wwc=N},{mode:1});var NL9;var P3=function(){return _.z.apply(this,arguments)||this};
_.F(P3,_.z);P3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],P3.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],P3);
_.X(P3,"ytd-sponsorships-alert-renderer",function(){if(NL9!==void 0)return NL9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return NL9=N},{mode:1});var bbk;var H3=function(){return _.z.apply(this,arguments)||this};
_.F(H3,_.z);H3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.d0.Object.defineProperties(H3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.T("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.p([_.L(_.cO),_.y("design:type",Object)],H3.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],H3.prototype,"ytdLockupBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.p([_.U({selector:_.o7}),_.y("design:type",Object)],H3.prototype,"isGridViewEnabled",void 0);
_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],H3.prototype,"watchFeedBigThumbs",null);_.p([_.f("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.y("design:type",String),_.y("design:paramtypes",[])],H3.prototype,"thumbnailWidth",null);_.p([_.U(),_.y("design:type",Object)],H3.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],H3);
_.X(H3,"ytd-compact-movie-renderer",function(){if(bbk!==void 0)return bbk;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return bbk=N},{mode:1});var Soc;var P7d;var Hbc=_.Vg("HTML_DIR")==="rtl",sS=function(){var N=_.z.apply(this,arguments)||this;N.engagementPanel=!1;N.maxLines=2;N.expandButtonOffset=0;N.showExpandButton=!1;N.isTruncated=!1;N.isExpanded=!1;N.currentSnippetType=2;N.alwaysShowExpandButton=!1;N.JSC$16799_lastWidth=NaN;N.observer=null;N.left=0;N.right=0;N.mid=0;N.longestSnippetLength=0;N.isFinalSnippet=!1;N.isFirstMutation=!1;N.isResetMutation=!1;N.OVERFLOW_THRESHOLD=5;return N};
_.F(sS,_.z);_.v=sS.prototype;_.v.onClick=function(N){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.v.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.v.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.v.updateTextOnSnippetTypeChange=function(){_.T("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.v.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.v.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.$h(new _.jU("AttributedSnippet is empty when the description is not empty",this.text))};
_.v.mutationCallback=function(){if(this.observer!=null){var N=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(N*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||_.$h(new _.jU("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;N=N*this.maxLines/8;this.left=0;var S;this.right=Math.min(N*2,(S=(b=this.simpleText)==null?void 0:b.length)!=null?S:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.v.mutationObserve=function(N){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()}));
this.observer.observe(N,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.v.attached=function(){var N=this;_.W_(this,function(){N.resize()})};
_.v.isExpandedChanged=function(){_.bC(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.v.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.v.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var N="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Hbc?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",N);this.snippetContainer.style.setProperty("mask-image",
N)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Hbc?"right":"left",this.expandButtonOffset+"px")};
_.v.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.v.setSnippetText=function(N,b){N||(N={});if(_.yN(N)){var S=YH(N,b);S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.alignment||S.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:YH(N,b),headerRuns:J7L(b,this.headerRuns)},this.currentSnippetType=0):_.$h(new _.jU("Tried to set snippet text when HTML element was null",N)):(this.plainSnippetText.textContent=EZ(N.content||"",b),this.currentSnippetType=2)}else{a:{S=SOO(N,b);if(S.runs){S=_.O(S.runs);for(var P=
S.next();!P.done;P=S.next())if(P=P.value,P.bold||P.deemphasize||P.italics||P.strikethrough||P.textColor||P.navigationEndpoint||_.t(P,oq)){S=!0;break a}}S=!1}S?this.formattedSnippetText?(this.formattedSnippetText.text=SOO(N,b),this.currentSnippetType=1):_.$h(new _.jU("Tried to set snippet text when HTML element was null",N)):(this.plainSnippetText.textContent=EZ(_.es(N),b),this.currentSnippetType=2)}};
_.v.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.v.attributedTextIsEmpty=function(){var N=this.text;if(!_.yN(N))return!0;var b;return((b=N.content)==null?void 0:b.length)===0?!0:!1};
_.v.resize=function(N){if(this.snippetText){if(N===void 0?0:N)this.JSC$16799_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$16799_lastWidth&&!this.isExpanded)if(this.JSC$16799_lastWidth=b,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;N=0;var S,P;b=Math.min(b*this.maxLines/8*2,(P=(S=this.simpleText)==null?void 0:S.length)!=null?P:0)-1;for(S=0;N<=b;)P=Math.floor(N+(b-N)/2),this.setSnippetText(this.text,P),this.isOverflowing()?b=P-1:(N=P+1,S=P);this.setSnippetText(this.text,S);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.v.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.v.onExpandClick=function(){var N=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.T("inline_expander_reset_focus_killswitch")||_.W_(this,function(){var b;((b=_.aN().resolve(_.cq(_.QJ)))==null?0:b.isKeyBoardInUse())&&_.Ov(N.hostElement)});
_.bC(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.v.onCollapseClick=function(){this.collapse();_.bC(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.v.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.v.computeExpandButtonOffset=function(){var N=this.expandSizer;return N?Hbc?N.offsetParent?N.offsetParent.offsetWidth-N.offsetWidth-N.offsetLeft:0:N.offsetLeft:0};
_.d0.Object.defineProperties(sS.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.yN(this.text)?this.text.content||"":_.es(this.text):""}},
expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}},
expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}},
hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return _.yN(this.text)?!0:this.text&&_.T("web_replace_formatted_with_attributed_string")&&KPe(this.text)?(this.text=_.xH(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
sS.prototype.onTextChanged=sS.prototype.onTextChanged;sS.prototype.updateMaskAndExpandButtonOffset=sS.prototype.updateMaskAndExpandButtonOffset;sS.prototype.updateSnippetContainerMaxHeight=sS.prototype.updateSnippetContainerMaxHeight;sS.prototype.isExpandedChanged=sS.prototype.isExpandedChanged;sS.prototype.updateTextOnSnippetTypeChange=sS.prototype.updateTextOnSnippetTypeChange;sS.prototype.updateIsFormattedExpanded=sS.prototype.updateIsFormattedExpanded;sS.prototype.updateIsAttributedExpanded=sS.prototype.updateIsAttributedExpanded;
sS.prototype.onClick=sS.prototype.onClick;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],sS.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"text",void 0);_.p([_.U(),_.y("design:type",Array)],sS.prototype,"headerRuns",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sS.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"maxLines",void 0);
_.p([_.U(),_.y("design:type",String)],sS.prototype,"expandLabel",void 0);_.p([_.U(),_.y("design:type",String)],sS.prototype,"collapseLabel",void 0);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"expandCommand",void 0);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"expandButtonOffset",void 0);_.p([_.f("text"),_.y("design:type",String),_.y("design:paramtypes",[])],sS.prototype,"simpleText",null);
_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],sS.prototype,"onClick",null);_.p([_.f("text","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"expandedText",null);_.p([_.f("headerRuns","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"expandedHeaderRuns",null);
_.p([_.f("text"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sS.prototype,"hasAttributedStringText",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sS.prototype,"showExpandButton",void 0);_.p([_.f("collapseLabel","isExpanded"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"showCollapseButton",null);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"isTruncated",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sS.prototype,"isExpanded",void 0);_.p([_.U(),_.y("design:type",Boolean)],sS.prototype,"isAttributedExpanded",void 0);_.p([_.W4("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"updateIsAttributedExpanded",null);_.p([_.U(),_.y("design:type",Boolean)],sS.prototype,"isFormattedExpanded",void 0);
_.p([_.W4("isExpanded","hasAttributedStringText"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"updateIsFormattedExpanded",null);_.p([_.U(),_.y("design:type",Number)],sS.prototype,"currentSnippetType",void 0);_.p([_.f("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"useAttributedSnippet",null);
_.p([_.f("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"useFormattedSnippet",null);_.p([_.f("currentSnippetType"),_.y("design:type",Object),_.y("design:paramtypes",[])],sS.prototype,"usePlainSnippet",null);_.p([_.U(),_.y("design:type",Object)],sS.prototype,"alwaysShowExpandButton",void 0);_.p([_.W4("currentSnippetType"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"updateTextOnSnippetTypeChange",null);
_.p([_.U(),_.y("design:type",Object)],sS.prototype,"attributedSnippetText",void 0);_.p([_.dq("#snippet"),_.y("design:type",HTMLElement)],sS.prototype,"snippetContainer",void 0);_.p([_.dq("#snippet-text"),_.y("design:type",HTMLElement)],sS.prototype,"snippetText",void 0);_.p([_.dq("#plain-snippet-text"),_.y("design:type",HTMLElement)],sS.prototype,"plainSnippetText",void 0);_.p([_.dq("#formatted-snippet-text"),_.y("design:type",Object)],sS.prototype,"formattedSnippetText",void 0);
_.p([_.dq("#attributed-snippet-text"),_.y("design:type",Object)],sS.prototype,"attributedSnippetTextEl",void 0);_.p([_.dq("#expand"),_.y("design:type",HTMLElement)],sS.prototype,"expandButton",void 0);_.p([_.dq("#expand-sizer"),_.y("design:type",HTMLElement)],sS.prototype,"expandSizer",void 0);_.p([_.t_("isExpanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"isExpandedChanged",null);
_.p([_.W4("isExpanded","maxLines"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"updateSnippetContainerMaxHeight",null);_.p([_.W4("isTruncated","showExpandButton","expandButtonOffset"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"updateMaskAndExpandButtonOffset",null);
_.p([_.t_("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sS.prototype,"onTextChanged",null);_.p([_.Uj({is:"ytd-text-inline-expander",disableElementRegistration:!0})],sS);
_.X(sS,"ytd-text-inline-expander",function(){if(P7d===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);P7d=N}N=P7d;return N},{mode:2});var Kj=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return N};
_.F(Kj,_.z);Kj.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Kj.prototype.handleUpdateDescriptionAction=function(N){if(N=_.t(N,_.M69))if(N.attributedDescription)this.set("data.attributedDescriptionBodyText",N.attributedDescription);else if(N.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.xH(N.description)):this.set("data.descriptionBodyText",N.description)}};
_.d0.Object.defineProperties(Kj.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}N=_.d7("web_watch_description_collapsed_default_lines",12);if(_.T("ww_desc_line_page_size_ks"))return N;b=Math.round(_.my().height*_.d7("web_watch_description_screen_height_percentage",.5)/20);return Math.max(b,N)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return(S=(N=this.data)==null?void 0:N.descriptionBodyText)!=null?S:(b=this.data)==null?void 0:b.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.sourceAttributions}}});
Kj.prototype.panelContentVisibleChanged=Kj.prototype.panelContentVisibleChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Kj.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Kj.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Kj.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],Kj.prototype,"panelContentVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Kj.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Kj.prototype,"shortsPanel",void 0);_.p([_.dq("#inline-expander"),_.y("design:type",Object)],Kj.prototype,"inlineExpander",void 0);
_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Kj.prototype,"panelContentVisibleChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Kj.prototype,"hasDescriptionText",null);_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],Kj.prototype,"collapsedLines",null);
_.p([_.f("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kj.prototype,"descriptionText",null);_.p([_.f("data","data.headerRuns"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kj.prototype,"headerRuns",null);_.p([_.f("data","data.sourceAttributions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Kj.prototype,"sourceAttributions",null);
_.p([_.Uj({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Kj);
_.X(Kj,"ytd-expandable-video-description-body-renderer",function(){if(Soc!==void 0)return Soc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Soc=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var sMZ;var K_Z=_.A(function(N){var b=N.data;return _.c("factoid-renderer",{class:"ytwFactoidRendererHost"},_.c("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},_.c("span",{class:"ytwFactoidRendererValue"},_.c(_.mD,{text:function(){return b().value}})),_.c("span",{class:"ytwFactoidRendererLabel"},_.c(_.mD,{text:function(){return b().label}}))))},"nd");_.qu(K_Z,"factoid-renderer",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;return _.c("upload-time-factoid-renderer",null,_.c(_.kY,{data:function(){return b().factoid}},{factoidRenderer:K_Z}))},"od"),"upload-time-factoid-renderer",{props:{data:_.er}});_.qu(_.A(function(N){var b=N.data;return _.c("view-count-factoid-renderer",null,_.c(_.kY,{data:function(){return b().factoid}},{factoidRenderer:K_Z}))},"pd"),"view-count-factoid-renderer",{props:{data:_.er}});var v3=function(){var N=_.z.apply(this,arguments)||this;N.shortsPanel=!1;N.engagementPanel=!1;N.watchWhileSdp=_.T("shorts_desktop_watch_while_sdp");return N};
_.F(v3,_.z);v3.prototype.configureRendererStamper=function(){return{"data.factoid":{id:"factoids",mapping:{factoidRenderer:{component:"factoid-renderer"},viewCountFactoidRenderer:{component:"view-count-factoid-renderer"},uploadTimeFactoidRenderer:{component:"upload-time-factoid-renderer"}}}}};
_.d0.Object.defineProperties(v3.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var N;return(N=this.data)==null?void 0:N.channel}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],v3.prototype,"componentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],v3.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v3.prototype,"shortsPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v3.prototype,"engagementPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v3.prototype,"watchWhileSdp",void 0);_.p([_.f("shortsPanel","engagementPanel","data.channel"),_.y("design:type",Object),_.y("design:paramtypes",[])],v3.prototype,"showChannelInfo",null);_.p([_.Uj({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],v3);
_.X(v3,"ytd-video-description-header-renderer",function(){if(sMZ!==void 0)return sMZ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sMZ=N},{mode:1});var vrc;var OS=function(){return _.z.apply(this,arguments)||this};
_.F(OS,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],OS.prototype,"noPadding",void 0);_.p([_.U(),_.y("design:type",Object)],OS.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],OS);
_.X(OS,"ytd-list-item-view-model",function(){if(vrc!==void 0)return vrc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return vrc=N},{mode:1});var Obl;var C7O;var G1c;var rY9;var Cj=function(){var N=_.z.apply(this,arguments)||this;N.adaptiveFullWidth=!1;N.modernButtons=_.T("web_modern_buttons");N.buttonOverrides={style:"call-to-action",type:"filled"};N.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return N};
_.F(Cj,_.z);Cj.prototype.handleSetTimestamp_=function(N){this.data&&this.data.shortUrl&&(_.H4(this.hostElement).querySelector("#share-url").value=N.isSet?_.wP(this.data.shortUrl,"t",N.timestamp):this.data.shortUrl)};
Cj.prototype.handleSignalActionCopyShareUrl_=function(N,b){(_.T("killswitch_copy_link_target_check")||_.H4(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()};
Cj.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.H4(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Cj.prototype.computeStyle_=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Cj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.y("design:type",String)],Cj.prototype,"rendererStyle",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Cj.prototype,"adaptiveFullWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Cj.prototype,"modernButtons",void 0);_.p([_.U(),_.y("design:type",Object)],Cj.prototype,"buttonOverrides",void 0);_.p([_.J_({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Cj);
_.X(Cj,"yt-copy-link-renderer",function(){if(rY9===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;G1c===void 0&&(G1c=document.createElement("template"));var P=G1c;S.call(b,P.content.cloneNode(!0),N.content.firstChild);rY9=N}N=rY9;return N},{mode:2});_.lo("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var GU=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return N};
_.F(GU,_.z);_.v=GU.prototype;_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var N=_.aN().resolve(_.cq(_.QJ));N&&(this.keyboardFocused=N.isKeyBoardInUse())}};
_.v.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.v.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.v.onChange_=function(){if(this.data){var N=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;N&&this.ytComponentBehavior.resolveCommand(N);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.v.handleUpdateToggleAction_=function(N){(N=_.t(N,Esk))&&this.data&&N.targetId==this.data.targetId&&this.set("data.toggled",N.toggled)};
_.v.toBoolean_=function(N){return!!N};
_.v.reset=function(){};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("data-changed",this.data))};
_.v.updateDataToggledFromBinding=function(N){this.set("data.toggled",N.detail.value)};
GU.prototype.dataChangedForBinding=GU.prototype.dataChangedForBinding;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],GU.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],GU.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],GU.prototype,"data",void 0);_.p([_.U({computed:"computeDescription_(data.*)"}),_.y("design:type",Object)],GU.prototype,"description_",void 0);_.p([_.U({value:function(){return!!_.aN().resolve(_.cq(_.QJ))&&_.T("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.y("design:type",Boolean)],GU.prototype,"useKeyboardFocused",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],GU.prototype,"keyboardFocused",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GU.prototype,"dataChangedForBinding",null);_.p([_.J_({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],GU);
_.X(GU,"yt-toggle-form-field-renderer",function(){if(C7O===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;Obl===void 0&&(Obl=document.createElement("template"));var P=Obl;S.call(b,P.content.cloneNode(!0),N.content.firstChild);C7O=N}N=C7O;return N},{mode:2});var cYS;var aQc;var ri=function(){var N=_.z.apply(this,arguments)||this;N.isDarkTheme=!1;N.isSearch=!1;N.noTopMargin=_.T("kevlar_watch_no_top_margin");N.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(ri,_.z);_.v=ri.prototype;_.v.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.v.dataChanged=function(){var N=this.getSelectedIndex();if(N>0)this.selected=N;else{this.selected=0;var b,S;(b=this.ytScrollableChipCloudBehavior)==null||(S=b.reset)==null||S.call(b)}};
_.v.getSelectedIndex=function(){var N;if((N=this.data)==null||!N.chips)return-1;N=-1;for(var b,S=0;S<((b=this.data)==null?void 0:b.chips.length);S++){var P=void 0,H=void 0;if((P=this.data)==null?0:(H=P.chips[S].chipCloudChipRenderer)==null?0:H.isSelected){N=S;break}}return N};
_.v.onResize=function(){var N=this.ytScrollableChipCloudBehavior;_.W_(N,N.setContainerWidthDiff);N=this.ytScrollableChipCloudBehavior;_.W_(N,N.setButtonsState)};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.handleRelatedChipCommand=function(N,b){N=this.JSC$16826_chipsSelector.indexOf(b);N!==-1&&this.JSC$16826_chipsSelector.selectIndex(N)};
_.v.handleChipCloudChipSelectAction=function(N){N=this.JSC$16826_chipsSelector.indexOf(N);N>-1&&this.JSC$16826_chipsSelector.selectIndex(N)};
_.v.handleChipCloudChipDeselectAction=function(){var N=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16826_chipsSelector&&((N==null?0:N.continuationCommand)?_.HN(this.hostElement,[N]):(N==null?0:N.searchEndpoint)?this.ytComponentBehavior.resolveCommand(N):N&&_.sR(this.hostElement,[N],this.hostElement),this.JSC$16826_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.v.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
ri.prototype.onResize=ri.prototype.onResize;ri.prototype.dataChanged=ri.prototype.dataChanged;ri.prototype.isSearchChanged=ri.prototype.isSearchChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ri.prototype,"actionHandlerBehavior",void 0);
_.p([_.L(_.$M),_.y("design:type",Object)],ri.prototype,"ironResizableBehavior",void 0);_.p([_.L(),_.y("design:type",Is)],ri.prototype,"ytScrollableChipCloudBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ri.prototype,"data",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],ri.prototype,"selected",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ri.prototype,"isDarkTheme",void 0);_.p([_.U({value:160}),_.y("design:type",Number)],ri.prototype,"scrollDistance",void 0);_.p([_.U(),_.y("design:type",Object)],ri.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ri.prototype,"noTopMargin",void 0);_.p([_.dq("#chips"),_.y("design:type",Object)],ri.prototype,"JSC$16826_chipsSelector",void 0);
_.p([_.W4("isSearch"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ri.prototype,"isSearchChanged",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ri.prototype,"dataChanged",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ri.prototype,"onResize",null);_.p([_.J_({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ri);
_.X(ri,"yt-chip-cloud-renderer",function(){if(aQc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;cYS===void 0&&(cYS=document.createElement("template"));var P=cYS;S.call(b,P.content.cloneNode(!0),N.content.firstChild);aQc=N}N=aQc;return N},{mode:2});var RG9,W_b=function(){return RG9!==void 0?RG9:RG9=document.createElement("template")};
document.head.appendChild(W_b().content);var nrb;var d99=document.head,m9E=d99.appendChild,k1V;if(nrb===void 0){var TLd=document.createElement("template");_.B(TLd,"");TLd.content.insertBefore(W_b().content.cloneNode(!0),TLd.content.firstChild);nrb=TLd}k1V=nrb;m9E.call(d99,k1V.content);var tX9=_.A(function(N){var b=N.data;return _.c("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.c("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.c("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.c(_.W,{cond:function(){return _.EW(b().image)},
then:function(S){return _.c("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.c(_.gG,{data:S,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.c("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.c(_.mD,{text:function(){return b().subtitle}})))),_.c(_.W,{cond:function(){var S;
return(S=b())==null?void 0:S.hasBottomDivider},
then:function(){return _.c("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"qd");var MXc=_.A(function(N){var b=N.data;return _.c("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.c("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.c(_.kY,{data:function(){var S;return(S=b().offerPlanDetailsItem)!=null?S:[]}},{offerPlanDetailsItemViewModel:function(S){return _.c("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.c(tX9,{data:S.data}))}})),_.c("div",null,_.c(_.W,{cond:function(){return b().hasBottomDivider},
then:function(){return _.c("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.c("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.c("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.c("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.c("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"rd");var F_9=_.A(function(N){var b=N.data;N=_.O(_.QF(!1,void 0,"MrXxy"));var S=N.next().value,P=N.next().value,H=_.Ob(function(){P(!S());return!1}),K=function(){var C;
return(C=b().offerPlanDetailsContainer)!=null?C:[]};
return _.c("lp-complex-offer-card-details-view-model",null,_.c("div",null,_.c(_.W,{cond:function(){return S()},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.c("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":H,"aria-expanded":S},_.c(_.mD,{text:function(){return b().expandedTitle}})),_.c("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.c(_.kY,{data:K},{offerPlanDetailsContainerViewModel:function(C){return _.c("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.c(MXc,{data:C.data}))}})),_.c("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.c(_.mD,{text:function(){return b().legalText}})))},
else:function(){return _.c("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":H,"aria-expanded":S},_.c(_.mD,{text:function(){return b().collapsedTitle}}),_.c("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.c(_.cX,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"sd");var BLk=_.A(function(N){var b=N.data;return _.c("lp-complex-offer-card-option-view-model",null,_.c("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.c(_.W,{cond:function(){return b().topDividerText},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.c("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.c("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.c("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.c(_.mD,{text:function(){return b().topDividerText}}))))}}),_.c(_.W,{cond:function(){return b().description},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.c(_.mD,{text:function(){return b().description}}))}}),_.c(_.W,{cond:function(){return b().planPricingPrimary},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.c(_.mD,{text:function(){return b().planPricingPrimary}}))}}),_.c(_.W,{cond:function(){return b().planPricingSecondary},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.c(_.mD,{text:function(){return b().planPricingSecondary}}))}}),_.c(_.W,{cond:function(){return b().primaryButton},
then:function(){return _.c("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.c(_.kY,{data:function(){return b().primaryButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"td");var lQN=_.A(function(N){var b=N.data;var S=function(){var K;return((K=b())==null?void 0:K.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
N={};var P={},H={};return _.c("ytm-lp-complex-offer-card-view-model",null,_.c("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.c("div",{class:_.KU((N.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=S,N),"ytmLpComplexOfferCardViewModelCardContainer")},_.c(_.W,{cond:function(){var K;return(K=b())==null?void 0:K.bannerText},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.c("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.c(_.mD,{text:function(){return b().bannerText}})))}}),_.c(_.W,{cond:function(){return _.EW(b().logo)},
then:function(K){var C={};return _.c("div",{class:_.KU((C.ytmLpComplexOfferCardViewModelLogoAlignLeft=S,C),"ytmLpComplexOfferCardViewModelLogo")},_.c(_.gG,{data:K,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.c("div",{class:_.KU((P.ytmLpComplexOfferCardViewModelTitleAlignLeft=S,P),"ytmLpComplexOfferCardViewModelTitle")},_.c(_.mD,{text:function(){return b().title}})),_.c(_.W,{cond:function(){var K;
return(K=b())==null?void 0:K.subtitle},
then:function(){var K={};return _.c("div",{class:_.KU((K.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=S,K),"ytmLpComplexOfferCardViewModelSubtitle")},_.c(_.mD,{text:function(){return b().subtitle}}))}}),_.c(_.W,{cond:function(){return b().planPricingPrimary},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.c(_.mD,{text:function(){return b().planPricingPrimary}}))}}),_.c(_.W,{cond:function(){return b().planPricingSecondary},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.c(_.mD,{text:function(){return b().planPricingSecondary}}))}}),_.c(_.W,{cond:function(){return b().purchaseButton},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.c(_.kY,{data:function(){return b().purchaseButton}},{buttonViewModel:function(K){return _.c(_.j$,{data:K.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.c(_.W,{cond:function(){var K;
return(K=b())==null?void 0:K.offerOptions},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.c(_.kY,{data:function(){return b().offerOptions}},{lpComplexOfferCardOptionViewModel:BLk}))}}),_.c("div",{class:_.KU((H.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=S,H),"ytmLpComplexOfferCardViewModelLegalText")},_.c(_.mD,{text:function(){return b().legalText}})),_.c(_.W,{cond:function(){var K;
return(K=b())==null?void 0:K.offerCardDetails},
then:function(){return _.c("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.c(_.kY,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:F_9}))}}))))},"ud");var L_S=_.A(function(N){var b=N.data;var S=function(){var C;return((C=b())==null?void 0:C.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
N={};var P={},H={},K={};return _.c("ytm-lp-complex-offer-card-section-view-model",null,_.c("div",{class:_.KU("ytmLpComplexOfferCardSectionViewModelHost")},_.c("div",{class:_.KU((N.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=S,N),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.c("div",{class:_.KU((P.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=S,P),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.c("h2",{class:_.KU((H.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
S,H),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.c(_.mD,{text:function(){return b().title}}))),_.c(_.W,{cond:function(){var C;
return(C=b())==null?void 0:C.subtitle},
then:function(){var C={},G={};return _.c("div",{class:_.KU((C.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=S,C),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.c("div",{class:_.KU((G.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=S,G),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.c(_.mD,{text:function(){return b().subtitle}})))}}),_.c("div",{class:_.KU((K.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=S,K),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.c(_.kY,{data:function(){var C;
return(C=b().offerPlans)!=null?C:[]}},{lpComplexOfferCardViewModel:function(C){return _.c("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.c(lQN,{data:C.data}))}})))))},"vd");var fQN=_.A(function(N){return _.c("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.c("div",{class:"ytLpCouponBannerViewModelIcon"},_.c(_.cX,{icon:function(){return"price_tag"}})),_.c("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.c("div",{class:"ytLpCouponBannerViewModelContent"},_.c("div",{class:"ytLpCouponBannerViewModelHeading"},_.c(_.mD,{text:function(){var b;
return(b=N.data())==null?void 0:b.title}})),_.c("div",{class:"ytLpCouponBannerViewModelBody"},_.c(_.mD,{text:function(){var b;
return(b=N.data())==null?void 0:b.subtitle}})))))},"wd");
fQN.idomCompat=!0;_.c3=r3k.getInstance();var uUS;uUS=_.A(function(N){return _.c("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":N.shouldAriaHideContent},_.c("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:N.questionId},_.c(_.mD,{text:N.question})))},"xd");
_.QM9=_.A(function(N){var b=N.data;var S=N.themeOverride;N=_.O(_.QF(!1,void 0,"pNli2b"));var P=N.next().value,H=N.next().value;N=_.Ob(function(){H(!P());return!1});
var K=function(){return P()?"EXPAND_LESS":"EXPAND_MORE"},C=("faq-container"+_.ey(_.c3)).toString(),G="faq-question-and-answers-section-question"+_.ey(_.c3),a={},R={};
return _.c("faq-entry-view-model",null,_.c("div",{class:_.KU("ytLpFaqEntryViewModelHost",(a.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return S==null?void 0:S().useDarkTheme},a))},_.c("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":N,role:"button","aria-expanded":P,"aria-labelledby":G.toString(),"tab-index":"0"},_.c(uUS,{question:function(){return b().question},
questionId:G,shouldAriaHideContent:!0}),_.c(_.W,{cond:function(){return P()!==void 0},
then:function(){return _.c("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.c(_.cX,{icon:K,ariaHidden:!0}),_.c("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.c("div",{class:_.KU("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(R.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!P()},R))},_.c("div",{id:C},_.c(_.zj,{each:function(){return b().answers||[]}},function(n){return _.c("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.c(_.mD,
{text:n}))})))))},"yd");
_.QM9.idomCompat=!0;var x9z=_.A(function(N){var b=N.data;var S=N.themeOverride;N={};return _.c("lp-faq-section-view-model",null,_.c("div",{class:_.KU("yt-lp-faq-section-view-model",(N["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},N["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(S==null||!S().useDarkTheme)},N))},_.c("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.c(_.W,{cond:function(){return b().header},
then:function(P){return _.c("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.c(_.mD,{text:P}))}}),_.c("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.c(_.kY,{data:function(){return b().faqs}},{faqEntryViewModel:function(P){return _.c(_.QM9,{data:P.data,
themeOverride:S})}})),_.c("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.c(_.zj,{each:function(){return b().footers||[]}},function(P){return _.c(_.mD,{text:P})})),_.c(_.W,{cond:function(){return b().legal},
then:function(P){return _.c("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.c(_.mD,{text:P}))}}))))},"zd");
x9z.idomCompat=!0;var or9=_.A(function(N){var b=N.data;var S=N.themeOverride;_.YU(function(){var C=b().gtmId;C&&_.wt(C,_.Vg("GL",""))});
var P={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var C,G,a;return(a=(C=b().logo)==null?void 0:(G=C.accessibilityData)==null?void 0:G.label)!=null?a:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},H=_.aN().resolve(_.cq(_.T8)),K=function(){return H&&H()||(S==null?void 0:S().useDarkTheme)};
return _.c("lp-header-section-view-model",null,_.c("div",{class:function(){var C=b().layoutType,G=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",a=S==null?void 0:S().useDarkTheme,R=["lp-header-section-view-model"];switch(C){case "LP_MODULE_LAYOUT_TYPE_PTC":R.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":R.push("lp-header-section-view-model--narrow-header-layout-type")}G&&R.push("lp-header-section-view-model__lp-header-section-margin");a&&R.push("lp-header-section-view-model--premium-force-dark-mode");
return R.join(" ")}},_.c(_.W,{cond:function(){return b().logo},
then:function(){return _.c("div",null,_.c(_.W,{cond:K,then:function(){return _.c(_.W,{cond:function(){var C;return(C=b().logo)==null?void 0:C.imageDark},
then:function(C){return _.c(_.gG,Object.assign({},{data:C},P))}})},
else:function(){return _.c(_.W,{cond:function(){var C;return(C=b().logo)==null?void 0:C.imageLight},
then:function(C){return _.c(_.gG,Object.assign({},{data:C},P))}})}}))}}),_.c(_.W,{cond:function(){return b().title},
then:function(C){return _.c("div",{class:"lp-header-section-view-model__lp-header-title"},_.c(_.mD,{text:C}))}}),_.c("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.c(_.W,{cond:function(){return b().subtitles},
then:function(C){return _.c(_.zj,{each:C},function(G){return _.c("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.c(_.mD,{text:G}))})}})),_.c(_.W,{cond:function(){return b().additionalInfo},
then:function(C){return _.c("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.c(_.mD,{text:C}))}}),_.c("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.c(_.W,{cond:function(){return b().primaryButton},
then:function(C){return _.c("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.c(_.kY,{data:C},{buttonViewModel:_.j$}))}}),_.c(_.W,{cond:function(){return b().secondaryButton},
then:function(C){return _.c("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.c(_.kY,{data:C},{buttonViewModel:_.j$}))}})),_.c(_.W,{cond:function(){return b().otherOffersInfo},
then:function(C){return _.c("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.c(_.mD,{text:C}))}}),_.c("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.c(_.W,{cond:function(){return b().billingInfo},
then:function(C){return _.c(_.zj,{each:C},function(G){return _.c("div",null,_.c(_.mD,{text:G}))})}}))))},"Ad");
or9.idomCompat=!0;var ib9=_.A(function(N){return _.c("lp-header-upsell-banner-view-model",{class:_.KU("lpHeaderUpsellBannerViewModelHost",N.className,{})},_.c("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.c(_.cX,{icon:function(){return"CAMPAIGN"}})),_.c("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.c("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.c("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.c("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.c(_.mD,{text:function(){var b;
return(b=N.data())==null?void 0:b.description}})))),_.c(_.kY,{data:function(){var b;
return(b=N.data())==null?void 0:b.purchaseButton}},{buttonViewModel:function(b){return _.c(_.j$,{data:b.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Bd");var JY4=_.A(function(N){var b=N.data;var S=_.$q(N.themeOverride,{useDarkTheme:!1});N={};N=_.KU("ytmLpHeadlineSectionViewModelHost",(N.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return S().useDarkTheme},N));
return _.c("lp-headline-section-view-model",null,_.c("div",{class:N},_.c(_.W,{cond:function(){return b().title},
then:function(P){return _.c("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.c(_.mD,{text:P}))}}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(P){return _.c("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.c(_.mD,{text:P}))}})))},"Cd");var U9c=_.A(function(N){var b=N.data;var S=N.themeOverride;var P=_.aN().resolve(_.cq(_.T8)),H=function(){return P&&P()||(S==null?void 0:S().useDarkTheme)},K=function(){var R,n;
var d=H()?(R=b().textBackgroundImage)==null?void 0:R.imageDark:(n=b().textBackgroundImage)==null?void 0:n.imageLight;return Yqu((d==null?void 0:d.sources)||[])},C=function(){var R,n;
return H()?(R=b().featureImage)==null?void 0:R.imageDark:(n=b().featureImage)==null?void 0:n.imageLight},G=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},a=function(){var R,n;
return H()?(R=b().logo)==null?void 0:R.imageDark:(n=b().logo)==null?void 0:n.imageLight};
return _.c("ytm-lp-large-feature-section-view-model",null,_.c("div",{class:function(){var R=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",n=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",d=(b().index||0)%2===1,m=S==null?void 0:S().useDarkTheme,k=["yt-lp-large-feature-section-view-model"];R?k.push("yt-lp-large-feature-section-view-model--music-feature-type"):n?k.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):d||k.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
m&&k.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return k.join(" ")}},_.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.c(_.W,{cond:C,
then:function(){return _.c(_.gG,{data:function(){return C()},
alt:function(){var R,n,d;return(d=(R=b().featureImage)==null?void 0:(n=R.accessibilityData)==null?void 0:n.label)!=null?d:""},
contentMode:G})}})),_.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var R;return((R=K())==null?0:R.url)?"background-image: url("+_.VK(K().url)+");":""}},_.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.c(_.W,{cond:a,
then:function(){return _.c(_.gG,{data:function(){return a()},
alt:function(){var R,n,d;return(d=(R=b().logo)==null?void 0:(n=R.accessibilityData)==null?void 0:n.label)!=null?d:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.c(_.W,{cond:function(){return b().eyebrowText},
then:function(){return _.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.c(_.mD,{text:function(){return b().eyebrowText}}))}}),_.c(_.W,{cond:function(){return b().title},
then:function(){return _.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.c(_.mD,{text:function(){return b().title}}))}}),_.c(_.W,{cond:function(){return b().subtitles},
then:function(){return _.c("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.c(_.zj,{each:function(){return b().subtitles||[]}},function(R){return _.c(_.mD,{text:R})}))}})))))},"Dd");
U9c.idomCompat=!0;var ZbN=_.A(function(N){return _.c("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.c("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.c(_.cX,{icon:function(){var b;return(b=N.data())==null?void 0:b.iconType},
className:function(){var b;switch((b=N.data())==null?void 0:b.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var b;return((b=N.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.c("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.c(_.mD,{text:function(){var b;
return(b=N.data())==null?void 0:b.text},
className:function(){var b;return((b=N.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ed");var jMN=_.A(function(N){N=_.h_(N,{config:void 0,themeOverride:void 0});var b=N.data,S=N.config,P=N.themeOverride;N={};N=_.KU("ytmLpOfferCardOptionViewModelHost",(N.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var G;return(G=P())==null?void 0:G.useDarkTheme},N));
var H=_.Ob(function(){var G,a;(G=S())==null||(a=G.handleRadioButtonClick)==null||a.call(G,b());return!1}),K=function(){var G;
return(G=S())==null?void 0:G.shouldDisplayRadioButton},C=function(){var G;
return(G=b().featureListItems)!=null?G:[]};
return _.c("ytm-lp-offer-card-option-view-model",null,_.c("div",{class:N,"on:click":_.Ob(function(){if(K()){var G,a;(G=S())==null||(a=G.handleRadioButtonClick)==null||a.call(G,b())}return!1})},_.c(_.W,{cond:K,
then:function(){return _.c("div",null,_.c("input",{type:"radio","on:click":H,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var G;return!((G=S())==null||!G.isOptionSelected)}}))}}),_.c("div",null,_.c("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.c(_.mD,{text:function(){return b().eyebrowText}})),_.c("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.c(_.mD,
{text:function(){return b().subtitle}})),_.c(_.W,{cond:function(){return C().length>0},
then:function(){return _.c("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.c(_.kY,{data:C},{lpFeatureListItemViewModel:ZbN}))}}),_.c("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.c(_.mD,{text:function(){return b().description}})))))},"Fd");
jMN.idomCompat=!0;var zGk=_.A(function(N){var b=N.data;var S=N.themeOverride;N=_.O(_.qI(function(){var K,C=(K=b().offerOptions)==null?void 0:K[0];return _.t(C,ZGk)||{}}));
var P=N.next().value,H=N.next().value;N={};return _.c("ytm-lp-offer-card-view-model",null,_.c("div",{class:_.KU("ytmLpOfferCardViewModelHost",(N.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},N))},_.c("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.c(_.W,{cond:function(){return b().titleIconType},
then:function(){return _.c("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.c(_.cX,{icon:function(){var K;return((K=b().titleIconType)==null?void 0:K.toString())||""}}))}}),_.c("div",{class:"ytmLpOfferCardViewModelTitleText"},_.c(_.mD,{text:function(){return b().title}})),_.c(_.kY,{data:function(){return b().titleBadge}},{badgeViewModel:function(K){return _.c("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.c(_.LH,{data:K.data}))}})),_.c("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.c(_.kY,{data:function(){return b().offerOptions}},{lpOfferCardOptionViewModel:function(K){var C=K.data;
return _.c(_.nM,null,_.c("div",{class:"ytmLpOfferCardViewModelDivider"}),_.c(jMN,{data:C,config:function(){var G;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:C().id===((G=P())==null?void 0:G.id),handleRadioButtonClick:function(a){return void H(a)}}},
themeOverride:S}))}})),_.c("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.c(_.kY,{data:function(){var K;
return(K=P())==null?void 0:K.purchaseButtonOverride}},{buttonViewModel:_.j$}))))},"Gd");
zGk.idomCompat=!0;var AYE=_.A(function(N){var b=N.data;var S=N.themeOverride;N={};N=_.KU("ytmLpOfferCardSectionViewModelHost",(N.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var P;return S==null?void 0:(P=S())==null?void 0:P.useDarkTheme},N));
return _.c("ytm-lp-offer-card-section-view-model",null,_.c("div",{class:N},_.c(_.W,{cond:function(){return b().title!==void 0},
then:function(){return _.c("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.c("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.c(_.mD,{text:function(){return b().title}})),_.c(_.W,{cond:function(){return b().subtitle},
then:function(){return _.c("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.c(_.mD,{text:function(){return b().subtitle}}))}}))}}),_.c("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.c(_.kY,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(P){return _.c("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.c(zGk,{data:P.data,
themeOverride:S}))}})),_.c(_.W,{cond:function(){return b().footer},
then:function(){return _.c("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.c(_.mD,{text:function(){return b().footer}}))}})))},"Hd");var XQE=_.A(function(N){var b=N.data;return _.c("lp-offer-table-cell-content-view-model",null,_.c("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.c(_.Al,null,_.c(_.ZH,{when:function(){return b().title}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return b().title}})}),_.c(_.ZH,{when:function(){return b().subTitle}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return b().subTitle}})}),_.c(_.ZH,{when:function(){return b().featureDescription}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return b().featureDescription}})}),_.c(_.ZH,{when:function(){return b().description}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return b().description}})}),_.c(_.ZH,{when:function(){return b().iconType}},function(){return _.c("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.c(_.cX,{icon:function(){return b().iconType.toString()}}))}),_.c(_.ZH,{when:function(){return b().purchaseButton}},function(){return _.c(_.kY,{data:function(){return b().purchaseButton}},{buttonViewModel:function(S){return _.c("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.c(_.j$,
{data:S.data}))}})}),_.c(_.ZH,{when:function(){return b().note}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return b().note}})}),_.c(_.ZH,{when:function(){return b().featureDetail}},function(){return _.c(_.mD,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return b().featureDetail}})}),_.c(_.ZH,{when:function(){return b().badge}},function(){return _.c(_.kY,{data:function(){return b().badge}},{badgeViewModel:_.LH})}))))},"Id");
XQE.idomCompat=!0;var ErV=_.A(function(N){var b=N.data;return _.c("lp-offer-table-cell-view-model",null,_.c("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.c(_.kY,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:XQE})))},
"Jd");
ErV.idomCompat=!0;var pQz=_.A(function(N){var b=N.data;var S=N.lpTableIsFirstRow;var P=N.lpTableIsLastRow;var H=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},K=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(P==null?0:P())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.c("ytm-lp-offer-table-row-view-model",null,_.c("div",{class:"ytLpOfferTableRowViewModelHost"},_.c(_.kY,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(C){return _.c("div",{class:H},_.c(ErV,{data:C.data}))}}),_.c(_.kY,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(C){return _.c("div",{class:K},_.c(ErV,{data:C.data}))}})))},"Kd");
pQz.idomCompat=!0;var Yob=_.A(function(N){var b=N.data;var S=N.themeOverride;var P=_.aN().resolve(_.cq(_.T8)),H=function(){return _.t(b().logo,bWk)||{}};
N={};return _.c("ytm-lp-offer-table-section-view-model",null,_.c("div",{class:"ytLpOfferTableViewModelHost"},_.c(_.W,{cond:function(){var K,C;return P&&P()||(S==null?0:S().useDarkTheme)?(K=H())==null?void 0:K.imageDark:(C=H())==null?void 0:C.imageLight},
then:function(K){return _.c(_.gG,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var C,G,a;return(a=(C=H())==null?void 0:(G=C.accessibilityData)==null?void 0:G.label)!=null?a:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.c(_.mD,{text:function(){return b().subtitle}})),_.c(_.W,{cond:function(){return b().disclaimers},
then:function(K){return _.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.c(_.zj,{each:K},function(C){return _.c("div",null,_.c(_.mD,{text:C}))}))}}),_.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.c(_.kY,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(K,C){return _.c(pQz,{data:K.data,
lpTableIsFirstRow:function(){return C()===0},
lpTableIsLastRow:function(){return C()===b().rows.length-1}})}})),_.c("div",{class:_.KU((N.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return b().hasFooterBackground},N))},_.c(_.W,{cond:function(){return b().footer},
then:function(){return _.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.c(_.mD,{text:function(){return b().footer}}))}}),_.c(_.W,{cond:function(){return b().footerTitle},
then:function(){return _.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.c(_.mD,{text:function(){return b().footerTitle}}))}}),_.c(_.W,{cond:function(){return b().footerDescription},
then:function(){return _.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.c(_.mD,{text:function(){return b().footerDescription}}))}}),_.c(_.W,{cond:function(){return b().footerDescriptions},
then:function(K){return _.c("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.c(_.zj,{each:K},function(C){return _.c("div",null,_.c(_.mD,{text:C}))}))}}))))},"Ld");
Yob.idomCompat=!0;var yYl=_.A(function(N){var b=N.data;var S=N.themeOverride;var P=_.aN().resolve(_.cq(_.T8)),H=function(){var G;return S==null?void 0:(G=S())==null?void 0:G.useDarkTheme},K=function(){var G,a;
return P&&P()||H()?(G=b().image)==null?void 0:G.imageDark:(a=b().image)==null?void 0:a.imageLight};
N={};N=_.KU("ytmLpSmallFeatureSectionViewModelHost",(N.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=H,N));var C=function(){var G,a,R;return(R=(G=b().image)==null?void 0:(a=G.accessibilityData)==null?void 0:a.label)!=null?R:""};
return _.c("ytm-lp-small-feature-section-view-model",{class:N},_.c(_.W,{cond:function(){return K()&&!p9Y},
then:function(){return _.c("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.c(_.gG,{data:function(){return K()},
alt:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.c("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.c("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.c(_.W,{cond:function(){return b().title},
then:function(G){return _.c(_.mD,{text:G})}})),_.c("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.c(_.mD,{text:function(){return b().description}}))))},"Md");
yYl.idomCompat=!0;var IQl=_.A(function(N){var b=N.data;var S=N.themeOverride;N={};return _.c("ytm-lp-small-feature-section-group-view-model",null,_.c("div",{class:_.KU("ytmLpSmallFeatureSectionGroupViewModelHost",(N.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},N))},_.c("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.c(_.kY,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(P){return _.c("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.c(yYl,{data:P.data,
themeOverride:S}))}}))))},"Nd");
IQl.idomCompat=!0;_.qu(_.A(function(N){var b=N.data;var S=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},P=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},H=function(){var C="",G,a;
var R=_.aN().resolve(_.cq(_.T8));R=S()||(R==null?0:R())?(G=b().themedImageViewModel)==null?void 0:G.imageDark:(a=b().themedImageViewModel)==null?void 0:a.imageLight;(G=Yqu((R==null?void 0:R.sources)||[]))&&G.url&&(C=P()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.VK(G.url)+");":"background-image: url("+_.VK(G.url)+");");return C},K=function(){return{useDarkTheme:S()}};
N={};return _.c("yt-section-group-view-model",null,_.c("div",{class:_.KU("yt-lp-section-group-view-model",(N["yt-lp-section-group-view-model--premium-force-dark-mode"]=S,N["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},N))},_.c(_.W,{cond:function(){return H().length},
then:function(){var C={};return _.c("div",{class:_.KU("yt-lp-section-group-view-model__bg-image",(C["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=P,C)),style:H})}}),_.c("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.c(_.kY,{data:function(){return b().sections}},{lpHeaderUpsellBannerViewModel:function(C){return _.c(ib9,{data:C.data})},
lpFaqSectionViewModel:function(C){return _.c(x9z,{data:C.data,themeOverride:K})},
lpHeaderSectionViewModel:function(C){return _.c(or9,{data:C.data,themeOverride:K})},
lpHeadlineSectionViewModel:function(C){return _.c(JY4,{data:C.data,themeOverride:K})},
lpLargeFeatureSectionViewModel:function(C){return _.c(U9c,{data:C.data,themeOverride:K})},
lpOfferCardSectionViewModel:function(C){return _.c(AYE,{data:C.data,themeOverride:K})},
lpComplexOfferCardSectionViewModel:function(C){return _.c(L_S,{data:C.data})},
lpOfferTableSectionViewModel:function(C){return _.c(Yob,{data:C.data,themeOverride:K})},
lpSmallFeatureSectionGroupViewModel:function(C){return _.c(IQl,{data:C.data,themeOverride:K})},
lpCouponBannerViewModel:function(C){return _.c(fQN,{data:C.data})}}))))},"Od"),"yt-section-group-view-model",{props:{data:_.kg}});_.D9d=_.A(function(N){var b=_.nf(Plo,function(){var C;return(C=N.data())==null?void 0:C.chipBarStateEntityKey}),S=function(){return N.data().disableDeselection},P=_.O(_.qI(function(){var C;
if(((C=b())==null?void 0:C.selectedIndex)!=void 0)return b().selectedIndex;var G,a;C=_.O(((G=N.data())==null?void 0:(a=G.chips)==null?void 0:a.entries())||[]);for(G=C.next();!G.done;G=C.next()){G=_.O(G.value);a=G.next().value;G=G.next().value;var R=void 0;if((R=_.t(G,_.nc))==null?0:R.selected)return a}return-1})),H=P.next().value,K=P.next().value;
return _.c("chip-bar-view-model",{class:_.KU("ytChipBarViewModelHost",N.className),role:"tablist"},_.c(_.kY,{data:function(){return N.data().chips}},{chipViewModel:function(C,G){return _.c("div",{class:"ytChipBarViewModelChipWrapper"},_.c(_.mdd,{data:C.data,
selected:function(){return G()===H()},
callback:function(a,R){a=!!R;R=G();K(a?R:-1);var n,d=(n=N.data())==null?void 0:n.chipBarStateEntityKey;d&&a&&_.e7(_.t5("chipBarStateEntity",d,{key:d,selectedIndex:R}))},
disableDeselection:N.disableDeselection||S}))}}))},"Pd");_.qu(_.D9d,"chip-bar-view-model",{props:{data:_.er,className:_.er,disableDeselection:_.er}});_.VXZ=_.A(function(N){var b=N.data;N={};return _.c("divider-view-model",{class:_.KU("dividerViewModelHost",(N.dividerViewModelInsetThinPadding=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},N))},_.c("div",{class:_.KU("dividerViewModelBaseDivider",function(){return H4a(b().dividerStyle)})}))},"Qd");
_.VXZ.idomCompat=!0;_.qu(_.VXZ,"divider-view-model",{props:{data:_.kg}});var m8=new Map,ke=new Map,v2U=0,TM;var akI=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],n2e={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var grb,eGE;grb=function(N){return function(b){return function(){return(b==null?void 0:b())!==void 0?String(b())+N:void 0}}};
_.ai=grb("px");eGE=grb("s");var $9z=P9p(function(N){return N.targetGroupId}).useUpdatableData;_.Ri=_.A(function(N){function b(se){return function(){var Ca=u().numItemsPerGridRow,ML=se()*Ca;Ca=ML+Ca;var na,To;return(To=(na=P().contents)==null?void 0:na.slice(ML,Ca))!=null?To:[]}}
var S=_.h_(N,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),P=S.data,H=S.layoutContainerWidth,K=S.shouldUseOwnContainerSize,C=S.marginSettings,G=S.useUpdatedMargin,a=Xa9(),R=_.O($9z(function(){var se,Ca;return{targetGroupId:(se=P().targetingContext)==null?void 0:(Ca=se.targetGroupId)==null?void 0:Ca[0]}})).next().value;
S=_.O(_.QF(!0,void 0,"CC9Rdb"));var n=S.next().value,d=S.next().value,m=function(){var se,Ca=(se=_.t(P().showMoreButton,_.WC))==null?void 0:se.trackingParams;Ca&&_.yj(_.dG(),Ca);d(!1)},k=function(){var se,Ca=(se=_.t(P().showLessButton,_.WC))==null?void 0:se.trackingParams;
Ca&&_.yj(_.dG(),Ca);d(!0)};
S=_.O(_.tI({canHaveZeroSize:!1}));var M=S.next().value;S=S.next().value;var l=function(){var se;return(se=P().contentAspectRatio)!=null?se:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},u=_.UB(function(){var se=K()&&M.width()>0?M.width()||H():H(),Ca,ML=(Ca=N.data())==null?void 0:Ca.responsiveContainerConfiguration;
se=_.A5({containerWidth:se,sizing:ML?X$(ML==null?void 0:ML.responsiveSize):"EXTRA_COMPACT",marginSettings:C(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:se.maxContainerWidth,numItemsPerGridRow:se.numItems,contentPadding:K()?se.margin:se.contentMargin,itemWidth:se.itemWidth,itemMargin:se.gutter/2}},void 0,"YIvnde"),J=function(){if(P().enableVerticalExpansion){if(n())return Z();
var se,Ca,ML=(Ca=(se=P().contents)==null?void 0:se.length)!=null?Ca:0;return Math.ceil(ML/u().numItemsPerGridRow)}return u().numItemsPerGridRow<=2?2:1},Z=function(){var se;
return Math.ceil(((se=P().minCollapsedItemCount)!=null?se:1)/u().numItemsPerGridRow)},D=function(){return P().enableVerticalExpansion&&P().showLessButton&&!n()&&J()>Z()},Y=function(){var se,Ca;
return P().enableVerticalExpansion&&P().showMoreButton&&n()&&((Ca=(se=P().contents)==null?void 0:se.length)!=null?Ca:0)>u().numItemsPerGridRow*Z()},V=function(){return!D()},g=function(){return!Y()},e={};
return _.c("grid-shelf-view-model",{class:_.KU("ytGridShelfViewModelHost",N.className,(e.ytGridShelfViewModelHostHasBottomButton=function(){return D()||Y()},e.ytGridShelfViewModelHostIsDismissed=function(){var se,Ca=(se=R())!=null?se:{};
se=Ca.behavior;var ML=Ca.isDismissed,na=Ca.stamperContextTargetId;Ca=Ca.stamperIndex;if(!(_.T("mweb_see_fewer_shorts_group_dismissal")&&ML&&se&&na))return!1;var To;ML=a;for(var jp,Xf,YO=((jp=ML)==null?0:jp.targetId)?_.he((Xf=ML)==null?void 0:Xf.targetId):void 0;((To=ML)==null?0:To.parent)&&YO!==na;)ML=ML.parent,Xf=jp=void 0,YO=((jp=ML)==null?0:jp.targetId)?_.he((Xf=ML)==null?void 0:Xf.targetId):void 0;To=YO===na?ML:void 0;if(!To)return!1;var Wk;na=To==null?void 0:(Wk=To.stamperIndex)==null?void 0:
Wk.call(To);return se==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||se==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&na!=null&&Ca!=null&&na>Ca},e.ytGridShelfViewModelHostOptionalMediumLayoutMargin=G,e)),
el:_.VN(S),style:_.r5({"margin-left":(0,_.ai)(function(){return u().contentPadding}),
"margin-right":(0,_.ai)(function(){return u().contentPadding})})},_.c(_.W,{cond:function(){return _.t(P().header,C84)},
then:function(se){return _.c(_.V5,{data:se,useUpdatedPadding:G,disableHorizontalPadding:!0})}}),_.c("div",null,_.c(_.zj,{each:function(){return Array(J())}},function(se,Ca){return _.c(hGd,{className:N.className,
items:b(Ca),responsiveGridShelfLayout:u,contentAspectRatio:l})})),_.c("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.c(_.kY,{data:function(){return P().showMoreButton}},{buttonViewModel:function(se){return _.c("div",{hidden:g},_.c(_.j$,{data:se.data,
onClick:m}))}}),_.c(_.kY,{data:function(){return P().showLessButton}},{buttonViewModel:function(se){return _.c("div",{hidden:V},_.c(_.j$,{data:se.data,
onClick:k}))}})))},"Sd");
_.Ri.idomCompat=!0;var hGd=_.A(function(N){var b=N.items;var S=N.responsiveGridShelfLayout;var P=N.contentAspectRatio;N=N.className;var H=(0,_.ai)(function(){return-S().itemMargin});
return _.c("div",{el:_.VN(KEf(function(K){a:{for(var C=b(),G=[],a=0;a<C.length;a++){var R=_.t(C[a],ptZ);if(!R||R==null||!R.inlinePlayerData){K=null;break a}var n=K.children.item(a);if(!n){K=null;break a}G.push({thumbnailElement:n,videoData:R})}K={gridVideoPreviewData:{gridItems:G}}}return K})),
class:_.KU("ytGridShelfViewModelGridShelfRow",N),style:_.r5({"margin-left":H,"margin-right":H})},_.c(_.kY,{data:b,replacementWrapper:function(K){return _.c(qoZ,{responsiveGridShelfLayout:S},K)}},{shortsLockupViewModel:function(K){return _.c(qoZ,{responsiveGridShelfLayout:S},_.c(MBd,{data:K.data,
aspectRatio:function(){return P()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.T("mweb_enable_one_line_title_on_shorts")?1:_.T("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(K){return _.c(qoZ,{responsiveGridShelfLayout:S},_.c(_.Y3,{data:K.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Td"),qoZ=_.A(function(N){return _.c("div",{style:_.r5({width:(0,_.ai)(function(){return N.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+N.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},N.children)},"Ud");
_.Ri.idomCompat=!0;_.qu(_.Ri,"grid-shelf-view-model",{props:{data:_.kg,layoutContainerWidth:_.kg,shouldUseOwnContainerSize:_.kg,marginSettings:_.kg,useUpdatedMargin:_.kg,className:_.kg}});_.wQ9=_.A(function(N){var b=_.O(_.QF(!1,void 0,"FVl30c")),S=b.next().value,P=b.next().value;b={};return _.c("yt-alert-banner-view-model",{class:_.KU("ytAlertBannerViewModelHost",N.className,function(){var H;a:switch((H=N.data())==null?void 0:H.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":H="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":H="ytAlertBannerViewModelWarning";break a;default:H="ytAlertBannerViewModelInformational"}return H},(b.ytAlertBannerViewModelDismissed=
S,b.ytAlertBannerViewModelFullbleed=N.fullbleed,b.ytAlertBannerViewModelNarrow=N.narrow,b.ytAlertBannerViewModelIsInRichGrid=N.isInRichGrid,b))},_.c(_.W,{cond:function(){var H;
return!((H=N.data())==null?0:H.hideIcon)},
then:function(){return _.c("div",{class:"ytAlertBannerViewModelIcon"},_.c(_.cX,{icon:function(){return"info_circle"}}))}}),_.c("div",{class:"ytAlertBannerViewModelOuterContainer"},_.c("div",{class:"ytAlertBannerViewModelContainer"},_.c("div",{class:"ytAlertBannerViewModelContent"},_.c("div",{class:"ytAlertBannerViewModelHeading"},_.c(_.mD,{text:function(){var H;
return(H=N.data())==null?void 0:H.heading}})),_.c("div",{class:"ytAlertBannerViewModelBody"},_.c(_.mD,{text:function(){var H;
return(H=N.data())==null?void 0:H.body}})))),_.c(_.kY,{data:function(){var H;
return(H=N.data())==null?void 0:H.actionButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.c(_.kY,{data:function(){var H;
return(H=N.data())==null?void 0:H.dismissButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var K;((K=N.data())==null?0:K.disableLocalDismissBehavior)||P(!0)}})}}))},"Vd");_.qu(_.wQ9,"yt-alert-banner-view-model",{props:{data:_.kg,fullbleed:_.kg,narrow:_.kg,isInRichGrid:_.kg,className:_.kg}});var Nob;_.W3=_.A(function(N){return _.c("basic-content-view-model",{class:_.KU("ytBasicContentViewModelHost",_.$q(N.className))},_.c(_.W,{cond:function(){return N.data().headline},
then:function(b){return _.c("div",{class:"ytBasicContentViewModelHeadline"},_.c(_.mD,{text:b}))}}),_.c(_.zj,{each:function(){return N.data().paragraphs||[]},
keyBy:"INDEX"},function(b){return _.c("div",{class:"ytBasicContentViewModelParagraph"},_.c(_.W,{cond:function(){var S=b();return!!(S.header||S.customHeader||S.headline)},
then:function(){return _.c(Nob,{paragraph:b})}}),_.c(_.W,{cond:function(){return b().asset||b().text},
then:function(){return _.c("div",{class:"ytBasicContentViewModelParagraphContent"},_.c(_.W,{cond:function(){return b().asset},
then:function(S){return _.c("div",{class:"ytBasicContentViewModelParagraphAsset"},_.c(_.kY,{data:S},{contentPreviewImageViewModel:_.ZU}))}}),_.c(_.W,{cond:function(){return b().text},
then:function(S){return _.c("div",{class:"ytBasicContentViewModelParagraphText"},_.c(_.mD,{text:S}))}}))}}))}))},"Wd");
Nob=_.A(function(N){var b=N.paragraph;return _.c(_.nM,null,_.c(_.W,{cond:function(){return b().headline},
then:function(S){return _.c(_.mD,{text:S,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.c(_.kY,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(S){return _.c(_.V5,{data:S.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Xd");_.bI9=_.A(function(N){function b(){var k,M;a((M=(k=H)==null?void 0:k.isKeyBoardInUse())!=null?M:!1)}
function S(){a(!1)}
function P(){var k;return G()?(k=N.focusedClassName)==null?void 0:k.call(N):""}
var H=_.aN().resolve(_.cq(_.QJ)),K=_.O(_.QF(!1,void 0,"SgkTXc")),C=K.next().value;K=K.next().value;var G=C,a=K,R=function(){var k,M;return((k=N.toggleable)==null?0:k.call(N))?(M=N.toggled)==null?void 0:M.call(N):void 0},n=_.Ob(function(k){var M,l=(M=N.command)==null?void 0:M.call(N);
l&&_.aN().resolve(_.Wq).resolveCommand(l);var u;(u=N.onClick)==null||u.call(N,k)}),d=_.Ob(b),m=_.Ob(S);
return _.c(_.W,{cond:function(){var k;if(k=N.command){k=N.command();k=Rcb(k);var M=k.href;k=!(!k.navigatingCommand||!M)}return k},
then:function(){return _.c(_.xg,Object.assign({},{command:N.command,style:N.style,ariaDescribedby:N.ariaDescribedby,ariaHidden:N.ariaHidden,ariaLabel:N.ariaLabel,ariaLabelledby:N.ariaLabelledby,ariaSelected:N.ariaSelected,disabled:N.disabled,dir:N.dir,tabIndex:N.tabIndex,target:N.target,title:N.title,onClick:N.onClick},{className:_.KU("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",N.className,function(){return P()}),
onFocusin:b,onFocusout:S,ariaCurrent:function(){var k,M;return(M=(k=N.ariaCurrent)==null?void 0:k.call(N))!=null?M:R()}}),N.children)},
else:function(){return _.c("button",{"on:click":n,"on:focusin":d,"on:focusout":m,class:_.KU("ytButtonOrAnchorHost","ytButtonOrAnchorButton",N.className,function(){return P()}),
style:N.style,"aria-describedby":N.ariaDescribedby,"aria-hidden":N.ariaHidden,"aria-label":N.ariaLabel,"aria-labelledby":N.ariaLabelledby,"aria-pressed":R,dir:N.dir,disabled:N.disabled,tabindex:N.tabIndex,title:N.title},N.children)}})},"Yd");var SiN=_.A(function(N){N=_.h_(N,{disabled:!1});var b=N.active,S=N.disabled;N={};N=_.KU("ytSwitchShapeTrack",(N.ytSwitchShapeTrackActive=function(){return b()},N.ytSwitchShapeTrackDisabled=function(){return S()},N));
var P={};P=_.KU("ytSwitchShapeKnob",(P.ytSwitchShapeKnobActive=function(){return b()},P));
return _.c("switch-shape",{class:"ytSwitchShapeHost"},_.c("div",{class:N}),_.c("div",{class:P}))},"Zd");var PR4=_.A(function(N){var b=_.h_(N,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),S=b.data;N=b.className;var P=b.handleOnTapEventInParent,H=b.parentActive,K=b.onTap;b=_.O(_.qI(function(){var m;return(m=H())!=null?m:S().switchedOnByDefault||!1}));
var C=b.next().value,G=b.next().value,a=function(){return S().isDisabled},R=_.Ct("button");
b=_.Ob(function(m){return m.key==="Enter"?(m.preventDefault(),R.value.click(),!1):!0});
var n=_.Ob(function(m){if(S().handleOnTapEventInParent||P())return!0;if(a())return!1;if(K)return K(m),!0;kh9(S(),C(),m);G(!C());return!1}),d={};
d=_.KU("ytSwitchButtonViewModelButton",(d.ytSwitchButtonViewModelTappable=function(){return!a()},d));
return _.c("switch-button-view-model",{class:_.KU("ytSwitchButtonViewModelHost",N)},_.c("button",{el:R,class:d,"on:click":n,"on:keydown":b,"aria-label":function(){return C()?S().a11yLabelSwitchedOn:S().a11yLabelSwitchedOff},
"aria-checked":C,"aria-disabled":a,role:"switch"},_.c(SiN,{active:C,disabled:a})))},"$d");var HIc=_.A(function(N){var b=N.data;var S=N.isLeading;var P=N.hideSelectionTextChevron;var H=N.isToggled;var K=N.shouldNotFillIcon;var C=function(){if(S())var d=b().leadingImage;else{var m;d=(m=b().trailingImage)!=null?m:_.EW(b().themedTrailingImage)}return d},G=function(){a:switch(b().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var d="expand_more";
break a;default:d="chevron_right"}return d};
N={};var a=_.KU("yt-list-item-view-model__image-container",(N["yt-list-item-view-model__leading"]=S,N["yt-list-item-view-model__trailing"]=function(){return!S()},N)),R=_.KU("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
N={};var n=_.KU("yt-list-item-view-model__accessory",(N["yt-list-item-view-model__leading"]=S,N["yt-list-item-view-model__trailing"]=function(){return!S()},N));
return _.c(_.W,{cond:function(){var d=b(),m=S();return!!(m&&(d.leadingImage||d.leadingAccessory)||!m&&(d.trailingImage||d.trailingButton||d.trailingButtons||d.selectionText||d.themedTrailingImage||d.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.c(_.nM,null,_.c(_.W,{cond:C,then:function(d){return _.c("div",{class:a,"aria-hidden":"true"},_.c(_.gG,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var m=(S()?b().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?S()?MBe(b().leadingIconAccessorySize):MBe(b().trailingIconAccessorySize):void 0;return m},
className:R,isToggled:function(){return!(K==null?0:K())&&(H==null?void 0:H())}}))}}),_.c(_.W,{cond:function(){return S()&&b().leadingAccessory},
then:function(){return _.c("div",{class:a},_.c(_.kY,{data:function(){return b().leadingAccessory}},{avatarViewModel:function(d){return _.c(_.CH,{data:d.data,
avatarButtonCustomClassName:R})},
collectionThumbnailViewModel:function(d){return _.c(d3z,{data:d.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.c(_.W,{cond:function(){return!S()&&b().trailingButton},
then:function(){return _.c("div",{class:"yt-list-item-view-model__button-container"},_.c(_.kY,{data:function(){return b().trailingButton}},{buttonViewModel:function(d){return _.c(_.j$,{data:d.data,
className:n})}}))}}),_.c(_.W,{cond:function(){var d;
return!S()&&((d=b().trailingButtons)==null?void 0:d.buttons)},
then:function(){return _.c("div",{class:"yt-list-item-view-model__button-container"},_.c(_.kY,{data:function(){var d;return(d=b().trailingButtons)==null?void 0:d.buttons}},{buttonViewModel:function(d){return _.c(_.j$,{data:d.data,
className:n})},
accountLinkButtonViewModel:function(d){return _.c(Phz,{data:d.data,className:n})},
switchButtonViewModel:function(d){return _.c(PR4,{data:d.data,className:n})},
subscribeButtonViewModel:function(d){return _.c(_.CW,{data:d.data,isOverlay:!1,animateWidth:!1,className:n})},
toggleButtonViewModel:function(d){return _.c(_.Hc,{data:d.data,className:n})}}))}}),_.c(_.W,{cond:function(){return!S()&&!!b().selectionText},
then:function(){return _.c(_.nM,null,_.c(_.mD,{text:function(){return b().selectionText},
className:_.KU("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.c(_.W,{cond:function(){return!(P==null?0:P())},
then:function(){return _.c(_.cX,{icon:G,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.c(_.W,{cond:function(){return!S()&&b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.c("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"ae");var s49=_.A(function(N){var b=N.data;return _.c(_.W,{cond:function(){return b().title||b().subtitle},
then:function(){return _.c("div",{class:"yt-list-item-view-model__text-wrapper"},_.c(_.W,{cond:function(){return b().title},
then:function(S){return _.c("div",{class:"yt-list-item-view-model__title-wrapper"},_.c(_.mD,{text:S,className:"yt-list-item-view-model__title"}))}}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(S){return _.c(_.mD,{text:S,className:"yt-list-item-view-model__subtitle"})}}))}})},"be");var KZd=_.A(function(N){var b=N.data;var S=N.hideSelectionTextChevron;var P=N.TrailingAccessory;var H=N.isToggled;var K=N.disabled;var C=N.isSelectItem;var G=N.isCompact;var a=N.inPopup;var R=N.disableHorizontalPadding;var n=N.isTappableWithoutSelect;var d=N.useButtonOrAnchor;var m=N.onTap;var k=N.shouldNotFillIcon;var M=function(){return _.c(s49,{data:b,onTap:m,useButtonOrAnchor:d,isTappableWithoutSelect:n,isToggled:H})};
N={};return _.c("div",{class:_.KU("yt-list-item-view-model__label",(N["yt-list-item-view-model__container"]=function(){return!(C==null?0:C())},N["yt-list-item-view-model__container--disabled"]=function(){return!!b().isDisabled||!(K==null||!K())},N["yt-list-item-view-model__container--has-subtitle"]=function(){return!!b().subtitle},N["yt-list-item-view-model__container--compact"]=G,N["yt-list-item-view-model__container--tappable"]=n,N["yt-list-item-view-model__container--in-popup"]=a,N["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(R==null?void 0:R())&&!(C==null?0:C())},N))},_.c(HIc,{data:b,
isLeading:!0,hideSelectionTextChevron:S,isToggled:H,shouldNotFillIcon:k}),_.c(_.W,{cond:function(){return(d==null?void 0:d())&&(n==null?void 0:n())},
then:function(){return _.c(_.bI9,{command:function(){return _.xY(b().rendererContext)},
onClick:m,className:"yt-list-item-view-model__button-or-anchor",toggleable:H!==void 0,toggled:H},_.c(M,null))},
else:function(){return _.c(M,null)}}),_.c(_.W,{cond:function(){return!!P},
then:function(){return _.c("div",{class:"yt-list-item-view-model__trailing"},P&&_.c(P,null))},
else:function(){return _.c(HIc,{data:b,isLeading:!1,hideSelectionTextChevron:S,isToggled:H,shouldNotFillIcon:k})}}))},"ce");var OIz=_.A(function(N){var b=_.h_(N,{checked:!1,disabled:!1});N=b.name;var S=b.onChange,P=b.onClick,H=b.checked,K=b.labelRenderable,C=b.hasLeadingLabel,G=b.labelClass,a=b.isCompact,R=b.selectElementClass,n=b.disableHorizontalPadding;b=b.disabled;var d="checkbox"+_.ey(_.c3),m=_.Ob(function(l){P==null||P(l);return!1}),k=_.Ob(function(l){S==null||S(l);
return!1}),M={};
return _.c("checkbox-shape",null,_.c("label",{class:_.KU("ytCheckboxShapeHost",G,(M.ytCheckboxShapeHostCompact=a,M.ytCheckboxShapeDisableHorizontalPadding=n,M))},_.c("input",{class:"ytCheckboxShapeInput",id:d,checked:H,name:N,type:"checkbox",disabled:b,"prop:checked":H,"on:change":k,"on:click":m}),_.c(_.W,{cond:function(){return!(C==null?0:C())},
then:function(){return _.c(vd4,{isLeading:!0,selectElementClass:R})}}),_.c(_.W,{cond:function(){return!!K},
then:function(){return _.c("div",{class:"ytCheckboxShapeLabel"},K==null?void 0:K())}}),_.c(_.W,{cond:C,
then:function(){return _.c(vd4,{isLeading:!1,selectElementClass:R})}})))},"de");
OIz.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var vd4=_.A(function(N){var b=N.selectElementClass;N={};return _.c("div",{class:_.KU("ytCheckboxShapeCheckbox",b,(N.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(b==null?0:b())},N)),
"aria-hidden":"true"},_.c(_.cX,{icon:_.T("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.c(_.cX,{icon:_.T("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ee");_.nj=_.A(function(N){var b=N.name;var S=N.onChange;var P=N.onClick;var H=N.checked;var K=N.labelRenderable;var C=N.useCheckIcon;var G=N.hasLeadingLabel;var a=N.labelClass;var R=N.isCompact;var n=N.selectElementClass;var d=N.ariaLabel;var m=N.className;N=N.disabled;var k="radio"+_.ey(_.c3),M=_.Ct("input"),l=_.T("enable_ios_webview_radio_button_responsiveness"),u=_.Ob(function(e){M.value.checked=!(H==null||!H());S==null||S(e);return!1}),J=_.Ob(function(e){P==null||P(e);
return!1}),Z=_.O(_.QF(!1,void 0,"Ucg5gd")),D=Z.next().value,Y=Z.next().value;
Z=_.Ob(function(){var e;((e=_.aN().resolve(_.cq(_.QJ)))==null?0:e.isKeyBoardInUse())&&Y(!0)});
var V=_.Ob(function(){Y(!1)}),g={};
return _.c("radio-shape",{class:_.KU("yt-radio-shape",m)},_.c("input",{el:M,class:"yt-radio-shape__input",id:k,"prop:checked":H,name:b,type:"radio",disabled:N,"on:change":u,"on:click":J,"aria-label":d,"on:focusin":Z,"on:focusout":V}),_.c("label",{class:_.KU("yt-radio-shape__label-container",a,(g["yt-radio-shape--compact"]=R,g["yt-radio-shape__label-container--keyboard-focused"]=D,g)),for:k},_.c(_.W,{cond:function(){return!(G==null?0:G())},
then:function(){return _.c(CRV,{checked:H,useCheckIcon:C,isLeading:!0,selectElementClass:n,usePassthrough:l})}}),_.c(_.W,{cond:function(){return!!K},
then:function(){var e={};return _.c("div",{class:_.KU("yt-radio-shape__label",(e["yt-radio-shape--event-passthrough"]=l,e)),"aria-hidden":function(){return(d==null?0:d())?"true":"false"}},K==null?void 0:K())}}),_.c(_.W,{cond:G,
then:function(){return _.c(CRV,{checked:H,useCheckIcon:C,isLeading:!1,selectElementClass:n,usePassthrough:l})}})))},"fe");
_.nj.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var CRV=_.A(function(N){var b=N.useCheckIcon;var S=N.selectElementClass;N=N.usePassthrough;var P=function(){return(b==null?0:b())?"CHECK":_.T("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},H={};
return _.c("div",{class:_.KU("yt-radio-shape__radio",S,(H["yt-radio-shape__radio--check-icon"]=b,H["yt-radio-shape__radio--radio-default-style"]=function(){return!(S==null?0:S())},H["yt-radio-shape--event-passthrough"]=N,H)),
"aria-hidden":"true"},_.c(_.cX,{icon:P}),_.c(_.cX,{icon:P,active:function(){return!(b==null?0:b())}}))},"ge");_.di=_.A(function(N){var b=N.data;var S=N.isMenuItem;var P=N.isCompact;var H=N.onTap;var K=N.trailingAccessory;var C=N.hideSelectionTextChevron;var G=N.disabled;var a=N.inPopup;var R=N.disableHorizontalPadding;var n=N.isOverlay;var d=N.isToggled;var m=N.ariaLabel;var k=N.ariaPressed;var M=N.shouldNotFillIcon;var l=!_.T("web_enable_killswitch_for_selectable_list_item_on_tap_fix");N=!_.T("web_enable_killswitch_for_skip_child_tags");var u=_.nU(function(S9){return FEs(b(),S9)}),J=function(){return(R==
null?void 0:R())||b().disableHorizontalPadding},Z=function(){return _.T("enable_web_shorts_captions_language_command")||_.T("web_shorts_audio_track_picker")||b().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},D=function(){return Z()?Object.assign({},b(),u().data):b()},Y=function(){return!!D().isDisabled||!(G==null||!G())},V=_.lkO(function(){return D().rendererContext}),g=function(){return!(D().isSelected===void 0||!D().selectionStyle||D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
e=function(){return(_.o2(D().rendererContext)||H)&&!g()},se={},Ca=_.KU("yt-list-item-view-model__container",(se["yt-list-item-view-model__container--tappable"]=function(){return _.o2(D().rendererContext)||g()},se["yt-list-item-view-model__container--compact"]=P,se["yt-list-item-view-model__container--in-popup"]=a,se["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(J==null?void 0:J())&&g()},se)),ML=function(){return D().leadingImage||D().leadingAccessory},na=_.KU("yt-list-item-view-model__image-container",
function(){return ML()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
se=_.BNo();var To=_.O(_.QF(!1,void 0,"D1Nwsd")),jp=To.next().value,Xf=To.next().value,YO=function(){return _.c(KZd,{data:D,hideSelectionTextChevron:C,TrailingAccessory:K,isToggled:d,disabled:G,isSelectItem:g,isCompact:P,inPopup:a,disableHorizontalPadding:J,isTappableWithoutSelect:e,useButtonOrAnchor:Wk,onTap:H,shouldNotFillIcon:M})},Wk=_.T("web_button_or_anchor_list_item");
To={};return _.c("yt-list-item-view-model",{el:_.VN(_.iK(function(){return Y()?void 0:D().rendererContext},void 0,void 0,Wk?["A".toString(),
"BUTTON".toString()]:[]),Bhf(function(S9){if(!Y()){var Vu;if(Vu=l)Vu=D().selectionStyle,Vu=Vu==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||Vu==="LIST_ITEM_SELECTION_STYLE_RADIO"||Vu==="LIST_ITEM_SELECTION_STYLE_DEFAULT";Vu||H==null||H(S9)}},N?["A".toString(),
"BUTTON".toString()]:[]),Z0e(function(){return e==null?void 0:e()},{focusin:function(){var S9;
((S9=_.aN().resolve(_.cq(_.QJ)))==null?0:S9.isKeyBoardInUse())&&Xf(!0)},
focusout:function(){Xf(!1)}})),
class:_.KU("yt-list-item-view-model",(To["yt-list-item-view-model--is-overlay"]=n,To["yt-list-item-view-model--keyboard-focused"]=jp,To["yt-list-item-view-model--hidden"]=function(){return Z()?u().isHidden:!1},To)),
role:function(){return(S==null?0:S())?"menuitem":"listitem"},
tabindex:function(){var S9=e();S9=Wk?void 0:H||S9?0:void 0;return S9},
"on:keydown":se,"aria-label":function(){var S9;return(m==null?void 0:m())||((S9=V())==null?void 0:S9.label)},
"aria-pressed":k},_.c(_.W,{cond:g,then:function(){return _.c(_.Al,null,_.c(_.ZH,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.c(OIz,{labelRenderable:YO,
isCompact:P,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!ML()},
labelClass:Ca,selectElementClass:na,disableHorizontalPadding:J,onClick:l?H:void 0,disabled:Y})}),_.c(_.ZH,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.c(_.nj,{labelRenderable:YO,
isCompact:P,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!ML()},
labelClass:Ca,selectElementClass:na,onClick:l?H:void 0,disabled:Y})}),_.c(_.ZH,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.c(_.nj,{labelRenderable:YO,
isCompact:P,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!ML()},
labelClass:Ca,selectElementClass:na,useCheckIcon:!0,onClick:l?H:void 0,disabled:Y})}),_.c(_.j_,null,YO))},
else:YO}))},"he");
_.di.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.mX=_.A(function(N){var b=_.O(_.tI({canHaveZeroSize:!1})),S=b.next().value;b=b.next().value;var P=function(){return zHb(S.width(),N.data().responsiveContainerConfiguration)||i4p(S.width(),N.data().linearLayoutContainerConfiguration)};
return _.c("yt-linear-layout-view-model",{el:_.VN(b),class:"ytLinearLayoutViewModelHost"},_.c("div",{class:_.KU("ytLinearLayoutViewModelContainer",function(){a:switch(N.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var H="ytLinearLayoutViewModelHorizontal";break a;default:H="ytLinearLayoutViewModelVertical"}return H},function(){var H=N.data().linearLayoutContainerConfiguration;
return H?[QZf(H.flexDirection),xgs(H.justifyContent),o2u(H.alignItems)].join(" "):""}),
style:function(){var H;var K=((H=P())==null?void 0:H.containerStyles)||{};return _.r5(K)()}},_.c(_.kY,{data:function(){return N.data().items},
wrapper:function(H,K,C){return _.c("div",{style:function(){var G=C(),a;if((a=P())==null)G=void 0;else{var R=a.itemStyles,n=G===0,d,m;var k=(m=(d=N.data().items)==null?void 0:d.length)!=null?m:0;G=R.call(a,n,G===k-1)}return _.r5(G||{})()}},H())}},{lockupViewModel:function(H){return _.c(_.Y3,{data:H.data,
containerLayoutConfig:function(){var K;return(K=P())==null?void 0:K.containerLayoutConfig}})},
basicContentViewModel:_.W3,buttonViewModel:_.j$,linearLayoutViewModel:_.mX,thumbnailViewModel:_.o8,descriptionPreviewViewModel:_.Dr,listItemViewModel:_.di,sectionHeaderViewModel:_.V5})))},"ie");_.qu(_.mX,"yt-linear-layout-view-model",{props:{data:_.kg}});_.qu(_.gH,"chips-shelf-view-model",{props:{data:_.kg,callback:_.er,selectionBehavior:_.kg,disableChipsScrollAnimation:_.kg,nextButtonStyle:_.kg}});_.qu(_.A(function(N){return _.c("yt-comment-filter-context-view-model",{class:_.KU("ytCommentFilterContextHost",N.className)},_.c(_.mD,{text:function(){return N.data().text}}))},"je"),"yt-comment-filter-context-view-model",{props:{data:_.kg,
className:_.er}});_.GTc=_.A(function(N){var b=N.data;var S=N.onTap;var P=N.onSwitch;var H=N.overrideDisabled;N=N.disableHorizontalPadding;var K=_.O(_.qI(function(){var m;return((m=tBI(n()))==null?void 0:m.switchedOnByDefault)||!1})),C=K.next().value,G=K.next().value;
K=_.O(_.QF(!1,void 0,"V0hCrd"));var a=K.next().value,R=K.next().value,n=function(){var m;if(!(m=b().switchButton)){var k=b();m=H==null?void 0:H();k={switchOnCommand:k.switchOnCommand,switchOffCommand:k.switchOffCommand,switchedOnByDefault:k.switchedOnByDefault,isDisabled:k.isDisabled,a11yLabelSwitchedOn:k.a11yLabelSwitchedOn,a11yLabelSwitchedOff:k.a11yLabelSwitchedOff};m!==void 0&&(k.isDisabled=m);m={switchButtonViewModel:k}}return m},d=function(m){var k=tBI(n());
!k||k.isDisabled||b().ignoreTapUntilCommandCompletes&&a()||(S==null||S(m),kh9(k,C(),m,b().ignoreTapUntilCommandCompletes,R),G(!C()),P==null||P(C()))};
return _.c("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.c(_.di,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}},
onTap:d,isToggled:C,shouldNotFillIcon:!0,trailingAccessory:function(){return _.c(_.kY,{data:n},{switchButtonViewModel:function(m){return _.c(PR4,{data:m.data,parentActive:C,onTap:d})}})},
disableHorizontalPadding:N}))},"ke");var rkz=_.A(function(N){var b=_.O(_.qI(function(){var H,K;return!!((H=N.data())==null?0:(K=H.initialState)==null?0:K.isToggled)})),S=b.next().value,P=b.next().value;
return _.c("toggleable-list-item-view-model",{el:_.VN(_.iK(function(){return N.data().rendererContext},{onTap:function(H,K){K();
P(!S())}})),
class:_.KU("toggleableListItemViewModelHost",N.className)},_.c(_.W,{cond:function(){if(S()){var H=N.data().toggledListItem;H=_.t(H,_.F$)}else H=N.data().defaultListItem,H=_.t(H,_.F$);return H},
then:function(H){return _.c(_.di,{data:H,isToggled:S,ariaLabel:function(){var K=S()?N.data().toggledListItem:N.data().defaultListItem,C;K=(C=_.t(K,_.F$))==null?void 0:C.rendererContext;var G;return(G=_.t(K,_.Mv))==null?void 0:G.label},
ariaPressed:function(){return S()}})}}))},"le");var ckz=_.cN("DOWNLOAD",{},"Download"),a19=_.cN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Rj9=_.cN("RETRY",{},"Retry"),WZO=_.cN("PAUSE_DOWNLOADING",{},"Pause downloading"),ndO=_.cN("RESUME_DOWNLOAD",{},"Resume download"),AWf={text:ckz,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Fv={text:a19,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},pjs={text:Rj9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
XjY={text:WZO,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},E2p={text:ndO,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var d04=_.A(function(N){var b=function(){var G=N.data();G=_.xY(G.rendererContext);var a;return(a=_.t(G,_.a2))==null?void 0:a.videoId},S=_.nU(function(G){var a=b(),R=IkO(N.data());
return a?_.UI(G,a):R?_.Zb(G,R):"TRANSFER_STATE_UNKNOWN"}),P=_.nf(_.sHf,b),H=_.nU(function(G){return _.qQu(G,b(),IkO(N.data()))}),K=function(){return yWE(S(),P(),_.xY(N.data().rendererContext),!!IkO(N.data()))},C=function(){return H()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.c("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:C},_.c(_.W,{cond:function(){return!C()},
then:function(){return _.c(_.W,{cond:K,then:function(G){return _.c(_.zj,{each:G},function(a){return _.c(_.di,{data:a,isCompact:N.isCompact,isMenuItem:N.isMenuItem,inPopup:N.inPopup,disableHorizontalPadding:N.disableHorizontalPadding})})}})}}))},"me");
d04.idomCompat=!0;_.m0O=_.A(function(N){var b=N.data;var S=N.isCompact;var P=N.hideSelectionTextChevron;var H=N.inPopup;var K=N.isOverlay;var C=N.disableHorizontalPadding;var G=function(){return DgU(b())&&(H==null?void 0:H())},a=_.T("web_list_view_model_listbox_killswitch")?"menu":"listbox";
N=_.Ob(function(n){if(H!=null&&H()&&_.T("web_enable_arrow_key_navigation_in_dropdown")){var d=_.vOO(n.currentTarget),m=d.length;if(m!==0){var k=Array.prototype.indexOf.call(d,document.activeElement);switch(n.key){case "ArrowDown":n.preventDefault();var M;(M=d[(k+1)%m])==null||M.focus();break;case "ArrowUp":n.preventDefault();var l;(l=d[k===-1?m-1:(k-1+m)%m])==null||l.focus()}}}});
var R={};return _.c("yt-list-view-model",{class:_.KU("ytListViewModelHost",(R.ytListViewModelHostKaiosSpatNav=p9Y&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",R)),role:function(){return G()?a:"list"},
style:_.r5({"max-height":function(){var n,d=(n=b())==null?void 0:n.visibleElementCount;if(d)return(d+.5)*40+"px"}}),
"on:keydown":N},_.c(_.kY,{data:function(){return b().listItems}},{listItemViewModel:function(n){return _.c(_.di,{data:n.data,
isMenuItem:G,isCompact:S,hideSelectionTextChevron:P,inPopup:H,isOverlay:K,disableHorizontalPadding:C})},
toggleableListItemViewModel:function(n){return _.c(rkz,{data:n.data})},
downloadListItemViewModel:function(n){return _.c(d04,{data:n.data,isMenuItem:G,isCompact:S,inPopup:H,disableHorizontalPadding:C})},
switchListItemViewModel:function(n){return _.c(_.GTc,{data:n.data,disableHorizontalPadding:C})}}))},"ne");
_.m0O.idomCompat=!0;var kT4=_.A(function(N){var b=N.data;var S=N.isOverlay;N={};return _.c("yt-course-perks-view-model",{class:_.KU("ytwCoursePerksViewModelHost",(N.ytwCoursePerksViewModelHostOverlay=S,N))},_.c("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",null,_.c(_.W,{cond:function(){return b().perks},
then:function(P){return _.c(_.m0O,{data:function(){return{listItems:P()}},
isCompact:!0,isOverlay:S})}})))},"oe");_.qu(kT4,"yt-course-perks-view-model",{props:{data:_.er,isOverlay:_.er}});_.qu(_.A(function(N){var b=N.data;return _.c("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.c("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.c(_.mD,{text:function(){return b().progressSummary}})),_.c("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.c("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.r5({width:function(){return b().progressPercentage*100+"%"}})})))},"pe"),"yt-course-progress-view-model",{props:{data:_.kg}});var ToV=_.A(function(N){var b={};return _.c("yt-progress-view-model",{class:_.KU("ytwProgressViewModelHost",(b.ytwProgressViewModelHostOverlay=_.$q(N.isOverlay,!1),b))},_.c(_.W,{cond:function(){return N.data().progressSummary},
then:function(S){return _.c("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.c(_.mD,{text:S}))}}),_.c("div",{class:"ytwProgressViewModelHostProgressContainer"},_.c(_.W,{cond:function(){return N.data().leadingLabel},
then:function(S){return _.c("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.c(_.mD,{text:S}))}}),_.c("div",{class:"ytwProgressViewModelHostProgressBar"},_.c("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(N.data().progressPercentage||0)*100+"%"}}))))},"qe");var kF=_.A(function(N){var b=N.starNumber;var S=N.data;var P=function(){var H;return((H=S())==null?void 0:H.rating)||0};
return _.c(_.W,{cond:function(){return b()},
then:function(H){return _.c(_.Al,null,_.c(_.ZH,{when:function(){return P()>=H()-.25}},function(){return _.c("div",{class:"ytStarRatingViewModelHostStar"},_.c(_.cX,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.c(_.ZH,{when:function(){return P()>=H()-.75}},function(){return _.c("div",{class:"ytStarRatingViewModelHostStar"},_.c(_.cX,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.c(_.j_,null,function(){return _.c("div",{class:"ytStarRatingViewModelHostStar"},_.c(_.cX,{icon:"STAR",
size:function(){return 24}}))}))}})},"re"),tSZ=_.A(function(N){N=N.data;
return _.c("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.c(kF,{starNumber:1,data:N}),_.c(kF,{starNumber:2,data:N}),_.c(kF,{starNumber:3,data:N}),_.c(kF,{starNumber:4,data:N}),_.c(kF,{starNumber:5,data:N}))},"se");_.qu(_.A(function(N){var b=_.h_(N,{}).data;return _.c("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.c("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.c(_.mD,{text:function(){var S;return(S=b())==null?void 0:S.title}})),_.c("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.c(_.W,{cond:function(){return b().starProgressViewModels},
then:function(S){return _.c("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.c(_.kY,{data:S},{progressViewModel:ToV}))}}),_.c("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.c("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.c(_.mD,{text:function(){var S;
return(S=b())==null?void 0:S.averageRatingLabel}})),_.c(_.W,{cond:function(){return b().zeroStateText},
then:function(S){return _.c("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.c(_.mD,{text:S}))}}),_.c(_.W,{cond:function(){return b().starRatingViewModel},
then:function(S){return _.c("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.c(_.kY,{data:S},{starRatingViewModel:tSZ}))}}),_.c("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.c(_.mD,{text:function(){var S;
return(S=b())==null?void 0:S.totalRatingsCountLabel}})))))},"te"),"yt-course-ratings-view-model",{props:{data:_.er}});var MSO;MSO={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.FZl=_.A(function(N){var b=_.Ct("yt-learning-journey-loader-view-model"),S=_.rx();_.pM(function(){requestAnimationFrame(function(){var H;(H=S.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var K;(K=N.onLottieLoaded)==null||K.call(N)})});
var P=N.data().browseEndpoint;P&&_.AM(P)});
return _.c("yt-learning-journey-loader-view-model",{class:_.KU("learningJourneyLoaderViewModelHost",N.className),"data-target-id":function(){return N.data().targetId||""},
el:b},_.c(_.Yg,{className:_.KU("learningJourneyLoaderViewModelLoader",N.className),animationName:function(){return MSO.animationConfig.name},
data:MSO,animationRef:S}))},"ve");_.qu(_.FZl,"yt-learning-journey-loader-view-model",{props:{data:_.kg,className:_.er,onLottieLoaded:_.er}});var Bo9=_.A(function(N){var b=function(){return N.data()},S=function(){return!!_.Lo(_.BP(b())).optionColor},P=_.O(_.QF(-1,void 0,"gXOYR")),H=P.next().value,K=P.next().value,C=function(d){return H()===d},G=function(d){return b().correctAnswerIndex===d},a=function(){return H()!==-1};
P=_.O(_.QF("",void 0,"BFwDQb"));var R=P.next().value,n=P.next().value;return _.c("learning-journey-quiz-view-model",{class:_.KU("learningQuizComponentHost","learningJourneyQuizYoututorHost",N.className),style:_.r5({background:function(){return _.Lo(_.BP(b())).backgroundColor}})},_.c("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},R),_.c("div",{class:"learningQuizComponentQuizContainer"},_.c("div",{class:"learningQuizComponentQuiz"},_.c("div",{class:"learningQuizComponentQuizContent"},_.c(_.W,{cond:function(){return!!b().aiGeneratedQuizLabel},
then:function(){return _.c("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.c(_.mD,{text:function(){return b().aiGeneratedQuizLabel}}))}}),_.c("div",{class:"learningQuizComponentQuizHeader",
style:_.r5({"align-items":function(){return b().overflowMenu?"start":"center"}})},_.c("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.r5({"min-height":function(){return b().overflowMenu?"48px":"26px"}})},_.c("div",{class:"learningJourneyQuizYoututorText",
style:_.r5({color:function(){return _.Lo(_.BP(b())).primaryTextColor}})},_.c(_.mD,{text:function(){return b().questionHeaderText}})))),_.c("div",{class:"learningQuizComponentQuizSubheader",
style:_.r5({color:function(){return _.Lo(_.BP(b())).secondaryTextColor}})},_.c(_.mD,{text:function(){var d=b();
return a()?d.explanationText:d.questionSubheaderText}}))),_.c("div",{role:"group",
class:_.KU("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.c(_.zj,{each:function(){return b().optionsData||[]}},function(d,m){var k={};
return _.c("button",{class:_.KU("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(k.learningQuizComponentQuizHover=function(){return!a()},k.learningQuizComponentQuizOptionWithCustomColor=S,k.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return a()&&G(m())},k.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return H()!==b().correctAnswerIndex&&C(m())},k.learningQuizComponentQuizIncorrectShake=
function(){return H()!==b().correctAnswerIndex&&C(m())},k)),
"on:click":_.Ob(function(){_.A8(_.dG(),{data:d});if(a())return!1;K(m());var M,l;n(G(m())?((M=b().successTitle)==null?void 0:M.content)||"":((l=b().failureTitle)==null?void 0:l.content)||"");return!1}),
style:_.r5({background:"transparent"}),"aria-description":function(){var M,l;return a()?G(m())?(M=b().successTitle)==null?void 0:M.content:(l=b().failureTitle)==null?void 0:l.content:""},
"aria-disabled":a},_.c("div",{class:"learningQuizComponentQuizOptionContainer"},_.c(_.mD,{text:d.optionText}),_.c(_.W,{cond:function(){var M=m();return a()&&(C(M)||G(M))},
then:function(){var M={};return _.c(_.cX,{className:_.KU("learningJourneyQuizYoututorOptionIcon",(M.learningQuizComponentQuizPulse=function(){return H()===b().correctAnswerIndex&&G(m())},M)),
size:24,icon:function(){return G(m())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.c(_.W,{cond:a,
then:function(){return _.c("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.c("div",{class:"learningJourneyQuizYoututorExplanationText"},_.c(_.mD,{text:function(){return b().explanationHeaderText}})),_.c(_.mD,{text:function(){return b().optionsData[H()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"we");
Bo9.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var $gU=function(){},l1Z;
(l1Z=window.requestIdleCallback)==null||l1Z.bind(window);var g2u=new Set,VBu=null;var LZ4;_.f1c=_.A(function(N){var b=null,S=null,P=null,H=function(){return N.data()},K=function(){return _.Lo(_.BP(H()))},C=function(){return!!K().optionColor},G=_.O(_.QF(-1,void 0,"H2gnQb")),a=G.next().value,R=G.next().value,n=function(Y){return a()===Y},d=function(Y){return H().correctAnswerIndex===Y},m=function(){return a()!==-1},k=function(){return a()===H().correctAnswerIndex},M=function(){var Y=H(),V=m(),g=k();
return V?g?Y.successTitle:Y.failureTitle:Y.questionHeaderText},l=function(){var Y=m(),V=k();
return Y?V?264685:264684:264683},u=function(){var Y=H();
return m()?Y.explanationText:Y.questionSubheaderText},J=function(){return!!H().video},Z=function(Y){return k()&&d(Y)},D=_.Ob(function(){R(-1);
return!1});
return _.c(_.W,{cond:function(){return H().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.c(Bo9,{data:function(){return H()}})},
else:function(){return _.c("learning-journey-quiz-view-model",{class:_.KU("learningQuizComponentHost",N.className),style:_.r5({background:function(){return K().backgroundColor}})},_.c(_.W,{cond:J,
then:function(){return _.c("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.r5({background:function(){return K().videoBackgroundColor}})},_.c(_.kY,{data:function(){return H().video}},{lockupViewModel:function(Y){return _.c(_.Y3,{data:Y.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.c("div",{class:"learningQuizComponentQuizContainer"},_.c("div",{class:"learningQuizComponentQuiz"},_.c("div",{class:"learningQuizComponentQuizContent"},_.c(_.W,{cond:function(){return!!H().aiGeneratedQuizLabel},
then:function(){return _.c("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.c(_.mD,{text:function(){return H().aiGeneratedQuizLabel}}))}}),_.c("div",{class:"learningQuizComponentQuizHeader",
style:_.r5({"align-items":function(){return H().overflowMenu?"start":"center"}})},_.c("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.r5({"min-height":function(){return H().overflowMenu?"48px":"26px"}})},_.c("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.VN(function(Y){_.fo(l(),Y,b,function(V){b=V})}),
style:_.r5({color:function(){return K().primaryTextColor}}),
"client-ve-type":l},_.c(_.mD,{text:M}))),_.c("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.c(_.W,{cond:m,then:function(){return _.c("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.VN(function(Y){_.fo(264687,Y,S,function(V){S=V})}),
"on:click":D,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.c("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.r5({fill:function(){return K().primaryTextColor}})},_.c("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.c(_.kY,{data:function(){return H().overflowMenu}},{buttonViewModel:function(Y){return _.c(_.j$,{data:Y.data})}}))),_.c("div",{class:"learningQuizComponentQuizSubheader",
el:_.VN(function(Y){_.fo(264688,Y,P,function(V){P=V})}),
style:_.r5({color:function(){return K().secondaryTextColor}}),
"client-ve-type":264688},_.c(_.mD,{text:u}))),_.c("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.c(_.zj,{each:function(){return H().optionsData||[]}},function(Y,V){var g={};
return _.c("button",{class:_.KU("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(g.learningQuizComponentQuizHover=function(){return!m()},g.learningQuizComponentQuizOptionWithCustomColor=C,g.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return Z(V())},g.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!k()&&n(V())},g.learningQuizComponentQuizIncorrectShake=function(){return!k()&&
n(V())},g.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return m()&&!n(V())},g)),
"on:click":_.Ob(function(){_.A8(_.dG(),{data:Y});if(m())return!1;R(V());return!1}),
style:_.r5({background:function(){var e=V();return m()&&n(e)?"":C()?K().optionColor:"transparent"}}),
"aria-disabled":m},_.c("div",{class:"learningQuizComponentQuizOptionContainer"},_.c(_.W,{cond:m,then:function(){return _.c(LZ4,{isOptionCorrect:d,optionIndex:V,isOptionSelectedAndCorrect:Z,colors:K})}}),_.c(_.mD,{text:Y.optionText})))})))))}})},"xe");
LZ4=_.A(function(N){var b={};return _.c("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var S=N.optionIndex();return N.isOptionCorrect(S)?"0 0 24 24":"0 -960 960 960"},
class:_.KU("learningJourneyQuizViewModelQuizOptionIconLeading",(b.learningQuizComponentQuizPulse=function(){return N.isOptionSelectedAndCorrect(N.optionIndex())},b)),
style:_.r5({fill:function(){return N.colors().primaryTextColor}})},_.c("path",{d:function(){var S=N.optionIndex();
return N.isOptionCorrect(S)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"ye");
_.f1c.idomCompat=!0;_.qu(_.f1c,"learning-journey-quiz-view-model",{props:{data:_.kg,className:_.kg}});var uTV=_.A(function(N){var b=_.O((0,_.E29)(function(){var C;return{targetId:(C=N.data().config)==null?void 0:C.suspenseKey,contents:[N.data()]}})).next().value,S=_.aN().resolve(_.Wq),P=function(){var C=b().contents.length>0?b().contents[0]:void 0;
return C==null?void 0:C.config},H=function(){var C;
return(C=P())==null?void 0:C.entityTriggerConfig},K=_.nf(Ivf,function(){var C,G;
return(G=(C=H())==null?void 0:C.entityKey)!=null?G:""});
_.gA(function(){var C,G,a,R=(a=Number((C=H())==null?void 0:(G=C.invalidationTimestamp)==null?void 0:G.seconds))!=null?a:0,n,d,m;if(((m=Number((n=K())==null?void 0:(d=n.lastUpdated)==null?void 0:d.seconds))!=null?m:0)>R){var k;(C=(k=P())==null?void 0:k.continuationCommand)&&S.resolveCommand(C)}},"tC8nKe");
return _.c("yt-suspense-view-model",{class:_.KU("ytSuspenseViewModelHost")},_.c(_.kY,{data:function(){var C;return(C=P())==null?void 0:C.contents}},{lockupViewModel:_.Y3}))},"Ae");var Q49=_.A(function(N){var b=_.h_(N,{palette:void 0,isLastItem:!1}),S=b.palette,P=b.isLastItem,H=function(){return N.data().isHighlighted},K=function(){var a;
return hH9((a=S())==null?void 0:a.iconDisabledColor)},C=function(){var a;
return hH9((a=S())==null?void 0:a.primaryTitleColor)},G=function(){var a;
return hH9((a=S())==null?void 0:a.secondaryTitleColor)};
b={};return _.c("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.VN(_.iK(function(){return N.data().rendererContext}))},_.c(_.kY,{data:function(){return N.data().thumbnail}},{thumbnailViewModel:_.o8}),_.c("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.c("div",{class:_.KU("ytMacroMarkerListItemViewModelTimeDescription",(b.ytMacroMarkerListItemViewModelHighlighted=H,b)),
style:_.r5({"background-color":function(){return H()?C():K()},
color:function(){return H()?"":G()}})},_.c(_.mD,{text:function(){return N.data().timestamp}})),_.c("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.r5({"background-color":function(){return P()?"transparent":K()}})}),_.c("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(H()?C():G())}},_.c(_.mD,{text:function(){return N.data().title}}))))},"Be");_.TU=_.A(function(N){function b(Ab){Z("transform:translateX("+(_.Vg("HTML_DIR")==="rtl"?"":"-")+Ab+"px)")}
function S(Ab){return Math.min(Math.max(Ab,0),J()-e())}
function P(){var Ab=V()+na();return H()?(Math.round(e()/Ab)||1)*Ab:0}
var H=function(){return N.data().items||[]},K=function(){return N.data().previousButton},C=function(){return N.data().nextButton},G=function(){var Ab,kZ;
return(kZ=(Ab=N.disableArrows)==null?void 0:Ab.call(N))!=null?kZ:!1},a=function(){var Ab;
return!((Ab=N.forceNarrowLayout)==null||!Ab.call(N))},R=_.UB(function(){var Ab;
return!((Ab=N.centerAlignItems)==null||!Ab.call(N))&&J()<=e()},void 0,"Uto0kc"),n=_.Ct("horizontal-shelf-view-model"),d=_.Ct("div"),m=_.O(_.QF(0,void 0,"G0xZB")),k=m.next().value,M=m.next().value;
m=_.O(_.QF(0,void 0,"kqCYFf"));var l=m.next().value,u=m.next().value,J=l;l=_.O(_.QF("",void 0,"Hh6Uye"));m=l.next().value;var Z=l.next().value;l=_.O(_.QF(0,void 0,"yMGBKb"));var D=l.next().value,Y=l.next().value,V=D;l=_.O(_.QF(0,void 0,"VChthd"));D=l.next().value;var g=l.next().value,e=D;l=_.O(_.QF(!1,void 0,"qJlhhe"));var se=l.next().value,Ca=l.next().value;l=_.O(_.QF(0,void 0,"x7H94"));D=l.next().value;var ML=l.next().value,na=D;l=_.O(_.QF(0,void 0,"ksuUee"));var To=l.next().value,jp=l.next().value;
l=_.O(_.QF("50%",void 0,"uxCxde"));var Xf=l.next().value,YO=l.next().value,Wk=function(){var Ab,kZ=(Ab=N.data())==null?void 0:Ab.responsiveContainerConfiguration,Ib,Ud;return kZ?X$(kZ==null?void 0:kZ.responsiveSize):(Ud=(Ib=N.sizing)==null?void 0:Ib.call(N))!=null?Ud:"STANDARD"},S9=function(){var Ab,kZ=(Ab=N.data())==null?void 0:Ab.responsiveContainerConfiguration;
return kZ?kZ.enableContentSpecificAspectRatio===!1:!1};
l=_.UB(function(){return!G()&&k()>0},void 0,"hCgtqd");
D=_.UB(function(){return!G()&&k()<J()-e()},void 0,"bluuC");
var Vu=function(){M(S(k()-P()));b(k())},n9=function(){M(S(k()+P()));
b(k())},mc=function(){n.value!==null&&mJ()},f9;
_.YU(function(){mJ();window.ResizeObserver?(f9=new ResizeObserver(_.oS(mc,0)),f9.observe(n.value)):window.addEventListener("resize",mc)});
_.ej(function(){if(window.ResizeObserver){var Ab;(Ab=f9)==null||Ab.disconnect()}else window.removeEventListener("resize",mc)});
var mJ=function(){var Ab=n.value.clientWidth,kZ=N.includeMargin!==void 0?N.includeMargin():!1,Ib;var Ud=N.hasPeek!==void 0?N.hasPeek():!((Ib=N.data())==null||!Ib.hasPeek);Ab=_.A5({containerWidth:Ab,hasPeek:Ud,sizing:Wk(),marginSettings:kZ?a()?4:1:0});ML(Ab.gutter);jp(Ab.margin);Y(Ab.itemWidth);Ca(Ab.maxContainerWidth<528||a());g(Ab.maxContainerWidth);H()&&u((Ab.itemWidth+Ab.gutter)*H().length-Ab.gutter);if(H()){var ob;if(((ob=N.thumbnailAspectRatio)==null?void 0:ob.call(N))!==void 0){var PM;YO(V()/
tQb((PM=N.thumbnailAspectRatio)==null?void 0:PM.call(N))/2+"px")}else YO("50%")}},Bk={},RU={};
return _.c("horizontal-shelf-view-model",{class:_.KU("ytwHorizontalShelfViewModelHost",N.className),el:n},_.c(_.W,{cond:function(){var Ab;return N.data().header&&!((Ab=N.horizontalShelfExperiments)==null?0:Ab.call(N).hideHeader)},
then:function(){return _.c("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.r5({width:function(){return e()+"px"},
padding:function(){return"0 "+To()+"px"}})},_.c(_.kY,{data:function(){return N.data().header}},{sectionHeaderViewModel:function(Ab){return _.c(_.V5,{data:Ab.data,
disableHorizontalPadding:!0,forceSmallLayout:se,useResponsiveLayout:!0})}}))}}),_.c("div",{class:_.KU("ytwHorizontalShelfViewModelOuterContainer",(Bk.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return R()},Bk)),
style:_.r5({"margin-top":function(){var Ab,kZ=N.data().header&&!((Ab=N.horizontalShelfExperiments)==null?0:Ab.call(N).hideHeader),Ib;return(((Ib=N.ensureMarginTop)==null?0:Ib.call(N))&&!kZ?12:0)+"px"}})},_.c("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.r5({width:function(){return e()+"px"},
padding:function(){return"0 "+To()+"px"},
overflow:function(){return G()?"auto":"hidden"}})},_.c("div",{class:_.KU("ytwHorizontalShelfViewModelItems",(RU.ytwHorizontalShelfViewModelCenterAlignItems=function(){return R()},RU)),
el:d,style:m},_.c(_.kY,{data:H},{macroMarkerListItemViewModel:function(Ab,kZ){return _.c("div",{style:_.r5({width:function(){return V()+"px"},
"margin-right":function(){return(kZ()===H().length-1?0:na())+"px"}})},_.c(Q49,{data:Ab.data,
palette:_.$q(N.palette),isLastItem:function(){return kZ()===H().length-1}}))},
lockupViewModel:function(Ab,kZ){var Ib=Ab.data;return _.c("div",{style:_.r5({width:function(){return V()+"px"},
"margin-right":function(){return(kZ()===H().length-1?0:na())+"px"}})},_.c(_.Y3,{data:Ib,
containerType:4,sizing:Wk,protectBackground:N.protectBackground,thumbnailFixedWidth:function(){return qOL(Ib())+"px"},
thumbnailTargetWidth:function(){return qOL(Ib())},
force16By9ThumbnailAspectRatio:S9}))},
suspenseViewModel:function(Ab,kZ){return _.c("div",{style:_.r5({width:function(){return V()+"px"},
"margin-right":function(){return(kZ()===H().length-1?0:na())+"px"}})},_.c(uTV,{data:Ab.data}))}}))),_.c(_.W,{cond:l,
then:function(){return _.c("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.r5({top:function(){return Xf()}})},_.c(_.kY,{data:K},{buttonViewModel:function(Ab){return _.c(_.j$,{data:Ab.data,
onClick:Vu})}}))}}),_.c(_.W,{cond:D,
then:function(){return _.c("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.r5({top:function(){return Xf()}})},_.c(_.kY,{data:C},{buttonViewModel:function(Ab){return _.c(_.j$,{data:Ab.data,
onClick:n9})}}))}})))},"Ce");
_.TU.idomCompat=!0;var x0b=_.A(function(N){var b=function(){return N.data().targetId||""},S=function(){var l;
return((l=N.data())==null?void 0:l.expansionEntityKey)||""},P=_.nf(_.ytf,S),H=!0,K=function(){var l;
return((l=P())==null?void 0:l.value)===b()},C=function(l){_.e7(_.t5("stringEntity",S(),{key:S(),
value:l?b():""}))};
_.pM(function(){H=!1;N.data().isExpanded&&C(!0)});
var G=function(){if(K()){var l=!0;N.onCollapse!==void 0&&(l=N.onCollapse());l&&C(!1)}else C(!0)},a=_.Ob(G),R=function(){var l;
return(((l=N.accordionStyle)==null?void 0:l.call(N))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n=_.Ct("div"),d=function(){var l,u;
return(u=(l=_.t(N.data().rendererContext,_.Mv))==null?void 0:l.label)!=null?u:""},m=function(){var l,u;
return{disabled:(l=N.hideIfNotExpanded)==null?void 0:l.call(N),ariaHidden:(u=N.hideIfNotExpanded)==null?void 0:u.call(N)}},k={},M={};
return _.c("yt-accordion-item-view-model",{class:_.KU("ytAccordionItemViewModelHost",N.className,(k.ytAccordionItemViewModelExpanded=function(){return K()},k.ytAccordionItemViewModelHidden=function(){var l;
return(l=N.hideIfNotExpanded)==null?void 0:l.call(N)},k.ytAccordionItemViewModelMini=R,k)),
"data-target-id":b},_.c("div",{class:"ytAccordionItemViewModelContainer"},_.c("div",{class:"ytAccordionItemViewModelLeftSection","on:click":a,title:d,"aria-hidden":function(){var l;return(l=N.hideIfNotExpanded)==null?void 0:l.call(N)}},_.c(_.mD,{text:function(){return N.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:d})),_.c("div",{class:"ytAccordionItemViewModelRightSection"},_.c(_.kY,{data:function(){return K()?N.data().expandButton:N.data().collapseButton}},{buttonViewModel:function(l){return _.c(_.j$,{data:l.data,
className:"ytAccordionItemViewModelToggleButton",onClick:G,buttonOverrides:m})}}))),_.c("div",{class:"ytAccordionItemViewModelContainer"},_.c("div",{class:_.KU("ytAccordionItemViewModelContent",(M.ytAccordionItemViewModelExpandedSubtitle=function(){return K()},M)),
el:n,style:_.r5({"max-height":function(){return H?"auto":K()?n.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!K()}},_.c(_.W,{cond:function(){return!R()},
then:function(){return _.c(_.mD,{text:function(){return N.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.c(_.kY,{data:function(){return N.data().content}},{horizontalShelfViewModel:function(l){return _.c(_.TU,{data:l.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ee");_.odk=_.A(function(N){var b=_.O((0,_.E29)(N.data)).next().value,S=function(){return N.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},P=function(){return S()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},H=_.O(_.QF(!0,void 0,"VFpYAb")),K=H.next().value,C=H.next().value,G=function(){return P()&&K()},a=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){C(!K())}}},R=_.Ob(function(){b().onTitleTap&&_.AM(b().onTitleTap||{})});
H={};return _.c("yt-accordion-view-model",{class:_.KU("ytAccordionViewModelHost",(H.ytAccordionViewModelMinimized=function(){return G()},H)),
"data-target-id":function(){return N.data().targetId||""}},_.c(_.W,{cond:function(){return P()||!!b().title},
then:function(){return _.c("div",{class:"ytAccordionViewModelHeader"},_.c("div",{class:"ytAccordionViewModelTitleSection"},_.c("div",{class:"ytAccordionViewModelTitleWrapper"},_.c(_.W,{cond:function(){return!!N.data().headerIcon},
then:function(){return _.c(_.cX,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var n;return(n=N.data().headerIcon)==null?void 0:n.iconType}})}}),_.c("div",{class:"ytAccordionViewModelTitle",
"on:click":R},_.c(_.mD,{className:"ytAccordionViewModelTitleText",text:function(){return b().title}})))),_.c("div",{class:"ytAccordionViewModelButtonSection"},_.c(_.W,{cond:P,
then:function(){return _.c(_.ZR,{data:a,iconName:function(){return G()?"chevron_down":"chevron_collapse"}})}})))}}),_.c("div",{class:"ytAccordionViewModelContent"},_.c(_.kY,{data:function(){return b().contents}},{accordionItemViewModel:function(n){return _.c(x0b,{data:n.data,
className:"ytAccordionViewModelRow",accordionStyle:S,hideIfNotExpanded:G,onCollapse:function(){return P()?(C(!0),!1):!0}})}})),_.c("div",null,_.c(_.W,{cond:function(){return!P()&&(!!b().disclaimerFooter||!!b().footer)},
then:function(){return _.c("div",{class:"ytAccordionViewModelFooter"},_.c(_.mD,{text:function(){return b().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.c(_.kY,{data:function(){return N.data().footer}},{flexibleActionsViewModel:function(n){return _.c(_.r4,{data:n.data,
layout:0})}}))}})))},"Fe");_.qu(_.odk,"yt-accordion-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=null,S=null,P,H=(P=_.aN().resolve(_.cq(_.T8)))==null?void 0:P(),K=_.O(_.QF(!1,void 0,"CmEVtc"));P=K.next().value;var C=K.next().value;K=_.O(_.QF(!0,void 0,"yo9dR"));var G=K.next().value,a=K.next().value,R=_.Ct("textarea",function(u){_.fo(264503,u,b,function(J){b=J})}),n=function(u){C(!0);
u={learningJourneyFormData:{query:u}};_.AM(N.data().searchEndpoint||{},{form:{formData:u}});return!1},d=_.Ob(function(u){u.target.closest("button-view-model")&&C(!0)});
K=_.Ob(function(){a(R.value.value.length===0)});
var m=_.Ob(function(u){if(u.key==="Enter"&&!u.shiftKey&&!G()){var J=u.target;u.preventDefault();n(J.value)}}),k={},M={},l={};
return _.c("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.c("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.c(_.gG,{data:function(){return N.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.c("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.c("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.c("div",{class:_.KU("ytLearningJourneyZeroStateSearchBar",(k.ytLearningJourneyZeroStateSearchBarDark=H,k))},_.c("textarea",{class:_.KU("ytLearningJourneyZeroStateTextInput",(M.ytLearningJourneyZeroStateTextInputDark=H,M)),el:R,"on:keyup":K,"on:keydown":m,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.c("div",{class:_.KU("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=H,l))},_.c(_.j$,{data:function(){return _.t(N.data().searchButton,_.WC)},
className:"search-button",onClick:function(){return n(R.value.value)},
buttonOverrides:function(){return{disabled:G(),style:H?"mono-inverse":"mono",size:"XL"}}}))),_.c(_.W,{cond:function(){return!!N.data().errorBanner},
then:function(){return _.c("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.VN(function(u){_.fo(264617,u,S,function(J){S=J})})},_.c(_.kY,{data:function(){return N.data().errorBanner}},{alertBannerViewModel:function(u){return _.c(_.wQ9,{data:u.data,
"client-ve-type":264617})}}))}})),_.c(_.W,{cond:P,
then:function(){return _.c("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.c(_.kY,{data:function(){return N.data().loader}},{learningJourneyLoaderViewModel:function(u){return _.c(_.FZl,{data:u.data})}}))},
else:function(){return _.c("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.c(_.W,{cond:function(){return!!N.data().learningJourneyShelf},
then:function(){return _.c("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.c("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return N.data().learningJourneySectionTitle}),_.c(_.kY,{data:function(){return N.data().learningJourneyShelf}},{horizontalShelfViewModel:function(u){return _.c(_.TU,{data:u.data,
centerAlignItems:!0})}}))}}),_.c("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.c("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return N.data().suggestedJourneySectionTitle}),_.c("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":d},_.c(_.kY,{data:function(){return N.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(u){return _.c(_.r4,{data:u.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ge"),"yt-learning-journey-zero-state",{props:{data:_.kg}});var iI9=_.A(function(N){var b=N.data;return _.c("ytvl-live-leaderboard-item-action-content-view-model",{class:_.KU("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.c(_.mD,{text:function(){var S;return(S=b())==null?void 0:S.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.c(_.kY,{data:function(){return b().actionButton}},{buttonViewModel:function(S){return _.c(_.j$,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:S.data})}}))},"He");var Jkb=_.A(function(N){var b=N.data;return _.c("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.KU("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.c(_.mD,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var S;return(S=b())==null?void 0:S.displayName},
ellipsisTruncate:!0}),_.c(_.kY,{data:function(){return b().badge}},{buttonViewModel:function(S){return _.c(_.j$,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:S.data})}}))},"Ie");_.qu(_.A(function(N){var b=N.data;return _.c("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.c("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.c(_.mD,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var S;return(S=b())==null?void 0:S.rank}})),_.c("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH})),_.c("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.c(_.kY,{data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:Jkb,
liveLeaderboardItemActionContentViewModel:iI9})),_.c(_.mD,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var S;return(S=b())==null?void 0:S.points}}))},"Je"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;return _.c("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.c(_.mD,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var S,P;return(S=b())==null?void 0:(P=S.ranking)==null?void 0:P.rank}}),_.c("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH})),_.c(_.mD,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var S,P;return(S=b())==null?void 0:(P=S.channelContent)==null?void 0:P.channelName}}),_.c(_.mD,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var S;return(S=b())==null?void 0:S.points}}))},"Ke"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.kg}});var U0k=_.A(function(N){N=_.h_(N,{wrapper:!1}).wrapper;return _.c(_.W,{cond:N,then:function(){return _.c("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.c("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.c("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Le");
U0k.idomCompat=!0;var ZIk=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],j4k=_.A(function(N){var b=N.data;var S=_.VN(),P=_.UB(function(){return b().command},void 0,"fyYsT");
_.gA(function(){P()&&_.ZN(P(),{form:{element:S.value}})},"B0nxdb");
return _.c("div",{el:S,class:"YtQrCodeRendererHostContainer"},_.c(_.W,{cond:function(){return b().qrCodeImage},
then:function(H){return _.c(_.gG,{data:H,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.c(_.W,{cond:function(){return b().spinner},
then:function(){return _.c(U0k,null)}})}}),_.c(_.W,{cond:function(){return b().label},
then:function(H){return _.c(_.mD,{text:H,className:"YtQrCodeRendererHostLabel"})}}),_.c(_.W,{cond:function(){return b().labels},
then:function(H){return _.c("div",{class:"YtQrCodeRendererHostLabels"},_.c(_.zj,{each:H},function(K){return _.c(_.mD,{text:K})}))}}))},"Oe");_.qu(_.A(function(N){var b=N.data;var S=_.UB(function(){return b().qrEntityKey},void 0,"LmZ2xf"),P=_.UB(function(){return b().deleteEntityOnDismiss},void 0,"my0Tzb"),H=_.UB(function(){return b().command},void 0,"hzECIb"),K=_.nf(HJs,S);
N=_.UB(function(){return b().qrCodeImage},void 0,"AnD9rc");
var C=_.UB(function(){return b().style&&ZIk.includes(b().style)},void 0,"f5fZv"),G=_.nt({visibilityCallback:function(a){a&&H()&&_.ZN(H())},
showOption:{calledOnce:!0,state:"visible"}});_.YU(function(){_.ej(function(){P()&&S()&&_.gq().dispatch(_.t5("qrCodeEntity",S()))})});
return _.c("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.VN(G)},_.c(_.W,{cond:C,then:function(){return _.c(_.W,{cond:K,then:function(a){return _.c(j4k,{data:a})}})}}),_.c(_.W,{cond:N,
then:function(a){return _.c(_.gG,{data:a,alt:""})}}))},"Me"),"yt-qr-code-renderer",{props:{data:_.kg}});var AkO=_.A(function(N){var b=function(){return _.o3(1728053247&(N.barColor!==void 0?dO(N.barColor()):4278190080))};
return _.c("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.c("div",{class:"ytVideoOverviewGhostCardDetails"},_.c(zjl,{animationDelay:0,percentWidth:100,barColor:function(){return b()}}),_.c(zjl,{animationDelay:600,
percentWidth:60,barColor:function(){return b()}})))},"Pe"),zjl=_.A(function(N){return _.c("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+N.percentWidth()+"%"}},_.c("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var b=N.animationDelay(),S=N.barColor();return"animation-delay:"+b+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+S+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Qe");var X1S;_.EdV=_.A(function(N){function b(u){K(u)}
var S=N.data;var P=_.VN();N=_.O(_.QF(-1,void 0,"RrZHOc"));var H=N.next().value,K=N.next().value;N=_.O(_.QF(0,void 0,"bSVocc"));var C=N.next().value,G=N.next().value,a={},R=_.nf(wjE,function(){return S().asyncDataEntityKey}),n=function(){var u;
if((u=R())==null?0:u.videoOverviewViewModel){var J;return _.t((J=R())==null?void 0:J.videoOverviewViewModel,ON9)}return S()},d=function(u){K(u);
(P==null?0:P.value)&&P.value.children[u]&&P.value.children[u].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},m=function(){var u;
return((u=n())==null?void 0:u.headerSubtext)!==void 0?!0:!1},k=function(){var u,J=dO((u=n())==null?void 0:u.titleColor);
return J?"color: "+_.o3(J)+";":void 0},M=function(){var u,J=dO((u=n())==null?void 0:u.subtextColor);
return J?"color: "+_.o3(J)+";":void 0},l=function(){return _.c("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.c("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return k()}},_.c(_.mD,{text:function(){var u;
return(u=n())==null?void 0:u.headerText}})),_.c(_.W,{cond:m,
then:function(){return _.c("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.c("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return M()}},_.c(_.cX,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.c("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return M()}},_.c(_.mD,{text:function(){var u;
return(u=n())==null?void 0:u.headerSubtext}})))}}))};
N={};return _.c("yt-video-overview-view-model",{class:_.KU("ytGenAiVideoOverviewViewModelHost",(N.ytGenAiVideoOverviewViewModelMweb=!1,N.ytGenAiVideoOverviewViewModelDesktop=!0,N)),el:_.VN(KEf(function(){var u;if((u=n())==null||!u.inlinePlaybackEndpoint)return null;var J;u=a==null?void 0:(J=a.thumbnailElRef)==null?void 0:J.value;if(!u)return null;var Z;J=(Z=n())==null?void 0:Z.inlinePlaybackEndpoint;Z=_.t(J,M2c);return{multipleVideoPreviewData:{data:(Z==null?0:Z.playerDescriptors)&&(Z==null?0:Z.playerDescriptors.length)?
Z.playerDescriptors:[],thumbnailElement:u,trackingParams:"test",callbacks:{onPlaybackStarted:d},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}}),function(u){_.YU(function(){G(Math.min((u.clientWidth-24)/4-8,72))})}),
style:function(){var u,J=dO((u=n())==null?void 0:u.backgroundColor);return J?"background-color: "+_.o3(J)+";":void 0}},_.c(_.W,{cond:function(){var u;
return(u=n())==null?void 0:u.isLoading},
then:function(){return _.c(AkO,{barColor:function(){var u;return(u=n())==null?void 0:u.titleColor}})},
else:function(){return _.c(_.nM,null,null,_.c("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.c(_.kY,{data:function(){var u;return(u=n())==null?void 0:u.thumbnail}},{thumbnailViewModel:function(u){return _.c(_.o8,{data:u.data,
aspectRatio:0,playbackRef:Hpb(a)})}})),_.c("div",{class:"ytGenAiVideoOverviewViewModelDetails"},l(),_.c(_.W,{cond:function(){var u,J,Z,D;
return((u=n())==null?void 0:(J=u.listItems)==null?void 0:J.length)!==void 0&&((Z=n())==null?void 0:(D=Z.listItems)==null?void 0:D.length)>0?!0:!1},
then:function(){return _.c("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:P},_.c(_.zj,{each:function(){var u;return(u=n())==null?void 0:u.listItems}},function(u,J){return _.c(X1S,{image:u.image,
index:J,isSelected:function(){return J()===H()},
onClick:b,itemWidth:C})}))}}),_.c("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.c("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return k()}},_.c(_.mD,{text:function(){var u,J,Z,D,Y,V,g;
return(g=(u=n())==null?void 0:(J=u.listItems)==null?void 0:(Z=J[H()])==null?void 0:Z.headline)!=null?g:(D=n())==null?void 0:(Y=D.listItems)==null?void 0:(V=Y[0])==null?void 0:V.headline}})),_.c("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return M()}},_.c(_.mD,{text:function(){var u,J,Z,D,Y,V,g;
return(g=(u=n())==null?void 0:(J=u.listItems)==null?void 0:(Z=J[H()])==null?void 0:Z.subtext)!=null?g:(D=n())==null?void 0:(Y=D.listItems)==null?void 0:(V=Y[0])==null?void 0:V.subtext}})))))}}))},"Re");
X1S=_.A(function(N){var b=N.image;var S=N.itemWidth;var P=N.index;var H=N.isSelected;var K=N.onClick;N=_.Ob(function(){P!==void 0&&K!==void 0&&K(P());return!1});
var C={};return _.c("div",{class:_.KU("ytGenAiVideoOverviewViewModelCarouselItem",(C.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return H==null?void 0:H()},C)),
style:function(){return"width: "+S()+"px;"},
"on:click":N},_.c(_.gG,{data:b,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.c(_.W,{cond:function(){return H==null?void 0:H()},
then:function(){return _.c("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.c("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Se");
_.EdV.idomCompat=!0;_.qu(_.EdV,"yt-video-overview-view-model",{props:{data:_.kg}});_.p1S=_.A(function(N){var b=N.data;var S=N.topbarOffset;var P,H=((P=_.aN().resolve(_.cq(_.T8)))==null?void 0:P())||!1;return _.c("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var K=b();var C,G,a=H?(C=K.config)==null?void 0:C.darkThemeBackgroundColor:(G=K.config)==null?void 0:G.lightThemeBackgroundColor;K=a?_.xn(a):void 0;K="background-color: "+K+";";S!==void 0&&(K+="top: -"+S()+"px;");return K},
"aria-hidden":!0},_.c(_.W,{cond:function(){var K,C,G;return!!((K=b().backgroundImageConfig)==null?0:(C=K.image)==null?0:(G=C.sources)==null?0:G.length)},
then:function(){return _.c(_.gG,{data:function(){var K;return(K=b().backgroundImageConfig)==null?void 0:K.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.c("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+Nv_(H,b().gradientColorConfig)+";"}}))},"Te");
_.p1S.idomCompat=!0;var Yiz=_.A(function(N){var b=N.data;var S=N.isOverlay;return _.c("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.c("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.c(_.kY,{data:function(){return b().header}},{sectionHeaderViewModel:function(P){return _.c(_.V5,{data:P.data,
isOverlay:S})}})),_.c("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.c(_.kY,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:_.r4})),_.c("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.c(_.kY,{data:function(){return b().description}},{descriptionPreviewViewModel:function(P){return _.c(_.Dr,{data:P.data,
isOverlay:S})}})))},"Ue");
Yiz.idomCompat=!0;var yk9=_.A(function(N){var b=N.data;var S={};return _.c("factoid-view-model",{class:_.KU("ytwFactoidViewModelHost",(S.ytwFactoidViewModelHostOverlay=N.isOverlay,S))},_.c(_.mD,{text:function(){return b().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.c(_.mD,{text:function(){return b().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ve");
yk9.idomCompat=!0;var I1V=_.A(function(N){var b=N.data;var S=N.isOverlay;return _.c("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.c(_.kY,{data:function(){return b().factoids}},{factoidViewModel:function(P){return _.c(yk9,{data:P.data,
isOverlay:S})}}))},"We");
I1V.idomCompat=!0;_.D09=_.A(function(N){var b=N.data;var S=N.isOverlay;return _.c("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.c(_.kY,{data:function(){return b().items}},{channelInfoViewModel:function(P){return _.c("div",{class:"ytwCourseMetadataViewModelHostItem"},_.c(Yiz,{data:P.data,
isOverlay:S}))},
coursePerksViewModel:function(P){return _.c("div",{class:"ytwCourseMetadataViewModelHostItem"},_.c(kT4,{data:P.data,isOverlay:S}))},
descriptionPreviewViewModel:function(P){return _.c("div",{class:"ytwCourseMetadataViewModelHostItem"},_.c(_.Dr,{data:P.data,isOverlay:S}))},
factoidsRowViewModel:function(P){return _.c("div",{class:"ytwCourseMetadataViewModelHostItem"},_.c(I1V,{data:P.data,isOverlay:S}))},
progressViewModel:function(P){return _.c("div",{class:"ytwCourseMetadataViewModelHostItem"},_.c(ToV,{data:P.data,isOverlay:S}))}}))},"Xe");var VSN=_.A(function(N){return _.c("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.c(_.kY,{data:function(){return N.data().content}},{courseMetadataViewModel:function(b){return _.c(_.D09,{data:b.data,
isOverlay:N.isOverlay})},
progressViewModel:function(b){return _.c(ToV,{data:b.data})}}))},"Ye");var gd9=_.A(function(N){var b=N.data;N=N.className;var S=function(){var H;return _.o2((H=b())==null?void 0:H.rendererContext)},P={};
P=(P.dynamicTextViewModelHost=!0,P.dynamicTextViewModelHostTappable=function(){return S()},P);
return _.c("yt-dynamic-text-view-model",{el:_.VN(_.iK(function(){var H;return(H=b())==null?void 0:H.rendererContext})),
role:function(){return S()?"link":void 0},
tabindex:function(){return S()?0:void 0},
class:_.KU(N,P)},_.c("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var H,K,C;return(C=(K=_.t((H=b())==null?void 0:H.rendererContext,_.Mv))==null?void 0:K.label)!=null?C:""}},_.c(_.mD,{text:function(){return b().text},
userInput:!0})))},"Ze");
gd9.idomCompat=!0;_.tc=_.A(function(N){var b=N.data;var S=N.isPositionRelative;var P=_.SV_("(max-width: 527.9px)"),H=function(){var K,C;return(C=(K=b())==null?void 0:K.style)!=null?C:"IMAGE_BANNER_STYLE_FULL_BLEED"};
N={};return _.c("yt-image-banner-view-model",{el:_.VN(_.iK(function(){var K;return(K=b())==null?void 0:K.rendererContext})),
class:_.KU((N.ytImageBannerViewModelHost=!0,N.ytImageBannerViewModelInset=function(){return PyU(H())},N.ytImageBannerViewModelPositionAbsolute=function(){return _.he(!0)&&!(S==null?0:S())},N.ytImageBannerViewModelSmallInset=function(){return PyU(H())&&P()},N.ytImageBannerViewModelTappable=function(){var K;
return _.o2((K=b())==null?void 0:K.rendererContext)},N))},_.c(_.W,{cond:function(){var K;
return(K=b())==null?void 0:K.image},
then:function(){return _.c(_.gG,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.c(_.kY,{data:function(){var K;
return(K=b())==null?void 0:K.overlays}},{thumbnailHoverOverlayViewModel:O$}))},"$e");
_.tc.idomCompat=!0;var ejd;ejd=_.A(function(N){var b=N.condition;var S=N.content;return _.c(_.W,{cond:b,then:function(){return _.c("div",{class:"yt-page-header-view-model__scroll-container"},S())},
else:function(){return S()}})},"af");
_.$04=_.A(function(N){var b=N.data;var S=N.noPadding;var P=N.enableBanner;var H=N.cinematicContainerTopbarOffset;var K=N.allowCinematicContainerOverflow;var C=N.displayAsSidebar;var G=N.displayAsPanel;var a=N.alwaysUseMediumTextDescription;var R=HRI(),n=function(){return!!b().image||!!b().animatedImage},d=function(){return!!b().background},m=function(){return(C==null?0:C())||(G==null?0:G())?1:R()},k=function(){return m()===1},M=function(){return k()||m()===2},l=function(){return m()===4},u=function(){var To=
b();
var jp=!!b().heroImage;var Xf=m(),YO=stY(b()),Wk=C==null?void 0:C(),S9=!To.metadata,Vu;if(Vu=jp?_.t(To.heroImage,$JV):_.t(To.animatedImage||To.image,$JV)){To=Vu.style;var n9=Vu.layoutMode;if(n9!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Vu=xK_(QxE(Vu)),jp)jp=bRe(Xf,To,n9,Vu,Wk);else b:if(S9)jp=Xf===1?{size:48}:{size:72};else switch(Xf){case 1:jp={size:72};break b;case 2:jp={size:120};break b;default:jp=YO<4?{size:120}:{size:160}}else jp=void 0}else jp={size:0};return jp};
N={};N=_.KU((N["yt-page-header-view-model"]=!0,N["yt-page-header-view-model--no-padding"]=function(){return!(S==null||!S())},N["yt-page-header-view-model--small-top-padding"]=function(){return k()&&!b().actions&&!(G==null?0:G())||m()===2&&!(n()||b().heroImage)},N["yt-page-header-view-model--small-bottom-padding"]=function(){return M()&&!b().actions&&!(G==null?0:G())},N["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(K==null?0:K())},N["yt-page-header-view-model--display-as-sidebar"]=
C,N));
var J={},Z=_.KU((J["yt-page-header-view-model__page-header-headline"]=!0,J["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var To;return(To=u())==null?void 0:To.allowFullWidth},J)),D=function(){var To;
return M()&&!((To=u())==null?0:To.allowFullWidth)},Y=function(){return k()&&(!!b().heroImage||n())&&stY(b())>0},V=function(){return Y()&&(G==null?void 0:G())};
J={};var g=_.KU((J["yt-page-header-view-model__page-header-title"]=!0,J["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!Y()},J["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return Y()&&!V()},J["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=V,J["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=d,J));
J={};var e=_.KU((J["yt-page-header-view-model__page-header-headline-image"]=!0,J["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!b().heroImage&&M()},J));
J={};var se=_.KU((J["yt-page-header-view-model__page-header-banner-container"]=P,J["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var To;return(P==null?void 0:P())&&((To=_.t(b().banner,_.qMO))==null?void 0:To.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},J));
J={};var Ca=_.KU((J["yt-page-header-view-model__page-header-content-metadata"]=!0,J["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=d,J));J={};var ML=_.KU((J["yt-page-header-view-model__page-header-flexible-actions"]=!0,J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!b().metadata||M()},J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!M()},J));
J={};var na=_.KU((J["yt-page-header-view-model__page-header-attribution"]=!0,J["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=d,J));return _.c("yt-page-header-view-model",{class:N},_.c(_.W,{cond:d,then:function(){return _.c("div",{class:"yt-page-header-view-model__page-header-background"},_.c(_.kY,{data:function(){return b().background}},{cinematicContainerViewModel:function(To){return _.c(_.p1S,{data:To.data,
topbarOffset:H})}}))}}),_.c(ejd,{condition:function(){return!(C==null||!C())},
content:function(){return _.c("div",{class:"yt-page-header-view-model__page-header-content"},_.c(_.W,{cond:function(){return(P==null?void 0:P())&&b().banner},
then:function(){return _.c("div",{class:se},_.c(_.kY,{data:function(){return b().banner}},{imageBannerViewModel:_.tc}))}}),_.c("div",{class:Z},_.c(_.W,{cond:n,
then:function(){return _.c(_.kY,{data:function(){var To;if(!(To=b().animatedImage)){To=b();if(n()){var jp=To=Object.assign({},To),Xf=m(),YO=stY(b()),Wk=jp.image,S9=_.t(Wk,hud),Vu=S9==null?void 0:S9.avatar,n9=_.t(Vu,_.UW);if(Wk&&Vu&&n9){switch(Xf){case 1:n9.avatarImageSize="AVATAR_SIZE_XL";break;case 2:n9.avatarImageSize="AVATAR_SIZE_XXL";break;default:YO<4?n9.avatarImageSize="AVATAR_SIZE_XXL":n9.avatarImageSize="AVATAR_SIZE_XXXL"}_.QN(Vu,_.UW,Object.assign({},n9));S9.avatar=Object.assign({},Vu);_.QN(Wk,
hud,Object.assign({},S9));jp.image=Object.assign({},Wk)}}To=To.image}return To}},{contentPreviewImageViewModel:function(To){return _.c(_.ZU,{data:To.data,
className:e,imageSizeConfig:u})},
decoratedAvatarViewModel:function(To){return _.c(_.Gg,{data:To.data,className:e})}})}}),_.c(_.W,{cond:function(){return!!b().heroImage&&!D()},
then:function(){return _.c(_.kY,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(To){return _.c(_.ZU,{data:To.data,
className:e,imageSizeConfig:u})}})}}),_.c("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.c(_.W,{cond:function(){return!!b().heroImage&&D()},
then:function(){return _.c("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.c(_.kY,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(To){return _.c(_.ZU,{data:To.data,
className:e,imageSizeConfig:u})}}))}}),_.c(_.kY,{data:function(){return b().title}},{dynamicTextViewModel:function(To){return _.c(gd9,{data:To.data,
className:g})}}),_.c(_.kY,{data:function(){return b().metadata}},{contentMetadataViewModel:function(To){return _.c(_.zg,{data:To.data,
layout:function(){return k()?1:0},
className:Ca,isOverlay:d,useMediumText:l})}}),_.c(_.W,{cond:function(){return b().description&&!k()},
then:function(){return _.c(_.kY,{data:function(){return b().description}},{descriptionPreviewViewModel:function(To){return _.c(_.Dr,{data:To.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:d,maxLinesOverride:function(){return k()?void 0:1},
useMediumText:function(){return(a==null?void 0:a())||l()}})}})}}),_.c(_.W,{cond:function(){return b().attribution&&!M()},
then:function(){return _.c(_.kY,{data:function(){return b().attribution}},{attributionViewModel:function(To){return _.c(jJ,{data:To.data,
className:na,useMediumText:l})}})}}),_.c(_.W,{cond:function(){return b().actions&&!M()},
then:function(){return _.c(_.kY,{data:function(){return b().actions}},{flexibleActionsViewModel:function(To){return _.c(_.r4,{data:To.data,
layout:function(){return KzU(m())},
className:ML})}})}}))),_.c("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.c(_.W,{cond:function(){return b().description&&k()},
then:function(){return _.c(_.kY,{data:function(){return b().description}},{descriptionPreviewViewModel:function(To){return _.c(_.Dr,{data:To.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:d,maxLinesOverride:function(){return k()?void 0:1},
useMediumText:function(){return(a==null?void 0:a())||l()}})}})}}),_.c(_.W,{cond:function(){return b().attribution&&M()},
then:function(){return _.c(_.kY,{data:function(){return b().attribution}},{attributionViewModel:function(To){return _.c(jJ,{data:To.data,
className:na,useMediumText:l})}})}}),_.c(_.W,{cond:function(){return b().actions&&M()},
then:function(){return _.c(_.kY,{data:function(){return b().actions}},{flexibleActionsViewModel:function(To){return _.c(_.r4,{data:To.data,
layout:function(){return KzU(m())},
className:ML})}})}})),_.c("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.c(_.kY,{data:function(){return b().bottomMetadataFlexibleContainer}},{flexibleContainer:function(To){return _.c(VSN,{data:To.data,
isOverlay:d})}})))}}))},"bf");
_.$04.idomCompat=!0;_.qu(_.A(function(N){var b=_.O(_.QF(!1,void 0,"qvRy4d")),S=b.next().value,P=b.next().value;return _.c("yt-official-card-view-model",{class:_.KU("ytOfficialCardViewModelHost",N.className),style:_.r5({"background-color":function(){var H,K=dO((H=N.data())==null?void 0:H.backgroundColor);return K?_.o3(K):void 0}})},_.c(_.kY,{data:function(){return N.data().header}},{pageHeaderViewModel:function(H){return _.c(_.$04,{data:H.data,
noPadding:!0})}}),_.c(_.kY,{data:function(){return N.data().contents}},{horizontalShelfViewModel:function(H){return _.c(_.TU,{data:H.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.c(_.W,{cond:S,
then:function(){return _.c("div",{class:"ytOfficialCardViewModelExpandedContent"},_.c(_.kY,{data:function(){return N.data().expandedContents}},{horizontalShelfViewModel:function(H){return _.c(_.TU,{data:H.data,
sizing:"MINI"})}}),_.c("div",{class:"ytOfficialCardViewModelCollapseButton"},_.c(_.kY,{data:function(){return N.data().collapseButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
onClick:function(){P(!S())}})}})))},
else:function(){return _.c("div",{class:"ytOfficialCardViewModelExpandButton"},_.c(_.kY,{data:function(){return N.data().expandButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
onClick:function(){P(!S())}})}}))}}))},"cf"),"yt-official-card-view-model",{props:{data:_.kg,
className:_.kg}});var hj9=_.A(function(N){var b,S=(b=_.aN().resolve(_.cq(_.T8)))==null?void 0:b();return _.c("ytw-search-friction-view-model",{class:_.KU("ytwSearchFrictionViewModelHost",N.className)},_.c("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.c("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.c(_.W,{cond:function(){return S&&N.data().darkThemeImage?N.data().darkThemeImage:N.data().image},
then:function(P){return _.c(_.gG,{data:P,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.c(_.kY,{data:function(){return N.data().overflowMenuButton}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.c(_.mD,{text:function(){return N.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.c(_.zj,{each:function(){return N.data().bodyText||[]}},function(P){return _.c(_.mD,{text:P,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.c(_.kY,{data:function(){return N.data().actions}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.c(_.mD,{text:function(){return N.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.c(_.mD,{text:function(){return N.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"df");
hj9.idomCompat=!0;_.qu(hj9,"ytw-search-friction-view-model",{props:{data:_.kg,className:_.kg}});_.M2=_.A(function(N){var b=_.Ct("markdown-div"),S,P=(S=_.aN().resolve(_.cq(_.T8)))==null?void 0:S();_.gA(function(){var H=b.value;var K=new Avz,C=new Map(K.JSC$9531_sanitizerTable.globalAttributePolicies);C.set("style",{policyAction:4});K.JSC$9531_sanitizerTable=new i2(K.JSC$9531_sanitizerTable.allowedElements,K.JSC$9531_sanitizerTable.elementPolicies,K.JSC$9531_sanitizerTable.allowedGlobalAttributes,C,K.JSC$9531_sanitizerTable.globallyAllowedAttributePrefixes);var G=["data-time"];if(G===void 0)C=
new Set(K.JSC$9531_sanitizerTable.globallyAllowedAttributePrefixes),C.add("data-"),K.JSC$9531_sanitizerTable=new i2(K.JSC$9531_sanitizerTable.allowedElements,K.JSC$9531_sanitizerTable.elementPolicies,K.JSC$9531_sanitizerTable.allowedGlobalAttributes,K.JSC$9531_sanitizerTable.globalAttributePolicies,C);else{C=new Set(K.JSC$9531_sanitizerTable.allowedGlobalAttributes);G=_.O(G);for(var a=G.next();!a.done;a=G.next()){a=a.value;if(a.indexOf("data-")!==0)throw Error("ka`"+a);C.add(a)}K.JSC$9531_sanitizerTable=
new i2(K.JSC$9531_sanitizerTable.allowedElements,K.JSC$9531_sanitizerTable.elementPolicies,C,K.JSC$9531_sanitizerTable.globalAttributePolicies,K.JSC$9531_sanitizerTable.globallyAllowedAttributePrefixes)}C=new Set(K.JSC$9531_sanitizerTable.allowedGlobalAttributes);C.add("class");K.JSC$9531_sanitizerTable=new i2(K.JSC$9531_sanitizerTable.allowedElements,K.JSC$9531_sanitizerTable.elementPolicies,C,K.JSC$9531_sanitizerTable.globalAttributePolicies,K.JSC$9531_sanitizerTable.globallyAllowedAttributePrefixes);
_.aX(H,_.Jvk(K.build(),ORp(N.text())));Cys(b.value)},"OZ439c");
S={};return _.c("div",null,_.c("markdown-div",{class:_.KU("ytwMarkdownDivHost",(S.ytwMarkdownDivDark=P,S.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var H;return((H=N.isSmallText)==null?void 0:H.call(N))||!1},S.ytwMarkdownDivHostWrapCodeBlocks=function(){var H;
return((H=N.wrapCodeBlocks)==null?void 0:H.call(N))||!1},S.ytwMarkdownDivHostEnableDefaultStyling=function(){var H;
return!((H=N.disableDefaultStyling)==null?0:H.call(N))},S)),
el:b}))},"ff");
_.M2.idomCompat=!0;var qiE=_.A(function(N){var b=N.imageData;var S=_.$q(N.isInList,!1),P=function(){return S()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.c("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.c(_.W,{cond:function(){return b().image},
then:function(H){return _.c(_.gG,{data:H,alt:function(){return P().alt},
contentMode:function(){return P().contentMode},
targetWidth:function(){return P().targetWidth},
targetHeight:function(){return P().targetHeight},
className:function(){return P().className}})}}),_.c("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.c("div",{class:_.KU("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.c(_.mD,{text:function(){return b().title}})),_.c(_.zj,{each:function(){var H;
return(H=b().description)!=null?H:[]}},function(H){return _.c("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.c(Fb,{content:H}))})))},"gf"),w1c=_.A(function(N){var b=N.list;
var S=function(){var P;return(P=b().items)!=null?P:[]};
return _.c("div",{class:"ytwGenAiRichTextViewModelListContent"},_.c(_.W,{cond:function(){return b().title},
then:function(P){return _.c("div",{class:_.KU("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.c(_.mD,{text:P}))}}),_.c(_.W,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.c("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.c(_.zj,{each:S},function(P){return _.c("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.c(Fb,{content:P,isInList:!0}))}))}}),_.c(_.W,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.c("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.c(_.zj,{each:S},function(P){return _.c("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.c(Fb,{content:P,isInList:!0}))}))}}),_.c(_.W,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.c("div",{class:"ytwGenAiRichTextViewModelImageList"},_.c(_.zj,{each:S},function(P){return _.c("div",{class:"ytwGenAiRichTextViewModelListItem"},_.c(Fb,{content:P,isInList:!0}))}))}}))},"hf"),NIt=_.A(function(N){var b=N.table;
return _.c("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.c("thead",null,_.c("tr",null,_.c(_.zj,{each:function(){var S,P;return(P=(S=b().header)==null?void 0:S.cells)!=null?P:[]}},function(S){return _.c("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.c(_.zj,{each:function(){return S.contents}},function(P){return _.c(Fb,{content:P})}))}))),_.c("tbody",null,_.c(_.zj,{each:function(){var S;
return(S=b().rows)!=null?S:[]}},function(S){return _.c("tr",null,_.c(_.zj,{each:function(){return S.cells}},function(P){return _.c("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.c(_.zj,{each:function(){return P.contents}},function(H){return _.c(Fb,{content:H})}))}))})))},"jf"),Fb=_.A(function(N){var b=N.content;
var S=_.$q(N.isInList,!1),P=function(){var H,K;return(K=(H=b().contentBlock)==null?void 0:H.contents)!=null?K:[]};
return _.c("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.c(_.W,{cond:function(){return b().text},
then:function(H){return _.c(_.mD,{className:"ytwGenAiRichTextViewModelText",text:H})}}),_.c(_.W,{cond:function(){return b().image},
then:function(H){return _.c(qiE,{imageData:H,isInList:S})}}),_.c(_.W,{cond:function(){return b().list},
then:function(H){return _.c(w1c,{list:H})}}),_.c(_.W,{cond:function(){return b().contentBlock},
then:function(){return _.c("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.c(_.zj,{each:P},function(H){return _.c(Fb,{content:H,isInList:!1})}))}}),_.c(_.W,{cond:function(){return b().table},
then:function(H){return _.c(NIt,{table:H})}}))},"kf"),baJ=_.A(function(N){var b={};
b=_.ff("ytwGenAiRichTextViewModelHost",(b.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.m6("search_overview_link_style")),b));return _.c("gen-ai-rich-text-view-model",{class:b},_.c(Fb,{content:function(){return N.data().content}}))},"lf");_.Seo=_.A(function(N){var b=N.data;var S=function(){var l;return((l=b().loadingUi)!=null?l:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},P=function(){return b().isLoading&&(S()==="UNSPECIFIED"||S()==="GHOST_CARD")},H=function(){return!b().isLoading},K=function(){return!!b().content&&!b().contents},C=function(){return!!b().contents},G=function(){return!!b().nextQueryButtons},a=function(){return b().isLoading&&S()==="INVISIBLE"},R=function(){var l,u;
return(u=(l=b().headerIcon)==null?void 0:l.iconType)!=null?u:""},n=function(){var l;
return(l=b().content)!=null?l:""},d=function(){return!!b().sourcesSection},m,k=!((m=_.aN().resolve(_.cq(_.T8)))==null||!m()),M=_.UB(function(){var l=[],u=b().contents;
if(u)for(var J=0;J<u.length;J++){var Z=_.t(u&&u[J],vuO);Z&&l.push(Z)}return l},void 0,"gcCsZb");
_.YU(function(){b().isLoading||_.uC("so_re",void 0,"search_overview_answer")});
return _.c("ytd-overview-answer-view-model",{class:function(){var l={};l=(l.ytdOverviewAnswerViewModelHost=!0,l.ytdOverviewAnswerViewModelDarkBackground=k&&!a(),l.ytdOverviewAnswerViewModelLightBackground=!k&&!a(),l);return _.ff(l)}},_.c(_.W,{cond:function(){return!a()},
then:function(){return _.c(_.nM,null,_.c("h2",null,_.c("div",{class:"ytdOverviewAnswerViewModelHeader"},_.c(_.W,{cond:R,then:function(l){return _.c("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.c(_.cX,{icon:l}))}}),_.c("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.c("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return b().headerText}),_.c("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.c(_.mD,{text:function(){return b().headerSubtext}}))))),_.c(_.W,{cond:P,
then:function(){return _.c(GZY,null)}}),_.c(_.W,{cond:H,
then:function(){return _.c(_.nM,null,_.c(_.W,{cond:K,then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelText"},_.c(_.M2,{text:n,isSmallText:!0}))}}),_.c(_.W,{cond:C,
then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelRichText"},_.c(_.zj,{each:M},function(l){return _.c(baJ,{data:l})}))}}),_.c(_.W,{cond:G,
then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.c(_.kY,{data:function(){return b().nextQueryButtons}},{buttonViewModel:function(l){return _.c(_.j$,{data:l.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.TU}))}}),_.c("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.c("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.c(_.W,{cond:function(){return!!_.t(b().likeButtonViewModel,_.pS)&&!!_.t(b().dislikeButtonViewModel,_.YE)},
then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.c(_.aD,{data:function(){return _.t(b().likeButtonViewModel,_.pS)},
disableIconAnimation:!0}),_.c(_.cn,{data:function(){return _.t(b().dislikeButtonViewModel,_.YE)}}))}})),_.c(_.W,{cond:function(){var l;
return(l=b().sourcesSection)==null?void 0:l.headerText},
then:function(l){return _.c("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.c(_.mD,{text:l}))}})),_.c(_.W,{cond:d,
then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelSources"},_.c(_.kY,{data:function(){var l;return(l=b().sourcesSection)==null?void 0:l.sourcesShelf}},{buttonViewModel:_.j$,
horizontalShelfViewModel:function(l){return _.c(_.TU,{data:l.data,includeMargin:!0,hasPeek:!0})}}))}}),_.c(_.W,{cond:function(){return b().disclaimerText},
then:function(){return _.c("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.c(_.mD,{text:function(){return b().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"mf");var PYn=_.A(function(N){var b=_.h_(N,{}).data;return _.c("yt-shopping-content-line-item-view-model",{class:_.KU("ytShoppingContentLineItemViewModelHost")},_.c(_.mD,{text:function(){var S;return(S=b().text)==null?void 0:S.attributedString}}))},"nf");_.B3=_.A(function(N){N=_.h_(N,{});var b=N.data,S={};return _.c("yt-shopping-content-line-view-model",{class:_.KU("ytShoppingContentLineViewModelHost",N.className,(S.ytShoppingContentLineViewModelTruncateText=function(){return!b().wrapContent},S)),
style:_.r5({"--shopping-content-line-gap":function(){return b().itemGap?b().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return b().lineHeight?b().lineHeight+"px":void 0}})},_.c(_.zj,{each:function(){return(b().items||[]).map(function(P){return _.t(P,nAE)}).filter(function(P){return!!P})}},function(P){return _.c(PYn,{data:P})}))},"of");var HaL=_.A(function(N){var b=N.data;var S=function(){var K;return((K=b().image)==null?void 0:K.height)||48},P=function(){var K;
return((K=b().image)==null?void 0:K.width)||48},H=function(){return"width: "+P()+"px; height: "+S()+"px;"};
return _.c("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var K,C,G,a=((K=_.aN().resolve(_.cq(_.T8)))==null?0:K())?(C=b())==null?void 0:C.darkThemeBackgroundColor:(G=b())==null?void 0:G.lightThemeBackgroundColor;return"background-color: "+(a?_.o3(a):"")+";"},
el:_.VN(_.iK(function(){var K;return(K=b())==null?void 0:K.rendererContext}))},_.c(_.W,{cond:function(){var K,C;
return(C=(K=b().image)==null?void 0:K.image)!=null?C:b().thumbnail},
then:function(K){return _.c("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var C;return"background-color: "+(((C=b().image)==null?0:C.backgroundColor)?_.o3(b().image.backgroundColor):"")+";"+H()}},_.c(_.gG,{data:K,
height:S,width:P,style:H,alt:""}))}}),_.c("div",{class:"ytShoppingDescriptionItemViewModelText"},_.c(_.kY,{data:function(){return b().line1}},{shoppingContentLineViewModel:function(K){return _.c(_.B3,{data:K.data})}}),_.c(_.kY,{data:function(){return b().line2}},{shoppingContentLineViewModel:function(K){return _.c(_.B3,{data:K.data})}}),_.c(_.kY,{data:function(){return b().line3}},{shoppingContentLineViewModel:function(K){return _.c(_.B3,{data:K.data})}})))},"pf");var sUJ=_.A(function(N){var b=N.data;var S=N.active;var P=_.Ct("transcript-segment-view-model");_.gA(function(){var H,K,C,G=((H=_.aN().resolve(_.cq(_.T8)))==null?0:H())?(K=b())==null?void 0:K.darkThemeColorPalette:(C=b())==null?void 0:C.lightThemeColorPalette;G&&(G.additiveBackground&&P.value.style.setProperty("--timestamp-active-background-color",_.o3(G.additiveBackground)),G.textSecondary&&P.value.style.setProperty("--timestamp-active-color",_.xn(G.textSecondary)))},"TnVCnb");
N={};return _.c("transcript-segment-view-model",{class:_.KU("ytwTranscriptSegmentViewModelHost",(N.ytwTranscriptSegmentViewModelHostActive=S,N.ytwTranscriptSegmentViewModelHostModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),N)),el:P},_.c(_.W,{cond:function(){var H;return(H=b())==null?void 0:H.timestamp},
then:function(H){var K={};return _.c(_.nM,null,_.c("div",{class:_.KU("ytwTranscriptSegmentViewModelTimestamp",(K.ytwTranscriptSegmentViewModelTimestampActive=S,K)),"aria-hidden":!0},H),_.c("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var C=H().split(":").map(Number),G=_.O(C.reverse());C=G.next().value;var a=G.next().value;G=G.next().value;return _.cRo({hours:G,minutes:a,seconds:C})}))}}),_.c(_.mD,{text:function(){var H,K,C;
return(C=(H=b())==null?void 0:H.attributedText)!=null?C:{content:(K=b())==null?void 0:K.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"rf");var K9E=_.A(function(N){var b=N.data;return _.c("div",{class:"videoAttributesSectionViewModelHeader"},_.c("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.c("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return b().headerTitle}),_.c(_.W,{cond:function(){return b().headerInfoButton},
then:function(){return _.c(_.kY,{data:function(){return b().headerInfoButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.c(_.W,{cond:function(){return b().headerSubtitle},
then:function(){return _.c("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return b().headerSubtitle})}}))},"sf"),vOQ=_.A(function(N){function b(l){return Math.max(Math.min(l,0),R()-G())}
var S=N.data;var P;N=_.Ct("div",function(l){var u=function(){n(l.clientWidth)};
u();window.ResizeObserver&&(P=new ResizeObserver(u),P.observe(l))});
var H=_.Ct("div",function(l){a(l.scrollWidth)}),K=_.O(_.QF(0,void 0,"C3XQAe")),C=K.next().value;
K=K.next().value;var G=C,a=K;K=_.O(_.QF(0,void 0,"db7y3"));C=K.next().value;K=K.next().value;var R=C,n=K;C=_.O(_.QF(0,void 0,"RchC7"));var d=C.next().value,m=C.next().value;_.ej(function(){var l;(l=P)==null||l.disconnect()});
var k=function(){m(b(d()+R()))},M=function(){m(b(d()-R()))};
return _.c("yt-video-attributes-section-view-model",null,_.c("div",{class:"videoAttributesSectionViewModelHost"},_.c(_.W,{cond:function(){return S().headerTitle},
then:function(){return _.c(K9E,{data:S})}}),_.c("div",{class:_.KU("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:N},_.c("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.r5({transform:function(){var l=d();_.Vg("HTML_DIR")==="rtl"&&(l*=-1);return"translateX("+l+"px)"}}),
el:H},_.c(_.kY,{data:function(){return S().videoAttributeViewModels}},{videoAttributeViewModel:Ygz}))),_.c(_.kY,{data:function(){return S().footerButton}},{buttonViewModel:function(l){return _.c(_.j$,{data:l.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.c(_.W,{cond:function(){return d()<0&&S().previousButton},
then:function(){return _.c("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.c(_.kY,{data:function(){return S().previousButton}},{buttonViewModel:function(l){return _.c(_.j$,{data:l.data,
onClick:k})}}))}}),_.c(_.W,{cond:function(){return d()>R()-G()&&S().nextButton},
then:function(){return _.c("div",{class:"videoAttributesSectionViewModelRightArrow"},_.c(_.kY,{data:function(){return S().nextButton}},{buttonViewModel:function(l){return _.c(_.j$,{data:l.data,
onClick:M})}}))}})))},"tf");
vOQ.idomCompat=!0;var Oaq=_.A(function(N){var b=N.data;var S=N.active;var P={},H={};return _.c("timeline-item-view-model",{class:_.KU("ytwTimelineItemViewModelHost",(P.ytwTimelineItemViewModelHostChapterChild=N.chapterChild,P.ytwTimelineItemViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),P))},_.c("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.c("div",{class:_.KU("ytwTimelineItemViewModelTimestamp",(H.ytwTimelineItemViewModelTimestampActive=
S,H))},function(){return b().timestamp})),_.c("div",{class:"ytwTimelineItemViewModelContentItems"},_.c(_.kY,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(K){return _.c(sUJ,{data:K.data,
active:S})},
videoAttributesSectionViewModel:vOQ})))},"uf");var CYO=_.A(function(N){var b=N.data;N={};return _.c("timeline-chapter-view-model",{class:_.KU("ytwTimelineChapterViewModelHost")},_.c("div",{class:_.KU("ytwTimelineChapterViewModelTitle",(N.ytwTimelineChapterViewModelModern=_.T("enable_timeline_view_modern_transcript")||_.T("enable_timeline_view_modern_transcript_fe"),N))},function(){return b().title}),_.c(_.kY,{data:function(){return b().contents}},{timelineItemViewModel:function(S){return _.c(Oaq,{data:S.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(S){return _.c(vOQ,{data:S.data})}}))},"vf");var Gow=_.A(function(N){var b=N.data;var S=_.Ct("macro-markers-panel-item-view-model"),P=_.nf(_.wxs,function(){var K;return(K=b().markersEngagementPanelSyncEntityKey)!=null?K:""}),H=function(){var K;
return((K=P())==null?void 0:K.activeItemIndex)===b().index};
N=_.Ob(function(K){var C,G,a,R,n;return _.r(function(d){if(d.nextAddress==1)return K.stopPropagation(),_.Qw(_.uK(K),S.value,["A".toString(),"BUTTON".toString()])?d.return():(C=_.UZ(b().onTap))?d.yield(_.Cf(),2):d.return();G=d.yieldResult;R=(a=_.t(C,_.Iv))==null?void 0:a.startTimeSeconds;R===void 0||(n=G)!=null&&n.seekTo(R,!0);_.Zd(d)})});
return _.c("macro-markers-panel-item-view-model",{class:_.KU("ytwMacroMarkersPanelItemViewModelHost",{"is-active":H}),el:S,"on:click":N,tabindex:0,role:"button"},_.c(_.kY,{data:function(){var K;return(K=b())==null?void 0:K.item}},{timelineChapterViewModel:function(K){return _.c(CYO,{data:K.data,
active:H})},
timelineItemViewModel:function(K){return _.c(Oaq,{data:K.data,active:H})},
videoAttributeViewModel:Ygz,shoppingDescriptionItemViewModel:HaL}))},"wf");
Gow.idomCompat=!0;_.qu(Gow,"macro-markers-panel-item-view-model",{props:{data:_.kg}});_.qu(vOQ,"yt-video-attributes-section-view-model",{props:{data:_.kg}});var rb_=_.A(function(N){var b=function(){var S,P,H;return(H=(S=N.data().leadingLogoAccessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)!=null?H:""};
return _.c("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.c(_.W,{cond:function(){return N.data().leadingLogo},
then:function(S){return _.c(_.gG,{className:"ytwFantasySectionHeaderViewModelLogo",data:S,alt:b})}}),_.c("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.c(_.mD,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return N.data().title}}),_.c(_.mD,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return N.data().subtitle}})),_.c(_.kY,{data:function(){return N.data().trailingButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xf");var cb5=_.A(function(N){var b={};b=_.KU("ytwFantasyTeamViewModelHost",(b.ytwFantasyTeamViewModelCompact=function(){var H;return!((H=N.compact)==null||!H.call(N))},b.ytwFantasyTeamViewModelUser=function(){return N.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},b.ytwFantasyTeamViewModelOpponent=function(){return N.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},b));
var S=function(){var H,K,C;return(C=(H=N.data().teamLogoAccessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)!=null?C:""},P=_.nf(bJu,function(){return N.data().teamEntityKey});
return _.c("ytw-fantasy-team-view-model",{class:b},_.c(_.W,{cond:function(){return N.data().teamLogo},
then:function(H){return _.c(_.gG,{className:"ytwFantasyTeamViewModelLogo",data:H,alt:S})}}),_.c("div",{class:"ytwFantasyTeamViewModelMetadata"},_.c("div",{class:"ytwFantasyTeamViewModelHeader"},_.c(_.mD,{className:"ytwFantasyTeamViewModelScore",
text:function(){var H;return(H=P())==null?void 0:H.score}}),_.c(_.cX,{icon:function(){var H;
return(H=P())==null?void 0:H.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.c(_.mD,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var H;return(H=P())==null?void 0:H.projectedScore}})),_.c(_.mD,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return N.data().primaryText}}),_.c(_.mD,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return N.data().secondaryText}}),_.c(_.mD,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return N.data().tertiaryText}})),_.c(_.mD,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var H;return(H=P())==null?void 0:H.score}}))},"yf");_.qu(_.A(function(N){return _.c("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.c("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.c(_.kY,{data:function(){return N.data().summaryHeader}},{fantasySectionHeaderViewModel:rb_})),_.c(_.kY,{data:function(){return N.data().userTeam}},{fantasyTeamViewModel:cb5}),_.c(_.kY,{data:function(){return N.data().opponentTeam}},{fantasyTeamViewModel:cb5}))},"zf"),"fantasy-league-summary-view-model",{props:{data:_.kg}});var a_t=_.A(function(N){var b=_.h_(N,{shape:{},useCustomTabRenderable:!1}),S=b.shape;b=b.useCustomTabRenderable;var P=N.customTabRenderable,H=function(){return S().disabled},K=function(){return S().selected},C=function(){return S().title},G=function(){return S().icon},a=_.Ct("yt-tab-shape");
N=_.Ob(function(d){var m;if(!H()&&((m=S().aTagConfig)==null?0:m.onclick))S().aTagConfig.onclick(d);return!1});
var R=_.Ob(function(d){if(d.key==="Enter"||d.key==="ArrowUp"||d.key==="ArrowDown")d.preventDefault(),a.value.click();return!1}),n={};
return _.c("yt-tab-shape",{class:_.KU("yt-tab-shape",function(){return S().className},(n["yt-tab-shape__tab--last-tab"]=function(){return S().isLastTab},n["yt-tab-shape--host-disabled"]=H,n["yt-tab-shape--host-clickable"]=!P,n)),
role:P?void 0:"tab","aria-selected":K!=null?K:!1,"aria-disabled":H,tabindex:P?void 0:0,"on:click":N,"on:keydown":R,el:a,"tab-identifier":function(){return S().identifier},
"tab-title":C},_.c(_.W,{cond:b,then:function(){return P()},
else:function(){var d={},m={};return _.c(_.nM,null,_.c("div",{class:_.KU("yt-tab-shape__tab",(d["yt-tab-shape__tab--tab-selected"]=K,d))},_.c(_.W,{cond:G,then:function(k){return _.c(_.cX,{className:"yt-tab-shape__tab-icon",icon:function(){return k().iconType}})}}),C),_.c("div",{class:_.KU("yt-tab-shape__tab-bar",(m["yt-tab-shape__tab-bar--tab-bar-selected"]=K,m))}))}}))},"Af");
a_t.idomCompat={callbacks:{customTabRenderable:!0}};_.W95=_.A(function(N){var b=N.shape;N=_.O(_.QF(48,void 0,"nDAx4"));var S=N.next().value,P=N.next().value;N=_.O(_.QF(0,void 0,"GCgjqb"));var H=N.next().value,K=N.next().value,C=function(){return b().tabs},G=_.Ct("yt-tab-group-shape"),a=function(){var m,k;
return(k=(m=C())==null?void 0:m.findIndex(function(M){return M.selected}))!=null?k:-1};
N=_.O(_.QF(!1,void 0,"SU01tf"));var R=N.next().value,n=N.next().value,d=function(){R()||_.Dj.addJob(function(){n(!0)},0)};
_.gA(function(){var m=a(),k=_.Dj.addJob(function(){var M,l=((M=G.value)==null?void 0:M.querySelectorAll("yt-tab-shape"))||[],u;P(((u=m>-1?l[m]:void 0)==null?void 0:u.getBoundingClientRect().width)||0);for(u=M=0;u<m;u++)M+=l[u].offsetWidth+24;_.Vg("HTML_DIR")==="rtl"&&(M=-M);K(M);d()},8,0);
_.ej(function(){_.Dj.cancelJob(k)})},"PMwgb");
N={};return _.c("yt-tab-group-shape",{class:_.KU("tabGroupShapeHost",(N.tabGroupShapeOverflowHidden=function(){return b().isOverflowHidden},N)),
el:G},_.c(_.W,{cond:C,then:function(m){return _.c(_.nM,null,_.c("div",{class:"tabGroupShapeTabs",role:"tablist"},_.c(_.zj,{each:m},function(k,M){return _.c(a_t,{shape:function(){return Object.assign({},k,{isLastTab:M()===m().length-1})},
customTabRenderable:k.customTabRenderable,useCustomTabRenderable:!!k.customTabRenderable})})),_.c(REO,{width:S,
sliderOffset:H,enableTransition:R}))}}))},"Cf");
_.W95.idomCompat=!0;var REO=_.A(function(N){var b=_.$q(N.sliderOffset,0),S=N.width,P=N.enableTransition;N={};return _.c("div",{class:_.KU("tabGroupShapeSlider",(N.tabGroupShapeSliderTransition=function(){return P()},N)),
style:_.r5({width:function(){return S()+"px"},
transform:function(){return"translateX("+b()+"px)"}})})},"Df");var nOw=_.A(function(N){var b=function(){var K,C,G;return(G=(K=N.data().playerLogoAccessibility)==null?void 0:(C=K.accessibilityData)==null?void 0:C.label)!=null?G:""},S=_.nf(Sfu,function(){return N.data().playerEntityKey}),P={};
P=_.KU("ytwFantasyPlayerViewModelHost",(P.ytwFantasyPlayerViewModelPlaying=function(){var K;return!((K=S())==null||!K.isPlayerPlaying)},P.ytwFantasyPlayerViewModelOnField=function(){var K;
return((K=S())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},P.ytwFantasyPlayerViewModelRedZone=function(){var K;
return((K=S())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},P));
var H=function(){var K,C,G,a=((K=_.aN().resolve(_.cq(_.T8)))==null?0:K())?(C=N.data().playerLogoBackgroundColor)==null?void 0:C.darkTheme:(G=N.data().playerLogoBackgroundColor)==null?void 0:G.lightTheme;return a===void 0?"":_.o3(a)};
return _.c("ytw-fantasy-player-view-model",{class:P},_.c(_.W,{cond:function(){return N.data().playerLogo},
then:function(K){return _.c("div",{class:"ytwFantasyPlayerViewModelLogo"},_.c("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.c(_.gG,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.r5({"background-color":H}),data:K,alt:b})),_.c("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.c(_.cX,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.c("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.c("div",{class:"ytwFantasyPlayerViewModelHeader"},_.c(_.mD,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var K;return(K=N.data())==null?void 0:K.playerNameText}}),_.c(_.mD,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var K;return(K=N.data())==null?void 0:K.playerDescriptionText}})),_.c("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.c(_.mD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=S())==null?void 0:K.gamePeriodText}}),_.c(_.mD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=N.data())==null?void 0:K.opponentTeamText}}),_.c(_.mD,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=S())==null?void 0:K.gameStatusText}}),_.c(_.mD,{className:_.KU("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var K;return(K=S())==null?void 0:K.playerStatusText}})),_.c("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.c(_.mD,{text:function(){var K;
return(K=S())==null?void 0:K.playerStatsText}}))),_.c(_.mD,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var K;return(K=S())==null?void 0:K.fantasyScore}}))},"Ef");var dLO=_.A(function(N){return _.c("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.c(_.W,{cond:function(){return N.data().players},
then:function(b){return _.c(_.kY,{data:b},{fantasyPlayerViewModel:nOw})}}))},"Ff");var mLQ=_.A(function(N){var b=_.O(_.qI(function(){var H;return(H=N.data().selectedTabIdentifierKey)!=null?H:""})),S=b.next().value,P=b.next().value;
_.pM(function(){var H;(H=N.setSelectedTabSignal)==null||H.call(N,S)});
return _.c("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.c("div",{class:"ytTabbedViewModelTabGroup"},_.c(_.W95,{shape:function(){var H=N.data(),K=[],C={tabs:K};if(!H.tabs)return C;H=_.O(H.tabs);for(var G=H.next(),a={};!G.done;a={tabViewModel:void 0},G=H.next())if(a.tabViewModel=_.t(G.value,krk),a.tabViewModel){var R=G=void 0;K.push({aTagConfig:{onclick:function(n){return function(){var d;P((d=n.tabViewModel.tabIdentifier)!=null?d:"")}}(a)},
identifier:a.tabViewModel.tabIdentifier,selected:S()===a.tabViewModel.tabIdentifier,title:(R=(G=a.tabViewModel.title)==null?void 0:G.content)!=null?R:""})}return C}})),_.c(_.kY,{data:function(){var H,K=_.O((H=N.data().tabs)!=null?H:[]);
for(H=K.next();!H.done;H=K.next())if((H=_.t(H.value,krk))&&H.tabIdentifier===S())return H.content}},{fantasyRosterViewModel:dLO}))},"Hf");_.qu(_.A(function(N){var b=_.O(ruL()),S=b.next().value,P=b.next().value;return _.c("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.c(_.mD,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return N.data().title}}),_.c(_.W,{cond:function(){return N.data().tabbedViewModel},
then:function(H){return _.c(_.kY,{data:H},{tabbedViewModel:function(K){return _.c(mLQ,{data:K.data,setSelectedTabSignal:P})}})}}),_.c(_.W,{cond:function(){var H,K=(H=_.t(N.data().tabbedViewModel,T3N))==null?void 0:H.tabs;
H=_.t(K==null?void 0:K[0],krk);K=_.t(K==null?void 0:K[1],krk);var C=H==null?void 0:H.tabIdentifier;if(S()===C){var G,a;if(!((G=_.t(H==null?void 0:H.content,JH9))==null?0:(a=G.players)==null?0:a.length))return N.data().noUserTeamPlayersText}else{var R,n;if(!((R=_.t(K==null?void 0:K.content,JH9))==null?0:(n=R.players)==null?0:n.length))return N.data().noOpponentTeamPlayersText}},
then:function(H){return _.c(_.mD,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:H})}}))},"If"),"ytw-fantasy-matchup-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){return _.c("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.c(_.mD,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return N.data().title}}),_.c(_.W,{cond:function(){return N.data().matchupTeamPairs},
then:function(b){return _.c(_.zj,{each:b,keyBy:"INDEX"},function(S){return _.c("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.c(_.kY,{data:function(){return[S().firstTeam,S().secondTeam]}},{fantasyTeamViewModel:function(P){return _.c(cb5,{data:P.data,
compact:!0})}}))})}}))},"Jf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=function(){var H,K,C;return(C=(H=N.data().userLogoAccessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)!=null?C:""},S=function(){var H,K,C;
return(C=(H=N.data().opponentLogoAccessibility)==null?void 0:(K=H.accessibilityData)==null?void 0:K.label)!=null?C:""},P=_.nf(NBf,function(){return N.data().entityKey});
return _.c("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.c("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.c(_.W,{cond:function(){return N.data().userLogo},
then:function(H){return _.c(_.gG,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:b})}}),_.c("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.c(_.mD,{text:function(){return N.data().title}})),_.c(_.W,{cond:function(){return N.data().opponentLogo},
then:function(H){return _.c(_.gG,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:S})}})),_.c("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.c("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.c(_.mD,{text:function(){var H;
return(H=P())==null?void 0:H.userWinNumberLabel}})),_.c("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.c("div",{class:_.KU("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.r5({flex:function(){var H,K;return(K=(H=P())==null?void 0:H.userWinNumber)!=null?K:50}})}),_.c("div",{class:_.KU("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.r5({flex:function(){var H,K;return(K=(H=P())==null?void 0:H.opponentWinNumber)!=null?K:50}})})),_.c("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.c(_.mD,{text:function(){var H;
return(H=P())==null?void 0:H.opponentWinNumberLabel}}))))},"Kf"),"fantasy-win-probability-view-model",{props:{data:_.kg}});var koE={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},TIi=_.A(function(N){return _.c(_.kY,{data:N.button},{buttonViewModel:function(b){return _.c(_.j$,{data:b.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Lf"),tpE=_.A(function(N){return _.c("ytd-backstage-locked-post-view-model",{class:_.KU("ytdBackstageLockedPostViewModelHost",N.className)},_.c("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.c("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.c(_.kY,
{data:function(){return N.data().authorAvatar}},{decoratedAvatarViewModel:_.Gg})),_.c("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.c("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.c(_.mD,{text:function(){return N.data().authorText}})),_.c("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.c(_.mD,{text:function(){return N.data().publishedTimeText}}),_.c(_.kY,{data:function(){return N.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(b){return _.c(Ts9,
{data:b.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.c("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.c(_.mD,{text:function(){return N.data().contentText}})),_.c(_.Al,null,_.c(_.ZH,{when:function(){return N.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.c("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.c(_.gG,{data:koE,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.c(_.mD,{text:function(){return N.data().lockedText}}))}),_.c(_.ZH,{when:function(){return N.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.c("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.c("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.c(_.gG,{data:koE,
alt:""})),_.c(_.mD,{text:function(){return N.data().lockedText}}))})),_.c("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.c(TIi,{button:function(){return N.data().likeButton}}),_.c("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return N.data().voteCountA11y}},_.c(_.mD,{text:function(){return N.data().voteCount}})),_.c(TIi,{button:function(){return N.data().dislikeButton}}),_.c(TIi,{button:function(){return N.data().commentButton}}),_.c("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return N.data().commentCountA11y}},_.c(_.mD,{text:function(){return N.data().commentCount}}))))},"Mf");
tpE.idomCompat=!0;_.qu(tpE,"ytd-backstage-locked-post-view-model",{props:{data:_.kg,className:_.kg}});_.lo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var lj=function(){var N=_.z.apply(this,arguments)||this;N.darkerPanels=_.T("web_watch_darker_panels");N.commentsHidePanelButton=!1;N.isWatchGrid=!1;N.continuationShowButton=!1;N.isSearch=!1;N.isConstrainedList=!1;N.isWatch=!1;N.eligibleToSwitchToGrid=!1;N.useBigThumbs=!1;N.epRestyle=!1;N.isCarouselInFeed=!0;N.topSpacingZero=!1;N.continuationIsInitialLoad=!0;N.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");N.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");N.notSticky=
!0;N.mastheadHeight=0;N.isStickyChipBarSetup=!1;N.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};N.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return N};
_.F(lj,_.z);_.v=lj.prototype;_.v.updateLockupContainerTypes=function(N){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(S){S.containerType=N})}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")}}};
_.v.created=function(){};
_.v.updateStickySetup=function(){_.T("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.v.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(DFE(!this.notSticky))};
_.v.setupStickyChipBar=function(){var N=this;if(!this.isStickyChipBarSetup&&_.T("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.aA(this,this.updateHeaderState));var b;this.mastheadHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(S){N.handleIntersect(S)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){N.updateHeaderState();N.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.v.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.aA(this,this.updateHeaderState));var N;(N=this.intersectionObserver)==null||N.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect()}};
_.v.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.v.handleIntersect=function(N){this.notSticky=N[0].intersectionRatio===1};
_.v.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.v.detached=function(){this.teardownStickyChipBar()};
_.v.updated=function(N){N.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.v.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var N=_.H4(this.hostElement).querySelector("ytd-comments-header-renderer");N&&(N.hidePanelButton=this.commentsHidePanelButton)}};
_.v.onRetrieveLocation=function(N,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)};
_.v.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.v.onLoadReloadContinuation=function(N,b){var S=this;N.stopPropagation();this.isReloading=!0;_.bC(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(P){var H=_.aN().resolve(_.ts);P=b(P);H.postData(P).then(function(K){S.onReloadContinuationData(K)})}})};
_.v.onReloadContinuationData=function(N){if(N=this.get("response.continuationContents.itemSectionContinuation",N)||this.get("response.contents.itemSectionRenderer",N)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",N)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",N))this.set("data.contents",N.contents||N.results),N.header&&this.set("data.header",N.header),this.set("data.continuations",
N.continuations||[]);this.isReloading=!1};
_.v.computeContentsClass=function(N){return N?"reloading":""};
_.v.computeSectionIdentifier=function(N){return N==null?void 0:N.sectionIdentifier};
_.v.computeFitContainer=function(N){return(N==null?void 0:N.sectionIdentifier)==="youchat-item-section"};
_.v.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.T("kevlar_disable_comments_auto_load")};
_.v.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.v.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.v.computeHasDestinationShelfRenderer=function(N){var b,S;return!!(N==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.destinationShelfRenderer)};
_.v.computeHasSectionGroupViewModel=function(N){var b,S;return!!(N==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.sectionGroupViewModel)};
_.v.computeHasQrCodeRenderer=function(N){var b,S;return!!(N==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.qrCodeRenderer)};
_.v.computeStaticCommentsHeader=function(N){return N&&this.containsComments()};
_.v.computeEpRestyle=function(N){return _.T("web_ep_restyling")&&N&&this.containsComments()};
_.v.computeIsContinuationCommentSection=function(N){return(N==null?void 0:N.targetId)==="shorts-engagement-panel-comments-section"||(N==null?void 0:N.targetId)==="comments-section"||(N==null?void 0:N.targetId)==="engagement-panel-comments-section"};
_.v.computeSuppressPaddingDisclaimer=function(){var N,b,S,P;return!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:(P=S.productListHeaderRenderer)==null?0:P.suppressPaddingDisclaimer)};
_.v.computeHeaderStyle=function(N){switch(N==null?void 0:N.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.v.dataChanged=function(){this.firstCommentsLoaded=!1};
_.v.observeDataContentsLength=function(){var N,b;((N=this.data)==null?0:(b=N.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.v.onYtDismissibleItemDismissedChange=function(N){this._setItemDismissed(N.type==="yt-dismissible-item-dismissed")};
_.v.triggerContinuations=function(){for(var N=_.H4(this.hostElement).querySelector("#continuations").children,b=0;b<N.length;b++)N[b].trigger()};
_.v.triggerInitialContinuations=function(){for(var N=_.H4(this.hostElement).querySelector("#continuations").children,b=0;b<N.length;b++)N[b].triggerIfNotPreviouslyTriggered()};
_.v.handleYtItemSectionContinuation=function(N,b){var S;b&&((S=this.data)==null?void 0:S.sectionIdentifier)!==b||(this.set("data.continuations",[N]),this.triggerContinuations())};
_.v.handleYtItemSectionReplace=function(N,b){var S;b&&((S=this.data)==null?void 0:S.sectionIdentifier)!==b||(this.set("data.contents",N),this.set("data.continuations",[]))};
_.v.computeUseHeightHack=function(N){return N&&!_.T("kevlar_disable_height_hack")};
_.v.computeTopSpacingZero=function(N){return N};
_.v.continuationShowButtonChanged=function(){var N=_.H4(this.hostElement).querySelector("ytd-continuation-item-renderer");N&&(N.showButton=this.continuationShowButton)};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("data-changed",this.data))};
_.d0.Object.defineProperties(lj.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P,H,K,C;return!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:(P=S.shelfRenderer)==null?0:(H=P.content)==null?0:(K=H.gridRenderer)==null?0:(C=K.targetId)==null?0:C.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b[0])==null?0:S.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.m6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.T("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.T("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs&&_.T("web_watch_next_big_thumbs_expanded_layout")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.T("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.data)==null?0:(b=N.header)==null?0:b.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.T("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.T("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
lj.prototype.dataChangedForBinding=lj.prototype.dataChangedForBinding;lj.prototype.continuationShowButtonChanged=lj.prototype.continuationShowButtonChanged;lj.prototype.onYtDismissibleItemDismissedChange=lj.prototype.onYtDismissibleItemDismissedChange;lj.prototype.observeDataContentsLength=lj.prototype.observeDataContentsLength;lj.prototype.dataChanged=lj.prototype.dataChanged;lj.prototype.onServiceRequestCompleted=lj.prototype.onServiceRequestCompleted;lj.prototype.onLoadReloadContinuation=lj.prototype.onLoadReloadContinuation;
lj.prototype.onRetrieveLocation=lj.prototype.onRetrieveLocation;lj.prototype.commentsHidePanelButtonChanged=lj.prototype.commentsHidePanelButtonChanged;lj.prototype.dispatchChipBarIsSticky=lj.prototype.dispatchChipBarIsSticky;lj.prototype.updateStickySetup=lj.prototype.updateStickySetup;lj.prototype.updateLockupContainerTypes=lj.prototype.updateLockupContainerTypes;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],lj.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],lj.prototype,"ytLazyListBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],lj.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.L(_.F3),_.y("design:type",Object)],lj.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],lj.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],lj.prototype,"darkerPanels",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],lj.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"commentsHidePanelButton",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"isWatchGrid",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"continuationShowButton",void 0);_.p([_.U({computed:"computeIsContinuationCommentSection(data)"}),_.y("design:type",Boolean)],lj.prototype,"continuationIsCommentsSection",void 0);
_.p([_.U({value:!0}),_.y("design:type",Boolean)],lj.prototype,"autoFill",void 0);_.p([_.U(),_.y("design:type",Boolean)],lj.prototype,"continuationDisablePrescanVisibility",void 0);_.p([_.U(),_.y("design:type",Boolean)],lj.prototype,"isReloading",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"isSearch",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"isConstrainedList",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"isWatch",void 0);
_.p([_.U(),_.y("design:type",Object)],lj.prototype,"eligibleToSwitchToGrid",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"useBigThumbs",void 0);_.p([_.U({selector:_.o7,reflectToAttribute:!0}),_.y("design:type",Object)],lj.prototype,"isGridViewEnabled",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Object)],lj.prototype,"epRestyle",void 0);
_.p([_.f("isWatch"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"hideShortsShelfHeader",null);_.p([_.f("isSearch","isWatch"),_.y("design:type",String),_.y("design:paramtypes",[])],lj.prototype,"thumbnailWidth",null);_.p([_.f("isSearch","containerWidth"),_.y("design:type",Object),_.y("design:paramtypes",[])],lj.prototype,"thumbnailTargetWidth",null);
_.p([_.f("isSearch","isWatch","useBigThumbs"),_.y("design:type",String),_.y("design:paramtypes",[])],lj.prototype,"sizing",null);_.p([_.f("isWatch","isGridViewEnabled","useBigThumbs","data"),_.U({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],lj.prototype,"lockupContainerType",null);_.p([_.W4("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],lj.prototype,"updateLockupContainerTypes",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],lj.prototype,"pageSubtype",void 0);_.p([_.U(),_.y("design:type",Number)],lj.prototype,"containerWidth",void 0);_.p([_.U(),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"isPlaylist",null);_.p([_.U(),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"isClipList",null);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"isCarouselInFeed",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"isPlaylistVideoContainer",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"isSearchFrictionPage",null);_.p([_.U({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.y("design:type",Boolean)],lj.prototype,"useHeightHack",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.y("design:type",Object)],lj.prototype,"topSpacingZero",void 0);_.p([_.U({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.y("design:type",Boolean)],lj.prototype,"showButton",void 0);_.p([_.U(),_.y("design:type",Boolean)],lj.prototype,"firstCommentsLoaded",void 0);_.p([_.U(),_.y("design:type",Object)],lj.prototype,"continuationIsInitialLoad",void 0);
_.p([_.U({reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],lj.prototype,"itemDismissed",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.y("design:type",String)],lj.prototype,"sectionIdentifier",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.y("design:type",String)],lj.prototype,"fitContainer",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.y("design:type",Boolean)],lj.prototype,"hasDestinationShelfRenderer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.y("design:type",Boolean)],lj.prototype,"staticCommentsHeader",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],lj.prototype,"enableSqueezebackPanels",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],lj.prototype,"enableAnchoredPanel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.y("design:type",Boolean)],lj.prototype,"hasSectionGroupViewModel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.y("design:type",Boolean)],lj.prototype,"hasQrCodeRenderer",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.y("design:type",Boolean)],lj.prototype,"suppressDisclaimerSeparator",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.y("design:type",String)],lj.prototype,"headerStyle",void 0);_.p([_.f("isSearch","isWatch","useBigThumbs"),_.y("design:type",Object),_.y("design:paramtypes",[])],lj.prototype,"lockupExperiments",null);
_.p([_.f("isSearch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"typographyBump",null);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],lj.prototype,"header",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],lj.prototype,"notSticky",void 0);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],lj.prototype,"useChipBarViewModelHeader",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"expFixPlaylistHeader",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],lj.prototype,"expFixPlaylistHeaderV2",null);_.p([_.W4("pageSubtype"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"updateStickySetup",null);
_.p([_.W4("notSticky"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"dispatchChipBarIsSticky",null);_.p([_.W4("commentsHidePanelButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"commentsHidePanelButtonChanged",null);_.p([_.RA("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lj.prototype,"onRetrieveLocation",null);
_.p([_.RA("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Function]),_.y("design:returntype")],lj.prototype,"onLoadReloadContinuation",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"onServiceRequestCompleted",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"dataChanged",null);
_.p([_.t_("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"observeDataContentsLength",null);_.p([_.RA("yt-dismissible-item-dismissed"),_.RA("yt-dismissible-item-undismissed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],lj.prototype,"onYtDismissibleItemDismissedChange",null);
_.p([_.W4("continuationShowButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"continuationShowButtonChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lj.prototype,"dataChangedForBinding",null);_.p([_.Uj({is:"ytd-item-section-renderer",disableElementRegistration:!0})],lj);
_.X(lj,"ytd-item-section-renderer",function(){if(um9!==void 0)return um9;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return um9=N},{mode:1});var Mp6;var Ref=_.gy(_.cN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var F9n={},aDp=(F9n[0]={title:_.bV(_.cN("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.wX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},F9n[1]={title:_.bV(_.cN("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.wX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},F9n);_.lo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Lj=function(){var N=_.z.apply(this,arguments)||this;N.allVideosCount=0;N.allPlaylistCount=0;N.isOnline=!1;N.shouldRenderDownloadsBanner=!1;N.shouldRenderDownloadsBannerUpsell=!1;N.hasOptedIntoSmartDownloads=!1;N.areAllSmartDownloadsDeleted=!1;N.smartDownloadsCompleted=!1;return N};
_.F(Lj,_.z);Lj.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Lj.prototype.attached=function(){this.downloadsToRenderChanged()};
Lj.prototype.detached=function(){this.set("renderableData",{})};
Lj.prototype.downloadsToRenderChanged=function(){var N=_.h0().getState().entities,b=_.Lu(N),S=_.T("kevlar_playlist_dl_page_killswitch")?JDp(N):_.fu(N),P=_.LDs(N),H=_.xZu(N),K=_.TL(b);N=_.uV(N);this.set("renderableData",nmf(S,b,P,H,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,K,N))};
Lj.prototype.downloadsToRenderChanged=Lj.prototype.downloadsToRenderChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Lj.prototype,"renderableData",void 0);_.p([_.U({selector:_.V$u}),_.y("design:type",Object)],Lj.prototype,"allVideosCount",void 0);_.p([_.U({selector:wb9}),_.y("design:type",Object)],Lj.prototype,"allPlaylistCount",void 0);_.p([_.U({selector:_.J0}),_.y("design:type",Object)],Lj.prototype,"isOnline",void 0);_.p([_.U({selector:_.ND9}),_.y("design:type",Object)],Lj.prototype,"shouldRenderDownloadsBanner",void 0);
_.p([_.U({selector:_.HNs}),_.y("design:type",Object)],Lj.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.p([_.U({selector:_.bNp}),_.y("design:type",Object)],Lj.prototype,"hasOptedIntoSmartDownloads",void 0);_.p([_.U({selector:_.SM9}),_.y("design:type",Object)],Lj.prototype,"areAllSmartDownloadsDeleted",void 0);_.p([_.U({selector:P$U}),_.y("design:type",Object)],Lj.prototype,"smartDownloadsCompleted",void 0);
_.p([_.t_("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Lj.prototype,"downloadsToRenderChanged",null);_.p([_.Uj({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Lj);
_.X(Lj,"ytd-offline-item-section-renderer",function(){if(Mp6!==void 0)return Mp6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Mp6=N},
{mode:1});var BIt;var l_5;var fj=function(){return _.z.apply(this,arguments)||this};
_.F(fj,_.z);
fj.prototype.onDataChanged=function(){if(this.JSC$17091_lastData){var N=this.getFilterClass(this.JSC$17091_lastData.status);N&&this.hostElement.classList.remove(N)}var b;(N=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(N);N==="selected"?_.H4(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.H4(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");N==="disabled"?_.H4(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.H4(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17091_lastData=this.data};
fj.prototype.getFilterClass=function(N){switch(N){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
fj.prototype.onDataChanged=fj.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fj.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fj.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],fj);
_.X(fj,"ytd-search-filter-renderer",function(){if(l_5!==void 0)return l_5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return l_5=N},{mode:_.sZ("kevlar_poly_si_batch_j075")?1:2});var uj=function(){return _.z.apply(this,arguments)||this};
_.F(uj,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uj.prototype,"data",void 0);_.p([_.Uj({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],uj);
_.X(uj,"ytd-search-filter-group-renderer",function(){if(BIt!==void 0)return BIt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return BIt=N},{mode:_.sZ("kevlar_poly_si_batch_j075")?1:2});var L9L;var QA=function(){return _.z.apply(this,arguments)||this};
_.F(QA,_.z);QA.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.oo());this.isCollapsed=!this.isCollapsed};
QA.prototype.navigateToAboutTheseResultsPage=function(){var N=_.I$("https://www.youtube.com/howyoutubeworks/product-features/search/");N?_.Kg(window,N,"_blank"):_.e_(Error("Vh"))};
QA.prototype.dataChanged=function(){this.isCollapsed=!0};
QA.prototype.computeShowBottomBorder=function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.button)==null?0:b.toggleButtonRenderer)||!((S=this.data)==null||!S.aboutTheseResultsButton)};
QA.prototype.dataChanged=QA.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QA.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.y("design:type",Boolean)],QA.prototype,"showBottomBorder",void 0);_.p([_.U(),_.y("design:type",Boolean)],QA.prototype,"renderCollapsibleMenu",void 0);
_.p([_.U(),_.y("design:type",Boolean)],QA.prototype,"isCollapsed",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QA.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],QA);
_.X(QA,"ytd-search-sub-menu-renderer",function(){if(L9L!==void 0)return L9L;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return L9L=N},{mode:1});var f_L;var ufw=new _.nO("SECTION_LIST_RENDERER_TOKEN");var QU5;var xF=function(){return _.z.apply(this,arguments)||this};
_.F(xF,_.z);xF.prototype.computeStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xF.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],xF.prototype,"headerStyle",void 0);_.p([_.Uj({is:"ytd-text-header-renderer",disableElementRegistration:!0})],xF);
_.X(xF,"ytd-text-header-renderer",function(){if(QU5!==void 0)return QU5;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return QU5=N},{mode:1});var xLq;var oi=function(){return _.z.apply(this,arguments)||this};
_.F(oi,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oi.prototype,"data",void 0);_.p([_.Uj({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],oi);
_.X(oi,"ytd-minor-moment-header-renderer",function(){if(xLq!==void 0)return xLq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xLq=N},{mode:1});var oOL;var ij=function(){return _.z.apply(this,arguments)||this};
_.F(ij,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ij.prototype,"data",void 0);_.p([_.Uj({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],ij);
_.X(ij,"ytd-minor-moment-setting-alert-renderer",function(){if(oOL!==void 0)return oOL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return oOL=N},{mode:1});var iaE;var JbL;var Jc=function(){var N=_.z.apply(this,arguments)||this;N.booleanSettingById=!1;N.smartDownloadsEnabledVE=_.OW(128287);N.smartDownloadsDisabledVE=_.OW(128286);N.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return N};
_.F(Jc,_.z);_.v=Jc.prototype;_.v.attachSmartDownloadsSettingVes=function(){var N;this.activeVeForLogging||((N=this.data)==null?void 0:N.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Ew(_.dG(),this.smartDownloadsEnabledVE),_.Ew(_.dG(),this.smartDownloadsDisabledVE))};
_.v.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.bC(this.hostElement,"yt-settings-switch-ready")};
_.v.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.v.onSwitchChange=function(N){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(N=_.gQ(N).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.T("kevlar_settings_switch_resolve_command_killswitch")?_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(N)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.v.handleUpdateSettingsSwitch=function(N){(N=_.t(N,wuE))&&this.data&&this.data.id===N.id&&this.set("data.enabled",!!N.enabled)};
_.v.onToggleSettingsSwitch=function(N,b){this.data&&this.data.id===N&&this.set("data.enabled",b!=null?b:!this.data.enabled)};
_.v.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.ut.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.v.maybeLogSmartDownloadsSettingVisibility=function(){var N=_.Qh(),b;N&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.pA(N,[this.smartDownloadsEnabledVE]),_.YR(N,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.pA(N,[this.smartDownloadsDisabledVE]),_.YR(N,[this.smartDownloadsEnabledVE])))};
_.v.maybeLogSmartDownloadsSettingClick=function(){var N;((N=this.data)==null?void 0:N.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.YD(_.dG(),this.activeVeForLogging)};
_.v.updateDataEnabledFromBinding=function(N){this.set("data.enabled",N.detail.value)};
_.d0.Object.defineProperties(Jc.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!N&&(N=this.ytRendererBehavior.getSimpleString(this.data.title));return N}}});
Jc.prototype.dataChanged=Jc.prototype.dataChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],Jc.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Jc.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Jc.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Jc.prototype,"data",void 0);_.p([_.U({selector:function(N,b){if(Object.keys(N==null?void 0:N.entities).length)switch(b){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return UZU(N.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.y("design:type",Object)],Jc.prototype,"booleanSettingById",void 0);_.p([_.U(),_.y("design:type",_.f6)],Jc.prototype,"activeVeForLogging",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jc.prototype,"toggleAriaLabel",null);_.p([_.t_("data"),_.t_("booleanSettingById"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Jc.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Jc);
_.X(Jc,"ytd-settings-switch-renderer",function(){if(JbL!==void 0)return JbL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JbL=N},{mode:1});var US=function(){return _.z.apply(this,arguments)||this};
_.F(US,_.z);US.prototype.configureRendererStamper=function(){return{"data.settings":{id:"settings",mapping:{settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{minorMomentSettingAlertRenderer:{component:"ytd-minor-moment-setting-alert-renderer",noInjection:!0}}}}};
_.d0.Object.defineProperties(US.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var N=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(N+=" remove-left-margin");this.data.extraBottomSpace&&(N+=" extra-bottom-space");return N}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],US.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],US.prototype,"contentsClassName",null);_.p([_.Uj({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],US);
_.X(US,"ytd-minor-moment-setting-section-renderer",function(){if(iaE!==void 0)return iaE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return iaE=N},{mode:1});var ULQ;var Zw=function(){return _.z.apply(this,arguments)||this};
_.F(Zw,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Zw.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Zw.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Zw);
_.X(Zw,"ytd-empty-product-details-renderer",function(){if(ULQ!==void 0)return ULQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ULQ=N},{mode:1});var ZaE;var jUn;var jh=function(){var N=_.z.apply(this,arguments)||this;N.expanded=!0;return N};
_.F(jh,_.z);jh.prototype.getBadgeRowClass=function(N,b,S){for(var P=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),H=P.next();!H.done;H=P.next())H.value.onShow();N=N.selected;return S?N!==-1?N===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(N!==void 0?N:0)===b?"badge-line":"badge-hidden"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],jh.prototype,"expanded",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],jh);
_.X(jh,"ytd-sponsorships-loyalty-badges-renderer",function(){if(jUn!==void 0)return jUn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jUn=N},{mode:1});var zEE;var zU=function(){var N=_.z.apply(this,arguments)||this;N.expanded=!0;return N};
_.F(zU,_.z);zU.prototype.getContainerClasses=function(N,b){N=N?"expanded":"collapsed";b&&(N+=" item");return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zU.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],zU.prototype,"expanded",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],zU);
_.X(zU,"ytd-sponsorships-perk-renderer",function(){if(zEE!==void 0)return zEE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return zEE=N},{mode:1});var AbJ;var Ac=function(){var N=_.z.apply(this,arguments)||this;N.expanded=!0;return N};
_.F(Ac,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ac.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ac.prototype,"expanded",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Ac);
_.X(Ac,"ytd-sponsorships-perks-renderer",function(){if(AbJ!==void 0)return AbJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return AbJ=N},{mode:1});var Xb=function(){var N=_.z.apply(this,arguments)||this;N.isCollapsed=!1;return N};
_.F(Xb,_.z);Xb.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Xb.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Xb.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var N;this.expandCollapseButton=_.t((N=this.data)==null?void 0:N.expandButton,_.rU)}else{var b;this.expandCollapseButton=_.t((b=this.data)==null?void 0:b.collapseButton,_.rU)}};
Xb.prototype.updateExpandCollapseButton=Xb.prototype.updateExpandCollapseButton;Xb.prototype.onDataChanged=Xb.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Xb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Xb.prototype,"isCollapsed",void 0);_.p([_.U(),_.y("design:type",Object)],Xb.prototype,"expandCollapseButton",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xb.prototype,"onDataChanged",null);_.p([_.t_("data","isCollapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xb.prototype,"updateExpandCollapseButton",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Xb);
_.X(Xb,"ytd-sponsorships-expandable-perks-renderer",function(){if(ZaE!==void 0)return ZaE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ZaE=N},{mode:1});var Xs_;var ES=function(){return _.z.apply(this,arguments)||this};
_.F(ES,_.z);ES.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ES.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ES);
_.X(ES,"ytd-sponsorships-actionable-message-renderer",function(){if(Xs_!==void 0)return Xs_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Xs_=N},{mode:1});var EOi;var pj=function(){return _.z.apply(this,arguments)||this};
_.F(pj,_.z);_.v=pj.prototype;_.v.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.v.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.v.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.computeMessageContainerStyle=function(N){var b=N.expandableItems?" style-clickable":"";return N.messageContainerStyle?N.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b};
_.v.isSinglePerk=function(N){return!!N.messageContainerStyle&&(N.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||N.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.v.onExpandedChanged=function(){var N=this;if(this.expanded)for(var b=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),S=b.next();!S.done;S=b.next())S.value.onShow();_.W_(this,function(){_.bC(N.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
pj.prototype.onDataChanged=pj.prototype.onDataChanged;pj.prototype.onExpandedChanged=pj.prototype.onExpandedChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pj.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],pj.prototype,"expanded",void 0);
_.p([_.W4("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pj.prototype,"onExpandedChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pj.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],pj);
_.X(pj,"ytd-sponsorships-expandable-message-renderer",function(){if(EOi!==void 0)return EOi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return EOi=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var psE;var YF=function(){return _.z.apply(this,arguments)||this};
_.F(YF,_.z);YF.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
YF.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.t(this.data.endButton,_.rU).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
YF.prototype.onDataChanged=YF.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YF.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YF.prototype,"onDataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],YF);
_.X(YF,"ytd-sponsorships-heading-renderer",function(){if(psE!==void 0)return psE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return psE=N},{mode:1});var YeO;var yA=function(){return _.z.apply(this,arguments)||this};
_.F(yA,_.z);_.p([_.U(),_.y("design:type",Object)],yA.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],yA);
_.X(yA,"ytd-sponsorships-links-renderer",function(){if(YeO!==void 0)return YeO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return YeO=N},{mode:1});var yba;var Ii=function(){return _.z.apply(this,arguments)||this};
_.F(Ii,_.z);_.v=Ii.prototype;_.v.onDataChanged=function(){if(this.data&&this.data.expandableItems){var N;(N=_.H4(this.hostElement).querySelector("tp-yt-paper-button"))==null||N.setAttribute("role","button")}else{var b;(b=_.H4(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}};
_.v.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.v.getTileClasses=function(N){return N?"tile expandable-tile":"tile"};
_.v.getButtonDisabled=function(N){return N?void 0:""};
Ii.prototype.onDataChanged=Ii.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ii.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ii.prototype,"expanded",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ii.prototype,"onDataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Ii);
_.X(Ii,"ytd-sponsorships-list-tile-renderer",function(){if(yba!==void 0)return yba;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yba=N},{mode:1});var I_a;var DLE;var Dw=function(){return _.z.apply(this,arguments)||this};
_.F(Dw,_.z);Dw.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Dw.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Dw);
_.X(Dw,"ytd-sponsorships-promotion-renderer",function(){if(DLE!==void 0)return DLE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return DLE=N},{mode:1});var Vp6;var VA=function(){return _.z.apply(this,arguments)||this};
_.F(VA,_.z);VA.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VA.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],VA);
_.X(VA,"ytd-sponsorships-purchase-option-renderer",function(){if(Vp6!==void 0)return Vp6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Vp6=N},{mode:1});var gO6;var eE_;var $L6=function(){return _.z.apply(this,arguments)||this};
_.F($L6,_.z);_.p([_.U(),_.y("design:type",Object)],$L6.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],$L6);
_.X($L6,"ytd-ypc-offer-promo-renderer",function(){if(eE_!==void 0)return eE_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return eE_=N},{mode:1});var gi=function(){return _.z.apply(this,arguments)||this};
_.F(gi,_.z);_.v=gi.prototype;
_.v.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.v.expansionCTA=function(N,b){return N&&(b?N.collapseCallToAction:N.expansionCallToAction)};
_.v.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.v.expansionCallToActionTap=function(){var N=this;this.expanded=!this.expanded;_.W_(this,function(){_.bC(N.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var N,b=(N=this.data)==null?void 0:N.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)};
_.v.computeDisplayTitle=function(N){return!(!N||this.titledisplaystatus!=="show")};
_.v.computeDisplaySeparator=function(){return!1};
_.v.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
gi.prototype.onDataChanged=gi.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gi.prototype,"data",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],gi.prototype,"expanded",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],gi.prototype,"purchaseButtonClicked",void 0);_.p([_.U({reflectToAttribute:!0,value:"show"}),_.y("design:type",String)],gi.prototype,"titledisplaystatus",void 0);_.p([_.U({computed:"computeDisplayTitle(data.title)"}),_.y("design:type",Boolean)],gi.prototype,"displayTitle",void 0);
_.p([_.U({computed:"computeDisplaySeparator(data)"}),_.y("design:type",Boolean)],gi.prototype,"displaySeparator",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gi.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],gi);
_.X(gi,"ytd-sponsorships-tier-renderer",function(){if(gO6!==void 0)return gO6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gO6=N},{mode:2});var eh=function(){return _.z.apply(this,arguments)||this};
_.F(eh,_.z);
eh.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eh.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],eh);
_.X(eh,"ytd-sponsorships-management-renderer",function(){if(I_a!==void 0)return I_a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return I_a=N},{mode:1});var hEJ;var $F=function(){return _.z.apply(this,arguments)||this};
_.F($F,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$F.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],$F);
_.X($F,"ytd-open-in-native-app-view-model",function(){if(hEJ!==void 0)return hEJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return hEJ=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var qe_;var wsO;var N96=_.$E(["top-"]),b9Q=_.$E(["bottom-"]),SdE=_.$E(["left-"]),PEq=_.$E(["right-"]),H96={},sbE=function(N,b,S){N.removeAttribute("top-"+S);N.removeAttribute("bottom-"+S);N.removeAttribute("left-"+S);N.removeAttribute("right-"+S);b&&(b.top&&_.RX([_.ko(N96)],N,"top-"+S,b.top),b.bottom&&_.RX([_.ko(b9Q)],N,"bottom-"+S,b.bottom),b.left&&_.RX([_.ko(SdE)],N,"left-"+S,b.left),b.right&&_.RX([_.ko(PEq)],N,"right-"+S,b.right))};
H96.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(N){var b,S=_.H4((b=this.hostElement)!=null?b:this),P;b=this.cardItemBoxBehaviorMarginTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(P=this.hostElement)!=null?P:this;sbE(b,N,"margin")},
cardItemContainerPaddingChanged_:function(N){var b,S=_.H4((b=this.hostElement)!=null?b:this),P;b=this.cardItemBoxBehaviorPaddingTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(P=this.hostElement)!=null?P:this;sbE(b,N,"padding")}}];var hc={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Kci;var vZw;var q2=function(){return _.z.apply(this,arguments)||this};
_.F(q2,_.z);q2.prototype.textColorChanged_=function(){this.hostElement.style.color=hc[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
q2.prototype.textColorChanged_=q2.prototype.textColorChanged_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.p([_.L(H96.YtCardItemBoxBehavior),_.y("design:type",Object)],q2.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],q2.prototype,"data",void 0);_.p([_.W4("data.textColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],q2.prototype,"textColorChanged_",null);
_.p([_.J_({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],q2);
_.X(q2,"yt-card-item-text-renderer",function(){if(vZw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Kci===void 0&&(Kci=document.createElement("template"));var P=Kci;S.call(b,P.content.cloneNode(!0),N.content.firstChild);vZw=N}N=vZw;return N},{mode:2});var O9t;var CEw;var wi=function(){return _.z.apply(this,arguments)||this};
_.F(wi,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wi.prototype,"data",void 0);_.p([_.J_({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],wi);
_.X(wi,"yt-card-item-badge-renderer",function(){if(CEw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;O9t===void 0&&(O9t=document.createElement("template"));var P=O9t;S.call(b,P.content.cloneNode(!0),N.content.firstChild);CEw=N}N=CEw;return N},{mode:2});var G4J;var rVa;var Ne=function(){return _.z.apply(this,arguments)||this};
_.F(Ne,_.z);Ne.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ne.prototype,"data",void 0);_.p([_.J_({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ne);
_.X(Ne,"yt-card-item-text-collection-renderer",function(){if(rVa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;G4J===void 0&&(G4J=document.createElement("template"));var P=G4J;S.call(b,P.content.cloneNode(!0),N.content.firstChild);rVa=N}N=rVa;return N},{mode:2});var cVE;var alL;var bf=function(){return _.z.apply(this,arguments)||this};
_.F(bf,_.z);bf.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bf.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],bf.prototype,"iconSize",void 0);_.p([_.J_({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],bf);
_.X(bf,"yt-card-item-text-with-button-renderer",function(){if(alL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;cVE===void 0&&(cVE=document.createElement("template"));var P=cVE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);alL=N}N=alL;return N},{mode:2});var Sv=function(){return _.z.apply(this,arguments)||this};
_.F(Sv,_.z);Sv.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Sv.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Sv.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Sv);
_.X(Sv,"ytd-commerce-cart-summary-line-item-renderer",function(){if(wsO!==void 0)return wsO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wsO=N},{mode:1});_.lo("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var PD=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;return N};
_.F(PD,_.z);_.v=PD.prototype;_.v.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.v.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.v.updateSummary=function(){var N=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&N.checkoutSummaryText){var S,P=Qc((S=this.data)==null?void 0:S.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",xe(N.checkoutSummaryText));if(N.checkoutDetailText){var H;S=Qc((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",xe(N.checkoutDetailText))}if(N.checkoutAdditionalMetadataText){var K;
H=Qc((K=this.data)==null?void 0:K.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",xe(N.checkoutAdditionalMetadataText))}}else N.estimatedTotalPrice&&(K=Qc((P=this.data)==null?void 0:P.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",xe(N.estimatedTotalPrice)))};
_.v.updateIsHidden=function(){var N,b=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isHidden;b!==void 0&&(this.hidden=b)};
_.v.updateCheckoutButton=function(){var N,b=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var S;N=(S=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:S.innertubeCommand;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",N);var P;S=(P=this.commerceCartCheckoutButtonEntity)==null?void 0:P.checkoutButtonText;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:S})};
PD.prototype.entityChanged=PD.prototype.entityChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],PD.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],PD.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],PD.prototype,"fullWidth",void 0);_.p([_.U(),_.y("design:type",Object)],PD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],PD.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PD.prototype,"hidden",void 0);
_.p([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Dlp}),_.y("design:type",Object)],PD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.p([_.W4("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PD.prototype,"entityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],PD);
_.X(PD,"ytd-commerce-cart-checkout-button-renderer",function(){if(qe_!==void 0)return qe_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return qe_=N},{mode:2});var ROo;_.WcE={};
_.WcE.YtTappableItemBehavior=[{properties:{tappableItemBehaviorTapEnabled:{type:Boolean,value:!1,observer:"tappableItemBehaviorOnTapEnabledChanged_"}},observers:["tappableItemBehaviorOnTapChanged_(data.onTap)"],listeners:{"yt-commerce-action-init-done":"tappableItemBehaviorOnServiceRequestFinished_","yt-service-request-error":"tappableItemBehaviorOnServiceRequestFinished_","yt-commerce-action-done":"tappableItemBehaviorOnServiceRequestFinished_"},created:function(){this.tappableItemBehaviorTargetId="";
this.tappableItemBehaviorBoundOnTappableItemKeyDown_=this.tappableItemBehaviorOnTappableItemKeyDown_.bind(this);this.tappableItemBehaviorBoundOnTappableItemTap_=this.tappableItemBehaviorOnTappableItemTap_.bind(this)},
attached:function(){this.tappableItemBehaviorGetTappableTarget_().addEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().addEventListener("click",_.aA(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.aA(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(N){!this.tappableItemBehaviorTapEnabled||N.keyCode!==13&&N.keyCode!==32||N.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var N=this.data.onTap;N.ypcGetCartEndpoint?(_.HN(this.hostElement,[N]),this.tappableItemBehaviorTapEnabled=!1):N.ypcOffersEndpoint?_.HN(this.hostElement,[N]):_.sR(this.hostElement,[N],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(N){this.tappableItemBehaviorTapEnabled=!!N},
tappableItemBehaviorOnTapEnabledChanged_:function(){var N=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(N.setAttribute("tabIndex",0),N.setAttribute("role","button")):(N.removeAttribute("tabIndex"),N.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(N){N.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var nZi;var dSq;var HD=function(){return _.z.apply(this,arguments)||this};
_.F(HD,_.z);HD.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.LU("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.LU("sharingToggleButtonAndDefaultButton")}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HD.prototype,"data",void 0);_.p([_.J_({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],HD);
_.X(HD,"yt-card-item-actions-renderer",function(){if(dSq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;nZi===void 0&&(nZi=document.createElement("template"));var P=nZi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);dSq=N}N=dSq;return N},{mode:2});var mS_;var k4Q;var T9a;var t9i;var M9E;var FcE;var sz=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return N};
_.F(sz,_.z);sz.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
sz.prototype.handleDarkModeToggledAction_=function(N){this.isDarkTheme_=N};
sz.prototype.computeThemeImage_=function(N,b){if(!N||!N.imageLight)return!1;this.isCircular_=N.isCircular;N.imageWidth&&(this.hostElement.style.width=N.imageWidth+"px");N.imageHeight&&(this.hostElement.style.height=N.imageHeight+"px");N.borderWidth&&(this.image.style.borderWidth=N.borderWidth+"px",this.image.style.borderStyle="solid");N.borderColor&&(this.image.style.borderColor=_.o3(N.borderColor));return b&&N.imageDark?N.imageDark:N.imageLight};
sz.prototype.computeThemeIcon_=function(N){var b,S;if(!(N==null?0:(b=N.themedIcon)==null?0:(S=b.icon)==null?0:S.iconType))return!1;this.icon.style.color=hc[N.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(N.imageWidth||18)+"px";this.icon.style.height=(N.imageHeight||18)+"px";return _.C7(N.themedIcon.icon.iconType)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(H96.YtCardItemBoxBehavior),_.y("design:type",Object)],sz.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],sz.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sz.prototype,"data",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],sz.prototype,"fit",void 0);_.p([_.U(),_.y("design:type",Boolean)],sz.prototype,"isDarkTheme_",void 0);_.p([_.U({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.y("design:type",Object)],sz.prototype,"themeImage_",void 0);_.p([_.U({computed:"computeThemeIcon_(data)"}),_.y("design:type",Object)],sz.prototype,"themeIcon_",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Object)],sz.prototype,"isCircular_",void 0);
_.p([_.dq("#image"),_.y("design:type",Object)],sz.prototype,"image",void 0);_.p([_.dq("#icon"),_.y("design:type",Object)],sz.prototype,"icon",void 0);_.p([_.J_({is:"yt-themed-image-renderer",disableElementRegistration:!0})],sz);
_.X(sz,"yt-themed-image-renderer",function(){if(FcE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;M9E===void 0&&(M9E=document.createElement("template"));var P=M9E;S.call(b,P.content.cloneNode(!0),N.content.firstChild);FcE=N}N=FcE;return N},{mode:2});var K$=function(){return _.z.apply(this,arguments)||this};
_.F(K$,_.z);K$.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"themed-image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
K$.prototype.computeImagePlacement_=function(N){return N||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],K$.prototype,"data",void 0);_.p([_.U({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.y("design:type",String)],K$.prototype,"imagePlacement",void 0);
_.p([_.J_({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],K$);
_.X(K$,"yt-card-item-text-with-image-renderer",function(){if(t9i===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;T9a===void 0&&(T9a=document.createElement("template"));var P=T9a;S.call(b,P.content.cloneNode(!0),N.content.firstChild);t9i=N}N=t9i;return N},{mode:2});var vD=function(){return _.z.apply(this,arguments)||this};
_.F(vD,_.z);vD.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vD.prototype,"data",void 0);_.p([_.J_({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],vD);
_.X(vD,"yt-card-item-error-renderer",function(){if(k4Q===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;mS_===void 0&&(mS_=document.createElement("template"));var P=mS_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);k4Q=N}N=k4Q;return N},{mode:2});var B9E;var llE;_.lo("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Oz=function(){return _.z.apply(this,arguments)||this};
_.F(Oz,_.z);_.v=Oz.prototype;
_.v.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.v.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.v.backgroundColorChanged_=function(){var N,b=(N=this.data)==null?void 0:N.backgroundColor;N=hc[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.H4(this.hostElement).querySelector("#main-content").style.backgroundColor=N};
_.v.headerPromoBackgroundColorChanged_=function(){var N,b=(N=this.data)==null?void 0:N.headerPromoBackgroundColor;N=hc[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.H4(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=N};
_.v.errorRendererVisibilityChanged_=function(){var N=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!N};
_.v.onYtToggleButton_=function(N,b){this.isExpanded_=b.toggled};
Oz.prototype.onYtToggleButton_=Oz.prototype.onYtToggleButton_;Oz.prototype.errorRendererVisibilityChanged_=Oz.prototype.errorRendererVisibilityChanged_;Oz.prototype.headerPromoBackgroundColorChanged_=Oz.prototype.headerPromoBackgroundColorChanged_;Oz.prototype.backgroundColorChanged_=Oz.prototype.backgroundColorChanged_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(H96.YtCardItemBoxBehavior),_.y("design:type",Object)],Oz.prototype,"ytCardItemBoxBehavior",void 0);_.p([_.L(_.WcE.YtTappableItemBehavior),_.y("design:type",Object)],Oz.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Oz.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Oz.prototype,"isExpanded_",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],Oz.prototype,"isErrorRendererVisible_",void 0);_.p([_.W4("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oz.prototype,"backgroundColorChanged_",null);_.p([_.W4("data.headerPromoBackgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oz.prototype,"headerPromoBackgroundColorChanged_",null);
_.p([_.W4("data.errorRenderer","isExpanded_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oz.prototype,"errorRendererVisibilityChanged_",null);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],Oz.prototype,"onYtToggleButton_",null);_.p([_.J_({is:"yt-card-item-renderer",disableElementRegistration:!0})],Oz);
_.X(Oz,"yt-card-item-renderer",function(){if(llE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;B9E===void 0&&(B9E=document.createElement("template"));var P=B9E;S.call(b,P.content.cloneNode(!0),N.content.firstChild);llE=N}N=llE;return N},{mode:2});_.lo("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var C$=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;return N};
_.F(C$,_.z);_.v=C$.prototype;_.v.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.v.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var N,b=(N=this.commerceCartHeaderEntity)==null?void 0:N.isHidden;b!==void 0&&(this.hidden=b)}};
_.v.updateTitle=function(){var N=this.commerceCartHeaderEntity.isDisabled,b,S,P=(S=_.t((b=this.data)==null?void 0:b.item,$T4))==null?void 0:S.headingRenderer;P&&(b=Qc(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".0.cardItemTextRenderer.textColor",N?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.v.updateSummaryText=function(){var N=this.commerceCartHeaderEntity;if(this.compact){var b,S,P=(S=_.t((b=this.data)==null?void 0:b.item,$T4))==null?void 0:S.headingRenderer;P&&(b=Qc(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".1.cardItemTextRenderer.text",N.shortHeaderSummaryText?xe(N.shortHeaderSummaryText):N.headerSummaryText?xe(N.headerSummaryText):""))}else{var H;if(b=(H=_.t((P=this.data)==null?void 0:P.item,$T4))==null?void 0:H.additionalInfoRenderer)b=Qc(b,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".text",N.headerSummaryText?xe(N.headerSummaryText):"")}};
_.v.updateCheckoutButton=function(){var N=this.commerceCartHeaderEntity,b,S,P=(S=_.t((b=this.data)==null?void 0:b.item,$T4))==null?void 0:S.additionalInfoRenderer;b=Qc(P,"buttonRenderer");var H;S=(H=this.commerceCartHeaderEntity)==null?void 0:H.isButtonDisabled;var K;H=(K=this.commerceCartHeaderEntity)==null?void 0:K.isButtonHidden;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.isDisabled",S);H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
H);var C;N=(C=N.checkoutButtonCommand)==null?void 0:C.innertubeCommand;N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.command",N)};
C$.prototype.entityChanged=C$.prototype.entityChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],C$.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],C$.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],C$.prototype,"compact",void 0);_.p([_.U({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(N,b){return _.GL(N.entities,"commerceCartHeaderEntity",b)}}),
_.y("design:type",Object)],C$.prototype,"commerceCartHeaderEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],C$.prototype,"hidden",void 0);_.p([_.W4("commerceCartHeaderEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],C$.prototype,"entityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],C$);
_.X(C$,"ytd-commerce-cart-header-renderer",function(){if(ROo!==void 0)return ROo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ROo=N},{mode:1});var Lcq;var flt=_.oS(function(N,b){var S;return(S=N.onChangeCallback)==null?void 0:S.call(N,b)},1E3),uNE=_.A(function(N){var b=N.data;
var S=N.iconMinus;N=N.iconPlus;var P=function(){return!!b().disabled},H=_.O(_.QF(0,void 0,"mKh0af")),K=H.next().value,C=H.next().value;
H=_.Ob(function(){if(K()===1){var d,m;(m=(d=b()).onRemoveCommand)==null||m.call(d)}d=K()>b().maxValue?b().maxValue:K()-1;C(d);flt(b(),d);return!1});
var G=_.Ob(function(){if(K()===b().maxValue)return!1;var d=K()+1;C(d);flt(b(),d);return!1});
_.pM(function(){C(b().value)});
var a={},R={},n={};return _.c("quantity-incrementer-shape",null,_.c("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.c("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return K()===(b().onRemoveCommand?0:1)||P()},
"aria-label":function(){return K()!==1?b().minusLabel:b().minimumReachedLabel},
"on:click":H},_.c(_.of,{model:{circular:!0}}),_.c("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.c("div",{class:_.KU("ytSpecQuantityIncrementerShapeIcon",(a.ytSpecQuantityIncrementerShapeIconDisabled=function(){return P()||K()===(b().onRemoveCommand?0:1)},a))},S()))),_.c("div",{class:_.KU("ytSpecQuantityIncrementerShapeText",(R.ytSpecQuantityIncrementerShapeTextInvalid=function(){return K()>b().maxValue},R.ytSpecQuantityIncrementerShapeTextDisabled=P,R))},K),_.c("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return K()>=b().maxValue||P()},
"aria-label":function(){return K()!==b().maxValue?b().plusLabel:b().maximumReachedLabel},
"on:click":G},_.c(_.of,{model:{circular:!0}}),_.c("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.c("div",{class:_.KU("ytSpecQuantityIncrementerShapeIcon",(n.ytSpecQuantityIncrementerShapeIconDisabled=function(){return K()>=b().maxValue||P()},n))},N())))))},"Of");_.qu(_.A(function(N){function b(){S().onRemoveCommand&&_.AM(S().onRemoveCommand)}
var S=N.data;var P=_.nf(K2p,function(){return S().quantityIncrementerEntityKey});
return _.c("yt-quantity-incrementer-view-model",null,_.c(uNE,{data:function(){var H=S(),K;var C=P()?!((K=P())==null||!K.disabled):!1;var G;K=P()?(G=P())==null?void 0:G.quantity:S().quantity;return kZu(H,C,b,K)},
iconMinus:function(){return _.c(_.cX,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.c(_.cX,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Pf"),"yt-quantity-incrementer-view-model",{props:{data:_.kg}});var G9=function(){var N=_.z.apply(this,arguments)||this;N.compact=!1;N.hasQuantityIncrementer=!1;return N};
_.F(G9,_.z);G9.prototype.configureRendererStamper=function(){return{"data.picker":{id:"picker",mapping:{quantityIncrementerViewModel:"yt-quantity-incrementer-view-model",dropdownRenderer:{component:"ytd-dropdown-renderer",params:{autosize:!0,minAutosizeWidth:0,noUnderline:!0,noLabelFloat:!0,usePrimaryColor:!0}}}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
G9.prototype.computeHasQuantityIncrementer=function(){var N;return!!_.t((N=this.data)==null?void 0:N.picker,N4N)};
G9.prototype.onLabelClick=function(){var N;(N=this.dropdownEl)==null||N.open()};
_.p([_.dq("ytd-dropdown-renderer"),_.y("design:type",Object)],G9.prototype,"dropdownEl",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],G9.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],G9.prototype,"quantityColor",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],G9.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.y("design:type",Object)],G9.prototype,"hasQuantityIncrementer",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],G9);
_.X(G9,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Lcq!==void 0)return Lcq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Lcq=N},{mode:1});var Qba;var xSn;var rT=function(){return _.z.apply(this,arguments)||this};
_.F(rT,_.z);rT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rT.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
rT.prototype.updateTitle=function(){var N=this.disabledCartItemEntity;N.disableActionName&&this.set("data.title",xe(N.disableActionName))};
rT.prototype.updateButton=function(){var N,b=(N=this.disabledCartItemEntity.undoCommand)==null?void 0:N.innertubeCommand;b!==void 0&&(this.set("data.actionButton.buttonRenderer.command",b),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
rT.prototype.entityChanged=rT.prototype.entityChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],rT.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(N,b){return _.GL(N.entities,"disabledCartItemEntity",b)}}),
_.y("design:type",Object)],rT.prototype,"disabledCartItemEntity",void 0);_.p([_.U(),_.y("design:type",Object)],rT.prototype,"data",void 0);_.p([_.W4("disabledCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rT.prototype,"entityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],rT);
_.X(rT,"ytd-disabled-cart-item-renderer",function(){if(xSn!==void 0)return xSn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return xSn=N},{mode:1});_.lo("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var cD=function(){var N=_.z.apply(this,arguments)||this;N.compact=!1;N.hidden=!1;N.errorHidden=!1;N.noOnTap=!1;return N};
_.F(cD,_.z);_.v=cD.prototype;
_.v.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.v.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.v.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var N=this.firstButtonElement;N.alignByText=!0;N.iconAlignByText=!0}};
_.v.computeNoOnTap=function(N){return!N};
_.v.updateQuantityColor=function(){if(this.pickerElement){var N,b=(N=this.commerceCartItemEntity)==null?void 0:N.quantityColor;this.pickerElement.quantityColor=b}};
_.v.updateTotalPriceColor=function(){var N,b=(N=this.commerceCartItemEntity)==null?void 0:N.totalPriceColor;if(b){var S;N=_.t((S=this.data)==null?void 0:S.quantityPicker,qNk);if(S=_.t(N==null?void 0:N.price,hmc))S.textColor=b}};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var N,b=(N=this.commerceCartItemEntity)==null?void 0:N.isHidden;b!==void 0&&(this.hidden=b)}};
_.v.updateHideErrorMessage=function(){var N,b=(N=this.commerceCartItemEntity)==null?void 0:N.hideErrorMessage;b!==void 0&&(this.errorHidden=b)};
_.v.updateQuantity=function(){var N=this,b,S=(b=this.commerceCartItemEntity)==null?void 0:b.quantity,P;b=(P=this.commerceCartItemEntity)==null?void 0:P.totalPrice;if(S){this.updateTotalPriceColor();this.updateQuantityColor();var H;P=_.t((H=this.data)==null?void 0:H.quantityPicker,qNk);if(H=_.t(P==null?void 0:P.price,hmc))H.text=b?{simpleText:b.content}:void 0;if(b=_.t(P==null?void 0:P.picker,N4N))b.quantity=S;var K;if(H=(K=_.t(P==null?void 0:P.picker,wt4))==null?void 0:K.entries){K=!1;b=void 0;H=
_.O(H);for(P=H.next();!P.done;P=H.next())P=P.value,P.dropdownItemRenderer&&(b||(b=P.dropdownItemRenderer),P.dropdownItemRenderer.isSelected=!1,S===P.dropdownItemRenderer.int32Value&&(K=!0,P.dropdownItemRenderer.isSelected=!0));!K&&b&&(b.isSelected=!0)}_.W_(this,function(){var C;N.set("data.quantityPicker",_.Vm.unsafeClone((C=N.data)==null?void 0:C.quantityPicker))})}};
cD.prototype.onYtRendererstamperFinished=cD.prototype.onYtRendererstamperFinished;cD.prototype.entityChanged=cD.prototype.entityChanged;_.p([_.U(),_.y("design:type",Object)],cD.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"compact",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],cD.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],cD.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(N,b){return _.GL(N.entities,"commerceCartItemEntity",b)}}),
_.y("design:type",Object)],cD.prototype,"commerceCartItemEntity",void 0);_.p([_.U(),_.y("design:type",Object)],cD.prototype,"quantityPicker",void 0);_.p([_.U(),_.y("design:type",Object)],cD.prototype,"compactQuantityPicker",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],cD.prototype,"errorHidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.y("design:type",Object)],cD.prototype,"noOnTap",void 0);_.p([_.dq("ytd-commerce-cart-item-quantity-picker-renderer"),_.y("design:type",Object)],cD.prototype,"pickerElement",void 0);_.p([_.dq("yt-button-renderer"),_.y("design:type",Element)],cD.prototype,"firstButtonElement",void 0);
_.p([_.W4("commerceCartItemEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"entityChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cD.prototype,"onYtRendererstamperFinished",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],cD);
_.X(cD,"ytd-commerce-cart-item-renderer",function(){if(Qba!==void 0)return Qba;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Qba=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var oZi;var i9L;var al=function(){return _.z.apply(this,arguments)||this};
_.F(al,_.z);al.prototype.configureRendererStamper=function(){return{"data.summaryLineItems":{id:"summary-line-items",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}}}}}};
al.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
al.prototype.updateCheckoutLineItems=function(){var N,b=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.checkoutLineItems;b&&(N=b.map(function(S){a:{var P=S.price,H=S.description;switch(S.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:xe(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:xe(P),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:xe(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:xe(P),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return S}),this.set("data.summaryLineItems",N))};
al.prototype.updateIsHidden=function(){var N,b=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isHidden;b!==void 0&&(this.hostElement.hidden=b)};
al.prototype.entityChanged=al.prototype.entityChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],al.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],al.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],al.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Dlp}),_.y("design:type",Object)],al.prototype,"commerceCartCheckoutButtonEntity",void 0);_.p([_.W4("commerceCartCheckoutButtonEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],al.prototype,"entityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],al);
_.X(al,"ytd-commerce-cart-summary-renderer",function(){if(i9L!==void 0)return i9L;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return i9L=N},{mode:1});var JVa={};JVa.InjectBehavior=[NHU.InjectBehavior];var USi;var Z9J;var Rl=function(){return _.z.apply(this,arguments)||this};
_.F(Rl,_.z);
Rl.prototype.configureRendererStamper=function(){return{"data.sectionHeading":{id:"section-heading",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.image":{id:"image",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.title":{id:"title",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.subtitle":{id:"subtitle",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.additionalMetadata":{id:"additional-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},
"data.activityMetadata":{id:"activity-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.menu":{id:"menu",mapping:_.LU("menuRenderer")}}};
Rl.prototype.onMenuTap=function(N){N.stopPropagation()};
_.d0.Object.defineProperties(Rl.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var N,b;return!(((N=this.data)==null||!N.sectionHeading)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var N,b;return!(((N=this.data)==null||!N.image)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var N,b;return!(((N=this.data)==null||!N.menu)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.WcE.YtTappableItemBehavior),_.y("design:type",Object)],Rl.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rl.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data.accessibilityData"),_.y("design:type",String),_.y("design:paramtypes",[])],Rl.prototype,"ariaLabel",null);_.p([_.f("data.sectionHeading","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Rl.prototype,"sectionHeadingVisible",null);_.p([_.f("data.image","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Rl.prototype,"imageVisible",null);
_.p([_.f("data.menu","data.layout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Rl.prototype,"menuVisible",null);_.p([_.J_({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Rl);
_.X(Rl,"yt-activity-item-renderer",function(){if(Z9J===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;USi===void 0&&(USi=document.createElement("template"));var P=USi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Z9J=N}N=Z9J;return N},{mode:2});var jbQ;var zOa;var AVE;var XkE;var WD=function(){return _.z.apply(this,arguments)||this};
_.F(WD,_.z);
WD.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.priceRenderer":{id:"price-renderer",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},
"data.actionsRenderer":{id:"actions-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
WD.prototype.backgroundColorChanged_=function(){var N,b=(N=this.data)==null?void 0:N.backgroundColor;this.hostElement.style.backgroundColor=hc[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
WD.prototype.backgroundColorChanged_=WD.prototype.backgroundColorChanged_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WD.prototype,"data",void 0);
_.p([_.W4("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WD.prototype,"backgroundColorChanged_",null);_.p([_.J_({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],WD);
_.X(WD,"yt-offer-item-upsell-renderer",function(){if(XkE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;AVE===void 0&&(AVE=document.createElement("template"));var P=AVE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);XkE=N}N=XkE;return N},{mode:2});_.lo("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var n$=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};N.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return N};
_.F(n$,_.z);_.v=n$.prototype;
_.v.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.LU("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.v.computeContainerStyle_=function(N){return N};
_.v.computeContainerIsHidden_=function(N){return N&&!!N.isHidden};
_.v.computeShowSpinner_=function(N,b){return N&&b==="in-progress"};
_.v.computeShowMoreContentsButton_=function(N,b,S,P,H){return!(!(P&&P.length||H&&H.length&&S)||!N||b)};
_.v.onToggleButton_=function(N){var b=this;N.stopPropagation();this.isExpanded_=N.detail&&N.detail.toggled;var S,P;this.isExpanded_&&!this.data.continuationSection.length&&((S=this.data)==null?0:(P=S.continuation)==null?0:P.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.bC(this.hostElement,"yt-load-next-continuation",function(H){return b.getContinuationUrl_(b.data.continuation.onClickContinuationData,H)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.HN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.v.onShowMoreContentsButtonClicked_=function(N){var b=this;N.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.bC(this.hostElement,"yt-load-next-continuation",function(S){return b.getContinuationUrl_(b.data.continuations[0].nextContinuationData,S)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.HN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.v.getContinuationUrl_=function(N,b){var S=N.continuation;N=N.clickTrackingParams;var P=_.Qh();N&&P&&_.y3(P,_.FA(N));return _.Hq(b,{continuation:S})};
_.v.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var N=_.H4(this.hostElement).querySelector("#continuation-section");N&&(N=N.querySelectorAll("ytmusic-item-section-renderer"))&&N.forEach(function(b){return b.classList.add("memberships-and-purchases")})};
_.v.dataChanged_=function(){var N;this.isExpanded_=!((N=this.data)==null||!N.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.v.updateCardOnClickCommand_=function(N){N=_.t(N,pOS);var b,S;this.data&&((b=this.data)==null?0:b.targetId)&&N&&N.targetId===((S=this.data)==null?void 0:S.targetId)&&N.onClickCommand&&(this.data.onClickCommand=N.onClickCommand,this.isOnClickCommand_=!0)};
_.v.backgroundColorChanged_=function(){var N,b=(N=this.data)==null?void 0:N.backgroundColor;this.hostElement.style.backgroundColor=hc[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
n$.prototype.backgroundColorChanged_=n$.prototype.backgroundColorChanged_;n$.prototype.dataChanged_=n$.prototype.dataChanged_;n$.prototype.nextContinuationDataUpdated_=n$.prototype.nextContinuationDataUpdated_;n$.prototype.onToggleButton_=n$.prototype.onToggleButton_;_.p([_.L(_.F3),_.y("design:type",Object)],n$.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],n$.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],n$.prototype,"ytNextContinuationBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.p([_.L(JVa.InjectBehavior),_.y("design:type",Object)],n$.prototype,"injectBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],n$.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],n$.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],n$.prototype,"isExpanded_",void 0);_.p([_.U({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.y("design:type",String)],n$.prototype,"containerStyle_",void 0);_.p([_.U({value:"not-started"}),_.y("design:type",String)],n$.prototype,"continuationStatus_",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.y("design:type",Boolean)],n$.prototype,"showSpinner_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],n$.prototype,"isOnClickCommand_",void 0);_.p([_.U({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.y("design:type",Boolean)],n$.prototype,"showMoreContentsButton_",void 0);
_.p([_.U({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(N,b){return!b||N.entities?null:_.GL(N.entities,"cardItemContainerEntity",b)}}),
_.y("design:type",Object)],n$.prototype,"cardItemContainerEntity_",void 0);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],n$.prototype,"onToggleButton_",null);_.p([_.RA("yt-next-continuation-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n$.prototype,"nextContinuationDataUpdated_",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n$.prototype,"dataChanged_",null);_.p([_.W4("data.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n$.prototype,"backgroundColorChanged_",null);_.p([_.J_({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],n$);
_.X(n$,"yt-card-item-container-renderer",function(){if(zOa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;jbQ===void 0&&(jbQ=document.createElement("template"));var P=jbQ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);zOa=N}N=zOa;return N},{mode:2});var dT=function(){return _.z.apply(this,arguments)||this};
_.F(dT,_.z);dT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{cardItemContainerRenderer:{component:"yt-card-item-container-renderer",params:{compact:!1}},commerceCartCheckoutButtonRenderer:"ytd-commerce-cart-checkout-button-renderer",commerceCartHeaderRenderer:"ytd-commerce-cart-header-renderer",cardItemRenderer:"yt-card-item-renderer"}},"data.cartSummary":{id:"cart-summary",mapping:{commerceCartSummaryRenderer:"ytd-commerce-cart-summary-renderer"}}}};
dT.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
dT.prototype.computeLoadingHidden=function(){var N;return!((N=this.commerceCartPageStateEntity)==null?0:N.cartActionInProgress)};
dT.prototype.updateNotification=function(){var N,b=(N=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:N.summaryText;b&&this.set("data.cartNotification",xe(b))};
dT.prototype.notificationEntityChanged=dT.prototype.notificationEntityChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],dT.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(N,b){return _.GL(N.entities,"commerceCartExpandableNotificationEntity",b)}}),
_.y("design:type",Object)],dT.prototype,"commerceCartExpandableNotificationEntity",void 0);_.p([_.U({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(N,b){return _.GL(N.entities,"commerceCartPageStateEntity",b)}}),
_.y("design:type",Object)],dT.prototype,"commerceCartPageStateEntity",void 0);_.p([_.dq("#spinner"),_.y("design:type",HTMLElement)],dT.prototype,"spinner",void 0);_.p([_.W4("commerceCartExpandableNotificationEntity","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dT.prototype,"notificationEntityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],dT);
_.X(dT,"ytd-commerce-cart-renderer",function(){if(oZi!==void 0)return oZi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return oZi=N},{mode:1});var EZt;var m1=function(){var N=_.z.apply(this,arguments)||this;N.bigImage=!1;return N};
_.F(m1,_.z);_.d0.Object.defineProperties(m1.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.placeholderImageUrl}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],m1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],m1.prototype,"bigImage",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],m1.prototype,"placeholderImageUrl",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],m1);
_.X(m1,"ytd-empty-product-shelf-renderer",function(){if(EZt!==void 0)return EZt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return EZt=N},{mode:1});var pki;var kW=function(){var N=_.z.apply(this,arguments)||this;N.itemStyle="link-item";N.watchMetadataRefresh=!1;N.skinnyMode=!1;N.metaPanel=!1;N.inStructuredDescription=!1;N.detailedDescriptionOverride=!1;N.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};N.updateOnResizeDebouncer=null;return N};
_.F(kW,_.z);_.v=kW.prototype;_.v.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.v.attachVEs=function(N){N.trackingParams&&_.dG().graftServerVe(N.trackingParams)};
_.v.handleUpdateMerchShelfAction=function(N){var b=this,S=_.t(N.updateMerchandiseShelfAction.merchandiseShelf,_.WW9);S&&(S.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(S);b.data=S},Number(S.renderDelayMs))):(this.attachVEs(S),this.data=S))};
_.v.updateOnResize=function(){if(this.JSC$17259_scrollContainer!==void 0&&this.JSC$17259_scrollContainer.clientWidth!==0&&this.items!==void 0){var N=this.JSC$17259_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-N));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var S,
P;((S=this.data)==null?void 0:(P=S.items)==null?void 0:P.length)===1?this.itemStyle="cta-item":this.itemStyle=N>=740?"large-item":"small-item"}}};
_.v.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.L2(this.updateOnResizeDebouncer,_.Ro.after(100),this.updateOnResize)};
kW.prototype.debouncedUpdateOnResize=kW.prototype.debouncedUpdateOnResize;kW.prototype.dataChanged=kW.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],kW.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],kW.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kW.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"itemStyle",void 0);_.p([_.U({value:6}),_.y("design:type",Number)],kW.prototype,"initialCount",void 0);
_.p([_.U({value:"data.items"}),_.y("design:type",String)],kW.prototype,"itemsPath",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"watchMetadataRefresh",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"skinnyMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"metaPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"inStructuredDescription",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],kW.prototype,"detailedDescriptionOverride",void 0);_.p([_.dq("#items"),_.y("design:type",HTMLDivElement)],kW.prototype,"items",void 0);_.p([_.dq("#scroll-container"),_.y("design:type",HTMLDivElement)],kW.prototype,"JSC$17259_scrollContainer",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kW.prototype,"dataChanged",null);
_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kW.prototype,"debouncedUpdateOnResize",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],kW);
_.X(kW,"ytd-merch-shelf-renderer",function(){if(pki!==void 0)return pki;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return pki=N},{mode:2});var Yda;var T9=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return N};
_.F(T9,_.z);_.v=T9.prototype;
_.v.addBackstagePostAction=function(N){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(N=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",N))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:N}):this.set("data.contents",[{backstagePostThreadRenderer:N}]))};
_.v.addBackstageCommentAction=function(N){var b=this.get("addBackstageCommentAction.parentId",N);N=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",N);if(b&&N){b=this.postIdToIndices(b);for(var S=0;S<b.length;S++){var P=b[S];if(P<0)break;P="data.contents."+P+".backstagePostThreadRenderer.comments";this.get(P)&&(this.get(P+".backstageCommentsRenderer.contents")&&this.push(P+".backstageCommentsRenderer.contents",{commentThreadRenderer:N}),this.get(P+".backstageCommentsRenderer.teaserContents")?
this.push(P+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:N}):this.set(P+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:N}]))}}};
_.v.addBackstageReplyAction=function(N){var b=this.get("addBackstageReplyAction.parentId",N);N=this.get("addBackstageReplyAction.renderer.commentRenderer",N);b&&N&&this.setCreatorReply(b,N)};
_.v.banAuthorAction=function(N){var b=this.get("banAuthorAction.commentId",N);b&&(N=this.get("banAuthorAction.parentCommentId",N)||this.getParentPostId(b),this.removeFromStream(b,N))};
_.v.hideReportedCommentAction=function(N){var b=this.get("hideReportedCommentAction.commentId",N);b&&((N=this.get("hideReportedCommentAction.parentCommentId",N))||(N=this.getParentPostId(b)),this.removeFromStream(b,N))};
_.v.replaceBackstageCommentAction=function(N){var b=this.get("replaceBackstageCommentAction.commentId",N),S=this.get("replaceBackstageCommentAction.parentId",N);N=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",N);if(b&&S&&N){S=this.postIdToIndices(S);for(var P=0;P<S.length;P++){var H=S[P];if(H<0)break;var K=this.commentIdToIndex(b,H,!1);if(K>=0){var C=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K+".commentThreadRenderer.replies.commentRepliesRenderer");
C&&(N.replies={commentRepliesRenderer:C});this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",K,1,{commentThreadRenderer:N})}K=this.commentIdToIndex(b,H,!0);if(K>=0){if(C=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(K+".commentThreadRenderer.replies.commentRepliesRenderer")))N.replies={commentRepliesRenderer:C};this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
K,1,{commentThreadRenderer:N})}}}};
_.v.replaceBackstagePostAction=function(N){var b=this.get("replaceBackstagePostAction.itemId",N);if(b){b=this.postIdToIndices(b);for(var S=0;S<b.length;S++){var P=b[S];if(P<0)break;var H=this.getPostRendererType(P),K=this.get("replaceBackstagePostAction.renderer."+H,N);if(!K&&H!=="sharedPostRenderer")break;var C=!1;K||(C=!0,K=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",N));if(!K)break;var G={};C?(_.QN(G,iOl,K),this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
G)):(_.QN(G,new _.WF(H),K),this.set("data.contents."+P+".backstagePostThreadRenderer.post",G))}}};
_.v.replaceBackstageReplyAction=function(N){var b=this.get("replaceBackstageReplyAction.replyId",N),S=this.get("replaceBackstageReplyAction.parentId",N);N=this.get("replaceBackstageReplyAction.renderer.commentRenderer",N);b&&N&&S&&this.setCreatorReply(S,N)};
_.v.removeCommentAction=function(N){var b=this.get("removeCommentAction.commentId",N);if(b){var S=this.get("removeCommentAction.parentCommentId",N);S&&this.get("removeCommentAction.isCreatorReply",N)?this.setCreatorReply(S,void 0):(S||(S=this.getParentPostId(b)),this.removeFromStream(b,S))}};
_.v.setCreatorReply=function(N,b){var S=this.getParentPostId(N);if(S){S=this.postIdToIndices(S);for(var P=0;P<S.length;P++){var H=S[P];if(H<0)break;var K=this.commentIdToIndex(N,H,!1);if(K>=0){var C="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K;K=C+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";C+=".commentThreadRenderer.replies";b==void 0?(this.set(C,{}),this.set(K,!1)):(this.set(C,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),
this.set(C+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(K,!0))}K=this.commentIdToIndex(N,H,!0);K>=0&&(K="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+K,H=K+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",K+=".commentThreadRenderer.replies",b==void 0?(this.set(K,{}),this.set(H,!1)):(this.set(K,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(H,!0)))}}};
_.v.removeFromStream=function(N,b){if(b){b=this.postIdToIndices(b);for(var S=0;S<b.length;S++){var P=b[S];if(P<0)break;var H=this.commentIdToIndex(N,P,!1);H>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",H,1);H=this.commentIdToIndex(N,P,!0);H>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",H,1);P="data.contents."+P+".backstagePostThreadRenderer.post.backstagePostRenderer";
H=P+".backstageAttachment.pollRenderer.votedCommentId";this.get(H)===N&&(this.set(H,null),this.set(P+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(N).reverse(),S=0;S<b.length;S++){P=b[S];if(P<0)break;H=this.getPostRendererType(P);var K=this.get("backstagePostThreadRenderer.post."+H,this.data.contents[P]);K.postId===N?this.splice("data.contents",P,1):H==="sharedPostRenderer"&&this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);K.scheduledPublishTimeSec&&_.St(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.v.postIdToIndices=function(N){for(var b=[],S=0;S<this.data.contents.length;S++){var P=this.getPostRendererType(S);this.get("backstagePostThreadRenderer.post."+P+".postId",this.data.contents[S])===N&&b.push(S);if(P==="sharedPostRenderer"){var H=this.get("backstagePostThreadRenderer.post."+P+".originalPost.backstagePostRenderer.postId",this.data.contents[S]);P=this.get("backstagePostThreadRenderer.post."+P+".originalPost.postRenderer.postId",this.data.contents[S]);H!==N&&P!==N||b.push(S)}}return b};
_.v.commentIdToIndex=function(N,b,S){if(b<0)return-1;var P,H,K,C,G=_.t((P=this.data)==null?void 0:(H=P.contents)==null?void 0:(K=H[b])==null?void 0:(C=K.backstagePostThreadRenderer)==null?void 0:C.comments,xk9);return(b=S?G==null?void 0:G.teaserContents:G==null?void 0:G.contents)&&b.length?b.findIndex(function(a){return _.t(a,rF9).comment.commentRenderer.commentId===N}):-1};
_.v.getParentPostId=function(N){N=N.split(".");if(N[1])return N[0]};
_.v.getPostRendererType=function(N){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[N])?"sharedPostRenderer":"backstagePostRenderer"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],T9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],T9.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:_.T("enable_community_page_on_desktop")}),_.y("design:type",Boolean)],T9.prototype,"useSmallerPostContainer",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-backstage-items"})],T9);
_.X(T9,"ytd-backstage-items",function(){if(Yda!==void 0)return Yda;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Yda=
N},{mode:1});var yVq;var Ilt={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},ti=function(){var N=_.z.apply(this,arguments)||this;N.disablePrescanVisibility=!0;N.canScheduleJobs=!0;N.engagementPanel=!1;N.hidePanelButton=!1;N.isWatchGrid=
!1;N.hasShownSubscribersOnlyDisclaimer=!1;N.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};N.TEST_ONLY=void 0;return N};
_.F(ti,_.z);_.v=ti.prototype;_.v.created=function(){this.initCommentsCsi_();_.T("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.T("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.v.contentsChanged_=function(){var N;(N=this.data)!=null&&N.contents&&this.tickForCommentsTimer_("cml")};
_.v.headerChanged_=function(){var N;(N=this.data)!=null&&N.header&&this.tickForCommentsTimer_("cmhl")};
_.v.initCommentsCsi_=function(){_.fA("wn_comments");var N=_.Qh();N&&_.lC({clientScreenNonce:N},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.v.createCommentAction_=function(N){N=_.Vm.unsafeClone(N);var b,S;if(N=(b=_.t(N,SHS))==null?void 0:(S=b.contents)==null?void 0:S.commentThreadRenderer){var P,H,K,C,G,a;!this.isBackstage&&((P=this.data)==null?0:(H=P.header)==null?0:(K=H.commentsHeaderRenderer)==null?0:(C=K.createRenderer)==null?0:(G=C.commentSimpleboxRenderer)==null?0:(a=G.zeroStep)==null?0:a.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var R,
n,d;this.isBackstage&&_.t((R=this.data)==null?void 0:(n=R.header)==null?void 0:(d=n.commentsHeaderRenderer)==null?void 0:d.zeroStateMessage,Jqk)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(N)}};
_.v.doReplyInsert_=function(N,b,S,P){P?this.splice(N,P,0,b):this.push(N,b)};
_.v.getRepliesPath_=function(N){return"data.contents."+N+".commentThreadRenderer.replies"};
_.v.getRepliesContentsPath_=function(N,b){N=this.getRepliesPath_(N);return b?N+".commentRepliesRenderer.teaserContents":N+".commentRepliesRenderer.contents"};
_.v.showSubscribersOnlyDisclaimer_=function(N){(N=N.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&(_.St(this.hostElement,"yt-open-popup-action",[N,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.v.createCommentReplyAction_=function(N){N=_.Vm.unsafeClone(N);var b=_.t(N,Pm9);if(N=b==null?void 0:b.contents){var S=this.commentIdToIndex_(b==null?void 0:b.parentCommentId);if(!(S<0)){var P=this.getRepliesPath_(S);if(this.get(P)){b=b.replyToCommentId;P=this.getRepliesContentsPath_(S,!1);if(this.get(P)){var H=this.get(P).length,K=P+"."+(H-1)+".continuationItemRenderer";this.get(K+".button")?(K=this.replyIdToIndex_(b,S,!1),this.doReplyInsert_(P,N,K,H-1)):this.get(K)||(H=this.replyIdToIndex_(b,S,
!1),this.doReplyInsert_(P,N,H,null))}P=this.getRepliesContentsPath_(S,!0);this.get(P)?(S=this.replyIdToIndex_(b,S,!0),(!b||S>=0)&&this.doReplyInsert_(P,N,S,null)):this.set(P,[N])}else this.set(P,{commentRepliesRenderer:{teaserContents:[N]}})}}};
_.v.hideReportedCommentAction_=function(N){var b=_.t(N,FvE);if(N=b==null?void 0:b.commentId)(b=this.get("parentCommentId",b))||(b=this.getParentCommentId_(N)),this.remove_(N,b)};
_.v.getParentCommentId_=function(N){N=N.split(".");if(N[1])return N[0]};
_.v.removeCommentAction_=function(N){var b=_.t(N,O29);if(N=b==null?void 0:b.commentId)b=(b==null?void 0:b.parentCommentId)||this.getParentCommentId_(N),this.remove_(N,b)};
_.v.pinCommentAction_=function(N){N=_.Vm.unsafeClone(N);var b=_.t(N,vsz);b!=null&&b.commentId&&(N=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",N))&&(this.remove_(b.commentId),this.insert_(N,!0))};
_.v.unpinCommentAction_=function(N){N=_.Vm.unsafeClone(N);N=_.t(N,CmS);if(N!=null&&N.commentId){var b,S,P=(b=N.actionResult)==null?void 0:(S=b.update)==null?void 0:S.commentThreadRenderer;P&&(this.remove_(N.commentId),this.insert_(P))}};
_.v.banAuthorAction_=function(N){var b=_.t(N,b2V);b!=null&&b.commentId&&(N=b.commentId,b=b.parentCommentId||this.getParentCommentId_(N),this.remove_(N,b))};
_.v.handleScrollToCommentElement_=function(N){this.hostElement.contains(N)&&(this.nearestScrollParent||(this.nearestScrollParent=TvY(N)),this.isCommentVisibleInScrollParent(N)||N.scrollIntoView({behavior:"smooth",block:"start"}))};
_.v.isCommentVisibleInScrollParent=function(N){if(!this.nearestScrollParent)return!1;N=N.getBoundingClientRect();var b=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return N.top>=b.top&&N.bottom<=b.bottom};
_.v.commentIdToIndex_=function(N){var b;return N&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(S){S=S.commentThreadRenderer;var P;return N===((S==null?void 0:S.commentViewModel)&&((P=_.t(S.commentViewModel,d4N))==null?void 0:P.commentId))}):-1};
_.v.insert_=function(N,b){b=b===void 0?!1:b;var S,P;if((S=this.data)==null?0:(P=S.contents)==null?0:P.some(function(K){return!!K.commentThreadRenderer}))for(S=0,P=this.data.contents.length;S<P;S++){var H=this.data.contents[S].commentThreadRenderer;
if(Ilt[N.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Ilt[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){b&&Ilt[N.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Ilt[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",S,1,{commentThreadRenderer:N}):this.splice("data.contents",S,0,{commentThreadRenderer:N});break}}else this.set("data.contents",[{commentThreadRenderer:N}])};
_.v.doReplyRemove_=function(N,b,S){N=this.replyIdToIndex_(N,b,S);N<0||(b=this.getRepliesContentsPath_(b,S),this.splice(b,N,1))};
_.v.remove_=function(N,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(N),b<0||this.splice("data.contents",b,1)):_.T("web_delhi_comment_threads")||(this.doReplyRemove_(N,b,!1),this.doReplyRemove_(N,b,!0))};
_.v.replyIdToIndex_=function(N,b,S){if(b<0)return-1;b=this.getRepliesContentsPath_(b,S);b=this.get(b);if(!b||!b.length)return-1;S=0;for(var P=b.length;S<P;S++){var H=void 0,K=void 0;if(((H=b[S])==null?void 0:(K=H.commentViewModel)==null?void 0:K.commentId)===N)return S}return-1};
_.v.tickForCommentsTimer_=function(N){_.Q3(N,void 0,"wn_comments")};
_.v.reloadComments_=function(N){N=_.t(N,Wv9);_.t(N==null?void 0:N.command,_.J8)&&_.HN(this.hostElement,[N==null?void 0:N.command])};
_.d0.Object.defineProperties(ti.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.data)==null?0:(b=N.header)==null?0:(S=b.commentsHeaderRenderer)==null?0:S.isBackstageContent)}}});
_.d0.Object.defineProperties(ti,{template:{configurable:!0,enumerable:!0,get:function(){if(yVq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);yVq=N}N=yVq;return N}}});
ti.prototype.showSubscribersOnlyDisclaimer_=ti.prototype.showSubscribersOnlyDisclaimer_;ti.prototype.headerChanged_=ti.prototype.headerChanged_;ti.prototype.contentsChanged_=ti.prototype.contentsChanged_;_.p([_.L(_.u$),_.y("design:type",Object)],ti.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",Function)],ti.prototype,"ytPlayerListenerBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ti.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ti.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.header.commentsHeaderRenderer.isBackstageContent"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ti.prototype,"isBackstage",null);
_.p([_.U(),_.y("design:type",Object)],ti.prototype,"disablePrescanVisibility",void 0);_.p([_.U(),_.y("design:type",Object)],ti.prototype,"canScheduleJobs",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ti.prototype,"engagementPanel",void 0);_.p([_.U(),_.y("design:type",Object)],ti.prototype,"hidePanelButton",void 0);_.p([_.U(),_.y("design:type",Object)],ti.prototype,"isWatchGrid",void 0);_.p([_.U(),_.y("design:type",Object)],ti.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.p([_.W4("data.contents"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ti.prototype,"contentsChanged_",null);_.p([_.W4("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ti.prototype,"headerChanged_",null);_.p([_.RA("yt-show-subscribers-only-disclaimer"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ti.prototype,"showSubscribersOnlyDisclaimer_",null);
_.p([_.Uj({is:"ytd-comments"})],ti);var Me=function(){return _.kq.apply(this,arguments)||this};
_.F(Me,_.kq);_.v=Me.prototype;_.v.bindIf=function(N,b,S){return N?b:S};
_.v.bindIfDefined=function(N,b){return N!==void 0?N:b};
_.v.booleanString=function(N){return(!!N).toString()};
_.v.equals=function(){for(var N=_.$I.apply(0,arguments),b=N[0],S=1;S<N.length;S++)if(b!=N[S])return!1;return!0};
_.v.isGreaterThan=function(N,b){return N>b};
_.v.isLessThan=function(N,b){return N<b};
_.v.logicalAND=function(){for(var N=_.$I.apply(0,arguments),b=!!N[0],S=1;S<N.length;S++)b=b&&!!N[S];return b};
_.v.logicalOR=function(){for(var N=_.$I.apply(0,arguments),b=!!N[0],S=1;S<N.length;S++)b=b||!!N[S];return b};
_.v.toBool=function(N){return!!N};
Me.prototype.toBool=Me.prototype.toBool;Me.prototype.logicalOR=Me.prototype.logicalOR;Me.prototype.logicalAND=Me.prototype.logicalAND;Me.prototype.isLessThan=Me.prototype.isLessThan;Me.prototype.isGreaterThan=Me.prototype.isGreaterThan;Me.prototype.equals=Me.prototype.equals;Me.prototype.booleanString=Me.prototype.booleanString;Me.prototype.bindIfDefined=Me.prototype.bindIfDefined;Me.prototype.bindIf=Me.prototype.bindIf;_.p([_.Td()],Me);_.DS_=[Me.prototype];var V9O;var gZE;var FZ=function(){return _.z.apply(this,arguments)||this};
_.F(FZ,_.z);FZ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
FZ.prototype.onBackIconTap_=function(){window.history.back()};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FZ.prototype,"data",void 0);_.p([_.J_({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],FZ);
_.X(FZ,"yt-header-with-back-renderer",function(){if(gZE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;V9O===void 0&&(V9O=document.createElement("template"));var P=V9O;S.call(b,P.content.cloneNode(!0),N.content.firstChild);gZE=N}N=gZE;return N},{mode:2});var eOE;var $S6;var BD=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(BD,_.z);_.v=BD.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N,this.setUrl())};
_.v.dataChanged=function(){var N=this;if(this.data){var b=this.setUrl();b&&_.rP({destination:window,iframe:this.iframe,origin:_.pR9(b.toString()),channelName:"yt-iframe",onMessage:function(S){(S=N.getCommunicationCommand(S.data))&&N.ytComponentBehavior.resolveCommand(S)},
onEstablished:function(){}})}};
_.v.setUrl=function(){if(this.data&&this.data.iframeUrl){var N=_.Vb(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(N)return _.SW(this.iframe,N),N}};
_.v.getCommunicationCommand=function(N){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(H){return H.key===N});
if(b==null?0:b.value)return b==null?void 0:b.value;try{var S=i5N(_.qL(N)),P=this.data.onCommunicationCommandsMap.find(function(H){return H.key===(S==null?void 0:S.getMethodName())});
if(P==null?0:P.value)return P==null?void 0:P.value}catch(H){}}};
BD.prototype.dataChanged=BD.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],BD.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],BD.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BD.prototype,"data",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],BD.prototype,"isDarkTheme",void 0);_.p([_.dq("#iframe"),_.y("design:type",HTMLIFrameElement)],BD.prototype,"iframe",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BD.prototype,"dataChanged",null);_.p([_.J_({is:"yt-iframe-renderer",disableElementRegistration:!0})],BD);
_.X(BD,"yt-iframe-renderer",function(){if($S6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;eOE===void 0&&(eOE=document.createElement("template"));var P=eOE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$S6=N}N=$S6;return N},{mode:2});_.lf=function(N){_.E5.call(this);this.callback=N;this.bezier=new YWb(0,0,.4,0,.2,1,1,1);this.delay=new _.Tb(this.next,window,this);this.JSC$17299_animating=!1;_.QS(this,this.delay)};
_.F(_.lf,_.E5);_.lf.prototype.isAnimating=function(){return this.JSC$17299_animating};
_.lf.prototype.start=function(N,b,S){this.config={from:N,to:b,duration:S,startTime:(0,_.nh)()};this.JSC$17299_animating=!0;this.next()};
_.lf.prototype.stop=function(){this.delay.stop();this.JSC$17299_animating=!1;this.config=void 0};
_.lf.prototype.next=function(){if(this.config){var N=this.config,b=N.from,S=N.to,P=N.duration;N=N.startTime;var H=(0,_.nh)()-N;N=this.bezier;P=Iz4(N,H/P);if(P==0)N=N.y0;else if(P==1)N=N.y3;else{H=J6(N.y0,N.y1,P);var K=J6(N.y1,N.y2,P);N=J6(N.y2,N.y3,P);H=J6(H,K,P);K=J6(K,N,P);N=J6(H,K,P)}N=_.j3(N,0,1);this.callback(b+(S-b)*N);N<1?this.delay.start():this.JSC$17299_animating=!1}};_.L$=new _.nO("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var hOq={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},wkq=function(N,b,S,P){_.E5.call(this);this.JSC$17310_miniAppId=N;this.localReleaseId=b;this.derivedDeviceInterface=S;this.isForeground=P;this.JSC$17310_playNonceResolver=new _.GB;this.playPingTimerId=NaN;this.playPingIntervalMs=_.d7("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.d7("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.T("enable_displaying_ppn");this.JSC$17310_miniAppClientDataProvider=_.aN().resolve(_.L$);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;qd6(this);var H=setTimeout(function(){_.$h(new _.jU("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17310_playNonceResolver.promise.then(function(){clearTimeout(H)})};
_.F(wkq,_.E5);var bqn=function(N,b){N.JSC$17310_playNonceResolver.resolve(b!=null?b:L6(8));N.enableDisplayingPpn&&NEE(N).then(function(S){N.JSC$17310_miniAppClientDataProvider.clientData.set("post_play_nonce",S)})},NEE=function(N){return _.r(function(b){return b.nextAddress==1?b.yield(N.JSC$17310_playNonceResolver.promise,2):b.return(b.yieldResult)})},qd6=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$17310_playNonceResolver.promise,2);b=P.yieldResult;S={miniAppInfo:{externalPostId:N.JSC$17310_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:b,derivedDeviceInterface:N.derivedDeviceInterface}};_.lC(S);_.Zd(P)})},PLE=function(N){N.state!==0?_.$h(new _.jU("[MiniAppPlayLogger] recordPlayStart failed with state "+hOq[N.state])):(N.state=1,f$(N,"ma_cl"),uf(N,"PLAY_EVENT_TYPE_PLAY_START"),Saw(N))},Hqi=function(N){N.isForeground=!1;
uf(N,"PLAY_EVENT_TYPE_PLAY_PAUSE")},s6Q=function(N){N.state!==1&&N.state!==2?_.$h(new _.jU("[MiniAppPlayLogger] recordPlayEnd failed with state "+hOq[N.state])):(N.state=3,window.clearInterval(N.playPingTimerId),N.playPingTimerId=NaN,bc9(),uf(N,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},KJL=function(N,b){N.state===2&&N.gameReady&&(N.firstClickRecorded?Date.now()-N.clickRecordedMs<N.playClickIntervalMs||(N.clickRecordedMs=Date.now(),uf(N,"PLAY_EVENT_TYPE_PLAY_CLICK")):b&&(f$(N,"ma_fua"),uf(N,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),N.firstClickRecorded=!0,N.clickRecordedMs=Date.now()))};
wkq.prototype.logError=function(N){var b=this,S;_.r(function(P){if(P.nextAddress==1)return N.metadata.externalPostId=b.JSC$17310_miniAppId,S=N.metadata,P.yield(Promise.race([b.JSC$17310_playNonceResolver.promise,new Promise(function(H){setTimeout(function(){H("")},3E4)})]),2);
S.postPlayNonce=P.yieldResult;N.metadata.localReleaseId=b.localReleaseId;N.loggingError.level="WARNING";_.ge(N.loggingError,N.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:N.metadata});_.Zd(P)})};
var vQ6=function(N,b,S,P){var H,K,C,G,a,R;_.r(function(n){if(n.nextAddress==1)return n.yield(N.JSC$17310_playNonceResolver.promise,2);H=n.yieldResult;K={externalPostId:N.JSC$17310_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:H,sdkVersion:S,api:b};P!==void 0&&(K.networkRequestsMeasurement={networkRequests:_.tg(P,1),cachedRequests:_.tg(P,2),transferredBytes:_.tg(P,3)},(C=P)==null?0:_.Tu(C,m3,6))&&(K.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((G=_.k0(P,
m3,6))==null?void 0:iJ(G,1))||"0",cacheHits:((a=_.k0(P,m3,6))==null?void 0:iJ(a,2))||"0",cachedBytes:((R=_.k0(P,m3,6))==null?void 0:iJ(R,3))||"0"});_.Dn("miniAppSdkUsage",K);_.Zd(n)})},CL_=function(N,b,S){var P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z;
_.r(function(D){if(D.nextAddress==1)return D.yield(N.JSC$17310_playNonceResolver.promise,2);P=D.yieldResult;H={externalPostId:N.JSC$17310_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:P,sdkVersion:S,measurementWindow:{startTimestampMs:String(uJ(b,1)),endTimestampMs:String(uJ(b,2))},frameRate:{averageFrameTimeDeltaMs:Qa(b,3),averageFrameIdleTimeMs:Qa(b,4)}};_.Tu(b,k6,5)&&(H.networkRequests={networkRequests:(K=Ln(b))==null?void 0:_.tg(K,1),cachedRequests:(C=Ln(b))==null?void 0:_.tg(C,2),transferredBytes:(G=
Ln(b))==null?void 0:_.tg(G,3),sameOriginStatusCodeToCounts:OqL((a=Ln(b))==null?void 0:_.Zq9(a,4,void 0,yVa,yVa)),crossOriginStatusCodeToCounts:OqL((R=Ln(b))==null?void 0:_.Zq9(R,5,void 0,yVa,yVa))},(n=Ln(b))==null?0:_.Tu(n,m3,6))&&(H.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((d=Ln(b))==null?void 0:(m=_.k0(d,m3,6))==null?void 0:iJ(m,1))||"0",cacheHits:((k=Ln(b))==null?void 0:(M=_.k0(k,m3,6))==null?void 0:iJ(M,2))||"0",cachedBytes:((l=Ln(b))==null?void 0:(u=_.k0(l,m3,6))==
null?void 0:iJ(u,3))||"0"});_.Tu(b,B_b,7)&&(H.gameCapture={averageFrameTimeDeltaMs:(J=_.k0(b,B_b,7))==null?void 0:Qa(J,1),averageFrameIdleTimeMs:(Z=_.k0(b,B_b,7))==null?void 0:Qa(Z,2)});_.Dn("miniAppPerformanceMetrics",H);_.Zd(D)})},GEQ=function(N,b){var S,P;
return _.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$17310_playNonceResolver.promise,2);S=H.yieldResult;P={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:N.JSC$17310_miniAppId,postPlayNonce:S,miniAppReleaseId:N.localReleaseId},derivedDeviceInterface:N.derivedDeviceInterface,adTriggerType:b,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Dn("miniAppAdEvent",P);_.Zd(H)})};
wkq.prototype.disposeInternal=function(){_.E5.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var uf=function(N,b,S,P){S=S===void 0?{}:S;P=P===void 0?!1:P;var H,K,C,G;_.r(function(a){if(a.nextAddress==1)return H=N.isForeground,K=N.beforeReady,a.yield(N.JSC$17310_playNonceResolver.promise,2);C=a.yieldResult;G={externalPostId:N.JSC$17310_miniAppId,localReleaseId:N.localReleaseId,derivedDeviceInterface:N.derivedDeviceInterface,postPlayNonce:C,type:b};S.sequenceGroup=C;G.playState=K?"PLAY_STATE_NOT_READY":H?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Dn("miniAppPlayEvent",G,
S);P&&_.VE();_.Zd(a)})},f$=function(N,b){var S;
_.r(function(P){if(P.nextAddress==1)return S=(0,_.nh)(),P.yield(N.JSC$17310_playNonceResolver.promise,2);_.uC(b,S);_.Zd(P)})},Saw=function(N){isNaN(N.playPingTimerId)&&(N.playPingTimerId=_.MX(function(){N.state!==1&&N.state!==2?_.$h(new _.jU("[MiniAppPlayLogger] reportPlayPing failed with state "+hOq[N.state])):uf(N,"PLAY_EVENT_TYPE_PLAY_PING")},N.playPingIntervalMs))},OqL=function(N){return Array.from(N.entries()).map(function(b){var S=_.O(b);
b=S.next().value;S=S.next().value;return{key:b,value:S}})};var rOi=function(){},cOa=function(N,b){N.showMiniAppAdCommand=b.showMiniAppAdCommand;
N.isEmbeddedInWebview=b.isEmbeddedInWebview;N.playLogger=b.playLogger},Rw_=function(N){return _.r(function(b){return b.return(aon(N,1))})},WJJ=function(N){return _.r(function(b){return b.return(aon(N,2))})},d_w=function(N,b){return _.r(function(S){return b?S.return(aon(N,3,b)):S.return(nQa(N,3))})},aon=function(N,b,S){var P;
return _.r(function(H){if(H.nextAddress==1){if(!N.showMiniAppAdCommand||!N.isEmbeddedInWebview)return H.return(nQa(N,b));N.adResolver=new _.GB;var K=new wa;K=_.Ti(K,3,b);P=_.En(K,5,S);Ux(N.showMiniAppAdCommand,On9(P));return H.yield(N.adResolver.promise,2)}return H.return(H.yieldResult)})};
rOi.prototype.onAdFinished=function(N){N=S0d(N);var b;(b=this.adResolver)==null||b.resolve(N)};
var nQa=function(N,b){var S;return _.r(function(P){if(P.nextAddress==1)P=P.yield((S=N.playLogger)==null?void 0:GEQ(S,uRI(b)),2);else{var H=P.return;var K=new b84;K=_.Ti(K,1,2);P=H.call(P,K)}return P})};var m_O=new _.nO("INNERTUBE_MANAGER_TOKEN");var kEO=function(){this.callbacks={}};
kEO.prototype.initialize=function(N){var b=this;this.callbacks=N;window.youtubewebview?window.youtubewebview.onmessage=function(S){TEQ(b,S)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(S){TEQ(b,S)})};
var TEQ=function(N,b){if(b.data)try{var S=i5N(b.data);if(_.Fi(_.kp(S,1))!=null){var P=Sc9(_.xp(S,2));switch(S.getMethodName()){case "yt-mini-app-load-audio-state":var H,K;(K=(H=N.callbacks).onAudioStateLoaded)==null||K.call(H,_.fm(P,Zn(P,qD,1)));break;case "yt-mute-mini-app":var C,G;(G=(C=N.callbacks).onMuteMiniApp)==null||G.call(C);break;case "yt-unmute-mini-app":var a,R;(R=(a=N.callbacks).onUnmuteMiniApp)==null||R.call(a);break;case "yt-playable-exit":var n,d;(d=(n=N.callbacks).onExit)==null||d.call(n);
break;case "yt-post-play-nonce":var m,k;(k=(m=N.callbacks).onPostPlayNonceReceived)==null||k.call(m,Jm(P,2,qD));break;case "yt-confirm-exit-mini-app":var M,l;(l=(M=N.callbacks).confirmExitMiniApp)==null||l.call(M);break;case "yt-confirm-exit-mini-app-edu":var u,J;(J=(u=N.callbacks).confirmExitMiniAppEdu)==null||J.call(u);break;case "yt-benchmarking-response":var Z,D;(D=(Z=N.callbacks).onNativeBenchmarkingMessageReceived)==null||D.call(Z,Jm(P,2,qD));break;case "yt-mini-app-load-3p-consent-state":var Y,
V;(V=(Y=N.callbacks).multiplayer3pAckStateLoaded)==null||V.call(Y,_.fm(P,Zn(P,qD,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var g,e;(e=(g=N.callbacks).exitMiniAppSeenStateLoaded)==null||e.call(g,_.fm(P,Zn(P,qD,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var se,Ca;(Ca=(se=N.callbacks).onNavigateToNewMiniApp)==null||Ca.call(se);break;case "yt-game-data-available":var ML,na;(na=(ML=N.callbacks).onGameDataAvailable)==null||na.call(ML,Jm(P,2,qD));break;case "yt-pause-mini-app":var To,
jp;(jp=(To=N.callbacks).onPauseMiniApp)==null||jp.call(To);break;case "yt-resume-mini-app":var Xf,YO;(YO=(Xf=N.callbacks).onResumeMiniApp)==null||YO.call(Xf);break;case "yt-pause-playable-dialog":var Wk,S9;(S9=(Wk=N.callbacks).onPausePlayableDialog)==null||S9.call(Wk);break;case "yt-resume-playable-dialog":var Vu,n9;(n9=(Vu=N.callbacks).onResumePlayableDialog)==null||n9.call(Vu);break;case "yt-playable-ad-finished":var mc,f9;(f9=(mc=N.callbacks).onAdFinished)==null||f9.call(mc,Jm(P,2,qD))}}else _.$h(Error("Wh"))}catch(mJ){_.ge(Error("Xh"))}else _.$h(Error("Yh"))};var xUu=function(N){this.rpcErrorCode=N};var QO=function(N,b,S){this.intervalMs=N;this.apiFunc=b;this.type=S;this.schedulerReady=!0};
QO.prototype.call=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1){if(b.type!==1&&N===b.cachedValue)return P.return();b.pendingApiRequestResolver||(b.pendingApiRequestResolver=new _.GB);S=b.pendingApiRequestResolver.promise;b.cachedValue=N;return P.yield(tnE(b),2)}return P.return(S)})};
QO.prototype.flush=function(N){N=N===void 0?!1:N;var b=this;return _.r(function(S){return b.cachedValue===void 0?S.return():S.yield(b.apiFunc(b.cachedValue,N),0)})};
var tnE=function(N){var b,S,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!N.schedulerReady||!N.pendingApiRequestResolver)return H.return();N.schedulerReady=!1;b=N.pendingApiRequestResolver;N.pendingApiRequestResolver=void 0;_.u4(H,2);if(N.cachedValue===void 0){H.jumpTo(4);break}return H.yield(N.apiFunc(N.cachedValue),5);case 5:S=H.yieldResult,b.resolve(S);case 4:_.su(H,3);break;case 2:P=_.UE(H),b.reject(P);case 3:setTimeout(function(){return _.r(function(K){N.schedulerReady=!0;return K.yield(tnE(N),
0)})},N.intervalMs),_.Zd(H)}})};var JuY=window.location.origin+"/miniapp_cloudsaves",omE=[400,401],Mni=_.d7("cloud_save_game_data_rate_limit_ms",3E3),BEE=function(N){var b=this;this.JSC$17354_miniAppId=N;this.loadAttempts=0;this.cloudSaveIntervalMs=Mni;this.initialDownloadDataSucceeded=!1;this.JSC$17354_playNonceResolver=new _.GB;this.scottyUploadRateLimiter=new QO(this.cloudSaveIntervalMs,function(S,P){return b.uploadData(S,P)},2);
this.downloadDataPromise=FJa(this);this.downloadDataPromise.then(function(){b.initialDownloadDataSucceeded=!0}).catch(function(){})},lot=function(N,b){b.then(function(S){return N.JSC$17354_playNonceResolver.resolve(S)})},LJw=function(N){return _.r(function(b){return N.cachedData===void 0?b.return(N.downloadDataPromise):b.return(N.cachedData)})},foO=function(N,b){return _.r(function(S){N.cachedData=b;
if(!N.initialDownloadDataSucceeded)throw Error("Zh");return S.yield(N.scottyUploadRateLimiter.call(b),0)})},uit=function(){return new Promise(function(N){setTimeout(N,1E3,"")})},Q6J=function(N,b){var S,P;
return _.r(function(H){if(H.nextAddress==1)return S=N.JSC$17354_miniAppId,H.yield(Promise.race([N.JSC$17354_playNonceResolver.promise,uit()]),2);P={"X-YouTube-MiniAppId":S,"X-YouTube-PostPlayNonce":H.yieldResult};"DELEGATED_SESSION_ID"in _.Iu&&tte(b,P);return H.return(P)})};
BEE.prototype.uploadData=function(N,b){b=b===void 0?!1:b;var S=this;return _.r(function(P){return Qto()?_.T("enable_cloud_save_error_popup_after_retry")?P.return(new Promise(function(H,K){var C,G,a,R,n;return _.r(function(d){switch(d.nextAddress){case 1:C=0,G=!0,R=a=null;case 2:if(!(G&&C++<2)){d.jumpTo(4);break}_.u4(d,5);return d.yield(x_6(S,N,b),7);case 7:a=d.yieldResult;G=a.ok?!1:!omE.includes(a.status);_.su(d,2);break;case 5:R=n=_.UE(d);G=iRs(R);d.jumpTo(2);break;case 4:a?a.ok?(xW(S,Mni),H()):
(xW(S,S.cloudSaveIntervalMs*2),K(Error("$h`"+String(a.status),{cause:{rpcErrorCode:a.status}}))):(xW(S,S.cloudSaveIntervalMs*2),K(R||Error("ai"))),_.Zd(d)}})})):P.return(new Promise(function(H,K){var C,G;
return _.r(function(a){if(a.nextAddress==1){if(S.JSC$17354_miniAppId==="")return K(Error("bi")),a.return();_.u4(a,2);return a.yield(x_6(S,N,b),4)}if(a.nextAddress!=2)return C=a.yieldResult,C.ok?(xW(S,Mni),H()):(xW(S,S.cloudSaveIntervalMs*2),K(Error("$h`"+String(C.status),{cause:{rpcErrorCode:C.status}}))),_.su(a,0);G=_.UE(a);xW(S,S.cloudSaveIntervalMs*2);K(G);_.Zd(a)})})):P.return()})};
var x_6=function(N,b,S){S=S===void 0?!1:S;var P,H,K;return _.r(function(C){if(C.nextAddress==1)return P=_.iL((new TextEncoder).encode(b)),H=UUo(),C.yield(Q6J(N,H),2);K=C.yieldResult;return C.return(fetch(H,{method:"POST",body:new Blob([P]),headers:K,keepalive:S}))})},FJa=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1){if(!Qto())return P.return("");if(N.JSC$17354_miniAppId==="")throw Error("bi");if(N.loadAttempts>2)return P.return(N.downloadDataPromise);_.u4(P,2);return P.yield(oQQ(N),4)}if(P.nextAddress!=2)return b=P.yieldResult,P.return(b);S=_.UE(P);if(iRs(S)&&++N.loadAttempts<2)return P.return(FJa(N));throw S;})},oQQ=function(N){var b,S,P,H,K;
return _.r(function(C){switch(C.nextAddress){case 1:return _.u4(C,2),b=UUo(),C.yield(Q6J(N,b),4);case 4:return S=C.yieldResult,C.yield(fetch(b,{method:"GET",headers:S}),5);case 5:return P=C.yieldResult,P.ok?C.yield(P.text(),6):C.return(Promise.reject(Error("ci`"+String(P.status),{cause:new xUu(P.status)})));case 6:return H=C.yieldResult,C.return((new TextDecoder).decode(_.qL(H)));case 2:return K=_.UE(C),C.return(Promise.reject(K))}})},xW=function(N,b){N.cloudSaveIntervalMs=b;
N.scottyUploadRateLimiter.intervalMs=N.cloudSaveIntervalMs};
BEE.prototype.flush=function(){var N=this;return _.r(function(b){return N.initialDownloadDataSucceeded?b.yield(N.scottyUploadRateLimiter.flush(!0),0):b.return()})};var iqq=BS(Fr(1),tj(1)),JOa=BS(Fr(1),tj(3)),ol=function(N){this.callbacks=N};
_.v=ol.prototype;_.v.onAudioToggled=function(N,b){(b===void 0||b)&&_.Bd("yt-mini-app-is-audio-enabled",N,2592E3)};
_.v.onPause=function(){this.onAudioToggled(!1,!1)};
_.v.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.v.returnNativeBenchmarkingMessage=function(){};
_.v.sendGameData=function(){};
_.v.sendStartGameFrameCapture=function(){};
var ZRY=function(N,b,S){this.callbacks=N;var P=this;this.sdkVersion=new _.GB;this.channel=new gQd(_.rP({destination:window,iframe:b,origin:(new URL(S.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var H=Ji;var K=Fr(5);var C=new rB9;C=_.ZC(C,1,1E4);K=_.o$(K,4,kI9,C);H(P,K);P.onAudioToggled(P.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){P.sdkVersion.resolve("")},1E4)};
_.F(ZRY,ol);_.v=ZRY.prototype;_.v.onAudioToggled=function(N,b){ol.prototype.onAudioToggled.call(this,N,b===void 0?!0:b);b=Ji;var S=Fr(2),P=new CA4;N=_.lw(P,1,N);N=_.o$(S,3,kI9,N);b(this,N)};
_.v.onPause=function(){ol.prototype.onPause.call(this);Ji(this,Fr(3))};
_.v.onResume=function(){ol.prototype.onResume.call(this);Ji(this,Fr(4))};
_.v.returnNativeBenchmarkingMessage=function(N){var b=Ji,S=Fr(6);var P=tj(_.Tu(N,P$,1)?1:2);N=_.Tu(N,P$,1)?N:null;P=_.o$(P,5,MD,N);b(this,BS(S,P))};
_.v.sendGameData=function(N){var b=Ji,S=Fr(7);N=_.o$(S,5,kI9,N);b(this,N)};
_.v.sendStartGameFrameCapture=function(){Ji(this,Fr(9))};
var Uz=function(N,b,S){var P,H,K;return _.r(function(C){if(C.nextAddress==1)return P=N.callbacks,H=P.onSdkCalled,K=b,C.yield(N.sdkVersion.promise,2);H.call(P,K,C.yieldResult,S);_.Zd(C)})};
ZRY.prototype.onMessage=function(){var N=this;return hwd(fn,function(b){var S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp,Xf,YO,Wk,S9,Vu,n9,mc,f9,mJ,Bk,RU,Ab,kZ,Ib,Ud,ob,PM,Vz;return _.r(function(ck){switch(ck.nextAddress){case 1:if(!uFZ(b.data))return _.$h(Error("di")),ck.return();S=_.o9(b.data,1);_.T("enable_iframe_message_get_type_via_fields")&&(P=b.data,S=H=_.o9(P,1));switch(S){case 8:if(b.data.hasMetadata()){var d9=N.sdkVersion,sa=d9.resolve;var $O=b.data.getMetadata();$O=_.xp($O,
1);sa.call(d9,$O);clearTimeout(N.sdkVersionTimeoutId)}break;case 6:return ck.jumpTo(2);case 16:if(!_.tm(b.data,MyE,14,ub))return ck.return();K=_.UG(b.data,MyE,14,ub);(G=(C=N.callbacks).onGameFrameReceived)==null||G.call(C,K);return ck.return();case 17:if(!_.tm(b.data,tyZ,15,ub))return ck.return();(R=(a=N.callbacks).onGameAudioReceived)==null||R.call(a,_.UG(b.data,tyZ,15,ub));return ck.return();case 1:if(d9=_.UG(b.data,RR9,2,ub))switch(_.o9(d9,1)){case 1:N.callbacks.onFirstFrameReady();if(_.T("enable_network_request_logging_on_game_events")&&
_.Tu(d9,k6,4)){Uz(N,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.k0(d9,k6,4));break}Uz(N,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:($O=(sa=N.callbacks).onGameReady)==null||$O.call(sa);if(_.T("enable_network_request_logging_on_game_events")&&_.Tu(d9,k6,4)){Uz(N,"MINI_APP_SDK_API_GAME_READY",_.k0(d9,k6,4));break}Uz(N,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.tm(d9,Ty,3,WrN))N.callbacks.onResourceLoaded(_.UG(d9,Ty,3,WrN))}return ck.return();case 3:return ck.jumpTo(3);case 4:return ck.jumpTo(4);
case 2:return ck.jumpTo(5);case 9:return ck.jumpTo(6);case 10:return N.callbacks.onClick(),ck.return();case 5:return ck.jumpTo(7);case 11:if(!_.tm(b.data,nn,9,ub))return ck.return();n=_.UG(b.data,nn,9,ub);(m=(d=N.callbacks).onBenchmarkingMessageReceived)==null||m.call(d,n);d9=b.reply;sa=Fr(1);$O=tj(1);var qS=new nn;var Do=new Uint8Array(G4c(n,Zn(n,H89,6))|0);qS=QE(qS,5,H89,_.iE(Do,!1));$O=_.o$($O,5,MD,qS);d9.call(b,BS(sa,$O));return ck.return();case 12:return ck.jumpTo(8);case 13:return ck.jumpTo(9);
case 15:if(!_.T("enable_open_yt_content"))return b.reply(JOa),ck.return();if(!_.tm(b.data,T_b,12,ub))return b.reply(BS(Fr(1),tj(2))),ck.return();d9=_.UG(b.data,T_b,12,ub);k=_.xp(d9,1);N.callbacks.onOpenYTContent(k);b.reply(iqq);return ck.return();case 14:return ck.jumpTo(10);default:return ck.return()}ck.jumpTo(0);break;case 2:if(!_.tm(b.data,lb,5,ub))return ck.return();sa=b.data;d9=Zn(sa,ub,5);sa=sa.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=X5f(sa,sa[_.sd]|0,lb,d9)||lb[EZu]||(lb[EZu]=
pkf(lb));d9=_.kT(M,da,1,_.T6());l=_.O(d9);u=l.next();case 12:if(u.done){ck.jumpTo(14);break}J=u.value;Z=new _.jU;Z.level=_.o9(J,2)===1?"WARNING":"ERROR";D=zeY(J.getSource());return ck.yield(N.sdkVersion.promise,15);case 15:Y={source:D,sdkVersion:ck.yieldResult};_.v5(_.kp(J,6))!=null?(Z.message=J.getMessage(),Z.stack=_.xp(J,5),Y.sdkErrorType=Au9(_.o9(J,6)),_.v5(_.kp(J,7))!=null&&(Y.sdkApi=XV_(_.o9(J,7)))):Z.stack=void 0;g=V=void 0;(g=(V=N.callbacks).onError)==null||g.call(V,{loggingError:Z,metadata:Y});
u=l.next();ck.jumpTo(12);break;case 14:return ck.return();case 3:return _.u4(ck,16),d9=ck.yield,sa=N.callbacks,$O=sa.onSave,qS=_.UG(b.data,GIb,4,ub),qS=_.xp(qS,1),d9.call(ck,$O.call(sa,qS),18);case 18:b.reply(iqq);_.su(ck,17);break;case 16:return e=_.UE(ck),se=ZW,Ca=e,ML=N.callbacks,na="MINI_APP_SDK_API_SAVE_DATA",ck.yield(N.sdkVersion.promise,19);case 19:se(Ca,ML,na,ck.yieldResult),b.reply(JOa);case 17:return ck.yield(Uz(N,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return ck.return();case 4:return _.u4(ck,
21),ck.yield(N.callbacks.onLoad(),23);case 23:To=ck.yieldResult;d9=b.reply;sa=Fr(1);$O=tj(1);qS=new GIb;qS=_.En(qS,1,To);$O=_.o$($O,3,MD,qS);d9.call(b,BS(sa,$O));_.su(ck,22);break;case 21:return jp=_.UE(ck),Xf=ZW,YO=jp,Wk=N.callbacks,S9="MINI_APP_SDK_API_LOAD_DATA",ck.yield(N.sdkVersion.promise,24);case 24:Xf(YO,Wk,S9,ck.yieldResult),b.reply(JOa);case 22:return ck.yield(Uz(N,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ck.return();case 5:_.u4(ck,26);N.callbacks.onSendHighScore($T(_.UG(b.data,
Lrl,3,ub).getValue()));b.reply(BS(Fr(1),tj(1)));_.su(ck,27);break;case 26:return Vu=_.UE(ck),n9=ZW,mc=Vu,f9=N.callbacks,mJ="MINI_APP_SDK_API_SEND_SCORE",ck.yield(N.sdkVersion.promise,28);case 28:n9(mc,f9,mJ,ck.yieldResult),b.reply(JOa);case 27:return ck.yield(Uz(N,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ck.return();case 6:if(!_.tm(b.data,fJ9,8,ub)){ck.jumpTo(30);break}d9=ck.yield;sa=_.UG(b.data,fJ9,8,ub);sa=_.o9(sa,1);return d9.call(ck,Uz(N,XV_(sa)),30);case 30:return ck.return();case 7:return d9=
b.reply,sa=Fr(1),$O=tj(1),qS=N.callbacks.getLanguage(),$O=QE($O,4,MD,M_(qS)),d9.call(b,BS(sa,$O)),ck.yield(Uz(N,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ck.return();case 8:if(!_.tm(b.data,lJZ,10,ub))return ck.return();Bk=_.UG(b.data,lJZ,10,ub);RU=N.callbacks;Ab=RU.onSdkPerformanceUpdate;return ck.yield(N.sdkVersion.promise,33);case 33:return Ab.call(RU,Bk,ck.yieldResult),ck.return();case 9:d9=b.data;sa=Zn(d9,ub,11);if(_.Fi(_.kp(d9,sa))==null)return b.reply(BS(Fr(1),tj(2))),ck.return();
kZ=Jm(b.data,11,ub);N.callbacks.onShareInviteCode(kZ);b.reply(iqq);return ck.yield(Uz(N,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return ck.return();case 10:if(_.tm(b.data,O8O,13,ub)){ck.jumpTo(35);break}return ck.yield(N.callbacks.onShowMiniAppAd(2),36);case 36:return Ib=ck.yieldResult,b.reply(BS(Fr(1),dmN(Ib))),ck.yield(Uz(N,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ck.return();case 35:d9=_.UG(b.data,O8O,13,ub);a:switch(_.o9(d9,1)){case 1:d9={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:d9={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:d9={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Ud=d9;ob=Ud.adType;PM=Ud.sdkApi;d9=ck.yield;sa=N.callbacks;$O=sa.onShowMiniAppAd;qS=_.UG(b.data,O8O,13,ub);qS=_.xp(qS,2);return d9.call(ck,$O.call(sa,ob,qS||void 0),38);case 38:return Vz=ck.yieldResult,b.reply(BS(Fr(1),dmN(Vz))),ck.yield(Uz(N,PM),39);case 39:return ck.return()}})})};
var Ji=function(N,b){_.r(function(S){N.channel.send(b);_.Zd(S)})},j8=function(N,b,S){this.callbacks=N;
var P=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;N=sXe(b,(new URL(S.toString())).origin);this.gameSnacks=new G79(N);this.gameSnacks.page.onReady(function(){P.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){P.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var H,K;(K=(H=P.callbacks).onGameReady)==null||K.call(H)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(H,K){try{P.callbacks.onSendHighScore(K)}catch(C){ZW(C,P.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(H,K){var C;return _.r(function(G){if(G.nextAddress==1)return _.u4(G,2),G.yield(P.callbacks.onSave(P.decoder.decode(K)),4);if(G.nextAddress!=2)return _.su(G,0);C=_.UE(G);ZW(C,P.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return G.return()})});
this.gameSnacks.storage.onLoad(function(){var H,K;return _.r(function(C){if(C.nextAddress==1)return _.u4(C,2),C.yield(P.callbacks.onLoad(),4);if(C.nextAddress!=2)return H=C.yieldResult,C.return(P.encoder.encode(H));K=_.UE(C);ZW(K,P.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return C.return(P.encoder.encode(""))})});
this.gameSnacks.init()};
_.F(j8,ol);j8.prototype.onAudioToggled=function(N,b){ol.prototype.onAudioToggled.call(this,N,b===void 0?!0:b);var S;(S=this.gameSnacks)==null||S.audio.update(N)};
j8.prototype.onPause=function(){ol.prototype.onPause.call(this);var N;(N=this.gameSnacks)==null||N.game.pause()};
j8.prototype.onResume=function(){ol.prototype.onResume.call(this);var N;(N=this.gameSnacks)==null||N.game.resume()};var U_L=EmY,ZqJ=_.A(function(N){var b=N.data;var S=N.loadingProgress;var P=N.forPaused;N=_.O(_.QF("",void 0,"LYYTdd"));var H=N.next().value,K=N.next().value;N=_.O(_.QF(!1,void 0,"K0waae"));var C=N.next().value,G=N.next().value,a=[],R=function(){return"transform: scaleX("+(_.he(S)||0)+")"},n=null,d=function(){return b()&&n!==null&&n!==void 0?n:n=b().showAnniversaryAnimation?6:U_L()};
_.gA(function(){var l;if(b().timeOutMessages&&((l=b().timeOutMessages)==null?0:l.length)){n=null;l=_.O(a);for(var u=l.next();!u.done;u=l.next())clearTimeout(u.value);a.length=0;pVE(b().timeOutMessages,a,K,G)}},"BNu9j");
var m=function(){return!!b().persistentErrorMessageTitle},k=function(){return S!==void 0},M=function(){return b().title};
return _.c("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.c("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.c("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.c("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var l,u=(l=b().backgroundImage)==null?void 0:l.sources,J;return(u==null?0:u.length)?"background-image: url("+((J=u[0])==null?void 0:J.url)+")":""}}),_.c("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.c(_.W,{cond:function(){return!m()&&!(P==null?0:P())},
then:function(){var l={};return _.c("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.c("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.c(_.Yg,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+d()},
data:function(){var u="loading_animation_"+d();return{animationConfig:{name:u,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+u+".json",loop:!0,autoplay:!0}}}})),_.c("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.c(_.W,{cond:M,
then:function(){return _.c("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},M)}}),_.c("p",{class:_.KU("miniAppSplashScreenViewModelTimeoutMessage",(l.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return C()},l)),
"aria-live":"polite"},H),_.c(_.W,{cond:k,then:function(){return _.c("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.c("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:R}))}})))}}),_.c(_.W,{cond:m,
then:function(){return _.c("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.c("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return b().persistentErrorMessageTitle}),_.c(_.W,{cond:function(){return!!b().persistentErrorMessageDescription},
then:function(){return _.c("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return b().persistentErrorMessageDescription})}}))}}),_.c(_.W,{cond:P,
then:function(){return _.c("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.c("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.c("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},M))}})))},"Rf");var j6L=new _.nO("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var zww=r8;r8=function(N){function b(S){if(S){var P,H;(P=S.__spec)==null||(H=P.didUnmount)==null||H.call(P);for(P=0;P<S.childNodes.length;P++)b(S.childNodes[P])}}
zww==null||zww(N);uH(function(){for(var S=0;S<N.length;S++)b(N[S])})};var AOw=_.A(function(N){var b=N.data;var S=N.score;var P=N.formattedScore;var H=N.onScoreChanged;var K=N.isEmbeddedInWebview;var C=_.GQ("yt-mini-app-score-button-view-model"),G=function(){var k;return _.t(b==null?void 0:(k=b())==null?void 0:k.buttonViewModel,_.WC)},a=function(){var k;
return(S==null?void 0:S())||Number(b==null?void 0:(k=b())==null?void 0:k.lastScore)||0},R=function(){var k;
return(P==null?void 0:P())||((k=G())==null?void 0:k.title)||""},n,d=1;
if(N=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))N=Number(N),d=isNaN(N)?1:N/100;_.gA(function(){H==null||H(a());var k;var M=_.UZ((k=G())==null?void 0:k.onTap);if(M){k=_.t(M,Ii4);var l,u,J;k=_.t(k==null?void 0:(l=k.panelLoadingStrategy)==null?void 0:(u=l.inlineContent)==null?void 0:(J=u.dialogViewModel)==null?void 0:J.customContent,Cb9)}else k=void 0;if(l=k)l.score=R()},"Aekez");
N=_.Ob(function(){var k,M,l=b==null?void 0:(k=b())==null?void 0:(M=k.loggingDirectives)==null?void 0:M.trackingParams;l&&_.yj(_.aN().resolve(_.Sz),l);return!1});
_.YU(function(){if(C.value){var k=C.value.querySelector("button"),M=G();k&&M&&yub(k,M);_.R5("yt-share-playable-with-high-score",function(){var l=a().toString(),u=b==null?void 0:b().onShareHighScoreCommand,J=b==null?void 0:b().highScoreShareClientParamIdentifier,Z=K==null?void 0:K();u&&(Z?(J=new ouZ,l=_.En(J,2,l),Ux(u,l.JSC$12762_serializeBinary())):J&&(_.aN().resolve(j6L).clientParams.set(J,{miniAppClientParams:{highScore:l}}),FzI(u,!1)))})}});
var m=function(){var k=G();k&&(S==null?0:S())&&k.accessibilityText&&(k.accessibilityText=k.accessibilityText.replace(n,R()));n=R();return{numberValue:a(),numberText:R(),heightPx:36,fontSizeMultiplier:d,shouldAnimate:!(S==null||!S())&&!0}};
return _.c("yt-mini-app-score-button-view-model",{class:function(){var k={};return _.ff("miniAppScoreButtonViewModelHost",(k.miniAppScoreButtonViewModelIsVisible=a()!==0,k))},
el:C,"on:click":N},MHs(!1,function(){return _.c("span",{style:"display:none;"},a)}),_.c(_.kY,{data:function(){var k;
return b==null?void 0:(k=b())==null?void 0:k.buttonViewModel}},{buttonViewModel:function(k){return _.c(_.j$,{data:k.data,
animatedTextProps:m})}}))},"Tf");var yO5=_.A(function(N){var b,S=(b=_.l1("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,P=_.T("enable_playable_container_save_button"),H=_.T("enable_play_next_destination_page_in_toolbar");b={};return _.c("ytm-mini-app-top-bar-view-model",null,_.c("div",{class:_.KU("yt-mini-app-top-bar-view-model",(b["yt-mini-app-top-bar-view-model--mobile"]=!1,b["yt-mini-app-top-bar-view-model--desktop"]=!0,b))},_.c("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.c(_.W,{cond:function(){var K;return!!N.data().backButtonEdu&&
!((K=N.isExitMiniAppSeen)==null?0:K.call(N))},
then:function(){return _.c(_.kY,{data:function(){return N.data().backButtonEdu}},{buttonViewModel:_.j$})},
else:function(){return _.c(_.kY,{data:function(){return N.data().backButton}},{buttonViewModel:_.j$})}}),_.c(_.W,{cond:function(){return N.data().viewAllButton&&!0},
then:function(){return _.c(_.kY,{data:function(){return N.data().viewAllButton}},{buttonViewModel:_.j$})}}),_.c(_.W,{cond:function(){return N.data().title&&!0},
then:function(){return _.c("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return N.data().title})}})),_.c("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.c(_.W,{cond:function(){var K;
return(K=N.isDesktopPlayPage)==null?void 0:K.call(N)},
then:function(){return _.c(_.nM,null,_.c(X5i,{highScoreButton:function(){return N.data().highScoreButton},
score:N.score,formattedScore:N.formattedScore,onScoreChanged:N.onScoreChanged,isEmbeddedInWebview:N.isEmbeddedInWebview}),_.c(EQw,{enableSaveButton:function(){return _.he(P)},
saveButton:function(){return N.data().saveButton},
isSaved:N.isSaved,onSaveToggled:function(){return N.onSaveToggled}}),_.c(p5a,{menuButton:function(){return N.data().menuButton}}))},
else:function(){return _.c(_.W,{cond:function(){return!1},
then:function(){return _.c(_.kY,{data:function(){return N.data().playPageButton}},{buttonViewModel:function(K){return _.c(_.j$,{data:K.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.c(X5i,{highScoreButton:function(){return N.data().highScoreButton},
score:N.score,formattedScore:N.formattedScore,onScoreChanged:N.onScoreChanged,isEmbeddedInWebview:N.isEmbeddedInWebview})}})}})),_.c("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.c(_.kY,{data:function(){return N.data().muteButton}},{toggleButtonViewModel:function(K){var C=K.data;
return _.c(_.Hc,{data:function(){var G,a;return Object.assign({},C(),{isToggled:(a=(G=N.isAudioEnabled)==null?void 0:G.call(N))!=null?a:!0})},
onToggle:N.onAudioToggled,useOutlinedIcon:!0})}}),_.c(_.kY,{data:function(){return N.data().theatreModeButton}},{toggleButtonViewModel:function(K){var C=K.data;
return _.c("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.c(_.Hc,{data:function(){return Object.assign({},C(),{isToggled:S})},
useOutlinedIcon:!0}))}}),_.c(Yan,{fullscreenButton:function(){return N.data().fullscreenButton}}),_.c(_.W,{cond:function(){return _.he(H)&&N.data().viewAllButton&&!1},
then:function(){return _.c(_.kY,{data:function(){return N.data().viewAllButton}},{buttonViewModel:_.j$})}}),_.c(_.W,{cond:function(){var K;
return!((K=N.isDesktopPlayPage)==null?0:K.call(N))},
then:function(){return _.c(_.nM,null,_.c(EQw,{enableSaveButton:function(){return _.he(P)},
saveButton:function(){return N.data().saveButton},
isSaved:N.isSaved,onSaveToggled:function(){return N.onSaveToggled}}),_.c(p5a,{menuButton:function(){return N.data().menuButton}}))}}))))},"Uf");
yO5.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var p5a=_.A(function(N){return _.c(_.kY,{data:N.menuButton},{buttonViewModel:_.j$})},"Vf"),EQw=_.A(function(N){var b=N.enableSaveButton;
var S=N.saveButton;var P=N.isSaved;var H=N.onSaveToggled;return _.c(_.W,{cond:function(){return b()&&!(S==null||!S())},
then:function(){return _.c(_.kY,{data:function(){var K=_.t(S==null?void 0:S(),_.dU),C;return{toggleButtonViewModel:Object.assign({},K,{isToggled:(C=P==null?void 0:P())!=null?C:!(K==null||!K.isToggled)})}}},{toggleButtonViewModel:function(K){return _.c(_.Hc,{data:K.data,
onToggle:H})}})}})},"Wf"),X5i=_.A(function(N){var b=N.highScoreButton;
var S=N.score;var P=N.formattedScore;var H=N.onScoreChanged;var K=N.isEmbeddedInWebview;return _.c(_.kY,{data:b},{miniAppScoreButtonViewModel:function(C){return _.c(AOw,{data:C.data,score:S,formattedScore:P,onScoreChanged:H,isEmbeddedInWebview:K})}})},"Xf"),Yan=_.A(function(N){N=N.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.c(_.nM,null):_.c(_.kY,{data:N},{buttonViewModel:_.j$})},"Yf");_.IoE=_.A(function(N){var b=N.data;var S=N.extractOverlay;N={};return _.c("player-disclosure-view-model",{class:_.KU("ytwPlayerDisclosureViewModelHost",(N.ytwPlayerDisclosureViewModelExtractOverlay=function(){return S==null?void 0:S()},N))},_.c(_.xg,{command:function(){return b().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.c(_.W,{cond:function(){return b().iconName},
then:function(P){return _.c(_.cX,{icon:P})}}),_.c(_.W,{cond:function(){return b().iconName?void 0:b().image},
then:function(P){return _.c(_.gG,{data:P,alt:function(){return b().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.c(_.W,{cond:function(){return b().title||b().secondaryText},
then:function(){return _.c("div",null,_.c("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return b().title}),_.c("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),_.c(_.W,{cond:function(){return b().secondaryText},
then:function(P){return _.c(_.nM,null,_.c("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.c("div",{class:"ytwPlayerDisclosureViewModelText"},P))}}))},
else:function(){return _.c("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text})}}),_.c(_.W,{cond:function(){return b().showEndChevron},
then:function(){return _.c(_.cX,{icon:"CHEVRON_RIGHT"})}})))},"Zf");_.D_a=new _.nO("DESKTOP_CURRENT_PAGE");var qan=_.A(function(N){var b=N.data;var S=_.T("force_active_time_logging_webview"),P=!1,H=new kEO,K=void 0,C=void 0,G=_.aN().resolve(m_O),a=new rOi,R=void 0,n=void 0,d=[],m=void 0,k=void 0,M=!1,l=!1,u=!1,J=!1,Z=new _.GB,D=_.aN().resolve(j6L),Y=_.aN().resolve(_.L$),V=_.aN().resolve(_.cq($J)),g,e=(g=_.aN().resolve(_.cq(_.D_a)))==null?void 0:g.getCurrentPage(),se=!1,Ca=0,ML=function(bE){bE.preventDefault();return bE.returnValue=""},na,To=_.O(_.QF(!((na=_.l1("yt-mini-app-is-audio-enabled"))!=null&&!na),
void 0,"WNrYAe")),jp=To.next().value,Xf=To.next().value,YO,Wk=_.O(_.QF(!((YO=_.l1("exit-mini-app-seen-state"))==null||!YO),void 0,"Ofm4dd")),S9=Wk.next().value,Vu=Wk.next().value,n9=_.O(_.QF(!1,void 0,"xMsPk")),mc=n9.next().value,f9=n9.next().value,mJ=_.O(_.QF(void 0,void 0,"V675h")),Bk=mJ.next().value,RU=mJ.next().value,Ab=_.O(_.QF(void 0,void 0,"x9B2v")),kZ=Ab.next().value,Ib=Ab.next().value,Ud=_.O(_.QF(!0,void 0,"eAgABf")),ob=Ud.next().value,PM=Ud.next().value,Vz=_.O(_.QF(!1,void 0,"ek28lf")),
ck=Vz.next().value,d9=Vz.next().value,sa=_.O(_.QF(!1,void 0,"Q6LlPd")),$O=sa.next().value,qS=sa.next().value,Do=_.O(_.QF(void 0,void 0,"V5Rl1c")),Nj=Do.next().value,nq=Do.next().value,pq=_.O(_.QF(0,void 0,"kN1acc")),R_=pq.next().value,Gn=pq.next().value,g9=_.Ct("mini-app-container-view-model"),Lq=_.O(_.QF(!1,void 0,"HzkXed")),Kq=Lq.next().value,Ah=Lq.next().value,Hv=function(){return b().isEmbeddedInWebview},XK=function(){return b().hasPlayNextShelf};
_.pM(function(){var bE,Oa=(bE=_.t(b().contentDisclosure,lRb))==null?void 0:bE.animationParams;if((Oa==null?0:Oa.shouldHide)&&(Oa==null?0:Oa.hideDelaySecs)){var lL=setTimeout(function(){Ah(!0)},Oa.hideDelaySecs*1E3);
_.ej(function(){clearTimeout(lL)})}});
_.R5("yt-page-type-changed",function(bE){if(_.T("enable_is_mini_app_page_active_bugfix"))bE.detail.newPageSubtype==="mini_app"&&bE.detail.newPageType==="ytd-browse"||!ob()||fE();else if(bE=_.eF()==="mini_app",bE!==ob())if(PM(bE),bE){var Oa;bE=(Oa=b().playableId)==null?void 0:Oa.toString();bE!==void 0&&window.location.href.includes(bE)&&!l&&(J=!0,lz(),Fw.value&&Ye(Fw.value))}else bE||fE()});
_.R5("yt-action",function(bE){bE.detail.actionName==="yt-engagement-panel-visible-changed"&&bE.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&bE.detail.args[2]==="PAmini_app_panel"&&fE();_.T("enable_is_mini_app_page_active_bugfix")?bE.detail.actionName==="yt-history-load"&&!ob()&&(e==null?0:e.active)?(PM(!0),lz(),Fw.value&&Ye(Fw.value)):bE.detail.actionName==="yt-history-load"&&ob()&&!b().isEmbeddedInWebview&&MS():ob()&&bE.detail.actionName==="yt-history-load"&&(J?J=!1:b().isEmbeddedInWebview||
MS())});
_.ej(function(){i4()});
_.gA(function(){lz()},"gT8qHf");
var lz=function(){var bE=b().playableId,Oa=b().localReleaseId,lL=b().derivedDeviceInterface;if(l)_.$h(new _.jU("[MiniAppContainerViewModel] onEnter was called more than once"));else{l=!0;K=new wkq(bE,Oa,lL,document.visibilityState==="visible");PLE(K);C=new BEE(bE);Vn_(G,bE);cOa(a,{showMiniAppAdCommand:b().showMiniAppAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:K});KaO()&&(k=document.body.style.backgroundColor,_.Vo(document.body,"background-color","black"));Xz();fv();Z=new _.GB;
if(b().isEmbeddedInWebview){if(bE=(new URLSearchParams(window.location.search)).get("postPlayNonce"))bqn(K,bE),se=!0;H.initialize({onAudioStateLoaded:function(Hh){ep(Hh)},
onMuteMiniApp:function(){ep(!1)},
onUnmuteMiniApp:function(){ep(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Hh){se||(bqn(K,Hh),se=!0)},
confirmExitMiniApp:function(){var Hh,Qm,s5;return _.r(function(bM){if(bM.nextAddress==1)return b().confirmExitMiniAppCommand?bM.yield(Promise.race([Z.promise,Promise.resolve(!1)]),2):bM.return();(Hh=bM.yieldResult)?!b().confirmExitMiniAppCommandEdu||(s5=(Qm=S9)==null?void 0:Qm())!=null&&s5?qc(b().confirmExitMiniAppCommand):(qc(b().confirmExitMiniAppCommandEdu),_.Bd("exit-mini-app-seen-state","true",2592E6)):qc(b().closeMiniAppCommand);_.Zd(bM)})},
onNativeBenchmarkingMessageReceived:function(Hh){Hh=Kr4(_.TmI(Hh));if(_.tm(Hh,_.iF,3,PAO)){var Qm=_.UG(Hh,_.iF,3,PAO),s5=Bva();var bM=$T(s5.getSeconds())-$T(Qm.getSeconds());Qm=_.tg(s5,2)-_.tg(Qm,2);bM<0&&Qm>0?(bM+=1,Qm-=1E9):bM>0&&Qm<0&&(--bM,Qm+=1E9);bM=(new P$).setSeconds(bM);bM=_.So(bM,2,_.Cq(Qm),0);_.xI(Hh,1,bM)}var EI;(EI=n)==null||EI.returnNativeBenchmarkingMessage(Hh)},
multiplayer3pAckStateLoaded:function(Hh){MS(Hh)},
exitMiniAppSeenStateLoaded:function(Hh){b().confirmExitMiniAppCommandEdu&&Vu(Hh)},
onNavigateToNewMiniApp:function(){qc(b().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Hh){Hh=new URLSearchParams(Hh);var Qm=void 0;Hh.has("invite_code")&&(Qm=new aJd,Hh=Hh.get("invite_code"),Qm=_.En(Qm,1,Hh));if(Hh=Qm){var s5;(s5=n)==null||s5.sendGameData(Hh)}},
onPauseMiniApp:function(){P=!0;uY()},
onResumeMiniApp:function(){P=!0;Ee()},
onPausePlayableDialog:function(){u=!0;uY()},
onResumePlayableDialog:function(){u=!1;Ee()},
onAdFinished:function(Hh){a.onAdFinished(Hh)}});
b().showMultiplayer3pConsentDialogCommand||Z.resolve(!0);qc(b().onContainerReadyCommand)}else bqn(K),Z.resolve(!0);lot(C,NEE(K));NEE(K).then(function(Hh){Hh={miniAppPlayData:{postPlayNonce:Hh}};var Qm,s5=(Qm=b().loggingDirectives)==null?void 0:Qm.trackingParams;s5&&_.dG().stateChanged(s5,Hh)});
bE=b().showSignInDialogCommand;!Qto()&&bE&&(_.Bd("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),qc(bE));b().confirmExitMiniAppCommand&&V&&(bE=tTe(b().confirmExitMiniAppCommand))&&(V.customConfirmationCommand=bE)}},i4=function(){k&&_.Vo(document.body,"background-color",k);
M=!1;m&&m.release();C.flush().catch(function(bE){_.$h(bE)});
G.flush().catch(function(bE){_.$h(bE)});
s6Q(K);Er();n=void 0;gQa(D)},fE=function(){PM(!1);
i4();f9(!1);nq(void 0);RU(void 0);Ib(void 0);Ca=0;Gn(0);l=!1},uY=function(){var bE;
(bE=n)==null||bE.onPause();m&&m.release();C.flush().catch(function(Oa){_.$h(Oa)});
G.flush().catch(function(Oa){_.$h(Oa)});
Hqi(K);d9(!0)},Ee=function(){var bE;
(bE=n)==null||bE.onResume();fv();bE=K;bE.isForeground=!0;uf(bE,"PLAY_EVENT_TYPE_PLAY_RESUME");d9(!1)},ep=function(bE){var Oa;
(Oa=n)==null||Oa.onAudioToggled(bE);Xf(bE)},MS=function(bE){b().showMultiplayer3pConsentDialogCommand&&(b().isEmbeddedInWebview&&bE!==void 0&&Z.resolve(bE),!bE&&_.eF()==="mini_app"&&qc(b().showMultiplayer3pConsentDialogCommand))},tO=function(){var bE,Oa,lL,Hh;
return _.r(function(Qm){if(Qm.nextAddress==1){!b().isLivestream||b().disableVideoCapture||(bE=n)!=null&&bE.sendStartGameFrameCapture();Oa=(new URL(window.location.href)).searchParams;if(Oa.has("invite_code")){var s5=new aJd,bM=Oa.get("invite_code");lL=_.En(s5,1,bM);(Hh=n)==null||Hh.sendGameData(lL)}mc()||(f9(!0),s5=K,s5.state!==1?_.$h(new _.jU("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+hOq[s5.state])):(_.kb("mini_app_ids_without_game_ready").includes(s5.JSC$17310_miniAppId)&&(s5.gameReady=
!0),s5.state=2,s5.beforeReady=!1,f$(s5,"ma_ffr"),uf(s5,"PLAY_EVENT_TYPE_PLAY_READY")));return Qm.yield(Z.promise,2)}qc(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||MS();_.Zd(Qm)})},LD=function(){var bE=K;
bE.gameReady=!0;f$(bE,"ma_gr")},fq=function(bE){var Oa;
return _.r(function(lL){if(lL.nextAddress==1)return _.u4(lL,2),lL.yield(foO(C,bE),4);if(lL.nextAddress!=2)return _.su(lL,0);Oa=_.UE(lL);qc(b().showSavingErrorPopupCommand);throw Oa;})},Qz=function(){var bE,Oa;
return _.r(function(lL){if(lL.nextAddress==1)return _.u4(lL,2),lL.yield(LJw(C),4);if(lL.nextAddress!=2)return bE=lL.yieldResult,lL.return(bE);Oa=_.UE(lL);qc(b().showLoadingErrorDialogCommand);throw Oa;})},lE=function(bE){K.logError(bE)},YQ=function(bE,Oa,lL){vQ6(K,bE,Oa,lL)},CD=function(bE,Oa){CL_(K,bE,Oa)},T4=function(){!S&&b().isEmbeddedInWebview||_.Wl();
KJL(K,!0);M||(window.addEventListener("beforeunload",ML,{capture:!0}),M=!0)},Un=function(bE){var Oa,lL,Hh,Qm,s5,bM,EI;
return _.r(function(vr){if(vr.nextAddress==1)return G&&(!R||R<bE)&&bE>0?vr.yield(ewq(G,bE),3):vr.jumpTo(0);Oa=vr.yieldResult;lL=_.O(Oa);Hh=lL.next().value;Qm=lL.next().value;s5=Hh;bM=Qm;((EI=s5)==null?0:EI.displayString)&&bM&&(RU(bM),Ib(s5.displayString));_.Zd(vr)})},F1=function(bE){var Oa=b().onBenchmarkingMessageReceivedCommand;
if(Oa){var lL=Bva();_.o$(bE,3,PAO,lL);Ux(Oa,vaZ(bE))}},pD=function(){var bE=b().iapPurchaseCommand;
bE&&Ux(bE)},mA=function(bE){var Oa=b().onGameFrameReceivedCommand;
if(Oa){var lL=new wa;var Hh=new Hn9;var Qm=uJ(bE,1);Hh=_.zx(Hh,1,Qm);bE=_.xp(bE,2);bE=_.En(Hh,2,bE);lL=_.xI(lL,2,bE);Ux(Oa,On9(lL))}},SH=function(bE){var Oa=b().onGameAudioDataReceivedCommand;
if(Oa){var lL=new wa;var Hh=new K39;bE=_.xp(bE,1);Hh=_.En(Hh,1,bE);lL=_.xI(lL,4,Hh);Ux(Oa,On9(lL))}},Lv=function(){var bE=new URLSearchParams(window.location.search);
if(b().isEmbeddedInWebview&&bE&&bE.get("override_hl")==="true"&&bE.get("hl"))return bE.get("hl");bE=document.documentElement.lang;return bE!==""?bE:A0},Dq=function(bE){var Oa=b().onShareInviteCodeCommand;
if(Oa)if(b().isEmbeddedInWebview){var lL=new ouZ;bE=_.En(lL,1,bE);Ux(Oa,JRl(bE))}else lL=b().inviteCodeShareClientParamIdentifier,D.clientParams.set(lL,{miniAppClientParams:{inviteCode:bE}}),qc(Oa)},g5=function(bE){var Oa,lL,Hh;
return _.r(function(Qm){if(Qm.nextAddress==1)return Oa=b().onMiniAppOpenYtContentRequested,G&&_.T("enable_open_yt_content")&&Oa?Qm.yield($_w(G,bE),3):Qm.jumpTo(0);lL=Qm.yieldResult;if(lL==="OK")if(b().isEmbeddedInWebview){var s5=new Na4;Hh=QE(s5,2,qD,M_(bE));Ux(Oa,Pb9(Hh))}else Y.clientData.set("video_id",bE),qc(Oa);_.Zd(Qm)})},YA=function(bE){Ca+=_.tg(bE,3);
bE=Math.min(Math.log(1+Ca/15E6*9)/Math.log(10),.99);Gn(bE);qY(bE)},qY=_.oS(function(bE){var Oa=b().updateLoadingProgressCommand;
if(Oa){var lL=new Na4;bE=QE(lL,3,qD,_.hV(bE));Ux(Oa,Pb9(bE))}},100),A1=function(bE,Oa){switch(bE){case 1:return Rw_(a);
case 2:return WJJ(a);case 3:return d_w(a,Oa);default:return Promise.reject(Error("ei"))}},fv=function(){var bE,Oa;
((bE=_.Kso())==null?void 0:(Oa=bE.wakeLock)==null?void 0:Oa.request)!=null&&_.Kso().wakeLock.request("screen").then(function(lL){m=lL}).catch(function(){})},Fw=_.GQ("iframe");
_.gA(function(){b().isSupportedCountry&&(Qto()||_.T("enable_sign_in_promo")||!b().showSignInDialogCommand?Fw.value&&Ye(Fw.value):qc(b().onMiniAppReadyCommand))},"EQIAIf");
var tM=function(){return _.c("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return mc()?0:-1},
title:function(){return b().title},
el:Fw})},Ye=function(bE,Oa){Oa=Oa===void 0?!1:Oa;
var lL=yc();if(lL&&(Oa||lL.toString()!==bE.getAttribute("src"))){n=jtL(b().source,{isAudioEnabled:jp,onFirstFrameReady:tO,onGameReady:LD,onSave:fq,onLoad:Qz,onError:lE,onSdkCalled:YQ,onSdkPerformanceUpdate:CD,onClick:T4,onSendHighScore:Un,onBenchmarkingMessageReceived:F1,getLanguage:Lv,onShareInviteCode:Dq,onResourceLoaded:YA,onOpenYTContent:g5,onShowMiniAppAd:A1,onGameFrameReceived:mA,onGameAudioReceived:SH,onMakeIapPurchase:pD},bE,lL);TS(bE,"load",function(){f$(K,"ma_il");TS(bE,"load",function(){Ye(bE,
!0)})});
var Hh=_.d7("mini_app_container_iframe_src_update_delay_ms");b().isEmbeddedInWebview&&!Oa&&Hh>0?fDe(bE,lL,Hh):_.SW(bE,lL)}},yc=function(){var bE=b().url;
if(bE&&(bE=_.Vb(bE),bE!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")bE=_.FK(bE,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.T("enable_origin_query_parameter_bugfix")){var Oa=_.xE(_.q4I(bE.toString()));Oa=new URLSearchParams(Oa||"");Oa.set("origin",window.location.origin);Oa=Oa.toString();bE=_.jo(bE).toString();bE=_.ZB(XMV.exec(bE)[0]+(Oa.trim()?"#"+Oa:""))}return bE}},yP=function(){var bE={};
bE=_.KU("yt-mini-app-container-view-model__loading-screen",(bE["yt-mini-app-container-view-model__loading-screen--fade-out"]=mc,bE));var Oa=function(){return mc()?1:R_()};
return _.c("div",{class:bE},_.c(_.kY,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(lL){return _.c(ZqJ,{data:lL.data,
loadingProgress:Oa})}}))},X5=function(){var bE={};
return _.c("div",{class:_.KU("yt-mini-app-container-view-model__pause-interstitial",(bE["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!ck()},bE["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=ck,bE))},_.c(_.kY,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(Oa){return _.c(ZqJ,{data:Oa.data,
forPaused:!0})}}))},Xz=function(){d=[];
d.push(_.lH(window,"visibilitychange",function(){u||P&&Hv()||(document.visibilityState==="visible"?Ee():uY())}));
d.push(_.lH(window,"pagehide",function(){i4()}));
d.push(_.lH(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&g9.value.dispatchEvent(new Event("tap"))},0)}));
d.push(_.lH(g9.value,"pointerdown",function(){KJL(K,!1)},!0));
d.push(_.lH(g9.value,"pause",function(){u=!0;uY()}));
d.push(_.lH(g9.value,"play",function(){u=!1;Ee()}));
d.push(_.lH(g9.value,"exit",function(){i4()}));
var bE=navigator.keyboard,Oa=bE&&bE.lock;d.push(_.lH(window,Sbl,function(){qS(HUV());HUV()?(b().hasPlayNextShelf&&If("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pF("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Oa&&bE.lock(["Escape"])):(b().hasPlayNextShelf&&pF("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),If("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Oa&&bE.unlock())}));
b().showMultiplayer3pConsentDialogCommand&&d.push(_.lH(window,"yt-playables-ack-3p-data-usage",function(){hwa(G)}));
b().confirmExitMiniAppCommandEdu&&d.push(_.lH(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Bd("exit-mini-app-seen-state","true",2592E6)}));
b().onGameAudioDataReceivedCommand&&d.push(_.lH(window,"message",function(lL){lL=lL.event_;var Hh,Qm=(Hh=Fw.value)==null?void 0:Hh.src;if(Qm&&lL.origin===(new URL(Qm)).origin&&lL.data&&lL.data.type==="GAME_AUDIO"&&lL.data.audio&&lL.data.audio.length>0)if(_.T("enable_sending_unwrapped_game_audio_as_serialized_metadata"))LzL(b().onGameAudioDataReceivedCommand,lL.data.audio);else{var s5=new FileReader;s5.onload=function(){var bM=new wa;var EI=new K39;EI=_.En(EI,1,s5.result);bM=_.xI(bM,4,EI);Ux(b().onGameAudioDataReceivedCommand,
On9(bM))};
s5.readAsDataURL(new Blob([lL.data.audio]))}}))},Er=function(){d.forEach(function(bE){Mu(bE)});
window.removeEventListener("beforeunload",ML,{capture:!0})},qc=function(bE){bE&&FzI(bE,b().isEmbeddedInWebview||!1)},pF=function(bE,Oa){bE=_.O(g9.value.getElementsByClassName(bE));
for(var lL=bE.next();!lL.done;lL=bE.next())lL.value.classList.add(Oa)},If=function(bE,Oa){bE=_.O(g9.value.getElementsByClassName(bE));
for(var lL=bE.next();!lL.done;lL=bE.next())lL.value.classList.remove(Oa)};
return function(){var bE={};bE=_.KU("yt-mini-app-container-view-model",(bE["yt-mini-app-container-view-model--desktop"]=!0,bE["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},bE["yt-mini-app-container-view-model--ios-web-view"]=KaO(),bE["yt-mini-app-container-view-model--no-top-bar"]=function(){return!b().topBar},bE["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return b().hasPlayNextShelf},bE["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return b().hasPlayNextShelf},bE["yt-mini-app-container-view-model--show-peek-below"]=function(){return!$O()&&b().hasPlayNextShelf},bE));
var Oa={};Oa=_.KU("yt-mini-app-container-view-model__content",(Oa["yt-mini-app-container-view-model__content--desktop-content"]=!0,Oa["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Oa["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},Oa));
return _.c("mini-app-container-view-model",{el:g9},_.c("div",{class:bE},_.c(_.W,{cond:function(){return b().topBar&&!$O()},
then:function(){return _.c(_.kY,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function(lL){return _.c(yO5,{data:lL.data,
isAudioEnabled:jp,onAudioToggled:function(Hh){ep(Hh)},
score:Bk,formattedScore:kZ,onScoreChanged:function(Hh){R=Hh},
isEmbeddedInWebview:Hv,isSaved:Nj,onSaveToggled:function(Hh){nq(Hh)},
isExitMiniAppSeen:S9,isDesktopPlayPage:XK})}})}}),_.c("div",{class:Oa},_.c(_.W,{cond:ob,
then:function(){return tM()}}),_.c(_.W,{cond:function(){return b().isLivestream},
then:function(){return X5()}}),_.c(_.W,{cond:function(){return!b().isEmbeddedInWebview},
then:function(){return yP()}}),_.c(_.kY,{data:function(){return b().contentDisclosure}},{playerDisclosureViewModel:function(lL){lL=lL.data;
var Hh={};return _.c("div",{class:_.KU("yt-mini-app-container-view-model__content-disclosure-overlay",(Hh["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Kq,Hh))},_.c(_.IoE,{data:lL}))}}))))}()},"cg");
qan.idomCompat=!0;_.qu(qan,"mini-app-container-view-model",{props:{data:_.kg}});var w5J=_.A(function(N){var b=N.data;return _.c("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.c("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ob(function(){var S=b().onTap;S&&_.AM(S)})},_.c(_.W,{cond:function(){return b().icon},
then:function(S){return _.c(_.cX,{icon:function(){return S().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.c("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))},"dg");
w5J.idomCompat=!0;var Ncw=_.A(function(N){var b=_.Ct("div"),S=_.O(_.QF(void 0,void 0,"dg3xff")),P=S.next().value,H=S.next().value;S=_.O(_.QF(void 0,void 0,"AgHNfc"));var K=S.next().value,C=S.next().value;S=_.O(_.QF(void 0,void 0,"fuTKCc"));var G=S.next().value,a=S.next().value,R=function(){var J=P();return J!==void 0?Math.abs(J):void 0},n=function(){var J=R();
return J===void 0||J<=3},d=function(){var J=R();
var Z=K(),D=G();J=J!==void 0&&Z!==void 0&&D!==void 0?Z-D-J:void 0;return J===void 0||J<=3},m=function(J){b.value&&b.value.scrollBy({top:0,
left:(_.Vg("HTML_DIR")==="rtl"?-1:1)*J*b.value.clientWidth,behavior:"smooth"})},k=function(){var J;
H((J=b.value)==null?void 0:J.scrollLeft);var Z;C((Z=b.value)==null?void 0:Z.scrollWidth);var D;a((D=b.value)==null?void 0:D.clientWidth)},M=function(){m(-.5)},l=function(){m(.5)};
S=_.Ob(function(){k()});
_.pM(function(){k();if(b.value&&window.ResizeObserver){var J=new ResizeObserver(k);J.observe(b.value);_.ej(function(){J.disconnect()})}});
var u={};return _.c("yt-sponsorships-scrollable-shelf",{class:_.KU("ytdSponsorshipsScrollableShelfHost",N.className)},_.c("div",{class:_.KU("ytdSponsorshipsScrollableShelfContent",(u.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return N.data().previousButton&&N.data().nextButton&&!n()&&!d()},u.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return N.data().previousButton&&!n()&&d()},u.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return N.data().nextButton&&
n()&&!d()},u)),
el:b,"on:scroll":S},N.children),_.c(_.W,{cond:function(){return!n()},
then:function(){return _.c(_.kY,{data:function(){return N.data().previousButton}},{buttonViewModel:function(J){return _.c(_.j$,{data:J.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:M})}})}}),_.c(_.W,{cond:function(){return!d()},
then:function(){return _.c(_.kY,{data:function(){return N.data().nextButton}},{buttonViewModel:function(J){return _.c(_.j$,{data:J.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:l})}})}}))},"fg");
Ncw.idomCompat=!0;var SLt=_.A(function(N){var b=N.data;N={};return _.c("yt-sponsorships-hub",{class:_.KU("ytdSponsorshipsHubHost",(N.ytdSponsorshipsHubHostIndented=function(){return b().indented},N))},_.c("div",{class:"ytdSponsorshipsHubHeader"},_.c("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.c("div",{class:"ytdSponsorshipsHubAvatar"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH})),_.c(_.W,{cond:function(){return b().badgeImage},
then:function(S){return _.c("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.c("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.c("div",{class:"ytdSponsorshipsHubBadge"},_.c(_.gG,{data:S,targetWidth:24,targetHeight:24,alt:""}))))}})),_.c("div",{class:"ytdSponsorshipsHubDetails"},_.c("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),_.c("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),_.c("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return b().membershipDurationOrExpiry})),_.c("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.c(_.kY,{data:function(){return b().manageButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.c(_.kY,{data:function(){return b().actionMenuButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.c("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),_.c(Ncw,{data:function(){return{previousButton:b().previousPerkButton,
nextButton:b().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.c("div",{class:"ytdSponsorshipsHubPerkCards"},_.c(_.kY,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:w5J}),_.c(_.W,{cond:function(){return b().viewAllPerksButton},
then:function(S){return _.c(bD6,{data:S})}}))))},"gg");
SLt.idomCompat=!0;var bD6=_.A(function(N){var b=N.data;return _.c("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.c(_.kY,{data:function(){return b().button}},{buttonViewModel:_.j$}),_.c("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.c("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return b().title}),_.c("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return b().subtitle})))},"hg");
bD6.idomCompat=!0;_.qu(SLt,"yt-sponsorships-hub",{props:{data:_.kg}});_.Pio=_.A(function(N){var b=N.data;return _.c("yt-dual-avatar-view-model",{class:_.KU("ytDualAvatarViewModelHost",N.className),style:_.r5({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var S;return((S=b().badgeCutoutRadius)!=null?S:14)+"px"}})},_.c("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.c(_.kY,{data:function(){return b().startAvatar}},{avatarViewModel:_.CH}),_.c(_.kY,{data:function(){return b().endAvatar}},{avatarViewModel:_.CH})),_.c(_.kY,{data:function(){return b().badge}},
{contentPreviewImageViewModel:function(S){return _.c("div",{class:"ytDualAvatarViewModelBadge"},_.c(_.ZU,{data:S.data}))}}))},"ig");
_.Pio.idomCompat=!0;var s$Q=_.A(function(N){var b=N.data;var S,P=!((S=_.aN().resolve(_.cq(_.T8)))==null||!S());N=_.UB(function(){var n,d,m=P?(n=b().header)==null?void 0:n.backgroundColorDarkMode:(d=b().header)==null?void 0:d.backgroundColorLightMode;if(m!==void 0)return _.o3(m)},void 0,"TDdh7d");
S=_.UB(function(){var n,d;return P?(n=b().header)==null?void 0:n.backgroundImagePart1Dark:(d=b().header)==null?void 0:d.backgroundImagePart1Light},void 0,"X0peMe");
var H=_.UB(function(){var n,d;return P?(n=b().header)==null?void 0:n.backgroundImagePart2Dark:(d=b().header)==null?void 0:d.backgroundImagePart2Light},void 0,"an0Hzd"),K=_.UB(function(){return _.Vg("HTML_DIR")==="rtl"},void 0,"BltEgb"),C=_.Ct("yt-sponsorships-perks-list"),G=!1,a=function(){var n=C.value;
if(n&&!G){var d,m=(d=n.parentElement)==null?void 0:d.parentElement;if(m)for(n=n.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),d=0;d<n.length;++d){var k=n[d];if(k instanceof HTMLElement){m.scrollTo({top:k.offsetTop+k.clientHeight/2-m.clientHeight/2,behavior:"smooth"});G=!0;break}}}};
_.YU(function(){var n=C.value;if(n&&window.ResizeObserver){var d=new ResizeObserver(a);d.observe(n);_.ej(function(){d.disconnect()})}});
var R={};return _.c("yt-sponsorships-perks-list",{el:C,class:_.KU("ytdSponsorshipsPerksListHost",(R.ytdSponsorshipsPerksListHorizontalPadding=function(){return b().horizontalPaddingEnabled},R))},_.c("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.c("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.r5({"background-color":N})},_.c("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.c(_.W,{cond:S,then:function(n){var d={};return _.c("div",{class:_.KU((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,d.ytdSponsorshipsPerksListFlipped=K,d))},_.c(_.gG,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.c("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.c(_.W,{cond:H,
then:function(n){var d={};return _.c("div",{class:_.KU((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,d.ytdSponsorshipsPerksListFlipped=K,d))},_.c(_.gG,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.c("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.c(_.kY,{data:function(){var n;
return(n=b().header)==null?void 0:n.dualAvatar}},{dualAvatarViewModel:_.Pio})))),_.c("div",{class:"ytdSponsorshipsPerksListBody"},_.c("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return b().title}),_.c(_.W,{cond:function(){return b().perks},
then:function(n){return _.c(_.zj,{each:n},function(d,m){var k={};return _.c("div",{class:_.KU("ytdSponsorshipsPerksListPerkContainer",(k.ytdSponsorshipsPerksListSelectedPerk=function(){var M=m(),l=b().selectedPerkIndex;return M===l},k))},_.c(_.W,{cond:function(){return m()>0},
then:function(){return _.c("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.c("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.c(_.W,{cond:function(){return d.icon},
then:function(M){return _.c(_.cX,{icon:function(){return M().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.c("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.c("div",{class:"ytdSponsorshipsPerksListPerkTitle"},d.title),_.c("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.c(_.mD,{text:d.description})),_.c(_.W,{cond:function(){return d.instructions},
then:function(){var M,l;return _.c("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.c("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(M=d.instructions)==null?void 0:M.title),_.c("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.c(_.mD,{text:(l=d.instructions)==null?void 0:l.text})))}}))),_.c(_.W,{cond:function(){return d.emoji},
then:function(M){return _.c("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.c(_.zj,{each:function(){return M()}},function(l){return _.c(_.gG,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.c(HDi,{data:d}))})}})))},"jg");
s$Q.idomCompat=!0;var HDi=_.A(function(N){var b=N.data;var S=function(C,G){return C===G},P=function(){var C=b();
C=_.t(C==null?void 0:C.badgesShelf,zuE);return C!==void 0&&C!==null?C:{previousButton:{},nextButton:{}}},H=_.GQ("div"),K=function(){var C=H.value;
if(C){var G=C.parentElement;if(G){C=C.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var a=0;a<C.length;++a){var R=C[a];if(R instanceof HTMLElement){G.scrollTo({left:R.offsetLeft+R.clientWidth/2-G.clientWidth/2,behavior:"instant"});break}}}}};
_.YU(function(){var C=H.value;if(C){var G=new ResizeObserver(K);G.observe(C);_.ej(function(){G.disconnect()})}});
return _.c("div",null,_.c(_.W,{cond:function(){return b().badges},
then:function(C){return _.c(Ncw,{data:P},_.c("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:H},_.c(_.zj,{each:function(){return C()}},function(G,a){var R={},n={},d={};
return _.c("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.c(_.W,{cond:function(){return a()>0},
then:function(){return _.c("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.c("div",{class:_.KU("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(R.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return S(a(),b().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!S(a(),b().currentBadgeIndex)},R))},_.c("div",{class:_.KU("ytdSponsorshipsPerksListLoyaltyBadge",(n.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return S(a(),
b().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!S(a(),b().currentBadgeIndex)},n))},_.c(_.W,{cond:function(){return G.image},
then:function(m){var k={};return _.c("div",{class:_.KU((k.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return S(a(),b().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!S(a(),b().currentBadgeIndex)},k))},_.c(_.gG,{data:m,
alt:""}))}})),_.c("div",{class:_.KU("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return S(a(),b().currentBadgeIndex)},d))},G.title)))})))}}))},"kg");
HDi.idomCompat=!0;_.qu(s$Q,"yt-sponsorships-perks-list",{props:{data:_.kg}});_.qu(_.A(function(N){return _.c("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.c(_.W,{cond:function(){return N.data().image},
then:function(b){return _.c(_.gG,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),_.c(_.mD,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return N.data().title}}),_.c(_.mD,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return N.data().subtitle}}),_.c(_.kY,{data:function(){return N.data().primaryButton}},{buttonViewModel:function(b){return _.c(_.j$,{data:b.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"lg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.kg}});var KkO;var vIE=_.A(function(N){var b=N.data;var S=N.uniqueId;var P=N.overrides;N=_.UB(function(){var H,K=((H=b().timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:S(),timings:K,experimentEnabled:K.length>0,enabled:K.length>0}},void 0,"hiuXI");
return _.c("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.c(zn9,{settings:N},_.c(_.kY,{data:function(){return b().buttonRenderer}},{buttonRenderer:function(H){return _.c(_.lu,{data:H.data,
buttonOverrides:P})}})))},"mg");
vIE.idomCompat=!0;_.qu(vIE,"timed-animation-button-renderer",{props:{data:_.kg,uniqueId:_.kg,overrides:_.kg}});var Z4=function(){var N=_.z.apply(this,arguments)||this;N.hideJoinButtonBeforeSubscribed=_.T("hide_join_button_before_subscribed");N.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return N};
_.F(Z4,_.z);_.v=Z4.prototype;_.v.hasShowDialogCommand=function(N){return!!_.t(N,Ii4)};
_.v.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.updateJoinButtonOverrides=function(){var N,b;(N=_.H4(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=N.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(N=_.H4(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))N.overrides=this.joinButtonOverrides};
_.v.handleButtonRefreshAction=function(N){if(N=_.t(N,Rd4))this.set("data.membershipButton",N.membershipButton),this.notifyPath("data.membershipButton")};
_.v.onYtServiceRequestError=function(N){_.I2(this.hostElement,N.detail.error.message)};
_.v.onKeydown=function(N){if(N.key==="Enter"){var b;(b=this.data)!=null&&b.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.v.handleUnsubscribeAction=function(){var N,b,S;((N=this.data)==null?void 0:(b=N.membershipButton)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.style)==="STYLE_PRIMARY"&&_.H4(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.d0.Object.defineProperties(Z4.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.subscriptionStateEntity)==null||!N.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.data)==null?void 0:N.membershipButton,S;N=(b==null?void 0:b.buttonRenderer)||_.t(b==null?void 0:(S=b.timedAnimationButtonRenderer)==null?void 0:S.buttonRenderer,_.rU);return(N==null?void 0:N.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(N==null?void 0:N.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(N==null?void 0:N.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var N;if(this.hasShowDialogCommand((N=this.data)==null?void 0:N.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var N;if(this.hasShowDialogCommand((N=this.data)==null?void 0:N.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedTitle)}}});
Z4.prototype.onYtServiceRequestError=Z4.prototype.onYtServiceRequestError;Z4.prototype.updateJoinButtonOverrides=Z4.prototype.updateJoinButtonOverrides;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Z4.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],Z4.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.qP),_.y("design:type",Object)],Z4.prototype,"ironButtonState",void 0);_.p([_.U(),_.y("design:type",Object)],Z4.prototype,"data",void 0);_.p([_.f("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z4.prototype,"hideJoin",null);
_.p([_.U(),_.y("design:type",String)],Z4.prototype,"subscribeKey",void 0);_.p([_.U({selectorArgs:["subscribeKey"],selector:XHe}),_.y("design:type",Object)],Z4.prototype,"subscriptionStateEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Z4.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.p([_.f("subscriptionStateEntity"),_.U({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],Z4.prototype,"subscribed",null);
_.p([_.f("subscribed","data.membershipButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z4.prototype,"joinButtonOverrides",null);_.p([_.f("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z4.prototype,"channelNameTabIndex",null);_.p([_.f("data.navigationEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],Z4.prototype,"channelNameRole",null);
_.p([_.f("data.attributedTitle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Z4.prototype,"hasAttributedTitle",null);_.p([_.W4("joinButtonOverrides"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z4.prototype,"updateJoinButtonOverrides",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Z4.prototype,"onYtServiceRequestError",null);
_.p([_.Uj({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Z4);
var ODL=_.H7()(Z4,"ytd-video-owner-renderer",function(){if(KkO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);KkO=N}N=KkO;return N},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.qu(_.A(function(N){var b=N.data;var S;N=_.O(_.QF(!((S=_.l1("yt-mini-app-is-theater-mode-enabled"))==null||!S),void 0,"i2pjVd"));var P=N.next().value,H=N.next().value;S=_.O(_.QF(!1,void 0,"ga7V5c"));var K=S.next().value,C=S.next().value;_.YU(function(){var R=_.lH(window,Sbl,function(){C(HUV())});
_.ej(function(){Mu(R)})});
var G;S=(G=_.aN().resolve(_.cq(ufw)))!=null?G:function(){return _.c("div",null)};
_.OX("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){H(!0);_.Bd("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.OX("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){H(!1);_.Bd("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
G={};N={};var a={};return _.c("mini-app-play-page-renderer",{class:_.KU("miniAppPlayPageRendererHost",(G.miniAppPlayPageRendererHostDetailsView=function(){return!P()},G))},_.c("div",{class:_.KU("miniAppPlayPageRendererGameContainer",(N.miniAppPlayPageRendererGameContainerDetailsView=function(){return!P()},N))},_.c(_.kY,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:qan}),_.c(_.W,{cond:function(){return b().channel&&b().subscribeButton},
then:function(){var R={};return _.c("div",{class:_.KU("miniAppPlayPageRendererChannelContainer",(R.miniAppPlayPageRendererHideVisibility=function(){return K()},R))},_.c(_.kY,{data:function(){return b().channel}},{videoOwnerRenderer:function(n){return _.c(ODL,{data:n.data})}}),_.c(_.kY,{data:function(){return b().subscribeButton}},{subscribeButtonViewModel:function(n){return _.c(_.CW,{data:n.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.c(_.W,{cond:function(){return!P()&&b().description},
then:function(){var R={};return _.c("div",{class:_.KU("miniAppPlayPageRendererMiniAppDescriptionWrapper",(R.miniAppPlayPageRendererHideVisibility=function(){return K()},R))},_.c("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}})),_.c("div",{class:_.KU("miniAppPlayPageRendererPlayNextContainer",(a.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!P()},a.miniAppPlayPageRendererHideVisibility=function(){return K()},a))},_.c(_.kY,{data:function(){return b().sectionList}},
{sectionListRenderer:S})))},"ng"),"mini-app-play-page-renderer",{props:{data:_.kg}});var jv=function(){var N=_.z.apply(this,arguments)||this;N.isSearch=!1;N.isConstrainedList=!1;N.hasChipsBar=!1;N.inReplyPanel=!1;N.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};N.monitorScroll=!0;N.SCROLL_ANIMATION_DURATION_MS=300;N.nextContinuation={continuationType:"sectionListContinuation"};return N};
_.F(jv,_.z);_.v=jv.prototype;
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(N){switch(N.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.T("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.T("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.v.created=function(){var N=this;this.JSC$17451_scrollAnimation=new _.lf(function(b){N.hostElement.scrollTop=b})};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.replacePrimaryContent=function(N){this.set("data.contents",N)};
_.v.computeHasSortFilter=function(N){return!!N&&!!N.sortFilterSubMenuRenderer};
_.v.computeShouldScrollInPanel=function(N){var b;return!!(N==null?0:(b=N.scrollPaneStyle)==null?0:b.scrollable)};
_.v.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.K3(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.v.scrollToTop=function(){this.hostElement.scrollTop=0};
_.v.scrollToItemSection=function(N){if(N=this.getItemByIdentifier(N))N=this.getScrollPositionForItem(N),this.hostElement.scrollTop!==N&&this.JSC$17451_scrollAnimation.start(this.hostElement.scrollTop,N,this.SCROLL_ANIMATION_DURATION_MS)};
_.v.getItemByIdentifier=function(N){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var S=Array.from(b).findIndex(function(P){return P.sectionIdentifier===N});
return b[S===-1?0:S]}};
_.v.getScrollPositionForItem=function(N){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===N)return 0;N=_.qz(N).y+this.hostElement.scrollTop-_.qz(this.hostElement).y;return Math.min(N,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d0.Object.defineProperties(jv.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.targetId)==="browse-feedFEclips"}}});
jv.prototype.onScroll=jv.prototype.onScroll;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],jv.prototype,"ytLazyListBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],jv.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.L(_.DS_),_.y("design:type",Object)],jv.prototype,"ytBooleanLogicBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],jv.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jv.prototype,"data",void 0);_.p([_.U({value:2}),_.y("design:type",Number)],jv.prototype,"initialCount",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],jv.prototype,"autoFill",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.y("design:type",Boolean)],jv.prototype,"hasSortFilter",void 0);_.p([_.U({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.y("design:type",Boolean)],jv.prototype,"hideBottomSeparator",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.y("design:type",Boolean)],jv.prototype,"shouldScrollInPanel",void 0);
_.p([_.U(),_.y("design:type",Object)],jv.prototype,"isSearch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jv.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],jv.prototype,"responsiveSizing",void 0);_.p([_.U(),_.y("design:type",Object)],jv.prototype,"hasChipsBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],jv.prototype,"pageSubtype",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],jv.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],jv.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jv.prototype,"inReplyPanel",void 0);_.p([_.dq("#action-button"),_.y("design:type",HTMLElement)],jv.prototype,"actionButton",void 0);_.p([_.U(),_.y("design:type",Object)],jv.prototype,"scrollUpButtonData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],jv.prototype,"engagementPanelDropdown",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],jv.prototype,"engagementPanelDialog",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jv.prototype,"isClipList",null);_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],jv.prototype,"monitorScrollElement",void 0);_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],jv.prototype,"contents",void 0);
_.p([_.RA("scroll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jv.prototype,"onScroll",null);_.p([_.Uj({is:"ytd-section-list-renderer",disableElementRegistration:!0})],jv);
var CiE=_.H7()(jv,"ytd-section-list-renderer",function(){if(f_L===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);f_L=N}N=f_L;return N},{mode:1});var G7n;var rSi;var cSQ;var aBJ;var z9=function(){return _.z.apply(this,arguments)||this};
_.F(z9,_.z);z9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
z9.prototype.onLikeButtonClick=function(N){N.stopPropagation();N.preventDefault()};
_.d0.Object.defineProperties(z9.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)!=null&&N.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],z9.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],z9.prototype,"ytRendererStamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],z9.prototype,"data",void 0);
_.p([_.U({selectorArgs:["data.likeStatusEntityKey"],selector:_.io}),_.y("design:type",Object)],z9.prototype,"likeStatusEntity",void 0);_.p([_.f("data","likeStatusEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],z9.prototype,"likeButtonRenderer",null);_.p([_.Uj({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],z9);
_.X(z9,"ytd-slim-metadata-toggle-button-renderer",function(){if(aBJ!==void 0)return aBJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return aBJ=N},{mode:1});var Ai=function(){var N=_.z.apply(this,arguments)||this;N.showEqualizer=_.T("web_enable_playlist_video_lockup_equalizer");N.watchColorUpdate=_.T("kevlar_watch_color_update");N.actionMap={};return N};
_.F(Ai,_.z);_.v=Ai.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.v.computeEditableClass=function(N){return N&&N.menu?"editable":""};
_.v.computeSelected=function(N){return!(N==null||!N.selected)};
_.v.computeUseColorPalette=function(N){return!!((N==null?0:N.lightColorPalette)&&(N==null?0:N.darkColorPalette))};
_.v.computeLargerPlaylistThumbs=function(N,b){return _.T("web_enable_playlist_bigger_thumbnails")&&!b};
_.v.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.v.onYtServiceRequestSent=function(N,b){b.endpoint&&this.isHideEnclosingAction(b.endpoint)&&!this.selected&&MC4(_.M$(),this.data.videoId)};
_.v.isHideEnclosingAction=function(N){var b=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",N);N=this.get("likeEndpoint.status",N)==="INDIFFERENT";return b||N};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.d0.Object.defineProperties(Ai.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.T("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.withinMiniplayer&&((N=this.data)==null?0:N.actionButtons))}}});
Ai.prototype.onYtServiceRequestSent=Ai.prototype.onYtServiceRequestSent;Ai.prototype.canReorderChanged=Ai.prototype.canReorderChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.kJ),_.y("design:type",Object)],Ai.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ai.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"withinMiniplayer",void 0);_.p([_.U({computed:"computeSelected(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"selected",void 0);
_.p([_.U({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"useColorPalette",void 0);_.p([_.U({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"largerPlaylistThumbs",void 0);_.p([_.U(),_.y("design:type",Object)],Ai.prototype,"showEqualizer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"canReorder",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"touchPersistentDragHandle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ai.prototype,"handleIsHovered",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ai.prototype,"watchColorUpdate",void 0);_.p([_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],Ai.prototype,"reorderIcon",null);
_.p([_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],Ai.prototype,"playIcon",null);_.p([_.U({reflectToAttribute:!0}),_.f("withinMiniplayer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ai.prototype,"minimizePipBreakages",null);_.p([_.f("largerPlaylistThumbs"),_.y("design:type",Number),_.y("design:paramtypes",[])],Ai.prototype,"thumbnailWidth",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ai.prototype,"showActionButtons",null);_.p([_.t_("canReorder"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ai.prototype,"canReorderChanged",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],Ai.prototype,"onYtServiceRequestSent",null);
_.p([_.Uj({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Ai);
_.X(Ai,"ytd-playlist-panel-video-renderer",function(){if(cSQ!==void 0)return cSQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return cSQ=N},{mode:2});var XZ=function(){return _.z.apply(this,arguments)||this};
_.F(XZ,_.z);XZ.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],XZ.prototype,"data",void 0);_.p([_.Uj({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],XZ);
_.X(XZ,"ytd-playlist-panel-supported-items",function(){if(rSi!==void 0)return rSi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return rSi=
N},{mode:1});KHc=!0;ICN("\\P{N}");var DUb;var Rin=_.cN("END_OF_PLAYLIST",void 0,"End of playlist"),Wkq=_.cN("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Ez=function(){var N=_.z.apply(this,arguments)||this;N.minimizePipBreakages=_.T("web_pip_minimize_breakages");N.hideHeaderText=!1;N.useColorPalette=!1;N.collapsed=!1;N.collapsedPreServerOverride="not_tracked";N.isHovered=!1;N.expandLabel=_.cN("MINIPLAYER_EXPAND_LABEL");N.collapseLabel=_.cN("MINIPLAYER_COLLAPSE_LABEL");N.isFloating=!1;N.metaPanel=
!1;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};N.currentIndex=void 0;return N};
_.F(Ez,_.z);_.v=Ez.prototype;
_.v.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){var N=this;this.scrollThrottle=new _.GR(this.onThrottledScroll,1E3,this);this.JSC$17473_ytReorderableController=new _.$lz(56,function(b){N.handleDrop(b)})};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.computeOverflowMenuData=function(N){return N&&N.menu?N.menu:null};
_.v.computeCollapsible=function(N){return!N};
_.v.computeHasPlaylistButtons=function(N){return!(!N||!N.playlistButtons)};
_.v.computeHasSeparateSaveButton=function(N){return!(!N||!N.saveButton)};
_.v.computeHasToolbarButton=function(N,b){return!(!N||!(b||N.saveButton||N.menu))};
_.v.computePlaylistType=function(N){if(N&&N.playlistId)return N.playlistId.substring(0,4)};
_.v.computeCanReorder=function(N){return N?N.playlistId&&N.playlistId.startsWith("TLPQ")?!0:!!N.isEditable&&!N.isInfinite:!1};
_.v.attached=function(){var N=this;try{_.aN().resolve(_.dt).setPlaylistComponent(this.hostElement)}catch(b){if(_.T("kevlar_park_on_playlist_token_killswitch"))throw b;_.kA().parkOrScheduleJob(function(){_.aN().resolve(_.dt).setPlaylistComponent(N.hostElement)},2,"ci")}_.wp(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.v.detached=function(){_.N7(this.hostElement);_.g3(this.JSC$17473_ytReorderableController)};
_.v.computeTrailingIcon=function(N,b,S){return S?b?"yt-icons:collapse":"yt-icons:close":b?"yt-icons:expand":_.T("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.v.computeIndexMessage=function(N,b){return eeU(N+1)+" / "+eeU(b)};
_.v.onRenderStamperFinished=function(){if(this.scrollForStampDom){var N=!0;this.isHovered&&(N=!1);if(this.collapsed||this.hidden)N=!1;N&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.v.collapseChanged=function(){var N=this;this.collapsed||(_.ml(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.v.hiddenChanged=function(){var N=this;this.hidden||_.ml(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.scrollToCurrentVideo()})};
_.v.setupReordering=function(){var N=_.H4(this.hostElement).querySelector("#items");FXZ?_.h4z(this.JSC$17473_ytReorderableController,N,N,"playlist-drag-handle"):_.h4z(this.JSC$17473_ytReorderableController,N,N)};
_.v.scrollToCurrentVideo=function(){var N=this;_.Dj.addJob(function(){var b=_.H4(N.hostElement).querySelector("#items");if(b){b.style.setProperty("padding-bottom","");var S=_.H4(N.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(S){b=S.parentElement||_.jO(document);var P=b||_.jO(document);var H=_.qz(S),K=_.qz(P),C=_.uKV(P);if(P==_.jO(document)){var G=H.x-P.scrollLeft;H=H.y-P.scrollTop}else G=H.x-K.x-C.left,H=H.y-K.y-C.top;S=BYS(S);K=P.clientHeight-
S.height;C=P.scrollLeft;var a=P.scrollTop;C+=G-(P.clientWidth-S.width)/2;P=new _.ek(C,a+(H-K/2));b.scrollLeft=P.x;b.scrollTop=P.y}}},8)};
_.v.dataChanged=function(){var N=this;_.g3(this.JSC$17473_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.W_(this,function(){_.XC(N.ytTaskEmitterBehavior.getTaskManager(),function(){N.ytRendererBehavior.markDirty();N.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.v.onFullBleedPlayerChanged=function(){_.T("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.onFullscreenChanged=function(){_.T("web_watch_imax_theater_mode")||_.T("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.updateNowPlayingOverlay=function(){_.T("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.v.onPlaylistLockupNowPlaying=function(N,b){b&&(this.activeNowPlayingRenderer=b);this.updateNowPlayingOverlay()};
_.v.onScroll=function(){this.scrollThrottle.fire()};
_.v.onThrottledScroll=function(){var N=this;_.XC(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.ytRendererBehavior.markDirty()})};
_.v.onToggleExpanded=function(N){!this.collapsible||N&&(_.gQ(N).tagName==="A"||_.VC(_.V7(N),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.v.setCollapsed=function(N){this.collapsible&&(this.collapsed=N,_.PN(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.v.handleCollapsedFromData=function(N){if(N){var b=N.playlistPanelCollapseState;b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||b==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),b=b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==b&&this.setCollapsed(b)):this.currentPlaylistId!==N.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(b=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==b&&this.setCollapsed(b),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=N.playlistId}};
_.v.handleDrop=function(N){var b=N.currDragItem;N=b.data.playlistSetVideoId;var S=_.Ue(b.parentNode.childNodes,b),P=void 0;S>0&&(P=b.parentNode.childNodes[S-1].data.playlistSetVideoId);b=_.M$();if(b.responsePlaylistData&&b.responsePlaylistData.contents){var H=uLO(N,b.responsePlaylistData);b.responsePlaylistData=(0,_.Vm.unsafeClone)(b.responsePlaylistData);zEo(b.responsePlaylistData.contents,H,S);b.queueProxy?qmz(b.queueProxy,H,S,N,P):b.playlistProxy&&qmz(b.playlistProxy,H,S,N,P);_.FB(b,_.By(b,b.response?
b.response.autoplayRenderer:void 0))}};
_.v.handleDarkModeChange=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
_.v.colorPaletteChanged=function(){var N,b=((N=this.data)==null?void 0:N.contents)||[],S;N=_.O(b);for(b=N.next();!b.done;b=N.next()){b=b.value;var P=void 0;if((P=b.playlistPanelVideoRenderer)==null?0:P.selected){N=b.playlistPanelVideoRenderer;P=b=void 0;(S=this.isDarkTheme?(b=N)==null?void 0:b.darkColorPalette:(P=N)==null?void 0:P.lightColorPalette)&&_.FM(this.hostElement,S);break}}this.useColorPalette=!!S};
_.d0.Object.defineProperties(Ez.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.moveThreeDotsMenuToMainHeader)&&_.T("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var N=_.aN().resolve(_.cq(_.dt)),b;if(((b=this.data)==null?0:b.contents)&&(N==null?0:N.hasAutoplayData())){var S;if(((S=this.playlistLoopStateEntity)==null?void 0:S.state)==="PLAYLIST_LOOP_STATE_ONE"){if(N=this.data.currentIndex,N!==void 0){var P,H;var K=(P=this.data.contents[N])==null?void 0:(H=P.playlistPanelVideoRenderer)==null?void 0:H.title}}else{var C,G=(C=_.t(N.getAutoplayEndpoint(),_.Iv))==null?void 0:C.videoId,a,R;K=(a=this.data.contents.find(function(n){var d;
return((d=n.playlistPanelVideoRenderer)==null?void 0:d.videoId)===G}))==null?void 0:(R=a.playlistPanelVideoRenderer)==null?void 0:R.title}return K}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)!=null&&N.nextVideoLabel?this.nextVideoTitle?_.es(this.data.nextVideoLabel)+":":Rin:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?0:N.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.T("web_mix_long_byline_from_data"))return _.gy(Wkq);var b;return(b=this.data)==null?void 0:b.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.playlistButtons)==null?void 0:(S=b.menuRenderer)==null?void 0:S.topLevelButtons;if(P)for(N=_.O(P),b=N.next();!b.done;b=N.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.collapsed&&((N=this.data)==null?0:N.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.T("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Ez.prototype.colorPaletteChanged=Ez.prototype.colorPaletteChanged;Ez.prototype.onPlaylistLockupNowPlaying=Ez.prototype.onPlaylistLockupNowPlaying;Ez.prototype.updateNowPlayingOverlay=Ez.prototype.updateNowPlayingOverlay;Ez.prototype.onFullscreenChanged=Ez.prototype.onFullscreenChanged;Ez.prototype.onFullBleedPlayerChanged=Ez.prototype.onFullBleedPlayerChanged;Ez.prototype.dataChanged=Ez.prototype.dataChanged;Ez.prototype.hiddenChanged=Ez.prototype.hiddenChanged;Ez.prototype.collapseChanged=Ez.prototype.collapseChanged;
Ez.prototype.onRenderStamperFinished=Ez.prototype.onRenderStamperFinished;Ez.prototype.onMouseLeave=Ez.prototype.onMouseLeave;Ez.prototype.onMouseEnter=Ez.prototype.onMouseEnter;_.p([_.L(_.$M),_.y("design:type",Object)],Ez.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(MwN.YtPlaylistPanelBehavior),_.y("design:type",Object)],Ez.prototype,"ytPlaylistPanelBehavior",void 0);_.p([_.L(_.Bt.YtTaskEmitterBehavior),_.y("design:type",Object)],Ez.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ez.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"autoplayData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ez.prototype,"withinMiniplayer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"minimizePipBreakages",void 0);
_.p([_.U({computed:"setMenuData_(data)"}),_.y("design:type",Object)],Ez.prototype,"menuRendererData",void 0);_.p([_.U({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],Ez.prototype,"overflowMenuDataTopRow",void 0);_.p([_.U({computed:"computeOverflowMenuData(data)"}),_.y("design:type",Object)],Ez.prototype,"overflowMenuData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"hideHeaderText",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"useColorPalette",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.y("design:type",Boolean)],Ez.prototype,"collapsible",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ez.prototype,"hidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.y("design:type",Boolean)],Ez.prototype,"hasPlaylistButtons",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.y("design:type",Boolean)],Ez.prototype,"hasSeparateSaveButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.y("design:type",Boolean)],Ez.prototype,"hasToolbar",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.y("design:type",String)],Ez.prototype,"playlistType",void 0);_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"isHovered",void 0);_.p([_.U({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Pc.playlistLoopStateEntitySelector}),_.y("design:type",Object)],Ez.prototype,"playlistLoopStateEntity",void 0);_.p([_.U({computed:"computeCanReorder(data)"}),_.y("design:type",Boolean)],Ez.prototype,"canReorder",void 0);
_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"expandLabel",void 0);_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"collapseLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"isFloating",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ez.prototype,"metaPanel",void 0);_.p([_.U({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.y("design:type",String)],Ez.prototype,"trailingIcon",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Ez.prototype,"isDarkTheme",void 0);_.p([_.U({selector:_.op}),_.y("design:type",Boolean)],Ez.prototype,"miniplayerIsActive",void 0);_.p([_.U({selector:function(N){return N.watch.playerState}}),
_.y("design:type",Number)],Ez.prototype,"playerState",void 0);_.p([_.U({selector:_.x9}),_.y("design:type",Boolean)],Ez.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.QC}),_.y("design:type",Boolean)],Ez.prototype,"isTheaterMode",void 0);_.p([_.U(),_.y("design:type",Object)],Ez.prototype,"activeNowPlayingRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ez.prototype,"moveThreeDotMenuToTopRow",null);
_.p([_.f("data","autoplayData","playlistLoopStateEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ez.prototype,"nextVideoTitle",null);_.p([_.f("data","nextVideoTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],Ez.prototype,"nextVideoLabel",null);_.p([_.f("collapsed"),_.y("design:type",String),_.y("design:paramtypes",[])],Ez.prototype,"buttonAriaLabel",null);
_.p([_.f("data","playlistId","longBylineText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ez.prototype,"mixLongByLine",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ez.prototype,"playlistLoopStateEntityKey",null);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"onMouseEnter",null);
_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"onMouseLeave",null);_.p([_.U({reflectToAttribute:!0}),_.f("data","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ez.prototype,"showNextVideoHeader",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"onRenderStamperFinished",null);
_.p([_.W4("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"collapseChanged",null);_.p([_.W4("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"hiddenChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"dataChanged",null);
_.p([_.f("isTheaterMode","isFullscreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ez.prototype,"isFullBleedPlayer",null);_.p([_.W4("isTheaterMode","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"onFullBleedPlayerChanged",null);_.p([_.W4("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"onFullscreenChanged",null);
_.p([_.W4("playerState","miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"updateNowPlayingOverlay",null);_.p([_.RA("yt-playlist-lockup-now-playing-active"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Ez.prototype,"onPlaylistLockupNowPlaying",null);
_.p([_.W4("data","isDarkTheme"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ez.prototype,"colorPaletteChanged",null);_.p([_.Uj({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Ez);
_.nIn=_.H7()(Ez,"ytd-playlist-panel-renderer",function(){if(G7n===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);G7n=N}N=G7n;return N},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.djE={};
_.djE.YtConditionalRendererBehavior=[_.h.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(N,b){var S=this,P,H;return _.r(function(K){switch(K.nextAddress){case 1:if(!b)return S.hidden=!0,S.showSpinner=!1,K.return();if((P=N)==null?0:(H=P.visibilityCondition)==null?0:H.mode)switch(N.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return K.jumpTo(5);default:return K.jumpTo(6)}S.showSpinner=
!1;S.hidden=!0;return K.yield(S.shouldShow_(N),4);case 4:S.hidden=!K.yieldResult;K.jumpTo(0);break;case 5:return K.yield(S.shouldShow_(N),8);case 8:S.showSpinner=K.yieldResult;S.hidden=!1;K.jumpTo(0);break;case 6:return S.showSpinner=!1,K.yield(S.shouldShow_(N),9);case 9:S.hidden=!K.yieldResult,_.Zd(K)}})},
shouldShow_:function(N){return N&&N.supportedDatas&&N.supportedDatas.rendererVisibilityConditionData&&N.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(N.supportedDatas.rendererVisibilityConditionData.showIf):N&&N.visibilityCondition&&N.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(N.visibilityCondition.showIf):N&&N.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(N.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(N){switch(N){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(N){switch(N){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var N=_.St(this.hostElement,"yt-get-mdx-status");return N.length==1&&N[0].connected},
isLocationPermissionGranted_:function(){var N;return _.r(function(b){return b.nextAddress==1?navigator.permissions?b.yield(navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2):b.nextAddress!=2?(N=b.yieldResult,b.return(Promise.resolve(N.state==="granted"))):b.return(Promise.resolve(!1))})}}];var mjq=IwY("yt-icon",{callbackProps:["onKeydown"]}),k7E=_.T("kevlar_use_wil_icons")?_.A(function(N){var b=N.icon;var S=N.active;var P=N.className;var H=N.style;var K=N.title;var C=N.size;var G=N.dataSelected;var a=N.dataDisabled;var R=N.role;var n=N.themeOverride;var d=N.animateIcon;var m=N.ariaHidden;var k=N.ariaExpanded;var M=N.ariaLabel;var l=N.tabindex;var u=N.id;var J=N.iconFilter;var Z=N.gradientColor;var D=N.onKeydown;var Y=function(){var e=b==null?void 0:b(),se=null,Ca=void 0;e&&(e=wxk(e),
e=TTI(e),e.length&&(se=e[1],Ca=e[0]));return{iconName:se,iconSetName:Ca}},V=function(){return NBN(Y().iconName,S==null?void 0:S(),void 0,C==null?void 0:C(),Y().iconSetName,_.aN().resolve(_.GS))},g=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:J==null?void 0:J(),iconColor:Z==null?void 0:Z()}};
return _.c(_.W,{cond:d,then:function(){return _.c(mjq,{icon:b,active:S,className:P,style:H,title:K,dataSelected:G,dataDisabled:a,role:R,themeOverride:n,ariaHidden:m,ariaExpanded:k,ariaLabel:M,tabindex:l,id:u,iconFilter:J,gradientColor:Z,onKeydown:D})},
else:function(){return _.c(_.W,{cond:V,then:function(e){return _.c("span",{class:_.KU("ytIconWrapperHost",P),role:R,"aria-label":M,"aria-hidden":m,tabindex:function(){return isNaN(Number(l==null?void 0:l()))?void 0:Number(l==null?void 0:l())},
id:u,style:H,title:K,"on:keydown":_.Ob(function(se){return void(D==null?void 0:D(se))})},_.c(_.ME,{data:e,
options:g}))}})}})},"og"):mjq;var TcO=function(N){var b=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];uAa();_.aB("ytglobal.ytUtilActivityCallback_",function(){_.PN(N,"yt-user-activity")});
new R0(function(){return b.JSC$17490_onMouseMove});
document.addEventListener("scroll",function(){return b.onScroll});
window.addEventListener("resize",function(){return b.onResize})},to5=function(N,b,S){b in N.eventJobIds||(S=_.oT().addLowPriorityJob(function(){_.Wl();
delete N.eventJobIds[b]},S),N.eventJobIds[b]=S)};
TcO.prototype.onScroll=function(N){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):N.target===document&&to5(this,"scroll",200)};
TcO.prototype.onResize=function(){to5(this,"resize",200)};
TcO.prototype.JSC$17490_onMouseMove=function(){to5(this,"mousemove",100)};
_.u8=function(N){N.scrollEventsToIgnore+=1;N.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){N.scrollEventsToIgnore--},500))};var Mow=function(N){this.element=N;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Mow.prototype.showFeedbackDialog=function(N,b,S,P){var H=Fkt();if(!H)return!1;var K=K5p();K.productId=H;b&&(K.flow="submit",K.report={description:b});S&&(Fkt()==="59"?K.callback=_.$U(function(){_.Dn("userFeedbackEvent",{});S()}):K.callback=_.$U(S));
K.bucket=P||_.Vg("GOOGLE_FEEDBACK_BUCKET","Other");Bco(K);N=lBE(this,"GFEEDBACK",N);try{_.Sy9(K,N)}catch(C){return _.e_(C),!1}return!0};
Mow.prototype.showHelpDialog=function(N,b,S){var P=this,H=Fkt();if(!H)return!1;var K={helpCenterPath:"/youtube",productData:lBE(this,"GUIDED_HELP",S)};Bco(K);var C=K5p();C.context=N||K.productData.context||"default";C.defaultHelpArticleId=b;C.enableSendFeedback=!0;(_.hl("gapi.load")||function(G,a){return a()})("client",function(){try{var G=sBE(H,K);
if(_.T("web_always_load_chat_support")&&!P.chatSupportLoaded)try{G.JSC$10208_loadChatSupport(C),P.chatSupportLoaded=!0}catch(a){}G.startHelp(C)}catch(a){_.e_(a)}})};
var Fkt=function(){var N=_.Vg("GOOGLE_FEEDBACK_PRODUCT_ID");N||_.e_(Error("ii"));return N},Bco=function(N){N&&(N.locale=_.T("kevlar_help_use_locale")?_.Vg("INNERTUBE_CONTEXT_HL","en"):_.Vg("HTML_LANG","en"))},lBE=function(N,b,S){var P=N.productData;
delete P.origin;P.device=_.dI();var H;a:{if(H=document.createElement("canvas")){var K=H.getContext("experimental-webgl",{stencil:!0});if(K){var C=K.getExtension("WEBGL_debug_renderer_info");if(C){H=K.getParameter(C.UNMASKED_RENDERER_WEBGL);break a}}if(K=H.getContext("webgl")){H=K.getParameter(K.RENDERER);break a}}H=null}P.gpu=H;P.isSDC=!!_.Vg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(H=_.Vg("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Vm.extend(P,H);_.HkU(b,P);_.shs(P);(N=_.PN(N.element,"yt-get-autonav-pause-debug-state"))&&
N.length&&(P.autonav_pause_state=N[0]);N=_.Z2();P.browser_resolution=N.width+"\u00d7"+N.height+"@"+(window.devicePixelRatio||1)+"x";S&&_.Vm.extend(P,S);return P};
Mow.prototype.resetProductData=function(){this.productData={}};var Lk6=function(N){this.feedbackManager=new Mow(N)};
Lk6.prototype.showFeedbackDialog=function(N,b,S,P){return this.feedbackManager.showFeedbackDialog(N,b,S,P)};
Lk6.prototype.showHelpDialog=function(N,b,S){return this.feedbackManager.showHelpDialog(N,b,S)};var fBn=function(){this.baseUrl="";this.aTag=document.createElement("a")},xQd=function(N,b,S){S=S===void 0?{}:S;
S.pbj||(S.pbj=1);S=_.r5Y(b,S);N.baseUrl&&S&&!_.sl(S)[1]&&!_.Ol(S)&&(b=N.baseUrl,vs(b,"/")&&(b=b.slice(0,-1)),_.Ka(S,"/")&&(S=S.slice(1)),S=b+"/"+S);qj(N.aTag,_.I$(S||""));return N.aTag.href};
fBn.prototype.fetchData=function(N){return _.qVs(N)};
fBn.prototype.postData=function(N,b){var S={method:"POST"};if(b){for(var P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next()){H=H.value;var K=b[H];_.D_(K)&&(b[H]=JSON.stringify(K))}S.postParams=b}return _.qVs(N,S)};
_.ozO=function(N,b,S,P,H){N=xQd(N,b,S);if(!N)throw P=Error("ji"),Object.assign(P,{params:b}),P;return _.qVs(N,H,P)};
fBn.prototype.requestDataForServiceEndpoint=function(N,b){if(_.t(N,_.viI))return this.fetchData("/getAccountSwitcherEndpoint");b=b||{};var S=_.t(N,cR4);S?b.se=S.base64EncodedServiceEndpoint:b.sej=JSON.stringify(N);(S=_.Qh())&&_.T("enable_service_ajax_csn")&&(b.csn=S);b.theme=_.As();_.t(N,s1I)&&_.Vg("DELEGATION_CONTEXT")&&(b.delegation_context=JSON.stringify(_.Vg("DELEGATION_CONTEXT")));S=null;for(var P in N)if(vs(P,"Endpoint")||vs(P,"Command")){S=P;break}if(!S){var H=Error("ki");Object.assign(H,{params:N});
_.Ofa(H,"WARNING");return new _.u5(function(C,G){G(H)})}P={name:S};
var K;(S=(K=_.t(N,_.CA))==null?void 0:K.signal)&&(P.signal=S);(K=_.SU(window.location.href))&&K.internalcountrycode&&(P.internalcountrycode=K.internalcountrycode);K="/service_ajax";_.T("debug_forward_web_query_parameters")&&(K=_.lpO(K,window.location.search));K=_.Hq(K,P);N.clickTrackingParams&&_.e0(K,{itct:N.clickTrackingParams});return this.postData(K,b)};_.uHw=new _.nO("GFEEDBACK_TOKEN");var Q$Q;var xjt;var oIL;var iDJ;var p$=function(){var N=_.z.apply(this,arguments)||this;N.compact=!1;N.dismissButtonDisabled=!1;N.shouldRenderReasonAsFormattedString=!_.T("web_player_error_message_reason_as_formatted_string_killswitch");return N};
_.F(p$,_.z);p$.prototype.computeHasIcon_=function(N){return!!N};
p$.prototype.isSignInIcon_=function(N){return N=="yt-icons:prompted_sign_in"};
p$.prototype.onDismissButtonClick=function(){var N=this,b=this.data.disableOnClick,S,P=(S=this.data.dismissButton)==null?void 0:S.buttonRenderer;b&&!this.dismissButtonDisabled&&P&&setTimeout(function(){N.dismissButtonDisabled=!0},0)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.djE.YtConditionalRendererBehavior),_.y("design:type",Object)],p$.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],p$.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],p$.prototype,"icon_",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.y("design:type",Boolean)],p$.prototype,"hasIcon_",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.y("design:type",Boolean)],p$.prototype,"signInIcon_",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],p$.prototype,"compact",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],p$.prototype,"dismissButtonDisabled",void 0);
_.p([_.U({type:Boolean}),_.y("design:type",Object)],p$.prototype,"shouldRenderReasonAsFormattedString",void 0);_.p([_.J_({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],p$);
_.X(p$,"yt-player-error-message-renderer",function(){if(iDJ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;oIL===void 0&&(oIL=document.createElement("template"));var P=oIL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);iDJ=N}N=iDJ;return N},{mode:2});var JSE;var Uja;var YW=function(){return _.z.apply(this,arguments)||this};
_.F(YW,_.z);YW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YW.prototype.computeIcon_=function(N){return N?"yt-icons:"+N.iconType.toLowerCase():"error_outline"};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YW.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],YW.prototype,"icon_",void 0);_.p([_.J_({is:"yt-player-kav-renderer",disableElementRegistration:!0})],YW);
_.X(YW,"yt-player-kav-renderer",function(){if(Uja===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;JSE===void 0&&(JSE=document.createElement("template"));var P=JSE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Uja=N}N=Uja;return N},{mode:2});var CNY=_.$E(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.qu(_.A(function(N){var b=_.Ct("div"),S=_.O(_.QF(0,void 0,"jxh75d")),P=S.next().value,H=S.next().value;S=_.O(_.QF(null,void 0,"F5Zm8"));var K=S.next().value,C=S.next().value;_.YU(function(){Gwp(b.value,H,C);b.value.scrollIntoView()});
S=rxO.bind(null,N.data,P);_.R5("resize",function(){var G=K();if(P()===1&&G!==null){var a;(a=window.grecaptcha)==null||a.reset(G)}});
return _.c("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.c("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.c("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var G,a;return(G=N.data().accessibility)==null?void 0:(a=G.accessibilityData)==null?void 0:a.label}),_.c(_.mD,{text:S,
className:_.KU("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.c("div",{el:b,class:"ytwPlayerCaptchaViewModelGridItem"})))},"pg"),"yt-player-captcha-view-model",{props:{data:_.er}});var cxE=!1;_.ZDw=_.A(function(N){var b=N.data;return _.c("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.c(_.W,{cond:function(){return b().icon},
then:function(S){return _.c("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.c(_.gG,{data:S,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.c(_.W,{cond:function(){return b().title},
then:function(S){return _.c("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.c(_.mD,{text:S}))}}),_.c(_.W,{cond:function(){return b().description},
then:function(S){return _.c("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.c(_.mD,{text:S}))}}),_.c(_.kY,{data:function(){return b().primaryButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"interstitialViewModelFlexItem"})}}),_.c(_.kY,{data:function(){return b().secondaryButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"interstitialViewModelFlexItem"})}}))},"qg");
_.ZDw.idomCompat=!0;var j$L=_.A(function(N){var b=N.data;_.Ex();return _.c("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.c("div",{class:"playerInterstitialRendererScrim"},_.c(_.kY,{data:function(){return b().content}},{interstitialViewModel:_.ZDw})))},"rg");
j$L.idomCompat=!0;_.qu(j$L,"yt-player-interstitial-renderer",{props:{data:_.kg}});var yO=function(){var N=_.z.apply(this,arguments)||this;N.noBackground=!1;N.compact=!1;N.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return N};
_.F(yO,_.z);yO.prototype.configureRendererStamper=function(){return{data:{id:"container",mapping:{playerErrorMessageRenderer:{component:"yt-player-error-message-renderer",properties:{compact:"[[compact]]"}},playerCaptchaViewModel:"yt-player-captcha-view-model",playerInterstitialRenderer:"yt-player-interstitial-renderer",playerKavRenderer:"yt-player-kav-renderer",enforcementMessageViewModel:"ytd-enforcement-message-view-model"}}}};
yO.prototype.onUpdatePlayerErrorMessageCommand_=function(N){if(_.t(N,B2z)){var b;if(N=(b=_.t(N,B2z))==null?void 0:b.newPlayerErrorMessageRenderer)this.data=N}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yO.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],yO.prototype,"status",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yO.prototype,"noBackground",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yO.prototype,"compact",void 0);_.p([_.J_({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],yO);
var zi6=_.H7()(yO,"yt-playability-error-supported-renderers",function(){if(xjt===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Q$Q===void 0&&(Q$Q=document.createElement("template"));var P=Q$Q;S.call(b,P.content.cloneNode(!0),N.content.firstChild);xjt=N}N=xjt;return N},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var ASL=IwY("ytd-button-renderer");var afa=void 0,W5_=void 0;var mwI=new yz4;var s_=new _.nO("ENTITY_STATE_TOKEN"),Il=new _.nO("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var XhJ=function(N){this.store=N;this.vy0=new _.VUc},vdo=function(N,b,S){var P,H;
if(!(H=((P=b.playabilityStatus)==null?void 0:P.status)!=="OK")){N=N.store;var K;H=b.offlineState&&((K=b.videoDetails)==null?0:K.videoId)?_.T("enable_pl_r_c_cd")?hxe(N.getState().entities,b.videoDetails.videoId):!!B2u(N.getState().entities,b.videoDetails.videoId):!1}if(H)return!0;H=F5b(b);if(H===1){if(_.T("ab_v_vid_sig")){var C,G=(C=b.videoDetails)==null?void 0:C.videoId;if(!G||!S||G!==S){var a;b=new _.jU("282054944_vid",{n5R:S,r8z:(a=b.videoDetails)==null?void 0:a.videoId});_.ge(b)}}return!0}AJb=
0;var R,n;a=(G=b.auxiliaryUi)==null?void 0:(R=G.messageRenderers)==null?void 0:(n=R.bkaEnforcementMessageViewModel)==null?void 0:n.displayType;if(H!==3&&(a==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||a==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;a={reason:_.bV(_.cN("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.T("ks_something_wrong_learn_more")?J9o("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.bV(_.cN("LEARN_MORE",void 0,"Learn more")),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser"}}}},subreason:_.bV("282054944")};EIa(b,{playerErrorMessageRenderer:a});return!1},OIu=function(N,b){if(S$f(b)){_.a3(1,!0);
var S=(S=S$f(b))&&_.RWI()?S:void 0;S?(EIa(b,{enforcementMessageViewModel:S}),N.vy0.increment("IN_PLAYER"),_.a3(5)):(N.vy0.increment("SKIP_DISPLAY"),_.a3(2))}},EIa=function(N,b){N.playabilityStatus=Object.assign({},N.playabilityStatus,{status:"ERROR",
errorScreen:b});N.videoDetails=void 0};
XhJ.prototype.handleResponse=function(N,b){if(N.playabilityStatus){var S,P,H,K=(b==null?void 0:(S=b.innerTubeRequest)==null?void 0:S.videoId)||(b==null?void 0:(P=b.innerTubeRequest)==null?void 0:(H=P.playerRequest)==null?void 0:H.videoId);vdo(this,N,K)&&OIu(this,N)}};
XhJ[RN]=[s_];var s4a=new _.nO("ADBLOCK_DETECTION_SERVICE_TOKEN");var gO=function(N){this.dsd=N};
gO.prototype.bindInnertubeChallengeFetcher=function(N){this.dsd.bicf(N)};
gO.prototype.registerChallengeFetchedCallback=function(N){this.dsd.bcr(N)};
gO.prototype.getLatestChallengeResponse=function(){return this.dsd.blc()};var phq;phq=_.$E(["https://static.doubleclick.net/instream/ad_status.js"]);_.YLt=_.Mz(phq);var VoJ;_.D4=function(N,b,S){var P=this;this.network=N;this.options=b;this.networkStatusManager=S;this.aK=null;if(b.useBotguardEverywhere){var H=new _.GB;this.aK=H.promise;_.Ps.ytAtRC&&_.Bm(_.Dj,function(){var K,C;return _.r(function(G){if(G.nextAddress==1){if(!_.Ps.ytAtRC)return G.return();K=ySi(null);return G.yield(P.am(K),2)}C=G.yieldResult;_.Ps.ytAtRC&&_.Ps.ytAtRC(JSON.stringify(C));_.Zd(G)})});
Qhe().then(function(K){var C,G,a,R;return _.r(function(n){if(n.nextAddress==1)return K.bindInnertubeChallengeFetcher(function(d){return P.am(ySi(d))}),n.yield($Bb(),2);
C=n.yieldResult;G=K.getLatestChallengeResponse();a=G.challenge;if(!a)throw Error("mi");R={challenge:a,ru:DW(a),vm:C,bgChallenge:new po};H.resolve(R);K.registerChallengeFetchedCallback(function(d){d=d.challenge;if(!d)throw Error("ni");d={challenge:d,ru:DW(d),vm:C,bgChallenge:new po};P.aK=Promise.resolve(d)});
_.Zd(n)})})}else b.preload&&IB_(this,new Promise(function(K){_.XC(_.Dj,function(){K(DjQ(P))},0)}))};
VoJ=function(N){var b={preload:!0,useBotguardEverywhere:!0},S=!1;if(typeof b==="boolean")var P={preload:b};else typeof b==="undefined"?P={preload:!0}:(P=b,S=!!b.xs2);b=S?void 0:new _.sv;_.D4.instance=new _.D4(N,P,b);return _.D4.instance};
_.D4.prototype.dlR=function(){var N=this;return _.r(function(b){return b.nextAddress==1?b.yield(Promise.race([N.aK,null]),2):b.return(!!b.yieldResult)})};
_.D4.prototype.vuF=function(N,b,S){var P=this,H,K,C;return _.r(function(G){P.aK===null&&IB_(P,DjQ(P));H=!1;K={};C=function(){var a,R,n,d,m;return _.r(function(k){switch(k.nextAddress){case 1:if(!P.options.fZv||!P.options.useBotguardEverywhere){k.jumpTo(2);break}return k.yield(uhf(),3);case 3:return a=k.yieldResult,k.yield((R=a)==null?void 0:R.checkForRefresh(),2);case 2:return k.yield(P.aK,5);case 5:n=k.yieldResult;K.challenge=n.challenge;if(!n.vm){"c1a"in n.ru&&(K.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
k.jumpTo(6);break}d=Object.assign({},{c:n.challenge,e:N},b);_.u4(k,7);H=!0;return k.yield(n.vm.snapshot({gW:d}),9);case 9:(m=k.yieldResult)?K.webResponse=m:K.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.su(k,6);break;case 7:_.UE(k),K.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(N==="ENGAGEMENT_TYPE_PLAYBACK"){var M=n.ru,l={};if(M.c6a){var u=Number(_.Vg("DCLKSTAT",0));l.reportingStatus=String(Number(M.c)^(isNaN(u)?0:u))}M.c6b&&(l.broadSpectrumDetectionResult=String(Number(M.c)^Number(_.Vg("CATSTAT",
0))));K.adblockReporting=l}return k.return(K)}})};
return G.return(Promise.race([C(),gIQ(S,function(){var a=Object.assign({},K);H&&(a.error="ATTESTATION_ERROR_VM_TIMEOUT");return a})]))})};
var ySi=function(N){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};N&&(b.interpreterHash=N);return b},DjQ=function(N,b){b=b===void 0?0:b;
var S,P,H,K,C,G,a,R,n,d,m,k;return _.r(function(M){switch(M.nextAddress){case 1:S=ySi(DBS().klK);if(_.T("att_fet_ks"))return _.u4(M,7),M.yield(N.am(S),9);_.u4(M,4);return M.yield(eiq(N,S),6);case 6:C=M.yieldResult;H=C.qo5;K=C.ga5;P=C;_.su(M,3);break;case 4:return _.UE(M),_.$h(Error("oi`"+b)),$j5(N,864E5),M.return({challenge:"",ru:{},vm:void 0,bgChallenge:void 0});case 9:P=M.yieldResult;if(!P)throw Error("pi");if(!P.challenge)throw Error("qi");H=P.challenge;K=DW(H);if("c1a"in K&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("ri");
_.su(M,3);break;case 7:G=_.UE(M);_.$h(G);b++;if(b>=5)return _.$h(Error("oi`"+b)),$j5(N,864E5),M.return({challenge:"",ru:{},vm:void 0,bgChallenge:void 0});a=1E3*Math.pow(2,b-1)+Math.random()*1E3;return M.return(new Promise(function(l){_.XC(_.Dj,function(){l(DjQ(N,b))},a)}));
case 3:R=ffp(K);$j5(N,R*1E3);n=void 0;if(!("c1a"in K&&P.bgChallenge)){M.jumpTo(10);break}d=L59(P.bgChallenge);_.u4(M,11);return M.yield(gU9(DBS(),d),13);case 13:_.su(M,12);break;case 11:return m=_.UE(M),_.$h(m),M.return({challenge:H,ru:K,vm:n,bgChallenge:d});case 12:return _.u4(M,14),n=new _.h1({challenge:d,zIh:{wL:"aGIf"}}),M.yield(n.abQ,16);case 16:_.su(M,10);break;case 14:k=_.UE(M),_.$h(k),n=void 0;case 10:return M.return({challenge:H,ru:K,vm:n,bgChallenge:d})}})},hiE=function(N,b){var S;
return _.r(function(P){if(P.nextAddress==1)return Vc(2),_.u4(P,2),P.yield(N.network.am(b),4);if(P.nextAddress!=2)return(S=P.yieldResult)?S.challenge&&!S.bgChallenge?Vc(1):Vc(4):Vc(3),P.return(S);_.UE(P);Vc(3);return P.return(void 0)})};
_.D4.prototype.am=function(N){var b=this,S;return _.r(function(P){S=b.networkStatusManager;if(!S||S.isNetworkAvailable())return P.return(hiE(b,N));_.xR("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(H){S.listenOnce("publicytnetworkstatus-online",function(){hiE(b,N).then(H)})}))})};
var qLa=function(N){if(!N)throw Error("pi");if(!N.challenge)throw Error("qi");var b=N.challenge,S=DW(b);if("c1a"in S&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("ri");return Object.assign({},N,{qo5:b,ga5:S})},eiq=function(N,b){var S,P,H,K,C;
return _.r(function(G){switch(G.nextAddress){case 1:S=void 0,P=0,H={};case 2:if(!(P<5)){G.jumpTo(4);break}if(!(P>0)){G.jumpTo(5);break}H.fhR=1E3*Math.pow(2,P-1)+Math.random()*1E3;return G.yield(new Promise(function(a){return function(R){_.XC(_.Dj,function(){R(void 0)},a.fhR)}}(H)),5);
case 5:return _.u4(G,7),G.yield(N.am(b),9);case 9:return K=G.yieldResult,G.return(qLa(K));case 7:S=C=_.UE(G),C instanceof Error&&_.$h(C);case 8:P++;H={fhR:void 0};G.jumpTo(2);break;case 4:throw S;}})},IB_=function(N,b){N.aK=b},whn=function(N){var b,S,P;
return _.r(function(H){if(H.nextAddress==1)return H.yield(Promise.race([N.aK,null]),2);b=H.yieldResult;var K=DjQ(N);N.aK=K;(S=b)==null||(P=S.vm)==null||P.dispose();_.Zd(H)})},$j5=function(N,b){var S=Date.now()+b,P=function(){var H;
return _.r(function(K){H=S-Date.now();return H<1E3?K.yield(whn(N),0):(_.XC(_.Dj,P,Math.min(H,6E4)),K.jumpTo(0))})};
P()},gIQ=function(N,b){return new Promise(function(S){_.XC(_.Dj,function(){S(b())},N)})};var N$a=function(){};
N$a.prototype.processContext=function(N){var b=_.D4.instance;if(!b)return _.Mp();var S=Zko(N);return S?new tT(b.vuF(S,iks(N),500).then(function(P){var H;(N==null?0:(H=N.innerTubeRequest)==null?0:H.context)||(N.innerTubeRequest.context={});H=N.innerTubeRequest.context;H.request||(H.request={});H.request.attestationResponseData=P})):_.Mp()};var bg_=function(N){this.innertubeTransportService=N};
bg_.prototype.am=function(N){_.xR("att_fsr",void 0,"attestation_challenge_fetch");return _.ni(this.innertubeTransportService,N,_.q6(_.iHV)).then(function(b){_.xR("att_frr",void 0,"attestation_challenge_fetch");return b})};_.SEa=function(N){this.innertubeTransportService=N};var P4w=new _.nO("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Hg5=function(){},KR6=function(N,b,S,P,H){var K=_.Vg("YPC_MB_URL");
_.TzI(K).then(function(){sXa(K,N,b,S,P,H)})},sXa=function(N,b,S,P,H,K){try{var C=_.N5.payments.business.integration,G=_.N5.payments.business.integration.Style.create().withMaterialDesignStyle(),a=C.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.T("enable_window_constrained_buy_flow_dialog")&&(a=a.usingPopupStyle("windowConstrained"));K&&(a=a.usingCloseCallback(K));var R=S?S:_.Vg("YPC_GB_LANGUAGE"),n=_.Vg("SESSION_INDEX");C.bootstrap.fromPaymentsUrl(N);C.bootstrap.asMashupMode(a).usingGaiaIndex(n).usingLocale(R).usingStyle(G).usingDefaultActivityStatusChangeHandler().inStandaloneContext(C.standaloneContextAuthId.forGaia()).purchaseManager(b,function(d){P&&P(d)}).load(void 0,H)}catch(d){throw H&&H(d),_.ge(d),d;
}};var vww=new _.nO("PURCHASE_MANAGER_TOKEN");var OgQ=function(){var N=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return N.videos},
getContinuationsPresent:function(){return N.continuationsPresent},
setVideos:function(b){N.videos=b},
getRecommendedVideos:function(){return N.recommendedVideos},
setRecommendedVideos:function(b){N.recommendedVideos=b}}};
OgQ.prototype.addVideos=function(N){N&&(this.videos=N.filter(function(b){return!!_.zW_(b)}).map(function(b){var S=_.zW_(b);
a:{var P;if(b.playlistVideoRenderer&&((P=b.playlistVideoRenderer)==null?0:P.voteSortTiebreaker))var H=b.playlistVideoRenderer.voteSortTiebreaker;else{if(_.t(b,$e)){var K;if(P=(H=_.t(b,$e))==null?void 0:(K=H.playlistItemData)==null?void 0:K.voteSortTiebreaker){H=P;break a}}H=""}}return{itemId:S,videoId:_.E5p(b),voteCount:_.pG_(b),voteSortTiebreaker:H}}),this.continuationsPresent=!!_.t(N[N.length-1],_.wO))};
var C4a=function(N,b){return N.videos.findIndex(function(S){return S.itemId===b})},GJ_=function(N,b){return N.recommendedVideos.findIndex(function(S){return S.itemId===b})},rvi=function(N){N={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:N}}}}};_.aN().resolve(_.Wq).resolveCommand(N)};var cvi=function(){OgQ.apply(this,arguments)};
_.F(cvi,OgQ);
var i_4=function(N,b,S,P){if(!N.parentElem)throw Error("wi");var H=C4a(N,b);H===-1&&(H=GJ_(N,b),H=H!==-1?H+N.videos.length:-1);if(H===-1)throw Error("xi");var K=H>=N.videos.length?N.recommendedVideos[H-N.videos.length]:N.videos[H];K.voteCount=S;K.voteSortTiebreaker=Date.now().toString();H>=N.videos.length?N.recommendedVideos.splice(H-N.videos.length,1):N.videos.splice(H,1);var C=N.videos;for(var G=0,a=C.length-1;G<=a;){var R=Math.floor((G+a)/2);if(C[R].voteCount<K.voteCount)a=R-1;else if(C[R].voteCount>K.voteCount)G=
R+1;else{a:{var n=K.voteSortTiebreaker;var d=C[R].voteSortTiebreaker;if(n.length!==d.length)n=n.length>d.length;else{for(var m=0;m<n.length;m++){var k=n.charCodeAt(m),M=d.charCodeAt(m);if(k>M){n=!0;break a}if(k<M)break}n=!1}}n?a=R-1:G=R+1}}C=G;if(C===-1)throw Error("yi");N.videos.splice(C,0,K);H!==C&&ado(N,H,C,b,S,P)},ado=function(N,b,S,P,H,K){var C,G=(C=N.parentElem)==null?void 0:C.children,a=Math.min(b,S),R=Math.max(b,S);
if(G)for(C=a;C<=R;C++)G[C].style.viewTransitionName="item-"+String(C);document.startViewTransition(function(){if(N.parentElem){var n=N.parentElem.children;if(!(!n||b<0||b>=n.length||S<0||S>=n.length)){var d=n[b];if(d){d.remove();N.showRefreshPill=S>=N.videos.length-1&&N.continuationsPresent;if(!N.showRefreshPill){n=n[S]||null;var m;(m=N.parentElem)==null||m.insertBefore(d,n)}_.bC(N.parentElem,"yt-update-video-data-voting-animation",{toIdx:S,itemId:P,newVoteCount:H,voteStatus:K,hideItem:N.showRefreshPill})}}}}).finished.then(function(){if(G)for(var n=
a;n<=R;n++)G[n].style.viewTransitionName="";
if(N.showRefreshPill)rvi(_.cN("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var d;if(d=n=(d=N.parentElem)==null?void 0:d.children[S])d=n.getBoundingClientRect(),n=d.bottom,d=!(d.top>=0&&n<=N.clientHeight);d&&(d=_.am(b>S?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(b-S)),rvi(d))}})};var nwE=function(N,b){var S=this;N?this.innertubeTransportServicePromise=Promise.resolve(N):b&&(this.innertubeTransportServicePromise=b(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new QO(3E3,function(P){return R86(S,P)},0);
this.validateMiniAppVideoIdRateLimiter=new QO(3E3,function(P){return WRL(S,P)},1)},Vn_=function(N,b){N.JSC$17607_miniAppId=b;
N.reportMiniAppValueRateLimiter=new QO(3E3,function(S){return R86(N,S)},0);
N.validateMiniAppVideoIdRateLimiter=new QO(3E3,function(S){return WRL(N,S)},1)},ewq=function(N,b){var S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.reportMiniAppValueRateLimiter.call(b),2);S=P.yieldResult;return P.return([S,b])})},R86=function(N,b){var S,P,H,K,C,G,a;
return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(N.innertubeTransportServicePromise,2);case 2:return S=R.yieldResult,P=_.q6(AaZ),H=Date.now(),K={externalPostId:N.JSC$17607_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(H/1E3),nanos:Math.round(H%1E3*1E6)},intValue:""+b}},_.u4(R,3),R.yield(_.ni(S,K,P),5);case 5:C=R.yieldResult;_.su(R,4);break;case 3:throw G=_.UE(R),G;case 4:if(C){if("error"in C&&C.error)throw C.error;if(C.errorMetadata)throw Error("zi`"+
C.errorMetadata.status);if(a=C.userStatResult)return R.return(a);throw Error("Ai");}throw Error("Bi");}})},hwa=function(N){var b,S,P,H,K;
_.r(function(C){switch(C.nextAddress){case 1:return C.yield(N.innertubeTransportServicePromise,2);case 2:return b=C.yieldResult,S=_.q6(AaZ),P={externalPostId:N.JSC$17607_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.u4(C,3),C.yield(_.ni(b,P,S),5);case 5:H=C.yieldResult;_.su(C,4);break;case 3:throw K=_.UE(C),K;case 4:if(H==null)throw Error("Bi");if("error"in H&&H.error)throw H.error;if(H.errorMetadata)throw Error("zi`"+H.errorMetadata.status);_.Zd(C)}})};
nwE.prototype.flush=function(){var N=this;return _.r(function(b){return b.nextAddress==1?b.yield(N.reportMiniAppValueRateLimiter.flush(),2):b.yield(N.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var $_w=function(N,b){return _.r(function(S){return S.nextAddress==1?S.yield(N.validateMiniAppVideoIdRateLimiter.call(b),2):S.return(S.yieldResult)})},WRL=function(N,b){var S,P,H,K,C,G;
return _.r(function(a){switch(a.nextAddress){case 1:return a.yield(N.innertubeTransportServicePromise,2);case 2:return S=a.yieldResult,P=_.q6(x19),H={videoId:b},_.u4(a,3),a.yield(_.ni(S,H,P),5);case 5:K=a.yieldResult;_.su(a,4);break;case 3:throw C=_.UE(a),C;case 4:if(K){if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("zi`"+K.errorMetadata.status);if(G=K.playabilityStatus)return a.return(G.status);throw Error("Ci");}throw Error("Bi");}})};
nwE[RN]=[_.cq(_.Mn),_.cq(arE)];var dto=function(){this.clientData=new Map};
dto.prototype.getData=function(N){return this.clientData.get(N)};var mtL=function(N){this.store=N};
mtL.prototype.handleResponse=function(N){(N=_.t(N.frameworkUpdates,yC))&&_.WU(N,this.store)};
mtL[RN]=[_.OQ];var kJ_=new _.nO("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var T$E,tWa,MWa;_.VO=new _.nO("FLOW_STATE_MANAGER_TOKEN");T$E=function(){this.flowStates=new Map};
tWa=function(N,b){N=_.O(N.flowStates.values());for(var S=N.next();!S.done;S=N.next())if(S=S.value,S.flowRenderer.targetId===b)return S};
MWa=function(N,b){var S,P=((S=N.flowRenderer.steps)!=null?S:[]).filter(function(H){return!b.includes(_.t(H,_.hj).stepId)});
N.flowRenderer.steps=P};var FR_=function(N){this.JSC$17631_flowStateManager=N};
_.F(FR_,kN);FR_.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G;return _.r(function(a){S=_.t(N,poS);H=(P=S)==null?void 0:P.stepIds;C=(K=S)==null?void 0:K.targetId;if(!H||!C)return a.return();G=tWa(b.JSC$17631_flowStateManager,C);if(!G)return a.return();MWa(G,H);_.Zd(a)})};
var gT=function(){FR_.apply(this,arguments)};
_.F(gT,FR_);gT[RN]=[_.VO];var B$L=function(N,b){this.JSC$17637_reduxStore=N;this.JSC$17637_flowStateManager=b};
_.F(B$L,kN);
B$L.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M;return _.r(function(l){S=_.t(N,_.Ypd);P=S.stepId;H=S.targetId;K=tWa(b.JSC$17637_flowStateManager,H);G=(C=K)==null?void 0:C.flowRenderer;a=G.flowStateEntityKey;R=_.hI(b.JSC$17637_reduxStore.getState(),a);if(!R)return l.return();n=R.currentStepId;k=(m=(d=R)==null?void 0:d.stepIdStack)!=null?m:[];M=n===k[k.length-1]?P:n;b.JSC$17637_reduxStore.dispatch(_.oJ("flowStateEntity",a,{currentStepId:P,stepIdStack:[M]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Zd(l)})};
var ev=function(){B$L.apply(this,arguments)};
_.F(ev,B$L);ev[RN]=[_.OQ,_.VO];var ldE=function(N,b,S){this.JSC$17644_reduxStore=N;this.JSC$17644_flowStateManager=b;this.JSC$17644_commandHandler=S};
_.F(ldE,kN);
ldE.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l;return _.r(function(u){P=_.t(N,_.yH9);H=P.targetId;K=tWa(S.JSC$17644_flowStateManager,H);G=(C=K)==null?void 0:C.flowRenderer;a=G.flowStateEntityKey;R=_.hI(S.JSC$17644_reduxStore.getState(),a);m=[].concat(_.IX((d=(n=R)==null?void 0:n.stepIdStack)!=null?d:[]));k=m.pop();((M=R)==null?void 0:M.currentStepId)===k&&(k=m[m.length-1]);if(!k)return(l=P.onFirstStepCommand)&&S.JSC$17644_commandHandler.resolveCommand(l,b),u.return();
S.JSC$17644_reduxStore.dispatch(_.oJ("flowStateEntity",a,{currentStepId:k,stepIdStack:m}));_.Zd(u)})};
var $W=function(){ldE.apply(this,arguments)};
_.F($W,ldE);$W[RN]=[_.OQ,_.VO,_.Wq];var LRQ=function(N,b){this.innertubeTransportService=N;this.JSC$17649_commandHandler=b};
_.F(LRQ,kN);LRQ.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1){P=_.t(N,ItS);if(!P)return a.return();_.u4(a,2);return a.yield(_.pU(S.innertubeTransportService,N),4)}if(a.nextAddress!=2){H=a.yieldResult;if(!H)return a.return();(K=H.updateFlowCommand)&&S.JSC$17649_commandHandler.resolveCommand(K,b);return _.su(a,0)}_.UE(a);(G=(C=P)==null?void 0:C.onFailureCommand)&&S.JSC$17649_commandHandler.resolveCommand(G,b);_.Zd(a)})};
var hi=function(){LRQ.apply(this,arguments)};
_.F(hi,LRQ);hi[RN]=[_.Mn,_.Wq];var fdE=function(N,b){this.JSC$17655_flowStateManager=N;this.JSC$17655_commandHandler=b};
_.F(fdE,kN);
fdE.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C;return _.r(function(G){P=_.t(N,_.V2E);H=P.targetId;K=tWa(S.JSC$17655_flowStateManager,H);if(!K)return G.return(Promise.resolve());var a=K,R=(C=P.steps)!=null?C:[],n,d=(n=a.flowRenderer.steps)!=null?n:[];R=[].concat(_.IX(d),_.IX(R));a.flowRenderer.steps=R;P.flowContinuationCommand&&(K.flowRenderer.flowContinuationCommand=P.flowContinuationCommand);P.entityUpdateCommand&&S.JSC$17655_commandHandler.resolveCommand(P.entityUpdateCommand,b);
return G.return(Promise.resolve())})};
var qe=function(){fdE.apply(this,arguments)};
_.F(qe,fdE);qe[RN]=[_.VO,_.Wq];var uww={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var QXJ=new _.nO("ICON_SET_TOKEN"),xtw=new _.nO("ICON_URL_PROVIDER_TOKEN"),owt=new _.nO("PREFETCH_ICONS_TOKEN"),igq=new _.nO("ICON_MAP_FN_TOKEN");var wT={},Jv5=(wT.ACCESS_TIME="clock",wT.ACCOUNT_BOX=_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",wT.ACCOUNT_BOX_CAIRO="person_account_cairo",wT.ACCOUNT_CIRCLE="person_circle",wT.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",wT.ACCOUNT_LINKED="account_link_success",wT.ACCOUNT_UNLINKED="account_link",wT.ADD_FRIEND="people",wT.ADD_MODERATOR="shield_add",wT.ADD_TO_LIBRARY="bookmark",wT.ADD_TO_PLAYLIST="add",wT.ADD_TO_QUEUE_TAIL="list_queue",wT.ADD_TO_REMOTE_QUEUE="list_music",
wT.ADD_TO_WATCH_LATER="clock",wT.ADD_VIDEO_LINK="film_strip_add",wT.ALERT_WARN_RED="alert_triangle",wT.ARROW_BACK="arrow_left",wT.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",wT.ARROW_DROP_DOWN="chevron_down",wT.ARROW_DROP_UP="chevron_up",wT.ARROW_FORWARD="arrow_right",wT.ARTIST="person_music",wT.AUDIOTRACK="audio",wT.AUTO_AWESOME="sparkle",wT.AVATAR_ANONYMOUS="person_circle",wT.AVATAR_LOGGED_OUT="person_circle",wT.BACK="arrow_left",wT.BAR_CHART="bar_graph",wT.BLOCK="slash_circle_left",
wT.BLOCK_USER="slash_circle_left",wT.BOOKMARK_BORDER="bookmark",wT.BREAKING_NEWS_ALT_1="article_alert",wT.BROADCAST_CAIRO="podcast_cairo",wT.BUG_REPORT="bug",wT.CAMERA_ALT="camera",wT.CAMPAIGN="megaphone",wT.CANCEL="x_circle",wT.CAPTIONS="closed_caption",wT.CAST_OUTLINE="chromecast",wT.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",wT.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",wT.CHAT="message_bubble_left",wT.CHAT_BUBBLE="message_bubble_empty",wT.CHAT_SPARK="spark_message_bubble_left",wT.CHECK_BOX_OUTLINE_BLANK=
"box_empty",wT.CHECK_CIRCLE_OUTLINE="check_circle",wT.CHECK_CIRCLE_THICK="check_circle",wT.CLARIFY="article_clarify",wT.CLOSED_CAPTION_SELECTED="closed_caption",wT.CLOSE="x_mark",wT.CLOUD_UPLOAD="cloud_arrow_up",wT.COLLAPSE="chevron_up",wT.COLLAPSE_CAIRO="chevron_up_cairo",wT.COLLECTION="layers",wT.COLOR_LENS="palette",wT.COMMENT="message_bubble_right",wT.CONSENT_SHIELD="person_shield",wT.CONTENT_CUT="scissors",wT.CONTENT_CUT_CAIRO="scissors_cairo",wT.COURSE=_.T("web_enable_course_icon_update")?"creator_academy":
"lightbulb",wT.COURSE_CAIRO=_.T("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",wT.CREATION_LIVE="radar_live",wT.CREATION_POST="box_pencil",wT.CREATION_UPLOAD="my_videos",wT.CREATION_UPLOAD_RED="upload",wT.CREATOR_METADATA_MONETIZATION="dollar_sign",wT.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",wT.CREATOR_STUDIO="youtube_studio",wT.DASHBOARD="grid_asymmetrical",wT.DELETE="trash_can",wT.DELETE_SWEEP="trash_can",wT.DESKTOP="laptop",wT.DISLIKE="thumb_down",wT.DISLIKE_SELECTED=
"thumb_down",wT.DISMISSAL="x_mark",wT.DISMISS_QUEUE="list_remove",wT.DONE_ALL="check_double",wT.DOWN_ARROW="arrow_down",wT.DO_NOT_DISTURB="slash_circle_left",wT.DRAFT="paper_corner_folded",wT.DRAG_HANDLE="bars_2",wT.EDIT="pencil",wT.EMOJI="face_very_happy",wT.EMOJI_FLAGS="flag",wT.EMOJI_OBJECTS="lightbulb",wT.EMOJI_PEOPLE="face_very_happy",wT.EMOJI_RECENT="clock",wT.EMPTY_HEART="heart",wT.EMPTY_LIKE="thumb_up",wT.ERROR_BLACK="alert_circle",wT.ERROR_OUTLINE="alert_circle",wT.EXIT_APP="arrow_in",wT.EXIT_TO_APP=
"arrow_in",wT.EXPAND="chevron_down",wT.EXPAND_ALL="chevron_expand",wT.EXPAND_CAIRO="chevron_down_cairo",wT.EXPAND_LESS="chevron_up",wT.EXPAND_MORE="chevron_down",wT.EXPLORE="compass",wT.EXPLORE_DESTINATION="compass",wT.EXTERNAL_LINK="open_new",wT.FAB_UPLOAD="upload",wT.FACE_HAPPY_OUTLINE="face_happy",wT.FACT_CHECK="article_check",wT.FASHION_LOGO="fashion",wT.FASHION_LOGO_CAIRO="fashion_cairo",wT.FAVORITE="heart",wT.FEEDBACK="message_bubble_alert",wT.FEEDBACK_CAIRO="message_bubble_alert_cairo",wT.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",wT.FILL_ARROW_SOLID_UP_16="arrow_solid_up",wT.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",wT.FILTER="menu_filter",wT.FIRST_PAGE="chevron_first",wT.FLAG="flag",wT.FULL_HEART="heart",wT.GAME_CONSOLE_DPAD="game_console_dpad",wT.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",wT.GAMING_LOGO="gaming",wT.GAMING_LOGO_CAIRO="gaming_cairo",wT.GO_TO_PAGE="arrow_right",wT.GROUPS="people_group",wT.HAPPY="face_happy",wT.HEALTH_AND_SAFETY="shield_plus",wT.HELP="question_circle",wT.HELP_CAIRO=
"question_circle_cairo",wT.HELP_OUTLINE="question_circle",wT.HIDE="slash_circle_left",wT.IMAGE="image",wT.INFINITY_ICON="infinity",wT.INFO="info_circle",wT.INFO_OUTLINE="info_circle",wT.INSERT_CHART="bar_graph_box_vertical",wT.INSERT_CHART_OUTLINED="bar_graph_box_vertical",wT.INSERT_PHOTO="image",wT.KEEP="pin",wT.KEEP_OFF="pin_off",wT.KEYBOARD="keyboard",wT.KEYBOARD_ARROW_DOWN="chevron_down",wT.KEYBOARD_ARROW_UP="chevron_up",wT.KIDS_BLOCK="slash_circle_left",wT.LANGUAGE="globe",wT.LAST_PAGE="chevron_last",
wT.LAUNCH="open_new",wT.LEARNING="lightbulb",wT.LEARNING_CAIRO="lightbulb_cairo",wT.LIBRARY_ADD=Dwp("library_add"),wT.LIBRARY_OUTLINE="library",wT.LIBRARY_REMOVE=Dwp(),wT.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",wT.LIKES_PLAYLIST="thumb_up",wT.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",wT.LIKE="thumb_up",wT.LIKE_SELECTED="thumb_up",wT.LIVE="radar_live",wT.LIVE_CAIRO="radar_live_cairo",wT.LIVE_UNLISTED="link",wT.LOCATION_ON="location_point",wT.LOCATION_PIN="location_point",wT.LOOP="arrow_repeat",wT.LOOP_ACTIVE=
"arrow_repeat",wT.LOOP_ONE="arrow_repeat_1",wT.LOOP_ONE_ACTIVE="arrow_repeat_1",wT.MEH="face_meh",wT.MEMBERS_ONLY_MODE_OFF="message_bubble_left",wT.MESSAGE="message_bubble_left",wT.MICROPHONE_ON="mic",wT.MIX="youtube_mix",wT.MONETIZATION_ON="dollar_sign_circle",wT.MONEY_FILL="dollar_sign_container",wT.MONEY_FILL_JPY="yen_sign_container",wT.MONEY_HEART="dollar_sign_heart",wT.MORE_HORIZ="overflow_horizontal",wT.MORE_VERT="overflow_vertical",wT.MUSIC="audio",wT.MUSIC_CAIRO="audio_cairo",wT.MUSIC_NOTE_SYMBOL=
"music",wT.MUSIC_SHUFFLE="arrow_shuffle",wT.MY_CHANNEL="person_circle",wT.MY_LOCATION="location_point",wT.NEWS_STORY="news",wT.NEXT="chevron_right",wT.NOTIFICATIONS="bell",wT.NOTIFICATIONS_ACTIVE="bell_on",wT.NOTIFICATIONS_CAIRO="bell_cairo",wT.NOTIFICATIONS_DONE_CHECKMARK="check",wT.NOTIFICATIONS_INBOX="bell",wT.NOTIFICATIONS_NONE="bell",wT.NOTIFICATIONS_OFF="bell_off",wT.NOT_INTERESTED="slash_circle_left",wT.OFFICIAL_ARTIST_BADGE="audio",wT.OFFLINE_CLOUD="cloud_off",wT.OFFLINE_DOWNLOAD="download",
wT.OFFLINE_DOWNLOAD_CAIRO="download_cairo",wT.OFFLINE_PAUSE="pause",wT.OPEN_IN_NEW="open_new",wT.OUTLINE_ADJUST="adjust",wT.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",wT.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",wT.OUTLINE_BAG="bag",wT.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",wT.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",wT.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",wT.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",wT.PAID="dollar_sign",wT.PAUSE_OUTLINED="pause",wT.PAYMENT=
"credit_card",wT.PERSON_RADAR_FILLED="person_radar",wT.PHONE_DOWNLOAD="mobile_download",wT.PLAYABLES_LOGO="tic_tac_toe",wT.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",wT.PLAYLISTS="list_play_arrow",wT.PLAYLISTS_CAIRO="list_play_arrow_cairo",wT.PLAYLIST_ADD=Dwp("list_add"),wT.PLAYLIST_ADD_CHECK=Dwp("list_check"),wT.PLAYLIST_PLAY="list_play_arrow",wT.PLAY_ALL="play_arrow",wT.PLAY_CIRCLE="play_arrow_circle",wT.PLAY_OUTLINED="play_arrow_circle",wT.PRIVACY_INFO="shield",wT.PRIVACY_PRIVATE="lock",wT.PRIVACY_PUBLIC=
"earth",wT.PRIVACY_UNLISTED="link",wT.PROMOTE="megaphone",wT.PURCHASES="price_tag",wT.PURCHASE_SUPER_CHAT="super_chat",wT.PURCHASE_SUPER_STICKER="super_sticker",wT.QUESTION_ANSWER="message_bubble_question",wT.QUEUE_PLAY_LAST="list_queue_last",wT.QUEUE_PLAY_NEXT="list_play_arrow",wT.REMIX_FILLED="youtube_shorts_remix",wT.REMOVE="bar_circle",wT.REMOVE_CIRCLE="bar_circle",wT.REMOVE_CIRCLE_OUTLINE="bar_circle",wT.REMOVE_DONE="check_double_off",wT.REMOVE_FROM_HISTORY="bar_circle",wT.REMOVE_FROM_PLAYLIST=
"bar_circle",wT.REMOVE_MODERATOR="shield_off",wT.REPLAY="arrow_circle",wT.REPLAY_10="skip_back_10",wT.REPORT_PROBLEM="alert_triangle",wT.SAD="face_sad",wT.SAVE_PLAYLIST="bookmark",wT.SCHEDULE="clock",wT.SCHOOL="creator_academy",wT.SCREEN_FULLSCREEN="screen_full",wT.SEARCH_HISTORY="arrow_time",wT.SELL="price_tag",wT.SETTINGS="gear",wT.SETTINGS_CAIRO="gear_cairo",wT.SETTINGS_LIGHT="gear",wT.SETTINGS_MATERIAL="gear",wT.SHARE_ARROW="share",wT.SHIELD_WITH_AVATAR="person_shield",wT.SHOPPING_BAG="bag",wT.SHOPPING_BAG_CAIRO=
"bag_cairo",wT.SHOPPING_CART="cart",wT.SHORTS_COMMENT="youtube_shorts_message_bubble_right",wT.SHORTS_DISLIKE="youtube_shorts_thumb_down",wT.SHORTS_LIKE="youtube_shorts_thumb_up",wT.SHORTS_SHARE="youtube_shorts_share",wT.SHUFFLE="arrow_shuffle",wT.SLOW_MODE_OFF="message_bubble_left",wT.SOCIAL="people",wT.SORT="menu_sort",wT.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",wT.SPEED_1X="1x",wT.SPEED_1_POINT_2X="1_point_2x",wT.SPEED_1_POINT_5X="1_point_5x",wT.SPEED_1_POINT_8X="1_point_8x",wT.SPEED_2X="2x",
wT.SPEED_POINT_2X="point_2x",wT.SPEED_POINT_8X="point_8x",wT.SPONSORSHIP_STAR="star_circle",wT.STAFF_PICK="spotlight",wT.START_DVR="add",wT.STAR_BORDER="star",wT.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",wT.STICKER_EMOTICON="face_happy",wT.STOP_DVR="stop",wT.SUBSCRIBE="youtube_logo_icon",wT.SUBSCRIBE_PLUS="add_cairo",wT.SUBSCRIPTION_MANAGER="gear",wT.SUPERVISOR_ACCOUNT="people",wT.SUPER_CHAT_FOR_GOOD="hands_heart",wT.SWAP_HORIZ="arrow_swap_horizontal",wT.SWITCH_ACCOUNTS="person_account",wT.TAB_ACCOUNT=
"person",wT.TAB_ACTIVITY="bell",wT.TAB_BOOKMARK="bookmark",wT.TAB_EXPLORE="compass",wT.TAB_HOME="home",wT.TAB_HOME_CAIRO="home_cairo",wT.TAB_INBOX="mail",wT.TAB_LIKED="thumb_up",wT.TAB_MUSIC_PREMIUM="youtube_music",wT.TAB_SHORTS="youtube_shorts",wT.TAB_SHORTS_CAIRO="youtube_shorts_cairo",wT.TAB_SUBSCRIPTIONS="subscriptions",wT.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",wT.TAB_TRENDING="fire",wT.TIMER="stopwatch",wT.TRAILER="youtube_originals",wT.TRENDING="fire",wT.TRENDING_CAIRO="fire_cairo",wT.TRENDING_DOWN=
"rating_down",wT.TRENDING_UP="rating_up",wT.TROPHY="trophy",wT.TROPHY_CELEBRATIONS="fireworks",wT.TUNE="adjust",wT.UNBLOCK_USER="bar_circle",wT.UNLIMITED="youtube_logo_icon",wT.UNPLUGGED_LIVE_GUIDE="radar_live",wT.UNPLUGGED_SPORTS="eye_off",wT.UPLOADS="library",wT.UP_ARROW="arrow_up",wT.VERTICAL_ALIGN_BOTTOM="download",wT.VERY_HAPPY="face_very_happy",wT.VERY_SAD="face_very_sad",wT.VIDEOGAME_ASSET="gaming",wT.VIDEOS="play_arrow_circle",wT.VIDEO_CALL="video_camera_add",wT.VIDEO_LIBRARY_WHITE="library",
wT.VIDEO_YOUTUBE="youtube_logo_icon",wT.VIEW_LIST="list_view",wT.VIEW_LIST_CAIRO="list_view_cairo",wT.VISIBILITY="eye",wT.VISIBILITY_OFF="eye_off",wT.VOLUME_MUTE="volume_off",wT.VOLUME_UP="volume_on",wT.WALLPAPER="image",wT.WARNING="alert_triangle",wT.WATCH_HISTORY="arrow_time",wT.WATCH_HISTORY_CAIRO="arrow_time_cairo",wT.WATCH_LATER="clock",wT.WATCH_LATER_CAIRO="clock_cairo",wT.WATCH_RELATED_MIX="youtube_mix",wT.WHAT_TO_WATCH="home",wT.YOUTUBE_MUSIC_MONOCHROME="youtube_music",wT.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",wT.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",wT.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",wT.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",wT.YT_OUTLINE_MUSIC_24="music",wT);var NR={},Utw=(NR.ACCESS_TIME="clock",NR.ACCOUNT_BOX="person_square",NR.ACCOUNT_BOX_CAIRO="person_square",NR.ACCOUNT_CIRCLE="person_circle",NR.ACCOUNT_CIRCLE_CAIRO="person_circle",NR.ACCOUNT_LINKED="account_link",NR.ACCOUNT_UNLINKED="account_link",NR.ADD_CIRCLE="add_circle",NR.ADD_CIRCLE_OUTLINE="add_circle",NR.ADD_FRIEND="person_child",NR.ADD_MODERATOR="shield_add",NR.ADD_TO_LIBRARY="bookmark",NR.ADD_TO_PLAYLIST="add",NR.ADD_TO_QUEUE_TAIL="queue",NR.ADD_TO_REMOTE_QUEUE="playlist_audio",NR.ADD_TO_WATCH_LATER=
"clock",NR.ADD_VIDEO_LINK="film_strip_add",NR.ADMIN_PANEL_SETTINGS="person_gear",NR.ALERT_WARN_RED="alert_triangle",NR.ALIGN_LEFT="text_align_left",NR.ARROWS_ALERT="arrow_split_alert",NR.ARROW_BACK="arrow_left",NR.ARROW_CIRCLE="arrow_counterclockwise",NR.ARROW_CIRCLE_PLAY="replay",NR.ARROW_CIRCLE_RIGHT="arrow_clockwise",NR.ARROW_DIAGONAL="arrow_up_left",NR.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",NR.ARROW_DROP_DOWN="triangle_down",NR.ARROW_DROP_UP="triangle_up",NR.ARROW_FORWARD="arrow_right",NR.ARROW_PAUSE=
"pause_history",NR.ARROW_UNDO="undo",NR.ARTICLE="text_page",NR.ARTICLE_ALERT="text_page_alert",NR.ARTICLE_CHECK="text_page_check",NR.ARTICLE_CLARIFY="text_page_info",NR.ARTIST="person_audio",NR.AUDIOTRACK="audio",NR.AUDIO_BADGE="audio_badge",NR.AUDIO_SURROUND="surround_sound",NR.AUTO_AWESOME="sparkles",NR.AVATAR_ANONYMOUS="person_circle",NR.AVATAR_LOGGED_OUT="person_circle",NR.BACK="arrow_left",NR.BAR_CHART="chart_bar",NR.BAR_CIRCLE="minus_circle",NR.BAR_HORIZONTAL="minus",NR.BLOCK="circle_slash",
NR.BLOCK_USER="circle_slash",NR.BOOKMARK_BORDER="bookmark",NR.BOX_OPEN_CHECK="quiz",NR.BOX_PENCIL="square_pencil",NR.BOX_STACK_3="square3_stack",NR.BREAKING_NEWS_ALT_1="text_page_alert",NR.BROADCAST="podcast",NR.BROADCAST_CAIRO="podcast",NR.BUG_REPORT="bug",NR.CAMERA_ALT="camera",NR.CAMPAIGN="megaphone",NR.CANCEL="x_circle",NR.CAPTIONS="closed_captions",NR.CAST_ICON="chromecast",NR.CAST_OUTLINE="chromecast",NR.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",NR.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
NR.CHAT="text_bubble",NR.CHAT_BUBBLE="bubble",NR.CHECK_BOX="check_square",NR.CHECK_BOX_OUTLINE_BLANK="square",NR.CHECK_CIRCLE_FILLED="check_circle",NR.CHECK_CIRCLE_OUTLINE="check_circle",NR.CHECK_CIRCLE_THICK="check_circle",NR.CHECK_DOUBLE="check_done",NR.CHECK_DOUBLE_OFF="check_done_slash",NR.CHEVRON_LEFT="chevron_left",NR.CHEVRON_RIGHT="chevron_right",NR.CHEVRON_RIGHT_CAIRO="chevron_right",NR.CIRCLES_OVERLAP="account_link",NR.CLAPPERBOARD_CAIRO="clapperboard",NR.CLARIFY="text_page_info",NR.CLOCK_ARROWS=
"clock_split",NR.CLOCK_ARROWS_ALERT="clock_split_alert",NR.CLOSED_CAPTION="closed_captions",NR.CLOSED_CAPTION_SELECTED="closed_captions",NR.CLOSE="x",NR.CLOUD_UPLOAD="cloud_arrow_up",NR.COLLAPSE="chevron_up",NR.COLLAPSE_CAIRO="chevron_up",NR.COLLECTION="square3d_stack",NR.COLOR_LENS="paint_palette",NR.COMMENT="text_bubble",NR.CONSENT_SHIELD="person_shield",NR.CONTENT_CUT="scissors",NR.CONTENT_CUT_CAIRO="scissors",NR.COURSE="graduation_cap",NR.COURSE_CAIRO="graduation_cap",NR.CREATION_LIVE="live",
NR.CREATION_POST="square_pencil",NR.CREATION_UPLOAD="video",NR.CREATION_UPLOAD_RED="upload",NR.CREATOR_ACADEMY="graduation_cap",NR.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",NR.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",NR.CREATOR_STUDIO="youtube_studio",NR.DARK_THEME="theme",NR.DELETE="trash_can",NR.DELETE_SWEEP="trash_can",NR.DESKTOP="laptop",NR.DISLIKE="thumb_down",NR.DISLIKE_SELECTED="thumb_down",NR.DISMISSAL="x",NR.DISMISS_QUEUE="playlist_x",NR.DOGFOOD="pawprint",NR.DOLLAR_SIGN=
"dollar_sign_circle",NR.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",NR.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",NR.DOWN_ARROW="arrow_down",NR.DO_NOT_DISTURB="circle_slash",NR.DRAFT="document",NR.DRAG_HANDLE="equal",NR.EARTH="globe",NR.EDIT="pencil",NR.EMOJI="face_very_happy",NR.EMOJI_FLAGS="flag",NR.EMOJI_OBJECTS="lightbulb",NR.EMOJI_PEOPLE="face_very_happy",NR.EMOJI_RECENT="clock",NR.EMPTY_HEART="heart",NR.EMPTY_LIKE="thumb_up",NR.ERROR_BLACK="alert_circle",NR.ERROR_OUTLINE="alert_circle",NR.ERROR_WHITE=
"alert_circle",NR.EXIT_APP="arrow_in",NR.EXIT_TO_APP="arrow_in",NR.EXPAND="chevron_down",NR.EXPAND_ALL="chevron_expand",NR.EXPAND_CAIRO="chevron_down",NR.EXPAND_LESS="chevron_up",NR.EXPAND_MORE="chevron_down",NR.EXPLORE="compass",NR.EXPLORE_DESTINATION="compass",NR.EXTERNAL_LINK="arrow_up_right",NR.EYE_OFF="eye_slash",NR.FAB_UPLOAD="upload",NR.FACE_HAPPY_OUTLINE="face_happy",NR.FACE_MEH="face_neutral",NR.FACT_CHECK="text_page_check",NR.FASHION_LOGO="fashion",NR.FASHION_LOGO_CAIRO="fashion",NR.FAVORITE=
"thumb_up",NR.FEEDBACK="alert_bubble",NR.FEEDBACK_CAIRO="alert_bubble",NR.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",NR.FILL_ARROW_SOLID_UP_16="arrow_solid_up",NR.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",NR.FIRST_PAGE="chevron_left_end",NR.FLAG_CAIRO="flag",NR.FLASH_OFF="flash_slash",NR.FLASH_ON="flash",NR.FULL_HEART="heart",NR.GAMING_LOGO="gaming",NR.GAMING_LOGO_CAIRO="gaming",NR.GO_TO_PAGE="arrow_right",NR.GRID_ASYMMETRICAL="dashboard",NR.GROUPS="person3",NR.HAND_SWIPE_LEFT="gesture_swipe_left",
NR.HAND_SWIPE_RIGHT="gesture_swipe_right",NR.HAPPY="face_happy",NR.HEALTH_AND_SAFETY="shield_health",NR.HEART_BOX="heart_cube",NR.HELP="help_circle",NR.HELP_CAIRO="help_circle",NR.HELP_OUTLINE="help_circle",NR.HIDE="circle_slash",NR.INCOGNITO_CAIRO="incognito",NR.INFINITY_ICON="infinity",NR.INFO="info_circle",NR.INFO_OUTLINE="info_circle",NR.INSERT_CHART="chart_bar_square",NR.INSERT_CHART_OUTLINED="chart_bar_square",NR.INSERT_PHOTO="image",NR.KEEP="pin",NR.KEEP_OFF="pin_slash",NR.KEYBOARD="keyboard",
NR.KEYBOARD_ARROW_DOWN="chevron_down",NR.KEYBOARD_ARROW_UP="chevron_up",NR.KIDS_BLOCK="circle_slash",NR.LANGUAGE="globe",NR.LAST_PAGE="chevron_right_end",NR.LAUNCH="arrow_up_right",NR.LEARNING="lightbulb",NR.LEARNING_CAIRO="lightbulb",NR.LIBRARY_ADD="bookmark",NR.LIBRARY_IMAGE="image_stack",NR.LIBRARY_MUSIC="audio_square_stack",NR.LIBRARY_OUTLINE="play_square_stack",NR.LIBRARY_REMOVE="bookmark",NR.LIBRARY_SAVED="check_square_stack",NR.LIKES_PLAYLIST="thumb_up",NR.LIKES_PLAYLIST_CAIRO="thumb_up",NR.LIKE=
"thumb_up",NR.LIKE_SELECTED="thumb_up",NR.LIST_QUEUE="queue",NR.LIVE_CAIRO="live",NR.LIVE_UNLISTED="link",NR.LOCATION_ON="location_pin",NR.LOCATION_PIN="location_pin",NR.LOCATION_POINT="location_pin",NR.LOOP="repeat",NR.LOOP_ACTIVE="repeat",NR.LOOP_ONE="repeat1",NR.LOOP_ONE_ACTIVE="repeat1",NR.MEET="google_meet",NR.MEH="face_neutral",NR.MEMBERSHIPS="memberships",NR.MEMBERS_ONLY_MODE_OFF="text_bubble",NR.MENU_FILTER="filter",NR.MESSAGE="text_bubble",NR.MESSAGE_BUBBLE_GEAR="bubble_gear",NR.MESSAGE_BUBBLE_LEFT=
"text_bubble",NR.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",NR.MESSAGE_BUBBLE_OVERLAP="bubble_stack",NR.MESSAGE_BUBBLE_QUESTION="help_bubble",NR.MICROPHONE_ON="mic",NR.MONETIZATION_ON="dollar_sign_circle",NR.MONEY_FILL="dollar_sign_rectangle",NR.MONEY_FILL_JPY="yen_sign_rectangle",NR.MONEY_HAND="dollar_sign_circle_hand",NR.MONEY_HEART="dollar_sign_heart",NR.MOON_Z="sleep_timer",NR.MORE_HORIZ="overflow_horizontal",NR.MORE_VERT="overflow_vertical",NR.MUSIC="audio",NR.MUSIC_CAIRO="audio",NR.MUSIC_EXPLICIT_BADGE=
"explicit",NR.MUSIC_NEW_RELEASE="audio_badge",NR.MUSIC_NOTE_SYMBOL="audio",NR.MUSIC_SCISSORS="audio_scissors",NR.MUSIC_SHUFFLE="shuffle",NR.MY_CHANNEL="person_circle",NR.MY_LOCATION="location_pin",NR.MY_VIDEOS="video",NR.MY_VIDEOS_CAIRO="video",NR.NEWS_CAIRO="news",NR.NEWS_STORY="news",NR.NEXT="chevron_right",NR.NOTE_ADD="bubble_pencil",NR.NOTIFICATIONS="bell",NR.NOTIFICATIONS_ACTIVE="bell_waves",NR.NOTIFICATIONS_CAIRO="bell",NR.NOTIFICATIONS_DONE_CHECKMARK="check",NR.NOTIFICATIONS_INBOX="bell",NR.NOTIFICATIONS_NONE=
"bell",NR.NOTIFICATIONS_OFF="bell_slash",NR.NOT_INTERESTED="circle_slash",NR.OFFICIAL_ARTIST_BADGE="audio",NR.OFFLINE_CLOUD="cloud_slash",NR.OFFLINE_DOWNLOAD="download",NR.OFFLINE_DOWNLOAD_CAIRO="download",NR.OFFLINE_PAUSE="pause",NR.OPEN_IN_NEW="arrow_up_right",NR.OUTLINE_ADJUST="adjust",NR.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",NR.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",NR.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",NR.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",NR.OUTLINE_BAG="bag",NR.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",NR.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",NR.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",NR.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",NR.PAID="dollar_sign_circle",NR.PAUSE_OUTLINED="pause",NR.PAYMENT="credit_card",NR.PEOPLE="person_child",NR.PEOPLE_2="person2_rectangle",NR.PEOPLE_GROUP="person3",NR.PEOPLE_NOTE="bubble_asterisk",NR.PERSON_2="person2",NR.PERSON_ACCOUNT="person_square_stack",NR.PERSON_MINUS="person_x",NR.PERSON_MUSIC="person_audio",NR.PERSON_RADAR="person_waves",
NR.PERSON_RADAR_FILLED="person_waves",NR.PERSON_SETTING="person_gear",NR.PHONE="phone",NR.PHONE_DOWNLOAD="mobile_arrow_down",NR.PICTURE_IN_PICTURE="picture_in_picture",NR.PLAYABLES_LOGO="playables",NR.PLAYABLES_LOGO_CAIRO="playables",NR.PLAYLISTS="playlist",NR.PLAYLISTS_CAIRO="playlist",NR.PLAYLIST_ADD_CHECK="bookmark",NR.PLAY_ALL="play",NR.PLAY_ARROW="play",NR.PLAY_ARROW_CIRCLE="play_circle",NR.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",NR.PLAY_CIRCLE="play_circle",NR.PLAY_OUTLINED="play_circle",
NR.PODCAST_ADD="podcast_add",NR.PODCAST_CHECK="podcast_check",NR.PRIVACY_INFO="shield_x",NR.PRIVACY_PRIVATE="lock",NR.PRIVACY_PUBLIC="globe",NR.PRIVACY_UNLISTED="link",NR.PROMOTE="megaphone",NR.PURCHASES="price_tag",NR.PURCHASE_SUPER_CHAT="super_chat",NR.PURCHASE_SUPER_STICKER="super_sticker",NR.QUESTION_ANSWER="help_bubble",NR.QUESTION_CIRCLE="help_circle",NR.QUEUE_PLAY_LAST="queue_last",NR.QUEUE_PLAY_NEXT="queue_next",NR.QUOTATION_MARK="quote",NR.RADAR_LIVE="live",NR.REMOVE="minus_circle",NR.REMOVE_CIRCLE=
"minus_circle",NR.REMOVE_CIRCLE_OUTLINE="minus_circle",NR.REMOVE_FROM_HISTORY="minus_circle",NR.REMOVE_FROM_PLAYLIST="minus_circle",NR.REMOVE_MODERATOR="shield_slash",NR.REPLAY="arrow_counterclockwise",NR.REPLAY_10="skip10_back",NR.REPLAY_ARROW="replay",NR.REPORT_PROBLEM="alert_triangle",NR.RSS_OFF="rss_slash",NR.SAD="face_sad",NR.SAVE_PLAYLIST="bookmark",NR.SCHEDULE="clock",NR.SCHOOL="graduation_cap",NR.SCREEN_DEFAULT="player_default",NR.SCREEN_FULLSCREEN="player_full_enter",NR.SCREEN_LIGHT="ambient_mode",
NR.SCREEN_ROTATION="rotate_portrait",NR.SCREEN_SWITCH="player_switch",NR.SCREEN_THEATRE="player_theater",NR.SEARCH_CAIRO="search",NR.SEARCH_HISTORY="history",NR.SELL="price_tag",NR.SETTINGS="gear",NR.SETTINGS_CAIRO="gear",NR.SETTINGS_LIGHT="gear",NR.SETTINGS_MATERIAL="gear",NR.SETTINGS_REMOTE="remote_waves",NR.SHARE="share",NR.SHARE_ARROW="share",NR.SHARE_CAIRO="share",NR.SHIELD="shield_x",NR.SHIELD_EMPTY="shield",NR.SHIELD_OFF="shield_slash",NR.SHIELD_WITH_AVATAR="person_shield",NR.SHOPPING_BAG=
"bag",NR.SHOPPING_BAG_CAIRO="bag",NR.SHOPPING_CART="cart",NR.SHORTS_COMMENT="text_bubble",NR.SHORTS_DISLIKE="thumb_down",NR.SHORTS_LIKE="thumb_up",NR.SHORTS_SHARE="share",NR.SKIP_FORWARD_30="skip30_forward",NR.SLASH_CIRCLE_LEFT="circle_slash",NR.SLASH_CIRCLE_RIGHT="circle_slash",NR.SLOW_MODE="bubble_slow",NR.SLOW_MODE_OFF="text_bubble",NR.SOCIAL="person_child",NR.SPARKLE="sparkles",NR.SPARK_IMAGE="image_spark",NR.SPARK_PENCIL="pencil_spark",NR.SPARK_RADAR="spark_waves",NR.SPARK_VIDEO="video_spark",
NR.SPEAKER_GROUP="speaker_stack",NR.SPEAKER_OFF="speaker_slash",NR.SPEED_1X="n1x",NR.SPEED_1_POINT_2X="n1point2x",NR.SPEED_1_POINT_5X="n1point5x",NR.SPEED_1_POINT_8X="n1point8x",NR.SPEED_2X="n2x",NR.SPONSORSHIP_STAR="star_circle",NR.SPORTS="basketball",NR.SPOTLIGHT="spotlight",NR.STAFF_PICK="spotlight",NR.START_DVR="add",NR.STAR_BORDER="star",NR.STAR_CIRCLE_RIBBON="memberships_gift",NR.STAR_HALF="star_full_half",NR.STAR_SHOOTING="hype",NR.STICKER="sticker",NR.STICKER_EMOTICON="face_happy",NR.STOP_DVR=
"stop",NR.SUBSCRIBE="youtube",NR.SUBSCRIBE_PLUS="add",NR.SUBSCRIPTION_MANAGER="gear",NR.SUPERSTAR="super_star",NR.SUPERVISOR_ACCOUNT="person_child",NR.SUPER_CHAT_FOR_GOOD="hands_heart",NR.SWAP_HORIZ="arrow_swap_horizontal",NR.SWITCH_ACCOUNTS="person_square_stack",NR.TAB_ACCOUNT="person",NR.TAB_ACTIVITY="bell",NR.TAB_BOOKMARK="bookmark",NR.TAB_EXPLORE="compass",NR.TAB_HOME="home",NR.TAB_HOME_CAIRO="home",NR.TAB_INBOX="mail",NR.TAB_LIKED="thumb_up",NR.TAB_MUSIC_PREMIUM="youtube_music",NR.TAB_SHORTS=
"shorts",NR.TAB_SHORTS_CAIRO="shorts",NR.TAB_SUBSCRIPTIONS="subscriptions",NR.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",NR.TAB_TRENDING="trending",NR.TARGET="target",NR.TARGET_ADD="target_add",NR.TEMPLATE_ADD="template_add",NR.TEXT="font",NR.TICKET_STAR="star_ticket",NR.TIMER="stopwatch",NR.TRENDING_CAIRO="trending",NR.TRENDING_DOWN="arrow_trend_down",NR.TRENDING_UP="arrow_trend_up",NR.TROPHY_CAIRO="trophy",NR.TROPHY_CELEBRATIONS="fireworks",NR.TROPHY_STAR="star_trophy",NR.TUNE="adjust",NR.TV_OFF="tv_slash",
NR.UNBLOCK_USER="minus_circle",NR.UNFAVORITE="thumb_down",NR.UNLIMITED="youtube",NR.UNPLUGGED_LIVE_GUIDE="live",NR.UNPLUGGED_SPORTS="eye_slash",NR.UPLOADS="play_square_stack",NR.UP_ARROW="arrow_up",NR.VERTICAL_ALIGN_BOTTOM="chevron_down_end",NR.VERTICAL_ALIGN_TOP="chevron_up_end",NR.VERY_HAPPY="face_very_happy",NR.VERY_SAD="face_very_sad",NR.VIDEOS="play_circle",NR.VIDEO_CALL="video_camera_add",NR.VIDEO_LIBRARY_WHITE="play_square_stack",NR.VIDEO_QUALITY_4K="n4k",NR.VIDEO_QUALITY_8K="n8k",NR.VIDEO_YOUTUBE=
"youtube",NR.VIEW_LIST_CAIRO="view_list",NR.VIEW_MODULE="view_column3_row2",NR.VISIBILITY="eye",NR.VISIBILITY_OFF="eye_slash",NR.VOLUME_DOWN="volume_min",NR.VOLUME_MUTE="volume_mute",NR.VOLUME_OFF="volume_mute",NR.VOLUME_STABLE="stable_volume",NR.VOLUME_UP="volume_max",NR.WALLPAPER="image",NR.WARNING="alert_triangle",NR.WATCH_HISTORY="history",NR.WATCH_HISTORY_CAIRO="history",NR.WATCH_LATER="clock",NR.WATCH_LATER_CAIRO="clock",NR.WATCH_RELATED_MIX="mix",NR.WHAT_TO_WATCH="home",NR.YOUTUBE_LINKED_TV=
"tv_mobile",NR.YOUTUBE_MUSIC_MONOCHROME="youtube_music",NR.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",NR.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",NR.YOUTUBE_SHORTS_ARROW_UP="arrow_up",NR.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",NR.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",NR.YOUTUBE_SHORTS_OUTLINE_24="shorts",NR.YT_OUTLINE_MUSIC_24="audio",NR);var Zgw={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var jX6={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,
24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],
[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,
2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,
1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,
2,24]]};var z8Q={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},ba=function(N){this.iconUrlProvider=N};
ba.prototype.resolveIcon=function(N,b){var S=z8Q[N.iconName.toUpperCase()];S&&(N.iconName=S);var P=N.iconName;P=P.replace(/-/g,"_");N=Object.assign({},N,{iconName:this.mapIconTypeToStandardName(P,!!S)||P.toLowerCase()});if(_.T("enable_web_delhi_icons")||S){var H;return yxf(jX6,N,((H=this.iconUrlProvider)==null?void 0:H.getYtStandardUrl)||g5f,b)}var K;return yxf(Zgw,N,((K=this.iconUrlProvider)==null?void 0:K.getYtStandardUrl)||Vfb,b)};
ba.prototype.mapIconTypeToStandardName=function(N,b){return _.T("enable_web_delhi_icons")||b?Utw[N.toUpperCase()]:Jv5[N.toUpperCase()]};
ba[RN]=[_.cq(xtw)];var Avt=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),XMO=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),EwE=function(N){this.urlProvider=this.iconUrlProvider=N};
_.F(EwE,ba);
EwE.prototype.resolveIcon=function(N,b){N.iconName==="youtube_logo"&&(N.iconName="yt-logo-updated");if(N.iconName==="youtube_premium_logo"||N.iconName==="youtube_red_logo")N.iconName="yt-logo-red-updated";var S=Object.assign({},N);N.iconName==="menu"&&(_.T("enable_web_delhi_icons")||(S.iconName="bars_3"),S.iconStyle="youtube_outline");N.iconSetName==="socialNetworksRound"&&(N.iconName==="mail"&&(S.iconName="email"),N.iconName==="embed"&&(S.iconSize=60));N.iconName==="more"&&(S.iconName="overflow_horizontal");
N.iconName==="fullscreen"&&(S.iconName="screen_full");N.iconName==="premium_standalone"&&(S.iconName="premium_standalone_cairo");_.T("enable_connect_icon_update_web")&&N.iconName==="account_linked"&&(S.iconName="circles_overlap_check",S.iconStyle="youtube_fill");_.T("enable_connect_icon_update_web")&&N.iconName==="account_unlinked"&&(S.iconName="circles_overlap",S.iconStyle="youtube_outline");Avt.has(N.iconName)&&(S.iconStyle="youtube_fill");if(_.T("enable_web_delhi_icons")){N.iconName==="playlist_add"&&
(S.iconName="bookmark");N.iconName==="offline_pin"&&(S.iconName="arrow_down_circle",S.iconStyle="youtube_fill");if(N.iconName==="circles_overlap_check"||S.iconName==="circles_overlap_check")S.iconName="account_link",S.iconStyle="youtube_fill";XMO.has(N.iconName)&&(S.iconName+="_updated")}N=Object.assign({},S,{iconName:(ba.prototype.mapIconTypeToStandardName.call(this,S.iconName)||S.iconName).toLowerCase()});var P;return(N=yxf(uww,N,((P=this.urlProvider)==null?void 0:P.getUrl)||eWe,b))?N:ba.prototype.resolveIcon.call(this,
S,b)};
EwE[RN]=[_.cq(xtw)];_.pML=1;var SR=function(N,b){this.JSC$17676_commandHandler=N;this.innertubeTransportService=b};
_.F(SR,kN);SR.prototype.resolveCommand=function(N,b){var S=this,P,H,K;return _.r(function(C){return(P=_.t(N,KK9))?C.return(YEt(S,P,(H=b)==null?void 0:(K=H.form)==null?void 0:K.element)):C.return()})};
var YEt=function(N,b,S){b={profileCardContext:b.profileCardContext,profileOwnerExternalChannelId:b.profileOwnerExternalChannelId};var P=_.q6(R$b);return _.ni(N.innertubeTransportService,b,P).then(function(H){if(!H)throw new _.jU("GetProfileCard failed");if(H=H.popupCommand){N.JSC$17676_commandHandler.resolveCommand(H,{form:{element:S}});_.Xy(_.dG(),66557);H=H==null?void 0:H.clickTrackingParams;var K=_.uZ();H&&K&&_.dG().graftServerVe(H,K)}})};
SR[RN]=[_.Wq,_.Mn];var PY=function(){};
_.F(PY,kN);PY.prototype.resolveCommand=function(N){var b,S;return _.r(function(P){b=_.t(N,WKd);if(!b)return P.return();S=Number(b.enableDelayedPacfLoggingTvMs);if(isNaN(S)){var H=DS();LzS(H,b,0)}else LzS(DS(),b,S);_.Zd(P)})};_.HY=function(){};
_.F(_.HY,kN);
_.HY.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R;return _.r(function(n){P=_.t(N,nS9);K=(H=b.form)==null?void 0:H.element;G=(C=K)==null?void 0:C.closest("ytd-enforcement-message-view-model");if(!P||!G)return n.return();S.allowAdsAction||(a=P.fundingChoiceInstructionPageUrl,S.allowAdsAction=new C59(window,_.Vb(a)));var d=S.allowAdsAction;d.wallElement=G;d.allowAdsPopup.style.setProperty("display","flex","important");var m=d.scrollManager;m.isScrollingEnabled&&(m.originalBodyOverflow=m.JSC$10233_domHelper.JSC$9559_document_.body.style.overflow,
m.JSC$10233_domHelper.JSC$9559_document_.body.style.overflow="hidden",m.isScrollingEnabled=!1);d.wallElement.style.setProperty("display","none","important");Tkd(d.accessibilityManager,d.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((R=S.allowAdsAction.allowAdsPopup)&&R instanceof HTMLElement)for(d=_.O(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),m=d.next();!m.done;m=d.next()){var k=_.O(m.value);m=k.next().value;k=k.next().value;
R.style.setProperty(m,k)}_.Zd(n)})};
_.HY.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var sq=function(){};
_.F(sq,kN);sq.prototype.resolveCommand=function(N){var b;return _.r(function(S){b=_.t(N,tz9);if(!b)return S.return();FPs(N);_.Zd(S)})};_.Kd=new _.nO("AI_CHAT_CONTROLLER_TOKEN");var vY=function(N,b,S,P){this.JSC$17691_commandHandler=N;this.store=b;this.getPlayerCb=S;this.aiChatController=P};
_.F(vY,kN);vY.prototype.pageContext=function(){var N=_.pf.currentPageSubTypeSelector(this.store.getState()),b;return(b=this.aiChatController)==null?void 0:_.yvJ(b,N)};
vY.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C;return _.r(function(G){S=_.t(N,faV);H=(P=S)==null?void 0:P.command;if(!H)return G.return();switch((C=S)==null?void 0:C.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var a="youchat-"+Date.now(),R;var n=String(Math.floor(((R=b.getPlayerCb())==null?void 0:R.getCurrentTime())||0)*1E3);K={inputComposerFormData:{clientMessageId:a,playerOffsetMs:n,pageContext:b.pageContext()}}}if(!K)return G.return();b.JSC$17691_commandHandler.resolveCommand(H,
{form:{formData:K}});_.Zd(G)})};
vY[RN]=[_.Wq,_.OQ,k2e,_.cq(_.Kd)];var IdQ=new _.nO("SESSION_STORAGE");var Oq=function(N){this.sessionStorage=N("conversations")};
_.F(Oq,kN);Oq.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){S=_.t(N,uIN);if(!S)return P.return();S.conversationId?b.sessionStorage.set("conversation_id",S.conversationId):b.sessionStorage.remove("conversation_id");_.Zd(P)})};
Oq[RN]=[IdQ];var Cd=function(N){this.JSC$17703_commandHandler=N};
_.F(Cd,kN);
Cd.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1){S=_.t(N,exE);if((P=S)==null||!P.text||!navigator.clipboard)return n.return();_.u4(n,2);return n.yield(navigator.clipboard.writeText(S.text),4)}if(n.nextAddress!=2){if(!S.successActions||S.successActions.length===0)return n.return();H=_.O(S.successActions);for(K=H.next();!K.done;K=H.next())C=K.value,b.JSC$17703_commandHandler.resolveCommand(C);return _.su(n,0)}_.UE(n);if(!S.failureActions||S.failureActions.length===
0)return n.return();G=_.O(S.failureActions);for(a=G.next();!a.done;a=G.next())R=a.value,b.JSC$17703_commandHandler.resolveCommand(R);_.Zd(n)})};
Cd[RN]=[_.Wq];var GX=function(N){this.JSC$17707_commandHandler=N};
_.F(GX,kN);
GX.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m;return _.r(function(k){switch(k.nextAddress){case 1:P=_.t(N,uOZ);if(!P)return k.return();_.u4(k,2);if(!P.imageBytes&&!P.imageUrl)throw Error("Di");if(!P.imageUrl){if(P.imageBytes){K=P.imageBytes;C=K.replace(/-/g,"+").replace(/_/g,"/");var M=qFL(C);H=_.eo(M)}k.jumpTo(4);break}return k.yield(fetch(P.imageUrl),5);case 5:return G=k.yieldResult,k.yield(G.blob(),6);case 6:a=k.yieldResult,H=_.eo(a);case 4:d=(R=b)==null?void 0:(n=R.form)==
null?void 0:n.element;m=document.createElement("a");qj(m,H);d.appendChild(m);m.download="";m.click();d.removeChild(m);URL.revokeObjectURL(_.YI(H));P.successCommand&&S.JSC$17707_commandHandler.resolveCommand(P.successCommand);_.su(k,0);break;case 2:_.UE(k),P.errorCommand&&S.JSC$17707_commandHandler.resolveCommand(P.errorCommand),_.Zd(k)}})};
GX[RN]=[_.Wq];var r1=function(N){this.store=N};
_.F(r1,kN);r1.prototype.resolveCommand=function(N){var b=this,S,P,H;return _.r(function(K){P=(S=_.t(N,_.Lpz))==null?void 0:S.entityBatchUpdate;if(!P)return K.jumpTo(0);H=Object.assign({},P,{mutations:[].concat(_.IX(P.mutations||[]))});return K.yield(_.WU(H,b.store),0)})};
r1[RN]=[s_];var Dt6=function(N){this.JSC$17714_commandHandler=N;this.feedbackDialogMap=new Map};
Dt6.prototype.openDialog=function(N,b){(N=this.feedbackDialogMap.get(N))&&this.JSC$17714_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:N}},b)};
Dt6[RN]=[_.Wq];var cY=new _.nO("FEEDBACK_CONTROLLER_TOKEN");var ag=new _.nO("APP_STORE_TOKEN");var Rg=function(N,b,S){this.store=N;this.controller=b;this.JSC$17717_commandHandler=S};
_.F(Rg,kN);Rg.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g;return _.r(function(e){if(e.nextAddress==1){P=_.t(N,_.ZM);if(K=(H=P)==null?void 0:H.contentId)for(G=_.O(((C=P)==null?void 0:C.actions)||[]),a=G.next();!a.done;a=G.next())R=a.value,VWL(S,R,K);m=(n=b)==null?void 0:(d=n.form)==null?void 0:d.element;return e.yield(_.HN(m,[N,{impression:(k=b)==null?void 0:k.disableClickTracking}]).catch(function(){}),2)}M=e.yieldResult;
if((l=M)==null?0:(u=l.data)==null?0:(J=u.feedbackResponses)==null?0:J.length)(D=(Z=M.data.feedbackResponses[0])==null?void 0:Z.followUpDialog)&&K&&(Y=S.controller)!=null&&Y.feedbackDialogMap.set(K,D),(g=(V=M.data.feedbackResponses[0])==null?void 0:V.isThumbnailReporting)&&S.JSC$17717_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Zd(e)})};
var VWL=function(N,b,S){var P=_.t(b,_.vN);if(P){P=_.O(P.commands||[]);for(var H=P.next();!H.done;H=P.next())VWL(N,H.value,S)}_.t(b,_.Y6)&&N.store.dispatch(_.t5("commandEntity",UKY(S),{key:S,command:b}));_.t(b,aaE)&&N.store.dispatch(_.t5("commandEntity",UKY(S),{key:S,command:b}))};
Rg[RN]=[ag,cY,_.Wq];var WY=function(N){this.controller=N};
_.F(WY,kN);WY.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C;return _.r(function(G){P=_.t(N,_.Sl);K=(H=P)==null?void 0:H.targetId;if(((C=P)==null?void 0:C.signal)!=="TELL_US_WHY"||!K)return G.return();S.controller.openDialog(K,b);_.Zd(G)})};
WY[RN]=[cY];var nd=function(N){this.store=N};
_.F(nd,kN);nd.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R;return _.r(function(n){P=_.t(N,ww9);K=(H=P)==null?void 0:H.contentId;a=(C=b)==null?void 0:(G=C.form)==null?void 0:G.element;R=_.HN(a,[N]);K&&S.undo(K);return n.yield(R,0)})};
nd.prototype.undo=function(N){this.store.dispatch(_.t5("commandEntity",UKY(N),{key:N,command:void 0}))};
nd[RN]=[ag];var d1=function(N){this.JSC$17729_commandHandler=N};
_.F(d1,kN);d1.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){S=_.t(N,DPl);P=S.flowStateKey;H=S.validationFailureCommand;K=S.submitValidFormCommand;C=Pjp(_.hI,[P||""]);G=_.t(C,e2E);((a=G)==null?0:a.isValid)&&K&&b.JSC$17729_commandHandler.resolveCommand(K);((R=G)==null?0:R.isValid)||!H||b.JSC$17729_commandHandler.resolveCommand(H);_.Zd(n)})};
d1[RN]=[_.Wq];var mP=function(N){this.innertubeTransportService=N};
_.F(mP,kN);mP.prototype.resolveCommand=function(N,b){var S=this,P;return _.r(function(H){return H.yield(_.pU(S.innertubeTransportService,N,(P=b)==null?void 0:P.form).then(function(K){var C,G;b==null||(C=b.commandController)==null||(G=C.onSuccess)==null||G.call(C,N,K)},function(K){var C,G;
b==null||(C=b.commandController)==null||(G=C.onServerError)==null||G.call(C,N,K)}),0)})};
mP[RN]=[_.Mn];var kc=function(){};
_.F(kc,kN);kc.prototype.resolveCommand=function(N){var b,S,P,H;return _.r(function(K){if(b=_.t(N,_.EJO)){if(S=b.gtmId)P=_.Vg("GL",""),_.wt(S,P);(H=b.gtmData)&&_.NZ(H)}_.Zd(K)})};var TX=function(N,b,S){this.innertubeTransportService=N;this.JSC$17740_actionRouter=b;this.JSC$17740_screenManager=S};
_.F(TX,kN);TX.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){S=_.t(N,ESz);if(!S)return H.return();P=S.command;if(!P)return H.return();b.JSC$17740_actionRouter.triggerAction("yt-insert-rich-section-action",S);return H.yield(_.pU(b.innertubeTransportService,P,{disableCache:!0}).then(function(K){N.clickTrackingParams&&(K==null?0:K.trackingParams)&&b.JSC$17740_screenManager.graftServerVe(K.trackingParams,_.FA(N.clickTrackingParams))}),0)})};
TX[RN]=[_.Mn,fc,_.Sz];NzI.bind(null,Ta);var gwn=NzI.bind(null,YOE);S9o.bind(null,Ta);var e8a=S9o.bind(null,YOE);HVY.bind(null,Ta);var $tw=HVY.bind(null,YOE);var t7=function(){};
_.F(t7,kN);
t7.prototype.resolveCommand=function(N){var b,S,P,H,K,C,G,a,R,n;return _.r(function(d){b=_.t(N,BKb);if(!b)return d.return();P=((S=b.operations)==null?void 0:S.operations)||[];H=_.O(P);for(K=H.next();!K.done;K=H.next())if(C=K.value,C.insertItemSectionContent){var m=C.insertItemSectionContent,k=m.contents||[];m.insertByPositionInSection?gwn(m.insertByPositionInSection.sectionTargetId,k,m.insertByPositionInSection.position):m.insertByRelativePositionInSection&&m.insertByRelativePositionInSection.sectionTargetId&&m.insertByRelativePositionInSection.itemTargetId&&
e8a(m.insertByRelativePositionInSection.sectionTargetId,m.insertByRelativePositionInSection.itemTargetId,k,m.insertByRelativePositionInSection.relativePosition)}else C.replaceSection?(m=C.replaceSection,k={},m.replaceByTargetId?k=m.replaceByTargetId:m.replaceByGroupId&&(k={targetId:m.replaceByGroupId.groupId,newContent:m.replaceByGroupId.newContent,undoKey:""}),k.newContent&&Dgb(k.targetId,{continuationItems:[k.newContent]})):C.removeItem?(m=C.removeItem,m.removeByTargetId&&m.sectionTargetId&&$tw(m.sectionTargetId,
m.removeByTargetId.targetIds||[])):C.removeSection&&(C.removeSection.removeByTargetId?(G=void 0,h8w(((G=C.removeSection)==null?void 0:G.removeByTargetId.targetIds)||[])):C.removeSection.removeByGroupId&&(a=void 0,h8w(((a=C.removeSection)==null?void 0:a.removeByGroupId.groupIds)||[])));n=((R=b.operations)==null?void 0:R.scrollConfig)||{};qEL(n);_.Zd(d)})};
var h8w=function(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next())Dgb(b.value,{continuationItems:[]})},qEL=function(N){if(N.scrollToItem){var b=N.scrollToItem.item||{},S=b.itemTargetId;
b=b.sectionTargetId;if(S&&b){var P=document.querySelector("[data-target-id="+b+"]"),H=P==null?void 0:P.querySelector("[data-target-id="+S+"]");P&&H&&setTimeout(function(){var K=H.offsetTop-P.offsetTop,C;if(((C=N.scrollToItem)==null?void 0:C.scrollPosition)==="SCROLL_POSITION_CENTER")K-=P.offsetHeight/2,K+=H.offsetHeight/2;else{var G;((G=N.scrollToItem)==null?void 0:G.scrollPosition)==="SCROLL_POSITION_END"&&(K-=P.offsetHeight,K+=H.offsetHeight)}P.scroll({top:K,behavior:"smooth"})},100)}}};var MR=new _.nO("CLIENT_NAME_TOKEN");var wMJ=new _.nO("DEFAULT_STORE_EXPIRATION_TOKEN");var KZe=new _.nO("CLIENT_LOCATION_SERVICE_TOKEN");var F2=function(N,b,S){this.clientName=N||_.Vg("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=b||_.pX.getInstance();this.JSC$17768_commandHandler=S||_.rG.instance};
_.F(F2,kN);F2.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){P=(S=_.t(N,vDl))==null?void 0:S.onComplete;b.clientLocationService.clearLocationPlayabilityToken(b.clientName);P&&b.JSC$17768_commandHandler.resolveCommand(P);_.Zd(H)})};
F2[RN]=[MR,KZe,_.Wq];var BY=function(N){this.innertubeTransportService=N};
_.F(BY,kN);BY.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C;return _.r(function(G){K=(P=b)==null?void 0:(H=P.form)==null?void 0:H.element;return G.yield(_.pU(S.innertubeTransportService,N,(C=b)==null?void 0:C.form).then(function(a){StE(K,new CustomEvent("yt-service-request-completed"),{data:a},_.Vg("openPopupConfig"))}),0)})};
BY[RN]=[_.Mn];var la=function(){};
_.F(la,kN);la.prototype.resolveCommand=function(N){var b,S;return _.r(function(P){b=_.t(N,wo9);S=document.querySelector("mini-app-container-view-model");if(!b||!S)return P.return();b.isPlaying?S.dispatchEvent(new Event("play")):S.dispatchEvent(new Event("pause"));_.Zd(P)})};var Ld=function(){};
_.F(Ld,kN);Ld.prototype.resolveCommand=function(N){var b,S,P,H,K,C,G;return _.r(function(a){b=_.t(N,UTd);if((S=b)==null||!S.paramKeys)return a.return();P=b.paramKeys;H=_.sB(window.location.href);K=_.O(P);for(C=K.next();!C.done;C=K.next())G=C.value,H.JSC$10265_queryData_.remove(G);window.history.replaceState(window.history.state,document.title,H.toString());_.Zd(a)})};var NYQ=function(){this.dropdownMap=new Map};_.bzq=new _.nO("DROPDOWN_CONTROLLER_TOKEN");var fd=function(N){this.controller=N};
_.F(fd,kN);fd.prototype.resolveCommand=function(N){var b=this,S,P,H,K;return _.r(function(C){S=_.t(N,Grl);if(!S)return C.return();P=S;H=P.dropdownId;K=P.selectedOptionIndex;if(H===void 0||K===void 0)return C.return();var G=b.controller.dropdownMap.get(H);G&&G(K);_.Zd(C)})};
fd[RN]=[_.bzq];var ua=function(N){this.controller=N};
_.F(ua,kN);ua.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){return(S=_.t(N,t19))?P.yield(b.controller.closeDialog(),0):P.return()})};
ua[RN]=[_.KW];var QM=function(N){this.controller=N};
_.F(QM,kN);QM.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){S=_.t(N,Hid);if(!S)return H.return();var K,C=S.panelIdentifier||((K=S.identifier)==null?void 0:K.tag);if(!C)throw Error("Ei");return(P=C)?H.yield(b.controller.hidePanel({identifier:P}),0):H.jumpTo(0)})};
QM[RN]=[_.Hn];var xc=function(N){this.controller=N};
_.F(xc,kN);xc.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){return(S=_.t(N,YME))?P.yield(b.controller.closeSheet(),0):P.return()})};
xc[RN]=[_.sD];var og=function(N,b){this.innertubeTransportService=N;this.controller=b};
_.F(og,kN);og.prototype.resolveCommand=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S=_.t(N,swS),(P=S)!=null&&P.panelId?C.yield(b.controller.getReloadContinuation(S.panelId),2):C.return();if(C.nextAddress!=3)return(H=C.yieldResult)?C.yield(_.pU(b.innertubeTransportService,N,{continuation:H}),3):C.return();K=C.yieldResult;return C.yield(b.controller.updatePanel({identifier:S.panelId,panelContents:K.content,shouldFocus:!1}),0)})};
og[RN]=[_.Mn,_.Hn];var ia=function(N,b,S){this.innertubeTransportService=N;this.JSC$17809_screenManager=b;this.JSC$17809_commandHandler=S};
_.F(ia,kN);
ia.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1){S=_.t(N,_.qPS);if(!S)return a.return();if(S.commands)for(P=_.O(S.commands),H=P.next();!H.done;H=P.next())K=H.value,b.JSC$17809_commandHandler.resolveCommand(K,{disableClickTracking:!0});C=_.FA(N.clickTrackingParams);_.Xy(b.JSC$17809_screenManager,21760,C,{layer:7,parentLayer:0});return a.yield(_.pU(b.innertubeTransportService,N),2)}G=a.yieldResult;if(!G)return a.return();b.JSC$17809_screenManager.graftServerVe(G.trackingParams,C,
7);_.Zd(a)})};
ia[RN]=[_.Mn,_.Sz,_.Wq];var J7=new _.nO("PANEL_LOADING_STRATEGY_TOKEN");var Uq=function(N,b){this.controller=N;this.panelLoadingStrategy=b};
_.F(Uq,kN);
Uq.prototype.resolveCommand=function(N,b){var S=this,P,H,K;return _.r(function(C){P=_.t(N,Ii4);if((H=P)==null||!H.panelLoadingStrategy)return C.return();K=function(G){var a,R,n,d,m,k,M,l,u,J;return _.r(function(Z){R=_.t((a=G.dialogViewModel)==null?void 0:a.header,rCc);n={viewModel:G.dialogViewModel};d={};if(M=_.T("web_enable_dialog_header_label")?(m=R)==null?void 0:(k=m.headline)==null?void 0:k.content:void 0)d.ariaLabel=M;P.dismissOnBackgroundTap===!1&&(d.isModal=!0);return G.dialogViewModel?Z.yield(S.controller.openDialog(n,
(J=(l=b)==null?void 0:(u=l.form)==null?void 0:u.element)!=null?J:document.body,d),0):Z.return()})};
return C.yield(S.panelLoadingStrategy.execute({command:N,data:P.panelLoadingStrategy,renderFn:K,createScreenConfig:{layer:4}}),0)})};
Uq[RN]=[_.KW,J7];var Z6=function(N,b,S){this.innertubeTransportService=N;this.controller=b;this.JSC$17829_screenManager=S};
_.F(Z6,kN);
Z6.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J;return _.r(function(Z){switch(Z.nextAddress){case 1:P=_.t(N,_.U_);if(!P)return Z.return();var D,Y=P.panelIdentifier||((D=P.identifier)==null?void 0:D.tag);if(!Y)throw Error("Ei");H=Y;return Z.yield(S.controller.isVisible(H,!0),2);case 2:if((K=Z.yieldResult)&&P.blockIfPanelOpen)return Z.return();a=(G=(C=S.controller).getPanelContent)==null?void 0:G.call(C,H);if(!(D=a))if(P){var V;D=((V=P.globalConfiguration)==null?void 0:
V.initialState)||P.engagementPanel;if(V=!D)V=!!(P==null?0:(Y=P.engagementPanelPresentationConfigs)==null?0:Y.engagementPanelPopupPresentationConfig);V&&(D=_.sKb(P.panelIdentifier,P.identifier))}else D=void 0;R=D;n=P.engagementPanelPresentationConfigs;d=P.engagementPanelExtras;return Z.yield(S.controller.showPanel({identifier:H,panelContents:R,config:n,extras:d,target:(m=b)==null?void 0:(k=m.form)==null?void 0:k.element}),3);case 3:if(!P.globalConfiguration){Z.jumpTo(0);break}if(P.globalConfiguration.reuseModelAndState&&
_.T("enable_ai_companion")&&(u=(l=(M=S.controller).getPanelContent)==null?void 0:l.call(M,H)))return Z.return();_.Xy(S.JSC$17829_screenManager,32633);return Z.yield(_.pU(S.innertubeTransportService,N),5);case 5:return J=Z.yieldResult,S.JSC$17829_screenManager.graftServerVe(J.trackingParams),Z.yield(S.controller.updatePanel({identifier:H,panelContents:J.content,shouldFocus:!0,extras:d,updatePanelContinuationData:J.updatePanelContinuationData}),0)}})};
Z6[RN]=[_.Mn,_.Hn,_.Sz];var jR=function(N,b){this.controller=N;this.panelLoadingStrategy=b};
_.F(jR,kN);
jR.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M;return _.r(function(l){P=_.t(N,_.Mb);if((H=P)==null||!H.panelLoadingStrategy)return l.return();G=Snt(S.controller,(K=b)==null?void 0:(C=K.form)==null?void 0:C.element);R=(a=P.contextualSheetPresentationConfig)==null?void 0:a.position;d=(n=P.contextualSheetPresentationConfig)==null?void 0:n.hoverConfig;k=(m=P.contextualSheetPresentationConfig)==null?void 0:m.expandToFullWidth;M=function(u){var J,Z;return _.r(function(D){if(!u.sheetViewModel)return D.return();if(d){var Y=
S.controller;Y.shouldPreventClosingWhileHovered=!!d.preventCloseWhileHovered;var V;Y.hideDelayMs=(V=d.hideDelayMs)!=null?V:0}return D.yield(S.controller.openSheet({viewModel:u.sheetViewModel,sheetPosition:R,expandToFullWidth:k},G,(J=b)==null?void 0:(Z=J.form)==null?void 0:Z.element),0)})};
return l.yield(S.panelLoadingStrategy.execute({command:N,data:P.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:0}}),0)})};
jR[RN]=[_.sD,J7];var zX=function(N,b){this.controller=N;this.JSC$17840_commandHandler=b};
_.F(zX,kN);zX.prototype.resolveCommand=function(N,b){var S=this,P,H,K;return _.r(function(C){if(C.nextAddress==1){P=_.t(N,CPd);var G=_.t(P.showCommand,_.U_),a,R,n=(R=G==null?void 0:G.panelIdentifier)!=null?R:G==null?void 0:(a=G.identifier)==null?void 0:a.tag;if(!n)throw Error("Fi");H=n;return C.yield(S.controller.isVisible(H),2)}return(K=C.yieldResult)?C.yield(S.controller.hidePanel({identifier:H}),0):C.yield(S.JSC$17840_commandHandler.resolveCommand(P.showCommand,b),0)})};
zX[RN]=[_.Hn,_.Wq];var A7=function(N,b,S){this.innertubeTransportService=N;this.controller=b;this.JSC$17843_screenManager=S};
_.F(A7,kN);
A7.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e;return _.r(function(se){switch(se.nextAddress){case 1:return P=S=_.t(N,aRc),H=P.targetPanelIdentifier,K=P.contentSourcePanelIdentifier,C=P.globalConfiguration,((G=H)==null?0:G.tag)&&((a=K)==null?0:a.tag)?C?se.yield(b.controller.showPanel({identifier:H.tag,panelContents:_.sKb(H.tag,H)}),5):se.yield((m=(d=b.controller).getPanel)==null?void 0:m.call(d,K.tag),4):se.return();case 4:k=se.yieldResult;R=(M=k)==
null?void 0:(u=(l=M).getPanelContent)==null?void 0:u.call(l);se.jumpTo(3);break;case 5:return se.yield(_.pU(b.innertubeTransportService,N),6);case 6:J=se.yieldResult,((Z=J)==null?0:Z.trackingParams)&&b.JSC$17843_screenManager.graftServerVe(J.trackingParams),R=(D=J)==null?void 0:D.content,n=(Y=J)==null?void 0:Y.updatePanelContinuationData;case 3:if(g=(V=R)==null?void 0:V.engagementPanelSectionListRenderer)return se.yield(b.controller.showPanel({identifier:H.tag,panelUpdatableFields:{content:g.content,
secondaryHeaderContent:(e=g.header)!=null?e:{},targetId:g.targetId,loggingDirectives:g.loggingDirectives},updatePanelContinuationData:n}),0);se.jumpTo(0)}})};
A7[RN]=[_.Mn,_.Hn,_.Sz];var X2=function(){};
_.F(X2,kN);X2.prototype.resolveCommand=function(N){var b,S,P;return _.r(function(H){if(H.nextAddress==1)return(b=_.t(N,dpz))?H.yield(_.Cf(),2):H.return();S=H.yieldResult;if(!S)return H.return();var K=S,C=(P=b)==null?void 0:P.languageCode,G;(K==null?0:(G=K.isReady)==null?0:G.call(K))&&(C=KfE(K,C))&&K.setAudioTrack(C);_.Zd(H)})};var Eq=function(){};
_.F(Eq,cc);_.v=Eq.prototype;_.v.getApiPaths=function(){return OZz};
_.v.getExtension=function(N){return _.t(N,_.Iv)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14411_getStoreKey=function(N){if((N=this.getExtension(N))&&N.videoId){var b={videoId:N.videoId};N.playlistId&&(b.playlistId=N.playlistId);N.index&&(b.index=N.index);N.params&&(b.params=N.params);return _.yh("next",b)}};
_.v.JSC$14404_getClientScreen=function(N){var b;return((b=N.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$14404_buildRequest=function(N,b,S){b.videoId&&(N.videoId=b.videoId);b.playlistId&&(N.playlistId=b.playlistId);b.params&&(N.params=b.params);b.index!==void 0&&(N.playlistIndex=b.index);N.racyCheckOk=!(!S.racyCheckOk&&!b.racyCheckOk);N.contentCheckOk=!!b.contentCheckOk;S.contentPlaybackContext&&(N.autonavState=S.contentPlaybackContext.autonavState,N.playbackContext={vis:S.contentPlaybackContext.vis,lactMilliseconds:S.contentPlaybackContext.lactMilliseconds});S.prefetchPlaybackContext&&(N.context.request||
(N.context.request={}),N.context.request.isPrefetch=!0);_.T("captions_hats_killswitch")||(b=_.WN().getFlag(65),b=b!=null?!b:!1,S=!!_.l1("yt-player-sticky-caption"),N.captionsRequested=b&&S)};
_.v.getRequestConfig=function(N){N=this.JSC$14411_getStoreKey(N);var b;N&&(b={storeStrategy:{storeKey:N}});_.T("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b};
var pd=function(){};
_.F(pd,cc);pd.prototype.getApiPaths=function(){return OZz};
pd.prototype.getExtension=function(N){return _.t(N,_.J8)};
pd.prototype.JSC$14404_buildRequest=function(N,b){b.token&&(N.continuation=b.token)};var Yc=function(){this.innerTubeTransport=_.aN().resolve(_.Mn);this.miniplayerService=_.aN().resolve(_.E_)};
_.F(Yc,kN);var PzJ=function(N){var b;return _.r(function(S){b=_.Vg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;N.JSC$17868_mainAppPlayer=new FL(b);document.addEventListener("yt-navigate-start",N.JSC$17868_pauseOnNavigation.bind(N));_.Zd(S)})},HzO=function(N,b){var S,P,H,K;
return _.r(function(C){if(C.nextAddress==1){S=new Eq;P=S.JSC$14404_getRequest(b);if(!P)return C.return(void 0);H=P.innerTubeRequest;return C.yield(_.ni(N.innerTubeTransport,H,"/youtubei/v1/next"),2)}K=C.yieldResult;var G;var a,R,n=(G=K.contents)==null?void 0:(a=G.twoColumnWatchNextResults)==null?void 0:(R=a.playlist)==null?void 0:R.playlist,d;G=(n==null?0:(d=n.contents)==null?0:d.length)?n:void 0;return C.return(G)})},s_Q=function(N,b){var S,P,H,K,C;
return _.r(function(G){if(G.nextAddress==1)return S=N.JSC$17868_mainAppPlayer,G.yield(S.api,2);if(G.nextAddress!=3)return P=G.yieldResult,b.watchCommand?G.yield(HzO(N,b.watchCommand),3):G.return();H=G.yieldResult;if((K=H)==null||!K.contents)return G.return();C=H.contents.map(function(a){var R;return(R=a.playlistPanelVideoRenderer)==null?void 0:R.videoId}).filter(function(a){return!!a}).map(function(a){return{encrypted_id:a}});
P.updatePlaylist({video:C});_.Zd(G)})},K0E=function(N,b){var S,P,H;
return _.r(function(K){return K.nextAddress==1?(S=N.JSC$17868_mainAppPlayer,H=(P=b.playerParams)!=null?P:"",b.externalVideoId?K.yield(S.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",player_params:H}),2):K.jumpTo(2)):b.watchCommand?K.yield(s_Q(N,b),0):K.jumpTo(0)})};
Yc.prototype.JSC$17868_pauseOnNavigation=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.pauseVideo();_.Zd(P)})};
Yc.prototype.pauseVideo=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.pauseVideo();_.Zd(P)})};
Yc.prototype.playVideo=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.playVideo();_.Zd(P)})};
var vot=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.mute();_.Zd(P)})},OzO=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.unMute();_.Zd(P)})};
Yc.prototype.stopVideo=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return b=N.JSC$17868_mainAppPlayer,P.yield(b.api,2);S=P.yieldResult;S.stopVideo();_.Zd(P)})};
var Cz5=function(N,b){return _.r(function(S){switch(S.nextAddress){case 1:switch(b){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return S.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return S.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return S.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return S.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return S.jumpTo(6)}S.jumpTo(0);break;case 2:return S.yield(N.playVideo(),8);case 8:S.jumpTo(0);break;case 3:return S.yield(N.pauseVideo(),
9);case 9:S.jumpTo(0);break;case 4:return S.yield(N.stopVideo(),10);case 10:S.jumpTo(0);break;case 5:return S.yield(vot(N),11);case 11:S.jumpTo(0);break;case 6:return S.yield(OzO(N),12);case 12:S.jumpTo(0)}})};
Yc.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G;return _.r(function(a){return a.nextAddress==1?(S=_.t(N,YHS),((P=S)==null?0:P.newPlaybackParams)||((H=S)==null?0:H.controlAction)?b.JSC$17868_mainAppPlayer?a.jumpTo(2):a.yield(PzJ(b),2):a.return()):((K=S)==null?0:K.newPlaybackParams)?(b.miniplayerService.isMiniplayerActive()&&((C=b.miniplayerService.getPlayerElement())==null||C.pause()),G=S.newPlaybackParams,G.externalVideoId||G.externalPlaylistId?a.yield(K0E(b,G),0):a.return()):a.yield(Cz5(b,
S.controlAction),0)})};var yM=function(N){this.JSC$17874_commandHandler=N};
_.F(yM,kN);
yM.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return(S=_.t(N,mpz))?a.yield(_.Cf(),2):a.return();P=a.yieldResult;if(!P)return a.return();var R=P,n=(H=S)==null?void 0:H.languageCode,d=(K=S)==null?void 0:K.isAutoTranslated;R.getVideoData&&_.OVY(R).length&&((n=Gvp(R,n,d))?R.setOption("captions","track",n):(R.setOption("captions","stickyLoading",{}),R.setOption("captions","track",{})));C=P.isSubtitlesOn()?_.cN("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.cN("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");G=_.Nn(C,5E3);b.JSC$17874_commandHandler.resolveCommand(G);_.Zd(a)})};
yM[RN]=[_.Wq];var Ig=function(N,b){this.shortsPlayerPromise=N;this.JSC$17878_commandHandler=b};
_.F(Ig,kN);
Ig.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1)return(S=_.t(N,Xy9))?n.yield(b.shortsPlayerPromise,2):n.return();P=n.yieldResult;var d=rXU(P);d!=null&&d.length||(P.loadModule("captions"),d=rXU(P));H=d;if((K=H)==null||!K.length)return C=_.cN("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.Nn(C),b.JSC$17878_commandHandler.resolveCommand(G),n.return();P.toggleSubtitles();a=P.isSubtitlesOn()?_.cN("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.cN("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.Nn(a);b.JSC$17878_commandHandler.resolveCommand(R);_.Zd(n)})};
Ig[RN]=[_.jsk,_.Wq];var D6=function(N){this.JSC$17881_actionRouter=N;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(b,S){b.triggerAction("yt-dismiss-shopping-timely-shelf-action",S);(b=_.aN().resolve(_.cq(_.eQz)))&&b.dismissFeaturedProductOverlay()}]])};
_.F(D6,kN);D6.prototype.resolveCommand=function(N){var b=this,S,P,H;return _.r(function(K){S=_.t(N,M14);if((P=S)==null||!P.overlayId)return K.return();H=b.dismissPlayerOverlayActions.get(S.overlayId);if(!H)throw Error("Gi`"+S.overlayId);H(b.JSC$17881_actionRouter,S);_.Zd(K)})};
D6[RN]=[fc];var VM=function(N){this.JSC$17885_playerPromise=N};
_.F(VM,kN);VM.prototype.resolveCommand=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return(S=_.t(N,vAz))?C.yield(b.JSC$17885_playerPromise,2):C.return();P=C.yieldResult;H=P.getVideoData().video_id;S.videoId===H&&(K=Number(S.offsetFromVideoStartMilliseconds),K>=0&&P.seekTo(K/1E3));_.Zd(C)})};
VM[RN]=[_.Pm];var Gna=_.Cu("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),g1=function(N){this.store=N};
_.F(g1,kN);
var rhw=function(N){var b,S,P,H;return _.r(function(K){if(K.nextAddress==1)return b=_.Vg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,S=_.Vg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,P=b||S,N.JSC$17889_mainAppPlayer=new FL(P),K.yield(N.JSC$17889_mainAppPlayer.api,2);H=K.yieldResult;H.addEventListener("onStateChange",N.JSC$17889_playerStateChangeListener.bind(N));document.addEventListener("yt-page-data-updated",N.JSC$17889_pauseOnNavigation.bind(N));window.addEventListener("state-navigatestart",
N.JSC$17889_pauseOnNavigation.bind(N));_.Zd(K)})};
g1.prototype.JSC$17889_playerStateChangeListener=function(N){switch(N){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}chO(this)};
var chO=function(N){N.store.dispatch(_.t5("sfvAudioItemCurrentlyPlayingEntity",Gna,{key:Gna,externalVideoId:N.externalVideoId,sfvAudioItemPlaybackState:N.playbackState,nowPlayingEntityValue:N.nowPlayingEntityValue}))};
g1.prototype.JSC$17889_pauseOnNavigation=function(){var N=this,b,S,P,H;return _.r(function(K){if(K.nextAddress==1){if(!N.JSC$17889_mainAppPlayer){var C=new _.jU("Error: mainAppPlayer is unavailable",N.JSC$17889_mainAppPlayer);_.ge(C);return K.return()}return K.yield(N.JSC$17889_mainAppPlayer.api,2)}b=K.yieldResult;P=(S=b)==null?void 0:S.getPlayerState();P!==1||(H=b)!=null&&H.pauseVideo();_.Zd(K)})};
g1.prototype.playVideo=function(N,b,S){var P=this,H,K;return _.r(function(C){if(C.nextAddress==1)return C.yield((H=P.JSC$17889_mainAppPlayer)==null?void 0:H.api,2);K=C.yieldResult;if(!P.JSC$17889_mainAppPlayer||!K){var G=new _.jU("Error: mainAppPlayer is unavailable",P.JSC$17889_mainAppPlayer);_.ge(G);return C.return()}return C.yield(P.JSC$17889_mainAppPlayer.loadVideoWithPlayerVars({videoId:P.externalVideoId,audio_only:"1",start:N/1E3,end:N/1E3+b,player_params:S}),0)})};
g1.prototype.pauseVideo=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1){if(!N.JSC$17889_mainAppPlayer){var H=new _.jU("Error: mainAppPlayer is unavailable",N.JSC$17889_mainAppPlayer);_.ge(H);return P.return()}return P.yield(N.JSC$17889_mainAppPlayer.api,2)}b=P.yieldResult;(S=b)==null||S.pauseVideo();_.Zd(P)})};
g1.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y;return _.r(function(V){if(V.nextAddress==1)return S=_.t(N,jfd),H=(P=S)==null?void 0:P.nowPlayingEntityValue,C=(K=S)==null?void 0:K.externalVideoId,d=Number((n=(G=S)==null?void 0:(a=G.defaultStartPoints)==null?void 0:(R=a[0])==null?void 0:R.offsetMs)!=null?n:"0"),J=Number((u=(m=S)==null?void 0:(k=m.defaultStartPoints)==null?void 0:(M=k[0])==null?void 0:(l=M.duration)==null?void 0:l.seconds)!=null?u:"15"),Y=(D=
(Z=S)==null?void 0:Z.playerParams)!=null?D:"",H&&C?b.JSC$17889_mainAppPlayer?V.jumpTo(2):V.yield(rhw(b),2):V.return();if(V.nextAddress!=6){if(b.nowPlayingEntityValue&&H===b.nowPlayingEntityValue)return b.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?V.yield(b.pauseVideo(),0):V.yield(b.playVideo(d,J,Y),0);b.externalVideoId=C;b.nowPlayingEntityValue=H;b.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return V.yield(b.playVideo(d,J,Y),6)}chO(b);return V.jumpTo(0)})};
g1[RN]=[s_];var eR=function(N){this.JSC$17907_commandHandler=N};
_.F(eR,kN);eR.prototype.resolveCommand=function(N,b){var S=this,P,H,K;return _.r(function(C){if(C.nextAddress==1)return(P=_.t(N,kDS))?C.yield(_.Cf(),2):C.return();H=C.yieldResult;if(!H)return C.return();(K=cXU(H))&&S.JSC$17907_commandHandler.resolveCommand(K,b);_.Zd(C)})};
eR[RN]=[_.Wq];var $c=function(N){this.JSC$17913_commandHandler=N};
_.F($c,kN);$c.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return(P=_.t(N,TU9))?a.yield(_.Cf(),2):a.return();H=a.yieldResult;if(!H)return a.return();(K=dGa(H))?S.JSC$17913_commandHandler.resolveCommand(K,b):(C=_.cN("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),G=_.Nn(C),S.JSC$17913_commandHandler.resolveCommand(G));_.Zd(a)})};
$c[RN]=[_.Wq];var h7=function(N){this.JSC$17916_playerPromise=N};
_.F(h7,kN);h7.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return(S=_.t(N,B3E))?H.yield(b.JSC$17916_playerPromise,2):H.return();P=H.yieldResult;P.isFullscreen()&&P.wakeUpControls();_.Zd(H)})};
h7[RN]=[_.Pm];var qR=function(N){this.JSC$17919_playerPromise=N};
_.F(qR,kN);qR.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C;return _.r(function(G){if(G.nextAddress==1){S=_.t(N,OiE);if(!S)return G.return();P=S.overlayRenderer;return P?(H=_.t(P,QnN))?G.yield(b.JSC$17919_playerPromise,3):G.jumpTo(0):G.return()}K=G.yieldResult;K.renderChapterSeekingAnimation(1,_.es(H.text),(C=H.icon)==null?void 0:C.iconType);_.Zd(G)})};
qR[RN]=[_.Pm];var w1=function(N){this.store=N};
_.F(w1,kN);
w1.prototype.resolveCommand=function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1){S=_.t(N,yFk);if(!S)return K.return();P="";(H=b.store.getState().collabInviteLink)&&S.id===H.playlistId?P=H.inviteLinkURL:S.shortUrl&&(P=S.shortUrl);return P?K.yield(navigator.clipboard.writeText(P),3):K.jumpTo(0)}var C={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.cN("COPY_LINK_SUCCESS_TOAST")}}}}};_.aN().resolve(_.Wq).resolveCommand(C);_.Zd(K)})};
w1[RN]=[ag];var No=function(N,b){this.innertubeTransportService=N;this.JSC$17929_commandHandler=b};
_.F(No,kN);No.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m;return _.r(function(k){if(k.nextAddress==1)return(P=_.t(N,_.Rr))?k.yield(_.pU(S.innertubeTransportService,N,(H=b)==null?void 0:H.form),2):k.return();(K=k.yieldResult)&&K.errorMetadata&&(C=K,G=_.Nn(C.error.message),S.JSC$17929_commandHandler.resolveCommand(G));a=K;if((R=a)==null?0:R.actions)for(n=_.O(a.actions),d=n.next();!d.done;d=n.next())m=d.value,S.JSC$17929_commandHandler.resolveCommand(m);_.Zd(k)})};
No[RN]=[_.Mn,_.Wq];var bs=function(){};
_.F(bs,kN);bs.prototype.resolveCommand=function(N){var b;return _.r(function(S){b=_.t(N,JFk);if(!b)return S.return();(new CjZ(b)).show();_.Zd(S)})};_.S4=new _.nO("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Px=function(N,b,S,P){this.store=N;this.innertubeTransportService=b;this.controller=S;this.JSC$17937_commandHandler=P};
_.F(Px,kN);
Px.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To;return _.r(function(jp){if(jp.nextAddress==1){P=_.t(N,_.vC);if(!P)return jp.return();if(P.clientActions){H=_.O(P.clientActions);for(K=H.next();!K.done;K=H.next())C=K.value,S.JSC$17937_commandHandler.resolveCommand(C,b);var Xf,YO=b==null?void 0:(Xf=b.form)==null?void 0:Xf.element;YO&&_.bC(YO,"yt-dismissible-item-action",P.clientActions)}return jp.yield(_.pU(S.innertubeTransportService,N,(G=
b)==null?void 0:G.form),2)}if(a=jp.yieldResult)a.errorMetadata?(R=a,n=_.Nn(R.error.message),S.JSC$17937_commandHandler.resolveCommand(n),"error"in a&&((d=b)==null?0:(m=d.commandController)==null?0:m.onServerError)&&((k=b)==null||(M=k.commandController)==null||M.onServerError(N,a))):(l=b)==null||(u=l.commandController)==null||(Z=(J=u).onSuccess)==null||Z.call(J,N,a);D=a;((Y=D)==null?0:Y.collaborationInviteLink)&&P.playlistId&&(_.T("web_enable_invite_collaborators_link")||_.T("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
S.store.dispatch(_.HU({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:P.playlistId,inviteLinkUrl:D.collaborationInviteLink}}));((V=D)==null?0:V.redirectEndpoint)&&S.JSC$17937_commandHandler.resolveCommand(D.redirectEndpoint);((g=D)==null?0:(e=g.newHeader)==null?0:e.playlistHeaderRenderer)?a2Q(S.controller,D.newHeader.playlistHeaderRenderer):((se=D)==null?0:(Ca=se.newHeader)==null?0:Ca.musicEditablePlaylistDetailHeaderRenderer)&&a2Q(S.controller,D.newHeader.musicEditablePlaylistDetailHeaderRenderer);
S.controller.playlistVideoListElement&&((ML=D)==null?0:(na=ML.playlistEditResults)==null?0:(To=na[0])==null?0:To.playlistEditVideoAddedResultData)&&((YO=S.controller.playlistVideoListElement)==null||YO.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:D.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Zd(jp)})};
Px[RN]=[_.OQ,_.Mn,_.S4,_.Wq];var Hx=function(N,b){this.controller=N;this.JSC$17947_commandHandler=b};
_.F(Hx,kN);Hx.prototype.resolveCommand=function(N,b){var S=this,P,H,K;return _.r(function(C){P=_.t(N,IT9);S.controller.showRefreshPill&&((H=P)==null?0:H.command)&&(S.JSC$17947_commandHandler.resolveCommand((K=P)==null?void 0:K.command,b),S.controller.showRefreshPill=!1);_.Zd(C)})};
Hx[RN]=[_.pw,_.Wq];var s8=function(N,b){this.store=N;this.JSC$17951_commandHandler=b||_.rG.instance};
_.F(s8,kN);s8.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m;return _.r(function(k){P=_.t(N,sy9);H=S.store.getState().radioButtonGroup;if((K=P)==null?0:K.command)S.JSC$17951_commandHandler.resolveCommand((C=P)==null?void 0:C.command,b);else if(H&&((G=P)==null?void 0:G.formId)===H.currentFormId)for(a=Object.values(H.commandsMap),R=_.O(a),n=R.next();!n.done;n=R.next())d=n.value,(m=_.UZ(d))&&S.JSC$17951_commandHandler.resolveCommand(m,b);_.Zd(k)})};
s8[RN]=[_.OQ];var Ke=new _.nO("USER_PREFS");var vx=function(N){this.JSC$17956_prefCookie=N};
_.F(vx,kN);vx.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){(S=_.t(N,lTz))&&typeof S.useListView==="boolean"&&(_.nA(0,155,S.useListView),b.JSC$17956_prefCookie.save());_.Zd(P)})};
vx[RN]=[Ke];var O8=function(N){this.JSC$17960_prefCookie=N};
_.F(O8,kN);O8.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C;return _.r(function(G){S=_.t(N,Z2d);if((P=S)==null||!P.gl)return G.return();H=S.gl;K={persist_gl:"1",gl:H};b.JSC$17960_prefCookie.set("gl",H);b.JSC$17960_prefCookie.save();C=eU9(K);_.jZ(C);_.Zd(G)})};
O8[RN]=[Ke];var Ce=function(N){this.JSC$17964_prefCookie=N};
_.F(Ce,kN);Ce.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){S=_.t(N,Ved);if(!S)return H.return();P=!1;S.flagNum&&typeof S.value==="boolean"?(_.nA(0,S.flagNum,S.value),P=!0):S.key&&typeof S.stringValue==="string"&&(b.JSC$17964_prefCookie.set(S.key,S.stringValue),P=!0);P&&b.JSC$17964_prefCookie.save();_.Zd(H)})};
Ce[RN]=[Ke];var Ge=new _.nO("PREF_STORAGE_PROMISE_TOKEN");var rg=function(N){this.JSC$17968_prefStoragePromise=N};
_.F(rg,kN);rg.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return(S=_.t(N,ePS))?H.yield(b.JSC$17968_prefStoragePromise,2):H.return();P=H.yieldResult;return P===void 0||S.key===void 0||S.value===void 0?H.return():H.yield(P.set(S.key,S.value),0)})};
rg[RN]=[Ge];var cx=function(N){this.innertubeTransportService=N};
_.F(cx,kN);cx.prototype.resolveCommand=function(N,b){var S=this,P,H;return _.r(function(K){(P=_.t(N,_.KLk))&&P&&P.isFirstRequest&&(_.fA("search_overview_answer"),_.uC("so_rq",void 0,"search_overview_answer"));return K.yield(_.pU(S.innertubeTransportService,N,(H=b)==null?void 0:H.form),0)})};
cx[RN]=[_.Mn];var RUO=function(){};
_.F(RUO,kN);
RUO.prototype.resolveCommand=function(N){var b,S,P,H,K,C,G,a,R;return _.r(function(n){b=_.t(N,KW9);if((S=b)==null?0:S.sectionIdentifier){if(b.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(H=(P=document.getElementsByTagName(b.sectionIdentifier))==null?void 0:P.item(0))H.scrollIntoView({behavior:"smooth"}),(K=kSu(H))&&K.focus({preventScroll:!0});return n.return()}C=document.querySelector("[section-identifier="+b.sectionIdentifier+"]");G=document.querySelector("[section-identifier="+b.referenceSectionIdentifier+
"]");if(!C)return n.return();a=b.verticalScrollOffsetDp?b.verticalScrollOffsetDp:0;G&&(a-=G.offsetTop);window.scrollTo({top:C.offsetTop+a,behavior:"smooth"});(R=kSu(C))&&R.focus({preventScroll:!0})}_.Zd(n)})};var aG=function(N){this.JSC$17980_commandHandler=N};
_.F(aG,kN);
aG.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a;return _.r(function(R){if(R.nextAddress==1){S=_.t(N,QHN);if(!S||!S.imageBytes||!navigator.clipboard)return R.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.ge(Error("Ii")),R.return();_.u4(R,2);H=(P=S)==null?void 0:P.imageBytes;K=H.replace(/-/g,"+").replace(/_/g,"/");C=qFL(K);G={};a=[new ClipboardItem((G[C.type]=C,G))];return R.yield(navigator.clipboard.write(a),4)}if(R.nextAddress!=2)return S.successCommand&&
b.JSC$17980_commandHandler.resolveCommand(S.successCommand),_.su(R,0);_.UE(R);S.errorCommand&&b.JSC$17980_commandHandler.resolveCommand(S.errorCommand);_.Zd(R)})};
aG[RN]=[_.Wq];var RG=function(N,b){this.innertubeTransportService=N;this.JSC$17984_commandHandler=b};
_.F(RG,kN);RG.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return(P=_.t(N,xJ4))?a.yield(_.pU(S.innertubeTransportService,N,(H=b)==null?void 0:H.form),2):a.return();(K=a.yieldResult)&&K.errorMetadata&&P.onFailureCommand&&S.JSC$17984_commandHandler.resolveCommand(P.onFailureCommand);C=K;((G=C)==null?0:G.shareCommand)&&S.JSC$17984_commandHandler.resolveCommand(C.shareCommand,b);_.Zd(a)})};
RG[RN]=[_.Mn,_.Wq];var Wx=function(){};
_.F(Wx,kN);Wx.prototype.resolveCommand=function(N){var b,S;return _.r(function(P){b=_.t(N,puz);if(!b||!navigator.share)return P.return();S={url:b.url};try{return P.return(navigator.share(S))}catch(H){}_.Zd(P)})};var ne=function(){};
_.F(ne,kN);ne.prototype.resolveCommand=function(){return _.r(function(N){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Zd(N)})};var dg=function(N){this.JSC$17994_navigationConfirmationService=N};
_.F(dg,kN);dg.prototype.resolveCommand=function(){var N=this;return _.r(function(b){N.JSC$17994_navigationConfirmationService.cancelPendingNavigation();_.Zd(b)})};
dg[RN]=[$J];var mx=function(N){this.JSC$17997_screenManager=N};
_.F(mx,kN);mx.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R;return _.r(function(n){H=(P=b.form)==null?void 0:P.event;C=(K=b.form)==null?void 0:K.element;if(!H)throw new _.jU("Event not passed in when resolving command");G=_.O(H.composedPath());for(a=G.next();!a.done;a=G.next())if(R=a.value,R.tagName==="YT-COPY-LINK-RENDERER")return R.copyUrlToClipboard(),C&&_.A8(S.JSC$17997_screenManager,C),n.return();_.Zd(n)})};
mx[RN]=[_.Sz];var kk=function(){this.JSC$18001_miniAppClientDataProvider=_.aN().resolve(_.L$)};
_.F(kk,kN);kk.prototype.resolveCommand=function(){var N=this,b,S;return _.r(function(P){if(N.JSC$18001_miniAppClientDataProvider.clientData.has("video_id")){var H=N.JSC$18001_miniAppClientDataProvider,K=H.clientData.get("video_id");K&&H.clientData.delete("video_id");b="https://youtube.com/watch?v="+K;S=_.I$(b);if(S===void 0)throw Error("Ji`"+b);_.Kg(window,S)}_.Zd(P)})};var Te=function(){};
_.F(Te,kN);Te.prototype.resolveCommand=function(){return _.r(function(N){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Zd(N)})};var tL=function(){};
_.F(tL,kN);tL.prototype.resolveCommand=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.Cba(window.document.documentElement),2);(N=document.querySelector("mini-app-container-view-model iframe"))&&N.focus();_.Zd(b)})};var Mo=function(N){this.JSC$18008_navigationConfirmationService=N};
_.F(Mo,kN);
Mo.prototype.resolveCommand=function(){var N=this;return _.r(function(b){var S=N.JSC$18008_navigationConfirmationService,P=_.aN().resolve(_.pi),H;if(((H=S.navigateParams)==null?void 0:H.data)!==void 0){var K;_.kGN(P,S.navigateParams.endpoint,S.navigateParams.data,(K=S.navigateParams.navigationType)!=null?K:1,S.navigateParams.tempData,S.navigateParams.isMiniplayer,void 0,!0);S.navigateParams=void 0;S.customConfirmationCommand=void 0}else S.navigateParams&&(P.navigate(S.navigateParams.endpoint,S.navigateParams.reload,
S.navigateParams.params,S.navigateParams.tempData,S.navigateParams.requestType,S.navigateParams.createScreenConfig,!0),S.navigateParams=void 0,S.customConfirmationCommand=void 0);_.Zd(b)})};
Mo[RN]=[$J];var FS=function(){};
_.F(FS,kN);FS.prototype.resolveCommand=function(){return _.r(function(N){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Zd(N)})};var Bx=function(N){this.JSC$18013_prefStorage=N};
_.F(Bx,kN);Bx.prototype.resolveCommand=function(){var N=this,b,S;return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(N.JSC$18013_prefStorage,2);case 2:return(b=P.yieldResult)?P.yield(b.set("sfvle",!1),3):P.return();case 3:return P.yield(b.set("sfvles",!0),4);case 4:S=_.WN(),_.nA(0,203,!1),_.nA(0,204,!0),S.save(),_.Zd(P)}})};
Bx[RN]=[Ge];var ls=function(N){this.JSC$18016_prefStorage=N};
_.F(ls,kN);ls.prototype.resolveCommand=function(){var N=this,b,S;return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(N.JSC$18016_prefStorage,2);case 2:return(b=P.yieldResult)?P.yield(b.set("sfvle",!0),3):P.return();case 3:return P.yield(b.set("sfvles",!0),4);case 4:S=_.WN(),_.nA(0,203,!0),_.nA(0,204,!0),S.save(),_.Zd(P)}})};
ls[RN]=[Ge];_.W0o=new _.nO("SNACKBAR_CONTROLLER_TOKEN");_.noE=new _.nO("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Le=function(N){this.controller=N};
_.F(Le,kN);Le.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){S=_.t(N,yRl);if(!S)return P.return();var H=b.controller;H.closeSnackbarFn&&H.closeSnackbarFn();_.Zd(P)})};
Le[RN]=[_.W0o];var fe=function(N,b){this.controller=N;this.JSC$18023_sheetController=b};
_.F(fe,kN);fe.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a;return _.r(function(R){P=_.t(N,DJd);if(!P)return R.return();C=Snt(S.JSC$18023_sheetController,(H=b)==null?void 0:(K=H.form)==null?void 0:K.element);G=_.t(P.content,KTS);if(!G)return R.return();var n=S.controller,d=G,m=(a=P.animationStyle)!=null?a:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(n.showSnackbarFn)n.showSnackbarFn({snackbarViewModel:d,animationStyle:m,durationMs:P.durationSeconds*1E3,target:C});else throw Error("Cj");_.Zd(R)})};
fe[RN]=[_.W0o,_.sD];var us=function(){};
_.F(us,kN);us.prototype.resolveCommand=function(N){var b;return _.r(function(S){b=_.t(N,gsc);if(!b||typeof b.key!=="string"||typeof b.value!=="string")return S.return();window.localStorage.setItem(b.key,b.value);_.Zd(S)})};var Qn=function(N){this.store=N};
_.F(Qn,kN);Qn.prototype.resolveCommand=function(N){var b=this,S;return _.r(function(P){S=_.t(N,qh9);if(!S||!S.stepId||!S.token)return P.return();b.store.dispatch(XZE({stepId:S.stepId,token:S.token,isSelected:!1}));_.Zd(P)})};
Qn[RN]=[ag];var xk=function(N,b,S){this.innertubeTransportService=N;this.store=b;this.JSC$18035_screenManager=S};
_.F(xk,kN);
xk.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp;return _.r(function(Xf){S=_.t(N,pFV);if(!S||(P=S.stepIds)==null||!P.length)return Xf.return();H=b.store.getState().talkToRecs;K=[];C=[];G=_.O(S.stepIds);for(a=G.next();!a.done;a=G.next())for(R=a.value,n=void 0,(d=(n=H.stepStates[R])==null?void 0:n.userQuery)&&C.push({userQuery:S.submitEmptyUserQuery?"":d.userQuery,userQueryToken:d.token}),k=m=void 0,M=(k=(m=H.stepStates[R])==null?void 0:
m.selectionStates)!=null?k:{},l=_.O(Object.entries(M)),u=l.next();!u.done;u=l.next())J=u.value,Z=_.O(J),D=Z.next().value,Y=Z.next().value,V=D,g=Y,g.isSelected&&K.push(V);e={selectedChipTokens:K,userQueries:C,submittedStepIds:S.stepIds};se={browseTalk2recsFormData:e};S.browseEndpoint?(Ca=N,_.QN(Ca,_.Wd,S.browseEndpoint)):S.command&&(Ca=S.command);if(!Ca)return Xf.return();ML=_.t(Ca,_.J8);if((na=ML)==null?0:na.command)if(To=_.t(ML.command,joV))jp=_.rG.instance,jp.resolveCommand(ML.command);return Xf.yield(_.pU(b.innertubeTransportService,
Ca,{formData:se,disableCache:!0}).then(function(YO){(YO==null?0:YO.trackingParams)&&b.JSC$18035_screenManager.graftServerVe(YO==null?void 0:YO.trackingParams)}),0)})};
xk[RN]=[_.Mn,ag,_.Sz];var oG=function(N){this.store=N};
_.F(oG,kN);
oG.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){S=_.t(N,hZI);if(!S||!S.stepId)return n.return();if(S.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")C=(K=(P=b.store.getState().talkToRecs.stepStates[S.stepId])==null?void 0:(H=P.userQuery)==null?void 0:H.userQuery)!=null?K:"",G=C.length>0?". ":"",a=C+G+S.selectedText,b.store.dispatch(E$O({stepId:S.stepId,userQueryToken:"",userQuery:a}));else if(S.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")b.store.dispatch(E$O({stepId:S.stepId,userQueryToken:"",
userQuery:(R=S.selectedText)!=null?R:""}));else{if(!S.token)return n.return();b.store.dispatch(XZE({stepId:S.stepId,token:S.token,isSelected:!0}))}_.Zd(n)})};
oG[RN]=[ag];var is=function(N){this.store=N};
_.F(is,kN);is.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a;return _.r(function(R){P=_.t(N,uDY);if(!P||!P.stepId)return R.return();G=(C=(H=b)==null?void 0:(K=H.form)==null?void 0:K.userQuery)!=null?C:"";S.store.dispatch(E$O({stepId:P.stepId,userQuery:G,userQueryToken:(a=P.userQueryToken)!=null?a:""}));_.Zd(R)})};
is[RN]=[ag];_.dzO=new _.nO("TIMELY_ACTIONS_CONTROLLER_TOKEN");var JL=function(N){this.controller=N};
_.F(JL,kN);JL.prototype.resolveCommand=function(N){var b=this,S,P,H,K;return _.r(function(C){S=_.t(N,PPl);if(!S)return C.return();P=S;H=P.id;K=P.isVisible;if(H===void 0||K===void 0)return C.return();var G;(G=b.controller.timelyActionsMap.get(H))==null||G(H,K);_.Zd(C)})};
JL[RN]=[_.dzO];var mzE=function(){this.timelyActionsMap=new Map};var U8=function(N){this.JSC$18061_commandHandler=N};
_.F(U8,kN);U8.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C;return _.r(function(G){S=_.t(N,_.cqE);if(!S)return G.return();K=(P=S.item)==null?void 0:(H=P.notificationTextRenderer)==null?void 0:H.successResponseText;if(!K)return G.return();C=_.wy(K);b.JSC$18061_commandHandler.resolveCommand(C);_.Zd(G)})};
U8[RN]=[_.Wq];var ZP=function(N,b){this.innertubeTransportService=N;this.JSC$18066_playerApiPromise=b};
_.F(ZP,kN);
ZP.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n;return _.r(function(d){if(d.nextAddress==1)return d.yield(b.JSC$18066_playerApiPromise,2);S=d.yieldResult;P=S.getOption("captions","track");H=Object.assign({},_.t(N,_.nMd));(C=(K=S.getVideoData())==null?void 0:K.video_id)?H.externalVideoId=C:_.qB(Error("Ki"));if((G=P)==null?0:G.languageCode)H.languageCode=P.languageCode;if((a=P)==null?0:a.kind)H.kind=P.kind;if((R=P)==null?0:R.name)H.name=P.name;n=Object.assign({},N,{getTranscriptEndpoint:H});return d.yield(_.pU(b.innertubeTransportService,
n),0)})};
ZP[RN]=[_.Mn,_.Pm];var j4=function(){};
_.F(j4,kN);j4.prototype.resolveCommand=function(N){var b,S,P,H,K,C,G,a;return _.r(function(R){b=_.t(N,H1b);if((S=b)==null||!S.paramKeyValuePairs)return R.return();P=window.location.href;H=_.O(b.paramKeyValuePairs);for(K=H.next();!K.done;K=H.next())C=K.value,C.key&&C.value&&(G={},P=_.Pq(P,(G[C.key]=C.value,G)));a=_.aN().resolve(_.Dc);_.In(a,P);_.Zd(R)})};_.ze=new _.nO("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var AL=function(N,b,S,P){this.controller=N;this.JSC$18073_playerApiPromise=b;this.innertubeTransportService=S;this.JSC$18073_commandHandler=P};
_.F(AL,kN);
AL.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D;return _.r(function(Y){if(Y.nextAddress==1){S=_.t(N,lc9);if((P=S)==null||!P.watchEndpoint)return Y.return();H=new Eq;K=H.JSC$14404_getRequest(S.watchEndpoint);if(!K)return Y.return();C=S.watchEndpoint.clickTrackingParams;return Y.yield(_.ni(b.innertubeTransportService,K.innerTubeRequest,K.input,C,K.config),2)}if(Y.nextAddress!=3)return G=Y.yieldResult,Y.yield(b.JSC$18073_playerApiPromise,3);a=Y.yieldResult;a.updateVideoData({raw_watch_next_response:G});
if(M=(R=G)==null?void 0:(n=R.contents)==null?void 0:(d=n.twoColumnWatchNextResults)==null?void 0:(m=d.results)==null?void 0:(k=m.results)==null?void 0:k.contents)u=(l=M.find(function(V){return V.videoPrimaryInfoRenderer}))==null?void 0:l.videoPrimaryInfoRenderer,((J=u)==null?0:J.subtitle)&&knE(b.controller,u.subtitle);
(D=(Z=G)==null?void 0:Z.onUiReady)&&b.JSC$18073_commandHandler.resolveCommand(D);_.Zd(Y)})};
AL[RN]=[_.ze,_.Pm,_.Mn,_.Wq];var TYO=function(){this.subtitleChangeCallbackMap=new Map},knE=function(N,b){N=_.O(N.subtitleChangeCallbackMap.values());
for(var S=N.next();!S.done;S=N.next())S=S.value,S(b)};var XS=function(N,b){this.JSC$18083_commandHandler=N;this.innertubeTransportService=b};
_.F(XS,kN);
XS.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D;return _.r(function(Y){switch(Y.nextAddress){case 1:return(K=(P=b)==null?void 0:(H=P.form)==null?void 0:H.element)&&_.AI(K),C=_.WN().get("hl"),G="",_.u4(Y,2),Y.yield(tNu(C),4);case 4:G=Y.yieldResult;_.su(Y,3);break;case 2:return _.UE(Y),K&&_.Xv(K),_.ge(Error("Mi"),"ERROR"),Y.return();case 3:a=_.t(N,zm9);if(!a)return K&&_.Xv(K),Y.return();(d=(R=a.commerceActionConfig)==null?void 0:(n=R.commandLifeCycleConfig)==null?
void 0:n.onStartCommand)&&S.JSC$18083_commandHandler.resolveCommand(d);return Y.yield(_.pU(S.innertubeTransportService,N,{client_data:{paymentsClientToken:{token:G}}}),5);case 5:(m=Y.yieldResult)?(K&&_.Xv(K),((u=m)==null?0:u.command)&&S.JSC$18083_commandHandler.resolveCommand(m.command),(D=(J=a.commerceActionConfig)==null?void 0:(Z=J.commandLifeCycleConfig)==null?void 0:Z.onSuccessCommand)&&S.JSC$18083_commandHandler.resolveCommand(D)):(K&&_.Xv(K),_.ge(Error("Ni")),(l=(k=a.commerceActionConfig)==
null?void 0:(M=k.commandLifeCycleConfig)==null?void 0:M.onFailureCommand)&&S.JSC$18083_commandHandler.resolveCommand(l)),_.Zd(Y)}})};
XS[RN]=[_.Wq,_.Mn];var E8=function(N,b,S){this.store=N;this.JSC$18099_commandHandler=b;this.innertubeTransportService=S};
_.F(E8,kN);
E8.prototype.resolveCommand=function(N,b){var S=this,P,H,K,C,G,a,R,n,d;return _.r(function(m){P=_.t(N,AC9);H=P.googlePaymentPayload;P.onStartCommand&&S.JSC$18099_commandHandler.resolveCommand(P.onStartCommand);K=H.encryptedPurchaseParams;C=H.ypcLogWalletAnalyticDataEndpoint;G=P.serializedTransactionFlowLoggingParams;a=H.serializedPaymentsClientParams;R=P.ypcCujContext;d=Bzb(S.innertubeTransportService,(n=b)==null?void 0:n.form,K,C,G,a,R);return m.return(d.then(function(k){MNL(b==null?void 0:b.form,
!1);var M=S.store,l=S.JSC$18099_commandHandler,u=k.integratorData;u==null||u===""||k.error!=null?(String(k.error)==="-1"&&P.onDismissCommand?l.resolveCommand(P.onDismissCommand):String(k.error)!=="-1"&&P.onFailureCommand&&l.resolveCommand(P.onFailureCommand),String(k.error)!=="-1"&&String(k.error)!=="132"&&_.ge(Error("Oi"),"ERROR")):(P.googlePaymentEntityKey&&M.dispatch(_.t5("commerceAcquisitionClientPayloadEntity",P.googlePaymentEntityKey,{key:P.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:u,
fundsGuaranteeCallbackClientData:k.integratorClientCallbackData}}})),P.onSuccessCommand&&l.resolveCommand(P.onSuccessCommand));_.KA()},function(k){MNL(b==null?void 0:b.form,!1);
_.ge(k,"ERROR");P.onFailureCommand&&S.JSC$18099_commandHandler.resolveCommand(P.onFailureCommand)}))})};
E8[RN]=[s_,_.Wq,_.Mn];var pe=function(N,b){this.JSC$18103_commandHandler=N;this.purchaseManager=b};
_.F(pe,kN);
pe.prototype.resolveCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n;return _.r(function(d){S=_.t(N,XO4);((P=S)==null?0:(H=P.commandLifeCycleConfig)==null?0:H.onStartCommand)&&b.JSC$18103_commandHandler.resolveCommand(S.commandLifeCycleConfig.onStartCommand);if(!((K=S)==null?0:(C=K.googlePaymentPurchaseManagerPayload)==null?0:C.securePayloadBytes))return _.ge(Error("Pi"),"ERROR"),d.return();G=QqO(_.qL(S.googlePaymentPurchaseManagerPayload.securePayloadBytes));a=_.WN().get("hl");R=_.Y9();KR6(G.serialize(),
a,function(m){R.resolve(m)},function(m){R.reject(m)},R.resolve);
n=R.promise;return d.return(n.then(function(m){if(m)if(m==null?0:m.errorCode){_.ge(Error("Qi`"+m.errorCode),"ERROR");var k,M;((k=S)==null?0:(M=k.commandLifeCycleConfig)==null?0:M.onFailureCommand)&&b.JSC$18103_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}else if(m==null?0:m.isCancelled){var l,u;((l=S)==null?0:(u=l.commandLifeCycleConfig)==null?0:u.onCancelCommand)&&b.JSC$18103_commandHandler.resolveCommand(S.commandLifeCycleConfig.onCancelCommand)}else{var J,Z;((J=S)==
null?0:(Z=J.commandLifeCycleConfig)==null?0:Z.onSuccessCommand)&&b.JSC$18103_commandHandler.resolveCommand(S.commandLifeCycleConfig.onSuccessCommand)}},function(m){_.ge(m,"ERROR");
var k,M;((k=S)==null?0:(M=k.commandLifeCycleConfig)==null?0:M.onFailureCommand)&&b.JSC$18103_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}))})};
pe[RN]=[_.Wq,vww];var tko=function(N,b){this.JSC$18111_commandHandler=N;this.commandAllowlistOverride=b;var S;this.commandAllowlist=(S=this.commandAllowlistOverride)!=null?S:cys};
tko.prototype.handleResponse=function(N,b,S){var P,H=b==null?void 0:(P=b.config)==null?void 0:P.command;if(!H||this.commandAllowlist.some(function(K){return!!_.t(H,K)})){b=void 0;
S!==void 0&&(b={form:{element:S}});N.onResponseReceivedCommand&&this.JSC$18111_commandHandler.resolveCommand(N.onResponseReceivedCommand,b);N.onResponseReceivedAction&&this.JSC$18111_commandHandler.resolveCommand(N.onResponseReceivedAction,b);N.onResponseReceivedEndpoint&&this.JSC$18111_commandHandler.resolveCommand(N.onResponseReceivedEndpoint,b);N.command&&this.JSC$18111_commandHandler.resolveCommand(N.command,b);if(N.onResponseReceivedCommands)for(S=_.O(N.onResponseReceivedCommands),P=S.next();!P.done;P=
S.next())this.JSC$18111_commandHandler.resolveCommand(P.value,b);if(N.onResponseReceivedActions)for(S=_.O(N.onResponseReceivedActions),P=S.next();!P.done;P=S.next())this.JSC$18111_commandHandler.resolveCommand(P.value,b);if(N.onResponseReceivedEndpoints)for(S=_.O(N.onResponseReceivedEndpoints),P=S.next();!P.done;P=S.next())this.JSC$18111_commandHandler.resolveCommand(P.value,b);if(N.actions)for(N=_.O(N.actions),S=N.next();!S.done;S=N.next())this.JSC$18111_commandHandler.resolveCommand(S.value,b)}};
tko[RN]=[_.Wq,_.cq(ryU)];var Mkw=new _.nO("INNERTUBE_TOKEN_SERVICE");var F0w=new _.nO("SCHEDULER_TOKEN");var BY_=function(N){this.scheduler=N;N={};this.tokenMap=(N.app={},N.user={},N)};
BY_.prototype.handleResponse=function(N,b){if(!b)throw Error("Ri");var S;if(N=(S=N.responseContext)==null?void 0:S.innertubeTokenJar){if(N.appTokens){var P,H,K;S=(P=b.innerTubeRequest.context)==null?void 0:(H=P.request)==null?void 0:(K=H.innertubeTokenJar)==null?void 0:K.appTokens;l2t(this,N.appTokens,this.tokenMap.app,S)}if(N.userTokens){var C,G,a;b=(C=b.innerTubeRequest.context)==null?void 0:(G=C.request)==null?void 0:(a=G.innertubeTokenJar)==null?void 0:a.userTokens;l2t(this,N.userTokens,this.tokenMap.user,
b)}}};
BY_.prototype.processContext=function(N){N.request||(N.request={});var b=Object.keys(this.tokenMap.app).length,S=Object.keys(this.tokenMap.user).length;if(b||S)N.request.innertubeTokenJar={},b&&(N.request.innertubeTokenJar.appTokens=[].concat(_.IX(Object.values(this.tokenMap.app).flat()))),S&&(N.request.innertubeTokenJar.userTokens=[].concat(_.IX(Object.values(this.tokenMap.user).flat())))};
var l2t=function(N,b,S,P){b=_.O(b);for(var H=b.next(),K={};!H.done;K={token$jscomp$139:void 0},H=b.next()){K.token$jscomp$139=H.value;if(K.token$jscomp$139.type===void 0)throw new _.jU("InnerTube token has no type",K.token$jscomp$139);if(K.token$jscomp$139.clearTokens)S[K.token$jscomp$139.type]=[];else if(K.token$jscomp$139.value!==void 0){S[K.token$jscomp$139.type]||(S[K.token$jscomp$139.type]=[]);if(P!==void 0&&P.length){H=_.O(P);for(var C=H.next(),G={};!C.done;G={requestToken:void 0},C=H.next())G.requestToken=
C.value,C=S[K.token$jscomp$139.type].findIndex(function(a){return function(R){return R===a.requestToken||(0,_.Vm.equals)(R,a.requestToken)}}(G)),C>-1&&S[K.token$jscomp$139.type].splice(C,1)}S[K.token$jscomp$139.type].push(K.token$jscomp$139);
K.token$jscomp$139.maxAgeSeconds&&Number(K.token$jscomp$139.maxAgeSeconds)>0&&N.scheduler.addLowPriorityJob(function(a){return function(){var R=S[a.token$jscomp$139.type].indexOf(a.token$jscomp$139);R>-1&&S[a.token$jscomp$139.type].splice(R,1)}}(K),Number(K.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.jU("InnerTube token has no value",K.token$jscomp$139);
}};
BY_[RN]=[F0w];var L0O=new _.nO("LOCAL_INNERTUBE_ROUTER_TOKEN"),f2t=new _.nO("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Yk=function(N){this.serviceMap=N};
Yk.prototype.shouldPreferLocalResponse=function(N,b){return(N=uKO(this,N))?N.shouldPreferLocalResponse(b):!1};
Yk.prototype.localInnertubeResponse=function(N,b){var S=this,P;return _.r(function(H){return(P=uKO(S,N))?H.return(P.localInnertubeResponse(b)):H.return(Promise.reject(Error("Si")))})};
Yk.prototype.canProvideFallbackResponse=function(N,b){return(N=uKO(this,N))?N.canProvideFallbackResponse(b):!1};
Yk.prototype.localFallbackInnertubeResponse=function(N,b){var S=this,P;return _.r(function(H){return(P=uKO(S,N))?H.return(P.localFallbackInnertubeResponse(b)):H.return(Promise.reject(Error("Si")))})};
var uKO=function(N,b){b=_.Bq(b);return b?(N=N.serviceMap[b])?N:null:null};
Yk[RN]=[f2t];var LS=function(){};
LS.prototype.shouldPreferLocalResponse=function(){return!1};
LS.prototype.localInnertubeResponse=function(){return _.r(function(N){return N.return(Promise.reject(Error("Ti")))})};
LS.prototype.canProvideFallbackResponse=function(){return!0};
LS.prototype.localFallbackInnertubeResponse=function(){var N,b,S;return _.r(function(P){N=WP("CLOSE_POPUP");b={openPopupAction:LfY()};S={actions:[N,b]};return P.return(S)})};var pwU=function(N,b){this.JSC$18160_upliftPromise=N;this.store=b};
_.v=pwU.prototype;_.v.shouldPreferLocalResponse=function(N){var b=N.videoId,S;if(S=b)S=hxe(this.store.getState().entities,N.videoId);return S&&qPL(this.store.getState().entities,b)?uWI(this.store.getState().entities,N.playlistId):!1};
_.v.localInnertubeResponse=function(N){var b=this,S;return _.r(function(P){return(S=b.getPlayerResponse(N))?P.return(Promise.resolve(S)):P.return(Promise.reject(Error("Ui")))})};
_.v.canProvideFallbackResponse=function(N){return!!N.videoId};
_.v.localFallbackInnertubeResponse=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.JSC$18160_upliftPromise,2);S=b.getPlayerResponse(N);var H;S?H=P.return(Promise.resolve(S)):H=M6(b.store.getState().entities,N.videoId)?P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.bV(_.cN("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:U3a()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.bV(_.cN("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:J9o()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return H})};
_.v.getPlayerResponse=function(N){return B2u(this.store.getState().entities,N.videoId)};var l0=function(N,b){this.localPlayerService=N;this.localWatchNextService=b};
l0.prototype.shouldPreferLocalResponse=function(N){var b=N.playerRequest;N=N.watchNextRequest;return!!(b&&this.localPlayerService.shouldPreferLocalResponse(b)&&N&&this.localWatchNextService.shouldPreferLocalResponse(N))};
l0.prototype.localInnertubeResponse=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1){S=N.playerRequest;P=N.watchNextRequest;if(!S||!P)throw new _.jU("Missing streaming request",N);return C.yield(b.localPlayerService.localInnertubeResponse(S),2)}if(C.nextAddress!=3)return H=C.yieldResult,C.yield(b.localWatchNextService.localInnertubeResponse(P),3);K=C.yieldResult;return C.return({playerResponse:H,watchNextResponse:K})})};
l0.prototype.canProvideFallbackResponse=function(N){var b=N.playerRequest;N=N.watchNextRequest;return!!(b&&this.localPlayerService.canProvideFallbackResponse(b)&&N&&this.localWatchNextService.canProvideFallbackResponse(N))};
l0.prototype.localFallbackInnertubeResponse=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S=N.playerRequest,P=N.watchNextRequest,S&&P?C.yield(b.localPlayerService.localFallbackInnertubeResponse(S),2):C.return(Promise.reject(new _.jU("Missing streaming request",N)));if(C.nextAddress!=3)return H=C.yieldResult,C.yield(b.localWatchNextService.localFallbackInnertubeResponse(P),3);K=C.yieldResult;return C.return({playerResponse:H,watchNextResponse:K})})};var M5=function(N){this.JSC$18170_persistentStorePromiseAccessor=N};
M5.prototype.shouldPreferLocalResponse=function(){return!1};
M5.prototype.localInnertubeResponse=function(){return _.r(function(N){return N.return(Promise.reject(Error("Vi")))})};
M5.prototype.canProvideFallbackResponse=function(){return!0};
M5.prototype.localFallbackInnertubeResponse=function(){var N=this,b,S;return _.r(function(P){return P.nextAddress==1?P.yield(N.JSC$18170_persistentStorePromiseAccessor(),2):P.nextAddress!=3?(b=P.yieldResult)?P.yield(b.get("service:guide:fallback"),3):P.return(Promise.reject(Error("Wi"))):(S=P.yieldResult)&&_.Pp(S)?P.return(QKY(_.Pp(S))):P.return(Promise.reject(Error("Xi")))})};var fS=function(){};
fS.prototype.shouldPreferLocalResponse=function(){return!1};
fS.prototype.localInnertubeResponse=function(){return _.r(function(N){return N.return(Promise.reject(Error("Yi")))})};
fS.prototype.canProvideFallbackResponse=function(){return!0};
fS.prototype.localFallbackInnertubeResponse=function(){var N,b,S;return _.r(function(P){N=WP("CLOSE_POPUP");b={openPopupAction:LfY()};S={actions:[N,b]};return P.return(S)})};var tP=function(){this.urlMap=Q_o;this.fallbackCommand=_.$D};
tP.prototype.shouldPreferLocalResponse=function(N){return(N=N.url)?!!xzE(this,N):!1};
tP.prototype.localInnertubeResponse=function(N){var b=this,S;return _.r(function(P){return(S=N.url)?P.return(ooL(N,xzE(b,S))):P.return(Promise.reject(Error("Zi")))})};
tP.prototype.canProvideFallbackResponse=function(){return!0};
tP.prototype.localFallbackInnertubeResponse=function(N){var b=this,S,P,H,K,C,G,a;return _.r(function(R){S=N.url;if(!S)return R.return(ooL(N,b.fallbackCommand));if(P=xzE(b,S))return R.return(ooL(N,P));H=void 0;K=_.Bq(S);K==="/watch"&&(C=_.PW(S,"v"))&&(a=(G=_.PW(S,"list"))!=null?G:void 0,H=_.N6(C,a));H||(H=b.fallbackCommand);return R.return(ooL(N,H))})};
var xzE=function(N,b){if(b)return N.urlMap[_.XV(b)]},ooL=function(N,b){b&&N.parentTrackingParams&&(b.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:N.parentTrackingParams}},b.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:b})};var F0=function(N,b,S){this.JSC$18181_upliftPromise=N;this.store=b;this.JSC$18181_persistentStorePromiseAccessor=S};
F0.prototype.shouldPreferLocalResponse=function(){return!1};
F0.prototype.localInnertubeResponse=function(){return _.r(function(N){return N.return(Promise.reject(Error("$i")))})};
F0.prototype.canProvideFallbackResponse=function(){return!0};
F0.prototype.localFallbackInnertubeResponse=function(){var N=this;return _.r(function(b){return b.return(izJ(N))})};
var izJ=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(S3(N.JSC$18181_upliftPromise,N.store),2);b=P.yieldResult;S={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[fZo(b)]}}}};return P.return(JhE(N,S))})},JhE=function(N,b){var S,P;
return _.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$18181_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return S=H.yieldResult,H.yield(Hp(S),3);P=H.yieldResult;return H.return({responseContext:{},contents:b,topbar:P})})};var kE=function(N,b,S){this.JSC$18188_upliftPromise=N;this.store=b;this.JSC$18188_persistentStorePromiseAccessor=S};
kE.prototype.shouldPreferLocalResponse=function(N){var b=N.videoId;return b&&hxe(this.store.getState().entities,b)&&qPL(this.store.getState().entities,b)?uWI(this.store.getState().entities,N.playlistId):!1};
kE.prototype.localInnertubeResponse=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return(S=N.videoId)?H.yield(b.JSC$18188_upliftPromise,2):H.return(Promise.reject(Error("aj")));if(H.nextAddress!=3)return H.yield(UzL(b,N,S),3);P=H.yieldResult;return H.return(Zz_(b,P,S))})};
kE.prototype.canProvideFallbackResponse=function(N){return N.videoId?!0:!1};
kE.prototype.localFallbackInnertubeResponse=function(N){var b=this,S,P,H,K;return _.r(function(C){switch(C.nextAddress){case 1:return(S=N.videoId)?C.yield(b.JSC$18188_upliftPromise,2):C.return(Promise.reject(Error("aj")));case 2:return C.yield(UzL(b,N,S),3);case 3:P=C.yieldResult;if(M6(b.store.getState().entities,S)){C.jumpTo(4);break}return C.yield(S3(b.JSC$18188_upliftPromise,b.store),5);case 5:return H=C.yieldResult,C.return(j_n(P,H));case 4:return hxe(b.store.getState().entities,S)&&qPL(b.store.getState().entities,
S)?C.return(Zz_(b,P,S)):(K={title:_.bV(_.cN("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:U3a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},C.return(j_n(P,K)))}})};
var UzL=function(N,b,S){var P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return P=b.playlistId,H=_.N6(S,P),a.yield(N.JSC$18188_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return K=a.yieldResult,a.yield(Hp(K),3);C=a.yieldResult;G={responseContext:{},currentVideoEndpoint:H,topbar:C};return a.return(G)})},Zz_=function(N,b,S){if(N=M6(N.store.getState().entities,S)){var P;
S=N.videoEntity;var H,K={title:Ss(S.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.PU((P=S.localizedStrings)==null?void 0:P.viewCount),viewCount:_.PU((H=S.localizedStrings)==null?void 0:H.viewCount)}}};S.publishedTimestampMillis&&(K.dateText=_.PU(mJo(new Date(Number(S.publishedTimestampMillis)))));P={videoPrimaryInfoRenderer:K};H=N.videoEntity;N=N.channelEntity;N={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Ss(_.cN("SHOW_MORE",void 0,"Show more")),
showLessText:Ss(_.cN("SHOW_LESS",void 0,"Show less")),description:H.formattedDescription,owner:{videoOwnerRenderer:{title:Ss(N.title),thumbnail:N.avatar}}}};b.contents={twoColumnWatchNextResults:{results:{results:{contents:[P,N]}}}}}return b},j_n=function(N,b){N.contents={singleColumnWatchNextResults:{results:{results:{contents:[fZo(b)]}}}};
return N};var Bp=function(N,b,S){this.JSC$18193_upliftPromise=N;this.store=b;this.JSC$18193_persistentStorePromiseAccessor=S};
Bp.prototype.shouldPreferLocalResponse=function(){return!1};
Bp.prototype.localInnertubeResponse=function(){return _.r(function(N){return N.return(Promise.reject(Error("bj")))})};
Bp.prototype.canProvideFallbackResponse=function(){return!0};
Bp.prototype.localFallbackInnertubeResponse=function(){var N=this,b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return K.yield(N.JSC$18193_persistentStorePromiseAccessor(),2);case 2:return b=K.yieldResult,K.yield(Hp(b),3);case 3:return S=K.yieldResult,P={responseContext:{},topbar:S},K.yield(N.JSC$18193_upliftPromise,4);case 4:return K.yield(S3(N.JSC$18193_upliftPromise,N.store),5);case 5:return H=K.yieldResult,P.watchStatus={backgroundPromoRenderer:H},K.return(P)}})};var zUi=new _.nO("ENDPOINT_MAP"),Aht=new _.nO("WATCH_ENDPOINT_MAP"),XRJ=new _.nO("REEL_ENDPOINT_MAP");var ZVb=/^[a-zA-Z0-9_\-]{11}$/;var jK_=_.xv(function(){var N,b;return(b=(N=window).matchMedia)==null?void 0:b.call(N,"(prefers-reduced-motion: reduce)").matches});var Eo_=_.xv(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var N=_.hl("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");N||(N=_.U5("VIDEO"),_.aB("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
N));return!!(N&&N.canPlayType&&N.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var pRq=XMLHttpRequest.prototype.fetch,Ynw=pRq&&pRq.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!rk?!0:!1;var yn=function(N){this.JSC$18204_storeWithEntities=N};
_.F(yn,cc);_.v=yn.prototype;_.v.getApiPaths=function(){return x19};
_.v.getExtension=function(N){return _.t(N,_.Iv)||_.t(N,_.kn)||_.t(N,FD4)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14411_getStoreKey=function(N){if((_.T("kevlar_cache_on_ttl_player")||_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("mweb_use_new_history_manager")||_.T("web_shorts_prefetch_service_enabled"))&&(N=this.getExtension(N))&&N.videoId){var b={videoId:N.videoId};N.playlistId&&(b.playlistId=N.playlistId);N.playerParams&&(b.params=N.playerParams);return _.yh("player",b)}};
_.v.JSC$14404_getClientScreen=function(N){var b;return((b=N.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$14404_buildRequest=function(N,b,S){if(_.T("enable_interstitial_entity_check")){var P=this.JSC$18204_storeWithEntities;if(b.videoId)for(var H=_.O(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),K=H.next();!K.done;K=H.next()){K=K.value;var C;var G=void 0,a=void 0,R=b.videoId,n=K;(C=P)?(R=_.Cu(R+n,"interstitialInteractionStateEntity"),C=(G=(a=_.GL(C.getState().entities,"interstitialInteractionStateEntity",R))==null?void 0:a.primaryButtonClicked)!=null?G:!1):C=!1;if(C)switch(K){case "CONTENT_CHECK_REQUIRED":b.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":b.racyCheckOk=!0}}}b.videoId&&(N.videoId=b.videoId);b.playlistId&&(N.playlistId=b.playlistId);b.index!==void 0&&(N.playlistIndex=b.index+1);b.playerParams&&(N.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(_.T("enable_player_request_builder_start_time_floor")?N.startTimeSecs=Math.floor(b.startTimeSeconds):N.startTimeSecs=b.startTimeSeconds);S.contentPlaybackContext&&(N.playbackContext={contentPlaybackContext:S.contentPlaybackContext});S.prefetchPlaybackContext&&
(N.playbackContext=Object.assign({},N.playbackContext,{prefetchPlaybackContext:S.prefetchPlaybackContext}),N.context.request||(N.context.request={}),N.context.request.isPrefetch=!0);N.playbackContext||(N.playbackContext={});P=Eo_();N.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!P,supportXhr:Ynw};S.overrideMutedAtStart&&(N.overrideMutedAtStart=S.overrideMutedAtStart);N.racyCheckOk=!!b.racyCheckOk;N.contentCheckOk=!!b.contentCheckOk;!_.T("captions_prefs_killswitch")&&(S=(S=_.l1("yt-player-caption-language-preferences"))?
S:[],S==null?0:S.length)&&(N.captionParams={viewerSelectedCaptionLangs:S})};
_.v.getRequestConfig=function(N){N=this.JSC$14411_getStoreKey(N);var b;N&&(b={storeStrategy:{storeKey:N}});_.T("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b};
yn[RN]=[s_];var IG=function(N,b){this.playerRequestBuilder=N;this.watchNextRequestBuilder=b};
_.F(IG,cc);IG.prototype.getApiPaths=function(){return kaV};
IG.prototype.getExtension=function(N){return _.t(N,_.Iv)};
IG.prototype.isNavigationCommand=function(){return!0};
IG.prototype.JSC$14404_buildRequest=function(N,b,S){N.playerRequest={};this.playerRequestBuilder.JSC$14404_buildRequest(N.playerRequest,b,S);if(_.T("web_streaming_watch")||_.T("mweb_streaming_watch"))N.watchNextRequest={},this.watchNextRequestBuilder.JSC$14404_buildRequest(N.watchNextRequest,b,S)};
IG[RN]=[yn,Eq];var yhO;_.DP=new _.nO("SHORTS_CONTROLLER_TOKEN");yhO=new _.nO("SHORTS_STATE_STORE_TOKEN");var Vn=function(N,b){var S=_.$I.apply(2,arguments);N=N===void 0?0:N;_.jU.call(this,b,S);this.errorType=N;Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(Vn,_.jU);var I25,Dzo,Vka,y4O,yG,PRo,$zQ,eUn,bTa,wRw,qnO;I25=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(N){return N+"="}).join("|"));
Dzo=RegExp(".*\\?.*playnext=1.*");Vka=function(N,b,S,P,H,K){this.watchEndpointMap=N;this.reelWatchEndpointMap=b;this.innerTubeTransportService=S;this.fetchPbj=P;this.ephemeralStore=H;this.reloadOnPlayerFailure=K===void 0?!0:K};
_.goi=function(N,b){var S=_.d7("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;var P;if((P=_.t(b.commandMetadata,_.GY))==null||!P.rootVe)return S&&_.$h(Error("gj")),!1;var H;P=(H=_.t(b.commandMetadata,_.GY))==null?void 0:H.url;if(!P)return S&&_.$h(Error("hj")),!1;if(Dzo.test(P))return!0;if(I25.test(P))return S&&_.$h(Error("ij`"+P)),!1;if(_.t(b,_.Iv)){if(!(N.watchEndpointMap.watchNext&&N.watchEndpointMap.player||_.T("kevlar_fetch_initial_data_op_watch_client")))return S&&_.$h(Error("cj")),!1;
N=_.d7("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;_.t(b,_.Iv)?JX9(b)?b=!0:(N&&_.$h(Error("dj")),b=!1):(N&&_.$h(Error("cj")),b=!1);return b}if(_.t(b,_.kn))return UGU(b);if(_.t(b,_.Ow))return!0;N=_.Eb(N.innerTubeTransportService,b);!N&&S&&_.ge(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(b)});return N};
y4O=function(N,b,S,P,H,K){b={url:b};if(S==null?0:S.itct)b.parentTrackingParams=S.itct;var C=_.q6(X8Z);return _.ni(N.innerTubeTransportService,b,C).then(function(G){(G=G.endpoint)||(G=_.$D);(S==null?0:S.itct)&&G&&!G.trackingParams&&(G.trackingParams=S.itct);var a=dQ(G);return yG(N,G,S,P,a,H,K)})};
yG=function(N,b,S,P,H,K,C,G){G=G===void 0?{}:G;if(N.fetchPbj&&!_.goi(N,b)&&!_.T("force_one_platform")){var a=N.fetchPbj(b),R=_.KA(a.then(function(g){if(!g)throw Error("kj");C(R)||K(b,g);return g}));
return R}var n,d,m={rootVe:(n=_.t(b.commandMetadata,_.GY))==null?void 0:n.rootVe,url:(d=_.t(b.commandMetadata,_.GY))==null?void 0:d.url,endpoint:b,page:H};if(_.t(b,_.Iv)){var k,M={contentPlaybackContext:_.KS(S,(k=_.t(b.commandMetadata,_.GY))==null?void 0:k.url,P)},l=_.Y9(),u,J=(u=N.watchEndpointMap.player)==null?void 0:u().JSC$14411_getStoreKey(b);u=J!==void 0&&((a=N.ephemeralStore)==null?void 0:a.has(J));(_.T("web_streaming_watch")||_.T("mweb_streaming_watch"))&&window.TextDecoderStream&&!u?(a=W49(N.innerTubeTransportService,
b,M,function(g){!m.response&&g.content&&(m.response=g.content);!m.playerResponse&&g.player&&(m.playerResponse=g.player);K(b,m)}),J=woI(b),J.length&&(m.preconnect=J,K(b,m)),eUn(a,l,m).catch(function(g){g instanceof Vn&&g.errorType===2&&_.T("web_streaming_watch_fallback")&&$zQ(N,b,M,m,K,C,l)})):$zQ(N,b,M,m,K,C,l);
return l.promise}if(_.t(b,_.kn)){var Z;if(((Z=_.t(b,_.kn))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D=_.Y9();_.hU_(_.aN().resolve(_.DP),b).then(function(g){qnO(N,S,P,H,K,D,g)});
return D.promise}a=_.KA();u={contentPlaybackContext:_.KS(S,(J=_.t(b.commandMetadata,_.GY))==null?void 0:J.url,P)};(J=N.reelWatchEndpointMap.player)&&(J=J().JSC$14404_getRequest(b,u))&&(a=_.ni(N.innerTubeTransportService,J.innerTubeRequest,J.input,b.clickTrackingParams,J.config));J=_.KA();(G=N.reelWatchEndpointMap.reelItemWatch)&&(G=G().JSC$14404_getRequest(b))&&(J=_.ni(N.innerTubeTransportService,G.innerTubeRequest,G.input,b.clickTrackingParams,G.config));G=_.KA();(n=N.reelWatchEndpointMap.reelWatchSequence)&&
_.t(b,_.kn).sequenceParams&&(u=n().JSC$14404_getRequest(b,u))&&(G=_.ni(N.innerTubeTransportService,u.innerTubeRequest,u.input,b.clickTrackingParams,u.config));u=_.KA(m);n=_.Y9();wRw(b,u,a,J,G,K,C,n);return n.promise}var Y;if(_.t(b,rrs)&&((Y=_.t(b.commandMetadata,_.GY))==null?0:Y.url))return a=R$U(_.sB($o().location.href),_.sB(_.t(b.commandMetadata,_.GY).url)).toString(),y4O(N,a,S,P,K,function(){return!1});
if(_.t(b,_.Ow))return K(b,m),_.KA(m);if(_.Eb(N.innerTubeTransportService,b)){a=Object.assign({},{tempData:S,disableCache:S.disableCache},G);var V=_.pU(N.innerTubeTransportService,b,a).then(function(g){m.response=g;C(V)||K(b,m);return m});
return V}return _.KA(m)};
_.Njq=function(N,b,S,P){if(_.t(b,_.Iv)||_.t(b,_.kn)&&(_.T("mweb_enable_shorts_innertube_player_prefetch")||_.T("kevlar_enable_shorts_prefetch_in_sequence"))||_.t(b,FD4)&&_.T("web_enable_prefetching_videos_on_home")){var H,K={contentPlaybackContext:_.KS(S,(H=_.t(b.commandMetadata,_.GY))==null?void 0:H.url,P),prefetchPlaybackContext:AXY(S)},C,G,a;if(((C=_.t(b,_.Iv))==null?void 0:(G=C.watchEndpointSupportedPrefetchConfig)==null?void 0:(a=G.prefetchHintConfig)==null?void 0:a.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(S=
N.watchEndpointMap.watchNext)if(K=S().JSC$14404_getRequest(b,K))return Promise.resolve(_.ni(N.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(d){return d}))}else if(S=N.watchEndpointMap.player)if(K=S().JSC$14404_getRequest(b,K))return Promise.resolve(_.ni(N.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(d){return d}))}else if(_.Eb(N.innerTubeTransportService,b)){var R={tempData:S},n=GK9(N.innerTubeTransportService,b);
return n?new Promise(function(d,m){var k,M;return _.r(function(l){if(l.nextAddress==1)return l.yield(n,2);if(l.nextAddress!=4)return k=l.yieldResult,k.JSC$14411_getStoreKey(b,R)?l.yield(_.pU(N.innerTubeTransportService,b,R),4):(m(new _.jU("Prefetching request builder with no store key.",b)),l.jumpTo(0));M=l.yieldResult;d(M);_.Zd(l)})}):Promise.reject(new _.jU("Prefetching unregistered request builder.",b))}return Promise.reject(new _.jU("No request builder available to prefetch endpoint.",b))};
PRo=function(N,b){var S,P,H;if(_.t(b,_.Iv)){var K=N.watchEndpointMap.watchNext;K&&(S=K());(N=N.watchEndpointMap.player)&&(P=N())}else if(_.t(b,_.kn))(K=N.reelWatchEndpointMap.reelItemWatch)&&(S=K()),(K=N.reelWatchEndpointMap.player)&&(P=K()),(N=N.reelWatchEndpointMap.reelWatchSequence)&&(H=N());else{a:{N=gzE(b,N.innerTubeTransportService.endpointMap);if(N!==void 0)if(typeof N.then==="function")_.ge(new _.jU("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",b));else break a;
N=void 0}N&&(S=N)}var C,G,a;return{content:(C=S)==null?void 0:C.JSC$14411_getStoreKey(b),player:(G=P)==null?void 0:G.JSC$14411_getStoreKey(b),reelSequence:(a=H)==null?void 0:a.JSC$14411_getStoreKey(b)}};
$zQ=function(N,b,S,P,H,K,C){var G=_.KA(),a=N.watchEndpointMap.player;_.T("web_streaming_player")&&(a=ZG(IG));a&&(a=a().JSC$14404_getRequest(b,S))&&(G=_.ni(N.innerTubeTransportService,a.innerTubeRequest,a.input,b.clickTrackingParams,a.config));a=_.KA();var R=N.watchEndpointMap.watchNext;R&&(S=R().JSC$14404_getRequest(b,S))&&(a=_.ni(N.innerTubeTransportService,S.innerTubeRequest,S.input,b.clickTrackingParams,S.config));P=_.KA(P);bTa(N,b,P,G,a,H,K,C)};
eUn=function(N,b,S){var P;return _.r(function(H){if(H.nextAddress==1)return H.yield(N,2);_.T("web_streaming_watch_delay_200")||_.T("web_streaming_watch_delay_400")?(P=_.T("web_streaming_watch_delay_200")?200:400,setTimeout(function(){b.resolve(S)},P)):b.resolve(S);
_.Zd(H)})};
bTa=function(N,b,S,P,H,K,C,G){var a,R,n,d,m;_.r(function(k){switch(k.nextAddress){case 1:return k.yield(S,2);case 2:a=k.yieldResult;if(C(G.promise))return G.resolve(a),k.return();K(b,a);R=woI(b);if(!R.length){k.jumpTo(3);break}return k.yield(S,4);case 4:a.preconnect=R,K(b,a);case 3:return _.u4(k,5),k.yield(P,7);case 7:n=k.yieldResult;_.su(k,6);break;case 5:return d=_.UE(k),G.reject(d),k.return();case 6:if(n===void 0&&N.reloadOnPlayerFailure)return a.reload=!0,K(b,a),G.resolve(a),k.return();if(C(G.promise))return G.resolve(a),
k.return();a.playerResponse=n;K(b,a);(_.T("web_watch_stop_scheduler_on_player_response")||_.T("mweb_watch_stop_scheduler_on_player_response"))&&apE();_.u4(k,8);return k.yield(H,10);case 10:m=k.yieldResult;_.su(k,9);break;case 8:_.UE(k);case 9:if(m===void 0)return a.response={responseContext:{}},G.resolve(a),k.return();if(C(G.promise))return G.resolve(a),k.return();a.response=m;K(b,a);G.resolve(a);_.Zd(k)}})};
wRw=function(N,b,S,P,H,K,C,G){var a,R,n,d,m,k;_.r(function(M){switch(M.nextAddress){case 1:return M.yield(b,2);case 2:a=M.yieldResult;if(C(G.promise))return G.resolve(a),M.return();K(N,a);R=woI(N);if(!R.length){M.jumpTo(3);break}return M.yield(b,4);case 4:a.preconnect=R,K(N,a);case 3:return _.u4(M,5),M.yield(S,7);case 7:n=M.yieldResult;_.su(M,6);break;case 5:return d=_.UE(M),G.reject(d),M.return();case 6:if(n===void 0)return a.reload=!0,K(N,a),G.resolve(a),M.return();if(C(G.promise))return G.resolve(a),
M.return();a.playerResponse=n;K(N,a);(_.T("web_shorts_stop_scheduler_on_player_response")||_.T("mweb_shorts_stop_scheduler_on_player_response"))&&apE();_.u4(M,8);return M.yield(P,10);case 10:m=M.yieldResult;_.su(M,9);break;case 8:_.UE(M);case 9:if(m===void 0)return a.response={responseContext:{}},G.resolve(a),M.return();if(C(G.promise))return G.resolve(a),M.return();a.response=m;K(N,a);_.u4(M,11);return M.yield(H,13);case 13:k=M.yieldResult;_.su(M,12);break;case 11:_.UE(M);case 12:if(C(G.promise))return G.resolve(a),
M.return();k&&(a.reelWatchSequenceResponse=k);K(N,a);G.resolve(a);_.Zd(M)}})};
qnO=function(N,b,S,P,H,K,C){var G,a,R,n,d,m;_.r(function(k){if((G=C)==null||!G.replacementEndpoint)return K.reject(),k.return();a=C.replacementEndpoint;(R=_.t(a,_.kn))?(C.sequenceContinuation&&(R.sequenceParams=C.sequenceContinuation),n=_.aN().resolve(_.DP),d=R.sequenceParams,S5Q(n,a)&&delete R.sequenceParams,m=yG(N,a,b,S,P,H,function(){return!1}),m.then(function(M){return _.r(function(l){if(l.nextAddress==1)return PwL(n,{reelWatchEndpoint:{sequenceParams:d}},M),l.yield(0,2);
K.resolve(M);_.Zd(l)})})):K.reject();
_.Zd(k)})};
Vka[RN]=[Aht,XRJ,_.Mn,_.cq(KXk),_.cq(_.EN)];var HT5=function(){var N=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return N.sequenceMap}}},nz4=function(N,b,S){var P,H=(P=b.config)==null?void 0:P.sequenceStrategy;
if(!H)return S();N.sequenceMap.has(H.sequenceKey)||N.sequenceMap.set(H.sequenceKey,[]);N=N.sequenceMap.get(H.sequenceKey);switch(H.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return sct(N,b,S);case "REQUEST_SEQUENCE_TYPE_REPLACE":return KA_(N,b,S);default:throw new _.jU("Request could not be sequenced",b);}},sct=function(N,b,S){var P,H,K;
return _.r(function(C){N.length>0?(H=N[N.length-1],P=H.responsePromise.then(function(){return S()})):P=S();
K={request:b,responsePromise:P};N.push(K);vT5(N,K);return C.return(K.responsePromise)})},KA_=function(N,b,S){S=S();
if(N.length>0)for(var P=_.O(N),H=P.next();!H.done;H=P.next())H.value.responsePromise=S;var K={request:b,responsePromise:S};N.push(K);vT5(N,K);return Promise.resolve().then(function(){return N.indexOf(K)>0?K.responsePromise.then(function(C){return Object.assign({},C,{sequenceMetaData:{skipProcessing:!0}})}):K.responsePromise})},vT5=function(N,b){b.responsePromise.then(function(){var S=N.indexOf(b);
S>-1&&N.splice(S,1)})};var OTE=new _.nO("REQUEST_SEQUENCING");var gg=function(){};
_.F(gg,cc);gg.prototype.getApiPaths=function(){return[]};
gg.prototype.getExtension=function(N){return _.t(N,HO9)};
gg.prototype.JSC$14404_buildRequest=function(N,b){N.recaptchaToken=b.recaptchaToken};
gg.prototype.getApiUrl=function(){return"/das_captcha"};var e4=function(){};
_.F(e4,cc);e4.prototype.getApiPaths=function(){return X29};
e4.prototype.getExtension=function(N){return _.t(N,jjE)};
e4.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.createBackstagePostParams&&(N.createBackstagePostParams=b.createBackstagePostParams);S.comment_text&&(N.commentText=S.comment_text);if(S.attached_video_id)N.videoAttachment={videoId:S.attached_video_id};else if(S.image_poll_options)N.pollAttachmentData={options:S.image_poll_options};else if(S.poll_options)N.pollAttachment={choices:S.poll_options};else if(S.quiz_options)N.quizAttachmentData={options:S.quiz_options};else if(S.image_blob_id)N.imageAttachment=
{encryptedBlobId:S.image_blob_id},S.source_video_id&&(N.imageAttachment.sourceExternalVideoId=S.source_video_id),S.image_preview_coordinates&&(N.imageAttachment.previewCoordinates=JSON.parse(S.image_preview_coordinates));else if(S.images_data)N.imagesAttachment={imagesData:S.images_data};else if(S.clip_external_video_id!==void 0||S.clip_offset_ms!==void 0||S.clip_duration_ms!==void 0){var P,H,K,C,G;N.clipAttachment={externalVideoId:(K=S.clip_external_video_id)!=null?K:"",offsetMs:(C=(P=S.clip_offset_ms)==
null?void 0:P.toString())!=null?C:"",durationMs:(G=(H=S.clip_duration_ms)==null?void 0:H.toString())!=null?G:""}}else S.shared_post_id&&(N.sharedPostAttachment={postId:S.shared_post_id});S.tagged_video_id&&(N.postCreationData={taggedVideoId:S.tagged_video_id});S.access_restrictions&&(typeof S.access_restrictions==="number"&&(b=S.access_restrictions,N.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof S.access_restrictions==="string"&&
(N.accessRestrictionsParams=S.access_restrictions));S.scheduled_publish_time_sec&&(N.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString())};var $k=function(){};
_.F($k,cc);$k.prototype.getApiPaths=function(){return VJS};
$k.prototype.getExtension=function(N){return _.t(N,UZb)};
$k.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.decorateMessageParams&&(N.params=b.decorateMessageParams);S.text&&(N.text=S.text)};var hL=function(){};
_.F(hL,cc);hL.prototype.getApiPaths=function(){return aSO};
hL.prototype.getExtension=function(N){return _.t(N,zd9)};
hL.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;S.video_id&&(N.videoId=S.video_id)};var qo=function(){};
_.F(qo,cc);qo.prototype.getApiPaths=function(){return m19};
qo.prototype.getExtension=function(N){return _.t(N,_.CA)};
qo.prototype.JSC$14404_buildRequest=function(N,b,S){S.suggestions_query&&(N.input=S.suggestions_query)};var wg=function(){};
_.F(wg,cc);wg.prototype.getApiPaths=function(){return qUE};
wg.prototype.getExtension=function(N){return _.t(N,Aql)};
wg.prototype.JSC$14404_buildRequest=function(N,b,S){S.comment_text!==void 0&&(N.commentText=S.comment_text);S.scheduled_publish_time_sec&&(N.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString());N.updateBackstagePostParams=b.updateBackstagePostParams};var Na=function(){};
_.F(Na,cc);Na.prototype.getApiPaths=function(){return e8};
Na.prototype.getExtension=function(N){return _.t(N,_.J8)};
Na.prototype.JSC$14404_buildRequest=function(N,b,S){S.formData&&(N.formData=S.formData);b.token?N.continuation=b.token:b.continuationTokenKey&&(S=_.h0().getState(),b=_.GL(S.entities,"continuationTokenEntity",b.continuationTokenKey))&&(N.continuation=String(b.continuationToken))};
var Cwn=function(){};
_.F(Cwn,cc);_.v=Cwn.prototype;_.v.getApiPaths=function(){return e8};
_.v.getExtension=function(N){return _.t(N,_.Wd)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14411_getStoreKey=function(N){if((N=this.getExtension(N))&&N.browseId){var b={browseId:N.browseId};N.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(N.browseEndpointContextSupportedConfigs));N.params&&(b.params=N.params);N.query&&(b.query=N.query);return _.yh("browse",b)}};
_.v.JSC$14404_buildRequest=function(N,b,S){b.browseId&&(N.browseId=b.browseId);b.params&&(N.params=b.params);b.query&&(N.query=b.query);S.formData?N.formData=S.formData:b.formData&&(N.formData=b.formData);b.browseId==="FEsubscriptions"&&_.WN().getFlag(155)&&(N.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(S=_.WN(),N.formData||(N.formData={}),N.formData.accountSettingsFormData={flagCaptionsDefaultOff:S.getFlag(65),flagAutoCaptionsDefaultOn:S.getFlag(66),
flagDisableInlinePreview:S.getFlag(186),flagAudioDescriptionDefaultOn:S.getFlag(198)});if(b.browseId==="FEwhat_to_watch"){S=_.WN();var P=S.getFlag(196);S.getFlag(197)&&(N.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:P}}})}b.browseId==="FEwhat_to_watch"&&(b=_.WN().getFlag(186),N.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.v.getRequestConfig=function(N,b){b=b===void 0?{}:b;var S={};if(N=this.JSC$14411_getStoreKey(N,b))S.storeStrategy={storeKey:N,disableCache:b.disableCache};_.T("web_log_browse_ticks_ks")||(S.requestTick="br_s",S.responseTick="br_r");return S};var be=function(){};
_.F(be,cc);be.prototype.getApiPaths=function(){return Jrd};
be.prototype.getExtension=function(N){return _.t(N,at9)};
be.prototype.JSC$14404_buildRequest=function(N,b,S){N.legacyYoutubeChannelUsername=S.legacyYouTubeChannelUsername||"";N.legacyYoutubeChannelPassword=S.legacyYouTubeChannelPassword||""};var SQ=function(){};
_.F(SQ,cc);SQ.prototype.getApiPaths=function(){return ENE};
SQ.prototype.getExtension=function(N){return _.t(N,Dkk)};
SQ.prototype.JSC$14404_buildRequest=function(N,b,S){S.recaptcha_response_token&&(N.recaptchaResponseToken=S.recaptcha_response_token);S.channel_id&&(N.channelId=S.channel_id)};var Pa=function(){};
_.F(Pa,cc);Pa.prototype.getApiPaths=function(){return w8b};
Pa.prototype.getExtension=function(N){return _.t(N,qyz)};
Pa.prototype.JSC$14404_buildRequest=function(N,b,S){b.externalChannelId&&(N.externalChannelId=b.externalChannelId);S.handle&&(N.handleUpdate={handle:S.handle},b.handleEditSource&&(N.handleUpdate.handleEditSource=b.handleEditSource))};var Ha=function(){};
_.F(Ha,cc);Ha.prototype.getApiPaths=function(){return PrV};
Ha.prototype.getExtension=function(N){return _.t(N,TKd)};
Ha.prototype.JSC$14404_buildRequest=function(N,b,S){b.request&&(N.channelId=b.request.channelId);var P;if(S==null?0:(P=S.uploadDefaults)==null?0:P.emojiReactionSet)N.uploadDefaultsRequest||(N.uploadDefaultsRequest={}),N.uploadDefaultsRequest.emojiReactionSet=S.uploadDefaults.emojiReactionSet};var sf=function(){};
_.F(sf,cc);sf.prototype.getApiPaths=function(){return KIl};
sf.prototype.getExtension=function(N){return _.t(N,VVN)};
sf.prototype.JSC$14404_buildRequest=function(N,b,S){b.externalChannelId&&(N.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(N.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(N.handleEditSource=b.handleEditSource);S.handle?N.handle=S.handle:S.name&&(N.name=S.name)};var KJ=function(){};
_.F(KJ,cc);KJ.prototype.getApiPaths=function(){return j8Z};
KJ.prototype.getExtension=function(N){return _.t(N,WL9)};
KJ.prototype.JSC$14404_buildRequest=function(N,b){b.actions?N.actions=b.actions:b.action&&(N.actions=[b.action])};var va=function(){};
_.F(va,cc);va.prototype.getApiPaths=function(){return z0S};
va.prototype.getExtension=function(N){return _.t(N,_.J8)};
va.prototype.JSC$14404_buildRequest=function(N,b){b.token&&(N.continuation=b.token)};var Of=function(){};
_.F(Of,cc);Of.prototype.getApiPaths=function(){return ra9};
Of.prototype.getExtension=function(N){return _.t(N,_.J8)};
Of.prototype.JSC$14404_buildRequest=function(N,b){N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(N.fetchCommentsParams={continuation:b.token})};var CJ=function(){};
_.F(CJ,cc);CJ.prototype.getApiPaths=function(){return Y$b};
CJ.prototype.getExtension=function(N){return _.t(N,Ru9)};
CJ.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.createReplyParams&&(N.createReplyParams=b.createReplyParams);b.commentText&&(N.commentText=_.es(b.commentText));S.comment_text&&(N.commentText=S.comment_text);S.image_blob_id&&(N.imageAttachment={encryptedBlobId:S.image_blob_id});S.botguard_response&&(N.botguardResponse=S.botguard_response)};
_.d0.Object.defineProperties(CJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G0=function(){};
_.F(G0,cc);G0.prototype.getApiPaths=function(){return yrN};
G0.prototype.getExtension=function(N){return _.t(N,_.aiO)};
G0.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.createCommentParams&&(N.createCommentParams=b.createCommentParams);b.commentText&&(N.commentText=_.es(b.commentText));b.videoPositionMention&&(N.videoPositionMention=b.videoPositionMention);b.sources&&(N.sources=b.sources);S.comment_text&&(N.commentText=S.comment_text);S.attached_video_id?N.videoAttachment={videoId:S.attached_video_id}:S.poll_options?N.pollAttachment={choices:S.poll_options}:S.image_blob_id?N.imageAttachment=
{encryptedBlobId:S.image_blob_id}:S.shared_post_id&&(N.sharedPostAttachment={postId:S.shared_post_id});S.access_restrictions&&typeof S.access_restrictions==="number"&&(b=S.access_restrictions,N.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});S.botguard_response&&(N.botguardResponse=S.botguard_response)};
_.d0.Object.defineProperties(G0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rB=function(){};
_.F(rB,cc);rB.prototype.getApiPaths=function(){return NSO};
rB.prototype.getExtension=function(N){return _.t(N,dJ9)};
rB.prototype.JSC$14404_buildRequest=function(N,b,S){b.commentText&&(N.replyText=_.es(b.commentText));S.comment_text&&(N.replyText=S.comment_text);N.updateReplyParams=b.updateReplyParams};
_.d0.Object.defineProperties(rB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ca=function(){};
_.F(ca,cc);ca.prototype.getApiPaths=function(){return bZd};
ca.prototype.getExtension=function(N){return _.t(N,nul)};
ca.prototype.JSC$14404_buildRequest=function(N,b,S){b.commentText&&(N.commentText=_.es(b.commentText));S.comment_text&&(N.commentText=S.comment_text);N.updateCommentParams=b.updateCommentParams};
_.d0.Object.defineProperties(ca.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aP=function(){};
_.F(aP,cc);aP.prototype.getApiPaths=function(){return SJk};
aP.prototype.getExtension=function(N){return _.t(N,ns4)};
aP.prototype.JSC$14404_buildRequest=function(N,b){b.settings&&(N.settings=b.settings)};var RP=function(){};
_.F(RP,cc);RP.prototype.getApiPaths=function(){return HCZ};
RP.prototype.getExtension=function(N){return _.t(N,gSd)};
RP.prototype.JSC$14404_buildRequest=function(N,b){b.channelCreationToken&&(N.channelCreationToken=b.channelCreationToken);b.source&&(N.source=b.source)};var Wa=function(){};
_.F(Wa,cc);Wa.prototype.getApiPaths=function(){return p2z};
Wa.prototype.getExtension=function(N){return _.t(N,hdl)};
Wa.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;if(S.name&&(S.given_name||S.family_name))N=new _.jU("channel creation cannot set both GAIA and YouTube names",b),_.ge(N);else{if(b.zeroStepChannelCreationParams){if(!S.comment_text){N=new _.jU("zero_step_create_comment_params but no zero_step_texts",b);_.ge(N);return}N.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;N.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(N.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
S.comment_text,S.botguard_response&&(N.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=S.botguard_response))}N.channelCreationToken=b.channelCreationToken;S.given_name&&(N.givenName=S.given_name);S.family_name&&(N.familyName=S.family_name);b.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(N.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(S.name||S.handle||S.avatar_url||S.encryptedBlobId||S.isNameChanged!==void 0||S.isHandleChanged!==void 0||S.isDefaultProfilePhoto!==
void 0||S.obakeImageSource)N.overrideChannelCreationParams={},S.name&&(N.overrideChannelCreationParams.name=S.name),S.handle&&(N.overrideChannelCreationParams.handle=S.handle),S.avatar_url&&(N.overrideChannelCreationParams.avatarUrl=S.avatar_url),S.encryptedBlobId&&(N.overrideChannelCreationParams.blobEncryptionId=S.encryptedBlobId),S.enableIdentityForAllChannelCreationDialog&&(S.encryptedBlobId?N.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
S.isDefaultProfilePhoto!==void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=S.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),S.isNameChanged!==void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationNameTag=S.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),S.isHandleChanged!==
void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=S.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),S.obakeImageSource&&(N.overrideChannelCreationParams.obakeImageSourceType=S.obakeImageSource))}};var nJ=function(){};
_.F(nJ,cc);nJ.prototype.getApiPaths=function(N){return(N=this.getExtension(N))&&N.status==="DISLIKE"?h0k:N&&N.status==="INDIFFERENT"?ZCd:Fmc};
nJ.prototype.getExtension=function(N){return _.t(N,_.Np)};
nJ.prototype.JSC$14404_buildRequest=function(N,b){b.target&&(N.target=b.target);if(b=this.getParams(b))N.params=b};
nJ.prototype.getParams=function(N){switch(N==null?void 0:N.status){case "DISLIKE":return N.dislikeParams;case "INDIFFERENT":return N.removeLikeParams;default:return N==null?void 0:N.likeParams}};var dB=function(){};
_.F(dB,cc);dB.prototype.getApiPaths=function(){return D19};
dB.prototype.getExtension=function(N){return _.t(N,FL9)};
dB.prototype.JSC$14404_buildRequest=function(N,b){b.settingItemId&&(N.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?N.newValue={stringValue:b.stringValue}:b.intValue?N.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?N.newValue={boolValue:b.boolValue}:(N=new _.jU("Unknown value type for SetSettingEndpoint.",b),_.ge(N))};var m$=function(){};
_.F(m$,cc);m$.prototype.getApiPaths=function(){return e$E};
m$.prototype.getExtension=function(N){return _.t(N,Eu9)||void 0};
m$.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.channelIds&&(N.channelIds=b.channelIds);b.siloName&&(N.siloName=b.siloName);b.params&&(N.params=b.params);S.botguardResponse&&(N.botguardResponse=S.botguardResponse);S.feature&&(N.clientFeature=S.feature)};
_.d0.Object.defineProperties(m$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kL=function(){};
_.F(kL,cc);kL.prototype.getApiPaths=function(){return h$c};
kL.prototype.getExtension=function(N){return _.t(N,BDz)||void 0};
kL.prototype.JSC$14404_buildRequest=function(N,b){b.channelIds&&(N.channelIds=b.channelIds);b.siloName&&(N.siloName=b.siloName);b.params&&(N.params=b.params)};
_.d0.Object.defineProperties(kL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var T0=function(N){this.shareClientParamsProvider=N};
_.F(T0,cc);T0.prototype.getApiPaths=function(){return Jxo};
T0.prototype.getExtension=function(N){return _.t(N,hxd)||_.t(N,_.qPS)||_.t(N,$$Z)};
T0.prototype.JSC$14404_buildRequest=function(N,b){b.serializedShareEntity&&(N.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var S;if((S=this.shareClientParamsProvider)==null?0:S.clientParams.has(b.clientParamIdentifier)){S=this.shareClientParamsProvider;b=b.clientParamIdentifier;var P=S.clientParams.get(b);P&&S.clientParams.delete(b);N.clientParams=P}}};
T0[RN]=[j6L];var tE=function(){};
_.F(tE,cc);tE.prototype.getApiPaths=function(){return xqV};
tE.prototype.getExtension=function(N){return _.t(N,FpN)};
tE.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var Ma=function(){};
_.F(Ma,cc);Ma.prototype.getApiPaths=function(){return q$Z};
Ma.prototype.getExtension=function(N){return _.t(N,TR9)};
Ma.prototype.JSC$14404_buildRequest=function(N,b){b.dismissal&&(N.items=[b.dismissal])};
_.d0.Object.defineProperties(Ma.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F9=function(){};
_.F(F9,cc);F9.prototype.getApiPaths=function(){return tq9};
F9.prototype.getExtension=function(N){return _.t(N,_.ZM)||void 0};
F9.prototype.JSC$14404_buildRequest=function(N,b,S){N.feedbackTokens=[];b.feedbackToken&&N.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||S.cpn)N.feedbackContext={cpn:b};N.isFeedbackTokenUnencrypted=!!S.is_feedback_token_unencrypted;N.shouldMerge=!1;S.extra_feedback_tokens&&(N.shouldMerge=!0,N.feedbackTokens=N.feedbackTokens.concat(S.extra_feedback_tokens))};
_.d0.Object.defineProperties(F9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ba=function(){};
_.F(Ba,cc);Ba.prototype.getApiPaths=function(){return tq9};
Ba.prototype.getExtension=function(N){return _.t(N,_.CA)};
Ba.prototype.JSC$14404_buildRequest=function(N,b,S){S.feedback_tokens&&(N.feedbackTokens=S.feedback_tokens,N.shouldMerge=!0)};
_.d0.Object.defineProperties(Ba.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var le=function(){};
_.F(le,cc);le.prototype.getApiPaths=function(){return tq9};
le.prototype.getExtension=function(N){return _.t(N,ww9)};
le.prototype.JSC$14404_buildRequest=function(N,b){b.undoToken&&(N.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(N.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)};
_.d0.Object.defineProperties(le.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LJ=function(){};
_.F(LJ,cc);LJ.prototype.getApiPaths=function(){return v8k};
LJ.prototype.getExtension=function(N){return _.t(N,dPE)};
LJ.prototype.JSC$14404_buildRequest=function(N,b){b.nextEndpoint&&_.t(b.nextEndpoint,_.Hz)?N.nextEndpoint={urlEndpoint:_.t(b.nextEndpoint,_.Hz)}:b.nextEndpoint&&_.t(b.nextEndpoint,_.Iv)&&(N.nextEndpoint={watchEndpoint:_.t(b.nextEndpoint,_.Iv)});b.setRacy&&(N.setRacy=b.setRacy);b.setControvercy&&(N.setControvercy=b.setControvercy)};var fJ=function(N){this.JSC$18406_storeWithEntities=N};
_.F(fJ,cc);fJ.prototype.getApiPaths=function(){return NlN};
fJ.prototype.getExtension=function(N){return _.t(N,ItS)};
fJ.prototype.JSC$14404_buildRequest=function(N,b){b.flowId&&(N.flowId=b.flowId);b.targetId&&(N.targetId=b.targetId);b.continuation&&(N.continuation=b.continuation);var S=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&S&&this.JSC$18406_storeWithEntities){var P;if(b=(P=this.JSC$18406_storeWithEntities.getState())==null?void 0:P.entities)if(P=_.Ku(S).entityType,P=_.GL(b,P,S))N.flowState=P,N.flowStateEntityKey=S}};
_.d0.Object.defineProperties(fJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
fJ[RN]=[s_];var G6Q=function(){};
_.F(G6Q,cc);_.v=G6Q.prototype;_.v.getApiPaths=function(){return TlV};
_.v.JSC$14411_getStoreKey=function(){return _.yh("guide")};
_.v.getRequestConfig=function(){var N=this.JSC$14411_getStoreKey(),b;N&&(b={storeStrategy:{storeKey:N}});return b};
_.v.isNavigationCommand=function(){return!0};
_.v.getExtension=function(N){return _.t(N,_.CA)};
_.v.JSC$14404_buildRequest=function(N){N.fetchLiveState=!0};var ue=function(){};
_.F(ue,cc);ue.prototype.getApiPaths=function(){return UqV};
ue.prototype.getExtension=function(N){return _.t(N,GFb)};
ue.prototype.JSC$14404_buildRequest=function(){};var jQ=function(){};
_.F(jQ,cc);jQ.prototype.getApiPaths=function(){return ZH4};
jQ.prototype.getExtension=function(N){return _.t(N,rRV)};
jQ.prototype.JSC$14404_buildRequest=function(){};var z0=function(){};
_.F(z0,cc);z0.prototype.getApiPaths=function(){return Q8E};
z0.prototype.getExtension=function(N){return _.t(N,_.J8)};
z0.prototype.JSC$14404_buildRequest=function(N,b){b.token&&(N.continuation=b.token);var S,P;N==null||(S=N.context)==null||(P=S.user)==null||delete P.onBehalfOfUser};
z0.prototype.getRequestConfig=function(N){var b={},S;if(((S=this.getExtension(N))==null?void 0:S.sessionIndex)!==void 0){var P;b={authStrategy:{sessionIndex:(P=this.getExtension(N))==null?void 0:P.sessionIndex}}}return b};var AE=function(){};
_.F(AE,cc);AE.prototype.JSC$14404_getRequest=function(N){var b=this.getExtension(N),S=N="";if(b==null?0:b.popup)N="true";if(b==null?0:b.disableSignout)S="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:Yy("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=_.Vg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=N,b["X-YouTube-Account-Switcher-Disable-Signout"]=S,b)),innerTubeRequest:{}}};
AE.prototype.getApiPaths=function(){return[]};
AE.prototype.getExtension=function(N){return _.t(N,_.viI)};
AE.prototype.JSC$14404_buildRequest=function(){};var X9=function(){};
_.F(X9,cc);X9.prototype.JSC$14404_getRequest=function(N){var b="/cross_account_channel_transfer";(N=this.getExtension(N))&&(b=bAU(b,{target_session:N.targetSessionIndex,source_rapt:N.sourceRapt,rapt:N.targetRapt}));return{input:b,requestShell:Yy(b,"GET"),innerTubeRequest:{}}};
X9.prototype.getApiPaths=function(){return[]};
X9.prototype.getExtension=function(N){return _.t(N,Gmz)};
X9.prototype.JSC$14404_buildRequest=function(){};var Ef=function(){};
_.F(Ef,cc);Ef.prototype.getApiPaths=function(){return bCS};
Ef.prototype.isNavigationCommand=function(){return!0};
Ef.prototype.getExtension=function(N){return _.t(N,_.CA)};
Ef.prototype.JSC$14404_buildRequest=function(N){var b=_.WN().get("gsml","");b&&(N.safetyModeLockerObfuscatedGaiaId=b);N.userInterfaceTheme=_.As(!0);_.X6()?N.deviceTheme="DEVICE_THEME_SELECTED":_.rap()?N.deviceTheme="DEVICE_THEME_SUPPORTED":N.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var pJ=function(){};
_.F(pJ,cc);pJ.prototype.getApiPaths=function(){return Q8E};
pJ.prototype.getExtension=function(N){return _.t(N,rqk)};
pJ.prototype.JSC$14404_buildRequest=function(N,b){if(b&&b.requestType&&(N.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var S=b.nextUrl;S&&(_.PCO(S)||GW(S))&&(N.nextNavendpoint={urlEndpoint:{url:S}})}b&&b.channelSwitcherQuery&&(N.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(N.triggerChannelCreation=b.triggerChannelCreation);var P;if(b==null?0:(P=b.contentOwnerConfig)==
null?0:P.externalContentOwnerId)N.contentOwnerConfig=b.contentOwnerConfig;N.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var H,K;b=N==null?void 0:(H=N.context)==null?void 0:(K=H.user)==null?void 0:K.onBehalfOfUser;if(b!==void 0){N.obfuscatedSelectedGaiaId=b;var C,G;N==null||(C=N.context)==null||(G=C.user)==null||delete G.onBehalfOfUser}var a,R;if(H=N==null?void 0:(a=N.context)==null?void 0:(R=a.user)==null?
void 0:R.serializedDelegationContext)N.selectedSerializedDelegationContext=H};var YL=function(){};
_.F(YL,cc);YL.prototype.getApiPaths=function(){return o34};
YL.prototype.getExtension=function(N){return _.t(N,wyN)};
YL.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var yv=function(){};
_.F(yv,cc);yv.prototype.getApiPaths=function(){return E39};
yv.prototype.getExtension=function(N){return _.t(N,_.Gs9)};
yv.prototype.JSC$14404_buildRequest=function(N,b){if(b=b.createBroadcastRequest)N.useMasks=b.useMasks,N.broadcastType=b.broadcastType,N.broadcastSource=b.broadcastSource,N.broadcastMetadata=b.broadcastMetadata,N.broadcastMetadataMask=b.broadcastMetadataMask,N.videoMetadata=b.videoMetadata,N.videoMetadataMask=b.videoMetadataMask,N.liveChatSettingsUpdate=b.liveChatSettingsUpdate,N.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,N.cloneVideoId=b.cloneVideoId,N.cloneWithOverrides=b.cloneWithOverrides,
N.targetEntity=b.targetEntity,N.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var IP=function(){};
_.F(IP,cc);IP.prototype.getApiPaths=function(){return IUd};
IP.prototype.getExtension=function(N){return _.t(N,SwN)};
IP.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.params&&(N.params=b.params);S.questionText&&(N.questionText=S.questionText);S.optionText&&S.optionText.length>0&&(N.optionText=S.optionText)};var DE=function(){};
_.F(DE,cc);DE.prototype.getApiPaths=function(){return g39};
DE.prototype.getExtension=function(N){return _.t(N,NU9)};
DE.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var Vv=function(){};
_.F(Vv,cc);Vv.prototype.getApiPaths=function(){return Kml};
Vv.prototype.getExtension=function(N){return _.t(N,$Dl)};
Vv.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var gB=function(){};
_.F(gB,cc);gB.prototype.getApiPaths=function(){return OCO};
gB.prototype.getExtension=function(N){return _.t(N,hFz)};
gB.prototype.JSC$14404_buildRequest=function(N,b,S){b.params&&(N.params=b.params);b.continuation&&(N.continuation=b.continuation);S.currentPlayerState&&S.currentPlayerState.playerOffsetMs&&(N.currentPlayerState={playerOffsetMs:S.currentPlayerState.playerOffsetMs.toString()})};var eQ=function(){};
_.F(eQ,cc);eQ.prototype.getApiPaths=function(){return CUZ};
eQ.prototype.getExtension=function(N){return _.t(N,eF9)};
eQ.prototype.JSC$14404_buildRequest=function(N,b,S){b.params&&(N.params=b.params);S.continuation&&(N.continuation=S.continuation);"hidden"in S&&(N.webClientInfo={isDocumentHidden:S.hidden});S.isInvalidationTimeoutRequest&&(N.isInvalidationTimeoutRequest=S.isInvalidationTimeoutRequest);S.invalidationPayload&&(b=g69(_.qL(r7(S.invalidationPayload))),N.invalidationPayloadLastPublishAtUsec=iJ(b,2));S.reloadActionPanel&&(N.reloadActionPanel=S.reloadActionPanel);S.fullReload&&(N.fullReload=S.fullReload);
S.currentPlayerState&&(N.currentPlayerState=S.currentPlayerState)};var $L=function(){};
_.F($L,cc);$L.prototype.getApiPaths=function(){return Bll};
$L.prototype.getExtension=function(N){return _.t(N,bcc)};
$L.prototype.JSC$14404_buildRequest=function(N,b){N.params=b.params};var hE=function(){};
_.F(hE,cc);hE.prototype.getApiPaths=function(){return vN9};
hE.prototype.getExtension=function(N){return _.t(N,WDb)};
hE.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var qa=function(){};
_.F(qa,cc);qa.prototype.getApiPaths=function(){return Ga9};
qa.prototype.getExtension=function(N){return _.t(N,ngN)};
qa.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var wB=function(){};
_.F(wB,cc);wB.prototype.getApiPaths=function(){return lSV};
wB.prototype.getExtension=function(N){return _.t(N,Ptc)};
wB.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var NQ=function(){};
_.F(NQ,cc);NQ.prototype.getApiPaths=function(){return fSl};
NQ.prototype.getExtension=function(N){return _.t(N,Hc9)};
NQ.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var bp=function(){};
_.F(bp,cc);bp.prototype.getApiPaths=function(){return jLz};
bp.prototype.getExtension=function(N){return _.t(N,SQO)};
bp.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var SY=function(){};
_.F(SY,cc);SY.prototype.getApiPaths=function(){return yaz};
SY.prototype.getExtension=function(N){return _.t(N,_.srZ)};
SY.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.params&&(N.params=b.params);S.client_message_id&&(N.clientMessageId=S.client_message_id);S.recaptcha_token&&(N.recaptchaToken=S.recaptcha_token);S.rich_message&&S.rich_message.text_segments?(b=S.rich_message.text_segments.map(function(P){var H={};P.text&&(H.text=P.text);P.emoji_id&&(H.emojiId=P.emoji_id);return H}),N.richMessage={textSegments:b}):S.message&&(N.message=S.message);
S.currentPlayerState&&(N.currentPlayerState=S.currentPlayerState)};var PT=function(){};
_.F(PT,cc);PT.prototype.getApiPaths=function(){return ISZ};
PT.prototype.getExtension=function(N){return _.t(N,KOk)};
PT.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var HT=function(){};
_.F(HT,cc);HT.prototype.getApiPaths=function(){return $1b};
HT.prototype.getExtension=function(N){return _.t(N,Oc4)};
HT.prototype.JSC$14404_buildRequest=function(N,b,S){b.isUserInitiated&&(N.isUserInitiated=b.isUserInitiated);b.initiationSource&&(N.initiationSource=b.initiationSource);S.locationInfo&&(N.context.client.locationInfo=S.locationInfo)};var st=function(){};
_.F(st,cc);st.prototype.getApiPaths=function(){return LmO};
st.prototype.getExtension=function(N){return _.t(N,rNE)};
st.prototype.JSC$14404_buildRequest=function(N,b,S){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,N.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,N.liveChat||(N.liveChat={}),b.performAsExternalChannelId&&(N.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(N.liveChat.source=b.source)));var P;if(S==null?0:(P=S.liveChat)==null?0:P.liveChatSettings)N.liveChat||(N.liveChat={}),S=S.liveChat.liveChatSettings,N.liveChat.newLiveChatSettings=S,N.liveChat.newLiveChatSettingsMask||
(N.liveChat.newLiveChatSettingsMask={}),S.emojiReactionSet&&(N.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Kl=function(){};
_.F(Kl,cc);Kl.prototype.getApiPaths=function(){return saV};
Kl.prototype.getExtension=function(N){return _.t(N,_.lik)};
Kl.prototype.JSC$14404_buildRequest=function(N,b,S){S.continuation?N.continuation=S.continuation:b.videoId&&(N.videoId=b.videoId);S.clientParams&&(N.clientParams=S.clientParams)};var vT=function(){};
_.F(vT,cc);vT.prototype.getApiPaths=function(){return ra9};
vT.prototype.getExtension=function(N){return _.t(N,_.Kc)};
vT.prototype.JSC$14404_buildRequest=function(N,b){N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";N.fetchCommentsParams={};b.videoId&&(N.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(N.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(N.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(N.fetchCommentsParams.linkedCommentId=b.linkedCommentId);(0,_.Vm.isEmpty)(N.fetchCommentsParams)&&delete N.fetchCommentsParams};var Ot=function(){};
_.F(Ot,cc);Ot.prototype.getApiPaths=function(){return e8};
Ot.prototype.JSC$14404_buildRequest=function(N){N.browseId="FEnotifications_inbox"};
Ot.prototype.getExtension=function(N){return _.t(N,_.CA)};var Cl=function(){};
_.F(Cl,cc);Cl.prototype.getApiPaths=function(){return ra9};
Cl.prototype.JSC$14404_buildRequest=function(N,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(N.ctoken=b.ctoken)};
var rgn=function(){};
_.F(rgn,Cl);rgn.prototype.getExtension=function(N){return _.t(N,_.CA)};
var cgi=function(){};
_.F(cgi,Cl);cgi.prototype.getExtension=function(N){return _.t(N,R2d)};var GK=function(){};
_.F(GK,cc);GK.prototype.getApiPaths=function(){return d1Z};
GK.prototype.getExtension=function(N){return _.t(N,_.CA)};
GK.prototype.JSC$14404_buildRequest=function(){};var rn=function(){};
_.F(rn,cc);rn.prototype.getApiPaths=function(){return u3E};
rn.prototype.getExtension=function(N){return _.t(N,TDl)||void 0};
rn.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params);b.secondaryParams&&(N.secondaryParams=b.secondaryParams)};var cT=function(){};
_.F(cT,cc);cT.prototype.getApiPaths=function(){return QLV};
cT.prototype.getExtension=function(N){return _.t(N,N2c)};
cT.prototype.JSC$14404_buildRequest=function(N,b){b.undo&&(N.undo=b.undo);b.serializedOptOut&&(N.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(N.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var aI=function(){};
_.F(aI,cc);aI.prototype.getApiPaths=function(){return iC9};
aI.prototype.getExtension=function(N){return _.t(N,bGb)};
aI.prototype.JSC$14404_buildRequest=function(N,b){b.serializedInteractionsRequest&&(N.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var RI=function(){};
_.F(RI,cc);RI.prototype.getApiPaths=function(){return Uwo};
RI.prototype.getExtension=function(N){return _.t(N,_.DG)};
RI.prototype.JSC$14404_buildRequest=function(N,b,S){b=b===void 0?{}:b;S=S===void 0?{}:S;b.videoId?N.videoId=b.videoId:b.playlistId&&(N.playlistId=b.playlistId);var P;N.crossDeviceDownloadData={isCrossDeviceDownload:(P=b.isCrossDeviceDownload)!=null?P:!1};!S.downloadToMobileEduShown&&b.isCrossDeviceDownload&&(N.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var H;if(P=(H=b.offlineWebClientEligibility)!=null?H:S.offlineWebClientEligibility)N.offlineWebClientEligibility=P;var K;if(H=(K=b.preferredFormatType)!=
null?K:S.preferredFormatType)N.preferredFormatType=H;var C;if(K=(C=b.lastOfflineQualitySettingsSavedMs)!=null?C:S.lastOfflineQualitySettingsSavedMs)N.lastOfflineQualitySettingsSavedMs=K;b.params&&(N.params=b.params)};var WT=function(){};
_.F(WT,cc);WT.prototype.getApiPaths=function(){return Lc};
WT.prototype.getExtension=function(N){return _.t(N,_.J8)};
WT.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.token&&(N.continuation=b.token);S.formData&&(N.formData=S.formData)};var nl=function(){};
_.F(nl,cc);nl.prototype.getApiPaths=function(){return Lc};
nl.prototype.getExtension=function(N){return _.t(N,swS)};
nl.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;N.continuation=S.continuation};var dn=function(){};
_.F(dn,cc);dn.prototype.getApiPaths=function(){return Lc};
dn.prototype.getExtension=function(N){return _.t(N,_.U_)};
dn.prototype.JSC$14404_buildRequest=function(N,b){var S,P=b.panelIdentifier||((S=b.identifier)==null?void 0:S.tag);P&&(N.panelId=P);var H;if((H=b.globalConfiguration)==null?0:H.params){var K;N.params=(K=b.globalConfiguration)==null?void 0:K.params}if(_.T("enable_ai_companion")){var C;b=b.engagementPanelExtras;if(b==null?0:(C=b.aiCompanionPanelExtras)==null?0:C.includeClientConversationId){var G,a;C=(a=(G=_.aN().resolve(_.cq(IdQ)))==null?void 0:G("conversations"))==null?void 0:a.get("conversation_id")}else C=
void 0;if(G=C)N.formData=Object.assign({},N.formData,{inputComposerFormData:{conversationId:G}})}};
_.d0.Object.defineProperties(dn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var m4=function(){};
_.F(m4,cc);m4.prototype.getApiPaths=function(){return Lc};
m4.prototype.getExtension=function(N){return _.t(N,Ii4)};
m4.prototype.JSC$14404_buildRequest=function(N,b){b.panelLoadingStrategy&&XIs(N,b.panelLoadingStrategy)};var kz=function(){};
_.F(kz,cc);kz.prototype.getApiPaths=function(){return Lc};
kz.prototype.getExtension=function(N){return _.t(N,cDd)};
kz.prototype.JSC$14404_buildRequest=function(N,b){b.loadingStrategy&&XIs(N,b.loadingStrategy)};var TK=function(){};
_.F(TK,cc);TK.prototype.getApiPaths=function(){return Lc};
TK.prototype.getExtension=function(N){return _.t(N,_.Mb)};
TK.prototype.JSC$14404_buildRequest=function(N,b){b.panelLoadingStrategy&&XIs(N,b.panelLoadingStrategy)};var tt=function(){};
_.F(tt,cc);tt.prototype.getApiPaths=function(){return Lc};
tt.prototype.getExtension=function(N){return _.t(N,aRc)};
tt.prototype.JSC$14404_buildRequest=function(N,b){var S,P=(S=b.contentSourcePanelIdentifier)==null?void 0:S.tag;P&&(N.panelId=P);var H;if((H=b.globalConfiguration)==null?0:H.params){var K;N.params=(K=b.globalConfiguration)==null?void 0:K.params}};var MQ=function(){};
_.F(MQ,cc);MQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
MQ.prototype.getExtension=function(N){return _.t(N,RYd)};
MQ.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var Ft=function(){};
_.F(Ft,cc);Ft.prototype.getApiPaths=function(){return HZN};
Ft.prototype.getExtension=function(N){return _.t(N,dZl)};
Ft.prototype.JSC$14404_buildRequest=function(N,b){b.externalChannelId&&(N.externalChannelId=b.externalChannelId);b.superChatAction&&(N.superChatAction=b.superChatAction);b.superStickersAction&&(N.superStickersAction=b.superStickersAction)};var BT=function(){};
_.F(BT,cc);BT.prototype.getApiPaths=function(){return SUb};
BT.prototype.getExtension=function(N){return _.t(N,C$d)||_.t(N,dxL)};
BT.prototype.JSC$14404_buildRequest=function(N,b){b.videoIds?N.videoIds=b.videoIds:b.videoId&&(N.videoIds=[b.videoId]);b.playlistId&&(N.playlistId=b.playlistId);b.params&&(N.params=b.params);N.excludeWatchLater=!1};var lp=function(){};
_.F(lp,cc);lp.prototype.getApiPaths=function(){return Dqb};
lp.prototype.getExtension=function(N){return _.t(N,_.Rr)};
lp.prototype.JSC$14404_buildRequest=function(N,b,S){S.create_playlist_title?N.title=S.create_playlist_title:b.title&&(N.title=b.title);if(S.create_playlist_privacy_status&&typeof S.create_playlist_privacy_status==="number"){a:{var P=S.create_playlist_privacy_status;if(P!==0){if(P===1){P="PUBLIC";break a}if(P===2){P="UNLISTED";break a}}P="PRIVATE"}N.privacyStatus=P}else b.privacyStatus&&(N.privacyStatus=b.privacyStatus);S.create_playlist_description&&(N.description=S.create_playlist_description);b.videoIds&&
(N.videoIds=b.videoIds);b.params&&(N.params=b.params);b.sourcePlaylistId&&(N.sourcePlaylistId=b.sourcePlaylistId)};var Ll=function(){};
_.F(Ll,cc);Ll.prototype.getApiPaths=function(){return e0b};
Ll.prototype.getExtension=function(N){return _.t(N,mJ4)};
Ll.prototype.JSC$14404_buildRequest=function(N,b){N.playlistId=b.playlistId};var fl=function(){};
_.F(fl,cc);fl.prototype.getApiPaths=function(){return ca9};
fl.prototype.getExtension=function(N){return _.t(N,gAS)};
fl.prototype.JSC$14404_buildRequest=function(N,b){b.playlistId&&(N.playlistId=b.playlistId);b.params&&(N.params=b.params)};var up=function(){};
_.F(up,cc);up.prototype.getApiPaths=function(){return oNS};
up.prototype.getExtension=function(N){return _.t(N,_.vC)||void 0};
up.prototype.JSC$14404_buildRequest=function(N,b){b.actions&&(N.actions=b.actions);b.params&&(N.params=b.params);b.playlistId&&(N.playlistId=b.playlistId)};var QY=function(){};
_.F(QY,cc);_.v=QY.prototype;_.v.getApiPaths=function(){return JaV};
_.v.getExtension=function(N){return _.t(N,_.kn)};
_.v.JSC$14404_buildRequest=function(N,b){b.videoId&&(N.playerRequest={videoId:b.videoId},b.playerParams&&(N.playerRequest.params=b.playerParams),b.racyCheckOk&&(N.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(N.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(N.params=b.params);b.inputType&&(N.inputType=b.inputType);N.disablePlayerResponse=!0};
_.v.getRequestConfig=function(N){var b;(N=this.JSC$14411_getStoreKey(N))&&(b={storeStrategy:{storeKey:N}});_.T("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b};
_.v.JSC$14411_getStoreKey=function(N){N=this.getExtension(N);if(N!=null&&N.videoId){var b={videoId:N.videoId};N.params&&(b.params=N.params);return _.yh("reel_item_watch",b)}};var xz=function(){};
_.F(xz,cc);_.v=xz.prototype;_.v.getApiPaths=function(){return U1S};
_.v.getExtension=function(N){return _.t(N,_.kn)};
_.v.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;N.sequenceParams=b.sequenceParams;var P;((P=S)==null?0:P.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(N.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
_.v.JSC$14411_getStoreKey=function(N){if(_.T("shorts_controller_retrieve_seedless_sequence_v2")&&(N=this.getExtension(N),N==null?0:N.sequenceParams))return _.yh("reel_watch_sequence",{sequenceParams:N.sequenceParams})};
_.v.getRequestConfig=function(N){N=this.JSC$14411_getStoreKey(N);var b;N&&(b={storeStrategy:{storeKey:N}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b};
var oI=function(){};
_.F(oI,cc);oI.prototype.getApiPaths=function(){return U1S};
oI.prototype.getExtension=function(N){return _.t(N,_.J8)};
oI.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.token&&(N.continuation=b.token);var P;((P=S)==null?0:P.contentPlaybackContext)&&_.T("web_shorts_prefetch_service_enabled")&&(N.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
oI.prototype.getRequestConfig=function(N){N=this.JSC$14411_getStoreKey(N);var b;N&&(b={storeStrategy:{storeKey:N}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b};var ip=function(){};
_.F(ip,cc);ip.prototype.getApiPaths=function(){return w2Z};
ip.prototype.getExtension=function(N){return _.t(N,_.EMO)};
ip.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.flagAction&&(N.action=b.flagAction);b.flagRequestType&&(N.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(N.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(N.legalCheckboxChecked=b.legalCheckboxChecked);b={};S.flag_issue_type!==void 0&&(b.issue=S.flag_issue_type);S.flag_affiliation!==void 0&&(b.affiliation=S.flag_affiliation);S.flag_full_name&&(b.fullName=S.flag_full_name);
Object.keys(b).length&&(N.legalReportDetails=b);if(S.flag_description||S.text)N.userComments=S.flag_description||S.text;b={};S.minutes!==void 0&&S.seconds!==void 0&&(b.minutes=S.minutes,b.seconds=S.seconds);S.vss_id&&(b.vssId=S.vss_id);Object.keys(b).length&&(N.videoReportDetails=b);b={};S.video_ids&&(b.videoIds=S.video_ids);S.impersonated_channel_url&&(b.impersonatedChannelUrl=S.impersonated_channel_url);Object.keys(b).length&&(N.channelAbuseReportDetails=b)};
_.d0.Object.defineProperties(ip.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jt=function(){};
_.F(Jt,cc);Jt.prototype.getApiPaths=function(){return sL4};
Jt.prototype.getExtension=function(N){return _.t(N,n6N)};
Jt.prototype.JSC$14404_buildRequest=function(N,b){b.blockedForKidsContent&&(N.blockedForKidsContent=b.blockedForKidsContent)};var Ut=function(){};
_.F(Ut,cc);Ut.prototype.getApiPaths=function(){return z$c};
Ut.prototype.getExtension=function(N){return _.t(N,nia)};
Ut.prototype.JSC$14404_buildRequest=function(N,b,S){N.params=b.params;S.impersonated_channel_url&&(N.impersonatedChannelUrl=S.impersonated_channel_url)};var Zv=function(){};
_.F(Zv,cc);Zv.prototype.getApiPaths=function(){return MqO};
Zv.prototype.getExtension=function(N){return _.t(N,_.dD4)};
Zv.prototype.JSC$14404_buildRequest=function(N,b){b.items&&(N.items=b.items);b.kidGaiaId&&(N.kidGaiaId=b.kidGaiaId)};var jY=function(){};
_.F(jY,cc);jY.prototype.getApiPaths=function(){return PUV};
jY.prototype.getExtension=function(N){return _.t(N,_.KLk)};
jY.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params);b.targetId&&(N.targetId=b.targetId)};var zK=function(){};
_.F(zK,cc);zK.prototype.getApiPaths=function(){return p8d};
zK.prototype.getExtension=function(N){return _.t(N,WpE)};
zK.prototype.JSC$14404_buildRequest=function(N,b){b.externalVideoId&&(N.externalVideoId=b.externalVideoId);b.query&&(N.query=b.query);b.sourceTimelines&&(N.sourceTimelines=b.sourceTimelines)};var At=function(){};
_.F(At,cc);At.prototype.getApiPaths=function(){return YUz};
At.prototype.getExtension=function(N){return _.t(N,_.J8)||void 0};
At.prototype.JSC$14404_buildRequest=function(N,b){b.token&&(N.continuation=b.token)};
_.agQ=function(){};
_.F(_.agQ,cc);_.v=_.agQ.prototype;_.v.getApiPaths=function(){return YUz};
_.v.getExtension=function(N){return _.t(N,_.nX)||void 0};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$14411_getStoreKey=function(N,b){b=b===void 0?{}:b;if(!b.disableCache&&(N=this.getExtension(N))&&N.query)return b={query:N.query},N.params&&(b.params=N.params),_.yh("search",b)};
_.v.JSC$14404_buildRequest=function(N,b,S){b.query&&(N.query=b.query);b.params&&(N.params=b.params);if(!_.T("web_forward_suggest_stats_killswitch")){var P=_.t(b,EAb);P&&(N.suggestStats=P)}var H;!_.T("kevlar_searchbox_stats_killswitch")&&((H=S.tempData)==null?0:H.gs_l)&&!_.t(b,EAb)&&(N.webSearchboxStatsUrl="/search?oq="+(S.tempData.oq||"")+"&gs_l="+S.tempData.gs_l);var K;if((K=S.tempData)==null?0:K.entityMid)b=N.suggestionSearchParams||{},b.entityMid=S.tempData.entityMid,N.suggestionSearchParams=b;
if(_.T("enable_desktop_vdcbg_components")||_.T("enable_inline_muted_playback_on_web_search"))b=_.WN().getFlag(186),N.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";S.isFromShorts&&(N.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.v.getRequestConfig=function(N,b){b=b===void 0?{}:b;N=this.JSC$14411_getStoreKey(N,b);var S;N&&(S={storeStrategy:{storeKey:N}});_.T("web_log_search_ticks_ks")||(S=S||{},S.requestTick="sr_s",S.responseTick="sr_r");return S};var Xt=function(){};
_.F(Xt,cc);Xt.prototype.getApiPaths=function(){return Wmc};
Xt.prototype.getExtension=function(N){return _.t(N,xJ4)};
Xt.prototype.JSC$14404_buildRequest=function(N,b){b.serializedGetSharingProviderDataParams&&(N.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var Et=function(){};
_.F(Et,cc);Et.prototype.getApiPaths=function(){return nNZ};
Et.prototype.getExtension=function(N){return _.t(N,Z1z)};
Et.prototype.JSC$14404_buildRequest=function(N,b){b.endpoint&&(N.endpoint=b.endpoint);b.action&&(N.action=b.action)};var pl=function(){};
_.F(pl,cc);pl.prototype.getApiPaths=function(){return $q9};
pl.prototype.getExtension=function(N){return _.t(N,kFd)};
pl.prototype.JSC$14404_buildRequest=function(N,b){N.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(N.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var Yz=function(){};
_.F(Yz,cc);Yz.prototype.getApiPaths=function(){return VqO};
Yz.prototype.getExtension=function(N){return _.t(N,_.dTE)};
Yz.prototype.JSC$14404_buildRequest=function(N,b){N.params=b.params;N.correctionText=b.correctionText};var yY=function(){};
_.F(yY,cc);yY.prototype.getApiPaths=function(){return o5e};
yY.prototype.getExtension=function(N){return _.t(N,_.nMd)};
yY.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params);N.searchQuery=b.searchQuery;N.languageCode=b.languageCode;N.kind=b.kind;N.name=b.name;N.externalVideoId=b.externalVideoId};var II=function(){};
_.F(II,cc);II.prototype.getApiPaths=function(){return Cr4};
II.prototype.getExtension=function(N){return _.t(N,JCN)};
II.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.params=b.params)};var Dv=function(N){this.JSC$18682_storeWithEntities=N};
_.F(Dv,cc);Dv.prototype.getApiPaths=function(){return Ar4};
Dv.prototype.getExtension=function(N){return _.t(N,Z5b)||_.t(N,zm9)};
Dv.prototype.JSC$14404_buildRequest=function(N,b,S){S.client_data&&(N.clientData=S.client_data);if(b.commerceActionConfig){var P=b.commerceActionConfig;b=P.actionId;P=P.commerceActionParams;b&&(N.actionId=b);P&&(N.commerceActionParams=P)}else{var H=b.actionId,K=b.commerceActionParams;S=b.entityKeys;H&&(N.actionId=H);K&&(N.commerceActionParams=K);var C;b=(P=this.JSC$18682_storeWithEntities)==null?void 0:(C=P.getState())==null?void 0:C.entities;if(S&&b){P=[];C=_.O(S);for(S=C.next();!S.done;S=C.next())if(H=
S.value,S=_.Ku(H).entityType,H=_.GL(b,S,H))K={},P.push((K[S]=H,K));N.entityMutationPayloads=P}}};
Dv.prototype.getRequestConfig=function(N){var b,S=(b=_.t(N,Z5b))==null?void 0:b.requestSequenceType;if(S&&N.clickTrackingParams&&S!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:N.clickTrackingParams,sequenceType:S}}};
Dv[RN]=[s_];var VY=function(){};
_.F(VY,cc);VY.prototype.getApiPaths=function(){return GH9};
VY.prototype.getExtension=function(N){return _.t(N,_.SDc)};
VY.prototype.JSC$14404_buildRequest=function(N,b){b.feedbackData&&(N.feedbackData=b.feedbackData);b.params&&(N.itemParams=b.params)};
_.d0.Object.defineProperties(VY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gn=function(){};
_.F(gn,cc);gn.prototype.getApiPaths=function(){return r$E};
gn.prototype.getExtension=function(N){return _.t(N,Pkb)};
gn.prototype.JSC$14404_buildRequest=function(N,b,S){S.payments_payload&&(N.paymentsPayload=S.payments_payload);S.offer_params&&(N.offerParams=S.offer_params);b.transactionParams&&(N.transactionParams=b.transactionParams)};var eY=function(){};
_.F(eY,cc);eY.prototype.getApiPaths=function(){return c$9};
eY.prototype.getExtension=function(N){return _.t(N,_.HW9)};
eY.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.buybucketParams&&(N.buybucketData={params:b.buybucketParams},b.stickerParams?N.buybucketData.stickerParams=b.stickerParams:(S.rich_chat_message?N.buybucketData.richChatMessage=S.rich_chat_message:S.chat_message_text&&(N.buybucketData.chatMessageText=S.chat_message_text),S.purchase_price_micros&&(N.buybucketData.purchasePriceMicros=S.purchase_price_micros.toString())));b.donationAmountMicros&&(N.tipAmountMicros=b.donationAmountMicros,
b.tipParams&&(N.tipParams=b.tipParams));b.offerParams&&(N.offerParams=b.offerParams);b.productData&&(N.productData=b.productData);b.transactionParams&&(N.transactionParams=b.transactionParams)};var $z=function(){};
_.F($z,cc);$z.prototype.getApiPaths=function(){return a99};
$z.prototype.getExtension=function(N){return _.t(N,vtb)};
$z.prototype.JSC$14404_buildRequest=function(N,b){b.updateFopParams&&(N.updateFopParams=b.updateFopParams)};var ht=function(){};
_.F(ht,cc);ht.prototype.getApiPaths=function(){return R79};
ht.prototype.getExtension=function(N){return _.t(N,_.gx)};
ht.prototype.JSC$14404_buildRequest=function(N,b){b.couponCode&&(N.couponCode=b.couponCode);b.params&&(N.itemParams=b.params)};var qQ=function(){};
_.F(qQ,cc);qQ.prototype.getApiPaths=function(){return WIO};
qQ.prototype.getExtension=function(N){return _.t(N,_.jn9)};
qQ.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;b.params&&(N.params=b.params);S.ctk&&(N.clientToken=S.ctk)};var wn=function(N){this.JSC$18717_storeWithEntities=N};
_.F(wn,cc);wn.prototype.getApiPaths=function(){return n8Z};
wn.prototype.getExtension=function(N){return _.t(N,_.mO)};
wn.prototype.JSC$14404_buildRequest=function(N,b,S){S.purchase_price_micros&&(N.productData={pdgData:{purchasePriceMicros:S.purchase_price_micros.toString()}},S.rich_chat_message&&(N.productData.pdgData.richChatMessage=S.rich_chat_message),S.currency_code&&(N.productData.pdgData.currencyCode=S.currency_code));b.transactionParams&&(N.transactionParams=b.transactionParams);b.clientLocationContext&&(N.clientLocationContext=b.clientLocationContext);S.payments_payload&&(N.paymentsPayload=S.payments_payload);
S.funds_guarantee_callback_client_data&&(N.fundsGuaranteeCallbackClientData=S.funds_guarantee_callback_client_data);var P,H;S=(P=this.JSC$18717_storeWithEntities)==null?void 0:(H=P.getState())==null?void 0:H.entities;if(b.entityKeys&&S){P=[];b=_.O(b.entityKeys);for(H=b.next();!H.done;H=b.next()){var K=H.value;H=_.Ku(K).entityType;if(K=_.GL(S,H,K)){var C={};P.push((C[H]=K,C))}}N.entityMutationPayloads=P}};
wn[RN]=[s_];var Nx=function(){};
_.F(Nx,cc);Nx.prototype.getApiPaths=function(){return di9};
Nx.prototype.getExtension=function(N){return _.t(N,sDV)};
Nx.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;S.backend_analytics&&(N.serializedBackendAnalyticsEvent=S.backend_analytics);b.offerParams&&(N.offerParams=b.offerParams)};var bg=function(){};
_.F(bg,cc);bg.prototype.getApiPaths=function(){return R79};
bg.prototype.getExtension=function(N){return _.t(N,S3_)};
bg.prototype.JSC$14404_buildRequest=function(N,b){b.params&&(N.itemParams=b.params)};var SP=function(){};
_.F(SP,cc);SP.prototype.getApiPaths=function(){return mil};
SP.prototype.getExtension=function(N){return _.t(N,_.YNk)};
SP.prototype.JSC$14404_buildRequest=function(N,b,S){S.resume_time_ms&&(N.resumeTimeMs=S.resume_time_ms);b.pauseParams&&(N.pauseParams=b.pauseParams)};var P6=function(){};
_.F(P6,cc);P6.prototype.getApiPaths=function(){return kH9};
P6.prototype.getExtension=function(N){return _.t(N,_.Kq9)};
P6.prototype.JSC$14404_buildRequest=function(N,b,S){S=S===void 0?{}:S;S.c&&(N.redeemCode=S.c);S.rd&&(N.riskData=S.rd);S.ctk&&(N.clientToken=S.ctk)};var H6=function(){};
_.F(H6,cc);H6.prototype.getApiPaths=function(){return TSd};
H6.prototype.getExtension=function(N){return _.t(N,_.yCN)};
H6.prototype.JSC$14404_buildRequest=function(N,b){b.resumeParams&&(N.resumeParams=b.resumeParams)};var s4=function(N,b){this.clientName=N;this.defaultExpirationDelayMs=b};
s4.prototype.put=function(N,b){var S=this,P;return _.r(function(H){P=Object.assign({},b.data);P.key=N;P.clientName=S.clientName;P.expireTimestampMs===void 0&&(P.expireTimestampMs=(Math.round((0,_.nh)())+S.defaultExpirationDelayMs).toString());return H.return(S.putInternal(N,P))})};
s4[RN]=[MR,wMJ];var RKa=function(){s4.apply(this,arguments);this.JSC$18747_responseStore=new Map};
_.F(RKa,s4);_.v=RKa.prototype;_.v.get=function(N){var b=this;return _.r(function(S){return S.return(YJ(b,N))})};
_.v.putInternal=function(N,b){var S=this,P,H,K;return _.r(function(C){P=S.defaultExpirationDelayMs;b.expireTimestampMs&&(P=Number(b.expireTimestampMs)-Math.round((0,_.nh)()),H=_.d7("mweb_override_response_store_expiration_ms"),H>0&&H<P&&(P=H));K=setTimeout(function(){S.remove(N)},P);
S.JSC$18747_responseStore.set(N,{entryData:b,timer:K});_.Zd(C)})};
_.v.remove=function(N){var b=this;return _.r(function(S){WAE(b,N);_.Zd(S)})};
_.v.removeAll=function(){var N=this;return _.r(function(b){N.JSC$18747_responseStore.forEach(function(S){clearTimeout(S.timer)});
N.JSC$18747_responseStore.clear();_.Zd(b)})};
_.v.has=function(N){return!!this.JSC$18747_responseStore.get(N)};
_.v.getKeys=function(){return this.JSC$18747_responseStore.keys()};
var YJ=function(N,b){if(N=N.JSC$18747_responseStore.get(b))return new _.p5(N.entryData)},WAE=function(N,b){var S=N.JSC$18747_responseStore.get(b);
S&&(clearTimeout(S.timer),N.JSC$18747_responseStore.delete(b))};
RKa.prototype.markAsProcessed=function(N){var b=this,S;return _.r(function(P){S=b.JSC$18747_responseStore.get(N);if(!S)return P.jumpTo(0);S.entryData.isProcessed=!0;return P.yield(b.putInternal(N,S.entryData),0)})};var EVo;var Y99=function(N,b,S){s4.call(this,N,b);this.token=S};
_.F(Y99,s4);_.v=Y99.prototype;_.v.get=function(N){var b=this,S,P;return _.r(function(H){return H.nextAddress==1?H.yield(vp(b.token),2):H.nextAddress!=3?(S=H.yieldResult,H.yield(S.get("ResponseStore",[N,b.clientName]),3)):(P=H.yieldResult)?H.return(new _.p5(P)):H.return(void 0)})};
_.v.putInternal=function(N,b){var S=this,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(vp(S.token),2);P=H.yieldResult;return H.yield(P.put("ResponseStore",b),0)})};
_.v.remove=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(vp(b.token),2);S=P.yieldResult;return P.return(S.delete("ResponseStore",[N,b.clientName]))})};
_.v.removeAll=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(vp(N.token),2);b=S.yieldResult;return S.yield(fpV(b,IDBKeyRange.only(N.clientName)),0)})};
_.v.has=function(){throw Error("lj");};
_.v.markAsProcessed=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield(vp(b.token),2);if(H.nextAddress!=3)return S=H.yieldResult,H.yield(S.get("ResponseStore",[N,b.clientName]),3);P=H.yieldResult;if(!P)return H.jumpTo(0);P.isProcessed=!0;return H.yield(S.put("ResponseStore",P),0)})};_.KK=new _.nO("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var nTa=function(N){var b;this.stateTagsData=(b=N.responseContext)==null?void 0:b.stateTags},dfQ=function(N){var b;
return((b=N.stateTagsData)==null?void 0:b.stateTagsModified)||[]};var mfJ;mfJ=function(N){this.JSC$18760_responseStore=N};
_.IT=function(N,b,S){if(!_.T("state_tags_killswitch")){var P=new nTa(b);if(dfQ(P).length>0){var H=N.JSC$18760_responseStore.getKeys();H=_.O(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var C=YJ(N.JSC$18760_responseStore,K);if(C){var G=_.Pp(C);a:{var a=void 0;C=dfQ(P);G=((a=(new nTa(G)).stateTagsData)==null?void 0:a.relevantStateTags)||[];a=_.O(G);for(G=a.next();!G.done;G=a.next())if(G=G.value,G.stateTag!=null&&C.includes(G.stateTag)&&G.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){C=
!0;break a}C=!1}C&&WAE(N.JSC$18760_responseStore,K)}}}}var R;P=(R=b.responseContext)==null?void 0:R.maxAgeSeconds;S&&P&&Number(P)>0&&(b=sW(b,P),N.JSC$18760_responseStore.put(S,new _.p5(b)))};
mfJ.prototype.handleResponse=function(N,b){if(!b)throw Error("mj");var S,P;b=(S=b.config)==null?void 0:(P=S.storeStrategy)==null?void 0:P.storeKey;_.IT(this,N,b)};
mfJ[RN]=[_.EN];_.Sif=new _.nO("STORE_RESPONSE_PROCESSOR_TOKEN");var k6a=function(N){this.JSC$18763_responseStore=N};
k6a.prototype.handleResponse=function(N,b){if(b.input.match(_.q6(U1S))){var S;if(N==null?0:(S=N.entries)==null?0:S.length)for(N=_.O(N.entries),b=N.next();!b.done;b=N.next()){S=b.value.command;var P=void 0;b=(P=_.t(S,_.kn))==null?void 0:P.unserializedPrefetchData;if(!S||!b)break;P=(new QY).JSC$14411_getStoreKey(S);var H=_.t(b,yD9),K=void 0,C=void 0,G=void 0,a=void 0,R=void 0,n=void 0,d=((K=H)==null?0:(C=K.responseContext)==null?0:C.maxAgeSeconds)&&Number((G=H)==null?void 0:(a=G.responseContext)==null?
void 0:a.maxAgeSeconds)>0?Number((R=H)==null?void 0:(n=R.responseContext)==null?void 0:n.maxAgeSeconds):600;P&&d>0&&(H=sW(H,d),this.JSC$18763_responseStore.put(P,new _.p5(H)));S=(new yn).JSC$14411_getStoreKey(S);b=_.t(b,fRZ);a=G=C=K=H=P=void 0;R=((P=b)==null?0:(H=P.responseContext)==null?0:H.maxAgeSeconds)&&Number((K=b)==null?void 0:(C=K.responseContext)==null?void 0:C.maxAgeSeconds)>0?Number((G=b)==null?void 0:(a=G.responseContext)==null?void 0:a.maxAgeSeconds):600;S&&R>0&&(b=sW(b,R),this.JSC$18763_responseStore.put(S,
new _.p5(b)))}}};
k6a[RN]=[_.EN];var Tj6=function(N,b){this.innertubeTransportService=N;this.JSC$18766_commandHandler=b};
Tj6.prototype.submitForm=function(N,b,S,P,H){var K=this,C,G,a,R,n,d;return _.r(function(m){if(m.nextAddress==1)return C={submitId:N,formData:b,submitBehavior:S,params:P},G=_.q6(gN9),m.yield(_.ni(K.innertubeTransportService,C,G,H),2);a=m.yieldResult;if(!a)return m.return(Promise.reject(new _.jU("Submit API returned an undefined response. Submit ID: "+N)));R=a;(d=(n=R)==null?void 0:n.onResponseReceived)&&K.JSC$18766_commandHandler.resolveCommand(d);return m.return(R)})};
Tj6[RN]=[_.Mn,_.Wq];var v6=function(){this.scheduler=_.oT()},tGq;
v6.prototype.pause=function(){throw Error("nj");};
v6.prototype.resume=function(){throw Error("nj");};
v6.prototype.queue=function(N){var b=this,S=_.Y9(),P=_.XC(this.scheduler,function(){try{var H;if(_.rG.instance)var K=_.rG.instance;else{var C=new _.jU("Error: Unexpected uninitialized CommandHandler.");_.ge(C);K=void 0}(H=K)==null||H.resolveCommand(N.command);S.resolve()}catch(G){S.reject(G)}});
S.promise.thenCatch(function(H){H instanceof _.zM&&b.scheduler.cancelJob(P)});
return S.promise};
v6.prototype.queueAll=function(N){var b=new Map;N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,b.set(S.id,this.queue(S));return b};var FAa=function(N,b){var S=this;this.taskModel=N;this.onTaskCancelledCallback=b;this.resolver=_.Y9();N=N.proto.prefetchConfig;if(!N)throw Error("oj");if(!N.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(P){P instanceof _.zM&&(MGJ(S,S.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),S.onTaskCancelledCallback(S.taskModel.id,S.jobId),S.tick("pcc"));
throw P;});
this.timerName=this.taskModel.id;_.fA(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
FAa.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var MGJ=function(N,b){_.lC({prefetchInfo:{cancellationReason:b}},N.timerName)};
FAa.prototype.tick=function(N){_.uC(N,void 0,this.timerName)};var CK=function(){var N=this;this.scheduler=_.oT();this.maxInflightTasks=_.d7("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.d7("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new sJN;this.onTaskCancelled=function(b,S){S&&N.scheduler.cancelJob(S);Bjn(N,b);O4(N,3)}},lgE=function(){CK.instance||(CK.instance=new CK);
return CK.instance};
CK.prototype.pause=function(){this.prefetchCoordinatorState=0};
CK.prototype.resume=function(){O4(this,0)};
CK.prototype.queue=function(N){N=LA5(this,N);O4(this,1);return N};
CK.prototype.queueAll=function(N){var b=new Map;N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,b.set(S.id,LA5(this,S));O4(this,1);return b};
var LA5=function(N,b){var S=N.allPrefetchTasks.get(b.id);if(S)return S.cancellablePromise;try{var P=new FAa(b,N.onTaskCancelled)}catch(K){return _.f7(K)}S=P;S.tick("pcq");var H={prefetchInfo:{taskId:S.taskModel.id,isPrefetch:!0,fetchAction:S.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:S.taskModel.command.clickTrackingParams}};S.taskModel.csn&&(H.clientScreenNonce=S.taskModel.csn);_.lC(H,S.timerName);N.allPrefetchTasks.set(b.id,P);N.drainingHeap.insert(-P.getPriority(),P);return P.cancellablePromise},
O4=function(N,b){N.prefetchCoordinatorState===b&&(N.prefetchCoordinatorState=2,fg5(N))},fg5=function(N){for(var b={};N.prefetchCoordinatorState!==0;b={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(N.inflightPrefetchTasks.size>=N.maxInflightTasks){N.prefetchCoordinatorState=3;break}b.prefetchTask$jscomp$1=N.drainingHeap.remove();if(!b.prefetchTask$jscomp$1){N.prefetchCoordinatorState=1;break}b.taskId$jscomp$3=b.prefetchTask$jscomp$1.taskModel.id;if(N.allPrefetchTasks.has(b.taskId$jscomp$3)){var S=-1;N.coordinatorTimeoutMs>0&&(S=_.XC(N.scheduler,function(P){return function(){GC(N,P.taskId$jscomp$3,Error("qj"))}}(b),N.coordinatorTimeoutMs));
N.inflightPrefetchTasks.set(b.taskId$jscomp$3,S);if(!N.JSC$18783_commandHandler){if(!_.rG.instance){GC(N,b.taskId$jscomp$3,Error("rj"));continue}N.JSC$18783_commandHandler=_.rG.instance}a:switch(b.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":S=1;break a;default:S=0}b.prefetchTask$jscomp$1.jobId=N.scheduler.addJob(function(P){return function(){P.prefetchTask$jscomp$1.tick("pcr");try{N.JSC$18783_commandHandler.resolveCommand(P.prefetchTask$jscomp$1.taskModel.command)||
GC(N,P.taskId$jscomp$3,Error("sj"))}catch(H){GC(N,P.taskId$jscomp$3,H)}}}(b),S,0)}}},uc6=function(N,b){(b=Bjn(N,b))!=null&&(b.resolver.resolve(),b.tick("pce"));
O4(N,3)},GC=function(N,b,S){(b=Bjn(N,b,S))!=null&&(b.resolver.reject(S),b.tick("pcc"),MGJ(b,"CANCELLATION_REASON_ERROR"),Math.random()<=_.d7("prefetch_coordinator_error_logging_sampling_rate")&&(S=new _.jU("Prefetch Command failed.",b.taskModel.id,S.message),_.ge(S)));
O4(N,3)},Bjn=function(N,b,S){var P=N.allPrefetchTasks.get(b);
P?((S=N.inflightPrefetchTasks.get(b))&&S!==-1&&N.scheduler.cancelJob(S),N.inflightPrefetchTasks.delete(b),N.allPrefetchTasks.delete(b)):_.$h(new _.jU("Unexpected missing prefetch task when deleting task.",b,S==null?void 0:S.message));return P};var QcE=function(N,b,S,P,H){this.id=N;this.triggerOn=b;this.cancelOn=S;this.command=P;this.proto=H};
_.d0.Object.defineProperties(QcE.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var xfJ=function(){this.JSC$18788_prefetchCoordinator=lgE();tGq||(tGq=new v6);this.defaultCoordinator=tGq},oTt;
xfJ.getInstance=function(){oTt||(oTt=new xfJ);return oTt};
xfJ.prototype.get=function(N){switch(N){case 0:return this.JSC$18788_prefetchCoordinator;default:return this.defaultCoordinator}};var rw=function(){this.coordinatorSupplier=xfJ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Uf5=function(N){var b=_.Qh()||void 0,S=Object.keys(iTL)[0];
if(S){var P=N.taskIdByTriggerId.get(S);if(P!=null){N.taskIdByTriggerId.delete(S);S=[];P=_.O(P);for(var H=P.next();!H.done;H=P.next())if(H=N.tasks.get(H.value))b!=="UNDEFINED_CSN"&&(H.csn=b),S.push(H);S=DG9(S);b=[];S=_.O(S);for(P=S.next();!P.done;P=S.next()){H=_.O(P.value);P=H.next().value;H=H.next().value;P=N.coordinatorSupplier.get(P).queueAll(H);P=_.O(P);var K=P.next();for(H={};!K.done;H={taskId$jscomp$9:void 0},K=P.next()){var C=_.O(K.value);K=C.next().value;C=C.next().value;H.taskId$jscomp$9=
K;K=C;b.push(H.taskId$jscomp$9);N.queuedPromisesByTask.set(H.taskId$jscomp$9,_.z5(K,function(G){return function(){Jga(N,G.taskId$jscomp$9)}}(H)))}}}}else _.$h(new _.jU("Unexpected malformed TriggerEvent."))};
rw.prototype.trigger=function(N,b){var S=this,P=this.tasks.get(N);if(!P||this.queuedPromisesByTask.has(N))return!1;ZTn(this,N,P.triggerOn);b!=="UNDEFINED_CSN"&&(P.csn=b);b=this.coordinatorSupplier.get(P.taskType).queue(P);this.queuedPromisesByTask.set(N,_.z5(b,function(){Jga(S,N)}));
return!0};
rw.prototype.cancel=function(N){var b=this.queuedPromisesByTask.get(N);if(b)b.cancel();else return Jga(this,N)};
var Jga=function(N,b){N.queuedPromisesByTask.delete(b);var S=N.tasks.get(b);if(!S)return!1;N.tasks.delete(b);ZTn(N,b,S.triggerOn);(S=IZo(S.cancelOn))&&(N=N.taskIdByCancelId.get(S))&&N.delete(b);return!0},ZTn=function(N,b,S){(S=Object.keys(S)[0])&&(N=N.taskIdByTriggerId.get(S))&&N.delete(b)};var iTL={taskRegistered:{}},c6=function(){rw.instance||(rw.instance=new rw);this.JSC$18797_taskManager=rw.instance};
_.F(c6,kN);
c6.prototype.resolveCommand=function(N){var b=this,S,P;return _.r(function(H){S=_.t(N,pc9);if((P=S)==null||!P.tasks){var K=new _.jU("RegisterTasksCommand is missing tasks.");_.ge(K);return H.return()}K=b.JSC$18797_taskManager;for(var C=_.O(S.tasks),G=C.next();!G.done;G=C.next())if(G=G.value,G=G.id&&G.triggerOn&&G.cancelOn&&G.command?new QcE(G.id,G.triggerOn,G.cancelOn,G.command,G):void 0,G){var a=Object.keys(G.triggerOn)[0];if(a){var R=IZo(G.cancelOn);R?(K.tasks.set(G.id,G),K.taskIdByTriggerId.has(a)||K.taskIdByTriggerId.set(a,
new Set),K.taskIdByTriggerId.get(a).add(G.id),K.taskIdByCancelId.has(R)||K.taskIdByCancelId.set(R,new Set),K.taskIdByCancelId.get(R).add(G.id)):_.$h(new _.jU("Unexpected malformed cancelOn field."))}else _.$h(new _.jU("Unexpected malformed triggerOn field."))}else _.$h(new _.jU("Unexpected malformed Task proto."));Uf5(b.JSC$18797_taskManager);_.Zd(H)})};var jcO={},zKE=(jcO.rendered={priority:_.T("web_adaptive_early_init")?8:0,callback:function(){var N={};N.numCpu=navigator.hardwareConcurrency;var b={};b.ramGb=_.Ps.navigator.deviceMemory;var S={staticContext:{}};b.ramGb&&bys(b.ramGb)&&(S.staticContext.memoryTotalKbytes=(b.ramGb*1048576).toString());N.numCpu&&bys(N.numCpu)&&(S.staticContext.cpuCores=N.numCpu);if(_.T("web_enable_adaptive_appl_signal")){N={};b=QQb();b=b.length>0?b[0]:void 0;var P,H=(P=_.om("rses_dpj"))!=null?P:b==null?void 0:b.tick.rses_dpj,
K;P=(K=_.om("rsef_dpj"))!=null?K:b==null?void 0:b.tick.rsef_dpj;H&&Number(H)>0&&P&&Number(P)>0&&(K=Math.ceil(Number(P)-Number(H)),K>0&&(N.loadLatency=K));N.loadLatency&&bys(N.loadLatency)&&(S.appL=N.loadLatency.toString())}_.Dn("applicationStarted",S);S6p=S;_.T("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Pds)}},jcO);var Ag6=new _.nO("WINDOW_ON_ERROR"),Xvw=new _.nO("ERROR_WEIGHT_MAPS"),ETt=new _.nO("INIT_ERROR");var pv_={},Y55=(pv_.initialized={priority:10,callback:function(N){N.injector.resolve(ETt)()}},pv_);var yga=function(){},Igo=function(){var N=_.hl("meta_logger_impl");
N||(N=new yga,_.aB("meta_logger_impl",N));return N},DfJ=function(){Igo().csiSubscriptionKey=$no("meta_logging_csi_event",function(N){var b=N.timerName;
if(N=N.timelineData){_.fA(b,{startTime:N.startTime},b);N.infos&&_.lC(N.infos,b);for(var S=_.O(Object.keys(N.ticks)),P=S.next();!P.done;P=S.next())P=P.value,_.uC(P,N.ticks[P],b)}})};
yga.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&wd_(this.csiSubscriptionKey)};var VGi={},gT6=(VGi.initialized={priority:10,callback:function(){DfJ()}},VGi);var eKw=function(N,b){this.innertubeClientName=N;this.JSC$18808_prefCookie=b};
eKw.prototype.record=function(){if(_.T("web_li_record_binary_eval_tick")){var N=_.om("rsef_dpj");var b=_.om("rses_dpj");N=N!==void 0&&b!==void 0?Math.round(N-b):void 0;if(N!==void 0&&N>0){b=_.l1(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var S=this.poolSize;if(!(b.valuesSeen>=1E9)){if(b.valuesSample.length<S)b.valuesSample.push(N);else{var P=Math.floor(Math.random()*(b.valuesSeen+1));P<S&&(b.valuesSample[P]=N)}b.valuesSeen+=1}_.Bd(this.storagePrefix+"-"+this.innertubeClientName,
b,2592E3);N=b.valuesSample;b=VNs(N);N=N.length<this.poolSize?void 0:b<400?1:b<1700?2:3;N!==void 0&&(this.JSC$18808_prefCookie.set(this.cookiePrefix+this.innertubeClientName,N),this.JSC$18808_prefCookie.save())}}else _.LX(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18808_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18808_prefCookie.save()};
eKw[RN]=[MR,Ke];var $fO=function(){eKw.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.F($fO,eKw);var hKE=new _.nO("PAGE_LOAD_TIME_TOKEN");var q5o=function(N){this.signal=N;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;N.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.XC(_.Dj,this.disableLoggingAndSendPayload,1E4)};
q5o.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Dj.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),wvi(this))};
var wvi=function(N){var b=_.uZ();if(b){var S={webClientComponentsData:{components:Array.from(N.ids,function(P){return{id:P}})}};
N.ids.clear();_.dG().visualElementStateChanged(b,S)}};var NAQ=fU({a11y:L7V});_.bQ_=uo(NAQ)(NAQ.a11y,{ephemeralActionSelector:function(N){return N.ephemeralAction||null}});var SBQ=fU({continuation:o$9});var PMt=uo(SBQ)(SBQ.continuation,{continuationCommandSelector:function(N){return N.continuationCommand}});var HQa=new _.nO("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var a1=function(N,b){this.JSC$18837_storeWithEntities=N;this.JSC$18837_commandHandler=b;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
a1.prototype.start=function(){this.JSC$18837_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
a1.prototype.observeDownloadingEntities=function(){var N=_.D$I(this.JSC$18837_storeWithEntities.getState().entities).map(function(P){return Vc_(P)});
if(N.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var b={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ZPu()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.bV(_.cN("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18837_commandHandler.resolveCommand(b)}this.downloadingEntities=N}else if(this.downloadingEntities.length){var S=Iye(this.JSC$18837_storeWithEntities.getState().entities).map(function(P){return Vc_(P)});
this.downloadingEntities.filter(function(P){return S.includes(P)}).length&&(N={openPopupAction:lZb()},this.JSC$18837_commandHandler.resolveCommand(N));
this.downloadingEntities=[]}};
a1[RN]=[s_,_.Wq];var sOw;_.R1=function(N,b,S,P,H,K,C,G){this.JSC$18840_playerApiPromise=N;this.JSC$18840_commandHandler=b;this.JSC$18840_screenManager=S;this.offlineWebClientEligibility=P;this.JSC$18840_prefStorage=H;this.JSC$18840_actionRouter=K;this.entityTypeMap=C;this.JSC$18840_persistentStorePromiseAccessor=G;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
sOw=function(){var N=_.aN().resolve(_.R1),b;_.r(function(S){if(S.nextAddress==1)return N.downloadFailureListenerBound?S.return():S.yield(N.JSC$18840_playerApiPromise,2);b=S.yieldResult;b.addEventListener("onOfflineOperationFailure",function(P){if(P.failureReason&&P.entityKey&&P.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(P.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var H=_.Ku(P.entityKey).entityId;H&&N.JSC$18840_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
H)}else if(_.T("kevlar_woffle")){H=N.JSC$18840_commandHandler;var K=H.resolveCommand;P=P.failureReason;var C=_.cN("TRANSFER_FAILED",void 0,"Download failed");P==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(C=_.cN("STORAGE_FULL",void 0,"Storage full"));K.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bV(C),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
N.downloadFailureListenerBound=!0;_.Zd(S)})};
_.R1.prototype.deleteVideo=function(N,b){var S=this,P,H,K;return _.r(function(C){if(C.nextAddress==1)return C.yield(S.JSC$18840_playerApiPromise,2);P=C.yieldResult;K={offlineLoggingData:{offlineDeleteReason:(H=b)!=null?H:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return C.yield(P.queueOfflineAction(N,S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",K),0)})};
_.R1.prototype.pauseVideoDownload=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.JSC$18840_playerApiPromise,2);S=P.yieldResult;S.pauseVideoDownload(N);_.Zd(P)})};
_.R1.prototype.resumeVideoDownload=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.JSC$18840_playerApiPromise,2);S=P.yieldResult;return P.yield(S.resumeVideoDownload(N),0)})};
_.R1[RN]=[_.Pm,_.Wq,_.Sz,HQa,Ge,fc,F7S,Il];var Kba=new _.nO("DOWNLOAD_STATE_STORE_TOKEN");var vlE=function(N,b){this.JSC$18861_persistentStorePromiseAccessor=N;this.store=b;this.upliftCompletionResolver=new _.GB},Gzi=function(){var N=_.aN().resolve(OQ6),b;
_.r(function(S){switch(S.nextAddress){case 1:if(N.upliftImplPromise)return S.return(N.upliftImplPromise);_.u4(S,2);N.upliftImplPromise=CML(N);return S.yield(N.upliftImplPromise,4);case 4:N.upliftCompletionResolver.resolve();_.su(S,3);break;case 2:throw b=_.UE(S),N.upliftCompletionResolver.reject(b),b;case 3:return S.return(N.upliftImplPromise)}})},CML=function(N){var b,S,P;
return _.r(function(H){switch(H.nextAddress){case 1:return _.g8("LOGGED_IN")?H.yield(N.JSC$18861_persistentStorePromiseAccessor(),2):H.return();case 2:b=H.yieldResult;if(!b)return _.uC("vdeur"),H.return();_.uC("vdeus");_.u4(H,3);return H.yield(reJ(b),5);case 5:S=H.yieldResult;N.store.dispatch(x$s(S));b.observe(function(K){oAa(N.store,K)});
_.su(H,4);break;case 3:throw P=_.UE(H),_.uC("vdeur"),P;case 4:_.uC("vdeuc"),_.Zd(H)}})},reJ=function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(wI_(N),2);b=S.yieldResult;return S.return(b.reduce(function(P,H){if(!H.data||!H.key||!H.entityType)return P;P[H.entityType]||(P[H.entityType]={});P[H.entityType][H.key]=H.data;return P},{}))})};
vlE[RN]=[Il,_.OQ];var OQ6;OQ6=new _.nO("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.W6=new _.nO("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var nK=function(N,b){this.JSC$18864_persistentStorePromiseAccessor=N;this.transportService=b};
nK.prototype.refresh=function(){var N=this,b,S,P,H;return _.r(function(K){if(K.nextAddress==1)return _.g8("LOGGED_IN")?K.yield(N.JSC$18864_persistentStorePromiseAccessor(),2):K.return();if(K.nextAddress!=3)return(b=K.yieldResult)?K.yield(oVO(b),3):K.return();if((S=K.yieldResult)&&!(Number(S.data.refreshTimestampMs||0)<(0,_.nh)()))return K.return();P={browseId:"SPaccount_downloads"};H=_.q6(e8);_.ni(N.transportService,P,H).then(function(C){var G;if(b&&(C==null?void 0:(G=C.responseContext)==null?void 0:
G.maxAgeSeconds)!==0){var a;G=(C==null?void 0:(a=C.responseContext)==null?void 0:a.maxAgeSeconds)||604800;a=String(Math.floor((0,_.nh)())+G*1E3);b.put("service:downloads_settings:fallback",new _.p5({innertubeResponse:C,refreshTimestampMs:a}))}});
_.Zd(K)})};
nK[RN]=[_.KK,_.Mn];var dw=function(N,b){this.JSC$18868_playerPromise=N;this.store=b;this.started=!1};
dw.prototype.start=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return N.started?S.return():S.yield(N.JSC$18868_playerPromise,2);b=S.yieldResult;b.addEventListener("onOrchestrationBecameLeader",N.updateIsLeader.bind(N,!0));b.addEventListener("onOrchestrationLostLeader",N.updateIsLeader.bind(N,!1));if(b.isOrchestrationLeader)N.updateIsLeader(b.isOrchestrationLeader());else{var P=new _.jU("Function isOrchestrationLeader is undefined",{"player.isReady":b.isReady(),"player.playVideo":b.playVideo?
"defined":"undefined"});_.ge(P);N.updateIsLeader(!1)}N.started=!0;_.Zd(S)})};
dw.prototype.updateIsLeader=function(N){this.store.dispatch(_.HU({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:N}}))};
dw[RN]=[_.Pm,_.OQ];var ceE=function(N,b){this.networkStatusManager=N;this.JSC$18871_prefStoragePromise=b;this.redirectsToPreload=["https://youtube.com"]},aqQ=function(){var N=_.aN().resolve(ceE),b,S,P,H,K,C;
_.r(function(G){switch(G.nextAddress){case 1:return G.yield(N.JSC$18871_prefStoragePromise,2);case 2:b=G.yieldResult;if(!(S=b)){G.jumpTo(3);break}return G.yield(b.get("yt-redirect-prefetch-id"),4);case 4:S=G.yieldResult;case 3:if(S||!N.networkStatusManager.isNetworkAvailable())return G.return();P={cache:"reload",redirect:"manual"};H=_.O(N.redirectsToPreload);K=H.next();case 5:if(K.done){if(!b){G.jumpTo(0);break}return G.yield(b.set("yt-redirect-prefetch-id",!0,86400),0)}C=K.value;_.u4(G,8);return G.yield(_.Ps.fetch(C,
P),10);case 10:_.su(G,6);break;case 8:_.UE(G);case 6:K=H.next(),G.jumpTo(5)}})};var RoJ=function(N){this.JSC$18877_pageManager=N},Wbw=function(N){var b=[];
PTY(["videoId","contentId"],N.JSC$18877_pageManager.data,new Set,b);return b},nlo=function(N){return Wbw(N).filter(function(b){return b.contentType==="video"}).map(function(b){return b.contentId}).filter(function(b){return b!==void 0})};
RoJ[RN]=[_.$9];var d8O=new _.nO("PAGE_CONTENT_EXTRACTOR_TOKEN");var mF=function(N){N?(this.container=N,this.containerWasInjected=!0):this.containerWasInjected=!1};
mF.prototype.openDialog=function(N,b,S){var P=this,H;return _.r(function(K){(H=P.container)==null||H.openDialog(N,b,S);_.Zd(K)})};
mF.prototype.closeDialog=function(){var N=this,b;return _.r(function(S){(b=N.container)==null||b.closeDialog();_.Zd(S)})};
mF.prototype.isDialogOpen=function(){var N=this,b,S;return _.r(function(P){return P.return((S=(b=N.container)==null?void 0:b.isDialogOpen())!=null?S:!1)})};
mF[RN]=[_.cq(YCd)];_.m8q=new _.nO("POPUP_CONTROLLER_TOKEN");var kzO=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
kzO.prototype.registerPanel=function(N,b){if(N){this.panelMap.set(N,b);var S=this.pendingPanelResolvers.get(N);S&&(S.resolve(b),this.pendingPanelResolvers.delete(N))}};
kzO.prototype.getPanel=function(N){var b=this,S;return _.r(function(P){return(S=b.panelMap.get(N))?P.return(S):P.return(TAo(b,N))})};
var TAo=function(N,b){var S,P;return _.r(function(H){if(S=N.pendingPanelResolvers.get(b))return H.return(S.promise);P=new _.GB;N.pendingPanelResolvers.set(b,P);return H.return(P.promise)})},tjn=function(N,b){kzO.call(this);
var S=this;this.popupController=N;this.persistentPanelController=b;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.F(tjn,kzO);_.v=tjn.prototype;_.v.getReloadContinuation=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.getPanel(N),2);S=P.yieldResult;return P.return(S.getReloadContinuation())})};
_.v.showPanel=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k;return _.r(function(M){if(M.nextAddress==1){S=N;P=S.identifier;H=S.panelContents;K=S.config;C=S.extras;G=S.panelUpdatableFields;a=S.updatePanelContinuationData;R=N.target;a&&b.updatePanelContinuationDatas.set(P,a);if((n=K)==null?0:(d=n.engagementPanelPopupPresentationConfig)==null?0:d.popupType)if(m=K.engagementPanelPopupPresentationConfig.popupType,R===void 0&&(R=document.body),m==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!b.persistentPanelController)return _.$h(new _.jU("Persistent panel controller is not available.")),
M.return();var l=b.persistentPanelController;l.persistentPanelIdentifiers.has(P)||(l.persistentPanelWrapper.appendChild(l.engagementPanelElement({panelIdentifier:P},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),l.persistentPanelIdentifiers.add(P));a:switch(_.pf.currentPageSubTypeSelector(l.store.getState())){case "watch":var u="WATCH";break a;default:u="APP"}_.Mj5(l,u);l.store.dispatch(u44(!0))}else{if(m==="PANEL_POPUP_TYPE_DIALOG"||m==="PANEL_POPUP_TYPE_DROPDOWN"){l=M.return;u=b.popupController;
var J=u.openPopup;a:switch(m){case "PANEL_POPUP_TYPE_DIALOG":var Z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Z="DROPDOWN";break a;default:throw Error("uj`"+m);}return l.call(M,J.call(u,P,H,Z,R))}_.$h(new _.jU("Popup type "+m+" not supported in PanelController."))}return M.yield(b.getPanel(P),2)}k=M.yieldResult;(H||G)&&k.updatePanel(H,!1,C,G);k.showPanel(C);_.Zd(M)})};
_.v.hidePanel=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S=N,P=S.identifier,C.yield(b.getPanel(P),2);H=C.yieldResult;H.hidePanel();b.popupController.closePopup(P);(K=b.persistentPanelController)!=null&&K.persistentPanelIdentifiers.has(P)&&K.store.dispatch(u44(!1));_.Zd(C)})};
_.v.isVisible=function(N,b){var S=this,P;return _.r(function(H){if(H.nextAddress==1)return b&&!S.panelMap.has(N)?H.return(!1):H.yield(S.getPanel(N),2);P=H.yieldResult;return H.return(P.isVisible())})};
_.v.updatePanel=function(N){var b=this,S,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1){S=N;P=S.identifier;H=S.panelContents;K=S.shouldFocus===void 0?!1:S.shouldFocus;C=S.extras;G=S.panelUpdatableFields;a=S.updatePanelContinuationData;if(!H&&!G)return n.return();a&&b.updatePanelContinuationDatas.set(P,a);_.T("enable_ai_companion")&&P==="PAai_companion"&&_.mH.remove("youchat_messages_section");return n.yield(b.getPanel(P),2)}R=n.yieldResult;R.updatePanel(H,K,C,G);H&&_.T("enable_ai_companion")&&
b.registerPanelContent(P,H);_.Zd(n)})};
_.v.registerPanelContent=function(N,b){N&&this.panelContentMap.set(N,b)};
_.v.unregisterPanelContent=function(N){this.panelContentMap.delete(N)};
_.v.getPanelContent=function(N){return this.panelContentMap.get(N)};
_.v.getUpdatePanelContinuationData=function(N){return this.updatePanelContinuationDatas.get(N)};
tjn[RN]=[_.m8q,_.cq(_.vn)];var ki=function(N,b){this.innertubeTransportService=N;this.JSC$18896_screenManager=b},FbE=function(N){var b;
return!((b=N.panelLoadingStrategy)==null||!b.requestTemplate)};
ki.prototype.makeRequest=function(N){var b=this,S,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!FbE(b)){H.jumpTo(2);break}_.u4(H,3);return H.yield(_.pU(b.innertubeTransportService,N),5);case 5:return S=H.yieldResult,S?H.return(S.content):(_.ge(Error("vj")),H.return(void 0));case 3:P=_.UE(H),_.ge(P);case 2:return H.return(void 0)}})};
ki.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
ki.prototype.execute=function(N){var b=this,S,P,H,K,C,G,a,R,n,d;return _.r(function(m){if(m.nextAddress==1){S=N;P=S.data;H=S.fallbackVe;K=S.parentVe;C=S.createScreenConfig;G=S.renderFn;a=S.command;b.panelLoadingStrategy=P;var k,M,l=((k=b.panelLoadingStrategy)==null?0:k.screenVe)?(M=b.panelLoadingStrategy)==null?void 0:M.screenVe:H;l&&_.Xy(b.JSC$18896_screenManager,l,K,C);return(R=b.getContent())?m.yield(G(R),2):m.jumpTo(2)}return m.nextAddress!=4?FbE(b)?m.yield(b.makeRequest(a),4):m.return():(d=n=
m.yieldResult)?m.yield(G(d),0):m.return()})};
ki[RN]=[_.Mn,_.Sz];var BAn;BAn=function(N,b){this.engagementPanelElement=N;this.store=b;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.Mj5=function(N,b){var S=N.persistentPanelContainerMap.get(b);S?S.contains(N.persistentPanelWrapper)||(N=N.persistentPanelWrapper,_.$H=!0,_.hM.set(N,!0),S.insertBefore(N,null),_.hM.delete(N),_.$H=!1):_.$h(new _.jU("Persistent panel container not found for surface "+b+"."))};
BAn[RN]=[yQl,_.OQ];var TC=function(){var N=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){N.isHovered=!0};
this.onTargetHoverLeft=function(){N.isHovered=!1};
this.onSheetHoverEntered=function(){N.isHovered=!0;var b;(b=N.hoverEnterCallback)==null||b.call(N)};
this.onSheetHoverLeft=function(){N.isHovered=!1;var b;(b=N.hoverLeaveCallback)==null||b.call(N)}};
TC.prototype.getContainer=function(){return _.hw()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
TC.prototype.openSheet=function(N,b,S){S=S===void 0?b:S;var P=this,H,K,C,G,a,R,n;return _.r(function(d){switch(d.nextAddress){case 1:return H={stack:[],error:void 0,hasError:!1},_.u4(d,2,3),K=cW,d.yield(P.isSheetOpen(),5);case 5:C=d.yieldResult;gda(H,unp(K));if(!C){d.jumpTo(6);break}if(!P.shouldPreventClosingWhileHovered){if(!_.T("delay_sheet_open_killswitch")){if(_.T("web_close_sheet_if_same_target_killswitch")&&b&&P.currentTarget===b)return(G=P.getContainer())==null||G.closeSheet(),d.return();P.pendingData=
{data:N,target:Snt(P,b)};return d.return()}d.jumpTo(6);break}if(P.currentTarget===b)return d.return();lqq(P);Lba(P);return d.yield((a=P.getContainer())==null?void 0:a.closeSheet(),6);case 6:if(N.viewModel&&(N={viewModel:N.viewModel,sheetPosition:N.sheetPosition,expandToFullWidth:N.expandToFullWidth}),(R=P.getContainer())==null||R.openSheet(N,b,S),P.currentTarget=b,P.shouldPreventClosingWhileHovered){P.onTargetHoverEntered();var m;(m=P.currentTarget)==null||m.addEventListener("mouseenter",P.onTargetHoverEntered);
var k;(k=P.currentTarget)==null||k.addEventListener("mouseleave",P.onTargetHoverLeft);fqa(P)}else P.hasRegisteredHoverCallbacks&&fqa(P);case 3:_.xw(d);eje(H);_.Jv(d,0);break;case 2:n=_.UE(d),H.error=n,H.hasError=!0,d.jumpTo(3)}})};
TC.prototype.closeSheet=function(){var N=this;return _.r(function(b){return N.hideDelayMs?(setTimeout(function(){return _.r(function(S){return S.yield(u1E(N),0)})},N.hideDelayMs),b.return()):b.yield(u1E(N),0)})};
var u1E=function(N){var b;return _.r(function(S){if(S.nextAddress==1){if(N.shouldPreventClosingWhileHovered){if(N.isHovered)return S.return();lqq(N);Lba(N)}else N.hasRegisteredHoverCallbacks&&(Lba(N),N.onSheetHoverLeft());return S.yield((b=N.getContainer())==null?void 0:b.closeSheet(),2)}if(S.nextAddress!=4)return N.resetState(),!N.pendingData||_.T("delay_sheet_open_killswitch")?S.jumpTo(0):S.yield(N.openSheet(N.pendingData.data,N.pendingData.target),4);N.pendingData=void 0;_.Zd(S)})};
TC.prototype.isSheetOpen=function(){var N=this,b,S;return _.r(function(P){return P.return((S=(b=N.getContainer())==null?void 0:b.isSheetOpen())!=null?S:!1)})};
TC.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var lqq=function(N){var b;(b=N.currentTarget)==null||b.removeEventListener("mouseenter",N.onTargetHoverEntered);var S;(S=N.currentTarget)==null||S.removeEventListener("mouseleave",N.onTargetHoverLeft)},fqa=function(N){var b,S=(b=N.getContainer())==null?void 0:b.getSheetContainerElement();
S==null||S.addEventListener("mouseenter",N.onSheetHoverEntered);S==null||S.addEventListener("mouseleave",N.onSheetHoverLeft)},Lba=function(N){var b,S=(b=N.getContainer())==null?void 0:b.getSheetContainerElement();
S==null||S.removeEventListener("mouseenter",N.onSheetHoverEntered);S==null||S.removeEventListener("mouseleave",N.onSheetHoverLeft)},Snt=function(N,b){if(!_.T("web_parent_target_for_sheets"))return b;
var S,P;return(P=(S=N.getContainer())==null?void 0:S.getParentTarget(b))!=null?P:b};var O_=window.documentPictureInPicture;var a5I=_.$E(["dark"]),RDu=_.$E(["system-icons"]),Ws9=_.$E(["typography"]),n1s=_.$E(["lang"]),dd9=_.$E(["style"]),CTe=_.$E(["dir"]),G_I=_.$E(["rounded-container"]),rGO=_.$E(["style"]),k_b=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ty=function(N){this.JSC$18914_clientRoot=N;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ty.prototype.openWindow=function(N){var b=this,S,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!O_||!O_||!fa()||b.currentPipWindow)return H.return(!1);_.u4(H,2);return H.yield((P=O_?O_:null)==null?void 0:P.requestWindow(N),4);case 4:S=H.yieldResult;_.su(H,3);break;case 2:return _.UE(H),H.return(!1);case 3:if(!S)return H.return(!1);S.addEventListener("pagehide",function(){QOL(b)});
S.addEventListener("resize",b.handlePipWindowResize);mde(S);tLY(S);Lte(S);return H.yield(OBE(S),5);case 5:if(!HBe())return H.return(!1);b.currentPipWindow=S;b.JSC$18914_eventForwarder=TMU(S,b.JSC$18914_clientRoot);b.pipWindowResizeDelay=new _.Tb(function(){b.currentPipWindow&&_.St(b.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Jh(b.currentPipWindow.innerWidth,b.currentPipWindow.innerHeight)])},S);
b.pipWindowResizeDelay.start();return H.return(!0)}})};
ty.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var QOL=function(N){if(N.currentPipWindow){var b,S;(b=O_?O_:null)==null||(S=b.window)==null||S.close();N.currentPipWindow.removeEventListener("resize",N.handlePipWindowResize);var P;(P=N.pipWindowResizeDelay)==null||P.dispose();N.pipWindowResizeDelay=void 0;var H;(H=N.JSC$18914_eventForwarder)==null||H.stop();N.JSC$18914_eventForwarder=void 0;b=_.O(N.onCloseCallbacks);for(S=b.next();!S.done;S=b.next())S=S.value,S();N.onCloseCallbacks=[];N.currentPipWindow=null}};
ty.prototype.getWindow=function(){return this.currentPipWindow};
var x8t=function(N,b){var S;(S=N.onCloseCallbacks)==null||S.push(b)};
ty.prototype.pictureInPictureSupported=function(){return!(!O_||!O_)&&fa()};
_.d0.Object.defineProperties(ty.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ty[RN]=[K29];var ola=new _.nO("PICTURE_IN_PICTURE_CONTROLLER");var MLo=function(N,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-N.x;this.lengthY=b.y-N.y};var iQQ=function(){},a2Q=function(N,b){var S;
(S=N.headerElement)==null||S.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:b}))};var Jeo=function(){};
Jeo.prototype.openPopup=function(N,b,S,P){var H=this,K;return _.r(function(C){if(!H.container)return C.return();K={openPopupAction:{popup:b,popupType:S,uniqueId:N}};return C.return(H.container.handleOpenPopupAction(K,P))})};
Jeo.prototype.closePopup=function(N){this.container&&this.container.closePopup(N)};var U85=function(){this.openTunnels=new Map},vfa=function(N,b,S){if(upO(S)){var P=_.PW(S,"gclid");
S={handleEvent:function(G){b&&!b.closed&&typeof b.postMessage==="function"&&G&&G.origin&&G.source===b&&G.data&&G.data.action==="gcl_setup"&&b.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),G.origin)}};
for(var H=_.O(N.openTunnels),K=H.next();!K.done;K=H.next()){var C=_.O(K.value);K=C.next().value;C=C.next().value;if(K.closed)try{window.removeEventListener("message",C),N.openTunnels.delete(K)}catch(G){_.ge(G)}}b&&N.openTunnels.size<15&&(N.openTunnels.set(b,S),window.addEventListener("message",S))}};var ZQq=function(){this.clientParams=new Map},gQa=function(N){for(var b=_.O(N.clientParams.keys()),S=b.next();!S.done;S=b.next())S=S.value,S.startsWith("yt-mini-app-share")&&N.clientParams.delete(S)};var jOO=function(N,b){_.E5.call(this);var S=this;this.shortsController=N;this.storeWithShorts=b;N=_.hT(this.storeWithShorts,_.feo,function(P){if(P){var H,K=(H=S.shortsController.getRoot())==null?void 0:H.getPlayer(),C;(H=(C=S.shortsController.alternativePlayerContainerElement)==null?void 0:C.getPlayerContainer())&&(K==null||K.appendTo(H))}else{var G;C=(G=S.shortsController.alternativePlayerContainerElement)==null?void 0:G.getPlayerContainer().querySelector("#player");H=S.shortsController.activeIndex;
(G=(K=S.shortsController.getRoot())==null?void 0:K.querySelector('ytd-reel-video-renderer[id="'+H+'"] #player-container'))&&(C==null||C.appendTo(G,void 0,!0))}});
this.addOnDisposeCallback(N)};
_.F(jOO,_.E5);var Mx=function(N,b,S,P){var H=this;this.storeWithShorts=N;this.ephemeralResponseStore=b;this.innertubeTransportService=S;this.innertubeTransportLoader=P;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.nU(_.HP);this.isShortsPipActive=_.nU(_.sx);this.nextReelVe=_.OW(56921);this.prevReelVe=_.OW(56922);this.backButtonVe=_.OW(22156);this.TEST_ONLY={getActiveModules:function(){return H.activeModules}}},zon=function(N){N.unsubscribeFromStore=
_.hT(N.storeWithShorts,_.LCe,function(b){N.initOrDisposeActiveModules(b);
!b&&N.storeWithShorts.getState().shorts.isFullscreen&&(_.qy(document.documentElement),N.storeWithShorts.dispatch(_.iYk(!1)))});
N.initOrDisposeActiveModules(_.LCe(N.storeWithShorts.getState()))},S5Q,PwL,Aeq;
Mx.prototype.initOrDisposeActiveModules=function(N){N?this.activeModules.push(new jOO(this,this.storeWithShorts)):(_.nT(this.activeModules),this.activeModules.length=0)};
Mx.prototype.registerRootElement=function(N){this.rootElement=N;zon(this)};
Mx.prototype.getRoot=function(){return this.rootElement};
Mx.prototype.setActiveIndex=function(N){this.activeIndex=N};
_.hU_=function(N,b){var S,P,H,K,C,G,a;return _.r(function(R){switch(R.nextAddress){case 1:return S=new QY,(P=S.JSC$14411_getStoreKey(b))&&N.ephemeralResponseStore.has(P)?R.yield(N.ephemeralResponseStore.get(P),7):R.yield(Aeq(N,b),4);case 4:H=R.yieldResult;if(!P){R.jumpTo(3);break}K=sW(H,3600);return R.yield(N.ephemeralResponseStore.put(P,new _.p5(K)),3);case 7:H=(C=R.yieldResult)==null?void 0:_.Pp(C);case 3:return((G=H)==null?0:G.replacementEndpoint)&&(a=_.t(H.replacementEndpoint,_.kn))&&H.sequenceContinuation&&
(a.sequenceParams=H.sequenceContinuation),R.return(H)}})};
S5Q=function(N,b){b=(new xz).JSC$14411_getStoreKey(b);return!!b&&N.ephemeralResponseStore.has(b)};
PwL=function(N,b,S){var P,H,K,C,G;_.r(function(a){if(a.nextAddress==1){P=new xz;H=P.JSC$14411_getStoreKey(b);if(!H)return a.return();if(S.reelWatchSequenceResponse)return K=sW(S.reelWatchSequenceResponse,3600),N.ephemeralResponseStore.put(H,new _.p5(K)),a.jumpTo(0);if(!N.ephemeralResponseStore.has(H))return a.jumpTo(0);G=S;return a.yield(N.ephemeralResponseStore.get(H),4)}G.reelWatchSequenceResponse=(C=a.yieldResult)==null?void 0:_.Pp(C);_.Zd(a)})};
Aeq=function(N,b){var S=S===void 0?{}:S;var P,H,K;return _.r(function(C){switch(C.nextAddress){case 1:if(N.innertubeTransportService){P=N.innertubeTransportService;C.jumpTo(2);break}if(!N.innertubeTransportLoader){_.e_(Error("xj"));C.jumpTo(2);break}return C.yield(N.innertubeTransportLoader(),4);case 4:P=C.yieldResult;case 2:return C.yield((H=P)==null?void 0:_.pU(H,b,S),5);case 5:return K=C.yieldResult,C.return(K)}})};
_.d0.Object.defineProperties(Mx.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Mx[RN]=[yhO,_.EN,_.cq(_.Mn),_.cq(arE)];_.XWt=new _.nO("STORAGE_MANAGER_TOKEN");var qkI=["touchmove","scroll"];var ElO=!1;var UdU=!1;var hD_={onSpanEnd:function(N){N.parentId==null&&(ElO||(iB9(),setInterval(iB9,6E5),ElO=!0),jCf(N,"web_tracing_action"))}};var pgU=URL.createObjectURL;var eDo,pWw={traceAllComponents:_.T("web_tracing_all_components"),exportToCsi:_.T("web_tracing_export_to_csi"),enabledSpansArray:_.kb("web_tracing_enabled_spans"),exportToDevTools:_.T("web_tracing_export_to_devtools"),maxBreadcrumbs:_.d7("tel_max_breadcrumbs",0)};eDo=new E1u(pWw);var $dO=_.T("web_shorts_enable_tracing");var YB_=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},yeO;
YB_.prototype.enqueue=function(N,b){b===1?this.currentPersistentToast=N:this.queue.push(N);this.openToast()};
YB_.prototype.openToast=function(){var N;(N=this.currentToast)!=null&&N.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.FY=new _.nO("TOAST_MANAGER_TOKEN");var Iqt=new _.nO("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var D8Q=new _.nO("VIEW_TRANSITION_COORDINATOR_TOKEN");var Vjq=function(N){this.config=N;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;N=_.O(N.transitionConfigs);for(var b=N.next();!b.done;b=N.next())b=_.O(b.value).next().value,this.transitionTasksMap.set(b,[])};
Vjq.prototype.registerElement=function(N,b,S){S=S===void 0?!1:S;for(var P=_.O(Object.keys(b)),H=P.next(),K={};!H.done;K={viewTransitionName:void 0},H=P.next()){H=H.value;K.viewTransitionName=b[H];var C=this.elementTasksMap.get(N),G=void 0;if((G=C)==null?0:G.has(H)){_.ed(new _.jU("Element already registered for transition",N.tagName,H));break}C=C||new Map;C.set(H,{beforeTransition:function(a){return function(){N.style.viewTransitionName=a.viewTransitionName}}(K),
afterTransition:function(){N.style.viewTransitionName&&(N.style.viewTransitionName="")},
runOnce:S});this.elementTasksMap.set(N,C)}};
_.jF=function(N,b){var S=N.elementTasksMap.get(b);S&&(S.clear(),S.size===0&&N.elementTasksMap.delete(b))};
Vjq[RN]=[Iqt];var eoo=_.A(function(N){var b=_.Ct("yt-expandable-metadata-header-view-model"),S=_.Ob(function(P){_.A8(_.dG(),{data:N.data()});if(!_.Qw(_.uK(P),b.value,["A".toString(),"BUTTON".toString()])){var H;(H=N.expandedCallback)==null||H.call(N,!1)}});
return _.c("yt-expandable-metadata-header-view-model",{el:b,class:"ytExpandableMetadataHeaderViewModelHost"},_.c(_.W,{cond:function(){return N.expanded()},
then:function(){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":S},_.c("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.c(_.W,{cond:function(){return N.data().expandedTitleImage},
then:function(P){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.c(_.gG,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.c("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.c("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.c(_.mD,{text:function(){return N.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.c(_.mD,{text:function(){return N.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.c(_.mD,{text:function(){return N.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.c("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.c(_.kY,{data:function(){return N.data().infoButton}},{buttonViewModel:_.j$}),_.c(_.kY,{data:function(){return N.data().collapseButton}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
onClick:function(){var H;(H=N.expandedCallback)==null||H.call(N,!1)}})}})))},
else:function(){return _.c(gli,Object.assign({},N))}}))},"tg"),$8L=_.A(function(N){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.c(_.W,{cond:function(){return N.data().collapsedLabelImage},
then:function(b){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.c(_.gG,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),_.c(_.mD,{text:function(){return N.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ug"),gli=_.A(function(N){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ob(function(){_.A8(_.dG(),{data:N.data()});var b;(b=N.expandedCallback)==null||b.call(N,!0)})},_.c("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.c(_.W,{cond:function(){return N.data().collapsedImage},
then:function(b){return _.c("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.c(_.gG,{height:20,preserveHeight:!0,preserveWidth:!0,data:b,alt:""}))}}),_.c(_.W,{cond:function(){return N.data().showLeadingCollapsedLabel},
then:function(){return _.c($8L,Object.assign({},N))}}),_.c("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.c(_.mD,{text:function(){return N.data().collapsedTitle}}))),_.c("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.c(_.W,{cond:function(){return!N.data().showLeadingCollapsedLabel},
then:function(){return _.c($8L,Object.assign({},N))}}),_.c(_.kY,{data:function(){return N.data().infoButton}},{buttonViewModel:_.j$}),_.c(_.kY,{data:function(){return N.data().expandButton}},{buttonViewModel:function(b){var S=b.data;
return _.c(_.j$,{data:S,onClick:function(){_.A8(_.dG(),{data:S});var P;(P=N.expandedCallback)==null||P.call(N,!0)}})}})))},"vg");_.hoE=_.A(function(N){var b=_.O(_.qI(function(){return N.data().initiallyExpanded})),S=b.next().value,P=b.next().value,H,K=(H=_.aN().resolve(_.cq(_.T8)))==null?void 0:H(),C=function(){var G=N.data().colorData;
if(G)return K?G==null?void 0:G.darkColorPalette:G==null?void 0:G.lightColorPalette};
return _.c("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.r5({"background-color":function(){var G=C();return(G==null?0:G.section2Color)?_.o3(G.section2Color):""}})},_.c(_.kY,{data:function(){return N.data().header}},{expandableMetadataHeaderViewModel:function(G){return _.c(eoo,{data:G.data,
expanded:function(){return!!S()},
expandedCallback:function(a){P(a)}})}}),_.c(_.W,{cond:function(){return S()},
then:function(){return _.c("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.c(_.kY,{data:function(){return N.data().expandedContent}},{horizontalShelfViewModel:function(G){return _.c(_.TU,{data:G.data,
includeMargin:!0,forceNarrowLayout:!0,palette:C})},
videoSummaryContentViewModel:function(G){return _.c(y99,{data:G.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(G){return _.c(_.Y3,{data:G.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(G){return _.c(_.W3,{data:G.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.c(_.kY,{data:function(){return N.data().expandedBottomButtons}},{buttonViewModel:function(G){return _.c("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.c(_.j$,{data:G.data}))}}))}}))},"wg");var qBO=_.A(function(N){var b=N.text;var S=N.marqueeSpacing;var P=N.scrollDelay;var H=N.scrollDuration;var K=N.enableMarqueeScroll;N=N.large;var C=_.O(_.QF(!1,void 0,"WyNYFf")),G=C.next().value,a=C.next().value,R=_.O(_.QF(0,void 0,"OoTdhe"));C=R.next().value;var n=R.next().value,d=_.Ct("marquee-scroll");R=_.Ct("div");var m=_.Ct("span"),k=_.aN().resolve(_.YY);_.gA(function(){if(K()){var u=m.value.getBoundingClientRect().width,J=d.value.getBoundingClientRect().width;if(u>J){var Z=(k==="ltr"?-1:1)*(u+
(S?S():16));Promise.resolve().then(function(){a(!0);n(Z)})}}},"dv0Anf");
var M={},l={};return _.c("marquee-scroll",{class:_.KU("ytMarqueeScrollHost",(M.ytMarqueeScrollHostLarge=N,M)),el:d},_.c("div",{id:"marquee-scroll-inner-container",class:_.KU("ytMarqueeScrollInnerContainer",(l.ytMarqueeScrollAnimationEnabled=function(){return G()},l)),
el:R,style:_.r5({gap:S?(0,_.ai)(S):"16px","animation-duration":H?eGE(H):"16s","animation-delay":P?eGE(P):"3s","--marquee-translate":(0,_.ai)(C)})},_.c("span",{el:m,dir:"auto"},_.c(_.mD,{text:b,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.c(_.W,{cond:G,then:function(){return _.c("span",{"aria-hidden":"true",dir:"auto"},_.c(_.mD,{text:b,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"yg");_.wWt=_.A(function(N){var b=N.data;var S=N.overlayDensity;N=_.Ob(function(){b().onTapCommand&&_.AM(b().onTapCommand);return!1});
var P=_.BNo(),H=function(){return(S==null?void 0:S())===1?22:16},K={};
return _.c("reel-sound-metadata-view-model",{class:_.KU("ytReelSoundMetadataViewModelHost",(K.ytReelSoundMetadataViewModelHostLarge=function(){return(S==null?void 0:S())===1},K)),
"on:click":N,tabindex:0,role:"button","on:keydown":P},_.c("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.c(_.W,{cond:function(){return b().musicIcon},
then:function(C){return _.c(_.gG,{data:C,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:H})}}),_.c("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.c(qBO,{text:function(){return b().soundMetadata},
enableMarqueeScroll:function(){return!!b().enableMarqueeScroll},
large:function(){return(S==null?void 0:S())===1}}))))},"zg");var N85,bME,B6,su6,vUo,HMq,Gjo,CDE;N85=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];bME=_.d7("wil_icon_max_concurrent_fetches",Infinity);
B6=function(N,b,S){var P=this;this.iconSet=N;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Ps.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.T("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.T("wil_icon_network_first");this.renderWhenIdle=_.T("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.T("wil_icon_load_immediately");this.isPurging=!1;N=function(){P.cacheStorageAvailable&&(P.cacheStorageAsync=_.Ps.caches.open("yt-icons").then(function(K){return P.cacheStorageSync=K}).catch(function(){P.cacheStorageAvailable=!1}))};
S=(S==null?void 0:S())||{};S=_.O(Object.entries(S));for(b=S.next();!b.done;b=S.next()){var H=_.O(b.value);b=H.next().value;H=H.next().value;H=uD(H);S2E(H);this.iconCache[b]=H.cloneNode(!0)}this.isPurging=PD_(this);this.isPurging instanceof Promise?this.isPurging.then(N):N()};
_.MYE=function(N,b){var S=N.resolveIcon(b);return S?N.renderingMode===1?HMq(N,S,N.renderingMode):(b=N.iconCache[S.url])?(b=b.cloneNode(!0),su6(N,b),HMq(N,S,N.renderingMode,b)):_.Kon(N,S).then(function(P){var H=P?0:1;su6(N,P);return HMq(N,S,H,P)}):(_.ed(new _.jU("Icon not found",{iconShape:b})),function(){})};
su6=function(N,b){if(b){N.counter+=1;N="_yt"+N.counter;b=[b].concat(_.IX(b.getElementsByTagName("*")));b=_.O(b);for(var S=b.next();!S.done;S=b.next())if(S=S.value,S.tagName==="style"&&S.textContent)S.textContent=vUo(S.textContent,N,!0);else for(var P=_.O(S.attributes),H=P.next();!H.done;H=P.next()){H=H.value;H.name==="id"&&(H.value+=N);["mask","fill","clip-path"].includes(H.name)&&(H.value=vUo(H.value,N));if(H.name==="style"){var K=S.style;try{K.cssText=vUo(K.cssText,N,!0)}catch(n){var C=void 0,G=
void 0,a=void 0,R=void 0;lg({error:((C=n)==null?void 0:(a=(G=C).toString)==null?void 0:a.call(G))||"",el:S.outerHTML,style:!!K,cssText:(R=K)==null?void 0:R.cssText})}}H.name==="xlink:href"&&(H.value=H.value.replace(/#(.*)/,"#$1"+N))}}};
vUo=function(N,b,S){var P=/url\(["']?#(.*?)["']?\)/;(S===void 0?0:S)&&(P=/url\(["']?#(.*?)["']?\)/g);return N.replace(P,"url(#$1"+b+")")};
HMq=function(N,b,S,P){return function(H,K){var C;var G=Object.assign({},{iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},K,{iconColor:(C=K==null?void 0:K.iconColor)!=null?C:"currentcolor"});C=_.U5("DIV");K=G.iconColor;var a=G.iconFilter;G="width: "+G.iconWidth+"; height: "+G.iconHeight+"; display: "+G.iconDisplay+";";a&&(G+=" filter: "+a+";");S===0&&(G+=" fill: "+K+";");S===1&&(a=b.url,G+=" -webkit-mask: url("+a+") no-repeat center / cover; mask: url("+(a+") no-repeat center / cover; background-color: ")+
K);b.allowMirroring&&N.appDirection==="rtl"&&(G+=" transform: scale(-1, 1); transform-origin: center center;");C.setAttribute("style",G);S===0&&P&&C.appendChild(P);H.appendChild(C)}};
_.Kon=function(N,b){var S,P,H;return _.r(function(K){S=function(C){return Nt(C)};
P=b.url;if(!OMt(P))throw Error("Aj");H=CDE(N,P);return K.return(H.then(function(C){return C.clone().text()}).then(function(C){var G=S(C);
C=b.size;var a=_.U5("DIV");_.aX(a,G);G=_.Zg(a.firstElementChild!==void 0?a.firstElementChild:_.HzV(a.firstChild,!0));C=S2E(G,C);N.iconCache[P]=C.cloneNode(!0);delete N.responsePromises[P];return C}).catch(function(){}))})};
Gjo=function(N){var b,S=(b=N.requestAninmationFrameResolver)==null?void 0:b.promise;S||(N.requestAninmationFrameResolver=new _.GB,S=N.requestAninmationFrameResolver.promise,_.Ps.requestAnimationFrame(function(){var P;(P=N.requestAninmationFrameResolver)==null||P.resolve();N.requestAninmationFrameResolver=null}));
return S};
CDE=function(N,b){var S,P;return _.r(function(H){if(H.nextAddress==1)return N.waitForAnimationFrame?H.yield(Gjo(N),2):H.jumpTo(2);S=N.responsePromises[b];S||(P=function(){var K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:if(!N.cacheStorageAvailable){K=void 0;a.jumpTo(2);break}if(C=N.cacheStorageSync){a.jumpTo(3);break}return a.yield(N.cacheStorageAsync,4);case 4:C=a.yieldResult;case 3:K=C;case 2:return G=K,N.isNetworkFirstStrategy?a.return(N.fetchAndUpdateCache(b,G).catch(N.getCacheStorageResponse.bind(N,
b,G))):a.return(N.getCacheStorageResponse(b,G).catch(N.fetchAndUpdateCache.bind(N,b,G)))}})},S=N.renderWhenIdle?new Promise(function(K,C){_.XC(_.Dj,function(){P().then(K).catch(C)},10)}):P(),N.responsePromises[b]=S);
return H.return(S.catch(function(K){delete N.responsePromises[b];lg({error:(K==null?0:K.toString)?K.toString():"",url:b});throw K;}))})};
B6.prototype.fetchAndUpdateCache=function(N,b){var S=this;return _.r(function(P){return P.return(rlQ(S,N).then(function(H){clt(S,N,H,b);return H}))})};
var rlQ=function(N,b){var S;return _.r(function(P){if(N.numFetches<bME)return N.numFetches+=1,P.return(aHn(N,b).finally(function(){--N.numFetches;if(Object.keys(N.queuedResponseResolvers).length){var H=Object.keys(N.queuedResponseResolvers)[0],K=N.queuedResponseResolvers[H];delete N.queuedResponseResolvers[H];K.resolve(rlQ(N,H))}}));
S=new _.GB;N.queuedResponseResolvers[b]=S;return P.return(S.promise)})},aHn=function(N,b,S){S=S===void 0?2:S;
var P;return _.r(function(H){P={credentials:"same-origin",priority:"low"};return H.return(_.Ps.fetch(b,P).then(function(K){return K.ok?K:Promise.reject(Error("Bj`"+K.status+"`"+K.statusText))}).catch(function(K){if(S>0)return aHn(N,b,S-1);
throw K;}))})},clt=function(N,b,S,P){_.r(function(H){return P?H.return(new Promise(function(K){_.XC(_.Dj,function(){var C,G;
return _.r(function(a){switch(a.nextAddress){case 1:if(!N.isNetworkFirstStrategy){C=void 0;a.jumpTo(2);break}return a.yield(P.match(b).catch(function(){}),3);
case 3:C=a.yieldResult;case 2:if(G=C){a.jumpTo(4);break}return a.yield(P.put(b,S.clone()).catch(function(R){lg({error:(R==null?0:R.toString)?R.toString():"",url:b})}),4);
case 4:K(),_.Zd(a)}})},50)})):H.return()})};
B6.prototype.getCacheStorageResponse=function(N,b){return _.r(function(S){return b?S.return(b.match(N).then(function(P){return P&&P.ok?P:Promise.reject()})):S.return(Promise.reject())})};
var S2E=function(N,b){b===void 0||N.getAttribute("viewBox")||N.setAttribute("viewBox","0 0 "+b+" "+b);N.setAttribute("focusable","false");N.setAttribute("aria-hidden","true");b=_.T("killswitch_remove_icon_fill_color");N.getAttribute("fill")!=="currentcolor"&&N.getAttribute("fill")!=="currentColor"||b||N.removeAttribute("fill");try{N.style.pointerEvents="none",N.style.display="inherit",N.style.width="100%",N.style.height="100%"}catch(H){var S;lg({error:((S=H)==null?0:S.toString)?H.toString():""});
try{N.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(K){var P;lg({error:((P=K)==null?0:P.toString)?K.toString():""})}}return N},OMt=function(N){for(var b=_.O(N85),S=b.next();!S.done;S=b.next())if(N.startsWith(S.value)&&N.endsWith(".svg"))return!0;
return!1};
B6.prototype.resolveIcon=function(N){return this.iconSet.resolveIcon(N)};
var lg=function(N){_.$h(new _.jU("Error in IconManager",N))},PD_=function(N){if(_.T("wil_icons_cache_purge_killswitch"))return!1;
try{var b=_.Ps.localStorage}catch(K){return!1}if(!b||!N.cacheStorageAvailable)return!1;var S=function(K){try{var C;(C=b)==null||C.setItem("yt-icons-last-purged",K.toString())}catch(a){var G;lg({error:((G=a)==null?0:G.toString)?a.toString():""})}},P=Number(b.getItem("yt-icons-last-purged"));
if(!P)return P=new Date,P=P.setDate(P.getDate()-Math.floor(Math.random()*90+1)),S(P),!1;if(function(K,C){K=new Date(K);C=new Date(C);return C.getMonth()-K.getMonth()+12*(C.getFullYear()-K.getFullYear())}(P,Date.now())<3)return!1;
try{return _.Ps.caches.delete("yt-icons").then(function(K){K&&S(Date.now());return K}).catch(function(){return!1}).finally(function(){N.isPurging=!1})}catch(K){var H;
lg({error:((H=K)==null?0:H.toString)?K.toString():""});return!1}};
B6[RN]=[QXJ,_.YY,_.cq(igq)];_.LK=function(N,b){this.iconManager=N;this.iconsToFetch=b};
_.LK[RN]=[_.GS,_.cq(owt)];var RbL=function(){};var Woi=function(N,b,S){this.requestKey=N;this.sgU=b;this.uHI=S;this.pm2=function(){return new XMLHttpRequest};
this.dFl=void 0;this.tJX=[]};
Woi.prototype.getLatestChallengeResponse=function(){return this.uHI};
var OE9=function(N,b,S){var P,H,K,C;return _.r(function(G){if(G.nextAddress==1){_.fA("attestation_challenge_fetch");_.uC("att_fs",void 0,"attestation_challenge_fetch");if(!N.dFl)throw new _.yy(9,"Missing fetcher");return G.yield(N.dFl(b,S),2)}P=G.yieldResult;K=(H=P)==null?void 0:H.bgChallenge;if(!K)throw new _.yy(15,"Missing field");N.uHI=P;N.tJX.forEach(function(a){a(P)});
C=L59(K);_.uC("att_fc",void 0,"attestation_challenge_fetch");LA("attestation_challenge_fetch");return G.return(C)})},obE=function(N,b){var S,P,H,K,C;
return _.r(function(G){switch(G.nextAddress){case 1:S=new LT(100,3E5,.25,2),P=void 0;case 2:if(!(S.currBackoffCount_<10)){G.jumpTo(4);break}_.u4(G,5);if(!(S.currBackoffCount_>0)){G.jumpTo(7);break}return G.yield(NJb(S.getValue()),7);case 7:return G.yield(nUa(N,b),9);case 9:return H=G.yieldResult,G.return(H);case 5:K=_.UE(G);K instanceof _.yy?P=K:(C=K instanceof Error?K.message:"Unknown",P=new _.yy(9,C));d8V(S);G.jumpTo(2);break;case 4:if(P)throw P;throw new _.yy(9,"Unknown error");}})},nUa=function(N,
b){b=$BV(hbz(new eb9,b),N.requestKey);
var S=new _.GB,P=N.pm2();P.open("POST",N.sgU);P.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");P.setRequestHeader("Content-Type","application/json+protobuf");P.onload=function(){if(_.d7Y(P)){var H=v0l(P.responseText);S.resolve(H)}else S.reject(new _.yy(_.nbY(_.TW(P)),P.statusText))};
P.onerror=function(){S.reject(new _.yy(_.nbY(_.TW(P)),P.statusText))};
P.send(b.serialize());return S.promise};var mBE=function(N){this.networkStatusManager=N;this.isDownloaded=iVO===void 0?function(){return!1}:iVO;
this.isReady=!1;this.zeR=dBi(this)},dBi=function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield($Bb(),2);if(S.nextAddress!=3)return b=S.yieldResult,S.yield(Tjb(b),3);N.y5=S.yieldResult;Shp(N.y5).then(function(){N.isReady=!0});
return S.return(N.y5)})},kjw=function(N,b,S){N.y5?(N=N.y5.wik({gW:S,
o4w:!0,jRR:!0}),b.serviceIntegrityDimensions={poToken:N}):_.ge(Error("Dj"))};
mBE.prototype.processContext=function(N){var b=this;if(!N.input.match(_.q6(x19)))return _.Mp();var S=N.innerTubeRequest,P=S.videoId;return!P||this.isDownloaded(S)||this.networkStatusManager&&!this.y5&&!this.networkStatusManager.isNetworkAvailable()||_.T("webpo_exit_on_net_err")&&!this.y5&&(window.bgens===1||window.bgens===3)?_.Mp():this.y5?this.isReady?(kjw(this,S,P),_.Mp()):new tT(Shp(this.y5).then(function(){kjw(b,S,P)})):new tT(this.zeR.then(function(H){return _.r(function(K){if(K.nextAddress==
1)return K.yield(Shp(H),2);
kjw(b,S,P);_.Zd(K)})}))};var T8i=new _.nO("WEB_PO_CONTEXT_PROCESSOR");var t_i=function(N,b){var S=this;this.et1=0;var P;this.uIH=(P=b==null?void 0:b.uIH)!=null?P:window;this.networkStatusManagerPromise=b==null?void 0:b.networkStatusManagerPromise;var H;this.requestKey=(H=b==null?void 0:b.requestKey)!=null?H:_.m6("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var K;this.iuZ=(K=b==null?void 0:b.iuZ)!=null?K:function(a){return new qO(a)};
var C;P=(C=b==null?void 0:b.pJv)!=null?C:function(a,R,n){return new Woi(a,R,n)};
this.bgChallenge=L59(N.bgChallenge);this.ttlSeconds=ffp(DW(N.challenge||""));this.rz=P(this.requestKey,_.T("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Ps.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",N);this.qzT=b==null?void 0:b.qzT;b_U(this.rz);var G;this.qTX=(G=b==null?void 0:b.qTX)!=null?G:function(a){_.lH(S.uIH.document,"visibilitychange",
function(){S.uIH.document.visibilityState==="visible"&&a()})}},FoL=function(N){if(!N.vm){var b={maxAttempts:5,
z7g:N.ttlSeconds*1E3};P_b(N.uIH);N.vm=N.iuZ({rz:N.rz,zIh:{disable:_.T("html5_web_po_disable_remote_logging"),wL:"aGIf",fUZ:cZ9("html5_web_po_experiment_ids"),jO7:_.T("wpo_dis_lfdms")?0:1E3,hzd:function(P){var H=Jp9.get(P);H||(H=new iwc(P),H=new oc(H),Jp9.set(P,H));return H}},
xMN:b,kUw:N.bgChallenge,pNz:H_p});N.et1=Date.now();HEz(N.vm,function(){N.et1=Date.now()});
N.uIH.bgevmc={p:function(){var P;(P=N.vm)==null||P.pause()},
r:function(){var P;(P=N.vm)==null||P.resume()},
cr:function(){var P,H;return(H=(P=N.vm)==null?void 0:P.checkForRefresh())!=null?H:Promise.resolve()}};
N79(N.vm,function(){return _.r(function(P){return P.return(M_a(N))})});
var S=N.wi5.bind(N);N.networkStatusManagerPromise&&N.ttlSeconds>0&&N.networkStatusManagerPromise.then(function(P){P.listen("publicytnetworkstatus-online",S)});
N.qTX(S)}};
t_i.prototype.wi5=function(){if(Date.now()>this.et1+this.ttlSeconds*1E3){var N;(N=this.vm)==null||PQ9(N)}};
var M_a=function(N){if(N.s3D)return N.s3D;if(!N.vm)throw Error("Ej");N.s3D=new P0({vm:N.vm,rz:N.rz,lMA:!0,onError:H_p,xMN:N.qzT});return N.s3D},KgY=function(N,b){N=new t_i(N,b);
FoL(N);(b==null?0:b.zxf)||M_a(N)};var B8_=_.bQ_.ephemeralActionSelector,lHi=function(N,b){this.store=N;this.queue=[];b==null||b.addEventListener("yt-navigate-start",this.reset.bind(this))};
lHi.prototype.enqueue=function(N){var b=N.command,S=N.durationMs,P=N.elementToFocus;var H=N.label;var K=N.elementToFocus;N.command?H=_.cN("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:H,shortcut:_.cN("SHIFT_PLUS_ENTER")}):K&&(N=H+". "+_.cN("SHIFT_PLUS_ENTER")+" for more information.",H=_.cN("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:H,shortcut:_.cN("SHIFT_PLUS_ENTER")},N));S={announcement:H,durationMs:S!=null?S:8E3};b?S.command=b:P&&(P.classList.add("ephemeral-action-focusable-element"),S.selector=P.tagName+
".ephemeral-action-focusable-element");this.queue.push(S);LoJ(this)};
lHi.prototype.activate=function(N){var b=B8_(this.store.getState());if(b){if(b==null?0:b.command)_.ZN(b.command),this.store.dispatch(lFz(null));if(b==null?0:b.selector)b=document.querySelector(b.selector),_.qlf(b);N.preventDefault()}};
var LoJ=function(N){if(!B8_(N.store.getState())&&N.queue.length){var b=N.queue.shift();b&&(N.previousAnnouncement===b.announcement&&(b.announcement+="\u00a0"),N.store.dispatch(lFz(b)),N.previousAnnouncement=b.announcement,N.JSC$19036_timeoutId=setTimeout(function(){if(b.selector){var S;(S=document.querySelector(b.selector))==null||S.classList.remove("ephemeral-action-focusable-element")}N.store.dispatch(lFz(null));LoJ(N)},b.durationMs))}};
lHi.prototype.reset=function(){this.JSC$19036_timeoutId&&clearTimeout(this.JSC$19036_timeoutId);this.store.dispatch(lFz(null));this.queue.length=0;this.JSC$19036_timeoutId=void 0};
lHi[RN]=[_.OQ,_.cq(_.pi)];_.fK=new _.nO("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var fHE=new _.nO("AUTH_SERVICE_TOKEN");var C__=_.$E(["about:blank"]),O_I;var ugw=new _.nO("API_IFRAME_TOKEN");var GiO;GiO=new _.nO("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Qut=new _.nO("MISC_UI_SHARED_FLAGS_TOKEN");var xBi=function(){};
xBi.prototype.getFlag=function(N){if(N.configType!==2)throw Error("Fj");return oUt(N)};
var oUt=function(N){switch(N.flagType){case "bool":return _.T(N.flagName);case "int":return _.z4(_.d7(N.flagName));case "double":return _.d7(N.flagName);case "string":return _.m6(N.flagName);case "int32_list":return cZ9(N.flagName);case "int64_list":return cZ9(N.flagName).map(function(b){return _.z4(b)});
case "string_list":return _.kb(N.flagName);default:throw Error("Gj");}};var ug=function(N,b,S){b=b===void 0?{}:b;$S.call(this,S===void 0?"uninitialized":S);this.env=N;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];b.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=b.shouldWaitOnAsyncImmediate)};
_.F(ug,$S);ug.prototype.init=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(N(b.env),2):(N(b.env),P.jumpTo(2));if(P.nextAddress!=4)return b.jobSet?P.yield(b.jobSet.completedResolver.promise,4):P.jumpTo(4);S=_.kA();S.parkOrScheduleJob(function(){b.transition("rendering")},10,"ci");
_.Zd(P)})};
ug.prototype.initialRender=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(N(b.env),2):(N(b.env),P.jumpTo(2));if(P.nextAddress!=4)return b.jobSet?P.yield(b.jobSet.completedResolver.promise,4):P.jumpTo(4);S=_.kA();S.parkOrScheduleJob(function(){b.transition("rendered")},10,"cr");
_.Zd(P)})};
ug.prototype.afterRenderImmediate=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(N(b.env),2):(N(b.env),P.jumpTo(2));if(P.nextAddress!=4)return b.jobSet?P.yield(b.jobSet.completedResolver.promise,4):P.jumpTo(4);S=_.kA();S.parkOrScheduleJob(function(){b.transition("after-render-deferred")},10,"carml");
_.Zd(P)})};
ug.prototype.afterRenderDeferred=function(N){var b=this;return _.r(function(S){N(b.env);_.Zd(S)})};_.DH("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var iML={},Jl6=(iML.rendered={priority:0,callback:function(N){gR4(N.injector.resolve(Ev))}},iML);var qoO=new _.nO("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),UBE=new _.nO("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var ZMt=function(N){this.callbackFnMap=N;this.configMap={}};
ZMt.prototype.handleResponse=function(N){var b;if(N=(b=N.responseContext)==null?void 0:b.serviceTrackingParams)for(b=_.O(N),N=b.next();!N.done;N=b.next()){N=N.value;var S=N.params,P=N.service;if(S&&P){this.configMap[P]||(this.configMap[P]=new Ppl);N=this.configMap[P];var H=void 0,K=(H=this.callbackFnMap)==null?void 0:H[P];S=_.O(S);for(P=S.next();!P.done;P=S.next())H=P.value,P=H.key,H=H.value,P&&H&&(N.set(P,H),K&&K(P,H))}}};
ZMt.prototype.getConfig=function(N){return this.configMap[N]||void 0};
ZMt[RN]=[_.cq(UBE)];var juJ=!1,drE=0,a3e=null,nxL=null;var zbE=new _.nO("NETWORK_SLI_TOKEN");var Al5=function(N){this.networkSli=N};
Al5.prototype.fetch=function(N,b,S){var P=this,H;return _.r(function(K){H=XAw(P,N,b);return K.return(fetch(H).then(function(C){return P.handleResponse(C,S)}).catch(function(C){_.$h(C);
if((S==null?0:S.expectJsonStrict)&&C instanceof Vn&&C.errorType===1)return Promise.reject(C)}))})};
var RN4=function(N,b,S,P){var H,K,C,G,a,R,n;return _.r(function(d){switch(d.nextAddress){case 1:return H=XAw(N,b,S),_.u4(d,2),d.yield(fetch(H),4);case 4:K=d.yieldResult;_.su(d,3);break;case 2:throw _.UE(d),new Vn(2,"Failed to parse streaming response",H.url);case 3:if(!K.redirected&&!K.ok)throw(C=N.networkSli)==null||C.failure(),new _.jU("Streaming fetch request not ok",H.url);if(!K.body)throw new _.jU("No response body in streaming response",H.url);G={};if(_.T("web_streaming_fast"))return a=K.body.getReader(),
d.return(EUJ(N,a,G,P));R=K.body.pipeThrough(new TextDecoderStream).getReader();n=new _.Bo;return d.return(pAq(N,R,n,$QY,G,P))}})},XAw=function(N,b,S){if(N.networkSli){var P=_.Bq(_.$y(b,"key"))||"/UNKNOWN_PATH";
N.networkSli.start(P)}N=S;_.T("wug_networking_gzip_request")&&(N=Fds(S));return new window.Request(b,N)},EUJ=function(N,b,S,P){var H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g,e,se,Ca,ML,na,To,jp,Xf,YO,Wk,S9,Vu;
return _.r(function(n9){switch(n9.nextAddress){case 1:H=new TextDecoder("utf-8"),K=[],G=C=0,_.u4(n9,2,3);case 5:return n9.yield(b.read(),8);case 8:a=n9.yieldResult;R=a.value;if(n=a.done){d=0;if(K.length>C)for(d=K[C].length-G,m=C+1;m<K.length;m++)d+=K[m].length;d>0&&(k=mru(K,d,C,G),M=k.indexOf(123),l=k.lastIndexOf(125),M!==-1&&l!==-1&&l>M&&(u=k.subarray(M,l+1),J=JSON.parse(H.decode(u)),$QY(S,J),Z=void 0,(Z=P)==null||Z(S,J)));D=void 0;(D=N.networkSli)==null||D.success();return n9.return(S)}K.push(R);
Y=C;for(V=G;Y<K.length;)if(g=K[Y],e=g.indexOf(10,V),e===-1){if(Y===K.length-1)break;Y++;V=0}else{se=Y;Ca=e+1;ML=0;if(C===se)ML=Ca-G;else{ML=K[C].length-G;for(na=C+1;na<se;na++)ML+=K[na].length;ML+=Ca}To=mru(K,ML,C,G,se,Ca);jp=To.indexOf(123);Xf=To.lastIndexOf(125);if(jp!==-1&&Xf!==-1&&Xf>jp){YO=To.subarray(jp,Xf+1);try{Wk=JSON.parse(H.decode(YO)),$QY(S,Wk),S9=void 0,(S9=P)==null||S9(S,Wk)}catch(mc){throw new Vn(1,"Failed to parse streaming response object",H.decode(YO));}}C=Y;V=G=e+1;G===g.length&&
(C++,G=0,Y=C,V=0)}n9.jumpTo(5);break;case 3:_.xw(n9);b.releaseLock();_.Jv(n9,0);break;case 2:Vu=_.UE(n9);if(Vu instanceof Vn)throw Vu;throw new Vn(1,"Failed to process streaming response");}})},pAq=function(N,b,S,P,H,K){var C,G,a,R,n,d,m,k,M;
return _.r(function(l){if(l.nextAddress==1)return l.yield(b.read(),2);C=l.yieldResult;G=C.value;if(a=C.done)return(R=N.networkSli)==null||R.success(),l.return(H);try{n=S.parse(G)}catch(u){throw new Vn(1,"Failed to parse streaming response",G);}if(n!=null)for(d=_.O(n),m=d.next();!m.done;m=d.next())k=m.value,P(H,k),M=void 0,(M=K)==null||M(H,k);return l.return(pAq(N,b,S,P,H,K))})};
Al5.prototype.handleResponse=function(N,b){var S=N.text().then(function(P){if((b==null?0:b.jspbResponseCtor)&&N.ok)return bgL(b.jspbResponseCtor,P);P=P.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&P)try{var H=JSON.parse(P)}catch(C){throw new Vn(1,"JSON parsing failed after fetch");}var K;return(K=H)!=null?K:JSON.parse(P)});
N.redirected||N.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),S=S.then(function(P){_.$h(new _.jU("Error: API fetch failed",N.status,N.url,P));return Object.assign({},P,{errorMetadata:{status:N.status}})}));
return S};
Al5[RN]=[_.cq(zbE)];var Y2J=new _.nO("NETWORK_MANAGER_TOKEN");var ylO=[1,2,4,8,16,30],DB_=function(N){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=N.maxTimeMs;this.maxFrameCount=N.maxFrameCount===void 0?Math.ceil(60*N.maxTimeMs/1E3):N.maxFrameCount;N=_.O(ylO);for(var b=N.next();!b.done;b=N.next())this.brokenFrameSummarizers.push(new IHO(b.value/60*1E3))},V_Q=function(N){var b=N.frameCountInternal>=N.maxFrameCount;
return N.elapsedTimeMs>=N.maxTimeMs||b};
DB_.prototype.summarize=function(){for(var N=[],b=_.O(this.brokenFrameSummarizers),S=b.next();!S.done;S=b.next())S=S.value,S=S.brokenFrameCount!==0?{severityMs:Math.round(S.targetFrameTimeMs),eventCount:S.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(S.averageDurationBetweenEventsMs)}:void 0,S&&N.push(S);return{summaries:N,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.d0.Object.defineProperties(DB_.prototype,{elapsedTimeMs:{configurable:!0,enumerable:!0,get:function(){return this.startTime===void 0||this.prevTime===void 0?0:this.prevTime-this.startTime}},
frameCount:{configurable:!0,enumerable:!0,get:function(){return this.frameCountInternal}}});
var IHO=function(N){this.targetFrameTimeMs=N;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.d0.Object.defineProperties(IHO.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var gUE=function(){};
gUE.prototype.start=function(N,b){var S=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var P=new DB_({maxTimeMs:N});this.monitor=P;this.lastSummaryInternal=void 0;this.metadataToLog=b;return new Promise(function(H){var K=function(C){if(C===void 0)S.stop(),H(void 0);else if(S.monitor!==P)C=Object.assign({},P.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),H(C);else{var G=S.monitor;if(!V_Q(G)){G.frameCountInternal++;if(G.prevTime===
void 0)G.startTime=C;else for(var a=C-G.prevTime,R=_.O(G.brokenFrameSummarizers),n=R.next();!n.done;n=R.next()){n=n.value;var d=n.currTimeMs;n.currTimeMs+=a;a>n.targetFrameTimeMs+2&&(n.brokenFrameCount++,n.timeOfFirstBrokenFrameMs===void 0&&(n.timeOfFirstBrokenFrameMs=d),n.timeOfLastBrokenFrameMs=d)}G.prevTime=C}V_Q(S.monitor)?H(S.stop()):_.Dj.addJob(K,5,0)}};
_.Dj.addJob(K,5,0)})};
gUE.prototype.stop=function(N){if(!this.monitor)return this.lastSummaryInternal;var b=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(b.monitoringDurationMs){N=N!=null?N:this.metadataToLog;var S={droppedFramesSummary:b,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};N&&(S[N.type]=N.data);_.Dn("manualSmoothnessMeasurement",S)}this.monitor=void 0;this.lastSummaryInternal=b;this.metadataToLog=void 0;return b};_.ebE=new _.nO("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var $BO;$BO=function(N){this.JSC$19078_expiringStorage=new Az(N)};
_.hbt=function(N){if(_.kpL()&&(N=_.Ny_(_.Ul()+"::"+N)))return new $BO(N)};
$BO.prototype.set=function(N,b,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$19078_expiringStorage.set(N,b,S)};
$BO.prototype.get=function(N){return this.JSC$19078_expiringStorage.get(N)};
$BO.prototype.remove=function(N){this.JSC$19078_expiringStorage.remove(N)};_.Qi=function(){};
_.Qi.getInstance=function(){var N=_.hl("ytglobal.storage_");N||(N=new _.Qi,_.aB("ytglobal.storage_",N));return N};
_.Qi.prototype.estimate=function(){var N,b,S;return _.r(function(P){N=navigator;return((b=N.storage)==null?0:b.estimate)?P.return(N.storage.estimate()):((S=N.webkitTemporaryStorage)==null?0:S.queryUsageAndQuota)?P.return(TJo()):P.return()})};
_.aB("ytglobal.storageClass_",_.Qi);var f3e=0;var Ure=!1;var q26=_.$E(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),wA_=_.$E(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Q_o={"/":_.$D,"/?feature=ytca":_.$D,"/feed/downloads":_.oKL};var N7J=PMt.continuationCommandSelector,TN=function(N,b,S){this.JSC$19093_upliftPromise=N;this.store=b;this.JSC$19093_persistentStorePromiseAccessor=S};
TN.prototype.shouldPreferLocalResponse=function(N){return N.browseId==="FEdownloads"||N.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?!0:!1};
TN.prototype.localInnertubeResponse=function(N){var b=this;return _.r(function(S){return N.browseId==="FEdownloads"?_.T("kevlar_modern_downloads_page")?S.return(bEo(b)):S.return(Slw(b)):N.browseId==="FEsmart_downloads"&&_.T("kevlar_modern_downloads_page")?S.return(PQE(b)):S.return(Promise.reject(Error("Ij")))})};
TN.prototype.canProvideFallbackResponse=function(){return!0};
TN.prototype.localFallbackInnertubeResponse=function(N){var b=this,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return K.yield(b.JSC$19093_persistentStorePromiseAccessor(),2);case 2:S=K.yieldResult;if(N.browseId!=="SPaccount_downloads"||!S){K.jumpTo(3);break}return K.yield(oVO(S),4);case 4:if(P=K.yieldResult)return K.return(_.Pp(P));case 3:return N.browseId==="FEwhat_to_watch"?K.return(HEt(b)):(H=_.T("web_offline_continuation_automatic_retry")||_.T("web_offline_continuation_retry_button"))&&
N.continuation?K.return(sN5(b)):K.return(K6i(b))}})};
var HEt=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$19093_upliftPromise,2);b=_.FDo(N.store.getState().entities);return b.length?S.return(vbO(N,b)):S.return(K6i(N))})},Slw=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$19093_upliftPromise,2);if(P.nextAddress!=3)return b=OEE([{offlineItemSectionRenderer:{}}]),P.yield(CQ6(N,b),3);S=P.yieldResult;S.onResponseReceivedActions=[WP("REFRESH_DOWNLOADS")];return P.return(S)})},bEo=function(N){var b,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u;
return _.r(function(J){if(J.nextAddress==1)return J.yield(N.JSC$19093_upliftPromise,2);if(J.nextAddress!=3)return b=N.store.getState(),S=b.entities,P=_.Lu(S),H=_.fu(S),K=_.bNp(b),C=_.ND9(b),G=_.SM9(b),a=_.LDs(S),R=_.TL(P),n=_.uV(S),d=_.xZu(S),m=_.HNs(b),k=_.J0(b),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Vbf(P,H,a,d,K,C,R,n,G,m,k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},l="",_.T("kevlar_modern_downloads_skip_downloads_title")||
(l=_.cN("DOWNLOADS",void 0,"Downloads")),J.yield(GWE(N,M,l),3);u=J.yieldResult;u.onResponseReceivedActions=[WP("REFRESH_DOWNLOADS")];return J.return(u)})},PQE=function(N){var b,S,P,H,K,C,G,a,R;
return _.r(function(n){if(n.nextAddress==1)return n.yield(N.JSC$19093_upliftPromise,2);if(n.nextAddress!=3)return b=N.store.getState(),S=b.entities,P=_.Lu(S),H=_.TL(P),K=_.uV(S),C={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.eIa(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},G=_.cN("SMART_DOWNLOADS",void 0,"Smart downloads"),a=IOe(H,K),n.yield(GWE(N,C,G,a),3);R=n.yieldResult;R.onResponseReceivedActions=
[WP("REFRESH_DOWNLOADS")];return n.return(R)})},K6i=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(S3(N.JSC$19093_upliftPromise,N.store),2);b=P.yieldResult;S=OEE([fZo(b)]);return P.return(CQ6(N,S))})},sN5=function(N){var b,S,P,H;
return _.r(function(K){if(K.nextAddress==1)return b={},S=N7J(N.store.getState()),_.QN(b,_.J8,S),K.yield(S3(N.JSC$19093_upliftPromise,N.store,b,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);P=K.yieldResult;H={};_.QN(H,_.tek,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:P}}}],targetId:"browse-feedFEwhat_to_watch"});return K.return({responseContext:{},onResponseReceivedActions:[H]})})},OEE=function(N){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:N}}}}]}}},vbO=function(N,b){var S,P;
return _.r(function(H){var K={contents:no(b)};S=K&&K.contents?K:{};_.T("kevlar_modern_downloads_page")&&(S=Object.assign({},_.$3Y(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:S}}}]}};return H.return(CQ6(N,P))})},CQ6=function(N,b){var S,P;
return _.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$19093_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return S=H.yieldResult,H.yield(Hp(S),3);P=H.yieldResult;return H.return({responseContext:{},contents:b,topbar:P})})},GWE=function(N,b,S,P){var H,K;
return _.r(function(C){if(C.nextAddress==1)return C.yield(N.JSC$19093_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3)return H=C.yieldResult,C.yield(Hp(H),3);K=C.yieldResult;var G=C.return;var a=S;var R=P;a=a===void 0?"":a;R=R===void 0?"":R;a={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:a}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.cN("SETTINGS",void 0,"Settings"),accessibilityText:_.cN("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:_.wX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:R}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:a};
return G.call(C,{responseContext:{},contents:b,topbar:K,header:{pageHeaderRenderer:a}})})};var rza={},czL=(rza.rendered={priority:0,callback:function(N){a:{var b=void 0;try{var S;b:{if(_.VJL()){var P=_.pE(_.Ul()+"::pom");if(P){var H=new ec(P);break b}}H=void 0}var K=(S=H)==null?void 0:S.get("role_text");if(!K)break a;b={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:K}]}}}}}}catch(a){}b&&N.injector.resolve(_.Wq).resolveCommand(b)}try{var C=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(C){var G=JSON.parse(C);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
G&&N.injector.resolve(_.Wq).resolveCommand(G)}}catch(a){}}},rza);var ahQ,Rti={},W6q=(Rti.initialized={priority:10,callback:function(){ahQ=QG()}},Rti.rendering={callback:function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(ahQ,2);b=S.yieldResult;if(!b.endpoint)throw Error("Kj`"+_.Ps.location.href);JP(N,b);_.Zd(S)})}},Rti);var nbL={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.IX(_.T("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(N){var b=N.stack;if(b.includes("chrome://")||b.includes("chrome-extension://")||N.message.includes("chrome-extension://")||b.includes("moz-extension://")||
b.includes("local.adguard.org")||b.includes("auctioneer3.50million.club")||b.includes("youtubedownloader")||b.includes("youtube_home_page")||b.includes("is_youtube_video_no_longer_available")||b.includes("switchScreenSizeHack")||b.includes("yt_main_big_banner.js")||b.includes("YouTubeCenter.js")||b.includes("/mytube.js")||b.includes("JSON.parseWrapper")||b.includes("/inj_js/common.js")||b.includes("firebug-lite")||b.includes(".repl.co/")||b.includes("linkfix")||b.includes("playAfterAd")||N.message.includes("Access is denied for this document")&&
b.includes("<anonymous>")||N.fileName==="user-script"||N.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&b.includes("<anonymous>"))return!0;if(b.includes("https://www.youtube.com"))return!1;N=b.split("\n");if(!N.length)return!1;if(N.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var S=_.O(N),P=S.next();!P.done;P=S.next())P=P.value,(P.includes("https://")||P.includes("http://"))&&b++;return b/N.length>.95},
weight:0},{callback:function(N){return N.message==="Unknown Error"&&N.name.indexOf("NS_")===0},
weight:100},{callback:function(N){if(!_.rV)return!1;var b=N.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||N.message.includes("available to complete this operation"),S=N.stack.includes("webcomponents")&&N.message==="Object doesn't support this action";N=N.message.includes("object that does not implement interface Element");return b||S||N},
weight:0},{callback:function(N){return N.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(N){return N.message==="Operation is not supported"&&(N.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(N){return N.stack.includes("eval code (eval (code:1:1)")||N.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(N){return N.message.includes("Permission denied")&&N.stack.includes("this.domHandler")?!0:N.name.includes("TypeError")&&N.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(N){if(!N.stack)return!1;var b=N.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+N.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(N.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(N.message==="Unexpected token")return!0;N=_.O(b);for(b=N.next();!b.done;b=N.next())if(b=b.value,!(b.includes("<anonymous>")||
b.startsWith("load@")||b.startsWith("global code@")||b.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(N){return N.message==="Cannot read property 'experiments'"&&N.stack.includes("/s/player/")},
weight:500},{callback:function(N){return N.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(N){return N.stack.includes("/embed.js")?(N.params&&N.params&&(N.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.T("use_error_suppression"))var N=_.Vg("SUPPRESS_CLIENT_ERRORS",!1);else{if(N=_.R9)N=/Chrome\/(\d+)/.exec(_.dI()),N=(N?parseFloat(N[1]):NaN)>=66;N=!(N||_.a9&&_.ce(65)||_.hz&&_.ce(12.1)||rk&&_.ce(79))}return N},
weight:500}]};var dXw={},mXE=(dXw.initialized={priority:10,callback:function(N){N.injector.addProvider({provide:K29,useValue:N.root});N.injector.addProvider({provide:Ag6,useValue:eJf});N.injector.addProvider({provide:Xvw,useValue:nbL});var b={};N.injector.addProvider((b.provide=ETt,b.useFactory=function(S,P){return function(){$G_(S,P)}},b[RN]=[Ag6,
Xvw],b));N.injector.addProvider({provide:Vr,useClass:Vr})}},dXw);var kWo={},T7E=(kWo.initialized={priority:3,callback:function(){var N;if(N=VtL()){N=N.replace("/",".");var b=_.WN();b.set("tz",N);b.save();N=!0}else N=!1;N||(N=_.WN(),N.set("utco",-Math.floor((new Date).getTimezoneOffset())),N.save())}},kWo);var tUi={},MU_=(tUi.initialized={priority:10,callback:function(N){N.injector.resolve(Vr).start();N=_.Yn();var b=_.g8("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.g8("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.g8("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.g8("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Wp(_.Z1u(),{mainAppWeb:Object.assign({},N,{pageType:b})});_.Wp(z2E(),{mainAppWeb:Object.assign({},N,{pageType:b})});
_.Wp(AH9(),{mainAppWeb:N});_.Wp(Xoo(),{mainAppWeb:N});smE(function(){_.nS(AH9(),"FAILURE");_.nS(Xoo(),"FAILURE")});
eZa();$rE();j8O()}},tUi);var F6i={},B7E=(F6i.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.uC("dl"),_.kA().processSignal("pcl");else{var N=function(){_.uC("dl");_.kA().processSignal("pcl");window.removeEventListener("load",N)};
window.addEventListener("load",N)}}},F6i);var lhE={},L6w=(lhE.rendering={priority:0,callback:function(){var N=_.kA();N.parkOrScheduleJob(function(){N.processSignal("eocs")},10,"eor",5E3)}},lhE);var fh5=function(){};
_.F(fh5,kN);
fh5.prototype.resolveCommand=function(N,b){var S,P,H,K,C,G,a,R;return _.r(function(n){H=(S=_.t(N,_.yN9))==null?void 0:(P=S.dialog)==null?void 0:P.commentReplyDialogRenderer;if(!H)throw new _.jU("No dialog in createCommentReplyDialogEndpoint");C=(K=b.form)==null?void 0:K.event;if(!C)throw new _.jU("Event not passed in when resolving command");G=_.O(C.composedPath());for(a=G.next();!a.done;a=G.next())if(R=a.value,R.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||R.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return R.showReplyDialog(H),n.return();
_.Zd(n)})};var uQi=function(){};
_.F(uQi,kN);uQi.prototype.resolveCommand=function(){var N;return _.r(function(b){if(N=document.getElementById("creator-chatbots-panel"))N.style.display="none";_.Zd(b)})};var QN6=function(){};
_.F(QN6,kN);QN6.prototype.resolveCommand=function(N){var b,S,P,H,K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:return b=_.t(N,b14),((S=b)==null?void 0:S.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?a.yield((0,_.Mc)("NSzT5"),6):(P=b)!=null&&P.externalChannelId?a.yield((0,_.Mc)("NSzT5"),4):a.return();case 4:return H=_.xX6,C=(K=b.forceInstall)!=null?K:!1,a.yield(H(b.externalChannelId,C,b.surface),0);case 6:return G=_.xX6,a.yield(G("",!1,b.surface),7);case 7:return a.return()}})};var xi=function(N){this.JSC$19119_pageRequestService=N;this.JSC$19119_prefetchCoordinator=lgE()};
_.F(xi,kN);xi.prototype.resolveCommand=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1){S=_.t(N,FD4);if((P=S)==null||!P.taskId)throw Error("Lj");H=S.taskId;_.u4(C,2);return C.yield(_.Njq(b.JSC$19119_pageRequestService,N,{},"").then(function(G){if(!G)throw Error("Mj");},function(G){throw Error("Nj`"+G);
}),4)}if(C.nextAddress!=2)return uc6(b.JSC$19119_prefetchCoordinator,H),_.su(C,0);
K=_.UE(C);GC(b.JSC$19119_prefetchCoordinator,H,K);_.Zd(C)})};
xi[RN]=[_.u0];var o1=function(N,b){this.innertubeTransportService=N;this.JSC$19123_commandHandler=b};
_.F(o1,kN);o1.prototype.resolveCommand=function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1){S=_.t(N,FL9);if(S.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||S.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")P=S.boolValue?2:1,_.ut.getInstance().setState(P,!0,!0);return K.yield(_.pU(b.innertubeTransportService,N),2)}H=K.yieldResult;obL(b,H);_.Zd(K)})};
var obL=function(N,b){b.actions&&b.actions.forEach(function(S){N.JSC$19123_commandHandler.resolveCommand(S)})};
o1[RN]=[_.Mn,_.Wq];var ig={},Jy=(ig.addToPlaylistEndpoint=q7(BY),ig.addToToastAction=q7(U8),ig.adsControlFlowOpportunityReceivedCommand=q7(PY),ig.audioTrackSelectActionCommand=q7(X2),ig.backgroundAudioPlaybackCommand=q7(Yc),ig.captionLanguageSelectActionCommand=q7(yM),ig.captionPickerEndpoint=q7(Ig),ig.changeMiniAppPlayStateCommand=q7(la),ig.changeTimelyActionVisibilityCommand=q7(JL),ig.channelCreationFormEndpoint=q7(mP),ig.clearLocationCommand=q7(F2),ig.clearUrlParamCommand=q7(Ld),ig.copyLinkCommand=q7(w1),ig.copyTextEndpoint=
q7(Cd),ig.createCommentReplyDialogEndpoint=ATs(fh5),ig.createPlaylistServiceEndpoint=q7(No),ig.dismissDialogEndpoint=q7(ua),ig.dismissPlayerOverlayCommand=q7(D6),ig.entityUpdateCommand=q7(r1),ig.feedbackEndpoint=q7(Rg),ig.getAnswerCommand=q7(cx),ig.getPaymentsClientTokenCommand=q7(XS),ig.getTranscriptEndpoint=q7(ZP),ig.googlePaymentBillingCommand=q7(E8),ig.googlePaymentPurchaseManagerCommand=q7(pe),ig.hideCreatorChatbotEngagementPanelCommand=q7(uQi),ig.hideEngagementPanelEndpoint=q7(QM),ig.hideSheetCommand=
q7(xc),ig.hideSnackbarCommand=q7(Le),ig.insertRichSectionCommand=q7(TX),ig.listMutationCommand=q7(t7),ig.logGtmCommand=q7(kc),ig.notifyDropdownOptionSelectedCommand=q7(fd),ig.openAdAllowlistInstructionCommand=q7(_.HY),ig.openOnePickAddVideoModalCommand=q7(bs),ig.persistSubscriptionsDisplayPreferencesCommand=q7(vx),ig.pingingEndpoint=q7(sq),ig.playlistEditEndpoint=q7(Px),ig.playlistVotingRefreshPopupCommand=q7(Hx),ig.profileCardCommand=q7(SR),ig.refreshPanelEndpoint=q7(og),ig.saveImageToDeviceEndpoint=
q7(GX),ig.scrollToSectionEndpoint=ATs(RUO),ig.seekToVideoTimestampCommand=q7(VM),ig.selectCountryCommand=q7(O8),ig.setCookieCommand=q7(Ce),ig.setLocalStorageCommand=q7(us),ig.setPrefStorageEntryCommand=q7(rg),ig.setSettingEndpoint=q7(o1),ig.sfvAudioItemPlaybackCommand=q7(g1),ig.shareImageCommand=q7(aG),ig.sharingProviderDataCommand=q7(RG),ig.showAudioTrackPickerActionCommand=q7(eR),ig.showCaptionLanguageSelectActionCommand=q7($c),ig.showCreatorChatbotEngagementPanelCommand=q7(QN6),ig.showDialogCommand=
q7(Uq),ig.showEngagementPanelEndpoint=q7(Z6),ig.showFullscreenPlayerControlsCommand=q7(h7),ig.showSheetCommand=q7(jR),ig.showSnackbarCommand=q7(fe),ig.showTransientPlayerScrimOverlayCommand=q7(qR),ig.submitFormWithValidationFlowCommand=q7(d1),ig.talkToRecsDeselectCommand=q7(Qn),ig.talkToRecsNextCommand=q7(xk),ig.talkToRecsSelectCommand=q7(oG),ig.talkToRecsUpdateTextCommand=q7(is),ig.toggleEngagementPanelCommand=q7(zX),ig.undoFeedbackEndpoint=q7(nd),ig.updateEngagementPanelContentCommand=q7(A7),ig.updateUrlParamCommand=
q7(j4),ig.updateVideoMetadataCommand=q7(AL),ig.verifyCommand=q7(mP),ig.webNativeShareCommand=q7(Wx),ig.webSubmitFormCommand=q7(s8),ig.ACK_PLAYABLES_3P_DATA_CONSENT=q7(ne),ig.CANCEL_NAVIGATION=q7(dg),ig.COPY_SHARE_URL=q7(mx),ig.MINI_APP_EXIT_DIALOG_SEEN=q7(Te),ig.MINI_APP_OPEN_URL=q7(kk),ig.REQUEST_MINI_APP_FULLSCREEN=q7(tL),ig.RESUME_NAVIGATION=q7(Mo),ig.SHARE_PLAYABLE_WITH_HIGH_SCORE=q7(FS),ig.TELL_US_WHY=q7(WY),ig);
_.T("web_enable_prefetching_videos_on_home")&&(Jy.prefetchWatchCommand=q7(xi),Jy.registerTasksCommand=q7(c6));_.T("enable_share_panel_navigation_logging_fix_on_web")&&(Jy.shareEntityServiceEndpoint=q7(ia));_.T("web_use_flow_state_manager")&&(Jy.deleteFlowStepsCommand=q7(gT),Jy.flowNextStepCommand=q7(ev),Jy.flowPrevStepCommand=q7($W),Jy.getFlowCommand=q7(hi),Jy.updateFlowCommand=q7(qe));_.T("enable_ai_companion")&&(Jy.updateConversationIdCommand=q7(Oq),Jy.formDataDecoratorCommand=q7(vY));
var jal=Object.assign({},Jy);var iE6={},Jz6=(iE6.initialized={priority:10,callback:bbs},iE6);var UX5={},ZEo=(UX5.initialized={callback:function(N){var b={},S={};Eis().install((b.document_disposed={callback:function(){_.T("finalize_all_timelines")?bc9():BN();RZf("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Hyp();var P=N.injector.resolve(Vr);P.intervalId!==void 0&&(P.intervalId&&_.Dj.cancelJob(P.intervalId),P.intervalId=void 0,--P.currentPartitionIndex,P=Dl9(P),P>0&&kg4({mainAppWeb:_.Yn(),survivalSli:{partitionMinute:P,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));CkE(kD);TD!=null&&
TD.flush();sK&&sK.snapshotAndFlush();P=_.O(Jp9.values());for(var H=P.next();!H.done;H=P.next())H.value.snapshotAndFlush()}},b),(S.flush_logs={callback:function(){_.VE()}},S))}},UX5);var jNt={},ztL=(jNt.rendered={priority:0,callback:function(){var N=new pq9;N.increment("STARTED");if(_.Vg("LOGGED_IN")&&!_.Vg("IS_DBSC",!1)&&_.Vg("SERVER_VERSION")!=="test"&&_.Vg("SERVER_VERSION")!=="dev"&&!FRS()&&!MWd()){N.increment("EXECUTING");var b=document.createElement("iframe");b.style.display="none";_.HM(b,2,_.VK("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(b);N.increment("DONE")}}},
jNt);var AzJ={},XqQ=(AzJ.rendered={callback:function(){lgE().resume()}},AzJ);var EbQ={acknowledgeChannelTouStrikeCommand:Ub(tE),addToPlaylistServiceEndpoint:Ub(BT),addToPlaylistEndpoint:Ub(BT),addUpcomingEventReminderEndpoint:Ub(YL),browseEndpoint:Ub(Cwn),channelCreationFormEndpoint:Ub(RP),channelCreationServiceEndpoint:Ub(Wa),claimLegacyYoutubeChannelEndpoint:Ub(be),clearSearchHistoryEndpoint:Ub(ue),clearWatchHistoryEndpoint:Ub(jQ),commerceActionCommand:ZG(Dv),createBackstagePostEndpoint:Ub(e4),createBroadcastCommand:Ub(yv),createCommentEndpoint:Ub(G0),createCommentReplyEndpoint:Ub(CJ),
createLiveChatPollEndpoint:Ub(IP),createPlaylistServiceEndpoint:Ub(lp),crossAccountChannelTransferEndpoint:Ub(X9),deleteLiveChatMessageCommand:Ub(DE),deletePlaylistEndpoint:Ub(Ll),deleteVideoEndpoint:Ub(pl),dismissalEndpoint:Ub(Ma),feedbackEndpoint:Ub(F9),flagEndpoint:Ub(ip),getAccountSwitcherEndpoint:Ub(AE),verifyCommand:Ub(gg),getAccountsListInnertubeEndpoint:Ub(pJ),getCommentsFromInboxCommand:Ub(vT),getDownloadActionCommand:Ub(RI),getFlowCommand:ZG(fJ),getKidsBlocklistPickerCommand:Ub(Jt),getNotificationMenuEndpoint:Ub(cgi),
getPaymentInstrumentsParamsCommand:Ub(qQ),getPaymentsClientTokenCommand:ZG(Dv),getPdgBuyFlowCommand:Ub(MQ),getReportFormEndpoint:Ub(Ut),getSearchInVideoCommand:Ub(zK),getAnswerCommand:Ub(jY),getSurveyCommand:Ub(Et),getTranscriptEndpoint:Ub(yY),getPostVideoPreviewEndpoint:Ub(hL),decorateMessageEndpoint:Ub($k),likeEndpoint:Ub(nJ),liveChatActionEndpoint:Ub($L),liveChatEndpoint:Ub(eQ),liveChatItemContextMenuEndpoint:Ub(Vv),liveChatPurchaseMessageEndpoint:Ub(hE),liveChatReplayEndpoint:Ub(gB),manageLiveChatUserEndpoint:Ub(wB),
metadataUpdateCommand:Ub(st),moderateLiveChatEndpoint:Ub(NQ),modifyChannelNotificationPreferenceEndpoint:Ub(rn),notificationOptOutEndpoint:Ub(cT),openSuperStickerBuyFlowCommand:Ub(qa),performCommentActionEndpoint:Ub(KJ),playlistEditEndpoint:Ub(up),playlistEditorEndpoint:Ub(fl),recordNotificationInteractionsEndpoint:Ub(aI),reelWatchEndpoint:Ub(QY),refreshPanelEndpoint:Ub(nl),removeUpcomingEventReminderEndpoint:Ub(bp),resolveLocationCommand:Ub(HT),revealBusinessEmailCommand:Ub(SQ),searchEndpoint:Ub(_.agQ),
sendLiveChatMessageEndpoint:Ub(SY),sendLiveChatVoteEndpoint:Ub(PT),setSettingEndpoint:Ub(dB),shareEntityServiceEndpoint:ZG(T0),sharingProviderDataCommand:Ub(Xt),showEngagementPanelEndpoint:Ub(dn),showMoreDrawerCommand:Ub(kz),showSheetCommand:Ub(TK),showDialogCommand:Ub(m4),subscribeEndpoint:Ub(m$),transcriptSubmitCaptionCorrectionCommand:Ub(Yz),undoFeedbackEndpoint:Ub(le),unsubscribeEndpoint:Ub(kL),updateBackstagePostEndpoint:Ub(wg),updateCommentEndpoint:Ub(ca),updateCommentReplyEndpoint:Ub(rB),updateCommentsSettingsEndpoint:Ub(aP),
updateCreatorChannelInnertubeCommand:Ub(Ha),updateKidsBlacklistEndpoint:Ub(Zv),updateEngagementPanelContentCommand:Ub(tt),updatePdgFeatureEnablementCommand:Ub(Ft),updatedMetadataEndpoint:Ub(Kl),validateChannelHandleCommand:Ub(sf),updateChannelPageSettingsEndpoint:Ub(Pa),verifyAgeEndpoint:Ub(LJ),watchEndpoint:ZG(yn),whitelistEditEndpoint:Ub(II),ypcCancelRecurrenceEndpoint:Ub(VY),ypcCompleteTransactionEndpoint:Ub(gn),ypcFixInstrumentEndpoint:Ub($z),ypcGetCartEndpoint:Ub(eY),ypcGetOffersEndpoint:Ub(ht),
ypcHandleTransactionEndpoint:ZG(wn),ypcLogWalletAnalyticDataEndpoint:Ub(Nx),ypcOffersEndpoint:Ub(bg),ypcPauseSubscriptionCommand:Ub(SP),ypcRedeemCodeEndpoint:Ub(P6),ypcResumeSubscriptionCommand:Ub(H6),ypcUpdateFopEndpoint:Ub($z)},U4={},pqq=(U4.GET_ACCOUNT_MENU=Ub(Ef),U4.GET_NOTIFICATIONS_MENU=Ub(rgn),U4.GET_NOTIFICATIONS_INBOX=Ub(Ot),U4.GET_UNSEEN_NOTIFICATION_COUNT=Ub(GK),U4.GET_USER_MENTION_SUGGESTIONS=Ub(qo),U4.LOAD_GUIDE=Ub(G6Q),U4.SUBMIT_FEEDBACK=Ub(Ba),U4),Z8={},Yla=(Z8.CONTINUATION_REQUEST_TYPE_BROWSE=
Ub(Na),Z8.CONTINUATION_REQUEST_TYPE_SEARCH=Ub(At),Z8.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Ub(pd),Z8.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Ub(z0),Z8.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Ub(Of),Z8.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Ub(va),Z8.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Ub(oI),Z8.CONTINUATION_REQUEST_TYPE_GET_PANEL=Ub(WT),Z8),yzE={player:ZG(yn),watchNext:Ub(Eq)},IhJ={player:ZG(yn),reelItemWatch:Ub(QY),reelWatchSequence:Ub(xz)},DXQ={watchEndpoint:ZG(IG)},VUJ=
{commandEndpointMap:EbQ,signalEndpointMap:pqq,continuationEndpointMap:Yla,watchEndpointMap:yzE,reelWatchEndpointMap:IhJ,streamingEndpointMap:DXQ};var gbn,etQ,$Xo;_.htO=((etQ=(gbn=window).matchMedia)==null?void 0:($Xo=etQ.call(gbn,"(prefers-reduced-motion: reduce)"))==null?void 0:$Xo.matches)||!document.startViewTransition;var qli={},wqL={disableAllTransitions:_.htO,ignoredErrors:(qli.DOCUMENT_HIDDEN=!0,qli.WINDOW_SIZE_CHANGED=!0,qli.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,qli),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var NkJ=_.$E("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),SuL=function(N){var b=this;this.viewTransitionCoordinator=
N;this.disableTransitionsForUltraHigh=_.T("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=bho();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.m6("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.T("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.T("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.T("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.m6("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.T("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Dj.addJob(function(){b.registerRootElement();if(b.isAnyTransitionEnabled){var S=
_.d7("web_page_transition_exit_ms"),P=_.d7("web_page_transition_wait_ms"),H=_.d7("web_page_transition_enter_fast_ms"),K=_.d7("web_page_transition_watch_exit_ms"),C=_.d7("web_page_transition_watch_wait_ms"),G=_.d7("web_page_transition_watch_enter_ms"),a=_.d7("web_page_transition_watch_next_exit_ms"),R=_.d7("web_page_transition_watch_next_wait_ms"),n=_.d7("web_page_transition_watch_next_enter_fast_ms"),d=_.d7("web_page_transition_enter_ms"),m=_.d7("web_page_transition_watch_next_enter_ms");b.enableFasterTransitions&&
b.isUltraHighBucketDevice&&(d=H,m=n);isNaN(S)&&isNaN(P)&&isNaN(d)&&isNaN(K)&&isNaN(C)&&isNaN(G)&&isNaN(a)&&isNaN(R)&&isNaN(m)||!(S=yhb(NkJ,S,P,d,K,C,G,a,R,m))||(P=document.createElement("style"),P.textContent=FRL(S),document.head.appendChild(P))}},8)},bho=function(){var N=_.Ps.navigator.deviceMemory;
return N>=8||N===void 0?!0:!1};
SuL.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var N={};this.viewTransitionCoordinator.registerElement(document.documentElement,(N.slide="root-slide",N["lockup-to-watch"]="root-lockup-to-watch",N["learning-journey"]="root-learning-journey",N))}};
_.iBc=function(N,b){N.isLockupToWatchTransitionEnabled&&N.isLockupThumbnailRegistrationEnabled&&(N.registeredLockupThumbnail?N.lockupThumbnailRegisteredFromWatchEndpoint?_.$h(new _.jU("Lockup thumbnail registration order is incorrect.")):_.$h(new _.jU("Lockup thumbnail already registered.")):(N.registeredLockupThumbnail=b,_.PSQ(N,b)))};
_.PSQ=function(N,b){var S={};N.viewTransitionCoordinator.registerElement(b,(S["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",S),!0)};
SuL[RN]=[D8Q];var So9={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Hb9=["videoPrimaryInfoRenderer","title"],sMO=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Hha;Hha=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.sBL=_.A(function(N){N=_.h_(N,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var b=N.data,S=N.playlistData,P=N.expanded,H=N.onExpandClick,K=N.isReadyToResume,C=function(){var n;return!((n=S())==null||!n.contents)},G=function(){var n=S();
return n&&n.totalVideos&&n.currentIndex!==void 0?n.currentIndex+1+" / "+n.totalVideos:""};
N=_.Ob(function(){_.jP(_.aN().resolve(_.E_));return!1});
var a=_.Ob(function(){C()&&H&&H()}),R={};
return _.c("ytd-miniplayer-info-bar",{class:_.KU("ytdMiniplayerInfoBarHost",(R.ytdMiniplayerInfoBarHasPlaylistData=C,R)),"on:click":a},_.c("div",{class:"ytdMiniplayerInfoBarContent"},_.c("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":N},_.c(_.mD,{text:function(){var n=b();var d=S();if(d==null?0:d.contents){var m;n=(m=_.sDb(d))==null?void 0:m.title}else n=n==null?void 0:n.miniplayerTitle;return vr9(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.c("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.c(_.W,{cond:K,then:function(){return _.c(OpS,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Hha})}}),_.c("h1",null,_.c(_.mD,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var n=b();var d=S();n=K()?{simpleText:_.cN("CONTINUE_WATCHING",void 0,"Continue watching")}:(d==null?0:d.contents)?d.titleText:n==null?void 0:n.miniplayerSubtitle;return vr9(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.c(_.W,{cond:function(){return!!G()&&!K()},
then:function(){return _.c("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.c("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.c("span",null,G))}}))),_.c(_.W,{cond:C,
then:function(){return _.c("div",{class:"ytdMiniplayerInfoBarExpand"},_.c(_.ZR,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(n){H&&(H(),n.stopPropagation())}}},
iconName:function(){return P()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Bg");var KVt;KVt=_.A(function(N){return _.c("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.c(_.ZR,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:N.onTap}},
iconName:"yt-icons:close"}))},"Cg");
_.v0o=_.A(function(N){N=_.h_(N,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var b=N.size,S=N.playabilityStatus,P=N.isDisabled,H=N.isPictureInPicture,K=_.Ct("div");N=_.O(_.QF(void 0,void 0,"w4RAU"));var C=N.next().value,G=N.next().value;N=_.nU(_.sx);var a=!1,R=function(){return b().height<=0};
_.gA(function(){var k=b(),M=R(),l=C();l&&!M&&l.setInternalSize(k.width,k.height)},"BHFc2b");
_.pM(function(){var k,M,l;return _.r(function(u){if(u.nextAddress==1){k=_.aN().resolve(_.E_);M=k.getPlayerElement();if(!k.isMiniplayerActive()||!M||!K.value)return u.return();M.appendTo(K.value);return u.yield(M.getPlayerPromise(),2)}l=u.yieldResult;H()||l.setSizeStyle(!1,!0);G(l);_.Zd(u)})});
_.ej(function(){n()});
_.gA(function(){var k=C();if(k)if(P()){var M=k.getPlayerState();(a=M===-1||M===1||M===3)&&k.pauseVideo()}else n()},"Invykd");
var n=function(){if(a){a=!1;var k;(k=C())==null||k.playVideo()}},d=_.Ob(function(){_.jP(_.aN().resolve(_.E_))}),m={};
return _.c("ytd-miniplayer-player-container",{class:_.KU("ytdMiniplayerPlayerContainerHost",(m.ytdMiniplayerPlayerContainerHidden=R,m.ytdMiniplayerPlayerContainerHostShortsPip=N,m)),style:_.r5({width:function(){return b().width+"px"},
height:function(){return b().height+"px"}})},_.c("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:K}),_.c(_.W,{cond:function(){return!!S()&&!_.l5p(S())},
then:function(){return _.c(zi6,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var k;return((k=S())==null?void 0:k.errorScreen)||null},
status:function(){var k;return((k=S())==null?void 0:k.status)||null}})}}),_.c(_.W,{cond:P,
then:function(){return _.c("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":d},_.c(KVt,{onTap:function(){_.aN().resolve(_.E_).close()}}))}}))},"Gg");_.OhE=_.A(function(N){var b=N.toastData;var S=_.Ct("ytd-miniplayer-toast");N=_.O(_.qI(function(){return!!b()}));
var P=N.next().value,H=N.next().value;N=_.O(_.QF(!1,void 0,"BvfNQe"));var K=N.next().value,C=N.next().value,G=function(){var n;return _.es((n=b())==null?void 0:n.data.title)};
_.YU(function(){_.vS.requestAvailability();b()&&H(!1)});
var a,R;_.gA(function(){P()&&(_.bC(S.value,"iron-announce",{text:b().label+" "+G()}),a&&_.Dj.cancelJob(a),a=_.Dj.addLowPriorityJob(function(){C(!0)},2500))},"no1dZb");
_.gA(function(){K()&&(R&&_.Dj.cancelJob(R),R=_.Dj.addLowPriorityJob(function(){H(!1);C(!1)},300))},"G3yPNe");
N={};return _.c("ytd-miniplayer-toast",{el:S,class:_.KU("ytdMiniplayerToastHost",(N.ytdMiniplayerToastOpening=function(){return P()},N.ytdMiniplayerToastClosing=function(){return K()},N))},_.c(_.W,{cond:function(){var n;
return(n=b())==null?void 0:n.data},
then:function(n){return _.c(dAN,{className:"ytdMiniplayerToastThumbnail",data:n,width:78})}}),_.c("div",{class:"ytdMiniplayerToastInfo"},_.c("div",{class:"ytdMiniplayerToastLabel"},function(){var n;
return(n=b())==null?void 0:n.label}),_.c("div",{class:"ytdMiniplayerToastTitle"},G)))},"Jg");var d9a;var TLe=null;var Giw=_.A(function(N){var b=N.progressState;var S=N.multiMarkersPlayerBarRenderer;var P=N.progressBarWidth;var H=function(){return BLs(S())},K=function(){return fQf(b())},C=function(){return P()*(b().playedTime/b().videoDuration)};
return _.c("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.c(_.zj,{each:H},function(G,a){return _.c(CSt,{modifiedProps:K,chapters:H,index:a,playedProgressWidth:C,backgroundGradientPosition:function(){var R=K(),n=H(),d=a(),m=C();return(R.playedTime-AP(_.t(n[d],zN)))/R.playedTime*m}})}))},"Kg"),CSt=_.A(function(N){var b=N.modifiedProps;
var S=N.chapters;var P=N.index;var H=N.playedProgressWidth;var K=N.backgroundGradientPosition;N={};N=_.KU("ytChapteredProgressBarChapteredPlayerBarChapter",(N.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return C().isScrubbing},N.ytChapteredProgressBarHoveredMacroMarker=function(){return C().scrubberHovering},N.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return C().videoPosition==="seen"},N));
var C=function(){return uUL(b(),S(),P())},G=function(){var a=b();
var R=S(),n=P();if(uUL(a,R,n).videoPosition!=="active")a=0;else{var d=AP(_.t(R[n],zN));a=(a.playedTime-d)/((AP(_.t(R[n+1],zN))||a.videoDuration)-d)}return a};
return _.c("div",{class:N,style:_.r5({width:function(){var a=b(),R=S(),n=P(),d=_.t(R[n],zN);R=_.t(R[n+1],zN);return(R?AP(R)-AP(d):a.videoDuration-AP(d))/a.videoDuration*100+"%"},
"background-color":function(){a:{var a=C();switch(a.videoPosition){case "pending":a=a.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":a=a.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:a=""}}return a},
"background-size":function(){return(QMp(C())?H():"")+"px"},
"background-position-x":function(){return(QMp(C())?K():"")+"px"}})},_.c("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var a=b(),R=S(),n=P();if(uUL(a,R,n).videoPosition==="seen")var d=0;else d=AP(_.t(R[n],zN)),R=AP(_.t(R[n+1],zN))||a.videoDuration,a=a.videoDuration*a.percentLoaded,d=R<=a?1:d>=a?0:(a-d)/(R-d);return"width: "+d*100+"%"}}),_.c("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.r5({width:function(){return G()*100+"%"},
"background-size":function(){return(QMp(C(),G())?H():"")+"px"},
"background-position-x":function(){return(QMp(C(),G())?K():"")+"px"}})}))},"Lg");var r2L=function(N,b){b=b===void 0?FlE:b;var S,P=[],H,K=!1;return function(){var C=_.$I.apply(0,arguments);if(K&&S===this&&b(C,P))return H;H=N.apply(this,C);K=!0;S=this;P=C;return H}}(function(N){var b=N.heatMarkers,S=N.minHeightDp===void 0?0:N.minHeightDp,P=N.maxHeightDp===void 0?60:N.maxHeightDp;
var H=H===void 0?!1:H;var K=1E3/b.length;N=[];N.push({x:0,y:100});for(var C=0;C<b.length;C++){var G=void 0,a=((G=_.t(b[C],uLZ))==null?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(C+.5)*K;a=100-_.j3(a*100,S/321*100,P/321*100);C!==0||H||N.push({x:0,y:a});N.push({x:G,y:a});C===b.length-1&&N.push({x:1E3,y:a})}N.push({x:1E3,y:100});b="";for(S=0;S<N.length;S++)H=N[S],S===0?H="M "+H.x.toFixed(1)+","+H.y.toFixed(1):(P=Fsf(N[S-1],N[S-2],H),K=Fsf(H,N[S-1],N[S+1],!0),H=" C "+(P.x.toFixed(1)+","+P.y.toFixed(1)+
" "+K.x.toFixed(1)+","+K.y.toFixed(1)+" "+H.x.toFixed(1)+","+H.y.toFixed(1))),b+=H;return b});var c2n=_.A(function(N){var b=N.progressBarProps;var S=N.config;var P={};N=_.KU("ytHeatSeekerHost",(P.ytHeatSeekerHighContrast=N.highContrast,P));var H=function(){return cYL(S().chapterData)};
return _.c("yt-progress-bar-heatseeker",{class:N,style:function(){var K;return"height: 320px; display: "+(b().isDragging&&((K=H())==null?0:K.heatMarkers)?"block":"none")}},_.c(_.W,{cond:H,
then:function(K){return _.c(_.W,{cond:function(){return K().heatMarkers},
then:function(){return _.c("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.c("path",{d:function(){return r2L(K())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Mg");var ajw=_.A(function(N){var b=N.progressBarProps;var S=N.config;N={};N=_.KU("ytProgressBarLineProgressBarLine",(N.ytProgressBarLineProgressBarLineRounded=function(){return S().rounded},N.ytProgressBarLineProgressBarLineBottomInset=function(){return S().position===2},N));
return _.c("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.c("div",{class:N},_.c("div",{class:"ytProgressBarLineProgressBarBackground"}),_.c("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+b().percentLoaded*100+"%"}}),_.c("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var P=b();return"width: "+(P.videoDuration?_.j3(P.hoveredTime/P.videoDuration,0,1):0)*100+"%"}}),_.c("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+C7E(b())*100+"%"}})))},"Ng");
ajw.idomCompat=!0;var R6L=_.A(function(N){var b=N.progressBarProps;var S=N.playheadData;var P=N.interpolateDotPosition;var H=N.hidePlayhead;N={};var K=_.KU("ytProgressBarPlayheadProgressBarPlayheadDot",(N.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return b().isDragging},N.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!b().isDragging&&H()},N));
return _.c("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.r5({"margin-left":function(){return G19(b())*100+"%"},
transform:function(){return"translateX(-"+(P()?G19(b())*12:6)+"px)"}})},_.c(_.W,{cond:function(){var C;
return(C=_.$q(S)())==null?void 0:C.playheadImage},
then:function(C){var G={};return _.c("div",{class:_.KU("ytProgressBarPlayheadProgressBarPlayheadCustom",(G.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return b().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!b().isDragging&&H()},G)),
style:_.r5({"transform-origin":function(){return(P()?G19(b())*20:10)+"px center"}})},_.c(_.gG,{data:C,
alt:"","aria-hidden":"true"}))},
else:function(){return _.c("div",{class:K,style:_.r5({"transform-origin":function(){return(P()?G19(b())*12:6)+"px center"}})})}}))},"Og");
R6L.idomCompat=!0;var zC=function(N,b,S,P,H,K){this.getProgressBarRect=N;this.updateProgressBarRect=b;this.getFilmstripYPosition=S;this.setFineScrubbingDraggedTime=P;this.updateFilmStripDraggedYDistance=H;this.resetFilmStripYOffset=K;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.GR(this.onThrottledSeek,100,this)},WVE=function(N,b,S){return function(P){N.handleClick(P,b(),S())}},mYa=function(N,b){return function(S){n0L(N,
S,dYw(S),b())}},kia=function(N,b){return function(S){n0L(N,S,{x:S.clientX,
y:S.clientY},b())}},tHi=function(N,b,S){return function(P){var H=b(),K=S();
Tka(N,P,dYw(P),H,K,!0);if(K.onTouchMove)K.onTouchMove(H)}},FVn=function(N,b,S){return function(P){MH5(N,P,b(),S())}},Bka=function(N,b){return function(){N.handleMouseLeave(b())}},LVi=function(N,b,S){return function(){var P=b(),H=S();
lji(N,P,H);if(H.onTouchEnd)H.onTouchEnd(P)}},fji=function(N,b,S){return function(){var P=b(),H=S();
lji(N,P,H);if(H.onTouchEnd)H.onTouchEnd(P)}},unn=function(N,b,S){return function(){lji(N,b(),S())}},QBE=function(N){return function(b){if(b.keyCode===39||b.keyCode===38){var S,P;
(S=N())==null||(P=S.playerApi)==null||P.seekBy(5,void 0,void 0,72)}else if(b.keyCode===37||b.keyCode===40){var H,K;(H=N())==null||(K=H.playerApi)==null||K.seekBy(-5,void 0,void 0,71)}}},xYE=function(N,b,S){return function(P){!S().disableScrubbing&&N.startPosition&&MH5(N,P,b(),S())}},o0O=function(N,b,S){return function(){if(!S().disableScrubbing)if(N.startPosition){var P=b(),H=S();
lji(N,b(),S());if(H.onTouchEnd)H.onTouchEnd(P)}else b().setState({isDragging:!1})}},dYw=function(N){N=N.touches[0];
return{x:N.clientX,y:N.clientY}},MH5=function(N,b,S,P){if(b.buttons!==1){if(b.movementX||b.movementY)b.preventDefault(),b.stopPropagation(),N=ih6(N,S,b.clientX),S.setState({isHovering:!0,
hoveredTime:N*S.videoDuration})}else J2a(S),Tka(N,b,{x:b.clientX,y:b.clientY},S,P,!1)};
zC.prototype.handleMouseLeave=function(N){J2a(N)};
var J2a=function(N){N.isHovering&&N.setState({isHovering:!1,hoveredTime:0})},n0L=function(N,b,S,P){N.startPosition||(N.startPosition=S,N.updateProgressBarRect(),N.controlsWereVisibleBeforeDragging=P.controlsVisible,b.stopPropagation(),_.T("medium_progress_bar_modification")||b.preventDefault())},Tka=function(N,b,S,P,H,K){if(N.startPosition)if(K&&H.isInlinePlayback&&N.startPosition&&!N.hasDraggedTheMinimumDistance&&Math.abs(S.y-N.startPosition.y)>Math.abs(S.x-N.startPosition.x))lji(N,P,H);
else if(b.preventDefault(),b.stopPropagation(),P.videoDuration&&(N.startPosition&&!N.hasDraggedTheMinimumDistance&&(N.hasDraggedTheMinimumDistance=Math.abs(S.x-N.startPosition.x)>=1),H.enableFineScrubbing&&(N.startPosition&&(N.isDraggedForFineScrubbing=-(S.y-N.startPosition.y)>=60),!N.startPosition||S.y>=N.startPosition.y||(P.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:x9u(P.draggedTime,P,H.chapterData)}),N.setFineScrubbingDraggedTime(P.draggedTime),N.updateFilmStripDraggedYDistance(N.startPosition.y,
S.y,P))),N.hasDraggedTheMinimumDistance)){b=ih6(N,P,S.x);if(N.isDraggedForFineScrubbing){var C;(C=P.playerApi)==null||C.pauseVideo();P.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:P.draggedTime,filmStripXDistance:x9u(b*P.videoDuration,P,H.chapterData)})}H.enableFineScrubbing&&(!H.enableFineScrubbing||N.getFilmstripYPosition(P)<68)||P.setState({draggedTime:b*P.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:N.controlsWereVisibleBeforeDragging});var G;(G=
H.cancelAutohideControlsFn)==null||G.call(H)}},lji=function(N,b,S){var P=S.enableFineScrubbing&&b.fineScrubbingActiveState!=="off";
if(b.isDragging||P){P={isDragging:!1,playedTime:b.draggedTime,controlsVisible:N.controlsWereVisibleBeforeDragging};S.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(N.resetFilmStripYOffset(),P.fineScrubbingActiveState="off");var H=H===void 0?TLe:H;var K=_.Qh(0);if(K&&H){var C=Math.round(b.playedTime*1E3),G=Math.round(b.draggedTime*1E3);C>2147483647||G>2147483647||_.Im(K,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(C),endMediaTimeMs:String(G),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}b.setState(P);
N.seekThrottle.fire(b.draggedTime,b,7);_.T("mweb_new_progress_bar_play_on_seek")&&N.resumeVideo(b);S.unmuteOnSeek&&(S=b.playerApi,b.volumeMuted&&(S==null||S.unMute()))}else b.setState({controlsVisible:!b.controlsVisible}),(K=S.triggerAutohideControlsAfterDelayFn)==null||K.call(S);N.startPosition=null;N.hasDraggedTheMinimumDistance=!1;N.isDraggedForFineScrubbing=!1;N.controlsWereVisibleBeforeDragging=!1};
zC.prototype.handleClick=function(N,b,S){this.updateProgressBarRect();N.stopPropagation();N=ih6(this,b,N.clientX)*b.videoDuration;b.setState({playedTime:N});if(b.playerState!==2){var P;(P=S.triggerAutohideControlsAfterDelayFn)==null||P.call(S)}this.seekThrottle.fire(N,b,7)};
var ih6=function(N,b,S){N=N.getProgressBarRect(b);return _.j3(0,(S-N.left)/N.width,1)};
zC.prototype.resumeVideo=function(N){if(N.draggedTime<N.videoDuration){var b;(b=N.playerApi)==null||b.playVideo()}};
zC.prototype.onThrottledSeek=function(N,b,S){if(b=b.playerApi){var P;if((P=b.getVideoData())==null?0:P.isLive)P=this.getProgressState(b),N+=(P==null?void 0:P.seekableStart)||0;b.seekTo(N,void 0,void 0,void 0,S)}};
zC.prototype.getProgressState=function(N){var b=N==null?void 0:N.getPresentingPlayerType();return N==null?void 0:N.getProgressState(b)};var jBO,Zhq,z6a,XKQ,UYi,E0i,pKE,Yui,y2E;jBO=_.A(function(N){var b=N.progressBarProps;var S=N.config;var P=N.progressBarWidthPx;var H=N.chapterData;var K=Zbf(b,function(){return S().isShortsPage}),C=function(){return!b().isHovering&&!S().isShortsPage};
N={};var G=_.KU("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(N.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},N));
return _.c("yt-player-storyboard",null,_.c(_.W,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.c(_.W,{cond:K,then:function(a){return _.c(_.W,{cond:C,then:function(){return _.c("div",{class:G,"aria-hidden":"true"},_.c(UYi,{props:b,config:S,isBigboard:!0,chapterData:H}))},
else:function(){return _.c(Zhq,{props:b,frame:a,config:S,progressBarWidthPx:P,chapterData:H})}})}})}}))},"Pg");
_.A2E=_.A(function(N){var b=N.progressBarProps;var S=Zbf(b,N.isShortsPage);return _.c("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.c(_.W,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.c(_.W,{cond:S,then:function(P){return _.c(z6a,{frame:P,props:b,isBigboard:!0})}})}}))},"Qg");
Zhq=_.A(function(N){var b=N.props;var S=N.frame;var P=N.config;var H=N.progressBarWidthPx;N=N.chapterData;var K={};K=_.KU("ytPlayerStoryboardHost",(K.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},K.ytPlayerStoryboardHostInlinePlayer=function(){return P().isInlinePlayer},K.ytPlayerStoryboardHostFadeIn=function(){return P().useFadeInAnimation},K));
return _.c("div",{class:K,"aria-hidden":"true",style:function(){var C=b(),G=orI(S()),a=H();C=ibp(C)/C.videoDuration;var R=a*C,n=G/2+6;G=a-(G/2+6);return"left: "+(R<=n?n/a*100:R>=G?G/a*100:C*100)+"%"}},_.c(_.W,{cond:function(){var C=b();
return!(P().isShortsPage&&C.videoDuration<15)},
then:function(){return _.c(z6a,{frame:S,props:b,isBigboard:!1})}}),_.c(UYi,{props:b,
config:P,isBigboard:!1,chapterData:N}))},"Rg");
z6a=_.A(function(N){var b=N.frame;var S=N.props;var P=N.isBigboard;var H=function(){var G,a;return(a=(G=S().playerApi)==null?void 0:G.getVideoContentRect())!=null?a:{width:0,height:0}},K=function(){return orI(b())},C=function(){var G=b();
return G?G.height/G.rows:0};
N={};N=_.KU((N.ytPlayerStoryboardBigboardImageWrapper=P,N.ytPlayerStoryboardStoryboardImageWrapper=function(){return!P()},N));
return _.c("div",{class:N,style:function(){return"width: "+(P()?H().width:K())+"px; height: "+(P()?H().height:C())+"px;"}},_.c(XKQ,{frame:b,
storyboardWidth:K,storyboardHeight:C,storyboardScale:function(){return(P()?H().width:K())/K()}}))},"Sg");
XKQ=_.A(function(N){var b=N.frame;var S=N.storyboardWidth;var P=N.storyboardHeight;var H=N.storyboardScale;var K=function(){var C=b().row,G=b().column,a=S(),R=P(),n=H();return{left:-G*a*n,top:-C*R*n}};
return _.c("img",{src:function(){return b().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+K().left+"px; top: "+K().top+"px; width: "+b().width*H()+"px; height: "+b().height*H()+"px;"}})},"Tg");
UYi=_.A(function(N){var b=N.props;var S=N.config;var P=N.isBigboard;var H=N.chapterData;N={};N=_.KU("ytPlayerStoryboardMetadata",(N.ytPlayerStoryboardMetadataBigboard=P,N));return _.c("div",{class:N},_.c(_.W,{cond:P,then:function(){return _.c(_.nM,null,_.c(E0i,{props:b,config:S}),_.c(_.W,{cond:function(){a:{var K=b();var C=S(),G=H(),a;if((C==null?0:C.activeChapter)&&((a=_.t(C==null?void 0:C.activeChapter,zN))==null?0:a.title))K=!0;else{C=_.O(aQ9(G));for(C=C.next();!C.done;C=C.next()){K=(C=_.t(C.value,
xT9))&&JYo(K,C);break a}K=!1}}return K},
then:function(){return _.c(pKE,{props:b,config:S,isBigboard:!0,chapterData:H})}}))},
else:function(){return _.c(_.nM,null,_.c(pKE,{props:b,config:S,isBigboard:!0,chapterData:H}),_.c(E0i,{props:b,config:S}))}}))},"Ug");
E0i=_.A(function(N){var b=N.props;var S=N.config;N={};N=_.KU("ytPlayerStoryboardTimestamp",(N.ytPlayerStoryboardTimestampShorts=function(){return S().isShortsPage},N.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||S().isShortsPage&&!0},N));
return _.c("div",{class:N},_.c(_.nM,null,function(){return _.U99(ibp(b()))}))},"Vg");
pKE=_.A(function(N){var b=N.props;var S=N.config;var P=N.isBigboard;var H=N.chapterData;N={};P=_.KU("ytPlayerStoryboardTitle",(N.ytPlayerStoryboardTitleBigboard=P,N));return _.c("div",{class:P},_.c(_.W,{cond:function(){return!S().isShortsPage},
then:function(){return _.c(Yui,{props:b,activeChapter:function(){return S().activeChapter},
chapterData:H})}}))},"Wg");
Yui=_.A(function(N){var b=N.props;var S=N.activeChapter;var P=N.chapterData;return _.c(_.nM,null,_.c(_.zj,{each:function(){return aQ9(P())},
keyBy:"INDEX"},function(H){return _.c(_.nM,null,_.c(_.W,{cond:function(){return _.t(H(),xT9)&&JYo(b(),_.t(H(),xT9))},
then:function(){return _.c(y2E,{timedMarker:function(){return _.t(H(),xT9)}})}}))}),_.c(_.W,{cond:function(){var H;
return S()&&((H=_.t(S(),zN))==null?void 0:H.title)},
then:function(H){return _.c(_.mD,{text:H,noPreWrap:!0})}}))},"Xg");
y2E=_.A(function(N){var b=N.timedMarker;return _.c(_.nM,null,_.c("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.c(_.cX,{icon:function(){return b().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.c(_.mD,{text:function(){return b().label},
noPreWrap:!0}))},"Yg");_.IjO=_.A(function(N){var b=N.progressBarProps;var S=N.playheadData;var P=N.config;N=_.Ct("yt-progress-bar");var H=_.Ct("div"),K=_.Ct("div"),C=_.O(_.QF({width:0,left:0},void 0,"XjZjde")),G=C.next().value,a=C.next().value,R=function(){K.value&&a(K.value.getBoundingClientRect())},n=function(){G().width<=0&&R();
return G()};
_.R5("resize",R);var d=new zC(n,function(){},function(){return 0},function(){},function(){},function(){}),m=function(){return b()};
C=_.O(_.QF(!1,void 0,"uZlOJc"));var k=C.next().value,M=C.next().value;C=_.Ob(function(){M(!0);P().position===2?setTimeout(function(){R()},100):R()});
var l=_.Ob(function(){M(!1);Bka(d,m)()}),u=_.Ob(function(Xf){(P().doSeekOnClick||_.T("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&Xf instanceof PointerEvent&&Xf.pointerType==="mouse")&&WVE(d,m,P)(Xf);
return!1}),J=_.Ob(function(Xf){mYa(d,m)(Xf);
return!1}),Z=_.Ob(function(Xf){kia(d,m)(Xf);
return!1}),D=_.Ob(function(Xf){tHi(d,m,P)(Xf);
return!1}),Y=_.Ob(function(Xf){FVn(d,m,P)(Xf);
return!1}),V=_.Ob(function(){LVi(d,m,P)();
return!1}),g=_.Ob(function(){fji(d,m,P)();
return!1}),e=_.Ob(function(){unn(d,m,P)();
return!1}),se=_.Ob(function(Xf){QBE(m)(Xf);
return!1});
_.R5("mousemove",xYE(d,m,P));_.R5("mouseup",o0O(d,m,P));_.YU(function(){tXp(H.value);M(!1);R();o0O(d,m,P)()});
var Ca={};Ca=_.KU("ytPlayerProgressBarHost",function(){return P().className},(Ca.ytPlayerProgressBarHostReadOnly=function(){return P().disableScrubbing},Ca.ytPlayerProgressBarHostHidden=function(){return P().hideProgressBar&&!k()},Ca.ytPlayerProgressBarHostLowerPlayer=function(){return P().position===0},Ca.ytPlayerProgressBarHostBottomEdge=function(){return P().position===1},Ca.ytPlayerProgressBarHostBottomInset=function(){return P().position===2},Ca.ytPlayerProgressBarHostCustom=function(){return P().position===
3},Ca));
var ML={},na=_.KU("ytPlayerProgressBarBackground",(ML.ytPlayerProgressBarBackgroundHide=function(){return P().position===2&&!k()&&!b().isDragging},ML));
ML={};ML=_.KU("ytPlayerProgressBarDragContainer",(ML.ytPlayerProgressBarDragContainerBottomEdge=function(){return P().position===1},ML));
var To={};To=_.KU("ytPlayerProgressBarProgressBar",(To.ytPlayerProgressBarProgressBarInset=function(){return P().position===2},To.ytPlayerProgressBarProgressBarInsetMinimized=function(){return P().position===2&&!k()&&!b().isDragging},To));
var jp=function(){return Math.floor(C7E(b())*100)};
return _.c("yt-progress-bar",{el:N,class:Ca},_.c(_.W,{cond:function(){return P().position===2},
then:function(){return _.c("div",{class:na})}}),_.c("div",{el:H,
"on:click":u,"on:touchstart":J,"on:touchmove":D,"on:mouseenter":C,"on:mousedown":Z,"on:mouseleave":l,"on:mousemove":Y,"on:mouseup":g,"on:touchend":V,"on:touchcancel":e,"on:keydown":se,class:ML,role:"slider","aria-valuenow":jp,"aria-valuetext":function(){return jp()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return b().videoDuration},
draggable:_.T("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.cN("SEEK_SLIDER")},_.c("div",{el:K,class:To},_.c(c2n,{progressBarProps:b,config:P,highContrast:function(){return!!P().isInlinePlayback}}),_.c(_.W,{cond:function(){return P().chapterData&&RGp(P().chapterData)},
then:function(){return _.c(Giw,{progressState:b,multiMarkersPlayerBarRenderer:function(){return P().chapterData},
progressBarWidth:function(){return G().width}})},
else:function(){return _.c(ajw,{progressBarProps:b,config:P})}}),_.c(R6L,{progressBarProps:b,
playheadData:S,interpolateDotPosition:function(){return P().position!==2},
hidePlayhead:function(){return P().playheadDotBehavior===1&&!k()}}))),_.c(jBO,{progressBarProps:b,
config:function(){return{activeChapter:L_L(b(),P().chapterData),getProgressBarWidthPx:function(){return n().width},
isShortsPage:!!P().isShortsPage,isInlinePlayer:!!P().isInlinePlayback,useFadeInAnimation:!!P().isInlinePlayback}},
progressBarWidthPx:function(){return G().width},
chapterData:function(){return P().chapterData}}))},"Zg");
_.IjO.idomCompat=!0;Object.assign({},_.W_U(),{setState:function(){},
domMeasurements:{},appApi:_.Ob_(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var DYE;
_.VHL=_.A(function(){var N,b=(N=_.X0(jMf().playerApi))!=null?N:void 0;N=_.O(_.QF(!1,void 0,"Z9NQ1b"));var S=N.next().value,P=N.next().value;N=_.O(_.QF(!1,void 0,"HoVJXe"));var H=N.next().value,K=N.next().value;N=_.O(_.QF(!1,void 0,"DWCY3"));var C=N.next().value,G=N.next().value;N=_.O(_.QF(!1,void 0,"g4C2Zd"));var a=N.next().value,R=N.next().value;N=_.O(_.QF(0,void 0,"lmVfFb"));var n=N.next().value,d=N.next().value;N=_.O(_.QF(0,void 0,"mFLbzb"));var m=N.next().value,k=N.next().value;N=_.O(_.QF(!1,void 0,
"hQN4Wb"));var M=N.next().value,l=N.next().value;N=_.O(_.QF(0,void 0,"WWU0fb"));var u=N.next().value,J=N.next().value;N=_.O(_.QF(0,void 0,"MJ7LMd"));var Z=N.next().value,D=N.next().value;N=_.O(_.QF("",void 0,"hnomOe"));var Y=N.next().value,V=N.next().value;N=_.O(_.QF(-1,void 0,"ARe3pf"));var g=N.next().value,e=N.next().value,se=_.UB(function(){var Ca={controlsVisible:S(),isOverlayHidden:H(),shouldWaitToHideControls:C(),isDragging:a(),isHovering:M(),videoDuration:u(),playedTime:Z(),videoId:Y(),draggedTime:m(),
hoveredTime:n(),playerState:g()};return Object.assign({},_.W_U(),Ca,{domMeasurements:{},setState:function(ML){ML.controlsVisible!==void 0&&P(ML.controlsVisible);ML.isOverlayHidden!==void 0&&K(ML.isOverlayHidden);ML.shouldWaitToHideControls!==void 0&&G(ML.shouldWaitToHideControls);ML.isDragging!==void 0&&R(ML.isDragging);ML.isHovering!==void 0&&l(ML.isHovering);ML.draggedTime!==void 0&&k(ML.draggedTime);ML.hoveredTime!==void 0&&d(ML.hoveredTime);ML.videoDuration!==void 0&&J(ML.videoDuration);ML.playedTime!==
void 0&&D(ML.playedTime);ML.videoId!==void 0&&V(ML.videoId);ML.playerState!==void 0&&e(ML.playerState)},
appApi:_.Ob_(),playerApi:b})},void 0,"Au4PIf");
_.pM(function(){b==null||b.addEventListener("onVideoProgress",k1b(se));b==null||b.addEventListener("onVideoDataChange",m9Y(se));b==null||b.addEventListener("onStateChange",nrU(se))});
_.ej(function(){if(b==null?0:b.isReady())b==null||b.removeEventListener("onVideoProgress",k1b(se)),b==null||b.removeEventListener("onVideoDataChange",m9Y(se)),b==null||b.removeEventListener("onStateChange",nrU(se))});
return _.c("desktop-shorts-player-controls",null,_.c(DYE,{playerControlsProps:se}))},"ah");
DYE=_.A(function(N){var b=N.playerControlsProps;return _.c("div",{class:"desktopShortsPlayerControlsHost"},_.c(_.IjO,{progressBarProps:b,config:function(){return{isShortsPage:!0,hideProgressBar:b().videoDuration<30&&b().playerState!==2&&!b().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bh");_.g0i=_.A(function(N){function b(Ca){Ca!==0||d()?Ca>50&&(d()||!k())?(m(!1),M(!0)):Ca<=50&&(d()||k())&&(m(!1),M(!1)):m(!0)}
function S(Ca,ML){var na;return _.r(function(To){if(To.nextAddress==1)return To.yield(_.Cf(),2);na=To.yieldResult;ML&&na?(na.unMute(!0),Ca&&(AYY(Ca,na.getVolume()),u(na.getVolume()))):na&&(na.mute(!0),Ca&&AYY(Ca,0));_.Zd(To)})}
function P(Ca){var ML,na;return _.r(function(To){if(To.nextAddress==1)return To.yield(_.Cf(),2);ML=To.yieldResult;na=50;ML&&(na=ML.getVolume(),ML.isMuted()?AYY(Ca,0):AYY(Ca,na));u(na);_.Zd(To)})}
var H=N.orientation;N=_.Ct("desktop-shorts-volume-controls");var K=_.Ct("button"),C=_.GQ("input"),G=_.O(_.QF(!1,void 0,"RuD0I")),a=G.next().value,R=G.next().value,n=_.O(_.QF(!1,void 0,"YbWwwb"));G=n.next().value;n=n.next().value;var d=G,m=n;n=_.O(_.QF(!0,void 0,"F7Esub"));G=n.next().value;n=n.next().value;var k=G,M=n;G=_.O(_.QF(50,void 0,"QFGbod"));var l=G.next().value,u=G.next().value;G=_.UB(function(){var Ca=d();return _.T("web_shorts_keyboard_enable_mute_shortcut")?Ca?_.cN("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.cN("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Ca?_.cN("UNMUTE_VOLUME",void 0,"Unmute"):_.cN("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
n=_.UB(function(){var Ca=d(),ML=k();return{sources:[{clientResource:{imageName:Ca?_.T("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":ML?_.T("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.T("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var J=_.UB(function(){var Ca=l();return d()?Ca+"% volume muted":Ca+"% volume"},void 0,"QaT2u"),Z=_.UB(function(){return H()==="vertical_down"},void 0,"LkJ9ac");
_.YU(function(){function Ca(){R(!0)}
function ML(){R(!1)}
C&&C.value&&(C.value.addEventListener("focus",Ca),C.value.addEventListener("focusout",ML),P(C.value).then(function(){b(Number(XQY(C.value)))}));
K&&K.value&&(K.value.addEventListener("focus",Ca),K.value.addEventListener("focusout",ML));_.ej(function(){var na;C==null||(na=C.value)==null||na.removeEventListener("focus",Ca);var To;C==null||(To=C.value)==null||To.removeEventListener("focusout",ML);var jp;K==null||(jp=K.value)==null||jp.removeEventListener("focus",Ca);var Xf;K==null||(Xf=K.value)==null||Xf.removeEventListener("focusout",ML)})});
var D=_.Ob(function(){if(C&&C.value){var Ca=Number(XQY(C.value));zGs(Ca);u(Ca);C.value.style.setProperty("--gradient-percent",Ca+"%");b(Ca)}return!1}),Y=_.Ob(function(){C&&C.value&&(S(C.value,d()),m(!d()));
return!1}),V={},g={},e={},se={};
return _.c("desktop-shorts-volume-controls",{"on:pointerleave":_.Ob(function(){R(!1)}),
"on:pointerenter":_.Ob(function(){R(!0)}),
class:_.KU("ytdDesktopShortsVolumeControlsHost",(V.ytdDesktopShortsVolumeControlsHostVertical=Z,V.ytdDesktopShortsVolumeControlsHostModern=_.T("web_shorts_modern_controls"),V.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.T("web_shorts_modern_controls")&&a()},V)),
el:N},_.c(_.W,{cond:function(){return!Z()},
then:function(){var Ca={};return _.c("div",{class:_.KU("ytdDesktopShortsVolumeControlsBackgroundScrim",(Ca.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=a,Ca.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.T("web_shorts_modern_controls")&&a()},Ca))})}}),_.c("div",{class:_.KU((g.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=Z,g))},_.c("button",{"aria-label":G,
title:G,el:K,"on:click":Y,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},n?_.c(_.gG,{data:n,alt:G,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.c("div",{class:_.KU("ytdDesktopShortsVolumeControlsSliderContainer",(e.ytdDesktopShortsVolumeControlsSliderContainerExpanded=a,e.ytdDesktopShortsVolumeControlsSliderContainerVertical=Z,e.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=Z,e.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return a()&&
Z()},e))},_.c("input",{"aria-label":_.cN("VOLUME"),
title:_.cN("VOLUME"),el:C,"on:input":D,type:"range",class:_.KU("ytdDesktopShortsVolumeControlsNativeSlider",(se.ytdDesktopShortsVolumeControlsNativeSliderModern=_.T("web_shorts_modern_controls"),se)),id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":J,"aria-valuemin":0,"aria-valuemax":100})))},"ch");var e6_=_.A(function(N){var b=N.data;var S=N.overlayDensity;N={};return _.c("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.c(_.kY,{data:function(){return b().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(P){var H=P.data;
return _.c(_.Gg,{data:function(){return(S==null?void 0:S())===1?Object.assign({},H(),{avatar:{avatarViewModel:Object.assign({},_.t(H().avatar,_.UW),{avatarImageSize:"AVATAR_SIZE_M"})}}):H()}})}}),_.c(_.kY,{data:function(){return b().avatarStackViewModel}},{avatarStackViewModel:function(P){return _.c(_.rZ,{data:P.data})}}),_.c(_.mD,{className:_.KU("ytReelChannelBarViewModelChannelName",(N.ytReelChannelBarViewModelChannelNameLarge=function(){return(S==null?void 0:S())===1},N)),
text:function(){return b().channelName},
linkInheritColor:!0,userInput:!0}),_.c("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.c(_.kY,{data:function(){return b().subscribeButtonViewModel}},{subscribeButtonViewModel:function(P){var H=P.data;
return _.c(_.CW,{data:function(){return(S==null?void 0:S())===1?Object.assign({},H(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},H().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):H()},
isOverlay:!1})},
buttonViewModel:_.j$})),_.c("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.c(_.kY,{data:function(){var P,H;return(H=_.t((P=b())==null?void 0:P.sponsorButtonViewModel,YQz))==null?void 0:H.sponsorButton}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"dh");var $Yt=_.A(function(N){var b=function(){var H;return((H=N.overlayDensity)==null?void 0:H.call(N))===1},S=function(){return b()?22:16},P={};
return _.c("yt-reel-multi-format-link-view-model",{class:_.KU("ytReelMultiFormatLinkViewModelHost",(P.ytReelMultiFormatLinkViewModelHostTall=!0,P.ytReelMultiFormatLinkViewModelHostLarge=function(){return b()},P))},_.c(_.xg,{ariaLabel:function(){return N.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return N.data().command}},_.c("h3",{class:function(){return b()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.c(_.W,{cond:function(){return N.data().icon},
then:function(H){return _.c(_.gG,{data:H,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:S})}}),_.c(_.mD,{text:function(){return N.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"eh");
$Yt.idomCompat=!0;var h6L=_.A(function(N){var b=N.data;var S=N.overlayDensity;var P=N.extractOverlay;var H=_.Ct("yt-shorts-suggested-action-view-model");N=_.O(_.QF(!1,void 0,"S60Hzc"));var K=N.next().value,C=N.next().value;N=_.O(_.QF(!1,void 0,"O76chf"));var G=N.next().value,a=N.next().value,R=function(){return b().isMultiLineSa},n=_.nf(PeE,function(){var e,se;
return(se=(e=b().toggleableContent)==null?void 0:e.entityKey)!=null?se:""}),d=function(){var e,se,Ca;
return(Ca=b().toggleableContent)!=null&&Ca.entityKey?(se=(e=n())==null?void 0:e.value)!=null?se:!1:!1},m=function(){var e,se,Ca,ML,na,To,jp,Xf,YO,Wk,S9;
return b().toggleableContent?d()?(e=b().toggleableContent)==null?void 0:e.toggledData:(se=b().toggleableContent)==null?void 0:se.untoggledData:{primaryText:(Xf=(Ca=b().defaultContent)==null?void 0:Ca.primaryText)!=null?Xf:b().text,secondaryText:(ML=b().defaultContent)==null?void 0:ML.secondaryText,onTapCommand:(YO=(na=b().defaultContent)==null?void 0:na.onTapCommand)!=null?YO:b().onTapCommand,icon:(Wk=(To=b().defaultContent)==null?void 0:To.icon)!=null?Wk:b().icon,image:(S9=(jp=b().defaultContent)==
null?void 0:jp.image)!=null?S9:b().image}},k=function(){return R()?b().trailingTapTarget:void 0},M=function(e,se){return function(){return K()?se:e}},l=function(){return{leadingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(S==null?void 0:S())===1?M("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):M("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:M("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
N={};N=_.KU((N.ytShortsSuggestedActionViewModelStaticHost=function(){return!R()},N.ytShortsSuggestedActionViewModelDynamicHost=R,N.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return R()&&G()},N.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return R()&&!G()},N.ytShortsSuggestedActionViewModelExtractOverlay=function(){return P==null?void 0:P()},N));
_.YU(function(){if(R()){var e=0,se;if((se=b().animationParams)==null?0:se.shouldExpand){var Ca,ML;e=((ML=(Ca=b().animationParams)==null?void 0:Ca.expansionDelaySecs)!=null?ML:0)*1E3}var na,To=((na=b().animationParams)==null?0:na.shouldExpand)?setTimeout(function(){C(!0)},e):void 0,jp,Xf;
e=((jp=b().animationParams)==null?0:jp.visibilityDelaySecs)?((Xf=b().animationParams)==null?NaN:Xf.visibilityDelaySecs)*1E3:0;var YO=setTimeout(function(){a(!0)},e);
_.ej(function(){To&&clearTimeout(To);clearTimeout(YO)})}});
var u=function(e){_.AM(e,Object.assign({},{form:{element:H.value}}))},J=_.Ob(function(){var e,se=(e=m())==null?void 0:e.onTapCommand;
se&&u(se)}),Z=_.Ob(function(){var e,se;
if(e=(se=k())==null?void 0:se.onTapCommand)return u(e),!1}),D=_.r5({"vertical-align":"bottom",
"border-radius":function(){var e;return R()?((e=b().defaultContent)==null?0:e.isCircleImage)?"50%":"4px":"0px"},
width:function(){var e,se,Ca;return R()&&((e=b().defaultContent)==null?0:e.imageSize)?((Ca=(se=b().defaultContent)==null?void 0:se.imageSize)!=null?Ca:24)+"px":null},
height:function(){var e,se,Ca;return R()&&((e=b().defaultContent)==null?0:e.imageSize)?((Ca=(se=b().defaultContent)==null?void 0:se.imageSize)!=null?Ca:24)+"px":null}}),Y=function(){return R()?l().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},V=function(){return R()?l().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},g={};
return _.c("yt-shorts-suggested-action-view-model",{class:N,el:H},_.c("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.c("button",{class:_.KU(function(){return R()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var e;
return(e=b().useFullRoundedBorder)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!k()&&R()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":R()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var e;
return(e=b().disableFixedHeight)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(g.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(S==null?void 0:S())===1},g.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return P==null?void 0:P()},g)),
"on:click":J},_.c(_.of,{model:{color:4}}),_.c("div",{class:_.KU(function(){return R()?l().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.c(_.W,{cond:function(){var e;
return(e=m())==null?void 0:e.image},
then:function(e){return _.c(_.gG,{data:e,alt:"",className:V,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:D})}}),_.c(_.W,{cond:function(){var e,se;
return(e=m())==null?void 0:(se=e.icon)==null?void 0:se.iconType},
then:function(e){return _.c(_.cX,{icon:e,active:d,className:Y})}})),_.c("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.c(_.W,{cond:function(){var e;
return(e=m())==null?void 0:e.primaryText},
then:function(e){var se={};return _.c("div",{class:_.KU("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(se.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(S==null?void 0:S())===1},se))},_.c(_.mD,{text:e}))}}),_.c(_.W,{cond:function(){var e;
return(e=m())==null?void 0:e.secondaryText},
then:function(e){return _.c("div",{class:function(){return l().secondaryText()}},_.c(_.mD,{text:e}))}}))),_.c(_.W,{cond:k,
then:function(e){return _.c("div",{class:_.KU(function(){return l().trailingSection()},function(){var se,Ca;
return(P==null?void 0:P())&&((Ca=(se=l()).trailingSectionExtractOverlay)==null?void 0:Ca.call(se))||""}),
"aria-label":function(){var se;return(se=e().a11yLabel)!=null?se:""},
"on:click":Z,role:"button",tabindex:0},_.c(_.of,{model:{color:4}}),_.c(_.cX,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"fh");var qut=_.A(function(N){var b=N.data;var S=N.overlayDensity;var P=_.Ct("yt-shorts-video-title-view-model");N=_.Ob(function(C){if(_.Qw(_.uK(C),P.value,["A".toString()]))return!1;(C=b().truncatedTextOnTapCommand)&&_.AM(C);return!1});
var H={},K={};return _.c("yt-shorts-video-title-view-model",{el:P,class:_.KU("ytShortsVideoTitleViewModelHost",(H.ytShortsVideoTitleViewModelHostClickable=function(){return!!b().truncatedTextOnTapCommand},H)),
"on:click":N},_.c("h2",{class:_.KU("ytShortsVideoTitleViewModelShortsVideoTitle",(K.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(S==null?void 0:S())===1},K.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.T("enable_shorts_declutter_ui")},K))},_.c(_.mD,{text:function(){return b().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(S==null?void 0:S())===1}})))},"gh");_.wKt=_.A(function(N){var b=N.data;var S=N.overlayDensity;var P=N.extractOverlay;var H=function(){return(S==null?void 0:S())===1};
return _.c("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.c(_.kY,{data:function(){return b().metadataItems}},{badgeViewModel:function(K){K=K.data;
return _.c("div",{class:_.KU(function(){return H()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.c(_.LH,{data:K}))},
playerDisclosureViewModel:function(K){K=K.data;return _.c("div",{class:_.KU(function(){return H()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.c(_.IoE,{data:K,
extractOverlay:P}))},
shortsSuggestedActionViewModel:function(K){K=K.data;return _.c("div",{class:_.KU(function(){return H()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.c(h6L,{data:K,
overlayDensity:S,extractOverlay:P}))},
reelChannelBarViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return H()},C))},_.c(e6_,{data:K,
overlayDensity:S}))},
reelMultiFormatLinkViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return H()},C))},_.c($Yt,{data:K,
overlayDensity:S}))},
shortsVideoTitleViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return H()},C))},_.c(qut,{data:K,
overlayDensity:S}))},
reelSoundMetadataViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return H()},C))},_.c(_.wWt,{data:K,
overlayDensity:S}))},
toggleButtonViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytReelMetapanelViewModelMetapanelItem",(C.ytReelMetapanelViewModelExpansive=function(){return H()},C))},_.c(_.Hc,{data:K}))}}))},"hh");var NeQ=_.A(function(N){var b=_.h_(N,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),S=b.size,P=b.onTap,H=b.disabled,K=b.tooltipText;return _.c("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.c(_.ZR,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:S(),disabled:H(),tooltipText:K(),onTap:P}},
iconName:N.iconType}))},"ih"),bvt=_.A(function(N){function b(n){n.stopPropagation();
n.code==="ArrowUp"?(n.preventDefault(),yY_(G.value)):n.code==="ArrowDown"?(n.preventDefault(),IQ_(G.value)):n.code==="KeyM"?Erb():(n.code==="KeyK"||n.code==="Space")&&pQu(a())}
var S=_.h_(N,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});N=S.previousButtonDisabled;var P=S.nextButtonDisabled,H=S.data,K=S.playabilityStatus,C=S.previewThumbnail,G=_.Ct("ytd-shorts-miniplayer-overlay"),a=_.nU(_.YQu),R;_.pM(function(){(R=_.hh(G.value))&&R.addEventListener("keydown",b)});
_.ej(function(){var n;(n=R)==null||n.removeEventListener("keydown",b)});
S=function(){var n,d;var m=_.t((n=H())==null?void 0:(d=n.reelPlayerOverlayRenderer)==null?void 0:d.buttonBar,ADb);if(m){var k;n=Object.assign({},m,{buttonViewModels:(k=m.buttonViewModels)==null?void 0:k.filter(YoU)})}else n=void 0;return n};
return _.c("ytd-shorts-miniplayer-overlay",{el:G,class:"ytdShortsMiniplayerOverlayHost"},_.c("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.r5({"background-image":function(){var n=C();return n?'url("'+_.NE(n.thumbnails)+'")':""}})}),_.c("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.c("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.c(NeQ,{iconType:function(){var n=a();
return n===2||n===-1||n===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){pQu(a())},
tooltipText:function(){var n=a();return n===1||n===3?_.cN("PLAYER_LABEL_PAUSE"):_.cN("PLAYER_LABEL_PLAY")}}),_.c(_.g0i,{orientation:"horizontal_right"})),_.c("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.c(NeQ,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:N,onTap:function(){yY_(G.value)},
tooltipText:_.cN("PREVIOUS_VIDEO_LABEL")}),_.c(NeQ,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:P,onTap:function(){IQ_(G.value)},
tooltipText:_.cN("NEXT_VIDEO_LABEL")}),_.T("web_shorts_pip_like_button")?_.c(_.W,{cond:S,then:function(n){return _.c("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.c(_.EmE,{data:n,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.c("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.c(_.W,{cond:function(){var n,d;
return _.t((n=H())==null?void 0:(d=n.reelPlayerOverlayRenderer)==null?void 0:d.metapanel,Xt9)},
then:function(n){return _.c("div",{class:_.KU("ytdShortsMiniplayerOverlayInteractive")},_.c(_.wKt,{data:n}))}})),_.c("div",{class:_.KU("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var n;return!((n=H())==null||!n.adsOverlay)||K()&&!BMs(K())}},_.c("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.c(_.VHL,null)))),_.c(_.W,{cond:function(){var n=H(),d,m;
n=_.t(n==null?void 0:(d=n.adsOverlay)==null?void 0:(m=d.fulfillmentContent)==null?void 0:m.fulfilledLayout,Tul);return _.t(n==null?void 0:n.renderingContent,LK9)},
then:function(n){return _.c("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.c(DUV,{data:n}))}}))},"kh");var D9e=_.A(function(){var N=_.O(_.QF(new _.Jh(NaN,NaN),void 0,"hq9Bjf")),b=N.next().value,S=N.next().value;N=_.O(_.QF(!1,void 0,"Mu3aZc"));var P=N.next().value,H=N.next().value,K=_.O(_.QF(!1,void 0,"LGtoFb"));N=K.next().value;var C=K.next().value,G=_.aN().resolve(_.E_).miniplayerPropSignalMap[0],a=G.data,R=G.shortsData,n=G.nextButtonDisabled,d=G.shortsPreviewThumbnail,m=G.previousButtonDisabled,k=G.externalPlaylistData;K=G.toastData;var M=G.playabilityStatus,l=G.isDisabled,u=G.playerVe,J=G.closeVe;
G=_.nU(_.sx);_.OX("yt-pip-window-resized",function(V){S(V)});
_.OX("yt-activate-pip-miniplayer",function(){return _.r(function(V){C(!0);_.Zd(V)})});
var Z=function(){var V;return!((V=k())==null||!V.contents)&&P()},D=function(){var V=b(),g=!!a(),e=Z();
V=V.clone();g&&(V.height-=76);e&&(V.height-=285);return V},Y=function(){H(!P())};
_.gA(function(){var V=u(),g=_.Qh(11),e=_.uZ(11);g&&e&&V&&(_.AZ(g,e,V),e=J())&&(_.X8(g,V,[e]),_.pA(g,[e]))},"fHkmfb");
return _.c("ytd-pip-container",{class:"ytdPipContainerHost"},_.c(_.W,{cond:N,then:function(){return _.c(_.v0o,{isDisabled:l,playabilityStatus:M,size:D,isPictureInPicture:!0})}}),_.c(_.W,{cond:a,
then:function(){return _.c(_.sBL,{data:a,expanded:P,onExpandClick:Y,playlistData:k})}}),_.c(_.W,{cond:Z,
then:function(){return _.c("div",{class:"ytdPipContainerPlaylistPanel"},_.c(_.nIn,{data:k,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.c(_.W,{cond:G,
then:function(){return _.c(bvt,{data:R,nextButtonDisabled:n,previousButtonDisabled:m,playabilityStatus:M,previewThumbnail:d})}}),_.c("div",{class:"ytdPipContainerToast"},_.c(_.OhE,{toastData:K})))},"mh");var Ay=function(N,b,S){var P=this;this.pipController=N;this.JSC$19257_clientRoot=b;this.JSC$19257_pageRequestService=S;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=P7e();this.JSC$19257_watchPipEnabled=_.T("web_watch_pip");this.watchPipManualOnlyEnabled=_.T("web_watch_pip_manual");this.shortsPipEnabled=_.T("web_shorts_pip");this.JSC$19257_watchWhileEnabled=_.T("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),
"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.hT(_.h0(),zYb,function(H){P.isSingleOptionSurveyActive=H});
this.JSC$19257_onPlayerPlayVideo=this.JSC$19257_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.Kt(_.sX.getInstance(),this.miniplayerServiceActionMap,this.JSC$19257_clientRoot);N.pictureInPictureSupported()&&_.Dn("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},rQ9,rdE,vhE,cdL,an_,Urd;
Ay.prototype.handleMediaSessionPipActivation=function(N){var b=this,S,P;return _.r(function(H){_.gU().mediaSessionPipActivation=!0;S=_.aN().resolve(_.$9);if(S.isOnWatch()&&b.JSC$19257_watchPipEnabled){if(b.watchPipManualOnlyEnabled&&((P=N)==null?void 0:P.enterPictureInPictureReason)!=="useraction")return e1(),H.return();_.gU().watchPipActivation=!0;_.Sv5(b,S.data);return H.jumpTo(0)}return S.isOnShorts()&&b.shortsPipEnabled?(_.gU().shortsPipActivation=!0,_.P5L(b),H.jumpTo(0)):b.isMiniplayerActive()&&
b.JSC$19257_watchPipEnabled&&!b.watchWhileMode?H.yield(Hvo(b),0):H.jumpTo(0)})};
var Hvo=function(N){var b,S,P,H;return _.r(function(K){if(K.nextAddress==1)return b=!N.miniplayerToPipMode,S=N.playerElement,P=N.miniplayerData,H=N.watchResponse,K.yield(N.deactivate(),2);if(K.nextAddress!=3)return b?(_.gU().mediaSessionPipActivation=!0,_.gU().watchPipActivation=!0):_.gU().miniplayerButtonActivation=!0,K.yield(N.activate(S,P,H),3);N.miniplayerToPipMode=b;_.Zd(K)})};
Ay.prototype.onDownloadedVideoDeleted=function(N){var b,S=_.t((b=this.miniplayerData)==null?void 0:b.watchEndpoint,_.Iv),P,H;S&&((P=this.watchResponse)==null?void 0:(H=P.playerResponse)==null?void 0:H.offlineState)!==void 0&&(b=S.videoId)&&N&&b===N&&this.close()};
Ay.prototype.onShowMiniplayerCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m;return _.r(function(k){switch(k.nextAddress){case 1:return S=_.t(N,BU9),H=(P=S)==null?void 0:P.miniplayerCommand,K=_.t(H,_.Iv),H&&K&&!b.active?k.yield(_.Hy.getInstance(),2):k.return();case 2:return C=k.yieldResult,k.yield((G=C)==null?void 0:G.get("yt-miniplayer-shown-video-id"),3);case 3:a=k.yieldResult;R=K.videoId;if(!R||a===R)return k.return();n=_.aN().resolve(_.$9);if(n.isOnWatch())return _.$h(Error("Wj")),k.return();
d={channelItem:{externalId:btoa(R)}};b.readyToResumeVe=_.OW(121253,void 0,void 0,d);_.gU().showMiniplayerCommandActivation=!0;return k.yield(_.Z_b(b,H,!0),4);case 4:return b.active&&(_.XY(b,{readyToResumeVe:b.readyToResumeVe,isReadyToResume:!0}),b.isReadyToResume=!0),k.yield((m=C)==null?void 0:m.set("yt-miniplayer-shown-video-id",K.videoId),5);case 5:b.readyToResumeVe=void 0,_.Zd(k)}})};
Ay.prototype.init=function(N){this.miniplayerEl?_.$h(new _.jU("MiniplayerService already initialized.")):this.miniplayerEl=N};
Ay.prototype.isInitialized=function(){var N=!!this.miniplayerEl;N||_.$h(new _.jU("MiniplayerService used before initialized."));return N};
_.Sv5=function(N,b){if(N.isInitialized()){var S=_.K_O(b.response,b.playerResponse),P=_.aN().resolve(_.$9).getPlayerFromWatch();_.gU().currentEndpoint=S.watchEndpoint||null;N.activate(P,S,b)}};
_.P5L=function(N){if(N.isInitialized()){var b=_.aN().resolve(_.$9).getPlayerFromShorts();N.activate(b)}};
rQ9=function(N,b){var S;(S=!N.isInitialized())||(S=_.aN().resolve(_.$9).isOnWatch()&&N.watchPipMode,S=!(N.isMiniplayerActive()&&(_.gU().userActivation||_.gU().lockupActivation||S)));if(S)return!1;s0E(N,b)?_.jP(N):Urd(N,b);return N.watchPipMode?!_.aN().resolve(_.$9).isOnWatch():!0};
Ay.prototype.isMiniplayerActive=function(){return this.active};
var s0E=function(N,b){var S;b=(S=_.t(b,_.Iv))==null?void 0:S.videoId;var P,H;N=(H=_.t((P=N.miniplayerData)==null?void 0:P.watchEndpoint,_.Iv))==null?void 0:H.videoId;return b!=null&&b===N};
Ay.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.bC(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.St(this.miniplayerEl,"yt-navigate-home-action"))};
_.Z_b=function(N,b,S,P){S=S===void 0?!1:S;var H,K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:if(N.active){a.jumpTo(2);break}H=_.aN().resolve(_.$9);if(C=(K=N.playerElement)!=null?K:H.getPlayerFromWatch()){a.jumpTo(3);break}return a.yield(_.aN().resolve(_.Pm),4);case 4:C=H.getPlayerFromWatch();case 3:if(!C){_.$h(Error("Yj"));a.jumpTo(2);break}return a.yield(N.activate(C,P),2);case 2:return N.active?a.yield(Urd(N,b,S),7):a.return();case 7:(G=N.getPlayerElement())==null||G.focusOnPlayer(),
_.Zd(a)}})};
Ay.prototype.activate=function(N,b,S){var P=this,H,K,C,G,a,R,n,d,m;return _.r(function(k){switch(k.nextAddress){case 1:if(!P.isInitialized())return k.return();if(!N)return _.$h(Error("Yj")),k.return();if(_.DiE()||P.isMiniplayerActive())var M=!0;else M=_.gU().watchPipActivation||_.gU().watchWhileActivation,_.aN().resolve(_.$9).isOnWatch()&&!M?(_.$h(new _.jU("miniplayer activated on watch page")),M=!0):M=_.gU().watchWhileActivation?P.userDeactivatedWatchWhile||!!document.pictureInPictureElement||HBe():
!1;if(M)return e1(),k.return();H=_.gU().mediaSessionPipActivation;K=_.gU().shortsPipActivation;C=_.gU().watchPipActivation;a=(G=_.gU().watchWhileActivation)||C;R=C||K;if(!P.pictureInPictureEnabled()||!R){k.jumpTo(2);break}return k.yield(Kj_(P,H),3);case 3:if(!k.yieldResult)return _.$h(Error("Xj")),e1(),k.return();case 2:return P.setActive(!0),P.watchResponse=S,P.playerElement=N,P.updateMiniplayerData(b),k.yield(vhE(P,N),4);case 4:if(!P.active)return _.$h(new _.jU("miniplayer deactivated during activation")),
P.removePlayerListeners(),k.return();M=_.aN().resolve(_.dt);M.addEventListener("yt-navigate",_.aA(P,P.onPlaylistNavigate));M.addEventListener("yt-playlist-data-updated",_.aA(P,P.JSC$19257_onPlaylistDataUpdated));P.JSC$19257_onPlaylistDataUpdated();e1();P.JSC$19257_watchWhileEnabled&&_.Ovt(P,G);P.pictureInPictureEnabled()&&P.shortsPipEnabled&&(P.shortsPipMode=K,_.h0().dispatch(Jnc(P.shortsPipMode)));P.pictureInPictureEnabled()&&P.JSC$19257_watchPipEnabled&&(P.watchPipMode=C,P.JSC$19257_watchPipEnabled&&
(!P.watchPipManualOnlyEnabled||_.sCf()&&_.MpU("Chromium")>=142)&&_.v19(P.handleMediaSessionPipActivation));P.player&&(n=P.player.getPlayerState(),d=n===1,_.h0().dispatch(yn9(n)),_.PN(P.miniplayerEl,"yt-miniplayer-play-state-changed",[d]),_.gU().isVideoPlaying=d);_.PN(P.miniplayerEl,"yt-miniplayer-endpoint-changed");C5E(P);_.Gxq(P);if(P.shortsPipMode||P.watchPipMode)k=k.yield(_.St(P.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{M=k.yield;var l=_.St(P.miniplayerEl,"yt-activate-miniplayer",[a])[0];
k=M.call(k,l,6)}return k;case 6:if(P.watchResponse){M=P.getScreenLayer();l=_.Qh(0);var u=t2f(0);l&&u&&(_.iZ(l,u,M),M===0&&k$o(void 0,0))}rdE(P);cdL(P,!0);(m=P.getPlayerElement())==null||m.focusOnPlayer();_.Zd(k)}})};
Ay.prototype.updateMiniplayerData=function(N){this.miniplayerData=N;_.XY(this,{data:N})};
_.Gxq=function(N){var b,S,P=((b=N.miniplayerData)==null?void 0:(S=b.miniplayerRenderer)==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";b=N.watchWhileMode||N.watchPipMode?P&&!_.aN().resolve(_.$9).isOnWatch():P;_.XY(N,{isDisabled:b});var H,K;S=_.t((H=N.miniplayerData)==null?void 0:(K=H.miniplayerRenderer)==null?void 0:K.minimizedEndpoint,_.VD);b&&S&&_.aN().resolve(_.sD).openSheet({openPopupActionCommand:{openPopupAction:S}},N.miniplayerEl)};
rdE=function(N){if(N.watchResponse&&!an_(N)){var b,S=(b=N.watchResponse.playerResponse)==null?void 0:b.trackingParams;S&&(_.XY(N,{expandVe:_.OW(35989),closeVe:_.OW(34699),readyToResumeCloseVe:_.OW(131070),repositionVe:_.OW(226204),resizeVe:_.OW(226205)}),_.XY(N,{playerVe:_.FA(S)}))}};
vhE=function(N,b){return _.r(function(S){if(S.nextAddress==1)return b.preparePlayer(),S.yield(b.getPlayerPromise(),2);N.player=S.yieldResult;N.player&&(N.player.addEventListener("onPlayVideo",N.JSC$19257_onPlayerPlayVideo),N.player.addEventListener("onCloseMiniplayer",N.onPlayerCloseMiniplayer),N.player.addEventListener("onExpandMiniplayer",N.onPlayerExpandMiniplayer),N.player.addEventListener("onStateChange",N.onPlayerStateChange));_.Zd(S)})};
_.v=Ay.prototype;_.v.JSC$19257_onPlayerPlayVideo=function(N){var b=N.sessionData&&"autonav"in N.sessionData,S;N.sessionData&&N.sessionData.itct&&(S=N.sessionData.itct);var P=N.watchEndpoint;b=P&&b?_.BwU(P,S):_.N6(N.videoId,N.listId||void 0,S);N.sessionData&&_.e0(_.t(b.commandMetadata,_.GY).url,N.sessionData);Urd(this,b)};
_.v.onPlayerExpandMiniplayer=function(){_.jP(this)};
_.v.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.v.onPlayerStateChange=function(){if(this.player){var N=this.player.getPlayerState(),b=N===1;_.h0().dispatch(yn9(N));_.h0().dispatch(_.Vm9(N));_.PN(this.miniplayerEl,"yt-miniplayer-play-state-changed",[b]);_.gU().isVideoPlaying=b;if(N===0){b=!_.ut.getInstance().isAutoplaySetExplicitly();var S,P,H,K,C,G,a=(S=this.watchResponse.response)==null?void 0:(P=S.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(K=H.autoplay)==null?void 0:(C=K.autoplay)==null?void 0:(G=C.autoplayExplicitChoiceDialogRenderer)==
null?void 0:G.confirmDialogRenderer;b&&a&&this.player.setAutonavState(1)}N===0&&this.watchWhileMode&&this.deactivate()}};
_.v.onPlaylistNavigate=function(N,b){var S=this,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1){if(!_.t(b.endpoint,_.Iv))return n.return();_.gU().currentEndpoint=b.endpoint;_.PN(S.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.aN().resolve(_.$9).isOnWatch()&&(S.watchWhileMode||S.watchPipMode))return n.return();N.stopPropagation();(K=(H=_.t((P=b.endpoint)==null?void 0:P.commandMetadata,_.GY))==null?void 0:H.url)&&b.tempData&&!_.Vm.isEmpty(b.tempData)&&_.e0(K,b.tempData);C={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};G=new VCZ(function(){return S.getPlayerElement()},C,{layer:S.getScreenLayer()});
a=function(d){G.processChunk({endpoint:b.endpoint,data:d})};
RAJ(S);S.miniplayerFetchRequest=Wj5(S,b.endpoint,a);_.u4(n,2);return n.yield(S.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return R=n.yieldResult,nhn(S,R),_.su(n,0);_.UE(n);_.Zd(n)})};
_.v.JSC$19257_onPlaylistDataUpdated=function(){var N=_.aN().resolve(_.dt).getPlaylistData();this.hasPlaylistData=!!N;_.XY(this,{externalPlaylistData:N||{}})};
_.v.close=function(N){if(this.isInitialized())if(N){if(!((this.watchWhileMode||this.watchPipMode)&&_.aN().resolve(_.$9).isOnWatch()||this.shortsPipMode)){var b;(b=this.getPlayerElement())==null||b.stop()}this.deactivate()}else _.M$().closeMiniplayer(this.miniplayerEl)};
_.v.deactivate=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1){if(!b.isInitialized()||!b.active)return C.return();b.setActive(!1);RAJ(b);(S=!!N&&s0E(b,N))&&b.isSingleOptionSurveyActive&&_.St(b.miniplayerEl,"yt-show-watch-page-survey",[b.isSingleOptionSurveyActive]);return C.yield(dNi(b),2)}if(C.nextAddress!=3){cdL(b,!1);b.isReadyToResume=!1;b.watchResponse=void 0;b.updateMiniplayerData(void 0);b.shortsPipMode&&(b.shortsPipMode=!1,_.h0().dispatch(Jnc(b.shortsPipMode)),QOL(b.pipController),
(P=b.player)==null||P.setInternalSize(NaN,NaN));b.watchPipMode&&(b.watchPipMode=!1,QOL(b.pipController));(H=b.watchWhileMode)&&_.Ovt(b,!1);b.removePlayerListeners();var G=_.aN().resolve(_.dt);G.removeEventListener("yt-navigate",_.aA(b,b.onPlaylistNavigate));G.removeEventListener("yt-playlist-data-updated",_.aA(b,b.JSC$19257_onPlaylistDataUpdated));_.gU().currentEndpoint=null;_.PN(b.miniplayerEl,"yt-miniplayer-endpoint-changed");b.playerElement=null;e1();if(b.shortsPipMode||b.watchPipMode)C=C.jumpTo(3);
else{G=C.yield;var a=_.St(b.miniplayerEl,"yt-deactivate-miniplayer",[S,H])[0];C=G.call(C,a,3)}return C}(K=b.player)==null||K.setInternalSize(NaN,NaN);b.player=null;_.Zd(C)})};
var dNi=function(N){var b;return _.r(function(S){b=_.aN().resolve(_.$9);return N.shortsPipMode?S.yield(b.movePlayerToShorts(N.playerElement),0):S.yield(b.movePlayerToWatch(N.playerElement),0)})};
Ay.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19257_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Ay.prototype.setActive=function(N){this.active=N;this.isSingleOptionSurveyActive?_.St(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.St(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.h0().dispatch(_.HU({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Ovt=function(N,b){N.watchWhileMode=b;_.XY(N,{watchWhile:b})};
cdL=function(N,b){if(!an_(N))if(N.shortsPipMode||N.watchPipMode){var S;(S=N.player)==null||S.setDocumentPictureInPicture(b)}else{var P;(P=N.player)==null||P.setMinimized(b)}};
an_=function(N){return N.watchWhileMode&&_.T("kevlar_watch_while_counterfactual")};
_.jP=function(N){var b;return _.r(function(S){switch(S.nextAddress){case 1:if(!N.isInitialized())return S.return();_.u4(S,2);return S.yield(N.miniplayerFetchRequest,4);case 4:_.su(S,3);break;case 2:_.UE(S);case 3:N.watchResponse&&N.miniplayerData&&N.miniplayerData.watchEndpoint?(b={url:N.watchResponse.url,endpoint:N.miniplayerData.watchEndpoint,data:N.watchResponse,miniplayer:!0},_.bC(N.miniplayerEl,"yt-navigate-cache",b)):N.miniplayerData&&N.miniplayerData.watchEndpoint&&_.bC(N.miniplayerEl,"yt-navigate",
{endpoint:N.miniplayerData.watchEndpoint}),_.Zd(S)}})};
Urd=function(N,b,S){var P,H,K,C;return _.r(function(G){if(G.nextAddress==1){if(s0E(N,b))return G.return();_.gU().currentEndpoint=b;_.PN(N.miniplayerEl,"yt-miniplayer-endpoint-changed");_.PN(N.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.gU().isVideoPlaying=!1;P={clientParams:{miniplayer:!0,autoSaveToQueue:!S}};H=new VCZ(function(){return N.getPlayerElement()},P,{layer:N.getScreenLayer(),
parentLayer:0},void 0,N.readyToResumeVe);K=function(a){var R,n,d=Object.assign({},(R=a.playerResponse)==null?void 0:(n=R.playerConfig)==null?void 0:n.playbackStartConfig,{startPaused:!0}),m;S&&((m=a.playerResponse)==null?0:m.playerConfig)&&(a.playerResponse.playerConfig.playbackStartConfig=d);H.processChunk({endpoint:b,data:a})};
RAJ(N);N.miniplayerFetchRequest=Wj5(N,b,K);_.u4(G,2);return G.yield(N.miniplayerFetchRequest,4)}if(G.nextAddress!=2)return C=G.yieldResult,nhn(N,C),_.su(G,0);_.UE(G);_.Zd(G)})};
Ay.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var RAJ=function(N){N.miniplayerFetchRequest&&(N.miniplayerFetchRequest.cancel&&N.miniplayerFetchRequest.cancel("Active request obsolete"),N.miniplayerFetchRequest=null)},Wj5=function(N,b,S){var P,H=(P=_.t(b.commandMetadata,_.GY))==null?void 0:P.url,K;
P=!H||_.NI("disable_miniplayer_tempdata")?{}:(K=v69(H))!=null?K:{};return yG(N.JSC$19257_pageRequestService,b,P,window.location.href,"watch",function(C,G){S(G)},function(C){return C!==N.miniplayerFetchRequest})},nhn=function(N,b){var S;
_.r(function(P){if(!b)return P.return();N.watchResponse=b;rdE(N);C5E(N);S=_.K_O(b.response,b.playerResponse);if(N.isMiniplayerActive()){b.response&&(N.playerElement.watchNextData=b.response);var H=_.Vm.getValueByKeys.apply(_.Vm,[b].concat(_.IX(PBc)));_.Vm.getValueByKeys.apply(_.Vm,[b].concat(_.IX(Ow9)))&&H&&_.aN().resolve(_.dt).setAutoplayRenderer(H);if(H)if(_.T("kevlar_is_pupi_enabled")){var K,C,G,a,R,n=((K=b.response)==null?0:(C=K.playerOverlays)==null?0:(G=C.playerOverlayRenderer)==null?0:(a=G.autonavToggle)==
null?0:(R=a.autoplaySwitchButtonRenderer)==null?0:R.enabled)?2:1;_.ut.getInstance().setState(n,!1,!1)}else K=TaY()?2:1,(n=N.player)==null||n.setAutonavState(K);N.updateMiniplayerData(S);_.Gxq(N)}_.Zd(P)})},C5E=function(N){var b,S,P=(b=N.watchResponse)==null?void 0:(S=b.playerResponse)==null?void 0:S.playabilityStatus,H;
b=P==null?void 0:(H=P.miniplayer)==null?void 0:H.miniplayerRenderer;(b==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&b.minimizedEndpoint&&_.HN(N.miniplayerEl,[b.minimizedEndpoint]);_.XY(N,{playabilityStatus:P})};
Ay.prototype.openToast=function(N,b){_.XY(this,{toastData:{data:N,label:b}})};
_.XY=function(N,b){(0,N.miniplayerPropSignalMap[1])(b)};
Ay.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var N;return this.playerElement?this.playerElement:(N=_.H4(this.miniplayerEl).querySelector("#player-container"))==null?void 0:N.firstElementChild};
Ay.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Kj_=function(N,b){b=b===void 0?!1:b;var S,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1){if(!N.pictureInPictureSupported()||!grU()&&!b)return a.return(!1);S=mNE(N);P=S.width;H=S.height;return a.yield(N.pipController.openWindow({width:P,height:H}),2)}K=a.yieldResult;C=N.pipController.getWindow();if(!C||!K)return a.return(!1);C.document.body.style.overflow="hidden";G=VXO(C);x8t(N.pipController,function(){kxi(N);G()});
return a.return(!0)})},mNE=function(N){var b=_.gU().shortsPipActivation,S,P;
N=b?.5625:(P=(S=N.player)==null?void 0:S.getVideoAspectRatio())!=null?P:16/9;S=Math.min(window.innerWidth,window.innerHeight)/2;b=b?0:76;return N>1?new _.Jh(S,b+S/N):new _.Jh(S*N,b+S)},kxi=function(N){var b;
_.r(function(S){b=_.aN().resolve(_.$9);return b.isOnWatch()&&N.watchPipMode||b.isOnShorts()&&N.shortsPipMode?S.yield(N.deactivate(),0):N.miniplayerToPipMode?S.yield(Hvo(N),0):N.watchPipMode?S.yield(_.jP(N),0):S.jumpTo(0)})};
Ay.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19257_watchPipEnabled||this.shortsPipEnabled)};
_.d0.Object.defineProperties(Ay.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ay[RN]=[ola,K29,_.u0];var TeE="add_circle arrow_time audio bag bars_3 bell broadcast clapperboard clock copy creator_studio_red_logo download fashion fire flag gaming gear home library lightbulb list_play_arrow message_bubble_alert mic my_videos news offline_download offline_no_content overflow_horizontal overflow_vertical question_circle radar_live search subscriptions thumb_up trash_can trophy unplugged_logo video_camera_add x_mark youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),
tdt="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),Mdt="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Fjt="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var BeJ=function(N,b,S){_.E5.call(this);this.store=N;this.panelController=b;this.pageContentExtractor=S;this.isInitialized=!1};
_.F(BeJ,_.E5);
BeJ.prototype.init=function(N){var b=this;this.isInitialized||(this.isInitialized=!0,this.environment=N!=null?N:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.pf.currentPageSubTypeSelector(this.store.getState()),N=_.hT(this.store,_.pf.currentPageSubTypeSelector,function(S){a:if(_.lnq(b))switch(S){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var P=!0;break a;default:P=!1}else P=!1;P&&b.panelController.hidePanel({identifier:"PAai_companion"});
b.pageSubtype!==S&&(b.pageSubtype=S)}),this.addOnDisposeCallback(N))};
_.yvJ=function(N,b){if(_.lnq(N))switch(b){case "watch":var S,P;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(S=_.G8())==null?void 0:(P=S.getVideoData())==null?void 0:P.video_id};case "search":var H,K,C;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(K=(H=N.pageContentExtractor)==null?void 0:nlo(H))!=null?K:[],entityId:(C=(new URLSearchParams(window.location.search)).get("search_query"))!=null?C:void 0};case "companion-canvas":var G,a;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(a=(G=
N.pageContentExtractor)==null?void 0:nlo(G))!=null?a:[]};default:var R,n;N={videoIds:(n=(R=N.pageContentExtractor)==null?void 0:nlo(R))!=null?n:[]};return _.T("enable_ai_companion_default_page_context")?N:void 0}};
_.lnq=function(N){return N.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
BeJ[RN]=[_.OQ,_.Hn,_.cq(d8O)];var Ljn=_.A(function(N){return _.c("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.c(_.M2,{text:function(){return N.data().text||""},
wrapCodeBlocks:N.shouldWrapCodeBlock}))},"oh");_.fnt=_.A(function(N){return _.c("yt-ai-companion-attachment-view-model",{el:_.VN(_.iK(function(){return N.data().rendererContext})),
class:_.KU("ytAiCompanionAttachmentViewModelHost",N.className)},_.c("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.c(_.W,{cond:function(){return N.data().title},
then:function(b){return _.c("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return b().content}},_.c(_.mD,{text:b}))}}),_.c(_.W,{cond:function(){return _.EW(N.data().trailingTitleIcon)},
then:function(b){return _.c("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.c(_.gG,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.c(_.W,{cond:function(){return N.data().description},
then:function(b){return _.c("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.c(_.mD,{text:b}))}}),_.c(_.W,{cond:function(){return N.data().bottomItem},
then:function(b){return _.c("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.c(_.kY,{data:b},{tableViewModel:Mb9}))}}))},"ph");_.uCJ=_.A(function(N){return _.c("yt-channel-attribution-view-model",{class:_.KU("ytChannelAttributionViewModelHost",N.className)},_.c("div",{class:"ytChannelAttributionViewModelUpper"},_.c(_.kY,{data:function(){return N.data().avatar}},{decoratedAvatarViewModel:_.Gg}),_.c("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.c(_.mD,{text:function(){return N.data().title}}))),_.c("div",{class:"ytChannelAttributionViewModelBottom"},_.c(_.mD,{text:function(){return N.data().subtitle}})))},"qh");var Q0J=_.A(function(N){var b=_.O(_.QF(!1,void 0,"MFRKRb")),S=b.next().value,P=b.next().value,H=function(){return N.data().activeRenderer},K=function(){return N.data().inactiveRenderer};
return _.c("yt-channel-disclosure-view-model",{"on:mouseleave":_.Ob(function(){P(!1)}),
"on:mouseover":_.Ob(function(){P(!0)}),
class:_.KU("ytChannelDisclosureViewModelHost",N.className)},_.c(_.W,{cond:function(){return S()},
then:function(){return _.c(_.kY,{data:H},{channelAttributionViewModel:_.uCJ})},
else:function(){return _.c(_.kY,{data:K},{decoratedAvatarViewModel:_.Gg})}}))},"rh");var xNq=null;var ohE={},ivo=(ohE.initialized={priority:10,callback:function(N){var b=_.aN();b.addProvider({provide:GiO,useClass:xBi});b.addProvider({provide:_.Qut,useFactory:function(){return new r2E}});
b.addProvider({provide:MR,useValue:_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});b.addProvider({provide:wMJ,useValue:5184E6});b.addProvider({provide:F0w,useValue:_.oT()});b.addProvider({provide:hKE,useClass:vkd});b.addProvider({provide:ta,useClass:ta});b.addProvider({provide:_.Pm,useFactory:function(){return UFN.promise}});
b.addProvider({provide:_.jsk,useFactory:function(){return _.ZYb.promise}});
b.addProvider({provide:k2e,useValue:function(){var a;return((a=_.qE())==null?void 0:a.getPlayer())||null}});
var S={};b.addProvider((S.provide=_.KK,S.useFactory=function(a,R){return function(){return yXE(a,R)}},S[RN]=[MR,
wMJ],S));S={};b.addProvider((S.provide=_.EN,S.useClass=RKa,S[RN]=[MR,wMJ],S));S={};b.addProvider((S.provide=_.Sif,S.useClass=mfJ,S[RN]=[_.EN],S));b.addProvider({provide:ag,useFactory:_.h0});b.addProvider({provide:s_,useFactory:_.h0});b.addProvider({provide:Kba,useFactory:_.h0});b.addProvider({provide:_.eQz,useFactory:function(){var a;return((a=_.qE())==null?void 0:a.getPlayer())||null}});
b.addProvider({provide:yhO,useFactory:_.h0});b.addProvider({provide:_.OQ,useFactory:_.h0});b.addProvider({provide:Il,useValue:_.ap});b.addProvider({provide:fHE,useClass:P1Y});b.addProvider({provide:kJ_,useClass:mtL});b.addProvider({provide:Dv,useClass:Dv});b.addProvider({provide:yn,useClass:yn});b.addProvider({provide:Eq,useClass:Eq});b.addProvider({provide:IG,useClass:IG});b.addProvider({provide:wn,useClass:wn});b.addProvider({provide:fJ,useClass:fJ});b.addProvider({provide:T0,useClass:T0});b.addProvider({provide:zUi,
useValue:VUJ});S={};b.addProvider((S.provide=Aht,S.useFactory=function(a){return a.watchEndpointMap||{}},S[RN]=[zUi],S));
S={};b.addProvider((S.provide=XRJ,S.useFactory=function(a){return a.reelWatchEndpointMap||{}},S[RN]=[zUi],S));
b.addProvider({provide:_.Sz,useFactory:_.dG});b.addProvider({provide:Ke,useFactory:_.WN});S={};b.addProvider((S.provide=Drs,S.useFactory=function(a){return function(R){var n={automatedLogEventSource:5};n=n===void 0?{}:n;var d,m,k=(m=_.t((d=R.endpoint)==null?void 0:d.commandMetadata,_.GY))==null?void 0:m.rootVe;if(k){var M,l;if(d=R.previousCsn||((l=_.t((M=R.endpoint)==null?void 0:M.commandMetadata,HNk))==null?void 0:l.parentCsn)){var u=u===void 0?{}:u;if(d!==_.Qh(u.layer)||k!==t2f(u.layer))Lpu(d,u.cttAuthInfo,
u.layer||0),k$o(d,u.layer||0),M=u.layer||0,_.DH(TRa(M===void 0?0:M),k);n.parentCsn=d}R.endpoint&&d?QaE(a,R.endpoint,n):_.Xy(a,k,void 0,n);var J;((J=R.response)==null?0:J.trackingParams)&&a.graftServerVe(R.response.trackingParams);var Z;((Z=R.playerResponse)==null?0:Z.trackingParams)&&a.graftServerVe(R.playerResponse.trackingParams);var D;((D=R.reelWatchSequenceResponse)==null?0:D.trackingParams)&&a.graftServerVe(R.reelWatchSequenceResponse.trackingParams)}}},S[RN]=[_.Sz],S));
S={};b.addProvider((S.provide=OQ6,S.useClass=vlE,S[RN]=[Il,_.OQ],S));S={};b.addProvider((S.provide=dw,S.useClass=dw,S[RN]=[_.Pm,_.OQ],S));S={};b.addProvider((S.provide=a1,S.useClass=a1,S[RN]=[s_,_.Wq],S));b.addProvider({provide:_.m8q,useClass:Jeo});S={};b.addProvider((S.provide=_.Hn,S.useClass=tjn,S[RN]=[_.m8q,_.cq(_.vn)],S));b.addProvider({provide:_.ze,useClass:TYO});S={};b.addProvider((S.provide=AL,S.useClass=AL,S[RN]=[_.ze,_.Pm,_.Mn,_.Wq],S));b.addProvider({provide:_.sD,useClass:TC});b.addProvider({provide:_.W0o,
useClass:RbL});b.addProvider({provide:_.KW,useClass:mF});_.T("enable_ai_companion")&&(b.addProvider({provide:_.vn,useClass:BAn}),b.addProvider({provide:_.H0V,useClass:BhN}),b.addProvider({provide:d8O,useClass:RoJ}),b.addProvider({provide:Oq,useClass:Oq}),b.addProvider({provide:vY,useClass:vY}),b.addProvider({provide:Kuz,useValue:Q0J}),b.addProvider({provide:_.vK4,useValue:_.fnt}),b.addProvider({provide:OPZ,useValue:Ljn}));_.T("enable_ai_chat_controller")&&b.addProvider({provide:_.Kd,useClass:BeJ});
S={};b.addProvider((S.provide=_.S4,S.useClass=iQQ,S[RN]=[_.S4],S));b.addProvider({provide:_.pw,useClass:cvi});b.addProvider({provide:mP,useClass:mP});b.addProvider({provide:Yc,useClass:Yc});b.addProvider({provide:BY,useClass:BY});S={};b.addProvider((S.provide=SR,S.useClass=SR,S[RN]=[_.Wq,_.Mn],S));b.addProvider({provide:J7,useClass:ki});S={};b.addProvider((S.provide=jR,S.useClass=jR,S[RN]=[_.sD,J7],S));S={};b.addProvider((S.provide=xc,S.useClass=xc,S[RN]=[_.sD],S));S={};b.addProvider((S.provide=Rg,
S.useClass=Rg,S[RN]=[ag,cY,_.Wq],S));b.addProvider({provide:cY,useClass:Dt6});_.T("web_enable_feedback_endpoint_resolver_batch_2")&&(S={},b.addProvider((S.provide=nd,S.useClass=nd,S[RN]=[ag],S)),S={},b.addProvider((S.provide=WY,S.useClass=WY,S[RN]=[cY],S)));S={};b.addProvider((S.provide=Uq,S.useClass=Uq,S[RN]=[_.KW,J7],S));S={};b.addProvider((S.provide=ua,S.useClass=ua,S[RN]=[_.KW],S));S={};b.addProvider((S.provide=Z6,S.useClass=Z6,S[RN]=[_.Mn,_.Hn],S));S={};b.addProvider((S.provide=ia,S.useClass=
ia,S[RN]=[_.Mn,_.Sz],S));b.addProvider({provide:aG,useClass:aG});S={};b.addProvider((S.provide=s8,S.useClass=s8,S[RN]=[ag],S));b.addProvider({provide:fe,useClass:fe});b.addProvider({provide:Le,useClass:Le});S={};b.addProvider((S.provide=Qn,S.useClass=Qn,S[RN]=[ag],S));S={};b.addProvider((S.provide=xk,S.useClass=xk,S[RN]=[_.Mn,ag],S));S={};b.addProvider((S.provide=oG,S.useClass=oG,S[RN]=[ag],S));S={};b.addProvider((S.provide=is,S.useClass=is,S[RN]=[ag],S));S={};b.addProvider((S.provide=QM,S.useClass=
QM,S[RN]=[_.Hn],S));S={};b.addProvider((S.provide=mx,S.useClass=mx,S[RN]=[_.Sz],S));S={};b.addProvider((S.provide=Bx,S.useClass=Bx,S[RN]=[Ge],S));S={};b.addProvider((S.provide=ls,S.useClass=ls,S[RN]=[Ge],S));b.addProvider({provide:tL,useClass:tL});b.addProvider({provide:Mo,useClass:Mo});b.addProvider({provide:dg,useClass:dg});S={};b.addProvider((S.provide=zX,S.useClass=zX,S[RN]=[_.Hn,_.Wq],S));b.addProvider({provide:t7,useClass:t7});S={};b.addProvider((S.provide=og,S.useClass=og,S[RN]=[_.Mn,_.Hn],
S));b.addProvider({provide:la,useClass:la});S={};b.addProvider((S.provide=Px,S.useClass=Px,S[RN]=[ag,_.Mn,_.S4],S));S={};b.addProvider((S.provide=No,S.useClass=No,S[RN]=[_.Mn,_.Wq],S));b.addProvider({provide:NrN,useValue:hWo});b.addProvider({provide:COz,useValue:UoL});b.addProvider({provide:bs,useClass:bs});S={};b.addProvider((S.provide=w1,S.useClass=w1,S[RN]=[ag],S));S={};b.addProvider((S.provide=Hx,S.useClass=Hx,S[RN]=[_.pw,_.Wq],S));S={};b.addProvider((S.provide=d1,S.useClass=d1,S[RN]=[_.Wq],S));
S={};b.addProvider((S.provide=r1,S.useClass=r1,S[RN]=[s_],S));b.addProvider({provide:KZe,useFactory:_.pX.getInstance});S={};b.addProvider((S.provide=F2,S.useClass=F2,S[RN]=[MR,KZe,_.Wq],S));b.addProvider({provide:kc,useClass:kc});b.addProvider({provide:PY,useClass:PY});b.addProvider({provide:sq,useClass:sq});b.addProvider({provide:_.HY,useClass:_.HY});b.addProvider({provide:ZP,useClass:ZP});S={};b.addProvider((S.provide=g1,S.useClass=g1,S[RN]=[s_],S));S={};b.addProvider((S.provide=X2,S.useClass=X2,
S[RN]=[_.Wq],S));S={};b.addProvider((S.provide=eR,S.useClass=eR,S[RN]=[_.Wq],S));S={};b.addProvider((S.provide=$c,S.useClass=$c,S[RN]=[_.Wq],S));_.T("web_enable_prefetching_videos_on_home")&&(b.addProvider({provide:c6,useClass:c6}),b.addProvider({provide:xi,useClass:xi}));S={};b.addProvider((S.provide=U8,S.useClass=U8,S[RN]=[_.Wq],S));b.addProvider({provide:Cd,useClass:Cd});S={};b.addProvider((S.provide=RG,S.useClass=RG,S[RN]=[_.Mn,_.Wq],S));S={};b.addProvider((S.provide=GX,S.useClass=GX,S[RN]=[_.Wq],
S));S={};b.addProvider((S.provide=o1,S.useClass=o1,S[RN]=[_.Mn,_.Wq],S));b.addProvider({provide:QN6,useClass:QN6});b.addProvider({provide:uQi,useClass:uQi});b.addProvider({provide:Ig,useClass:Ig});S={};b.addProvider((S.provide=yM,S.useClass=yM,S[RN]=[s_,_.Wq],S));b.addProvider({provide:D6,useClass:D6});S={};b.addProvider((S.provide=E8,S.useClass=E8,S[RN]=[s_,_.Wq,_.Mn],S));S={};b.addProvider((S.provide=pe,S.useClass=pe,S[RN]=[_.Wq],S));S={};b.addProvider((S.provide=XS,S.useClass=XS,S[RN]=[_.Wq,_.Mn],
S));S={};b.addProvider((S.provide=cx,S.useClass=cx,S[RN]=[_.Wq,_.Mn],S));S={};b.addProvider((S.provide=qR,S.useClass=qR,S[RN]=[_.Pm],S));S={};b.addProvider((S.provide=h7,S.useClass=h7,S[RN]=[_.Pm],S));S={};b.addProvider((S.provide=VM,S.useClass=VM,S[RN]=[_.Pm],S));b.addProvider({provide:Ce,useClass:Ce});b.addProvider({provide:rg,useClass:rg});b.addProvider({provide:us,useClass:us});b.addProvider({provide:Wx,useClass:Wx});b.addProvider({provide:O8,useClass:O8});b.addProvider({provide:Ld,useClass:Ld});
b.addProvider({provide:vx,useClass:vx});b.addProvider({provide:_.DP,useClass:Mx});b.addProvider({provide:fc,useFactory:function(){return _.sX.getInstance()}});
b.addProvider({provide:HQa,useFactory:Ska});b.addProvider({provide:Ge,useFactory:function(){return _.Hy.getInstance()}});
b.addProvider({provide:F7S,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});S={};b.addProvider((S.provide=_.R1,S.useClass=_.R1,S[RN]=[_.Pm,_.Wq,_.Sz,HQa,Ge,fc,F7S,Il],S));b.addProvider({provide:_.Dc,useClass:pH9});b.addProvider({provide:_.bzq,useClass:NYQ});S={};b.addProvider((S.provide=fd,S.useClass=fd,S[RN]=[_.bzq],S));S={};b.addProvider((S.provide=_.W6,S.useFactory=function(a){return a.upliftCompletionResolver.promise},S[RN]=[OQ6],S));
S=_.g8("IS_SHELL_LOAD")?"aa":"eocs";var P=_.g8("IS_SHELL_LOAD")?3:2;_.kA().parkOrScheduleJob(function(){Gzi()},P,S);
_.kA().parkOrScheduleJob(function(){_.aN().resolve(dw).start()},2,"eocs");
_.kA().parkOrScheduleJob(function(){sOw()},2,"eocs");
_.kA().parkOrScheduleJob(function(){_.aN().resolve(a1).start()},2,"eocs");
_.T("kevlar_debug_data_app_registration_ks")||VPp();b.addProvider({provide:_.mh,useValue:new TcO(N.root)});b.addProvider({provide:Pz,useValue:new Txa});b.addProvider({provide:_.uHw,useValue:new Lk6(N.root)});b.addProvider({provide:_.ts,useValue:new fBn});b.addProvider({provide:_.pi,useClass:hC});b.addProvider({provide:ola,useClass:ty});_.T("kevlar_network_sli_killswitch")||b.addProvider({provide:zbE,useValue:ycZ});b.addProvider({provide:ugw,useFactory:Gpo});S={};b.addProvider((S.provide=f2t,S.useFactory=
YhL,S[RN]=[_.W6,ag,_.KK],S));S={};b.addProvider((S.provide=L0O,S.useClass=Yk,S[RN]=[f2t],S));b.addProvider({provide:OTE,useClass:HT5});b.addProvider({provide:Mkw,useClass:BY_});S=[].concat(_.IX(cys));S.push(_.J8);S.push(Z5b);_.T("enable_share_panel_navigation_logging_fix_on_web")&&S.push(_.qPS);b.addProvider({provide:ryU,useValue:S});b.addProvider({provide:CRb,useClass:tko});b.addProvider({provide:Y2J,useClass:Al5});S={};b.addProvider((S.provide=s4a,S.useClass=XhJ,S[RN]=[s_],S));_.Dj.addLowPriorityJob(function(){dwa()});
S={};b.addProvider((S.provide=KXk,S.useFactory=function(a){return function(R){var n,d=(n=_.t(R.commandMetadata,_.GY))==null?void 0:n.url;if(!d)throw new _.jU("No URL for PBJ Command",R);d=bAU(d,{pbj:"1"});n=tte(d,{})||{};n=Object.assign({},n,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Vg("STS").toString()});R=_.LE({command:JSON.stringify(R),session_token:_.Vg("XSRF_TOKEN")});return a.fetch(d,{method:"POST",headers:n,body:R})}},S[RN]=[Y2J],S));
b.addProvider({provide:UBE,useFactory:function(){var a={};return a.CSI=c4p(),a.ECATCHER=r4O(),a}});
b.addProvider({provide:qoO,useClass:ZMt});S=[];S.push(b.resolve(Mkw));P={};P=(P.client_location=_.pX.getInstance(),P.consistency=_.Wm9(),P.entities=b.resolve(kJ_),P.response_received_commands=b.resolve(CRb),P.store=b.resolve(_.Sif),P.tokens=b.resolve(Mkw),P.service_params=b.resolve(qoO),P);if(_.T("web_shorts_prefetch_service_enabled")){var H=new k6a(b.resolve(_.EN));P.shorts_prefetch=H}P.adblock_detection=b.resolve(s4a);b.addProvider({provide:_.sv,useClass:_.sv});H=b.resolve(zUi);var K=[];_.T("PremiumClientSharedConfig__enable_att_context_processor")&&
(b.addProvider({provide:P4w,useClass:N$a}),K.push(b.resolve(P4w)));if(_.T("owl_pl_await")){var C={};b.addProvider((C.provide=T8i,C.useFactory=function(a){return new mBE(a)},C[RN]=[_.sv],C));
K.push(b.resolve(T8i))}CpO(H,b.resolve(Y2J),b.resolve(fHE),P,b.resolve(_.EN),S,K,b.resolve(L0O),b.resolve(OTE));b.addProvider({provide:_.Mn,useValue:_.XM.instance});_.T("start_client_gcf")&&b.addProvider({provide:Ev,useValue:Ipb()});b.addProvider({provide:ceE,useFactory:function(){return new ceE(_.aN().resolve(_.sv),_.Hy.getInstance())}});
_.kA().parkOrScheduleJob(function(){aqQ()},1,"eocs");
S={};b.addProvider((S.provide=nK,S.useClass=nK,S[RN]=[_.KK,_.Mn],S));b.addProvider({provide:_.XWt,useFactory:_.Qi.getInstance});_.kA().parkOrScheduleJob(function(){_.aN().resolve(nK).refresh()},0,"eocs");
b.addProvider({provide:_.u0,useClass:Vka});_.T("kevlar_signal_collection_killswitch")||(S={},b.addProvider((S.provide=$fO,S.useClass=$fO,S[RN]=[MR,Ke],S)),_.kA().parkOrScheduleJob(function(){_.aN().resolve($fO).record()},1,"eocs"));
_.T("web_debug_handler_registration_killswitch")||_.kA().parkOrScheduleJob(function(){I8u("DOWNLOAD_PES",bBY);_.T("offline_client_state_export_ks")||I8u("OFFLINE_CLIENT_STATE",q9_)},0,"eocs");
_.T("kevlar_prevent_polymer_dynamic_font_load")&&_.kA().parkOrScheduleJob(function(){var a=[_.Mz(q26),_.Mz(wA_)];a=_.O(a);for(var R=a.next();!R.done;R=a.next()){R=R.value;var n=document.createElement("link");_.WM(n,R,"stylesheet");document.head.appendChild(n)}},1,"eocs");
S=N.injector.resolve(_.Mn);_.SEa.instance=new _.SEa(S);xwO(VoJ(new bg_(S)));S={};N.injector.addProvider((S.provide=Wz,S.useFactory=function(a){(a=a==null?void 0:a.getCurrentPage())?a=a.visibilityObserver:(xNq||(xNq=kgo()),a=xNq);return a},S[RN]=[_.cq(_.$9)],S.skipCache=!0,S));
b.addProvider({provide:_.E_,useClass:Ay});b.addProvider({provide:$J,useClass:qA9});N.injector.addProvider({provide:VRz,useValue:k7E});b.addProvider({provide:jWc,useValue:ASL});b.addProvider({provide:yQl,useValue:IDf});b.addProvider({provide:_.T8,useValue:PNp});N=b.addProvider;yeO||(yeO=new YB_);N.call(b,{provide:_.FY,useValue:yeO});b.addProvider({provide:_.YY,useValue:_.Vg("HTML_DIR")==="rtl"?"rtl":"ltr"});b.addProvider({provide:QXJ,useClass:EwE});b.addProvider({provide:_.GS,useClass:B6});_.aN().addProvider({provide:owt,
useValue:_.T("enable_web_delhi_icons")?tdt.concat(Fjt):TeE.concat(Mdt)});b.addProvider({provide:_.LK,useClass:_.LK});b.addProvider({provide:_.ebE,useValue:new gUE});b.addProvider({provide:m_O,useClass:nwE});b.addProvider({provide:ne,useClass:ne});b.addProvider({provide:kk,useClass:kk});N={};b.addProvider((N.provide=A7,N.useClass=A7,N[RN]=[_.Mn,_.Hn],N));b.addProvider({provide:j4,useClass:j4});b.addProvider({provide:j6L,useClass:ZQq});b.addProvider({provide:FS,useClass:FS});b.addProvider({provide:eD4,
useValue:JGE});b.addProvider({provide:_.L$,useClass:dto});_.T("enable_payments_purchase_manager")&&b.addProvider({provide:vww,useClass:Hg5});b.addProvider({provide:IdQ,useFactory:function(){return function(a){return _.hbt(a)}}});
b.addProvider({provide:_.dzO,useClass:mzE});N={};b.addProvider((N.provide=JL,N.useClass=JL,N[RN]=[_.dzO],N));b.addProvider({provide:Te,useClass:Te});b.addProvider({provide:ufw,useValue:CiE});b.addProvider({provide:m3d,useValue:_.hoE});b.addProvider({provide:Oys,useClass:U85});b.addProvider({provide:Iqt,useValue:wqL});N={};b.addProvider((N.provide=D8Q,N.useClass=Vjq,N[RN]=[Iqt],N));N={};b.addProvider((N.provide=_.wH,N.useClass=SuL,N[RN]=[D8Q],N));N={};b.addProvider((N.provide=_.fK,N.useClass=lHi,N[RN]=
[_.OQ,_.pi],N));if(_.T("web_explore_hub_on_hover")||_.T("web_client_explore_hub_on_hover"))N={},b.addProvider((N.provide=TX,N.useClass=TX,N[RN]=[_.Mn,fc],N));if(_.T("web_enable_renderer_logger")){var G=new bof;cjY(function(){G.abort()});
b.addProvider({provide:mlL,useValue:new q5o(G.signal)})}b.addProvider({provide:e1b,useValue:RNo});b.addProvider({provide:wJY,useClass:Tj6});_.T("web_use_flow_state_manager")&&(b.addProvider({provide:_.VO,useClass:T$E}),N={},b.addProvider((N.provide=gT,N.useClass=gT,N[RN]=[_.VO],N)),N={},b.addProvider((N.provide=ev,N.useClass=ev,N[RN]=[_.OQ,_.VO],N)),N={},b.addProvider((N.provide=$W,N.useClass=$W,N[RN]=[_.OQ,_.VO,_.Wq],N)),N={},b.addProvider((N.provide=hi,N.useClass=hi,N[RN]=[_.Mn,_.Wq],N)),N={},b.addProvider((N.provide=
qe,N.useClass=qe,N[RN]=[_.VO,_.Wq],N)))}},ohE);var JdE={},UNi=(JdE.initialized={priority:10,callback:function(){if(!juJ){uAa();RZf("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.MX(_.Rm(RZf,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.T("log_heartbeat_with_lifecycles")){var N={};L5.instance||(L5.instance=new L5);L5.instance.install((N.document_visible={callback:WgO,priority:10},N.document_hidden={callback:WgO,priority:10},N))}else _.a0(document,"visibilitychange",WgO);juJ=!0}(N=_.Qh())&&N!=="UNDEFINED_CSN"&&dPY(N)}},JdE);var Zvi={},j0L=(Zvi.initialized={callback:function(N){var b=_.OW(232091),S=N.injector.resolve(_.Sz);_.Ew(S,b);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?eGY()&&_.YD(S,b):(N=N.injector.resolve(IdQ)("refresh_detector"))&&(N.get("first_tab_load")?_.YD(S,b):N.set("first_tab_load","1"))}},Zvi);var zAQ={},Adn=(zAQ.initialized={priority:0,callback:function(){var N=new EbZ,b="other";_.R9?b="chrome":_.a9?b="firefox":_.hz?b="safari":rk&&(b="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(S){N.increment(_.Jz(),S,b)}).catch(function(){N.increment(_.Jz(),!1,b)}):N.increment(_.Jz(),!1,b)}},zAQ);var Xla={},Ehw=(Xla.rendering={priority:8,callback:$9u},Xla);var pl_={},Yvq=(pl_.rendering={priority:10,callback:rku},pl_.rendered={callback:GT9},pl_),ydE={},In6=(ydE.rendering={callback:rku},ydE.rendered={callback:GT9},ydE);var DNo=!1,Vdq={},gh5=(Vdq.initialized={priority:10,callback:function(){DNo||(Npu({didPatch:function(N){N.el&&Lge(N.el,N.props)},
didUnmount:function(N){BJa(N.el)}}),DNo=!0)}},Vdq);var eA5=/^\/shorts\/?$/;_.DH("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});_.T("kevlar_use_common_module_manager_ks")?(_.bh_(new cku),RSU()):a1p();
(function(){var N=document.querySelector("ytd-app");if(!N)throw Error("$j");N=new ug({root:N,injector:_.aN()});N.install(UNi);var b={};N.install((b.initialized={priority:10,callback:vNa},b));_.T("wp_lat_b")&&(b={},N.install((b.initialized={priority:10,callback:function(){vxY()}},b)));
b={};N.install((b.rendered={priority:0,callback:HCO},b));b={};N.install((b.rendered={priority:0,callback:function(){_.Dj.addLowPriorityJob(function(){_.pML>1&&(h0s(),SUU())},4E4)}},b));
N.install(B7E);N.install(j0L);N.install(gh5);zZu();N.install(ZEo);N.install(mXE);N.install(MU_);N.install(Y55);N.install(gT6);N.install(Jz6);N.install(ivo);N.install(T7E);N.install(Adn);if(!_.g8("IS_SHELL_LOAD")||_.T("kevlar_fetch_initial_data_promise_client")||_.T("sw_nav_preload_pbj")){var S=_.Bq(window.location.href);b=S&&S==="/watch";S=S&&S.match(eA5);b?N.install(In6):S?N.install(Ehw):N.install(Yvq)}else N.install(W6q);N.install(L6w);_.T("web_enable_prefetching_videos_on_home")&&N.install(XqQ);
_.T("start_client_gcf")&&N.install(Jl6);N.install(zKE);(new pq9).increment("INSTALLED");N.install(ztL);N.install(czL);N.transition("initialized");wgE();Yk9()})();
_.CX=[[["bmQjdzNhZWtqZDl2bzhta2k=","eGdpZjF1cmc1MmN2YWx1ZSM1"],"S0lORF9MQVlPVVRfSURfRU5URVJFRCNzcjc4NHdubmoyZTlBRF9QTEFDRU1FTlRf"]];_.OK=["bG9iYWxDYWxsYmFja3MjMzg2eHg1NzJpZ2t1Zw==","ZWQjOGk3dmVmeGFncmZ3b25BYm5vcm1hbGl0eURldGVjdA==","bkFkU2tpcCM0NnB5em50aXVraDVv","c3BvbnNlI2RlYzNkMXhsczhxeXJhd19wbGF5ZXJfcmU=","NzVxa29hZHNFbmdhZ2VtZW50UGFuZWxSZW5kZXJlciM2ZjRuc3k2"];_.lP="bG9iYWxDYWxsYmFja3MjMzg2eHg1NzJpZ2t1Zw== ZWQjOGk3dmVmeGFncmZ3b25BYm5vcm1hbGl0eURldGVjdA== bkFkU2tpcCM0NnB5em50aXVraDVv c3BvbnNlI2RlYzNkMXhsczhxeXJhd19wbGF5ZXJfcmU= ZXVlX211bHRpcGxlX3NraXBzX2tzI25ndzYxZ251OWxvY3dlYl9wbGF5bGlzdF9xdQ== Yl9zYV9lZiNybWZlNW1zbGNtdW1h NzVxa29hZHNFbmdhZ2VtZW50UGFuZWxSZW5kZXJlciM2ZjRuc3k2".split(" ");
_._ModuleManager_initialize=function(N,b){if(!_.VS){if(!_.gj)return;_.bh_(_.gj())}_.VS.setAllModuleInfoString(N,b)};
_._ModuleManager_initialize('kevlar_base_module/sy1/kevlar_main_module/NSzT5:1',['sy1','NSzT5','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var SXa;_.E4=function(N){var b=document.createElement("link");_.WM(b,N,"stylesheet");document.head.appendChild(b)};
_.pK=function(N,b){var S,P;return _.r(function(H){S=document.createElement("div");S.id=N.id;N.className&&(S.className=N.className);P=N.element;if(!P)throw Error("ak");if(N.location==="prepend")P.prepend(S);else if(N.location==="appendChild")P.appendChild(S);else if(N.location==="after")P.after(S);else throw Error("bk");return H.return(_.E2(S,b,"th"))})};
_.Yi=function(N){var b;return _.r(function(S){(b=document.getElementById(N))&&b.remove();_.Zd(S)})};
_.yi=function(N,b){var S=document.querySelector(N);S?b(S):setTimeout(function(){_.yi(N,b)},1E3)};
_.Pvw=function(N,b,S){var P;_.r(function(H){if(H.nextAddress==1)return(P=document.getElementById(N))?H.jumpTo(2):H.yield(SXa(N,b,S),2);if(P=document.getElementById(N))P.style.display="block";_.Zd(H)})};
SXa=function(N,b,S){return _.r(function(P){return P.return(new Promise(function(H){_.yi("div #panels",function(K){_.pK({element:K,location:"appendChild",id:N,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+S},b);H()})}))})};_.I1=_.A(function(N){var b=N.text;var S=N.onClick;var P=N.color;var H=N.backgroundColor;var K=N.buttonSize;var C=N.disabled;var G=N.iconName;var a=N.iconSize;var R=N.className;var n=N.iconClassName;N=N.ariaLabel;var d=_.Ob(function(k){S(k)}),m={};
return _.c("button",{class:_.KU("ytpStandardButtonsHost",(m.ytpStandardButtonsLarge=function(){return(K==null?void 0:K())==="large"},m),R),
"on:click":d,style:_.r5({color:P,"background-color":H}),disabled:C,"aria-label":N},_.c(_.W,{cond:G,then:function(){return _.c(_.cX,{className:_.KU("ytpStandardButtonsIconContainer",n),icon:G,size:a})}}),b)},"sh");_.Htn=_.A(function(N){var b,S,P={};return _.c("div",{class:_.KU("ytprototypesEngagementPanelComponentHost",(P.ytprototypesEngagementPanelComponentHostMweb=N.isMweb,P),N.className),id:N.id},_.c("div",{class:_.KU("ytprototypesEngagementPanelComponentEngagementPanelHeader",N.headerClassName)},_.c("div",null,N.header()),_.c("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.c("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(b=N.HeaderButton)==null?void 0:b.call(N)),
_.c(_.I1,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var H;(H=N.onHide)==null||H.call(N);var K;if((K=N.preventDefault)==null||!K.call(N))if(H=N.id(),H=document.getElementById(H))H.style.display="none"}}))),_.c("div",{class:_.KU("ytprototypesEngagementPanelComponentEngagementPanelContent",N.contentClassName),
style:function(){var H,K;return"height: "+(((H=N.height)==null?0:H.call(N))||((K=N.isMweb)==null?0:K.call(N))?"100%":"800px")+";"}},N.content()),_.c("div",null,(S=N.Footer)==null?void 0:S.call(N)))},"uh");
}catch(e){_._DumpException(e)}
try{
_.VS&&_.VS.beforeLoadModuleCode("NSzT5");
var g9S=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.aN().resolve(_.Pm),2);(N=b.yieldResult)&&N.pauseVideo();_.Zd(b)})};var eJH=_.$E(["https://portraits.google.com"]),$ED=_.$E(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),hJD=_.$E(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),qb$=_.Mz(eJH),wXi=_.A(function(N){function b(m){var k;if(m=(k=m.detail)==null?void 0:k.endpoint){k=_.t(m,_.Wd);var M;k&&((M=k.browseId)==null?0:M.startsWith("UC"))&&k.browseId!==H()&&(_.Yi("creator-chatbots-panel-persistent"),n.removeEventListener("yt-navigate-start",b))}}
var S=N.usePlayerHeight;var P=N.isPersistentPanel;var H=N.creatorChannelId;var K=_.nU(_.Ezb),C=_.VN(function(m){var k=H();k=_.Mz($ED,k);_.HM(m,1,k)}),G=function(){var m,k,M;
return _.r(function(l){return l.nextAddress==1?l.yield(_.aN().resolve(_.Pm),2):(m=l.yieldResult)?l.return({video_id:(M=(k=m.getVideoData())==null?void 0:k.video_id)!=null?M:"",timestamp_sec:m.getCurrentTime().toString()}):l.return({})})};
_.R5("message",function(m){var k,M,l,u,J,Z,D;return _.r(function(Y){if(Y.nextAddress==1){if(m.origin!==qb$.toString())return console.warn("Received message from untrusted origin:",m.origin),Y.return();k=m.data;if(typeof k!=="object"||k===null||!k.action)return Y.return();if(k.action==="pause")return Y.yield(g9S(),0);if(k.action!=="getYouTubeContext")return Y.jumpTo(0);if(((M=P)==null?0:M())&&m.source)return(l=m.source)==null||l.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:m.origin}),
Y.jumpTo(0);if(!m.source)return Y.jumpTo(0);u=m.source;J=u.postMessage;Z=JSON;D=Z.stringify;return Y.yield(G(),8)}J.call(u,D.call(Z,{youTubeContext:Y.yieldResult}),{targetOrigin:m.origin});return Y.jumpTo(0)})});
var a=function(){var m,k;(m=C.value)==null||(k=m.contentWindow)==null||k.postMessage("ep_closed",qb$.toString())},R=function(){P!=null&&P()||(a(),_.Yi("creator-chatbots-panel"))};
_.R5("yt-page-type-changed",function(){if(P==null?0:P()){var m;((m=_.aN().resolve(_.$9).getCurrentPage())==null?void 0:m.pageSubtype)!=="channels"&&(m=document.getElementById("creator-chatbots-panel-persistent"))&&(m.style.display="none")}});
var n=_.aN().resolve(_.pi),d;(d=n)==null||d.addEventListener("yt-navigate-start",b);_.pM(function(){var m=(P==null?0:P())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",k=document.getElementById(m);if(k){var M=new MutationObserver(function(l){l.forEach(function(u){u.type==="attributes"&&u.attributeName==="style"&&k.style.display==="none"&&a()})});
M.observe(k,{attributes:!0});_.ej(function(){M.disconnect()})}});
_.ej(function(){var m;(m=n)==null||m.removeEventListener("yt-navigate-start",b)});
N={};return _.c("div",{class:_.KU("ytprotoCreatorChatbotsAppHost",(N.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return K()},N)),
style:_.r5({height:function(){return(S==null?0:S())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.c(_.Htn,{id:function(){return(P==null?0:P())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(P==null?0:P())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:R,header:function(){return _.c("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.c("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.c(_.Wn,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.c(_.I1,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var m=_.I$("https://portraits.google.com/gallery?ytChannelId="+H());m&&_.Kg(window,m,"_blank");R()}})},
content:function(){return _.c("iframe",{el:C,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+qb$.toString()})}}))},"hp"),Nxi=_.A(function(N){var b=N.creatorChannelId;
var S=_.nU(_.Ezb),P=_.VN(function(K){var C=b();C=_.Mz(hJD,C);_.HM(K,1,C)}),H=_.n7(_.dG(),{veType:281629});
N={};return _.c("div",{class:_.KU("ytprotoCreatorChatbotsAppHost",(N.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return S()},N)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.c(_.Htn,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.c("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.c("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.c(_.Wn,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.c("iframe",{el:P,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.c("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.c(_.I1,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var K=_.I$("https://portraits.google.com/gallery?ytChannelId="+b());K&&_.Kg(window,K,"_blank");g9S();H&&_.A8(_.dG(),{visualElement:H})},
"client-ve-type":281629}),_.c("div",null,"This will take you to Google Portraits"))}}))},"ip");var bfi,SWH;bfi=_.$E(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);SWH=_.Mz(bfi);_.MBa=function(N){N=N===void 0?"":N;_.Yi("creator-chatbots-panel");_.E4(SWH);_.yi("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.Pvw("creator-chatbots-panel",function(){return _.c(wXi,{usePlayerHeight:!0,creatorChannelId:N})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.FE5=function(N){N=N===void 0?"":N;_.Yi("creator-chatbots-panel");_.yi("ytd-watch-metadata #top-level-buttons-computed",function(){_.Pvw("creator-chatbots-panel",function(){return _.c(Nxi,{creatorChannelId:N})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.xX6=function(N,b,S){N=N===void 0?"":N;b=b===void 0?!1:b;S=S===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":S;var P,H;return _.r(function(K){if(S==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(P=document.getElementById("creator-chatbots-panel"))P.style.display="block";return K.jumpTo(0)}H=document.getElementById("creator-chatbots-panel-persistent");return!b||H?(!b&&H&&H.style.display==="none"&&(H.style.display="block"),K.jumpTo(0)):K.yield(new Promise(function(C){_.yi("ytd-app",
function(G){_.pK({element:G,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.c(wXi,{isPersistentPanel:!0,creatorChannelId:N})});
C()})}),0)})};
_.VS&&_.VS.JSC$11291_setLoaded();
}catch(e){_._DumpException(e)}
try{
_.VS&&_.VS.beforeLoadModuleCode("kevlar_main_module");
/*

 QRCode for JavaScript

 Copyright (c) 2009 Kazuhiko Arase

 URL: http://www.d-project.com/

 Licensed under the MIT license:
   http://www.opensource.org/licenses/mit-license.php

 The word "QR Code" is registered trademark of
 DENSO WAVE INCORPORATED
   http://www.denso-wave.com/qrcode/faqpatent-e.html
*/
var s5n,D8,Ke6,v7n,Ot_,CvL,GQE,rAE,cAn,a7q,RaJ,Weo,n7J,Vi,dcq,mcE,kQa,gw,Tb_,tlo,Mli,FeL,Bbi,l7E,Len,f7L,ux6,Q5E,xcE,o7i,itL,UcO,Zt5,zaO,AAJ,E76,pzi,YXw,I7Q,Dco,Vln,g7L,eP,$cL,haa,qXJ,$i,wzE,PxJ,HxE,seo,KNq,OxE,Cxw,aYL,WNn,c3i,j5_,nX6,dMq,mMO,hy,qx,kbq,T0n,Mgw,FNL,lYi,LN6,fYi,uGE,Qe_,xMn,oXi,ixE,ww,J3O,Zxt,jeL,zfO,A3t,X_J,p_E,Ysw,y3E,IYO,gXn,efO,qsn,w_w,b65,SYa,H6q,NC,svQ,vyw,O6L,CZi,rw6,aVw,RME,Wi5,nya,dy_,myw,kka,TpE,t0J,M0o,Fit,Bpq,lVa,Lin,fVw,uVE,QvO,i6i,Jw_,UyE,Z6t,jvw,zMQ,Awn,XiO,pi5,YYE,ywJ,
IVa,DyO,V0n,gyo,eME,$yJ,PJ,hM_,qYJ,wiQ,NXi,bA6,SRq,HJ,PCQ,HAq,smL,Knq,vRa,OAt,CCw,GYo,rZi,cZJ,apL,Rza,Wna,s6,nRq,d7L,m76,kYt,TXw,tta,Mto,Fn5,BXq,lpQ,Ln_,fpO,u8E,Qmw,x7q,oRq,iAa,JZE,ZAi,AZ5,XNO,ERJ,pNq,YRa,yZi,Ip6,D7_,Vt_,gRE,eza,$7_,hzt,vJ,O6,wNQ,Nyo,but,SI5,PVa,HuE,spn,GLq,kL6,Faw,ByO,Qpn,oGa,uki,LaL,A0t,pUt,gGE,lbJ,y0i,XUJ,x6a,$6i,wUw,SK6,NQO,bXq,P1L,vnw,s3q,OXQ,C15,KyE,HXQ,GBE,cJ,nno,aV,kBi,TQw,dnJ,mni,tZw,MZo,BQa,lKE,LyO,RV,fK_,u6J,Q3o,ZXi,j3E,WJ,ny,Asn,zCa,XdQ,EnQ,pda,YKt,dF,hCL,mU,qKa,wdo,Nq6,
kf,KdQ,Sjn,sAo,vqq,PI6,CI5,H36,c_5,Gd5,r_t,aLJ,WdO,RLq,kdn,Fd5,Fs,BJ,t7J,lLi,M7q,BqE,Ly,ud,Q$,xf,gq5,zL5,hL5,qji,w4E,NGa,SZa,i35,J_Q,JU,Z3O,oV,id,jAJ,b7_,eLi,UI5,ZX,RsL,nHL,duL,WtE,GSa,kSt,Mr_,O7o,KtL,vHE,lNL,CHi,AU,tr6,rMo,TGi,aN5,sqn,cMo,fNQ,jq5,zso,AML,X7J,EHi,p7Q,yMJ,IV,Dui,VrJ,est,$ui,hsa,qZq,w7E,N56,bUn,Sbo,Poi,DX,HUO,s7E,KhQ,v9Q,OUi,Wh5,V$,RJ6,GR6,aGo,c8J,r8q,CoO,n9a,dEQ,mEa,kRJ,gF,T5t,ta6,lGa,$f,Fh_,qC,e5,hU,B5J,Maa,Lhq,fGJ,uM5,Q7Q,xEa,o9t,J8t,UEa,ZUE,j7t,zJE,A8n,XXi,E9E,pXE,y8a,IGa,DEL,g9O,
$Eq,qb6,wXw,NxL,bfL,PKQ,HfL,s2a,KHJ,vYt,Ofq,CKn,r5L,R9q,nY6,mbw,WHJ,c55,az6,MFL,tFL,k8_,FHa,Txq,Bxn,Q2O,u$E,LHE,fz6,wF,xbt,if6,J5E,UbJ,Xmq,EYo,pmi,YW6,y5q,IzE,Dbt,VFJ,gY5,e9q,$b5,h9Q,qWn,wmE,NOQ,boi,Sx_,PFi,HoJ,sJi,K8a,ve_,CF5,GMq,rIo,cIt,aWE,RS6,W8E,neJ,dv_,mvt,t8i,F8n,lWq,L8Q,fWw,uvw,kMw,TOa,oeq,iow,JIE,UvQ,Zoi,jJ5,zSQ,AIw,EeO,XPO,YxE,yIE,DvO,V8J,eSt,$vo,PH,N6a,bSJ,P0q,HS6,KlO,sTE,C0L,vEi,OSa,GNi,rPi,cPE,aMn,RrO,Wlq,nEa,d5a,m5t,kNt,T6o,t36,FlL,M3L,B6i,fMo,u0q,QTi,HH,x5E,oEO,iSO,JPw,U55,ZSE,jTJ,
zri,APQ,Xpi,EE5,Y_E,yPt,IMQ,D5n,ero,hrQ,q_Q,NVo,wpo,bmi,SGo,PJw,HmJ,Kwa,vpt,OmQ,CJO,Gu5,rmw,cmE,aCt,RqQ,Wwo,npQ,TVi,tMi,mWt,kuL,dWw,MME,lCn,Fwn,BVn,u5q,Lw5,fCa,Q9E,xW_,opn,imE,UWi,Zmi,j96,Amq,Xet,pen,ym_,DWE,gpa,$Wo,qGn,NPQ,S7t,sSa,vvO,OLq,C2o,r6a,G36,aAa,Rpn,WGO,nvQ,Ks,dHt,mHo,k3E,ovq,J6E,UHw,A6t,Cs,Xr6,Ev6,prn,y65,Y7_,IAi,DHq,VOE,gva,ep5,KaQ,$Hq,hpJ,q7E,VML,wrJ,NCq,Kit,bFt,SrJ,PWo,HF5,sdO,KQQ,WKa,nSE,dkq,mki,kmt,Tuo,tVw,MVi;
s5n=function(){switch(_.duY()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
D8=function(N){if(!N)return"browse";var b=N.page,S=N.url,P,H,K,C=(P=N.response)==null?void 0:(H=P.responseContext)==null?void 0:(K=H.webResponseContextExtensionData)==null?void 0:K.pageTheme;if(C)b=C.toLowerCase().replace(/_/g,"-");else if(b!=="watch"&&b!=="learning_journey_watch"){var G,a;if((b==="browse"||b==="settings")&&((G=N.response)==null?0:(a=G.sidebar)==null?0:a.settingsSidebarRenderer))b="WEB_PAGE_TYPE_SETTINGS";else{var R,n;b==="browse"&&((R=N.response)==null?0:(n=R.metadata)==null?0:n.channelMetadataRenderer)?
b="channel":S&&(b=_.Cue(S)||b)}}return b};
Ke6=function(N){N=N.command;var b=_.t(N,_.kn);return{command:N,reelPlayerOverlayRenderer:_.t(b==null?void 0:b.overlay,_.Eg4),thumbnail:b==null?void 0:b.thumbnail,videoId:b.videoId}};
v7n=function(N){N=N.command;var b=_.t(N,_.Ow);return{command:N,reelNonVideoContentRenderer:_.t(b==null?void 0:b.renderer,_.GD)}};
Ot_=function(N){return N.entries?N.entries.map(function(b){return _.t(b==null?void 0:b.command,_.kn)?Ke6(b):v7n(b)}):[]};
CvL=function(N){return N.prevEntries?N.prevEntries.map(function(b){return _.t(b==null?void 0:b.command,_.kn)?Ke6(b):v7n(b)}):[]};
GQE=function(){return new Promise(function(N){var b=window;b.attmp!==void 0?N(b.attmp):(b.attmq===void 0&&(b.attmq=[]),b.attmq.push(function(S){N(S)}))})};
rAE=function(){var N=_.hl("yt.aba.att");return N?N:_.D4.instance!==void 0?_.D4.instance.vuF.bind(_.D4.instance):null};
cAn=function(N,b){var S,P;return _.r(function(H){return H.nextAddress==1?_.T("attmusi")&&_.T("attmusi_ue")?H.yield(GQE(),3):H.jumpTo(2):H.nextAddress!=2?(S=H.yieldResult,H.return(S.s(N,b,6E4))):(P=rAE())?H.return(P(N,b,6E4)):H.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
a7q=function(N,b,S,P,H){b=b===void 0?[]:b;H=H?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:H}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.bV(N),dialogMessages:b.map(function(K){return _.bV(K)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bV(S),serviceEndpoint:H}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bV(P)}}}}}};
RaJ=function(N,b,S,P){S||(N?P&&(P.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||P.WINDOW_SIZE_CHANGED&&(b.width!==window.innerWidth||b.height!==window.innerHeight)||P.SAFARI_ABORTED_BY_NEW_TRANSITION&&N instanceof DOMException&&N.name==="AbortError"&&N.message.includes("Old view transition aborted by new view transition"))||_.ge(N):_.ge(Error("zj")))};
Weo=function(N,b){b=b===void 0?{}:b;var S,P,H,K,C,G,a,R,n,d,m,k,M;return _.r(function(l){switch(l.nextAddress){case 1:S=b;P=S.shouldWrap===void 0?!0:S.shouldWrap;H=S.skipTransitionTimeoutMs===void 0?300:S.skipTransitionTimeoutMs;K=S.beforeTransition;C=S.afterTransition;if(!P||!document.startViewTransition||document.visibilityState==="hidden")return l.return(N());G={width:window.innerWidth,height:window.innerHeight};a=!1;(R=K)==null||R();_.u4(l,2);n=document.startViewTransition(N);d=setTimeout(function(){n.skipTransition();
a=!0},H);
return l.yield(n.ready,4);case 4:return clearTimeout(d),l.yield(n.finished,5);case 5:clearTimeout(d);(m=C)==null||m();_.su(l,0);break;case 2:k=_.UE(l),(M=C)==null||M(),RaJ(k,G,a,b.ignoredErrors),_.Zd(l)}})};
n7J=function(N,b,S){S=S===void 0?!1:S;var P=_.gU(),H=!!_.M$().queueProxy,K,C,G;N=N==null?void 0:(K=N.response)==null?void 0:(C=K.currentVideoEndpoint)==null?void 0:(G=C.watchEndpoint)==null?void 0:G.playlistId;if((H||N)&&!_.T("web_watch_disable_playlist_auto_miniplayer"))return S&&(P.playlistWatchPageActivation=!0),!0;switch(D8(b)){case "yts-products":return S&&(P.productDetailsPageActivation=!0),!0;case "mini_app":return S&&(P.miniAppPageActivation=!0),!0;case "playables":return S&&(P.playablesDestPageActivation=
!0),!0;case "companion-canvas":return S&&(P.companionCanvasActivation=!0),!0;default:return!1}};
Vi=function(N){var b=N.clientMessageId;var S=N.playerOffsetMs;var P=N.pageContext;N=N.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:b},!!S&&{playerOffsetMs:S},!!P&&{pageContext:P},!!N&&{userInputText:N})}};
dcq=function(N){N=_.vOO(N);N.length>0&&N[0].focus()};
mcE=function(N,b,S){for(var P=typeof N==="string"?N.split(""):N,H=N.length-1;H>=0;--H)H in P&&b.call(S,P[H],H,N)};
kQa=function(N,b,S){for(var P=N.length,H=typeof N==="string"?N.split(""):N,K=0;K<P;K++)if(K in H&&b.call(S,H[K],K,N))return K;return-1};
gw=function(N,b,S){b=kQa(N,b,S);return b<0?null:typeof N==="string"?N.charAt(b):N[b]};
Tb_=function(N,b){b=kQa(N,b);b>=0&&_.xLa(N,b)};
tlo=function(N){return Array.prototype.concat.apply([],arguments)};
Mli=function(N){if(!(0,_.qeS)(N))throw Error("K``"+String(N));};
FeL=function(N){var b=0;b=b===void 0?0:b;if(!_.P5(N))throw _.wI("uint64");var S=typeof N;switch(b){case 512:switch(S){case "string":return _.i9Y(N);case "bigint":return String((0,_.kQ)(64,N));default:return _.xSp(N)}case 1024:switch(S){case "string":return _.JVe(N);case "bigint":return _.z4((0,_.kQ)(64,N));default:return _.oZf(N)}case 0:switch(S){case "string":return _.i9Y(N);case "bigint":return _.z4((0,_.kQ)(64,N));default:return _.Qbe(N)}default:return _.$Z(b,"Unknown format requested type for int64")}};
Bbi=function(N,b,S){if(b)return _.TE(N);var P;return(P=_.Fi(N))!=null?P:S?"":void 0};
l7E=function(N){N!=null&&(N=N.JSC$9053_value_||"",N=typeof N==="string"?N:new Uint8Array(N));return N};
Len=function(N,b){var S=_.nwI(b);S!=="javascript:"&&S!=="data:"&&N.setAttribute("href",b)};
f7L=function(N,b){if(/-[a-z]/.test(b))return null;if(_.$zZ&&N.dataset){if(_.koI()&&!(b in N.dataset))return null;N=N.dataset[b];return N===void 0?null:N}return N.getAttribute("data-"+_.ci(b))};
ux6=function(N,b,S){b=b===void 0?5:b;if(b!==0){var P=typeof N==="function"?N():document.querySelector(N);P?(S==null?0:S.enableSmartFocus)?_.qlf(P):P.focus():setTimeout(function(){ux6(N,b-1,S)},500)}};
Q5E=function(N){return _.Gx(N)?N.getAttribute("jsname")==="coFSxe":!1};
xcE=function(N,b){b.id||(b.id="ow"+_.gI(b));N.setAttribute("jsowner",b.id);N.__owner=b;var S=_.wY(b,Q5E);S&&(_.Bp9.has(S)||_.Bp9.set(S,[]),_.Bp9.get(S).push(N));(S=_.Fiz.get(b))||_.Fiz.set(b,S=[]);S.includes(N)||S.push(N);b.setAttribute("__IS_OWNER",!0)};
o7i=function(){var N=_.fjf(1);N=_.RO(N,_.J2e);if(!(_.LVf(N)||N[_.xyU]&&!N.__hasBeenSet))return N.value};
itL=function(N){return String.raw.apply(String,[{raw:N}].concat(_.IX(_.$I.apply(1,arguments).map(function(b){return b instanceof Array?b.join(""):b}))))};
UcO=function(N){var b=_.$I.apply(1,arguments),S=b.length;if(!Array.isArray(N)||!Array.isArray(N.raw)||N.length!==N.raw.length||!_.Bcl&&N===N.raw||!(_.Bcl&&!_.lB9||_.z7(N))||S+1!==N.length)throw new TypeError("$");return new JAa(Object.freeze({strings:Object.freeze(N),args:Object.freeze(b)}))};
Zt5=function(){var N=window.location.hash;N.charAt(0)==="#"&&(N=N.charAt(1)==="!"?N.substring(2):N.substring(1));return _.bQ(N)};
zaO=function(){var N=j5_;_.hl("yt.ads.biscotti.getId_")||_.aB("yt.ads.biscotti.getId_",N)};
AAJ=function(N){_.aB("yt.ads.biscotti.lastId_",N)};
E76=function(){var N={};for(_.Yb=new Xzi(N.handleError===void 0?_.ed:N.handleError,N.logEvent===void 0?_.Dn:N.logEvent);_.yB.length>0;)switch(N=_.yB.shift(),N.type){case "ERROR":_.Yb.logError(N.payload);break;case "EVENT":_.Yb.logEvent(N.eventType,N.payload)}};
pzi=function(N,b,S){return _.kLU(function(P){return S?P.userIdentifier!==void 0&&!N.includes(P.userIdentifier)&&S.includes(P.publicName):P.userIdentifier!==void 0&&!N.includes(P.userIdentifier)},b)};
YXw=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return b=_.Ul("YtIdbMeta hasAnyMeta other"),P.yield(_.kLU(function(H){return H.userIdentifier!==void 0&&H.userIdentifier!==b},N),2);
S=P.yieldResult;return P.return(S.length>0)})};
I7Q=function(N,b){yAo||(yAo=_.Dj.addLowPriorityJob(function(){var S,P,H,K,C;return _.r(function(G){switch(G.nextAddress){case 1:return G.yield(_.RB(),2);case 2:S=G.yieldResult;if(!S)return G.return();P=!0;_.u4(G,3);return G.yield(pzi(N,S,b),5);case 5:H=G.yieldResult;if(!H.length){P=!1;G.jumpTo(6);break}K=H[0];return G.yield(_.Kh(K.actualName),7);case 7:return G.yield(_.Ch(K.actualName,S),6);case 6:_.su(G,4);break;case 3:C=_.UE(G),_.IN(C),P=!1;case 4:_.Dj.cancelJob(yAo),yAo=0,P&&I7Q(N,b),_.Zd(G)}})}))};
Dco=function(){var N;return _.r(function(b){return b.nextAddress==1?b.yield(_.RB(),2):(N=b.yieldResult)?b.return(YXw(N)):b.return(!1)})};
Vln=function(N){var b=100;b=b===void 0?500:b;var S,P,H,K,C,G;return _.r(function(a){return a.nextAddress==1?(S=_.Vg("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[S,(0,_.nh)()-2592E6],H=[S,(0,_.nh)()],K=IDBKeyRange.bound(P,H),a.yield(_.DI_(N),2)):a.nextAddress!=3?(C=a.yieldResult,G=[],a.yield(_.Ou(C,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(R){G.length=0;return _.dk(R.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:K,direction:"prev"},function(n){if(n.getValue()&&G.length<
b)return G.push(n.getValue()),n.delete().then(function(){return n.continue()})})}),3)):a.return(G)})};
g7L=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.RB(),2);N=b.yieldResult;if(!N||!_.Zh()&&!_.T("nwl_init_require_datasync_id_killswitch")||!_.rM_())return b.jumpTo(0);_.aNs=!0;_.cM_.isNwlInitialized=_.aNs;return b.yield(_.m6d().awaitInitialization(),0)})};
eP=function(N,b){_.xuL[N]=!0;var S=_.de();S&&S.publish.apply(S,arguments);_.xuL[N]=!1};
$cL=function(){if(_.vqa()&&!ean){var N=function(S){S=S.data;if(S.op==="serializedGelBatch"){var P=_.o9u.get(S.key);P&&(_.J8u(S.serializedBatch,P.client,P.resolve,P.networklessOptions,P.isIsolated,P.useVSSEndpoint,P.dangerousLogToVisitorSession,P.requestsOutstanding),_.o9u.delete(S.key))}},b=_.KdO();
b&&(b.addEventListener("message",N),b.onerror=function(){_.o9u.clear()});
ean=!0}};
haa=function(){this.relativeTimeStart_=_.sG()};
qXJ=function(N,b){N!=null&&this.append.apply(this,arguments)};
$i=function(){for(var N=Array(36),b=0,S,P=0;P<36;P++)P==8||P==13||P==18||P==23?N[P]="-":P==14?N[P]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),S=b&15,b>>=4,N[P]=_.bFu[P==19?S&3|8:S]);return N.join("")};
wzE=function(){return _.ZV("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
PxJ=function(){var N=_.Vm.clone(N0J),b;return(new _.u5(function(S,P){N.onSuccess=function(H){_.d7Y(H)?S(new bxJ(H)):P(new Ss5("Request failed, status="+_.TW(H),"net.badstatus",H))};
N.onError=function(H){P(new Ss5("Unknown request error","net.unknown",H))};
N.onTimeout=function(H){P(new Ss5("Request timed out","net.timeout",H))};
b=_.lQ("//googleads.g.doubleclick.net/pagead/id",N)})).thenCatch(function(S){if(S instanceof _.zM){var P;
(P=b)==null||P.abort()}return _.f7(S)})};
HxE=function(N,b,S){S=S===void 0?!1:S;var P,H,K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:_.iQ("SOCS",N,34128E3,"youtube.com",!0);if(_.a9)return H=fetch(b,{method:"POST",mode:_.p6(b),credentials:_.EY(b),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),K=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.p6("/upgrade_visitor_cookie?eom=1"),credentials:_.EY("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),a.yield(Promise.all([H,K]).then(function(R){return R[1]}),5);
fetch(b,{method:"POST",mode:_.p6(b),credentials:_.EY(b),cache:"no-store",headers:{"Content-Type":"text/plain"}});return a.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.p6("/upgrade_visitor_cookie?eom=1"),credentials:_.EY("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:P=a.yieldResult;a.jumpTo(3);break;case 5:P=C=a.yieldResult;case 3:if(!P.ok)throw Error("vf");return a.yield(P.text(),7);case 7:G=a.yieldResult,
!G.includes('"state_switch":true')&&!S||G.includes("skip_reload_for_test")||window.location.reload(),_.Zd(a)}})};
seo=function(N){return _.r(function(b){return b.nextAddress==1?b.yield(HxE(N.socsCookie,N.savePreferenceUrl,!0),2):b.return()})};
KNq=function(N){return _.r(function(b){return b.nextAddress==1?b.yield(HxE(N.socsCookie,N.savePreferenceUrl),2):b.return()})};
OxE=function(N){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var S=N.raw_embedded_player_response;if(!S&&(N=N.embedded_player_response))try{S=JSON.parse(N)}catch(H){break a}if(S)b:{N=vXt;for(var P in N)if(N[P]==S.embeddedPlayerMode){b=N[P];break b}}}return b==="EMBEDDED_PLAYER_MODE_PFL"};
Cxw=function(){if(_.T("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.Sca())return Error("xf");var N=_.Vg("PLAYER_VARS",{});if(_.Vm.get(N,"privembed",!1)=="1")return Error("yf");if(OxE(N))return Error("zf")};
aYL=function(N){N=N.xhr.responseText;if(!_.Ka(N,")]}'"))throw new GbO;N=JSON.parse(N.substr(4));if((N.type||1)>1)throw new GbO;N=N.id;AAJ(N);r35=_.Mp(N);c3i(18E5,2);return N};
WNn=function(N,b){b=new Rf6(b);AAJ("");r35=_.FMd(b);N>0&&c3i(12E4,N-1);throw b;};
c3i=function(N,b){_.tz(function(){PxJ().then(aYL,function(S){return WNn(b,S)}).thenCatch(_.Qo)},N)};
j5_=function(){var N=Cxw();if(N!==void 0)return _.f7(N);r35||(r35=PxJ().then(aYL).thenCatch(function(b){return WNn(2,b)}));
return r35};
nX6=function(){var N=document;return gw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in N})};
dMq=function(N){N.addEventListener("click",function(b){var S=b.target;S&&S.getAttribute("href")&&(S=S.getAttribute("href"),_.Kg(window,S,"_blank"),b.preventDefault(),b.stopImmediatePropagation())})};
mMO=function(){var N=_.dX();N.info||(N.info={});return N.info};
hy=function(){return(_.T("csi_use_time_origin")||_.T("csi_use_time_origin_tvhtml5"))&&_.M7.timeOrigin?Math.floor(_.M7.timeOrigin):_.M7.timing.navigationStart};
qx=function(N){return Math.round(hy()+N)};
kbq=function(){var N;if(_.T("csi_use_performance_navigation_timing")){var b,S,P,H=_.M7==null?void 0:(N=_.M7.getEntriesByType)==null?void 0:(b=N.call(_.M7,"navigation"))==null?void 0:(S=b[0])==null?void 0:(P=S.toJSON)==null?void 0:P.call(S);H?(H.requestStart=qx(H.requestStart),H.responseEnd=qx(H.responseEnd),H.redirectStart=qx(H.redirectStart),H.redirectEnd=qx(H.redirectEnd),H.domainLookupEnd=qx(H.domainLookupEnd),H.connectStart=qx(H.connectStart),H.connectEnd=qx(H.connectEnd),H.responseStart=qx(H.responseStart),
H.secureConnectionStart=qx(H.secureConnectionStart),H.domainLookupStart=qx(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,N=H):N=_.M7.timing}else N=_.T("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.M7.timing)):_.M7.timing;return N};
T0n=function(){if(_.M7.getEntriesByType){var N=_.M7.getEntriesByType("paint");if(N=gw(N,function(S){return S.name==="first-paint"}))return qx(N.startTime)}var b;
_.T("csi_use_performance_navigation_timing")?b=_.M7.getEntriesByType("first-paint")[0].startTime:b=_.M7.timing.msFirstPaint;return b?Math.max(0,b):0};
Mgw=function(){var N=window.location.protocol,b=_.M7.getEntriesByType("resource");b=_.Cm(b,function(S){return S.name.indexOf(N+"//fonts.gstatic.com/s/")===0});
(b=tgi(b,function(S,P){return P.duration>S.duration?P:S}))&&b.startTime>0&&b.responseEnd>0&&(_.TY("wffs",qx(b.startTime)),_.TY("wffe",qx(b.responseEnd)))};
FNL=function(N,b){N=document.querySelector(N);if(!N)return!1;var S="",P=N.nodeName;P==="SCRIPT"?(S=N.src,S||(S=N.getAttribute("data-timing-href"))&&(S=window.location.protocol+S)):P==="LINK"&&(S=N.href);_.vM(document)&&N.setAttribute("nonce",_.vM(document));return S?(N=_.M7.getEntriesByName(S))&&N[0]&&(N=N[0],S=hy(),_.TY("rsf_"+b,S+Math.round(N.fetchStart)),_.TY("rse_"+b,S+Math.round(N.responseEnd)),N.transferSize!==void 0&&N.transferSize===0)?!0:!1:!1};
lYi=function(N,b){_.$U(function(){_.kR("").info.actionType=N;b&&_.DH("TIMING_AFT_KEYS",b);_.DH("TIMING_ACTION",N);var S=_.DDs(_.Vg("TIMING_INFO",{}));Object.keys(S).length>0&&_.tZ(S);S={isNavigation:!0,actionType:_.JjO(_.Vg("TIMING_ACTION"))};var P=_.Vg("PREVIOUS_ACTION");P&&(S.previousAction=_.JjO(P));if(P=_.Vg("CLIENT_PROTOCOL"))S.httpProtocol=P;if(P=_.Vg("CLIENT_TRANSPORT"))S.transportProtocol=P;(P=_.Qh())&&P!=="UNDEFINED_CSN"&&(S.clientScreenNonce=P);P=s5n();if(P===1||P===-1)S.isVisible=!0;P=
_.lsa().loadType==="cold";var H=mMO();P||(P=H.yt_lt==="cold");if(P){S.loadType="cold";P=mMO();H=kbq();var K=hy(),C=_.Vg("CSI_START_TIMESTAMP_MILLIS",0);C>0&&!_.T("embeds_web_enable_csi_start_override_killswitch")&&(K=C);K&&(_.TY("srt",H.responseStart),P.prerender!==1&&_.AjE(K));P=T0n();P>0&&_.TY("fpt",P);P=kbq();P.isPerformanceNavigationTiming&&_.tZ({performanceNavigationTiming:!0},void 0);_.TY("nreqs",P.requestStart,void 0);_.TY("nress",P.responseStart,void 0);_.TY("nrese",P.responseEnd,void 0);
P.redirectEnd-P.redirectStart>0&&(_.TY("nrs",P.redirectStart,void 0),_.TY("nre",P.redirectEnd,void 0));P.domainLookupEnd-P.domainLookupStart>0&&(_.TY("ndnss",P.domainLookupStart,void 0),_.TY("ndnse",P.domainLookupEnd,void 0));P.connectEnd-P.connectStart>0&&(_.TY("ntcps",P.connectStart,void 0),_.TY("ntcpe",P.connectEnd,void 0));P.secureConnectionStart>=hy()&&P.connectEnd-P.secureConnectionStart>0&&(_.TY("nstcps",P.secureConnectionStart,void 0),_.TY("ntcpe",P.connectEnd,void 0));_.M7&&"getEntriesByType"in
_.M7&&Mgw();P=[];if(document.querySelector&&_.M7&&_.M7.getEntriesByName)for(var G in B0t)B0t.hasOwnProperty(G)&&(H=B0t[G],FNL(G,H)&&P.push(H));if(P.length>0)for(S.resourceInfo=[],G=_.O(P),P=G.next();!P.done;P=G.next())S.resourceInfo.push({resourceCache:P.value})}_.tZ(S);S=_.mn();S.preLoggedGelInfos||(S.preLoggedGelInfos=[]);G=S.preLoggedGelInfos;S=_.fse();P=void 0;for(H=0;H<G.length;H++)if(K=G[H],K.loadType){P=K.loadType;break}if(_.lsa().loadType==="cold"&&(S.loadType==="cold"||P==="cold")){P=_.L3Y();
H=_.mn();H=H.gelTicks?H.gelTicks:H.gelTicks={};for(var a in P)a in H||typeof P[a]==="number"&&_.TY(a,_.F8(a));a={};P=!1;G=_.O(G);for(H=G.next();!H.done;H=G.next())P=H.value,_.UY(S,P),_.UY(a,P),P=!0;P&&_.tZ(a)}_.g6p(!0);a=_.Vg("TIMING_ACTION");_.hl("ytglobal.timingready_")&&a&&_.Pt9()&&_.VDE()&&_.yju()})()};
LN6=function(N){var b,S,P,H=(P=(S=((b=N.mainDownloadsListEntity)!=null?b:{})[_.fRO])==null?void 0:S.refresh)!=null?P:"",K;N=(K=N.refresh)==null?void 0:K[H];H=N!=null?N:{};return(H==null?0:H.refreshTime)?Number(H==null?void 0:H.refreshTime):0};
fYi=function(N,b){var S=_.BU(N);return b.every(function(P){var H;P=P==null?void 0:(H=P.playbackDataEntity)==null?void 0:H.key;if(!P)return!1;H=_.Cu(_.Ku(P).entityId,"mainVideoEntity");return!!S[H]})};
uGE=function(N){return N.ui.guideIsVisibleButNotPersistent};
Qe_=function(N){return N.ui.scrollAtTop};
xMn=function(N){return N.ui.tabGesturesIsActive};
oXi=function(N){N=_.t0(N.entities);return _.pya(N).length};
ixE=function(N,b){if(b){var S;N=(S=_.GL(N.entities,"downloadQualityPickerEntity",b))!=null?S:void 0}else N=void 0;return N};
ww=function(N,b,S){var P;return _.r(function(H){if(H.nextAddress==1)return H.yield(b(),2);P=H.yieldResult;S(P,N);_.Zd(H)})};
J3O=function(){return _.r(function(N){return N.nextAddress==1?N.yield((Cxw()!==void 0?_.f7(Error("Af")):PxJ()).then(function(){return 1},function(b){if(b.message==="Biscotti id is disabled")return 3;
_.$h("Failed fetching bid");return 0}),2):N.return(N.yieldResult)})};
Zxt=function(){var N=_.b1("ZXIjZmczcHUxYTBidXRmeXQtaGF2ZW4tZW1iZWQtcGxheQ=="),b=_.b1("b3l0eXNqYmlmcmFtZSNhMzJ1Mg==");return document.querySelector(b+UMa+N)?0:1};
jeL=function(N){var b=document.getElementsByTagName("ytd-enforcement-message-view-model");b.length===0||getComputedStyle(b[0]).display==="none"?N(0,"p.h_"):N(1,"p.h_")};
zfO=function(){return _.pnY(_.lP)};
A3t=function(){return _.YDs()===0?0:_.yJ9()};
X_J=function(){return _.eyu(_.CkY([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
p_E=function(){return _.JJ_(EXi)};
Ysw=function(N){_.r(function(b){switch(b.nextAddress){case 1:return b.yield(ww("b.f_",J3O,N),2);case 2:return b.yield(ww("j.s_",_.ota,N),3);case 3:return b.yield(ww("r.s_",_.u_a,N),4);case 4:return b.yield(ww("e.h_",p_E,N),5);case 5:if(!_.T("ab_det_sc_inj")){b.jumpTo(6);break}return b.yield(ww("s.i_",_.XnU,N),6);case 6:if(_.T("ab_deg_unex_thr")){b.jumpTo(8);break}return b.yield(ww("a.o_",_.zy_,N),8);case 8:if(_.T("ks_get_o_pp")){b.jumpTo(10);break}return b.yield(ww("g.o_",_.jDO,N),10);case 10:if(_.T("ks_det_gpbl")){b.jumpTo(12);
break}return b.yield(ww("p.i_",_.ZW9,N),12);case 12:return b.yield(ww("f.i_",_.dhs,N),14);case 14:return b.yield(ww("a.b_",_.LqU,N),15);case 15:return b.yield(ww("p.m_",_.T4O,N),16);case 16:if(!_.T("ab_det_el_h_v2")){b.jumpTo(17);break}return b.yield(ww("n.h_",X_J,N),17);case 17:return b.yield(ww("o.p_",zfO,N),19);case 19:return b.yield(ww("e.i_",Zxt,N),20);case 20:if(_.T("ab_det_apm"))return b.yield(ww("o.a_",A3t,N),0);b.jumpTo(0)}})};
y3E=function(N){switch(N){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.$Z(N,"unknown result type")}};
IYO=function(N,b,S){b=_.PuU[b];S={detected:N===0,source:b.k3O,detectionResult:y3E(N),contentCpn:S};_.Dn("biscottiBasedDetection",S);_.Apz.increment(b.k3O,N);b.ypL!==void 0&&_.DH("CATSTAT",_.bHb(N,b))};
gXn=function(){DME=0;var N=[_.my(!0)];Vg_&&_.PN(Vg_,"yt-window-resized",N)};
efO=function(){DME||(DME=_.Dj.addLowPriorityJob(gXn,200))};
qsn=function(){$ME=0;hf6=_.h8O(document);var N=[hf6];Vg_&&_.PN(Vg_,"yt-window-scrolled",N)};
w_w=function(){$ME||($ME=_.Dj.addLowPriorityJob(qsn,200))};
b65=function(N){N=N===void 0?null:N;Npt.push(_.a0(window,"resize",efO));Npt.push(_.a0(window,"scroll",w_w));N&&(Vg_=N)};
SYa=function(N){N=N.target.result;N.objectStoreNames.contains("swpushnotificationsstore")&&N.deleteObjectStore("swpushnotificationsstore");N.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
H6q=function(){return PZi?Promise.resolve(PZi):new Promise(function(N,b){var S=self.indexedDB.open("swpushnotificationsdb");S.onerror=b;S.onsuccess=function(){var P=S.result;if(P.objectStoreNames.contains("swpushnotificationsstore"))PZi=P,N(PZi);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),H6q()};
S.onupgradeneeded=SYa})};
NC=function(N){var b=new _.jU("Error accessing DB");return H6q().then(function(S){return new Promise(function(P,H){try{var K=S.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(N);K.onsuccess=function(){var C=K.result;P(C?C.value:null)};
K.onerror=function(){b.params={key:N,source:"onerror"};H(b)}}catch(C){b.params={key:N,
thrownError:String(C)},H(b)}})},function(){return null})};
svQ=function(N,b){var S={};S.key=N;S.value=b;return H6q().then(function(P){return new Promise(function(H,K){try{var C=P.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(S);C.onsuccess=function(){H()};
C.onerror=function(){K()}}catch(G){K(G)}})})};
vyw=function(){var N=_.F6.getLocalStorage();N&&Kit(N,N.mechanism.__iterator__(!0))};
O6L=function(N){_.r(function(b){if(b.nextAddress==1)return b.yield(N.delete("yt-appshell-assets"),2);_.Zd(b)})};
CZi=function(N){return _.vK((0,_.LX9)(),N)};
rw6=function(){var N;_.r(function(b){return b.nextAddress==1?b.yield(bd.getInstance(),2):(N=b.yieldResult)?b.yield(Gk_(N),0):b.jumpTo(0)})};
aVw=function(){var N;_.r(function(b){return b.nextAddress==1?b.yield(S5.getInstance(),2):(N=b.yieldResult)?b.yield(cw5(N),0):b.jumpTo(0)})};
RME=function(N){O6L(N);rw6();aVw()};
Wi5=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.ulU(N),2);if(b=P.yieldResult){var H;a:{if(b.headers&&(H=b.headers.get("date"))&&(H=Date.parse(H),!isNaN(H))){H=Math.round((0,_.nh)()-H);break a}H=-1}S=H;if(S>-1)return P.return(S)}return P.return(-1)})};
nya=function(){var N=_.Ps.caches,b=_.g8("IS_SHELL_LOAD"),S,P;_.r(function(H){if(H.nextAddress==1)return S=-1,b?H.yield(Wi5(N),3):(P=hy(),S=Math.round((0,_.nh)()-P),H.jumpTo(2));H.nextAddress!=2&&(S=H.yieldResult);S>=0&&S<2147483648&&_.lC({appInstallDataAgeMs:S});_.Zd(H)})};
dy_=function(N){var b=_.sB(_.Ps.location.href),S={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(P){var H=b.JSC$10265_queryData_.getValues(P);if(H==null?0:H.length)S[P]=H});
return _.FK(N,new Map(Object.entries(S)))};
myw=function(N){return _.DqU(_.IUe(N&16777215))<.5};
kka=function(N){N=N.match(/(.*)::.*::.*/);if(N!==null)return N[1]};
TpE=function(N){if(_.VJL()){var b=Object.keys(window.localStorage);b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=kka(S);P===void 0||N.includes(P)||self.localStorage.removeItem(S)}}};
t0J=function(){if(!_.VJL())return!1;var N=_.Ul(),b=Object.keys(window.localStorage);b=_.O(b);for(var S=b.next();!S.done;S=b.next())if(S=kka(S.value),S!==void 0&&S!==N)return!0;return!1};
M0o=function(N){return svQ("NotificationsDisabled",N)};
Fit=function(){var N=_.m6("service_worker_scope");try{return navigator.serviceWorker.getRegistration(N)}catch(b){return Promise.reject(b)}};
Bpq=function(){return Notification.permission!="granted"?Promise.resolve():Fit().then(function(N){return N?N.pushManager.getSubscription().then(function(b){if(b)return Promise.resolve();b={userVisibleOnly:!0,applicationServerKey:_.qL("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return N.pushManager.subscribe(b).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
lVa=function(N){return Fit().then(function(b){if(!b||!b.active)return Promise.reject(new _.jU("serviceworker.postMessage",N,b));try{return b.active.postMessage(N),Promise.resolve()}catch(S){return Promise.reject(S)}})};
Lin=function(){lVa({type:"notifications_register",data:_.Vg("ID_TOKEN")})};
fVw=function(N){return!(!N||!N.pushManager)};
uVE=function(){return Fit().then(fVw).catch(function(){return!1})};
QvO=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?uVE():Promise.resolve(!1)};
i6i=function(){var N={isWide:_.xb.get("wide","0")==="1"},b=_.WN();if(b=b.getFlag(165)||b.getFlag(174))N.theme=_.As(!0);if(_.rap()){var S=_.zB()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";N.systemTheme=S}!b&&_.T("parent_tools_enable_app_settings")&&_.SU(window.location.href).theme!==void 0&&(N.theme=_.As());if((b=xy6)?!_.Vm.equals(b,N):N)b={currentValue:N},oyi&&(b.timeSinceLastSnapshotSecs=Math.round(((0,_.nh)()-oyi)/1E3)),xy6&&(b.previousValue=xy6),_.Dn("appSettingsCaptured",b),xy6=
N,oyi=(0,_.nh)()};
Jw_=function(){if(!_.g8("LOGGED_IN"))return Promise.resolve(!1);var N=_.m6("service_worker_push_force_notification_prompt_tag");return N?NC("PromptTags").then(function(b){if(!b)return!0;var S=[];try{S=JSON.parse(b)}catch(P){return!1}return S&&S.indexOf(N)==-1}):Promise.resolve(!1)};
UyE=function(){var N=_.d7("service_worker_push_prompt_delay_microseconds");return N?NC("PromptTime").then(function(b){return Promise.resolve(Date.now()-N>(b||0))}):Promise.resolve(!0)};
Z6t=function(){var N=_.d7("service_worker_push_logged_out_prompt_watches");return N==-1?Promise.resolve(!1):NC("WatchCount").then(function(b){return b>=N})};
jvw=function(){var N=_.Nb(document,"yt-push-prompt-modal-bg");N&&_.Zg(N)};
zMQ=function(){return _.d7("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):NC("PromptCount").then(function(N){N||(N=0);return Promise.resolve(N<_.d7("service_worker_push_prompt_cap"))})};
Awn=function(N){return _.g8("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.g8("LOGGED_IN")&&(N===void 0?0:N)?Jw_().then(function(b){if(b)return!0;b=[zMQ(),UyE()];_.g8("LOGGED_IN")||b.push(Z6t());return Promise.all(b).then(function(S){return S.every(function(P){return P})})}):Promise.resolve(!1)};
XiO=function(){NC("PromptCount").then(function(N){return svQ("PromptCount",N+1)}).then(function(){return svQ("PromptTime",Date.now())}).then(function(){var N=_.m6("service_worker_push_force_notification_prompt_tag");
if(N)return NC("PromptTags").then(function(b){var S=[];if(b)try{S=JSON.parse(b)}catch(P){return!1}S||(S=[]);S.push(N);return svQ("PromptTags",JSON.stringify(S))})})};
pi5=function(){EyQ||jvw()};
YYE=function(N){N.style.zIndex=2147483648;N.style.pointerEvents="auto";N.style.backgroundColor="rgba(0, 0, 0, 0.6)";N.style.width="100%";N.style.height="100vh";N.style.position="absolute";N.style.top="0";N.style.left="0";N.style.border="none"};
ywJ=function(){var N=_.Nb(document,"yt-push-prompt-modal-bg");EyQ=_.T("service_worker_push_prompt_modal_ignore_click");N?YYE(N):(N=_.z3("div",{id:"yt-push-prompt-modal-bg"}),YYE(N),document.body.appendChild(N),_.lNY(document,"click",pi5))};
IVa=function(){var N=arguments;_.T("service_worker_push_prompt_modal_enable")&&ywJ();return Notification.requestPermission().then(function(b){jvw();var S=document.getElementById("ticker");S&&(S.className=S.classList.remove("show"));if(b=="granted")return Bpq().then(function(){M0o(!1);Lin();return Promise.resolve(!0)});
b=="denied"&&Lin();return Promise.resolve(!1)}).catch(function(){jvw();
return Promise.reject.apply(Promise,_.IX(N))})};
DyO=function(N){N=N===void 0?!1:N;var b=_.nNO().client;if(b&&b.browserVersion){var S=b.browserVersion,P=b.browserName=="CHROME"&&_.Ws(S,"50.0.0")<0;b=b.browserName=="OPERA"&&_.Ws(S,"42.0.0")<0;if(P||b)return Promise.resolve()}return QvO().then(function(H){if(!H)return Promise.resolve();H=Bpq().then(function(){return lVa({type:"notifications_check_registration",data:_.Vg("ID_TOKEN")})});
return Notification.permission!="default"?H.catch(function(){}):H.then(function(){return Awn(N)}).then(function(K){if(K)return XiO(),IVa().then(function(){})}).catch(function(){})})};
V0n=function(N){return fVw(N)?DyO():Promise.resolve()};
gyo=function(N){var b=N.installing||N.waiting;return N.active||!b?Promise.resolve(N):new Promise(function(S){var P=function(H){H=H.target;if(H.state==="activated"||H.state==="redundant")b.removeEventListener("statechange",P),S(N)};
b.addEventListener("statechange",P)})};
eME=function(){var N=new _.UPs("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Wp(N,{mainAppWeb:_.Yn()});var b=_.Vh9;_.T("service_worker_forward_exp_params")&&(b=dy_(b));try{var S=_.kab(b).catch(function(){_.nS(N,"FAILURE");return new Promise(function(){})});
_.T("service_worker_push_enabled")&&S.then(function(P){_.nS(N,"SUCCESS");return P}).then(gyo).then(V0n)}catch(P){if(_.nS(N,"FAILURE"),P.name!=="SecurityError")throw P;
}};
$yJ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&eME()};
PJ=function(N,b,S,P,H){var K={};b&&(K[b]=S);P?K.errorType=P:H&&(K.errorReason=H);_.Dn(N,K);_.VE()};
hM_=function(N,b){var S={};b&&(S.serializedYpcFamilyCreateLoggingParams=b);_.Dn(N,S);_.VE()};
qYJ=function(N,b){var S={};S.serializedYpcRefundFlowLoggingParams=b;N&&(S.eventType=N);_.Dn("ypcRefundFlowEvent",S);_.VE()};
wiQ=function(N){N&&_.tqa("transactionFlowSucceeded",N)};
NXi=function(){PJ("ypcRedeemFlowStarted")};
bA6=function(N){PJ("ypcRedeemFlowFailed",void 0,void 0,void 0,N)};
SRq=function(N){N&&PJ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
HJ=function(N){return function(b,S){var P=N||S.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(b,S,{get:function(){var H;return this.$?this.$[P]:(H=_.n3(this))==null?void 0:H.querySelector("#"+P)},
enumerable:!0,configurable:!0})}};
PCQ=function(N){if(N=_.pYs(N)){var b;(b=N.sources)!=null&&b[0]?(b=_.y7b(N),b=b<1?"VERTICAL":b>1?"HORIZONTAL":"SQUARE"):b=void 0;return b}};
HAq=function(N){return(N=_.pYs(N))?_.y7b(N):0};
smL=function(N){var b,S,P,H,K,C,G;_.r(function(a){if(a.nextAddress==1)return a.yield(_.ALU(),2);if(a.nextAddress!=3){if(!a.yieldResult)return a.return(!1);b=[];return a.yield(_.HX.keys(),3)}S=a.yieldResult;P=_.O(S);for(H=P.next();!H.done;H=P.next())K=H.value,C=_.jGs(K),G=C.datasyncId,!G||N.includes(G)||b.push(_.HX.delete(K));return a.return(Promise.all(b).then(function(R){return R.some(function(n){return n})}))})};
Knq=function(){var N,b,S,P,H,K,C;return _.r(function(G){if(G.nextAddress==1)return G.yield(_.ALU(),2);if(G.nextAddress!=3){if(!G.yieldResult)return G.return(!1);N=_.Ul("cache contains other");return G.yield(_.HX.keys(),3)}b=G.yieldResult;S=_.O(b);for(P=S.next();!P.done;P=S.next())if(H=P.value,K=_.jGs(H),(C=K.datasyncId)&&C!==N)return G.return(!0);return G.return(!1)})};
vRa=function(N,b){return _.GL(N.entities,"inlineExpansionEntity",b)};
OAt=function(N,b){return _.GL(N.entities,"timedMarkersListSyncEntity",b)};
CCw=function(N,b){return _.GL(N.entities,"liveReactionsDataEntity",b)};
GYo=function(N,b){N=_.GL(N.entities,"booleanEntity",b);return!(!N||!N.value)};
rZi=function(N,b){var S=_.Qh();S&&N&&_.AZ(S,_.FA(N),b)};
cZJ=function(N){return N.watch.isWatchActive};
apL=function(N){return N.watch.isLearningJourneyActive};
Rza=function(N){return N.watch.watchWindowSize};
Wna=function(N){return!_.Ezb(N)};
s6=function(N){return N.watch.watchScrollTop};
nRq=function(N){return N.watch.isLiveChatCollapsed};
d7L=function(N,b){return _.GL(N.entities,"flowStateEntity",b)};
m76=function(){var N=_.aN().resolve(_.cq(_.eQz));return N?N.getCurrentTime():0};
kYt=function(N,b){N={videoId:N};b&&(N.playlistId=b);return N};
TXw=function(){var N,b,S,P,H,K,C,G,a,R,n,d,m,k;return _.r(function(M){switch(M.nextAddress){case 1:N={},b=_.Y4U(),S=_.O(Object.entries(b)),P=S.next();case 4:if(P.done){M.jumpTo(3);break}H=P.value;K=_.O(H);C=K.next().value;G=K.next().value;a=C;R=G;if(!R){M.jumpTo(5);break}return M.yield(R(),8);case 8:N[a]=M.yieldResult;case 5:P=S.next();M.jumpTo(4);break;case 2:n=_.O(),d=n.next();case 9:if(d.done){M.jumpTo(3);break}m=d.value;k=b[m];if(!k){M.jumpTo(10);break}return M.yield(k(),13);case 13:N[m]=M.yieldResult;
case 10:d=n.next();M.jumpTo(9);break;case 3:return M.return(N)}})};
tta=function(){var N;_.r(function(b){if(b.nextAddress==1)return b.yield(TXw(),2);N=b.yieldResult;return b.yield(navigator.clipboard.writeText(JSON.stringify(N,null,2)),0)})};
Mto=function(N,b){if(N&&b){var S=_.dx();S().set(N,b);_.q6Y(S())}};
Fn5=function(N,b){if(N&&b){var S=_.dx();S().set(N,b);_.q6Y(S())}};
BXq=function(N,b){return _.GL(N.entities,"superThanksSelectedTierEntity",b)};
lpQ=function(N,b){return _.GL(N.entities,"contextNoteUserRatingEntityPayload",b)};
Ln_=function(){_.T("web_watch_log_theater_mode")&&_.rQp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
fpO=function(N,b,S){if(!N.includes("START_TIME_PLACEHOLDER")||!N.includes("END_TIME_PLACEHOLDER"))return N;var P=new Date(0),H=new Date(0);P.setUTCMilliseconds(b);H.setUTCMilliseconds(S);return N.replace("START_TIME_PLACEHOLDER",_.Ip(P,7)).replace("END_TIME_PLACEHOLDER",_.Ip(H,7))};
u8E=function(N,b,S){var P=S.minimumRowsOfVideosBetweenSections===void 0?1:S.minimumRowsOfVideosBetweenSections;return N<(S.minimumRowsOfVideosAtStart===void 0?2:S.minimumRowsOfVideosAtStart)||b!==null&&N-b<=P?!1:!0};
Qmw=function(N,b){var S=0,P=0;N=_.O(N);for(var H=N.next();!H.done;H=N.next()){var K=H.value;if(K.richItemRenderer)K.richItemRenderer.rowIndex=P,K.richItemRenderer.colIndex=S++,S===b&&(S=0,P++);else if(K.richGroupRenderer&&K.richGroupRenderer.numColumns!==void 0)K.richGroupRenderer.rowIndex=P,K.richGroupRenderer.colIndex=S,S+=K.richGroupRenderer.numColumns,S===b&&(S=0,P++);else if(K.richSectionRenderer){var C=H=void 0;if(K=_.t((H=K)==null?void 0:(C=H.richSectionRenderer)==null?void 0:C.content,_.CG4))K.rowIndex=
P++}}};
x7q=function(N,b){var S=b.contentElement;b=b.rendererToTagNameMap;if(S&&b&&b.size!==0){for(var P=new Map,H=_.O(S.children),K=H.next();!K.done;K=H.next()){K=K.value;var C=K.tagName.toLowerCase(),G=P.get(C);G||(G=[],P.set(C,G));G.push(K)}if(P.size!==0)for(H=Math.min(N.length,S.children.length),K=new Map,C=0;C<H;C++){G=Object.keys(N[C])[0];G=b.get(G);if(!G)break;var a=K.get(G);a===void 0&&(a=0,K.set(G,a));var R=P.get(G);if(!R||a>=R.length)break;K.set(G,a+1);G=R[a];a=S.children[C];a!==G&&(_.$H=!0,_.hM.set(G,
!0),S.insertBefore(G,a),_.hM.delete(G),_.$H=!1)}}};
oRq=function(N,b,S,P,H,K,C){P=P===void 0?{}:P;if(!N||!N.length)return{orderedContent:[]};N=N.slice();var G=[],a=[];H=null;for(var R=0,n=function(D){a.sort(function(g,e){return e.skippedOnRow-g.skippedOnRow});
for(var Y,V=(Y=a.shift())==null?void 0:Y.content;V;)!V.richSectionRenderer&&D||G.push(V),Y=void 0,V=(Y=a.shift())==null?void 0:Y.content},d=void 0,m=void 0,k=new Set;N.length>0||a.length>0;){for(var M=[],l=b;l>0;){var u=void 0,J=void 0,Z=(J=a[0]&&a[0].skippedOnRow<R?(u=a.shift())==null?void 0:u.content:void 0)!=null?J:N.shift();
if(!Z)break;if(Z.richItemRenderer)u=Z.richItemRenderer.targetId,J=void 0,u&&((J=C)==null?0:J.has(u))&&(J=C.get(u),!d||J&&J.timestamp>d.timestamp)&&(d=J,m&&k.add(m),m=u),M.push(Z),l--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=l?(M.push(Z),l-=Z.richGroupRenderer.numColumns):l===b&&Z.richGroupRenderer.numColumns>b?(M.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:b})}),l=0):a.push({content:Z,skippedOnRow:R});else if(Z.richSectionRenderer)if(u8E(R,
H,P)&&l===b){G.push(Z);H=R;R++;continue}else a.push({content:Z,skippedOnRow:R});else if(Z.continuationItemRenderer){n(!0);G.push(Z);l=0;break}if(l===0)G.push.apply(G,_.IX(M));else if(!S&&N.length===0){n(!1);G.push.apply(G,_.IX(M));l=0;break}}R++;d&&(G.push(d.content),R++);m=d=void 0}Qmw(G,b);K&&x7q(G,K);return{orderedContent:G,pinnedContentNotShownTargetIds:k}};
iAa=function(N){return N.shorts.isSmallScreenSqueezeback};
JZE=function(N){return N.shorts.isPlaybackStarted};
ZAi=function(){if(_.T("kevlar_home_skeleton")&&!U7J){var N=document.querySelector("#home-page-skeleton");N&&(_.uC("hgcr"),_.Zg(N),U7J=!0)}};
AZ5=function(){if(_.Sca()){var N=_.Vg("PLAYER_VARS",{});if(_.Vm.get(N,"privembed",!1)!="1"&&!OxE(N)){var b=function(){jmi=!0;"google_ad_status"in window?_.DH("DCLKSTAT",1):_.DH("DCLKSTAT",2)};
try{_.zk(_.YLt,b)}catch(S){}zzO.push(_.Dj.addLowPriorityJob(function(){if(!(jmi||"google_ad_status"in window)){try{_.gMY(_.YLt.toString(),b)}catch(S){}jmi=!0;_.DH("DCLKSTAT",3)}},5E3))}}};
XNO=function(N){return!!N.getOptions("captions")};
ERJ=function(N){return(N=N.getOption("captions","track"))?!!N.displayName:!1};
pNq=function(N){return gw(N,function(b){return b.languageCode==="en"})};
YRa=function(N){var b=Ky;if(ERJ(N))N.setOption("captions","stickyLoading",{}),N.setOption("captions","track",{});else{var S=gw(_.OVY(N),function(P){return P.displayName===b});
N.setOption("captions","track",S)}};
yZi=function(N,b){return{popup:{searchSuggestionReportDialog:{searchQuery:N,title:_.cN("SBOX_INAPPROPRIATE_TITLE"),suggestions:b,categoryLabel:_.cN("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.cN("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.cN("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.cN("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.cN("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.cN("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.cN("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.cN("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.cN("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.cN("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Ip6=function(N){var b=_.WN();if(b.getFlag(202))b=b.getFlag(201);else{var S;b=(N==null?void 0:(S=N.config)==null?void 0:S.settingOnByDefault)!==void 0?N.config.settingOnByDefault:!_.NI("web_shorts_cinematics_disabled_by_default")}return b};
D7_=function(N){var b=_.WN();_.nA(0,201,N);_.nA(0,202,!0);b.save()};
Vt_=function(N){var b,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D;return _.r(function(Y){switch(Y.nextAddress){case 1:return Y.yield(_.ap(),2);case 2:return(b=Y.yieldResult)?Y.yield(_.hvI(b),3):Y.return();case 3:S=Y.yieldResult;if(!S)return Y.return();H=((P=S.offlineVideos)==null?void 0:P.length)||0;C=((K=S.offlinePlaylists)==null?void 0:K.length)||0;if(H===0&&C===0)return Y.return();G=0;if(S.offlineVideos)for(a=_.O(S.offlineVideos),R=a.next();!R.done;R=a.next())n=R.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
n.videoState&&(G+=1);N.offline_videos_count=H.toString();_.T("kevlar_log_offline_current_network_type_ks")||(N.offline_current_network_type=(d=_.eze())!=null?d:"CONN_INVALID");_.T("kevlar_log_updated_time_for_smart_downloads")&&(m=_.h0().getState().entities,k=_.uV(m),M=LN6(m),N.offline_smart_downloads_last_sync_time_ms=k.toString(),N.offline_smart_downloads_next_sync_time_ms=M.toString());N.offline_videos_playable=G.toString();N.offline_playlists_count=C.toString();S.offlineVideos&&(l=S.offlineVideos.reduce(function(V,
g){g.downloadedBytes&&(V+=Number(g.downloadedBytes));return V},0).toString())&&(N.offline_used_disk_space_bytes=l);
if(!((u=navigator)==null?0:(J=u.storage)==null?0:J.estimate)){Y.jumpTo(4);break}return Y.yield(navigator.storage.estimate(),5);case 5:Z=Y.yieldResult,N.offline_free_disk_space_bytes=(((D=Z)==null?void 0:D.quota)||0).toString();case 4:N.offline_client_state=JSON.stringify(S),_.Zd(Y)}})};
gRE=function(N){N=N.match(/(.*)::.*::.*/);if(N!==null)return N[1]};
eza=function(N){if(_.kpL()){var b=Object.keys(window.sessionStorage);b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=gRE(S);P===void 0||N.includes(P)||self.sessionStorage.removeItem(S)}}};
$7_=function(){if(!_.kpL())return!1;var N=_.Ul(),b=Object.keys(window.sessionStorage);b=_.O(b);for(var S=b.next();!S.done;S=b.next())if(S=gRE(S.value),S!==void 0&&S!==N)return!0;return!1};
hzt=function(N){if(!N)return 0;var b=N.getPresentingPlayerType(),S=N.getVideoData();return S&&S.isLive?(N=N.getProgressState(b),N.seekableEnd-N.seekableStart):N.getDuration(b)};
vJ=function(N,b){_.fo(b,N,function(){return qRE[b]},function(S){qRE[b]=S;
if(!_.T("mweb_player_ve_show_ks")){var P=_.Qh(0);P&&S&&_.ER(P,S)}})};
O6=function(N){(N=qRE[N])&&_.YD(_.dG(),N)};
wNQ=function(N,b){for(var S=_.O(Object.keys(N)),P=S.next();!P.done;P=S.next())if(P=P.value,N[P]!==b[P])return!1;return!0};
Nyo=function(){return document.getElementById("player-control-overlay")};
but=function(N){N!==-1&&!_.T("player_controls_log_creation_killswitch")&&Nyo()&&(_.uC("pcu_cs",N),_.uC("pcu_ce"))};
SI5=function(N){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:N}}]}}}};
PVa=function(N,b,S){var P=_.T("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;b=Object.assign({},{text:b,hasGradientBackground:S},P&&{itemTargetId:P});P=_.T("web_enable_chat_autoscroll_to_user_turn")&&P?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:P,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:b}],insertByPositionInSection:{sectionTargetId:N,
position:"INSERTION_POSITION_LAST"}}}]},P?{scrollConfig:P}:{})}}};
HuE=function(N){return{continuationCommand:{token:N,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
spn=function(N,b){b.stack&&(N.stack+="\n"+b.stack);return N};
GLq=function(N){var b=KaQ(N,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new vGn:new _.Bo;if(b.startsWith("application/x-protobuf")){N=KaQ(N,"Content-Transfer-Encoding");if(!N)return new OuE;if(N.toLowerCase()=="base64")return new CV5}return null};
kL6=function(N,b,S,P){var H=new r0Q(function(G,a){return c0E.has(a)?G.sentinel==="gal"&&G.event!==void 0:!1},function(G){G.event?(G=abJ(G.event),G=!G||RVJ(P,G)?!0:_.tm(N.lastEvent,Cy,2,G2)?!_.tm(G,rF,1,G2)&&!_.tm(G,Cy,2,G2):!_.tm(G,rF,1,G2)&&!_.tm(G,Cy,3,G2)):G=!0;
return G});
S=_.FK(N.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Waa(S)]]));if(N.nestedOrigins!==void 0)for(var K=_.O(N.nestedOrigins),C=K.next();!C.done;C=K.next())S=_.FK(S,new Map([["origin",C.value]]));return nGJ(H,S,b).then(function(G){G=d6E(G.event);if(_.tm(G,rF,1,G2)){var a,R=(a=_.UG(G,rF,1,G2))==null?void 0:_.o9(a,2);R&&P.JSC$19529_logErrorEvent(m6a(R));a=_.UG(G,rF,1,G2);_.o9(a,2)===4?(G=_.UG(G,rF,1,G2),G={statusCode:11,statusMessage:_.xp(G,
3)}):(G=_.UG(G,rF,1,G2),G={statusCode:12,statusMessage:_.xp(G,3)});return G}_.tm(G,Cy,3,G2)?(G=_.UG(G,Cy,3,G2),G={statusCode:1,consentLanguageKeys:_.xp(G,2)}):G={statusCode:1};return G}).catch(function(G){return G.errorCode!==void 0?{statusCode:G.errorCode,
statusMessage:G.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Faw=function(N){var b={};if(N===void 0||N===null)return b;N.getToken()!==void 0&&Tya(N.getToken())&&Tya(N.getToken()).length>0&&(b.scopes=new Set(Tya(N.getToken())));N.getToken()!==void 0&&tsw(N.getToken())&&tsw(N.getToken()).length>0&&(b.capabilities=new Set(tsw(N.getToken())));_.xp(N,3)!==void 0&&(b.consistencyKey=_.xp(N,3));N.getName()!==void 0&&N.getName()!==""&&(b.linkName=N.getName());_.Tu(N,Ms6,4)&&(N=_.k0(N,Ms6,4),N=Object.assign({},_.xp(N,1)&&{userId:_.xp(N,1)},_.xp(N,2)&&{displayName:_.xp(N,
2)},_.xp(N,3)&&{email:_.xp(N,3)},_.xp(N,5)&&{username:_.xp(N,5)},_.xp(N,4)&&{profilePicture:_.xp(N,4)}),b.profile=N);return b};
ByO=function(N,b){var S=N.flowParams,P;return{serviceId:S.serviceId,sessionId:S.sessionId,currentFlow:N.currentFlow,googleScopesString:b,linkingSessionSerialized:N.session.serialize(),consentLanguageKeys:S.consentLanguageKeys,callerState:N.callerState,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(P=S.partnerConfigMinReadTimestamp)==null?void 0:P.serialize()}};
Qpn=function(N){var b=N.googleScopes!==void 0?Array.from(N.googleScopes).join(","):"";lbJ(ByO(N,b),N.config.localStorage);b=LaL(N);return b===null?Promise.resolve(fba):b.start().then(function(S){var P,H=(P=S.link)==null?void 0:P.consistencyKey;return S.statusCode===1&&N.googleScopes!==void 0&&N.googleScopes.size>0&&H!==void 0?(P=N.flowParams,uki(P.serviceId,P.sessionId,N.googleScopes,H,P.galService,N.config,S)):S})};
oGa=function(N){var b=LaL(N);return b===null?Promise.resolve(x6a({statusCode:7,statusMessage:"Failed to create flow object"},N.callerState)):b.complete().then(function(S){var P,H=(P=S.link)==null?void 0:P.consistencyKey;return S.statusCode===1&&N.googleScopes!==void 0&&N.googleScopes.size>0&&H!==void 0?(P=N.flowParams,uki(P.serviceId,P.sessionId,N.googleScopes,H,P.galService,N.config,S)):x6a(S,N.callerState)},function(S){return x6a({statusCode:12,
statusMessage:"Failed to complete the flow: "+S.message},N.callerState)})};
uki=function(N,b,S,P,H,K,C){return iuE(H,{serviceId:N,sessionId:b,googleScopes:S,consistencyKey:P}).then(function(){return C},function(G){return H.deleteLink({serviceId:N,
sessionId:b,accountLinkingEntryPoint:K.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+G.message}},function(a){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+a.message}})})};
LaL=function(N){switch(N.currentFlow){case 1:var b=N.flowParams;N=_.k0(N.session,J06,1);return U66.createOAuthFlow(b,N);case 2:case 3:return b=N.flowParams,N=_.k0(N.session,Zuq,6),jpO.createStreamlinedFlow(b,N);default:return null}};
A0t=function(N,b){N===2&&(N=3);var S=0;zV_.indexOf(N)!==-1&&(S=zV_.indexOf(N)+1);for(N=S;N<zV_.length;N++)if(b.has(zV_[N]))return zV_[N]};
pUt=function(N){var b=N.serviceId;var S=N.sessionId;var P=N.config;var H=N.galService;var K=N.capabilities;var C=N.scopes;var G=N.loginHint;var a=N.callerState;var R=N.consentLanguageKeys;var n=N.linkName;var d=N.dynamicUrlParameters;var m=N.partnerConfigMinReadTimestamp;N=P.dataUsageNoticeConfig?P.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return H.startLinkingSession({serviceId:b,sessionId:S,capabilities:K,scopes:C,loginHint:G,callerState:a,supportedFlows:XUJ(P.supportedFlows),completionUrl:P.completionUrl,
accountLinkingEntryPoint:P.accountLinkingEntryPoint,consentLanguageKeys:R,dataUsageNoticeConfig:N,linkName:n,dynamicUrlParameters:d,partnerConfigMinReadTimestamp:m}).then(function(k){return new EG6(b,S,P,H,k,void 0,a,R,d,m)})};
gGE=function(N,b,S){var P=(new YIo(b.localStorage)).getSession(N);if(P===null)return Promise.resolve({statusCode:2});y0i(N,b.localStorage);var H=Ibq(P.linkingSessionSerialized),K=P.googleScopesString!==""&&P.googleScopesString!==void 0?new Set(P.googleScopesString.split(",")):void 0,C=P.partnerConfigMinReadTimestampSerialized?D6L(P.partnerConfigMinReadTimestampSerialized):void 0;return Vs6(new EG6(N,P.sessionId,b,S,H,K,P.callerState,P.consentLanguageKeys,P.dynamicUrlParameters,C),P.currentFlow,P.consentLanguageKeys)};
lbJ=function(N,b){b=new YIo(b);b.storage!==null&&b.storage.set("SAVED_SESSION",N)};
y0i=function(N,b){b=new YIo(b);if(b.storage!==null){var S=b.storage.get("SAVED_SESSION");S!==void 0&&S.serviceId===N&&b.storage.remove("SAVED_SESSION")}};
XUJ=function(N){var b=new Set;N=_.O(N);for(var S=N.next();!S.done;S=N.next())S=S.value,S!==1&&eVn.has(S)&&b.add(eVn.get(S));return b};
x6a=function(N,b){b!==void 0&&(N.callerState=b);return N};
$6i=function(N){switch(N){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
wUw=function(N){return new hV6(N,new qIa(N))};
SK6=function(N,b){b=b===void 0?!1:b;var S=document.createElement("div");N&&(S.style.transform="scaleX(-1)");S.style.backgroundColor=b?"rgba(138,180,248,.24)":"#e8f0fe";S.style.height="4px";S.style.overflow="hidden";S.style.position="absolute";S.style.top="0";S.style.width="100%";S.style.zIndex="1500";S.setAttribute("aria-label","Loading");S.setAttribute("aria-live","polite");N=document.createElement("style");N.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
S.appendChild(N);N=NQO();N.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";N.style.left="-145.166611%";var P=bXq(b);P.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";N.appendChild(P);S.appendChild(N);N=NQO();N.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";N.style.left="-54.888891%";b=bXq(b);b.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
N.appendChild(b);S.appendChild(N);return S};
NQO=function(){var N=document.createElement("div");N.style.height="100%";N.style.position="absolute";N.style.transformOrigin="top left";N.style.width="100%";return N};
bXq=function(N){var b=document.createElement("span");b.style.borderTop=N?"4px solid #669df6":"4px solid #4285f4";b.style.display="inline-block";b.style.position="absolute";b.style.width="100%";return b};
P1L=function(N){return N==null?void 0:_.HTk(N).valueOf()};
vnw=function(N){var b=document.body,S=!1,P=function(){S||(S=!0,HXQ(H,K),setTimeout(function(){b.removeChild(K);b.removeChild(H)},150))},H=s3q(N,getComputedStyle(b).direction==="rtl",P),K=KyE(P);
HXQ(H,K);b.appendChild(K);b.appendChild(H);window.requestAnimationFrame(function(){K.style.opacity="1";H.style.opacity="1";H.style.transform="translate(-50%, -50%) scale(1)";H.children[0].focus()})};
s3q=function(N,b,S){var P=document.createElement("div");P.style.position="fixed";P.style.alignItems="center";P.style.backgroundColor=N?"rgb(32, 33, 36)":"white";P.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";P.style.display="flex";P.style.flexDirection="column";P.style.justifyContent="center";P.style.left="50%";P.style.top="50%";P.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";P.style.zIndex="2002";document.body.clientWidth>=
660?(P.style.borderRadius="8px",P.style.minHeight="220px",P.style.maxHeight="90%",P.style.maxWidth="90%",P.style.minWidth="540px"):(P.style.height="100%",P.style.width="100%");P.setAttribute("aria-label","Error");P.setAttribute("aria-modal","true");P.setAttribute("role","alertdialog");P.addEventListener("keydown",function(K){K.key==="Escape"&&S()});
b=OXQ(N,b,S);P.appendChild(C15(b));P.appendChild(b);var H=document.createElement("img");H.src=N?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";H.style.height="72px";H.style.width="72px";H.style.color="#9aa0a6";H.setAttribute("alt","");P.appendChild(H);H=document.createElement("h1");H.textContent="Something went wrong.  Try again.";
H.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";H.style.lineHeight="24px";H.style.fontSize="16px";H.style.textAlign="center";H.style.letterSpacing="0.1px";H.style.color=N?"rgb(232,234,237)":"#3c4043";P.appendChild(H);P.appendChild(C15(b));return P};
OXQ=function(N,b,S){var P=document.createElement("button");P.style.backgroundColor="transparent";P.style.border="none";P.style.borderRadius="50%";P.style.cursor="pointer";P.style.outline="none";P.style.padding="12px";P.setAttribute("aria-label","Close dialog");P.style.position="absolute";P.style.top="0";b?P.style.right="0":P.style.left="0";P.addEventListener("focus",function(){P.style.backgroundColor=N?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
P.addEventListener("blur",function(){P.style.backgroundColor="transparent"});
P.addEventListener("mouseenter",function(){P.style.backgroundColor=N?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
P.addEventListener("mouseleave",function(){P.style.backgroundColor="transparent"});
P.addEventListener("click",S);P.addEventListener("keydown",function(H){H.key!=="Enter"&&H.key!=="Space"||S()});
b=document.createElement("img");b.src=N?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";b.style.display="block";b.style.height="24px";b.style.width="24px";b.setAttribute("alt","");P.appendChild(b);return P};
C15=function(N){var b=document.createElement("div");b.setAttribute("tabindex","0");b.setAttribute("aria-hidden","true");b.addEventListener("focus",function(){return void N.focus()});
return b};
KyE=function(N){var b=document.createElement("div");b.style.backgroundColor="rgba(32,33,36,0.6)";b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.right="0";b.style.top="0";b.style.transition=" opacity 150 ms linear";b.style.zIndex="2001";b.addEventListener("click",N);return b};
HXQ=function(N,b){b.style.opacity="0";N.style.opacity="0";N.style.transform="translate(-50%, -50%) scale(0.8)"};
GBE=function(N,b){N.sandbox&&N.sandbox.add&&(N.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),N.sandbox.add("allow-downloads"));N.src=b};
cJ=function(N){rsa.call(this,N)};
nno=function(N,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;N instanceof csE||(aKn==void 0&&(aKn=new RCn),N=aKn.parse(N.toString(),b));N=this.parsedImageUrl_=N;N.JSC$19742_parsedOptions_==void 0&&((b=N.getOptions())||(b=""),N.JSC$19742_parsedOptions_=(new Wyt).parse(b));rsa.call(this,N.JSC$19742_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;N=this.parsedImageUrl_;b=N.uri_.JSC$10265_port_;this.JSC$19744_domain_=N.uri_.JSC$10265_domain_+(b?":"+b:"");this.JSC$19744_query_=
this.parsedImageUrl_.uri_.JSC$10265_queryData_.toString()};
aV=function(N){_.AB.call(this,"upload");this.opts.query=N};
kBi=function(N){var b=_.fjf(2),S=new Set;_.ej(function(){return void S.forEach(function(P){return void P()})});
return function(P){var H=_.aO(b);try{var K=dnJ(mni(N),P);S.add(K);return function(){K();S.delete(K)}}finally{_.aO(H)}}};
TQw=function(N){var b=N.children;var S=N.root;_.pM(function(){var P=kBi(S)(b);_.ej(P)});
return document.createTextNode("")};
dnJ=function(N,b){var S=tZw(N);(N=o7i())&&xcE(S,N);_.Fg.setUp();b=_.O(_.NOO(b,!0));N=b.next().value;var P=b.next().value;b=_.O(N);for(N=b.next();!N.done;N=b.next())S.appendChild(N.value);_.Fg.log(S);_.Fg.tearDown();return function(){P();S.remove()}};
mni=function(N){if(typeof N==="string")return N=document.querySelector(N),Mli(N),N;if(_.mo(N)&&N.nodeType===Node.ELEMENT_NODE)return N;if(!N.__value&&!N.__optional){var b=_.i6f.USE_ELEMENT_NOT_ASSIGNED(N.__expectedTagName);N.__hasErrored=!0;throw b;}return N.value};
tZw=function(N){var b=document.createElementNS(N.namespaceURI,N.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return N.appendChild(b)};
MZo=function(){return _.$I.apply(0,arguments).flat().filter(function(N){return N}).join(";")};
BQa=function(){return UcO(Fyi,MZo.apply(null,_.IX(_.$I.apply(0,arguments))))};
lKE=function(N){this.mode=4;this.data=N;this.parsedData=[];N=0;for(var b=this.data.length;N<b;N++){var S=[],P=this.data.charCodeAt(N);P>65536?(S[0]=240|(P&1835008)>>>18,S[1]=128|(P&258048)>>>12,S[2]=128|(P&4032)>>>6,S[3]=128|P&63):P>2048?(S[0]=224|(P&61440)>>>12,S[1]=128|(P&4032)>>>6,S[2]=128|P&63):P>128?(S[0]=192|(P&1984)>>>6,S[1]=128|P&63):S[0]=P;this.parsedData.push(S)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),
this.parsedData.unshift(187),this.parsedData.unshift(239))};
LyO=function(N){this.typeNumber=0;this.errorCorrectLevel=N===void 0?2:N;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
RV=function(N,b){if(N.length==void 0)throw Error("Kk`"+N.length+"`"+b);for(var S=0;S<N.length&&N[S]==0;)S++;this.num=Array(N.length-S+b);for(b=0;b<N.length-S;b++)this.num[b]=N[b+S]};
fK_=function(N,b){this.totalCount=N;this.dataCount=b};
u6J=function(){this.buffer=[];this.length=0};
Q3o=function(){var N=!1;if(_.F9p()){N=_.dI();var b="";_.L9Y()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(N=b.exec(N))?N[1]:"0.0"):_.xO()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(N=b.exec(N))&&N[1].replace(/_/g,".")):_.l_s()?(b=/Mac OS X ([0-9_.]+)/,b=(N=b.exec(N))?N[1].replace(/_/g,"."):"10"):_.cs(_.dI(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(N=b.exec(N))&&N[1]):_.F9p()?(b=/Android\s+([^\);]+)(\)|;)/,b=(N=b.exec(N))&&N[1]):_.f_Y()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(N=b.exec(N))&&N[1]);N=
b||""}return N};
ZXi=function(N,b){this.JSC$19774__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(b)for(var S in b)this.JSC$19774__htOption[S]=b[S];this.JSC$19774__htOption.useSVG&&(xnt=onE);this.JSC$19774__android=Q3o();this.JSC$19774__el=N;this._oQRCode=null;this._oDrawing=new xnt(this.JSC$19774__el,this.JSC$19774__htOption);this.JSC$19774__htOption.text&&(N=this.JSC$19774__htOption.text,this._oQRCode=new LyO(this.JSC$19774__htOption.correctLevel),iXJ(this._oQRCode,
N),b=this._oQRCode,Jst(b,!1,Uni(b)),this.JSC$19774__el.title=N,this._oDrawing.draw(this._oQRCode),this.makeImage())};
j3E=function(N,b,S,P,H){N.save();var K=new Path2D;K.roundRect(b,S,P*7,P*7,P*2);K.roundRect(b+P,S+P,P*5,P*5,P*1.3);K.roundRect(b+2*P,S+2*P,P*3,P*3,P);N.clip(K,"evenodd");N.fillStyle=H;N.fillRect(0,0,N.canvas.width,N.canvas.height);N.restore()};
WJ=function(N,b){if(typeof N!=="function")throw Error("Nk");return _.Ps.setTimeout(function(){N()},b)};
ny=function(){};
Asn=function(N,b,S,P,H){(new ny).debug("TestLoadImageWithRetries: "+H);if(P==0)S(!1);else{var K=H||0;P--;zCa(N,b,function(C){C?S(!0):_.Ps.setTimeout(function(){Asn(N,b,S,P,K)},K)})}};
zCa=function(N,b,S){var P=new ny;P.debug("TestLoadImage: loading "+N);var H=new Image;H.onload=function(){try{P.debug("TestLoadImage: loaded"),XdQ(H),S(!0)}catch(K){}};
H.onerror=function(){try{P.debug("TestLoadImage: error"),XdQ(H),S(!1)}catch(K){}};
H.onabort=function(){try{P.debug("TestLoadImage: abort"),XdQ(H),S(!1)}catch(K){}};
H.ontimeout=function(){try{P.debug("TestLoadImage: timeout"),XdQ(H),S(!1)}catch(K){}};
_.Ps.setTimeout(function(){if(H.ontimeout)H.ontimeout()},b);
H.src=N};
XdQ=function(N){N.onload=null;N.onerror=null;N.onabort=null;N.ontimeout=null};
EnQ=function(){this.front_=[];this.back_=[]};
pda=function(N,b){this.action=N;this.params=b||{}};
YKt=function(N,b){_.E5.call(this);this.delay_=new _.yS(this.JSC$19941_onTick_,0,this);_.QS(this,this.delay_);this.JSC$19939_interval_=5E3;this.nextTickTime_=0;if(typeof N==="function")b&&(N=(0,_.pT)(N,b));else if(N&&typeof N.handleEvent==="function")N=(0,_.pT)(N.handleEvent,N);else throw Error("ya");this.JSC$19941_listener_=N};
dF=function(N,b,S,P,H,K,C,G,a,R,n,d,m,k,M){var l=this;S=S===void 0?!1:S;P=P===void 0?function(){return""}:P;
H=H===void 0?!1:H;K=K===void 0?!1:K;C=C===void 0?!1:C;G=G===void 0?function(){return _.KA({})}:G;
a=a===void 0?!1:a;n=n===void 0?!1:n;d=d===void 0?!1:d;m=m===void 0?!1:m;k=k===void 0?!1:k;this.JSC$19942_pathPrefix_=N;this.defaultQueryParams_=b;this.pubsub_=new _.uQ;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!M)?M(function(){l.safeReconnect_()}):new YKt(this.safeReconnect_,this);
this.JSC$19942_channel_=null;this.JSC$19942_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19942_pendingMessages_=[];this.enableAsyncTest_=S;this.JSC$19942_getXsrfToken_=P;this.useAsyncBrowserChannelHandler_=K;this.getAuthorizationHeader_=G;this.getAuthorizationHeaderSync_=R;this.enableCachedUpdateAuthorizationHeader_=C;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.KA();this.enableLoungeTokenRefresh_=H;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
a;this.disableMdxAuthForNonPlaybackMessages_=n;this.disableMdxAuthForAdMessages_=d;this.enableMdxAuthForConnectionOnly_=m;this.disableMdxAuthForShortsMessages_=k;this.JSC$19942_channelOpenedCounter=new ysL;this.JSC$19942_channelClosedCounter=new IKQ;this.channelMessageSentCounter=new Dnw;this.JSC$19942_channelMessageReceivedCounter=new VZO;this.JSC$19942_channelErrorCounter=new gn5;this.pendingMapsOnClosedCounter=new eCn;this.undeliveredMapsOnClosedCounter=new $nE};
hCL=function(N){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;N=N||document.location.href;var b=Number(_.sl(N)[4]||null)||"";b&&(this.port=":"+b);this.domain=_.Ol(N)||"";N=_.dI();N.search("MSIE")>=0&&_.Ws(N.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
mU=function(N){N=N||{};this.name=N.name||"";this.id=N.id||N.screenId||"";this.token=N.token||N.loungeToken||"";this.uuid=N.uuid||N.dialId||"";this.idType=N.screenIdType||"normal";this.secret=N.screenIdSecret||""};
qKa=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(N){var b=Math.random()*16|0;return(N=="x"?b:b&3|8).toString(16)})};
wdo=function(N){return _.gY(N,function(b){return{key:b.id,name:b.name}})};
Nq6=function(N,b){return gw(N,function(S){return S||b?!S!=!b?!1:S.id==b.id:!0})};
kf=function(N,b){return gw(N,function(S){return b3w(S,b)})};
KdQ=function(){var N=Sjn(),b=PI6();if(H36()){var S=N,P=_.ZaI(S,b);P<0&&_.iaI(S,-(P+1),0,b)}N=sAo(N);if(N.length==0)try{_.IpU("remote_sid")}catch(H){}else try{_.iQ("remote_sid",N.join(","),-1)}catch(H){}};
Sjn=function(){var N=_.l1("yt-remote-connected-devices")||[];N.sort(_.ULO);return N};
sAo=function(N){if(N.length==0)return[];var b=N[0].indexOf("#"),S=b==-1?N[0]:N[0].substring(0,b);return _.gY(N,function(P,H){return H==0?P:P.substring(S.length)})};
vqq=function(N){_.Bd("yt-remote-connected-devices",N,86400)};
PI6=function(){if(O3w)return O3w;var N=_.l1("yt-remote-device-id");N||(N=qKa(),_.Bd("yt-remote-device-id",N,31536E3));for(var b=Sjn(),S=1,P=N;_.Z_(b,P);)S++,P=N+"#"+S;return O3w=P};
CI5=function(){return _.l1("yt-remote-session-browser-channel")};
H36=function(){return _.l1("yt-remote-session-screen-id")};
c_5=function(N){N.length>5&&(N=N.slice(N.length-5));var b=_.gY(Gd5(),function(P){return P.loungeToken}),S=_.gY(N,function(P){return P.loungeToken});
_.yrf(S,function(P){return!_.Z_(b,P)})&&r_t();
_.Bd("yt-remote-local-screens",N,31536E3)};
Gd5=function(){return _.l1("yt-remote-local-screens")||[]};
r_t=function(){_.Bd("yt-remote-lounge-token-expiration",!0,86400)};
aLJ=function(N){N||(_.LX("yt-remote-session-screen-id"),_.LX("yt-remote-session-video-id"));KdQ();N=Sjn();_.zo(N,PI6());vqq(N)};
WdO=function(){RLq();return T2?!!T2.get("yt-remote-use-staging-server"):!1};
RLq=function(){if(!T2){var N=_.pE();N&&(T2=new _.zW(N))}};
kdn=function(N,b,S,P,H){S=S===void 0?function(){return""}:S;
var K=function(){return new dF(tU(N,"/bc"),b,!1,S,P)};
return _.T("enable_mdx_web_channel_desktop")?new nqw(function(){return new dIL(tU(N,"/wc"),b,S)}):new mIE(K,H)};
Fd5=function(){var N=Tq5;t7J();MC.push(N);M7q()};
Fs=function(N,b){t7J();var S=BqE(N,String(b));MC.length==0?lLi(S):(M7q(),_.NX(MC,function(P){P(S)}))};
BJ=function(N){Fs("CP",N)};
t7J=function(){MC||(MC=_.hl("yt.mdx.remote.debug.handlers_")||[],_.aB("yt.mdx.remote.debug.handlers_",MC))};
lLi=function(N){var b=(LdL+1)%50;LdL=b;fLw[b]=N;uEa||(uEa=b==49)};
M7q=function(){var N=MC;if(fLw[0]){var b=uEa?LdL:-1,S={};do S={record$jscomp$15:void 0},b=(b+1)%50,S.record$jscomp$15=fLw[b],_.NX(N,function(P){return function(H){H(P.record$jscomp$15)}}(S));
while(b!=LdL);fLw=Array(50);LdL=-1;uEa=!1}};
BqE=function(N,b){var S=(Date.now()-QAn)/1E3;S.toFixed&&(S=S.toFixed(3));var P=[];P.push("[",S+"s","] ");P.push("[","yt.mdx.remote","] ");P.push(N+": "+b,"\n");return P.join("")};
Ly=function(N){ld.call(this);this.JSC$19970_logName_=N;this.screens=[]};
ud=function(N){Ly.call(this,"LocalScreenService");this.JSC$19977_http_=N;this.loungeTokenRefreshTimer_=NaN;fy(this);this.info("Initializing with "+xI5(this.screens))};
Q$=function(N,b){b=b===void 0?!1:b;Ly.call(this,"ScreenService");this.JSC$19983_http_=N;this.disableAutomaticScreenCache_=b;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};oqo(this)};
xf=function(N,b,S){ld.call(this);this.JSC$19987_logName_=S;this.JSC$19987_screenService_=N;this.receiver_=b;this.screen_=null};
gq5=function(N,b,S){S.disableCastApi?oV("Cannot initialize because disabled by Mdx config."):i35()?J_Q(N,S)&&(UI5(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Z3O(b):(window.__onGCastApiAvailable=function(P,H){P?Z3O(b):(id("Failed to load cast API: "+H),jAJ(!1),UI5(!1),_.LX("yt-remote-cast-available"),_.LX("yt-remote-cast-receiver"),zL5(),b(!1))},S.loadCastApiSetupScript?_.zk(A_E):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
X45()>=60&&Eqi():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?p4O():X45()>=89?Yj5():(y_E(),IL_(DIo.map(V7J))))):oV("Cannot initialize because not running Chrome")};
zL5=function(){oV("dispose");var N=JU();N&&N.dispose();_.aB("yt.mdx.remote.cloudview.instance_",null);eLi(!1);_.oHs($Iw);$Iw.length=0};
hL5=function(){return!!_.l1("yt-remote-cast-installed")};
qji=function(){var N=_.l1("yt-remote-cast-receiver");return N?N.friendlyName:null};
w4E=function(){oV("clearCurrentReceiver");_.LX("yt-remote-cast-receiver")};
NGa=function(){return hL5()?JU()?JU().getCastSession():(id("getCastSelector: Cast is not initialized."),null):(id("getCastSelector: Cast API is not installed!"),null)};
SZa=function(N,b){b7_()?JU().setConnectedScreenStatus(N,b):id("setConnectedScreenStatus called before ready.")};
i35=function(){var N=_.dI().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.R9||N};
J_Q=function(N,b){var S=!1;JU()||(N=new U6(N,b),N.subscribe("yt-remote-cast2-availability-change",function(P){_.Bd("yt-remote-cast-available",P);eP("yt-remote-cast2-availability-change",P)}),N.subscribe("yt-remote-cast2-receiver-selected",function(P){oV("onReceiverSelected: "+P.friendlyName);
_.Bd("yt-remote-cast-receiver",P);eP("yt-remote-cast2-receiver-selected",P)}),N.subscribe("yt-remote-cast2-receiver-resumed",function(P){oV("onReceiverResumed: "+P.friendlyName);
_.Bd("yt-remote-cast-receiver",P);eP("yt-remote-cast2-receiver-resumed",P)}),N.subscribe("yt-remote-cast2-session-change",function(P){oV("onSessionChange: "+PHt(P));
P||_.LX("yt-remote-cast-receiver");eP("yt-remote-cast2-session-change",P)}),_.aB("yt.mdx.remote.cloudview.instance_",N),S=!0);
oV("cloudview.createSingleton_: "+S);return S};
JU=function(){return _.hl("yt.mdx.remote.cloudview.instance_")};
Z3O=function(N){jAJ(!0);UI5(!1);JU().init(!1,function(b){b?(eLi(!0),_.i7U("yt-remote-cast2-api-ready")):(id("Failed to initialize cast API."),jAJ(!1),_.LX("yt-remote-cast-available"),_.LX("yt-remote-cast-receiver"),zL5());N(b)})};
oV=function(N){Fs("cloudview",N)};
id=function(N){Fs("cloudview",N)};
jAJ=function(N){oV("setCastInstalled_ "+N);_.Bd("yt-remote-cast-installed",N)};
b7_=function(){return!!_.hl("yt.mdx.remote.cloudview.apiReady_")};
eLi=function(N){oV("setApiReady_ "+N);_.aB("yt.mdx.remote.cloudview.apiReady_",N)};
UI5=function(N){_.aB("yt.mdx.remote.cloudview.initializing_",N)};
ZX=function(N){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(N)};
RsL=function(N){RLq();if(!T2||!T2.get("yt-remote-disable-remote-module-for-dev")){N=_.Vg("MDX_CONFIG")||N;vyw();KdQ();H7t||(H7t=new hCL(N?N.loungeApiHost:void 0),WdO()&&(H7t.basePath="/api/loungedev"));j5||(j5=_.hl("yt.mdx.remote.deferredProxies_")||[],_.aB("yt.mdx.remote.deferredProxies_",j5));sqn();var b=KtL();if(!b){var S=new Q$(H7t,N?N.disableAutomaticScreenCache||!1:!1);_.aB("yt.mdx.remote.screenService_",S);b=KtL();var P={};N&&(P={appId:N.appId,disableDial:N.disableDial,theme:N.theme,loadCastApiSetupScript:N.loadCastApiSetupScript,
disableCastApi:N.disableCastApi,enableDialLoungeToken:N.enableDialLoungeToken,enableCastLoungeToken:N.enableCastLoungeToken,forceMirroring:N.forceMirroring});_.aB("yt.mdx.remote.enableConnectWithInitialState_",N?N.enableConnectWithInitialState||!1:!1);gq5(S,function(K){K?vHE()&&SZa(vHE(),"YouTube TV"):S.subscribe("onlineScreenChange",function(){eP("yt-remote-receiver-availability-change")})},P)}if(N&&!_.hl("yt.mdx.remote.initialized_")){_.aB("yt.mdx.remote.initialized_",!0);
O7o("Initializing: "+(0,_.Id)(N));z2.push(_.Tx("yt-remote-cast2-api-ready",function(){eP("yt-remote-api-ready")}));
z2.push(_.Tx("yt-remote-cast2-availability-change",function(){eP("yt-remote-receiver-availability-change")}));
z2.push(_.Tx("yt-remote-cast2-receiver-selected",function(){CHi();eP("yt-remote-auto-connect","cast-selector-receiver")}));
z2.push(_.Tx("yt-remote-cast2-receiver-resumed",function(){eP("yt-remote-receiver-resumed","cast-selector-receiver")}));
z2.push(_.Tx("yt-remote-cast2-session-change",GSa));z2.push(_.Tx("yt-remote-connection-change",function(K){K?SZa(vHE(),"YouTube TV"):rMo()||(SZa(null,null),w4E())}));
z2.push(_.Tx("yt-remote-cast2-session-failed",function(){eP("yt-remote-connection-failed")}));
P=cMo();N.isAuto&&(P.id+="#dial");var H=N.capabilities||[];H.length>0&&(P.capabilities=H);P.name=N.device;P.app=N.app;(N=N.theme)&&(P.theme=N);O7o(" -- with channel params: "+(0,_.Id)(P));P?(_.Bd("yt-remote-session-app",P.app),_.Bd("yt-remote-session-name",P.name)):(_.LX("yt-remote-session-app"),_.LX("yt-remote-session-name"));_.aB("yt.mdx.remote.channelParams_",P);b.start();vHE()||aN5()}}};
nHL=function(){var N=KtL().instance_.$_gos();var b=WtE();b&&AU()&&(Nq6(N,b)||N.push(b));return wdo(N)};
duL=function(){var N=nHL(),b=WtE();b||(b=rMo());return gw(N,function(S){return b&&b3w(b,S.key)?!0:!1})};
WtE=function(){var N=vHE();if(!N)return null;var b=KtL().getScreens();return kf(b,N)};
GSa=function(N){O7o("remote.onCastSessionChange_: "+PHt(N));if(N){var b=WtE();if(b&&b.id==N.id){if(SZa(b.id,"YouTube TV"),N.idType=="shortLived"&&(N=N.token))mu6&&(mu6.token=N),(b=AU())&&b.setLoungeToken(N)}else b&&kSt(),TGi(N,1)}else AU()&&kSt()};
kSt=function(){b7_()?JU().stopSession():id("stopSession called before API ready.");var N=AU();N&&(N.disconnect(1),tr6(null))};
Mr_=function(){var N=AU();return N&&N.getProxyState()!=3?new Xs(AU(),void 0):null};
O7o=function(N){Fs("remote",N)};
KtL=function(){if(!Fti){var N=_.hl("yt.mdx.remote.screenService_");Fti=N?new BGw(N):null}return Fti};
vHE=function(){return _.hl("yt.mdx.remote.currentScreenId_")};
lNL=function(N){_.aB("yt.mdx.remote.currentScreenId_",N)};
CHi=function(){_.aB("yt.mdx.remote.connectData_",null)};
AU=function(){return _.hl("yt.mdx.remote.connection_")};
tr6=function(N){var b=AU();CHi();N||lNL("");_.aB("yt.mdx.remote.connection_",N);j5&&(_.NX(j5,function(S){S(N)}),j5.length=0);
b&&!N?eP("yt-remote-connection-change",!1):!b&&N&&eP("yt-remote-connection-change",!0)};
rMo=function(){var N=H36();if(!N)return null;var b=KtL();if(!b)return null;b=b.getScreens();return kf(b,N)};
TGi=function(N,b){Lta?mu6=N:(lNL(N.id),N=new E6(H7t,N,cMo(),_.hl("yt.mdx.remote.enableConnectWithInitialState_")||!1),N.connect(b,_.hl("yt.mdx.remote.connectData_")),N.subscribe("beforeDisconnect",function(S){eP("yt-remote-before-disconnect",S)}),N.subscribe("beforeDispose",function(){AU()&&tr6(null)}),N.subscribe("browserChannelAuthError",function(){var S=WtE();
S&&S.idType=="shortLived"&&(b7_()?JU().handleBrowserChannelAuthError():id("refreshLoungeToken called before API ready."))}),tr6(N))};
aN5=function(){var N=rMo();N?(O7o("Resume connection to: "+PHt(N)),TGi(N,0)):(aLJ(),w4E(),O7o("Skipping connecting because no session screen found."))};
sqn=function(){var N=cMo();if(_.Vm.isEmpty(N)){N=PI6();var b=_.l1("yt-remote-session-name")||"",S=_.l1("yt-remote-session-app")||"";N={device:"REMOTE_CONTROL",id:N,name:b,app:S,mdxVersion:3};N.authuser=String(_.Vg("SESSION_INDEX","0"));(b=_.Vg("DELEGATED_SESSION_ID"))&&(N.pageId=String(b));_.aB("yt.mdx.remote.channelParams_",N)}};
cMo=function(){return _.hl("yt.mdx.remote.channelParams_")||{}};
fNQ=function(){var N,b;return _.r(function(S){if(S.nextAddress==1)return(_.RsY()||_.T("use_new_nwl"))&&_.GSe().isNetworkAvailable()?S.yield(_.RB(),2):S.return();if(S.nextAddress!=3)return(N=S.yieldResult)?S.yield(Vln(N),3):S.return();b=S.yieldResult;if(!b.length)return S.return();b.forEach(function(P){var H={timestamp:P.timestamp};P=P.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:P.appShellAssetLoadReport,options:H}:P.clientError?{payloadName:"clientError",payload:P.clientError,
options:H}:void 0;P&&_.Dn(P.payloadName,P.payload,P.options)});
b.length===100&&_.Dj.addLowPriorityJob(fNQ);_.Zd(S)})};
jq5=function(N,b,S){S=S===void 0?!1:S;var P=Math.max(N.width,uAq);if(_.T("kevlar_watch_feed_big_thumbs")&&N.width>=1550-py()&&N.height>=800)P-=Qqw;else if(N.width>=Yf){var H=xu_+oH5+y$;_.T("kevlar_watch_feed_big_thumbs")&&(H=i76);P-=H}else P-=xu_;P=Math.min(P,JMQ);H=240;S&&(H=380);b<.5624||(!_.T("kevlar_watch_flexy_disable_small_window_sizing")&&(N.height<630&&N.width>=657||N.height>=630&&N.width>=Yf&&N.width<1327)?H=360:!_.T("kevlar_watch_flexy_disable_large_window_sizing")&&N.height>=630&&N.width>=
1327&&(H=480));var K=Math.min(P*b,N.height-(56+Uui+Z7n));K=Math.max(K,H);b<1?P=K/b:N.width>=Yf&&(P=jq5(N,.5625,S).width);return new _.Jh(Math.round(P),Math.round(K))};
zso=function(N){if(N.playerResponse){if(N=N.playerResponse,N.messages&&N.messages.length>0&&(N=N.messages.find(function(b){return!(!b||!b.mealbarPromoRenderer)}))&&N.mealbarPromoRenderer)return N.mealbarPromoRenderer}else if(N.response&&(N=N.response)&&N.overlay&&N.overlay.mealbarPromoRenderer)return N.overlay.mealbarPromoRenderer};
AML=function(N){if(N.response){var b=N.response;if(b&&b.overlay&&b.overlay.tooltipRenderer)return b.overlay.tooltipRenderer}if(N.playerResponse&&(N=N.playerResponse,N.messages&&N.messages.length>0&&(N=N.messages.find(function(S){return!(!S||!S.tooltipRenderer)}))&&N.tooltipRenderer))return N.tooltipRenderer};
X7J=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
EHi=function(){var N,b,S;return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(_.Hy.getInstance(),2);case 2:N=P.yieldResult;if(!N){b=void 0;P.jumpTo(3);break}return P.yield(N.get("lmqf"),4);case 4:b=P.yieldResult;case 3:switch((S=b)||(S="SD"),S){case "HD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
p7Q=function(N){var b,S,P;return _.r(function(H){if(H.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.T("disable_av1_setting")){var K=window.localStorage["yt-player-av1-pref"];K=K==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":K==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else K="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(b=N===K)return H.jumpTo(2);P=S=N;return H.yield(EHi(),3)}H.nextAddress!=2&&(b=P===H.yieldResult);return H.return(b)})};
yMJ=function(){var N=_.d7("user_engagement_experiments_rate_limit_ms"),b=YZo.get("last-user-engagement-exp-trigger-timestamp");return!b||(0,_.nh)()>=b+N?(YZo.set("last-user-engagement-exp-trigger-timestamp",(0,_.nh)()),!0):!1};
IV=function(N,b,S,P,H){b=b===void 0?null:b;S=S===void 0?null:S;P=P===void 0?null:P;H=H===void 0?null:H;N={youThereEventType:N};S&&(N.lactThresholdMs=S.lactThresholdMs,N.mediaPosSec=S.promptDelaySec,N.lactServerRequestMs=S.lactServerRequestMs,N.triggerReason=S.triggerReason);H!=null&&(N.renderingMediaPosSec=Math.round(H));b||(b=_.Qh());b&&(N.clientScreenNonce=b);P&&(N.clientPlaybackNonce=P);_.Dn("youThere",N)};
Dui=function(N){if(!INJ&&(N=N||_.Vg("ZWIEBACK_PING_URLS"))&&N.length){INJ=!0;for(var b=0;b<N.length;b++)_.Pl(N[b])}};
VrJ=function(N){var b=0;N.indexOf("h")!=-1&&(N=N.split("h"),b=N[0]*60*60,N=N[1]);N.indexOf("m")!=-1&&(N=N.split("m"),b=N[0]*60+b,N=N[1]);N.indexOf("s")!=-1?(N=N.split("s"),b=N[0]*1+b):b=N*1+b;return b};
est=function(N){if(_.Vm.get(_.Vg("PLAYER_VARS",{}),"privembed",!1)!="1"){N&&zaO();try{gHq().then(function(){},function(){}),_.tz(est,18E5)}catch(b){_.e_(b)}}};
$ui=function(){var N=_.WN(),b=N.getFlag(119),S=window.devicePixelRatio>1;document.body&&_.K8(document.body,"exp-invert-logo")&&(S&&!_.K8(document.body,"inverted-hdpi")?_.DN(document.body,"inverted-hdpi"):!S&&_.K8(document.body,"inverted-hdpi")&&_.Iq(document.body,"inverted-hdpi"));b!=S&&(_.nA(0,119,S),N.save())};
hsa=function(){_.d7("service_worker_push_logged_out_prompt_watches")!=-1&&NC("WatchCount").then(function(N){N>=100||svQ("WatchCount",N+1)})};
qZq=function(N){return N.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})};
w7E=function(N){return N.filter(function(b){return!_.t(b,_.HW9)})};
N56=function(N){switch(N){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
bUn=function(N,b,S){var P=_.UZ(S);N&&b&&P&&N.getPlayerPromise().then(function(H){_.WUs(P)&&_.VE();(new _.sU(H)).executeCommand(P,b);_.T("continue_playback_on_desktop_companion_click")||H.pauseVideo()})};
Sbo=function(N){var b=_.qE(),S;if(S=_.hl("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;S=(P=S())==null?void 0:P.layoutId}else S=null;bUn(b,S,N)};
Poi=function(N){var b=_.qE(),S;if(S=_.hl("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;S=(P=S())==null?void 0:P.layoutId}else S=null;bUn(b,S,N)};
DX=function(N,b){var S=N<0?"-":"";N=Math.abs(N);var P=Math.floor(N/3600),H=Math.floor(N)%3600,K=Math.floor(H/60);H=Math.floor(H)%60;var C="";(b===void 0?0:b)&&(C="."+Math.round((N-Math.floor(N))*10));return P>0?S+P+":"+(K<10?"0"+K:""+K)+":"+(H<10?"0"+H:""+H)+C:S+K+":"+(H<10?"0"+H:""+H)+C};
HUO=function(N){var b=N.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;N=N.split(":");if(N.length===0||N.length>3)return null;b=1;for(var S=0;N.length>0;){var P=N.pop();if(P===void 0)break;var H=Number(P);if(P===""||isNaN(H))return null;S+=H*b;b*=60}return S};
s7E=function(N,b,S,P){N=Math.max(S,N);b=Math.min(b,P-S);N+b>P?(S=P,N=S-b):S=N+b;return{start:N,end:S}};
KhQ=function(N,b,S,P,H,K){N<S?N=S:N+H>P&&(N=P-H);b>P&&(b=P);b=Math.min(N+K,Math.max(N+H,b));return{start:N,end:b}};
v9Q=function(N,b,S,P,H,K){b>P?b=P:b-H<S&&(b=S+H);N<S&&(N=S);N=Math.min(b-H,Math.max(b-K,N));return{start:N,end:b}};
OUi=function(N,b){if(b)return"ytCardViewModelCardSelected";switch(N){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
Wh5=function(N,b){var S=_.$q(N,{}),P=CoO("top",b),H=CoO("bottom",b),K=CoO("left",b),C=CoO("right",b);return _.r5({top:function(){return V$(S().position,P)},
bottom:function(){return V$(S().position,H)},
left:function(){return V$(S().position,K)},
right:function(){return V$(S().position,C)},
position:function(){return V$(S().positionType,GR6)},
height:function(){return V$(S().height,gF)},
width:function(){return V$(S().width,gF)},
"min-width":function(){return V$(S().minWidth,gF)},
"min-height":function(){return V$(S().minHeight,gF)},
"max-width":function(){return V$(S().maxWidth,gF)},
"max-height":function(){return V$(S().maxHeight,gF)},
"aspect-ratio":function(){return V$(S().aspectRatio,String)},
"margin-top":function(){return V$(S().margin,P)},
"margin-bottom":function(){return V$(S().margin,H)},
"margin-left":function(){return V$(S().margin,K)},
"margin-right":function(){return V$(S().margin,C)},
"padding-top":function(){return V$(S().padding,P)},
"padding-bottom":function(){return V$(S().padding,H)},
"padding-left":function(){return V$(S().padding,K)},
"padding-right":function(){return V$(S().padding,C)},
"flex-direction":function(){return V$(S().flexDirection,r8q)},
"justify-content":function(){return V$(S().justifyContent,c8J)},
"align-items":function(){return V$(S().alignItems,aGo)},
"flex-grow":function(){return V$(S().flexGrow,String)},
"flex-shrink":function(){return V$(S().flexShrink,String)},
"flex-basis":function(){return V$(S().flexBasis,gF)},
"align-self":function(){return V$(S().alignSelf,aGo)},
"flex-wrap":function(){return V$(S().flexWrap,RJ6)},
"align-content":function(){return V$(S().alignContent,aGo)}})};
V$=function(N,b){return N!==void 0?b(N):void 0};
RJ6=function(N){switch(N){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
GR6=function(N){switch(N){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
aGo=function(N){switch(N){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
c8J=function(N){switch(N){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
r8q=function(N){switch(N){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
CoO=function(N,b){var S=b==="rtl";switch(N){case "top":var P=n9a;break;case "bottom":P=dEQ;break;case "left":P=mEa;break;default:P=kRJ}return function(H){return V$(P(H,S),gF)}};
n9a=function(N){var b=N.top;var S=N.vertical;N=N.all;var P;return(P=b!=null?b:S)!=null?P:N};
dEQ=function(N){var b=N.bottom;var S=N.vertical;N=N.all;var P;return(P=b!=null?b:S)!=null?P:N};
mEa=function(N,b){var S=N.left;var P=N.end;var H=N.start;var K=N.horizontal;N=N.all;var C,G;return(G=(C=S!=null?S:b?P:H)!=null?C:K)!=null?G:N};
kRJ=function(N,b){var S=N.right;var P=N.end;var H=N.start;var K=N.horizontal;N=N.all;var C,G;return(G=(C=S!=null?S:b?H:P)!=null?C:K)!=null?G:N};
gF=function(N){var b=N.value;switch(N.unit){case "YPC_DIMENSION_UNIT_POINT":return b+"px";case "YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b}};
T5t=function(N){switch(N){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
ta6=function(N){var b=N!=null?N:{};N=b.fontRole;var S=b.fontSize;b=b.fontWeight;if(N!==null&&S!==null)switch(N){case "YPC_FONT_ROLE_DISPLAY":switch(S){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(S){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return b===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(S){case "YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
lGa=function(N,b,S){function P(d){return Object.values(d).map(function(m){var k=m.productId;m=m.pricingOptionIndex;return e5(H(k).pricingOptions,m).pricingOptionId})}
function H(d){return a().get(d)}
function K(d){d=P(d);S(d)}
function C(d,m){return Array.from($f(d.pricingOptions)).filter(function(k){k=_.O(k);k.next();k=k.next().value;return hU(k.pricingGroupAttributes,m)}).map(function(k){return _.O(k).next().value})}
var G=Maa([N,b],function(d,m){var k=d==null?void 0:d.selectedPricingOptions;d={};var M=!0;if(k&&m.length)for(var l=_.O(m),u=l.next();!u.done;u=l.next()){u=u.value;var J=Fh_(u.pricingOptions,function(Y){a:{Y=Y.pricingOptionId;for(var V=_.O(k),g=V.next();!g.done;g=V.next())if(g.value===Y){Y=!0;break a}Y=!1}return Y});
if(J>=0){M=!1;var Z=e5(u.pricingOptions,J),D=void 0;d[u.groupId]={productId:u.productId,pricingOptionIndex:J,pricingGroupAttributes:(D=Z)==null?void 0:D.pricingGroupAttributes}}}M&&m.length&&(M=e5(m[0].pricingOptions,0),d[m[0].groupId]={productId:m[0].productId,pricingOptionIndex:0,pricingGroupAttributes:M==null?void 0:M.pricingGroupAttributes});return d}),a=Maa([b],function(d){return new Map(d.map(function(m){return[m.productId,
m]}))}),R=Maa([b],function(d){var m=new Map;
d=_.O(d);for(var k=d.next();!k.done;k=d.next()){var M=k.value;k=M.groupId;var l=M.productId;M=_.O($f(M.pricingOptions));for(var u=M.next();!u.done;u=M.next()){var J=_.O(u.value);u=J.next().value;J=J.next().value;m.set(J.pricingOptionId,{groupId:k,productId:l,index:u,pricingOption:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return m}),n=Maa([b],function(d){var m=new Map;
d=_.O(d);for(var k=d.next();!k.done;k=d.next()){var M=k.value;k=M.groupId;var l=M.productId,u=void 0;M=_.O($f((u=M.pricingGroups)!=null?u:[]));for(u=M.next();!u.done;u=M.next()){var J=_.O(u.value);u=J.next().value;J=J.next().value;m.set(J.pricingGroupId,{groupId:k,productId:l,index:u,pricingGroup:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return m});
return{getProductById:H,isProductSelected:function(d){var m=H(d);if(!m)return!1;var k;return((k=G()[m.groupId])==null?void 0:k.productId)===d},
getSelectedPricingOptions:function(){return Object.values(G()).map(function(d){var m=d.productId;d=d.pricingOptionIndex;return e5(H(m).pricingOptions,d)})},
getSelectedPricingGroupAttributesByGroupId:function(d){var m;return(d=(m=G()[d])==null?void 0:m.pricingGroupAttributes)?Array.from(d):void 0},
getSelectedProductByGroupId:function(d){var m;return(d=(m=G()[d])==null?void 0:m.productId)?H(d):void 0},
onProductSelected:function(d){var m=H(d);if(m){var k=G(),M;if(((M=k[m.groupId])==null?void 0:M.productId)!==d){var l=(M=(l=k[m.groupId])==null?void 0:l.productId)?H(M):void 0;var u;M=(u=k[m.groupId])==null?void 0:u.pricingGroupAttributes;var J;u=(J=k[m.groupId])==null?void 0:J.pricingOptionIndex;if(l&&u!==void 0)if(M){J=C(l,M).indexOf(u);if(J===-1)throw Error("Bl`"+u+"`"+l.productId);u=C(m,M);J=J<u.length?u[J]:u.length>0?u[0]:0}else J=u<qC(m.pricingOptions)?u:0;else J=0;qC(m.pricingOptions)<=J&&(J=
0);u=e5(m.pricingOptions,J);var Z;l={};K(Object.assign({},k,(l[m.groupId]={productId:d,pricingOptionIndex:J,pricingGroupAttributes:(Z=u==null?void 0:u.pricingGroupAttributes)!=null?Z:[]},l)))}}},
onPricingOptionSelected:function(d){var m=R().get(d);if(m){d=m.groupId;var k=m.productId;m=m.index;var M=G(),l,u;if(((l=M[d])==null?void 0:l.productId)!==k||((u=M[d])==null?void 0:u.pricingOptionIndex)!==m){var J,Z;l={};K(Object.assign({},M,(l[d]={productId:k,pricingOptionIndex:m,pricingGroupAttributes:(Z=(J=M[d])==null?void 0:J.pricingGroupAttributes)!=null?Z:[]},l)))}}},
onPricingGroupSelected:function(d){var m=n().get(d);if(m){d=m.groupId;var k=m.productId,M=m.pricingGroup.pricingGroupAttributes,l=H(k);if(l){m=G();var u=m[d].pricingGroupAttributes,J;if(((J=m[d])==null?void 0:J.productId)!==k||!hU(B5J(u,qC(M)),M)){J=Array.from(M);for(M=qC(M);M<qC(u);M++){var Z="",D=!1,Y=Array.from(J);Y.push(e5(u,M));for(var V=_.O(l.pricingGroups),g=V.next();!g.done;g=V.next())if(g=g.value,hU(g.pricingGroupAttributes,Y)){J.push(e5(u,M));D=!0;break}else Z===""&&qC(g.pricingGroupAttributes)===
Y.length&&hU(B5J(g.pricingGroupAttributes,J.length),J)&&(Z=e5(g.pricingGroupAttributes,M));D||J.push(Z)}Z=m[d].pricingOptionIndex;M=[];D=new Map;Y=0;l=_.O($f(l.pricingOptions));for(V=l.next();!V.done;V=l.next())g=_.O(V.value),V=g.next().value,g=g.next().value,hU(g.pricingGroupAttributes,J)&&M.push(V),hU(g.pricingGroupAttributes,u)&&D.set(V,Y++);M.length===0?u=0:(u=D.get(Z),u=u!==void 0&&u<M.length?M[u]:M[0]);l={};K(Object.assign({},m,(l[d]={productId:k,pricingOptionIndex:u,pricingGroupAttributes:J},
l)))}}}},
onClearGroupSelected:function(d){var m=G();m[d]&&(m=Object.fromEntries(Object.entries(m).filter(function(k){return _.O(k).next().value!==d})),K(m))}}};
$f=function(N){return function S(){var P,H,K,C,G;return _.GN(S,function(a){switch(a.nextAddress){case 1:_.oX(a,2),P=0,H=_.O(N),K=H.next();case 4:if(K.done){a.jumpTo(2);break}C=K.value;G=_.RT;return a.yield([P++,C],7);case 7:G(a.yieldResult);K=H.next();a.jumpTo(4);break;case 2:_.xw(a),_.Jv(a,0)}})}()};
Fh_=function(N,b){N=_.O($f(N));for(var S=N.next();!S.done;S=N.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;if(b(P))return S}return-1};
qC=function(N){var b=0;for(N=N[Symbol.iterator]();!N.next().done;)++b;return b};
e5=function(N,b){N=_.O($f(N));for(var S=N.next();!S.done;S=N.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;if(S===b)return P}};
hU=function(N,b){if(!N&&!b)return!0;if(!N||!b)return!1;N=Array.from(N);b=Array.from(b);if(N.length!==b.length)return!1;for(var S=0;S<N.length;S++)if(N[S]!==b[S])return!1;return!0};
B5J=function(N,b){b=b===void 0?Infinity:b;var S=[];N=_.O($f(N));for(var P=N.next();!P.done;P=N.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;if(P>=b)break;P>=0&&S.push(H)}return S};
Maa=function(N,b){var S,P;return function(){for(var H=N.map(function(C){return C()}),K=0;K<H.length;K++)if(!S||H[K]!==S[K]){S=H;
P=b.apply(null,_.IX(H));break}return P}};
Lhq=function(N,b,S){var P=[];N=_.O(N);for(var H=N.next();!H.done;H=N.next()){H=H.value;var K=void 0;((K=b)==null?0:K.length)&&!hU(H.pricingGroupAttributes,b)||P.push({pricingOption:H,isSelected:S.includes(H.pricingOptionId)})}return P};
fGJ=function(N,b){return _.GL(N.entities,"pdpStateEntity",b)};
uM5=function(N){var b,S;return!!(N.productId&&N.groupId&&((b=N.pricingOptions)==null?0:b.length)&&N.pricingOptions.every(function(P){return P.pricingOptionId})&&((S=N.pricingGroups)==null||!S.length||Array.isArray(N.pricingGroups)&&N.pricingGroups.every(function(P){return P.pricingGroupId&&P.pricingGroupAttributes&&P.pricingGroupAttributes.length>0})))};
Q7Q=function(N,b,S){return lGa(N,Maa([b],function(P){return P.filter(uM5)}),S)};
xEa=function(N,b){return b.length===0?[N]:[N.slice(0,b[0]),N.slice(b[0])].filter(function(S){return S.length>0})};
o9t=function(N){switch(N){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
J8t=function(N,b,S,P){P=Object.assign({},P);_.QN(P,iUq,{selectedOptionId:N,primaryButtonOverride:S});_.gq().dispatch(_.t5("flowStateEntity",b,P))};
UEa=function(N,b,S){!_.t(S,iUq)&&N.noPreselect&&b!==""&&N.defaultButtonOverride&&J8t("default",b,N.defaultButtonOverride,S)};
ZUE=function(N){switch(N){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
j7t=function(N){switch(N){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
zJE=function(N,b){b.includes(N)?b=b.filter(function(S){return S!==N}):b.push(N);
return[].concat(_.IX(b))};
A8n=function(N,b){return _.GL(N.entities,"contextNoteFeedEntityPayload",b)};
XXi=function(N,b){switch(N){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return b==null?void 0:b.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return b==null?void 0:b.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return b==null?void 0:b.ratingNotHelpfulText}};
E9E=function(N,b,S){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:S||N.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:N.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:N.deleteDialogTitle}]},dialogMessages:[{runs:[{text:N.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:N.deleteActionText}]},command:{performCommentActionEndpoint:{action:b}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:N.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
pXE=function(N,b,S){var P;if(N&&((P=b())==null?0:P.includes(N))){var H;S((H=b())==null?void 0:H.filter(function(K){return K!==N}))}else S([].concat(_.IX(b()||[]),[N]))};
y8a=function(N,b){if(N){var S=[];b=_.O((b==null?void 0:b.checkboxes)||[]);for(var P=b.next();!P.done;P=b.next()){P=_.t(P.value,YbQ);var H=void 0;((H=P)==null?0:H.value)&&N.includes(P.key||"")&&S.push(P.value)}return S}};
IGa=function(N){N.style.height="auto";N.style.height=N.scrollHeight+"px"};
DEL=function(N){return[N.syncStep,N.asyncStep].filter(function(b){return b!==void 0})};
g9O=function(N){var b,S,P;if(N=(b=N.structuredContextNoteFormSchema)==null?void 0:(S=b.fieldSchemas)==null?void 0:(P=S.noteBody)==null?void 0:P.validationSchema)for(b=_.O(DEL(N)),S=b.next();!S.done;S=b.next()){S=S.value.rules;if(!S)break;S=_.O(S);for(S=S.next();!S.done;S=S.next())return _.t(S.value,VaL)}};
$Eq=function(N){if(N){N=_.O(DEL(N));for(var b=N.next();!b.done;b=N.next()){b=b.value.rules;if(!b)break;b=_.O(b);for(b=b.next();!b.done;b=b.next())return _.t(b.value,eJi)}}};
qb6=function(N){if(N){N=_.O(DEL(N));for(var b=N.next();!b.done;b=N.next()){b=b.value.rules;if(!b)break;b=_.O(b);for(b=b.next();!b.done;b=b.next())return _.t(b.value,hJq)}}};
wXw=function(N){N=/^https?:\/\//.test(N)?N:"http://"+N;try{var b=_.sB(N)}catch(S){return!1}if(b.toString()!==N)return!1;N=b.JSC$10265_domain_.split(".");return N.length>1&&N.every(function(S){return!!S})};
NxL=function(N,b,S,P){var H;P=(H=P.structuredContextNoteData)==null?void 0:H.createCommentEndpoint;if(H=_.t(P,_.aiO))return H.commentText=_.gy(N),H.videoPositionMention=b,H.sources=S,P};
bfL=function(N){return N==null?void 0:N.stringValue};
PKQ=function(N,b,S){N=N.map(function(P,H){return{listItemViewModel:{title:P.title,subtitle:P.subtitle,leadingImage:P.leadingImage,trailingImage:H===b?SWi:void 0,rendererContext:{commandContext:{onTap:P.onTap}}}}});
return Object.assign({},S&&{header:{panelHeaderViewModel:{title:S}}},{content:{listViewModel:{listItems:N}}})};
HfL=function(N,b){if(N&&b)switch(b){case "SELECTION_TYPE_BOOL":return N.boolValue;case "SELECTION_TYPE_INT":return N.intValue;case "SELECTION_TYPE_STRING":return N.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return N.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return N.timePickerFormatValue}};
s2a=function(N){var b;N=(b=N.options)==null?void 0:b.findIndex(function(S){return S.isSelected});
return N===void 0?-1:N};
KHJ=function(N,b,S){var P=function(){return N().label},H={},K=_.KU("ytDropdownViewModelLabel",(H.ytDropdownViewModelLabelError=b,H));
return _.c(_.W,{cond:function(){return N().label&&!(S()===-1&&N().label&&!N().placeholderText)},
then:function(){return _.c("div",{class:K},_.c(_.mD,{text:P}))}})};
vYt=function(N,b){var S={};S=_.KU("ytDropdownViewModelTitle",(S.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},S));
return _.c("div",{class:S},_.c(_.mD,{text:function(){var P=N();var H=b();if(H===-1)P=P.placeholderText?P.placeholderText:P.label;else{var K,C;P=(K=P.options)==null?void 0:(C=K[H])==null?void 0:C.title}return P}}))};
Ofq=function(N,b){var S=function(){return N().hint};
return _.c(_.nM,null,_.c(_.W,{cond:function(){return S()&&!b()},
then:function(){return _.c("div",{class:_.KU("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.c(_.mD,{text:S,className:"ytDropdownViewModelSupportText"}))}}),_.c(_.W,{cond:b,
then:function(){return _.c("div",{id:"dropdown-view-model-error",role:"alert",class:_.KU("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.c(_.cX,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.c(_.mD,{text:b,className:"ytDropdownViewModelSupportText"}))}}))};
CKn=function(N,b){var S=_.aN().resolve(_.bzq);_.YU(function(){var P=N().id;P&&S!=null&&S.dropdownMap.set(P,b)})};
r5L=function(N){N=_.t(N.scheduleButton,G8i);N=_.t(N==null?void 0:N.primaryButton,_.WC);N=_.t(N==null?void 0:N.onTap,_.JM);var b,S,P=((S=_.t(N,_.vN))==null?void 0:S.commands)||[N];S=_.O(P);for(N=S.next();!N.done&&!(b=_.t(N.value,_.Gs9));N=S.next());var H;b=(H=b)==null?void 0:H.createBroadcastRequest;if(!b)throw Error("Il");return b};
R9q=function(N,b){if(b){var S=_.h0().getState().entities.flowStateEntity,P=c55(N),H=[b];P&&P!==b&&H.push(P);var K=!0,C;if(S&&N.flowStateEntityKey&&((C=S[N.flowStateEntityKey])==null?void 0:C.primaryButtonDisabled)!==void 0){var G;K=!((G=S[N.flowStateEntityKey])==null||!G.primaryButtonDisabled)}az6(N,P!=null?P:b,H,K)}};
nY6=function(N){return _.hT(_.h0(),function(b){return b.entities.flowStateEntity},function(b,S){if(N.flowStateEntityKey){var P,H=b==null?void 0:(P=b[N.flowStateEntityKey])==null?void 0:P.currentStepId,K;
S=S==null?void 0:(K=S[N.flowStateEntityKey])==null?void 0:K.currentStepId;K=_.h0().getState().talkToRecs;if(H&&H!==S){var C;b=(b==null?void 0:(C=b[N.flowStateEntityKey])==null?void 0:C.stepIdStack)||Object.keys(K.stepStates);C=!WHJ(K==null?void 0:K.stepStates[H]);az6(N,H,b,C)}}})};
mbw=function(N){return _.hT(_.h0(),dbJ,function(b){var S=c55(N);if(S){var P=Object.keys(b.stepStates);b=!WHJ(b==null?void 0:b.stepStates[S]);az6(N,S,P,b)}})};
WHJ=function(N){var b=Object.keys((N==null?void 0:N.selectionStates)||{}).reduce(function(K,C){return K||(N==null?void 0:N.selectionStates[C].isSelected)},!1),S,P,H=!!(N==null?0:(S=N.userQuery)==null?0:(P=S.userQuery)==null?0:P.trim());
return b||H};
c55=function(N){if(N.flowStateEntityKey){var b,S,P=(b=_.h0().getState().entities.flowStateEntity)==null?void 0:(S=b[N.flowStateEntityKey])==null?void 0:S.currentStepId;if(P)return P}};
az6=function(N,b,S,P){_.h0().dispatch(_.t5("flowStateEntity",N.flowStateEntityKey,{currentStepId:b,stepIdStack:S,key:N.flowStateEntityKey,primaryButtonDisabled:P}))};
MFL=function(N,b,S){S=S===void 0?{}:S;var P,H;return _.r(function(K){if(P=k8_(b))return K.return(P);(H=Txq(N,b,S))&&tFL(b,H);return K.return(H)})};
tFL=function(N,b){var S=FHa(N);S&&b.then(function(P){_.aN().resolve(_.EN).put(S,new _.p5({innertubeResponse:P}))})};
k8_=function(N){if(N=FHa(N)){var b=_.aN().resolve(_.EN);if(b.has(N))return b.get(N).then(function(S){return S==null?void 0:_.Pp(S)})}return null};
FHa=function(N){var b=_.t(N.endpoint,_.Iv);if(b!=null&&b.videoId)return b={videoId:b.videoId},_.T("web_imp_player_mute_params")&&(b.mutedAtStart=N.startPlaybackInMutedState),_.yh("inline_playback",b)};
Txq=function(N,b,S){N=_.pU(N,b.endpoint,Bxn(b,S)).then(function(P){return P});
return Promise.resolve(N)};
Bxn=function(N,b){b=_.T("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!N.startPlaybackInMutedState},b):Object.assign({},{vis:5,autonav:"1"},b);var S;b={contentPlaybackContext:_.KS(b,(S=_.t(N.endpoint.commandMetadata,_.GY))==null?void 0:S.url,window.location.href)};_.T("web_imp_player_mute_params")&&(b.overrideMutedAtStart=!N.startPlaybackInMutedState);return b};
Q2O=function(N,b){var S=window.MutationObserver;S&&(lzE=new S(function(P,H){P=_.O(P);for(var K=P.next();!K.done;K=P.next()){K=K.value;var C;if(C=K.type==="childList"&&K.target)a:{C=N;K=LHE(K.target);C=LHE(C);for(var G=null,a=0;a<K.length;a++)if(C.includes(K[a])){if(a===0){C=!1;break a}G=K[a];break}G?(K=fz6(K,G),C=fz6(C,G),C=K<C):C=!1}if(C){b();H.disconnect();break}}}),(S=u$E())&&lzE.observe(S,{childList:!0,
subtree:!0}))};
u$E=function(){var N=document.getElementsByTagName("ytd-rich-grid-renderer");if(N.length>0)return N[0];N=document.getElementsByTagName("ytd-section-list-renderer");return N.length>0?N[0]:null};
LHE=function(N){for(var b=[];N;)b.push(N),N=N.parentElement;return b};
fz6=function(N,b){var S=Array.from(b.children);b=N.indexOf(b);return b>0?S.indexOf(N[b-1]):-1};
wF=function(N,b,S){S=S===void 0?{}:S;return _.cN(N,S,b)};
xbt=function(N){switch(N){case "MUSIC":return!0;default:return!1}};
if6=function(N){if(N=N==null?void 0:N.find(function(P){var H,K;return((H=_.t(P,oYw))==null?void 0:(K=H.inlinePlaybackBadgeData)==null?void 0:K.replicateAsTimestamp)===!0}))if(N=_.t(N,oYw),N==null?0:N.icon){var b,S;
if((N=(b=_.I6s(N.icon))==null?void 0:(S=b.clientResource)==null?void 0:S.imageName)&&xbt(N))return N}};
J5E=function(N){return N==null?void 0:N.filter(function(b){return b.premiereTrailerBadgeRenderer})};
UbJ=function(N){var b,S=N==null?void 0:(b=N.find(function(a){return a.thumbnailOverlayTimeStatusRenderer}))==null?void 0:b.thumbnailOverlayTimeStatusRenderer,P,H;
if((S==null?0:(P=S.icon)==null?0:P.iconType)&&xbt(S==null?void 0:(H=S.icon)==null?void 0:H.iconType)){var K;return{icon:S==null?void 0:(K=S.icon)==null?void 0:K.iconType}}var C;if(b=N==null?void 0:(C=N.find(function(a){return a.thumbnailOverlayBadgeViewModel}))==null?void 0:C.thumbnailOverlayBadgeViewModel)if(C=if6(b.thumbnailBadges))return{icon:C};
var G;if(N=N==null?void 0:(G=N.find(function(a){return a.thumbnailBottomOverlayViewModel}))==null?void 0:G.thumbnailBottomOverlayViewModel)if(G=if6(N.badges))return{icon:G};
return{}};
Xmq=function(N,b){var S=new Zfa(function(K){H(K)},b);
b=_.O(_.QF(j25(S),void 0,"D2uee"));var P=b.next().value,H=b.next().value;_.gA(function(){Promise.resolve().then(function(){var K,C=(K=N())!=null?K:{};S.playerControlsData=C;S.lastSeenPlayerApi=_.X0(C.playerApi);z9i(S)});
_.ej(function(){A5L(S)})},"xfRk8b");
return P};
EYo=function(N){return function(b){var S=N(),P={playerState:b};if(b===1){var H;(H=S.playerApi)==null||H.loadModule("captions")}if(b===0){var K;(K=S.playerApi)==null||K.unloadModule("captions")}b!==-1&&S.setState(P)}};
pmi=function(N){return function(b){N().setState({playbackRate:b})}};
YW6=function(N){return function(b){var S=N(),P=S.playerApi,H=P==null?void 0:P.getVideoData(),K=(H==null?void 0:H.isLive)||!1;H=H==null?void 0:H.video_id;K={videoDuration:hzt(P||void 0),isLive:K,videoId:H};K.videoId!==S.videoId&&(K=Object.assign({},_.W_U(P),K));if(b==null?0:b.playertype)K.playerType=b.playertype;if(P){K.captionsAvailable=XNO(P);b=K;var C;H=(C=P.getStoryboardLevel(P.getNumberOfStoryboardLevels()-1))==null?void 0:C.intervalMs;b.storyboardInterval=H?H/1E3:void 0;K.captionsAvailable&&
(K.captionsEnabled=ERJ(P))}K.volumeMuted=!(P==null||!P.isMuted());S.setState(K)}};
y5q=function(N){return function(b){var S=N(),P=S.playerApi;if(P){var H=P.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:P.getVideoLoadedFraction(),playerType:H};S.playerState===0&&(b.playedTime=S.videoDuration);S.isLive&&(H=P.getProgressState(H),b.playedTime-=H.seekableStart,b.videoDuration=hzt(P));if(S.playerType===1)P=!1;else{var K;if((K=S.uxConfig)==null?0:K.showCuedOverlay){var C;P=!((C=S.playerApi)==null?0:C.getPlayerStateObject(S.playerType).isDomPaused)}else P=!0}P&&delete b.playedTime;
S.setState(b)}}};
IzE=function(N){return function(){var b=N(),S,P,H,K={volume:(H=(S=b.playerApi)==null?void 0:S.getVolume())!=null?H:0,volumeMuted:!((P=b.playerApi)==null||!P.isMuted())};b.setState(K)}};
Dbt=function(N){return function(){var b=N(),S=b.playerApi;if(S){var P={captionsAvailable:XNO(S)};P.captionsAvailable&&(P.captionsEnabled=ERJ(S));b.setState(P)}}};
VFJ=function(N){return{appApi:Object.assign({},_.Ob_(),{showCaptionsToggleToast:function(b){var S,P;(P=(S=N()).showCaptionsToggleToast)==null||P.call(S,b)},
openInMiniplayer:function(){var b,S;(S=(b=N()).openInMiniplayer)==null||S.call(b)}})}};
gY5=function(N,b){var S,P,H;return!!(N==null?0:(S=N.playerResponse)==null?0:(P=S.playerConfig)==null?0:(H=P.inlinePlaybackConfig)==null?0:H.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)};
e9q=function(N){var b=!N.miniplayerIsActive;return[5,2,0].includes(N.miniplayerPlaybackState)||b};
$b5=function(N){return _.T("web_transcript_cue_id_killswitch")?String(N):"ytd-transcript-renderer_"+N};
h9Q=function(N){return _.T("web_transcript_cue_id_killswitch")?!0:N.startsWith("ytd-transcript-renderer")};
qWn=function(N){var b=_.qE(),S;if(S=_.hl("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;S=(P=S())==null?void 0:P.layoutId}else S=null;bUn(b,S,N)};
wmE=function(N,b){if(_.T("web_enable_chat_autoscroll_to_user_turn")&&N&&b)return N-4+"px"};
NOQ=function(N,b){return _.GL(N.entities,"youchatPendingResponseEntity",b)};
boi=function(N){return function(b){_.e7(_.t5("youchatPendingResponseEntity",N,{entityKey:N,isPendingResponse:b}))}};
Sx_=function(N,b){return _.GL(N.entities,"booleanEntity",b)};
PFi=function(){return function(N){_.e7(_.t5("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:N}))}};
HoJ=function(N){N==null||N.addEventListener("DOMLoaded",function(){N.goToAndPlay(N.totalFrames-48,!0)})};
sJi=function(N){if(N.backgroundStyle)switch(N.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytYouChatUserTurnMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytYouChatUserTurnGradientContainer";default:return"ytYouChatUserTurnDefaultContainer"}return N.hasGradientBackground?"ytYouChatUserTurnGradientContainer":"ytYouChatUserTurnDefaultContainer"};
K8a=function(N){N.style.height="auto";N.style.height=Math.min(N.scrollHeight||20,80)+"px"};
ve_=function(){var N;return String(Math.floor(((N=_.G8())==null?void 0:N.getCurrentTime())||0)*1E3)};
CF5=function(N){if(N.onWelcomeCommand)return _.UZ(N.onWelcomeCommand);N=_.t(N.inputComposerViewModel,Oo6);if(N==null?0:N.welcomeFeatureContinuation)return HuE(N.welcomeFeatureContinuation)};
GMq=function(N){var b=_.qE(),S;S=(S=_.hl("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;bUn(b,S,N)};
rIo=function(N){var b=_.qE(),S;S=(S=_.hl("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;bUn(b,S,N)};
cIt=function(N){return N.filter(function(b){return!_.t(b,_.YE)})};
aWE=function(N){var b,S,P,H;if(N=N==null?void 0:(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.results)==null?void 0:(H=P.results)==null?void 0:H.contents){var K,C;return(C=(K=N.find(function(G){return!!G.videoPrimaryInfoRenderer}))==null?void 0:K.videoPrimaryInfoRenderer)==null?void 0:C.updatedMetadataEndpoint}};
RS6=function(N,b){var S;return(S=N.sourceConfigs)==null?void 0:S.find(function(P){return P.videoId===b})};
W8E=function(N){return N==="End of video"||N==="End of playlist"};
neJ=function(N){var b,S,P,H;return(b=N.getWatchNextResponse())==null?void 0:(S=b.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(H=P.playlist)==null?void 0:H.playlist};
dv_=function(N){var b,S,P,H,K,C;return(b=neJ(N))==null?void 0:(S=b.playlistButtons)==null?void 0:(P=S.menuRenderer)==null?void 0:(H=P.topLevelButtons)==null?void 0:(K=H[0])==null?void 0:(C=K.playlistLoopButtonRenderer)==null?void 0:C.playlistLoopStateEntityKey};
mvt=function(N){var b=_.aN().resolve(_.dt),S;return(b=(S=_.t(b.getAutoplayEndpoint(),_.Iv))==null?void 0:S.playlistId)&&b===N};
t8i=function(N,b,S,P,H){function K(){_.Dj.cancelJob(Nl);var C=kMw(b,S/N.getPlaybackRate()),G=C.hours,a=C.minutes;C=(C.seconds*1E3||6E4)/N.getPlaybackRate();N.setVideoTimeLeft(TOa(G,a));P&&N.getPlayerState()!==0&&N.setSleepTimerTimeLeft(TOa(G,a,!0));(G>0||a>0)&&!H&&(Nl=_.Bm(_.Dj,K,C))}
_.Dj.cancelJob(Nl);Nl=_.Bm(_.Dj,K)};
F8n=function(N,b,S){function P(){_.Dj.cancelJob(M8a);var H=kMw(b,S),K=H.hours;H=H.minutes;var C=6E4/N.getPlaybackRate();if(K>0||H>0)N.setSleepTimerTimeLeft(TOa(K,H,!0)),M8a=_.Bm(_.Dj,P,C)}
_.Dj.cancelJob(M8a);M8a=_.Bm(_.Dj,P)};
lWq=function(N,b){var S=N.getVolume()/(b/500),P=function(H){_.Dj.cancelJob(BOE);var K=Math.floor(H-S);N.setVolume(K,!1);K>0&&(BOE=_.Bm(_.Dj,function(){P(K)},500))};
_.Dj.cancelJob(BOE);BOE=_.Bm(_.Dj,function(){P(N.getVolume())})};
L8Q=function(N,b){_.Dj.cancelJob(BOE);b&&N.syncVolume()};
fWw=function(){var N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.cN("SLEEP_TIMER_DISRUPTED")}}}}};_.aN().resolve(_.Wq).resolveCommand(N)};
uvw=function(N){return(N.getDuration()-N.getProgressState().current)*1E3};
kMw=function(N,b){N=N+b-(0,_.nh)();if(N<=0)return{hours:0,minutes:0,seconds:0};var S=new QJa(0,0,0,0,0,0,N);N=S.getHours();b=S.getMinutes();S=S.getSeconds();S!==0&&b++;b!==0&&b%60===0&&(N++,b=0);return{hours:N,minutes:b,seconds:S}};
TOa=function(N,b,S){return N>0&&b>0?S?_.cN("TIME_LEFT_HOURS_MINUTES",{hours:N.toString(),minutes:b.toString()}):_.cN("TIME_HOURS_MINUTES",{hours:N.toString(),minutes:b.toString()}):N>0?S?_.am("TIME_LEFT_HOURS",N):_.am("TIME_HOURS",N):S?_.cN("TIME_LEFT_MINUTES",{minutes:b.toString()}):_.cN("TIME_MINUTES",{minutes:b.toString()})};
oeq=function(N,b){if(N.timelyActions)return N.timelyActions.find(function(S){var P;return((P=_.t(S,xvn))==null?void 0:P.cueRangeId)===b})};
iow=function(N){return _.T("kevlar_watch_cinematics_invisible")||N.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_fullscreen")||N.theater&&!N.fullscreen&&_.T("kevlar_watch_cinematics_invisible_in_theater")};
JIE=function(){var N=document.createElement("canvas"),b=N.getContext("2d");if(!b)throw Error("Ml");_.Vo(N,{position:"absolute",width:"100%",height:"100%"});return{element:N,context:b}};
UvQ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.T("kevlar_watch_cinematics_css_blur")};
Zoi=function(N){var b=N.externalVideoId||"";return b?N.isShortsEligible?"https://www.youtube.com/shorts/"+b:"https://www.youtube.com/watch?v="+b:""};
jJ5=function(N){var b=[];N.viewCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:N.viewCount});N.likeCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:N.likeCount});return b};
zSQ=function(N){var b,S,P={"@context":"https://schema.org","@type":"VideoObject",description:_.es(N.description),duration:"PT"+(N.lengthSeconds||"0")+"S",embedUrl:N.embed?N.embed.iframeUrl:"",name:_.es(N.title),thumbnailUrl:((b=N.thumbnail)==null?void 0:(S=b.thumbnails)==null?void 0:S.map(function(n){return n&&n.url||""}))||[],
uploadDate:N.publishDate};_.T("mweb_video_schema_id_killswitch")||(P["@id"]=Zoi(N));b=jJ5(N);b.length&&(P.interactionStatistic=b);N.category&&(P.genre=N.category);N.ownerChannelName&&(P.author=N.ownerChannelName);N.liveBroadcastDetails&&(P.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:N.liveBroadcastDetails.startTimestamp,endDate:N.liveBroadcastDetails.endTimestamp}]);if(N.learningResource){N=N.learningResource;P["@type"]=["VideoObject","LearningResource"];var H;if((H=N.learningResourceType)==
null?0:H.length)P.learningResourceType=N.learningResourceType[0];var K;if((K=N.educationalAlignment)==null?0:K.length)P.educationalAlignment={"@type":"AlignmentObject",targetName:N.educationalAlignment[0]};var C;if((C=N.educationalLevel)==null?0:C.length){H=N.educationalLevel[0];var G;if((G=N.educationalLevelCountry)==null?0:G.length)H+=" ("+N.educationalLevelCountry+")";P.educationalLevel=H}var a,R;if(((a=N.learningResourceType)==null?0:a.length)&&N.learningResourceType[0]==="Problem walkthrough"&&
((R=N.problemDescriptions)==null?0:R.length))for(P.hasPart=[],G=_.O(N.problemDescriptions),a=G.next();!a.done;a=G.next())H=a.value,a=H.problemDescriptionText,R=H.startOffset,H=H.url,a&&R!==void 0&&H&&P.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:a,text:a,startOffset:R,url:H})}return P};
AIw=function(N){if((N==null?void 0:N.value)===void 0||N==null||!N.unit)return"initial";a:{switch(N.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var b="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":b="%";break a}b=void 0}return b?""+N.value+b:"initial"};
EeO=function(N,b){var S,P,H,K,C,G,a;_.r(function(R){switch(R.nextAddress){case 1:S=_.pX.getInstance();P=_.rG.instance;H=_.XM.instance;if(!H)return XPO(N,P,b),R.return();_.u4(R,2);N.onLoadingCommand&&P.resolveCommand(N.onLoadingCommand);return R.yield(S.getCurrentPositionFromGeolocation(),4);case 4:K=R.yieldResult;if(!N.resolveLocationCommand){R.jumpTo(5);break}C=S.createLocationInfo(K);return R.yield(_.pU(H,N.resolveLocationCommand,{locationInfo:C}),6);case 6:G=R.yieldResult;if(!G||"error"in G&&G.error||
G.errorMetadata)return XPO(N,P,b),R.return();var n;if(G==null?0:(n=G.onResponseReceivedActions)==null?0:n.length){n=_.O(G.onResponseReceivedActions);for(var d=n.next();!d.done;d=n.next())P.resolveCommand(d.value)}(_.t(N.onSuccessCommand,_.Iv)||_.t(N.onSuccessCommand,_.Wd))&&_.bC(b.hostElement,"yt-navigate",{endpoint:N.onSuccessCommand,reload:!0});case 5:_.su(R,0);break;case 2:a=_.UE(R);if(a instanceof GeolocationPositionError&&a.code===GeolocationPositionError.PERMISSION_DENIED)return N.onDeniedCommand&&
P.resolveCommand(N.onDeniedCommand),R.return();XPO(N,P,b);_.Zd(R)}})};
XPO=function(N,b,S){N.onFailureCommand&&(b.resolveCommand(N.onFailureCommand),_.St(S.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
YxE=function(N,b){var S=_.t(N,_.ueb);if(S&&b){N=S.videoIds||[S.videoId];var P;b=(P=_.bC(b,"yt-lockup-requested",{videoIds:N}).detail)==null?void 0:P.returnValue;var H;S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?H=b?b:N.map(function(K){return{videoId:K,navigationEndpoint:S.videoCommand}}):b&&(H=b);
H&&(P=H.map(function(K){var C=Object,G=C.assign;var a=K.navigationEndpoint;if(!_.t(a,_.kn)){var R=_.t(a,_.Iv);if(R){if(delete R.index,delete R.playlistId,R=_.t(a==null?void 0:a.commandMetadata,_.GY),R==null?0:R.url){var n=R.url;n=_.$y(n,"list");n=_.$y(n,"index");R.url=n}}else a=void 0}return G.call(C,{},K,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:a})}),pPt(P,S))}};
yIE=function(N){var b=_.M$();if(N=_.t(N,_.QoO))N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&b.clearQueue(),N.closeMiniplayer&&_.aN().resolve(_.E_).close(!0)};
DvO=function(N){IWo(_.M$(),N)};
V8J=function(N){var b;(N=(b=_.t(N,_.LvO))==null?void 0:b.setVideoIds)&&N.forEach(function(S){_.FYb(_.M$(),S)})};
eSt=function(N){gei(_.M$(),N)};
$vo=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(N){return!1}};
PH=function(N,b,S){(_.T("desktop_keyboard_shortcut_usage_log")||S&&_.T("web_shorts_keyboard_shortcut_usage_log"))&&(b?b9.get(N):Sw.get(N))&&(N=b?hSo.get(N):qxi.get(N))&&_.y3(_.Qh(),N)};
N6a=function(N){return N.findIndex(function(b){return wPo.indexOf(b.tagName)>-1})>-1};
bSJ=function(N,b){return N.findIndex(function(S){return S.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(b.keyCode):!1};
P0q=function(N,b){return _.c(S_5,{data:N,onYtNavigate:b})};
HS6=function(N,b){return _.GL(N.entities,"pageHeaderEntity",b)};
KlO=function(N,b){return N.map(function(S){if(S.tabRenderer)return sTE(S.tabRenderer);if(S.expandableTabRenderer&&b){var P=S.expandableTabRenderer;return{customTabRenderable:function(){return b(P)}}}return{}})};
sTE=function(N){return{identifier:N.tabIdentifier,aTagConfig:_.jr({innertubeCommand:N.endpoint,forceNewState:!0}),title:N.title,selected:N.selected,disabled:N.unselectable,icon:N.icon}};
C0L=function(N,b,S,P){if(N)return P=P||N.likeStatus,b?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="LIKE",isDisabled:!N.likesAllowed,defaultIcon:{iconType:S},defaultText:P==="LIKE"?N.likeCountWithUnlikeText:N.likeCountText,toggledText:P==="LIKE"?N.likeCountText:N.likeCountWithLikeText,defaultNavigationEndpoint:vEi(N,"LIKE"),defaultServiceEndpoint:OSa(N,"LIKE"),toggledServiceEndpoint:OSa(N,"INDIFFERENT"),defaultTooltip:_.es(N.likeCountTooltipText),toggledTooltip:_.es(N.likeCountTooltipText),
targetId:N.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="DISLIKE",isDisabled:!N.likesAllowed,defaultIcon:{iconType:S},defaultText:P==="DISLIKE"?N.dislikeCountWithUndislikeText:N.dislikeCountText,toggledText:P==="DISLIKE"?N.dislikeCountText:N.dislikeCountWithDislikeText,defaultNavigationEndpoint:vEi(N,"DISLIKE"),defaultServiceEndpoint:OSa(N,"DISLIKE"),toggledServiceEndpoint:OSa(N,"INDIFFERENT"),defaultTooltip:_.es(N.dislikeCountTooltipText),
toggledTooltip:_.es(N.dislikeCountTooltipText)}};
vEi=function(N,b){if(b==="LIKE")return N.likeCommand;if(b==="DISLIKE")return N.dislikeNavigationEndpoint};
OSa=function(N,b){var S;return(S=N.serviceEndpoints)==null?void 0:S.find(function(P){var H;return((H=_.t(P,_.Np))==null?void 0:H.status)===b})};
GNi=function(N,b,S,P){N=b-N;S=P-S;return Math.sqrt(N*N+S*S)};
rPi=function(N){var b=N>>8&255,S=N&255;return"#"+(N>>16&255).toString(16).padStart(2,"0")+b.toString(16).padStart(2,"0")+S.toString(16).padStart(2,"0")};
cPE=function(N,b){N&&_.aN().resolve(_.Wq).resolveCommand(N,{forceClickLogging:!0,form:{element:b}})};
aMn=function(N){if(N.simpleText)return[{text:N.simpleText}];var b;return(b=N.runs)!=null?b:[]};
RrO=function(N){var b=N.startEndTimeTemplate,S=N.startTimeUtcMillis;N=N.endTimeUtcMillis;if(b&&S&&N)return _.gy(fpO(_.es(b),Number(S),Number(N)))};
Wlq=function(N,b){var S,P,H=N==null?void 0:(S=N.viewCount)==null?void 0:(P=S.videoViewCountRenderer)==null?void 0:P.shortViewCount;if(!b&&H)return H;var K,C;return N==null?void 0:(K=N.viewCount)==null?void 0:(C=K.videoViewCountRenderer)==null?void 0:C.viewCount};
nEa=function(N,b){var S=N==null?void 0:N.relativeDateText;return!b&&S?[S,!0]:[N==null?void 0:N.dateText,!1]};
d5a=function(N,b,S,P,H){P=P===void 0?"":P;H=H===void 0?!1:H;var K=Wlq(N,b),C=_.O(nEa(N,b)),G=C.next().value;C=C.next().value;b=b?N==null?void 0:N.sponsorsOnlyFirstTimeLongText:N==null?void 0:N.sponsorsOnlyFirstTimeShortText;var a=[];S&&K&&a.push(K);!S&&C||!G||a.push(G);N=[H?N==null?void 0:N.subtitle:void 0].concat(_.IX(a),[b,N==null?void 0:N.stationName,N==null?void 0:N.rating,N?RrO(N):void 0,N==null?void 0:N.upNextProgramText,N==null?void 0:N.superTitleLink]).filter(function(R){return!!R});
S={runs:[]};for(H=0;H<N.length;H++)S.runs.push.apply(S.runs,_.IX(aMn(N[H]))),H<N.length-1&&S.runs.push({text:" "+P+" "});return S};
m5t=function(N,b){var S=_.hRz(b,{},N,!0);return new Promise(function(P,H){S.listenOnce("n",function(){H(Error("Zl`"+S.JSC$30372_getErrorDescription()))});
S.listenOnce("l",function(){var K=S.getResponseCode();if(K!==200)H(Error("$l`"+b+"`"+N.type+"`"+N.size+"`"+K));else try{P(JSON.parse(S.getResponseText()).encryptedBlobId)}catch(C){H(C)}});
S.run()})};
kNt=function(N){return N.substring(N.indexOf(":")+1,N.indexOf(";"))};
T6o=function(N){return new Promise(function(b,S){var P=new FileReader;P.onloadend=function(){try{var H=new Uint8Array(P.result);H.length<8&&S(void 0);var K=H.subarray(0,8);H="";for(var C=0;C<K.length;C++)H+=("0"+K[C].toString(16)).substr(-2);H.startsWith("ffd8ff")?b("image/jpeg"):H.startsWith("47494638")?b("image/gif"):H.startsWith("89504e470d0a1a0a")?b("image/png"):H.startsWith("424d")?b("image/bmp"):b(void 0)}catch(G){S(G)}};
P.onerror=S;P.readAsArrayBuffer(N)})};
t36=function(N){return new Promise(function(b,S){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var H=document.createElement("canvas");H.width=P.naturalWidth;H.height=P.naturalHeight;var K=H.getContext("2d");if(!K)throw Error("am");K.drawImage(P,0,0);K=kNt(N);H.toBlob(function(C){C?b(C):S()},K)};
P.src=N})};
FlL=function(N,b){var S;if(((S=_.t(N,_.kn))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var P;_.bC((P=b.hostElement)!=null?P:b,"yt-shorts-reset");_.hU_(_.aN().resolve(_.DP),N).then(function(K){M3L(K,b,N)})}else{var H;
_.HN((H=b.hostElement)!=null?H:b,[N]).then(function(K){K&&M3L(K.data,b,N)})}};
M3L=function(N,b,S){if(N){var P=_.t(N.replacementEndpoint,_.kn);if(P){N.sequenceContinuation&&(P.sequenceParams=N.sequenceContinuation);var H;_.bC((H=b.hostElement)!=null?H:b,"yt-navigate",{endpoint:N.replacementEndpoint})}else if((N==null?void 0:N.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(N==null?0:N.watchStatus)&&_.t(N.watchStatus,_.W3k)){var K;_.bC((K=b.hostElement)!=null?K:b,"yt-navigate",{endpoint:S})}}};
B6i=function(N){var b=_.aN().resolve(_.OQ),S=_.pf.currentPageTypeSelector(b.getState())||"";b=_.pf.currentPageSubTypeSelector(b.getState())||"";S=S==="ytd-browse"&&b==="home";return _.T("web_guide_entry_enable_cache_for_non_home_pages")?(N=(N==null?void 0:N.navigationEndpoint)&&_.R3(N.navigationEndpoint)==="home",{disableCache:S&&N}):{disableCache:S}};
fMo=function(N,b,S,P){if(N&&N.length){var H={};if(b){var K=void 0;S&&(K={commandContext:{onTap:{innertubeCommand:S||{}}}});H.header={panelHeaderViewModel:{title:_.xH(b),rendererContext:K}}}b=[];N=_.O(N);for(S=N.next();!S.done;S=N.next()){K=S.value;S=_.t(K,lMn);K=_.t(K,LlQ);var C=void 0,G=void 0;if((C=K)==null?0:(G=C.expandableItems)==null?0:G.length)for(K=_.O(K.expandableItems),C=K.next();!C.done;C=K.next()){C=C.value.guideEntryRenderer;var a=G=void 0;if(((G=C)==null?void 0:(a=G.icon)==null?void 0:
a.iconType)==="VIEW_LIST_CAIRO"){S=C;break}}G=C=void 0;K=((C=S)==null?0:C.formattedTitle)?_.xH((G=S)==null?void 0:G.formattedTitle):void 0;C=void 0;G=(C=S)==null?void 0:C.isPrimary;if(S&&K&&!G){K={title:K};S.navigationEndpoint&&(K.rendererContext={commandContext:{onTap:{innertubeCommand:S.navigationEndpoint}}});C=[];a=G=void 0;if(((G=S)==null?0:(a=G.thumbnail)==null?0:a.thumbnails)&&S.thumbnail.thumbnails.length>0){G=_.O(S.thumbnail.thumbnails);for(a=G.next();!a.done;a=G.next())C.push({url:a.value.url});
K.leadingAccessory={avatarViewModel:{image:{sources:C},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(G=void 0,(G=S.icon)==null?0:G.iconType)C.push({clientResource:{imageName:S.icon.iconType||""}}),K.leadingImage={sources:C};G=C=void 0;((C=S)==null?0:(G=C.badges)==null?0:G.liveBroadcasting)?(K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",K.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},K.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
S.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":S.count&&(K.trailingLabel={content:S.count.toString()});b.push({listItemViewModel:K})}}b.length!==0?(H.content={listViewModel:{listItems:b}},P===0&&(H.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):H=void 0;if(H)return b=void 0,P===0&&(b={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:H}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:b}}}}};
u0q=function(N,b,S,P){if(b!=null&&b.isPrimary){switch(P){case 1:if(b.serviceEndpoint)break;S=fMo(S,b.formattedTitle,b.navigationEndpoint,P);if(!S)break;b.serviceEndpoint=S;b.navigationEndpoint=void 0;break;case 0:!b.mouseEnterEndpoint&&(S=fMo(S,b.formattedTitle,void 0,P))&&(b.mouseEnterEndpoint=S,b.mouseLeaveEndpoint={hideSheetCommand:{}})}N.push({guideEntryRenderer:b})}};
QTi=function(N){if(!N)return!1;try{if(N.host&&N.host.tagName==="YT-FORMATTED-STRING"&&N.host.id==="contenteditable-textarea"||N.nodeType===Node.ELEMENT_NODE&&N.tagName==="YTD-COMMENT-INPUT")return!0}catch(b){return!1}return QTi(N.parentNode)};
HH=function(N){return N?N.tagName==="A"&&N.href&&N.classList.contains("yt-simple-endpoint"):!1};
x5E=function(N){return N?N.tagName==="IMG"&&N.classList.contains("emoji"):!1};
oEO=function(N,b,S){if(!N)return null;var P=HH(N);if(P&&S)return b=N.pathname.substring(N.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(P&&!S)return document.createTextNode("");if(x5E(N))return S=N.alt,N=N.dataset.emojiId,!N&&b&&(b=_.vP(b,S))&&b.isCustomEmoji&&(N=b.emojiId),N?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+N+">"):document.createTextNode(S);P=N.cloneNode(!1);for(var H=0;H<N.childNodes.length;++H){var K=oEO(N.childNodes[H],b,S);K&&P.appendChild(K)}return P};
iSO=function(N){return N?HH(N)?N:iSO(N.lastChild):null};
JPw=function(N){return N?HH(N)?N:JPw(N.firstChild):null};
U55=function(N){if(!N)return null;for(var b=N.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=iSO(b))?N=b:N=(N=N.parentNode)?iSO(N.previousElementSibling):null;return N};
ZSE=function(N){if(!N)return null;for(var b=N.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=JPw(b))?b:ZSE(N.parentNode)};
jTJ=function(N){var b=_.Co(),S=b.JSC$11580_getStartNode();if(!QTi(S.parentNode))return null;b=b.JSC$11580_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var P=_.wY(S,HH);if(P){if(N&&b===0||!N&&b===S.length)return P}else{if(N&&b===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.GM(S.nextElementSibling,"display")==="block"?null:JPw(S.nextElementSibling);if(!N&&b===0)return S?iSO(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(N){if(0<=b&&b<S.childNodes.length)return JPw(S.childNodes[b])}else if(0<
b&&b<=S.childNodes.length)return iSO(S.childNodes[b-1]);return null};
zri=function(N,b,S){if(!N)return null;if(N.nodeType===Node.TEXT_NODE)if(S){var P=U55(N);if(P&&!/^\s+\S/.test(N.wholeText.substr(0,b)))return P}else if((P=ZSE(N))&&!/\S\s+/.test(N.wholeText.substr(b,N.wholeText.length)))return P;return N.nodeType===Node.ELEMENT_NODE?S?U55(N.childNodes[b]):ZSE(N.childNodes[b]):zri(N.parentNode,b,S)};
APQ=function(N){if(N.hasChildNodes())switch(N.tagName){case "DIV":case "A":case "SPAN":var b="";for(N=N.firstChild;N;N=N.nextSibling)b+=APQ(N);return b;default:return""}else switch(N.nodeType){case 3:return N.textContent;default:return""}};
Xpi=function(N){switch(N){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
EE5=function(N){return N.map(function(b){return{settingsRadioOptionRenderer:{title:_.PU(b.name),asideText:_.PU(b.approximateSize),id:Xpi(b.format)}}})};
Y_E=function(N){if(N&&N.length!==0)return N.filter(ppJ()).map(function(b){return{settingsRadioOptionRenderer:{title:b.name,asideText:b.approximateSize,id:Xpi(b.formatType)}}})};
yPt=function(N){if(N)return N.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
IMQ=function(N,b){N=new Set(N!=null?N:[]);if(N.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(N.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(N.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(N.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(N.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(b)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
D5n=function(N){var b=N.indexOf("(");return b!==-1?N.substring(b+1,N.length-1):N};
_.gEa=function(N,b,S,P,H){S||(S=V3t);var K;(K=_.t(S.commandMetadata,_.GY))!=null&&K.url||(S=Error("fm`"+JSON.stringify(S)),_.ge(S),S=V3t);S=_.Vm.unsafeClone(S);K=_.Nc(_.t(S.commandMetadata,_.GY).url,"search_query",N);_.PW(location.href,"sv")==="1"&&(_.t(S,_.nX).params="EgOAAgE%3D",K=_.Nc(K,"sv","1"));_.t(S,_.nX)&&(_.t(S,_.nX).query=N);K=K.replace(/%20/g,"+");_.t(S.commandMetadata,_.GY).url=K;H=_.T("desktop_enable_entity_suggest")?{entityMid:H}:{};_.aN().resolve(_.Wq).resolveCommand(S,{form:{tempData:Object.assign({},
{gs_l:b,oq:P!=null?P:N},H),isFromShorts:_.eF()==="shorts"}})};
ero=function(N){switch(N){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
hrQ=function(N,b,S,P,H,K){var C=_.Vm.clone($5E);C.locale=_.Vg("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;C.report={description:H||"<empty>"};H=_.Vg("SBOX_SETTINGS",{});b=b.join(",");var G=Date.now();N={choice_cc:P,choice_id_cc:S,choices_sc:b,gl:H.REQUEST_DOMAIN,hl:H.REQUEST_LANGUAGE,query:N,time:G};K&&(N.choice_additional_comment_cc=K);_.Sy9(C,N)};
q_Q=function(N){var b=new Map;b.set("authuser",_.Vg("SESSION_INDEX","0"));return _.FK(N,b)};
NVo=function(N){var b;return _.r(function(S){switch(S.nextAddress){case 1:if(!N||!wpo(N))return S.return(null);b=null;switch(_.Vg("INNERTUBE_CLIENT_NAME")){case "WEB":return S.jumpTo(2);case "WEB_REMIX":b=N.getPlayer()}S.jumpTo(3);break;case 2:return S.yield(N.getPlayerPromise(),4);case 4:b=S.yieldResult;S.jumpTo(3);break;case 3:return S.return(b)}})};
wpo=function(N){return["ytd-player","ytmusic-player"].includes(String(N.tagName||"").toLowerCase())};
bmi=function(N){N=Math.round(N);return N%2?N-1:N};
SGo=function(N){N=Math.round(N);return N%2===0?N-1:N};
PJw=function(N){var b=["h","m","s"],S=_.pa(b);S.reverse();var P={};N=(N.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(C){var G=(C.match(/[hms]/)||[""])[0];return G?(P[G]=parseInt(C.match(/\d+/)[0],10),!1):!0});
for(N.reverse();N.length&&S.length;){var H=S.shift();H in P||(P[H]=parseInt(N.shift(),10))}if(N.length||P.s>59||P.m>59||P.h>9)return null;var K="";b.forEach(function(C){P[C]&&(K+=""+P[C]+C)});
return K||null};
HmJ=function(N){var b,S,P;if(N=(b=N.createPlaylistDialogFormSchema)==null?void 0:(S=b.fieldSchemas)==null?void 0:(P=S.title)==null?void 0:P.validationSchema)for(b=[N.syncStep,N.asyncStep].filter(function(H){return H!==void 0}),b=_.O(b),S=b.next();!S.done;S=b.next()){S=S.value.rules;
if(!S)break;S=_.O(S);for(S=S.next();!S.done;S=S.next())return _.t(S.value,VaL)}};
Kwa=function(N){var b,S,P;if(N=(b=N.createPlaylistDialogFormSchema)==null?void 0:(S=b.fieldSchemas)==null?void 0:(P=S.visibility)==null?void 0:P.validationSchema)for(b=[N.syncStep,N.asyncStep].filter(function(H){return H!==void 0}),b=_.O(b),S=b.next();!S.done;S=b.next()){S=S.value.rules;
if(!S)break;S=_.O(S);for(P=S.next();!P.done;P=S.next())if(P=_.t(P.value,s96))return b=void 0,(b=P.translations)==null?void 0:b.visibilityNotValidErrorMessage}};
vpt=function(){var N,b;return(b=(N=_.aN().resolve(_.cq(_.T8)))==null?void 0:N())!=null?b:!1};
OmQ=function(N){var b=21;if(!N)return b;b+=N.headerTitle?27:0;b+=N.headerTitle&&N.hasHeaderActionHeader?4:0;return b+=N.headerTitle&&N.headerSubtitle?16:0};
CJO=function(N){var b=0;if(!N)return b;b+=N.hasFooterPrimaryButton||N.hasFooterSecondaryButton?48:0;b+=N.footerTrailingLabel||N.footerLeadingLabel?30:0;return b+=N.hasFooterPrimaryButton||N.hasFooterSecondaryButton||!N.footerTrailingLabel&&!N.footerLeadingLabel?0:12};
Gu5=function(N){var b=new _.uQ,S=N;return{subscribe:function(P){b.subscribe("changed",P)},
dispatch:function(P,H){var K=S;if(P==="Touch Start")S=Object.assign({},K,{isAnimating:!1,initialY:H.event.touches[0].clientY});else if(P==="Touch Move"){P=H.contentScrollable?-1*(K.initialY-24):0;var C,G=(C=H.headerDivHeight)!=null?C:OmQ(H.header),a;C=(a=H.footerDivHeight)!=null?a:CJO(H.footer);a=Math.min(H.fullContentWrapperHeight,H.heightMap[H.contentWrapperId]+G-C);S=Object.assign({},K,{currentY:Math.max(P,H.event.touches[0].clientY-K.initialY),maxHeightForContentWrapper:Math.min(a,Math.max(0,
(K.isFullScreen?a:H.contentWrapperHeight)-K.currentY))})}else S=P==="Snap To Full Screen"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:H.maxHeight}):P==="Snap To Neutral Position"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):P==="Close Sheet"?Object.assign({},K,{isAnimating:!0,currentY:H.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):K;b.publish("changed",S)}}};
rmw=function(){_.aN().resolve(_.sD).closeSheet()};
cmE=function(N){var b,S,P,H,K,C,G,a,R,n,d;return{headerTitle:(b=N.headerTitle)==null?void 0:b.call(N),headerSubtitle:(S=N.headerSubtitle)==null?void 0:S.call(N),headerActionHeader:N.headerActionHeader,footerPrimaryButton:N.footerPrimaryButton,footerSecondaryButton:N.footerSecondaryButton,footerButtonType:(P=N.footerButtonType)==null?void 0:P.call(N),footerLeadingLabel:(H=N.footerLeadingLabel)==null?void 0:H.call(N),footerTrailingLabel:(K=N.footerTrailingLabel)==null?void 0:K.call(N),shouldShowIcons:(C=
N.shouldShowIcons)==null?void 0:C.call(N),skipContentClick:(G=N.skipContentClick)==null?void 0:G.call(N),additionalClassName:(a=N.additionalClassName)==null?void 0:a.call(N),onClosedCallback:N.onClosedCallback,focusOnClose:(R=N.focusOnClose)==null?void 0:R.call(N),isDisabled:(n=N.isDisabled)==null?void 0:n.call(N),disabledCommand:(d=N.disabledCommand)==null?void 0:d.call(N),headerFn:N.headerFn,contentFn:N.contentFn,footerFn:N.footerFn,hasHeaderFn:N.hasHeaderFn(),hasContentFn:N.hasContentFn(),hasFooterFn:N.hasFooterFn(),
hasFooterPrimaryButton:N.hasFooterPrimaryButton(),hasFooterSecondaryButton:N.hasFooterSecondaryButton(),hasHeaderActionHeader:N.hasHeaderActionHeader()}};
aCt=function(N){switch(N){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
RqQ=function(N){switch(N){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
Wwo=function(N){switch(N){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
npQ=function(N,b,S){b.forEach(function(P){_.yj(_.aN().resolve(_.Sz),P)});
_.St(N,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",S])};
TVi=function(N,b,S,P){var H=_.t(S,_.mO).commandLifeCycleConfig;H&&H.onStartCommand&&_.sR(N,[H.onStartCommand],b);_.AI(b);var K=_.XM.instance;K&&_.Eb(K,S)?_.pU(K,S,P).then(function(C){if(!C||(C==null?0:C.error))return C=_.t(S,_.mO).serializedTransactionFlowLoggingParams,_.Xv(b),_.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",C));_.Xv(b);return{data:C}}).then(function(C){_.Xv(b);
dWw(C.data);var G=C.data.command;G&&_.sR(N,[G],b);G=mWt(S,C.data);if(!G){var a=C.data;C=!1;if(a&&a.command&&_.t(a.command,_.vN)){var R;a=((R=_.t(a.command,_.vN))==null?void 0:R.commands)||[];for(R=0;R<a.length;R++)if(_.t(a[R],_.EJO)){C=!0;break}}C||_.NZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!G&&H&&H.onSuccessCommand?_.sR(N,[H.onSuccessCommand],b):G&&H&&H.onFailureCommand&&_.sR(N,[H.onFailureCommand],b)},function(){_.Xv(b);
H&&H.onFailureCommand&&_.sR(N,[H.onFailureCommand],b);kuL(S)}):_.ge(Error("rm"),"ERROR")};
tMi=function(N,b,S){var P=[b];S&&P.push(S);return _.HN(N,P).then(function(H){var K=_.t(b,_.mO).serializedTransactionFlowLoggingParams,C=H.data,G=mWt(b,C);G?H=_.f7(new sA(G,K)):dWw(C);return H},function(){var H=_.t(b,_.mO).serializedTransactionFlowLoggingParams;
kuL(b);return _.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",H))})};
mWt=function(N,b){N=_.t(N,_.mO).serializedTransactionFlowLoggingParams;var S=null;switch(b.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":S="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":S="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":S="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}S?_.I3(S,N):wiQ(N);return S};
kuL=function(N){_.I3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.t(N,_.mO).serializedTransactionFlowLoggingParams)};
dWw=function(N){if(N.trackingParams){var b=_.Qh(),S=_.uZ();b&&S&&_.AZ(b,S,_.FA(N.trackingParams))}};
MME=function(N,b,S){var P=_.XM.instance,H=_.TzI(_.Vg("YPC_MB_URL")),K=(new _.mGs).init(),C=_.kvE(),G=_.t(S,_.jn9).languageCode;G===void 0?_.ge(Error("Li"),"ERROR"):_.jA([K,H]).then(function(){var a={ctk:_.N5.payments.business.integration.ClientTokenFactory.createClientToken(G,C)};P&&_.Eb(P,S)?_.pU(P,S,a).then(function(R){return{data:R}}).then(function(R){_.bC(b,"yt-service-request-completed",R);
R.code!=="ERROR"&&(R=R.data.command)&&_.sR(N,[R],b)}):_.ge(Error("rm"),"ERROR")})};
lCn=function(N,b,S,P){var H=_.XM.instance;H&&_.Eb(H,S)?_.pU(H,S,P).then(function(K){return{data:K}}).then(function(K){Fwn(N,b,S,K)},function(){BVn(S)}):(H=_.aN().resolve(_.cq(_.ts)))&&H.requestDataForServiceEndpoint(S,P).then(function(K){Fwn(N,b,S,K)},function(){BVn(S)})};
Fwn=function(N,b,S,P){_.bC(b,"yt-service-request-completed",P);if(P.code&&P.code=="ERROR")BVn(S);else{(P=P.data.commands)&&_.sR(N,P,b);var H;(N=(H=_.t(S,_.YNk))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&N&&PJ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",N)}};
BVn=function(N){var b;(N=(b=_.t(N,_.YNk))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&N&&PJ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
u5q=function(N,b,S){var P=_.XM.instance;P&&_.Eb(P,S)?_.pU(P,S).then(function(H){return{data:H}}).then(function(H){Lw5(N,b,S,H)},function(){fCa(S)}):(P=_.aN().resolve(_.cq(_.ts)))&&P.requestDataForServiceEndpoint(S).then(function(H){Lw5(N,b,S,H)},function(){fCa(S)})};
Lw5=function(N,b,S,P){_.bC(b,"yt-service-request-completed",P);P.code&&P.code=="ERROR"?fCa(S):((P=P.data.commands)&&_.sR(N,P,b),(N=_.t(S,_.yCN).serializedYpcResumeFlowLoggingParams)&&N&&PJ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",N))};
fCa=function(N){(N=_.t(N,_.yCN).serializedYpcResumeFlowLoggingParams)&&N&&PJ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Q9E=function(N){N=N===void 0?{}:N;_.aN().resolve(_.uHw).showFeedbackDialog(N.customProductData,N.feedbackContent,N.onFeedbackSubmitted,N.bucket)};
xW_=function(N){N=N===void 0?{}:N;_.aN().resolve(_.uHw).showHelpDialog(N.helpContext,N.articleId,N.productData)};
opn=function(){xW_()};
imE=function(){Q9E()};
UWi=function(N,b,S){var P,H,K,C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:P=_.t(N,JmL);if((H=P)==null?0:H.productId){a={productId:P.productId,bucket:P.bucket,enableAnonymousFeedback:(G=P.enableAnonymousFeedback)!=null?G:!0,allowNonLoggedInFeedback:!0};R={feedbackChoice:S.feedbackChoice};if(!_.T("web_collect_offline_state")){n.jumpTo(8);break}_.u4(n,9);return n.yield(Vt_(R),11)}C={bucket:(K=P)==null?void 0:K.bucket};if(!_.T("web_collect_offline_state")){n.jumpTo(4);break}C.customProductData=
{};_.u4(n,5);return n.yield(Vt_(C.customProductData),7);case 7:_.su(n,4);break;case 5:_.UE(n);case 4:Q9E(C);n.jumpTo(0);break;case 11:_.su(n,8);break;case 9:_.UE(n);case 8:_.shs(R),_.HkU("GFEEDBACK",R),P.productId==="5295751"&&(R.client_attestation=Number(_.Vg("CATSTAT",0))),P.productId==="5295751"&&(R.client_time=Date.now()/1E3/3600),P.productId==="5295751"&&(R.original_playback_id=_.UVb||""),_.Sy9(a,R),_.Zd(n)}})};
Zmi=function(N){if(N=_.t(N,_.OlE)){var b={bucket:N.bucketIdentifier};N.additionalDatas&&(b.customProductData={},N.additionalDatas.forEach(function(S){if(S=S.userFeedbackEndpointProductSpecificValueData)b.customProductData[S.key]=S.value}));
Q9E(b)}};
j96=function(N){var b=_.sX.getInstance();var S=_.cN("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var P=_.cN("DELETE",void 0,"Delete"),H=_.cN("CANCEL",void 0,"Cancel");S=a7q(S,void 0,P,H,{signal:"DELETE_ALL_DOWNLOADS"});_.qk(b,[{openPopupAction:S}],N)};
Amq=function(){return _.r(function(N){return N.nextAddress==1?N.yield(_.aN().resolve(_.W6),2):N.yield(zqa(),0)})};
Xet=function(N){var b,S;return _.r(function(P){return P.nextAddress==1?(S=(b=_.t(N,_.Sl))==null?void 0:b.targetId)?P.yield(_.aN().resolve(_.W6),3):P.jumpTo(0):P.yield(_.aN().resolve(_.R1).deleteVideo(S),0)})};
pen=function(N){var b,S;return _.r(function(P){return P.nextAddress==1?(S=(b=_.t(N,_.Sl))==null?void 0:b.targetId)?P.yield(_.aN().resolve(_.W6),3):P.jumpTo(0):P.yield(Epw(_.aN().resolve(_.R1),S),0)})};
ym_=function(N){var b,S;return _.r(function(P){return(S=(b=_.t(N,_.Sl))==null?void 0:b.targetId)?P.yield(YGQ(S),0):P.jumpTo(0)})};
DWE=function(){_.T("kevlar_woffle_refresh_dl_load_killswitch")||ICi()};
gpa=function(){_.T("kevlar_woffle")&&_.EK.instance&&VML()};
$Wo=function(N){var b;if((b=_.t(N,_.a2))==null||!b.videoId)return!1;eqo(_.aN().resolve(_.R1),_.t(N,_.a2),N.clickTrackingParams);return!0};
qGn=function(N){var b;if((b=_.t(N,_.Wm))==null||!b.playlistId)return!1;hqi(_.aN().resolve(_.R1),_.t(N,_.Wm),N.clickTrackingParams);return!0};
NPQ=function(N){var b=_.t(N,_.fiE);(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||wen(_.aN().resolve(_.R1),_.t(N,_.fiE))};
S7t=function(N){N=_.t(N,_.Pnl);var b;(N==null?0:(b=N.actions)==null?0:b.length)&&bLJ(N)};
sSa=function(N){var b,S;return _.r(function(P){b=_.t(N,P2q);return(S=b)!=null&&S.localWatchHistoryCommandType?P.yield(HLa(b),0):P.return()})};
vvO=function(){return _.r(function(N){return _.T("kevlar_enable_download_to_mobile")?N.yield(KGq(),0):N.return()})};
OLq=function(N){setTimeout(function(){requestAnimationFrame(N)},80)};
C2o=function(N){return Object.entries(N).map(function(b){return b.join(":")}).join(";")};
r6a=function(N){var b,S,P;_.r(function(H){if(H.nextAddress==1)return H.yield(G36(),2);b=H.yieldResult;S=_.rG.instance;switch(b){case "granted":P=N.getLocationCommand;break;case "denied":P=N.openDeniedDialogAction;break;case "prompt":P=N.openCollectionDialogAction;break;default:P=N.openCollectionDialogAction}P&&S.resolveCommand(P);_.Zd(H)})};
G36=function(){var N,b;return _.r(function(S){if(S.nextAddress==1)return N="prompt",navigator.permissions?S.yield(navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2);S.nextAddress!=2&&(b=S.yieldResult,N=b.state);return S.return(N)})};
aAa=function(){_.r(function(N){return N.yield(_.c65(),0)})};
Rpn=function(){var N,b,S;return _.r(function(P){if(P.nextAddress==1)return N=_.aN().resolve(_.Mn),N?P.yield(_.pU(N,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.$h(Error("um")),P.return(void 0));if(b=P.yieldResult){if(b.errorMetadata)return _.$h(Error("vm`"+b.errorMetadata.status+"`"+b.error)),P.return(void 0);S=b.datasyncIds;_.pML=S.length;return P.return(S)}_.$h(Error("wm"));return P.return(void 0)})};
WGO=function(){Rpn().then(function(N){N&&(I7Q(N),smL(N),TpE(N),eza(N))})};
nvQ=function(N){_.Dj.addLowPriorityJob(function(){var b,S,P,H,K;return _.r(function(C){switch(C.nextAddress){case 1:if(_.T("ytidb_clear_optimizations_killswitch")){C.jumpTo(2);break}b=_.Ul("clear");if(b.startsWith("V")&&b.endsWith("||")){var G=[b];I7Q(G);smL(G);TpE(G);eza(G);return C.return()}S=t0J();P=$7_();return C.yield(Knq(),3);case 3:return H=C.yieldResult,C.yield(Dco(),4);case 4:if(K=C.yieldResult,!(S||P||H||K))return C.return();case 2:N.isNetworkAvailable()?WGO():N.listenOnce("publicytnetworkstatus-online",
WGO),_.Zd(C)}})})};
Ks=function(N){N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.gy(N)}}}};_.rG.instance&&_.rG.instance.resolveCommand(N)};
dHt=function(N){if(N){var b=_.dG();_.Xy(b,3854,void 0,{layer:0,parentLayer:4});switch(N){case 1:var S=238708;break;case 2:S=238715;break;case 3:S=238710;break;case 6:S=238709}S&&(N=_.n7(b,{veType:S}))&&_.YD(b,N)}};
mHo=function(N){if(N){var b=_.dG();_.Xy(b,3854,void 0,{layer:0,parentLayer:4});switch(N){case 1:var S=238714;break;case 2:S=238711;break;case 8:S=238709;break;case 7:S=238713;break;case 3:case 4:case 5:S=238712}S&&(N=_.n7(b,{veType:S}))&&_.YD(b,N)}};
k3E=function(N){switch(N.latencyType){case 0:_.fA("consent_primitive_flow");_.uC("cpit",N.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.uC("cpist",N.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.uC("cprtif",N.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.uC("cprtli",N.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.uC("cprt",N.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.uC("cpdt",N.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.uC("cpjct",N.timestampEpochMillis,"consent_primitive_flow")}};
ovq=function(N,b){var S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V;return _.r(function(g){switch(g.nextAddress){case 1:_.u4(g,2);(P=(S=_.t(N,TPn))==null?void 0:S.serializedConsentRequest)||(P=(H=_.t(N,tO5))==null?void 0:H.serializedConsentRequest);P&&(K=MO_(_.qL(P)));if(K===void 0)return g.return();C=FGL(K);C.latencyCallback=k3E;b&&BPJ(C,function(){b.then(function(e){e.pauseVideo();(new lAq).increment()})});
return((G=_.t(N,TPn))==null?void 0:G.consentAction)==="CONSENT_ACTION_PREWARM"||((a=_.t(N,tO5))==null?void 0:a.consentAction)==="CONSENT_ACTION_PREWARM"?g.yield(LGo(C),5):g.yield(fAq(C),6);case 6:R=g.yieldResult;n=_.F5(R,vH);if(n===1){if(((d=_.UG(R,uJE,1,vH))==null?void 0:_.o9(d,1))===1||((m=_.UG(R,uJE,1,vH))==null?void 0:_.o9(m,1))===2||((k=_.UG(R,uJE,1,vH))==null?void 0:_.o9(k,1))===3)_.t(N,tO5)?Ks(_.cN("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ks(_.cN("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));dHt((M=_.UG(R,uJE,1,vH))==null?void 0:_.o9(M,1),_.kT(R,QSL,3,_.T6()))}else n===2?(((l=xHw(R))==null?void 0:_.o9(l,1))===5?_.t(N,tO5)?Ks(_.cN("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ks(_.cN("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((u=xHw(R))==null?void 0:_.o9(u,1))===1||((J=xHw(R))==null?void 0:_.o9(J,1))===4?
Ks(_.cN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((Z=xHw(R))==null?void 0:_.o9(Z,1))===7&&((D=K)==null?void 0:(Y=_.k0(D,OA,4))==null?void 0:_.o9(Y,4))!==1&&Ks(_.cN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),mHo((V=xHw(R))==null?void 0:_.o9(V,1))):Ks(_.cN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));g.jumpTo(5);break;case 5:_.su(g,0);break;case 2:_.UE(g),Ks(_.cN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Zd(g)}})};
J6E=function(){if(!iLL.has("Worker")){iLL.set("Worker",!0);var N={api:"BROWSER_API_WEB_WORKER"};N.available="Worker"in window?!0:!1;_.Dn("apiTest",N)}};
UHw=function(N){return typeof N==="undefined"?"-1":String(Math.ceil(N/1048576))};
A6t=function(N,b){ZLE(new jS5(_.t(b,zpO).addToken,_.t(b,zpO).commonToken)).then(function(){_.bC(N,"yt-invoke-instrument-manager-action-completed")},function(S){_.bC(N,"yt-invoke-instrument-manager-action-error",S)})};
Cs=function(){return _.Vg("HTML_DIR")==="rtl"};
Xr6=function(){var N,b;return(b=(N=window).matchMedia)==null?void 0:b.call(N,"(prefers-reduced-motion: reduce)").matches};
Ev6=function(N){var b=_.aN().resolve(_.cq(_.wH));if(b&&b.isAnyTransitionEnabled){var S={};b.viewTransitionCoordinator.registerElement(N,(S.slide="miniplayer-page-transition",S["lockup-to-watch"]="miniplayer-page-transition",S["learning-journey"]="miniplayer-page-transition",S))}};
prn=function(N,b,S){return{horizontalAlignment:N.x+S.width/2<b.width/2?"west":"east",verticalAlignment:N.y+S.height/2<b.height/2?"north":"south"}};
y65=function(N,b,S,P,H){H=H===void 0?new _.ek(0,0):H;N=Y7_(N,b,S,P,!1);return new _.ek(N.x+H.x,N.y+H.y)};
Y7_=function(N,b,S,P,H){H=(H===void 0?0:H)?400:0;return new _.ek(N==="west"?16+(Cs()?H:0):S.width-P.width-16-(Cs()?0:H),b==="north"?16:S.height-P.height-16)};
IAi=function(N,b){var S=0;N&&(S+=76);b&&(S+=285);return S};
DHq=function(N){return _.Am(N)};
VOE=function(N){var b=1;N=N.split(":");for(var S=[];b>0&&N.length;)S.push(N.shift()),b--;N.length&&S.push(N.join(":"));return S};
gva=function(N){var b=new _.t1;return _.ZC(b,11,N)};
ep5=function(N){var b={};N=N.getAllResponseHeaders().split("\r\n");for(var S=0;S<N.length;S++)if(!_.Oe(N[S])){var P=VOE(N[S]),H=P[0];P=P[1];if(typeof P==="string"){P=P.trim();var K=b[H]||[];b[H]=K;K.push(P)}}return _.Vm.map(b,function(C){return C.join(", ")})};
KaQ=function(N,b){return N.JSC$10029_xhr_?N.JSC$10029_xhr_.getResponseHeader(b):null};
$Hq=function(N,b){if(N.isDisposed())throw Error("Ea");N.f4.hR("n");var S=_.eA(N.f4,function(){return N.mg2([b.gW,b.xoQ,b.wXI,b.qcA])},"n");
N.f4.s8D(S.length);N.f4.mJ();return S};
hpJ=function(N,b,S){Array.isArray(S)||(S=[String(S)]);_.Hvl(N.JSC$10265_queryData_,b,S);return N};
q7E=function(N){var b=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.lA(N);N.keyMap_.forEach(function(S,P){_.Z_(b,P)||this.remove(P)},N)};
VML=function(){var N=_.EK.instance;_.r(function(b){return N.deferredInstallPrompt?b.yield(N.deferredInstallPrompt.prompt(),0):b.jumpTo(0)})};
wrJ=function(N,b,S){if(_.yu(N))_.NX(N,b,S);else for(N=_.d7E(N);;){var P=N.next();if(P.done)break;b.call(S,P.value,void 0,N)}};
NCq=function(N,b){var S=[];wrJ(b,function(P){try{var H=_.Q6.prototype.getWrapper.call(this,P,!0)}catch(K){if(K=="Storage: Invalid value was encountered")return;throw K;}H===void 0?S.push(P):_.nR9(H)&&S.push(P)},N);
return S};
Kit=function(N,b){NCq(N,b).forEach(function(S){_.Q6.prototype.remove.call(this,S)},N)};
bFt=function(N){var b=_.Gy;b._minimumZ=Math.max(b._minimumZ,N)};
SrJ=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];PWo=function(N,b){_.Wv(N.vm);N.vm=b};
HF5=function(N,b,S,P){N.setState(5);var H=!!N.uwF&&SrJ.includes(_.Ol(N.uwF)||"");try{var K=new _.h1({program:b,globalName:S,zIh:{disable:!_.T("att_web_record_metrics")||!_.T("att_skip_metrics_for_cookieless_domains_ks")&&H,wL:"aGIf"}});K.abQ.then(function(){N.setState(6);P&&P(b)});
PWo(N,K)}catch(C){N.setState(7),C instanceof Error&&_.$h(C)}};
sdO=function(N,b,S,P,H,K){var C=C===void 0?"trayride":C;S?(N.setState(2),_.zk(_.Dg(S),function(){if(window[C])HF5(N,P,C,H);else{N.setState(3);var G=_.e2Y(S),a=document.getElementById(G);a&&(_.Uuf(G),a.parentNode.removeChild(a));_.$h(new _.jU("BL:ULB",S))}},K)):b?(K=_.U5("SCRIPT"),b instanceof _.OE?_.r$(K,b):K.textContent=b,K.nonce=_.vM(document),document.head.appendChild(K),document.head.removeChild(K),window[C]?HF5(N,P,C,H):(N.setState(4),_.$h(new _.jU("BL:ULBJ")))):_.$h(new _.jU("BL:ULV"))};
KQQ=function(){this.state=1;this.vm=null;this.uwF=void 0};
_.v=KQQ.prototype;_.v.initialize=function(N,b,S,P){this.uwF=P;if(N.program){var H;P=(H=N.interpreterUrl)!=null?H:null;if(N.interpreterSafeScript)H=_.Sjp(N.interpreterSafeScript);else{var K;H=(K=N.interpreterScript)!=null?K:null}N.interpreterSafeUrl&&(P=_.Vb(N.interpreterSafeUrl).toString());sdO(this,H,P,N.program,b,S)}else _.$h(Error("tf"))};
_.v.isInitialized=function(){return!!this.vm};
_.v.getState=function(){return this.state};
_.v.isLoading=function(){return this.state===2};
_.v.invoke=function(N){N=N===void 0?{}:N;var b;this.vm?b=$Hq(this.vm,{gW:N}):b=null;return b};
_.v.dispose=function(){PWo(this,null);this.setState(8)};
_.v.setState=function(N){this.state=N};
var vja=function(N,b){return N.vm.snapshot(b)},OF6=function(N,b){var S=_.d7("botguard_async_snapshot_timeout_ms",3E3);
b=b===void 0?{}:b;S=S===void 0?3E3:S;return N.vm?new Promise(function(P,H){var K=!1,C=_.Dj.addJob(function(){K=!0;H(Error("uf"))},1,S);
N.vm?vja(N,{gW:b}).then(function(G){_.Dj.cancelJob(C);K||P(G)}).catch(function(G){_.Dj.cancelJob(C);
K||H(G)}):(_.Dj.cancelJob(C),P(null))}):Promise.resolve(null)},CWO=["att/log"],V3t;
V3t={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var G5i={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},r1E=function(N,b){return _.nu(N,{mode:"readwrite",enableRetries:!0},function(S){return _.LWO(S,b,"settingEntity")})},c16=function(N,b,S){return _.nu(N,{mode:"readonly",
enableRetries:!0},function(P){return _.W79(P,b,S)})},aI5=function(N){if(!N.storage)return!1;
a:{if(N.storage){try{var b=N.storage.get("TLPQtimestamp")}catch(S){}N=Number(b);if(!isNaN(N))break a}N=void 0}return N?Date.now()-N<864E5:!1},R5t=function(N){if(N.storage){try{var b=N.storage.get("TLPQindex")}catch(S){}N=Number(b);
if(!isNaN(N))return N}},GP=function(N){var b=_.kA();
return _.WYN(b,N,1)},WQo=function(N,b){N.queueProxy&&b.forEach(function(S){if(S.videoId&&S.trackingParams&&N.queueProxy instanceof _.Rw){var P=_.Qh();
N.queueProxy.attributionData.set(S.videoId,{enqueueingVe:_.FA(S.trackingParams).getAsJson(),enqueueingCsn:P?P:void 0,clientEnqueueingTimeMs:Math.floor((0,_.nh)()).toString()})}})},njo=function(N){var b=_.wL9(N);
b!=N.currentSnapState_&&(N.currentSnapState_=b,N.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},rd=function(N){this.JSC$13457_networkManager_=N;
this.partCallbacks_=[]};
rd.prototype.getCacheKeyForEndpoint=function(N){return _.R0L(N,!1)};
rd.prototype.onPartsCallback_=function(N){this.partCallbacks_.forEach(function(b){N&&b(N)})};
var cH=function(N,b,S){rd.call(this,N);this.player_=b;this.autoplayData_=S};
_.F(cH,rd);cH.prototype.getCacheKeyForEndpoint=function(N){return _.R0L(N,!!this.autoplayData_)};
cH.prototype.getTempData=function(N,b){b=b.timeBeforeNextVideo;N={itct:N.clickTrackingParams,lact:_.nv(),pbis:b,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(N.autonav=1);return N};
cH.prototype.getXhrParams=function(N){return Object.assign({pbj:"prefetch"},N)};
cH.prototype.getParams=function(N){N={frags:N.fragmentsRequested.join(",")};_.T("kevlar_droppable_prefetchable_requests")&&(N.prefetch=1);return N};
var dOt=function(N){N.playerEvents_.forEach(function(b){N.player.removeEventListener(b.eventName,b.callback)});
N.playerEvents_.length=0},mOq=function(N,b,S){this.player=N;
this.JSC$13467_taskManager=b;this.prefetchDelay=S;this.completionResolver_=null;this.playerEvents_=[]};
mOq.prototype.start=function(){var N=this;this.completionResolver_=_.Y9();_.z5(this.completionResolver_.promise,function(){dOt(N);N.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var k55=function(N,b,S){N.player.addEventListener(b,S);N.playerEvents_.push({eventName:b,callback:S})},TCE={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},tA6={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},MAw=function(N,b,S){mOq.call(this,N,b,S);this.cueId_="playbackTrigger-"+Math.random()};
_.F(MAw,mOq);
MAw.prototype.prepareTrigger=function(N){var b=this,S=this.player.getDuration(),P=this.player.getVideoData(),H=P.isLive&&P.hasProgressBarBoundaries;if(H&&P.progressBarEndPositionUtcTimeMillis){var K=P.progressBarEndPositionUtcTimeMillis/1E3;isNaN(K)||(S=K)}var C=0;this.prefetchDelay>=0?H?P.progressBarStartPositionUtcTimeMillis&&(P=P.progressBarStartPositionUtcTimeMillis/1E3,isNaN(P)||(C=P+this.prefetchDelay)):C=this.prefetchDelay:C=S+this.prefetchDelay;H?this.player.addUtcCueRange(this.cueId_,C,S):
this.player.addCueRange(this.cueId_,C,S);_.z5(N.promise,function(){b.player.removeCueRange(b.cueId_)});
k55(this,"onCueRangeEnter",function(G){G==b.cueId_&&N.resolve(S-C)})};
var FQE=function(N,b){N.fragmentConfiguration_[b].requiredKeys.every(function(S){return!!N.prefetchedData_[S]})&&(N.validatedFragments_.push(b),b=N.missingFragments_.indexOf(b),b!==-1&&N.missingFragments_.splice(b,1))},BCo=function(N){N.prefetchedFragments_.forEach(function(b){FQE(N,b)})},lIE=function(N,b,S){this.pageFragments_=N;
this.prefetchedFragments_=b;this.fragmentConfiguration_=tA6;this.prefetchedData_=S;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;BCo(this)},LQQ=function(){},fIq=function(N){this.JSC$13481_playlistManager_=N};
_.F(fIq,LQQ);fIq.prototype.getPrefetchEndpoint=function(){return this.JSC$13481_playlistManager_.getAutoplayEndpoint()};
var uzL=function(N){this.autonavEndpoints_=N};
_.F(uzL,LQQ);uzL.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var QdJ=function(N,b,S,P,H){this.autonavEndpoints=N;this.foregroundTrigger=b;this.backgroundTrigger=S;this.pageType=P;this.isInPlaylist=H},xOO=function(N,b){if(N.webPrefetchData&&N.webPrefetchData.navigationEndpoints&&N.webPrefetchData.navigationEndpoints.length){N=N.webPrefetchData.navigationEndpoints;
var S=_.t(N[0],_.Iv);if(S.watchEndpointSupportedPrefetchConfig&&S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var P=S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;S=P.playbackRelativeSecondsPrefetchCondition;S=typeof S==="number"&&Math.abs(S)<b.videoDuration?S:void 0;P=P.countdownUiRelativeSecondsPrefetchCondition;P=typeof P!=="number"||_.T("prefetch_job_config_cleanup_ks")&&b.inPlaylist?void 0:P;if(typeof P==="number")return new QdJ(N,b.makeUpNextTrigger(P),b.makePlaybackTrigger(P),
"watch",b.inPlaylist);if(typeof S==="number")return new QdJ(N,b.makePlaybackTrigger(S),null,"watch",b.inPlaylist)}}},oja=function(N){return N.prefetchJobConfig_.backgroundTrigger?_.$U(s5n)()==0?N.prefetchJobConfig_.backgroundTrigger:N.prefetchJobConfig_.foregroundTrigger:N.prefetchJobConfig_.foregroundTrigger},iFn=function(N){_.iW(document,"visibilitychange",N.onVisibilityChange_,!1,N)},aF=function(N){rd.call(this,N)};
_.F(aF,rd);aF.prototype.getCacheKeyForEndpoint=function(N){return rd.prototype.getCacheKeyForEndpoint.call(this,N)};
aF.prototype.getTempData=function(){return{}};
aF.prototype.getXhrParams=function(N){return N};
aF.prototype.getParams=function(){return{}};
var J15=function(N,b,S){var P=N.prefetchDelay*1E3;if(Math.abs(P)>b)S.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var H=P,K=b-P;P<0&&(H=b+P,K=Math.abs(P));var C=N.JSC$13467_taskManager.addJob(function(){S.resolve(K/1E3)},10,H);
S.promise.thenCatch(function(){N.JSC$13467_taskManager.cancelJob(C)})}},UOO=function(N,b,S){mOq.call(this,N,b,S)};
_.F(UOO,mOq);UOO.prototype.prepareTrigger=function(N){var b=this;k55(this,"onAutonavCoundownStarted",function(S){J15(b,S,N)})};
var ZFq=function(N){N.pendingPrefetchJob_&&(N.pendingPrefetchJob_.cancel(),N.pendingPrefetchJob_=null)},jdL=function(N,b,S){if(!N.triggeredTargets.has(b)){var P=_.d2N(N,b);
P.action=S;_.nFc(N,b,P)}},z5Q=function(N){_.Csb();
_.Swf("cpt")&&_.$h(Error("mh"));_.Ps.requestAnimationFrame(function(){_.Ps.setTimeout(function(){_.uC("cpt");var b=_.om("vpl"),S=_.om("cpt");b&&S&&_.uC("ol",Math.max(b,S))})});
try{_.uC("fr_s"),N()}catch(b){_.ge(b)}_.Ps.requestAnimationFrame(function(){_.uC("bcp")})},A1o={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},X$Q=function(N,b){N.serviceEndpointHandlers.push(b)},Ej5=function(N,b){b=N.pendingPages_.indexOf(b);
b>-1&&N.pendingPages_.splice(b,1)},p$n=function(N,b){var S=_.Zyc.indexOf(b);
S>-1&&_.Zyc.splice(S,1);N.targetPage_==b?(N.abort(),_.zQc(N)):Ej5(N,b)},YrE=function(N,b){N.reloadContinuationItemsCommandMatcher=b},y1i=function(N,b,S){b&&S&&(N.videos.forEach(function(P){P.videoId===b&&(P.itemId=S)}),N.recommendedVideos.forEach(function(P){P.videoId===b&&(P.itemId=S)}))},IIE=function(N){this.onStepChangeCallback=function(){};
this.flowRenderer=N};
IIE.prototype.getCurrentStep=function(){var N=this,b;return((b=this.flowRenderer.steps)!=null?b:[]).map(function(S){return _.t(S,_.hj)}).find(function(S){return S&&S.stepId===N.currentStepId})};
var DO_=function(N,b){var S=b.flowStateEntityKey,P=N.flowStates.get(S);if(P)return P;b=new IIE(b);N.flowStates.set(S,b);return b},VAJ=function(N,b){for(var S=_.O(N.flowStates.entries()),P=S.next();!P.done;P=S.next()){var H=_.O(P.value);
P=H.next().value;H=H.next().value;if(H.flowRenderer.targetId===b){N.flowStates.delete(P);break}}},gjo=function(N,b){N.onStepChangeCallback=b;
N.onStepChangeCallback(N.getCurrentStep())},e56=function(N,b){var S=N.getCurrentStep();
if(S&&S.stepId===b)return!0;var P;return((P=N.flowRenderer.steps)!=null?P:[]).map(function(H){return _.t(H,_.hj)}).find(function(H){return H&&H.stepId===b})?(N.currentStepId=b,N.onStepChangeCallback(N.getCurrentStep()),!0):!1},$O5=function(N,b,S,P){b={challenge:b};
S&&(b.webResponse=S);return _.ni(N.innertubeTransportService,b,_.q6(CWO),P)},h5t=function(N,b,S){if(!b.challenge)throw Error("ti");
if(b.botguardData&&b.botguardData.program){var P=new KQQ;P.initialize(b.botguardData,function(){OF6(P,{atr_challenge:b.challenge}).then(function(H){if(!H)throw Error("ui");return $O5(N,b.challenge,H,S)}).catch(function(H){_.$h(H);
return $O5(N,b.challenge,void 0,S)})},void 0)}else $O5(N,b.challenge,void 0,S)},qra=function(N,b,S){var P={};
b.ids&&(P.ids=[].concat(_.IX(b.ids)));b.engagementType&&(P.engagementType=b.engagementType);return _.ni(N.innertubeTransportService,P,_.q6(_.iHV),S).then(function(H){if(!H)throw new _.jU("GetAttestationChallenge returned falsy");h5t(N,H,S)}).thenCatch(function(H){_.ge(H)})},w$E=function(N,b,S){return new _.u5(function(P,H){var K;
return _.r(function(C){if(C.nextAddress==1){var G=C.yield,a=b.engagementType,R=b.ids,n={};R=_.O(R!=null?R:[]);for(var d=R.next();!d.done;d=R.next())d=d.value,d.encryptedVideoId?n.encryptedVideoId=d.encryptedVideoId:d.externalChannelId?n.externalChannelId=d.externalChannelId:d.commentId?n.commentId=d.commentId:d.externalOwnerId?n.externalOwnerId=d.externalOwnerId:d.artistId?n.artistId=d.artistId:d.playlistId?n.playlistId=d.playlistId:d.externalPostId?n.externalPostId=d.externalPostId:d.shareId&&(n.shareId=
d.shareId);return G.call(C,cAn(a,n),2)}K=C.yieldResult;if(!K.challenge)return _.$h(Error("vi")),qra(N,b,S).then(P,H),C.return();G=K;a={challenge:G.challenge};a.webResponse=G.webResponse;a.engagementType=b.engagementType;a.ids=b.ids;_.ni(N.innertubeTransportService,a,_.q6(CWO),S).then(P,H);_.Zd(C)})})},gei=function(N,b){var S,P,H,K;
_.r(function(C){if(C.nextAddress==1){S=_.t(b,_.osV);if(!(S&&S.listId&&N.response&&N.response.playingVideoId)||N.listId!==S.listId)return C.return();N.index===void 0&&(N.index=0);return C.yield(_.bwb(N.JSC$13320_playlistNetworkManager,S.listId,N.index,N.response.playingVideoId),2)}P=C.yieldResult;if(!P)return C.return();H=P.playlistId;K=P.playlistPanelRenderer;N.setPlaylistData(H,K,P.autoplayRenderer);_.Zd(C)})},N_i=function(N,b,S){var P=N.getParams(S),H=_.r5Y(b,P),K=N.getTempData(b,S);
K.endpoint=JSON.stringify(b);_.T("enable_unknown_lact_fix_on_html5")&&(_.aN().resolve(_.mh),K.lact=_.nv());var C={headers:{"X-YouTube-STS":_.Vg("STS"),"x-youtube-csoc":1}};_.e0(H,K);return new _.u5(function(G,a){var R=N.getXhrParams(P),n;_.T("kevlar_cache_on_ttl_player")&&(n=_.aN().resolve(_.u0));n&&_.goi(n,b)?_.Njq(n,b,K,window.location.href).then(function(d){d?G(d):a()},a):_.ozO(N.JSC$13457_networkManager_,b,R,N.onPartsCallback_.bind(N),C).then(function(d){d?G(d):a()},a)})},b8E=function(N,b){N.triggerPromise_=
b.start();
N.triggerPromise_.then(function(S){var P=N.prefetchEndpointProvider_.getPrefetchEndpoint();if(P){var H=TCE[N.prefetchJobConfig_.pageType].prefetchedFragments;N.prefetchRequestPromise_=N_i(N.JSC$13493_networkPrefetchRequest_,P,{fragmentsRequested:H,timeBeforeNextVideo:S});N.prefetchResponseCacheKey_=N.JSC$13493_networkPrefetchRequest_.getCacheKeyForEndpoint(P);iFn(N);N.prefetchRequestPromise_.then(function(K){N.storePrefetchedDataCallback_(N.prefetchResponseCacheKey_,K);if(_.T("web_prefetch_preload_video")&&
H.length===1&&H[0]==="pl"&&K&&!K.playerAds&&!K.adPlacements){var C=_.t(P,_.kn),G=C!=null,a={raw_player_response:K,watch_endpoint:C};(K=_.aN().resolve(G?_.jsk:_.Pm))&&P&&K.then(function(R){G&&_.T("web_queue_preload_video")?(a.prefer_gapless=!0,R.queueNextVideo(a)):R.preloadVideoByPlayerVars(a)})}})}})},RF=function(N,b,S,P){this.prefetchEndpointProvider_=N;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=b;this.prefetchJobConfig_=S;this.JSC$13493_networkPrefetchRequest_=P;this.prefetchResponseCacheKey_=null};
RF.prototype.enqueue=function(){this.triggerPromise_||(b8E(this,oja(this)),_.lH(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
RF.prototype.resolve=function(){this.cancel()};
RF.prototype.cancel=function(){this.triggerPromise_&&this.triggerPromise_.cancel("Prefetch job cancelled, trigger promise cancelled.");this.prefetchRequestPromise_&&this.prefetchRequestPromise_.cancel("Prefetch job cancelled, request promise cancelled.");iFn(this)};
RF.prototype.onVisibilityChange_=function(){var N=this;_.$U(s5n)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){N.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||b8E(this,oja(this))};
var S0a=function(N,b,S,P,H){b&&(b==null?0:b.videoId)&&S&&S.entries&&_.T("kevlar_enable_shorts_prefetch_in_sequence")&&(ZFq(N),b=S.entries.map(function(K){var C;return(C=_.t(K.command,_.kn))==null?void 0:C.videoId}).indexOf(b.videoId),S=S.entries[b+1],S!=null&&S.command&&!_.t(S==null?void 0:S.command,_.Ow)&&(P=new QdJ([S.command],new MAw(P,_.Dj,1),null,"shorts",!1),N.pendingPrefetchJob_=new RF(new uzL(P.autonavEndpoints),function(){return!1},P,new aF(H)),N.pendingPrefetchJob_.enqueue()))},PAw=function(N,
b,S,P,H,K){var C=_.ut.getInstance();
if(!_.T("block_all_player_prefetch_requests")){ZFq(N);var G=!!S.getPlaylistId(),a=S.getVideoData().isLive&&S.getVideoData().hasProgressBarBoundaries;if((C.getState()==2||G||a)&&(!S.getVideoData().isLive||a)){C={inPlaylist:G,videoDuration:S.getDuration(),makeUpNextTrigger:function(n){return new UOO(S,_.Dj,n)},
makePlaybackTrigger:function(n){return new MAw(S,_.Dj,n)}};
var R=xOO(b,C);R&&(N.pendingPrefetchJob_=new RF(R.isInPlaylist?new fIq(H):new uzL(R.autonavEndpoints),function(n,d){d=new lIE(TCE[R.pageType].pageFragments,TCE[R.pageType].prefetchedFragments,d);return _.vFO(d)?(N.prefetchCache_.set(n,d),!0):!1},R,new cH(P,S,K,H)),N.pendingPrefetchJob_.enqueue())}}},H8E=function(){var N=_.M$();
N.signals.parkOrScheduleJob(function(){var b=N.storage;if(b.storage)if(aI5(b)){var S=b.getPlaylistId();b=R5t(b);S=!!S&&b!==void 0}else b.clear(),S=!1;else S=!1;if(S){S=N.JSC$13320_pageManager.isOnWatch();a:{var P=N.storage;if(P.storage&&aI5(P)&&(b=P.getPlaylistId(),P=R5t(P),b&&P!==void 0)){S={recoverPlaylistCommand:{listId:b,index:P,openMiniplayer:!S,openListPanel:S,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}S=void 0}S&&_.qk(N.JSC$13320_actionRouter,[S],null)}},0,"ma")},sE5=function(N,b,S,
P,H,K){var C=_.OW(7111);
_.Ew(N.JSC$18840_screenManager,C,K?_.FA(K):void 0);_.YD(N.JSC$18840_screenManager,C,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:P,offlineId:b,offlineabilityFormatType:S,isDefaultFormatType:H==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:H}})},KrE=function(N,b,S,P,H){var K,C,G,a,R;
return _.r(function(n){if(n.nextAddress==1)return n.yield(N.JSC$18840_playerApiPromise,2);K=n.yieldResult;sE5(N,b,S,"OFFLINE_OBJECT_TYPE_PLAYLIST",P,H);if(G=_.Mmb[N.entityTypeMap.listEntityType])R={},C=(R[G]={maximumDownloadQuality:(a=S)!=null?a:void 0},R);return n.yield(K.queueOfflineAction(b,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",C),0)})},vaQ=function(N,b){var S,P,H,K;
return _.r(function(C){if(C.nextAddress==1)return C.yield(N.JSC$18840_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){S=C.yieldResult;if(!S)return _.$h(new _.jU("PES is undefined")),C.return();P=_.Cu(b,"downloadStatusEntity");return C.yield(c16(S,P,"downloadStatusEntity"),3)}H=C.yieldResult;return C.return((K=H)==null?void 0:K.downloadState)})},O8w=function(N,b,S,P,H){var K,C,G,a,R,n;
return _.r(function(d){switch(d.nextAddress){case 1:return d.yield(N.JSC$18840_playerApiPromise,2);case 2:K=d.yieldResult;sE5(N,b,S,"OFFLINE_OBJECT_TYPE_VIDEO",P,H);if(G=_.Mmb[N.entityTypeMap.singleEntityType])R={},C=(R[G]={maximumDownloadQuality:(a=S)!=null?a:void 0},R);return d.yield(vaQ(N,b),3);case 3:n=d.yieldResult;if(n!=="DOWNLOAD_STATE_USER_DELETED"){d.jumpTo(4);break}return d.yield(N.deleteVideo(b),4);case 4:return d.yield(K.queueOfflineAction(b,N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
C),0)}})},CAE=function(N,b,S,P,H){return _.r(function(K){return K.nextAddress==1?K.yield(N.deleteVideo(b,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):K.yield(O8w(N,b,S,P,H),0)})},GI6=function(N,b,S){var P,H;
return _.r(function(K){if(K.nextAddress==1)return K.yield(N.JSC$18840_playerApiPromise,2);P=K.yieldResult;H=_.Cu(b,"mainVideoDownloadStateEntity");return K.yield(P.updateDownloadState(H,S),0)})},YGQ=function(N){var b=_.aN().resolve(_.R1);
return _.r(function(S){if(S.nextAddress==1)return b.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?S.jumpTo(2):S.yield(b.resumeVideoDownload(N),2);if(S.nextAddress!=4)return S.yield(GI6(b,N,b.previousDownloadStateForVideo[N]),4);delete b.previousDownloadStateForVideo[N];_.Zd(S)})},Epw=function(N,b){var S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$18840_playerApiPromise,2);S=P.yieldResult;return P.yield(S.queueOfflineAction(b,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},zqa=function(){var N=_.aN().resolve(_.R1),b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$18840_playerApiPromise,2);if(P.nextAddress!=3)return b=P.yieldResult,S={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},P.yield(b.queueOfflineAction("!*$_ALL_ENTITIES_!*$",N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),3);var H=N.JSC$18840_commandHandler,K=H.resolveCommand,C=_.cN("DELETING_ALL",void 0,"Downloads are being deleted");K.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bV(C)}},
popupType:"TOAST"}});_.Zd(P)})},rBE=function(N,b){var S,P,H,K,C,G;
return _.r(function(a){if(a.nextAddress==1)return a.yield(N.JSC$18840_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return S=a.yieldResult,S?a.yield(c16(S,_.lV,"downloadsPageViewConfigurationEntity"),3):(_.$h(new _.jU("PES is undefined")),a.return());H=(P=a.yieldResult)!=null?P:{};G=(C=(K=H)==null?void 0:K.downloadsUpsellBannerVisibility)!=null?C:{};return G.visibleWithConnection?a.yield(b.refreshAllStaleEntities(0),0):a.jumpTo(0)})},cB_=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$18840_prefStorage,2);b=P.yieldResult;return P.return((S=b)==null?void 0:S.get("sdois"))})},aJa=function(N){var b,S,P,H,K,C;
return _.r(function(G){if(G.nextAddress==1)return G.yield(N.JSC$18840_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){b=G.yieldResult;if(!b)return _.$h(new _.jU("PES is undefined")),G.return();S=_.Cu("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return G.yield(c16(b,S,"settingEntity"),3)}P=G.yieldResult;return G.return((C=(H=P)==null?void 0:(K=H.settingOptionValue)==null?void 0:K.boolValue)!=null?C:!1)})},RRE=function(N,b){var S,P,H,K;
return _.r(function(C){switch(C.nextAddress){case 1:return((S=b)==null?void 0:S.formatType)===void 0?C.return():C.yield(N.JSC$18840_prefStorage,2);case 2:P=C.yieldResult;if(P===void 0)return C.return();if(((H=b)==null?void 0:H.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return C.yield(P.set("lmqf",b.formatType),8);if(((K=b)==null?void 0:K.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){C.jumpTo(0);break}return C.yield(P.set("lmqf",b.formatType),6);case 6:return C.yield(P.set("lmqflst",
Math.floor((0,_.nh)())),0);case 8:return C.yield(P.remove("lmqflst"),0)}})},Wri=function(N){var b,S;
return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(N.JSC$18840_prefStorage,2);case 2:b=P.yieldResult;if(!b){P.jumpTo(3);break}return P.yield(b.get("lmqflst"),4);case 4:if(S=P.yieldResult,S!==void 0)return P.return(S);case 3:return P.return(0)}})},nat=function(N){var b,S,P;
return _.r(function(H){return H.nextAddress==1?H.yield(N.JSC$18840_prefStorage,2):H.nextAddress!=3?(b=H.yieldResult,H.yield((S=b)==null?void 0:S.get("ldtmes"),3)):H.return((P=H.yieldResult)!=null?P:!1)})},KGq=function(){var N=_.aN().resolve(_.R1),b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$18840_prefStorage,2);b=S.yieldResult;return b===void 0?S.return():S.yield(b.set("ldtmes",!0),0)})},dmi=function(N){var b,S;
return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(N.JSC$18840_prefStorage,2);case 2:b=P.yieldResult;if(b===void 0){P.jumpTo(3);break}return P.yield(b.get("lmqf"),4);case 4:if(S=P.yieldResult,S!==void 0)return P.return(S);case 3:return P.return("SD")}})},hqi=function(N,b,S){var P,H,K,C,G,a,R,n;
_.r(function(d){switch(d.nextAddress){case 1:return d.yield(RRE(N,(P=b)==null?void 0:P.actionParams),2);case 2:H=b.playlistId;if(!H)return d.return();if(b.action==="ACTION_ADD")return((C=b.actionParams)==null?0:C.formatType)?d.yield(KrE(N,H,b.actionParams.formatType,(n=b.actionParams)==null?void 0:n.settingsAction,S),0):d.yield(N.offlineWebClientEligibility,14);if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var m=N.JSC$18840_commandHandler,k=m.resolveCommand,M=_.Vg("INNERTUBE_CLIENT_NAME");var l=M===
"WEB_REMIX"?_.cN("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.cN("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var u=M==="WEB_REMIX"?[_.cN("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];M=M==="WEB_REMIX"?_.cN("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.cN("DELETE",void 0,"Delete");var J=_.cN("CANCEL",void 0,"Cancel");l=a7q(l,u,M,J,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:H});k.call(m,{openPopupAction:l});return d.return()}if(b.action===
"ACTION_REMOVE")return d.yield(Epw(N,H),0);if(b.action!=="ACTION_SYNC"){d.jumpTo(0);break}return d.yield(N.JSC$18840_playerApiPromise,9);case 9:return K=d.yieldResult,d.yield(K.queueOfflineAction(H,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return G=d.yieldResult,d.yield(dmi(N),15);case 15:return a=d.yieldResult,d.yield(Wri(N),16);case 16:R=d.yieldResult,b.onAddCommand&&N.JSC$18840_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:a,
offlineWebClientEligibility:G,lastOfflineQualitySettingsSavedMs:R.toString()}}),d.jumpTo(0)}})},eqo=function(N,b,S){var P,H,K,C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y,V,g;
_.r(function(e){switch(e.nextAddress){case 1:return e.yield(RRE(N,(P=b)==null?void 0:P.actionParams),2);case 2:H=b.videoId;if(!H)return e.return();if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var se=N.JSC$18840_commandHandler,Ca=se.resolveCommand,ML=_.Vg("INNERTUBE_CLIENT_NAME");var na=ML==="WEB_REMIX"?_.cN("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.cN("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var To=ML==="WEB_REMIX"?[_.cN("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];ML=ML==="WEB_REMIX"?_.cN("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.cN("DELETE",void 0,"Delete");var jp=_.cN("CANCEL",void 0,"Cancel");na=a7q(na,To,ML,jp,{signal:"DELETE_DOWNLOAD",targetId:H});Ca.call(se,{openPopupAction:na});return e.return()}if(b.action==="ACTION_ADD")return((Z=b.actionParams)==null?0:Z.formatType)?e.yield(O8w(N,H,b.actionParams.formatType,(g=b.actionParams)==null?void 0:g.settingsAction,S),0):e.yield(N.offlineWebClientEligibility,
28);if(b.action==="ACTION_RETRY")return e.yield(dmi(N),24);if(b.action==="ACTION_PAUSE")return e.yield(N.pauseVideoDownload(H),0);if(b.action==="ACTION_RESUME")return e.yield(N.resumeVideoDownload(H),0);if(b.action==="ACTION_REMOVE")return e.yield(vaQ(N,H),18);if(!_.T("kevlar_enable_download_to_mobile")){e.jumpTo(0);break}K=_.t(b.onAddCommand,_.DG);G=(C=K)==null?void 0:C.isCrossDeviceDownload;if(!b.onAddCommand||!G){e.jumpTo(0);break}a="HD";return e.yield(Wri(N),16);case 16:return R=e.yieldResult,
e.yield(nat(N),17);case 17:n=e.yieldResult;N.JSC$18840_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:a,lastOfflineQualitySettingsSavedMs:R.toString(),downloadToMobileEduShown:n}});e.jumpTo(0);break;case 18:return d=e.yieldResult,N.previousDownloadStateForVideo[H]=(m=d)!=null?m:"DOWNLOAD_STATE_UNKNOWN",e.yield(GI6(N,H,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(N.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&N.previousDownloadStateForVideo[H]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){e.jumpTo(20);break}return e.yield(N.pauseVideoDownload(H),20);case 20:se=_.cN("DELETED_VIDEO",void 0,"Video deleted from downloads.");Ca=_.cN("UNDO_ACTION",void 0,"Undo");na=_.cN("CLOSE",void 0,"Close");k={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bV(se),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.bV(Ca),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:se+" "+Ca}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:na}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};N.JSC$18840_commandHandler.resolveCommand(k);
e.jumpTo(0);break;case 24:M=e.yieldResult;M==="UNKNOWN_FORMAT_TYPE"&&(M="SD");l="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((u=b.actionParams)==null?0:u.formatType)M=b.actionParams.formatType,l=(J=b.actionParams)==null?void 0:J.settingsAction;return e.yield(CAE(N,H,M,l,S),25);case 25:return e.return();case 28:return D=e.yieldResult,e.yield(dmi(N),29);case 29:return Y=e.yieldResult,e.yield(Wri(N),30);case 30:V=e.yieldResult,b.onAddCommand&&N.JSC$18840_commandHandler.resolveCommand(b.onAddCommand,
{form:{preferredFormatType:Y,offlineWebClientEligibility:D,lastOfflineQualitySettingsSavedMs:V.toString()}}),e.jumpTo(0)}})},mmn=function(N,b){var S,P,H,K,C,G,a;
return _.r(function(R){if(R.nextAddress==1)return R.yield(N.JSC$18840_persistentStorePromiseAccessor(),2);S=R.yieldResult;if(!S)return _.$h(new _.jU("PES is undefined")),R.return();if((P=b)==null||!P.settingItemId)return R.return();H=b;K=H.settingItemId;C=H.boolValue;G=_.Cu(K,"settingEntity");a={key:G,settingOptionValue:{boolValue:C}};return R.yield(r1E(S,a),0)})},kIq=function(N,b){var S,P,H,K,C,G,a;
return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(N.JSC$18840_prefStorage,2);case 2:return S=R.yieldResult,P=_.WN(),R.yield(N.JSC$18840_persistentStorePromiseAccessor(),3);case 3:return H=R.yieldResult,S?H?R.yield(S.get("sdois"),4):(_.$h(new _.jU("PES is undefined")),R.return()):(_.$h(new _.jU("prefStorage is undefined")),R.return());case 4:K=R.yieldResult;G=(C=b)==null?void 0:C.boolValue;G===void 0||_.T("kevlar_set_sd_enabled_flag_killswitch")||_.nA(0,197,!0);K===void 0&&G===void 0&&
(G=!1);if(G===void 0){R.jumpTo(0);break}return R.yield(S.set("sdois",G),6);case 6:return _.T("kevlar_set_sd_enabled_flag_killswitch")||(_.nA(0,196,G),P.save()),a={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:G},R.yield(mmn(N,a),0)}})},T_6=function(N,b,S){var P,H,K,C,G;
return _.r(function(a){switch(a.nextAddress){case 1:return a.yield(cB_(N),2);case 2:return P=a.yieldResult,a.yield(kIq(N,S),3);case 3:return a.yield(cB_(N),4);case 4:return H=a.yieldResult,K=H!==P,a.yield(aJa(N),5);case 5:C=a.yieldResult&&!_.T("kevlar_modern_downloads_page");if((G=!H&&!C)||K)return a.yield(b.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);a.jumpTo(0)}})},ICi=function(){var N=_.aN().resolve(_.R1),
b;
_.r(function(S){switch(S.nextAddress){case 1:return S.yield(N.JSC$18840_playerApiPromise,2);case 2:b=S.yieldResult;if(!_.T("kevlar_force_refresh_smart_downloads")){S.jumpTo(3);break}return S.yield(b.refreshAllStaleEntities(0),4);case 4:return S.return();case 3:return S.yield(b.refreshAllStaleEntities(),5);case 5:return S.yield(T_6(N,b),6);case 6:if(_.T("enable_download_pep_for_premium_countries_web"))return S.yield(rBE(N,b),0);S.jumpTo(0)}})},wen=function(N,b){var S,P;
_.r(function(H){switch(H.nextAddress){case 1:return H.yield(N.JSC$18840_playerApiPromise,2);case 2:S=H.yieldResult;switch((P=b)==null?void 0:P.settingItemId){case "SMART_DOWNLOADS_ENABLED":return H.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return H.jumpTo(4)}H.jumpTo(0);break;case 3:return H.yield(T_6(N,S,b),6);case 6:H.jumpTo(0);break;case 4:return H.yield(mmn(N,b),7);case 7:H.jumpTo(0)}})},tyQ=function(N,b){var S,P,H;
return _.r(function(K){if(K.nextAddress==1)return K.yield(N.JSC$18840_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){S=K.yieldResult;if(!S)return _.$h(new _.jU("PES is undefined")),K.return(!1);if(!b)return K.return(!1);P=_.Cu(b,"mainVideoEntity");return K.yield(c16(S,P,"mainVideoEntity"),3)}H=K.yieldResult;return K.return(H!==void 0)})},bLJ=function(N){var b=_.aN().resolve(_.R1),S,P,H,K,C,G,a,R,n,d,m;
_.r(function(k){switch(k.nextAddress){case 1:return k.yield(b.JSC$18840_playerApiPromise,2);case 2:S=k.yieldResult;H=(P=N)==null?void 0:P.actions;if(!H)return k.return();K=_.O(H);C=K.next();case 3:if(C.done){k.jumpTo(0);break}G=C.value;R=a=void 0;if(!(((a=G)==null?0:a.entityKey)&&((R=G)==null?0:R.actionType))){k.jumpTo(4);break}n=_.Ku(G.entityKey);d=n.entityId;m=n.entityType;return k.yield(S.queueOfflineAction(d,m,G.actionType),4);case 4:C=K.next(),k.jumpTo(3)}})},MyL=function(N,b){var S,P,H,K,C;
return _.r(function(G){if(G.nextAddress==1)return G.yield(N.JSC$18840_prefStorage,2);if(G.nextAddress!=3)return(S=G.yieldResult)?G.yield(S.get("psi"),3):G.return();P=G.yieldResult;C={isPaused:b,lastSyncTimestamp:(K=(H=P)==null?void 0:H.lastSyncTimestamp)!=null?K:"0"};return G.yield(S.set("psi",C),0)})},HLa=function(N){var b=_.aN().resolve(_.R1),S,P,H,K,C,G,a,R;
return _.r(function(n){switch(n.nextAddress){case 1:return n.yield(b.JSC$18840_playerApiPromise,2);case 2:S=n.yieldResult;H=((P=N)==null?void 0:P.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((G=N)==null?void 0:G.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":K="!*$_ALL_ENTITIES_!*$";C="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return n.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return n.jumpTo(4)}n.jumpTo(5);break;case 3:return n.yield(MyL(b,H),6);case 6:n.jumpTo(5);break;case 4:return n.yield(tyQ(b,(a=N)==null?void 0:a.videoId),7);case 7:n.yieldResult&&(K=(R=N)==null?void 0:R.videoId,C="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");n.jumpTo(5);break;case 5:if(K&&C)return n.yield(S.queueOfflineAction(K,"videoPlaybackPositionEntity",C),0);n.jumpTo(0)}})},Frw=function(N,b){_.aN().resolve(_.vn).persistentPanelContainerMap.set(b,N)},
B_6=function(N,b,S){N.hasRegisteredHoverCallbacks=!0;
N.hoverEnterCallback=b!=null?b:void 0;N.hoverLeaveCallback=S!=null?S:void 0},lJQ=function(){return _.aN().resolve(_.DP).dismissedIndices},Lro=function(N,b,S){var P,H=(P=_.t(b,_.kn))==null?void 0:P.videoId;
P=!(!H||!N.find(function(C){return C.videoId&&C.videoId===H}));
var K=!!N.find(function(C){var G;return((G=_.t(C.command,_.kn))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
N=!!N.find(function(C){return!!_.t(C.command,_.Ow)&&!!_.t(b,_.Ow)&&C.command===b});
return S?P||N:P||K||N},fJn=function(N,b,S){var P=[].concat(_.IX(N)),H=0,K=S?Ot_(S):[];
S=S?CvL(S):[];K.length&&!Lro(N,K[0].command,!0)&&P.push.apply(P,_.IX(K));b&&!Lro(P,b.command)&&P.unshift(b);b&&S.length&&!Lro(N,S[0].command)&&(_.T("web_enable_shorts_sequence_refactor_unify")?P.push.apply(P,_.IX(S.reverse())):P.unshift.apply(P,_.IX(S.reverse())),H=S.length);return{newContentList:P,indexChange:H}},uFQ=function(){var N=_.aN().resolve(_.DP);
_.muU(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(N.isFullscreenEnabled()?_.qy(document.documentElement):_.Cba(document.documentElement))},QEa=function(N,b){var S;
b!==1||((S=N.currentPersistentToast)==null?0:S.isOpened())?N.openToast():N.currentPersistentToast=void 0},xmQ=function(N,b){var S;
return(S=N.transitionTasksMap.get(b))!=null?S:[]},oaq=function(N,b){var S=[];
N.elementTasksMap.forEach(function(P){(P=P.get(b))&&S.push(P)});
return S},i8n=function(N,b,S,P,H){H=H===void 0?{}:H;
var K=b.defaultViewTransitionOptions;return Object.assign({},K,H,{beforeTransition:function(){P.forEach(function(R){R.beforeTransition()});
var C;(C=K.beforeTransition)==null||C.call(K);var G,a;(a=(G=H).beforeTransition)==null||a.call(G);S.forEach(function(R){R.beforeTransition()})},
afterTransition:function(){P.forEach(function(R){R.afterTransition()});
var C;(C=K.afterTransition)==null||C.call(K);var G,a;(a=(G=H).afterTransition)==null||a.call(G);S.forEach(function(R){R.afterTransition()})},
ignoredErrors:N.config.ignoredErrors})},JBq=function(N,b,S){N.transitionTasksMap.has(b)?N.transitionTasksMap.get(b).push(S):(N=new _.jU("Transition task registered for unknown transition type",b),_.ge(N))},UmL=function(N,b,S){if(N.transitionTasksMap.has(b)){var P=N.transitionTasksMap.get(b).filter(function(H){return H!==S});
N.transitionTasksMap.set(b,P)}},Z8o=function(N,b){var S=xmQ(N,b);
S=_.O(S);for(var P=S.next();!P.done;P=S.next())P=P.value,P.runOnce&&UmL(N,b,P);N.elementTasksMap.forEach(function(H,K){H.forEach(function(C,G){C.runOnce&&b===G&&(H.delete(G),H.size===0&&N.elementTasksMap.delete(K))})})},jEq=function(N,b,S){var P,H,K,C,G,a,R,n,d;
_.r(function(m){if(m.nextAddress==1){if(N.config.disableAllTransitions)return m.return(b());if((P=S)==null||!P.transitionType)return m.return(Weo(b,Object.assign({},(H=S)==null?void 0:H.viewTransitionOptions,{ignoredErrors:N.config.ignoredErrors})));K=S;C=K.transitionType;G=K.viewTransitionOptions;a=N.config.transitionConfigs.get(C);if(!a)return m.return(b());R=xmQ(N,C);n=oaq(N,C);d=Weo(b,i8n(N,a,R,n,G));return m.yield(d,2)}Z8o(N,C);_.Zd(m)})},zRQ=function(N,b){var S,P,H,K,C;
_.r(function(G){if(!b.length)return G.return([]);S=[];P=_.O(b);for(H=P.next();!H.done;H=P.next())K=H.value,(C=N.resolveIcon(K))&&!N.iconCache[C.url]&&S.push(_.Kon(N,C).then(function(){}).catch(function(){}));
return G.return(Promise.all(S))})},ABE=function(N,b){var S=[];
b=(new Set(b)).values();b=_.O(b);for(var P=b.next();!P.done;P=b.next()){P=P.value;for(var H=_.O(Object.values(A1o)),K=H.next();!K.done;K=H.next())S.push({iconName:P,iconStyle:K.value})}zRQ(N.iconManager,S)},X0q=function(N,b,S){var P=S!=null?S:N.iconsToFetch;
P!=null&&P.length?b!==void 0&&b>=0?_.XC(_.Dj,function(){ABE(N,P)},b):ABE(N,P):Promise.resolve()},Eaq=function(){var N,b,S,P;
return _.r(function(H){if(H.nextAddress==1)return N=navigator,(b=N.storage)!=null&&b.persisted?H.yield((S=N.storage)==null?void 0:S.persisted(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");P=H.yieldResult;return H.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},p0E=function(){var N,b,S,P;
return _.r(function(H){if(H.nextAddress==1)return N=navigator,(b=N.storage)!=null&&b.persist?H.yield((S=N.storage)==null?void 0:S.persist(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");P=H.yieldResult;return H.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Y0n=function(){var N,b;
return _.r(function(S){switch(S.nextAddress){case 1:return N="PERSISTED_STATE_NOT_SUPPORTED",_.u4(S,2),S.yield(Eaq(),4);case 4:N=S.yieldResult;if(N!=="PERSISTED_STATE_NOT_GRANTED"){S.jumpTo(5);break}return S.yield(p0E(),6);case 6:N=S.yieldResult;case 5:_.su(S,3);break;case 2:b=_.UE(S),b instanceof Error&&_.ge(b);case 3:return _.Dn("persistentStorageStateChecked",{persistedState:N}),S.return(N)}})},yBt=function(N,b,S){if(N.isAnyTransitionEnabled){var P={beforeTransition:function(){S(!0);
b.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){b.style.viewTransitionName&&(b.style.viewTransitionName="",S(!1))}};
JBq(N.viewTransitionCoordinator,"slide",P);JBq(N.viewTransitionCoordinator,"lockup-to-watch",P);JBq(N.viewTransitionCoordinator,"watch-next-appears",P);JBq(N.viewTransitionCoordinator,"learning-journey",P)}},IJn=function(N,b,S,P){if(N.isLockupToWatchTransitionEnabled){if(b){var H={};
H=(H["watch-next-appears"]="player-watch-next-loaded",H);H["lockup-to-watch"]=N.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";N.viewTransitionCoordinator.registerElement(b,H)}S&&(b={},N.viewTransitionCoordinator.registerElement(S,(b["lockup-to-watch"]="below-lockup-to-watch",b["watch-next-appears"]="below-watch-next-loaded",b)));P&&(S={},N.viewTransitionCoordinator.registerElement(P,(S["watch-next-appears"]="secondary-watch-next-loaded",
S)))}},Dm6=function(N,b){N.isBrowseTransitionEnabled?jEq(N.viewTransitionCoordinator,b,{transitionType:"slide"}):(b(),Promise.resolve())},Vyn=function(N,b){N.isLockupToWatchTransitionEnabled?jEq(N.viewTransitionCoordinator,b,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){N.registeredLockupThumbnail=void 0;N.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(b(),Promise.resolve())},gaQ=function(N,b){N.isLockupToWatchTransitionEnabled?jEq(N.viewTransitionCoordinator,b,{transitionType:"watch-next-appears"}):(b(),Promise.resolve())},eR5=function(N,b){N.isLearningJourneyTransitionEnabled?jEq(N.viewTransitionCoordinator,b,{transitionType:"learning-journey"}):(b(),Promise.resolve())},$mo=function(N,b,S){if(N.isInitialized()){var P=
D8(S),H=P==="watch";
P=P==="shorts";var K=D8(b)==="watch";if(H)K||(N.backgroundPageData=b),N.watchPipMode&&K||N.deactivate(S.endpoint);else if(P){if(D8(b)!=="shorts"){var C;(C=N.getPlayerElement())==null||C.pause()}}else K&&!N.watchPipMode&&(n7J(b,S,!0)?(N.watchWhileMode&&_.Ovt(N,!1),_.Sv5(N,b)):N.isMiniplayerActive()&&N.watchWhileMode&&N.deactivate());K&&_.Gxq(N);N.shortsPipMode&&!P&&(window.focus(),N.deactivate());if(N.pictureInPictureEnabled())if(P&&N.shortsPipEnabled||H&&N.JSC$19257_watchPipEnabled&&(!N.watchPipManualOnlyEnabled||
_.sCf()&&_.MpU("Chromium")>=142))_.v19(N.handleMediaSessionPipActivation);else if(!N.isMiniplayerActive()&&(N.shortsPipEnabled||N.JSC$19257_watchPipEnabled)&&_.sCf()){N=_.Kso().mediaSession;try{N.setActionHandler("enterpictureinpicture",null)}catch(G){}}}},hRt=function(N,b){var S,P;
_.r(function(H){if(H.nextAddress==1){if(!N||!N.navigationEndpoint)return H.return();_.gU().lockupActivation=!0;var K;b?K=_.gy(_.cN("QUEUE",void 0,"Queue")):K=N.longBylineText;P=(S=K)&&N.title?{miniplayerTitle:N.title,miniplayerSubtitle:S,playlistData:null}:void 0;return H.yield(_.Z_b(_.aN().resolve(_.E_),N.navigationEndpoint,!0,P),2)}_.gU().userActivation=!0;_.Zd(H)})},IWo=function(N,b){var S,P,H,K,C,G;
_.r(function(a){if(a.nextAddress==1){S=_.t(b,_.x4z);if(!S||!S.listId)return a.return();N.index=S.index||N.index||0;P=N.response&&N.response.playingVideoId||void 0;return a.yield(_.bwb(N.JSC$13320_playlistNetworkManager,S.listId,N.index,P),2)}H=a.yieldResult;if(!H)return a.return();K=H.playlistId;C=H.playlistPanelRenderer;!N.queueProxy&&K&&C&&K.startsWith("TLPQ")&&(N.queueProxy=new _.Rw(N.JSC$13320_playlistNetworkManager,K,N.setPlaylistData.bind(N),N.clearQueue.bind(N),_.HWa(C),N.storage));if(S.openMiniplayer&&
(G=_.sDb(C))&&!N.JSC$13320_pageManager.isOnWatch()){var R=G,n=S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";N.isMiniplayerActive()?N.openToast(R):hRt(R,n)}N.setPlaylistData(K,C,H.autoplayRenderer);_.Zd(a)})},pPt=function(N,b){var S=_.M$();
S.index===void 0&&(S.index=0);S.temporaryItems.push.apply(S.temporaryItems,_.IX(N));if((b.videoId||b.videoIds)&&S.index!==void 0&&b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!S.queueProxy){var P=[];if(S.response){var H=_.aN().resolve(_.E_).isMiniplayerActive();if(S.response.playlistPanelRenderer&&S.response.playlistId&&!S.response.playlistId.startsWith("TLPQ")){if(S.JSC$13320_pageManager.isOnWatch()||H)P=_.HWa(S.response.playlistPanelRenderer)}else S.response.playingVideoId&&!b.openMiniplayer?
P.push(S.response.playingVideoId):H&&S.response.playingVideoId&&b.openMiniplayer&&P.push(S.response.playingVideoId)}S.queueProxy=new _.Rw(S.JSC$13320_playlistNetworkManager,"",S.setPlaylistData.bind(S),S.clearQueue.bind(S),P,S.storage);S.queueProxy.JSC$13266_setCurrentIndex(S.index)}S.queueProxy.addVideos(b.videoIds||[b.videoId],b)}WQo(S,N);S.response&&_.FB(S,_.By(S,S.response.autoplayRenderer));S.JSC$13320_pageManager.isOnWatch()?S.isMiniplayerActive()&&S.openToast(N[0]):(N=N[0],b=b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
S.isMiniplayerActive()?S.openToast(N):hRt(N,b))},q0E=function(N,b){var S;
return _.r(function(P){return P.nextAddress==1?b&&N.lastWelcomeContinuationSent!==b?_.lnq(N)?P.yield(N.panelController.isVisible("PAai_companion"),3):P.jumpTo(2):P.return(!1):P.nextAddress==2||(S=P.yieldResult,S)?P.return(!0):P.return(!1)})},w0E=function(N){var b,S,P,H,K;
return _.r(function(C){if(C.nextAddress==1){if(!N.welcomeOptions)return C.return();b=N.welcomeOptions;S=b.command;P=b.setPending;if(S){var G;var a=(G=_.t(S,_.J8))==null?void 0:G.token}else a=void 0;H=a;return C.yield(q0E(N,H),2)}if(!C.yieldResult)return C.return();N.lastWelcomeContinuationSent=H;(K=P)==null||K(!0);a="youchat-"+Date.now();G=(G=_.G8())?String(Math.floor(G.getCurrentTime())*1E3):void 0;_.ZN(S,{form:{formData:Vi({clientMessageId:a,playerOffsetMs:G,pageContext:_.yvJ(N,N.pageSubtype)})}});
_.Zd(C)})},Nu6=function(N,b){_.r(function(S){N.welcomeOptions=b;
return S.yield(w0E(N),0)})},bO6=function(N){var b=_.bL(N);
if(b=="object"||b=="array"){if(typeof N.clone==="function")return N.clone();if(typeof Map!=="undefined"&&N instanceof Map)return new Map(N);if(typeof Set!=="undefined"&&N instanceof Set)return new Set(N);b=b=="array"?[]:{};for(var S in N)b[S]=bO6(N[S]);return b}return N},tgi=function(N,b){return Array.prototype.reduce.call(N,b,{duration:0})},WH=function(N,b){return _.k4O(_.kp(N,b,void 0,_.mw))},ns=function(N,b){return _.GE(_.kp(N,b,void 0,_.mw))},dd=function(N,b){return _.zOe(_.kp(N,b,void 0,_.mw))},
mB=function(N,b){return _.kp(N,b,void 0,_.mw,_.N_)},SyE=_.R$(function(N,b,S,P){if(_.OG)return _.gIO(N,b,S,P);
if(N.nextWireType_!==0)return!1;_.Mj(b,S,P,_.tS(N.decoder_,_.yz));return!0},_.kI,_.ya),P3o=_.R$(function(N,b,S){if(_.OG)return _.hiI(N,b,S);
if(N.nextWireType_!==1)return!1;var P=N.decoder_;N=_.EG(P);P=_.EG(P);N=_.p9(N,P);_.Wh(b,S,N);return!0},_.ASY,_.pkN),HOE=_.R$(function(N,b,S){if(N.nextWireType_!==5)return!1;
_.Wh(b,S,_.EG(N.decoder_));return!0},function(N,b,S){b=_.M9o(b);
b!=null&&(_.nD(N,S,5),_.dc(N.encoder_,b))},_.AV4),sjJ=_.R$(function(N,b,S){if(N.nextWireType_!==2)return!1;
N=_.ll9(N);_.Wh(b,S,N===_.xZ()?void 0:N);return!0},_.ySf,_.Ilz),KKq=_.Q$O(function(N,b,S){if(N.nextWireType_!==0&&N.nextWireType_!==2)return!1;
b=_.Ph(b,b[_.sd]|0,S);N.nextWireType_==2?_.Lc9(N,DHq,b):b.push(_.Am(N.decoder_));return!0},function(N,b,S){b=_.uHE(_.GE,b,!0);
if(b!=null&&b.length){S=_.i9E(N,S);for(var P=0;P<b.length;P++)_.ZDE(N.encoder_,b[P]);_.JVd(N,S)}},_.DSS),vSq=_.R$(function(N,b,S,P){if(N.nextWireType_!==0)return!1;
_.Mj(b,S,P,_.Am(N.decoder_));return!0},_.DjO,_.DSS),OOq=function(N,b,S){return Math.abs(N-b)<=(S||1E-6)},C3E=function(N,b){return N==b?!0:N&&b?N.width==b.width&&N.height==b.height:!1},kB=function(N,b){N.insertBefore(b,N.childNodes[0]||null)},Gmt=function(N){return N.previousElementSibling!==void 0?N.previousElementSibling:_.HzV(N.previousSibling,!1)},rq5=function(N,b){var S=[];
for(b=b||0;b<N.length;b+=2)_.Vkd(N[b],N[b+1],S);return S.join("&")},cqL=function(N,b){var S=arguments.length==2?rq5(arguments[1],0):rq5(arguments,1);
return _.Dzl(N,S)},D6L=_.ui(_.iF),aaL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(aaL,_.rc);aaL.prototype.getTypeName=function(){return _.xp(this,1).split("/").pop()};
aaL.prototype.getValue=function(){var N=_.kp(this,2);if(Array.isArray(N)||N instanceof _.rc)throw Error("W");return _.MW(this,2)};
var RdE=[0,2,_.qW],ysL=function(){var N=_.KX();this.JSC$10150_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Bv("channel_type"))};
ysL.prototype.increment=function(N){this.JSC$10150_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",N)};
var IKQ=function(){var N=_.KX();this.JSC$10153_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Bv("channel_type"))};
IKQ.prototype.increment=function(N){this.JSC$10153_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",N)};
var VZO=function(){var N=_.KX();this.JSC$10156_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Bv("channel_type"))};
VZO.prototype.increment=function(N){this.JSC$10156_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",N)};
var Dnw=function(){var N=_.KX();this.JSC$10159_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Dnw.prototype.increment=function(){this.JSC$10159_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var gn5=function(){var N=_.KX();this.JSC$10162_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Bv("channel_type"),_.Bv("error_type"))};
gn5.prototype.increment=function(N,b){this.JSC$10162_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",N,b)};
var eCn=function(){var N=_.KX();this.JSC$10165_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
eCn.prototype.increment=function(){this.JSC$10165_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var $nE=function(){var N=_.KX();this.JSC$10168_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
$nE.prototype.increment=function(){this.JSC$10168_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var lAq=function(){var N=_.KX();this.JSC$10174_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
lAq.prototype.increment=function(){this.JSC$10174_streamzService.JSC$10020_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
WKa=function(N){return N.getCount&&typeof N.getCount=="function"?N.getCount():_.yu(N)||typeof N==="string"?N.length:_.Vm.getCount(N)};
nSE=function(N,b){if(typeof N.every=="function")return N.every(b,void 0);if(_.yu(N)||typeof N==="string")return Array.prototype.every.call(N,b,void 0);for(var S=_.e6S(N),P=_.RE(N),H=P.length,K=0;K<H;K++)if(!b.call(void 0,P[K],S&&S[K],N))return!1;return!0};
dkq=function(N,b,S,P){var H=new _.DV(null);N&&_.W0(H,N);b&&_.n8(H,b);S&&_.d_(H,S);P&&_.mr(H,P);return H};
mki=function(){var N=_.hz&&_.Ws(_.GbV,10)>=0,b;if(b=_.xL9)b=_.Ws(_.CxO,10)>=0;var S=_.R9&&_.Ws(_.GbV,85)>=0;return _.B_||N||b||S};
kmt=function(N){var b=_.L0V(N);return b&&mki()?-N.scrollLeft:b&&_.N8(N,"overflowX")!="visible"?N.scrollWidth-N.clientWidth-N.scrollLeft:N.scrollLeft};
Tuo=function(N,b){b=Math.max(b,0);_.L0V(N)?mki()?N.scrollLeft=-b:N.scrollLeft=N.scrollWidth-b-N.clientWidth:N.scrollLeft=b};
tVw=function(N){if(N>=48&&N<=57||N>=96&&N<=106||N>=65&&N<=90||_.FG&&N==0)return!0;switch(N){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.B_;default:return!1}};
MVi=function(N){if(N.altKey&&!N.ctrlKey||N.metaKey||N.keyCode>=112&&N.keyCode<=123)return!1;if(tVw(N.keyCode))return!0;switch(N.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.B_;default:return N.keyCode<166||N.keyCode>183}};
_.au=function(N){this.__isSoyCss=!0;this.css=itL.apply(null,[N.strings].concat(_.IX(N.args)))};
_.au.prototype.toString=function(){return this.css};
var JAa=function(){_.au.apply(this,arguments)};
_.F(JAa,_.au);var FK6=[0,_.DC,HOE,-1],yAo=0,ean=!1,QJa=function(N,b,S,P,H,K,C){this.date=typeof N==="number"?new Date(N,b||0,S||1,P||0,H||0,K||0,C||0):new Date(N&&N.getTime?N.getTime():_.sG())};
_.Km(QJa,_.Ys);_.v=QJa.prototype;_.v.getHours=function(){return this.date.getHours()};
_.v.getMinutes=function(){return this.date.getMinutes()};
_.v.getSeconds=function(){return this.date.getSeconds()};
_.v.getMilliseconds=function(){return this.date.getMilliseconds()};
_.v.getUTCDay=function(){return this.date.getUTCDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.v.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.v.setHours=function(N){this.date.setHours(N)};
_.v.setMinutes=function(N){this.date.setMinutes(N)};
_.v.setSeconds=function(N){this.date.setSeconds(N)};
_.v.setMilliseconds=function(N){this.date.setMilliseconds(N)};
_.v.setUTCHours=function(N){this.date.setUTCHours(N)};
_.v.setUTCMinutes=function(N){this.date.setUTCMinutes(N)};
_.v.setUTCSeconds=function(N){this.date.setUTCSeconds(N)};
_.v.setUTCMilliseconds=function(N){this.date.setUTCMilliseconds(N)};
_.v.add=function(N){_.Ys.prototype.add.call(this,N);N.hours&&this.setUTCHours(this.date.getUTCHours()+N.hours);N.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+N.minutes);N.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+N.seconds)};
_.v.JSC$11563_toIsoString=function(N){var b=_.Ys.prototype.JSC$11563_toIsoString.call(this,N);return N?b+"T"+_.RS(this.getHours(),2)+":"+_.RS(this.getMinutes(),2)+":"+_.RS(this.getSeconds(),2):b+"T"+_.RS(this.getHours(),2)+_.RS(this.getMinutes(),2)+_.RS(this.getSeconds(),2)};
_.v.equals=function(N){return this.getTime()==N.getTime()};
_.v.toString=function(){return this.JSC$11563_toIsoString()};
_.v.clone=function(){var N=new QJa(this.date);N.firstDayOfWeek_=this.firstDayOfWeek_;N.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return N};
haa.prototype.set=function(N){this.relativeTimeStart_=N};
haa.prototype.reset=function(){this.set(_.sG())};
haa.prototype.get=function(){return this.relativeTimeStart_};
var But=null,laJ=function(){But||(But=new haa)},LKn=function(){But||(But=new haa)};
_.Km(LKn,laJ);_.v=qXJ.prototype;_.v.JSC$11589_buffer_="";_.v.set=function(N){this.JSC$11589_buffer_=""+N};
_.v.append=function(N,b,S){this.JSC$11589_buffer_+=String(N);if(b!=null)for(var P=1;P<arguments.length;P++)this.JSC$11589_buffer_+=arguments[P];return this};
_.v.clear=function(){this.JSC$11589_buffer_=""};
_.v.getLength=function(){return this.JSC$11589_buffer_.length};
_.v.toString=function(){return this.JSC$11589_buffer_};
var vXt={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"},bxJ=function(N){this.xhr=N},Ss5=function(N,b,S){_.NL.call(this,N+", errorCode="+b);
this.errorCode=b;this.xhr=S;this.name="PromiseAjaxError"};
_.F(Ss5,_.NL);var faO=!1,Rf6=function(N){_.NL.call(this,N.message||N.description||N.name);this.isMissing=N instanceof GbO;this.isTimeout=N instanceof Ss5&&N.errorCode=="net.timeout";this.isCanceled=N instanceof _.zM};
_.F(Rf6,_.NL);Rf6.prototype.name="BiscottiError";var GbO=function(){_.NL.call(this,"Biscotti ID is missing from server")};
_.F(GbO,_.NL);GbO.prototype.name="BiscottiMissingError";var N0J={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},r35=null,gHq=function(){try{var N=_.hl("yt.ads.biscotti.getId_");return N?N():j5_()}catch(b){return _.f7(b)}},B0t={'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"},uIi=function(N,b){return _.HU({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:N,command:b}})},Qj5=function(N){return _.HU({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:N}})},xkq=function(N){return _.HU({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:N}})},oSi=function(N){return _.HU({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:N}})},iOo=function(){return _.HU({type:"TALK_TO_RECS_RESET_STEP_STATES",
payload:null})},Jq5=function(N){return _.HU({type:"SET_GUIDE_IS_EXPANDED",
payload:N})},UkE=function(N){return _.HU({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:N})},ZOo=function(N){return _.HU({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:N})},jjL=function(N){return _.HU({type:"SET_ONLINE_STATUS",
payload:N})},zdn=function(N){return _.HU({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:N}})},Aqo=function(N){return _.HU({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:N}})},XFq=function(N){return _.HU({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:N}})},ESt=function(N,b){return _.HU({type:"SET_TRANSCRIPTION_STATE",
payload:{high:N,low:b}})},pFO=function(N){return _.HU({type:"SET_OVERLAY_STATE",
payload:N})},EXi=[[["Znp6cHJpbWFyeSM3dHV6c2M3NXI=",
null,null],[null,["c2UtcmVzdWx0cy1yZW5kZXJlciNmZmRlYnZsaWZqd2J5dGQtdHdvLWNvbHVtbi1icm93","MTd2MXJwNmJzcHlzdHlsZS1zY29wZSNw"],null],["N3B3YThzMXlvcmhtYXN0aGVhZC1hZCM0",["IzVwYWNzeWdkdjZlaHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="],null],[null,["cmVyI3JicmR4MDdyZ25qeXRkLXJpY2gtZ3JpZC1yZW5kZQ==","NHR1ZXliNW02a2RzdHlsZS1zY29wZSNi"],null],[null,["aHU0Ymxndnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjY2t3Zmw=","bzIwa3A2djZnaTlzdHlsZS1zY29wZSM5"],null],[null,["ZXJlciNpcHl4Y3Q5cm5xa3R5dGQtYWQtc2xvdC1yZW5k"],null]],[["cyN3MXBlaDQyaWtjOWJwbGF5ZXItYWQ=",
null,null]],[[null,null,"OWwwaXozcnoyeXRsci1iYW5uZXItY3RhLXJlbmRlcmVyI2oyZA=="]]],UMa="#",Yy_=0,yqo=function(N,b,S){var P=this;this.priority=b;this.delay=S;this.jobId=0;this.completionCallback=_.Qo;this.wrappedJob=function(){N();P.completionCallback()};
this.id=++Yy_};
yqo.prototype.enqueue=function(N){this.completionCallback=N;this.jobId=_.Dj.addJob(this.wrappedJob,this.priority,this.delay)};
var TP=function(){_.kS.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.F(TP,_.kS);TP.prototype.addJob=function(N,b,S){N=new yqo(N,b,S);this.taskIdToTask.set(N.id,N);this.isActive?IaQ(this,N):this.suspendedTasks.add(N);return N.id};
var IaQ=function(N,b){N.scheduledTasks.add(b);b.enqueue(function(){N.scheduledTasks.delete(b)})};
TP.prototype.cancelJob=function(N){(N=this.taskIdToTask.get(N))&&(this.scheduledTasks.delete(N)?_.Dj.cancelJob(N.jobId):this.suspendedTasks.delete(N))};
TP.prototype.pause=function(){var N=this;this.isActive=!1;this.scheduledTasks.forEach(function(b){_.Dj.cancelJob(b.jobId);N.suspendedTasks.add(b)});
this.scheduledTasks.clear()};
TP.prototype.start=function(){var N=this;this.isActive=!0;this.suspendedTasks.forEach(function(b){IaQ(N,b)});
this.suspendedTasks.clear()};
TP.prototype.reset=function(){this.scheduledTasks.forEach(function(N){_.Dj.cancelJob(N.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Dk5=function(N,b){this.JSC$13446_networkService_=N;this.pageRequestPromise=b};
Dk5.prototype.fetchData=function(N){VVi(this,this.JSC$13446_networkService_.fetchData(N))};
Dk5.prototype.postData=function(N,b){VVi(this,this.JSC$13446_networkService_.postData(N,b))};
Dk5.prototype.requestDataForServiceEndpoint=function(N,b){VVi(this,this.JSC$13446_networkService_.requestDataForServiceEndpoint(N,b))};
var VVi=function(N,b){b.then(N.pageRequestPromise.onSuccess,N.pageRequestPromise.onFailure,N.pageRequestPromise)};
Dk5.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var gSa=function(N){this.buildNetworkRequest_=N;this.pendingRequests_=new Set};
gSa.prototype.reset=function(){this.pendingRequests_.forEach(function(N){N.cancel()});
this.pendingRequests_.clear()};
gSa.prototype.fetchData=function(N){var b=edJ(this);b.fetchData(N);return b.pageRequestPromise};
gSa.prototype.postData=function(N,b){var S=edJ(this);S.postData(N,b);return S.pageRequestPromise};
gSa.prototype.requestDataForServiceEndpoint=function(N,b){var S=edJ(this);S.requestDataForServiceEndpoint(N,b);return S.pageRequestPromise};
var edJ=function(N){var b=N.buildNetworkRequest_();N.pendingRequests_.add(b);var S=function(){N.pendingRequests_.delete(b)};
b.pageRequestPromise.then(S,S);return b},$kE=function(N){var b=new TP;
this.JSC$13453_networkService_=N;this.JSC$13453_taskManager_=b;this.JSC$13453_networkManager_=new gSa(this.networkRequestFactory_.bind(this))};
_.v=$kE.prototype;_.v.networkRequestFactory_=function(){return new Dk5(this.JSC$13453_networkService_,new _.XB(this.JSC$13453_taskManager_))};
_.v.reset=function(){this.JSC$13453_taskManager_.reset();this.JSC$13453_networkManager_.reset()};
_.v.start=function(){this.JSC$13453_taskManager_.start()};
_.v.pause=function(){this.JSC$13453_taskManager_.pause()};
_.v.getTaskManager=function(){return this.JSC$13453_taskManager_};
_.v.getNetworkManager=function(){return this.JSC$13453_networkManager_};
var hf6=null,Npt=[],DME=0,$ME=0,Vg_=null,PZi=null,S5=function(N){this.token=N};
S5.getInstance=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.RB(),2);N=b.yieldResult;if(!N)return b.return();S5.instance||(S5.instance=new S5(N));return b.return(S5.instance)})};
var cw5=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(CZi(N.token),2);b=S.yieldResult;return S.return(b.clear("resource-manifest-assets"))})},bd=function(N){this.token=N};
bd.getInstance=function(){var N;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.RB(),2);N=b.yieldResult;if(!N)return b.return();bd.instance||(bd.instance=new bd(N));return b.return(bd.instance)})};
var Gk_=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(CZi(N.token),2);b=S.yieldResult;return S.yield(b.clear("auth"),0)})},hdo=!1,xy6=null,oyi=void 0,EyQ=!1,qyt=function(N){if(!_.Nb(document,"gtm-noscript")){var b=document.createElement("noscript");
b.id="gtm-noscript";b.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+N+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(b)}},wF5=function(N){_.NL.call(this,N)};
_.F(wF5,_.QZN);
var U7J=!1,zzO=[],jmi=!1,qRE={},Zfa=function(N,b){var S=NKL,P=this;this.renderFn=N;this.listeners=S;this.context=b;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var H;this.lastSeenPlayerApi=_.X0((H=this.playerControlsData)==null?void 0:H.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.W_U(),void 0);_.T("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){j25(P).setState({playerState:-1});P.resetRecentlyNavigatedJobId&&
_.Dj.cancelJob(P.resetRecentlyNavigatedJobId);P.recentlyNavigated=!0;P.resetRecentlyNavigatedJobId=_.Dj.addJob(function(){P.recentlyNavigated=!1},8,1E4)})};
Zfa.prototype.setState=function(N){if(!_.T("mweb_player_skip_no_op_state_changes")||!wNQ(N,this.state))if(this.state=Object.assign({},this.state,N),!_.T("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)N=-1,_.T("player_controls_log_creation_killswitch")||Nyo()||(N=(0,_.nh)()),_.uC("pcu_s"),_.uC("pcu_se"),_.uC("pcu_rs"),this.renderFn(j25(this)),_.uC("pcu_re"),but(N),_.Dj.addJob(function(){_.uC("pcu_ap")},8)};
var j25=function(N){if(N.getPlayerApi)var b=_.X0(N.getPlayerApi());else{var S;b=_.X0((S=N.playerControlsData)==null?void 0:S.playerApi)}return Object.assign({},N.state,{setState:N.boundSetState,domMeasurements:{progressBarLineRect:N.progressBarLineRect},playerApi:b,appApi:N.context.appApi,playerContainer:N.context.playerContainer,playerControlContainer:N.context.playerControlContainer,uxConfig:N.context.uxConfig})},z9i=function(N){N.listeners.forEach(function(b){N.eventListenerCleanupFunctions.push(b.register(function(){return j25(N)},
function(){return N.getData()}))})},A5L=function(N){N.eventListenerCleanupFunctions.forEach(function(b){b()});
N.eventListenerCleanupFunctions.length=0};
Zfa.prototype.getData=function(){return this.playerControlsData};var X45=function(){var N=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return N?parseInt(N[1],10):0},b2O=function(N){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+N)!=-1||document.currentScript.src.indexOf("&"+N)!=-1)},SH_=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},IL_=function(N){N.length?Pmn(N.shift(),function(){IL_(N)}):p4O()},V7J=function(N){return"chrome-extension://"+N+"/cast_sender.js"},Pmn=function(N,
b,S){var P=document.createElement("script");
P.onerror=b;S&&(P.onload=S);_.cM(P,_.Dg(N));(document.head||document.documentElement).appendChild(P)},H2E=function(){var N=X45(),b=[];
if(N>1){var S=N-1;b.push("//www.gstatic.com/eureka/clank/"+N+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js")}return b},p4O=function(){var N=SH_();
N&&N(!1,"No cast extension found")},y_E=function(){if(soE){var N=2,b=SH_(),S=function(){N--;
N==0&&b&&b(!0)};
window.__onGCastApiAvailable=S;Pmn("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",p4O,S)}},Eqi=function(){y_E();
var N=H2E();N.push("//www.gstatic.com/eureka/clank/cast_sender.js");IL_(N)},Yj5=function(){y_E();
var N=H2E();N.push.apply(N,_.IX(DIo.map(V7J)));N.push("//www.gstatic.com/eureka/clank/cast_sender.js");IL_(N)},soE=b2O("loadCastFramework")||b2O("loadCastApplicationFramework"),DIo=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var KvL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(KvL,_.rc);var vst=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(vst,_.rc);var O2q=function(){var N=new vst;return _.jM(N,1,3)};var tf=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(tf,_.rc);var Ms6=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ms6,_.rc);var Cm_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Cm_,_.rc);Cm_.prototype.getToken=function(){return _.xp(this,1)};
Cm_.prototype.setToken=function(N){return _.IJ(this,1,N)};
var Tya=function(N){return _.$Q(N,3,_.Fi,_.T6())},tsw=function(N){return _.$Q(N,6,_.Fi,_.T6())};var Ml=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ml,_.rc);Ml.prototype.getToken=function(){return _.k0(this,Cm_,2)};
Ml.prototype.setToken=function(N){return _.xI(this,2,N)};
Ml.prototype.getName=function(){return _.xp(this,6)};
var Gt_=_.ui(Ml);var rFq=function(N,b,S){this.requestMessage=N;this.methodDescriptor=b;this.metadata=S};
rFq.prototype.getMetadata=function(){return this.metadata};var cF5=function(N,b){b=b===void 0?{}:b;this.responseMessage=N;this.metadata=b;this.status=null};
cF5.prototype.getMetadata=function(){return this.metadata};
cF5.prototype.getStatus=function(){return this.status};var F7=function(N,b,S,P,H){this.name=N;this.methodType="unary";this.requestType=b;this.responseType=S;this.requestSerializeFn=P;this.responseDeserializeFn=H},aTQ=function(N,b,S){S=S===void 0?{}:S;
return new rFq(b,N,S)};
F7.prototype.getName=function(){return this.name};var BH=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(BH,_.rc);BH.prototype.getHeader=function(){return _.k0(this,tf,1)};
BH.prototype.setHeader=function(N){return _.xI(this,1,N)};
BH.prototype.hasHeader=function(){return _.Tu(this,tf,1)};var RPO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(RPO,_.rc);var WvE=new F7("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",BH,RPO,function(N){return N.serialize()},_.ui(RPO));var l9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(l9,_.rc);l9.prototype.getHeader=function(){return _.k0(this,tf,1)};
l9.prototype.setHeader=function(N){return _.xI(this,1,N)};
l9.prototype.hasHeader=function(){return _.Tu(this,tf,1)};var nsE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(nsE,_.rc);var d4i=new F7("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",l9,nsE,function(N){return N.serialize()},_.ui(nsE));var Ls=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ls,_.rc);Ls.prototype.getHeader=function(){return _.k0(this,tf,1)};
Ls.prototype.setHeader=function(N){return _.xI(this,1,N)};
Ls.prototype.hasHeader=function(){return _.Tu(this,tf,1)};var m45=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(m45,_.rc);m45.prototype.getValues=function(N){return _.cV9(this,1,N)};var ktn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ktn,_.rc);ktn.prototype.getLink=function(){return _.k0(this,Ml,1)};var TKa=new F7("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Ls,ktn,function(N){return N.serialize()},_.ui(ktn));var u9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(u9,_.rc);u9.prototype.getHeader=function(){return _.k0(this,tf,1)};
u9.prototype.setHeader=function(N){return _.xI(this,1,N)};
u9.prototype.hasHeader=function(){return _.Tu(this,tf,1)};var te5=new F7("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",u9,Ml,function(N){return N.serialize()},Gt_);var Men=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Men,_.rc);var FvL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(FvL,_.rc);FvL.prototype.getUrl=function(){return _.xp(this,2)};
FvL.prototype.setUrl=function(N){return _.IJ(this,2,N)};var BK6=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(BK6,_.rc);var lTt=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(lTt,_.rc);var Lvw=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Lvw,_.rc);var Zuq=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Zuq,_.rc);var J06=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(J06,_.rc);var fTq=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(fTq,_.rc);var Ibq=_.ui(fTq);var ue6=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ue6,_.rc);var Qow=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Qow,_.rc);_.v=Qow.prototype;_.v.getHeader=function(){return _.k0(this,tf,1)};
_.v.setHeader=function(N){return _.xI(this,1,N)};
_.v.hasHeader=function(){return _.Tu(this,tf,1)};
_.v.getCompletionUrl=function(){return _.xp(this,6)};
_.v.getDeviceId=function(){return _.xp(this,11)};var x4t=new F7("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Qow,fTq,function(N){return N.serialize()},Ibq);var osO=new Set(["SAPISIDHASH","APISIDHASH"]);var i2i=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(i2i,_.rc);i2i.prototype.getMessage=function(){return _.xp(this,2)};
var JF5=_.ui(i2i);var Z2a=function(N,b){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=N.nodeReadableStream;this.grpcResponseDeserializeFn=b;this.xhr=N.xhr;this.xhrNodeReadableStream&&U4L(this)},YH_=function(N,b){var S=new joO;
_.lH(N.xhr,"complete",function(){if(N.xhr.isSuccess()){var P=N.xhr.getResponseText();var H;if(H=b)H=N.xhr,H.JSC$10029_xhr_&&H.isComplete()?(H=H.JSC$10029_xhr_.getResponseHeader("Content-Type"),H=H===null?void 0:H):H=void 0,H=H==="text/plain";if(H){if(!atob)throw Error("ck");P=atob(P)}try{var K=N.grpcResponseDeserializeFn(P)}catch(G){zPn(N,spn(new _.yy(13,"Error when deserializing response data; error: "+G+(", response: "+P)),S));return}P=_.nbY(N.xhr.getStatus());AF5(N,Xut(N));P===0?Es5(N,K):zPn(N,
spn(new _.yy(P,"Xhr succeeded but the status code is not 200"),S))}else{P=N.xhr.getResponseText();K=Xut(N);if(P){var C=put(N,P);P=C.code;H=C.details;C=C.metadata}else P=2,H="Rpc failed due to xhr error. uri: "+String(N.xhr.JSC$10029_lastUri_)+", error code: "+(N.xhr.JSC$10029_lastErrorCode_+", error: ")+N.xhr.getLastError(),C=K;AF5(N,K);zPn(N,spn(new _.yy(P,H,C),S))}})},U4L=function(N){N.xhrNodeReadableStream.on("data",function(b){if("1"in b){var S=b["1"];
try{var P=N.grpcResponseDeserializeFn(S)}catch(H){zPn(N,new _.yy(13,"Error when deserializing response data; error: "+H+(", response: "+S)))}P&&Es5(N,P)}if("2"in b)for(b=put(N,b["2"]),S=0;S<N.onStatusCallbacks.length;S++)N.onStatusCallbacks[S](b)});
N.xhrNodeReadableStream.on("end",function(){AF5(N,Xut(N));for(var b=0;b<N.onEndCallbacks.length;b++)N.onEndCallbacks[b]()});
N.xhrNodeReadableStream.on("error",function(){if(N.onErrorCallbacks.length!==0){var b=N.xhr.JSC$10029_lastErrorCode_;b!==0||N.xhr.isSuccess()||(b=6);var S=-1;switch(b){case 0:var P=2;break;case 7:P=10;break;case 8:P=4;break;case 6:S=N.xhr.getStatus();P=_.nbY(S);break;default:P=14}AF5(N,Xut(N));b=_.B8S(b)+", error: "+N.xhr.getLastError();S!==-1&&(b+=", http status code: "+S);zPn(N,new _.yy(P,b))}})},Xut=function(N){var b={},S=ep5(N.xhr);
Object.keys(S).forEach(function(P){b[P]=S[P]});
return b},put=function(N,b){var S=2,P={};
try{var H=JF5(b);S=_.tg(H,1);var K=H.getMessage();_.kT(H,aaL,3,_.T6()).length&&(P["grpc-web-status-details-bin"]=b)}catch(C){N.xhr&&N.xhr.getStatus()===404?(S=5,K="Not Found: "+String(N.xhr.JSC$10029_lastUri_)):(S=14,K="Unable to parse RpcStatus: "+C)}return{code:S,details:K,metadata:P}};
Z2a.prototype.on=function(N,b){N==="data"?this.onDataCallbacks.push(b):N==="metadata"?this.onMetadataCallbacks.push(b):N==="status"?this.onStatusCallbacks.push(b):N==="end"?this.onEndCallbacks.push(b):N==="error"&&this.onErrorCallbacks.push(b);return this};
var yF5=function(N,b){b=N.indexOf(b);b>-1&&N.splice(b,1)};
Z2a.prototype.removeListener=function(N,b){N==="data"?yF5(this.onDataCallbacks,b):N==="metadata"?yF5(this.onMetadataCallbacks,b):N==="status"?yF5(this.onStatusCallbacks,b):N==="end"?yF5(this.onEndCallbacks,b):N==="error"&&yF5(this.onErrorCallbacks,b);return this};
Z2a.prototype.cancel=function(){this.xhr.abort()};
var Es5=function(N,b){for(var S=0;S<N.onDataCallbacks.length;S++)N.onDataCallbacks[S](b)},AF5=function(N,b){for(var S=0;S<N.onMetadataCallbacks.length;S++)N.onMetadataCallbacks[S](b)},zPn=function(N,b){for(var S=0;S<N.onErrorCallbacks.length;S++)N.onErrorCallbacks[S](b)},joO=function(){var N=Error.call(this);
this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.F(joO,Error);var ITq=function(N){this.JSC$19464_worker_=N.worker||null;this.JSC$19464_streamBinaryChunks_=N.streamBinaryChunks||!1;this.JSC$19464_credentialsMode_=void 0};
_.Km(ITq,_.mXo);ITq.prototype.createInstance=function(){var N=new QZ(this.JSC$19464_worker_,this.JSC$19464_streamBinaryChunks_);this.JSC$19464_credentialsMode_&&N.setCredentialsMode(this.JSC$19464_credentialsMode_);return N};
ITq.prototype.setCredentialsMode=function(N){this.JSC$19464_credentialsMode_=N};
var QZ=function(N,b){_.J1.call(this);this.JSC$19468_worker_=N;this.JSC$19468_streamBinaryChunks_=b;this.JSC$19468_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19468_responseHeaders_=null;this.JSC$19468_method_="GET";this.JSC$19468_url_="";this.inProgress_=!1;this.JSC$19468_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Km(QZ,_.J1);QZ.prototype.open=function(N,b){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19468_method_=N;this.JSC$19468_url_=b;this.readyState=1;D4O(this)};
QZ.prototype.send=function(N){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$19468_method_,credentials:this.JSC$19468_credentialsMode_,cache:void 0,signal:this.abortController_.signal};N&&(b.body=N);(this.JSC$19468_worker_||_.Ps).fetch(new Request(this.JSC$19468_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
QZ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Vea(this));this.readyState=0};
QZ.prototype.handleResponse_=function(N){if(this.inProgress_&&(this.fetchResponse_=N,this.JSC$19468_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19468_responseHeaders_=N.headers,this.readyState=2,D4O(this)),this.inProgress_&&(this.readyState=3,D4O(this),this.inProgress_)))if(this.responseType==="arraybuffer")N.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Ps.ReadableStream!==
"undefined"&&"body"in N){this.currentReader_=N.body.getReader();if(this.JSC$19468_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19468_textDecoder_=new TextDecoder;gsJ(this)}else N.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var gsJ=function(N){N.currentReader_.read().then(N.handleDataFromStream_.bind(N)).catch(N.handleSendFailure_.bind(N))};
QZ.prototype.handleDataFromStream_=function(N){if(this.inProgress_){if(this.JSC$19468_streamBinaryChunks_&&N.value)this.response.push(N.value);else if(!this.JSC$19468_streamBinaryChunks_){var b=N.value?N.value:new Uint8Array(0);if(b=this.JSC$19468_textDecoder_.decode(b,{stream:!N.done}))this.response=this.responseText+=b}N.done?Vea(this):D4O(this);this.readyState==3&&gsJ(this)}};
QZ.prototype.handleResponseText_=function(N){this.inProgress_&&(this.response=this.responseText=N,Vea(this))};
QZ.prototype.handleResponseArrayBuffer_=function(N){this.inProgress_&&(this.response=N,Vea(this))};
QZ.prototype.handleSendFailure_=function(){this.inProgress_&&Vea(this)};
var Vea=function(N){N.readyState=4;N.fetchResponse_=null;N.currentReader_=null;N.JSC$19468_textDecoder_=null;D4O(N)};
QZ.prototype.setRequestHeader=function(N,b){this.requestHeaders_.append(N,b)};
QZ.prototype.getResponseHeader=function(N){return this.JSC$19468_responseHeaders_?this.JSC$19468_responseHeaders_.get(N.toLowerCase())||"":""};
QZ.prototype.getAllResponseHeaders=function(){if(!this.JSC$19468_responseHeaders_)return"";for(var N=[],b=this.JSC$19468_responseHeaders_.entries(),S=b.next();!S.done;)S=S.value,N.push(S[0]+": "+S[1]),S=b.next();return N.join("\r\n")};
QZ.prototype.setCredentialsMode=function(N){this.JSC$19468_credentialsMode_=N};
var D4O=function(N){N.onreadystatechange&&N.onreadystatechange.call(N)};
Object.defineProperty(QZ.prototype,"withCredentials",{get:function(){return this.JSC$19468_credentialsMode_==="include"},
set:function(N){this.setCredentialsMode(N?"include":"same-origin")}});var eP_=function(N){var b="";_.Vm.forEach(N,function(S,P){b+=P;b+=":";b+=S;b+="\r\n"});
return b},$4_=function(N,b,S){if(_.Vm.isEmpty(S))return N;
S=eP_(S);if(typeof N==="string")return _.wP(N,_.w8(b),S);_.vW(N,b,S);return N};var hPt=function(){this.isInputValid_=!0;this.JSC$19474_streamPos_=0;this.leftoverInput_=""};
hPt.prototype.isInputValid=function(){return this.isInputValid_};
hPt.prototype.decode=function(N){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19474_streamPos_+"`stream already broken`"+N);this.leftoverInput_+=N;N=Math.floor(this.leftoverInput_.length/4);if(N==0)return null;try{var b=_.TmI(this.leftoverInput_.slice(0,N*4))}catch(S){throw b=this.leftoverInput_,N=S.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19474_streamPos_+"`"+N+"`"+b);}this.JSC$19474_streamPos_+=N*4;this.leftoverInput_=this.leftoverInput_.slice(N*4);return b};var OuE=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19477_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
OuE.prototype.isInputValid=function(){return this.state_!=3};
var qHo=function(N,b,S,P){N.state_=3;N.errorMessage_="The stream is broken @"+N.JSC$19477_streamPos_+"/"+S+". Error: "+P+". With input:\n"+b;throw Error(N.errorMessage_);};
OuE.prototype.acceptsBinaryInput=function(){return!0};
OuE.prototype.parse=function(N){function b(a){a&128&&qHo(K,C,G,"invalid tag");(a&7)!=2&&qHo(K,C,G,"invalid wire type");K.tag_=a>>>3;K.tag_!=1&&K.tag_!=2&&K.tag_!=15&&qHo(K,C,G,"unexpected tag");K.state_=1;K.length_=0;K.countLengthBytes_=0}
function S(a){K.countLengthBytes_++;K.countLengthBytes_==5&&a&240&&qHo(K,C,G,"message length too long");K.length_|=(a&127)<<(K.countLengthBytes_-1)*7;a&128||(K.state_=2,K.countMessageBytes_=0,typeof Uint8Array!=="undefined"?K.messageBuffer_=new Uint8Array(K.length_):K.messageBuffer_=Array(K.length_),K.length_==0&&H())}
function P(a){K.messageBuffer_[K.countMessageBytes_++]=a;K.countMessageBytes_==K.length_&&H()}
function H(){if(K.tag_<15){var a={};a[K.tag_]=K.messageBuffer_;K.result_.push(a)}K.state_=0}
for(var K=this,C=N instanceof Array?N:new Uint8Array(N),G=0;G<C.length;){switch(K.state_){case 3:qHo(K,C,G,"stream already broken");break;case 0:b(C[G]);break;case 1:S(C[G]);break;case 2:P(C[G]);break;default:throw Error("ik`"+K.state_);}K.JSC$19477_streamPos_++;G++}N=K.result_;K.result_=[];return N.length>0?N:null};var CV5=function(){this.errorMessage_=null;this.JSC$19480_streamPos_=0;this.base64Decoder_=new hPt;this.pbParser_=new OuE};
CV5.prototype.isInputValid=function(){return this.errorMessage_===null};
var wuL=function(N,b,S){N.errorMessage_="The stream is broken @"+N.JSC$19480_streamPos_+". Error: "+S+". With input:\n"+b;throw Error(N.errorMessage_);};
CV5.prototype.acceptsBinaryInput=function(){return!1};
CV5.prototype.parse=function(N){this.errorMessage_!==null&&wuL(this,N,"stream already broken");var b=null;try{var S=this.base64Decoder_.decode(N);b=S===null?null:this.pbParser_.parse(S)}catch(P){wuL(this,N,P.message)}this.JSC$19480_streamPos_+=N.length;return b};var vGn=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19483_streamPos_=0;this.result_=[];this.statusParsed_=!1};
vGn.prototype.isInputValid=function(){return this.errorMessage_===null};
vGn.prototype.acceptsBinaryInput=function(){return!1};
vGn.prototype.parse=function(N){function b(a){K.state_=6;K.errorMessage_="The stream is broken @"+K.JSC$19483_streamPos_+"/"+C+". Error: "+a+". With input:\n";throw Error(K.errorMessage_);}
function S(){K.jsonStreamParser_=new _.Bo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function P(a){if(a)for(var R=0;R<a.length;R++){var n={};n[1]=a[R];K.result_.push(n)}}
function H(a){if(a){(K.statusParsed_||a.length>1)&&b("extra status: "+a);K.statusParsed_=!0;var R={};R[2]=a[0];K.result_.push(R)}}
for(var K=this,C=0;C<N.length;){var G;if(G=K.state_!==2){a:{for(;C<N.length;){if(!_.FX(N[C])){G=!0;break a}C++;K.JSC$19483_streamPos_++}G=!1}G=!G}if(G)return null;switch(K.state_){case 6:b("stream already broken");break;case 0:N[C]==="["?(K.state_=1,C++,K.JSC$19483_streamPos_++):b("unexpected input token");break;case 1:N[C]==="["?(K.state_=2,S()):N[C]===","||N.slice(C,C+5)=="null,"?K.state_=3:N[C]==="]"?(K.state_=5,C++,K.JSC$19483_streamPos_++):b("unexpected input token");break;case 2:G=K.jsonStreamParser_.parse(N.substring(C));
P(G);K.jsonStreamParser_.done()?(K.state_=3,G=K.jsonStreamParser_.JSC$11716_buffer_,K.JSC$19483_streamPos_+=N.length-C-G.length,N=G,C=0):(K.JSC$19483_streamPos_+=N.length-C,C=N.length);break;case 3:N[C]===","||N.slice(C,C+5)=="null,"?(K.state_=4,S(),K.jsonStreamParser_.parse("["),C+=N[C]===","?1:5,K.JSC$19483_streamPos_++):N[C]==="]"&&(K.state_=5,C++,K.JSC$19483_streamPos_++);break;case 4:G=K.jsonStreamParser_.parse(N.substring(C));H(G);K.jsonStreamParser_.done()?(K.state_=5,G=K.jsonStreamParser_.JSC$11716_buffer_,
K.JSC$19483_streamPos_+=N.length-C-G.length,N=G,C=0):(K.JSC$19483_streamPos_+=N.length-C,C=N.length);break;case 5:b("extra input after stream end")}}return K.result_.length>0?(N=K.result_,K.result_=[],N):null};var NRo=function(N){this.JSC$19486_xhr_=N;this.JSC$19486_parser_=null;this.status_=this.JSC$19486_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19486_textDecoder_=null;this.JSC$19486_eventHandler_=new _.fx(this);this.JSC$19486_eventHandler_.listen(this.JSC$19486_xhr_,"readystatechange",this.JSC$19488_readyStateChangeHandler_)},xB=function(N,b){N.status_!=b&&(N.status_=b,N.statusHandler_&&N.statusHandler_())},b1E=function(N){N.JSC$19486_eventHandler_.removeAll();
if(N.JSC$19486_xhr_){var b=N.JSC$19486_xhr_;N.JSC$19486_xhr_=null;b.abort();b.dispose()}};
NRo.prototype.getStatus=function(){return this.status_};
NRo.prototype.JSC$19488_readyStateChangeHandler_=function(N){N=N.target;try{if(N==this.JSC$19486_xhr_)a:{var b=_.Vy(this.JSC$19486_xhr_),S=this.JSC$19486_xhr_.JSC$10029_lastErrorCode_,P=this.JSC$19486_xhr_.getStatus(),H=this.JSC$19486_xhr_.getResponseText();N=[];if(this.JSC$19486_xhr_.getResponse()instanceof Array){var K=this.JSC$19486_xhr_.getResponse();K.length>0&&K[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,N=K)}if(!(b<3||b==3&&!H&&N.length==0))if(P=P==200||P==206,b==4&&(S==8?
xB(this,7):S==7?xB(this,8):P||xB(this,3)),this.JSC$19486_parser_||(this.JSC$19486_parser_=GLq(this.JSC$19486_xhr_),this.JSC$19486_parser_==null&&xB(this,5)),this.status_>2)b1E(this);else{if(N.length>this.JSC$19486_pos_){var C=N.length;S=[];try{if(this.JSC$19486_parser_.acceptsBinaryInput())for(var G=0;G<C;G++){var a=this.JSC$19486_parser_.parse(Array.from(N[G]));a&&(S=S.concat(a))}else{a="";if(!this.JSC$19486_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19486_textDecoder_=
new TextDecoder}for(G=0;G<C;G++)a+=this.JSC$19486_textDecoder_.decode(N[G],{stream:b==4&&G==C-1});S=this.JSC$19486_parser_.parse(a)}N.splice(0,C);S&&this.dataHandler_(S)}catch(n){xB(this,5);b1E(this);break a}}else if(H.length>this.JSC$19486_pos_){G=H.slice(this.JSC$19486_pos_);this.JSC$19486_pos_=H.length;try{var R=this.JSC$19486_parser_.parse(G);R!=null&&this.dataHandler_&&this.dataHandler_(R)}catch(n){xB(this,5);b1E(this);break a}}b==4?(H.length!=0||this.hasStreamingResponseData_?xB(this,2):xB(this,
4),b1E(this)):xB(this,1)}}}catch(n){xB(this,6),b1E(this)}};var Spt=function(N){N=this.xhrReader_=N;var b=(0,_.pT)(this.onData_,this);N.dataHandler_=b;N=this.xhrReader_;b=(0,_.pT)(this.onStatusChange_,this);N.statusHandler_=b;this.JSC$19490_callbackMap_={};this.callbackOnceMap_={}};
_.v=Spt.prototype;_.v.on=function(N,b){var S=this.JSC$19490_callbackMap_[N];S||(S=[],this.JSC$19490_callbackMap_[N]=S);S.push(b);return this};
_.v.addListener=function(N,b){this.on(N,b);return this};
_.v.removeListener=function(N,b){var S=this.JSC$19490_callbackMap_[N];S&&_.zo(S,b);(N=this.callbackOnceMap_[N])&&_.zo(N,b);return this};
_.v.once=function(N,b){var S=this.callbackOnceMap_[N];S||(S=[],this.callbackOnceMap_[N]=S);S.push(b);return this};
_.v.onData_=function(N){var b=this.JSC$19490_callbackMap_.data;b&&PGL(N,b);(b=this.callbackOnceMap_.data)&&PGL(N,b);this.callbackOnceMap_.data=[]};
var PGL=function(N,b){for(var S={},P=0;P<N.length;S={message$jscomp$1008:void 0},P++)S.message$jscomp$1008=N[P],b.forEach(function(H){return function(K){try{K(H.message$jscomp$1008)}catch(C){}}}(S))};
Spt.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:H16(this,"readable");break;case 5:case 6:case 4:case 7:case 3:H16(this,"error");break;case 8:H16(this,"close");break;case 2:H16(this,"end")}};
var H16=function(N,b){var S=N.JSC$19490_callbackMap_[b];S&&S.forEach(function(P){try{P()}catch(H){}});
(S=N.callbackOnceMap_[b])&&S.forEach(function(P){P()});
N.callbackOnceMap_[b]=[]};var syE=function(){var N={format:"jspb"};N=N===void 0?{}:N;this.suppressCorsPreflight=N.suppressCorsPreflight||_.hl("suppressCorsPreflight",N)||!1;this.withCredentials=N.withCredentials||_.hl("withCredentials",N)||!1;this.streamInterceptors=N.streamInterceptors||[];this.unaryInterceptors=N.unaryInterceptors||[];this.workerScope=N.workerScope;this.chunkedServerStreaming=N.useFetchDownloadStreams||!1},O1O=function(N,b,S,P,H,K){K=K===void 0?{}:K;
var C=b.substring(0,b.length-H.name.length),G,a=(G=K)==null?void 0:G.signal;return KpO(function(R){return new Promise(function(n,d){if(a==null?0:a.aborted){var m=new _.yy(1,"Aborted");m.cause=a.reason;d(m)}else{var k={},M=vMJ(N,R,C);M.on("error",function(l){return void d(l)});
M.on("metadata",function(l){k=l});
M.on("data",function(l){var u=k;u=u===void 0?{}:u;n(new cF5(l,u))});
a&&a.addEventListener("abort",function(){M.cancel();var l=new _.yy(1,"Aborted");l.cause=a.reason;d(l)})}})},N.unaryInterceptors).call(N,aTQ(H,S,P)).then(function(R){return R.responseMessage})},CGE=function(N,b,S,P,H,K){K=K===void 0?{}:K;
return O1O(N,b,S,P,H,K)};
syE.prototype.serverStreaming=function(N,b,S,P){var H=this,K=N.substring(0,N.length-P.name.length);return G$t(function(C){var G=C.methodDescriptor,a=C.getMetadata(),R=rHO(H,!1);a=cHt(H,a,R,K+G.getName());var n=atq(R,G.responseDeserializeFn,!0);C=G.requestSerializeFn(C.requestMessage);R.send(a,"POST",C);return n},this.streamInterceptors).call(this,aTQ(P,b,S))};
var vMJ=function(N,b,S){var P=b.methodDescriptor,H=b.getMetadata(),K=rHO(N,!0);N=cHt(N,H,K,S+P.getName());S=atq(K,P.responseDeserializeFn,!1);YH_(S,H["X-Goog-Encode-Response-If-Executable"]==="base64");b=P.requestSerializeFn(b.requestMessage);K.send(N,"POST",b);return S},rHO=function(N,b){b=N.chunkedServerStreaming&&!b;
return N.workerScope||b?new _.DI(new ITq({worker:N.workerScope,streamBinaryChunks:b})):new _.DI},cHt=function(N,b,S,P){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var H=b.Authorization;if(H&&osO.has(H.split(" ")[0])||N.withCredentials)S.JSC$10029_withCredentials_=!0;if(N.suppressCorsPreflight)P=$4_(P,"$httpHeaders",b);else for(N=_.O(Object.keys(b)),H=N.next();!H.done;H=N.next())H=H.value,S.headers.set(H,b[H]);return P},atq=function(N,b,S){if(S){S=new NRo(N);
var P=new Spt(S)}return new Z2a({xhr:N,nodeReadableStream:P},b)},G$t=function(N,b){return b.reduce(function(S,P){return function(H){return P.intercept(H,S)}},N)},KpO=function(N,b){return b.reduce(function(S,P){return function(H){return P.intercept(H,S)}},N)};var R2a=function(N){this.client_=new syE;this.hostname_=N==void 0?N:N.replace(/\/+$/,"")};
_.v=R2a.prototype;_.v.JSC$19508_depositGoogleCredential=function(N,b,S){return CGE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",N,b||{},d4i,S)};
_.v.deleteLink=function(N,b,S){return CGE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",N,b||{},WvE,S)};
_.v.JSC$19508_finishOAuth=function(N,b,S){return CGE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",N,b||{},TKa,S)};
_.v.getLink=function(N,b,S){return CGE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",N,b||{},te5,S)};
_.v.startLinkingSession=function(N,b,S){return CGE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",N,b||{},x4t,S)};var WpL=[0,_.hm,1,KKq,[0,_.b2,[0,_.wV,-1]],[0,sjJ],[0,_.KL,-1],[0,sjJ]];var nMa=function(){this.storage=new Map},mPQ=function(N,b,S,P,H){if(!N.storage.has(b))return null;
N=_.O(N.storage.get(b));for(b=N.next();!b.done;b=N.next())if(b=b.value,!H||b.linkName===H)if(S&&b.scopes&&dPL(b.scopes,S)||P&&b.capabilities&&dPL(b.capabilities,P))return b;return null},k$E=function(N,b,S){if(!S)N.storage.delete(b);
else if(N.storage.has(b)){var P=N.storage.get(b).filter(function(H){return H.linkName!==S});
P.length>0?N.storage.set(b,P):N.storage.delete(b)}},dPL=function(N,b){b=_.O(b);
for(var S=b.next();!S.done;S=b.next())if(!N.has(S.value))return!1;return!0};var TRq=function(){var N=_.Vg("LINK_GAL_DOMAIN");this.alsDomain1p=_.Vg("LINK_GAL_DOMAIN");this.alsDomain3p=N;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},t2i=function(N,b){N.apiKey=b;
return N};
TRq.prototype.build=function(){var N={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");N.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");N.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(N.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)N.apiKey=
this.apiKey,N.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");N.oauthToken=this.oauthToken;N.alsDomain=this.alsDomain3p}N.clientXd3=this.clientXd3;N.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(N.authUser=this.authUser);this.bucket!==void 0&&(N.bucket=this.bucket);this.completionUrl!==void 0&&(N.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(N.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(N.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(N.locale=this.locale);this.localStorage!==void 0&&(N.localStorage=this.localStorage);N.loggerType=this.loggerType;N.clientEnvironment=this.clientEnvironment;N.colorScheme=this.colorScheme;N.showCloseOption=this.showCloseOption;return N};var Cy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Cy,_.rc);var M2J=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(M2J,_.rc);var Fpi=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Fpi,_.rc);var rF=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(rF,_.rc);var BR_=function(N){return _.o9(N,1)};var ltE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(ltE,_.rc);var d6E=_.ui(ltE),G2=[1,2,3,4,5];var abJ=function(N){try{return d6E(N)}catch(b){return null}},Lpt=function(){},RVJ=function(N,b){switch(_.F5(b,G2)){case 4:return(b=_.UG(b,Fpi,4,G2))&&N.logStateTransition(_.o9(b,1)),!0;
case 5:return(b=_.UG(b,M2J,5,G2))&&N.logInternalEvent(_.o9(b,1)),!0}return!1},m6a=function(N){switch(N){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.$Z(N)}};var r0Q=function(N,b){var S=this;this.validator=N;this.messageListener=b;this.dismissCallback=function(){ft5(S,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19537_receiveMessage=function(P){P.type==="message"&&(P=P.event_,P!==null&&(new URL(S.iframe.src)).origin===P.origin&&S.validator(P.data,P.origin)&&!S.messageListener(P.data)&&(S.JSC$19537_resolveCb!==void 0&&S.JSC$19537_resolveCb(P.data),uXE(S)))}},nGJ=function(N,b,S){N.uiHandler!==void 0&&ft5(N,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(P,H){N.JSC$19537_resolveCb=P;N.JSC$19537_rejectCb=H;N.iframe=document.createElement("iframe");_.SW(N.iframe,b);N.uiHandler=S.displayContent(N.iframe,N.dismissCallback);_.lH(window,"message",N.JSC$19537_receiveMessage,!1,N)})},ft5=function(N,b){N.JSC$19537_rejectCb!==void 0&&N.JSC$19537_rejectCb(b);
uXE(N)},uXE=function(N){N.uiHandler!==void 0&&N.uiHandler.hideContent();
_.iW(window,"message",N.JSC$19537_receiveMessage,!1,N);N.JSC$19537_resolveCb=void 0;N.JSC$19537_rejectCb=void 0;N.uiHandler=void 0;N.iframe=void 0};var Qyn=function(N){if(N===2){var b;N=((b=window)==null?0:b.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return N},Waa=function(N){N=Qyn(N);
switch(N){case 0:return"light";case 1:return"dark";default:_.$Z(N)}};var c0E=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),xPQ=function(N,b){this.JSC$19549_linkingSession=N;this.noticeConfig=b;this.displayInfoMap=new Map;var S=new Map;if(_.Tu(this.JSC$19549_linkingSession,BK6,7))for(N=_.k0(this.JSC$19549_linkingSession,BK6,7),N=_.kT(N,FvL,1,_.T6()),N=_.O(N),b=N.next();!b.done;b=N.next())b=b.value,S.set(_.o9(b,1),_.iEU(_.k0(b,_.lfO,3)));if(S.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){b=this.noticeConfig.enabledDataUsageNoticeUis;N=b.has(0)?S.get(1):void 0;b=b.has(1)?S.get(2):void 0;S=N!==void 0&&b!==void 0?S.get(3):void 0;var P=this.noticeConfig.nestedOrigins;var H=new ltE;var K=new Cy;H=_.o$(H,2,G2,K);K=new ltE;var C=new Cy;K=_.o$(K,3,G2,C);C=[];N!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:N,lastEvent:H,nestedOrigins:P}]),C.push({trustedUrl:N,lastEvent:H,nestedOrigins:P}));b!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:b,lastEvent:K,nestedOrigins:P}]),C.push({trustedUrl:b,lastEvent:K,nestedOrigins:P}));S!==void 0?this.displayInfoMap.set(3,[{trustedUrl:S,lastEvent:K,nestedOrigins:P}]):this.displayInfoMap.set(3,C)}};var oMi=function(N){var b=new nMa;this.galService=N;this.galCache=b};
oMi.prototype.getLink=function(N){var b=N.serviceId;var S=N.scopes;var P=N.capabilities;var H=N.linkName;var K=this,C;return _.r(function(G){if(P!==void 0&&S!==void 0)throw Error("ok");C=mPQ(K.galCache,b,S,P,H);return C!==null?G.return(C):G.return(K.galService.getLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),scopes:S,capabilities:P,linkName:H}).then(function(a){a=Faw(a);var R=K.galCache;R.storage.has(b)?R.storage.get(b).push(a):R.storage.set(b,[a]);return a}))})};
oMi.prototype.deleteLink=function(N,b,S){var P=this;return _.r(function(H){k$E(P.galCache,N,S);return H.return(P.galService.deleteLink({serviceId:N,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:b,linkName:S}).then(function(){return!0}))})};var JHE=function(N,b){var S=this;this.validator=N;this.msgHandler=b;this.closedPopupTimeout=this.JSC$19571_rejectCb=this.JSC$19571_resolveCb=this.popup=null;this.JSC$19571_receiveMessage=function(P){if(P!==null&&(P=P.event_,P.source===S.popup)){var H=P.data;if(S.validator(H,P.origin)){var K;(K=S.msgHandler)!=null&&K.call(S,H)||(S.JSC$19571_resolveCb!==null&&S.JSC$19571_resolveCb(H),i1O(S))}}}};
JHE.prototype.open=function(N,b){var S=this;this.popup!==null&&UP5(this);return new Promise(function(P,H){S.JSC$19571_resolveCb=P;S.JSC$19571_rejectCb=H;S.popup=_.Kg(window,N,"",b);_.lH(window,"message",S.JSC$19571_receiveMessage,!1,S);Z1t(S)})};
var UP5=function(N,b){N.JSC$19571_rejectCb!==null&&N.JSC$19571_rejectCb(b);i1O(N)},i1O=function(N){N.closedPopupTimeout&&(N.closedPopupTimeout.cancel(),N.closedPopupTimeout=null);
N.popup&&N.popup.close();_.iW(window,"message",N.JSC$19571_receiveMessage,!1,N);N.popup=null;N.JSC$19571_resolveCb=null;N.JSC$19571_rejectCb=null},Z1t=function(N){N.closedPopupTimeout=_.kjO(100).then(function(){N.popup?N.popup.closed?jyE(N):Z1t(N):UP5(N,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},jyE=function(N){N.closedPopupTimeout=_.kjO(100).then(function(){UP5(N,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var z2w=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),AHJ=function(N,b,S,P,H,K,C,G,a,R){var n=this;this.serviceId=N;this.sessionId=b;this.galService=S;this.oauthDetails=P;this.galLogger=H;this.interactionMode=K;this.redirectServiceUrl=C;this.consentLanguageKeys=G;this.dynamicUrlParameters=a;this.partnerConfigMinReadTimestamp=R;this.started=!1;this.JSC$19577_dataValidator=function(d,
m){var k=z2w.has(m);k||n.redirectServiceUrl===void 0||(k=n.redirectServiceUrl===m);return k?d.sentinel==="gdi":!1}};
AHJ.prototype.complete=function(){var N=this,b;return _.r(function(S){if(N.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=U66.getRedirectStateFromUri();return b===null?S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):S.return(XoE(N,b))})};
AHJ.prototype.start=function(){var N=this,b;return _.r(function(S){if(N.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.xp(N.oauthDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(N.interactionMode===1)return U66.setLocation(_.xp(N.oauthDetails,1)),S.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));N.started=!0;N.galLogger.logStateTransition(5);
b=U66.getPostMessagePopup(N.JSC$19577_dataValidator);return S.return(b.open(_.xp(N.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(P){N.started=!1;var H=N.galLogger;if((P==null?void 0:P.error)!==void 0)throw H.logInternalEvent(59),Error("pk");if((P==null?void 0:P.redirect_state)===void 0)throw H.logInternalEvent(131),Error("qk");return XoE(N,P.redirect_state)}).catch(function(P){N.started=
!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var XoE=function(N,b){return _.r(function(S){return S.return(EMw(N.galService,{serviceId:N.serviceId,sessionId:N.sessionId,dynamicUrlParameters:N.dynamicUrlParameters,redirectState:b,consentLanguageKeys:N.consentLanguageKeys,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp}).then(function(P){var H={statusCode:1,link:Faw(P.getLink())};l7E(_.MW(P,3))!==void 0&&(H.callerState=l7E(_.MW(P,3)));_.Zq9(P,4,m45,Bbi).size>0&&(H.redirectUriParams=new Map(Array.from(_.Zq9(P,4,m45,Bbi).entries()).map(function(K){var C=
_.O(K);K=C.next().value;var G=C.next().value;C=[];var a=C.concat;G=_.$Q(G,1,_.Fi,_.T6());return[K,a.call(C,_.IX(G))]})));
N.galLogger.logInternalEvent(134);return H}))})},U66={getPostMessagePopup:function(N){return new JHE(N)},
getRedirectStateFromUri:function(){var N=_.sB(U66.getLocation()).fragment_;return(new _.Mm(N)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(N){_.B$Y(window.location,_.VK(N))},
createOAuthFlow:function(N,b){return new AHJ(N.serviceId,N.sessionId,N.galService,b,N.galLogger,N.interactionMode,N.redirectServiceUrl,N.consentLanguageKeys,N.dynamicUrlParameters,N.partnerConfigMinReadTimestamp)}};var po_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(po_,_.rc);var Ypa=_.ui(po_);var yHE=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),It_=function(N,b,S,P,H,K,C,G,a){var R=this;this.serviceId=N;this.sessionId=b;this.galService=S;this.gsiWebFlowDetails=P;this.colorScheme=H;this.showCloseOption=K;this.galLogger=C;this.interactionMode=G;this.redirectServiceUrl=a;this.started=!1;this.JSC$19590_dataValidator=function(n,d){var m=yHE.has(d);m||R.redirectServiceUrl===
void 0||(m=R.redirectServiceUrl===d);return m?n.sentinel==="gal":!1};
this.logEventProcessor=function(n){return n.result?(n=abJ(n.result))?RVJ(R.galLogger,n):!1:!1}};
It_.prototype.complete=function(){var N=this,b,S;return _.r(function(P){if(N.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=jpO.getRedirectStateFromUri();if(b===void 0)return N.galLogger.JSC$19529_logErrorEvent(131),P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return S=DPo(N,b),P.return(V2L(N,S))}catch(H){return P.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
It_.prototype.start=function(){var N=this,b;return _.r(function(S){if(N.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.xp(N.gsiWebFlowDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(N.interactionMode===1)return jpO.setLocation(gML(N,_.xp(N.gsiWebFlowDetails,1))),S.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
N.started=!0;b=jpO.getPostMessagePopup(N.JSC$19590_dataValidator,N.logEventProcessor);return S.return(b.open(gML(N,_.xp(N.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(P){N.started=!1;if((P==null?void 0:P.result)===void 0)throw N.galLogger.JSC$19529_logErrorEvent(131),Error("qk");P=DPo(N,P.result);return V2L(N,P)}).catch(function(P){N.started=!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var gML=function(N,b){N=["result_channel",N.interactionMode===1?"2":"1","color_scheme",Waa(N.colorScheme),"show_close_option",N.showCloseOption];return cqL(b,N)},V2L=function(N,b){if(b!==null&&_.Tu(b,rF,2)){var S,P=b==null?void 0:(S=_.k0(b,rF,2))==null?void 0:_.o9(S,2);
P&&N.galLogger.JSC$19529_logErrorEvent(m6a(P));return BR_(_.k0(b,rF,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return N.galService.getLink({serviceId:N.serviceId,sessionId:N.sessionId,consistencyKey:_.xp(b,1)}).then(function(H){H=Faw(H);N.galLogger.logInternalEvent(134);return{statusCode:1,link:H}})},DPo=function(N,b){b=Ypa(b);
if(!_.Tu(b,rF,2)&&_.xp(b,1)==="")throw N.galLogger.JSC$19529_logErrorEvent(5),Error("rk");return b},jpO={getPostMessagePopup:function(N,b){return new JHE(N,b)},
getRedirectStateFromUri:function(){return _.KQ(_.sB(jpO.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(N){_.B$Y(window.location,_.VK(N))},
createStreamlinedFlow:function(N,b){return new It_(N.serviceId,N.sessionId,N.galService,b,N.colorScheme,N.showCloseOption,N.galLogger,N.interactionMode,N.redirectServiceUrl)}};var YIo=function(N){this.storage=(N=N?_.pE("GAL"):_.Ny_("GAL"))?new _.zW(N):null};
YIo.prototype.getSession=function(N){if(this.storage!==null)try{var b=this.storage.get("SAVED_SESSION");if(b===void 0)return null;if(b.serviceId===N)return b}catch(S){}return null};var e2L=function(){};
_.F(e2L,Lpt);e2L.prototype.logStateTransition=function(){};
e2L.prototype.logInternalEvent=function(){};
e2L.prototype.JSC$19529_logErrorEvent=function(){};var $PE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F($PE,_.rc);$PE.prototype.getCompletionUrl=function(){return _.xp(this,15)};var oF=function(N,b,S,P,H,K){this.serviceId=N;this.environment=b;this.sessionId=S;this.colorSchemeSelected=P;this.colorThemeDisplayed=H;this.JSC$19603_transport=K;this.currentState=1};
_.F(oF,Lpt);oF.prototype.logStateTransition=function(N){var b=h2J(this);b=_.Ti(b,3,this.currentState);b=_.Ti(b,1,N);this.currentState=N;N=gva(1);this.dispatch(b,N)};
oF.prototype.logInternalEvent=function(N){N=gva(N);this.dispatch(h2J(this),N)};
oF.prototype.JSC$19529_logErrorEvent=function(N){var b=h2J(this);b=_.Ti(b,1,10);N=gva(N);this.dispatch(b,N)};
var h2J=function(N){var b=new $PE;b=_.Ti(b,1,N.currentState);b=_.En(b,7,N.serviceId);var S,P;var H=((S=window)==null?0:(P=S.location)==null?0:P.href)?_.sB(window.location.href).JSC$10265_domain_:"NO_PACKAGE_NAME";S=_.En(b,8,H);S=_.Ti(S,6,N.environment);S=_.En(S,5,"100");S=_.Ti(S,11,N.colorSchemeSelected);return _.Ti(S,12,N.colorThemeDisplayed)};
oF.prototype.dispatch=function(N,b){b===void 0&&(b=new _.t1);var S=b;N=N.serialize();S=_.En(S,8,N);_.zx(S,12,this.sessionId);this.JSC$19603_transport.dispatch(b)};var qp6=function(N,b){this.loggerType=N;this.sessionIndex=b!=null?b:0},woE;
qp6.prototype.create=function(N,b,S,P,H){switch(this.loggerType){case 0:return new e2L;case 1:return woE||(woE=(new _.uw(555,this.sessionIndex.toString())).build()),new oF(N,b,S,P,H,woE);default:_.$Z(this.loggerType,"unknown logger type")}};var zV_=[6,2,3,1],eVn=new Map([[4,1],[1,6],[2,2],[3,3]]),fba={statusCode:7,statusMessage:"Failed to create flow object"},EG6=function(N,b,S,P,H,K,C,G,a,R){this.serviceId=N;this.sessionId=b;this.config=S;this.galService=P;this.JSC$19610_linkingSession=H;this.googleScopes=K;this.callerState=C;this.consentLanguageKeys=G;this.dynamicUrlParameters=a;this.partnerConfigMinReadTimestamp=R;this.currentFlow=0;P=this.JSC$19610_linkingSession;H=new Set;_.Tu(P,J06,1)&&H.add(1);_.Tu(P,Lvw,2)&&_.Tu(P,Zuq,6)&&H.add(2);
_.Tu(P,lTt,3)&&_.Tu(P,Zuq,6)&&H.add(3);_.Tu(P,Men,4)&&H.add(6);this.supportedFlows=H;P=S.loggerType;H=S.clientEnvironment;a:{K=S.colorScheme;switch(K){case 0:K=1;break a;case 1:K=2;break a;case 2:K=3;break a;default:_.$Z(K)}K=void 0}a:{C=S.colorScheme;C=Qyn(C);switch(C){case 0:C=1;break a;case 1:C=2;break a;default:_.$Z(C)}C=void 0}this.galLogger=(new qp6(P,S.authUser)).create(N,H,b,K,C)},Scq=function(N){return new Promise(function(b){var S,P,H,K,C,G,a,R,n,d;
return _.r(function(m){switch(m.nextAddress){case 1:S=A0t(N.currentFlow,N.supportedFlows),P=!1,H=new xPQ(N.JSC$19610_linkingSession,N.config.dataUsageNoticeConfig);case 2:if(S===void 0){m.jumpTo(4);break}_.u4(m,5);var k=H,M=S,l=void 0;P?M===1&&(l=k.displayInfoMap.get(2)):M===2||M===3?l=k.displayInfoMap.get(1):M===1&&(l=k.displayInfoMap.get(3));K=l?l:[];C=N.consentLanguageKeys;G=_.O(K);a=G.next();case 7:if(a.done)return N.currentFlow=S,m.yield(Qpn(NaE(N,C)),11);R=a.value;return m.yield(kL6(R,N.config.dataUsageNoticeConfig.uiAdapter,
N.config.colorScheme,N.galLogger),10);case 10:n=m.yieldResult;if(n.statusCode!==1)return bnQ(N),b(x6a({statusCode:n.statusCode,statusMessage:n.statusMessage},N.callerState)),m.return();n.consentLanguageKeys!==void 0&&(C=n.consentLanguageKeys);a=G.next();m.jumpTo(7);break;case 11:d=m.yieldResult;if(d.statusCode!==10)return d.statusCode!==6&&bnQ(N),d.statusCode!==1&&N.callerState!==void 0&&(d.callerState=N.callerState),b(d),m.return();_.su(m,6);break;case 5:_.UE(m);case 6:S=A0t(N.currentFlow,N.supportedFlows);
P=!0;m.jumpTo(2);break;case 4:bnQ(N),b(x6a({statusCode:12,statusMessage:"Linking failed"},N.callerState)),_.Zd(m)}})})},bnQ=function(N){y0i(N.serviceId,N.config.localStorage);
N.currentFlow=0},Vs6=function(N,b,S){N.currentFlow=b;
return oGa(NaE(N,S)).then(function(P){return P.statusCode===10&&N.config.interactionMode===1&&A0t(N.currentFlow,N.supportedFlows)!==void 0?Scq(N):P})},NaE=function(N,b){return{flowParams:{serviceId:N.serviceId,
sessionId:N.sessionId,galService:N.galService,galLogger:N.galLogger,interactionMode:N.config.interactionMode,redirectServiceUrl:N.config.redirectServiceUrl,colorScheme:N.config.colorScheme,consentLanguageKeys:b,dynamicUrlParameters:N.dynamicUrlParameters,showCloseOption:N.config.showCloseOption,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp},currentFlow:N.currentFlow,config:N.config,session:N.JSC$19610_linkingSession,googleScopes:N.googleScopes,callerState:N.callerState}};var hV6=function(N,b){this.config=N;this.galService=b.getService();this.JSC$19623_galRepository=b.JSC$19641_galRepository};
hV6.prototype.getLink=function(N,b){return Pbn(this,N,b)};
var Pbn=function(N,b,S){return N.JSC$19623_galRepository.getLink({serviceId:b,scopes:void 0,capabilities:void 0,linkName:S}).then(function(P){return{statusCode:1,link:P}}).catch(function(P){return{statusCode:$6i(P.code),
statusMessage:P.message}})};
hV6.prototype.deleteLink=function(N,b){return this.JSC$19623_galRepository.deleteLink(N,this.config.accountLinkingEntryPoint,b).then(function(){return{statusCode:1}}).catch(function(S){return{statusCode:$6i(S.code),
statusMessage:S.message}})};
hV6.prototype.startLinkingSession=function(N){var b=N.serviceId;var S=N.sessionId;return pUt({serviceId:b,sessionId:S!==void 0?S:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:N.loginHint,callerState:N.callerState,consentLanguageKeys:N.consentLanguageKeys,linkName:N.linkName,dynamicUrlParameters:N.dynamicUrlParameters,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp})};var i9=function(N,b,S,P,H,K,C){this.apiKey=b;this.authUser=S;this.oauthToken=P;this.bucket=H;this.locale=K;this.galSdkEventHandler=C;if(P===void 0){if(b===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new R2a(N)};
i9.prototype.deleteLink=function(N){var b=N.serviceId;var S=N.sessionId;var P=N.accountLinkingEntryPoint;var H=N.linkName;var K=this,C;return _.r(function(G){var a=(new BH).setHeader(K.getHeader(S));var R=HnE({serviceId:b,linkName:H});a=_.xI(a,2,R);C=_.jM(a,3,P);return G.return(K.makeRequest(K.galServiceClient.deleteLink,C,[1,3],[2,4]))})};
var EMw=function(N,b){var S=b.serviceId;var P=b.sessionId;var H=b.dynamicUrlParameters;var K=b.redirectState;var C=b.consentLanguageKeys;var G=b.partnerConfigMinReadTimestamp;var a;return _.r(function(R){var n=(new Ls).setHeader(N.getHeader(P,H));n=_.IJ(n,2,S);a=_.IJ(n,4,K);C!==void 0&&_.IJ(a,5,C);G!==void 0&&_.xI(a,6,G);return R.return(N.makeRequest(N.galServiceClient.JSC$19508_finishOAuth,a,[1,3],[2,4]))})};
i9.prototype.getLink=function(N){var b=N.serviceId;var S=N.sessionId;var P=N.scopes;var H=N.capabilities;var K=N.consistencyKey;var C=N.linkName;var G=this,a;return _.r(function(R){var n=(new u9).setHeader(G.getHeader(S)),d=HnE({serviceId:b,scopes:P,capabilities:H,linkName:C});a=_.xI(n,2,d);K!==void 0&&(n=O2q(),n=_.IJ(n,2,K),_.xI(a,3,n));return R.return(G.makeRequest(G.galServiceClient.getLink,a,[1,3],[2,4]))})};
var iuE=function(N,b){var S=b.serviceId;var P=b.sessionId;var H=b.googleScopes;var K=b.consistencyKey;var C;return _.r(function(G){var a=(new l9).setHeader(N.getHeader(P));a=_.IJ(a,2,S);var R=Array.from(H.values());a=_.bi(a,3,R,_.TE);R=O2q();R=_.IJ(R,2,K);C=_.xI(a,4,R);return G.return(N.makeRequest(N.galServiceClient.JSC$19508_depositGoogleCredential,C,[1,3],[2,4]))})};
i9.prototype.startLinkingSession=function(N){var b=N.serviceId;var S=N.sessionId;var P=N.scopes;var H=N.capabilities;var K=N.loginHint;var C=N.supportedFlows;var G=N.completionUrl;var a=N.usePingPong;var R=N.twoWayLinking;var n=N.accountLinkingEntryPoint;var d=N.callerState;var m=N.consentLanguageKeys;var k=N.googleScopes;var M=N.dataUsageNoticeConfig;var l=N.linkName;var u=N.dynamicUrlParameters;var J=N.partnerConfigMinReadTimestamp;var Z=this,D,Y;return _.r(function(V){if(H!==void 0&&P!==void 0)throw Error("ok");
var g=(new Qow).setHeader(Z.getHeader(S,u));D=_.IJ(g,2,b);l!==void 0&&_.IJ(D,14,l);if(H!==void 0){g=D;var e=Array.from(H.values());_.bi(g,5,e,_.TE)}else P!==void 0&&(g=D,e=Array.from(P.values()),_.bi(g,3,e,_.TE));G!==void 0&&_.IJ(D,6,G);a!==void 0&&_.lZ(D,15,a);C!==void 0&&(g=D,e=Array.from(C.values()),_.bi(g,4,e,_.H5));if(R!==void 0){if(R&&(!k||k.size===0))throw Error("tk");_.lZ(D,8,R)}n!==void 0&&_.jM(D,9,n);K!==void 0&&_.IJ(D,13,K);d!==void 0&&(g=D,e=(new TextEncoder).encode(d),_.So(g,12,_.iE(e,
!1),_.xZ()));m!==void 0&&_.IJ(D,16,m);J!==void 0&&_.xI(D,18,J);if(M!==void 0&&M.size>0||k!==void 0&&k.size>0)Y=new ue6,k!==void 0&&k.size>0&&(g=Y,e=Array.from(k.values()),_.bi(g,1,e,_.TE)),M!==void 0&&(M.has(0)&&_.Yap(Y,2,_.H5,1,_.v5),M.has(1)&&_.Yap(Y,2,_.H5,2,_.v5)),_.xI(D,17,Y);return V.return(Z.makeRequest(Z.galServiceClient.startLinkingSession,D,[1],[2]))})};
i9.prototype.getMetadata=function(){var N=this,b,S;return _.r(function(P){b={};N.useFpa?(b["X-Goog-Api-Key"]=N.apiKey,b["X-Goog-AuthUser"]=N.authUser!==void 0?N.authUser.toString():"0",(S=_.lLf([]))&&(b.Authorization=S)):b.Authorization="Bearer "+N.oauthToken;N.locale&&(b["accept-language"]=N.locale);return P.return(b)})};
i9.prototype.makeRequest=function(N,b,S,P){var H=this,K;return _.r(function(C){if(C.nextAddress==1)return C.yield(H.getMetadata(),2);K=C.yieldResult;sQw(H,S);return C.return(N.bind(H.galServiceClient)(b,K).finally(function(){sQw(H,P)}))})};
var sQw=function(N,b){N.galSdkEventHandler!==void 0&&b.forEach(function(S){N.galSdkEventHandler.onEvent(S)})};
i9.prototype.getHeader=function(N,b){var S=new tf;N=_.So(S,2,_.Cq(N),0);N=_.jM(N,5,3);b=_.bi(N,8,b,_.TE);this.bucket!==void 0&&_.IJ(b,1,this.bucket);return b};
var HnE=function(N){var b=N.serviceId;var S=N.scopes;var P=N.capabilities;N=N.linkName;if(P!==void 0&&S!==void 0)throw Error("ok");var H=new KvL;b=_.IJ(H,1,b);P!==void 0?(S=Array.from(P.values()),_.bi(b,5,S,_.TE)):S!==void 0&&(S=Array.from(S.values()),_.bi(b,3,S,_.TE));N!==void 0&&_.IJ(b,6,N);return b};var qIa=function(N){this.galService=new i9(N.alsDomain,N.apiKey,N.authUser,N.oauthToken,N.bucket,N.locale,N.galSdkEventHandler);this.JSC$19641_galRepository=new oMi(this.galService)};
qIa.prototype.getService=function(){return this.galService};var K3n=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(K3n,_.rc);var v6J=function(N){var b=new K3n;return _.Ti(b,1,N)};
K3n.prototype.setErrorMessage=function(N){return _.En(this,2,N)};var Onq=[0,_.s7,_.qW,_.s7];var Jf=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Jf,_.rc);var Cbq=[0,[1,2,3],_.SO,[0,_.wk9,HOE,-1],_.SO,[0,P3o,-1],_.NH];var Gyq=[0,_.eM,1,_.s7,_.qW,-1,1,_.Pr,_.DC,_.s7,-1,Cbq];var rjt=[0,_.s7,[0,_.Pr,_.DC,[0,_.qW]],_.$p,[0,_.s7,-1]];var OA=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(OA,_.rc);var cjL=[0,_.qW,_.s7,-2,_.eM,_.s7,_.eM,_.s7,-2,1,_.$p];var as5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(as5,_.rc);var RFw=[0,_.eM];var W35=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(W35,_.rc);var n6i=[0,_.s7,rjt,RFw,cjL,Gyq];var MO_=_.FH(W35,n6i);var dDE=[0,WpL];var QSL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(QSL,_.rc);var mDi=[0,[1,3],vSq,_.s7,vSq];var uJE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(uJE,_.rc);var kyn=[0,_.s7];var TaL=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(TaL,_.rc);var xHw=function(N){return _.UG(N,K3n,2,vH)},tDw=function(N){var b=new TaL;
return _.o$(b,2,vH,N)},vH=[1,
2];var MDt=[0,vH,_.SO,kyn,_.SO,Onq,_.b2,mDi,1,_.s7,dDE];var F3E=[0,1,[0,[1,2,3],_.SO,[0],_.SO,[0,RdE],_.SO,[0,WpL]]];var Ba_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ba_,_.rc);var L3L=function(N){var b=new Ba_;return _.o$(b,3,lsq,N)},lsq=[2,
3];var fsa=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(fsa,_.rc);var urt=function(N,b){return _.xI(N,2,b)},QQO=function(N,b){return _.xI(N,8,b)},xD5=function(N,b){return _.xI(N,3,b)};var o6a=[0,_.s7,MDt,n6i,_.rC,[0,[5,6,7],[0,_.s7,-2],[0,_.eM,_.s7,_.qW],[0,Cbq],[0,_.qW,_.s7,-1,_.G5,_.s7],_.SO,[0,[0,_.eM],_.s7,-1],_.SO,[0,[3,4],_.s7,-1,_.SO,[0,[0,_.s7,_.$p]],_.SO,[0,[0,[0,[1,2,3],_.SO,[0],_.SO,[0],_.SO,[0]]]]],_.SO,[0,_.s7]],_.rC,-1,[0,lsq,_.s7,_.SO,kyn,_.SO,Onq,_.b2,mDi,[0,WpL],F3E]];var ina=_.FH(fsa,o6a),JjQ=_.li(o6a);var UDQ=function(){_.E5.call(this)};
_.F(UDQ,_.E5);UDQ.prototype.init=function(){};
new UDQ;var Zn_=_.$E(["data-"]),jQE=_.$E(["aria-"]),zFO=_.$E(["aria-"]),UA=function(N,b){this.isLatencyMeasurementExperiment=N===void 0?!1:N;this.enableDialogA11yFix=b===void 0?!1:b;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.pR9(_.Ps.location.href)},BPJ=function(N,b){N.onConsentPrimitiveShownCallback=b},Ajw=function(N,b){return N.overriddenIframeLoadTimeout?N.overriddenIframeLoadTimeout:b!==void 0?b:5E3},LGo=function(N){if(N.prewarmPromise!==void 0)return N.prewarmPromise;
N.prewarmPromise=new Promise(function(b,S){Zm(N,1);XSi(N,E6O(N,!0),pSJ(N));N.iframe?N.prewarmChannel||Yco(N,N.iframe,b):S(Error("uk"))});
N.prewarmPromise.finally(function(){N.prewarmPromise=void 0});
return N.prewarmPromise};
UA.prototype.showPrimitive=function(){var N=this;if(this.consentPromise!==void 0)return this.consentPromise;var b=Date.now();yjt(this,b);this.consentPromise=new Promise(function(S,P){Zm(N,0,b);var H=N.isDarkTheme();N.isLatencyMeasurementExperiment||N.initialLoadingStrategy===1||N.initialLoadingStrategy===2||(N.loadingBar||(N.loadingBar=SK6(getComputedStyle(document.body).direction==="rtl",H),N.loadingBar.style.position="fixed",N.loadingBar.style.zIndex="15000"),document.body.appendChild(N.loadingBar));
XSi(N,E6O(N),pSJ(N));N.iframe?N.channel||IsE(N,N.iframe,S,P):(DD5(N),P(Error("uk")))});
this.consentPromise.finally(function(){N.consentPromise=void 0});
return this.consentPromise};
var IsE=function(N,b,S,P){var H,K;_.r(function(C){switch(C.nextAddress){case 1:Zm(N,3);H=!1;setTimeout(function(){if(!H){DD5(N);VDw(N);g6n(N);var G=v6J(7).setErrorMessage("Timeout connecting to iframe");S(QQO(urt(new fsa,tDw(G)),L3L(G)))}},Ajw(N,eFn(N)));
if(!N.prewarmPromise){C.jumpTo(2);break}_.u4(C,3);return C.yield(N.prewarmPromise,5);case 5:_.su(C,2);break;case 3:_.UE(C),K=v6J(4).setErrorMessage("Error while prewarming."),S(QQO(urt(new fsa,tDw(K)),L3L(K)));case 2:N.prewarmChannel&&N.prewarmChannel.send(JjQ(xD5(new fsa,N.consentPrimitiveRequest))),N.channel=_.rP({destination:N.win,iframe:b,origin:$Do(N),channelName:"cpw",onEstablished:function(){H=!0;DD5(N);N.isLatencyMeasurementExperiment||(N.JSC$19670_previousBodyOverflow=document.body.style.overflow,
N.JSC$19670_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,N.JSC$19670_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",N.enableDialogA11yFix&&window.addEventListener("blur",N.focusChangeListener));var G=N.iframe;G.style.bottom="0";G.style.position="fixed";G.style.right="0";G.style.border="none";G.style.left="0";G.style.top=
"0";G.style.zIndex="5000";G.style.pointerEvents="";G.style.visibility="";N.initialLoadingStrategy===2||N.initialLoadingStrategy===3?Zm(N,4):Zm(N,6);var a;(a=N.onConsentPrimitiveShownCallback)==null||a.call(N)},
onMessage:function(G){G=ina(G.data);switch(_.o9(G,1)){case 1:VDw(N);var a=P1L(_.k0(G,_.iF,7));a&&(N.initialLoadingStrategy!==2&&N.initialLoadingStrategy!==3||Zm(N,6,a),Zm(N,5,a));if(a=P1L(_.k0(G,_.iF,6)))Zm(N,7,a),Zm(N,8);var R,n;((R=_.k0(G,TaL,2))==null?void 0:_.F5(R,vH))!==0&&((n=_.k0(G,Ba_,8))==null?void 0:_.F5(n,lsq))!==0||P(Error("vk"));S(G);break;case 2:g6n(N)}}}),_.Zd(C)}})},Yco=function(N,b,S){N.prewarmChannel=_.rP({destination:N.win,
iframe:b,origin:$Do(N),channelName:"pwcp",onEstablished:function(){Zm(N,2);S()}})},$Do=function(N){var b=_.jo(N.src).toString();
return b&&b.indexOf("://")<0&&b.indexOf("//")!==0?N.origin:_.pR9(b)},E6O=function(N,b){b=b===void 0?!1:b;
var S,P=new Map([["origin",N.origin],["hl",(S=hFt(N))!=null?S:null]]);b&&P.set("pw","1");b=_.O([["cpr",N.consentPrimitiveRequest.serialize()]]);for(S=b.next();!S.done;S=b.next()){var H=_.O(S.value);S=H.next().value;H=H.next().value;P.set(S,H)}N.isDarkTheme()&&P.set("color_scheme","dark");return _.FK(N.src,P)},DD5=function(N){N.isLatencyMeasurementExperiment||N.loadingBar&&document.body.removeChild(N.loadingBar)};
UA.prototype.getSrc=function(){var N=_.Ol(this.origin),b;var S=(b=_.k0(this.consentPrimitiveRequest,as5,3))==null?void 0:_.tg(b,1);b="consent.google.com";S=S?"/u/"+encodeURIComponent(S.toString()):"";(N==null?0:N.endsWith("youtube.com"))?b="consent.youtube.com":(N=N==null?void 0:N.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(b="consent.google."+((N[1]?"co.":"")+encodeURIComponent(N[2])));return _.ZB("https://"+b+"/signedin"+S+"/landing")};
var XSi=function(N,b,S){N.iframe||(N.iframe=document.createElement("iframe"),N.iframe.style.width="100%",N.iframe.style.height="100%",S!==112496729&&(N.iframe.style.colorScheme="auto"),N.isLatencyMeasurementExperiment&&(N.iframe.style.display="none"),_.SW(N.iframe,b),N.iframe.setAttribute("jsname","C5o1O"),qcn(N.iframe),document.body.appendChild(N.iframe))},qcn=function(N){N.style.bottom="-200vh";
N.style.position="fixed";N.style.right="-200vw";N.style.border="";N.style.left="";N.style.top="";N.style.zIndex="";N.style.pointerEvents="none";N.style.visibility="hidden"},VDw=function(N){N.iframe&&(N.isLatencyMeasurementExperiment||(N.JSC$19670_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=N.JSC$19670_previousHtmlOverscroll),N.JSC$19670_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=N.JSC$19670_previousBodyOverscroll),N.JSC$19670_previousBodyOverflow!==
void 0&&(document.body.style.overflow=N.JSC$19670_previousBodyOverflow),N.enableDialogA11yFix&&wSn(N,!1)),qcn(N.iframe))};
UA.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wSn(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wSn=function(N,b){var S,P,H=(S=N.iframe)==null?void 0:(P=S.parentElement)==null?void 0:P.children;if(H)for(S=0;S<H.length;S++)P=H[S],P!==N.iframe&&(b?(P.hasAttribute("aria-hidden")&&_.RX([_.ko(Zn_)],P,"data-old-aria-hidden",P.getAttribute("aria-hidden")),_.RX([_.ko(jQE)],P,"aria-hidden","true")):(P.removeAttribute("aria-hidden"),P.hasAttribute("data-old-aria-hidden")&&(_.RX([_.ko(zFO)],P,"aria-hidden",P.getAttribute("data-old-aria-hidden")),P.removeAttribute("data-old-aria-hidden"))))},Zm=function(N,
b,S){var P;
(P=N.latencyCallback)==null||P.call(N,{latencyType:b,timestampEpochMillis:S!=null?S:Date.now()})};var NUn=function(N,b,S){UA.call(this,b,S===void 0?!1:S);this.consentPrimitiveRequest=N;N=hFt(this);Mli(N);this.src=this.getSrc();var P;this.initialLoadingStrategy=(P=_.k0(this.consentPrimitiveRequest,OA,4))==null?void 0:_.o9(P,4)},bcJ;
_.F(NUn,UA);var FGL=function(N){N={request:N,enableDialogA11yFix:!0};bcJ||(bcJ=new NUn(N.request,N.isLatencyMeasurementExperiment||_.o9(N.request,1)===2,N.enableDialogA11yFix));return bcJ},hFt=function(N){var b;
return(b=_.k0(N.consentPrimitiveRequest,OA,4))==null?void 0:_.xp(b,1)},yjt=function(N,b){if(!_.Tu(N.consentPrimitiveRequest,Jf,5)){var S=N.consentPrimitiveRequest,P=new Jf;
_.xI(S,5,P)}var H;if((H=_.k0(N.consentPrimitiveRequest,Jf,5))==null||_.Z99(_.kp(H,8))==null){var K;(K=_.k0(N.consentPrimitiveRequest,Jf,5))!=null&&_.zx(K,8,b)}},pSJ=function(N){var b;
return(b=_.k0(N.consentPrimitiveRequest,Jf,5))==null?void 0:_.tg(b,1)};
NUn.prototype.isDarkTheme=function(){var N;return((N=_.k0(this.consentPrimitiveRequest,OA,4))==null?void 0:_.o9(N,2))===2};
var eFn=function(N){var b;return((b=_.k0(N.consentPrimitiveRequest,OA,4))==null?void 0:_.tg(b,5))||void 0},g6n=function(N){N.channel=void 0;
N.prewarmChannel=void 0;N.iframe&&(document.body.contains(N.iframe)&&document.body.removeChild(N.iframe),N.iframe=void 0);bcJ=void 0},fAq=function(N){return UA.prototype.showPrimitive.call(N).then(function(b){return _.k0(b,TaL,2)})};for(var jw={},Swi=(jw[64]="ma",jw[73]="ogb",jw[89]="cr",jw[21]="test",jw[0]="unkn",jw[137]="con",jw[155]="hl",jw[78]="yt",jw[171]="lp",jw[172]="ap",jw[177]="amo",jw[178]="pqe",jw[74]="gg",jw[1]="gm",jw[140]="am",jw[193]="sc",jw),PtJ=_.O(Object.keys(Swi)),Hcq=PtJ.next();!Hcq.done;Hcq=PtJ.next());var srQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(srQ,_.rc);var KO5=[0,[2,3,4],_.s7,SyE,vSq,_.NH];var vDo=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(vDo,_.rc);var OcE=_.FH(vDo,[0,_.KL,_.qW,_.s7,_.qW,_.s7,KO5]);var Ctt=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(Ctt,_.rc);Ctt.prototype.getCommand=function(){return _.o9(this,1)};
var GDE=function(){var N=new Ctt;return _.jM(N,1,0)};var rTt=_.li([0,_.KL,_.qW,[0,_.s7,_.qW,-1]]);var cTQ=new _.fF("s"),axt=new _.fF("t"),RlO=new _.fF("u"),WOw=new _.fF("v"),nDt=function(N,b,S){_.uW.call(this,cTQ);this.mediaKey=N;this.photoUrl=b;this.photoSource=S};
_.F(nDt,_.uW);var dpt=function(){_.uW.call(this,axt)};
_.F(dpt,_.uW);var mpt=function(N){N=N===void 0?!1:N;_.uW.call(this,RlO);this.isError=N};
_.F(mpt,_.uW);var kD_=function(){_.uW.call(this,WOw)};
_.F(kD_,_.uW);var TUn=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,BUE=function(N){if(typeof N=="string"){if(N.charAt(0)==".")return t1n(N.substr(1));if(N.charAt(0)=="["){var b=TUn.exec(N);N=N.indexOf("=")==-1?void 0:b[3];return M1E(b[1],N)}return FOq(N)}return N},t1n=function(N){return function(b){return b.getAttribute&&_.K8(b,N)}},M1E=function(N,b){return function(S){return b!==void 0?S.getAttribute&&S.getAttribute(N)==b:S.hasAttribute&&S.hasAttribute(N)}},FOq=function(N){N=N.toUpperCase();
return function(b){return(b=b.tagName)&&b.toUpperCase()==N}},lxt=function(){return!0};var zP=function(N,b){this.JSC$19698_key_=N;this.JSC$19698_value_=b},LOn=function(N){throw Error("wk`"+N.JSC$19698_key_);
},fxi=function(N,b){return new TypeError("xk`"+b+"`"+N.JSC$19698_key_+"`"+N.JSC$19698_value_+"`"+typeof N.JSC$19698_value_)};
zP.prototype.string=function(N){return arguments.length==0?uy_(this):Qri(this,N)};
var Qri=function(N,b){var S;return(S=xpa(N))!=null?S:b},uy_=function(N){var b=xpa(N);
b===null&&LOn(N);return b},xpa=function(N){var b=N.JSC$19698_value_;
if(b==null)return null;if(typeof b==="string")return b;throw fxi(N,"string");};
zP.prototype.bool=function(N){if(arguments.length==0){var b=this.optionalBool();b===null&&LOn(this)}else{var S;b=(S=this.optionalBool())!=null?S:N}return b};
zP.prototype.optionalBool=function(){var N=this.JSC$19698_value_;if(N==null)return null;if(typeof N==="boolean")return N;if(typeof N==="string"){N=N.toLowerCase();if(N==="true"||N==="1")return!0;if(N==="false"||N==="0")return!1}throw fxi(this,"boolean");};
zP.prototype.number=function(N){if(arguments.length==0){var b=oDE(this);b===null&&LOn(this)}else b=icE(this,N);return b};
var icE=function(N,b){var S;return(S=oDE(N))!=null?S:b},oDE=function(N){var b=N.JSC$19698_value_;
if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var S=Number(b);if(!isNaN(S)&&(S!==0||b.trim().length!==0))return S}throw fxi(N,"number");};
zP.prototype.toString=function(){return uy_(this)};
zP.prototype.enum=function(N,b){var S=!0,P=void 0,H;for(H in N){var K=N[H];S&&(S=!1,P=typeof K==="number"?icE(this,b):Qri(this,b));if(K==P)return P}JSON.stringify(N);return P};
zP.prototype.array=function(N){if(arguments.length==0){var b=JTL(this);b===null&&LOn(this);return b}b=JTL(this);return b==null?N:b};
var JTL=function(N){var b=N.JSC$19698_value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(S){return S.trim()})));
return Up5(N,b)},Up5=function(N,b){var S=N.JSC$19698_key_+"[";
return Array.from(b,function(P,H){return new zP(S+H+"]",P)})};
zP.prototype.object=function(N){var b=this.JSC$19698_value_;if(b==null)return N===void 0&&LOn(this),N;if(typeof b==="object"&&b.constructor===Object){N={};var S=this.JSC$19698_key_+".",P;for(P in b)N[P]=new zP(S+P,b[P]);return N}throw fxi(this,"object");};var Af=function(N){this.list_=ZcE(N)},ZcE=function(N){if(N instanceof Af)N=N.list_;
else if(N[0]instanceof Af){for(var b=new Set,S=0;S<N.length;S++)for(var P=_.O(N[S].list_),H=P.next();!H.done;H=P.next())b.add(H.value);N=b}return[].concat(_.IX(N))};
_.v=Af.prototype;_.v.each=function(N,b,S){((S===void 0?0:S)?mcE:_.NX)(this.list_,N,b);return this};
_.v.size=function(){return this.list_.length};
_.v.isEmpty=function(){return this.list_.length===0};
_.v.get=function(N){return this.list_[N]||null};
_.v.el=function(){return this.list_[0]||null};
_.v.map=function(N,b){return _.gY(this.list_,N,b)};
_.v.equals=function(N){return this===N||_.hb(this.list_,N.list_)};
_.v.first=function(){return this.list_.length==0?null:new X7(this.list_[0])};
_.v.last=function(){return this.list_.length==0?null:new X7(this.list_[this.list_.length-1])};
_.v.find=function(N){var b=[];this.each(function(S){S=S.querySelectorAll(String(N));for(var P=0;P<S.length;P++)b.push(S[P])});
return new Af(b)};
_.v.parent=function(){var N=[];this.each(function(b){(b=b.parentElement||null)&&!_.Z_(N,b)&&N.push(b)});
return new Af(N)};
_.v.children=function(){var N=[];this.each(function(b){b=_.yo(b);for(var S=0;S<b.length;S++)N.push(b[S])});
return new Af(N)};
_.v.filter=function(N){N=_.Cm(this.list_,BUE(N));return new Af(N)};
_.v.closest=function(N){var b=[],S=BUE(N),P=function(H){return _.Gx(H)&&S(H)};
this.each(function(H){(H=_.wY(H,P,!0))&&!_.Z_(b,H)&&b.push(H)});
return new Af(b)};
_.v.next=function(N){return jrQ(this,_.s_Z,N)};
_.v.prev=function(N){return jrQ(this,Gmt,N)};
var jrQ=function(N,b,S){var P=[];var H=S?BUE(S):lxt;N.each(function(K){(K=b(K))&&H(K)&&P.push(K)});
return new Af(P)};
Af.prototype.setClass=function(N){return this.each(function(b){_.s0(b,N)})};
var zlE=function(N,b){return N.each(function(S){_.DN(S,b)})},AT5=function(N,b){return N.each(function(S){_.Iq(S,b)})};
Af.prototype.toggleClass=function(N,b){return b===!0?zlE(this,N):b===!1?AT5(this,N):this.each(function(S){_.K8(S,N)?_.Iq(S,N):_.DN(S,N)})};
Af.prototype.setText=function(N){return this.each(function(b){_.IS(b,N)})};
var XCJ=function(N){N.each(function(b){b.removeAttribute("aria-hidden")})};
Af.prototype.getStyle=function(N){if(this.list_.length>0){var b=this.list_[0],S=b.style[_.av(N)];return typeof S!=="undefined"?S:b.style[_.mz4(b,N)]||""}};
Af.prototype.getData=function(N){if(this.list_.length===0)return new zP(N,null);var b=f7L(this.list_[0],N);return new zP(N,b)};
Af.prototype.focus=function(N){try{N?this.el().focus(N):this.el().focus()}catch(b){}return this};
Af.prototype.click=function(){var N=_.hh(this.el());if(N.createEvent){var b=N.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,N.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(b)}else N=N.createEventObject(),N.clientX=0,N.clientY=0,N.screenX=0,N.screenY=0,N.altKey=!1,N.ctrlKey=!1,N.shiftKey=!1,N.button=0,this.el().fireEvent("onclick",N)};
var EA=function(N,b,S,P){function H(G,a,R){var n=a;a&&a.parentNode&&(n=a.cloneNode(!0));G(n,R)}
P=P===void 0?!1:P;if(N.list_.length==1){var K=N.list_[0],C=function(G){return b(G,K)};
S instanceof Af?S.each(C,void 0,P):Array.isArray(S)?(P?mcE:_.NX)(S,C):C(S);return N}return N.each(function(G){S instanceof Af?S.each(function(a){H(b,a,G)}):Array.isArray(S)?_.NX(S,function(a){H(b,a,G)}):H(b,S,G)})};
_.v=Af.prototype;_.v.append=function(N){return EA(this,function(b,S){b&&S.appendChild(b)},N)};
_.v.appendTo=function(N){(new Af([N])).append(this);return this};
_.v.remove=function(){return EA(this,function(N,b){_.Zg(b)},null)};
_.v.empty=function(){return EA(this,function(N,b){_.E7(b)},null)};
_.v.after=function(N,b){return EA(this,function(S,P){S&&_.Yv(S,P)},N,!(b===void 0||b))};
_.v.before=function(N){return EA(this,function(b,S){b&&_.pL(b,S)},N)};
_.v.replaceWith=function(N){return EA(this,function(b,S){b&&_.Snz(b,S)},N)};
_.v.toggle=function(N){return this.each(function(b){_.OB(b,N)})};
_.v.show=function(){return this.toggle(!0)};
_.v.hide=function(){return this.toggle(!1)};
_.v.trigger=function(N,b,S,P){return EDt(this,N,b,S,P)};
var EDt=function(N,b,S,P,H){return N.each(function(K){_.Bke(_.hh(K)).triggerWizEventInternal(K,b,S,P,H)})},X7=function(N,b){N instanceof Af&&(b=N.list_,N=null);
this.list_=ZcE(N!=null?[N]:b)};
_.Km(X7,Af);_.v=X7.prototype;_.v.children=function(){return new Af(Array.prototype.slice.call(_.yo(this.list_[0])))};
_.v.each=function(N,b){N.call(b,this.list_[0],0);return this};
_.v.size=function(){return 1};
_.v.el=function(){return this.list_[0]};
_.v.first=function(){return this};var ps=function(N,b){b=b===void 0?window:b;this.hostId=N;this.win=b;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19709_previousHtmlOverscroll=this.JSC$19709_previousBodyOverscroll=this.JSC$19709_previousBodyOverflow="";this.eventTarget=new _.J1;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},yTQ=function(N){var b=
pCE(pCE(pCE(new Yw_(78),"po"),"hppp"),"hhc");
b.authUser=Number(_.Vg("SESSION_INDEX","0"));b.colorScheme=N;return b};
ps.prototype.getOrigin=function(){return this.origin?this.origin:_.d_(_.n8(_.W0(new _.DV,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
ps.prototype.getTargetOrigin=function(){return _.d_(_.n8(_.W0(new _.DV,this.scheme),this.domain),this.port)};
ps.prototype.preloadIframe=function(N){var b=this;if(this.iframeLoadPromise===void 0){var S=document.createElement("iframe");this.iframe=S;GBE(S,N);this.iframeLoadPromise=new Promise(function(P,H){var K=!1,C=function(G){G.stopPropagation();S.removeEventListener("error",C);S.removeEventListener("securitypolicyviolation",C);H(Error("yk",{cause:G}))};
S.addEventListener("error",C);S.addEventListener("securitypolicyviolation",C);setTimeout(function(){K||H(Error("zk"))},3E4);
IxQ(b,S,function(){K=!0;S.removeEventListener("error",C);S.removeEventListener("securitypolicyviolation",C);P()})});
DpE(this);N=this.getTargetOrigin().toString();S.setAttribute("allow","camera "+N+"; display-capture "+N);this.parentElement.appendChild(S)}return this.iframeLoadPromise};
var elt=function(N,b){var S,P;return _.r(function(H){if(H.nextAddress==1)return S=SK6(getComputedStyle(N.parentElement).direction==="rtl"),N.parentElement.appendChild(S),document.activeElement instanceof HTMLElement&&(N.elementToFocusAfterClose=document.activeElement),_.u4(H,2),H.yield(N.preloadIframe(b),4);if(H.nextAddress!=2){N.parentElement.removeChild(S);N.JSC$19709_previousBodyOverflow=N.parentElement.style.overflow;N.JSC$19709_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
N.JSC$19709_previousBodyOverscroll=N.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";N.parentElement.style.overscrollBehavior="contain";N.parentElement.style.overflow="hidden";var K=N.iframe;K.style.bottom="0";K.style.border="none";K.style.height="100%";K.style.left="0";K.style.position=N.iframePosition;K.style.right="0";K.style.top="0";K.style.width="100%";K.style.zIndex="2202";K.setAttribute("aria-hidden","false");K.setAttribute("aria-modal","true");
N.opened=!0;V1n(N);return _.su(H,0)}P=_.UE(H);N.parentElement.removeChild(S);vnw(N.isDarkTheme());gDL(N,!1);throw Error("Ak",{cause:P});})},gDL=function(N,b){b=b===void 0?!0:b;
N.iframe!==void 0&&($pL(N),document.documentElement.style.overscrollBehavior=N.JSC$19709_previousHtmlOverscroll,N.parentElement.style.overscrollBehavior=N.JSC$19709_previousBodyOverscroll,N.parentElement.style.overflow=N.JSC$19709_previousBodyOverflow,N.elementToFocusAfterClose!==void 0&&(N.elementToFocusAfterClose.focus(),N.elementToFocusAfterClose=void 0),b?DpE(N):(N.parentElement.removeChild(N.iframe),N.iframe=void 0,N.iframeLoadPromise=void 0,N.mainChannel=void 0),N.opened=!1)},$pL=function(N){N.backgroundElementsAriaHiddenIsNull&&
(XCJ(N.backgroundElementsAriaHiddenIsNull),N.backgroundElementsAriaHiddenIsNull=void 0);
N.backgroundElementsAriaHiddenIsFalse&&(N.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","false")}),N.backgroundElementsAriaHiddenIsFalse=void 0);
N.backgroundElementsWithoutInert&&(N.backgroundElementsWithoutInert.each(function(b){b.removeAttribute("inert")}),N.backgroundElementsWithoutInert=void 0)},V1n=function(N){N.backgroundElementsAriaHiddenIsNull=(new X7(N.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")===null&&b!==N.iframe});
N.backgroundElementsAriaHiddenIsNull.each(function(b){b.setAttribute("aria-hidden","true")});
N.backgroundElementsAriaHiddenIsFalse=(new X7(N.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")==="false"&&b!==N.iframe});
N.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","true")});
N.backgroundElementsWithoutInert=(new X7(N.iframe.parentElement)).children().filter(function(b){return!b.hasAttribute("inert")&&b!==N.iframe});
N.backgroundElementsWithoutInert.each(function(b){b.setAttribute("inert","true")})},DpE=function(N){N=N.iframe;
N.style.bottom="-1000px";N.style.position="fixed";N.style.right="-1000px";N.style.border="";N.style.height="";N.style.left="";N.style.top="";N.style.width="";N.style.zIndex="";N.setAttribute("aria-hidden","true");N.setAttribute("aria-modal","false")};
ps.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Yw_=function(N,b){ps.call(this,Swi[N],b);this.options=[];this.style=""};
_.F(Yw_,ps);var hlO=function(N){N.style="youtube";return N},qwq=function(N,b){N.eventTarget.listen(RlO,b);
return N},wCO=function(N,b){N.eventTarget.listen(cTQ,b);
return N},pCE=function(N,b){N.options.push(b);
return N},Ntw=function(N){var b=[N.getOrigin()];
N.ancestorOrigins&&b.push.apply(b,_.IX(N.ancestorOrigins));var S=new _.DV(N.win.location.href),P=N.startUrl?N.startUrl:N.options.includes("po")?"profile-picture/art":"profile-picture";b=hpJ(_.mr(N.getTargetOrigin(),P),"origin",b);N.startUrl&&_.vW(b,"startPath",N.startUrl);N.authUser>0&&_.vW(b,"authuser",N.authUser);N.pageId!==void 0&&_.vW(b,"pageId",N.pageId);_.vW(b,"hostId",N.hostId);N.jsMode!==void 0&&_.vW(b,"jsmode",N.jsMode);N.rectangleRatio!==void 0&&_.vW(b,"rectangleRatio",N.rectangleRatio);
N.options.length>0&&_.vW(b,"opts",N.options.join(","));try{for(var H=_.O(["utm_source","utm_medium","utm_campaign","utm_content"]),K=H.next();!K.done;K=H.next()){var C=K.value;_.KQ(S,C)&&_.vW(b,C,_.KQ(S,C))}var G,a=(G=N.hl)!=null?G:_.KQ(S,"hl");a!==void 0&&_.vW(b,"hl",a)}catch(R){if(!(R instanceof URIError))throw R;}N.colorScheme&&_.vW(b,"theme",N.colorScheme);N.style&&_.vW(b,"style",N.style);return b},bin=function(N,b){N.mainChannel=_.rP({destination:N.win,
iframe:b,origin:N.getTargetOrigin().toString(),channelName:"ow",onMessage:function(S){S=OcE(S.data);if(b===N.iframe)switch(_.o9(S,1)){case 1:N.eventTarget.dispatchEvent(new mpt);gDL(N);break;case 2:N.eventTarget.dispatchEvent(new nDt(_.xp(S,4),_.xp(S,2),_.o9(S,5),_.k0(S,srQ,6)));break;case 0:var P;N.eventTarget.dispatchEvent(new dpt(_.xp(S,2),(P=_.o9(S,3))!=null?P:0));break;case 3:N.eventTarget.dispatchEvent(new mpt(!0));gDL(N,!1);break;case 4:N.eventTarget.dispatchEvent(new kD_)}}})},IxQ=function(N,
b,S){_.rP({destination:N.win,
iframe:b,origin:_.d_(_.n8(_.W0(new _.DV,N.scheme),N.domain),N.port).toString(),channelName:"owi",onMessage:function(P){b===N.iframe&&(S!==void 0&&S(),bin(N,b),N.opened&&N.mainChannel.send(rTt(GDE())),P.reply(),IxQ(N,b))}})};
Yw_.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ps.prototype.preloadIframe.call(this,Ntw(this).toString()):this.iframeLoadPromise};
Yw_.prototype.openPicker=function(N){var b=this;return _.r(function(S){if(S.nextAddress==1)return b.startUrl=N?N:b.options.includes("po")?"profile-picture/art":"profile-picture",S.yield(elt(b,Ntw(b).toString()),2);if(b.mainChannel){var P=b.mainChannel,H=P.send;var K=GDE();K=_.En(K,2,b.startUrl);H.call(P,rTt(K))}_.Zd(S)})};var SPw=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(SPw,_.rc);_.v=SPw.prototype;_.v.getSize=function(){return ns(this,1)};
_.v.setSize=function(N){return _.ZC(this,1,N)};
_.v.getWidth=function(){return ns(this,12)};
_.v.getHeight=function(){return ns(this,13)};
_.v.setCenterCrop=function(N){return _.lw(this,20,N)};
_.v.getHtml=function(){return _.fm(this,4)};
_.v.getToken=function(){return _.Jg(this,24)};
_.v.setToken=function(N){return _.En(this,24,N)};
_.v.getBackgroundColor=function(){return ns(this,87)};
_.v.hasBackgroundColor=function(){return _.GE(_.kp(this,87))!=null};
_.v.getStoryboardLevel=function(){return ns(this,109)};var YB=function(N){this.JSC$19717_value_=void 0;this.childNodes_={};if(N){var b=_.e6S(N);N=_.RE(N);for(var S=0;S<b.length;S++)this.set(b[S],N[S])}};
YB.prototype.set=function(N,b){PPo(this,N,b,!1)};
YB.prototype.add=function(N,b){PPo(this,N,b,!0)};
var PPo=function(N,b,S,P){for(var H=0;H<b.length;H++){var K=b.charAt(H);N.childNodes_[K]||(N.childNodes_[K]=new YB);N=N.childNodes_[K]}if(P&&N.JSC$19717_value_!==void 0)throw Error("Bk`"+b);N.JSC$19717_value_=S},Hia=function(N,b){for(var S=0;S<b.length;S++)if(N=N.childNodes_[b.charAt(S)],!N)return;
return N};
YB.prototype.get=function(N){return(N=Hia(this,N))?N.JSC$19717_value_:void 0};
YB.prototype.getValues=function(){var N=[];sw_(this,N);return N};
var sw_=function(N,b){N.JSC$19717_value_!==void 0&&b.push(N.JSC$19717_value_);for(var S in N.childNodes_)sw_(N.childNodes_[S],b)};
YB.prototype.getKeys=function(N){var b=[];if(N){for(var S=this,P=0;P<N.length;P++){var H=N.charAt(P);if(!S.childNodes_[H])return[];S=S.childNodes_[H]}KWn(S,N,b)}else KWn(this,"",b);return b};
var KWn=function(N,b,S){N.JSC$19717_value_!==void 0&&S.push(b);for(var P in N.childNodes_)KWn(N.childNodes_[P],b+P,S)};
_.v=YB.prototype;_.v.containsKey=function(N){return this.get(N)!==void 0};
_.v.containsValue=function(N){if(this.JSC$19717_value_===N)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(N))return!0;return!1};
_.v.clear=function(){this.childNodes_={};this.JSC$19717_value_=void 0};
_.v.remove=function(N){for(var b=this,S=[],P=0;P<N.length;P++){var H=N.charAt(P);if(!b.childNodes_[H])throw Error("Ck`"+N);S.push([b,H]);b=b.childNodes_[H]}N=b.JSC$19717_value_;for(delete b.JSC$19717_value_;S.length>0;)if(P=S.pop(),b=P[0],P=P[1],b.childNodes_[P].isEmpty())delete b.childNodes_[P];else break;return N};
_.v.clone=function(){return new YB(this)};
_.v.getCount=function(){return WKa(this.getValues())};
_.v.isEmpty=function(){return this.JSC$19717_value_===void 0&&_.Vm.isEmpty(this.childNodes_)};var Wyt=function(){if(!vAt){var N=vAt=new YB,b;for(b in OiL)N.add(b,OiL[b])}},vAt,yZ=function(N,b){this.types=N;
this.setters=b},OiL={a:new yZ([3,
0],[function(N,b){_.lw(N,21,b)},
function(N,b){_.ZC(N,56,b)}]),
al:new yZ([3],[function(N,b){_.lw(N,74,b)}]),
b:new yZ([3,0],[function(N,b){_.lw(N,23,b)},
function(N,b){_.ZC(N,38,b)}]),
ba:new yZ([0],[function(N,b){_.ZC(N,85,b)}]),
bc:new yZ([0],[function(N,b){_.ZC(N,87,b)}]),
br:new yZ([0],[function(N,b){_.ZC(N,86,b)}]),
c:new yZ([3,0],[function(N,b){_.lw(N,2,b)},
function(N,b){_.ZC(N,39,b)}]),
cc:new yZ([3],[function(N,b){_.lw(N,51,b)}]),
ci:new yZ([3],[function(N,b){_.lw(N,32,b)}]),
ckm:new yZ([3],[function(N,b){_.lw(N,104,b)}]),
cp:new yZ([0],[function(N,b){_.ZC(N,92,b)}]),
cr:new yZ([3],[function(N,b){_.lw(N,108,b)}]),
cv:new yZ([0],[function(N,b){_.ZC(N,94,b)}]),
d:new yZ([3],[function(N,b){_.lw(N,3,b)}]),
dc:new yZ([5],[function(N,b){_.En(N,99,b)}]),
df:new yZ([3],[function(N,b){_.lw(N,80,b)}]),
dv:new yZ([3],[function(N,b){_.lw(N,90,b)}]),
e:new yZ([0],[function(N,b){_.ZC(N,15,b)}]),
em:new yZ([0],[function(N,b){_.ZC(N,107,b)}]),
f:new yZ([4],[function(N,b){_.En(N,16,b)}]),
fg:new yZ([3],[function(N,b){_.lw(N,34,b)}]),
fh:new yZ([3],[function(N,b){_.lw(N,30,b)}]),
fm:new yZ([3],[function(N,b){_.lw(N,84,b)}]),
fo:new yZ([2],[function(N,b){_.t2(N,79,_.hV(b))}]),
ft:new yZ([3],[function(N,b){_.lw(N,50,b)}]),
fv:new yZ([3],[function(N,b){_.lw(N,31,b)}]),
g:new yZ([3],[function(N,b){_.lw(N,14,b)}]),
gce:new yZ([4],[function(N,b){_.En(N,112,b)}]),
gd:new yZ([3],[function(N,b){_.lw(N,83,b)}]),
gm:new yZ([3],[function(N,b){_.lw(N,105,b)}]),
h:new yZ([3,0],[function(N,b){_.lw(N,4,b)},
function(N,b){_.ZC(N,13,b)}]),
i:new yZ([3],[function(N,b){_.lw(N,22,b)}]),
ic:new yZ([0],[function(N,b){_.ZC(N,71,b)}]),
id:new yZ([3],[function(N,b){_.lw(N,70,b)}]),
il:new yZ([3],[function(N,b){_.lw(N,96,b)}]),
ip:new yZ([3],[function(N,b){_.lw(N,54,b)}]),
iv:new yZ([0],[function(N,b){_.zx(N,75,b)}]),
j:new yZ([1],[function(N,b){b=b==null?b:FeL(b);_.t2(N,29,b)}]),
k:new yZ([3,0],[function(N,b){_.lw(N,17,b)},
function(N,b){_.ZC(N,42,b)}]),
l:new yZ([0],[function(N,b){_.ZC(N,44,b)}]),
lf:new yZ([3],[function(N,b){_.lw(N,65,b)}]),
lo:new yZ([3],[function(N,b){_.lw(N,97,b)}]),
m:new yZ([0],[function(N,b){_.ZC(N,63,b)}]),
md:new yZ([3],[function(N,b){_.lw(N,91,b)}]),
mm:new yZ([4],[function(N,b){_.En(N,81,b)}]),
mo:new yZ([3],[function(N,b){_.lw(N,73,b)}]),
mp:new yZ([0],[function(N,b){_.ZC(N,115,b)}]),
mv:new yZ([3],[function(N,b){_.lw(N,66,b)}]),
n:new yZ([3],[function(N,b){N.setCenterCrop(b)}]),
nc:new yZ([3],[function(N,b){_.lw(N,55,b)}]),
nd:new yZ([3],[function(N,b){_.lw(N,53,b)}]),
ng:new yZ([3],[function(N,b){_.lw(N,95,b)}]),
ngm:new yZ([3],[function(N,b){_.lw(N,106,b)}]),
no:new yZ([3],[function(N,b){_.lw(N,37,b)}]),
ns:new yZ([3],[function(N,b){_.lw(N,40,b)}]),
nt0:new yZ([4],[function(N,b){_.En(N,36,b)}]),
ntm:new yZ([3],[function(N,b){_.lw(N,114,b)}]),
nu:new yZ([3],[function(N,b){_.lw(N,46,b)}]),
nw:new yZ([3],[function(N,b){_.lw(N,48,b)}]),
o:new yZ([1,3],[function(N,b){b=b==null?b:FeL(b);_.t2(N,7,b)},
function(N,b){_.lw(N,27,b)}]),
p:new yZ([3,0],[function(N,b){_.lw(N,19,b)},
function(N,b){_.ZC(N,43,b)}]),
pa:new yZ([3],[function(N,b){_.lw(N,61,b)}]),
pc:new yZ([0],[function(N,b){_.ZC(N,88,b)}]),
pd:new yZ([3],[function(N,b){_.lw(N,60,b)}]),
pf:new yZ([3],[function(N,b){_.lw(N,67,b)}]),
pg:new yZ([3],[function(N,b){_.lw(N,72,b)}]),
pi:new yZ([2],[function(N,b){_.t2(N,76,_.hV(b))}]),
pp:new yZ([3],[function(N,b){_.lw(N,52,b)}]),
pt:new yZ([4],[function(N,b){_.En(N,111,b)}]),
q:new yZ([4],[function(N,b){_.En(N,28,b)}]),
r:new yZ([3,0],[function(N,b){_.lw(N,6,b)},
function(N,b){_.ZC(N,26,b)}]),
ra:new yZ([3],[function(N,b){_.lw(N,103,b)}]),
rf:new yZ([3],[function(N,b){_.lw(N,100,b)}]),
rg:new yZ([3],[function(N,b){_.lw(N,59,b)}]),
rh:new yZ([3],[function(N,b){_.lw(N,49,b)}]),
rj:new yZ([3],[function(N,b){_.lw(N,57,b)}]),
ro:new yZ([2],[function(N,b){_.t2(N,78,_.hV(b))}]),
rp:new yZ([3],[function(N,b){_.lw(N,58,b)}]),
rw:new yZ([3],[function(N,b){_.lw(N,35,b)}]),
rwa:new yZ([3],[function(N,b){_.lw(N,64,b)}]),
rwu:new yZ([3],[function(N,b){_.lw(N,41,b)}]),
s:new yZ([3,0],[function(N,b){_.lw(N,33,b)},
function(N,b){N.setSize(b)}]),
sb:new yZ([0],[function(N,b){_.ZC(N,110,b)}]),
sc:new yZ([0],[function(N,b){_.ZC(N,89,b)}]),
sg:new yZ([3],[function(N,b){_.lw(N,82,b)}]),
sl:new yZ([0],[function(N,b){_.ZC(N,109,b)}]),
sm:new yZ([3],[function(N,b){_.lw(N,93,b)}]),
t:new yZ([4],[function(N,b){N.setToken(b)}]),
tm:new yZ([3],[function(N,b){_.lw(N,113,b)}]),
u:new yZ([3],[function(N,b){_.lw(N,18,b)}]),
ut:new yZ([3],[function(N,b){_.lw(N,45,b)}]),
v:new yZ([0],[function(N,b){_.ZC(N,62,b)}]),
vb:new yZ([0],[function(N,b){_.zx(N,68,b)}]),
vf:new yZ([4],[function(N,b){_.En(N,102,b)}]),
vl:new yZ([0],[function(N,b){_.zx(N,69,b)}]),
vm:new yZ([3],[function(N,b){_.lw(N,98,b)}]),
w:new yZ([0],[function(N,b){_.ZC(N,12,b)}]),
x:new yZ([0],[function(N,b){_.ZC(N,9,b)}]),
y:new yZ([0],[function(N,b){_.ZC(N,10,b)}]),
ya:new yZ([2],[function(N,b){_.t2(N,77,_.hV(b))}]),
z:new yZ([0],[function(N,b){_.ZC(N,11,b)}])};
Wyt.prototype.parse=function(N){var b=new SPw,S=new SPw;if(N=="")N=!0;else{N=N.split("-");for(var P=!0,H=0;H<N.length;H++){var K=N[H];if(K.length==0)P=!1;else{var C=K,G=!1;var a=C;var R=C.charAt(0);R!=R.toLowerCase()&&(G=!0,a=C.charAt(0).toLowerCase()+C.substring(1));var n=vAt;for(R=1;R<=a.length;++R){var d=n,m=a.substring(0,R);if(m.length==0?d.isEmpty():!Hia(d,m))break}a=R==1?null:(a=n.get(a.substring(0,R-1)))?{option:C.substring(0,R-1),value:C.substring(R-1),signed:G,attributes:a}:null;if(a){C=
[];G=[];R=!1;for(n=0;n<a.attributes.types.length;n++){d=a.attributes.types[n];var k=a.value;m=H;if(a.signed&&d==1)for(var M=k.length;M<12&&m<N.length-1;)k+="-"+N[m+1],M=k.length,++m;else if(d==2)for(;m<N.length-1&&N[m+1].match(/^[\d\.]/);)k+="-"+N[m+1],++m;M=a.attributes.setters[n];k=CPa(this,d)(a.option,k,b,S,M);if(k===null){R=!0;H=m;break}else C.push(d),G.push(k)}if(!R)for(a=0;a<G.length;a++)n=C[a],k=G[a],Gsn(this,n)(K,k);P=P&&R}else P=!1}}N=P}return new rNL(b,S,N)};
var cNE=function(N,b,S,P,H,K){H(S,b);N=N.charAt(0);K=K(N==N.toUpperCase());H(P,K)};
_.v=Wyt.prototype;_.v.parseAndSetIntOption_=function(N,b,S,P,H){if(b=="")return 0;isFinite(b)&&(b=String(b));b=typeof b==="string"?/^\s*-?0x/i.test(b)?parseInt(b,16):parseInt(b,10):NaN;if(isNaN(b))return 1;cNE(N,b,S,P,H,Number);return null};
_.v.logIntParseError_=function(){};
_.v.parseAndSetFloatOption_=function(N,b,S,P,H){if(b=="")return 0;var K=Number(b);b=K==0&&_.Oe(b)?NaN:K;if(isNaN(b))return 1;cNE(N,b,S,P,H,Number);return null};
_.v.logFloatParseError_=function(){};
_.v.parseAndSetBoolOption_=function(N,b,S,P,H){if(b!="")return 2;cNE(N,!0,S,P,H,Boolean);return null};
_.v.logBoolParseError_=function(){};
_.v.parseAndSetStringOption_=function(N,b,S,P,H){if(b=="")return 0;cNE(N,b,S,P,H,function(K){return K?"1":""});
return null};
_.v.logStringParseError_=function(){};
_.v.parseAndSetUint64Base64Option_=function(N,b,S,P,H){if(b=="")return 0;cNE(N,b,S,P,H,function(K){return K?1:0});
return null};
var CPa=function(N,b){switch(b){case 0:return(0,_.pT)(N.parseAndSetIntOption_,N);case 2:return(0,_.pT)(N.parseAndSetFloatOption_,N);case 3:return(0,_.pT)(N.parseAndSetBoolOption_,N);case 4:return(0,_.pT)(N.parseAndSetStringOption_,N);case 1:return(0,_.pT)(N.parseAndSetUint64Base64Option_,N);default:return function(){}}},Gsn=function(N,b){switch(b){case 0:return(0,_.pT)(N.logIntParseError_,N);
case 2:return(0,_.pT)(N.logFloatParseError_,N);case 3:return(0,_.pT)(N.logBoolParseError_,N);case 4:case 1:return(0,_.pT)(N.logStringParseError_,N);default:return function(){}}},rNL=function(N,b,S){this.valueProto_=N;
this.signatureFlagProto_=b;this.JSC$19729_valid_=S};
rNL.prototype.isValid=function(){return this.JSC$19729_valid_};var rsa=function(N){this.JSC$19730_parser_=null;this.JSC$19730_components_=[];this.JSC$19730_parsedOptions_=null;ay5(this,N)},Rxt=function(N){N.JSC$19730_parser_==null&&(N.JSC$19730_parser_=new Wyt);
return N.JSC$19730_parser_},ay5=function(N,b){N.JSC$19730_parsedOptions_=b?typeof b==="string"?Rxt(N).parse(b):b:Rxt(N).parse("")},IF=function(N,b){return N==b?!1:!0};
_.v=rsa.prototype;_.v.JSC$19732_setCrop=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,_.fm(S,2),_.fm(b.signatureFlagProto_,2))&&_.lw(S,2,N);return this};
_.v.JSC$19732_setCircleCrop=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,WH(S,51),WH(b.signatureFlagProto_,51))&&_.lw(S,51,N);return this};
_.v.JSC$19732_setImageCrop=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,WH(S,32),WH(b.signatureFlagProto_,32))&&_.lw(S,32,N);return this};
_.v.JSC$19732_setHeight=function(N){var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,S.getHeight(),b.signatureFlagProto_.getHeight())&&_.ZC(S,13,N);return this};
_.v.setCenterCrop=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,_.fm(S,20),_.fm(b.signatureFlagProto_,20))&&S.setCenterCrop(N);return this};
_.v.JSC$19732_setSmartCrop=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,_.fm(S,19),_.fm(b.signatureFlagProto_,19))&&_.lw(S,19,N);return this};
_.v.JSC$19732_setPad=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,WH(S,60),WH(b.signatureFlagProto_,60))&&_.lw(S,60,N);return this};
_.v.JSC$19732_setSmartCropUseFace=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,_.fm(S,67),_.fm(b.signatureFlagProto_,67))&&_.lw(S,67,N);return this};
_.v.JSC$19732_setSmartCropNoClip=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,_.fm(S,52),_.fm(b.signatureFlagProto_,52))&&_.lw(S,52,N);return this};
_.v.setSize=function(N){var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,S.getSize(),b.signatureFlagProto_.getSize())&&S.setSize(N);return this};
_.v.setToken=function(N){N=N||void 0;var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,S.getToken(),b.signatureFlagProto_.getToken())&&S.setToken(N);return this};
_.v.JSC$19732_setWidth=function(N){var b=this.JSC$19730_parsedOptions_,S=b.valueProto_;IF(N,S.getWidth(),b.signatureFlagProto_.getWidth())&&_.ZC(S,12,N);return this};
_.v.clearOptions=function(){ay5(this,"");return this};
_.v.build=function(){this.JSC$19730_components_.length=0;var N=this.JSC$19730_parsedOptions_,b=N.valueProto_;N=N.signatureFlagProto_;Dm(this,"s",b.getSize(),N.getSize());Dm(this,"w",b.getWidth(),N.getWidth());VZ(this,"c",_.fm(b,2),_.fm(N,2));VZ(this,"d",_.fm(b,3),_.fm(N,3));Dm(this,"h",b.getHeight(),N.getHeight());VZ(this,"s",WH(b,33),WH(N,33));VZ(this,"h",b.getHtml(),N.getHtml());VZ(this,"p",_.fm(b,19),_.fm(N,19));VZ(this,"pp",_.fm(b,52),_.fm(N,52));VZ(this,"pf",_.fm(b,67),_.fm(N,67));VZ(this,"n",
_.fm(b,20),_.fm(N,20));Dm(this,"r",ns(b,26),ns(N,26));VZ(this,"r",_.fm(b,6),_.fm(N,6));VZ(this,"o",WH(b,27),WH(N,27));var S=_.Lm(b,7,_.mw);gd(this,"o",S,_.Lm(N,7,_.mw));S=_.Lm(b,29,_.mw);gd(this,"j",S,_.Lm(N,29,_.mw));Dm(this,"x",ns(b,9),ns(N,9));Dm(this,"y",ns(b,10),ns(N,10));Dm(this,"z",ns(b,11),ns(N,11));VZ(this,"g",_.fm(b,14),_.fm(N,14));Dm(this,"e",ns(b,15),ns(N,15));gd(this,"f",_.Jg(b,16),_.Jg(N,16));VZ(this,"k",WH(b,17),WH(N,17));VZ(this,"u",WH(b,18),!0);VZ(this,"ut",WH(b,45),!0);VZ(this,"i",
WH(b,22),!0);VZ(this,"a",WH(b,21),WH(N,21));VZ(this,"b",_.fm(b,23),_.fm(N,23));Dm(this,"b",ns(b,38),ns(N,38));Dm(this,"c",ns(b,39),ns(N,39),16,8);gd(this,"q",_.Jg(b,28),_.Jg(N,28));VZ(this,"fh",WH(b,30),WH(N,30));VZ(this,"fv",WH(b,31),WH(N,31));VZ(this,"fg",_.fm(b,34),_.fm(N,34));VZ(this,"ci",WH(b,32),WH(N,32));gd(this,"t",b.getToken(),N.getToken());gd(this,"nt0",_.Jg(b,36),_.Jg(N,36));VZ(this,"rw",_.fm(b,35),_.fm(N,35));VZ(this,"rwu",_.fm(b,41),_.fm(N,41));VZ(this,"rwa",_.fm(b,64),_.fm(N,64));VZ(this,
"nw",_.fm(b,48),_.fm(N,48));VZ(this,"rh",_.fm(b,49),_.fm(N,49));VZ(this,"no",_.fm(b,37),_.fm(N,37));VZ(this,"ns",WH(b,40),WH(N,40));Dm(this,"k",ns(b,42),ns(N,42));Dm(this,"p",ns(b,43),ns(N,43));Dm(this,"l",ns(b,44),ns(N,44));Dm(this,"v",ns(b,62),ns(N,62));VZ(this,"nu",WH(b,46),WH(N,46));VZ(this,"ft",WH(b,50),WH(N,50));VZ(this,"cc",WH(b,51),WH(N,51));VZ(this,"nd",WH(b,53),WH(N,53));VZ(this,"ip",WH(b,54),WH(N,54));VZ(this,"nc",WH(b,55),WH(N,55));Dm(this,"a",ns(b,56),ns(N,56));VZ(this,"rj",WH(b,57),
WH(N,57));VZ(this,"rp",WH(b,58),WH(N,58));VZ(this,"rg",WH(b,59),WH(N,59));VZ(this,"pd",WH(b,60),WH(N,60));VZ(this,"pa",WH(b,61),WH(N,61));Dm(this,"m",ns(b,63),ns(N,63));Dm(this,"vb",dd(b,68),dd(N,68));Dm(this,"vl",dd(b,69),dd(N,69));VZ(this,"lf",WH(b,65),WH(N,65));VZ(this,"mv",WH(b,66),WH(N,66));VZ(this,"id",WH(b,70),WH(N,70));Dm(this,"ic",ns(b,71),!0);VZ(this,"pg",_.fm(b,72),_.fm(N,72));VZ(this,"mo",WH(b,73),WH(N,73));VZ(this,"al",WH(b,74),WH(N,74));Dm(this,"iv",dd(b,75),dd(N,75));Dm(this,"pi",mB(b,
76),mB(N,76));Dm(this,"ya",mB(b,77),mB(N,77));Dm(this,"ro",mB(b,78),mB(N,78));Dm(this,"fo",mB(b,79),mB(N,79));VZ(this,"df",WH(b,80),WH(N,80));gd(this,"mm",_.Jg(b,81),_.Jg(N,81));VZ(this,"sg",WH(b,82),WH(N,82));VZ(this,"gd",WH(b,83),WH(N,83));VZ(this,"fm",WH(b,84),WH(N,84));Dm(this,"ba",ns(b,85),ns(N,85));Dm(this,"br",ns(b,86),ns(N,86));Dm(this,"bc",b.getBackgroundColor(),N.getBackgroundColor(),16,8);Dm(this,"pc",ns(b,88),ns(N,88),16,8);Dm(this,"sc",ns(b,89),ns(N,89),16,8);VZ(this,"dv",WH(b,90),WH(N,
90));VZ(this,"md",WH(b,91),WH(N,91));Dm(this,"cp",ns(b,92),ns(N,92));VZ(this,"sm",WH(b,93),WH(N,93));Dm(this,"cv",ns(b,94),ns(N,94));VZ(this,"ng",WH(b,95),WH(N,95));VZ(this,"il",WH(b,96),WH(N,96));VZ(this,"lo",WH(b,97),WH(N,97));VZ(this,"vm",WH(b,98),WH(N,98));gd(this,"dc",_.Jg(b,99),_.Jg(N,99));VZ(this,"rf",WH(b,100),WH(N,100));gd(this,"vf",_.Jg(b,102),_.Jg(N,102));VZ(this,"ra",_.fm(b,103),_.fm(N,103));VZ(this,"ckm",WH(b,104),WH(N,104));VZ(this,"gm",WH(b,105),WH(N,105));VZ(this,"ngm",WH(b,106),WH(N,
106));Dm(this,"em",ns(b,107),ns(N,107));VZ(this,"cr",WH(b,108),WH(N,108));Dm(this,"sl",b.getStoryboardLevel(),N.getStoryboardLevel());Dm(this,"sb",ns(b,110),ns(N,110));gd(this,"pt",_.Jg(b,111),_.Jg(N,111));gd(this,"gce",_.Jg(b,112),_.Jg(N,112));VZ(this,"tm",WH(b,113),WH(N,113));VZ(this,"ntm",WH(b,114),WH(N,114));Dm(this,"mp",ns(b,115),ns(N,115));return this.JSC$19730_components_.join("-")};
var Dm=function(N,b,S,P,H,K){if(S!=null){var C=H==void 0||H!=10&&H!=16?10:H;S=Number(S).toString(C);H=new qXJ;H.append(C==16?"0x":"");C=H.append;K==void 0?K="":(K-=S.length,K=K<=0?"":(0,_.ySN)("0",K));C.call(H,K);H.append(S);WWE(N,b,H.toString(),!!Number(P))}},VZ=function(N,b,S,P){S&&WWE(N,b,"",!!P)},gd=function(N,b,S,P){S&&WWE(N,b,String(S),!!Number(P))},WWE=function(N,b,S,P){P&&(b=b.charAt(0).toUpperCase()+b.substring(1));
N.JSC$19730_components_.push(b+S)};_.Km(cJ,rsa);_.v=cJ.prototype;_.v.JSC$19732_setCrop=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setCrop.call(this,N)};
_.v.JSC$19732_setHeight=function(N){N=N==null||N<0?void 0:N;N!=null&&this.setSize();return cJ.superClass_.JSC$19732_setHeight.call(this,N)};
_.v.JSC$19732_setImageCrop=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setImageCrop.call(this,N)};
_.v.JSC$19732_setCircleCrop=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setCircleCrop.call(this,N)};
_.v.setSize=function(N){_.D_(N)&&(N=Math.max(N.width,N.height));N=N==null||N<0?void 0:N;N!=null&&(this.JSC$19732_setWidth(),this.JSC$19732_setHeight());return cJ.superClass_.setSize.call(this,N)};
_.v.JSC$19732_setSmartCrop=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setSmartCrop.call(this,N)};
_.v.JSC$19732_setSmartCropNoClip=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setSmartCropNoClip.call(this,N)};
_.v.JSC$19732_setSmartCropUseFace=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setSmartCropUseFace.call(this,N)};
_.v.setCenterCrop=function(N){N&&ew(this);return cJ.superClass_.setCenterCrop.call(this,N)};
_.v.JSC$19732_setPad=function(N){N&&ew(this);return cJ.superClass_.JSC$19732_setPad.call(this,N)};
_.v.JSC$19732_setWidth=function(N){N=N==null||N<0?void 0:N;N!=null&&this.setSize();return cJ.superClass_.JSC$19732_setWidth.call(this,N)};
var nAL=function(N){N.clearOptions();var b=N.JSC$19730_parsedOptions_,S=b.valueProto_;IF(!0,_.fm(S,3),_.fm(b.signatureFlagProto_,3))&&_.lw(S,3,!0);return N},ew=function(N){N.setCenterCrop();
N.JSC$19732_setCircleCrop();N.JSC$19732_setCrop();N.JSC$19732_setImageCrop();N.JSC$19732_setPad();N.JSC$19732_setSmartCrop();N.JSC$19732_setSmartCropNoClip();N.JSC$19732_setSmartCropUseFace()};
cJ.prototype.build=function(){var N=this.JSC$19730_parsedOptions_.valueProto_;WH(N,18)||WH(N,45)?N.getSize()||this.setSize(0):(N=this.JSC$19730_parsedOptions_.valueProto_,N.getSize()||N.getWidth()||N.getHeight()||(this.setSize(),this.JSC$19732_setHeight(),this.JSC$19732_setWidth(),ew(this)));return cJ.superClass_.build.call(this)};var d$J=/^[^\/]*\/\//,m$J=function(N,b){b=b===void 0?!1:b;this.original_=N;this.originalPrefix_="";(N=this.original_.match(d$J))&&N[0]?(this.originalPrefix_=N[0],N=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):N="http://"+this.original_;this.uri_=_.sB(N,!0);this.isFreeformUrl_=b;this.JSC$19736_valid_=!0;this.obfuscated_=!1},ks_=function(N,b){N.JSC$19738_pathPrefix_=N.JSC$19738_pathPrefix_?N.JSC$19738_pathPrefix_+("/"+b):b},$B=function(N){if(N.JSC$19738_components_==
void 0){var b=N.uri_.getPath().substring(1);
N.JSC$19738_pathPrefix_=null;if(N.isFreeformUrl_){N.JSC$19738_components_=[];if((b.match(/=/g)||[]).length>1)return N.JSC$19736_valid_=!1,N.JSC$19738_components_;var S=b.indexOf("=");S!=-1?(N.JSC$19738_components_.push(b.substr(0,S)),N.JSC$19738_components_.push(b.substr(S+1))):N.JSC$19738_components_.push(b);return N.JSC$19738_components_}N.JSC$19738_components_=b.split("/");b=N.JSC$19738_components_.length;b>2&&N.JSC$19738_components_[0]=="u"&&(ks_(N,N.JSC$19738_components_[0]+"/"+N.JSC$19738_components_[1]),
N.JSC$19738_components_.shift(),N.JSC$19738_components_.shift(),b-=2);if(b==0||b==4||b>7)return N.JSC$19736_valid_=!1,N.JSC$19738_components_;if(b==2)ks_(N,N.JSC$19738_components_[0]);else if(N.JSC$19738_components_[0]=="image")ks_(N,N.JSC$19738_components_[0]);else if(b==7||b==3)return N.JSC$19736_valid_=!1,N.JSC$19738_components_;if(b<=3){N.obfuscated_=!0;b==3&&(ks_(N,N.JSC$19738_components_[1]),N.JSC$19738_components_.shift(),--b);--b;S=N.JSC$19738_components_[b];var P=S.indexOf("=");P!=-1&&(N.JSC$19738_components_[b]=
S.substr(0,P),N.JSC$19738_components_.push(S.substr(P+1)))}}return N.JSC$19738_components_};
m$J.prototype.isValid=function(){$B(this);return this.JSC$19736_valid_};
m$J.prototype.isObfuscated=function(){$B(this);return this.obfuscated_};
var TtO=function(N){$B(N);return N.isFreeformUrl_},hf=function(N){$B(N);
N.JSC$19738_pathPrefix_==void 0&&(N.JSC$19738_pathPrefix_=null);return N.JSC$19738_pathPrefix_},tcO=function(N){switch($B(N).length){case 7:return!0;
case 6:return hf(N)==null;case 5:return!1;case 3:return!0;case 2:return hf(N)==null;case 1:return!1;default:return!1}},ql=function(N,b){if(TtO(N))a:{switch(b){case 7:b=0;
break;case 4:if(!tcO(N)){N=null;break a}b=1;break;default:N=null;break a}N=$B(N)[b]}else if(N.isObfuscated())a:{var S=hf(N)!=null?1:0;switch(b){case 6:b=S;break;case 4:if(!tcO(N)){N=null;break a}b=1+S;break;default:N=null;break a}N=$B(N)[b]}else a:{S=hf(N)!=null?1:0;switch(b){case 0:b=S;break;case 1:b=1+S;break;case 2:b=2+S;break;case 3:b=3+S;break;case 4:if(!tcO(N)){N=null;break a}b=4+S;break;case 5:b=tcO(N)?1:0;b=4+S+b;break;default:N=null;break a}N=$B(N)[b]}return N};
m$J.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ql(this,4));return this.options_};var RCn=function(){};
RCn.prototype.parse=function(N,b){return new csE(N,b===void 0?!1:b)};
var csE=function(N,b){m$J.call(this,N,b===void 0?!1:b)};
_.F(csE,m$J);_.Km(nno,cJ);var aKn;nno.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
nno.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var N=nno.superClass_.build.call(this),b=[];hf(this.parsedImageUrl_)!=null&&b.push(hf(this.parsedImageUrl_));var S=TtO(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var P=this.parsedImageUrl_;P.obfuscatedData_==void 0&&(P.obfuscatedData_=ql(P,6));b.push(P.obfuscatedData_+(N?"="+N:""))}else if(S){P=b.push;var H=this.parsedImageUrl_;H.freeformUrlPath_===void 0&&(H.freeformUrlPath_=
ql(H,7));P.call(b,H.freeformUrlPath_);N&&b.push(N)}else P=b.push,H=this.parsedImageUrl_,H.obfuscatedGaiaId_==void 0&&(H.obfuscatedGaiaId_=ql(H,0)),P.call(b,H.obfuscatedGaiaId_),P=b.push,H=this.parsedImageUrl_,H.photoId_==void 0&&(H.photoId_=ql(H,1)),P.call(b,H.photoId_),P=b.push,H=this.parsedImageUrl_,H.imageVersion_==void 0&&(H.imageVersion_=ql(H,2)),P.call(b,H.imageVersion_),P=b.push,H=this.parsedImageUrl_,H.signature_==void 0&&(H.signature_=ql(H,3)),P.call(b,H.signature_),N&&b.push(N),N=b.push,
P=this.parsedImageUrl_,P.filename_==void 0&&(P.filename_=ql(P,5)),N.call(b,P.filename_);b=S?b.join("="):b.join("/");b=_.sB(this.protocolPrefix_+this.JSC$19744_domain_+"/"+b+(this.JSC$19744_query_?"?"+this.JSC$19744_query_:"")).toString();b.startsWith("%3a//")&&(b=b.replace("%3a//","://"));return b};_.Km(aV,_.AB);aV.prototype.JSC$10307_setLabel=function(N){aV.superClass_.JSC$10307_setLabel.call(this,N);return this};
aV.prototype.addUploadMetadata=function(N,b){aV.superClass_.addUploadMetadata.call(this,N,b);return this};var Mc6=function(N){if(N!=="youtubebanner"&&N!=="youtube-channel-banner")throw Error("Dk");aV.call(this,N)};
_.F(Mc6,aV);Mc6.prototype.JSC$10307_setLabel=function(N){aV.prototype.JSC$10307_setLabel.call(this,N);return this};
Mc6.prototype.addUploadMetadata=function(N,b){aV.prototype.addUploadMetadata.call(this,N,b);return this};var Fyi=_.$E(["",""]);var FW5=[0,_.s7,_.eM,_.s7,-1,_.eM,[0,_.$p,_.qW,-1],_.s7,-1];var Bt_=[0,[1,2,3],_.NH,-2];var lyQ=[0,_.s7];var LWQ=_.$E(["viewBox"]),fyn=_.$E(["width"]),uBO=_.$E(["height"]),Qw_=_.$E(["fill"]),x$5=_.$E(["id"]),oAq=_.$E(["x"]),iiL=_.$E(["y"]);lKE.prototype.getLength=function(){return this.parsedData.length};
lKE.prototype.write=function(N){for(var b=0,S=this.parsedData.length;b<S;b++)N.put(this.parsedData[b],8)};
var iXJ=function(N,b){var S=new lKE(b);N.dataList.push(S);S=N.errorCorrectLevel;var P=1,H=encodeURI(b).toString().replace(/%[0-9a-fA-F]{2}/g,"a");b=H.length+(H.length!=b?3:0);H=0;for(var K=wd.length;H<=K;H++){var C=0;switch(S){case 1:C=wd[H][0];break;case 0:C=wd[H][1];break;case 3:C=wd[H][2];break;case 2:C=wd[H][3]}if(b<=C)break;else P++}if(P>wd.length)throw Error("Mk");N.typeNumber=P;N.dataCache=null};
LyO.prototype.isDark=function(N,b){if(N<0||this.moduleCount<=N||b<0||this.moduleCount<=b)throw Error("Ek`"+N+"`"+b);return this.modules[N][b]};
for(var Jst=function(N,b,S){N.moduleCount=N.typeNumber*4+17;N.modules=Array(N.moduleCount);for(var P=0;P<N.moduleCount;P++){N.modules[P]=Array(N.moduleCount);for(var H=0;H<N.moduleCount;H++)N.modules[P][H]=null}JNL(N,0,0);JNL(N,N.moduleCount-7,0);JNL(N,0,N.moduleCount-7);P=U$n[N.typeNumber-1];for(H=0;H<P.length;H++)for(var K=0;K<P.length;K++){var C=P[H],G=P[K];if(N.modules[C][G]==null)for(var a=-2;a<=2;a++)for(var R=-2;R<=2;R++)N.modules[C+a][G+R]=a==-2||a==2||R==-2||R==2||a==0&&R==0?!0:!1}for(P=
8;P<N.moduleCount-8;P++)N.modules[P][6]==null&&(N.modules[P][6]=P%2==0);for(P=8;P<N.moduleCount-8;P++)N.modules[6][P]==null&&(N.modules[6][P]=P%2==0);P=N.errorCorrectLevel<<3|S;for(H=P<<10;Ns(H)-Ns(1335)>=0;)H^=1335<<Ns(H)-Ns(1335);P=(P<<10|H)^21522;for(H=0;H<15;H++)K=!b&&(P>>H&1)==1,H<6?N.modules[H][8]=K:H<8?N.modules[H+1][8]=K:N.modules[N.moduleCount-15+H][8]=K;for(H=0;H<15;H++)K=!b&&(P>>H&1)==1,H<8?N.modules[8][N.moduleCount-H-1]=K:H<9?N.modules[8][15-H-1+1]=K:N.modules[8][15-H-1]=K;N.modules[N.moduleCount-
8][8]=!b;if(N.typeNumber>=7){P=N.typeNumber;for(H=P<<12;Ns(H)-Ns(7973)>=0;)H^=7973<<Ns(H)-Ns(7973);P=P<<12|H;for(H=0;H<18;H++)K=!b&&(P>>H&1)==1,N.modules[Math.floor(H/3)][H%3+N.moduleCount-8-3]=K;for(H=0;H<18;H++)K=!b&&(P>>H&1)==1,N.modules[H%3+N.moduleCount-8-3][Math.floor(H/3)]=K}if(N.dataCache==null){H=N.typeNumber;K=N.dataList;b=N.errorCorrectLevel;P=ZiL(H,b);if(P==void 0)throw Error("Lk`"+H+"`"+b);C=P.length/3;b=[];for(G=0;G<C;G++){a=P[G*3];R=P[G*3+1];for(var n=P[G*3+2],d=0;d<a;d++)b.push(new fK_(R,
n))}P=new u6J;for(C=0;C<K.length;C++)G=K[C],P.put(G.mode,4),P.put(G.getLength(),jwt(G.mode,H)),G.write(P);for(C=H=0;C<b.length;C++)H+=b[C].dataCount;if(P.length>H*8)throw Error("Fk`"+P.length+"`"+H*8);for(P.length+4<=H*8&&P.put(0,4);P.length%8!=0;)zxJ(P,!1);for(;!(P.length>=H*8);){P.put(236,8);if(P.length>=H*8)break;P.put(17,8)}K=H=R=0;C=Array(b.length);G=Array(b.length);for(a=0;a<b.length;a++){d=b[a].dataCount;var m=b[a].totalCount-d;H=Math.max(H,d);K=Math.max(K,m);C[a]=Array(d);for(n=0;n<C[a].length;n++)C[a][n]=
255&P.buffer[n+R];R+=d;n=m;d=new RV([1],0);for(m=0;m<n;m++)d=d.multiply(new RV([1,AN6(m)],0));n=d;d=(new RV(C[a],n.getLength()-1)).mod(n);G[a]=Array(n.getLength()-1);for(n=0;n<G[a].length;n++)m=n+d.getLength()-G[a].length,G[a][n]=m>=0?d.get(m):0}for(n=P=0;n<b.length;n++)P+=b[n].totalCount;P=Array(P);for(n=R=0;n<H;n++)for(a=0;a<b.length;a++)n<C[a].length&&(P[R++]=C[a][n]);for(n=0;n<K;n++)for(a=0;a<b.length;a++)n<G[a].length&&(P[R++]=G[a][n]);N.dataCache=P}b=N.dataCache;P=-1;H=N.moduleCount-1;K=7;C=
0;for(G=N.moduleCount-1;G>0;G-=2)for(G==6&&G--;;){for(a=0;a<2;a++)N.modules[H][G-a]==null&&(R=!1,C<b.length&&(R=(b[C]>>>K&1)==1),Xyn(S,H,G-a)&&(R=!R),N.modules[H][G-a]=R,K--,K==-1&&(C++,K=7));H+=P;if(H<0||N.moduleCount<=H){H-=P;P=-P;break}}},JNL=function(N,b,S){for(var P=-1;P<=7;P++)if(!(b+P<=-1||N.moduleCount<=b+P))for(var H=-1;H<=7;H++)S+H<=-1||N.moduleCount<=S+H||(N.modules[b+P][S+H]=0<=P&&P<=6&&(H==0||H==6)||0<=H&&H<=6&&(P==0||P==6)||2<=P&&P<=4&&2<=H&&H<=4?!0:!1)},Uni=function(N){for(var b=0,
S=0,P=0;P<8;P++){Jst(N,!0,P);
var H=N;for(var K=H.moduleCount,C=0,G=0;G<K;G++)for(var a=0;a<K;a++){for(var R=0,n=H.isDark(G,a),d=-1;d<=1;d++)if(!(G+d<0||K<=G+d))for(var m=-1;m<=1;m++)a+m<0||K<=a+m||(d!=0||m!=0)&&n==H.isDark(G+d,a+m)&&R++;R>5&&(C+=3+R-5)}for(G=0;G<K-1;G++)for(a=0;a<K-1;a++)if(R=0,H.isDark(G,a)&&R++,H.isDark(G+1,a)&&R++,H.isDark(G,a+1)&&R++,H.isDark(G+1,a+1)&&R++,R==0||R==4)C+=3;for(G=0;G<K;G++)for(a=0;a<K-6;a++)H.isDark(G,a)&&!H.isDark(G,a+1)&&H.isDark(G,a+2)&&H.isDark(G,a+3)&&H.isDark(G,a+4)&&!H.isDark(G,a+5)&&
H.isDark(G,a+6)&&(C+=40);for(a=0;a<K;a++)for(G=0;G<K-6;G++)H.isDark(G,a)&&!H.isDark(G+1,a)&&H.isDark(G+2,a)&&H.isDark(G+3,a)&&H.isDark(G+4,a)&&!H.isDark(G+5,a)&&H.isDark(G+6,a)&&(C+=40);for(a=R=0;a<K;a++)for(G=0;G<K;G++)H.isDark(G,a)&&R++;H=C+=Math.abs(100*R/K/K-50)/5*10;if(P==0||b>H)b=H,S=P}return S},U$n=[[],
[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,
154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],Ns=function(N){for(var b=0;N!=0;)b++,N>>>=1;return b},Xyn=function(N,b,S){switch(N){case 0:return(b+S)%2==0;
case 1:return b%2==0;case 2:return S%3==0;case 3:return(b+S)%3==0;case 4:return(Math.floor(b/2)+Math.floor(S/3))%2==0;case 5:return b*S%2+b*S%3==0;case 6:return(b*S%2+b*S%3)%2==0;case 7:return(b*S%3+(b+S)%2)%2==0;default:throw Error("Gk`"+N);}},jwt=function(N,b){if(1<=b&&b<10)switch(N){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Hk`"+N);}else if(b<27)switch(N){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Hk`"+N);}else if(b<41)switch(N){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Hk`"+N);}else throw Error("Ik`"+b);},pyq=function(N){if(N<1)throw Error("Jk`"+N);
return EA6[N]},AN6=function(N){for(;N<0;)N+=255;
for(;N>=256;)N-=255;return bc[N]},bc=Array(256),EA6=Array(256),YPw=0;YPw<8;YPw++)bc[YPw]=1<<YPw;
for(var Si=8;Si<256;Si++)bc[Si]=bc[Si-4]^bc[Si-5]^bc[Si-6]^bc[Si-8];for(var yNn=0;yNn<255;yNn++)EA6[bc[yNn]]=yNn;RV.prototype.get=function(N){return this.num[N]};
RV.prototype.getLength=function(){return this.num.length};
RV.prototype.multiply=function(N){for(var b=Array(this.getLength()+N.getLength()-1),S=0;S<this.getLength();S++)for(var P=0;P<N.getLength();P++)b[S+P]^=AN6(pyq(this.get(S))+pyq(N.get(P)));return new RV(b,0)};
RV.prototype.mod=function(N){if(this.getLength()-N.getLength()<0)return this;for(var b=pyq(this.get(0))-pyq(N.get(0)),S=Array(this.getLength()),P=0;P<this.getLength();P++)S[P]=this.get(P);for(P=0;P<N.getLength();P++)S[P]^=AN6(pyq(N.get(P))+b);return(new RV(S,0)).mod(N)};
var Iya=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,
20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,
50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,
118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,
48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,
25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],ZiL=function(N,b){switch(b){case 1:return Iya[(N-1)*4];case 0:return Iya[(N-1)*4+1];case 3:return Iya[(N-1)*4+2];case 2:return Iya[(N-1)*4+3]}};
u6J.prototype.get=function(N){return(this.buffer[Math.floor(N/8)]>>>7-N%8&1)==1};
u6J.prototype.put=function(N,b){for(var S=0;S<b;S++)zxJ(this,(N>>>b-S-1&1)==1)};
var zxJ=function(N,b){var S=Math.floor(N.length/8);N.buffer.length<=S&&N.buffer.push(0);b&&(N.buffer[S]|=128>>>N.length%8);N.length++},wd=[[17,
14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],
[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],onE=function(){var N=function(b,S){this.JSC$19771__el=b;this.JSC$19771__htOption=S};
N.prototype.draw=function(b){function S(n,d){n=document.createElementNS("http://www.w3.org/2000/svg",n);for(var m in d)d.hasOwnProperty(m)&&(m==="href"?Len(n,d[m]):_.RX([_.ko(LWQ),_.ko(fyn),_.ko(uBO),_.ko(Qw_),_.ko(x$5),_.ko(oAq),_.ko(iiL)],n,m,d[m]));return n}
var P=this.JSC$19771__htOption,H=this.JSC$19771__el,K=b.moduleCount;this.clear();var C=S("svg",{viewBox:"0 0 "+String(K)+" "+String(K),width:"100%",height:"100%",fill:P.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});H.appendChild(C);C.appendChild(S("rect",{fill:P.colorLight,width:"100%",height:"100%"}));C.appendChild(S("rect",{fill:P.colorDark,width:"1",height:"1",id:"template"}));for(var G=0;G<K;G++)for(var a=0;a<K;a++)if(b.isDark(G,a)){var R=S("use",{x:String(G),y:String(a),href:"#template"});
C.appendChild(R)}};
N.prototype.clear=function(){for(;this.JSC$19771__el.hasChildNodes();)this.JSC$19771__el.removeChild(this.JSC$19771__el.lastChild)};
return N}(),xnt=document.documentElement.tagName.toLowerCase()==="svg"?onE:typeof CanvasRenderingContext2D!="undefined"?function(){var N=function(b,S){this._bIsPainted=!1;
Q3o();this.JSC$19771__htOption=S;this._elCanvas=document.createElement("canvas");this._elCanvas.width=S.width;this._elCanvas.height=S.height;b.appendChild(this._elCanvas);this.JSC$19771__el=b;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19771__el.appendChild(this._elImage);this._bSupportDataURI=null};
N.prototype._onMakeImage=function(){var b=this._elCanvas.toDataURL("image/png");this._elImage.src=b;this._elImage.style.display="block";this._elCanvas.style.display="none"};
N.prototype._safeSetDataURI=function(b,S){var P=this;P._fFail=S;P._fSuccess=b;P._bSupportDataURI===null?(b=_.U5("IMG"),S=function(){P._bSupportDataURI=!1;P._fFail&&P._fFail.call(P)},b.onabort=S,b.onerror=S,b.onload=function(){P._bSupportDataURI=!0;
P._fSuccess&&P._fSuccess.call(P)},b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):P._bSupportDataURI===!0&&P._fSuccess?P._fSuccess.call(P):P._bSupportDataURI===!1&&P._fFail&&P._fFail.call(P)};
N.prototype.draw=function(b){var S=this._oContext,P=this.JSC$19771__htOption,H=b.moduleCount,K=P.width/H,C=P.height/H,G=Math.round(K),a=Math.round(C);this._elImage.style.display="none";this.clear();for(var R=0;R<H;R++)for(var n=0;n<H;n++){var d=b.isDark(R,n),m=n*K,k=R*C;S.strokeStyle=d?P.colorDark:P.colorLight;S.lineWidth=1;S.fillStyle=d?P.colorDark:P.colorLight;S.fillRect(m,k,K,C);S.strokeRect(Math.floor(m)+.5,Math.floor(k)+.5,G,a);S.strokeRect(Math.ceil(m)-.5,Math.ceil(k)-.5,G,a)}this._bIsPainted=
!0};
N.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
N.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
N.prototype.round=function(b){return b?Math.floor(b*1E3)/1E3:b};
return N}():function(){var N=function(b,S){this.JSC$19771__el=b;
this.JSC$19771__htOption=S};
N.prototype.draw=function(b){for(var S=this.JSC$19771__htOption,P=this.JSC$19771__el,H=b.moduleCount,K=Math.floor(S.width/H),C=Math.floor(S.height/H),G=['<table style="border:0;border-collapse:collapse;">'],a=0;a<H;a++){G.push("<tr>");for(var R=0;R<H;R++)G.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+K+"px;height:"+C+"px;background-color:"+(b.isDark(a,R)?S.colorDark:S.colorLight)+';"></td>');G.push("</tr>")}G.push("</table>");b=G.join("");b=_.Jvk(_.ZgO,b);_.aX(P,b);
b=P.childNodes[0];H=(S.width-b.offsetWidth)/2;K=(S.height-b.offsetHeight)/2;H>0&&K>0&&(b.style.margin=K+"px "+H+"px")};
N.prototype.clear=function(){this.JSC$19771__el.textContent=""};
return N}();
ZXi.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19774__android||this.JSC$19774__android>=3)&&this._oDrawing.makeImage()};
ZXi.prototype.clear=function(){this._oDrawing.clear()};
_.Ps.QRCode=ZXi;var D$E={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Vco=function(){};
Vco.prototype.stringify=function(N){return _.Ps.JSON.stringify(N,void 0)};
Vco.prototype.parse=function(N){return _.Ps.JSON.parse(N,void 0)};var gA_=function(){_.uW.call(this,"z")};
_.Km(gA_,_.uW);var exL=function(){_.uW.call(this,"y")};
_.Km(exL,_.uW);var $$Q=null,hxa=function(){return $$Q=$$Q||new _.J1},qP_=function(N){_.uW.call(this,"serverreachability",N)};
_.Km(qP_,_.uW);var wyi=function(N){var b=hxa();b.dispatchEvent(new qP_(b,N))},N2J=function(N,b){_.uW.call(this,"statevent",N);
this.stat=b};
_.Km(N2J,_.uW);var PB=function(N){var b=hxa();b.dispatchEvent(new N2J(b,N))},bG6=function(N,b,S,P){_.uW.call(this,"timingevent",N);
this.size=b;this.rtt=S;this.retries=P};
_.Km(bG6,_.uW);var SQw=function(N,b,S){var P=hxa();P.dispatchEvent(new bG6(P,N,b,S))},Pno=function(N,b){if(typeof N!=="function")throw Error("Nk");
return _.Ps.setTimeout(function(){N()},b)};var HB=function(){this.redactEnabled_=!0};
HB.prototype.disableRedact=function(){this.redactEnabled_=!1};
var HGq=function(N,b,S,P,H,K){N.info(function(){if(N.redactEnabled_)if(K){var C="";for(var G=K.split("&"),a=0;a<G.length;a++){var R=G[a].split("=");if(R.length>1){var n=R[0];R=R[1];var d=n.split("_");C=d.length>=2&&d[1]=="type"?C+(n+"="+R+"&"):C+(n+"=redacted&")}}}else C=null;else C=K;return"XMLHTTP REQ ("+P+") [attempt "+H+"]: "+b+"\n"+S+"\n"+C})},sfQ=function(N,b,S,P,H,K,C){N.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+H+"]: "+b+"\n"+S+"\n"+K+" "+C})},sC=function(N,b,S,P){N.info(function(){return"XMLHTTP TEXT ("+
b+"): "+KDo(N,S)+(P?" "+P:"")})},vga=function(N,b){N.info(function(){return"TIMEOUT: "+b})};
HB.prototype.debug=function(){};
HB.prototype.info=function(){};
HB.prototype.warning=function(){};
var KDo=function(N,b){if(!N.redactEnabled_)return b;if(!b)return null;try{var S=JSON.parse(b);if(S)for(var P=0;P<S.length;P++)if(Array.isArray(S[P])){var H=S[P];if(!(H.length<2)){var K=H[1];if(Array.isArray(K)&&!(K.length<1)){var C=K[0];if(C!="noop"&&C!="stop"&&C!="close")for(var G=1;G<K.length;G++)K[G]=""}}}return(0,_.Id)(S)}catch(a){return N.debug("Exception parsing expected JS array - probably was not JS"),b}};var K0=function(N,b,S,P,H){this.JSC$19796_channel_=N;this.JSC$19796_channelDebug_=b;this.sid_=S;this.JSC$19796_rid_=P;this.JSC$19796_retryId_=H||1;this.JSC$19796_eventHandler_=new _.fx(this);this.timeout_=45E3;this.JSC$19796_extraHeaders_=null;this.JSC$19796_successful_=!1;this.JSC$19796_postData_=this.JSC$19796_requestUri_=this.JSC$19796_baseUri_=this.JSC$19796_type_=this.JSC$19796_requestStartTime_=this.JSC$19796_watchDogTimeoutTime_=this.JSC$19796_watchDogTimerId_=null;this.JSC$19796_pendingMessages_=
[];this.JSC$19796_xmlHttp_=null;this.JSC$19796_xmlHttpChunkStart_=0;this.JSC$19796_lastError_=this.JSC$19796_verb_=null;this.JSC$19796_lastStatusCode_=-1;this.JSC$19796_cancelled_=!1;this.JSC$19796_readyStateChangeThrottleMs_=0;this.JSC$19796_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new OGL},OGL=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Cn_=function(N,b){switch(N){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Glq={},rD5={};
K0.prototype.setTimeout=function(N){this.timeout_=N};
var aRJ=function(N,b,S){N.JSC$19796_type_=1;N.JSC$19796_baseUri_=_.B0(b.clone());N.JSC$19796_postData_=S;N.decodeChunks_=!0;cDa(N,null)},cDa=function(N,b){N.JSC$19796_requestStartTime_=Date.now();
RYa(N);N.JSC$19796_requestUri_=N.JSC$19796_baseUri_.clone();hpJ(N.JSC$19796_requestUri_,"t",N.JSC$19796_retryId_);N.JSC$19796_xmlHttpChunkStart_=0;var S=N.JSC$19796_channel_.JSC$19815_supportsCrossDomainXhrs_;N.fetchResponseState_=new OGL;N.JSC$19796_xmlHttp_=WD6(N.JSC$19796_channel_,S?b:null,!N.JSC$19796_postData_);N.JSC$19796_readyStateChangeThrottleMs_>0&&(N.JSC$19796_readyStateChangeThrottle_=new _.GR((0,_.pT)(N.JSC$19800_xmlHttpHandler_,N,N.JSC$19796_xmlHttp_),N.JSC$19796_readyStateChangeThrottleMs_));
N.JSC$19796_eventHandler_.listen(N.JSC$19796_xmlHttp_,"readystatechange",N.JSC$19800_readyStateChangeHandler_);b=N.JSC$19796_extraHeaders_?_.Vm.clone(N.JSC$19796_extraHeaders_):{};N.JSC$19796_postData_?(N.JSC$19796_verb_||(N.JSC$19796_verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",N.JSC$19796_xmlHttp_.send(N.JSC$19796_requestUri_,N.JSC$19796_verb_,N.JSC$19796_postData_,b)):(N.JSC$19796_verb_="GET",N.JSC$19796_xmlHttp_.send(N.JSC$19796_requestUri_,N.JSC$19796_verb_,null,b));wyi(1);
HGq(N.JSC$19796_channelDebug_,N.JSC$19796_verb_,N.JSC$19796_requestUri_,N.JSC$19796_rid_,N.JSC$19796_retryId_,N.JSC$19796_postData_)};
K0.prototype.JSC$19800_readyStateChangeHandler_=function(N){N=N.target;var b=this.JSC$19796_readyStateChangeThrottle_;b&&_.Vy(N)==3?(this.JSC$19796_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$19800_xmlHttpHandler_(N)};
K0.prototype.JSC$19800_xmlHttpHandler_=function(N){try{N==this.JSC$19796_xmlHttp_?ngi(this):this.JSC$19796_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$19796_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),dZo(this)}finally{}};
var ngi=function(N){var b=_.Vy(N.JSC$19796_xmlHttp_),S=N.JSC$19796_xmlHttp_.JSC$10029_lastErrorCode_,P=N.JSC$19796_xmlHttp_.getStatus();if(!(b<3||b==3&&!dZo(N))){N.JSC$19796_cancelled_||b!=4||S==7||(S==8||P<=0?wyi(3):wyi(2));mZE(N);var H=N.JSC$19796_xmlHttp_.getStatus();N.JSC$19796_lastStatusCode_=H;S=klE(N);dZo(N)||N.JSC$19796_channelDebug_.debug(function(){return"No response text for uri "+N.JSC$19796_requestUri_+" status "+H});
N.JSC$19796_successful_=H==200;sfQ(N.JSC$19796_channelDebug_,N.JSC$19796_verb_,N.JSC$19796_requestUri_,N.JSC$19796_rid_,N.JSC$19796_retryId_,b,H);if(N.JSC$19796_successful_){if(N.decodeInitialResponse_&&!N.initialResponseDecoded_)if(P=T2E(N))sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,P,"Initial handshake response via X-HTTP-Initial-Response"),N.initialResponseDecoded_=!0,t$E(N,P);else{N.JSC$19796_successful_=!1;N.JSC$19796_lastError_=3;PB(12);N.JSC$19796_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
N.JSC$19796_rid_+")");vB(N);M$5(N);return}N.decodeChunks_?FDE(N,b,S):(sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,S,null),t$E(N,S));b==4&&vB(N);N.JSC$19796_successful_&&!N.JSC$19796_cancelled_&&(b==4?B2t(N.JSC$19796_channel_,N):(N.JSC$19796_successful_=!1,RYa(N)))}else ep5(N.JSC$19796_xmlHttp_),H==400&&S.indexOf("Unknown SID")>0?(N.JSC$19796_lastError_=3,PB(12),N.JSC$19796_channelDebug_.warning("XMLHTTP Unknown SID ("+N.JSC$19796_rid_+")")):(N.JSC$19796_lastError_=0,PB(13),N.JSC$19796_channelDebug_.warning("XMLHTTP Bad status "+
H+" ("+N.JSC$19796_rid_+")")),vB(N),M$5(N)}},T2E=function(N){return N.JSC$19796_xmlHttp_&&(N=KaQ(N.JSC$19796_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Oe(N)?N:null},klE=function(N){if(!lR6(N))return N.JSC$19796_xmlHttp_.getResponseText();
var b=N.JSC$19796_xmlHttp_.getResponse();if(b==="")return"";var S="",P=b.length,H=_.Vy(N.JSC$19796_xmlHttp_)==4;if(!N.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return vB(N),M$5(N),"";N.fetchResponseState_.textDecoder=new _.Ps.TextDecoder}for(var K=0;K<P;K++)N.fetchResponseState_.responseArrivedForFetch=!0,S+=N.fetchResponseState_.textDecoder.decode(b[K],{stream:!(H&&K==P-1)});b.length=0;N.fetchResponseState_.responseBuffer+=S;N.JSC$19796_xmlHttpChunkStart_=0;return N.fetchResponseState_.responseBuffer},
dZo=function(N){return N.JSC$19796_xmlHttp_?N.fetchResponseState_.responseArrivedForFetch?!0:!(!N.JSC$19796_xmlHttp_.getResponseText()&&!N.JSC$19796_xmlHttp_.getResponse()):!1},lR6=function(N){return N.JSC$19796_xmlHttp_?N.JSC$19796_verb_=="GET"&&N.JSC$19796_type_!=2&&N.JSC$19796_channel_.usesFetchStreams_:!1},FDE=function(N,b,S){for(var P=!0,H;!N.JSC$19796_cancelled_&&N.JSC$19796_xmlHttpChunkStart_<S.length;)if(H=LD5(N,S),H==rD5){b==4&&(N.JSC$19796_lastError_=4,PB(14),P=!1);
sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,null,"[Incomplete Response]");break}else if(H==Glq){N.JSC$19796_lastError_=4;PB(15);sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,S,"[Invalid Chunk]");P=!1;break}else sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,H,null),t$E(N,H);lR6(N)&&N.JSC$19796_xmlHttpChunkStart_!=0&&(N.fetchResponseState_.responseBuffer=N.fetchResponseState_.responseBuffer.slice(N.JSC$19796_xmlHttpChunkStart_),N.JSC$19796_xmlHttpChunkStart_=0);b!=4||S.length!=0||N.fetchResponseState_.responseArrivedForFetch||
(N.JSC$19796_lastError_=1,PB(16),P=!1);N.JSC$19796_successful_=N.JSC$19796_successful_&&P;P?S.length>0&&!N.firstByteReceived_&&(N.firstByteReceived_=!0,b=N.JSC$19796_channel_,b.JSC$19815_backChannelRequest_==N&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$19815_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+S.length),fRQ(b),b.bpDetectionDone_=!0,PB(11))):(sC(N.JSC$19796_channelDebug_,N.JSC$19796_rid_,S,"[Invalid Chunked Response]"),vB(N),M$5(N))},LD5=function(N,
b){var S=N.JSC$19796_xmlHttpChunkStart_,P=b.indexOf("\n",S);
if(P==-1)return rD5;S=Number(b.substring(S,P));if(isNaN(S))return Glq;P+=1;if(P+S>b.length)return rD5;b=b.slice(P,P+S);N.JSC$19796_xmlHttpChunkStart_=P+S;return b};
K0.prototype.cancel=function(){this.JSC$19796_cancelled_=!0;vB(this)};
var RYa=function(N){N.JSC$19796_watchDogTimeoutTime_=Date.now()+N.timeout_;uo5(N,N.timeout_)},uo5=function(N,b){if(N.JSC$19796_watchDogTimerId_!=null)throw Error("Ok");
N.JSC$19796_watchDogTimerId_=Pno((0,_.pT)(N.JSC$19800_onWatchDogTimeout_,N),b)},mZE=function(N){N.JSC$19796_watchDogTimerId_&&(_.Ps.clearTimeout(N.JSC$19796_watchDogTimerId_),N.JSC$19796_watchDogTimerId_=null)};
K0.prototype.JSC$19800_onWatchDogTimeout_=function(){this.JSC$19796_watchDogTimerId_=null;var N=Date.now();N-this.JSC$19796_watchDogTimeoutTime_>=0?(vga(this.JSC$19796_channelDebug_,this.JSC$19796_requestUri_),this.JSC$19796_type_!=2&&(wyi(3),PB(17)),vB(this),this.JSC$19796_lastError_=2,M$5(this)):(this.JSC$19796_channelDebug_.warning("WatchDog timer called too early"),uo5(this,this.JSC$19796_watchDogTimeoutTime_-N))};
var M$5=function(N){N.JSC$19796_channel_.state_==0||N.JSC$19796_cancelled_||B2t(N.JSC$19796_channel_,N)},vB=function(N){mZE(N);
_.Wv(N.JSC$19796_readyStateChangeThrottle_);N.JSC$19796_readyStateChangeThrottle_=null;N.JSC$19796_eventHandler_.removeAll();if(N.JSC$19796_xmlHttp_){var b=N.JSC$19796_xmlHttp_;N.JSC$19796_xmlHttp_=null;b.abort();b.dispose()}};
K0.prototype.getLastError=function(){return this.JSC$19796_lastError_};
var t$E=function(N,b){try{var S=N.JSC$19796_channel_;if(S.state_!=0&&(S.JSC$19815_backChannelRequest_==N||Qfo(S.forwardChannelRequestPool_,N)))if(!N.initialResponseDecoded_&&Qfo(S.forwardChannelRequestPool_,N)&&S.state_==3){try{var P=S.wireCodec_.JSC$19810_parser_.parse(b)}catch(G){P=null}if(Array.isArray(P)&&P.length==3){b=P;if(b[0]==0)a:if(S.JSC$19815_channelDebug_.debug("Server claims our backchannel is missing."),S.JSC$19815_backChannelTimerId_)S.JSC$19815_channelDebug_.debug("But we are currently starting the request.");
else{if(S.JSC$19815_backChannelRequest_)if(S.JSC$19815_backChannelRequest_.JSC$19796_requestStartTime_+3E3<N.JSC$19796_requestStartTime_)xZt(S),ogQ(S);else break a;else S.JSC$19815_channelDebug_.warning("We do not have a BackChannel established");iGt(S);PB(18)}else{S.JSC$19815_lastPostResponseArrayId_=b[1];var H=S.JSC$19815_lastPostResponseArrayId_-S.JSC$19815_lastArrayId_;if(0<H){var K=b[2];S.JSC$19815_channelDebug_.debug(K+" bytes (in "+H+" arrays) are outstanding on the BackChannel");K<37500&&
S.enableStreaming_&&S.JSC$19815_backChannelRetryCount_==0&&!S.JSC$19815_deadBackChannelTimerId_&&(S.JSC$19815_deadBackChannelTimerId_=Pno((0,_.pT)(S.JSC$19817_onBackChannelDead_,S),6E3))}}if(JDn(S.forwardChannelRequestPool_)<=1&&S.forwardChannelFlushedCallback_){try{S.forwardChannelFlushedCallback_()}catch(G){}S.forwardChannelFlushedCallback_=void 0}}else S.JSC$19815_channelDebug_.debug("Bad POST response data returned"),OC(S,11)}else if((N.initialResponseDecoded_||S.JSC$19815_backChannelRequest_==
N)&&xZt(S),!_.Oe(b)){var C=S.wireCodec_.JSC$19810_parser_.parse(b);S.onInput_(C,N)}wyi(4)}catch(G){}};var UZ6=function(N,b){this.JSC$19803_mapId=N;this.map=b;this.context=null};var ZG5=function(N){this.maxPoolSizeConfigured_=N||10;_.Ps.PerformanceNavigationTiming?(N=_.Ps.performance.getEntriesByType("navigation"),N=N.length>0&&(N[0].nextHopProtocol=="hq"||N[0].nextHopProtocol=="h2")):N=!!(_.Ps.chrome&&_.Ps.chrome.loadTimes&&_.Ps.chrome.loadTimes()&&_.Ps.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19806_maxSize_=N?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19806_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19806_request_=null;this.JSC$19806_pendingMessages_=
[]},jfa=function(N){return N.JSC$19806_request_?!0:N.requestPool_?N.requestPool_.size>=N.JSC$19806_maxSize_:!1},JDn=function(N){return N.JSC$19806_request_?1:N.requestPool_?N.requestPool_.size:0},Qfo=function(N,b){return N.JSC$19806_request_?N.JSC$19806_request_==b:N.requestPool_?N.requestPool_.has(b):!1},zYO=function(N,b){N.requestPool_?N.requestPool_.add(b):N.JSC$19806_request_=b},AD6=function(N,b){N.JSC$19806_request_&&N.JSC$19806_request_==b?N.JSC$19806_request_=null:N.requestPool_&&N.requestPool_.has(b)&&
N.requestPool_.delete(b)};
ZG5.prototype.cancel=function(){this.JSC$19806_pendingMessages_=Xtn(this);if(this.JSC$19806_request_)this.JSC$19806_request_.cancel(),this.JSC$19806_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var N=_.O(this.requestPool_.values()),b=N.next();!b.done;b=N.next())b.value.cancel();this.requestPool_.clear()}};
var Xtn=function(N){if(N.JSC$19806_request_!=null)return N.JSC$19806_pendingMessages_.concat(N.JSC$19806_request_.JSC$19796_pendingMessages_);if(N.requestPool_!=null&&N.requestPool_.size!==0){var b=N.JSC$19806_pendingMessages_;N=_.O(N.requestPool_.values());for(var S=N.next();!S.done;S=N.next())b=b.concat(S.value.JSC$19796_pendingMessages_);return b}return _.pa(N.JSC$19806_pendingMessages_)},EgE=function(N,b){N.JSC$19806_pendingMessages_=N.JSC$19806_pendingMessages_.concat(b)};var ptQ=function(N,b){var S=new HB;S.debug("TestLoadImage: loading "+N);if(_.Ps.Image){var P=new Image;P.onload=_.Rm(C0,S,"TestLoadImage: loaded",!0,b,P);P.onerror=_.Rm(C0,S,"TestLoadImage: error",!1,b,P);P.onabort=_.Rm(C0,S,"TestLoadImage: abort",!1,b,P);P.ontimeout=_.Rm(C0,S,"TestLoadImage: timeout",!1,b,P);_.Ps.setTimeout(function(){if(P.ontimeout)P.ontimeout()},1E4);
P.src=N}else b(!1)},YQt=function(N,b){var S=new HB,P=new AbortController,H=setTimeout(function(){P.abort();
C0(S,"TestPingServer: timeout",!1,b)},1E4);
fetch(N,{signal:P.signal}).then(function(K){clearTimeout(H);K.ok?C0(S,"TestPingServer: ok",!0,b):C0(S,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(H);
C0(S,"TestPingServer: error",!1,b)})},C0=function(N,b,S,P,H){try{N.debug(b),H&&(H.onload=null,H.onerror=null,H.onabort=null,H.ontimeout=null),P(S)}catch(K){}};var yDq=function(){this.JSC$19810_parser_=new Vco};var IRo=function(N,b,S){return S&&S.internalChannelParams?S.internalChannelParams[N]||b:b},GG=function(N){this.serverVersion_=0;
this.JSC$19815_outgoingMaps_=[];this.JSC$19815_channelDebug_=new HB;this.JSC$19815_hostPrefix_=this.JSC$19815_backChannelUri_=this.JSC$19815_forwardChannelUri_=this.JSC$19815_path_=this.JSC$19815_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19815_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19815_extraHeaders_=null;this.JSC$19815_nextMapId_=this.JSC$19815_nextRid_=0;this.JSC$19815_failFast_=IRo("failFast",!1,N);this.enableStreaming_=this.JSC$19815_deadBackChannelTimerId_=
this.JSC$19815_backChannelTimerId_=this.JSC$19815_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19815_lastPostResponseArrayId_=this.JSC$19815_lastArrayId_=-1;this.JSC$19815_backChannelAttemptId_=this.JSC$19815_backChannelRetryCount_=this.JSC$19815_forwardChannelRetryCount_=0;this.JSC$19815_baseRetryDelayMs_=IRo("baseRetryDelayMs",5E3,N);this.JSC$19815_retryDelaySeedMs_=IRo("retryDelaySeedMs",1E4,N);this.JSC$19815_forwardChannelMaxRetries_=
IRo("forwardChannelMaxRetries",2,N);this.JSC$19815_forwardChannelRequestTimeoutMs_=IRo("forwardChannelRequestTimeoutMs",2E4,N);this.JSC$19815_xmlHttpFactory_=N&&N.xmlHttpFactory||void 0;this.networkTestUrl_=N&&N.networkTestUrl||void 0;this.usesFetchStreams_=N&&N.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19815_supportsCrossDomainXhrs_=N&&N.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ZG5(N&&N.concurrentRequestLimit);this.wireCodec_=new yDq;
this.fastHandshake_=N&&N.fastHandshake||!1;this.encodeInitMessageHeaders_=N&&N.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19815_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=N&&N.blockingHandshake||!1;N&&N.disableRedact&&this.JSC$19815_channelDebug_.disableRedact();N&&N.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&N&&N.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;N&&N.longPollingTimeout&&N.longPollingTimeout>0&&(this.longPollingTimeout_=N.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
GG.prototype.JSC$19817_channelVersion_=8;GG.prototype.state_=1;
GG.prototype.connect=function(N,b,S,P){this.JSC$19815_channelDebug_.debug("connect()");PB(0);this.JSC$19815_path_=N;this.JSC$19815_extraParams_=b||{};S&&P!==void 0&&(this.JSC$19815_extraParams_.OSID=S,this.JSC$19815_extraParams_.OAID=P);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19815_channelDebug_.debug("connectChannel_()");N=DZ6(this,null,this.JSC$19815_path_);this.JSC$19815_channelDebug_.debug("GetForwardChannelUri: "+N);this.JSC$19815_forwardChannelUri_=N;V$t(this)};
GG.prototype.disconnect=function(){this.JSC$19815_channelDebug_.debug("disconnect()");ggo(this);if(this.state_==3){var N=this.JSC$19815_nextRid_++,b=this.JSC$19815_forwardChannelUri_.clone();_.vW(b,"SID",this.sid_);_.vW(b,"RID",N);_.vW(b,"TYPE","terminate");eY_(this,b);N=new K0(this,this.JSC$19815_channelDebug_,this.sid_,N);N.JSC$19796_type_=2;N.JSC$19796_baseUri_=_.B0(b.clone());b=!1;if(_.Ps.navigator&&_.Ps.navigator.sendBeacon)try{b=_.Ps.navigator.sendBeacon(N.JSC$19796_baseUri_.toString(),"")}catch(S){}!b&&
_.Ps.Image&&((new Image).src=N.JSC$19796_baseUri_,b=!0);b||(N.JSC$19796_xmlHttp_=WD6(N.JSC$19796_channel_,null),N.JSC$19796_xmlHttp_.send(N.JSC$19796_baseUri_));N.JSC$19796_requestStartTime_=Date.now();RYa(N)}$Zw(this)};
var ogQ=function(N){N.JSC$19815_backChannelRequest_&&(fRQ(N),N.JSC$19815_backChannelRequest_.cancel(),N.JSC$19815_backChannelRequest_=null)},ggo=function(N){ogQ(N);
N.JSC$19815_backChannelTimerId_&&(_.Ps.clearTimeout(N.JSC$19815_backChannelTimerId_),N.JSC$19815_backChannelTimerId_=null);xZt(N);N.forwardChannelRequestPool_.cancel();N.JSC$19815_forwardChannelTimerId_&&(typeof N.JSC$19815_forwardChannelTimerId_==="number"&&_.Ps.clearTimeout(N.JSC$19815_forwardChannelTimerId_),N.JSC$19815_forwardChannelTimerId_=null)};
GG.prototype.getState=function(){return this.state_};
var V$t=function(N){jfa(N.forwardChannelRequestPool_)||N.JSC$19815_forwardChannelTimerId_||(N.JSC$19815_forwardChannelTimerId_=!0,_.ZI(N.JSC$19817_onStartForwardChannelTimer_,N),N.JSC$19815_forwardChannelRetryCount_=0)},qQt=function(N,b){if(JDn(N.forwardChannelRequestPool_)>=N.forwardChannelRequestPool_.JSC$19806_maxSize_-(N.JSC$19815_forwardChannelTimerId_?1:0))return!1;
if(N.JSC$19815_forwardChannelTimerId_)return N.JSC$19815_channelDebug_.debug("Use the retry request that is already scheduled."),N.JSC$19815_outgoingMaps_=b.JSC$19796_pendingMessages_.concat(N.JSC$19815_outgoingMaps_),!0;if(N.state_==1||N.state_==2||N.JSC$19815_forwardChannelRetryCount_>=(N.JSC$19815_failFast_?0:N.JSC$19815_forwardChannelMaxRetries_))return!1;N.JSC$19815_channelDebug_.debug("Going to retry POST");N.JSC$19815_forwardChannelTimerId_=Pno((0,_.pT)(N.JSC$19817_onStartForwardChannelTimer_,
N,b),hY5(N,N.JSC$19815_forwardChannelRetryCount_));N.JSC$19815_forwardChannelRetryCount_++;return!0};
GG.prototype.JSC$19817_onStartForwardChannelTimer_=function(N){if(this.JSC$19815_forwardChannelTimerId_)if(this.JSC$19815_forwardChannelTimerId_=null,this.JSC$19815_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!N){this.JSC$19815_channelDebug_.debug("open_()");this.JSC$19815_nextRid_=Math.floor(Math.random()*1E5);N=this.JSC$19815_nextRid_++;var b=new K0(this,this.JSC$19815_channelDebug_,"",N),S=this.JSC$19815_extraHeaders_;this.initHeaders_&&(S?(S=_.Vm.clone(S),_.Vm.extend(S,this.initHeaders_)):
S=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(b.JSC$19796_extraHeaders_=S,S=null);var P;if(this.fastHandshake_)a:{for(var H=P=0;H<this.JSC$19815_outgoingMaps_.length;H++){b:{var K=this.JSC$19815_outgoingMaps_[H];if("__data__"in K.map&&(K=K.map.__data__,typeof K==="string")){K=K.length;break b}K=void 0}if(K===void 0)break;P+=K;if(P>4096){P=H;break a}if(P===4096||H===this.JSC$19815_outgoingMaps_.length-1){P=H+1;break a}}P=1E3}else P=1E3;P=wtE(this,b,P);
H=this.JSC$19815_forwardChannelUri_.clone();_.vW(H,"RID",N);_.vW(H,"CVER",22);this.httpSessionIdParam_&&_.vW(H,"X-HTTP-Session-Id",this.httpSessionIdParam_);eY_(this,H);S&&(this.encodeInitMessageHeaders_?P="headers="+_.w8(eP_(S))+"&"+P:this.httpHeadersOverwriteParam_&&$4_(H,this.httpHeadersOverwriteParam_,S));zYO(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&_.vW(H,"TYPE","init");this.fastHandshake_?(_.vW(H,"$req",P),_.vW(H,"SID","null"),b.decodeInitialResponse_=!0,aRJ(b,H,null)):aRJ(b,
H,P);this.state_=2}}else this.state_==3&&(N?NDJ(this,N):this.JSC$19815_outgoingMaps_.length==0?this.JSC$19815_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):jfa(this.forwardChannelRequestPool_)||(NDJ(this),this.JSC$19815_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var NDJ=function(N,b){var S;b?S=b.JSC$19796_rid_:S=N.JSC$19815_nextRid_++;var P=N.JSC$19815_forwardChannelUri_.clone();_.vW(P,"SID",N.sid_);_.vW(P,"RID",S);_.vW(P,"AID",N.JSC$19815_lastArrayId_);eY_(N,P);N.httpHeadersOverwriteParam_&&N.JSC$19815_extraHeaders_&&$4_(P,N.httpHeadersOverwriteParam_,N.JSC$19815_extraHeaders_);S=new K0(N,N.JSC$19815_channelDebug_,N.sid_,S,N.JSC$19815_forwardChannelRetryCount_+1);N.httpHeadersOverwriteParam_===null&&(S.JSC$19796_extraHeaders_=N.JSC$19815_extraHeaders_);
b&&(N.JSC$19815_outgoingMaps_=b.JSC$19796_pendingMessages_.concat(N.JSC$19815_outgoingMaps_));b=wtE(N,S,1E3);S.setTimeout(Math.round(N.JSC$19815_forwardChannelRequestTimeoutMs_*.5)+Math.round(N.JSC$19815_forwardChannelRequestTimeoutMs_*.5*Math.random()));zYO(N.forwardChannelRequestPool_,S);aRJ(S,P,b)},eY_=function(N,b){N.JSC$19815_extraParams_&&_.Vm.forEach(N.JSC$19815_extraParams_,function(S,P){_.vW(b,P,S)});
N.handler_&&_.Vm.forEach({},function(S,P){_.vW(b,P,S)})},wtE=function(N,b,S){S=Math.min(N.JSC$19815_outgoingMaps_.length,S);
var P=N.handler_?(0,_.pT)(N.handler_.JSC$19821_badMapError,N.handler_,N):null;a:{for(var H=N.JSC$19815_outgoingMaps_,K=-1;;){var C=["count="+S];K==-1?S>0?(K=H[0].JSC$19803_mapId,C.push("ofs="+K)):K=0:C.push("ofs="+K);for(var G=!0,a=0;a<S;a++){var R=H[a].JSC$19803_mapId,n=H[a].map;R-=K;if(R<0)K=Math.max(0,H[a].JSC$19803_mapId-100),G=!1;else try{R="req"+R+"_"||"";try{var d=n instanceof Map?n:Object.entries(n);for(var m=_.O(d),k=m.next();!k.done;k=m.next()){var M=_.O(k.value),l=M.next().value,u=M.next().value,
J=u;_.D_(u)&&(J=(0,_.Id)(u));C.push(R+l+"="+encodeURIComponent(J))}}catch(Z){throw C.push(R+"type="+encodeURIComponent("_badmap")),Z;}}catch(Z){P&&P(n)}}if(G){d=C.join("&");break a}}d=void 0}N=N.JSC$19815_outgoingMaps_.splice(0,S);b.JSC$19796_pendingMessages_=N;return d},bNn=function(N){N.JSC$19815_backChannelRequest_||N.JSC$19815_backChannelTimerId_||(N.JSC$19815_backChannelAttemptId_=1,_.ZI(N.JSC$19817_onStartBackChannelTimer_,N),N.JSC$19815_backChannelRetryCount_=0)},iGt=function(N){if(N.JSC$19815_backChannelRequest_||
N.JSC$19815_backChannelTimerId_||N.JSC$19815_backChannelRetryCount_>=3)return!1;
N.JSC$19815_channelDebug_.debug("Going to retry GET");N.JSC$19815_backChannelAttemptId_++;N.JSC$19815_backChannelTimerId_=Pno((0,_.pT)(N.JSC$19817_onStartBackChannelTimer_,N),hY5(N,N.JSC$19815_backChannelRetryCount_));N.JSC$19815_backChannelRetryCount_++;return!0};
GG.prototype.JSC$19817_onStartBackChannelTimer_=function(){this.JSC$19815_backChannelTimerId_=null;SMJ(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19815_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19815_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19815_backChannelRequest_+" "+this.handshakeRttMs_);else{var N=4*this.handshakeRttMs_;this.JSC$19815_channelDebug_.info("BP detection timer enabled: "+N);this.bpDetectionTimerId_=Pno((0,_.pT)(this.onBpDetectionTimer_,
this),N)}};
GG.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19815_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19815_backChannelRequest_.JSC$19796_xmlHttp_!=null){var N=this.JSC$19815_backChannelRequest_.JSC$19796_xmlHttp_.getResponseText();N&&this.JSC$19815_channelDebug_.warning("Timer should have been cancelled : "+N)}this.JSC$19815_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;PB(10);ogQ(this);SMJ(this)}else this.JSC$19815_channelDebug_.warning("Invalid operation.")};
var fRQ=function(N){N.bpDetectionTimerId_!=null&&(N.JSC$19815_channelDebug_.debug("Cancel the BP detection timer."),_.Ps.clearTimeout(N.bpDetectionTimerId_),N.bpDetectionTimerId_=null)},SMJ=function(N){N.JSC$19815_channelDebug_.debug("Creating new HttpRequest");
N.JSC$19815_backChannelRequest_=new K0(N,N.JSC$19815_channelDebug_,N.sid_,"rpc",N.JSC$19815_backChannelAttemptId_);N.httpHeadersOverwriteParam_===null&&(N.JSC$19815_backChannelRequest_.JSC$19796_extraHeaders_=N.JSC$19815_extraHeaders_);N.JSC$19815_backChannelRequest_.JSC$19796_readyStateChangeThrottleMs_=0;var b=N.JSC$19815_backChannelUri_.clone();_.vW(b,"RID","rpc");_.vW(b,"SID",N.sid_);_.vW(b,"AID",N.JSC$19815_lastArrayId_);_.vW(b,"CI",N.enableStreaming_?"0":"1");!N.enableStreaming_&&N.longPollingTimeout_&&
_.vW(b,"TO",N.longPollingTimeout_);_.vW(b,"TYPE","xmlhttp");eY_(N,b);N.httpHeadersOverwriteParam_&&N.JSC$19815_extraHeaders_&&$4_(b,N.httpHeadersOverwriteParam_,N.JSC$19815_extraHeaders_);N.backChannelRequestTimeoutMs_&&N.JSC$19815_backChannelRequest_.setTimeout(N.backChannelRequestTimeoutMs_);var S=N.JSC$19815_backChannelRequest_,P=N.JSC$19815_hostPrefix_;S.JSC$19796_type_=1;S.JSC$19796_baseUri_=_.B0(b.clone());S.JSC$19796_postData_=null;S.decodeChunks_=!0;cDa(S,P);N.JSC$19815_channelDebug_.debug("New Request created")};
GG.prototype.JSC$19817_onBackChannelDead_=function(){this.JSC$19815_deadBackChannelTimerId_!=null&&(this.JSC$19815_deadBackChannelTimerId_=null,ogQ(this),iGt(this),PB(19))};
var xZt=function(N){N.JSC$19815_deadBackChannelTimerId_!=null&&(_.Ps.clearTimeout(N.JSC$19815_deadBackChannelTimerId_),N.JSC$19815_deadBackChannelTimerId_=null)},B2t=function(N,b){N.JSC$19815_channelDebug_.debug("Request complete");
var S=null;if(N.JSC$19815_backChannelRequest_==b){xZt(N);fRQ(N);N.JSC$19815_backChannelRequest_=null;var P=2}else if(Qfo(N.forwardChannelRequestPool_,b))S=b.JSC$19796_pendingMessages_,AD6(N.forwardChannelRequestPool_,b),P=1;else return;if(N.state_!=0)if(b.JSC$19796_successful_)P==1?(SQw(b.JSC$19796_postData_?b.JSC$19796_postData_.length:0,Date.now()-b.JSC$19796_requestStartTime_,N.JSC$19815_forwardChannelRetryCount_),V$t(N)):bNn(N);else{var H=b.JSC$19796_lastStatusCode_,K=b.getLastError();if(K==3||
K==0&&H>0)N.JSC$19815_channelDebug_.debug("Not retrying due to error type"),H>200&&(N.errorResponseStatusCode_=b.JSC$19796_lastStatusCode_);else{N.JSC$19815_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Cn_(K,N.errorResponseStatusCode_)});
if(P==1&&qQt(N,b)||P==2&&iGt(N))return;N.JSC$19815_channelDebug_.debug("Exceeded max number of retries")}S&&S.length>0&&EgE(N.forwardChannelRequestPool_,S);N.JSC$19815_channelDebug_.debug("Error: HTTP request failed");switch(K){case 1:OC(N,5);break;case 4:OC(N,10);break;case 3:OC(N,6);break;default:OC(N,2)}}},hY5=function(N,b){var S=N.JSC$19815_baseRetryDelayMs_+Math.floor(Math.random()*N.JSC$19815_retryDelaySeedMs_);
N.isActive()||(N.JSC$19815_channelDebug_.debug("Inactive channel"),S*=2);return S*b};
GG.prototype.onInput_=function(N,b){for(var S=0;S<N.length;S++){var P=N[S],H=P[0];if(H<=this.JSC$19815_lastArrayId_)this.JSC$19815_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+H+", lastArrayId: "+this.JSC$19815_lastArrayId_);else if(H>this.JSC$19815_lastArrayId_+1&&this.JSC$19815_lastArrayId_>-1&&this.JSC$19815_channelDebug_.warning("Received non-consecutive message with arrayId: "+H+", lastArrayId: "+this.JSC$19815_lastArrayId_),this.JSC$19815_lastArrayId_=H,
P=P[1],this.state_==2)if(P[0]=="c"){this.sid_=P[1];this.JSC$19815_hostPrefix_=P[2];H=P[3];H!=null&&(this.JSC$19817_channelVersion_=H,this.JSC$19815_channelDebug_.info("VER="+this.JSC$19817_channelVersion_));H=P[4];H!=null&&(this.serverVersion_=H,this.JSC$19815_channelDebug_.info("SVER="+this.serverVersion_));P=P[5];P!=null&&typeof P==="number"&&P>0&&(this.backChannelRequestTimeoutMs_=P*=1.5,this.JSC$19815_channelDebug_.info("backChannelRequestTimeoutMs_="+P));if(P=b.JSC$19796_xmlHttp_){var K=KaQ(P,
"X-Client-Wire-Protocol");K&&(H=this.forwardChannelRequestPool_,!H.requestPool_&&(_.Go(K,"spdy")||_.Go(K,"quic")||_.Go(K,"h2"))&&(H.JSC$19806_maxSize_=H.maxPoolSizeConfigured_,H.requestPool_=new Set,H.JSC$19806_request_&&(zYO(H,H.JSC$19806_request_),H.JSC$19806_request_=null)));this.httpSessionIdParam_&&((P=KaQ(P,"X-HTTP-Session-Id"))?(this.httpSessionId_=P,_.vW(this.JSC$19815_forwardChannelUri_,this.httpSessionIdParam_,P)):this.JSC$19815_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19821_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.JSC$19796_requestStartTime_,this.JSC$19815_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));P=b;H=DZ6(this,this.JSC$19815_supportsCrossDomainXhrs_?this.JSC$19815_hostPrefix_:null,this.JSC$19815_path_);this.JSC$19815_channelDebug_.debug("GetBackChannelUri: "+H);this.JSC$19815_backChannelUri_=H;P.initialResponseDecoded_?(this.JSC$19815_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
AD6(this.forwardChannelRequestPool_,P),H=P,(K=this.backChannelRequestTimeoutMs_)&&H.setTimeout(K),H.JSC$19796_watchDogTimerId_&&(mZE(H),RYa(H)),this.JSC$19815_backChannelRequest_=P):bNn(this);this.JSC$19815_outgoingMaps_.length>0&&V$t(this)}else P[0]!="stop"&&P[0]!="close"||OC(this,7);else this.state_==3&&(P[0]=="stop"||P[0]=="close"?P[0]=="stop"?OC(this,7):this.disconnect():P[0]!="noop"&&this.handler_&&this.handler_.JSC$19821_channelHandleArray(P),this.JSC$19815_backChannelRetryCount_=0)}};
var OC=function(N,b){N.JSC$19815_channelDebug_.info("Error code "+b);if(b==2){var S=(0,_.pT)(N.testNetworkCallback_,N),P=N.networkTestUrl_,H=!P;P=new _.DV(P||"//www.google.com/images/cleardot.gif");_.Ps.location&&_.Ps.location.protocol=="http"||_.W0(P,"https");_.B0(P);H?ptQ(P.toString(),S):YQt(P.toString(),S)}else PB(2);N.onError_(b)};
GG.prototype.testNetworkCallback_=function(N){N?(this.JSC$19815_channelDebug_.info("Successfully pinged google.com"),PB(2)):(this.JSC$19815_channelDebug_.info("Failed to ping google.com"),PB(1))};
GG.prototype.onError_=function(N){this.JSC$19815_channelDebug_.debug("HttpChannel: error - "+N);this.state_=0;this.handler_&&this.handler_.JSC$19821_channelError(N);$Zw(this);ggo(this)};
var $Zw=function(N){N.state_=0;N.nonAckedMapsAtChannelClose_=[];if(N.handler_){var b=Xtn(N.forwardChannelRequestPool_);if(b.length!=0||N.JSC$19815_outgoingMaps_.length!=0)N.JSC$19815_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+N.JSC$19815_outgoingMaps_.length}),_.IU(N.nonAckedMapsAtChannelClose_,b),_.IU(N.nonAckedMapsAtChannelClose_,N.JSC$19815_outgoingMaps_),N.forwardChannelRequestPool_.JSC$19806_pendingMessages_.length=0,_.pa(N.JSC$19815_outgoingMaps_),
N.JSC$19815_outgoingMaps_.length=0;
N.handler_.JSC$19821_channelClosed()}},P$6=function(N){if(N.state_==0)return N.nonAckedMapsAtChannelClose_;
var b=[];_.IU(b,Xtn(N.forwardChannelRequestPool_));_.IU(b,N.JSC$19815_outgoingMaps_);return b},DZ6=function(N,b,S){var P=_.sB(S);
P.JSC$10265_domain_!=""?(b&&_.n8(P,b+"."+P.JSC$10265_domain_),_.d_(P,P.JSC$10265_port_)):(P=_.Ps.location,P=dkq(P.protocol,b?b+"."+P.hostname:P.hostname,+P.port,S));b=N.httpSessionIdParam_;S=N.httpSessionId_;b&&S&&_.vW(P,b,S);_.vW(P,"VER",N.JSC$19817_channelVersion_);eY_(N,P);return P},WD6=function(N,b,S){if(b&&!N.JSC$19815_supportsCrossDomainXhrs_)throw Error("Pk");
b=N.usesFetchStreams_&&!N.JSC$19815_xmlHttpFactory_?new _.DI(new ITq({streamBinaryChunks:S})):new _.DI(N.JSC$19815_xmlHttpFactory_);b.JSC$10029_withCredentials_=N.JSC$19815_supportsCrossDomainXhrs_;return b};
GG.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var HN5=function(){};
_.v=HN5.prototype;_.v.JSC$19821_channelOpened=function(){};
_.v.JSC$19821_channelHandleArray=function(){};
_.v.JSC$19821_channelError=function(){};
_.v.JSC$19821_channelClosed=function(){};
_.v.isActive=function(){return!0};
_.v.JSC$19821_badMapError=function(){};var sHi=function(){},cB=function(N,b){_.J1.call(this);
this.JSC$19824_channel_=new GG(b);this.JSC$19824_url_=N;this.messageUrlParams_=b&&b.messageUrlParams||null;N=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(N?_.Vm.set(N,"X-Client-Protocol","webchannel"):N=_.Vm.create("X-Client-Protocol","webchannel"));this.JSC$19824_channel_.JSC$19815_extraHeaders_=N;N=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(N?_.Vm.set(N,"X-WebChannel-Content-Type",b.messageContentType):N=_.Vm.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(N?_.Vm.set(N,"X-WebChannel-Client-Profile",b.clientProfile):N=_.Vm.create("X-WebChannel-Client-Profile",b.clientProfile));this.JSC$19824_channel_.initHeaders_=N;(N=b&&b.httpHeadersOverwriteParam)&&!_.Oe(N)&&(this.JSC$19824_channel_.httpHeadersOverwriteParam_=N);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!_.Oe(b)&&(this.JSC$19824_channel_.httpSessionIdParam_=b,_.Vm.containsKey(this.messageUrlParams_,
b)&&_.Vm.remove(this.messageUrlParams_,b));this.channelHandler_=new rN(this)};
_.Km(cB,_.J1);cB.prototype.open=function(){this.JSC$19824_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19824_channel_.JSC$19815_supportsCrossDomainXhrs_=!0);this.JSC$19824_channel_.connect(this.JSC$19824_url_,this.messageUrlParams_||void 0)};
cB.prototype.close=function(){this.JSC$19824_channel_.disconnect()};
cB.prototype.send=function(N){var b=this.JSC$19824_channel_;if(typeof N==="string"){var S={};S.__data__=N;N=S}else this.sendRawJson_&&(S={},S.__data__=(0,_.Id)(N),N=S);b.JSC$19815_outgoingMaps_.push(new UZ6(b.JSC$19815_nextMapId_++,N));b.state_==3&&V$t(b)};
cB.prototype.disposeInternal=function(){this.JSC$19824_channel_.handler_=null;delete this.channelHandler_;this.JSC$19824_channel_.disconnect();delete this.JSC$19824_channel_;cB.superClass_.disposeInternal.call(this)};
var KL5=function(N){gA_.call(this);N.__headers__&&(this.headers=N.__headers__,this.statusCode=N.__status__,delete N.__headers__,delete N.__status__);var b=N.__sm__;b?this.data=(this.metadataKey=_.Vm.getAnyKey(b))?_.Vm.get(b,this.metadataKey):b:this.data=N};
_.Km(KL5,gA_);var vuw=function(N){exL.call(this);this.status=1;this.errorCode=N};
_.Km(vuw,exL);var rN=function(N){this.JSC$19831_channel_=N};
_.Km(rN,HN5);rN.prototype.JSC$19821_channelOpened=function(){this.JSC$19831_channel_.dispatchEvent("w")};
rN.prototype.JSC$19821_channelHandleArray=function(N){this.JSC$19831_channel_.dispatchEvent(new KL5(N))};
rN.prototype.JSC$19821_channelError=function(N){this.JSC$19831_channel_.dispatchEvent(new vuw(N))};
rN.prototype.JSC$19821_channelClosed=function(){this.JSC$19831_channel_.dispatchEvent("x")};
var ONn=function(N,b){this.transportChannel_=N;this.JSC$19834_channel_=b},C$a=function(N){return P$6(N.JSC$19834_channel_).map(function(b){var S=N.transportChannel_;
b=b.map;"__data__"in b?(b=b.__data__,S=S.sendRawJson_?(0,_.FoE)(b):b):S=b;return S})};
ONn.prototype.commit=function(N){this.JSC$19834_channel_.forwardChannelFlushedCallback_=N};var az=function(N,b){if(N instanceof az)this.array_=N.array_;else{var S;if(S=_.yu(N))a:{for(var P=S=0;P<N.length;P++){if(!_.yu(N[P])||S>0&&N[P].length!=S){S=!1;break a}for(var H=0;H<N[P].length;H++)if(typeof N[P][H]!=="number"){S=!1;break a}S==0&&(S=N[P].length)}S=S!=0}if(S)this.array_=_.pa(N);else if(N instanceof _.Jh)this.array_=GF6(N.height,N.width);else if(typeof N==="number"&&typeof b==="number"&&N>0&&b>0)this.array_=GF6(N,b);else throw Error("Rk");}this.size_=new _.Jh(this.array_[0].length,
this.array_.length)},rRO=function(N,b,S){for(var P=0;P<N.getSize().height;P++)for(var H=0;H<N.getSize().width;H++)b.call(S,N.array_[P][H],P,H,N)},cRE=function(N,b){var S=new az(N.getSize());
rRO(N,function(P,H,K){S.array_[H][K]=b.call(void 0,P,H,K,N)});
return S},GF6=function(N,b){for(var S=[],P=0;P<N;P++){S[P]=[];
for(var H=0;H<b;H++)S[P][H]=0}return S};
az.prototype.add=function(N){if(!C3E(this.size_,N.getSize()))throw Error("Sk");return cRE(this,function(b,S,P){return b+N.array_[S][P]})};
az.prototype.equals=function(N,b){if(this.size_.width!=N.size_.width||this.size_.height!=N.size_.height)return!1;b=b||0;for(var S=0;S<this.size_.height;S++)for(var P=0;P<this.size_.width;P++)if(!OOq(this.array_[S][P],N.array_[S][P],b))return!1;return!0};
az.prototype.getSize=function(){return this.size_};
var Rz=function(N,b,S){return b>=0&&b<N.size_.height&&S>=0&&S<N.size_.width?N.array_[b][S]:null};
az.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var aiw=function(N,b,S,P){if(!(b>=0&&b<N.size_.height&&S>=0&&S<N.size_.width))throw Error("Tk`"+b+"`"+S+"`"+N.size_.height+"`"+N.size_.width);N.array_[b][S]=P};
az.prototype.multiply=function(N){if(N instanceof az){if(this.size_.width!=N.getSize().height)throw Error("Uk");return Ruq(this,N)}if(typeof N==="number")return WLE(this,N);throw Error("Vk");};
var Ruq=function(N,b){var S=new az(N.size_.height,b.getSize().width);rRO(S,function(P,H,K){for(var C=P=0;C<this.size_.width;C++)P+=Rz(this,H,C)*Rz(b,C,K);aiw(S,H,K,P)},N);
return S},WLE=function(N,b){return cRE(N,function(S){return S*b})};var WB=function(N){nuo.dispatchEvent(new dJn(nuo,N))},nuo=new _.J1,dJn=function(N,b){_.uW.call(this,"statevent",N);
this.stat=b};
_.F(dJn,_.uW);var n0=function(N,b,S,P,H){this.JSC$19842_channel_=N;this.JSC$19842_channelDebug_=b;this.sid_=S;this.JSC$19842_rid_=P;this.JSC$19842_retryId_=H||1;this.timeout_=45E3;this.JSC$19842_eventHandler_=new _.fx(this);this.pollingTimer_=new _.Lx;this.pollingTimer_.setInterval(250)};
_.v=n0.prototype;_.v.JSC$19844_extraHeaders_=null;_.v.JSC$19844_successful_=!1;_.v.JSC$19844_watchDogTimerId_=null;_.v.JSC$19844_watchDogTimeoutTime_=null;_.v.JSC$19844_requestStartTime_=null;_.v.JSC$19844_type_=null;_.v.JSC$19844_baseUri_=null;_.v.JSC$19844_requestUri_=null;_.v.JSC$19844_postData_=null;_.v.JSC$19844_xmlHttp_=null;_.v.JSC$19844_xmlHttpChunkStart_=0;_.v.trident_=null;_.v.JSC$19844_verb_=null;_.v.JSC$19844_lastError_=null;_.v.JSC$19844_lastStatusCode_=-1;_.v.sendClose_=!0;
_.v.JSC$19844_cancelled_=!1;_.v.JSC$19844_readyStateChangeThrottleMs_=0;_.v.JSC$19844_readyStateChangeThrottle_=null;var mJE=function(N,b){switch(N){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},kFa={},TDo={};
n0.prototype.setTimeout=function(N){this.timeout_=N};
var MzO=function(N,b,S){N.JSC$19844_type_=1;N.JSC$19844_baseUri_=_.B0(b.clone());N.JSC$19844_postData_=S;N.decodeChunks_=!0;tzq(N,null)},FLn=function(N,b,S,P,H){N.JSC$19844_type_=1;
N.JSC$19844_baseUri_=_.B0(b.clone());N.JSC$19844_postData_=null;N.decodeChunks_=S;H&&(N.sendClose_=!1);tzq(N,P)},tzq=function(N,b){N.JSC$19844_requestStartTime_=Date.now();
BDt(N);N.JSC$19844_requestUri_=N.JSC$19844_baseUri_.clone();hpJ(N.JSC$19844_requestUri_,"t",N.JSC$19842_retryId_);N.JSC$19844_xmlHttpChunkStart_=0;N.JSC$19844_xmlHttp_=N.JSC$19842_channel_.JSC$19851_createXhrIo(N.JSC$19842_channel_.JSC$19851_shouldUseSecondaryDomains()?b:null);N.JSC$19844_readyStateChangeThrottleMs_>0&&(N.JSC$19844_readyStateChangeThrottle_=new _.GR((0,_.pT)(N.JSC$19844_xmlHttpHandler_,N,N.JSC$19844_xmlHttp_),N.JSC$19844_readyStateChangeThrottleMs_));N.JSC$19842_eventHandler_.listen(N.JSC$19844_xmlHttp_,
"readystatechange",N.JSC$19844_readyStateChangeHandler_);b=N.JSC$19844_extraHeaders_?_.Vm.clone(N.JSC$19844_extraHeaders_):{};N.JSC$19844_postData_?(N.JSC$19844_verb_="POST",b["Content-Type"]="application/x-www-form-urlencoded",N.JSC$19844_xmlHttp_.send(N.JSC$19844_requestUri_,N.JSC$19844_verb_,N.JSC$19844_postData_,b)):(N.JSC$19844_verb_="GET",N.sendClose_&&!_.FG&&(b.Connection="close"),N.JSC$19844_xmlHttp_.send(N.JSC$19844_requestUri_,N.JSC$19844_verb_,null,b));N.JSC$19842_channel_.notifyServerReachabilityEvent(1);
b=N.JSC$19842_channelDebug_;var S=N.JSC$19844_postData_;if(S){var P="";S=S.split("&");for(var H=0;H<S.length;H++){var K=S[H].split("=");if(K.length>1){var C=K[0];K=K[1];var G=C.split("_");P=G.length>=2&&G[1]=="type"?P+(C+"="+K+"&"):P+(C+"=redacted&")}}}else P=null;b.info("XMLHTTP REQ ("+N.JSC$19842_rid_+") [attempt "+N.JSC$19842_retryId_+"]: "+N.JSC$19844_verb_+"\n"+N.JSC$19844_requestUri_+"\n"+P)};
n0.prototype.JSC$19844_readyStateChangeHandler_=function(N){N=N.target;var b=this.JSC$19844_readyStateChangeThrottle_;b&&_.Vy(N)==3?(this.JSC$19842_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$19844_xmlHttpHandler_(N)};
n0.prototype.JSC$19844_xmlHttpHandler_=function(N){try{if(N==this.JSC$19844_xmlHttp_)a:{var b=_.Vy(this.JSC$19844_xmlHttp_),S=this.JSC$19844_xmlHttp_.JSC$10029_lastErrorCode_,P=this.JSC$19844_xmlHttp_.getStatus();if(_.FG&&!_.ce("420+")){if(b<4)break a}else if(b<3||b==3&&!this.JSC$19844_xmlHttp_.getResponseText())break a;this.JSC$19844_cancelled_||b!=4||S==7||(S==8||P<=0?this.JSC$19842_channel_.notifyServerReachabilityEvent(3):this.JSC$19842_channel_.notifyServerReachabilityEvent(2));li5(this);var H=
this.JSC$19844_xmlHttp_.getStatus();this.JSC$19844_lastStatusCode_=H;var K=this.JSC$19844_xmlHttp_.getResponseText();K||this.JSC$19842_channelDebug_.debug("No response text for uri "+this.JSC$19844_requestUri_+" status "+H);this.JSC$19844_successful_=H==200;this.JSC$19842_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19842_rid_+") [ attempt "+this.JSC$19842_retryId_+"]: "+this.JSC$19844_verb_+"\n"+this.JSC$19844_requestUri_+"\n"+b+" "+H);if(this.JSC$19844_successful_){b==4&&LLQ(this);if(this.decodeChunks_){for(N=
!0;!this.JSC$19844_cancelled_&&this.JSC$19844_xmlHttpChunkStart_<K.length;){var C=fiL(this,K);if(C==TDo){b==4&&(this.JSC$19844_lastError_=4,WB(15),N=!1);uOQ(this.JSC$19842_channelDebug_,this.JSC$19842_rid_,null,"[Incomplete Response]");break}else if(C==kFa){this.JSC$19844_lastError_=4;WB(16);uOQ(this.JSC$19842_channelDebug_,this.JSC$19842_rid_,K,"[Invalid Chunk]");N=!1;break}else uOQ(this.JSC$19842_channelDebug_,this.JSC$19842_rid_,C,null),QHi(this,C)}b==4&&K.length==0&&(this.JSC$19844_lastError_=
1,WB(17),N=!1);this.JSC$19844_successful_=this.JSC$19844_successful_&&N;N||(uOQ(this.JSC$19842_channelDebug_,this.JSC$19842_rid_,K,"[Invalid Chunked Response]"),LLQ(this),xJE(this))}else uOQ(this.JSC$19842_channelDebug_,this.JSC$19842_rid_,K,null),QHi(this,K);this.JSC$19844_successful_&&!this.JSC$19844_cancelled_&&(b==4?this.JSC$19842_channel_.JSC$19851_onRequestComplete(this):(this.JSC$19844_successful_=!1,BDt(this)))}else H==400&&K.indexOf("Unknown SID")>0?(this.JSC$19844_lastError_=3,WB(13),this.JSC$19842_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19842_rid_+")")):(this.JSC$19844_lastError_=0,WB(14),this.JSC$19842_channelDebug_.warning("XMLHTTP Bad status "+H+" ("+this.JSC$19842_rid_+")")),LLQ(this),xJE(this)}else this.JSC$19842_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$19842_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var fiL=function(N,b){var S=N.JSC$19844_xmlHttpChunkStart_,P=b.indexOf("\n",S);if(P==-1)return TDo;S=Number(b.substring(S,P));if(isNaN(S))return kFa;P+=1;if(P+S>b.length)return TDo;b=b.slice(P,P+S);N.JSC$19844_xmlHttpChunkStart_=P+S;return b};
n0.prototype.cancel=function(){this.JSC$19844_cancelled_=!0;LLQ(this)};
var BDt=function(N){N.JSC$19844_watchDogTimeoutTime_=Date.now()+N.timeout_;ouQ(N,N.timeout_)},ouQ=function(N,b){if(N.JSC$19844_watchDogTimerId_!=null)throw Error("Ok");
N.JSC$19844_watchDogTimerId_=WJ((0,_.pT)(N.JSC$19844_onWatchDogTimeout_,N),b)},li5=function(N){N.JSC$19844_watchDogTimerId_&&(_.Ps.clearTimeout(N.JSC$19844_watchDogTimerId_),N.JSC$19844_watchDogTimerId_=null)};
n0.prototype.JSC$19844_onWatchDogTimeout_=function(){this.JSC$19844_watchDogTimerId_=null;var N=Date.now();N-this.JSC$19844_watchDogTimeoutTime_>=0?(this.JSC$19842_channelDebug_.info("TIMEOUT: "+this.JSC$19844_requestUri_),this.JSC$19844_type_!=2&&this.JSC$19842_channel_.notifyServerReachabilityEvent(3),LLQ(this),this.JSC$19844_lastError_=2,WB(18),xJE(this)):(this.JSC$19842_channelDebug_.warning("WatchDog timer called too early"),ouQ(this,this.JSC$19844_watchDogTimeoutTime_-N))};
var xJE=function(N){N.JSC$19842_channel_.JSC$19851_isClosed()||N.JSC$19844_cancelled_||N.JSC$19842_channel_.JSC$19851_onRequestComplete(N)},LLQ=function(N){li5(N);
_.Wv(N.JSC$19844_readyStateChangeThrottle_);N.JSC$19844_readyStateChangeThrottle_=null;N.pollingTimer_.stop();N.JSC$19842_eventHandler_.removeAll();if(N.JSC$19844_xmlHttp_){var b=N.JSC$19844_xmlHttp_;N.JSC$19844_xmlHttp_=null;b.abort();b.dispose()}N.trident_&&(N.trident_=null)};
n0.prototype.getLastError=function(){return this.JSC$19844_lastError_};
var QHi=function(N,b){try{N.JSC$19842_channel_.JSC$19851_onRequestData(N,b),N.JSC$19842_channel_.notifyServerReachabilityEvent(4)}catch(S){}};var uOQ=function(N,b,S,P){var H=N.info;a:if(S&&S!="y2f%"){try{var K=JSON.parse(S);if(K)for(var C=0;C<K.length;C++)if(Array.isArray(K[C])){var G=K[C];if(!(G.length<2)){var a=G[1];if(Array.isArray(a)&&!(a.length<1)){var R=a[0];if(R!="noop"&&R!="stop")for(var n=1;n<a.length;n++)a[n]=""}}}var d=(0,_.Id)(K);break a}catch(m){N.debug("Exception parsing expected JS array - probably was not JS");d=S;break a}d=void 0}else d=S;H.call(N,"XMLHTTP TEXT ("+b+"): "+d+(P?" "+P:""))};
ny.prototype.debug=function(N){this.info(N)};
ny.prototype.info=function(){};
ny.prototype.warning=function(){};var iNL=function(N,b){this.JSC$19849_channel_=N;this.JSC$19849_channelDebug_=b;this.JSC$19849_parser_=new Vco};
_.v=iNL.prototype;_.v.JSC$19851_extraHeaders_=null;_.v.JSC$19851_request_=null;_.v.receivedIntermediateResult_=!1;_.v.JSC$19851_path_=null;_.v.state_=null;_.v.JSC$19851_lastStatusCode_=-1;_.v.JSC$19851_hostPrefix_=null;_.v.blockedPrefix_=null;
_.v.connect=function(N){this.JSC$19851_path_=N;N=JRo(this.JSC$19849_channel_,this.JSC$19851_path_);WB(3);Date.now();var b=this.JSC$19849_channel_.firstTestResults_;b!=null?(this.JSC$19851_hostPrefix_=b[0],(this.blockedPrefix_=b[1])?(this.state_=1,UJ_(this)):(this.state_=2,ZNn(this))):(hpJ(N,"MODE","init"),this.JSC$19851_request_=new n0(this,this.JSC$19849_channelDebug_),this.JSC$19851_request_.JSC$19844_extraHeaders_=this.JSC$19851_extraHeaders_,FLn(this.JSC$19851_request_,N,!1,null,!0),this.state_=
0)};
var UJ_=function(N){var b=jHO(N.JSC$19849_channel_,N.blockedPrefix_,"/mail/images/cleardot.gif");_.B0(b);Asn(b.toString(),5E3,(0,_.pT)(N.checkBlockedCallback_,N),3,2E3);N.notifyServerReachabilityEvent(1)};
iNL.prototype.checkBlockedCallback_=function(N){if(N)this.state_=2,ZNn(this);else{WB(4);var b=this.JSC$19849_channel_;b.JSC$19852_channelDebug_.debug("Test Connection Blocked");b.JSC$19856_lastStatusCode_=b.connectionTest_.JSC$19851_lastStatusCode_;dN(b,9)}N&&this.notifyServerReachabilityEvent(2)};
var ZNn=function(N){N.JSC$19849_channelDebug_.debug("TestConnection: starting stage 2");var b=N.JSC$19849_channel_.secondTestResults_;b!=null?(N.JSC$19849_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),WB(5),b?(WB(11),zuL(N.JSC$19849_channel_,N,!1)):(WB(12),zuL(N.JSC$19849_channel_,N,!0))):(N.JSC$19851_request_=new n0(N,N.JSC$19849_channelDebug_),N.JSC$19851_request_.JSC$19844_extraHeaders_=N.JSC$19851_extraHeaders_,b=ARw(N.JSC$19849_channel_,
N.JSC$19851_hostPrefix_,N.JSC$19851_path_),WB(5),hpJ(b,"TYPE","xmlhttp"),FLn(N.JSC$19851_request_,b,!1,N.JSC$19851_hostPrefix_,!1))};
_.v=iNL.prototype;_.v.JSC$19851_createXhrIo=function(N){return this.JSC$19849_channel_.JSC$19851_createXhrIo(N)};
_.v.abort=function(){this.JSC$19851_request_&&(this.JSC$19851_request_.cancel(),this.JSC$19851_request_=null);this.JSC$19851_lastStatusCode_=-1};
_.v.JSC$19851_isClosed=function(){return!1};
_.v.JSC$19851_onRequestData=function(N,b){this.JSC$19851_lastStatusCode_=N.JSC$19844_lastStatusCode_;if(this.state_==0)if(this.JSC$19849_channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var S=this.JSC$19849_parser_.parse(b)}catch(P){Xcw(this.JSC$19849_channel_,this);return}this.JSC$19851_hostPrefix_=S[0];this.blockedPrefix_=S[1]}else this.JSC$19849_channelDebug_.debug("TestConnection: Null responseText"),Xcw(this.JSC$19849_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(WB(7),Date.now()):b=="11111"?(WB(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19851_lastStatusCode_=200,this.JSC$19851_request_.cancel(),this.JSC$19849_channelDebug_.debug("Test connection succeeded; using streaming connection"),WB(12),zuL(this.JSC$19849_channel_,this,!0)):(WB(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.v.JSC$19851_onRequestComplete=function(){this.JSC$19851_lastStatusCode_=this.JSC$19851_request_.JSC$19844_lastStatusCode_;this.JSC$19851_request_.JSC$19844_successful_?this.state_==0?(this.JSC$19849_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,UJ_(this)):(this.state_=2,ZNn(this))):this.state_==2&&(this.JSC$19849_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19849_channelDebug_.debug("Test connection succeeded; using streaming connection"),
WB(12),zuL(this.JSC$19849_channel_,this,!0)):(this.JSC$19849_channelDebug_.debug("Test connection failed; not using streaming"),WB(11),zuL(this.JSC$19849_channel_,this,!1))):(this.JSC$19849_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?WB(9):this.state_==2&&WB(10),Xcw(this.JSC$19849_channel_,this,this.JSC$19851_request_.getLastError()))};
_.v.JSC$19851_shouldUseSecondaryDomains=function(){return this.JSC$19849_channel_.JSC$19851_shouldUseSecondaryDomains()};
_.v.isActive=function(){return this.JSC$19849_channel_.isActive()};
_.v.notifyServerReachabilityEvent=function(N){this.JSC$19849_channel_.notifyServerReachabilityEvent(N)};var m2=function(N,b,S){this.state_=1;this.JSC$19852_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19852_channelDebug_=new ny;this.JSC$19852_parser_=new Vco;this.firstTestResults_=N||null;this.secondTestResults_=b!=null?b:null;this.asyncTest_=S||!1},Euq=function(N,b){this.JSC$19854_mapId=N;
this.map=b;this.context=null};
_.v=m2.prototype;_.v.JSC$19856_extraHeaders_=null;_.v.JSC$19856_extraParams_=null;_.v.forwardChannelRequest_=null;_.v.JSC$19856_backChannelRequest_=null;_.v.JSC$19856_path_=null;_.v.JSC$19856_forwardChannelUri_=null;_.v.JSC$19856_backChannelUri_=null;_.v.JSC$19856_hostPrefix_=null;_.v.JSC$19856_nextRid_=0;_.v.JSC$19856_nextMapId_=0;_.v.handler_=null;_.v.JSC$19856_forwardChannelTimerId_=null;_.v.JSC$19856_backChannelTimerId_=null;_.v.JSC$19856_deadBackChannelTimerId_=null;_.v.connectionTest_=null;
_.v.useChunked_=null;_.v.JSC$19856_lastArrayId_=-1;_.v.JSC$19856_lastPostResponseArrayId_=-1;_.v.JSC$19856_lastStatusCode_=-1;_.v.JSC$19856_forwardChannelRetryCount_=0;_.v.JSC$19856_backChannelRetryCount_=0;_.v.JSC$19856_channelVersion_=8;var pcE={OK:0,REQUEST_FAILED:2,LOGGED_OUT:4,NO_DATA:5,UNKNOWN_SESSION_ID:6,STOP:7,NETWORK:8,BLOCKED:9,BAD_DATA:10,BAD_RESPONSE:11,ACTIVE_X_BLOCKED:12},YML=function(N,b,S,P){_.uW.call(this,"timingevent",N);this.size=b;this.rtt=S;this.retries=P};
_.Km(YML,_.uW);var yRo=function(N){_.uW.call(this,"serverreachability",N)};
_.Km(yRo,_.uW);m2.prototype.connect=function(N,b,S,P,H){this.JSC$19852_channelDebug_.debug("connect()");WB(0);this.JSC$19856_path_=b;this.JSC$19856_extraParams_=S||{};P&&H!==void 0&&(this.JSC$19856_extraParams_.OSID=P,this.JSC$19856_extraParams_.OAID=H);this.asyncTest_?(WJ((0,_.pT)(this.connectTest_,this,N),100),IiE(this)):this.connectTest_(N)};
m2.prototype.disconnect=function(){this.JSC$19852_channelDebug_.debug("disconnect()");DJa(this);if(this.state_==3){var N=this.JSC$19856_nextRid_++,b=this.JSC$19856_forwardChannelUri_.clone();_.vW(b,"SID",this.sid_);_.vW(b,"RID",N);_.vW(b,"TYPE","terminate");VzJ(this,b);N=new n0(this,this.JSC$19852_channelDebug_,this.sid_,N);N.JSC$19844_type_=2;N.JSC$19844_baseUri_=_.B0(b.clone());(new Image).src=N.JSC$19844_baseUri_.toString();N.JSC$19844_requestStartTime_=Date.now();BDt(N)}gu6(this)};
m2.prototype.connectTest_=function(N){this.JSC$19852_channelDebug_.debug("connectTest_()");this.connectionTest_=new iNL(this,this.JSC$19852_channelDebug_);this.connectionTest_.JSC$19851_extraHeaders_=this.JSC$19856_extraHeaders_;this.connectionTest_.JSC$19849_parser_=this.JSC$19852_parser_;this.connectionTest_.connect(N)};
var IiE=function(N){N.JSC$19852_channelDebug_.debug("connectChannel_()");N.JSC$19856_ensureInState_(1,0);N.JSC$19856_forwardChannelUri_=JRo(N,N.JSC$19856_path_);euQ(N)},DJa=function(N){N.connectionTest_&&(N.connectionTest_.abort(),N.connectionTest_=null);
N.JSC$19856_backChannelRequest_&&(N.JSC$19856_backChannelRequest_.cancel(),N.JSC$19856_backChannelRequest_=null);N.JSC$19856_backChannelTimerId_&&(_.Ps.clearTimeout(N.JSC$19856_backChannelTimerId_),N.JSC$19856_backChannelTimerId_=null);$JO(N);N.forwardChannelRequest_&&(N.forwardChannelRequest_.cancel(),N.forwardChannelRequest_=null);N.JSC$19856_forwardChannelTimerId_&&(_.Ps.clearTimeout(N.JSC$19856_forwardChannelTimerId_),N.JSC$19856_forwardChannelTimerId_=null)},hua=function(N,b){if(N.state_==0)throw Error("Wk");
N.JSC$19852_outgoingMaps_.length==1E3&&N.JSC$19852_parser_.stringify(b);N.JSC$19852_outgoingMaps_.push(new Euq(N.JSC$19856_nextMapId_++,b));N.state_!=2&&N.state_!=3||euQ(N)};
m2.prototype.JSC$19851_isClosed=function(){return this.state_==0};
m2.prototype.getState=function(){return this.state_};
var euQ=function(N){N.forwardChannelRequest_||N.JSC$19856_forwardChannelTimerId_||(N.JSC$19856_forwardChannelTimerId_=WJ((0,_.pT)(N.JSC$19856_onStartForwardChannelTimer_,N),0),N.JSC$19856_forwardChannelRetryCount_=0)};
m2.prototype.JSC$19856_onStartForwardChannelTimer_=function(N){this.JSC$19856_forwardChannelTimerId_=null;qMw(this,N)};
var qMw=function(N,b){N.JSC$19852_channelDebug_.debug("startForwardChannel_");if(N.state_==1){if(!b){N.JSC$19852_channelDebug_.debug("open_()");N.JSC$19856_nextRid_=Math.floor(Math.random()*1E5);b=N.JSC$19856_nextRid_++;var S=new n0(N,N.JSC$19852_channelDebug_,"",b);S.JSC$19844_extraHeaders_=N.JSC$19856_extraHeaders_;var P=wc6(N),H=N.JSC$19856_forwardChannelUri_.clone();_.vW(H,"RID",b);_.vW(H,"CVER","1");VzJ(N,H);MzO(S,H,P);N.forwardChannelRequest_=S;N.state_=2}}else N.state_==3&&(b?N36(N,b):N.JSC$19852_outgoingMaps_.length==
0?N.JSC$19852_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):N.forwardChannelRequest_||(N36(N),N.JSC$19852_channelDebug_.debug("startForwardChannel_ finished, sent request")))},N36=function(N,b){if(b)if(N.JSC$19856_channelVersion_>6){N.JSC$19852_outgoingMaps_=N.pendingMaps_.concat(N.JSC$19852_outgoingMaps_);
N.pendingMaps_.length=0;var S=N.JSC$19856_nextRid_-1;b=wc6(N)}else S=b.JSC$19842_rid_,b=b.JSC$19844_postData_;else S=N.JSC$19856_nextRid_++,b=wc6(N);var P=N.JSC$19856_forwardChannelUri_.clone();_.vW(P,"SID",N.sid_);_.vW(P,"RID",S);_.vW(P,"AID",N.JSC$19856_lastArrayId_);VzJ(N,P);S=new n0(N,N.JSC$19852_channelDebug_,N.sid_,S,N.JSC$19856_forwardChannelRetryCount_+1);S.JSC$19844_extraHeaders_=N.JSC$19856_extraHeaders_;S.setTimeout(1E4+Math.round(1E4*Math.random()));N.forwardChannelRequest_=S;MzO(S,P,
b)},VzJ=function(N,b){N.handler_&&(N=N.handler_.JSC$19863_getAdditionalParams())&&_.Vm.forEach(N,function(S,P){_.vW(b,P,S)})},wc6=function(N){var b=Math.min(N.JSC$19852_outgoingMaps_.length,1E3),S=["count="+b];
if(N.JSC$19856_channelVersion_>6&&b>0){var P=N.JSC$19852_outgoingMaps_[0].JSC$19854_mapId;S.push("ofs="+P)}else P=0;for(var H={},K=0;K<b;H={mapId$jscomp$3:void 0},K++){H.mapId$jscomp$3=N.JSC$19852_outgoingMaps_[K].JSC$19854_mapId;var C=N.JSC$19852_outgoingMaps_[K].map;H.mapId$jscomp$3=N.JSC$19856_channelVersion_<=6?K:H.mapId$jscomp$3-P;try{_.Vm.forEach(C,function(G){return function(a,R){S.push("req"+G.mapId$jscomp$3+"_"+R+"="+encodeURIComponent(a))}}(H))}catch(G){S.push("req"+H.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}N.pendingMaps_=N.pendingMaps_.concat(N.JSC$19852_outgoingMaps_.splice(0,b));
return S.join("&")},b5q=function(N){N.JSC$19856_backChannelRequest_||N.JSC$19856_backChannelTimerId_||(N.JSC$19856_backChannelAttemptId_=1,N.JSC$19856_backChannelTimerId_=WJ((0,_.pT)(N.JSC$19856_onStartBackChannelTimer_,N),0),N.JSC$19856_backChannelRetryCount_=0)},P8a=function(N){if(N.JSC$19856_backChannelRequest_||N.JSC$19856_backChannelTimerId_||N.JSC$19856_backChannelRetryCount_>=3)return!1;
N.JSC$19852_channelDebug_.debug("Going to retry GET");N.JSC$19856_backChannelAttemptId_++;N.JSC$19856_backChannelTimerId_=WJ((0,_.pT)(N.JSC$19856_onStartBackChannelTimer_,N),SNL(N,N.JSC$19856_backChannelRetryCount_));N.JSC$19856_backChannelRetryCount_++;return!0};
m2.prototype.JSC$19856_onStartBackChannelTimer_=function(){this.JSC$19856_backChannelTimerId_=null;this.JSC$19852_channelDebug_.debug("Creating new HttpRequest");this.JSC$19856_backChannelRequest_=new n0(this,this.JSC$19852_channelDebug_,this.sid_,"rpc",this.JSC$19856_backChannelAttemptId_);this.JSC$19856_backChannelRequest_.JSC$19844_extraHeaders_=this.JSC$19856_extraHeaders_;this.JSC$19856_backChannelRequest_.JSC$19844_readyStateChangeThrottleMs_=0;var N=this.JSC$19856_backChannelUri_.clone();_.vW(N,
"RID","rpc");_.vW(N,"SID",this.sid_);_.vW(N,"CI",this.useChunked_?"0":"1");_.vW(N,"AID",this.JSC$19856_lastArrayId_);VzJ(this,N);_.vW(N,"TYPE","xmlhttp");FLn(this.JSC$19856_backChannelRequest_,N,!0,this.JSC$19856_hostPrefix_,!1);this.JSC$19852_channelDebug_.debug("New Request created")};
var zuL=function(N,b,S){N.JSC$19852_channelDebug_.debug("Test Connection Finished");N.useChunked_=N.secondTestResults_==null?S:!N.secondTestResults_;N.JSC$19856_lastStatusCode_=b.JSC$19851_lastStatusCode_;N.asyncTest_||IiE(N)},Xcw=function(N,b){N.JSC$19852_channelDebug_.debug("Test Connection Failed");
N.JSC$19856_lastStatusCode_=b.JSC$19851_lastStatusCode_;dN(N,2)};
m2.prototype.JSC$19851_onRequestData=function(N,b){if(this.state_!=0&&(this.JSC$19856_backChannelRequest_==N||this.forwardChannelRequest_==N))if(this.JSC$19856_lastStatusCode_=N.JSC$19844_lastStatusCode_,this.forwardChannelRequest_==N&&this.state_==3)if(this.JSC$19856_channelVersion_>7){try{var S=this.JSC$19852_parser_.parse(b)}catch(P){S=null}if(Array.isArray(S)&&S.length==3)if(b=S,b[0]==0)a:if(this.JSC$19852_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19856_backChannelTimerId_)this.JSC$19852_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19856_backChannelRequest_)if(this.JSC$19856_backChannelRequest_.JSC$19844_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19844_requestStartTime_)$JO(this),this.JSC$19856_backChannelRequest_.cancel(),this.JSC$19856_backChannelRequest_=null;else break a;else this.JSC$19852_channelDebug_.warning("We do not have a BackChannel established");P8a(this);WB(19)}else this.JSC$19856_lastPostResponseArrayId_=b[1],N=this.JSC$19856_lastPostResponseArrayId_-this.JSC$19856_lastArrayId_,0<
N&&(b=b[2],this.JSC$19852_channelDebug_.debug(b+" bytes (in "+N+" arrays) are outstanding on the BackChannel"),b<37500&&this.useChunked_&&this.JSC$19856_backChannelRetryCount_==0&&!this.JSC$19856_deadBackChannelTimerId_&&(this.JSC$19856_deadBackChannelTimerId_=WJ((0,_.pT)(this.JSC$19856_onBackChannelDead_,this),6E3)));else this.JSC$19852_channelDebug_.debug("Bad POST response data returned"),dN(this,11)}else b!="y2f%"&&(this.JSC$19852_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
dN(this,11));else this.JSC$19856_backChannelRequest_==N&&$JO(this),_.Oe(b)||(N=this.JSC$19852_parser_.parse(b),this.onInput_(N))};
m2.prototype.JSC$19856_onBackChannelDead_=function(){this.JSC$19856_deadBackChannelTimerId_!=null&&(this.JSC$19856_deadBackChannelTimerId_=null,this.JSC$19856_backChannelRequest_.cancel(),this.JSC$19856_backChannelRequest_=null,P8a(this),WB(20))};
var $JO=function(N){N.JSC$19856_deadBackChannelTimerId_!=null&&(_.Ps.clearTimeout(N.JSC$19856_deadBackChannelTimerId_),N.JSC$19856_deadBackChannelTimerId_=null)};
m2.prototype.JSC$19851_onRequestComplete=function(N){this.JSC$19852_channelDebug_.debug("Request complete");if(this.JSC$19856_backChannelRequest_==N){$JO(this);this.JSC$19856_backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==N)this.forwardChannelRequest_=null,b=1;else return;this.JSC$19856_lastStatusCode_=N.JSC$19844_lastStatusCode_;if(this.state_!=0)if(N.JSC$19844_successful_)if(b==1){b=N.JSC$19844_postData_?N.JSC$19844_postData_.length:0;N=Date.now()-N.JSC$19844_requestStartTime_;
var S=nuo;S.dispatchEvent(new YML(S,b,N,this.JSC$19856_forwardChannelRetryCount_));euQ(this);this.handler_&&this.handler_.JSC$19863_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else b5q(this);else{S=N.getLastError();if(S==3||S==7||S==0&&this.JSC$19856_lastStatusCode_>0)this.JSC$19852_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19852_channelDebug_.debug("Maybe retrying, last error: "+mJE(S,this.JSC$19856_lastStatusCode_));var P;if(P=b==1)this.forwardChannelRequest_||
this.JSC$19856_forwardChannelTimerId_||this.state_==1||this.JSC$19856_forwardChannelRetryCount_>=2?P=!1:(this.JSC$19852_channelDebug_.debug("Going to retry POST"),this.JSC$19856_forwardChannelTimerId_=WJ((0,_.pT)(this.JSC$19856_onStartForwardChannelTimer_,this,N),SNL(this,this.JSC$19856_forwardChannelRetryCount_)),this.JSC$19856_forwardChannelRetryCount_++,P=!0);if(P||b==2&&P8a(this))return;this.JSC$19852_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19852_channelDebug_.debug("Error: HTTP request failed");
switch(S){case 1:dN(this,5);break;case 4:dN(this,10);break;case 3:dN(this,6);break;case 7:dN(this,12);break;default:dN(this,2)}}};
var SNL=function(N,b){var S=5E3+Math.floor(Math.random()*1E4);N.isActive()||(N.JSC$19852_channelDebug_.debug("Inactive channel"),S*=2);return S*b};
m2.prototype.onInput_=function(N){for(var b=0;b<N.length;b++){var S=N[b];this.JSC$19856_lastArrayId_=S[0];S=S[1];this.state_==2?S[0]=="c"?(this.sid_=S[1],this.JSC$19856_hostPrefix_=S[2],S=S[3],S!=null?this.JSC$19856_channelVersion_=S:this.JSC$19856_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19863_channelOpened(),this.JSC$19856_backChannelUri_=ARw(this,this.JSC$19856_hostPrefix_,this.JSC$19856_path_),b5q(this)):S[0]=="stop"&&dN(this,7):this.state_==3&&(S[0]=="stop"?dN(this,7):
S[0]!="noop"&&this.handler_&&this.handler_.JSC$19863_channelHandleArray(S),this.JSC$19856_backChannelRetryCount_=0)}};
m2.prototype.JSC$19856_ensureInState_=function(N){if(!_.Z_(arguments,this.state_))throw Error("Xk`"+this.state_);};
var dN=function(N,b){N.JSC$19852_channelDebug_.info("Error code "+b);if(b==2||b==9){var S=null;N.handler_&&(S=null);var P=(0,_.pT)(N.testGoogleComCallback_,N);S||(S=new _.DV("//www.google.com/images/cleardot.gif"),_.B0(S));zCa(S.toString(),1E4,P)}else WB(2);N.onError_(b)};
m2.prototype.testGoogleComCallback_=function(N){N?(this.JSC$19852_channelDebug_.info("Successfully pinged google.com"),WB(2)):(this.JSC$19852_channelDebug_.info("Failed to ping google.com"),WB(1),this.onError_(8))};
m2.prototype.onError_=function(N){this.JSC$19852_channelDebug_.debug("HttpChannel: error - "+N);this.state_=0;this.handler_&&this.handler_.JSC$19863_channelError(N);gu6(this);DJa(this)};
var gu6=function(N){N.state_=0;N.JSC$19856_lastStatusCode_=-1;if(N.handler_)if(N.pendingMaps_.length==0&&N.JSC$19852_outgoingMaps_.length==0)N.handler_.JSC$19863_channelClosed();else{N.JSC$19852_channelDebug_.debug("Number of undelivered maps, pending: "+N.pendingMaps_.length+", outgoing: "+N.JSC$19852_outgoingMaps_.length);var b=_.pa(N.pendingMaps_),S=_.pa(N.JSC$19852_outgoingMaps_);N.pendingMaps_.length=0;N.JSC$19852_outgoingMaps_.length=0;N.handler_.JSC$19863_channelClosed(b,S)}},JRo=function(N,
b){b=jHO(N,null,b);
N.JSC$19852_channelDebug_.debug("GetForwardChannelUri: "+b);return b},ARw=function(N,b,S){b=jHO(N,N.JSC$19851_shouldUseSecondaryDomains()?b:null,S);
N.JSC$19852_channelDebug_.debug("GetBackChannelUri: "+b);return b},jHO=function(N,b,S){var P=_.sB(S);
if(P.JSC$10265_domain_!="")b&&_.n8(P,b+"."+P.JSC$10265_domain_),_.d_(P,P.JSC$10265_port_);else{var H=window.location;P=dkq(H.protocol,b?b+"."+H.hostname:H.hostname,+H.port,S)}N.JSC$19856_extraParams_&&_.Vm.forEach(N.JSC$19856_extraParams_,function(K,C){_.vW(P,C,K)});
_.vW(P,"VER",N.JSC$19856_channelVersion_);VzJ(N,P);return P};
m2.prototype.JSC$19851_createXhrIo=function(N){if(N)throw Error("Pk");N=new _.DI;N.JSC$10029_withCredentials_=!1;return N};
m2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
m2.prototype.notifyServerReachabilityEvent=function(N){var b=nuo;b.dispatchEvent(new yRo(b,N))};
m2.prototype.JSC$19851_shouldUseSecondaryDomains=function(){return!1};
new LKn;var H5L=function(){};
_.v=H5L.prototype;_.v.JSC$19863_channelOpened=function(){};
_.v.JSC$19863_channelHandleArray=function(){};
_.v.JSC$19863_channelSuccess=function(){};
_.v.JSC$19863_channelError=function(){};
_.v.JSC$19863_channelClosed=function(){};
_.v.JSC$19863_getAdditionalParams=function(){return{}};
_.v.isActive=function(){return!0};var sn6=function(N){N.front_.length===0&&(N.front_=N.back_,N.front_.reverse(),N.back_=[])};
_.v=EnQ.prototype;_.v.enqueue=function(N){this.back_.push(N)};
_.v.peek=function(){sn6(this);return _.oU(this.front_)};
_.v.getCount=function(){return this.front_.length+this.back_.length};
_.v.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.v.clear=function(){this.front_=[];this.back_=[]};
_.v.contains=function(N){return _.Z_(this.front_,N)||_.Z_(this.back_,N)};
_.v.remove=function(N){var b=this.front_;var S=Array.prototype.lastIndexOf.call(b,N,b.length-1);S>=0?(_.xLa(b,S),b=!0):b=!1;return b||_.zo(this.back_,N)};
_.v.getValues=function(){for(var N=[],b=this.front_.length-1;b>=0;--b)N.push(this.front_[b]);b=this.back_.length;for(var S=0;S<b;++S)N.push(this.back_[S]);return N};var k_=function(N){this.JSC$19867_map_=new _.f1;this.size=0;N&&this.addAll(N)},KT_=function(N){var b=typeof N;
return b=="object"&&N||b=="function"?"o"+_.gI(N):b.charAt(0)+N};
_.v=k_.prototype;_.v.getCount=function(){return this.JSC$19867_map_.size};
_.v.add=function(N){this.JSC$19867_map_.set(KT_(N),N);this.size=this.JSC$19867_map_.size};
_.v.addAll=function(N){N=_.RE(N);for(var b=N.length,S=0;S<b;S++)this.add(N[S]);this.size=this.JSC$19867_map_.size};
_.v.removeAll=function(N){N=_.RE(N);for(var b=N.length,S=0;S<b;S++)this.remove(N[S]);this.size=this.JSC$19867_map_.size};
_.v.delete=function(N){N=this.JSC$19867_map_.remove(KT_(N));this.size=this.JSC$19867_map_.size;return N};
_.v.remove=function(N){return this.delete(N)};
_.v.clear=function(){this.JSC$19867_map_.clear();this.size=0};
_.v.isEmpty=function(){return this.JSC$19867_map_.size===0};
_.v.has=function(N){return this.JSC$19867_map_.containsKey(KT_(N))};
_.v.contains=function(N){return this.JSC$19867_map_.containsKey(KT_(N))};
_.v.getValues=function(){return this.JSC$19867_map_.getValues()};
_.v.values=function(){return this.JSC$19867_map_.values()};
_.v.clone=function(){return new k_(this)};
_.v.equals=function(N){return this.getCount()==WKa(N)&&vJ6(this,N)};
var vJ6=function(N,b){var S=WKa(b);if(N.getCount()>S)return!1;!(b instanceof k_)&&S>5&&(b=new k_(b));return nSE(N,function(P){var H=b;return H.contains&&typeof H.contains=="function"?H.contains(P):H.containsValue&&typeof H.containsValue=="function"?H.containsValue(P):_.yu(H)||typeof H==="string"?_.Z_(H,P):_.Vm.containsValue(H,P)})};
k_.prototype.__iterator__=function(){return this.JSC$19867_map_.__iterator__(!1)};
k_.prototype[Symbol.iterator]=function(){return this.values()};_.uI({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var N=this.query;N&&(this.full||N[0]==="("||(N="("+N+")"),this._mq=window.matchMedia(N),this._add(),this.queryHandler(this._mq))},
queryHandler:function(N){this._setQueryMatches(N.matches)}});var O5q={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(N){return(this._clampValue(N)-this.min)/(this.max-this.min)},
_clampValue:function(N){return Math.min(this.max,Math.max(this.min,this._calcStep(N)))},
_calcStep:function(N){N=parseFloat(N);if(!this.step)return N;N=Math.round((N-this.min)/this.step);return this.step<1?N/(1/this.step)+this.min:N*this.step+this.min},
_validateValue:function(){var N=this._clampValue(this.value);this.value=this.oldValue=isNaN(N)?this.oldValue:N;return this.value!==N},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var C8E=[_.$M,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(N){_.Tk(N).path[0]!==this&&(this.resetLayout(),N.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var N=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.L2(this._layoutDebouncer,_.L7,N);_.f2(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var N=this;requestAnimationFrame(function(){N.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(N){this.resizerShouldNotify(N)&&this._notifyDescendant(N)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var Gro=[_.XpN,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(N,b){var S=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[N];if(!S)throw new ReferenceError(this._getUndefinedMsg(N));N=this._boundEffect(S,b||{});N.setUp();return N},
_effectsChanged:function(N,b,S){this._tearDownEffects();N&&S&&(N.split(" ").forEach(function(P){var H;P!==""&&((H=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[P])?this._effects.push(this._boundEffect(H,b[P])):console.warn(this._getUndefinedMsg(P)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(N,b){b=b||{};var S=parseFloat(b.startsAt||0),P=parseFloat(b.endsAt||1),H=P-S,K=function(){};
P=S===0&&P===1?N.run:function(C,G){N.run.call(this,Math.max(0,(C-S)/H),G)};
return{setUp:N.setUp?N.setUp.bind(this,b):K,run:N.run?P.bind(this):K,tearDown:N.tearDown?N.tearDown.bind(this):K}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(N){N.setUp()!==!1&&this._effectsRunFn.push(N.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(N){N.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(N,b){this._effectsRunFn&&this._effectsRunFn.forEach(function(S){S(N,b)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var N=this._clampedScrollTop;this._updateScrollState(N);this.threshold>0&&this._setThresholdTriggered(N>=this.threshold)}},
_getDOMRef:function(N){console.warn("_getDOMRef","`"+N+"` is undefined")},
_getUndefinedMsg:function(N){return"Scroll effect `"+N+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+N+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Yk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(N){var b={};N=parseFloat(N.scalar);b.background=this._getDOMRef("background");b.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");b.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");b.deltaBg=b.backgroundFrontLayer.offsetHeight-b.background.offsetHeight;b.deltaBg===0?(isNaN(N)&&(N=.8),b.deltaBg=(this._dHeight||0)*N):(isNaN(N)&&(N=
1),b.deltaBg*=N);this._fxParallaxBackground=b},
run:function(N){var b=this._fxParallaxBackground;this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,N)+"px, 0px)",b.backgroundFrontLayer);b.backgroundRearLayer&&this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,N)+"px, 0px)",b.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var rCJ;var cCJ;_.uI({_template:function(){if(cCJ!==void 0)return cCJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;rCJ===void 0&&(rCJ=document.createElement("template"));var P=rCJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return cCJ=N},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.W_(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(N){N.keyCode===27&&(N.preventDefault(),this.close())},
_track:function(N){if(!this.persistent&&!this.disableSwipe)switch(N.preventDefault(),N.detail.state){case "start":this._trackStart(N);break;case "track":this._trackMove(N);break;case "end":this._trackEnd(N)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var N=this.$.contentContainer.getBoundingClientRect();this._savedWidth=N.width;this._translateOffset=this.position==="left"?N.left:N.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(N){this._trackDetails&&(this._translateDrawer(N.detail.dx+this._translateOffset),this._trackDetails.push({dx:N.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(N){if(this._trackDetails){var b=N.detail.dx+this._translateOffset,S=this.getWidth();b=this.position==="left"?b>=0||b<=-S:b<=0||b>=S;if(!b){var P=this._trackDetails;this._trackDetails=null;this._flingDrawer(N,P);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}S/=2;N.detail.dx<-S?this.opened=this.position==="right":N.detail.dx>S&&(this.opened=this.position==="left");b?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(N,b){for(var S=Date.now(),P=S-100,H,K=0,C=b.length-1;K<=C;){var G=K+C>>1,a=b[G];a.timeStamp>=P?(H=a,C=G-1):K=G+1}return H?(N.detail.dx-H.dx)/(S-H.timeStamp||1):0},
_flingDrawer:function(N,b){b=this._calculateVelocity(N,b);if(!(Math.abs(b)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;N=N.detail.dx+this._translateOffset;var S=this.getWidth(),P=this.position==="left",H=b>0;H?(b=Math.max(b,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(b=Math.min(b,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");b=this._FLING_INITIAL_SLOPE*(!H&&P?-(N+S):H&&!P?S-N:-N)/b;this._styleTransitionDuration(b);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,b)}},
_styleTransitionDuration:function(N){this.style.transitionDuration=N+"ms";this.$.contentContainer.style.transitionDuration=N+"ms";this.$.scrim.style.transitionDuration=N+"ms"},
_styleTransitionTimingFunction:function(N){this.$.contentContainer.style.transitionTimingFunction=N;this.$.scrim.style.transitionTimingFunction=N},
_translateDrawer:function(N){var b=this.getWidth();this.position==="left"?(N=Math.max(-b,Math.min(N,0)),this.$.scrim.style.opacity=1+N/b):(N=Math.max(0,Math.min(N,b)),this.$.scrim.style.opacity=1-N/b);this.translate3d(N+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var N=this._drawerState;N===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;N!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),N!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var N=_.Tk(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');N.length>0?(this._firstTabStop=N[0],this._lastTabStop=N[N.length-1]):
this._lastTabStop=this._firstTabStop=null;(N=this.getAttribute("tabindex"))&&parseInt(N,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(N){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||N.keyCode!==9||(N.shiftKey?this._firstTabStop&&_.Tk(N).localTarget===this._firstTabStop&&(N.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Tk(N).localTarget===this._lastTabStop&&(N.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(N,b){this.toggleClass("visible",N&&!b,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var ac6;var Rmt;var WTi=function(){};
_.v=WTi.prototype;_.v._scrollTargetChanged=function(){};
_.v.scroll=function(){};
_.v._isValidScrollTarget=function(){};
_.v._toggleScrollListener=function(){};
_.v.toggleScrollListener=function(){};
_.v.createEffect=function(){};
_.v._effectsChanged=function(){};
_.v._layoutIfDirty=function(){};
_.v._boundEffect=function(){};
_.v._setUpEffect=function(){};
_.v._tearDownEffects=function(){};
_.v._runEffects=function(){};
_.v._scrollHandler=function(){};
_.v._scrollStateChanged=function(){};
_.v._getUndefinedMsg=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v._appResetLayoutHandler=function(){};
_.v.resetLayout=function(){};
_.v._notifyLayoutChanged=function(){};
_.v._notifyDescendantResize=function(){};
_.v._setThresholdTriggered=function(){};
WTi=_.uI({_template:function(){if(Rmt!==void 0)return Rmt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;ac6===void 0&&(ac6=document.createElement("template"));var P=ac6;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Rmt=N},
is:"tp-yt-app-header",behaviors:[Gro,C8E],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var N=_.Tk(this.$.slot).getDistributedNodes(),b=0,S;S=N[b];b++)if(S.nodeType===Node.ELEMENT_NODE)if(S.hasAttribute("sticky")){this._stickyElRef=S;break}else this._stickyElRef||(this._stickyElRef=S);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var N=this._clampedScrollTop,b=this._height===0||N===0,S=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;b||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();b?this._updateScrollState(N,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=S}},
_updateScrollState:function(N,b){if(this._height!==0){var S=0,P=this._top;var H=this._maxHeaderTop;var K=N-this._lastScrollTop,C=Math.abs(K),G=N>this._lastScrollTop,a=performance.now();this._mayMove()&&(S=this._clamp(this.reveals?P+K:N,0,H));N>=this._dHeight&&(S=this.condenses&&!this.fixed?Math.max(this._dHeight,S):S,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&C<100){if(a-this._initTimestamp>300||this._wasScrollingDown!==G)this._initScrollTop=N,this._initTimestamp=a;N>=H&&
(Math.abs(this._initScrollTop-N)>30||C>10?(G&&N>=H?S=H:!G&&N>=this._dHeight&&(S=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((S-P)/(K/(a-this._lastTimestamp)),0,300)+"ms"):S=this._top)}H=this._dHeight===0?N>0?1:0:S/this._dHeight;b||(this._lastScrollTop=N,this._top=S,this._wasScrollingDown=G,this._lastTimestamp=a);if(b||H!==this._progress||P!==S||N===0)this._progress=H,this._runEffects(H,S),this._transformHeader(S)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(N){this.translate3d(0,-N+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&N>=this._stickyElTop?Math.min(N,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(N,b,S){return Math.min(S,Math.max(b,N))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.Tk(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(N){switch(N){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Tk(this).querySelector("[main-title]");case "condensedTitle":return _.Tk(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var nJO;var dTL;_.uI({_template:function(){if(dTL!==void 0)return dTL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;nJO===void 0&&(nJO=document.createElement("template"));var P=nJO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return dTL=N},
is:"tp-yt-app-header-layout",behaviors:[C8E],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Tk(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var N=this.header;if(this.isAttached&&N){this.$.wrapper.classList.remove("initializing");N.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)N.style.left="",N.style.right="";else{var b=this.getBoundingClientRect(),S=document.documentElement.clientWidth-b.right;N.style.left=b.left+"px";N.style.right=S+"px"}b=this.$.contentContainer.style;S=N.offsetHeight;N.fixed&&!N.condenses&&this.hasScrollingRegion?
(b.marginTop=S+"px",b.paddingTop=""):(b.paddingTop=S+"px",b.marginTop="")}}});/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var mT6=_.$E(['<iron-iconset-svg name="icons" size="24">\n<svg><defs>\n<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g>\n<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g>\n<g id="accessible"><circle cx="12" cy="4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z"></path></g>\n<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></path></g>\n<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"></path></g>\n<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"></path></g>\n<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></g>\n<g id="add-alert"><path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"></path></g>\n<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"></path></g>\n<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path></g>\n<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></g>\n<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g>\n<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g>\n<g id="all-out"><path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8c-2.13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.57 0 7.7z"></path></g>\n<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g>\n<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g>\n<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g>\n<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"></path></g>\n<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></g>\n<g id="arrow-downward"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g>\n<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g>\n<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></path></g>\n<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g>\n<g id="arrow-forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"></path></g>\n<g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"></path></g>\n<g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="assessment"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g>\n<g id="assignment"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"></path></g>\n<g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></g>\n<g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path></g>\n<g id="assignment-return"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g>\n<g id="assignment-returned"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g>\n<g id="assignment-turned-in"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g>\n<g id="autorenew"><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"></path></g>\n<g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"></path></g>\n<g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="block"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"></path></g>\n<g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="bookmark-border"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="bug-report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"></path></g>\n<g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g>\n<g id="cached"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path></g>\n<g id="camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.25z"></path></g>\n<g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></g>\n<g id="card-giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="card-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"></path></g>\n<g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></path></g>\n<g id="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"></path></g>\n<g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></g>\n<g id="check-box"><path 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"></path></g>\n<g id="check-box-outline-blank"><path 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"></path></g>\n<g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g>\n<g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g>\n<g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g>\n<g id="class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="clear"><path 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"></path></g>\n<g id="close"><path 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"></path></g>\n<g id="cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"></path></g>\n<g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g>\n<g id="cloud-done"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g>\n<g id="cloud-download"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path></g>\n<g id="cloud-off"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"></path></g>\n<g id="cloud-queue"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g>\n<g id="cloud-upload"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="code"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path></g>\n<g id="compare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"></path></g>\n<g id="content-copy"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></g>\n<g id="content-cut"><path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"></path></g>\n<g id="content-paste"><path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"></path></g>\n<g id="copyright"><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="create"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></g>\n<g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"></path></g>\n<g id="credit-card"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="dashboard"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g>\n<g id="date-range"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"></path></g>\n<g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-forever"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-sweep"><path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"></path></g>\n<g id="description"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g>\n<g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="done"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></g>\n<g id="done-all"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></path></g>\n<g id="donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"></path></g>\n<g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84z"></path></g>\n<g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"></path></g>\n<g id="eject"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"></path></g>\n<g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path></g>\n<g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="euro-symbol"><path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1 0 .34.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z"></path></g>\n<g id="event"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g>\n<g id="event-seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g>\n<g id="exit-to-app"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path></g>\n<g id="expand-more"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></g>\n<g id="explore"><path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"></path></g>\n<g id="extension"><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></g>\n<g id="face"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></g>\n<g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g>\n<g id="favorite-border"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path></g>\n<g id="feedback"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"></path></g>\n<g id="file-download"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="file-upload"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"></path></g>\n<g id="filter-list"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g>\n<g id="find-in-page"><path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"></path></g>\n<g id="find-replace"><path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g>\n<g id="fingerprint"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g>\n<g id="first-page"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path></g>\n<g id="flag"><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g>\n<g id="flight-land"><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g>\n<g id="flight-takeoff"><path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g>\n<g id="flip-to-back"><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"></path></g>\n<g id="flip-to-front"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g>\n<g id="folder"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path></g>\n<g id="folder-open"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"></path></g>\n<g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></path></g>\n<g id="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"></path></g>\n<g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g>\n<g id="fullscreen"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g>\n<g id="fullscreen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"></path></g>\n<g id="g-translate"><path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4.09c1.04 0 1.99.37 2.74 1.07l.07.06-1.23 1.18-.06-.05c-.29-.27-.78-.59-1.52-.59-1.31 0-2.38 1.09-2.38 2.42s1.07 2.42 2.38 2.42c1.37 0 1.96-.87 2.12-1.46H7.08V9.91h3.95l.01.07c.04.21.05.4.05.61 0 2.35-1.61 4-3.92 4zm6.03-1.71c.33.6.74 1.18 1.19 1.7l-.54.53-.65-2.23zm.77-.76h-.99l-.31-1.04h3.99s-.34 1.31-1.56 2.74c-.52-.62-.89-1.23-1.13-1.7zM21 20c0 .55-.45 1-1 1h-7l2-2-.81-2.77.92-.92L17.79 18l.73-.73-2.71-2.68c.9-1.03 1.6-2.25 1.92-3.51H19v-1.04h-3.64V9h-1.04v1.04h-1.96L11.18 6H20c.55 0 1 .45 1 1v13z"></path></g>\n<g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g>\n<g id="gesture"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"></path></g>\n<g id="get-app"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="gif"><path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g>\n<g id="grade"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="help"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g>\n<g id="help-outline"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path></g>\n<g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="history"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="home"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g>\n<g id="hourglass-empty"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></g>\n<g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g>\n<g id="http"><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g>\n<g id="https"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="important-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z"></path></g>\n<g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"></path></g>\n<g id="indeterminate-check-box"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path></g>\n<g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g>\n<g id="info-outline"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"></path></g>\n<g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g>\n<g id="invert-colors"><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"></path></g>\n<g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"></path></g>\n<g id="label-outline"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g>\n<g id="language"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"></path></g>\n<g id="last-page"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"></path></g>\n<g id="launch"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="lightbulb-outline"><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g>\n<g id="line-style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z"></path></g>\n<g id="line-weight"><path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g>\n<g id="link"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g>\n<g id="list"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"></path></g>\n<g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="lock-open"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path></g>\n<g id="lock-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"></path></g>\n<g id="low-priority"><path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"></path></g>\n<g id="loyalty"><path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g>\n<g id="mail"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g>\n<g id="menu"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></g>\n<g id="more-horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="more-vert"><path 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"></path></g>\n<g id="motorcycle"><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"></path></g>\n<g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path></g>\n<g id="next-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path></g>\n<g id="note-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"></path></g>\n<g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"></path></g>\n<g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"></path></g>\n<g id="open-in-browser"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g>\n<g id="open-in-new"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="open-with"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g>\n<g id="pageview"><path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g>\n<g id="pan-tool"><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g>\n<g id="payment"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="perm-camera-mic"><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></path></g>\n<g id="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"></path></g>\n<g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>\n<g id="perm-identity"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"></path></g>\n<g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g>\n<g id="perm-phone-msg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g>\n<g id="perm-scan-wifi"><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"></path></g>\n<g id="pets"><circle cx="4.5" cy="9.5" r="2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g>\n<g id="picture-in-picture"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path></g>\n<g id="picture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"></path></g>\n<g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"></path></g>\n<g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"></path></g>\n<g id="power-settings-new"><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g>\n<g id="pregnant-woman"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></path></g>\n<g id="print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"></path></g>\n<g id="query-builder"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g>\n<g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="receipt"><path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g>\n<g id="record-voice-over"><circle cx="9" cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"></path></g>\n<g id="redeem"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"></path></g>\n<g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></g>\n<g id="remove"><path d="M19 13H5v-2h14v2z"></path></g>\n<g id="remove-circle"><path 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"></path></g>\n<g id="remove-circle-outline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="remove-shopping-cart"><path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1.26-.33 1.62-.84L21.46 24l1.27-1.27zM7.42 15c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h2.36l2 2H7.42zm8.13-2c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H6.54l9.01 9zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"></path></g>\n<g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="reply-all"><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g>\n<g id="report-problem"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="restore"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="restore-page"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.5-1.57 3.5-3.5S13.93 9.5 12 9.5c-1.35 0-2.52.78-3.1 1.9l1.6 1.6h-4V9l1.3 1.3C8.69 8.92 10.23 8 12 8c2.76 0 5 2.24 5 5s-2.24 5-5 5z"></path></g>\n<g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="rounded-corner"><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V8z"></path></g>\n<g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"></path></g>\n<g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"></path></g>\n<g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></g>\n<g id="select-all"><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g>\n<g id="send"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g>\n<g id="settings"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g>\n<g id="settings-applications"><path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-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-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"></path></g>\n<g id="settings-backup-restore"><path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g>\n<g id="settings-bluetooth"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"></path></g>\n<g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g>\n<g id="settings-cell"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"></path></g>\n<g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></path></g>\n<g id="settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"></path></g>\n<g id="settings-input-component"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-composite"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-hdmi"><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"></path></g>\n<g id="settings-input-svideo"><path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path></g>\n<g id="settings-overscan"><path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="settings-phone"><path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g>\n<g id="settings-power"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"></path></g>\n<g id="settings-remote"><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g>\n<g id="settings-voice"><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z"></path></g>\n<g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"></path></g>\n<g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></path></g>\n<g id="shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="sort"><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g>\n<g id="speaker-notes"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"></path></g>\n<g id="speaker-notes-off"><path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14-9H4.08L10 7.92V6h8v2h-7.92l1 1H18v2h-4.92l6.99 6.99C21.14 17.95 22 17.08 22 16V4c0-1.1-.9-2-2-2z"></path></g>\n<g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"></path></g>\n<g id="star"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="stars"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"></path></g>\n<g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g>\n<g id="subdirectory-arrow-left"><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path></g>\n<g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g>\n<g id="subject"><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g>\n<g id="supervisor-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"></path></g>\n<g id="swap-horiz"><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g>\n<g id="swap-vert"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"></path></g>\n<g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g>\n<g id="system-update-alt"><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g>\n<g id="tab"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"></path></g>\n<g id="tab-unselected"><path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"></path></g>\n<g id="text-format"><path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"></path></g>\n<g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"></path></g>\n<g id="thumb-down"><path 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"></path></g>\n<g id="thumb-up"><path 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"></path></g>\n<g id="thumbs-up-down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"></path></g>\n<g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"></path></g>\n<g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g>\n<g id="today"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g>\n<g id="toll"><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g>\n<g id="touch-app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g>\n<g id="track-changes"><path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"></path></g>\n<g id="translate"><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></g>\n<g id="trending-down"><path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></path></g>\n<g id="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g>\n<g id="trending-up"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"></path></g>\n<g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="turned-in-not"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v-2H6.5L12 9.5zM5.12 5l.82-1h12l.93 1H5.12z"></path></g>\n<g id="undo"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g>\n<g id="unfold-less"><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></g>\n<g id="unfold-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path></g>\n<g id="update"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58 3.51-3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"></path></g>\n<g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g>\n<g id="view-array"><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g>\n<g id="view-carousel"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></path></g>\n<g id="view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"></path></g>\n<g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></path></g>\n<g id="view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"></path></g>\n<g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g>\n<g id="view-module"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"></path></g>\n<g id="view-quilt"><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g>\n<g id="view-stream"><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g>\n<g id="view-week"><path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"></path></g>\n<g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></g>\n<g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path></g>\n<g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></path></g>\n<g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c0-1.1-.9-2-2-2z"></path></g>\n<g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g>\n<g id="youtube-searched-for"><path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g>\n<g id="zoom-in"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g>\n<g id="zoom-out"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"></path></g>\n</defs></svg>\n</iron-iconset-svg>']),
kr5=_.fLO(mT6);kr5.setAttribute("style","display: none;");document.head.appendChild(kr5.content);var T3i;var t66;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.uI({_template:function(){if(t66!==void 0)return t66;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;T3i===void 0&&(T3i=document.createElement("template"));var P=T3i;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return t66=N},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(N,b){var S=this._resolveSrc(N);S!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",N===""||b?this._setLoading(!1):(this._resolvedSrc=S,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var N=this.$.sizedImgDiv.style,b=this.$.placeholder.style;N.backgroundSize=b.backgroundSize=this.sizing;N.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";N.backgroundRepeat=b.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(N){N=_.Bz(N,this.$.baseURIAnchor.href);N.length>=2&&N[0]==="/"&&N[1]!=="/"&&(N=(location.origin||location.protocol+"//"+location.host)+N);return N}});var M6n;var FTq;_.uI({_template:function(){if(FTq!==void 0)return FTq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=
N.content,S=b.insertBefore;M6n===void 0&&(M6n=document.createElement("template"));var P=M6n;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return FTq=N},
is:"tp-yt-iron-pages",behaviors:[_.$M,_.IA],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var B3L;var lcE;_.uI({_template:function(){if(lcE!==void 0)return lcE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;B3L===void 0&&(B3L=document.createElement("template"));var P=B3L;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return lcE=N},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(N){return N?"false":"true"},
_headingChanged:function(N){var b=this.getAttribute("heading"),S=this.getAttribute("aria-label");typeof S==="string"&&S!==b||this.setAttribute("aria-label",N)},
_computeHeadingClass:function(N){return N?" over-image":""},
_computeAnimated:function(N){return N}});var LTE;var fcq;_.uI({_template:function(){if(fcq!==void 0)return fcq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;LTE===void 0&&(LTE=document.createElement("template"));var P=LTE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return fcq=N},
is:"tp-yt-paper-checkbox",behaviors:[_.IAN],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.W_(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var N=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",S=N.match(/[A-Za-z]+$/);S!==null&&(b=S[0]);N=parseFloat(N);S=8/3*N;b==="px"&&(S=Math.floor(S),S%2!==N%2&&S++);this.updateStyles({"--paper-checkbox-ink-size":S+
b})}})},
_computeCheckboxClass:function(N,b){var S="";N&&(S+="checked ");b&&(S+="invalid");return S},
_computeCheckmarkClass:function(N){return N?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Y7S._createRipple.call(this)}});var uLQ;var Qni;var xTE=_.y8.IronButtonState,oJn=(0,_.EH)(HTMLElement);
_.uI({_template:function(){if(Qni!==void 0)return Qni;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;uLQ===void 0&&(uLQ=document.createElement("template"));var P=uLQ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Qni=N},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[xTE,_.Ep,_.Iy,_.gR],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(N){var b=(0,_.jl)(this);b.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:N});b.shadowRoot.appendChild(N);return oJn.prototype._attachDom.call(this,N)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var N=this.contentElement;N&&N.selectedItem&&this._setSelectedItem(N.selectedItem)},
get contentElement(){for(var N=_.Tk(this.$.content).getDistributedNodes(),b=0,S=N.length;b<S;b++)if(N[b].nodeType===Node.ELEMENT_NODE)return N[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(N){this._setSelectedItem(N.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(N){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)===this&&this.open()},
_selectedItemChanged:function(N){var b="";N?b=N.label||N.getAttribute("label")||N.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(N,b){return b?b:N?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var N=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",N)}});var i5i;var JCi;_.uI({_template:function(){if(JCi!==void 0)return JCi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
var b=N.content,S=b.insertBefore;i5i===void 0&&(i5i=document.createElement("template"));var P=i5i;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return JCi=N},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var UTa;var Z56;_.uI({_template:function(){if(Z56!==void 0)return Z56;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;UTa===void 0&&(UTa=document.createElement("template"));var P=UTa;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return Z56=N},
is:"tp-yt-paper-progress",behaviors:[O5q],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(N){this.toggleClass("indeterminate",N,this.$.primaryProgress)},
_transformProgress:function(N,b){N.style.transform=N.style.webkitTransform="scaleX("+b/100+")"},
_mainRatioChanged:function(N){this._transformProgress(this.$.primaryProgress,N)},
_progressChanged:function(N,b,S,P,H){N=this._clampValue(N);b=this._clampValue(b);var K=this._calcRatio(N)*100,C=this._calcRatio(b)*100;this._setSecondaryRatio(K);this._transformProgress(this.$.secondaryProgress,K);this._transformProgress(this.$.primaryProgress,C);this.secondaryProgress=N;H?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",P)},
_disabledChanged:function(N){this.setAttribute("aria-disabled",N?"true":"false")},
_hideSecondaryProgress:function(N){return N===0}});var jnE;var zmE;var ACn=function(){};
_.v=ACn.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v._createRipple=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
ACn=_.uI({is:"tp-yt-paper-radio-button",_template:function(){if(zmE!==void 0)return zmE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;jnE===void 0&&(jnE=document.createElement("template"));var P=jnE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return zmE=N},
behaviors:[_.IAN],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer},
attached:function(){_.W_(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var N=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*N);b%2!==N%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var XOE;var EJw;_.uI({_template:function(){if(EJw!==void 0)return EJw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;XOE===void 0&&(XOE=document.createElement("template"));var P=XOE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return EJw=N},
is:"tp-yt-paper-radio-group",behaviors:[_.zrN],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(N){var b=this._valueToItem(N);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==N)if(this.allowEmptySelection)N="";else{b&&(b.checked=!0);return}b&&
(b.checked=!1)}_.IA.select.apply(this,[N]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(N){this._focusPrevious();N.preventDefault();this._activateFocusedItem()},
_onDownKey:function(N){this._focusNext();N.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(N){_.jTc._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(N){_.jTc._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.IA._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.e2._resetTabindices.apply(this,arguments);this.items.forEach(function(N){N.removeAttribute("aria-selected")},this)}});var pO_;var YN5;var yCi=function(){};
_.v=yCi.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._calcRatio=function(){};
_.v._clampValue=function(){};
_.v._calcStep=function(){};
_.v._validateValue=function(){};
_.v._update=function(){};
_.v._setImmediateValue=function(){};
_.v._setExpand=function(){};
_.v._setDragging=function(){};
_.v._setTransiting=function(){};
_.v._setMarkers=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setRatio=function(){};
yCi=_.uI({_template:function(){if(YN5!==void 0)return YN5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;pO_===void 0&&(pO_=document.createElement("template"));var P=pO_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return YN5=N},
is:"tp-yt-paper-slider",behaviors:[_.XX,_.Iy,_.y6k,O5q],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.hA(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(N,b,S){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",S);this.setAttribute("aria-valuenow",N);this._positionKnob(this._calcRatio(N)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(N){this._setImmediateValue(this._calcStep(this._calcKnobPosition(N)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(N){return(this.max-this.min)*N/100+this.min},
_onTrack:function(N){N.stopPropagation();switch(N.detail.state){case "start":this._trackStart(N);break;case "track":this._trackX(N);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(N){this.dragging||this._trackStart(N);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,N.detail.dx*(this._isRTL?-1:1)));N=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(N);N=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(N+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var N=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;N.transform=N.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(N){this._expandKnob();N.preventDefault();this.focus()},
_bartrack:function(N){this._allowBarEvent(N)&&this._onTrack(N)},
_barclick:function(N){this._w=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(N.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var S=this.ratio;this._setTransiting(!0);this._positionKnob(b);S===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
N.preventDefault();this.focus()},
_bardown:function(N){this._allowBarEvent(N)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(N))},
_knobTransitionEnd:function(N){N.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(N,b,S,P){P||this._setMarkers([]);b=Math.round((S-b)/this.step);b>N&&(b=N);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))},
_mergeClasses:function(N){return Object.keys(N).filter(function(b){return N[b]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(N){return!this.ignoreBarTouch||N.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(N){this._isRTL?this._incrementKey(N):this._decrementKey(N)},
_rightKey:function(N){this._isRTL?this._decrementKey(N):this._incrementKey(N)},
_incrementKey:function(N){this.disabled||(N.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),N.preventDefault())},
_decrementKey:function(N){this.disabled||(N.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),N.preventDefault())},
_changeValue:function(N){this.value=N.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(N){N.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Y7S._createRipple.call(this)},
_focusedChanged:function(N){N&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=N?"":"none",this._ripple.holdDown=N)}});var IcO;var DTQ;var TG=null,V6E=function(){};
_.v=V6E.prototype;_.v.fit=function(){};
_.v._discoverInfo=function(){};
_.v.resetFit=function(){};
_.v.refit=function(){};
_.v.position=function(){};
_.v.constrain=function(){};
_.v._sizeDimension=function(){};
_.v.__sizeDimension=function(){};
_.v.center=function(){};
_.v.__getNormalizedRect=function(){};
_.v.__getOffscreenArea=function(){};
_.v.__getPosition=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v.toggle=function(){};
_.v.open=function(){};
_.v.close=function(){};
_.v.cancel=function(){};
_.v.invalidateTabbables=function(){};
_.v._ensureSetup=function(){};
_.v._canceledChanged=function(){};
_.v._withBackdropChanged=function(){};
_.v._prepareRenderOpened=function(){};
_.v._finishRenderOpened=function(){};
_.v._finishRenderClosed=function(){};
_.v._preparePositioning=function(){};
_.v._finishPositioning=function(){};
_.v._applyFocus=function(){};
_.v._onCaptureClick=function(){};
_.v._onCaptureFocus=function(){};
_.v._onCaptureEsc=function(){};
_.v._onCaptureTab=function(){};
_.v._onIronResize=function(){};
_.v._onNodesChange=function(){};
_.v.__ensureFirstLastFocusables=function(){};
_.v.__openedChanged=function(){};
_.v.__deraf=function(){};
_.v.__updateScrollObservers=function(){};
_.v.__addScrollListeners=function(){};
_.v.__removeScrollListeners=function(){};
_.v.__isValidScrollAction=function(){};
_.v.__onCaptureScroll=function(){};
_.v.__saveScrollPosition=function(){};
_.v.__restoreScrollPosition=function(){};
_.v._setCanceled=function(){};
V6E=_.uI({_template:function(){if(DTQ!==void 0)return DTQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;IcO===void 0&&(IcO=document.createElement("template"));var P=IcO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return DTQ=N},
is:"tp-yt-paper-toast",behaviors:[_.cS],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.p2._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.vS.requestAvailability()},
show:function(N){typeof N=="string"&&(N={text:N});for(var b in N)b.indexOf("_")===0?_.p2._warn('The property "'+b+'" is private and was not set.'):b in this?this[b]=N[b]:_.p2._warn('The property "'+b+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(N){N&&N.target===this&&N.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(TG&&TG!==this&&TG.close(),TG=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):TG===this&&(TG=null);_.ra._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(N){this.positionTarget=N},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var gJo=new _.WF("disablePersonalizationAction");var TPn=new _.WF("showDmaConsentFlowCommand");var tO5=new _.WF("showMmgNoticeCommand");var emJ=new _.WF("saveConsentAction");var $TE=new _.WF("navigateAction");var hmJ=new _.WF("replaceFeedContentAction");var qN5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(qN5,_.rc);var wO5=_.N$e(qN5);var N4i=new _.WF("imageTileRenderer");var bW5=new _.WF("promotedSparklesWebRenderer");var SDJ=new _.WF("adGridCardCollectionViewModel");var Pk6=new _.WF("addRendererToItemSectionAction");var HWq=new _.WF("updateTopbarAvatarAction");var sDO=new _.WF("channelHandleValidationResultRenderer");var KqE=new _.WF("generateHandleFromNameResultRenderer");var vt6=new _.WF("channelHandleInputRenderer");var OWq=new _.WF("copyLinkRenderer");var CkL=new _.WF("carouselTitleViewModel");var Gqw=new _.WF("ctaCarouselItemViewModel");var rJE=new _.WF("timedCommand");var cJ5=new _.WF("textFieldViewModel");var aun=new _.WF("crowdsourcedContextUserRatingFormFlowState");var RyO=new _.WF("noteViewModel");var WqL=new _.WF("alertCommand");var ntQ=new _.WF("clearCookieAction");var dh5=new _.WF("engagementPanelHeaderShowNavigationButtonCommand");var mha=new _.WF("getMultiPageMenuAction");var kqw=new _.WF("addToGuideSectionAction"),T4Q=new _.WF("removeFromGuideSectionAction");var tEL=new _.WF("hideEngagementPanelScrimAction");var MEa=new _.WF("updateNotificationsUnseenCountAction");var Fqw=new _.WF("resetChannelUnreadCountCommand");var B4n=new _.WF("resetSubscriptionsUnreadDotCommand");var luo=new _.WF("selectLanguageCommand");var JmL=new _.WF("sendFeedbackAction");var Lq6=new _.WF("setActivePanelItemAction");var fuQ=new _.WF("showEngagementPanelScrimAction");var u_q=new _.WF("updateEngagementPanelAction");var QDJ=new _.WF("updateSearchInVideoResultsAction");var xhE=new _.WF("uploadImageToScottyCommand");var otq=new _.WF("webWatchNextResponseExtensionData");var iWJ=new _.WF("manageLabsStateCommand");var JJo=new _.WF("registerPromoCommand");var Uht=new _.WF("setPushNotificationsEnabledCommand");var ZWJ=new _.WF("updateSentimentBarStateCommand");var jDQ=new _.WF("desktopTopbarRenderer");var zyo=new _.WF("surveyFollowUpRenderer");var AJO=new _.WF("formRenderer");var Xn6=new _.WF("inlineFormRenderer");var Ett=new _.WF("handlesClaimingRadioOptionRenderer");var pnL=new _.WF("hotkeyDialogRenderer");var YD5=new _.WF("playlistSidebarPrimaryInfoRenderer");var yJJ=new _.WF("transcriptCueGroupRenderer");var Iu6=new _.WF("transcriptCueRenderer");var DhL=new _.WF("transcriptFooterRenderer");var VEQ=new _.WF("engagementPanelAdSubtitleRenderer");var gtt=new _.WF("videoDescriptionFantasySectionViewModel");var eyt=new _.WF("inlineSurveyRenderer");var $hi=new _.WF("radioButtonSurveyOptionRenderer"),hyO=new _.WF("checkboxSurveyOptionRenderer");var qDJ=new _.WF("showSurveyCommand");var tQ=new _.WF("abuseReportFlowState");var wnQ=new _.WF("modifyReportFormCommand");var NZO=new _.WF("feedbackFormFlowState");var bHO=new _.WF("inputBoxViewModel");var S$i=new _.WF("flowRootRenderer");var VaL=new _.WF("lengthValidationRule");var eJi=new _.WF("regexValidationRule");var hJq=new _.WF("selectedValidationRule");var Pu6=new _.WF("accountLinkCommand");var HHE=new _.WF("accountUnlinkCommand");var s8E=new _.WF("deleteClipEngagementPanelCommand");var KMa=new _.WF("logAccountLinkingEventCommand");var v3O=new _.WF("loopCommand");var LlQ=new _.WF("guideCollapsibleEntryRenderer");var OHa=new _.WF("guideDownloadsEntryRenderer");var lMn=new _.WF("guideEntryRenderer");var Cua=[0,_.qW,_.s7,_.rC];var Ggw=[0,_.eM,-2,FK6];var rr5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zE(N)};
_.F(rr5,_.rc);rr5.prototype.getFeature=function(){return _.xp(this,6)};
rr5.prototype.hasFeature=function(){return _.Fi(_.kp(this,6))!=null};var cri=[0,_.qW];var aUw=_.FH(rr5,[0,_.eM,-2,FK6,_.eM,_.qW,-1,_.gV,-1,_.qW,-3,_.s6Z,_.$p,Ggw,_.qW,-1,FW5,_.gV,_.qW,Cua,[0,[0,_.qW,-2,2,_.qW,-1,[0,_.qW],[0,_.s7,_.qW],[0,_.s7],[0,_.qW],2,[0,_.s7,2,[0,_.s7,-1],[0,_.b2,Bt_],1,[0,lyQ],1,[0,_.qW]],[0,_.$p],[0,[1,2],_.SO,[0,_.qW],_.SO,[0,_.qW,_.Hr,-1]],[0,_.s7],[0,_.qW,[0,[1,2,3,4],_.SO,[0,[0,_.qW],cri],_.SO,[0,[0,_.qW],cri],_.SO,[0,cri],_.SO,[0,[0,_.qW],cri]]],[0,_.qW],1,[0,_.qW,_.s7],1,[0,_.qW],[0,_.$p],[0,_.qW,_.s7,-1,[0,_.qW,-4]],[0,_.qW],[0,_.qW,-2],1,[0,_.qW],[0,
_.$p],[0,_.$p,_.qW],1,[0,_.$p],[0],[0]],_.qW,_.s7,_.DC,1,_.Pr,_.qW,_.s7],_.eM,_.Pr,_.s7,-1,_.eM]);var R0_=new _.WF("interstitialViewModel");var WM5=new _.WF("changeCreatorEndscreenVisibilityCommand");var n3Q=new _.WF("liveChatCallForQuestionsRenderer");var dqq=new _.WF("getLocationCommand");var mqQ=new _.WF("locationCollectionCommand");var kgE=new _.WF("chipsShelfViewModel");var Ms=new _.WF("cinematicContainerRenderer");var Fd=new _.WF("changeMarkersVisibilityCommand");var TZt=new _.WF("updateTimedMarkersSyncObserverCommand");var tJJ=new _.WF("storiesItemViewModel");var HYL=new _.WF("talkToRecsViewModel");var xvn=new _.WF("timelyActionViewModel");var ss6=new _.WF("timelyActionsOverlayViewModel");var K7_=new _.WF("addToRemoteQueueAction");var v$i=new _.WF("insertInRemoteQueueAction");var OYt=new _.WF("removeFromRemoteQueueAction");var C6n=new _.WF("productDetailsThumbnailRenderer"),GOE=new _.WF("productDetailsVariantRenderer"),rna=new _.WF("productDetailsVariantOptionRenderer"),cnQ=new _.WF("productDetailsOffersContainerRenderer"),aFE=new _.WF("productDetailsOfferRenderer");var RTi=new _.WF("shoppingFlaggingRenderer");var W7n=new _.WF("notificationActionRenderer");var n$w=new _.WF("notificationRenderer");var P2q=new _.WF("localWatchHistoryCommand");var dFt=new _.WF("pdgBuyFlowHeaderRenderer");var mFE=new _.WF("pdgColorSliderRenderer");var kO_=new _.WF("pdgCommentOptionRenderer");var THo=new _.WF("pdgCommentPreviewRenderer");var tmw=new _.WF("superVodSelectableItemButtonRenderer");var Mm6=new _.WF("creatorGoalSetUpFlowDropdownItemViewModel");var F7_=new _.WF("creatorGoalSetUpFlowDropdownViewModel");var BHi=new _.WF("repeatChapterCommand");var lFt=new _.WF("watchPlayerOverflowMenuCommand");var L7O=new _.WF("compositeVideoOverlayRenderer");var fF_=new _.WF("playlistBylineRenderer");var u4E=new _.WF("reelNavigateCommand");var QsJ=new _.WF("reelNonVideoContentDismissalCommand");var xFL=new _.WF("showReelsCommentsOverlayCommand");var o$n=new _.WF("switchButtonRenderer");var iY5=new _.WF("responsiveContainerConfiguration");var JnJ=new _.WF("sortFilterSubMenuRenderer");var UFi=new _.WF("upsellDialogRenderer");var ZY6=new _.WF("insertChannelTabCommand");var js5=new _.WF("feedbackQuestionRenderer"),zTt=new _.WF("feedbackOptionRenderer");var Ant=new _.WF("sponsorshipsTierRenderer"),XZL=new _.WF("sponsorshipsPromotionChannelRenderer");var E$w=new _.WF("simpleSurveyMessageRenderer");var oYw=new _.WF("thumbnailBadgeViewModel");var pZa=new _.WF("checkboxGroupViewModel");var YbQ=new _.WF("checkboxItemViewModel");var Ym6=new _.WF("radioButtonGroupViewModel");var ynE=new _.WF("radioButtonItemViewModel");var IFa=new _.WF("switchListItemViewModel");var Oo6=new _.WF("inputComposerViewModel");var G8i=new _.WF("panelFooterViewModel");var DFL=new _.WF("transcriptEditSegmentCommand");var Vmq=new _.WF("transcriptUpdateSegmentTextCommand");var g$J=new _.WF("transcriptSearchBoxRenderer");var eTi=new _.WF("transcriptSegmentListRenderer");var $FQ=new _.WF("transcriptSegmentRenderer");var hTJ=new _.WF("videoInteractionPopUpRenderer");var qmt=new _.WF("updateDateTextAction");var wZ6=new _.WF("updateTitleAction");var NfO=new _.WF("updateViewershipAction");var bw6=new _.WF("relatedChipCommand");var S1w=new _.WF("carouselLockupRenderer");var PBJ=new _.WF("engagementPanelSectionListRenderer");var BB=new _.WF("expandableVideoDescriptionBodyRenderer");var HwE=new _.WF("videoDescriptionHeaderRenderer");var sYn=new _.WF("videoDescriptionYouchatSectionViewModel");var zpO=new _.WF("invokeInstrumentManagerAction");var KYL=new _.WF("logYpcFlowDismissCommand");var vPt=new _.WF("logYpcFlowStartCommand");var OwE=new _.WF("ypcCancelRecurrenceCommand");var CBJ=new _.WF("cancellationFlowState");var iUq=new _.WF("premiumPurchaseFlowState");var Gfn=new _.WF("unlimitedCreateFamilyEndpoint");var rpq=new _.WF("surveyAnswerCardRenderer");var cpq=new _.WF("iconBadgeRenderer");var arL=new _.WF("showMoreButtonRenderer");var R3E=new _.WF("pollChoiceData");var s96=new _.WF("collaborativePlaylistVisibilityValidationRule");var WYi=function(N){_.uW.call(this,"channelMessage");this.message=N};
_.F(WYi,_.uW);var nPn=function(N){_.uW.call(this,"channelError");this.error=N};
_.F(nPn,_.uW);var dVJ={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},mVJ={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},kfa={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Tf6={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},tCi={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var lc=function(N){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.f1;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;N&&(this.id=N.id||N.name,this.name=N.name,this.clientName=N.clientName?N.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=N.app,this.type=N.type||"REMOTE_CONTROL",this.username=N.user||"",this.avatar=N.userAvatarUri||"",this.obfuscatedGaiaId=N.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=N.ownerObfuscatedGaiaId||"",this.castUserId=N.castUserId||"",this.theme=N.theme||"u",MCE(this,N.capabilities||""),FY6(this,
N.compatibleSenderThemes||""),BfQ(this,N.experiments||""),this.remoteControllerUrl=N.remoteControllerUrl||"",this.localChannelEncryptionKey=N.localChannelEncryptionKey||"",this.deviceContext=N.deviceContext,this.brand=N.brand||"",this.model=N.model||"",this.year=N.year||0,this.os=N.os||"",this.osVersion=N.osVersion||"",this.chipset=N.chipset||"",this.mdxDialServerType=N.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=N.pairingType||"unknown",N=N.deviceInfo)&&(N=JSON.parse(N),this.brand=
N.brand||"",this.model=N.model||"",this.year=N.year||0,this.os=N.os||"",this.osVersion=N.osVersion||"",this.chipset=N.chipset||"",this.clientName=N.clientName?N.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=N.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
lc.prototype.copy=function(){var N={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(N.brand=this.brand);
this.model&&(N.model=this.model);this.year&&(N.year=this.year);this.os&&(N.os=this.os);this.osVersion&&(N.osVersion=this.osVersion);this.chipset&&(N.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(N.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(N.mdxDialServerType=this.mdxDialServerType);N=new lc(N);N.connected=this.connected;N.remoteControllerUrl=this.remoteControllerUrl;N.localChannelEncryptionKey=this.localChannelEncryptionKey;N.deviceContext=
this.deviceContext;N.castUserId=this.castUserId;return N};
lc.prototype.equals=function(N){return N?this.id==N.id:!1};
var MCE=function(N,b){N.capabilities.clear();_.Cm(b.split(","),_.Rm(_.Vm.contains,dVJ)).forEach(function(S){N.capabilities.add(S)})},FY6=function(N,b){N.compatibleSenderThemes.clear();
_.Cm(b.split(","),_.Rm(_.Vm.contains,mVJ)).forEach(function(S){N.compatibleSenderThemes.add(S)})},BfQ=function(N,b){N.experiments.clear();
b.split(",").forEach(function(S){N.experiments.add(S)})};_.Km(YKt,_.E5);_.v=YKt.prototype;_.v.JSC$19941_onTick_=function(){this.JSC$19939_interval_=Math.min(3E5,this.JSC$19939_interval_*2);this.JSC$19941_listener_();this.nextTickTime_&&this.start()};
_.v.start=function(){var N=this.JSC$19939_interval_+15E3*Math.random(),b=this.delay_;b.isActive()||b.start(N);this.nextTickTime_=Date.now()+N};
_.v.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.v.isActive=function(){return this.delay_.isActive()};
_.v.reset=function(){this.delay_.stop();this.JSC$19939_interval_=5E3};_.Km(dF,H5L);_.v=dF.prototype;_.v.subscribe=function(N,b,S){return this.pubsub_.subscribe(N,b,S)};
_.v.unsubscribe=function(N,b,S){return this.pubsub_.unsubscribe(N,b,S)};
_.v.unsubscribeByKey=function(N){return this.pubsub_.unsubscribeByKey(N)};
_.v.publish=function(N,b){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.v.dispose=function(){this.JSC$19942_disposed_||(this.JSC$19942_disposed_=!0,_.Wv(this.pubsub_),this.disconnect(),_.Wv(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19942_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.KA({})})};
_.v.isDisposed=function(){return this.JSC$19942_disposed_};
_.v.connect=function(N,b,S){var P=this,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return _.oX(a,2),P.useAsyncBrowserChannelHandler_?a.yield(P.connectPromise_,2):a.jumpTo(2);_.xw(a);if(P.JSC$19942_disposed_||P.JSC$19942_channel_&&P.JSC$19942_channel_.getState()==2&&!P.isInitialReconnectTimer_)return a.return();P.sCookie_="";P.isInitialReconnectTimer_||P.reconnectTimer_.stop();P.connectionParams_=N||null;P.connectUi_=b||0;H=P.JSC$19942_pathPrefix_+"/test";K=P.JSC$19942_pathPrefix_+"/bind";C=
new m2(S?S.firstTestResults:null,S?S.secondTestResults:null,P.enableAsyncTest_);if(G=P.JSC$19942_channel_)G.handler_=null;C.handler_=P;P.JSC$19942_channel_=C;if(P.useAsyncBrowserChannelHandler_)return P.connectPromise_=lrQ(P).then(function(){return LYQ(P,H,K,G,S)}),a.return(P.connectPromise_.then(function(){P.connectPromise_=_.KA()}));
LYQ(P,H,K,G,S);return _.Jv(a,0)})};
var LYQ=function(N,b,S,P,H){fr6(N);if(N.JSC$19942_channel_){var K=_.Vg("ID_TOKEN"),C=N.JSC$19942_channel_.JSC$19856_extraHeaders_||{};K?C["x-youtube-identity-token"]=K:delete C["x-youtube-identity-token"];N.JSC$19942_channel_.JSC$19856_extraHeaders_=C}uuE(N);P?(P.getState(),N.JSC$19942_channel_.connect(b,S,N.defaultQueryParams_,P.sid_,P.JSC$19856_lastArrayId_)):H?N.JSC$19942_channel_.connect(b,S,N.defaultQueryParams_,H.sessionId,H.arrayId):N.JSC$19942_channel_.connect(b,S,N.defaultQueryParams_);N.isInitialReconnectTimer_&&
!N.reconnectTimer_.isActive()&&N.reconnectTimer_.start()};
dF.prototype.disconnect=function(N){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.KA())}finally{this.disconnectUi_=N||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),fr6(this),this.JSC$19942_channel_&&(this.JSC$19942_channel_.getState()==3&&qMw(this.JSC$19942_channel_),this.JSC$19942_channel_.disconnect()),this.disconnectUi_=0}};
dF.prototype.sendMessage=function(N,b){var S=this,P;return _.r(function(H){switch(H.nextAddress){case 1:_.oX(H,2);if(!S.useAsyncBrowserChannelHandler_){H.jumpTo(2);break}return H.yield(S.connectPromise_,2);case 2:_.xw(H);if(S.JSC$19942_disposed_)return H.return();P={_sc:N};b&&_.Vm.extend(P,b);if(S.reconnectTimer_.isActive()||(S.JSC$19942_channel_?S.JSC$19942_channel_.getState():0)==2){S.JSC$19942_pendingMessages_.push(P);H.jumpTo(6);break}if(!S.isChannelOpened()){H.jumpTo(6);break}_.oX(H,8);if(!S.useAsyncBrowserChannelHandler_||
QYw(S,N)){H.jumpTo(8);break}return H.yield(lrQ(S),8);case 8:_.xw(H,0,0,1);S.isChannelOpened()&&(QYw(S,N)||uuE(S),fr6(S),hua(S.JSC$19942_channel_,P));_.Jv(H,6,1);break;case 6:_.Jv(H,0)}})};
var QYw=function(N,b){return N.enableMdxAuthForConnectionOnly_?!0:N.disableMdxAuthForAdMessages_?Object.values(kfa).includes(b):N.disableMdxAuthForNonPlaybackMessages_?!Object.values(Tf6).includes(b):N.disableMdxAuthForShortsMessages_?Object.values(tCi).includes(b):!1};
dF.prototype.JSC$19863_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.Wv(this.reconnectTimer_),this.reconnectTimer_=new YKt(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19942_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)xVO(this);else{var N=this.JSC$19942_pendingMessages_;this.JSC$19942_pendingMessages_=[];var b=N.length;uuE(this);oPt(this,
N,b);iwJ(this)}else iwJ(this)};
var xVO=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return _.oX(P,2),P.yield(lrQ(N),2);_.xw(P);b=N.JSC$19942_pendingMessages_;N.JSC$19942_pendingMessages_=[];S=b.length;oPt(N,b,S);iwJ(N);return _.Jv(P,0)})},oPt=function(N,b,S){for(var P=0;P<S;++P)hua(N.JSC$19942_channel_,b[P]);
iwJ(N)},iwJ=function(N){N.publish("handlerOpened");
N.JSC$19942_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.v=dF.prototype;_.v.JSC$19863_channelError=function(N){var b=N==2&&this.JSC$19942_channel_.JSC$19856_lastStatusCode_==401;N==4||b||this.reconnectTimer_.start();this.publish("handlerError",N,b);b=Object.keys(pcE).find(function(S){return pcE[S]===N});
this.JSC$19942_channelErrorCounter.increment("BROWSER_CHANNEL",b!=null?b:"UNKNOWN")};
_.v.JSC$19863_channelClosed=function(N,b){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(b)for(var S=b.length,P=0;P<S;++P){var H=b[P].map;H&&this.JSC$19942_pendingMessages_.push(H)}this.JSC$19942_channelClosedCounter.increment("BROWSER_CHANNEL");N&&this.pendingMapsOnClosedCounter.JSC$10165_streamzService.JSC$10020_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",N.length);b&&this.undeliveredMapsOnClosedCounter.JSC$10168_streamzService.JSC$10020_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
b.length)};
_.v.JSC$19863_channelSuccess=function(N,b){b!=null&&N!=null&&this.channelMessageSentCounter.increment()};
_.v.JSC$19863_getAdditionalParams=function(){var N={v:2};this.sCookie_&&(N.gsessionid=this.sCookie_);this.connectUi_!=0&&(N.ui=""+this.connectUi_);this.disconnectUi_!=0&&(N.ui=""+this.disconnectUi_);this.connectionParams_&&_.Vm.extend(N,this.connectionParams_);return N};
_.v.JSC$19863_channelHandleArray=function(N){N[0]=="S"?this.sCookie_=N[1]:N[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19942_channel_.disconnect()):this.publish("handlerMessage",new pda(N[0],N[1]));this.JSC$19942_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.v.isChannelOpened=function(){return!!this.JSC$19942_channel_&&this.JSC$19942_channel_.getState()==3};
var fr6=function(N){if(N.JSC$19942_channel_){var b=N.JSC$19942_getXsrfToken_(),S=N.JSC$19942_channel_.JSC$19856_extraHeaders_||{};b?S["x-youtube-lounge-xsrf-token"]=b:delete S["x-youtube-lounge-xsrf-token"];N.JSC$19942_channel_.JSC$19856_extraHeaders_=S}},lrQ=function(N){if(N.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.KA();
if(!N.enableCachedUpdateAuthorizationHeader_)return Jpn(N);N.updateAuthorizationHeaderPromise_===null&&(N.updateAuthorizationHeaderPromise_=Jpn(N));return N.updateAuthorizationHeaderPromise_},Jpn=function(N){return _.z5(N.getAuthorizationHeader_().then(function(b){UV6(N,b)}).thenCatch(function(){}),function(){N.updateAuthorizationHeaderPromise_=null})},UV6=function(N,b){if(N.JSC$19942_channel_){var S=N.JSC$19942_channel_.JSC$19856_extraHeaders_||{};
b&&Object.keys(b).length>0?S=Object.assign({},S,b):delete S.Authorization;N.JSC$19942_channel_.JSC$19856_extraHeaders_=S}},uuE=function(N){N.getAuthorizationHeaderSync_&&!N.useAsyncBrowserChannelHandler_&&UV6(N,N.getAuthorizationHeaderSync_())};
_.v=dF.prototype;_.v.setLoungeToken=function(N){(this.defaultQueryParams_.loungeIdToken=N)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19942_channel_){var b=this.JSC$19942_channel_.JSC$19856_extraHeaders_||{};N?b["X-YouTube-LoungeId-Token"]=N:delete b["X-YouTube-LoungeId-Token"];this.JSC$19942_channel_.JSC$19856_extraHeaders_=b}};
_.v.getDeviceId=function(){return this.defaultQueryParams_.id};
_.v.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var N=this.reconnectTimer_;N.delay_.fire();N.start()};
_.v.safeReconnect_=function(){var N=this.JSC$19942_channel_,b=0;N.JSC$19856_backChannelRequest_&&b++;N.forwardChannelRequest_&&b++;b==0&&this.connect(this.connectionParams_,this.connectUi_)};var tU=function(N,b){var S=N.basePath;N.supportCors&&(S=N.scheme+"://"+N.domain+N.port+N.basePath);return _.Hq(S+b,{})};
hCL.prototype.sendRequest=function(N,b,S,P,H,K,C){N={format:K?"RAW":"JSON",method:N,context:this,timeout:5E3,withCredentials:!!C,onSuccess:_.Rm(this.JSC$19948_onSuccess_,P,!K),onError:_.Rm(this.onError_,H),onTimeout:_.Rm(this.JSC$19948_onTimeout_,H)};S&&(N.postParams=S,N.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.lQ(b,N)};
hCL.prototype.JSC$19948_onSuccess_=function(N,b,S,P){b?N(P):N({text:S.responseText})};
hCL.prototype.onError_=function(N,b){N(Error("Zk`"+b.status))};
hCL.prototype.JSC$19948_onTimeout_=function(N){N(Error("$k"))};var b3w=function(N,b){return!!b&&(N.id==b||N.uuid==b)},ZwE=function(N){return{name:N.name,
screenId:N.id,loungeToken:N.token,dialId:N.uuid,screenIdType:N.idType,screenIdSecret:N.secret}},jYo=function(N){return new mU(N)},z3q=function(N){return Array.isArray(N)?_.gY(N,jYo):[]},PHt=function(N){if(!N)return"null";
var b=N.token?".."+N.token.slice(-6):"-",S=N.uuid?".."+N.uuid.slice(-6):"-",P=N.secret?".."+N.secret.slice(-6):"-";return'{name:"'+N.name+'",id:'+N.id.substr(0,6)+"..,token:"+(b+",uuid:"+S+",idType:"+N.idType+",secret:")+(P+"}")},xI5=function(N){return Array.isArray(N)?"["+_.gY(N,PHt).join(",")+"]":"null"};var O3w="",T2=null;var mIE=function(N,b){_.J1.call(this);var S=this;this.handler=N();this.handler.subscribe("handlerOpened",this.JSC$19955_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(P,H){S.onError(H)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=b};
_.F(mIE,_.J1);_.v=mIE.prototype;_.v.connect=function(N,b,S){this.handler.connect(N,b,S)};
_.v.disconnect=function(N){this.handler.disconnect(N)};
_.v.reconnect=function(){this.handler.reconnect()};
_.v.getDeviceId=function(){return this.handler.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.v.JSC$19955_onOpened=function(){this.dispatchEvent("channelOpened");var N=this.handler,b=this.currentScreenId;_.Bd("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!N.JSC$19942_channel_.useChunked_,sessionId:N.JSC$19942_channel_.sid_,arrayId:N.JSC$19942_channel_.JSC$19856_lastArrayId_});_.Bd("yt-remote-session-screen-id",b);N=Sjn();b=PI6();_.Z_(N,b)||N.push(b);vqq(N);KdQ()};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(N){this.dispatchEvent(new WYi(N))};
_.v.onError=function(N){this.dispatchEvent(new nPn(N?1:0))};
_.v.sendMessage=function(N,b){this.handler.sendMessage(N,b)};
_.v.setLoungeToken=function(N){this.handler.setLoungeToken(N)};
_.v.dispose=function(){this.handler.dispose()};var dIL=function(N,b,S){var P=this;S=S===void 0?function(){return""}:S;
var H=H===void 0?new sHi:H;var K=K===void 0?new _.uQ:K;this.pathPrefix=N;this.defaultQueryParams=b;this.getXsrfToken=S;this.JSC$19958_pubsub=K;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new YKt(function(){var C;((C=P.channel)==null?void 0:JDn((new ONn(C,C.JSC$19824_channel_)).JSC$19834_channel_.forwardChannelRequestPool_))===0&&P.connect(P.connectionParams,P.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19958_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19958_channelOpenedCounter=new ysL;this.JSC$19958_channelClosedCounter=new IKQ;this.JSC$19958_channelMessageReceivedCounter=new VZO;this.JSC$19958_channelErrorCounter=new gn5};
dIL.prototype.connect=function(N,b){N=N===void 0?{}:N;b=b===void 0?0:b;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=N,this.connectUi=b,Apt(this),(N=_.Vg("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=N:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new cB(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,XLJ(this))};
var XLJ=function(N){_.lH(N.channel,"w",function(){N.channelState=3;N.reconnectTimer.reset();N.connectionParams=null;N.connectUi=0;for(var b=_.O(N.nonAckedMessagesOnChannelClosed),S=b.next();!S.done;S=b.next())S=S.value,N.channel&&N.channel.send(S);N.nonAckedMessagesOnChannelClosed=[];N.publish("webChannelOpened");N.JSC$19958_channelOpenedCounter.increment("WEB_CHANNEL")});
_.lH(N.channel,"x",function(){N.channelState=0;N.reconnectTimer.isActive()||N.publish("webChannelClosed");var b,S=(b=N.channel)==null?void 0:C$a(new ONn(b,b.JSC$19824_channel_));S&&(N.nonAckedMessagesOnChannelClosed=[].concat(_.IX(S)));N.JSC$19958_channelClosedCounter.increment("WEB_CHANNEL")});
_.lH(N.channel,"z",function(b){var S=b.data;S[0]==="gracefulReconnect"?(N.reconnectTimer.start(),N.channel&&N.channel.close()):N.publish("webChannelMessage",new pda(S[0],S[1]));N.lastStatusCode=b.statusCode;N.JSC$19958_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.lH(N.channel,"y",function(){N.lastStatusCode===401||N.reconnectTimer.start();N.publish("webChannelError");N.JSC$19958_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.v=dIL.prototype;_.v.disconnect=function(N){this.disconnectUi=N===void 0?0:N;this.reconnectTimer.stop();Apt(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.v.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var N=this.reconnectTimer;N.delay_.fire();N.start()};
_.v.sendMessage=function(N,b){this.channel&&(Apt(this),N=Object.assign({},{_sc:N},b),this.channel.send(N))};
_.v.setLoungeToken=function(N){N||this.reconnectTimer.stop();N?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=N:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Apt=function(N){var b=N.getXsrfToken();b?N.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=b:delete N.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.v=dIL.prototype;_.v.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.v.publish=function(N){return this.JSC$19958_pubsub.publish.apply(this.JSC$19958_pubsub,[N].concat(_.IX(_.$I.apply(1,arguments))))};
_.v.subscribe=function(N,b,S){return this.JSC$19958_pubsub.subscribe(N,b,S)};
_.v.unsubscribe=function(N,b,S){return this.JSC$19958_pubsub.unsubscribe(N,b,S)};
_.v.unsubscribeByKey=function(N){return this.JSC$19958_pubsub.unsubscribeByKey(N)};
_.v.dispose=function(){this.JSC$19958_disposed||(this.JSC$19958_disposed=!0,_.Wv(this.JSC$19958_pubsub),this.disconnect(),_.Wv(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.v.isDisposed=function(){return this.JSC$19958_disposed};var nqw=function(N){_.J1.call(this);this.webChannelService=N();this.webChannelService.subscribe("webChannelOpened",this.JSC$19966_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.F(nqw,_.J1);_.v=nqw.prototype;_.v.connect=function(N,b){this.webChannelService.connect(N,b)};
_.v.disconnect=function(N){this.webChannelService.disconnect(N)};
_.v.reconnect=function(){this.webChannelService.reconnect()};
_.v.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.v.JSC$19966_onOpened=function(){this.dispatchEvent("channelOpened")};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(N){this.dispatchEvent(new WYi(N))};
_.v.onError=function(){this.dispatchEvent(new nPn(this.webChannelService.lastStatusCode===401?1:0))};
_.v.sendMessage=function(N,b){this.webChannelService.sendMessage(N,b)};
_.v.setLoungeToken=function(N){this.webChannelService.setLoungeToken(N)};
_.v.dispose=function(){this.webChannelService.dispose()};var QAn=Date.now(),MC=null,fLw=Array(50),LdL=-1,uEa=!1;var ld=function(N){N=N===void 0?!1:N;_.E5.call(this);this.pubSub_=new _.uQ(N);_.QS(this,this.pubSub_)};
_.Km(ld,_.E5);ld.prototype.subscribe=function(N,b,S){return this.isDisposed()?0:this.pubSub_.subscribe(N,b,S)};
ld.prototype.unsubscribe=function(N,b,S){return this.isDisposed()?!1:this.pubSub_.unsubscribe(N,b,S)};
ld.prototype.unsubscribeByKey=function(N){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(N)};
ld.prototype.publish=function(N,b){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.Km(Ly,ld);Ly.prototype.getScreens=function(){return this.screens};
Ly.prototype.contains=function(N){return!!Nq6(this.screens,N)};
Ly.prototype.get=function(N){return N?kf(this.screens,N):null};
var EP6=function(N,b){var S=N.get(b.uuid)||N.get(b.id);if(S)return N=S.name,S.id=b.id||S.id,S.name=b.name,S.token=b.token,S.uuid=b.uuid||S.uuid,S.name!=N;N.screens.push(b);return!0},pLt=function(N,b){var S=N.screens.length!=b.length;
N.screens=_.Cm(N.screens,function(K){return!!Nq6(b,K)});
for(var P=b.length,H=0;H<P;H++)S=EP6(N,b[H])||S;return S},Y1n=function(N,b){var S=N.screens.length;
N.screens=_.Cm(N.screens,function(P){return!(P||b?!P!=!b?0:P.id==b.id:1)});
return N.screens.length<S};
Ly.prototype.info=function(N){Fs(this.JSC$19970_logName_,N)};var ypE=function(N,b,S,P,H){ld.call(this);this.JSC$19973_http_=N;this.pairingCode_=b;this.deviceId_=S;this.friendlyName_=P;this.enableShortLivedLoungeToken_=H;this.pollIndex_=0;this.JSC$19973_xhr_=null;this.JSC$19973_timer_=NaN};
_.F(ypE,ld);_.v=ypE.prototype;_.v.start=function(){!this.JSC$19973_xhr_&&isNaN(this.JSC$19973_timer_)&&this.poll_()};
_.v.stop=function(){this.JSC$19973_xhr_&&(this.JSC$19973_xhr_.abort(),this.JSC$19973_xhr_=null);isNaN(this.JSC$19973_timer_)||(_.FQ(this.JSC$19973_timer_),this.JSC$19973_timer_=NaN)};
_.v.disposeInternal=function(){this.stop();ld.prototype.disposeInternal.call(this)};
_.v.poll_=function(){this.JSC$19973_timer_=NaN;this.JSC$19973_xhr_=_.lQ(tU(this.JSC$19973_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.pT)(this.JSC$19975_onSuccess_,this),onError:(0,_.pT)(this.onError_,this),onTimeout:(0,_.pT)(this.JSC$19975_onTimeout_,this)})};
_.v.JSC$19975_onSuccess_=function(N,b){this.JSC$19973_xhr_=null;N=b.screen||{};N.dialId=this.deviceId_;N.name=this.friendlyName_;b=-1;this.enableShortLivedLoungeToken_&&N.shortLivedLoungeToken&&N.shortLivedLoungeToken.value&&N.shortLivedLoungeToken.refreshIntervalMs&&(N.screenIdType="shortLived",N.loungeToken=N.shortLivedLoungeToken.value,b=N.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new mU(N),b)};
_.v.onError_=function(N){this.JSC$19973_xhr_=null;N.status&&N.status==404?this.pollIndex_>=IrE.length?this.publish("pairingFailed",Error("al")):(N=IrE[this.pollIndex_],this.JSC$19973_timer_=_.tz((0,_.pT)(this.poll_,this),N),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+N.status))};
_.v.JSC$19975_onTimeout_=function(){this.JSC$19973_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var IrE=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Km(ud,Ly);_.v=ud.prototype;_.v.start=function(){fy(this)&&this.publish("screenChange");!_.l1("yt-remote-lounge-token-expiration")&&DV_(this);_.FQ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.tz((0,_.pT)(this.start,this),1E4)};
_.v.add=function(N,b){fy(this);EP6(this,N);VCQ(this,!1);this.publish("screenChange");b(N);N.token||DV_(this)};
_.v.remove=function(N,b){var S=fy(this);Y1n(this,N)&&(VCQ(this,!1),S=!0);b(N);S&&this.publish("screenChange")};
_.v.updateName=function(N,b,S,P){var H=fy(this),K=this.get(N.id);K?(K.name!=b&&(K.name=b,VCQ(this,!1),H=!0),S(N)):P(Error("dl"));H&&this.publish("screenChange")};
_.v.disposeInternal=function(){_.FQ(this.loungeTokenRefreshTimer_);ud.superClass_.disposeInternal.call(this)};
var DV_=function(N){if(N.screens.length){var b=_.gY(N.screens,function(P){return P.id}),S=tU(N.JSC$19977_http_,"/pairing/get_lounge_token_batch");
N.JSC$19977_http_.sendRequest("POST",S,{screen_ids:b.join(",")},(0,_.pT)(N.handleLoungeTokens_,N),(0,_.pT)(N.handleLoungeTokenError_,N))}};
ud.prototype.handleLoungeTokens_=function(N){fy(this);var b=this.screens.length;N=N&&N.screens||[];for(var S=N.length,P=0;P<S;++P){var H=N[P],K=this.get(H.screenId);K&&(K.token=H.loungeToken,--b)}VCQ(this,!b);b&&Fs(this.JSC$19970_logName_,"Missed "+b+" lounge tokens.")};
ud.prototype.handleLoungeTokenError_=function(N){Fs(this.JSC$19970_logName_,"Requesting lounge tokens failed: "+N)};
var fy=function(N){if(_.T("deprecate_pair_servlet_enabled"))return pLt(N,[]);var b=z3q(Gd5());b=_.Cm(b,function(S){return!S.uuid});
return pLt(N,b)},VCQ=function(N,b){c_5(_.gY(N.screens,ZwE));
b&&r_t()};var L0=function(N,b){ld.call(this);this.getScreensToCheck_=b;b=(b=_.l1("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var S={},P=this.getScreensToCheck_(),H=P.length,K=0;K<H;++K){var C=P[K].id;S[C]=_.Z_(b,C)}this.screenIdSet_=S;this.JSC$19980_http_=N;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;gPL("Initialized with "+(0,_.Id)(this.screenIdSet_))};
_.F(L0,ld);L0.prototype.isOnline=function(N){return!!this.screenIdSet_[N]};
L0.prototype.start=function(){var N=parseInt(_.l1("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.sG()-144E5<N?0:N)?e3E(this):(this.fastCheckEndTime_=_.sG()+3E5,_.Bd("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
L0.prototype.isEmpty=function(){return _.Vm.isEmpty(this.screenIdSet_)};
L0.prototype.update=function(){gPL("Updating availability on schedule.");var N=this.getScreensToCheck_(),b=_.Vm.filter(this.screenIdSet_,function(S,P){return S&&!!kf(N,P)},this);
$Vw(this,b)};
var h3t=function(N,b,S){var P=tU(N.JSC$19980_http_,"/pairing/get_screen_availability");N.JSC$19980_http_.sendRequest("POST",P,{lounge_token:b.token},(0,_.pT)(function(H){H=H.screens||[];for(var K=H.length,C=0;C<K;++C)if(H[C].loungeToken==b.token){S(H[C].status=="online");return}S(!1)},N),(0,_.pT)(function(){S(!1)},N))};
L0.prototype.disposeInternal=function(){_.FQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);ld.prototype.disposeInternal.call(this)};
var $Vw=function(N,b){a:if(_.Vm.getCount(b)!=_.Vm.getCount(N.screenIdSet_))var S=!1;else{S=_.Vm.getKeys(b);for(var P=S.length,H=0;H<P;++H)if(!N.screenIdSet_[S[H]]){S=!1;break a}S=!0}S||(gPL("Updated online screens: "+(0,_.Id)(N.screenIdSet_)),N.screenIdSet_=b,N.publish("screenChange"));q1n(N)},e3E=function(N){isNaN(N.refreshTimer_)||_.FQ(N.refreshTimer_);
N.refreshTimer_=_.tz((0,_.pT)(N.requestScreenAvailability_,N),N.fastCheckEndTime_>0&&N.fastCheckEndTime_<_.sG()?2E4:1E4)};
L0.prototype.requestScreenAvailability_=function(){_.FQ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var N=wLn(this);if(_.Vm.getCount(N)){var b=tU(this.JSC$19980_http_,"/pairing/get_screen_availability"),S={lounge_token:_.Vm.getKeys(N).join(",")};this.currentRequest_=this.JSC$19980_http_.sendRequest("POST",b,S,(0,_.pT)(this.onScreenAvailability_,this,N),(0,_.pT)(this.onScreenAvailabilityError_,this))}else $Vw(this,{}),e3E(this)};
L0.prototype.onScreenAvailability_=function(N,b){this.currentRequest_=null;var S=_.Vm.getKeys(wLn(this));if(_.hb(S,_.Vm.getKeys(N))){b=b.screens||[];S={};for(var P=b.length,H=0;H<P;++H)S[N[b[H].loungeToken]]=b[H].status=="online";$Vw(this,S);e3E(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
L0.prototype.onScreenAvailabilityError_=function(N){this.warn_("Screen availability failed: "+N);this.currentRequest_=null;e3E(this)};
var gPL=function(N){Fs("OnlineScreenService",N)};
L0.prototype.warn_=function(N){Fs("OnlineScreenService",N)};
var wLn=function(N){var b={};_.NX(N.getScreensToCheck_(),function(S){S.token?b[S.token]=S.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return b},q1n=function(N){N=_.Vm.getKeys(_.Vm.filter(N.screenIdSet_,function(b){return b}));
N.sort(_.ULO);N.length?_.Bd("yt-remote-online-screen-ids",N.join(","),60):_.LX("yt-remote-online-screen-ids")};_.Km(Q$,Ly);_.v=Q$.prototype;_.v.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.v.add=function(N,b,S){this.localScreenService_.add(N,b,S)};
_.v.remove=function(N,b,S){this.localScreenService_.remove(N,b,S);this.onlineScreenService_.update()};
_.v.updateName=function(N,b,S,P){this.localScreenService_.contains(N)?this.localScreenService_.updateName(N,b,S,P):(N="Updating name of unknown screen: "+N.name,Fs(this.JSC$19970_logName_,N),P(Error(N)))};
_.v.getScreens=function(N){return N?this.screens:tlo(this.screens,_.Cm(this.automaticScreens_,function(b){return!this.contains(b)},this))};
_.v.JSC$19985_getOnlineScreens=function(){return _.Cm(this.getScreens(!0),function(N){return this.onlineScreenService_.isOnline(N.id)},this)};
var bjE=function(N,b,S,P,H,K){N.info("getAutomaticScreenByIds "+S+" / "+b);S||(S=N.deviceToScreenId_[b]);var C=N.getScreens(),G=S?kf(C,S):null;S&&(N.disableAutomaticScreenCache_||G)||(G=kf(C,b));if(G){G.uuid=b;var a=f0(N,G);h3t(N.onlineScreenService_,a,function(R){H(R?a:null)})}else S?NiJ(N,S,(0,_.pT)(function(R){var n=f0(this,new mU({name:P,
screenId:S,loungeToken:R,dialId:b||""}));h3t(this.onlineScreenService_,n,function(d){H(d?n:null)})},N),K):H(null)};
Q$.prototype.JSC$19985_getScreenByPollingPairingCode=function(N,b,S,P,H,K){var C=this;this.info("getDialScreenByPairingCode "+N+" / "+b);var G=new ypE(this.JSC$19983_http_,N,b,S,P);G.subscribe("pairingComplete",function(a,R){_.Wv(G);H(f0(C,a),R)});
G.subscribe("pairingFailed",function(a){_.Wv(G);K(a)});
G.start();return(0,_.pT)(G.stop,G)};
var SSi=function(N,b){for(var S=N.screens.length,P=0;P<S;++P)if(N.screens[P].name==b)return N.screens[P];return null};
Q$.prototype.JSC$19985_getScreenByPairingCode=function(N,b,S,P){_.lQ(tU(this.JSC$19983_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:N},timeout:5E3,onSuccess:(0,_.pT)(function(H,K){H=new mU(K.screen||{});if(!H.name||SSi(this,H.name)){a:{K=H.name;for(var C=2,G=b(K,C);SSi(this,G);){C++;if(C>20)break a;G=b(K,C)}K=G}H.name=K}S(f0(this,H))},this),
onError:(0,_.pT)(function(H){P(Error("el`"+H.status))},this),
onTimeout:(0,_.pT)(function(){P(Error("fl"))},this)})};
var Pjn=function(N,b,S){h3t(N.onlineScreenService_,b,S)};
Q$.prototype.disposeInternal=function(){_.Wv(this.localScreenService_);_.Wv(this.onlineScreenService_);Q$.superClass_.disposeInternal.call(this)};
var NiJ=function(N,b,S,P){N.info("requestLoungeToken_ for "+b);var H={postParams:{screen_ids:b},method:"POST",context:N,onSuccess:function(K,C){K=C&&C.screens||[];K[0]&&K[0].screenId==b?S(K[0].loungeToken):P(Error("gl"))},
onError:function(){P(Error("hl"))}};
_.lQ(tU(N.JSC$19983_http_,"/pairing/get_lounge_token_batch"),H)},HjO=function(N){N.screens=N.localScreenService_.getScreens();
for(var b=_.Vm.transpose(N.deviceToScreenId_),S=N.screens.length,P=0;P<S;++P){var H=N.screens[P];H.uuid=b[H.id]||""}N.info("Updated manual screens: "+xI5(N.screens))};
Q$.prototype.handleScreenChange_=function(){HjO(this);this.publish("screenChange");this.onlineScreenService_.update()};
var oqo=function(N){siE(N);N.localScreenService_=new ud(N.JSC$19983_http_);N.localScreenService_.subscribe("screenChange",(0,_.pT)(N.handleScreenChange_,N));HjO(N);N.disableAutomaticScreenCache_||(N.automaticScreens_=z3q(_.l1("yt-remote-automatic-screen-cache")||[]));siE(N);N.info("Initializing automatic screens: "+xI5(N.automaticScreens_));N.onlineScreenService_=new L0(N.JSC$19983_http_,(0,_.pT)(N.getScreens,N,!0));N.onlineScreenService_.subscribe("screenChange",(0,_.pT)(function(){this.publish("onlineScreenChange")},
N))},f0=function(N,b){var S=N.get(b.id);
S?(S.uuid=b.uuid,b=S):((S=kf(N.automaticScreens_,b.uuid))?(S.id=b.id,S.token=b.token,b=S):N.automaticScreens_.push(b),N.disableAutomaticScreenCache_||KX5(N));siE(N);N.deviceToScreenId_[b.uuid]=b.id;_.Bd("yt-remote-device-id-map",N.deviceToScreenId_,31536E3);return b},KX5=function(N){N=_.Cm(N.automaticScreens_,function(b){return b.idType!="shortLived"});
_.Bd("yt-remote-automatic-screen-cache",_.gY(N,ZwE))},siE=function(N){N.deviceToScreenId_=_.l1("yt-remote-device-id-map")||{}};
Q$.prototype.dispose=Q$.prototype.dispose;_.Km(xf,ld);var uc=function(N,b){N.screen_=b;N.publish("sessionScreen",N.screen_)},vFw=function(N,b){N.screen_&&(N.screen_.token=b,f0(N.JSC$19987_screenService_,N.screen_));
N.publish("sessionScreen",N.screen_)};
xf.prototype.onSessionStopped=function(N){this.isDisposed()||(N&&(Qp(this,""+N),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
xf.prototype.info=function(N){Fs(this.JSC$19987_logName_,N)};
var Qp=function(N,b){Fs(N.JSC$19987_logName_,b)};
xf.prototype.JSC$19989_getCastSession=function(){return null};
xf.prototype.setDisplayStatus=function(N){var b=this.receiver_;N?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(N,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,_.pT)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+N)},this),(0,_.pT)(function(){Qp(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
xf.prototype.disposeInternal=function(){this.setDisplayStatus("");xf.superClass_.disposeInternal.call(this)};var x_=function(N,b,S){xf.call(this,N,b,"CastSession");var P=this;this.config_=S;this.JSC$19992_session_=null;this.JSC$19992_boundSessionUpdate_=(0,_.pT)(this.JSC$19994_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.pT)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.tz(function(){OjO(P,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19992_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19992_isInitLoungeToken_=!1;this.JSC$19992_lastLoungeTokenRefreshError_="unknown"};
_.F(x_,xf);_.v=x_.prototype;
_.v.setCastSession=function(N){if(this.JSC$19992_session_){if(this.JSC$19992_session_==N)return;Qp(this,"Overriding cast session with new session object");CjQ(this);this.JSC$19992_isInitLoungeToken_=!1;this.JSC$19992_lastLoungeTokenRefreshError_="unknown";this.JSC$19992_session_.removeUpdateListener(this.JSC$19992_boundSessionUpdate_);this.JSC$19992_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19992_session_=N;this.JSC$19992_session_.addUpdateListener(this.JSC$19992_boundSessionUpdate_);this.JSC$19992_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);GUo(this,"getMdxSessionStatus")};
_.v.launchWithParams=function(N){this.info("launchWithParams no-op for Cast: "+(0,_.Id)(N))};
_.v.stop=function(){if(this.JSC$19992_session_)this.JSC$19992_session_.stop((0,_.pT)(function(){this.onSessionStopped()},this),(0,_.pT)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.v.setDisplayStatus=function(){};
_.v.disposeInternal=function(){this.info("disposeInternal");CjQ(this);this.JSC$19992_session_&&(this.JSC$19992_session_.removeUpdateListener(this.JSC$19992_boundSessionUpdate_),this.JSC$19992_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19992_session_=null;xf.prototype.disposeInternal.call(this)};
var cc5=function(N,b){_.FQ(N.getLoungeTokenTimeoutKey_);N.getLoungeTokenTimeoutKey_=0;b==0?rcQ(N):N.getLoungeTokenTimeoutKey_=_.tz(function(){rcQ(N)},b)},rcQ=function(N){GUo(N,"getLoungeToken");
_.FQ(N.onLoungeTokenTimeoutKey_);N.onLoungeTokenTimeoutKey_=_.tz(function(){awJ(N,null)},3E4)},GUo=function(N,b){N.info("sendYoutubeMessage_: "+b+" "+(0,_.Id)(void 0));
var S={};S.type=b;N.JSC$19992_session_?N.JSC$19992_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",S,function(){},(0,_.pT)(function(){Qp(this,"Failed to send message: "+b+".")},N)):Qp(N,"Sending yt message without session: "+(0,_.Id)(S))};
x_.prototype.onYoutubeMessage_=function(N,b){if(!this.isDisposed())if(b)if(b=(0,_.Bi)(b),_.D_(b))switch(N=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+N+" "+(0,_.Id)(b)),N){case "mdxSessionStatus":OjO(this,b);break;case "loungeToken":awJ(this,b);break;default:Qp(this,"Unknown youtube message: "+N)}else Qp(this,"Unable to parse message.");else Qp(this,"No data in message.")};
var Rgn=function(N,b){if(b)N.info("onConnectedScreenId_: Received screenId: "+b),N.screen_&&N.screen_.id==b||N.getScreen_(b,function(S){uc(N,S)},function(){return N.onSessionStopped()},5);
else N.onSessionStopped(Error("kl"))},nFJ=function(N,b,S){N.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var P=new mU(b);WXi(N,P,function(H){H?(N.JSC$19992_isInitLoungeToken_=!0,f0(N.JSC$19987_screenService_,P),uc(N,P),N.JSC$19992_lastLoungeTokenRefreshError_="unknown",cc5(N,S)):(_.e_(Error("ll`"+JSON.stringify(b))),N.onSessionStopped())},5)},OjO=function(N,b){_.FQ(N.sessionStatusTimeoutKey_);
N.sessionStatusTimeoutKey_=0;if(b)N.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?N.screen_&&N.screen_.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?nFJ(N,{name:N.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.e_(Error("nl`"+JSON.stringify(b))),Rgn(N,b.screenId))):(_.e_(Error("ml`"+JSON.stringify(b))),Rgn(N,b.screenId)):Rgn(N,b.screenId);else N.onSessionStopped(Error("kl"))},awJ=function(N,
b){_.FQ(N.onLoungeTokenTimeoutKey_);
N.onLoungeTokenTimeoutKey_=0;var S=null;if(b)if(b.loungeToken){var P;((P=N.screen_)==null?void 0:P.token)==b.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";else S="noLoungeTokenResponse";S?(N.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+S)),N.JSC$19992_lastLoungeTokenRefreshError_=S,cc5(N,3E4)):(vFw(N,b.loungeToken),N.JSC$19992_isInitLoungeToken_=!1,N.JSC$19992_lastLoungeTokenRefreshError_="unknown",cc5(N,b.loungeTokenRefreshIntervalMs))};
x_.prototype.getScreen_=function(N,b,S,P){_.FQ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;bjE(this.JSC$19987_screenService_,this.receiver_.label,N,this.receiver_.friendlyName,(0,_.pT)(function(H){H?b(H):P>=0?(Qp(this,"Screen "+N+" appears to be offline. "+P+" retries left."),this.getScreenTimeoutKey_=_.tz((0,_.pT)(this.getScreen_,this,N,b,S,P-1),300)):S(Error("ol"))},this),S)};
var WXi=function(N,b,S,P){_.FQ(N.JSC$19992_checkScreenAvailabilityTimeoutKey_);N.JSC$19992_checkScreenAvailabilityTimeoutKey_=0;Pjn(N.JSC$19987_screenService_,b,function(H){H||P<0?S(H):N.JSC$19992_checkScreenAvailabilityTimeoutKey_=_.tz(function(){WXi(N,b,S,P-1)},300)})};
x_.prototype.JSC$19989_getCastSession=function(){return this.JSC$19992_session_};
x_.prototype.JSC$19994_onSessionUpdate_=function(N){this.isDisposed()||N||(Qp(this,"Cast session died."),this.onSessionStopped())};
var CjQ=function(N){_.FQ(N.getScreenTimeoutKey_);N.getScreenTimeoutKey_=0;_.FQ(N.JSC$19992_checkScreenAvailabilityTimeoutKey_);N.JSC$19992_checkScreenAvailabilityTimeoutKey_=0;_.FQ(N.sessionStatusTimeoutKey_);N.sessionStatusTimeoutKey_=0;_.FQ(N.onLoungeTokenTimeoutKey_);N.onLoungeTokenTimeoutKey_=0;_.FQ(N.getLoungeTokenTimeoutKey_);N.getLoungeTokenTimeoutKey_=0};var oz=function(N,b,S,P){xf.call(this,N,b,"DialSession");this.config_=P;this.JSC$19996_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19996_theme_=S;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19996_deferredLaunchDeadlineTimer_=NaN;this.JSC$19996_boundSessionUpdate_=(0,_.pT)(this.JSC$19998_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19996_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19996_isInitLoungeToken_=!1;this.JSC$19996_lastLoungeTokenRefreshError_="unknown"};
_.F(oz,xf);oz.prototype.setCastSession=function(N){this.JSC$19996_session_=N;this.JSC$19996_session_.addUpdateListener(this.JSC$19996_boundSessionUpdate_)};
oz.prototype.launchWithParams=function(N){this.connectData_=N;this.deferredLaunch_()};
oz.prototype.stop=function(){d2i(this);if(this.JSC$19996_session_)this.JSC$19996_session_.stop((0,_.pT)(this.onSessionStopped,this,null),(0,_.pT)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
oz.prototype.disposeInternal=function(){d2i(this);this.JSC$19996_session_&&this.JSC$19996_session_.removeUpdateListener(this.JSC$19996_boundSessionUpdate_);this.JSC$19996_session_=null;xf.prototype.disposeInternal.call(this)};
var m2_=function(N){var b;return!!(N.config_.enableDialLoungeToken&&((b=N.JSC$19996_session_)==null?0:b.getDialAppInfo))},TiQ=function(N){N.cancelPolling_=N.JSC$19987_screenService_.JSC$19985_getScreenByPollingPairingCode(N.reversePairingCode_,N.receiver_.label,N.receiver_.friendlyName,m2_(N),function(b,S){N.cancelPolling_=function(){};
N.JSC$19996_isInitLoungeToken_=!0;uc(N,b);b.idType=="shortLived"&&S>0&&kUO(N,S)},function(b){N.cancelPolling_=function(){};
N.onSessionStopped(b)})};
oz.prototype.JSC$19998_onSessionUpdate_=function(N){this.isDisposed()||N||(Qp(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var thw=function(N){var b={};b.pairingCode=N.reversePairingCode_;b.theme=N.JSC$19996_theme_;WdO()&&(b.env_useStageMdx=1);return _.LE(b)},Mh6=function(N){return new Promise(function(b){N.reversePairingCode_=qKa();
if(N.connectData_){var S=new chrome.cast.DialLaunchResponse(!0,thw(N));b(S);TiQ(N)}else N.deferredLaunch_=function(){_.FQ(N.JSC$19996_deferredLaunchDeadlineTimer_);N.deferredLaunch_=function(){};
N.JSC$19996_deferredLaunchDeadlineTimer_=NaN;var P=new chrome.cast.DialLaunchResponse(!0,thw(N));b(P);TiQ(N)},N.JSC$19996_deferredLaunchDeadlineTimer_=_.tz(function(){N.deferredLaunch_()},100)})},BiE=function(N,b,S){N.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var P=new mU(b);return(new Promise(function(H){FXQ(N,P,function(K){K?(N.JSC$19996_isInitLoungeToken_=!0,f0(N.JSC$19987_screenService_,P),uc(N,P),kUO(N,S)):_.e_(Error("ql`"+JSON.stringify(b)));H(K)},5)})).then(function(H){return H?new chrome.cast.DialLaunchResponse(!1):Mh6(N)})},lw5=function(N,b){var S=N.launchData_.receiver.label,P=N.receiver_.friendlyName;
return(new Promise(function(H){bjE(N.JSC$19987_screenService_,S,b,P,function(K){K&&K.token&&uc(N,K);H(K)},function(K){Qp(N,"Failed to get DIAL screen: "+K);
H(null)})})).then(function(H){return H&&H.token?new chrome.cast.DialLaunchResponse(!1):Mh6(N)})},FXQ=function(N,b,S,P){_.FQ(N.JSC$19996_checkScreenAvailabilityTimeoutKey_);
N.JSC$19996_checkScreenAvailabilityTimeoutKey_=0;Pjn(N.JSC$19987_screenService_,b,function(H){H||P<0?S(H):N.JSC$19996_checkScreenAvailabilityTimeoutKey_=_.tz(function(){FXQ(N,b,S,P-1)},300)})},kUO=function(N,b){N.info("getDialAppInfoWithTimeout_ "+b);
m2_(N)&&(_.FQ(N.getDialAppInfoTimeoutKey_),N.getDialAppInfoTimeoutKey_=0,b==0?LXE(N):N.getDialAppInfoTimeoutKey_=_.tz(function(){LXE(N)},b))},LXE=function(N){m2_(N)&&N.JSC$19996_session_.getDialAppInfo(function(b){N.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var S=null;if(b.loungeToken){var P;((P=N.screen_)==null?void 0:P.token)==b.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";S?(N.JSC$19996_lastLoungeTokenRefreshError_=S,kUO(N,3E4)):(N.JSC$19996_isInitLoungeToken_=!1,N.JSC$19996_lastLoungeTokenRefreshError_="unknown",vFw(N,b.loungeToken),kUO(N,b.loungeTokenRefreshIntervalMs))},function(b){N.info("getDialAppInfo error: "+b);
N.JSC$19996_lastLoungeTokenRefreshError_="noLoungeTokenResponse";kUO(N,3E4)})},d2i=function(N){_.FQ(N.JSC$19996_checkScreenAvailabilityTimeoutKey_);
N.JSC$19996_checkScreenAvailabilityTimeoutKey_=0;_.FQ(N.getDialAppInfoTimeoutKey_);N.getDialAppInfoTimeoutKey_=0;N.cancelPolling_();N.cancelPolling_=function(){};
_.FQ(N.JSC$19996_deferredLaunchDeadlineTimer_)};var ic=function(N,b){xf.call(this,N,b,"ManualSession");this.JSC$20000_deferredLaunchDeadlineTimer_=_.tz((0,_.pT)(this.launchWithParams,this,null),150)};
_.F(ic,xf);ic.prototype.stop=function(){this.onSessionStopped()};
ic.prototype.setCastSession=function(){};
ic.prototype.launchWithParams=function(){_.FQ(this.JSC$20000_deferredLaunchDeadlineTimer_);this.JSC$20000_deferredLaunchDeadlineTimer_=NaN;var N=kf(this.JSC$19987_screenService_.getScreens(),this.receiver_.label);if(N)uc(this,N);else this.onSessionStopped(Error("rl"))};
ic.prototype.disposeInternal=function(){_.FQ(this.JSC$20000_deferredLaunchDeadlineTimer_);this.JSC$20000_deferredLaunchDeadlineTimer_=NaN;xf.prototype.disposeInternal.call(this)};var U6=function(N,b){ld.call(this);this.config_=b;this.JSC$20003_screenService_=N;this.JSC$20003_appId_=b.appId||"233637DE";this.JSC$20003_theme_=b.theme||"cl";this.disableDial_=b.disableCastApi||!1;this.forceMirroring_=b.forceMirroring||!1;this.JSC$20003_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.pT)(this.onReceiverAction_,this)};
_.F(U6,ld);
U6.prototype.init=function(N,b){chrome.cast.timeout.requestSession=3E4;var S=new chrome.cast.SessionRequest(this.JSC$20003_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.T("desktop_enable_cast_connect")&&(S.androidReceiverCompatible=!0);this.disableDial_||(S.dialRequest=new chrome.cast.DialRequest("YouTube"));var P=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;N=N||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var H=(0,_.pT)(this.onReceiverUpdated_,this);
S=new chrome.cast.ApiConfig(S,(0,_.pT)(this.onSessionEstablished_,this),H,P,N);S.customDialLaunchCallback=(0,_.pT)(this.onDialLaunchRequested_,this);chrome.cast.initialize(S,(0,_.pT)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Fd5(),this.JSC$20003_screenService_.subscribe("onlineScreenChange",(0,_.pT)(this.JSC$20005_onScreenChange_,this)),this.customReceivers_=fwt(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pT)(function(K){this.warn_("Failed to set initial custom receivers: "+
(0,_.Id)(K))},this)),this.publish("yt-remote-cast2-availability-change",ubO(this)),b(!0))},this),(0,_.pT)(function(K){this.warn_("Failed to initialize API: "+(0,_.Id)(K));
b(!1)},this))};
U6.prototype.setConnectedScreenStatus=function(N,b){JQ("Setting connected screen ID: "+N+" -> "+b);if(this.JSC$20003_session_){var S=this.JSC$20003_session_.screen_;if(!N||S&&S.id!=N)JQ("Unsetting old screen status: "+this.JSC$20003_session_.receiver_.friendlyName),UC(this,null)}if(N&&b){if(!this.JSC$20003_session_){N=kf(this.JSC$20003_screenService_.getScreens(),N);if(!N){JQ("setConnectedScreenStatus: Unknown screen.");return}if(N.idType=="shortLived"){JQ("setConnectedScreenStatus: Screen with id type to be short lived.");
return}S=QiQ(this,N);S||(JQ("setConnectedScreenStatus: Connected receiver not custom..."),S=new chrome.cast.Receiver(N.uuid?N.uuid:N.id,N.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(S),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pT)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.Id)(P))},this)));
JQ("setConnectedScreenStatus: new active receiver: "+S.friendlyName);UC(this,new ic(this.JSC$20003_screenService_,S),!0)}this.JSC$20003_session_.setDisplayStatus(b)}else JQ("setConnectedScreenStatus: no screen.")};
var QiQ=function(N,b){return b?gw(N.customReceivers_,function(S){return b3w(b,S.label)},N):null};
U6.prototype.setLaunchParams=function(N){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20003_session_?this.JSC$20003_session_.launchWithParams(N):this.warn_("Setting connection data without a session")};
U6.prototype.JSC$20005_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20003_session_?(this.JSC$20003_session_.stop(),UC(this,null)):JQ("Stopping non-existing session")};
U6.prototype.requestSession=function(){chrome.cast.requestSession((0,_.pT)(this.onSessionEstablished_,this),(0,_.pT)(this.onSessionRequestFailed_,this))};
U6.prototype.disposeInternal=function(){this.JSC$20003_screenService_.unsubscribe("onlineScreenChange",(0,_.pT)(this.JSC$20005_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.zo(_.hl("yt.mdx.remote.debug.handlers_")||[],Tq5);_.Wv(this.JSC$20003_session_);ld.prototype.disposeInternal.call(this)};
var JQ=function(N){Fs("Controller",N)};
U6.prototype.warn_=function(N){Fs("Controller",N)};
var Tq5=function(N){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(N)},ubO=function(N){return N.hasCastReceiver_||!!N.customReceivers_.length||!!N.JSC$20003_session_},UC=function(N,b,S){b!=N.JSC$20003_session_&&(_.Wv(N.JSC$20003_session_),(N.JSC$20003_session_=b)?(S?N.publish("yt-remote-cast2-receiver-resumed",b.receiver_):N.publish("yt-remote-cast2-receiver-selected",b.receiver_),b.subscribe("sessionScreen",(0,_.pT)(N.onSessionScreen_,N,b)),b.subscribe("sessionFailed",
function(){return x2a(N,b)}),b.screen_?N.publish("yt-remote-cast2-session-change",b.screen_):S&&N.JSC$20003_session_.launchWithParams(null)):N.publish("yt-remote-cast2-session-change",null))},x2a=function(N,b){N.JSC$20003_session_==b&&N.publish("yt-remote-cast2-session-failed")};
_.v=U6.prototype;_.v.onSessionScreen_=function(N,b){this.JSC$20003_session_==N&&(b||UC(this,null),this.publish("yt-remote-cast2-session-change",b))};
_.v.onReceiverAction_=function(N,b){if(!this.isDisposed())if(N)switch(N.friendlyName=chrome.cast.unescape(N.friendlyName),JQ("onReceiverAction_ "+N.label+" / "+N.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20003_session_)if(this.JSC$20003_session_.receiver_.label!=N.label)JQ("onReceiverAction_: Stopping active receiver: "+this.JSC$20003_session_.receiver_.friendlyName),this.JSC$20003_session_.stop();else{JQ("onReceiverAction_: Casting to active receiver.");this.JSC$20003_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20003_session_.screen_);break}switch(N.receiverType){case chrome.cast.ReceiverType.CUSTOM:UC(this,new ic(this.JSC$20003_screenService_,N));break;case chrome.cast.ReceiverType.DIAL:UC(this,new oz(this.JSC$20003_screenService_,N,this.JSC$20003_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:UC(this,new x_(this.JSC$20003_screenService_,N,this.config_));break;default:this.warn_("Unknown receiver type: "+N.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20003_session_&&
this.JSC$20003_session_.receiver_.label==N.label?this.JSC$20003_session_.stop():this.warn_("Stopping receiver w/o session: "+N.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.v.onDialLaunchRequested_=function(N){if(this.isDisposed())return Promise.reject(Error("sl"));var b=N.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var S=this.JSC$20003_session_?this.JSC$20003_session_.receiver_:null;if(!S||S.label!=b.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("tl"));if(S&&S.label==b.label&&S.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20003_session_.screen_)return JQ("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20003_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+S.receiverType+'" to "dial" for '+b.friendlyName);UC(this,new oz(this.JSC$20003_screenService_,b,this.JSC$20003_theme_,this.config_))}b=this.JSC$20003_session_;b.launchData_=N;b.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(N=b.launchData_.extraData||{},S=N.screenId||null,m2_(b)&&N.loungeToken?N.loungeTokenRefreshIntervalMs?N=BiE(b,{name:b.receiver_.friendlyName,screenId:N.screenId,loungeToken:N.loungeToken,dialId:b.launchData_.receiver.label,screenIdType:"shortLived"},N.loungeTokenRefreshIntervalMs):(_.e_(Error("pl`"+JSON.stringify(N))),N=lw5(b,S)):N=lw5(b,S)):N=Mh6(b);return N};
_.v.onSessionEstablished_=function(N){var b=this;if(!this.isDisposed()&&!this.forceMirroring_){JQ("New cast session ID: "+N.sessionId);var S=N.receiver;if(S.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20003_session_)if(S.receiverType==chrome.cast.ReceiverType.CAST)JQ("Got resumed cast session before resumed mdx connection."),S.friendlyName=chrome.cast.unescape(S.friendlyName),UC(this,new x_(this.JSC$20003_screenService_,S,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var P=this.JSC$20003_session_.receiver_,H=kf(this.JSC$20003_screenService_.getScreens(),P.label);H&&b3w(H,S.label)&&P.receiverType!=chrome.cast.ReceiverType.CAST&&S.receiverType==chrome.cast.ReceiverType.CAST&&(JQ("onSessionEstablished_: manual to cast session change "+S.friendlyName),_.Wv(this.JSC$20003_session_),this.JSC$20003_session_=new x_(this.JSC$20003_screenService_,S,this.config_),this.JSC$20003_session_.subscribe("sessionScreen",(0,_.pT)(this.onSessionScreen_,this,this.JSC$20003_session_)),
this.JSC$20003_session_.subscribe("sessionFailed",function(){return x2a(b,b.JSC$20003_session_)}),this.JSC$20003_session_.launchWithParams(null));
this.JSC$20003_session_.setCastSession(N)}}};
_.v.JSC$20005_getCastSession=function(){return this.JSC$20003_session_?this.JSC$20003_session_.JSC$19989_getCastSession():null};
_.v.onSessionRequestFailed_=function(N){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Id)(N)),N.code!=chrome.cast.ErrorCode.CANCEL&&UC(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.v.onReceiverUpdated_=function(N){JQ("Receiver availability updated: "+N);if(!this.isDisposed()){var b=ubO(this);this.hasCastReceiver_=N==chrome.cast.ReceiverAvailability.AVAILABLE;ubO(this)!=b&&this.publish("yt-remote-cast2-availability-change",ubO(this))}};
var fwt=function(N){var b=N.JSC$20003_screenService_.JSC$19985_getOnlineScreens(),S=N.JSC$20003_session_&&N.JSC$20003_session_.receiver_;N=_.gY(b,function(P){S&&b3w(P,S.label)&&(S=null);var H=P.uuid?P.uuid:P.id,K=QiQ(this,P);K?(K.label=H,K.friendlyName=P.name):(K=new chrome.cast.Receiver(H,P.name),K.receiverType=chrome.cast.ReceiverType.CUSTOM);return K},N);
S&&(S.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(S=new chrome.cast.Receiver(S.label,S.friendlyName),S.receiverType=chrome.cast.ReceiverType.CUSTOM),N.push(S));return N};
U6.prototype.JSC$20005_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=fwt(this),JQ("Updating custom receivers: "+(0,_.Id)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pT)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",ubO(this)))};
U6.prototype.setLaunchParams=U6.prototype.setLaunchParams;U6.prototype.setConnectedScreenStatus=U6.prototype.setConnectedScreenStatus;U6.prototype.stopSession=U6.prototype.JSC$20005_stopSession;U6.prototype.getCastSession=U6.prototype.JSC$20005_getCastSession;U6.prototype.requestSession=U6.prototype.requestSession;U6.prototype.init=U6.prototype.init;U6.prototype.dispose=U6.prototype.dispose;var oF5=_.$E(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),$Iw=[],A_E=_.Mz(oF5);var ij6=function(N){N.audioTrackId=null;N.trackData=null;N.playerState=-1;N.hasPrevious=!1;N.hasNext=!1;N.playerTime_=0;N.playerTimeAt_=_.sG();N.seekableStart_=0;N.seekableEnd_=0;N.duration_=0;N.loadedTime=0;N.liveIngestionTime_=NaN;N.isLive_=!1};
_.v=ZX.prototype;
_.v.reset=function(N){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;N&&(this.index=N.index,this.listId=N.listId,this.videoId=N.videoId,this.playerState=N.playerState,this.volume=N.volume,this.muted=N.muted,this.audioTrackId=N.audioTrackId,this.trackData=N.trackData,this.hasPrevious=N.hasPrevious,this.hasNext=N.hasNext,this.playerTime_=N.playerTime,this.playerTimeAt_=N.playerTimeAt,this.seekableStart_=N.seekableStart,this.seekableEnd_=N.seekableEnd,this.duration_=N.duration,this.loadedTime=
N.loadedTime,this.liveIngestionTime_=N.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.v.stopPlayer=function(){this.index=-1;this.videoId="";ij6(this)};
_.v.isPlaying=function(){return this.playerState==1};
_.v.isBuffering=function(){return this.playerState==3};
_.v.isAdPlaying=function(){return this.playerState==1081};
var Z$=function(N,b){N.playerTime_=b;N.playerTimeAt_=_.sG()},JcE=function(N){switch(N.playerState){case 1:case 1081:return(_.sG()-N.playerTimeAt_)/1E3+N.playerTime_;
case -1E3:return 0}return N.playerTime_};
ZX.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.sG()-this.playerTimeAt_)/1E3:0):this.duration_};
var U2_=function(N,b,S){var P=N.videoId;N.videoId=b;N.index=S;b!=P&&ij6(N)},Zji=function(N){var b={};
b.index=N.index;b.listId=N.listId;b.videoId=N.videoId;b.playerState=N.playerState;b.volume=N.volume;b.muted=N.muted;b.audioTrackId=N.audioTrackId;b.trackData=_.Vm.unsafeClone(N.trackData);b.hasPrevious=N.hasPrevious;b.hasNext=N.hasNext;b.playerTime=N.playerTime_;b.playerTimeAt=N.playerTimeAt_;b.seekableStart=N.seekableStart_;b.seekableEnd=N.seekableEnd_;b.duration=N.duration_;b.loadedTime=N.loadedTime;b.liveIngestionTime=N.liveIngestionTime_;return b};
ZX.prototype.clone=function(){return new ZX(Zji(this))};var Xs=function(N,b){ld.call(this);var S=this;this.state_=0;this.connection_=N;this.contextSubscriptions_=[];this.actionQueue_=new EnQ;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.pT)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.pT)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.pT)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.pT)(this.onCloudviewAvailabilityChange_,this);var P=0;N?(P=N.getProxyState(),
P!=3&&(N.subscribe("proxyStateChange",this.setState_,this),jin(this))):P=3;P!=0&&(b?this.setState_(P):_.tz(function(){S.setState_(P)},0));
(N=NGa())&&zgQ(this,N);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.F(Xs,ld);Xs.prototype.getState=function(){return this.state_};
Xs.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Xs.prototype.reconnect=function(){this.connection_.reconnect()};
var ji=function(N){return new ZX(N.connection_.getPlayerContextData())};
_.v=Xs.prototype;_.v.play=function(){zG(this)?(this.castMedia_?this.castMedia_.play(null,_.Qo,Ac5(this,"play")):AQ(this,"play"),X3J(this,1,JcE(ji(this))),this.publish("remotePlayerChange")):Xd(this,this.play)};
_.v.pause=function(){zG(this)?(this.castMedia_?this.castMedia_.pause(null,_.Qo,Ac5(this,"pause")):AQ(this,"pause"),X3J(this,2,JcE(ji(this))),this.publish("remotePlayerChange")):Xd(this,this.pause)};
_.v.seekTo=function(N){if(zG(this)){if(this.castMedia_){var b=ji(this),S=new chrome.cast.media.SeekRequest;S.currentTime=N;b.isPlaying()||b.isBuffering()?S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(S,_.Qo,Ac5(this,"seekTo",{newTime:N}))}else AQ(this,"seekTo",{newTime:N});X3J(this,3,N);this.publish("remotePlayerChange")}else Xd(this,_.Rm(this.seekTo,N))};
_.v.stop=function(){if(zG(this)){this.castMedia_?this.castMedia_.stop(null,_.Qo,Ac5(this,"stopVideo")):AQ(this,"stopVideo");var N=ji(this);N.stopPlayer();EC(this,N);this.publish("remotePlayerChange")}else Xd(this,this.stop)};
_.v.setVolume=function(N,b){if(zG(this)){var S=ji(this);if(this.castSession_){if(S.volume!=N){var P=Math.round(N)/100;this.castSession_.setReceiverVolumeLevel(P,(0,_.pT)(function(){BJ("set receiver volume: "+P)},this),(0,_.pT)(function(){this.warn_("failed to set receiver volume.")},this))}S.muted!=b&&this.castSession_.setReceiverMuted(b,(0,_.pT)(function(){BJ("set receiver muted: "+b)},this),(0,_.pT)(function(){this.warn_("failed to set receiver muted.")},this))}else{var H={volume:N,
muted:b};S.volume!=-1&&(H.delta=N-S.volume);AQ(this,"setVolume",H)}S.muted=b;S.volume=N;EC(this,S)}else Xd(this,_.Rm(this.setVolume,N,b))};
_.v.setAudioTrack=function(N,b){zG(this)?(b=b.getLanguageInfo().getId(),AQ(this,"setAudioTrack",{videoId:N,audioTrackId:b}),N=ji(this),N.audioTrackId=b,EC(this,N)):Xd(this,_.Rm(this.setAudioTrack,N,b))};
_.v.addVideo=function(N){zG(this)?AQ(this,"addVideo",{videoId:N}):Xd(this,_.Rm(this.addVideo,N))};
_.v.addPlaylist=function(N){zG(this)?AQ(this,"addVideos",{listId:N}):Xd(this,_.Rm(this.addPlaylist,N))};
_.v.addVideos=function(N){N.length==0?this.warn_("Ignore add videos request due to empty list"):zG(this)?AQ(this,"addVideos",{videoIds:N.join(",")}):Xd(this,_.Rm(this.addVideos,N))};
_.v.JSC$20015_removeVideo=function(N){zG(this)?AQ(this,"removeVideo",{videoId:N}):Xd(this,_.Rm(this.JSC$20015_removeVideo,N))};
_.v.JSC$20015_insertVideo=function(N){zG(this)?AQ(this,"insertVideo",{videoId:N}):Xd(this,_.Rm(this.JSC$20015_insertVideo,N))};
_.v.playVideo=function(N,b,S,P,H,K,C){P=P===void 0?null:P;H=H===void 0?null:H;K=K===void 0?null:K;C=C===void 0?null:C;var G=ji(this),a={videoId:N};S!==void 0&&(a.currentIndex=S);U2_(G,N,S||0);b!==void 0&&(Z$(G,b),a.currentTime=b);P&&(a.listId=P);H&&(a.playerParams=H);K&&(a.clickTrackingParams=K);C&&(a.locationInfo=(0,_.Id)(C));AQ(this,"setPlaylist",a);P||EC(this,G)};
_.v.nextVideo=function(N,b){if(zG(this)){if(N&&b){var S=ji(this);U2_(S,N,b);EC(this,S)}AQ(this,"next")}else Xd(this,_.Rm(this.nextVideo,N,b))};
_.v.clearPlaylist=function(){if(zG(this)){AQ(this,"clearPlaylist");var N=ji(this);N.reset();EC(this,N);this.publish("remotePlayerChange")}else Xd(this,this.clearPlaylist)};
_.v.dispose=function(){if(this.state_!=3){var N=this.state_;this.state_=3;this.publish("proxyStateChange",N,this.state_)}ld.prototype.dispose.call(this)};
_.v.disposeInternal=function(){EFE(this);this.connection_=null;this.actionQueue_.clear();zgQ(this,null);ld.prototype.disposeInternal.call(this)};
var jin=function(N){_.NX("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.contextSubscriptions_.push(this.connection_.subscribe(b,_.Rm(this.onProxyEvent_,b),this))},N)},EFE=function(N){_.NX(N.contextSubscriptions_,function(b){this.connection_.unsubscribeByKey(b)},N);
N.contextSubscriptions_.length=0},zG=function(N){return N.getState()==1},Xd=function(N,b){N.actionQueue_.getCount()<50&&N.actionQueue_.enqueue(b)},X3J=function(N,b,S){var P=ji(N);
Z$(P,S);P.playerState!=-1E3&&(P.playerState=b);EC(N,P)},AQ=function(N,b,S){N.connection_.sendMessage(b,S)},EC=function(N,b){EFE(N);
N.connection_.setPlayerContextData(Zji(b));jin(N)};
Xs.prototype.setState_=function(N){if((N!=this.state_||N==2)&&this.state_!=3&&N!=0){var b=this.state_;this.state_=N;this.publish("proxyStateChange",b,N);if(N==1)for(;!this.actionQueue_.isEmpty();)N=this.actionQueue_,sn6(N),N.front_.pop().apply(this);else N==3&&this.dispose()}};
Xs.prototype.onProxyEvent_=function(N,b){this.publish(N,b)};
var zgQ=function(N,b){N.castSession_&&(N.castSession_.removeUpdateListener(N.boundCastStatusListener_),N.castSession_.removeMediaListener(N.boundCastMediaListener_),N.onCastMediaChange_(null));N.castSession_=b;if(N.castSession_&&(BJ("Setting cast session: "+N.castSession_.sessionId),N.castSession_.addUpdateListener(N.boundCastStatusListener_),N.castSession_.addMediaListener(N.boundCastMediaListener_),N.castSession_.media.length))N.onCastMediaChange_(N.castSession_.media[0])};
Xs.prototype.onCastStatusUpdate_=function(N){if(!N)this.onCastMediaChange_(null),zgQ(this,null);else if(this.castSession_.receiver.volume){N=this.castSession_.receiver.volume;var b=ji(this),S=Math.round(100*N.level||0);if(b.volume!=S||b.muted!=N.muted)BJ("Cast volume update: "+N.level+(N.muted?" muted":"")),b.volume=S,b.muted=!!N.muted,EC(this,b)}};
Xs.prototype.onCastMediaChange_=function(N){BJ("Cast media: "+!!N);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=N)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),p3w(this),this.publish("remotePlayerChange")};
var p3w=function(N){var b=N.castMedia_.media,S=N.castMedia_.customData;if(b&&S){var P=ji(N);b.contentId!=P.videoId&&BJ("Cast changing video to: "+b.contentId);P.videoId=b.contentId;P.playerState=S.playerState;Z$(P,N.castMedia_.getEstimatedTime());EC(N,P)}else BJ("No cast media video. Ignoring state update.")};
Xs.prototype.onCastMediaUpdate_=function(N){if(N)p3w(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Xs.prototype.onCloudviewAvailabilityChange_=function(){var N=NGa();N&&zgQ(this,N)};
Xs.prototype.warn_=function(N){Fs("CP",N)};
var Ac5=function(N,b,S){return(0,_.pT)(function(P){this.warn_("Failed to "+b+" with cast v2 channel. Error code: "+P.code);P.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+b+" using MDx browser channel."),AQ(this,b,S))},N)};var E6=function(N,b,S,P){P=P===void 0?!1:P;ld.call(this);var H=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$20020_http_=N;this.enableConnectWithInitialState_=P;this.listeners_.push(_.a0(window,"beforeunload",function(){H.JSC$20023_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new ZX;this.currentScreenId_=b.id;this.currentScreenIdType_=b.idType;this.channelService=kdn(this.JSC$20020_http_,S,this.JSC$20023_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){YSE(H)});
this.channelService.listen("channelClosed",function(){p0("Channel closed");isNaN(H.connectTimerId_)?aLJ(!0):aLJ();H.dispose()});
this.channelService.listen("channelError",function(K){aLJ();isNaN(H.getReconnectTimeout_())?(K==1&&H.currentScreenIdType_=="shortLived"&&H.publish("browserChannelAuthError",K),p0("Channel error: "+K+" without reconnection"),H.dispose()):(H.reconnecting_=!0,p0("Channel error: "+K+" with reconnection in "+H.getReconnectTimeout_()+" ms"),ycQ(H,2))});
this.channelService.listen("channelMessage",function(K){IwL(H,K)});
this.channelService.setLoungeToken(b.token);this.subscribe("remoteQueueChange",function(){var K=H.playerContext_.videoId;H36()&&_.Bd("yt-remote-session-video-id",K)})};
_.F(E6,ld);
E6.prototype.connect=function(N,b){if(b){var S=b.listId,P=b.videoId,H=b.videoIds,K=b.playerParams,C=b.clickTrackingParams,G=b.index,a={videoId:P},R=b.currentTime,n=b.locationInfo;b=b.loopMode;R!==void 0&&(a.currentTime=R<=5?0:R);K&&(a.playerParams=K);n&&(a.locationInfo=n);C&&(a.clickTrackingParams=C);S&&(a.listId=S);H&&H.length>0&&(a.videoIds=H.join(","));G!==void 0&&(a.currentIndex=G);this.enableConnectWithInitialState_&&(a.loopMode=b||"LOOP_MODE_OFF");S&&(this.playerContext_.listId=S);this.playerContext_.videoId=
P;this.playerContext_.index=G||0;this.playerContext_.state=3;Z$(this.playerContext_,R);this.autoplayMode_="UNSUPPORTED";S=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";p0("Connecting with "+S+" and params: "+(0,_.Id)(a));this.channelService.connect({method:S,params:(0,_.Id)(a)},N,CI5())}else p0("Connecting without params"),this.channelService.connect({},N,CI5());D25(this)};
E6.prototype.setLoungeToken=function(N){this.channelService.setLoungeToken(N)};
E6.prototype.dispose=function(){this.isDisposed()||(_.aB("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),ycQ(this,3));ld.prototype.dispose.call(this)};
E6.prototype.disposeInternal=function(){Vhn(this);gFo(this);ego(this);_.FQ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.FQ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.BGE(this.listeners_);this.listeners_.length=0;this.channelService.dispose();ld.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var $2O=function(N){return gw(N.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"})},p0=function(N){Fs("conn",N)},ycQ=function(N,b){N.publish("proxyStateChange",b)},D25=function(N){N.connectTimerId_=_.tz(function(){p0("Connecting timeout");
N.JSC$20023_disconnect_(1)},2E4)},Vhn=function(N){_.FQ(N.connectTimerId_);
N.connectTimerId_=NaN},ego=function(N){_.FQ(N.reconnectedCheckScreenTimeout_);
N.reconnectedCheckScreenTimeout_=NaN},qSa=function(N){gFo(N);
N.playingSyncTimerId_=_.tz(function(){hgJ(N,"getNowPlaying")},2E4)},gFo=function(N){_.FQ(N.playingSyncTimerId_);
N.playingSyncTimerId_=NaN},YSE=function(N){p0("Channel opened");
N.reconnecting_&&(N.reconnecting_=!1,ego(N),N.reconnectedCheckScreenTimeout_=_.tz(function(){p0("Timing out waiting for a screen.");N.JSC$20023_disconnect_(1)},15E3))},NTq=function(N,b){var S=null;
if(b){var P=$2O(N);P&&(S={clientName:P.clientName,deviceMake:P.brand,deviceModel:P.model,osVersion:P.osVersion})}_.aB("yt.mdx.remote.remoteClient_",S);b&&(Vhn(N),ego(N));S=N.channelService.isChannelOpened()&&isNaN(N.connectTimerId_);b==S?b&&(ycQ(N,1),hgJ(N,"getSubtitlesTrack")):b?(N.getOtherConnectedRemoteId_()&&N.playerContext_.reset(),ycQ(N,1),hgJ(N,"getNowPlaying"),w3_(N)):N.JSC$20023_disconnect_(1)},b$6=function(N,b){var S=b.params.videoId;
delete b.params.videoId;S==N.playerContext_.videoId&&(_.Vm.isEmpty(b.params)?N.playerContext_.trackData=null:N.playerContext_.trackData=b.params,N.publish("remotePlayerChange"))},Szw=function(N,b,S){var P=b.params.videoId||b.params.video_id,H=parseInt(b.params.currentIndex,10);
N.playerContext_.listId=b.params.listId||N.playerContext_.listId;U2_(N.playerContext_,P,H);N.publish("remoteQueueChange",S)},PfQ=function(N,b){b.params=b.params||{};
Szw(N,b,"NOW_PLAYING_MAY_CHANGE");N.onStateChange_(b);N.publish("autoplayDismissed")};
E6.prototype.onStateChange_=function(N){var b=parseInt(N.params.currentTime||N.params.current_time,10);Z$(this.playerContext_,isNaN(b)?0:b);b=parseInt(N.params.state,10);b=isNaN(b)?-1:b;b==-1&&this.playerContext_.playerState==-1E3&&(b=-1E3);this.playerContext_.playerState=b;b=Number(N.params.loadedTime);this.playerContext_.loadedTime=isNaN(b)?0:b;b=Number(N.params.duration);this.playerContext_.duration_=isNaN(b)?0:b;b=this.playerContext_;var S=Number(N.params.liveIngestionTime);b.liveIngestionTime_=
S;b.isLive_=isNaN(S)?!1:!0;b=this.playerContext_;S=Number(N.params.seekableStartTime);N=Number(N.params.seekableEndTime);b.seekableStart_=isNaN(S)?0:S;b.seekableEnd_=isNaN(N)?0:N;this.playerContext_.playerState==1?qSa(this):gFo(this);this.publish("remotePlayerChange")};
E6.prototype.onAdStateChange_=function(N){if(this.playerContext_.playerState!=-1E3){var b=1085;switch(parseInt(N.params.adState,10)){case 1:b=1081;break;case 2:b=1084;break;case 0:b=1083}this.playerContext_.playerState=b;N=parseInt(N.params.currentTime,10);Z$(this.playerContext_,isNaN(N)?0:N);this.publish("remotePlayerChange")}};
var H$i=function(N,b){var S=b.params.muted=="true";N.playerContext_.volume=parseInt(b.params.volume,10);N.playerContext_.muted=S;N.publish("remotePlayerChange")},slQ=function(N,b){N.autoplayVideoId_=b.params.videoId;
N.publish("nowAutoplaying",parseInt(b.params.timeout,10))},K1n=function(N,b){N.autoplayVideoId_=b.params.videoId||null;
N.publish("autoplayUpNext",N.autoplayVideoId_)},vWo=function(N,b){N.autoplayMode_=b.params.autoplayMode;
N.publish("autoplayModeChange",N.autoplayMode_);N.autoplayMode_=="DISABLED"&&N.publish("autoplayDismissed")},O$_=function(N,b){var S=b.params.hasNext=="true";
N.playerContext_.hasPrevious=b.params.hasPrevious=="true";N.playerContext_.hasNext=S;N.publish("previousNextChange")};
E6.prototype.isCapabilitySupportedOnConnectedDevices_=function(N){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var b=_.O(this.connectedDevices_),S=b.next();!S.done;S=b.next())if(!S.value.capabilities.has(N))return!1;return!0};
var IwL=function(N,b){b=b.message;b.params?p0("Received: action="+b.action+", params="+(0,_.Id)(b.params)):p0("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=(0,_.Bi)(b.params.devices);N.connectedDevices_=_.gY(b,function(P){return new lc(P)});
b=!!gw(N.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
NTq(N,b);b=N.isCapabilitySupportedOnConnectedDevices_("mlm");N.publish("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":Tb_(N.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
NTq(N,!1);break;case "remoteConnected":var S=new lc((0,_.Bi)(b.params.device));gw(N.connectedDevices_,function(P){return P.equals(S)})||_.QUs(N.connectedDevices_,S);
break;case "remoteDisconnected":S=new lc((0,_.Bi)(b.params.device));Tb_(N.connectedDevices_,function(P){return P.equals(S)});
break;case "gracefulDisconnect":break;case "playlistModified":Szw(N,b,"QUEUE_MODIFIED");break;case "nowPlaying":PfQ(N,b);break;case "onStateChange":N.onStateChange_(b);break;case "onAdStateChange":N.onAdStateChange_(b);break;case "onVolumeChanged":H$i(N,b);break;case "onSubtitlesTrackChanged":b$6(N,b);break;case "nowAutoplaying":slQ(N,b);break;case "autoplayDismissed":N.publish("autoplayDismissed");break;case "autoplayUpNext":K1n(N,b);break;case "onAutoplayModeChanged":vWo(N,b);break;case "onHasPreviousNextChanged":O$_(N,
b);break;case "requestAssistedSignIn":N.publish("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":N.publish("loopModeChange",b.params.loopMode);break;default:p0("Unrecognized action: "+b.action)}};
_.v=E6.prototype;_.v.getProxyState_=function(){var N=3;this.isDisposed()||(N=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(N=1):N=2);return N};
_.v.JSC$20023_disconnect_=function(N){p0("Disconnecting with "+N);_.aB("yt.mdx.remote.remoteClient_",null);Vhn(this);this.publish("beforeDisconnect",N);N==1&&aLJ();this.channelService.disconnect(N);this.dispose()};
_.v.getPlayerContextData_=function(){var N=this.playerContext_;this.clientVideoId_&&(N=this.playerContext_.clone(),U2_(N,this.clientVideoId_,N.index));return Zji(N)};
_.v.setPlayerContextData_=function(N){var b=this,S=new ZX(N);S.videoId&&S.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=S.videoId,_.FQ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.tz(function(){if(b.clientVideoId_){var H=b.clientVideoId_;b.clientVideoId_=null;b.playerContext_.videoId!=H&&hgJ(b,"getNowPlaying")}},5E3));
var P=[];this.playerContext_.listId==S.listId&&this.playerContext_.videoId==S.videoId&&this.playerContext_.index==S.index||P.push("remoteQueueChange");this.playerContext_.playerState==S.playerState&&this.playerContext_.volume==S.volume&&this.playerContext_.muted==S.muted&&JcE(this.playerContext_)==JcE(S)&&(0,_.Id)(this.playerContext_.trackData)==(0,_.Id)(S.trackData)||P.push("remotePlayerChange");this.playerContext_.reset(N);_.NX(P,function(H){this.publish(H)},this)};
_.v.getOtherConnectedRemoteId_=function(){var N=this.channelService.getDeviceId(),b=gw(this.connectedDevices_,function(S){return S.type=="REMOTE_CONTROL"&&S.id!=N});
return b?b.id:""};
_.v.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.v.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.v.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.v.JSC$20023_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var w3_=function(N){_.FQ(N.idleDisconnectTimerId_);N.idleDisconnectTimerId_=_.tz(function(){N.JSC$20023_disconnect_(1)},864E5)},hgJ=function(N,b,S){S?p0("Sending: action="+b+", params="+(0,_.Id)(S)):p0("Sending: action="+b);
N.channelService.sendMessage(b,S)};
E6.prototype.sendMessageWithUserAction_=function(N,b){hgJ(this,N,b);w3_(this)};
E6.prototype.JSC$20023_getXsrfToken_=function(){var N=_.xb.get("SAPISID","")||_.xb.get("__Secure-1PAPISID",void 0)||"",b=_.xb.get("__Secure-3PAPISID","")||"";if(!N&&!b)return"";N=_.iL(_.Xc(N),2);b=_.iL(_.Xc(b),2);return _.iL(_.Xc(","+N+","+b),2)};
E6.prototype.subscribe=E6.prototype.subscribe;E6.prototype.unsubscribeByKey=E6.prototype.unsubscribeByKey;E6.prototype.getProxyState=E6.prototype.getProxyState_;E6.prototype.disconnect=E6.prototype.JSC$20023_disconnect_;E6.prototype.getPlayerContextData=E6.prototype.getPlayerContextData_;E6.prototype.setPlayerContextData=E6.prototype.setPlayerContextData_;E6.prototype.getOtherConnectedRemoteId=E6.prototype.getOtherConnectedRemoteId_;E6.prototype.getReconnectTimeout=E6.prototype.getReconnectTimeout_;
E6.prototype.getAutoplayMode=E6.prototype.getAutoplayMode_;E6.prototype.getAutoplayVideoId=E6.prototype.getAutoplayVideoId_;E6.prototype.reconnect=E6.prototype.JSC$20023_reconnect_;E6.prototype.sendMessage=E6.prototype.sendMessageWithUserAction_;E6.prototype.getXsrfToken=E6.prototype.JSC$20023_getXsrfToken_;E6.prototype.isCapabilitySupportedOnConnectedDevices=E6.prototype.isCapabilitySupportedOnConnectedDevices_;var BGw=function(N){Ly.call(this,"ScreenServiceProxy");this.instance_=N;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.pT)(this.JSC$20026_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.pT)(this.onOnlineScreenChange_,this)))};
_.F(BGw,Ly);_.v=BGw.prototype;_.v.getScreens=function(N){return this.instance_.$_gs(N)};
_.v.contains=function(N){return!!this.instance_.$_c(N)};
_.v.get=function(N){return this.instance_.$_g(N)};
_.v.start=function(){this.instance_.$_st()};
_.v.add=function(N,b,S){this.instance_.$_a(N,b,S)};
_.v.remove=function(N,b,S){this.instance_.$_r(N,b,S)};
_.v.updateName=function(N,b,S,P){this.instance_.$_un(N,b,S,P)};
_.v.disposeInternal=function(){for(var N=this.subscriptionKeys_.length,b=0;b<N;++b)this.instance_.$_ubk(this.subscriptionKeys_[b]);this.subscriptionKeys_.length=0;this.instance_=null;Ly.prototype.disposeInternal.call(this)};
_.v.JSC$20026_onScreenChange_=function(){this.publish("screenChange")};
_.v.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Q$.prototype.$_st=Q$.prototype.start;Q$.prototype.$_gspc=Q$.prototype.JSC$19985_getScreenByPairingCode;Q$.prototype.$_gsppc=Q$.prototype.JSC$19985_getScreenByPollingPairingCode;Q$.prototype.$_c=Q$.prototype.contains;Q$.prototype.$_g=Q$.prototype.get;Q$.prototype.$_a=Q$.prototype.add;Q$.prototype.$_un=Q$.prototype.updateName;Q$.prototype.$_r=Q$.prototype.remove;Q$.prototype.$_gs=Q$.prototype.getScreens;Q$.prototype.$_gos=Q$.prototype.JSC$19985_getOnlineScreens;Q$.prototype.$_s=Q$.prototype.subscribe;
Q$.prototype.$_ubk=Q$.prototype.unsubscribeByKey;var mu6=null,Lta=!1,H7t=null,j5=null,Fti=null,z2=[];var Cfo=new _.h2("yt-menu"),G9a=function(){},cin=function(N,b,S){N=b=="right-click"?S.rightClickMenuPopupHint:S.menuPopupHint;
if(!(riE(b)>10))return b=b||"default",Cfo.set(b+"-impression",riE(b)+1),N},riE=function(N){return parseInt(Cfo.get((N||"default")+"-impression")||0,10)};
_.He(G9a);var a4t=function(){this.contexts_=new WeakMap;this.JSC$20032_networkService_=this.activeContext_=null},Rhw=function(N,b,S){var P=N.contexts_.get(b);
P||(P=new $kE(N.JSC$20032_networkService_),N.contexts_.set(b,P));N.activeContext_=P;S&&N.activeContext_.reset();N.activeContext_.start();return N.activeContext_};var py=_.tHf(function(N){var b=_.U5("DIV");N&&(b.className=N);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";N=_.U5("DIV");_.tkl(N,"200px","200px");b.appendChild(N);document.body.appendChild(b);N=b.offsetWidth-b.clientWidth;_.Zg(b);return N});var y$=_.d7("kevlar_watch_page_horizontal_margin",24),Uui=_.d7("kevlar_watch_page_columns_top_padding",24),uAq=426+y$*2,Yf=_.d7("kevlar_watch_two_column_width_threshold",1E3),xu_=y$*2,oH5=_.d7("kevlar_watch_secondary_width",402),JMQ=_.d7("kevlar_watch_max_player_width",1280),Z7n=_.d7("kevlar_watch_flexy_metadata_height",136),i76=xu_+310+y$,Qqw=xu_+360+y$;var Y_=function(){};
Y_.prototype.enqueue=function(){var N=this,b;return _.r(function(S){if(N.isCounterfactual())return(b=N.getCounterfactualData())&&N.shouldLogCounterfactualImpression()&&N.sendImpressionEndpoints(b),S.return();N.doEnqueue();_.Zd(S)})};
Y_.prototype.sendImpressionEndpoints=function(N){_.sX.getInstance().triggerOptionalAction("yt-service-request",{},N[0])};var yp=function(N,b){this.renderer=N;this.page=b};
_.F(yp,Y_);yp.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
yp.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
yp.prototype.shouldLogCounterfactualImpression=function(){return!0};
yp.prototype.doEnqueue=function(){var N=_.h8(this.page);N&&N.pause();this.renderer.impressionCommand&&_.sX.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.qk(_.sX.getInstance(),[this.renderer.promoCommand],this.page)};var W1O=function(N,b){this.renderer=N;this.resolver=_.Y9();this.JSC$20044_enforcementCounter=new _.VUc;b?this.JSC$20044_playerManager=_.h8(b):this.JSC$20044_playerManager=null;_.a3(1,!0)};
_.F(W1O,Y_);_.v=W1O.prototype;_.v.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var N=[];this.renderer.impressionEndpoints.forEach(function(b){(b=_.UZ(b))&&N.push(b)});
return N}};
_.v.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.v.shouldLogCounterfactualImpression=function(){var N=_.RWI();N?(this.JSC$20044_enforcementCounter.increment("POPUP"),_.a3(3)):_.a3(2);return N};
_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.doEnqueue=function(){var N=this;_.RWI()?(this.JSC$20044_enforcementCounter.increment("POPUP"),_.a3(3),nWQ(this)):this.JSC$20044_playerManager?(this.resolver.promise.then(function(){nWQ(N)}),deL(this.resolver,this.JSC$20044_playerManager)):_.a3(2)};
var deL=function(N,b){var S=_.Y9();b.getPlayerPromise().then(function(P){S.resolve(P)});
S.promise.then(function(P){P.addEventListener("onAbnormalityDetected",N.resolve);_.z5(N.promise,function(){P.removeEventListener("onAbnormalityDetected",N.resolve)})});
N.promise.thenCatch(function(){S.promise.cancel()})},nWQ=function(N){_.a3(3);
var b={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:N.renderer}};b=_.sX.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});Promise.all(b).then(function(){men();N.JSC$20044_playerManager&&N.JSC$20044_playerManager.pause()})},men=function(){jeL(function(N,b){IYO(N,b);
N===0?_.a3(7):_.a3(4)})};var k9O=function(N,b){this.renderer=N;this.page=b;this.resolver=_.Y9()};
_.F(k9O,Y_);_.v=k9O.prototype;_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var N=this;this.resolver.promise.then(function(){var S={popup:{mealbarPromoRenderer:N.renderer},popupType:"MEALBAR"};_.sX.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var b=_.h8(this.page);b&&TTE(this.resolver,b)}break;default:this.resolver.resolve()}};
var TTE=function(N,b){var S=_.Y9();b.getPlayerPromise().then(function(P){S.resolve(P)});
S.promise.then(function(P){P.addEventListener("onAdEnd",N.resolve);_.z5(N.promise,function(){P.removeEventListener("onAdEnd",N.resolve)})});
N.promise.thenCatch(function(){S.promise.cancel()})};var tvO=function(N,b){this.renderer=N;this.page=b};
_.F(tvO,Y_);_.v=tvO.prototype;_.v.cancel=function(){this.JSC$20052_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20052_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20052_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var N=this,b,S;((b=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(S=b.playbackUpsellDialogTriggerConditionData)==null?void 0:S.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20052_downloadedVideosCountSelectorUnsubscriber=_.hT(_.h0(),oXi,function(P,H){P>H&&(MvJ(N),N.cancel())}):MvJ(this)};
var MvJ=function(N){var b={popup:{upsellDialogRenderer:N.renderer},popupType:"MODAL"};_.sX.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});(N=_.h8(N.page))&&N.pause()};var Iz={},F1a=(Iz.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Iz.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Iz.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Iz.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Iz.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Iz.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Iz.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Iz),BTq=function(N,b){this.renderer=N;this.targetManager=
b};
_.F(BTq,Y_);_.v=BTq.prototype;_.v.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20059_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20059_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20059_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){if(this.isCounterfactual()){var N;return(N=this.renderer.promoConfig)==null?void 0:N.impressionEndpoints}};
_.v.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var N=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20059_downloadedVideosCountSelectorUnsubscriber=_.hT(_.h0(),oXi,function(b,S){N.renderer.targetId&&b>S&&(jdL(N.targetManager,N.renderer.targetId,l4t(N)),N.cancel())});
break;default:jdL(this.targetManager,this.renderer.targetId,l4t(this))}};
var l4t=function(N){var b;if((b=N.renderer.suggestedPosition)==null?0:b.type)var S=F1a[N.renderer.suggestedPosition.type];S||(S="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:N.renderer},popupType:"HINT",position:S}}};var L1E=function(){this.previousPage=null},f4Q;
L1E.prototype.registerPromoCommand=function(N,b){uZE(this,void 0,void 0,_.t(N.roadblock,UFi),void 0,void 0,b)};
var uZE=function(N,b,S,P,H,K,C){N.previousPage!==C&&N.pendingTooltipPromo&&N.pendingTooltipPromo.cancel();N.previousPage=C;H?(N.pendingEnforcementPromo&&N.pendingEnforcementPromo.cancel(),N.pendingEnforcementPromo=new W1O(H,C),N.pendingEnforcementPromo.enqueue()):K?(N.pendingCommandWrapperPromo=new yp(K,C),N.pendingCommandWrapperPromo.enqueue()):P?(N.pendingRoadblockPromo&&N.pendingRoadblockPromo.cancel(),N.pendingRoadblockPromo=new tvO(P,C),N.pendingRoadblockPromo.enqueue()):b?(N.pendingMealbarPromo&&
N.pendingMealbarPromo.cancel(),N.pendingMealbarPromo=new k9O(b,C),N.pendingMealbarPromo.enqueue()):S&&(N.pendingTooltipPromo&&N.pendingTooltipPromo.cancel(),N.pendingTooltipPromo=new BTq(S,_.VP()),N.pendingTooltipPromo.enqueue())},Qla=function(){f4Q||(f4Q=new L1E);
return f4Q};var xeE=function(){this.horizontal=!1},oWQ=function(N,b){N.horizontal=b};
xeE.prototype.position=function(N,b,S,P){P=P===void 0?1:P;N=this.delta(N)*P+b;P=Math.max(b,S);return N>=Math.min(b,S)&&N<=P?N:S};
xeE.prototype.axis=function(N){N=this.direction(N);return N==="up"||N==="down"?"Y":"X"};var D$=function(N,b,S){b=b===void 0?_.gt():b;this.target=N;this.manager=b;this.touchAction=S;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
D$.prototype.attach=function(){if(!this.attached){this.attached=!0;this.eventMap={swipedown:this.onSwipeDown,swipeup:this.onSwipeUp,panstart:this.onPanStart,panright:this.onPanMove,panleft:this.onPanMove,panmove:this.onPanMove,panend:this.onPanEnd};this.manager.registerTouchEvents.apply(this.manager,[this.target,this.directions,this.touchAction].concat(_.IX(this.events)));for(var N=_.O(this.events),b=N.next();!b.done;b=N.next())this.listen(b.value)}};
D$.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.IX(this.events)));for(var N=_.O(this.events),b=N.next();!b.done;b=N.next())this.unlisten(b.value)}};
D$.prototype.listen=function(N){this.eventMap[N]&&this.target.addEventListener(N,this.eventMap[N])};
D$.prototype.unlisten=function(N){this.eventMap[N]&&this.target.removeEventListener(N,this.eventMap[N])};var Vp=function(){xeE.apply(this,arguments)};
_.F(Vp,xeE);Vp.prototype.direction=function(N){var b=N.detail;N=b.deltaY;b=b.deltaX;return N&&!this.horizontal?N>0?"down":"up":b&&this.horizontal?b>0?"right":"left":"none"};
Vp.prototype.distance=function(N){return Math.abs(this.delta(N))};
Vp.prototype.delta=function(N){var b=this.direction(N),S=N.detail;N=S.deltaX;S=S.deltaY;return b==="up"||b==="down"?S||0:N||0};
Vp.prototype.velocity=function(N){var b=this.direction(N),S=N.detail;N=S.velocityX;S=S.velocityY;return Math.abs(b==="up"||b==="down"?S||0:N||0)};var gN=function(N,b,S,P,H,K){H=H===void 0?new Vp:H;K=K===void 0?_.gt():K;D$.call(this,b,K,P);var C=this;this.element=N;this.target=b;this.config=S;this.input=H;this.manager=K;this.events=["panstart","panmove","panend"];this.onPanStart=function(){C.config.draggingClass&&C.element.classList.add(C.config.draggingClass);C.config.startAction&&C.config.startAction()};
this.onPanMove=function(G){var a=i$J(C,G);if(a){C.move(G,a);a.fade&&C.fade(G,a);var R=C.input.direction(G);a.moveAction&&a.moveAction(Ji5(C,G,a),R)}};
this.onPanEnd=function(G){var a,R,n,d,m,k;return _.r(function(M){if(M.nextAddress==1){C.animationRequestId&&cancelAnimationFrame(C.animationRequestId);C.animationRequestId=void 0;a=i$J(C,G);if(!a)return M.return();R=a;n=R.triggerAction;d=R.fade;m=R.disableFinish;k=R.translateBack;var l=C.input.velocity(G),u=C.input.distance(G),J=C.threshold(a);return l>.3&&u>10||u>J?m?M.jumpTo(6):d?M.yield(Uet(C,G),6):M.yield(Z$O(C,G,a),6):k?M.yield(C.translateBack(G),3):M.jumpTo(3)}M.nextAddress!=3&&n&&n();C.config.draggingClass&&
C.element.classList.remove(C.config.draggingClass);C.reset();_.Zd(M)})};
N=Object.keys(S.triggers);this.directions=new Set(N);oWQ(this.input,this.directions.has("right")||this.directions.has("left"))};
_.F(gN,D$);gN.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var i$J=function(N,b){b=N.input.direction(b);return N.config.triggers[b]};
gN.prototype.move=function(N,b){var S=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var P=S.input.axis(N),H=S.input.position(N,S.config.startPosition,b.endPosition,b.moveRatio||1);S.element.style.transform="translate"+P+"("+H+"px)";S.animationRequestId=void 0}))};
var Ji5=function(N,b,S){var P=S.moveRatio||1;S=Math.abs(N.config.startPosition-S.endPosition);return Math.min(N.input.distance(b)*P,S)/S};
gN.prototype.fade=function(N,b){var S=b.endOpacity;N=Ji5(this,N,b);N>0&&(this.element.style.opacity=""+(((S||0)-1)*N+1))};
gN.prototype.threshold=function(N){return N.threshold?N.threshold:Math.abs(N.endPosition-this.config.startPosition)/3};
var Z$O=function(N,b,S){var P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1)return P=N.input.delta(b)+N.config.startPosition,H=N.input.axis(b),K=S,C=K.endPosition,G=K.transitionEndPosition,R=(a=G)!=null?a:C,n.yield(N.element.animate([{transform:"translate"+H+"("+P+"px)"},{transform:"translate"+H+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.element.style.transform="translate"+H+"("+R+"px)";_.Zd(n)})};
gN.prototype.translateBack=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1){if(!b.element.style.transform)return H.return();S=b.input.axis(N);P=b.config.startPosition;return H.yield(b.element.animate([{transform:b.element.style.transform},{transform:"translate"+S+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}b.element.style.transform="translate"+S+"("+P+"px)";_.Zd(H)})};
var Uet=function(N,b){var S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S=N.input.delta(b)+N.config.startPosition,P=N.input.axis(b),H=S+70,K=N.element.style.opacity===""?1:N.element.style.opacity,C.yield(N.element.animate([{transform:"translate"+P+"("+S+"px)",opacity:K},{transform:"translate"+P+"("+H+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.element.style.transform="translate"+P+"("+H+"px)";N.element.style.opacity="0";_.Zd(C)})};var YZo=new _.h2("ratelimit");var jlq=function(N,b){this.playerProvider_=N;this.actionSenderElement_=b;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
jlq.prototype.reset=function(){zhO(this);this.isUserPredictedAbsent_=!1};
var zhO=function(N,b){!N.youThereData_||N.showWarningJob_||b!==void 0&&b||(IV("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Qh(),N.youThereData_,N.clientPlaybackNonce_),_.VE());_.Dj.cancelJob(N.showWarningJob_);N.showWarningJob_=0;_.Dj.cancelJob(N.showBlockingWarningJob_);N.showBlockingWarningJob_=0;_.Dj.cancelJob(N.pausePlaybackJob_);N.pausePlaybackJob_=0;N.youThereData_=null;N.clientPlaybackNonce_=void 0;N.inYouThereFlow_=!1},XD_=function(N,b){var S,P,H;
_.r(function(K){if(K.nextAddress==1)return N.reset(),K.yield(N.playerProvider_().getPlayerPromise(),2);S=K.yieldResult;N.clientPlaybackNonce_=S.getVideoData().cpn;N.youThereData_=b.configData.youThereData;if(!N.youThereData_)return K.return();if(N.youThereData_.triggerReason&&N.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!yMJ())return IV("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Qh(),N.youThereData_,N.clientPlaybackNonce_),K.return();P=N.youThereData_.promptDelaySec;H=S.getCurrentTime();
N.showWarningJob_=_.Dj.addLowPriorityJob(function(){return _.r(function(C){N.showWarningJob_=0;return C.yield(AiE(N),0)})},Math.max(P-H,0)*1E3);
_.Zd(K)})},AiE=function(N){var b,S,P,H,K,C;
return _.r(function(G){if(G.nextAddress==1)return G.yield(N.playerProvider_().getPlayerPromise(),2);if(G.nextAddress!=3)return b=G.yieldResult,S=b.getCurrentTime(),G.yield(EW5(N),3);P=G.yieldResult;if(!P||!N.youThereData_)return G.return();if(_.T("check_user_lact_at_prompt_shown_time_on_web")&&(H=parseInt(N.youThereData_.lactThresholdMs,10),_.nv()<H))return IV("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Qh(),N.youThereData_,N.clientPlaybackNonce_),G.return();if(N.youThereData_.playbackPauseDelayMs<=
0)return pDt(N),G.return();!_.T("external_fullscreen")&&(K=_.hw())&&(N.ignoreFullscreenExitUserActivity_=!0,_.Dj.addLowPriorityJob(function(){N.ignoreFullscreenExitUserActivity_=!1},2E3),_.qy(K));
N.youThereData_.showToastWarningPrompt&&(ei(N,N.youThereData_.showWarningActions),N.inYouThereFlow_=!0,IV("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Qh(),N.youThereData_,N.clientPlaybackNonce_,S),IV("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Qh(),N.youThereData_,N.clientPlaybackNonce_,S));C=0;N.youThereData_.blockingPromptDelayMs&&(C=N.youThereData_.blockingPromptDelayMs);N.showBlockingWarningJob_=_.Dj.addLowPriorityJob(function(){return _.r(function(a){N.showBlockingWarningJob_=0;return a.yield(Yz_(N),
0)})},C);
_.Zd(G)})},Yz_=function(N){var b,S,P;
return _.r(function(H){if(H.nextAddress==1)return H.yield(EW5(N),2);b=H.yieldResult;if(!N.youThereData_)return H.return();b&&(N.youThereData_.showBlockingWarningAction&&(IV("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Qh(),N.youThereData_,N.clientPlaybackNonce_),(S=_.t(N.youThereData_.showBlockingWarningAction,_.vN))?ei(N,S.commands):ei(N,[N.youThereData_.showBlockingWarningAction]),N.inYouThereFlow_=!0),P=N.youThereData_.playbackPauseDelayMs,N.pausePlaybackJob_=_.Dj.addLowPriorityJob(function(){return _.r(function(K){N.pausePlaybackJob_=
0;return K.yield(pDt(N),0)})},P));
_.Zd(H)})},pDt=function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(EW5(N),2);b=S.yieldResult;if(!N.youThereData_)return S.return();b&&(IV("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Qh(),N.youThereData_,N.clientPlaybackNonce_),ei(N,N.youThereData_.showPausedActions),N.inYouThereFlow_=!0);_.Zd(S)})};
jlq.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var N=_.t(this.youThereData_.userActiveDuringFlowAction,_.vN);N?ei(this,N.commands):ei(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(IV("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Qh(),this.youThereData_,this.clientPlaybackNonce_),_.VE());zhO(this,!0)}yiq(this,!1)};
var I4J=function(N){IV("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Qh(),N.youThereData_,N.clientPlaybackNonce_)},EW5=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.playerProvider_().getPlayerPromise(),2);b=P.yieldResult;S=b.getPlayerState();return P.return(S==-1||S==1||S==3)})},yiq=function(N,b){var S;
_.r(function(P){if(P.nextAddress==1){if(N.isUserPredictedAbsent_==b)return P.jumpTo(0);N.isUserPredictedAbsent_=b;return P.yield(N.playerProvider_().getPlayerPromise(),3)}S=P.yieldResult;S.setUserEngagement(b);b&&IV("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Qh(),N.youThereData_,N.clientPlaybackNonce_);_.Zd(P)})},ei=function(N,b){if(_.T("handle_service_request_actions")||_.T("kevlar_youthere_service_endpoint_actions_killswitch"))_.sR(N.actionSenderElement_,b,N.actionSenderElement_);
else{b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.sendPost?_.HN(N.actionSenderElement_,[S]):_.sR(N.actionSenderElement_,[S],N.actionSenderElement_)}};var INJ=!1;var DeE={PAUSE_CHAT:18};var jS5=function(N,b){var S=_.Vg("SESSION_INDEX");this.actionToken_=N;this.commonToken_=b;this.sessionIndex_=S},ZLE=function(N){var b=_.Y9(),S=_.hl("payments.business.integration.bootstrap"),P=_.hl("payments.business.integration"),H=P.Style.create().withMaterialDesignStyle(),K=P.mashupMode.popup("instrument-manager");
S.asMashupMode(K).usingUserIndex(N.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(H).inStandaloneContext(P.standaloneContextAuthId.forUserId()).instrumentManager(N.actionToken_,N.commonToken_.length>0?N.commonToken_:void 0,function(C){var G=C.instrumentId;G?b.resolve(G):(G=_.hl("payments.business.integration.scenario.InstrumentManager"),b.reject(C.errorCode&&C.errorCode===G.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(C){_.e_(C);
b.reject("instrumentManagerLoadError")});
return b.promise};var sA=function(N,b,S){this.payloadName="transactionFlowFailed";this.payload={errorType:N,serializedTransactionFlowLoggingParams:b,isUserDismiss:S===void 0?!1:S}};
_.aB("yt.ypc.shared.YpcTransactionFlowError",sA);var $_=function(){return _.kq.apply(this,arguments)||this};
_.F($_,_.kq);$_.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
$_.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
$_.prototype.onErrorMessageDismiss=$_.prototype.onErrorMessageDismiss;_.p([_.U({readOnly:!0,observer:"errorRendererChanged"}),_.y("design:type",Object)],$_.prototype,"errorRenderer",void 0);_.p([_.RA("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$_.prototype,"onErrorMessageDismiss",null);_.p([_.Td()],$_);var Vvq=[$_.prototype];var gWq;var eh_,$en=function(){if(eh_!==void 0)return eh_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;gWq===void 0&&(gWq=document.createElement("template"));var P=gWq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return eh_=N};var hQ=function(){var N=_.z.apply(this,arguments)||this;N.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";N.goalDescription="";N.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";N.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";N.startButtonId="start-button";N.exampleButtonId="example-button";return N};
_.F(hQ,_.z);_.v=hQ.prototype;_.v.getGoalDropdownItems=function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.purchaseTargetDropdown,F7_))==null?void 0:b.dropdownItems};
_.v.getTimerDropdownItems=function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.timerDropdown,F7_))==null?void 0:b.dropdownItems};
_.v.getColorDropdownItems=function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.colorDropdown,F7_))==null?void 0:b.dropdownItems};
_.v.getDropdownItemText=function(N){var b;return(b=_.t(N,Mm6))==null?void 0:b.itemLabel};
_.v.getDropdownItemValue=function(N){N=_.t(N,Mm6);return(N==null?void 0:N.timeLimit)||(N==null?void 0:N.purchaseTarget)||(N==null?void 0:N.eligiblePurchaseType)};
_.v.updateFlowState=function(N){_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:N}])};
_.v.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.v.updateGoalValue=function(N){this.goal=N.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.v.onTextValueChanged=function(N){this.goalDescription=N.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.v.updateTimerValue=function(N){this.timer=N.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.v.updateTierValue=function(N){this.tier=N.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.v.getButtonViewModel=function(N){N=(N==null?void 0:N.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,S=_.t((b=this.data)==null?void 0:b.startGoalButton,_.WC);return Object.assign({},S,{state:N})};
_.d0.Object.defineProperties(hQ,{template:{configurable:!0,enumerable:!0,get:function(){return $en()}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"goal",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"goalDescription",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"timer",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"tier",void 0);
_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"startButtonId",void 0);_.p([_.U(),_.y("design:type",Object)],hQ.prototype,"exampleButtonId",void 0);_.p([_.J_({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],hQ);_.X(hQ,"yt-creator-goal-set-up-flow-view-model",function(){return $en()},{mode:0});var hhE;var qzi;var qs=function(){return _.z.apply(this,arguments)||this};
_.F(qs,_.z);qs.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
qs.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var N=_.t(this.data.button,_.WC);N&&(N.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.d0.Object.defineProperties(qs,{template:{configurable:!0,enumerable:!0,get:function(){if(qzi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;hhE===void 0&&(hhE=document.createElement("template"));var P=hhE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qzi=N}N=qzi;return N}}});
_.p([_.L(_.CG),_.y("design:type",Object)],qs.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({selectorArgs:["data.enabledEntityKey"],selector:GYo,observer:"onEnabledChange"}),_.y("design:type",Boolean)],qs.prototype,"enabled",void 0);_.p([_.U(),_.y("design:type",Object)],qs.prototype,"data",void 0);_.p([_.J_({is:"yt-disableable-button-view-model",noInjection:!0})],qs);var wD_;var N1E;var bdt=["transVert01","transVert02","transVert03"],Sqw="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),wN=function(){var N=_.z.apply(this,arguments)||this;N.emojiManager=_.mL;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};N.reactionBuckets=[];N.noEmojiIdentifier="NO_EMOJI";return N};
_.F(wN,_.z);_.v=wN.prototype;_.v.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.v.desktopFountainEmojiSizePxChanged=function(){_.rq(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.v.createUserReactionAnimation=function(N){this.createEmojiAnimation(N,!0)};
_.v.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var N;((N=this.data)==null?0:N.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.t5("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.IX(this.emojiContainer.children)).forEach(function(b){b.remove()})};
_.v.detached=function(){this.cleanupFountain()};
_.v.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var N;this.reactionBuckets=_.Vm.unsafeClone((N=this.emojiFountainData)==null?void 0:N.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.v.processEmojiBucket=function(N){var b=this;if(this.reactionBuckets&&!(N>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var S=this.reactionBuckets[N];this.generateEmojiAnimations(S);if(N<this.reactionBuckets.length-1){var P;if(S==null?0:(P=S.duration)==null?0:P.seconds)this.emojiBucketTimerId=setTimeout(function(){b.processEmojiBucket(N+1)},Number(S.duration.seconds)*1E3)}}};
_.v.generateEmojiAnimations=function(N){var b=this,S=this.getRandomEmojiIdFromBucketWithOverride(N);if(S&&S!==this.noEmojiIdentifier){var P=0;N.targetEps?(P=this.linearInterpolateBounded(1,20,100,12,N.emojiSizeIndex||0),this.createEmojiAnimation(S,!1,N.emojiAnimationMs,P),P=this.getEmojiDelayMsFromTargetEps(N.targetEps)):(this.createEmojiAnimation(S),P=this.getEmojiDelayMsFromDistribution(N.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){b.generateEmojiAnimations(N)},P)}};
_.v.getRandomEmojiIdFromBucketWithOverride=function(N){if(!(N&&N.reactionsData&&N.reactionsData.length&&N.totalReactions))return this.noEmojiIdentifier;for(var b=N.totalReactions,S=1,P=_.O(N.reactionsData),H=P.next();!H.done;H=P.next())H=H.value,(H.reactionWeightOverride||H.reactionWeightOverride===0)&&H.reactionCount&&(b-=H.reactionCount,S-=H.reactionWeightOverride);P=!0;S<0&&(P=!1,b=N.totalReactions,S=1);if(P&&S>0&&b===0)if(S===1){H=0;for(var K=_.O(N.reactionsData),C=K.next();!C.done;C=K.next())C=
C.value,C.reactionCount&&C.reactionCount>0&&H++;H=1/H;K=_.O(N.reactionsData);for(C=K.next();!C.done;C=K.next())C.value.reactionWeightOverride=H}else for(H=1/(1-S),K=_.O(N.reactionsData),C=K.next();!C.done;C=K.next())C=C.value,C.reactionWeightOverride&&(C.reactionWeightOverride*=H);H=Math.random();K=0;C=_.O(N.reactionsData);for(var G=C.next();!G.done;G=C.next())if(G=G.value,G.reactionCount&&(K=(G.reactionWeightOverride||G.reactionWeightOverride===0)&&P?K+G.reactionWeightOverride:K+S*G.reactionCount/
b,K>H&&(G.reactionCount--,N.totalReactions--,G=this.reactionItemToEmojiString(G),G!==this.noEmojiIdentifier)))return G;return this.noEmojiIdentifier};
_.v.reactionItemToEmojiString=function(N){if(N.unicodeEmojiId)return N.unicodeEmojiId;if(N.emoteId)return N.emoteId;if(N.videoReactionType)switch(N.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.v.createEmojiAnimation=function(N,b,S,P){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=N;var H=N.startsWith("yt-icons:"),K=_.nN(this.emojiManager,N);if(K||H){var C=document.createElement("emoji");C.classList.add("yt-emoji-fountain-view-model");C.classList.add(bdt[Math.floor(Math.random()*bdt.length)]);var G=document.createElement("div");G.classList.add("yt-emoji-fountain-view-model");G.classList.add("horizontal-container");G.classList.add(Sqw[Math.floor(Math.random()*Sqw.length)]);b?(S=document.createElement("div"),
S.classList.add("user-reaction-bubble"),S.classList.add("yt-emoji-fountain-view-model"),G.appendChild(S)):(S&&(C.style.animationDuration=S+"ms",G.style.animationDuration=S+"ms"),P&&(C.style.width=P+"px",C.style.height=P+"px"));H?(H=document.createElement("yt-icon"),H.polymerController.icon=N,P&&(H.style.width=P+"px",H.style.height=P+"px"),N=H):N=this.emojiManager.createEmoji(K,!1);N.classList.add("yt-emoji-fountain-view-model");G.appendChild(N);C.appendChild(G);this.emojiContainer.appendChild(C);
C.addEventListener("animationend",function(){C.remove()});
var a,R;if((a=this.data)==null?0:(R=a.loggingDirectives)==null?0:R.trackingParams)b=b?_.OW(183501):_.OW(183500),rZi(this.data.loggingDirectives.trackingParams,b),_.qf9(b);setTimeout(function(){C&&C.remove()},2E3)}};
_.v.getEmojiDelayMsFromDistribution=function(N){return Math.random()*(N||1)*1E3};
_.v.getEmojiDelayMsFromTargetEps=function(N){return Math.random()*2*(1/N)*1E3};
_.v.linearInterpolateBounded=function(N,b,S,P,H){H=Math.min(Math.max(H,N),S);return(b*(S-H)+P*(H-N))/(S-N)};
wN.prototype.onEmojiFountainDataEntityUpdate=wN.prototype.onEmojiFountainDataEntityUpdate;wN.prototype.desktopFountainEmojiSizePxChanged=wN.prototype.desktopFountainEmojiSizePxChanged;wN.prototype.isActiveChanged=wN.prototype.isActiveChanged;_.p([_.U(),_.y("design:type",_.Wc)],wN.prototype,"emojiManager",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],wN.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],wN.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wN.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(N,b){return _.GL(N.entities,"emojiFountainDataEntity",b)}}),
_.y("design:type",Object)],wN.prototype,"emojiFountainData",void 0);_.p([_.U(),_.y("design:type",Boolean)],wN.prototype,"isActive",void 0);_.p([_.W4("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wN.prototype,"isActiveChanged",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],wN.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",String)],wN.prototype,"lastEmojiRequestedForTesting",void 0);
_.p([_.U({value:function(){return _.d7("desktop_fountain_emoji_size_px",20)}}),
_.y("design:type",Number)],wN.prototype,"desktopFountainEmojiSizePx",void 0);_.p([_.W4("desktopFountainEmojiSizePx"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wN.prototype,"desktopFountainEmojiSizePxChanged",null);_.p([_.dq("#emoji-container"),_.y("design:type",HTMLElement)],wN.prototype,"emojiContainer",void 0);
_.p([_.W4("emojiFountainData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wN.prototype,"onEmojiFountainDataEntityUpdate",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],wN);
_.X(wN,"yt-emoji-fountain-view-model",function(){if(N1E===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;wD_===void 0&&(wD_=document.createElement("template"));var P=wD_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);N1E=N}N=N1E;return N},{mode:0});var PaL;var HdL;var NK=function(){return _.z.apply(this,arguments)||this};
_.F(NK,_.z);NK.prototype.onChoiceChanged=function(){this.data&&_.rq(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
NK.prototype.onChoiceChanged=NK.prototype.onChoiceChanged;_.p([_.U(),_.y("design:type",Object)],NK.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NK.prototype,"onChoiceChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],NK);
_.X(NK,"yt-live-chat-banner-poll-choice",function(){if(HdL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;PaL===void 0&&(PaL=document.createElement("template"));var P=PaL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);HdL=N}N=HdL;return N},{mode:0});var sga;var KPa;var bh=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_button_rework_with_live");N.small=!1;return N};
_.F(bh,_.z);bh.prototype.computeIsSmall=function(){var N;return((N=this.buttonOverrides)==null?void 0:N.size)==="S"};
bh.prototype.computeId=function(){return this.data&&this.data.targetId};
_.p([_.L(_.Gl.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],bh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",String)],bh.prototype,"id",void 0);_.p([_.U(),_.y("design:type",Object)],bh.prototype,"buttonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],bh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bh.prototype,"modern",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.y("design:type",Object)],bh.prototype,"small",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-button"})],bh);
_.X(bh,"yt-live-chat-button",function(){if(KPa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;sga===void 0&&(sga=document.createElement("template"));var P=sga;S.call(b,P.content.cloneNode(!0),N.content.firstChild);KPa=N}N=KPa;return N},{mode:0});var vcJ;var Odo;var Su=function(){var N=_.z.apply(this,arguments)||this;N.inCollapsedBanner=!1;N.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};N.questionButtonOverrides={style:"mono",type:"filled"};return N};
_.F(Su,_.z);_.v=Su.prototype;_.v.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.v.onContextMenuButtonClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
_.v.onYtRendererstamperFinished=function(){this.menuButton=_.H4(this.hostElement).querySelector("#menu-button")};
_.v.dataChanged=function(){var N,b;if((b=_.t((N=this.data)==null?void 0:N.overflowMenuButton,_.rU))==null?0:b.command)this.data.contextMenuEndpoint=_.t(this.data.overflowMenuButton,_.rU).command};
_.v.onButtonClick=function(){var N,b=_.t((N=this.data)==null?void 0:N.askQuestionButton,_.rU);if(b){if(b.trackingParams&&(N=_.FA(b.trackingParams))){var S=_.Qh();S&&_.y3(S,N)}_.bC(this.hostElement,"innertube-command",b.command)}};
Su.prototype.onYtRendererstamperFinished=Su.prototype.onYtRendererstamperFinished;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],Su.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],Su.prototype,"ytLiveChatItemBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.y("design:type",Object)],Su.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Su.prototype,"inCollapsedBanner",void 0);_.p([_.U(),_.y("design:type",Object)],Su.prototype,"buttonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],Su.prototype,"questionButtonOverrides",void 0);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Su.prototype,"onYtRendererstamperFinished",null);
_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Su);
_.X(Su,"yt-live-chat-call-for-questions-renderer",function(){if(Odo===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vcJ===void 0&&(vcJ=document.createElement("template"));var P=vcJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Odo=N}N=Odo;return N},{mode:0});var Can={};Can.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var N=this;window.requestAnimationFrame(function(){N.restoreFocusNode_||(N.restoreFocusNode_=document.activeElement);var b=_.FGE(N.hostElement);b.length&&b[b.length-1].focus()})},
isAttachedChanged_:function(N,b){N?this.focusChild_():b&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(N){this.hidden||_.V7(N).indexOf(this.hostElement)!==-1||(N.stopPropagation(),this.focusChild_())}};var GXn;var r7i;var P9=function(){return _.z.apply(this,arguments)||this};
_.F(P9,_.z);P9.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
P9.prototype.onClick=function(N){N.target!==this.confirmButton&&N.target!==this.cancelButton&&(this.hidden=!0)};
_.p([_.dq("#confirm_button"),_.y("design:type",Object)],P9.prototype,"confirmButton",void 0);_.p([_.dq("#cancel_button"),_.y("design:type",Object)],P9.prototype,"cancelButton",void 0);_.p([_.U(),_.y("design:type",c7E)],P9.prototype,"data",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],P9.prototype,"hidden",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(Can.YtLiveChatDialogBehavior),_.y("design:type",Object)],P9.prototype,"ytLiveChatDialogBehavior",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],P9);
var c7E=_.X(P9,"yt-live-chat-dialog-renderer",function(){if(r7i===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;GXn===void 0&&(GXn=document.createElement("template"));var P=GXn;S.call(b,P.content.cloneNode(!0),N.content.firstChild);r7i=N}N=r7i;return N},{mode:0});var a6a;var RcO,WP6=function(){if(RcO!==void 0)return RcO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;a6a===void 0&&(a6a=document.createElement("template"));var P=a6a;S.call(b,P.content.cloneNode(!0),N.content.firstChild);return RcO=N};var nct;var dRt;var H9=function(){var N=_.z.apply(this,arguments)||this;N.icon=null;return N};
_.F(H9,_.z);H9.prototype.dismiss=function(){_.bC(this.hostElement,"yt-live-chat-error-message-dismiss")};
H9.prototype.computeIcon=function(N){return N&&N.iconType?"yt-icons:"+N.iconType.toLowerCase():"yt-icons:close"};
_.p([_.U(),_.y("design:type",Object)],H9.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)"}),_.y("design:type",Object)],H9.prototype,"icon",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],H9);
_.X(H9,"yt-live-chat-error-message-renderer",function(){if(dRt===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;nct===void 0&&(nct=document.createElement("template"));var P=nct;S.call(b,P.content.cloneNode(!0),N.content.firstChild);dRt=N}N=dRt;return N},{mode:0});var mRE;var kX5;var sT=function(){var N=_.z.apply(this,arguments)||this;N.tooltip=null;N.data=null;N.id="";N.active=!1;N.icon="";N.disabled=!1;N.showTooltip=!1;N.useToggledActiveState=!0;N.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return N};
_.F(sT,_.z);_.v=sT.prototype;
_.v.dataChanged=function(){var N;((N=this.data)==null?0:N.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.Gd)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0};
_.v.computeId=function(N){return N};
_.v.computeIcon=function(N,b){if(!N)return"";if(this.useToggledActiveState)return"yt-icons:"+N.toLowerCase();var S,P;return b&&((S=this.data)==null?0:(P=S.toggledIcon)==null?0:P.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+N.toLowerCase()};
_.v.logPDGEntryPoint=function(){_.s8I(_.rQ("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.v.immediatelyShowTooltip=function(){var N=_.H4(this.hostElement).querySelector("#tooltip");N.animationDelay=0;N.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};N.show()};
_.v.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.v.onClick=function(N){var b;((b=this.data)==null?0:b.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),N.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.bC(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.v.computeShowTooltip=function(N,b){return!!(N&&N.tooltip&&b)};
_.v.maybeUpdateTooltipText=function(){var N=this,b;if((b=this.data)==null?0:b.tooltip){var S=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Gd)(N.tooltip).textContent=S},250)}};
_.v.handleLiveChatActions=function(N){var b=this;N.length&&(this.id!=="creator"&&this.id!=="product-picker"||N.forEach(function(S){(S=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",S))&&S.durationSec===S.fullDurationSec&&b.startBubble(b.colorFromDecimal(S.startBackgroundColor))}))};
_.v.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.v.startBubble=function(N){_.rq(this.hostElement,{"--yt-live-chat-monetization-button-glow":N});this.hostElement.setAttribute("bubble","")};
_.v.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.v.colorFromDecimal=function(N){typeof N==="string"&&(N=Number(N));return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
sT.prototype.onAnimationEnd=sT.prototype.onAnimationEnd;sT.prototype.disabledChanged=sT.prototype.disabledChanged;sT.prototype.dataChanged=sT.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],sT.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.Gl.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],sT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sT.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],sT.prototype,"id",void 0);_.p([_.U({notify:!0,reflectToAttribute:!0}),_.y("design:type",Object)],sT.prototype,"active",void 0);
_.p([_.U({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.y("design:type",Object)],sT.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sT.prototype,"disabled",void 0);_.p([_.U({computed:"computeShowTooltip(data, disabled)"}),_.y("design:type",Object)],sT.prototype,"showTooltip",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sT.prototype,"useToggledActiveState",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sT.prototype,"dataChanged",null);_.p([_.W4("disabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sT.prototype,"disabledChanged",null);_.p([_.RA("animationend"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sT.prototype,"onAnimationEnd",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],sT);
_.X(sT,"yt-live-chat-icon-toggle-button-renderer",function(){if(kX5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;mRE===void 0&&(mRE=document.createElement("template"));var P=mRE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);kX5=N}N=kX5;return N},{mode:0});var T15;var tRE;var Kp=function(){return _.z.apply(this,arguments)||this};
_.F(Kp,_.z);Kp.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p([_.U(),_.y("design:type",Object)],Kp.prototype,"data",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Kp);
_.X(Kp,"yt-live-chat-message-input-prompt-header-renderer",function(){if(tRE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;T15===void 0&&(T15=document.createElement("template"));var P=T15;S.call(b,P.content.cloneNode(!0),N.content.firstChild);tRE=N}N=tRE;return N},{mode:0});var MRq;var FP5;var B1Q;var l66;var LP5;var f6i;var u25=function(){return _.z.apply(this,arguments)||this};
_.F(u25,_.z);_.p([_.U(),_.y("design:type",Object)],u25.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],u25);
_.X(u25,"yt-live-chat-message-subtext-renderer",function(){if(f6i===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;LP5===void 0&&(LP5=document.createElement("template"));var P=LP5;S.call(b,P.content.cloneNode(!0),N.content.firstChild);f6i=N}N=f6i;return N},{mode:0});var v9=function(){var N=_.z.apply(this,arguments)||this;N.subtextOnBottom=!1;N.buttonOverrides={style:"mono",type:"tonal"};return N};
_.F(v9,_.z);v9.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],v9.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],v9.prototype,"subtextOnBottom",void 0);_.p([_.U(),_.y("design:type",Object)],v9.prototype,"buttonOverrides",void 0);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],v9);
_.X(v9,"yt-live-chat-message-renderer",function(){if(l66===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;B1Q===void 0&&(B1Q=document.createElement("template"));var P=B1Q;S.call(b,P.content.cloneNode(!0),N.content.firstChild);l66=N}N=l66;return N},{mode:0});var Qg_;var xRJ;var OT=function(){var N=_.z.apply(this,arguments)||this;N.isRemovable=!1;N.hasPrefilledText=!1;N.isInputDirty=!1;N.overCharacterLimit=!1;N.underCharacterLimit=!1;N.showErrorMessage=!1;return N};
_.F(OT,_.z);_.v=OT.prototype;_.v.computeId=function(){return this.data.id};
_.v.computeInputData=function(){return this.data.inputData};
_.v.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.v.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.v.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.v.getLiveChatRichMessageInput=function(){return _.H4(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.v.clearInput=function(){_.H4(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.v.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.v.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.v.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.v.handleTextInputCharCountChanged=function(N){N=N.detail&&N.detail.characterCount;N!==void 0&&(this.characterCount=N,N!==0&&(this.isInputDirty=!0))};
_.v.onInputFocusOut=function(){this.isInputDirty=!0};
_.v.onClickCloseButton=function(){_.bC(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
OT.prototype.handleTextInputCharCountChanged=OT.prototype.handleTextInputCharCountChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],OT.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.id)"}),_.y("design:type",String)],OT.prototype,"id",void 0);_.p([_.U({computed:"computeInputData(data.inputData)"}),_.y("design:type",Object)],OT.prototype,"inputData",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.y("design:type",Object)],OT.prototype,"isRemovable",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.y("design:type",Object)],OT.prototype,"hasPrefilledText",void 0);_.p([_.U({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.y("design:type",Number)],OT.prototype,"charactersRemaining",void 0);
_.p([_.U(),_.y("design:type",Number)],OT.prototype,"characterCount",void 0);_.p([_.U(),_.y("design:type",Object)],OT.prototype,"isInputDirty",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.y("design:type",Object)],OT.prototype,"overCharacterLimit",void 0);_.p([_.U({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.y("design:type",Object)],OT.prototype,"underCharacterLimit",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.y("design:type",Object)],OT.prototype,"showErrorMessage",void 0);_.p([_.RA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],OT.prototype,"handleTextInputCharCountChanged",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],OT);
_.X(OT,"yt-live-chat-poll-editor-input",function(){if(xRJ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Qg_===void 0&&(Qg_=document.createElement("template"));var P=Qg_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);xRJ=N}N=xRJ;return N},{mode:0});var ocn;var idq;var J7_={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Cp=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_button_rework_with_live");N.closeButtonOverrides={iconPosition:"icon-only"};N.startButtonOverrides={style:"mono",type:"filled"};N.addOptionButtonOverrides={style:"mono",type:"text"};return N};
_.F(Cp,_.z);_.v=Cp.prototype;
_.v.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.v.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var N;_.t((N=this.data)==null?void 0:N.startButton,_.rU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.computeId=function(){return this.data&&this.data.id||""};
_.v.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.v.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.v.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.v.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.v.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var N=0;N<this.pollEditorInfoWithDefaults.minPollOptions;N++)this.addPollOptionData()};
_.v.getIsValidPoll=function(){var N=this;if(!this.pollEditorInfoWithDefaults)return!1;var b=this.pollEditorInfoWithDefaults,S=b.minPollOptionChars,P=b.maxPollOptionChars,H=b.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>b.maxPollQuestionChars)return!1;b=_.H4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(K,C){K=K.characterCount;!K&&H[C]&&(K=N.ytRendererBehavior.getSimpleString(H[C]).length);return K!==void 0&&K>=S&&K<=P})};
_.v.isValidPollChanged=function(){var N;_.t((N=this.data)==null?void 0:N.startButton,_.rU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.addPollOptionData=function(){var N=this.pollEditorInfoWithDefaults,b=N.maxPollOptionChars,S=N.optionPlaceholderText,P=N.customOptionPlaceholderText,H=N.pollOptionData;this.currentNumPollOptions>=N.maxPollOptions||(N={liveChatPollOptionInput:{inputData:{placeholder:P[this.currentNumPollOptions]||S,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:N.minPollOptionChars,hasPrefilledText:!!P[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=N.minPollOptions}},H.charCountErrorText&&
(N.liveChatPollOptionInput.charCountErrorText=H.charCountErrorText),H.charsRemainingAltLabel&&(N.liveChatPollOptionInput.charsRemainingAltLabel=H.charsRemainingAltLabel),H.removeOptionAltText&&(N.liveChatPollOptionInput.removeOptionAltText=H.removeOptionAltText),this.push("pollOptionsData",N),H=Array.from(_.H4(_.H4(this.hostElement).querySelector("#poll-options")).children),H.forEach(function(K,C){K.polymerController.set("data.id",C)}),_.H4(H[H.length-1]).querySelector("#input").focus())};
_.v.getPollOptionInputValues=function(){var N=this,b=[],S=_.H4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),P=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(S).forEach(function(H,K){var C=null;H=H.getLiveChatRichMessageInput();var G;(H==null?0:(G=H.textSegments)==null?0:G.length)?C=_.ja(H):P[K]&&(C=N.formattedStringToLiveChatRichMessageInput(P[K]));b.push(C)});
return b};
_.v.requestCreateAndStartPoll=function(N){var b=this.getPollOptionInputValues();if(!b.some(function(P){return!P})){b={optionText:b};
var S=_.H4(_.H4(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.liveChatRichMessageInput&&(b.questionText=_.ja(S.liveChatRichMessageInput));_.HN(this.hostElement,[N,b])}};
_.v.selectedChanged=function(){if(this.selected){var N=_.H4(_.H4(this.hostElement).querySelector("#start-button")).firstElementChild;if(N){var b;(b=_.H4(N).querySelector("#button")||_.sj(N).querySelector("button"))==null||b.focus()}}};
_.v.handleTextInputChanged=function(N){var b;((b=N.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=N.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.v.handleStartButtonAction=function(N){N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),(N=N.detail.args[1])&&this.requestCreateAndStartPoll(N))};
_.v.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(N){this.createPollRequestInFlight=!1;(N=N.detail&&N.detail.data)&&N.success&&(_.bC(this.hostElement,"picker-cancelled"),_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.v.onCloseClick=function(){_.bC(this.hostElement,"picker-cancelled");_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.v.handlePollEditorInputClosed=function(N){var b=this.pollOptionsData.findIndex(function(S){return S.liveChatPollOptionInput.id===N.detail.id});
this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()};
_.v.onPickerCancelled=function(){this.reset()};
_.v.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var N=_.H4(_.H4(this.hostElement).querySelector("#poll-question")).firstChild;N&&N.setLiveChatRichMessageInput(null);if(N=_.H4(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){N=_.O(Array.from(N));for(var b=N.next();!b.done;b=N.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.v.formattedStringToLiveChatRichMessageInput=function(N){return N.simpleText?{text_segments:[N.simpleText]}:{text_segments:N.runs}};
_.d0.Object.defineProperties(Cp.prototype,{pollQuestionData:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return{liveChatTextInputFieldRenderer:{placeholder:this.pollEditorInfoWithDefaults.questionPlaceholderText,maxCharacterLimit:this.pollEditorInfoWithDefaults.maxPollQuestionChars}}}},
pollQuestionCharactersRemaining:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return this.pollEditorInfoWithDefaults.maxPollQuestionChars-this.pollQuestionCharacterCount}},
pollEditorInfoWithDefaults:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.pollEditorInfo)return Object.assign(J7_,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Cp.prototype.onPickerCancelled=Cp.prototype.onPickerCancelled;Cp.prototype.handlePollEditorInputClosed=Cp.prototype.handlePollEditorInputClosed;Cp.prototype.handleServiceRequestCompleted=Cp.prototype.handleServiceRequestCompleted;Cp.prototype.handleServiceRequestSent=Cp.prototype.handleServiceRequestSent;Cp.prototype.handleTextInputChanged=Cp.prototype.handleTextInputChanged;Cp.prototype.selectedChanged=Cp.prototype.selectedChanged;Cp.prototype.isValidPollChanged=Cp.prototype.isValidPollChanged;
Cp.prototype.shouldInitializePollChanged=Cp.prototype.shouldInitializePollChanged;Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Cp.prototype,"modern",void 0);
_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"closeButtonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"startButtonOverrides",void 0);_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"addOptionButtonOverrides",void 0);_.p([_.U({computed:"computeId(data.id)",reflectToAttribute:!0}),_.y("design:type",String)],Cp.prototype,"id",void 0);_.p([_.U({value:function(){return[]}}),
_.y("design:type",Array)],Cp.prototype,"pollOptionsData",void 0);_.p([_.f("pollEditorInfoWithDefaults"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cp.prototype,"pollQuestionData",null);_.p([_.U({value:0}),_.y("design:type",Number)],Cp.prototype,"pollQuestionCharacterCount",void 0);_.p([_.f("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cp.prototype,"pollQuestionCharactersRemaining",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.y("design:type",Boolean)],Cp.prototype,"overQuestionCharacterLimit",void 0);_.p([_.f("data.pollEditorInfo"),_.y("design:type",Object),_.y("design:paramtypes",[])],Cp.prototype,"pollEditorInfoWithDefaults",null);_.p([_.U({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.y("design:type",Number)],Cp.prototype,"currentNumPollOptions",void 0);
_.p([_.U({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Cp.prototype,"hasMaxNumPollOptions",void 0);_.p([_.f("pollEditorInfoWithDefaults","pollOptionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Cp.prototype,"shouldInitializePoll",null);_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"isValidPoll",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Cp.prototype,"createPollRequestInFlight",void 0);_.p([_.U(),_.y("design:type",Object)],Cp.prototype,"selected",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.y("design:type",Boolean)],Cp.prototype,"showQuestionErrorMessage",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"dataChanged",null);_.p([_.W4("shouldInitializePoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"shouldInitializePollChanged",null);_.p([_.W4("isValidPoll"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"isValidPollChanged",null);
_.p([_.W4("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"selectedChanged",null);_.p([_.RA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Cp.prototype,"handleTextInputChanged",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"handleServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Cp.prototype,"handleServiceRequestCompleted",null);
_.p([_.RA("yt-live-chat-poll-editor-input-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Cp.prototype,"handlePollEditorInputClosed",null);_.p([_.RA("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Cp.prototype,"onPickerCancelled",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Cp);
_.X(Cp,"yt-live-chat-poll-editor-panel-renderer",function(){if(idq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;ocn===void 0&&(ocn=document.createElement("template"));var P=ocn;S.call(b,P.content.cloneNode(!0),N.content.firstChild);idq=N}N=idq;return N},{mode:0});var UR5;var ZdE;var GA=function(){return _.z.apply(this,arguments)||this};
_.F(GA,_.z);GA.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
GA.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.d0.Object.defineProperties(GA.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var N,b;return(N=this.data)==null?void 0:(b=N.title)==null?void 0:b.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var N;return _.UZ((N=this.data)==null?void 0:N.onTapCommand)}}});
_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],GA.prototype,"ytEndpointBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],GA.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GA.prototype,"itemId",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],GA.prototype,"hasPromotion",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],GA.prototype,"innertubeCommand",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],GA);
_.X(GA,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ZdE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;UR5===void 0&&(UR5=document.createElement("template"));var P=UR5;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ZdE=N}N=ZdE;return N},{mode:0});var jgi;var zcw;var rs=function(){var N=_.z.apply(this,arguments)||this;N.id="product-picker";N.selected=!1;N.closeButtonId="close-button";N.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return N};
_.F(rs,_.z);_.v=rs.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var N=_.H4(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");N.length&&N[0].focus()};
_.v.onCloseBuyFlow=function(){_.bC(this.hostElement,"picker-cancelled")};
_.v.onCloseClick=function(){_.bC(this.hostElement,"picker-cancelled");var N;((N=this.data)==null?0:N.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.closeButton,_.WC))};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.bC(this.hostElement,"picker-cancelled")};
rs.prototype.observeSelected=rs.prototype.observeSelected;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],rs.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rs.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rs.prototype,"id",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rs.prototype,"selected",void 0);_.p([_.U(),_.y("design:type",Object)],rs.prototype,"closeButtonId",void 0);_.p([_.W4("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rs.prototype,"observeSelected",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],rs);
_.X(rs,"yt-live-chat-product-picker-panel-view-model",function(){if(zcw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;jgi===void 0&&(jgi=document.createElement("template"));var P=jgi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);zcw=N}N=zcw;return N},{mode:0});var A7L;var XYi;var c9=function(){var N=_.z.apply(this,arguments)||this;N.iconId="";N.icon="";N.disabled=!1;N.systemIcons=_.T("kevlar_system_icons");return N};
_.F(c9,_.z);_.v=c9.prototype;_.v.computeIconId=function(N){return N&&N.icon&&N.icon.iconType?N.icon.iconType.toLowerCase():""};
_.v.computeIcon=function(N){return N&&N.icon&&N.icon.iconType?(N=N.icon.iconType.toLowerCase(),(N.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+N):""};
_.v.computeDisabled=function(N){return!!N};
_.v.computeCommand=function(N,b){return b?void 0:N};
_.v.computeTooltip=function(N,b){return b&&N?N:""};
_.v.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.d0.Object.defineProperties(c9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N="",b,S,P;if((b=this.data)==null?0:(S=b.text)==null?0:(P=S.runs)==null?0:P.length)N=this.data.text.runs[0].text||"";else{var H,K;if((H=this.data)==null?0:(K=H.text)==null?0:K.simpleText)N=this.data.text.simpleText}var C,G,a;if((C=this.data)==null?0:(G=C.subtext)==null?0:(a=G.runs)==null?0:a.length)N&&(N+=". "),N+=this.data.subtext.runs[0].text||"";else{var R,n;if((R=this.data)==null?0:(n=R.subtext)==
null?0:n.simpleText)N&&(N+=". "),N+=this.data.subtext.simpleText}return N}}});
_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],c9.prototype,"ytEndpointBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],c9.prototype,"data",void 0);_.p([_.U({computed:"computeIconId(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c9.prototype,"iconId",void 0);
_.p([_.U({computed:"computeIcon(data)",reflectToAttribute:!0}),_.y("design:type",Object)],c9.prototype,"icon",void 0);_.p([_.U({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.y("design:type",Object)],c9.prototype,"disabled",void 0);_.p([_.U({computed:"computeCommand(data.command, disabled)"}),_.y("design:type",Object)],c9.prototype,"command",void 0);_.p([_.U({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.y("design:type",String)],c9.prototype,"tooltip",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],c9.prototype,"systemIcons",void 0);_.p([_.f("data.text","data.subtext"),_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],c9.prototype,"ariaLabel",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],c9);
_.X(c9,"yt-live-chat-product-button-renderer",function(){if(XYi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;A7L===void 0&&(A7L=document.createElement("template"));var P=A7L;S.call(b,P.content.cloneNode(!0),N.content.firstChild);XYi=N}N=XYi;return N},{mode:0});var Ecw;var pY5;var ax=function(){var N=_.z.apply(this,arguments)||this;N.selected=!1;N.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return N};
_.F(ax,_.z);_.v=ax.prototype;_.v.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.computeId=function(N){return N.id||""};
_.v.onCloseClick=function(){_.bC(this.hostElement,"picker-cancelled")};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var N=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");N.length&&N[0].focus()};
_.v.onCloseBuyFlow=function(){_.bC(this.hostElement,"picker-cancelled")};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.bC(this.hostElement,"picker-cancelled")};
ax.prototype.observeSelected=ax.prototype.observeSelected;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ax.prototype,"data",void 0);
_.p([_.U({computed:"computeId(data)",reflectToAttribute:!0}),_.y("design:type",String)],ax.prototype,"id",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ax.prototype,"selected",void 0);_.p([_.W4("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ax.prototype,"observeSelected",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ax);
_.X(ax,"yt-live-chat-product-picker-renderer",function(){if(pY5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;Ecw===void 0&&(Ecw=document.createElement("template"));var P=Ecw;S.call(b,P.content.cloneNode(!0),N.content.firstChild);pY5=N}N=pY5;return N},{mode:0});var Yqt;var y7O;var I65;var DR5;var Rx=function(){return _.z.apply(this,arguments)||this};
_.F(Rx,_.z);Rx.prototype.maybeLoadAnimationBackground=function(){this.useAnimationBackground?this.lottieAnimation||(this.lottieAnimation=lottie.loadAnimation({container:this.animationBackground,loop:!0,renderer:"svg",path:"https://www.gstatic.com/youtube/img/livestream/live_chat/lottie_animation/shimmer_background.json",autoplay:!0})):this.lottieAnimation&&this.lottieAnimation.destroy()};
Rx.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Rx.prototype.created=function(){this.ids={background:$i(),maskOne:$i(),maskTwo:$i(),gradient:$i(),largeBackground:$i(),largeGradientOne:$i(),largeGradientTwo:$i(),largeGradientPath:$i()}};
Rx.prototype.maybeLoadAnimationBackground=Rx.prototype.maybeLoadAnimationBackground;_.p([_.U({value:!1}),_.y("design:type",Boolean)],Rx.prototype,"useLargeBackground",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Rx.prototype,"useAnimationBackground",void 0);_.p([_.U({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.y("design:type",Boolean)],Rx.prototype,"useRegularBackground",void 0);
_.p([_.U(),_.y("design:type",Object)],Rx.prototype,"ids",void 0);_.p([_.U(),_.y("design:type",Object)],Rx.prototype,"lottieAnimation",void 0);_.p([_.dq("#animation-background"),_.y("design:type",HTMLDivElement)],Rx.prototype,"animationBackground",void 0);_.p([_.W4("useAnimationBackground"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Rx.prototype,"maybeLoadAnimationBackground",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Rx);
_.X(Rx,"yt-live-interactivity-component-background",function(){if(DR5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;I65===void 0&&(I65=document.createElement("template"));var P=I65;S.call(b,P.content.cloneNode(!0),N.content.firstChild);DR5=N}N=DR5;return N},{mode:0});var W9=function(){var N=_.z.apply(this,arguments)||this;N.characterCount=0;N.showInputErrorMessage=!1;N.startQnaRequestInFlight=!1;N.modern=_.T("web_button_rework_with_live");N.buttonOverrides={style:"mono",type:"filled"};N.closeButtonOverrides={iconPosition:"icon-only"};N.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return N};
_.F(W9,_.z);_.v=W9.prototype;
_.v.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.v.onCharacterCountChanged=function(N){var b,S,P,H,K=(S=_.t(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,n3Q))==null?void 0:(P=S.inputField)==null?void 0:(H=P.liveChatTextInputFieldRenderer)==null?void 0:H.maxCharacterLimit,C,G;K!=null&&(N==null?void 0:(C=N.detail)==null?void 0:C.characterCount)!=null&&_.t(this==null?void 0:(G=this.data)==null?void 0:G.startButton,_.rU)&&(b=N.detail.characterCount>K,this.set("data.startButton.buttonRenderer.isDisabled",N.detail.characterCount===
0||b),this.showInputErrorMessage=b)};
_.v.onCloseClick=function(){_.bC(this.hostElement,"picker-cancelled");_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onPickerCancelled=function(){var N=_.H4(this.hostElement).querySelector("#qna-creator-text-input-field");N&&N.setLiveChatRichMessageInput(null)};
_.v.handleOpenQnaStartPanel=function(){var N=_.H4(this.hostElement).querySelector("#qna-creator-text-input-field");N&&N.focus()};
_.v.handleStartButtonAction=function(N){var b=this;if(N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),N=N.detail.args[1])){var S=_.H4(this.hostElement).querySelector("#qna-creator-text-input-field"),P;(S==null?0:(P=S.liveChatRichMessageInput)==null?0:P.textSegments)&&S.liveChatRichMessageInput.textSegments.length!==0&&(P={rich_message:_.ja(S.liveChatRichMessageInput)},_.HN(this.hostElement,[N,P]).then(function(){_.bC(b.hostElement,"picker-cancelled")}))}};
_.v.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(N){var b;N=N==null?void 0:(b=N.detail)==null?void 0:b.data;(N==null?0:N.actions)&&N.actions.length>0?this.startQnaRequestInFlight=!1:_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
W9.prototype.handleServiceRequestError=W9.prototype.handleServiceRequestError;W9.prototype.handleServiceRequestCompleted=W9.prototype.handleServiceRequestCompleted;W9.prototype.handleServiceRequestSent=W9.prototype.handleServiceRequestSent;W9.prototype.onPickerCancelled=W9.prototype.onPickerCancelled;W9.prototype.onCharacterCountChanged=W9.prototype.onCharacterCountChanged;_.p([_.U(),_.y("design:type",Object)],W9.prototype,"characterCount",void 0);
_.p([_.U(),_.y("design:type",Object)],W9.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],W9.prototype,"showInputErrorMessage",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],W9.prototype,"startQnaRequestInFlight",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],W9.prototype,"modern",void 0);_.p([_.U(),_.y("design:type",Object)],W9.prototype,"buttonOverrides",void 0);
_.p([_.U(),_.y("design:type",Object)],W9.prototype,"closeButtonOverrides",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],W9.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.L(_.ku.YtLiveChatItemBehavior),_.y("design:type",_.TF)],W9.prototype,"ytLiveChatItemBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],W9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.RA("yt-live-chat-text-input-field-renderer-character-count-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],W9.prototype,"onCharacterCountChanged",null);_.p([_.RA("picker-cancelled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],W9.prototype,"onPickerCancelled",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],W9.prototype,"handleServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],W9.prototype,"handleServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],W9.prototype,"handleServiceRequestError",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],W9);
_.X(W9,"yt-live-chat-qna-start-panel-renderer",function(){if(y7O===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Yqt===void 0&&(Yqt=document.createElement("template"));var P=Yqt;S.call(b,P.content.cloneNode(!0),N.content.firstChild);y7O=N}N=y7O;return N},{mode:0});var VRt;var gcq;var np=function(){return _.z.apply(this,arguments)||this};
_.F(np,_.z);np.prototype.dismiss=function(){_.bC(this.hostElement,"yt-live-chat-error-message-dismiss")};
np.prototype.edit=function(){_.bC(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.p([_.U(),_.y("design:type",Object)],np.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],np);
_.X(np,"yt-live-chat-text-actions-error-message-renderer",function(){if(gcq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;VRt===void 0&&(VRt=document.createElement("template"));var P=VRt;S.call(b,P.content.cloneNode(!0),N.content.firstChild);gcq=N}N=gcq;return N},{mode:0});var ect;var $RO;var hcE;var qq5;var ds=function(){var N=_.z.apply(this,arguments)||this;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.newnessDotEligible=!1;return N};
_.F(ds,_.z);ds.prototype.sendReaction=function(){var N,b,S=((N=this.data)==null?void 0:N.emojiId)||((b=this.data)==null?void 0:b.emoteId),P;S&&((P=this.data)==null?0:P.shouldTriggerAnimation)&&_.St(this.hostElement,"yt-create-user-reaction-animation",[S]);var H;(N=_.UZ((H=this.data)==null?void 0:H.onTap))&&_.c7(N,this.hostElement);this.showNewnessDot&&_.St(this.hostElement,"yt-hide-newness-dot")};
ds.prototype.onClick=function(N){(!N||N.clientX||N.clientY)&&this.sendReaction()};
ds.prototype.onKeyDown=function(N){N.key!=="Enter"&&N.key!==" "||N.repeat||this.sendReaction()};
_.d0.Object.defineProperties(ds.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!(((N=this.data)==null?0:N.emojiId)||((b=this.data)==null?0:b.emoteId))}}});
_.p([_.U(),_.y("design:type",Object)],ds.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ds.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],ds.prototype,"newnessDotEligible",void 0);_.p([_.f("data.maybeShowNewnessDot"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ds.prototype,"showNewnessDot",null);_.p([_.f("data.emojiId","data.emoteId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ds.prototype,"useYtImage",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ds);
_.X(ds,"yt-reaction-control-panel-button-view-model",function(){if(qq5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;hcE===void 0&&(hcE=document.createElement("template"));var P=hcE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qq5=N}N=qq5;return N},{mode:0});var wY5;var Nga;var mS=function(){var N=_.z.apply(this,arguments)||this;N.reactionControlPanelExpanded=!1;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.newnessDotEligible=!1;return N};
_.F(mS,_.z);_.v=mS.prototype;_.v.expandedButtonsChanged=function(){var N,b;_.rq(this.hostElement,{"--expanded-buttons-height":((b=(N=this.expandedButtonsData)==null?void 0:N.length)!=null?b:0)*36+"px"})};
_.v.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.v.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.v.onMouseLeave=function(){var N=this;this.collapseTimer=setTimeout(function(){N.reactionControlPanelExpanded=!1},500)};
_.v.onFocusIn=function(){this.onMouseEnter()};
_.v.onFocusOut=function(){this.onMouseLeave()};
_.v.onCollapsedButtonFocusIn=function(){var N=this;setTimeout(function(){var b;(b=N.expandedButtons.querySelector("button"))==null||b.focus()},100)};
_.v.onCollapsedButtonFocusOut=function(N){N.stopPropagation()};
_.d0.Object.defineProperties(mS.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var N,b;return _.Vm.unsafeClone((N=this.liveReactionsData)==null?void 0:N.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var N;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((N=this.data)==null||!N.maybeShowNewnessDot)}}});
mS.prototype.expandedButtonsChanged=mS.prototype.expandedButtonsChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],mS.prototype,"ytLiveChatReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mS.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mS.prototype,"reactionControlPanelExpanded",void 0);_.p([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:CCw}),_.y("design:type",Object)],mS.prototype,"liveReactionsData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mS.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],mS.prototype,"newnessDotEligible",void 0);
_.p([_.f("liveReactionsData","data.expandedButtons"),_.y("design:type",Object),_.y("design:paramtypes",[])],mS.prototype,"expandedButtonsData",null);_.p([_.f("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.U({reflectToAttribute:!0}),_.y("design:type",Object),_.y("design:paramtypes",[])],mS.prototype,"showNewnessDot",null);_.p([_.dq("#expanded-buttons"),_.y("design:type",HTMLElement)],mS.prototype,"expandedButtons",void 0);
_.p([_.W4("expandedButtonsData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mS.prototype,"expandedButtonsChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],mS);
_.X(mS,"yt-reaction-control-panel-view-model",function(){if(Nga===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;wY5===void 0&&(wY5=document.createElement("template"));var P=wY5;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Nga=N}N=Nga;return N},{mode:0});var k4=new _.h2("yt-live-chat"),beE=Date.parse("2024-7-24"),TA=function(){var N=_.z.apply(this,arguments)||this;N.emojiManager=_.mL;N.newnessDotEligible=!1;N.newnessDotImpressionCounted=!1;N.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return N};
_.F(TA,_.z);_.v=TA.prototype;_.v.emojiCustomizationEnabledChanged=function(){var N;((N=this.data)==null?0:N.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((N=k4.getCreationTime("emoji-customization-count"))&&N<beE&&k4.set("emoji-customization-count","0"),N=Number(k4.get("emoji-customization-count"))||0,N<3&&(this.newnessDotEligible=!0,k4.set("emoji-customization-count",(N+1).toString())),this.newnessDotImpressionCounted=!0)};
_.v.hideNewnessDot=function(){this.newnessDotEligible=!1;k4.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.v.handleReactionsMute=function(N){var b=_.Qh(),S=_.OW(206221),P={checkboxData:{state:N?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};b&&_.y3(b,S,P);this.reactionsMuted=N};
_.v.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.v.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.d0.Object.defineProperties(TA.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var N;return(!((N=this.liveReactionsData)==null||!N.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
TA.prototype.liveReactionsSettingChanged=TA.prototype.liveReactionsSettingChanged;TA.prototype.emojiCustomizationEnabledChanged=TA.prototype.emojiCustomizationEnabledChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.CG),_.y("design:type",Object)],TA.prototype,"ytLiveChatReduxBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],TA.prototype,"data",void 0);_.p([_.U(),_.y("design:type",_.Wc)],TA.prototype,"emojiManager",void 0);_.p([_.U(),_.y("design:type",Object)],TA.prototype,"newnessDotEligible",void 0);_.p([_.U(),_.y("design:type",Object)],TA.prototype,"newnessDotImpressionCounted",void 0);
_.p([_.U({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:GYo}),_.y("design:type",Boolean)],TA.prototype,"liveReactionsSetting",void 0);_.p([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:CCw}),_.y("design:type",Object)],TA.prototype,"liveReactionsData",void 0);_.p([_.U({value:function(){var N=_.T("enable_lwe_web_mute"),b=k4.get("allow-reactions");return b===void 0?!1:!b&&N}}),
_.y("design:type",Boolean)],TA.prototype,"reactionsMuted",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],TA.prototype,"liveReactionsEnabled",null);_.p([_.W4("data.emojiCustomizationEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TA.prototype,"emojiCustomizationEnabledChanged",null);
_.p([_.W4("liveReactionsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TA.prototype,"liveReactionsSettingChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],TA);
_.X(TA,"yt-reaction-control-panel-overlay-view-model",function(){if($RO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;ect===void 0&&(ect=document.createElement("template"));var P=ect;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$RO=N}N=$RO;return N},{mode:0});var S8_={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(N){var b=this.$.pickers.selected;if(b){_.H4(this.hostElement).removeAttribute(b+"-open");var S="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(S="#picker-buttons",b==="emoji"&&_.H4(this.hostElement).querySelector("#emoji-picker-button")&&(S="#emoji-picker-button"));if(S=_.H4(this.hostElement).querySelector(S).querySelector("#"+b))S.active=!1}S=N;b==N&&(S=null);b!=
N&&_.H4(this.hostElement).setAttribute(N+"-open","");this.$.pickers.selected=S;_.St(this.hostElement,"yt-live-chat-picker-changed",[S])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var tK=function(){var N=_.z.apply(this,arguments)||this;N.numSentMessages=0;N.timeoutDurationMs=0;N.timeoutMs=0;N.lastTimeoutTimeMs=0;N.pendingMessageId="";N.hasFiredInitialFocusActions=!1;N.isBeforeFocusEnabled=!0;N.id="";N.characterCount=0;N.maxCharacterLimit=0;N.remainingCharacterCount=0;N.inputExpanded=!1;N.buttonOverrides={iconPosition:"icon-only"};N.inReplyPanel=!1;N.countdownRatio=0;N.isTooltipVisible=!1;N.tooltipTimeout=1E4;N.systemIcons=_.T("kevlar_system_icons");N.tallerEmojiPicker=_.T("live_chat_taller_emoji_picker");
N.sendReplyMessageInFlight=!1;N.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};N.onResize=function(){N.maybeToggleCharacterCount()};
return N};
_.F(tK,_.z);_.v=tK.prototype;
_.v.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.v.attached=function(){window.addEventListener("resize",this.onResize)};
_.v.detached=function(){window.removeEventListener("resize",this.onResize)};
_.v.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.v.sendMessage=function(){var N=this,b,S,P,H;return _.r(function(K){if(N.sendDisabled)return K.return();N.isTooltipVisible&&_.St(N.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(N.data.sendButton&&N.data.sendButton.buttonRenderer){N.input.completeEmojis();b=N.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return K.return();P=((S=_.t(b,_.srZ))==null?void 0:S.clientIdPrefix)||"";H={client_message_id:P+String(N.numSentMessages++),rich_message:_.ja(N.input.liveChatRichMessageInput)};
N.pendingMessageId=H.client_message_id;N.inReplyPanel&&(N.sendReplyMessageInFlight=!0);_.HN(N.hostElement,[b,H]);N.input.setLiveChatRichMessageInput(null)}_.Zd(K)})};
_.v.handleSendButtonAction=function(N){N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),this.sendMessage())};
_.v.onSendCompleted=function(N,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(N=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(N)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""};
_.v.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.St(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.v.handlePickerButtonToggle=function(N){N=N.detail.targetId;this.ytPickerBehavior.togglePicker_(N);if(N==="emoji")this.input.focus();else if(N==="qna-start-panel"){var b,S;(b=_.H4(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(S=b.querySelector("#qna-creator-text-input-field"))==null||S.focus()}};
_.v.onComponentReplaced=function(N){var b,S;N.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=N.replacement.liveChatMessageInputRenderer)==null?0:(S=b.headerRenderer)==null?0:S.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.v.onEmojiSelect=function(N){this.input.focus();this.input.insertEmoji(N.detail)};
_.v.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.v.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.St(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.St(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.v.onOpenPopupAction=function(N,b){var S=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.St(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.v.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.v.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.v.focusChanged=function(){this.maybeToggleCharacterCount()};
_.v.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var N=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",N>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.v.computeId=function(){return this.data&&this.data.targetId||""};
_.v.computeSendDisabled=function(N,b,S,P){N=!!(!N||b&&N>b||P);(b=_.H4(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=N);return N};
_.v.handleTimeout=function(N){this.timeoutDurationMs=this.timeoutMs=N;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.v.updateTimeout=function(N){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(N-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=N,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.v.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.v.onErrorMessageEdit=function(N){this.input.setLiveChatRichMessageInput(N.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.v.errorMessageChanged=function(){var N=this;_.p3(function(){_.St(N.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.v.computeAuthorNameColor=function(N){var b;if(_.T("live_chat_author_name_color_usernames")&&(N==null?0:(b=N.authorName)==null?0:b.simpleText))return _.mep(_.k9b(N.authorName.simpleText));if(_.T("live_chat_seed_color_usernames")&&(N==null?0:N.authorSeedColorArgb))return _.mep(_.v7(N.authorSeedColorArgb));if(_.T("live_chat_colored_usernames"))return"#cc0000";var S;return _.T("live_chat_simple_color_usernames")&&(N==null?0:(S=N.authorName)==null?0:S.simpleText)&&(N==null?0:N.authorUsernameColorLight)&&
(N==null?0:N.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.v7(N.authorUsernameColorDark):_.v7(N.authorUsernameColorLight):""};
_.v.onIsTooltipVisibleChanged=function(){var N=_.H4(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){N.hidden=!1;N.setAttribute("role","alert")},0):(N.hidden=!0,N.removeAttribute("role"))};
_.v.onFocusedChanged=function(N){this.inputFocused=N.detail.value};
_.d0.Object.defineProperties(tK.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.pickers)==null?void 0:b.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return N?this.ytRendererBehavior.getSimpleString(N):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
tK.prototype.onIsTooltipVisibleChanged=tK.prototype.onIsTooltipVisibleChanged;tK.prototype.errorMessageChanged=tK.prototype.errorMessageChanged;tK.prototype.onErrorMessageEdit=tK.prototype.onErrorMessageEdit;tK.prototype.onErrorMessageDismiss=tK.prototype.onErrorMessageDismiss;tK.prototype.focusChanged=tK.prototype.focusChanged;tK.prototype.characterCountChanged=tK.prototype.characterCountChanged;tK.prototype.onEmojiSelect=tK.prototype.onEmojiSelect;tK.prototype.handlePickerButtonToggle=tK.prototype.handlePickerButtonToggle;
tK.prototype.onSendError=tK.prototype.onSendError;tK.prototype.onSendCompleted=tK.prototype.onSendCompleted;tK.prototype.sendMessage=tK.prototype.sendMessage;tK.prototype.dataChanged=tK.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(S8_.YtPickerBehavior),_.y("design:type",Object)],tK.prototype,"ytPickerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gl.YtLiveChatTooltipTargetingBehavior),_.y("design:type",Object)],tK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"hasFiredInitialFocusActions",void 0);
_.p([_.U(),_.y("design:type",Object)],tK.prototype,"isBeforeFocusEnabled",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"data",void 0);_.p([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.y("design:type",Object)],tK.prototype,"id",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"characterCount",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"maxCharacterLimit",void 0);
_.p([_.U(),_.y("design:type",Object)],tK.prototype,"remainingCharacterCount",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tK.prototype,"inputExpanded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],tK.prototype,"inputFocused",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],tK.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.p([_.U(),_.y("design:type",_.FO)],tK.prototype,"participantsManager",void 0);
_.p([_.U(),_.y("design:type",Object)],tK.prototype,"buttonOverrides",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tK.prototype,"inReplyPanel",void 0);_.p([_.f("characterCount, maxCharacterLimit, countdownActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"sendDisabled",null);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"countdownRatio",void 0);
_.p([_.f("countdownRatio"),_.y("design:type",Number),_.y("design:paramtypes",[])],tK.prototype,"countdownStrokeDashOffset",null);_.p([_.f("countdownRatio"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"countdownActive",null);_.p([_.f("data.interactionMessage"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"hasInteractionMessage",null);
_.p([_.f("data.emojiPickerButton"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"hasEmojiPickerButton",null);_.p([_.f("data, characterCount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"showAvatar",null);_.p([_.f("data.pickers"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tK.prototype,"hasProductPickerPanelViewModel",null);
_.p([_.U(),_.y("design:type",Object)],tK.prototype,"errorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"genericErrorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"isTooltipVisible",void 0);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"tooltipTimeout",void 0);_.p([_.f("data.onInitialFocusCommand"),_.y("design:type",String),_.y("design:paramtypes",[])],tK.prototype,"tooltipMessage",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tK.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],tK.prototype,"tallerEmojiPicker",void 0);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],tK.prototype,"authorNameColor",null);_.p([_.U(),_.y("design:type",Object)],tK.prototype,"sendReplyMessageInFlight",void 0);_.p([_.dq("#input"),_.y("design:type",_.EzV)],tK.prototype,"input",void 0);
_.p([_.dq("#count"),_.y("design:type",HTMLElement)],tK.prototype,"count",void 0);_.p([_.dq("#input-container"),_.y("design:type",HTMLElement)],tK.prototype,"inputContainer",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"dataChanged",null);_.p([_.RA("yt-live-chat-send-message"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],tK.prototype,"sendMessage",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.I7]),_.y("design:returntype")],tK.prototype,"onSendCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"onSendError",null);
_.p([_.RA("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tK.prototype,"handlePickerButtonToggle",null);_.p([_.RA("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tK.prototype,"onEmojiSelect",null);
_.p([_.W4("characterCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"characterCountChanged",null);_.p([_.W4("inputFocused"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"focusChanged",null);_.p([_.RA("yt-live-chat-error-message-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"onErrorMessageDismiss",null);
_.p([_.RA("yt-live-chat-error-message-edit"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],tK.prototype,"onErrorMessageEdit",null);_.p([_.W4("errorMessage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"errorMessageChanged",null);_.p([_.W4("isTooltipVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tK.prototype,"onIsTooltipVisibleChanged",null);
_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],tK);
_.X(tK,"yt-live-chat-message-input-renderer",function(){if(FP5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;MRq===void 0&&(MRq=document.createElement("template"));var P=MRq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);FP5=N}N=FP5;return N},{mode:0});var Psw;var Hen;var MK=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.firedOnClickCommand=!1;N.inReplyPanel=!1;return N};
_.F(MK,_.z);
MK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"picker-buttons",mapping:{buttonRenderer:"yt-button-renderer",liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer",reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.inlineAfterMessageButton":{id:"message-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.panels":{id:"pickers",mapping:{liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model"}}}};
MK.prototype.onButtonToggle=function(N){N.target.disabled||this.ytPickerBehavior.togglePicker_(N.detail.targetId)};
MK.prototype.onClick=function(){var N=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.St(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return N.firedOnClickCommand=!1},5E3))};
_.d0.Object.defineProperties(MK.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.panels)==null?void 0:b.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}}});
MK.prototype.onButtonToggle=MK.prototype.onButtonToggle;_.p([_.L(S8_.YtPickerBehavior),_.y("design:type",Object)],MK.prototype,"ytPickerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MK.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],MK.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Object)],MK.prototype,"firedOnClickCommand",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],MK.prototype,"inReplyPanel",void 0);_.p([_.f("data.pickers"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MK.prototype,"hasProductPickerPanelViewModel",null);
_.p([_.RA("yt-live-chat-icon-toggle-button-renderer-toggle"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],MK.prototype,"onButtonToggle",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],MK);
_.X(MK,"yt-live-chat-restricted-participation-renderer",function(){if(Hen===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Psw===void 0&&(Psw=document.createElement("template"));var P=Psw;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Hen=N}N=Hen;return N},{mode:0});var FP=function(){var N=_.z.apply(this,arguments)||this;N.genericErrorMessage=_.gy("Error, try again.");N.inReplyPanel=!1;N.hideBorder=!1;return N};
_.F(FP,_.z);FP.prototype.configureRendererStamper=function(){return{"data.actionPanel":{id:"content",mapping:{liveChatRestrictedParticipationRenderer:{component:"yt-live-chat-restricted-participation-renderer",properties:{inReplyPanel:"[[inReplyPanel]]"}},liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{genericErrorMessage:"[[genericErrorMessage]]",inReplyPanel:"[[inReplyPanel]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}}}};
_.d0.Object.defineProperties(FP,{template:{configurable:!0,enumerable:!0,get:function(){return WP6()}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FP.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],FP.prototype,"genericErrorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],FP.prototype,"inReplyPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],FP.prototype,"hideBorder",void 0);
_.p([_.J_({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],FP);_.X(FP,"yt-live-chat-engagement-panel-input-renderer",function(){return WP6()},{mode:0});var sGO;var Kxn;var vka=new _.h2("yt-live-chat"),Oe_=new Map;Oe_.set("timestamp_toggle","show-timestamps");Oe_.set("reactions_toggle","allow-reactions");var B9=function(){return _.z.apply(this,arguments)||this};
_.F(B9,_.z);_.v=B9.prototype;_.v.menuItemIdentifierChanged=function(){var N;(N=this.data)!=null&&N.menuItemIdentifier&&(N=Oe_.get(this.data.menuItemIdentifier))&&(_.T("enable_lwe_web_mute")?(N=vka.get(N),this.isToggled=!(N===void 0?!this.data.isToggled:!N)):this.isToggled=vka.get(N))};
_.v.onFocus=function(){this.toggleButton.focus()};
_.v.onTap=function(){var N=this.data.command;N&&this.componentBehavior.resolveCommand(N)};
_.v.computeText=function(N,b,S){return this.componentBehavior.getSimpleString(N?S:b)};
_.v.computeIcon=function(N,b,S){return(N=N?S:b)&&N.iconType?_.C7(N.iconType):""};
B9.prototype.onTap=B9.prototype.onTap;B9.prototype.onFocus=B9.prototype.onFocus;B9.prototype.menuItemIdentifierChanged=B9.prototype.menuItemIdentifierChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],B9.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],B9.prototype,"data",void 0);
_.p([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],B9.prototype,"icon",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],B9.prototype,"isToggled",void 0);_.p([_.dq("tp-yt-paper-toggle-button"),_.y("design:type",Object)],B9.prototype,"toggleButton",void 0);_.p([_.W4("data.menuItemIdentifier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],B9.prototype,"menuItemIdentifierChanged",null);
_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],B9.prototype,"onFocus",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],B9.prototype,"onTap",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],B9);
_.X(B9,"yt-live-chat-toggle-renderer",function(){if(Kxn===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;sGO===void 0&&(sGO=document.createElement("template"));var P=sGO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Kxn=N}N=Kxn;return N},{mode:0});var Cs6=new _.nO("NAVIGATION_PROGRESS_TOKEN");var GeQ={},rLa={},cL_=(rLa[mqQ.name]=!0,rLa),lh=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;N.tabGesturesIsActive=!1;N.actionRouterIsRoot=!0;N.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};N.pageTitle="";N.titleSuffix="YouTube";N.unseenNotificationCount=
0;N.hasNavigated=!1;N.hasSetScrollTopForNavigation=!1;N.pagePreparer=null;N.zwiebackInitJobId=0;N.dataUpdatePromise=null;N.loadDepsPromise=_.KA();N.hasPendingNavigation=!1;N.pendingPlayerOnResponseReceivedActions=[];return N};
_.F(lh,_.kq);lh.prototype.attached=function(){aPO(this);document.addEventListener("yt-navigate-cache",_.aA(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var N=Lp();N.init();N.dispatchElement=this.hostElement};
var aPO=function(N,b){b=b===void 0?0:b;var S=_.aN().resolve(_.cq(_.pi));if(S)R15(N,S);else{if(b>=5)throw Error("ul");setTimeout(function(){aPO(N,b+1)},0)}},R15=function(N,b){b.addEventListener("yt-navigate-start",_.aA(N,N.onYtNavigateStart));
b.addEventListener("yt-navigate-finish",_.aA(N,N.onYtNavigateFinish));b.addEventListener("yt-navigate-error",_.aA(N,N.onYtNavigateError));b.addEventListener("yt-page-data-fetched",_.aA(N,N.onYtPageDataFetched))};
_.v=lh.prototype;_.v.detached=function(){var N=_.aN().resolve(_.pi);N.removeEventListener("yt-navigate-start",_.aA(this,this.onYtNavigateStart));N.removeEventListener("yt-navigate-finish",_.aA(this,this.onYtNavigateFinish));N.removeEventListener("yt-navigate-error",_.aA(this,this.onYtNavigateError));N.removeEventListener("yt-page-data-fetched",_.aA(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.aA(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.v.setPageOffset=function(N,b){N?_.St(this.hostElement,"yt-set-page-offset",[N,b]):_.ge(Error("vl"))};
_.v.setPageOffsetForNavigation=function(N,b){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(N,b))};
_.v.onYtNavigateSetPageOffset=function(N,b){this.setPageOffsetForNavigation(b.page,b.offset)};
_.v.getPageOffset=function(){var N=_.H4(this.hostElement).querySelector("#page-manager").getCurrentPage(),b=0;N&&(b=_.St(this.hostElement,"yt-get-page-offset",[N])[0]);return b};
_.v.onYtHistoryPop=function(N,b){if(_.g8("DISABLE_WARM_LOADS"))N.preventDefault(),window.location.reload();else{var S=_.aN().resolve(_.pi);S.hasPendingNavigation()&&N.preventDefault();S.cancelPendingNavigation();_.PN(this.hostElement,"yt-pending-navigation-cancelled");b.errorMsg&&(N=b.errorMsg.split(" - "),b=Error(N[0]),N.length==2&&N[1]&&(_.hd(b,N[1]),_.$h(b)),window.location.reload())}};
_.v.onYtHistoryLoad=function(N,b){var S=this;if(_.g8("DISABLE_WARM_LOADS"))window.location.reload();else{(N=b.endpoint)&&Object.keys(N).length||(N=null);var P=b.historyEntry,H=_.aN().resolve(_.pi),K=_.aN().resolve(_.$9),C=null;P&&P.rootData&&(C=P.rootData);var G=C&&Wxi(C);!C||G||C.filler?N?(H.navigate(N,!0),nkE(this,N)):(b.legacyBorder||G||(b.JSC$31070_savedComponentState==null&&C==null?_.$h(new _.jU("Incomplete history entry",b.forward)):_.ed(new _.jU("Malformed history entry",b.JSC$31070_savedComponentState,
b.forward,C))),window.location.reload()):(_.NUp({isHot:!0}),_.lC({webInfo:{navigationReason:"h"}}),_.Hyp(),_.uC("srt"),_.uC("pdc"),this.cancelPendingTasks(),doE(this,b.forward,C),C.player&&(C.player.loaded=!1),nkE(this,N),_.kGN(H,N||{},C,2,{},!1,b).then(function(){S.setPageOffset(K.getCurrentPage(),P.scrollTop||0)}))}};
_.v.initHistoryManager=function(N){if(!this.hasNavigated){this.hasNavigated=!0;var b=_.H4(this.hostElement).querySelector("#page-manager").getCurrentData();N=isNaN(N)?this.getPageOffset():N;var S=_.aN().resolve(_.pi).currentEndpoint;this.replaceState(S,b,N)}};
_.v.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.v.onYtNavigateStart=function(N,b){this.cancelPendingTasks();b.noProgressBar||(N=_.aN().resolve(_.cq(Cs6)))&&N.start();N=this.hasPendingNavigation?null:this.data;var S=_.aN().resolve(_.$9),P,H,K;_.T("kevlar_use_vimio_behavior")&&!((P=b.endpoint)==null?0:(H=P.commandMetadata)==null?0:(K=H.webCommandMetadata)==null?0:K.ignoreNavigation)&&(P=S.getCurrentPage())&&P.disconnectVisibilityRoot();S.prepareForNavigation(b.pageType,b.endpoint);_.T("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.LG(1,
"pcl"),_.fG(this.pagePreparer,S.preparePage.bind(S,b.pageType,b.endpoint)));P=this.getPageOffset();this.initHistoryManager(P);b.reload||this.hasPendingNavigation?(b.pageType==="shorts"&&b.reload&&_.bC(this.hostElement,"yt-shorts-reset"),this.replaceState(b.endpoint,N,P)):(N==null?void 0:N.page)==="watch"&&b.pageType==="watch"&&_.T("kevlar_replace_watch_to_watch_history_state")?this.replaceState(b.endpoint,N,P):(N==null?void 0:N.page)!=="shorts"||b.pageType!=="shorts"||b.endpoint.reelWatchEndpoint.sequenceParams||
_.T("short_to_short_back_nav_killswitch")?b.type!="navigate-back"&&b.type!="navigate-forward"&&(b.pageType==="shorts"&&_.bC(this.hostElement,"yt-shorts-reset"),this.saveAndPush(b.url,b.endpoint,N,P)):this.replaceState(b.endpoint,N,0);this.hasPendingNavigation=!0};
var mo6=function(N){N.hasPendingNavigation=!1;(N=_.aN().resolve(_.cq(Cs6)))&&N.finish()};
lh.prototype.onYtNavigateError=function(N,b){mo6(this);N=this.get("endpoint.commandMetadata.webCommandMetadata.url",b);var S=_.SU(window.location.href);N&&!S.pbjreload&&(b=b.navigationErrorReason||"10",_.T("kevlar_parent_on_pbjreload")&&(S={csn:_.Qh()},this.get("data.endpoint.clickTrackingParams")&&(S.itct=this.data.endpoint.clickTrackingParams),_.e0(N,S)),_.jZ(_.Pq(N,{pbjreload:b})))};
lh.prototype.onYtNavigateCache=function(N,b){var S=this,P=b.url,H=b.endpoint,K=b.data;N=!!b.miniplayer;b=!!b.skipHistory;if(P&&H&&K){var C=this.getPageOffset(),G=this.data||null;b||this.saveAndPush(P,H,G,C);P=_.kGN(_.aN().resolve(_.pi),H,K,N?4:3,{},N);N&&P.then(function(){S.dataUpdatePromise&&S.dataUpdatePromise.then(function(){var a=_.aN().resolve(_.$9);S.setPageOffset(a.getCurrentPage(),0)})})}};
lh.prototype.onYtNavigateFinish=function(N,b){var S=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){keL(S,b.fromHistory)})};
var keL=function(N,b){mo6(N);if(N.pendingPlayerOnResponseReceivedActions){for(var S=_.O(N.pendingPlayerOnResponseReceivedActions),P=S.next();!P.done;P=S.next())_.c7(P.value,N.hostElement);N.pendingPlayerOnResponseReceivedActions=[]}S=_.aN().resolve(_.$9);b||!N.hasNavigated||_.T("web_disable_scroll_on_navigate_finish")||((b=S.getCurrentPage())?b.is==="ytd-shorts"||N.tabGesturesIsActive||N.setPageOffsetForNavigation(b,0):_.$h(Error("wl")));_.p3(function(){_.p3(function(){_.uC("pda")})})};
lh.prototype.onYtNavigate=function(N){if(!N.detail.endpoint){var b=new _.jU("Error: Missing yt-navigate endpoint from target:",N.target,N.target.nodeName);_.ge(b)}if(b=_.T("cold_missing_history"))b=Lp(),b.init(!1),b=!(b.browserHistory.boundHistoryReplaceState&&b.browserHistory.boundHistoryPushState);if(b){_.DH("DISABLE_WARM_LOADS",!0);b=new _.jU("Failed to initialize history manager",this.getDebugString());var S=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
S?_.$h(b):_.ge(b)}b=N.detail.endpoint;var P,H;_.T("debug_forward_web_query_parameters")&&((P=b.commandMetadata)==null?0:(H=P.webCommandMetadata)==null?0:H.url)&&(b=JSON.parse(JSON.stringify(b)),b.commandMetadata.webCommandMetadata.url=_.lpO(b.commandMetadata.webCommandMetadata.url,window.location.search));N={type:0,command:b,form:{params:N.detail.params,tempData:N.detail.tempData||{},requestType:N.detail.type,createScreenConfig:N.detail.createScreenConfig,reload:N.detail.reload?N.detail.reload:!1,
requestForm:N.detail}};_.T("kevlar_yt_navigate_command_handler")?(P=_.aN().resolve(_.Wq),N.form.skipDefaultElement=!0,P.resolveCommand(b,{form:N.form})):this.handleNavigate(N)};
lh.prototype.handleNavigate=function(N){this.hasSetScrollTopForNavigation=!1;var b=_.aN().resolve(_.pi),S=N.form||{};b.navigate(N.command,S.reload,S.params,S.tempData,S.requestType,S.createScreenConfig,S.ignoreConfirmation,S.requestForm)&&nkE(this,N.command,S.tempData)};
lh.prototype.onYtPageDataFetched=function(N,b){try{_.Csb().reset();this.data=b.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.aN().resolve(_.$9).updatePageData(this.data);var S=this.get("playerResponse.onResponseReceivedActions",this.data);S&&(S=TgO(this,S));S&&_.sR(this.hostElement,S,this.hostElement);var P=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),H=this.get("response.responseContext.consistencyTokenJar",this.data);if(P||H){var K=_.Wm9(),C=(0,_.Vm.getValues)(K.tokenJars);P&&K.replace(C,P);H&&K.replace(C,H)}}catch(G){_.ge(G)}};
var nkE=function(N,b,S){try{N.onYtEndpointChangeHandler(b,S)}catch(P){_.ge(P)}};
_.v=lh.prototype;_.v.onYtEndpointChangeHandler=function(){};
_.v.setPageTitle=function(N){N=(this.pageTitle=N)?N+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+N};
_.v.onYtUpdateTitle=function(N,b){this.setPageTitle(b)};
_.v.setUnseenNotificationCount=function(N){this.unseenNotificationCount=N;this.setPageTitle(this.pageTitle)};
_.v.handleUpdateNotificationsUnseenCountAction=function(N){_.t(N,MEa)&&((N=_.t(N,MEa).unseenCount)?this.setUnseenNotificationCount(N):this.setUnseenNotificationCount(0))};
_.v.handleClearCookieAction=function(N){var b;(N=(b=_.t(N,ntQ))==null?void 0:b.cookieName)&&_.IpU(N)};
_.v.onYtUpdateUnseenNotificationCount=function(N,b){this.setUnseenNotificationCount(b)};
_.v.loadData=function(N){var b=this;this.loadDepsPromise.then(function(){var S=_.aN().resolve(_.cq(_.pi));S||_.ge(Error("xl"));if(N&&N.response){if(!N.endpoint){var P=_.XV(window.document.location.href)||"/",H="";if(P==="/"||P.startsWith("/?"))H="WEB_PAGE_TYPE_BROWSE";N.endpoint={commandMetadata:{webCommandMetadata:{url:P,webPageType:H,rootVe:3854}}}}_.kGN(S,N.endpoint,N,5,{})}else N.endpoint?S.navigate(N.endpoint):S.navigate(_.$D);_.Dj.cancelJob(b.zwiebackInitJobId);b.zwiebackInitJobId=_.Dj.addLowPriorityJob(Dui)})};
var Lp=function(){return _.aN().resolve(_.Dc)};
lh.prototype.getDebugString=function(){return Lp().getDebugString()};
lh.prototype.getThirdPartyManipulationSuspected=function(){return Lp().getThirdPartyManipulationSuspected()};
lh.prototype.replaceState=function(N,b,S){Lp().saveAndReplace(N,b,S)};
lh.prototype.saveAndPush=function(N,b,S,P){Lp().saveAndPush(N,b,S,P)};
var Wxi=function(N){return _.t(N.endpoint,_.Iv)||_.t(N.endpoint,_.kn)?!0:!N||isNaN(N.expirationTime)?!1:(0,_.nh)()>N.expirationTime},doE=function(N,b,S){var P=N.get("response.trackingParams",S),H=_.uZ(),K=_.Qh();
if(P&&H&&K&&(P=N.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",S),!P&&S.rootVe&&(P=S.rootVe),H=b?"forwardButton":"backButton",b=N.get("playerResponse.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",N.data),N=N.get("response.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",N.data),b=(N=b||N)?_.FA(N):void 0,N=_.dG(),H=[_.KA(S)],_.Xy(N,P,b,{dataPromises:H,csnToClone:S.csn}),S.graftedVes))for(S=
_.O(S.graftedVes),P=S.next();!P.done;P=S.next())_.Ew(N,P.value)};
lh.prototype.onStoreGraftedVeAction=function(N){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(N)):_.$h(Error("yl"))};
var TgO=function(N,b){return b.filter(function(S){for(var P in S)if(cL_[P])return N.pendingPlayerOnResponseReceivedActions.push(S),!0;return!1})};
_.d0.Object.defineProperties(lh.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
lh.prototype.onStoreGraftedVeAction=lh.prototype.onStoreGraftedVeAction;lh.prototype.loadData=lh.prototype.loadData;lh.prototype.onYtUpdateUnseenNotificationCount=lh.prototype.onYtUpdateUnseenNotificationCount;lh.prototype.handleClearCookieAction=lh.prototype.handleClearCookieAction;lh.prototype.handleUpdateNotificationsUnseenCountAction=lh.prototype.handleUpdateNotificationsUnseenCountAction;lh.prototype.setUnseenNotificationCount=lh.prototype.setUnseenNotificationCount;
lh.prototype.onYtUpdateTitle=lh.prototype.onYtUpdateTitle;lh.prototype.setPageTitle=lh.prototype.setPageTitle;lh.prototype.onYtEndpointChangeHandler=lh.prototype.onYtEndpointChangeHandler;lh.prototype.onYtPageDataFetched=lh.prototype.onYtPageDataFetched;lh.prototype.handleNavigate=lh.prototype.handleNavigate;lh.prototype.onYtNavigate=lh.prototype.onYtNavigate;lh.prototype.onYtNavigateFinish=lh.prototype.onYtNavigateFinish;lh.prototype.onYtNavigateCache=lh.prototype.onYtNavigateCache;
lh.prototype.onYtNavigateError=lh.prototype.onYtNavigateError;lh.prototype.onYtNavigateStart=lh.prototype.onYtNavigateStart;lh.prototype.cancelPendingTasks=lh.prototype.cancelPendingTasks;lh.prototype.initHistoryManager=lh.prototype.initHistoryManager;lh.prototype.onYtHistoryLoad=lh.prototype.onYtHistoryLoad;lh.prototype.onYtHistoryPop=lh.prototype.onYtHistoryPop;lh.prototype.onYtNavigateSetPageOffset=lh.prototype.onYtNavigateSetPageOffset;lh.prototype.setPageOffset=lh.prototype.setPageOffset;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],lh.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lh.prototype,"data",void 0);_.p([_.RA("yt-navigate-set-page-offset"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lh.prototype,"onYtNavigateSetPageOffset",null);
_.p([_.RA("yt-history-pop"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],lh.prototype,"onYtHistoryPop",null);_.p([_.RA("yt-history-load"),_.y("design:type",Function),_.y("design:paramtypes",[Event,_.Zs9]),_.y("design:returntype")],lh.prototype,"onYtHistoryLoad",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],lh.prototype,"onYtNavigate",null);
_.p([_.RA("yt-update-title"),_.y("design:type",Function),_.y("design:paramtypes",[Event,String]),_.y("design:returntype")],lh.prototype,"onYtUpdateTitle",null);_.p([_.RA("yt-update-unseen-notification-count"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Number]),_.y("design:returntype")],lh.prototype,"onYtUpdateUnseenNotificationCount",null);_.p([_.Td()],lh);GeQ.YtdAppBehavior=[_.pG.YtActionHandlerBehavior,lh.prototype];var fp=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;N.scrollRate=3;N.autoScrollAnimationStart=0;N.autoScrollPaused=!1;N.autoScrollRafId=0;return N};
_.F(fp,_.kq);_.v=fp.prototype;_.v.created=function(){var N=this;this.boundAutoScrollHandler=function(b){N.autoScroll(b)}};
_.v.detached=function(){this.hostElement.removeEventListener("mouseout",_.aA(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.aA(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.aA(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.v.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.aA(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.aA(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.aA(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.aA(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.aA(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.aA(this,this.endAutoScroll)),this.endAutoScroll())};
_.v.autoScroll=function(N){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=N);var b;if(b=!this.autoScrollPaused&&this.scrollTarget)b=this.scrollTarget,b=b.scrollHeight-b.scrollTop!==b.clientHeight;b&&(b=1E3/this.scrollRate,N-=this.autoScrollAnimationStart,N>b&&(this.scrollTarget.scrollTop+=Math.ceil(N/b),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.v.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.v.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
fp.prototype.autoScrollEnabledChanged=fp.prototype.autoScrollEnabledChanged;_.p([_.U(),_.y("design:type",Object)],fp.prototype,"scrollRate",void 0);_.p([_.U(),_.y("design:type",Object)],fp.prototype,"scrollTarget",void 0);_.p([_.U(),_.y("design:type",Boolean)],fp.prototype,"autoScrollEnabled",void 0);_.p([_.W4("autoScrollEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fp.prototype,"autoScrollEnabledChanged",null);_.p([_.Td()],fp);var t4w=[fp.prototype];var uh=function(){var N=_.kq.apply(this,arguments)||this;N._noAccessors=!0;return N};
_.F(uh,_.kq);uh.prototype.ready=function(){var N=this;_.H4(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){N.onChange_()})};
uh.prototype.dataChanged_=function(){_.H4(this.hostElement).querySelector("#checkbox").checked=!1};
uh.prototype.onChange_=function(){var N=_.H4(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.bC(this.hostElement,"yt-dismissal-reason-"+N,this.data.feedbackToken)};
uh.prototype.dataChanged_=uh.prototype.dataChanged_;_.p([_.U(),_.y("design:type",Object)],uh.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uh.prototype,"dataChanged_",null);_.p([_.Td()],uh);var M4J=[uh.prototype];var Qk=function(){var N=_.kq.apply(this,arguments)||this;N.showInput=!1;return N};
_.F(Qk,_.kq);_.v=Qk.prototype;_.v.detached=function(){this.showInput&&window.removeEventListener("click",_.aA(this,this.closeOnOutsideClick_))};
_.v.stopPropagation_=function(N){this.showInput&&N.stopPropagation()};
_.v.closeOnOutsideClick_=function(N){this.closeOnOutsideClickCondition(N)&&(this.showInput=!1,window.removeEventListener("click",_.aA(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.v.closeOnOutsideClickCondition=function(){return!0};
_.v.closeOnOutsideClickHandler=function(){};
_.v.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.aA(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.v.openOnClickHandler=function(){};
_.v.showInputChanged=function(){};
_.v.setShowInput=function(N){this.showInput=N};
Qk.prototype.setShowInput=Qk.prototype.setShowInput;Qk.prototype.showInputChanged=Qk.prototype.showInputChanged;Qk.prototype.openOnClickHandler=Qk.prototype.openOnClickHandler;Qk.prototype.openOnClick_=Qk.prototype.openOnClick_;Qk.prototype.closeOnOutsideClickHandler=Qk.prototype.closeOnOutsideClickHandler;Qk.prototype.closeOnOutsideClickCondition=Qk.prototype.closeOnOutsideClickCondition;Qk.prototype.closeOnOutsideClick_=Qk.prototype.closeOnOutsideClick_;Qk.prototype.stopPropagation_=Qk.prototype.stopPropagation_;
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Qk.prototype,"showInput",void 0);_.p([_.RA("click"),_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Qk.prototype,"stopPropagation_",null);_.p([_.W4("showInput"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],Qk.prototype,"showInputChanged",null);_.p([_.Td()],Qk);var Fxo=[Qk.prototype];var x4=function(){var N=_.kq.apply(this,arguments)||this;N.timeoutJobId=0;N.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return N};
_.F(x4,_.kq);x4.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
x4.prototype.startTimeout=function(){var N=this,b=this.data&&this.data.displayDurationSeconds;b&&!this.timeoutJobId&&(this.timeoutJobId=_.XC(_.Dj,function(){_.St(N.hostElement,"yt-close-popup-action",[N.is]);N.timeoutJobId=0},b*1E3))};
x4.prototype.cancelTimeout=function(){_.Dj.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
x4.prototype.ytdHatsSurveyBehaviorDataChanged=x4.prototype.ytdHatsSurveyBehaviorDataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],x4.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.p([_.Td()],x4);var BgE=[_.pG.YtActionHandlerBehavior,x4.prototype];var lP6=_.OW(115994),Lx_=_.OW(115993),fPw=function(N,b,S){var P=this;var H=S.dragDownAction;this.layer=0;this.JSC$20289_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$20289_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var K=_.dG();_.pc(K,lP6,this.layer);_.pc(K,Lx_,this.layer);this.dragDownAction=function(){H();_.A8(K,{visualElement:P.fullscreen?lP6:Lx_})};
this.gesture=new gN(N,b,this.getConfig(!1),"pandown");this.attach()};
fPw.prototype.attach=function(){this.gesture.attach()};
fPw.prototype.detach=function(){this.gesture.detach()};
fPw.prototype.update=function(N){this.fullscreen=N;var b=this.gesture;N=this.getConfig(N);b.config=N};
fPw.prototype.getConfig=function(N){return N?this.JSC$20289_watchFullScreenConfig:this.JSC$20289_watchConfig};var uSq;var ox=function(){return _.z.apply(this,arguments)||this};
_.F(ox,_.z);ox.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ox.prototype,"rendererBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],ox.prototype,"dismissibleItemBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ox.prototype,"rendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ox.prototype,"data",void 0);_.p([_.Uj({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],ox);
_.X(ox,"ytd-comment-history-entry-renderer",function(){if(uSq!==void 0)return uSq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return uSq=N},{mode:1});var QG5;_.lo("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var ih=function(){var N=_.z.apply(this,arguments)||this;N.role="link";N.tabindex="0";N.actionMap=_.T("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return N};
_.F(ih,_.z);_.v=ih.prototype;_.v.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.As()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.v.getCurrentTheme=function(){return _.X6()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.As()};
_.v.onThemeSelected=function(N,b){var S=N||b?N:_.zB(),P=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.caa(_.Bq(window.location.href));_.nA(0,165,N);_.nA(0,174,b);this.prefs.save();P&&_.St(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.onTap=function(){this.data.serviceEndpoint&&_.HN(this.hostElement,[this.data.serviceEndpoint])};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
ih.prototype.onTap=ih.prototype.onTap;ih.prototype.dataChanged=ih.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ih.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.WS),_.y("design:type",Object)],ih.prototype,"paperItemBehaviors",void 0);_.p([_.U(),_.y("design:type",Object)],ih.prototype,"data",void 0);_.p([_.U({value:function(){return _.WN()}}),
_.y("design:type",_.mK)],ih.prototype,"prefs",void 0);_.p([_.U(),_.y("design:type",Object)],ih.prototype,"label",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ih.prototype,"role",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ih.prototype,"tabindex",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ih.prototype,"dataChanged",null);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ih.prototype,"onTap",null);_.p([_.Uj({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],ih);
_.H7()(ih,"ytd-toggle-theme-compact-link-renderer",function(){if(QG5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);QG5=N}N=QG5;return N},{allowedProps:["data"],
mode:1});var xoJ;_.lo("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.lo("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var JK=function(){return _.z.apply(this,arguments)||this};
_.F(JK,_.z);_.v=JK.prototype;_.v.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onKeyUp=function(N){if(N.keyCode===13)this.onTap()};
_.v.onTap=function(){this.data.recordClickEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var N=this.data.navigationEndpoint;N&&_.t(N,_.Kc)&&_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})};
_.v.readChanged=function(){var N;_.K3(this.hostElement,"unread",!((N=this.data)==null?0:N.read))};
_.v.dataChanged=function(){this.data&&_.K3(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.v.computeThumbnailSize=function(){var N;return((N=this.data)==null?0:N.highPriorityNotification)?32:48};
_.v.getEndpointURL=function(N){return N&&!_.t(N,_.Kc)?this.componentBehavior.computeHref_(N):null};
_.v.getEndpointData=function(N){return N&&!_.t(N,_.Kc)?N:null};
JK.prototype.computeThumbnailSize=JK.prototype.computeThumbnailSize;JK.prototype.dataChanged=JK.prototype.dataChanged;JK.prototype.readChanged=JK.prototype.readChanged;JK.prototype.onKeyUp=JK.prototype.onKeyUp;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],JK.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JK.prototype,"data",void 0);_.p([_.U({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.y("design:type",Number)],JK.prototype,"thumbnailSize",void 0);_.p([_.RA("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],JK.prototype,"onKeyUp",null);
_.p([_.W4("data.read"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JK.prototype,"readChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JK.prototype,"dataChanged",null);_.p([_.W4("data.highPriorityNotification"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JK.prototype,"computeThumbnailSize",null);
_.p([_.Uj({is:"ytd-notification-renderer",disableElementRegistration:!0})],JK);
_.X(JK,"ytd-notification-renderer",function(){if(xoJ!==void 0)return xoJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xoJ=N},{mode:1});var okQ;var UT=function(){return _.z.apply(this,arguments)||this};
_.F(UT,_.z);UT.prototype.configureRendererStamper=function(){return{"data.collection":{id:"dropdown",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer"}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
UT.prototype.computeActionButtonClass=function(N){return!N.actionButtons||N.actionButtons.length<=1?"single-button":N.description?"vertical-buttons":"horizontal-buttons"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UT.prototype,"data",void 0);_.p([_.Uj({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],UT);
_.X(UT,"ytd-playlist-show-metadata-renderer",function(){if(okQ!==void 0)return okQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return okQ=N},{mode:1});var ie_;_.lo("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Z0=function(){return _.z.apply(this,arguments)||this};
_.F(Z0,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Z0.prototype,"data",void 0);_.p([_.Uj({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Z0);
_.X(Z0,"ytd-purchase-item-renderer",function(){if(ie_!==void 0)return ie_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ie_=N},{mode:1});var JLa;var Uo_={};Uo_.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(N){if(N)return N.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(N){if(N==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.lo("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ju=function(){return _.z.apply(this,arguments)||this};
_.F(ju,_.z);ju.prototype.onYtNavigate=function(N){var b=this.openPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);b&&(N.stopPropagation(),this.openPopupBehavior.openPopup(b))};
ju.prototype.onYtNavigate=ju.prototype.onYtNavigate;_.p([_.L(Uo_.YtSimpleTextSectionBehavior),_.y("design:type",Object)],ju.prototype,"ytSimpleTextSectionBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],ju.prototype,"openPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ju.prototype,"data",void 0);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ju.prototype,"onYtNavigate",null);_.p([_.Uj({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ju);
_.X(ju,"ytd-simple-text-section-renderer",function(){if(JLa!==void 0)return JLa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JLa=N},{mode:1});var Zea;_.lo("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var jG5=function(){return _.z.apply(this,arguments)||this};
_.F(jG5,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jG5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jG5.prototype,"data",void 0);_.p([_.Uj({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],jG5);
_.X(jG5,"ytd-unlimited-page-feature-info-renderer",function(){if(Zea!==void 0)return Zea;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Zea=N},{mode:1});var z1q;var AL6;var zA=function(){return _.z.apply(this,arguments)||this};
_.F(zA,_.z);zA.prototype.dataChanged=function(){if(this.data){var N=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);N&&(N=_.wG(N,screen.width),this.hostElement.style.backgroundImage="url("+N+")")}};
zA.prototype.dataChanged=zA.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zA.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zA.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],zA);
_.X(zA,"ytd-post-redemption-section-renderer",function(){if(AL6!==void 0)return AL6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return AL6=N},{mode:1});var Xxq;var AK=function(){return _.z.apply(this,arguments)||this};
_.F(AK,_.z);AK.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],AK.prototype,"data",void 0);_.p([_.Uj({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],AK);
_.X(AK,"ytd-ypc-post-redemption-renderer",function(){if(Xxq!==void 0)return Xxq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Xxq=N},{mode:1});_.lo("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var XP=function(){var N=_.z.apply(this,arguments)||this;N.MIN_CODE_LENGTH=12;N.MAX_CODE_LENGTH=24;return N};
_.F(XP,_.z);_.v=XP.prototype;_.v.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.v.created=function(){this.riskService=new _.mGs;this.loadPaymentThenable=_.TzI(_.Vg("YPC_MB_URL"))};
_.v.ready=function(){var N=this;this.code.addEventListener("keypress",function(b){N.onCodeInputKeypress(b)})};
_.v.dataChanged=function(){var N=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(b){b=_.O(b);for(var S=b.next();!S.done;S=b.next())S=S.value,S.type==="attributes"&&S.attributeName==="dark"&&N.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.v.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var N=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+N+")")}};
_.v.computeRedeemButton=function(N){(N=this.get("redeemButton.buttonRenderer",N))&&(N=Object.assign({},N,{serviceEndpoint:void 0}));return N};
_.v.onRedeemButtonTap=function(N){N.stopPropagation();NXi();this.redeemCode()};
_.v.redeemCode=function(){var N=this;this.isLoading=!0;var b=this.riskService.init();_.jA([b,this.loadPaymentThenable]).then(function(){var S=N.data.redeemButton.buttonRenderer.serviceEndpoint,P=_.kvE(),H=_.N5.payments.business.integration.ClientTokenFactory.createClientToken(_.t(S,_.Kq9).countryCode,P);P={c:N.code.value.trim(),rd:window.btoa(P),ctk:H};S&&_.aN().resolve(_.Wq).resolveCommand(S,{form:Object.assign({},P,{element:N.hostElement})})},function(){N.showGenericError();
bA6("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.e_(Error("zl"))})};
_.v.onYtServiceRequestCompleted=function(N){N.stopPropagation();this.isLoading=!1;var b,S;this.errorMessage=(b=N.detail)==null?void 0:(S=b.data)==null?void 0:S.errorMessage;var P,H;this.postRedemptionRenderer=(P=N.detail)==null?void 0:(H=P.data)==null?void 0:H.renderer;var K,C;if(N=(K=N.detail)==null?void 0:(C=K.data)==null?void 0:C.redirectEndpoint)this.isLoading=!0,_.bC(this.hostElement,"yt-navigate",{endpoint:N});this.errorMessage?bA6("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
N)&&PJ("ypcRedeemFlowSucceeded")};
_.v.onYtServiceRequestError=function(N){N.stopPropagation();this.isLoading=!1;if(N=this.get("detail.error.message",N))this.errorMessage=_.gy(N);bA6("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.v.onInvokeInstrumentManagerActionCompleted=function(N){N.stopPropagation();this.redeemCode()};
_.v.onInvokeInstrumentManagerActionError=function(N){N.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",N)){case "instrumentManagerLoadError":this.showGenericError();bA6("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();bA6("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":PJ("ypcRedeemFlowCancelled")}};
_.v.onInput=function(){var N=this;_.Yq(this,"onInput",function(){var b=N.code.value.trim();N.redeemButtonDisabled=b.length<N.MIN_CODE_LENGTH||b.length>N.MAX_CODE_LENGTH},200)};
_.v.onCodeInputKeypress=function(N){N.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(NXi(),this.redeemCode())};
_.v.computeImageUrl=function(N){return N?_.wG(N.thumbnails,600):null};
_.v.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
XP.prototype.onInvokeInstrumentManagerActionError=XP.prototype.onInvokeInstrumentManagerActionError;XP.prototype.onInvokeInstrumentManagerActionCompleted=XP.prototype.onInvokeInstrumentManagerActionCompleted;XP.prototype.onYtServiceRequestError=XP.prototype.onYtServiceRequestError;XP.prototype.onYtServiceRequestCompleted=XP.prototype.onYtServiceRequestCompleted;XP.prototype.dataChanged=XP.prototype.dataChanged;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],XP.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],XP.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Boolean)],XP.prototype,"redeemButtonDisabled",void 0);
_.p([_.U(),_.y("design:type",Object)],XP.prototype,"errorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],XP.prototype,"postRedemptionRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],XP.prototype,"observer",void 0);_.p([_.dq("#code"),_.y("design:type",HTMLInputElement)],XP.prototype,"code",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],XP.prototype,"dataChanged",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XP.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XP.prototype,"onYtServiceRequestError",null);
_.p([_.RA("yt-invoke-instrument-manager-action-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XP.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.p([_.RA("yt-invoke-instrument-manager-action-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],XP.prototype,"onInvokeInstrumentManagerActionError",null);_.p([_.Uj({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],XP);
_.X(XP,"ytd-redeem-code-renderer",function(){if(z1q!==void 0)return z1q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return z1q=N},{mode:1});var Ekq;_.lo("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var ET=function(){var N=_.z.apply(this,arguments)||this;N.businessEmailDisplayState="HIDE_SECTION";return N};
_.F(ET,_.z);_.v=ET.prototype;_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.v.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zk(_.P_V),this.businessEmailDisplayState="CAPTCHA"))};
_.v.onYtServiceRequestCompleted=function(N){var b;if((b=N.detail.data)==null?0:b.businessEmail)this.businessEmail=N.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=N.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=N.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.computeEmailHref=function(N){return"mailto:"+N};
_.v.computeSafeUrl=function(N){if(N)return _.VK(N)};
_.v.onBusinessEmailCaptchaSubmit=function(){var N;(N=this.data)!=null&&N.onBusinessEmailRevealClickCommand&&(N=this.JSC$20325_captchaTextarea.value)&&(N={recaptcha_response_token:N,channel_id:this.data.channelId},_.aN().resolve(_.Wq).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},N,{element:this.hostElement})}))};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.d0.Object.defineProperties(ET.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.primaryLinks)&&!((b=this.data)==null?0:b.links)&&this.data.primaryLinks.every(function(S){return S.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.primaryLinks)&&!((b=this.data)==null?0:b.links)&&!this.shouldShowNewLinks}}});
ET.prototype.onYtServiceRequestCompleted=ET.prototype.onYtServiceRequestCompleted;ET.prototype.dataChanged=ET.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ET.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.dq("#g-recaptcha-response"),_.y("design:type",HTMLTextAreaElement)],ET.prototype,"JSC$20325_captchaTextarea",void 0);_.p([_.U(),_.y("design:type",Object)],ET.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],ET.prototype,"businessEmailDisplayState",void 0);_.p([_.U(),_.y("design:type",String)],ET.prototype,"businessEmail",void 0);_.p([_.U(),_.y("design:type",String)],ET.prototype,"businessEmailErrorMessage",void 0);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ET.prototype,"hideDetailsSection",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ET.prototype,"dataChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ET.prototype,"shouldShowNewLinks",null);_.p([_.f("data","shouldShowLinks"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ET.prototype,"shouldShowLegacyLinks",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ET.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],ET);
_.X(ET,"ytd-channel-about-metadata-renderer",function(){if(Ekq!==void 0)return Ekq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ekq=N},{mode:1});var px_;_.lo("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var pp=function(){return _.z.apply(this,arguments)||this};
_.F(pp,_.z);pp.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pp.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],pp.prototype,"lockupContainerType",void 0);_.p([_.U(),_.y("design:type",String)],pp.prototype,"thumbnailFixedWidth",void 0);
_.p([_.Uj({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],pp);
_.X(pp,"ytd-channel-featured-content-renderer",function(){if(px_!==void 0)return px_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return px_=N},{mode:1});var Y8Q;_.lo("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Y4=function(){var N=_.z.apply(this,arguments)||this;N.roundContainer=!0;N.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return N};
_.F(Y4,_.z);_.v=Y4.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.dataChanged=function(){this.imageWidth=this.imageHeight=24;var N=this.data;N.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!N.style&&N.image&&N.image.thumbnails.length&&(N=N.image.thumbnails[0],this.imageWidth=N.width||0,this.imageHeight=N.height||0)};
_.v.computeSource=function(N){return N.secondarySource?_.es(N.secondarySource):_.es(N.source)};
_.v.computeClarifyStyle=function(N){return N?N.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.v.isLargeStyle=function(N){return N==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.v.computeBackgroundStyle=function(N){return N?N.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.v.computeHasActionButton=function(N){return!!N.actionButton};
_.v.computeHasBottomSection=function(N){return!!N.ctaHasBottomSection};
_.v.computeIsSourceMissing=function(N){return N.ctaHasBottomSection===!1?!0:N&&this.computeSource(N)?!1:!0};
_.v.computeSecondaryEndpoint=function(N){return N.secondaryEndpoint||N.endpoint};
Y4.prototype.dataChanged=Y4.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Y4.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],Y4.prototype,"imageWidth",void 0);_.p([_.U(),_.y("design:type",Number)],Y4.prototype,"imageHeight",void 0);
_.p([_.U({computed:"computeSecondaryEndpoint(data)"}),_.y("design:type",Object)],Y4.prototype,"secondaryEndpoint",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.y("design:type",Boolean)],Y4.prototype,"hasActionButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.y("design:type",Boolean)],Y4.prototype,"hasBottomSection",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.y("design:type",Boolean)],Y4.prototype,"missingSource",void 0);_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",String)],Y4.prototype,"icon",void 0);_.p([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",String)],Y4.prototype,"secondaryIcon",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.y("design:type",String)],Y4.prototype,"clarifyStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.y("design:type",String)],Y4.prototype,"backgroundStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Y4.prototype,"roundContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Y4.prototype,"amsterdamEnabled",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Y4.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Y4);
_.X(Y4,"ytd-clarification-renderer",function(){if(Y8Q!==void 0)return Y8Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Y8Q=N},{mode:1});var yLo;_.lo("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var yk=function(){return _.z.apply(this,arguments)||this};
_.F(yk,_.z);_.v=yk.prototype;_.v.computeHasPrimaryIcon=function(N){return!(!N.icon&&!N.thumbnail)};
_.v.computeHasSecondary=function(N){return!(!N.secondaryIcon&&!N.secondaryNotificationText)};
_.v.computeHideSecondaryString=function(N){return!_.T("disable_hide_empty_secondary_string")&&!N.secondaryNotificationText};
_.v.computeCompactLinkStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeHasFitHeight=function(N){return N==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.v.isActiveEndpoint=function(N){return(N=this.get("commandMetadata.webCommandMetadata.url",N))?_.Bq(window.location.href)!=="/account_transfer_channel"&&_.Bq(window.location.href)!=="/gaia_link"&&_.Bq(window.location.href)!=="/channel_switcher"||N!=="/account"?_.Bq(window.location.href)===N:!0:!1};
_.v.onTap=function(){var N;((N=this.data)==null?0:N.serviceEndpoint)&&_.HN(this.hostElement,[this.data.serviceEndpoint])};
yk.prototype.onTap=yk.prototype.onTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.y("design:type",Boolean)],yk.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.y("design:type",String)],yk.prototype,"compactLinkStyle",void 0);
_.p([_.U({computed:"computeIcon_(data.icon)"}),_.y("design:type",Object)],yk.prototype,"icon",void 0);_.p([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.y("design:type",Object)],yk.prototype,"secondaryIcon",void 0);_.p([_.U({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],yk.prototype,"hasSecondary",void 0);_.p([_.U({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],yk.prototype,"hideSecondaryString",void 0);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yk.prototype,"onTap",null);_.p([_.Uj({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],yk);
_.X(yk,"ytd-compact-link-renderer",function(){if(yLo!==void 0)return yLo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yLo=N},{mode:1});var IPQ;var DoQ;var Ix=function(){var N=_.z.apply(this,arguments)||this;N.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return N};
_.F(Ix,_.z);_.v=Ix.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.v.computeIcon=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.v.computeUseContacts=function(N){return!!N.contacts&&N.contacts.length>0};
_.v.computePhoneContact=function(N){var b,S;return(b=N.contacts)==null?void 0:(S=b.find(function(P){var H;return(P==null?void 0:(H=P.icon)==null?void 0:H.iconType)==="PHONE"}))==null?void 0:S.actionText};
_.v.computeSmsContact=function(N){var b,S;return(b=N.contacts)==null?void 0:(S=b.find(function(P){var H;return(P==null?void 0:(H=P.icon)==null?void 0:H.iconType)==="SMS"}))==null?void 0:S.actionText};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ix.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ix.prototype,"amsterdamEnabled",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.y("design:type",Boolean)],Ix.prototype,"useContacts",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.y("design:type",String)],Ix.prototype,"phoneContact",void 0);_.p([_.Uj({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ix);
_.X(Ix,"ytd-single-action-emergency-support-renderer",function(){if(DoQ!==void 0)return DoQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return DoQ=N},{mode:1});_.lo("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var D0=function(){var N=_.z.apply(this,arguments)||this;N.roundedContainer=!0;N.amsterdamEnabled=_.T("enable_desktop_amsterdam_info_panels");return N};
_.F(D0,_.z);D0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],D0.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],D0.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],D0.prototype,"amsterdamEnabled",void 0);
_.p([_.Uj({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],D0);
_.X(D0,"ytd-emergency-onebox-renderer",function(){if(IPQ!==void 0)return IPQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return IPQ=N},{mode:1});var V4_;_.lo("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Vk=function(){return _.z.apply(this,arguments)||this};
_.F(Vk,_.z);Vk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Vk.prototype,"data",void 0);_.p([_.Uj({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Vk);
_.X(Vk,"ytd-exploratory-results-renderer",function(){if(V4_!==void 0)return V4_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return V4_=N},{mode:1});var gkw;_.lo("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var gs=function(){var N=_.z.apply(this,arguments)||this;N.messageData=null;return N};
_.F(gs,_.z);_.v=gs.prototype;_.v.onServiceRequestCompleted=function(N,b){N=b.actions||[];b=0;for(var S=N.length;b<S;b++){var P=N[b],H=void 0,K=void 0;if((H=_.t(P,_.Y6))==null?0:(K=H.item)==null?0:K.messageRenderer)this.messageData=_.t(P,_.Y6).item.messageRenderer}};
_.v.dataChanged=function(){var N=this.data;this.hostElement.hidden=!1;_.K3(this.hostElement,"is-channel",N&&!N.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.v.computeThumbnailWidth=function(N){return N?126:56};
_.v.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.v.onSubmitTap=function(){var N=this.data,b=this.selectedResponseIndex;N!==void 0&&b!==void 0&&(N=N.responses[b],N.responseData&&_.aN().resolve(_.Wq).resolveCommand(N.responseData,{form:{element:this.hostElement}}))};
_.v.onDismissTap=function(){this.hostElement.hidden=!0;var N=this.data;N!==void 0&&N.dismissalEndpoint&&_.aN().resolve(_.Wq).resolveCommand(N.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.updateSelectedResponseIndexFromBinding=function(N){this.selectedResponseIndex=N.detail.value};
gs.prototype.onSelectedResponseIndexChange=gs.prototype.onSelectedResponseIndexChange;gs.prototype.dataChanged=gs.prototype.dataChanged;gs.prototype.onServiceRequestCompleted=gs.prototype.onServiceRequestCompleted;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gs.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],gs.prototype,"messageData",void 0);
_.p([_.U(),_.y("design:type",Number)],gs.prototype,"selectedResponseIndex",void 0);_.p([_.dq("#submit-button"),_.y("design:type",HTMLButtonElement)],gs.prototype,"submitButton",void 0);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],gs.prototype,"onServiceRequestCompleted",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gs.prototype,"dataChanged",null);
_.p([_.W4("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gs.prototype,"onSelectedResponseIndexChange",null);_.p([_.Uj({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],gs);
_.X(gs,"ytd-feedback-elicitation-single-question-renderer",function(){if(gkw!==void 0)return gkw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gkw=N},{mode:1});var e16;var eu=function(){return _.z.apply(this,arguments)||this};
_.F(eu,_.z);eu.prototype.computeThumbnailWidth=function(N){return N?602:428};
eu.prototype.updateWideFromBinding=function(N){this.wide=N.detail.value};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eu.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],eu.prototype,"wide",void 0);_.p([_.Uj({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],eu);
_.X(eu,"ytd-newspaper-hero-video-renderer",function(){if(e16!==void 0)return e16;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return e16=N},{mode:1});var $oq;var h1L=function(){return _.z.apply(this,arguments)||this};
_.F(h1L,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],h1L.prototype,"rendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],h1L.prototype,"data",void 0);_.p([_.Uj({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],h1L);
_.X(h1L,"ytd-newspaper-mini-video-renderer",function(){if($oq!==void 0)return $oq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $oq=N},{mode:1});var q86;_.lo("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var $4=function(){return _.z.apply(this,arguments)||this};
_.F($4,_.z);$4.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$4.prototype,"data",void 0);_.p([_.Uj({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],$4);
_.X($4,"ytd-newspaper-renderer",function(){if(q86!==void 0)return q86;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return q86=N},{mode:1});var wx5;_.lo("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var hK=function(){var N=_.z.apply(this,arguments)||this;N.isSegment=!1;N.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};N.nextContinuation={continuationType:"playlistVideoListContinuation"};return N};
_.F(hK,_.z);_.v=hK.prototype;_.v.created=function(){var N=this;this.JSC$20362_ytReorderableController=new _.$lz(101,function(b){N.handleDrop(b)})};
_.v.attached=function(){_.aN();var N;(N=_.aN().resolve(_.cq(_.S4)))!=null&&(N.playlistVideoListElement=this.hostElement)};
_.v.detached=function(){var N;(N=_.aN().resolve(_.cq(_.S4)))!=null&&(N.playlistVideoListElement=void 0);N=_.aN().resolve(_.cq(_.pw));_.T("web_enable_voting_animation")&&N&&(N.parentElem=void 0,N.videos=[],N.continuationsPresent=!1,N.showRefreshPill=!1);_.g3(this.JSC$20362_ytReorderableController)};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.dataChanged=function(){var N=_.aN().resolve(_.cq(_.pw));if(_.T("web_enable_voting_animation")&&this.data&&N){var b=_.H4(this.hostElement).querySelector("#contents");b&&(N.parentElem=b);N.addVideos(this.data.contents)}_.g3(this.JSC$20362_ytReorderableController)};
_.v.onRendererstamperFinished=function(){this.canReorder&&_.h4z(this.JSC$20362_ytReorderableController,_.H4(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.v.onPlaylistReloading=function(){this.isReloading=!0};
_.v.onUpdateSetVideoId=function(N){if(N.detail&&this.data&&this.data.contents){var b=N.detail;N=this.data.contents.findIndex(function(H){var K;return((K=H.playlistVideoRenderer)==null?void 0:K.videoId)===b.videoId});
if(!(N<0)&&b.setVideoId&&(this.set("data.contents."+N+".playlistVideoRenderer.setVideoId",b.setVideoId),_.T("web_enable_voting_animation"))){var S;if(N=_.t((S=this.data.contents[N].playlistVideoRenderer)==null?void 0:S.engagementBar,_.Axp)){var P;(P=N.actions)==null||P.forEach(function(H){if(H=_.t(H,_.XGp))H.itemId=b.setVideoId})}(S=_.aN().resolve(_.cq(_.pw)))&&y1i(S,b.videoId,b.setVideoId)}}};
_.v.computeContentsClass=function(N){return N?"reloading":""};
_.v.computeIsSortable=function(N,b){return N&&b>0&&!this.isSegment&&!_.T("shorts_in_playlists_web")};
_.v.computeIsEditable=function(N){return N};
_.v.computeCanReorder=function(N){return N};
_.v.handlePlaylistRemoveVideosAction=function(N){if(this.get("playlistRemoveVideosAction.setVideoIds",N)&&this.data&&this.data.contents){N=_.t(N,_.LvO).setVideoIds;for(var b=this.data.contents.length-1;b>=0;){var S=this.data.contents[b].playlistVideoRenderer;S&&S.setVideoId&&N.includes(S.setVideoId)&&this.splice("data.contents",b,1);b--}_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var N=0;N<this.data.contents.length;N++)this.set("data.contents."+N+".playlistVideoRenderer.index",_.gy(String(N+1)))};
_.v.handleDrop=function(N){N=N.currDragItem;var b=_.Ue(N.parentNode.childNodes,N),S=this.data.contents.splice(Number(_.es(N.data.index))-1,1)[0];this.data.contents.splice(b,0,S);b=b?this.get("contents."+(b-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();N=this.buildReorderServiceEndpoint(N.data.setVideoId,b);this.ytComponentBehavior.resolveCommand(N)};
_.v.buildReorderServiceEndpoint=function(N,b){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",N),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",b),this.data.onReorderEndpoint):null};
_.v.handleUpdatePlaylistAction=function(N){var b;(N=_.t((b=_.t(N,_.fT9))==null?void 0:b.updatedRenderer,_.Qfl))&&this.canReorder!==N.canReorder&&this.set("data.canReorder",N.canReorder);N&&N.contents&&(this.set("data.contents",N.contents),this.isReloading=!1);N&&N.continuations&&this.set("data.continuations",N.continuations)};
_.v.handleAddRendererToItemSectionAction=function(N){var b,S=(b=_.t(N,Pk6))==null?void 0:b.renderer,P;S&&((P=_.t(N,Pk6))==null?void 0:P.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,S),N=_.aN().resolve(_.cq(_.pw)),_.T("web_enable_voting_animation")&&N&&(S&&(b=_.zW_(S))&&N.recommendedVideos.push({itemId:b,videoId:_.E5p(S),voteCount:_.pG_(S),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.v.isVotingEnabledOnPlaylist=function(N){if(!N)return!1;N=_.O(N);for(N=N.next();!N.done;N=N.next()){var b=void 0;return!!_.t((b=N.value.playlistVideoRenderer)==null?void 0:b.engagementBar,_.Axp)}return!1};
_.v.onAppendContinuationItemsActionFinished=function(){var N;this.isVotingEnabledOnPlaylist((N=this.data)==null?void 0:N.contents)&&(this.updateIndices(),N=_.aN().resolve(_.cq(_.pw)),_.T("web_enable_voting_animation")&&N&&this.data&&N.addVideos(this.data.contents))};
_.v.updateVideoData=function(N){if(N.detail&&this.data&&this.data.contents){var b=N.detail;N=b.toIdx;var S=b.itemId,P=b.newVoteCount,H=b.voteStatus;b=b.hideItem;var K,C,G=(K=this.data)==null?void 0:(C=K.contents)==null?void 0:C.findIndex(function(d){return _.zW_(d)===S});
if(!(G<0)){K=this.data.contents[G];var a;if((a=K.playlistVideoRenderer)==null?0:a.voteCount)K.playlistVideoRenderer.voteCount=P;var R;if(a=_.t((R=K.playlistVideoRenderer)==null?void 0:R.engagementBar,_.Axp)){var n;(n=a.actions)==null||n.forEach(function(d){(d=_.t(d,_.XGp))&&d.initialState&&(d.initialState.votes=P,d.initialState.status=H)})}this.data.contents.splice(G,1);
b||this.data.contents.splice(N,0,K);this.updateIndices()}}};
hK.prototype.updateVideoData=hK.prototype.updateVideoData;hK.prototype.onAppendContinuationItemsActionFinished=hK.prototype.onAppendContinuationItemsActionFinished;hK.prototype.onUpdateSetVideoId=hK.prototype.onUpdateSetVideoId;hK.prototype.onPlaylistReloading=hK.prototype.onPlaylistReloading;hK.prototype.onRendererstamperFinished=hK.prototype.onRendererstamperFinished;hK.prototype.dataChanged=hK.prototype.dataChanged;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],hK.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],hK.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.L(_.F3),_.y("design:type",Object)],hK.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hK.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hK.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],hK.prototype,"isReloading",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],hK.prototype,"isSegment",void 0);
_.p([_.U({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.y("design:type",Boolean)],hK.prototype,"isSortable",void 0);_.p([_.U({computed:"computeIsEditable(data.isEditable)"}),_.y("design:type",Boolean)],hK.prototype,"isEditable",void 0);_.p([_.U({computed:"computeCanReorder(data.canReorder)"}),_.y("design:type",Boolean)],hK.prototype,"canReorder",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hK.prototype,"dataChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hK.prototype,"onRendererstamperFinished",null);_.p([_.RA("yt-playlist-reloading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hK.prototype,"onPlaylistReloading",null);
_.p([_.RA("yt-update-set-video-id"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hK.prototype,"onUpdateSetVideoId",null);_.p([_.RA("yt-append-continuation-items-action-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hK.prototype,"onAppendContinuationItemsActionFinished",null);
_.p([_.RA("yt-update-video-data-voting-animation"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],hK.prototype,"updateVideoData",null);_.p([_.Uj({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],hK);
_.X(hK,"ytd-playlist-video-list-renderer",function(){if(wx5!==void 0)return wx5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wx5=N},{mode:_.sZ("kevlar_poly_si_batch_j047")?1:2});var NBi;var qK=function(){return _.z.apply(this,arguments)||this};
_.F(qK,_.z);qK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}},"data.exploreButton":{id:"explore-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0},noInjection:!0}}},"data.offerButtons":{id:"offer-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qK.prototype.onTextWrapperTap=function(N){var b=this.data&&this.data.navigationEndpoint;b&&!_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.bC(this.hostElement,"yt-navigate",{endpoint:b})};
qK.prototype.dataChanged=function(){var N=this.get("data.offerButton.buttonRenderer.serviceEndpoint");N&&N.commandMetadata&&_.t(N.commandMetadata,_.eD)&&_.t(N.commandMetadata,_.eD).fireAutomatically&&_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})};
qK.prototype.dataChanged=qK.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.kJ),_.y("design:type",Object)],qK.prototype,"ytdLockupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],qK.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],qK.prototype,"biggerThumbsStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],qK.prototype,"leftAligned",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qK.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-movie-renderer"})],qK);
_.X(qK,"ytd-movie-renderer",function(){if(NBi!==void 0)return NBi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return NBi=N},{mode:1});var bJt;var ws=function(){var N=_.z.apply(this,arguments)||this;N.rounded=!0;N.pageAttachedTo=void 0;N.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return N};
_.F(ws,_.z);ws.prototype.attached=function(){this.pageAttachedTo=_.aN().resolve(_.$9).getCurrentPage();_.bC(this.hostElement,"yt-player-attached",this.player)};
ws.prototype.detached=function(){var N;if((N=this.pageAttachedTo)==null?0:N.hostElement)_.bC(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
ws.prototype.dataChanged=function(){var N;if((N=this.data)==null?0:N.videoId)N={video_id:this.data.videoId,autoplay:!0},!_.T("miniplayer_stop_channel_video_autoplay_killswitch")&&_.aN().resolve(_.E_).isMiniplayerActive()&&(N.pause_at_start=!0,N.autoplay=!1),this.player.loadVideoWithPlayerVars(N)};
ws.prototype.handleSignalActionPausePlayer=function(){_.w5().pause()};
ws.prototype.dataChanged=ws.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],ws.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ws.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ws.prototype,"rounded",void 0);_.p([_.dq("#player"),_.y("design:type",Object)],ws.prototype,"player",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ws.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],ws);
_.X(ws,"ytd-channel-video-player-renderer",function(){if(bJt!==void 0)return bJt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bJt=N},{mode:1});var Sft;var Pew;var HJ5;var NA=function(){var N=_.z.apply(this,arguments)||this;N.playing=!1;N.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.gI(N);N.active=!1;return N};
_.F(NA,_.z);_.v=NA.prototype;_.v.detached=function(){this.stop()};
_.v.play=function(){var N=this,b,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return N.active=!0,b=N.get("data.inlinePlaybackEndpoint.watchEndpoint"),S=b.videoId||N.data.videoId,P=b.startTimeSeconds||0,H=b.playerParams||null,_.T("kevlar_player_update_killswitch")?C.yield(N.playerEl.update({args:{video_id:S,startSeconds:P,player_params:H}}),2):(N.playerEl.loadVideoWithPlayerVars({video_id:S,startSeconds:P,player_params:H,autoplay:!0}),C.jumpTo(2));if(C.nextAddress!=4)return C.yield(N.playerEl.getPlayerPromise(),
4);K=C.yieldResult;K.unloadModule("annotations_module");K.addEventListener("onStateChange",function(G){N.onPlayerStateChange(G)});
_.Zd(C)})};
_.v.onPlayerStateChange=function(N){if(this.active)switch(this.playing=N===1,N){case 1:_.bC(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.bC(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.v.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.v.resize=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.playerEl.getPlayerPromise(),2);b=S.yieldResult;b.setSize(NaN,NaN);_.Zd(S)})};
_.p([_.U(),_.y("design:type",Object)],NA.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NA.prototype,"playing",void 0);_.p([_.U(),_.y("design:type",Object)],NA.prototype,"playerId",void 0);_.p([_.dq("#player"),_.y("design:type",Object)],NA.prototype,"playerEl",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],NA);
_.X(NA,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(HJ5!==void 0)return HJ5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return HJ5=N},{mode:1});var sPQ;var K$t;var bX=function(){var N=_.z.apply(this,arguments)||this;N.width=0;return N};
_.F(bX,_.z);_.v=bX.prototype;_.v.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.aA(this,this.onEnded));this.mp4El.addEventListener("error",_.aA(this,this.onError))};
_.v.detached=function(){this.videoEl.removeEventListener("ended",_.aA(this,this.onEnded));this.mp4El.removeEventListener("error",_.aA(this,this.onError))};
_.v.play=function(){var N=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){N.handleVideoStartPlaying()}).catch(function(){_.bC(N.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.bC(this.hostElement,"yt-video-thumbnail-not-playing")};
_.v.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.v.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.v.dataChanged=function(){var N;if((N=this.data)==null?0:N.thumbnailPlaceholder)N=_.wG(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+N+")";this.stop();this.autoplay&&this.play()};
_.v.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.v.onEnded=function(){this.stop();_.bC(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.v.onError=function(){_.bC(this.hostElement,"yt-video-thumbnail-error")};
_.v.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.v.getVideoThumbnail=function(N){if(N&&N.length)return N[0]};
bX.prototype.dataChanged=bX.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],bX.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],bX.prototype,"animatePlaceholderOnEntrance",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],bX.prototype,"autoplay",void 0);_.p([_.U({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.y("design:type",Object)],bX.prototype,"videoThumbnail",void 0);
_.p([_.U(),_.y("design:type",Boolean)],bX.prototype,"loop",void 0);_.p([_.U(),_.y("design:type",Boolean)],bX.prototype,"isVideoPlaying",void 0);_.p([_.U(),_.y("design:type",Object)],bX.prototype,"width",void 0);_.p([_.dq("#mp4"),_.y("design:type",HTMLElement)],bX.prototype,"mp4El",void 0);_.p([_.dq("#placeholder"),_.y("design:type",HTMLElement)],bX.prototype,"placeholderEl",void 0);_.p([_.dq("#video"),_.y("design:type",HTMLVideoElement)],bX.prototype,"videoEl",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bX.prototype,"dataChanged",null);_.p([_.J_({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],bX);
_.X(bX,"yt-video-as-thumbnail-details",function(){if(K$t===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;sPQ===void 0&&(sPQ=document.createElement("template"));var P=sPQ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);K$t=N}N=K$t;return N},{mode:2});var SK=function(){var N=_.z.apply(this,arguments)||this;N.disableGridStateAware=!1;N.animationEnabled=_.T("enable_web_ketchup_hero_animation");N.transitioningOut=!1;N.narrow=!1;N.narrower=!1;N.isCarouselInFeed=!1;N.videoTimeoutJobId=0;N.panelTimeoutJobId=0;N.panelTimeoutJobStartMs=0;N.actionMap={"yt-window-resized":"onWindowResized"};return N};
_.F(SK,_.z);_.v=SK.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.v.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var N;this.player&&((N=this.data)==null?0:N.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.v.attached=function(){this.onWindowResized()};
_.v.detached=function(){this.clearTimeouts()};
_.v.onWindowResized=function(){this.updateSize()};
_.v.computePanelLayout=function(N){return N&&N.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.playVideo=function(){var N;this.video&&((N=this.data)==null?0:N.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()};
_.v.stopVideo=function(){var N;this.video&&((N=this.data)==null?0:N.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()};
_.v.transitionOut=function(){var N=this;this.transitioningOut=!0;return new Promise(function(b){N.player&&(N.player.playing=!1);var S=_.H4(N.hostElement).querySelector("#action-button");if(S){var P=function(){S.removeEventListener("animationend",P);_.Dj.cancelJob(H);b();N.transitioningOut=!1};
var H=_.XC(_.Dj,P,1E3);S.addEventListener("animationend",P)}else b(),N.transitioningOut=!1})};
_.v.computeMetadataOrder=function(N){return N&&N.metadataOrder&&N.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?N.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.v.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.v.computeAvatarSize=function(N){return N&&N.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.v.onContentClick=function(N){if(!_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.navigationEndpoint)}}};
_.v.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.v.setBackgroundImage=function(N){if(N=this.getBackgroundImageUrl(N))_.H4(this.hostElement).querySelector("#hero").style.backgroundImage="url("+N+")"};
_.v.setScrimLayer=function(N){var b=this.getScrimLayerColorStops(N);N=((N==null?void 0:N.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(N=180);_.Vg("HTML_DIR")==="rtl"&&(N=-N);b&&(_.H4(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+N+"deg, "+b+")")};
_.v.isNarrower=function(){return this.hostElement.clientWidth<SK.NARROW_VERSION_SIZE};
_.v.getScrimLayerColorStops=function(){var N,b=(N=this.data)==null?void 0:N.scrimColorValues;if(!b)return null;if(b.length===1)return N=_.o3(b[0]),N+" 0%, "+N+" 100%";if(b.length===3){var S=[0,72,98];return b.map(function(P,H){return _.o3(P)+" "+S[H]+"%"}).join(",")}return null};
_.v.getBackgroundImageUrl=function(N){return N&&N.largeFormFactorBackgroundThumbnail?_.wG((N.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||N.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.v.onPlaying=function(){this.startVideoTimeout()};
_.v.onEnded=function(){this.rotate()};
_.v.startPanelTimeout=function(){var N=this;if(!this.panelTimeoutJobId){var b=this.get("data.minPanelDisplayDurationMs");b&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.XC(_.Dj,function(){N.rotate()},b))}};
_.v.startVideoTimeout=function(){var N=this;if(!this.videoTimeoutJobId){_.Dj.cancelJob(this.panelTimeoutJobId);var b=Date.now()-this.panelTimeoutJobStartMs;b=Math.max(0,this.get("data.minPanelDisplayDurationMs")-b);b=Math.max(this.get("data.minVideoPlayDurationMs")||0,b);this.videoTimeoutJobId=_.XC(_.Dj,function(){N.rotate()},b)}};
_.v.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Dj.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Dj.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.v.rotate=function(){this.clearTimeouts();_.bC(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.d0.Object.defineProperties(SK.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.H4(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.H4(this.hostElement).querySelector("#video")}}});
_.d0.Object.defineProperties(SK,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
SK.prototype.onEnded=SK.prototype.onEnded;SK.prototype.onPlaying=SK.prototype.onPlaying;SK.prototype.dataChanged=SK.prototype.dataChanged;_.p([_.L(_.Rn),_.y("design:type",Object)],SK.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],SK.prototype,"componentBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],SK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.L(_.DS_),_.y("design:type",Object)],SK.prototype,"ytBooleanLogicBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],SK.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"disableGridStateAware",void 0);_.p([_.U(),_.y("design:type",Object)],SK.prototype,"data",void 0);_.p([_.U({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.y("design:type",String)],SK.prototype,"panelLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"animationEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"transitioningOut",void 0);
_.p([_.U({computed:"computeMetadataOrder(data)"}),_.y("design:type",Boolean)],SK.prototype,"metadataOrder",void 0);_.p([_.U({computed:"computeByline(data)"}),_.y("design:type",Object)],SK.prototype,"byline",void 0);_.p([_.U({computed:"computeAvatarSize(data)"}),_.y("design:type",Number)],SK.prototype,"avatarSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"narrow",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"narrower",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"layoutStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SK.prototype,"isCarouselInFeed",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SK.prototype,"dataChanged",null);_.p([_.RA("yt-default-promo-panel-renderer-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SK.prototype,"onPlaying",null);
_.p([_.RA("yt-default-promo-panel-renderer-ended"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SK.prototype,"onEnded",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],SK);
_.X(SK,"ytd-default-promo-panel-renderer",function(){if(Pew!==void 0)return Pew;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Pew=N},{mode:1});_.lo("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var PE=function(){var N=_.z.apply(this,arguments)||this;N.narrower=!1;N.dotMenuVisible=!1;N.paginationThumbnailsVisible=!1;N.active=!0;N.disableGridStateAware=!1;N.actionMap={"yt-window-resized":"onWindowResized"};return N};
_.F(PE,_.z);_.v=PE.prototype;_.v.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.aA(this,this.onPageTypeChange));this.currentPageSubtype=_.Cue(location.pathname);this.onWindowResized()};
_.v.detached=function(){this.jobId&&_.Dj.cancelJob(this.jobId);this.updateSizeJobId&&_.Dj.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.aA(this,this.onPageTypeChange))};
_.v.onPageTypeChange=function(N){this.active=N.detail.newPageSubtype===this.currentPageSubtype};
_.v.onWindowResized=function(){this.updateSize()};
_.v.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.v.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.v.setCarouselItem=function(N){N>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Dj.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=N%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()};
_.v.scrollThumbnails=function(N){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var S=_.H4(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?S.style.transform="translateX(0)":(b=b.offsetWidth+8,S.style.transform="translateX(-"+b*(N-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}};
_.v.onDataChanged=function(){var N=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.ml(_.Dj,function(){var b;(b=N.getCurrentPanelElement())==null||b.updateSize();N.updateSize()}))};
_.v.getCurrentPanelElement=function(){return _.H4(_.H4(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.v.getCurrentPaginationElement=function(){return _.H4(_.H4(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.v.getNavigationClass=function(N,b){return N===b?"selected":""};
_.v.getNavigationDurationStyle=function(N){return"animation-duration:"+(this.get("data.carouselItems."+N+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.v.onNavigationTap=function(N){var b=this,S=N.model.index;S!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(S)}),this.autorotateActive=!1)};
_.v.onVideoThumbnailEnded=function(){var N=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");N.setNextCarouselItem()}))}};
_.v.onVideoThumbnailError=function(){this.startRotationJob()};
_.v.onVideoNotPlaying=function(){this.startRotationJob()};
_.v.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.v.startRotationJob=function(){var N=this;_.Dj.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Dj.addLowPriorityJob(function(){N.getCurrentPanelElement().transitionOut().then(function(){N.setNextCarouselItem()})},this.rotationTimeout))};
_.v.computeDotMenuVisible=function(N,b){return!!N&&!!N.carouselItems&&N.carouselItems.length>1&&!N.paginationThumbnails||!!b};
_.v.computePaginationThumbnailsVisible=function(N,b){var S,P;return((P=N==null?void 0:(S=N.paginationThumbnails)==null?void 0:S.length)!=null?P:0)>1&&!b};
_.v.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.computePaginatorAlignment=function(N){return(N==null?void 0:N.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.v.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.v.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.v.isNarrower=function(N){return(N!=null?N:0)<SK.NARROW_VERSION_SIZE};
PE.prototype.activeChanged=PE.prototype.activeChanged;PE.prototype.onVideoNotPlaying=PE.prototype.onVideoNotPlaying;PE.prototype.onVideoThumbnailError=PE.prototype.onVideoThumbnailError;PE.prototype.onVideoThumbnailEnded=PE.prototype.onVideoThumbnailEnded;PE.prototype.onDataChanged=PE.prototype.onDataChanged;_.p([_.L(_.Rn),_.y("design:type",Object)],PE.prototype,"ytdGridStateAwareBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],PE.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],PE.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],PE.prototype,"currentItem",void 0);
_.p([_.U(),_.y("design:type",Number)],PE.prototype,"currentItemIndex",void 0);_.p([_.U(),_.y("design:type",Number)],PE.prototype,"rotationTimeout",void 0);_.p([_.U(),_.y("design:type",Number)],PE.prototype,"loopCount",void 0);_.p([_.U({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.y("design:type",String)],PE.prototype,"paginatorAlignment",void 0);_.p([_.U(),_.y("design:type",Number)],PE.prototype,"jobId",void 0);
_.p([_.U(),_.y("design:type",Number)],PE.prototype,"updateSizeJobId",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],PE.prototype,"isCarouselInFeed",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PE.prototype,"narrower",void 0);_.p([_.U({computed:"computeDotMenuVisible(data, narrower)"}),_.y("design:type",Object)],PE.prototype,"dotMenuVisible",void 0);
_.p([_.U({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.y("design:type",Object)],PE.prototype,"paginationThumbnailsVisible",void 0);_.p([_.U({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.y("design:type",String)],PE.prototype,"layoutType",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],PE.prototype,"autorotateActive",void 0);_.p([_.U(),_.y("design:type",Object)],PE.prototype,"active",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PE.prototype,"disableGridStateAware",void 0);_.p([_.dq("#overlay"),_.y("design:type",HTMLElement)],PE.prototype,"overlay",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PE.prototype,"onDataChanged",null);
_.p([_.RA("yt-video-thumbnail-ended"),_.RA("yt-default-promo-panel-renderer-rotate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PE.prototype,"onVideoThumbnailEnded",null);_.p([_.RA("yt-video-thumbnail-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PE.prototype,"onVideoThumbnailError",null);
_.p([_.RA("yt-video-thumbnail-not-playing"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PE.prototype,"onVideoNotPlaying",null);_.p([_.t_("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PE.prototype,"activeChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],PE);
_.X(PE,"ytd-carousel-item-renderer",function(){if(Sft!==void 0)return Sft;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Sft=N},{mode:2});var vLJ;var OJQ;var Cen;var G0t;var HE=function(){var N=_.z.apply(this,arguments)||this;N.originalQuery=null;N.originalEndpoint=null;return N};
_.F(HE,_.z);HE.prototype.computeShowOriginalQueryWithoutEndpoint_=function(N,b){return!(!N||b)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],HE.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HE.prototype,"correctedText",void 0);_.p([_.U(),_.y("design:type",Object)],HE.prototype,"correctedQuery",void 0);_.p([_.U(),_.y("design:type",Object)],HE.prototype,"correctedEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],HE.prototype,"originalText",void 0);_.p([_.U(),_.y("design:type",Object)],HE.prototype,"originalQuery",void 0);
_.p([_.U(),_.y("design:type",Object)],HE.prototype,"originalEndpoint",void 0);_.p([_.U({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.y("design:type",Boolean)],HE.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.p([_.J_({is:"yt-search-query-correction",disableElementRegistration:!0})],HE);
_.X(HE,"yt-search-query-correction",function(){if(G0t===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Cen===void 0&&(Cen=document.createElement("template"));var P=Cen;S.call(b,P.content.cloneNode(!0),N.content.firstChild);G0t=N}N=G0t;return N},{mode:2});_.lo("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var rEJ=function(){return _.z.apply(this,arguments)||this};
_.F(rEJ,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rEJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rEJ.prototype,"data",void 0);_.p([_.J_({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],rEJ);
_.X(rEJ,"yt-did-you-mean-renderer",function(){if(OJQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vLJ===void 0&&(vLJ=document.createElement("template"));var P=vLJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);OJQ=N}N=OJQ;return N},{mode:2});var cEE;var aEa;_.lo("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Rk5=function(){return _.z.apply(this,arguments)||this};
_.F(Rk5,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rk5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rk5.prototype,"data",void 0);_.p([_.J_({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Rk5);
_.X(Rk5,"yt-including-results-for-renderer",function(){if(aEa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;cEE===void 0&&(cEE=document.createElement("template"));var P=cEE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);aEa=N}N=aEa;return N},{mode:2});var W$t;var nLO;_.lo("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var s3=function(){return _.z.apply(this,arguments)||this};
_.F(s3,_.z);s3.prototype.computeExtraClasses_=function(N,b){var S="";N&&(S+=" "+N.toLowerCase().replace(/_/g,"-"));b&&(S+=" "+b.toLowerCase().replace(/_/g,"-"));return S};
s3.prototype.computeUrlImg_=function(){var N=this.data;N.image&&(_.H4(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.wG(N.image.thumbnails,Number.MAX_VALUE)+")")};
s3.prototype.computeUrlImg_=s3.prototype.computeUrlImg_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],s3.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],s3.prototype,"computeUrlImg_",null);_.p([_.J_({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],s3);
_.X(s3,"yt-music-pass-feature-info-renderer",function(){if(nLO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;W$t===void 0&&(W$t=document.createElement("template"));var P=W$t;S.call(b,P.content.cloneNode(!0),N.content.firstChild);nLO=N}N=nLO;return N},{mode:2});var daq;var man;_.lo("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var k0t=function(){return _.z.apply(this,arguments)||this};
_.F(k0t,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k0t.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k0t.prototype,"data",void 0);_.p([_.J_({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],k0t);
_.X(k0t,"yt-no-results-found-showing-results-for-renderer",function(){if(man===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;daq===void 0&&(daq=document.createElement("template"));var P=daq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);man=N}N=man;return N},{mode:2});var TBL;var tQO;_.lo("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var MQa=function(){return _.z.apply(this,arguments)||this};
_.F(MQa,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MQa.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MQa.prototype,"data",void 0);_.p([_.J_({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],MQa);
_.X(MQa,"yt-results-without-quotes-renderer",function(){if(tQO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;TBL===void 0&&(TBL=document.createElement("template"));var P=TBL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);tQO=N}N=tQO;return N},{mode:2});var F$L;var BBq;_.lo("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var lEE=function(){return _.z.apply(this,arguments)||this};
_.F(lEE,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lEE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lEE.prototype,"data",void 0);_.p([_.J_({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],lEE);
_.X(lEE,"yt-search-no-results-renderer",function(){if(BBq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;F$L===void 0&&(F$L=document.createElement("template"));var P=F$L;S.call(b,P.content.cloneNode(!0),N.content.firstChild);BBq=N}N=BBq;return N},{mode:2});var L$Q;var fEJ;_.lo("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var u9n=function(){return _.z.apply(this,arguments)||this};
_.F(u9n,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],u9n.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],u9n.prototype,"data",void 0);_.p([_.J_({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],u9n);
_.X(u9n,"yt-showing-results-for-renderer",function(){if(fEJ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;L$Q===void 0&&(L$Q=document.createElement("template"));var P=L$Q;S.call(b,P.content.cloneNode(!0),N.content.firstChild);fEJ=N}N=fEJ;return N},{mode:2});var QPJ;var xaO;var oL6;var iJ6;var Kr=function(){var N=_.z.apply(this,arguments)||this;N.answerExpanded=!1;return N};
_.F(Kr,_.z);Kr.prototype.toggleAnswer_=function(N){var b=_.gQ(N);b&&b.classList.contains("yt-simple-endpoint")||(N.preventDefault(),N.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Kr.prototype.toggleAnswer_=Kr.prototype.toggleAnswer_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Kr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Kr.prototype,"answerExpanded",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Kr.prototype,"toggleAnswer_",null);
_.p([_.J_({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Kr);
_.X(Kr,"yt-generic-faq-question-renderer",function(){if(iJ6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;oL6===void 0&&(oL6=document.createElement("template"));var P=oL6;S.call(b,P.content.cloneNode(!0),N.content.firstChild);iJ6=N}N=iJ6;return N},{mode:2});_.lo("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var vE=function(){return _.z.apply(this,arguments)||this};
_.F(vE,_.z);vE.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vE.prototype,"data",void 0);_.p([_.J_({is:"yt-faq-section-renderer",disableElementRegistration:!0})],vE);
_.X(vE,"yt-faq-section-renderer",function(){if(xaO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;QPJ===void 0&&(QPJ=document.createElement("template"));var P=QPJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);xaO=N}N=xaO;return N},{mode:2});var JEE;var Uai;_.lo("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var O3=function(){return _.z.apply(this,arguments)||this};
_.F(O3,_.z);
O3.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],O3.prototype,"data",void 0);_.p([_.J_({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],O3);
_.X(O3,"yt-offer-item-expanded-renderer",function(){if(Uai===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;JEE===void 0&&(JEE=document.createElement("template"));var P=JEE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Uai=N}N=Uai;return N},{mode:2});var ZJ_;var jP6;_.lo("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Cr=function(){return _.z.apply(this,arguments)||this};
_.F(Cr,_.z);
Cr.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Cr.prototype.computeFullWidthMode=function(N){return!(!N||!N.fullWidthMode)};
Cr.prototype.computeBorderlessMode=function(N){return!(!N||!N.borderlessMode)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Cr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.y("design:type",Boolean)],Cr.prototype,"fullWidthMode",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.y("design:type",Boolean)],Cr.prototype,"borderlessMode",void 0);_.p([_.J_({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Cr);
_.X(Cr,"yt-offer-item-renderer",function(){if(jP6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;ZJ_===void 0&&(ZJ_=document.createElement("template"));var P=ZJ_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);jP6=N}N=jP6;return N},{mode:2});var zkn;var AE_;_.lo("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Gc=function(){return _.z.apply(this,arguments)||this};
_.F(Gc,_.z);Gc.prototype.computeAriaLevel_=function(N){return this.getLevelID_(N)};
Gc.prototype.getLevelID_=function(N){return(N=N.match(/[0-9]+$/))&&N.length==1?N[0]:"1"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Gc.prototype,"data",void 0);_.p([_.U({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.y("design:type",String)],Gc.prototype,"ariaLevel",void 0);_.p([_.U({value:"heading",reflectToAttribute:!0}),_.y("design:type",String)],Gc.prototype,"role",void 0);
_.p([_.U({value:-1,reflectToAttribute:!0}),_.y("design:type",Number)],Gc.prototype,"tabindex",void 0);_.p([_.J_({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Gc);
_.X(Gc,"yt-subscription-product-header-renderer",function(){if(AE_===void 0){var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;zkn===void 0&&(zkn=document.createElement("template"));var P=zkn;S.call(b,P.content.cloneNode(!0),N.content.firstChild);AE_=N}N=AE_;return N},{mode:2});var XaJ;var ELi;_.lo("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var rW=function(){return _.z.apply(this,arguments)||this};
_.F(rW,_.z);rW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.LU("menuRenderer"),events:!0}}};
rW.prototype.onStampFinished_=function(){_.H4(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
rW.prototype.onStampFinished_=rW.prototype.onStampFinished_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rW.prototype,"data",void 0);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rW.prototype,"onStampFinished_",null);
_.p([_.J_({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],rW);
_.X(rW,"yt-subscription-product-renderer",function(){if(ELi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;XaJ===void 0&&(XaJ=document.createElement("template"));var P=XaJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ELi=N}N=ELi;return N},{mode:2});var paw;var YfO;_.lo("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var cE=function(){return _.z.apply(this,arguments)||this};
_.F(cE,_.z);cE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cE.prototype.imageScrimColorValuesChanged_=function(){var N,b=(N=this.data)==null?void 0:N.imageScrimColorValues;_.H4(this.hostElement).querySelector("#scrim").style.backgroundColor=b?_.o3(b[0]):"transparent"};
cE.prototype.imageScrimColorValuesChanged_=cE.prototype.imageScrimColorValuesChanged_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cE.prototype,"data",void 0);
_.p([_.W4("data.imageScrimColorValues"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cE.prototype,"imageScrimColorValuesChanged_",null);_.p([_.J_({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],cE);
_.X(cE,"yt-subscription-product-upsell-offer-renderer",function(){if(YfO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;paw===void 0&&(paw=document.createElement("template"));var P=paw;S.call(b,P.content.cloneNode(!0),N.content.firstChild);YfO=N}N=YfO;return N},{mode:2});var yEQ;var IEw;var DaE;var VQ5;var gL5;var ekq;var aW=function(){return _.z.apply(this,arguments)||this};
_.F(aW,_.z);aW.prototype.onYtServiceRequestError_=function(N){_.I2(this.hostElement,N.detail.error.message)};
aW.prototype.onYtServiceRequestError_=aW.prototype.onYtServiceRequestError_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aW.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],aW.prototype,"collapsible",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],aW.prototype,"isManageRed",void 0);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],aW.prototype,"onYtServiceRequestError_",null);_.p([_.J_({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],aW);
_.X(aW,"yt-single-ypc-offer-renderer",function(){if(ekq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;gL5===void 0&&(gL5=document.createElement("template"));var P=gL5;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ekq=N}N=ekq;return N},{mode:2});var RW=function(){return _.z.apply(this,arguments)||this};
_.F(RW,_.z);RW.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RW.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],RW.prototype,"isManageRed",void 0);_.p([_.J_({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],RW);
_.X(RW,"yt-single-ypc-offer-list-renderer",function(){if(VQ5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;DaE===void 0&&(DaE=document.createElement("template"));var P=DaE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);VQ5=N}N=VQ5;return N},{mode:2});var $aE;var hkQ;_.lo("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var WE=function(){return _.z.apply(this,arguments)||this};
_.F(WE,_.z);WE.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WE.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],WE.prototype,"isManageRed",void 0);_.p([_.J_({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],WE);
_.X(WE,"yt-ypc-offers-list-renderer",function(){if(hkQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;$aE===void 0&&($aE=document.createElement("template"));var P=$aE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);hkQ=N}N=hkQ;return N},{mode:2});_.lo("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var nr=function(){return _.z.apply(this,arguments)||this};
_.F(nr,_.z);
nr.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nr.prototype,"data",void 0);_.p([_.J_({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],nr);
_.X(nr,"yt-unlimited-manage-subscription-page-renderer",function(){if(IEw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;yEQ===void 0&&(yEQ=document.createElement("template"));var P=yEQ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);IEw=N}N=IEw;return N},{mode:2});var qfJ;var waJ;var dW=function(){return _.z.apply(this,arguments)||this};
_.F(dW,_.z);_.v=dW.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.v.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.onKeypress_=function(N){N.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.v.handleHeaderTap_=function(N){N.preventDefault();N.stopPropagation();this.expandOffers_()};
_.v.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.v.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
dW.prototype.dataChanged_=dW.prototype.dataChanged_;_.p([_.L(_.XX),_.y("design:type",Object)],dW.prototype,"ironA11yKeysBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dW.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],dW.prototype,"offersVisible_",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dW.prototype,"dataChanged_",null);_.p([_.J_({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],dW);
_.X(dW,"yt-collapsible-ypc-offer-renderer",function(){if(waJ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;qfJ===void 0&&(qfJ=document.createElement("template"));var P=qfJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);waJ=N}N=waJ;return N},{mode:2});var NnO;var bl5;_.lo("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var mC=function(){return _.z.apply(this,arguments)||this};
_.F(mC,_.z);_.v=mC.prototype;_.v.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.v.dataChanged_=function(){if(this.data.backgroundImage){var N=_.wG(this.data.backgroundImage.thumbnails,screen.width),b=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=b?"linear-gradient(180deg, "+b+"), url("+N+")":"url("+N+")";this.data.gtmId&&_.wt(this.data.gtmId,_.Vg("GL",""))}};
_.v.onYtServiceRequestError_=function(N){_.I2(this.hostElement,N.detail.error.message)};
_.v.getScrimLayerColorStops_=function(){var N,b,S=(N=this.data.unlimitedHeaderV2Data)==null?void 0:(b=N.unlimitedHeaderV2Data)==null?void 0:b.scrimLayerColors;if(!S)return null;var P=100/S.length;return S.map(function(H,K){K*=P;return _.o3(H)+" "+K+"%"}).join(",")};
_.v.computeLogoWithPadding=function(N){var b,S,P;return(N=(b=N.unlimitedLogoImage)==null?void 0:(S=b.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&N%31===0?!0:!1};
mC.prototype.onYtServiceRequestError_=mC.prototype.onYtServiceRequestError_;mC.prototype.dataChanged_=mC.prototype.dataChanged_;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.p([_.U({computed:"computeLogoWithPadding(data)"}),_.y("design:type",Boolean)],mC.prototype,"logoWithPadding",void 0);
_.p([_.U(),_.y("design:type",Object)],mC.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mC.prototype,"dataChanged_",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],mC.prototype,"onYtServiceRequestError_",null);_.p([_.J_({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],mC);
_.X(mC,"yt-unlimited-page-header-renderer",function(){if(bl5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;NnO===void 0&&(NnO=document.createElement("template"));var P=NnO;S.call(b,P.content.cloneNode(!0),N.content.firstChild);bl5=N}N=bl5;return N},{mode:2});var Stw;var Ppo;_.lo("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var kC=function(){return _.z.apply(this,arguments)||this};
_.F(kC,_.z);kC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kC.prototype,"data",void 0);_.p([_.J_({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],kC);
_.X(kC,"yt-unlimited-user-notification-renderer",function(){if(Ppo===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;Stw===void 0&&(Stw=document.createElement("template"));var P=Stw;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Ppo=N}N=Ppo;return N},{mode:2});var Hl6;var sIw;var Tc=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return N};
_.F(Tc,_.z);Tc.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var N=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(N=this.data.percentIfLiked||0,this.activated=!0):(N=this.data.percentIfIndifferent||0,this.activated=!1);_.H4(this.hostElement).querySelector("#like-bar").style.width=N+"%"}};
Tc.prototype.handleUpdateSentimentBarStateCommand=function(N){this.data&&this.set("data.likeStatus",_.t(N,ZWJ).likeStatus)};
Tc.prototype.observeLikeStatus=Tc.prototype.observeLikeStatus;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tc.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Tc.prototype,"activated",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Tc.prototype,"systemIcons",void 0);_.p([_.W4("data.likeStatus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Tc.prototype,"observeLikeStatus",null);_.p([_.Uj({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Tc);
_.X(Tc,"ytd-sentiment-bar-renderer",function(){if(sIw!==void 0)return sIw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sIw=N},{mode:1});var K4O;var to=function(){var N=_.z.apply(this,arguments)||this;N.small=!0;return N};
_.F(to,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],to.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],to.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],to.prototype,"small",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],to);
_.X(to,"ytd-video-view-count-renderer",function(){if(K4O!==void 0)return K4O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return K4O=N},{mode:_.sZ("kevlar_poly_si_batch_j080")?1:2});var MA=function(){var N=_.z.apply(this,arguments)||this;N.infoFormattedStrings=[];N.wrapVideoActions=_.T("kevar_watch_wrap_video_actions");N.hideSentimentBar=_.T("kevlar_watch_hide_sentiment_bar");N.actionMap={};return N};
_.F(MA,_.z);_.v=MA.prototype;_.v.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.v.dataChanged=function(){_.T("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.v.computeInfoFormattedStrings=function(N){if(!N)return[];var b=[];N.dateText&&b.push(N.dateText);N.stationName&&b.push(N.stationName);N.rating&&b.push(N.rating);N.startEndTimeTemplate&&N.startTimeUtcMillis&&N.endTimeUtcMillis&&b.push(_.gy(fpO(_.es(N.startEndTimeTemplate),Number(N.startTimeUtcMillis),Number(N.endTimeUtcMillis))));N.upNextProgramText&&b.push(N.upNextProgramText);return b};
_.v.scheduleInitialUpdatedMetadataRequest=function(){var N,b=(N=this.data)==null?void 0:N.updatedMetadataEndpoint;if(b){var S;N=Number((S=_.t(b,_.lik))==null?void 0:S.initialDelayMs);S=isNaN(N)?250:N;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),S)}};
_.v.setSentimentBarWidth=function(){var N=this;_.W_(this,function(){var b=_.H4(N.hostElement).querySelector("ytd-menu-renderer");if(b){b=b.topLevelButtons;for(var S=0,P=0;P<b.length;P++){var H=b[P],K=N.get("toggleButtonSupportedData.toggleButtonIdData.id",H.data);if(K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||K==="TOGGLE_BUTTON_ID_TYPE_LIKE")S+=H.clientWidth+8;else break}S&&(N.sentiment.style.width=S-8+" px")}})};
_.v.fetchUpdatedMetadata=function(N){var b;N&&(b={continuation:N});var S;(N=(S=this.data)==null?void 0:S.updatedMetadataEndpoint)&&_.aN().resolve(_.Wq).resolveCommand(N,{form:Object.assign({},b,{element:this.hostElement})})};
_.v.onYtServiceRequestSent=function(N,b){b.endpoint&&_.t(b.endpoint,_.Np)&&(this.hasUpdateSentimentBarStateCommands()&&!_.T("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.t(b.endpoint,_.Np).status),this.setSentimentBarWidth())};
_.v.hasUpdateSentimentBarStateCommands=function(){var N,b,S,P,H=(P=(N=this.data)==null?void 0:(b=N.videoActions)==null?void 0:(S=b.menuRenderer)==null?void 0:S.topLevelButtons)!=null?P:[];N=_.O(H);for(b=N.next();!b.done;b=N.next()){b=b.value;H=P=S=void 0;var K=(S=b.toggleButtonRenderer)==null?void 0:(P=S.toggleButtonSupportedData)==null?void 0:(H=P.toggleButtonIdData)==null?void 0:H.id;if(K==="TOGGLE_BUTTON_ID_TYPE_LIKE"||K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){P=S=void 0;b=(P=_.t((S=b.toggleButtonRenderer)==
null?void 0:S.defaultServiceEndpoint,_.vN))==null?void 0:P.commands;if(!b)break;b=_.O(b);for(S=b.next();!S.done;S=b.next())if(_.t(S.value,ZWJ))return!0}}return!1};
_.v.onYtServiceRequestCompleted=function(N,b){var S;(N=(S=b.data)==null?void 0:S.loggingDirectives)&&_.i_o(_.dG(),N);this.get("continuation.timedContinuationData",b.data)&&this.data&&this.data.updatedMetadataEndpoint&&(b=b.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,b.continuation),b.timeoutMs))};
_.v.computeHasDateText=function(N){return!!N&&!!N.dateText};
_.d0.Object.defineProperties(MA.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return!((P=(N=this.data)==null?void 0:(b=N.videoActions)==null?void 0:(S=b.menuRenderer)==null?void 0:S.flexibleItems)==null||!P.length)}}});
MA.prototype.onYtServiceRequestCompleted=MA.prototype.onYtServiceRequestCompleted;MA.prototype.onYtServiceRequestSent=MA.prototype.onYtServiceRequestSent;MA.prototype.dataChanged=MA.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Bt.YtTaskEmitterBehavior),_.y("design:type",Object)],MA.prototype,"ytTaskEmitterBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MA.prototype,"data",void 0);_.p([_.U({computed:"computeInfoFormattedStrings(data)"}),_.y("design:type",Array)],MA.prototype,"infoFormattedStrings",void 0);
_.p([_.U({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],MA.prototype,"hasDateText",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],MA.prototype,"wrapVideoActions",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],MA.prototype,"hideSentimentBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MA.prototype,"flexMenuEnabled",null);
_.p([_.dq("#sentiment"),_.y("design:type",Object)],MA.prototype,"sentiment",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],MA.prototype,"dataChanged",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],MA.prototype,"onYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],MA.prototype,"onYtServiceRequestCompleted",null);
_.X(MA,"ytd-video-primary-info-renderer",function(){if(Hl6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);Hl6=N}N=Hl6;return N},{mode:1});var vzL;var Olw;var Fq=function(){return _.z.apply(this,arguments)||this};
_.F(Fq,_.z);Fq.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Fq.prototype.onTap=function(N){var b=this.data&&this.data.endpoint;b&&!_.VC(_.V7(N),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.bC(this.hostElement,"yt-navigate",{endpoint:b})};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fq.prototype,"data",void 0);_.p([_.Uj({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Fq);
_.X(Fq,"ytd-autotagging-metadata-renderer",function(){if(Olw!==void 0)return Olw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Olw=N},{mode:1});var Cpw;var BE=function(){return _.z.apply(this,arguments)||this};
_.F(BE,_.z);BE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BE.prototype,"data",void 0);_.p([_.Uj({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],BE);
_.X(BE,"ytd-autotagging-metadata-row-renderer",function(){if(Cpw!==void 0)return Cpw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Cpw=N},{mode:1});var GKq;var rtn;var lX=function(){var N=_.z.apply(this,arguments)||this;N.engagementPanelContent=!1;return N};
_.F(lX,_.z);lX.prototype.computeHasDividerLine=function(N,b){return N&&!b};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lX.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.y("design:type",Boolean)],lX.prototype,"hasDividerLine",void 0);_.p([_.U(),_.y("design:type",Object)],lX.prototype,"engagementPanelContent",void 0);
_.p([_.Uj({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],lX);
_.X(lX,"ytd-metadata-row-header-renderer",function(){if(rtn!==void 0)return rtn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return rtn=N},{mode:1});var ct5;var Lr=function(){return _.z.apply(this,arguments)||this};
_.F(Lr,_.z);Lr.prototype.computeHasDividerLine=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Lr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],Lr.prototype,"hasDividerLine",void 0);_.p([_.Uj({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Lr);
_.X(Lr,"ytd-metadata-row-renderer",function(){if(ct5!==void 0)return ct5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ct5=N},{mode:1});var av5;var RNE=function(){return _.z.apply(this,arguments)||this};
_.F(RNE,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RNE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RNE.prototype,"data",void 0);_.p([_.Uj({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],RNE);
_.X(RNE,"ytd-metadata-with-image-row-renderer",function(){if(av5!==void 0)return av5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return av5=N},{mode:1});var W4n;var fr=function(){var N=_.z.apply(this,arguments)||this;N.rounded=!0;N.fixie=!1;N.fullWidth=!1;return N};
_.F(fr,_.z);_.v=fr.prototype;_.v.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onDataChanged=function(){var N=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(b){N.onEndpointLinkKeyPress(b)}))};
_.v.onEndpointLinkKeyPress=function(N){N.target===this.endpointLink&&N.keyCode===13&&_.bC(this.hostElement,"click")};
_.v.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var N;if((N=this.data)==null?0:N.endpoint)_.sR(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.v.onYtNavigate=function(N){this.endpointHref||(N.stopPropagation(),N.preventDefault())};
_.v.onInformationButtonContainerClick=function(N){N.target.id!=="information-button-container"&&(N.stopPropagation(),N.preventDefault())};
_.v.computeStyle=function(N){return N};
_.v.computeIsThumbnailStyle=function(N){return N==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.v.computeThumbnailWidth=function(N){switch(N){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.v.computeThumbnailObjectFit=function(N){switch(N){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.d0.Object.defineProperties(fr.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
fr.prototype.onYtNavigate=fr.prototype.onYtNavigate;fr.prototype.onClick=fr.prototype.onClick;fr.prototype.onDataChanged=fr.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],fr.prototype,"componentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],fr.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],fr.prototype,"componentStyle",void 0);_.p([_.U({computed:"computeIsThumbnailStyle(data.style)"}),_.y("design:type",Boolean)],fr.prototype,"isThumbnailStyle",void 0);_.p([_.U({computed:"computeThumbnailObjectFit(data.style)"}),_.y("design:type",String)],fr.prototype,"thumbnailObjectFit",void 0);
_.p([_.U({computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],fr.prototype,"thumbnailWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fr.prototype,"rounded",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fr.prototype,"fixie",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],fr.prototype,"fullWidth",void 0);_.p([_.dq("#endpoint-link"),_.y("design:type",HTMLAnchorElement)],fr.prototype,"endpointLink",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fr.prototype,"onDataChanged",null);_.p([_.f("data.endpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],fr.prototype,"endpointHref",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],fr.prototype,"onClick",null);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],fr.prototype,"onYtNavigate",null);_.p([_.Uj({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],fr);
_.X(fr,"ytd-rich-metadata-renderer",function(){if(W4n!==void 0)return W4n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return W4n=N},{mode:_.sZ("kevlar_poly_si_batch_j075")?1:2});var nzE;var uX=function(){var N=_.z.apply(this,arguments)||this;N.fixie=!1;N.fullWidth=!1;return N};
_.F(uX,_.z);uX.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
uX.prototype.computeHasDividerLine=function(N){return N};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uX.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.y("design:type",Boolean)],uX.prototype,"hasDividerLine",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],uX.prototype,"fixie",void 0);_.p([_.U(),_.y("design:type",Object)],uX.prototype,"fullWidth",void 0);
_.p([_.Uj({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],uX);
_.X(uX,"ytd-rich-metadata-row-renderer",function(){if(nzE!==void 0)return nzE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return nzE=N},{mode:1});var Q_=function(){var N=_.z.apply(this,arguments)||this;N.engagementPanelContent=!1;N.fixie=!1;N.fullWidth=!1;return N};
_.F(Q_,_.z);
Q_.prototype.configureRendererStamper=function(){return{alwaysShownItems:{id:"always-shown",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:"ytd-metadata-row-header-renderer",richMetadataRowRenderer:{component:"ytd-rich-metadata-row-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}},autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}},collapsibleItems:{id:"collapsible",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",
metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:{component:"ytd-metadata-row-header-renderer",properties:{engagementPanelContent:"[[engagementPanelContent]]"}},richMetadataRowRenderer:"ytd-rich-metadata-row-renderer",autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}}}};
Q_.prototype.computeCollapsibleItems=function(N,b,S){return N===void 0||b===void 0||S===void 0||S?[]:N.slice(b)};
Q_.prototype.computeAlwaysShownItems=function(N,b){return N&&N.length?N.slice(0,b):[]};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Q_.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Q_.prototype,"collapsed",void 0);
_.p([_.U({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.y("design:type",Array)],Q_.prototype,"alwaysShownItems",void 0);_.p([_.U({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.y("design:type",Array)],Q_.prototype,"collapsibleItems",void 0);_.p([_.U(),_.y("design:type",Object)],Q_.prototype,"engagementPanelContent",void 0);_.p([_.U(),_.y("design:type",Object)],Q_.prototype,"fixie",void 0);
_.p([_.U(),_.y("design:type",Object)],Q_.prototype,"fullWidth",void 0);_.p([_.Uj({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Q_);
_.X(Q_,"ytd-metadata-row-container-renderer",function(){if(GKq!==void 0)return GKq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GKq=N},{mode:1});var dQ5;var xC=function(){return _.z.apply(this,arguments)||this};
_.F(xC,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],xC.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],xC);
_.X(xC,"ytd-error-corrections-section-item-renderer",function(){if(dQ5!==void 0)return dQ5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return dQ5=N},{mode:1});var mQJ;var oW=function(){return _.z.apply(this,arguments)||this};
_.F(oW,_.z);oW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],oW.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oW.prototype,"data",void 0);_.p([_.Uj({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],oW);
_.X(oW,"ytd-error-corrections-section-renderer",function(){if(mQJ!==void 0)return mQJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return mQJ=N},{mode:1});var kKL;var iX=function(){return _.z.apply(this,arguments)||this};
_.F(iX,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],iX.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],iX.prototype,"data",void 0);_.p([_.Uj({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],iX);
_.X(iX,"ytd-topic-link-renderer",function(){if(kKL!==void 0)return kKL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return kKL=N},{mode:1});var Tn_;var Jo=function(){var N=_.z.apply(this,arguments)||this;N.modernLockupV2=_.T("modernize_structured_description_playlist_lockups_v2");return N};
_.F(Jo,_.z);Jo.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Jo.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Jo.prototype,"modernLockupV2",void 0);_.p([_.Uj({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Jo);
_.X(Jo,"ytd-video-description-course-section-renderer",function(){if(Tn_!==void 0)return Tn_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Tn_=N},{mode:1});var tYO;var U3=function(){return _.z.apply(this,arguments)||this};
_.F(U3,_.z);U3.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],U3.prototype,"data",void 0);_.p([_.Uj({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],U3);
_.X(U3,"ytd-video-description-files-section-renderer",function(){if(tYO!==void 0)return tYO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return tYO=N},{mode:1});var MYw;var Ze=function(){return _.z.apply(this,arguments)||this};
_.F(Ze,_.z);Ze.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ze.prototype,"data",void 0);_.p([_.Uj({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Ze);
_.X(Ze,"ytd-video-description-gaming-section-renderer",function(){if(MYw!==void 0)return MYw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return MYw=N},{mode:1});var F4E;var jK=function(){var N=_.z.apply(this,arguments)||this;N.isExpanded=!1;return N};
_.F(jK,_.z);jK.prototype.computeHasDefaultMetadataEndpoint=function(N){var b;N=N==null?void 0:(b=N.defaultMetadata)==null?void 0:b.runs;return!(!N||N.length!==1||!N[0].navigationEndpoint)};
jK.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.d0.Object.defineProperties(jK.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jK.prototype,"isExpanded",void 0);_.p([_.U({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],jK.prototype,"hasDefaultMetadataEndpoint",void 0);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jK.prototype,"isExpandable",null);_.p([_.f("data","isExpandable","isExpanded"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jK.prototype,"showExpandedMetadata",null);_.p([_.Uj({is:"ytd-info-row-renderer",disableElementRegistration:!0})],jK);
_.X(jK,"ytd-info-row-renderer",function(){if(F4E!==void 0)return F4E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return F4E=N},{mode:1});var BnQ;var zc=function(){var N=_.z.apply(this,arguments)||this;N.currentIndex=0;N.supportComponentResize=!0;N.JSC$20510_lastScrollContainerWidth=NaN;return N};
_.F(zc,_.z);_.v=zc.prototype;
_.v.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.v.getItemsPath=function(){return"videoLockups"};
_.v.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.v.onIronResize=function(){this.updateVideoLockupStyles()};
_.v.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.v.updateVideoLockupStyles=function(){var N;this.JSC$20510_scrollContainer!==void 0&&(N=this.videoLockups)!=null&&N.length&&(N=this.JSC$20510_scrollContainer.clientWidth,N!==this.JSC$20510_lastScrollContainerWidth&&(this.JSC$20510_lastScrollContainerWidth=N,_.rq(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(N*.8,415)+"px"}),_.bC(this.hostElement,"iron-resize")))};
_.d0.Object.defineProperties(zc.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var N=[],b;if((b=this.data)==null||!b.carouselLockups)return N;b=_.O(this.data.carouselLockups);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;((P=_.t(S,S1w))==null?0:P.videoLockup)&&N.push(_.t(S,S1w).videoLockup)}return N}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoLockups)==null||!N.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var N=[],b;if((b=this.data)==null||!b.carouselLockups)return N;var S;return(S=_.t(this.data.carouselLockups[this.scrollCount],S1w))==null?void 0:S.infoRows}}});
zc.prototype.dataChanged=zc.prototype.dataChanged;zc.prototype.onIronResize=zc.prototype.onIronResize;zc.prototype.hiddenChanged=zc.prototype.hiddenChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],zc.prototype,"componentBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],zc.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zc.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],zc.prototype,"inlineStructuredDescription",void 0);_.p([_.U({value:2}),_.y("design:type",Number)],zc.prototype,"initialCount",void 0);_.p([_.U(),_.y("design:type",Object)],zc.prototype,"currentIndex",void 0);
_.p([_.U(),_.y("design:type",Number)],zc.prototype,"scrollCount",void 0);_.p([_.U(),_.y("design:type",Object)],zc.prototype,"supportComponentResize",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],zc.prototype,"contentHidden",void 0);_.p([_.dq("#scroll-container"),_.y("design:type",HTMLDivElement)],zc.prototype,"JSC$20510_scrollContainer",void 0);
_.p([_.W4("contentHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zc.prototype,"hiddenChanged",null);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],zc.prototype,"videoLockups",null);_.p([_.f("videoLockups"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],zc.prototype,"hasVideoLockups",null);
_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zc.prototype,"onIronResize",null);_.p([_.f("data","scrollCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],zc.prototype,"infoRows",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],zc.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zc);
_.X(zc,"ytd-video-description-music-section-renderer",function(){if(BnQ!==void 0)return BnQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return BnQ=N},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var lva;var Ao=function(){return _.z.apply(this,arguments)||this};
_.F(Ao,_.z);Ao.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.y("design:type",Object)],Ao.prototype,"data",void 0);_.p([_.Uj({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Ao);
_.X(Ao,"ytd-video-description-transcript-section-renderer",function(){if(lva!==void 0)return lva;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return lva=N},{mode:1});var L45;_.qu(_.A(function(N){var b=_.nf(_.PcI,function(){return N.data().firstProviderLinkStatusEntityKey}),S=_.nf(_.PcI,function(){return N.data().secondProviderLinkStatusEntityKey}),P=function(){var H,K;
return((H=b())==null?void 0:H.linked)||((K=S())==null?void 0:K.linked)};
return _.c("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.c(_.mD,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return N.data().sectionTitle}}),_.c(_.mD,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return P()?N.data().connectedMessage:N.data().notConnectedMessage}}),_.c(_.W,{cond:P,
then:function(){return _.c(_.kY,{data:function(){return N.data().connectedButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.c(_.W,{cond:function(){return!P()},
then:function(){return _.c(_.kY,{data:function(){return N.data().notConnectedButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"xh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;return _.c("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.c("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.c(_.mD,{text:function(){return b().sectionTitle}})),_.c("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.c(_.mD,{text:function(){return b().bodyHeader}})),_.c("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.c(_.mD,{text:function(){return b().bodyText}})),_.c(_.W,{cond:function(){return b().attributionText},
then:function(){return _.c("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.c(_.mD,{text:function(){return b().attributionText}}))}}))},"yh"),"how-this-was-made-section-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){return _.c("yt-video-description-youchat-section-view-model",{class:_.KU("ytVideoDescriptionYouchatSectionViewModelHost")},_.c("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.c(_.mD,{text:function(){return N.data().sectionTitle}})),_.c("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.c(_.mD,{text:function(){return N.data().subHeaderText}})),_.c("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.c(_.j$,{data:function(){return _.t(N.data().primaryButton,
_.WC)}})))},"zh"),"yt-video-description-youchat-section-view-model",{props:{data:_.kg}});var Xq=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return N};
_.F(Xq,_.z);_.v=Xq.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.v.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.v.dataChanged=function(){var N,b;this.hasDescriptionOnly=!(((N=this.data)==null?void 0:(b=N.items)==null?void 0:b.length)!==1||!_.t(this.data.items[0],BB))};
_.v.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.v.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.v.autoFocusDescription=function(){var N;((N=_.aN().resolve(_.cq(_.QJ)))==null?0:N.isKeyBoardInUse())&&this.description&&_.Cv(this.description)};
_.v.resize=function(){if(_.T("kevlar_disable_sd_resize"))this.JSC$20518_cardList&&_.bC(this.JSC$20518_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.bC(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.bC(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.v.scrollToSection=function(N){if(N=this.getSectionElement(N))_.St(this.hostElement,"yt-scroll-to-watch-element",[N]),N.focus()};
_.v.getSectionElement=function(N){switch(N){case "infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case "transcript-item-section":var S;return(S=this.transcriptSection)!=null?S:null;case "how-this-was-made-section-item-section":var P;return(P=this.howThisWasMadeSection)!=null?P:null;case "files-item-section":var H;return(H=this.filesSection)!=null?H:null;default:return null}};
_.v.handleSetActiveItemAction=function(N){var b=_.t(N,Lq6),S=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20518_cardList;if(b&&S){N=this.currentActiveChapter;var P=this.currentActiveProblem;b=S==null?void 0:S.getItemByIndex(b.itemIndex);var H=S=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(S=N!==b,H=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(S=!1,H=P!==b,this.currentActiveProblem=b));N&&S&&(N.active=!1);P&&H&&(P.active=!1)}};
_.d0.Object.defineProperties(Xq.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.NI("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Xq.prototype.onYtExpanderMoreTapped=Xq.prototype.onYtExpanderMoreTapped;Xq.prototype.onHiddenChanged=Xq.prototype.onHiddenChanged;Xq.prototype.dataChanged=Xq.prototype.dataChanged;Xq.prototype.panelContentVisibleChanged=Xq.prototype.panelContentVisibleChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Xq.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],Xq.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Xq.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],Xq.prototype,"panelContentVisible",void 0);_.p([_.U(),_.y("design:type",Boolean)],Xq.prototype,"hasDescriptionOnly",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xq.prototype,"inlineStructuredDescription",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xq.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xq.prototype,"shortsPanel",void 0);_.p([_.U(),_.y("design:type",Object)],Xq.prototype,"videoSummary",void 0);_.p([_.U(),_.y("design:type",Object)],Xq.prototype,"merchShelf",void 0);
_.p([_.f("videoSummary"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Xq.prototype,"showVideoSummary",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xq.prototype,"engagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Xq.prototype,"watchWhileSdp",void 0);_.p([_.dq("ytd-expandable-video-description-body-renderer"),_.y("design:type",Object)],Xq.prototype,"description",void 0);
_.p([_.dq("ytd-horizontal-card-list-renderer"),_.y("design:type",Object)],Xq.prototype,"JSC$20518_cardList",void 0);_.p([_.dq("ytd-horizontal-card-list-renderer[center-items]"),_.y("design:type",Object)],Xq.prototype,"problemWalkthroughCardList",void 0);_.p([_.dq("ytd-shelf-renderer"),_.y("design:type",Object)],Xq.prototype,"shelfSection",void 0);_.p([_.dq("ytd-video-description-music-section-renderer"),_.y("design:type",Object)],Xq.prototype,"musicMetadataSection",void 0);
_.p([_.dq("ytd-video-description-infocards-section-renderer"),_.y("design:type",Object)],Xq.prototype,"infocardsSection",void 0);_.p([_.dq("ytd-video-description-transcript-section-renderer"),_.y("design:type",Object)],Xq.prototype,"transcriptSection",void 0);_.p([_.dq("how-this-was-made-section-view-model"),_.y("design:type",Object)],Xq.prototype,"howThisWasMadeSection",void 0);_.p([_.dq("ytd-video-description-files-section-renderer"),_.y("design:type",Object)],Xq.prototype,"filesSection",void 0);
_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xq.prototype,"panelContentVisibleChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xq.prototype,"dataChanged",null);_.p([_.W4("hidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xq.prototype,"onHiddenChanged",null);
_.p([_.RA("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xq.prototype,"onYtExpanderMoreTapped",null);_.p([_.Uj({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Xq);
_.X(Xq,"ytd-structured-description-content-renderer",function(){if(L45!==void 0)return L45;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return L45=N},{mode:2});var E3=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return N};
_.F(E3,_.z);_.v=E3.prototype;_.v.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.v.dataChanged=function(){var N;this.descriptionToggled=!((N=this.data)==null||!N.defaultExpanded);var b;this.collapsed=this.descriptionAlwaysCollapsed||!((b=this.data)==null?0:b.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.OW(110509);this.showLessClientVe=_.OW(110510);N=_.Qh();b=_.uZ();N&&b&&_.X8(N,b,[this.showMoreClientVe,this.showLessClientVe])};
_.v.onYtExpanderMoreTapped=function(){var N,b=(N=this.data)==null?void 0:N.showMoreCommand;b&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(b);(N=_.Qh())&&this.showMoreClientVe&&_.y3(N,this.showMoreClientVe)};
_.v.onYtExpanderLessTapped=function(){var N=_.Qh();N&&this.showLessClientVe&&_.y3(N,this.showLessClientVe);var b;(N=(b=this.data)==null?void 0:b.showLessCommand)&&this.componentBehavior.resolveCommand(N)};
_.v.handleUpdateDateTextAction=function(N){this.data&&this.data.dateText&&this.set("data.dateText",_.t(N,qmt).dateText)};
_.v.handleUpdateDescriptionAction=function(N){if(N=_.t(N,_.M69))N.isEmpty||!N.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.xH(N.description)):this.set("data.description",N.description)};
_.v.onYtChangeEngagementPanelVisibilityAction=function(N){if(_.T("web_structured_description_show_more")||_.T("web_engagement_panel_open_description")){var b,S=(b=_.t(N,_.Me9))==null?void 0:b.targetId,P;N=((P=_.t(N,_.Me9))==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";S==="engagement-panel-structured-description"&&N&&(this.descriptionToggled=!0)}};
_.v.updateCollapsedFromBinding=function(N){this.collapsed=N.detail.value};
_.v.updateDescriptionToggledFromBinding=function(N){this.descriptionToggled=N.detail.value};
_.v.updateCanCollapseFromBinding=function(N){this.canCollapse=N.detail.value};
_.d0.Object.defineProperties(E3.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer;return!!S&&!!S.rows&&S.rows.length>S.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
E3.prototype.onYtExpanderLessTapped=E3.prototype.onYtExpanderLessTapped;E3.prototype.onYtExpanderMoreTapped=E3.prototype.onYtExpanderMoreTapped;E3.prototype.dataChanged=E3.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],E3.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],E3.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],E3.prototype,"collapsed",void 0);_.p([_.U(),_.y("design:type",Boolean)],E3.prototype,"descriptionToggled",void 0);
_.p([_.U(),_.y("design:type",Boolean)],E3.prototype,"canCollapse",void 0);_.p([_.U(),_.y("design:type",Object)],E3.prototype,"subscribeButtonData",void 0);_.p([_.U(),_.y("design:type",Number)],E3.prototype,"descriptionCollapsedHeight",void 0);_.p([_.U(),_.y("design:type",Object)],E3.prototype,"structuredDescriptionContentRenderer",void 0);_.p([_.U({value:function(){return _.T("web_watch_description_always_collapsed")}}),
_.y("design:type",Boolean)],E3.prototype,"descriptionAlwaysCollapsed",void 0);_.p([_.dq("#description"),_.y("design:type",HTMLDivElement)],E3.prototype,"description",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E3.prototype,"dataChanged",null);_.p([_.RA("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E3.prototype,"onYtExpanderMoreTapped",null);
_.p([_.RA("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],E3.prototype,"onYtExpanderLessTapped",null);_.p([_.f("data.metadataRowContainer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"metadataCollapsible",null);_.p([_.f("data","structuredDescriptionContentRenderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"hasInlineStructuredDescription",null);
_.p([_.f("data.attributedDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"hasAttributedDescription",null);_.p([_.f("hasInlineStructuredDescription","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"loadStructuredDescription",null);_.p([_.f("data","structuredDescriptionContentRenderer","collapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"showInlineStructuredDescription",null);
_.p([_.f("data","hasInlineStructuredDescription","metadataCollapsible"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],E3.prototype,"descriptionAlwaysCollapsible",null);
_.X(E3,"ytd-video-secondary-info-renderer",function(){if(vzL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);vzL=N}N=vzL;return N},{mode:2});var fvO;var pr=function(){var N=_.z.apply(this,arguments)||this;N.isCollapsed=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return N};
_.F(pr,_.z);_.v=pr.prototype;_.v.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.onDonateTap=function(){var N=this.get("data.donateButton.buttonRenderer.command");if(N){var b=_.Qh(),S=this.get("data.donateButton.buttonRenderer.trackingParams");b&&S&&_.y3(b,_.FA(S));this.ytOpenPopupBehavior.openPopup(N)}};
_.v.onShowMore=function(){this.isCollapsed=!1;var N=_.Qh(),b=this.get("data.expandButton.buttonRenderer.trackingParams");N&&b&&_.y3(N,_.FA(b))};
_.v.onShowLess=function(){this.isCollapsed=!0};
_.v.dataChanged=function(){_.rq(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.handleUpdate=function(N){if(N=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",N))this.set("data.startLabel",N.startLabel),this.set("data.endLabel",N.endLabel),this.set("data.progress",N.progress),this.set("data.amountRaisedLabel",N.amountRaisedLabel),this.dataChanged()};
_.v.handleOpenPopupAction=function(N){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",N)&&_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.v.computeHeaderBackgroundUrl=function(N,b){if(N)return b?N.headerBackgroundDarkUrl:N.headerBackgroundUrl};
_.v.isProgressBarVisible=function(N){return!(!N||N.progress===void 0)};
_.v.headerBackgroundClass=function(){return _.Vg("HTML_DIR")==="rtl"?"flip":""};
pr.prototype.dataChanged=pr.prototype.dataChanged;_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],pr.prototype,"ytOpenPopupBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],pr.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],pr.prototype,"isCollapsed",void 0);_.p([_.U({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.y("design:type",String)],pr.prototype,"headerBackgroundUrl",void 0);_.p([_.U(),_.y("design:type",Boolean)],pr.prototype,"isDarkTheme",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pr.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],pr);
_.X(pr,"ytd-donation-shelf-renderer",function(){if(fvO!==void 0)return fvO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return fvO=N},{mode:1});var utQ;var QIJ=function(){return _.z.apply(this,arguments)||this};
_.F(QIJ,_.z);_.p([_.U(),_.y("design:type",Object)],QIJ.prototype,"data",void 0);_.p([_.Uj({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],QIJ);
_.X(QIJ,"ytd-donation-unavailable-renderer",function(){if(utQ!==void 0)return utQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return utQ=N},{mode:1});var xQa;var YC=function(){var N=_.z.apply(this,arguments)||this;N.playerListenerConfig=null;N.actionMap={"yt-show-watch-page-survey":"openSurvey"};return N};
_.F(YC,_.z);_.v=YC.prototype;_.v.dataChanged=function(){var N=this,b=_.qE();b&&b.getPlayerPromise().then(function(P){N.maybeRemovePlayerListeners(P)});
var S=this.data&&this.data.survey;S&&((S=(S=S.singleOptionSurveyRenderer||S.checkboxSurveyRenderer||S.multiStageSurveyRenderer)&&S.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(b,S):this.openSurvey())};
_.v.triggerWatchPageSurvey=function(N,b){var S=this,P,H,K,C,G,a,R,n,d;return _.r(function(m){if(m.nextAddress==1)return N?m.yield(N.getPlayerPromise(),2):m.return();S.player=m.yieldResult;if(!S.player)return m.return();P={};H=_.O(b);for(K=H.next();!K.done;K=H.next())C=K.value,G=_.O(S.createEventListenerPair(C)),a=G.next().value,R=G.next().value,n=a,d=R,n&&d&&(P[n]=d,S.ytPlayerListenerBehavior.listenToPlayerEvent(S.player,n,d));S.playerListenerConfig=P;_.Zd(m)})};
_.v.createEventListenerPair=function(N){var b=N.playbackEventTrigger;return b?this.handlePlaybackTrigger(b):(N=N.watchTimeTrigger)?this.handleWatchTimeTrigger(N):[void 0,void 0]};
_.v.handleWatchTimeTrigger=function(N){var b=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var S=N.videoWatchFraction,P=N.watchTimeSec;return P&&S?["onVideoProgress",function(){b.player&&b.isWatchTimeConditionMet(b.player,S,P)&&b.showSurvey()}]:[void 0,
void 0]};
_.v.isWatchTimeConditionMet=function(N,b,S){var P=N.getProgressState(),H=P.current-this.lastKnownPlaybackPosition;H<5&&(this.accumulatedMediaTime+=H);this.lastKnownPlaybackPosition=P.current;P=Math.round(this.accumulatedMediaTime/P.duration*1E3)/1E3;return N.getPresentingPlayerType&&N.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>S||P>b)};
_.v.handlePlaybackTrigger=function(N){var b=this;N=N.playbackEvent;if(N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var S="onStateChange";var P=function(H){H===0&&b.showSurvey()}}else N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(S="onVideoProgress",P=function(H){b.player&&b.player.getPresentingPlayerType&&b.player.getPresentingPlayerType()===1&&H&&b.showSurvey()}):N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(S="onAdEnd",P=this.showSurvey);
return[S,P]};
_.v.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.v.openSurvey=function(){var N=this,b=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(UkE(!!b));_.Dj.addJob(function(){N.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:b}})},0,0)};
_.v.maybeRemovePlayerListeners=function(N){if(this.playerListenerConfig){for(var b=_.O(Object.keys(this.playerListenerConfig)),S=b.next();!S.done;S=b.next())S=S.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(N,S,this.playerListenerConfig[S]);this.playerListenerConfig=null}};
YC.prototype.dataChanged=YC.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],YC.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],YC.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],YC.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],YC.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YC.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],YC.prototype,"playerListenerConfig",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],YC.prototype,"lastKnownPlaybackPosition",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],YC.prototype,"accumulatedMediaTime",void 0);_.p([_.U(),_.y("design:type",Object)],YC.prototype,"player",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YC.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],YC);
_.X(YC,"ytd-survey-trigger-renderer",function(){if(xQa!==void 0)return xQa;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return xQa=N},{mode:1});var ozw;var y_=function(){return _.z.apply(this,arguments)||this};
_.F(y_,_.z);y_.prototype.computeIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],y_.prototype,"data",void 0);_.p([_.Uj({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],y_);
_.X(y_,"ytd-limited-state-message-renderer",function(){if(ozw!==void 0)return ozw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ozw=N},{mode:1});var ilO={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(N){if(N&&N.length==1&&Array.isArray(N[0].loggingUrls)){N=_.Vm.unsafeClone(N[0]);var b=this.macros||{},S=this.getAdModuleClient_();if(!S)return _.KA();N.loggingUrls.forEach(function(P){if(P.baseUrl){var H=P.baseUrl;var K=b;K=K===void 0?{}:K;H=S.getOptions().includes("replaceUrlMacros")?_.v2b(S,"replaceUrlMacros",{url:H,additionalMapping:K}):H;P.baseUrl=H}},this);
N=[N]}return _.HN(this.hostElement,N)},
getAdModuleClient_:function(){var N=_.qE(this);return N?(N=N.getPlayer())?new _.sU(N):null:null}}]};var Jtt;var IW=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_modern_buttons");N.buttonOverrides={style:"call-to-action",type:"filled"};return N};
_.F(IW,_.z);IW.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=_.xn(this.data.backgroundColor)))};
IW.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var N=this.getFormattedStringLoggingDirectives(this.data.headline);N&&this.rendererBehavior.logExplicitClick(N)}};
IW.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var N=this.getFormattedStringLoggingDirectives(this.data.description);N&&this.rendererBehavior.logExplicitClick(N)}};
IW.prototype.getFormattedStringLoggingDirectives=function(N){return N&&N.runs&&N.runs.length>0&&N.runs[0]&&N.runs[0].loggingDirectives?N.runs[0].loggingDirectives:null};
IW.prototype.dataChanged=IW.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],IW.prototype,"rendererBehavior",void 0);_.p([_.L(ilO.YtMacroReplacementBehavior),_.y("design:type",Object)],IW.prototype,"macroReplacementBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],IW.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],IW.prototype,"navigationEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],IW.prototype,"enableColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],IW.prototype,"modern",void 0);_.p([_.U(),_.y("design:type",Object)],IW.prototype,"buttonOverrides",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IW.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],IW);
_.X(IW,"ytd-action-basic-immersive-content-renderer",function(){if(Jtt!==void 0)return Jtt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Jtt=N},{mode:1});var UQ_;var ZlO;var De=function(){return _.z.apply(this,arguments)||this};
_.F(De,_.z);De.prototype.dataChanged=function(){var N;((N=this.data)==null?void 0:N.backgroundColor)!==void 0&&_.rq(this.hostElement,{"--bgu-color":_.xn(this.data.backgroundColor)})};
De.prototype.onImageTileClick=function(){var N;((N=this.data)==null?0:N.navigationEndpoint)&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.d0.Object.defineProperties(De.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?void 0:N.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var N,b,S;if(((N=this.data)==null?void 0:(b=N.detailsLine)==null?void 0:b.texts)!=null&&((S=this.data)==null?void 0:S.detailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.detailsLine.texts.map(function(H){return H.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var N,b,S;if(((N=this.data)==null?void 0:(b=N.optionalDetailsLine)==null?void 0:b.texts)!=null&&((S=this.data)==null?void 0:S.optionalDetailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.optionalDetailsLine.texts.map(function(H){return H.text}).join("")}return null}}});
De.prototype.dataChanged=De.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],De.prototype,"rendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],De.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],De.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.backgroundColor"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],De.prototype,"hasBackgroundColor",null);
_.p([_.f("data.objectFit"),_.y("design:type",Object),_.y("design:paramtypes",[])],De.prototype,"getObjectFit",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.tileRenderingStyle"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],De.prototype,"hasTileMetadata",null);_.p([_.f("data.detailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],De.prototype,"getSecondaryDetails",null);
_.p([_.f("data.optionalDetailsLine"),_.y("design:type",Object),_.y("design:paramtypes",[])],De.prototype,"getOptionalDetails",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],De.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],De);
_.X(De,"ytd-image-tile-renderer",function(){if(ZlO!==void 0)return ZlO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ZlO=N},{mode:1});var jIt;var V_=function(){return _.z.apply(this,arguments)||this};
_.F(V_,_.z);V_.prototype.getOpenLinkIcon=function(){return _.T("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
V_.prototype.onSitelinkTap=function(){_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.T("kevlar_command_handler_migration_killswitch"))_.sR(this.hostElement,this.data.clickCommands,this.hostElement);else for(var N=_.O(this.data.clickCommands),b=N.next();!b.done;b=N.next())this.ytComponentBehavior.resolveCommand(b.value)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],V_.prototype,"rendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],V_.prototype,"data",void 0);_.p([_.Uj({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],V_);
_.X(V_,"ytd-sitelink-renderer",function(){if(jIt!==void 0)return jIt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jIt=N},{mode:1});var gW=function(){var N=_.z.apply(this,arguments)||this;N.paddingFix=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return N};
_.F(gW,_.z);gW.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}};
gW.prototype.dataChanged=function(){var N=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;N.ytMacroReplacementBehavior.sendServiceRequestAction([b])})};
gW.prototype.shouldHideFooter=function(N){return!(N&&_.T("use_ads_engagement_panel_desktop_footer_cta"))};
_.d0.Object.defineProperties(gW.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var P;return(P=_.t(S,N4i))==null?void 0:P.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var P;return((P=_.t(S,N4i))==null?void 0:P.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
gW.prototype.dataChanged=gW.prototype.dataChanged;_.p([_.L(ilO.YtMacroReplacementBehavior),_.y("design:type",Object)],gW.prototype,"ytMacroReplacementBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gW.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gW.prototype,"paddingFix",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gW.prototype,"removeBorderFromImageTiles",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.imageTileRenderers"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gW.prototype,"useFooteredMetadataRenderingStyle",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gW.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],gW);
_.X(gW,"ytd-action-engagement-panel-content-renderer",function(){if(UQ_!==void 0)return UQ_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return UQ_=N},{mode:1});var zNE;var Atw=_.A(function(N){var b=N.data;var S=N.customCommandResolver;return _.c("ad-grid-card-image-full-metadata-view-model",{class:function(){var P;return((P=b().interaction)==null?0:P.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu}),_.z8(function(){return b().interaction},S)),
"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(P){return _.c(_.eq,{data:P.data,
customCommandResolver:S})}})),_.c("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.c(_.W,{cond:function(){return b().headline},
then:function(P){return _.c(_.mD,{text:P,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.c(_.W,{cond:function(){return b().detailsLine},
then:function(P){return _.c("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.c(_.kY,{data:P},{adDetailsLineViewModel:function(H){return _.c(_.E$,{data:H.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.c(_.W,{cond:function(){return b().secondaryDetailsLine},
then:function(P){return _.c("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.c(_.kY,{data:P},{adDetailsLineViewModel:function(H){return _.c(_.E$,{data:H.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ah");var XTQ=_.A(function(N){var b=N.data;var S=N.customCommandResolver;return _.c("ad-grid-card-image-view-model",{class:function(){var P;return((P=b().interaction)==null?0:P.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu}),_.z8(function(){return b().interaction},S)),
"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(P){return _.c(_.eq,{data:P.data,
customCommandResolver:S})}}),_.c("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.c(_.kY,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:_.UU4})))},"Bh");var EzO=_.A(function(N){var b=N.data;var S=N.customCommandResolver;return _.c("ad-grid-card-text-view-model",{class:function(){var P;return((P=b().interaction)==null?0:P.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu}),_.z8(function(){return b().interaction},S)),
"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.c(_.W,{cond:function(){return b().title},
then:function(P){return _.c(_.mD,{text:P,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.c("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.c(_.zj,{each:function(){var P;
return((P=b())==null?void 0:P.descriptions)||[]},
keyBy:"INDEX"},function(P){return _.c(_.mD,{text:P,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.c("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.c(_.kY,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(P){return _.c(_.U$,{data:P.data,
customCommandResolver:S})}})))},"Ch");var pTi=_.A(function(N){var b=N.data;var S=N.customCommandResolver;var P=N.adGridCardCollectionStyle;return _.c("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(H){var K,C=(K=b().interaction)==null?void 0:K.onFirstVisible;H&&C&&_.AM(C)},
showOption:_.iu})),style:function(){return"grid-template-columns: repeat("+N56(P?P():b().style)+", minmax(0, 1fr));"}},_.c(_.kY,{data:function(){var H;
return(H=b())==null?void 0:H.gridCards}},{adGridCardImageViewModel:function(H){return _.c(XTQ,{data:H.data,
customCommandResolver:S})},
adGridCardImageFullMetadataViewModel:function(H){return _.c(Atw,{data:H.data,customCommandResolver:S})},
adGridCardTextViewModel:function(H){return _.c(EzO,{data:H.data,customCommandResolver:S})}}))},"Dh");_.qu(_.A(function(N){var b=N.data;return _.c("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.VN(_.nt({visibilityCallback:function(S){var P,H=(P=b().interaction)==null?void 0:P.onFirstVisible;S&&H&&_.AM(H)},
showOption:_.iu}),_.z8(function(){return b().interaction},Sbo))},_.c("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.c(_.W,{cond:_.SV_("(min-width: "+(py()+Yf)+"px)"),
then:function(){return _.c(_.kY,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.c(pTi,{data:S.data,
customCommandResolver:Sbo})}})},
else:function(){return _.c(_.kY,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.c(pTi,{data:S.data,
customCommandResolver:Sbo,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.c("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.c(_.kY,{data:function(){return b().adButton}},{adButtonViewModel:function(S){return _.c(_.U$,{data:S.data,
customCommandResolver:Sbo})}})))},"Eh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;return _.c("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.VN(_.nt({visibilityCallback:function(S){var P,H=(P=b().interaction)==null?void 0:P.onFirstVisible;S&&H&&_.AM(H)},
showOption:_.iu}),_.z8(function(){return b().interaction},Poi))},_.c("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.c(_.kY,{data:function(){if(_.SV_("(min-width: "+(py()+Yf)+"px)")())var S=b().adGridCardCollection;
else{S=Object.assign({},_.t(b().adGridCardCollection,SDJ));var P;S.gridCards!==void 0&&((P=S.gridCards)==null?void 0:P.length)>1?S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";S={adGridCardCollectionViewModel:S}}return S}},{adGridCardCollectionViewModel:function(S){return _.c(pTi,{data:S.data,
customCommandResolver:Poi})}})),_.c("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.c(_.kY,{data:function(){return b().adButton}},{adButtonViewModel:function(S){return _.c(_.U$,{data:S.data,
customCommandResolver:Poi})}})))},"Fh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.kg}});var eK=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return N};
_.F(eK,_.z);_.v=eK.prototype;_.v.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.v.attached=function(){this.getDataFromPlayerAndRender()};
_.v.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.v.getDataFromPlayerAndRender=function(){var N=this,b=_.qE(this.hostElement);b&&b.getPlayerPromise().then(function(S){N.getCachedDataAndListen(S)})};
_.v.getCachedDataAndListen=function(N){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=N)};
_.v.resolveCachedActions=function(){var N=_.hl("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(N=N&&N())&&!_.Vm.isEmpty(N)&&this.sendUpdateEngagementPanelAction(N);(N=(N=_.hl("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&N())&&!_.Vm.isEmpty(N)&&this.sendChangeEngagementPanelVisibilityAction(N);(N=(N=_.hl("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&N())&&!_.Vm.isEmpty(N)&&this.sendScrollToEngagementPanelCommand(N)};
_.v.sendUpdateEngagementPanelAction=function(N){var b;_.St(this.hostElement,"yt-update-engagement-panel-action",[(b=_.Vm.get(N,"action"))!=null?b:N])};
_.v.sendChangeEngagementPanelVisibilityAction=function(N){_.St(this.hostElement,"yt-change-engagement-panel-visibility-action",[N])};
_.v.sendScrollToEngagementPanelCommand=function(N){_.St(this.hostElement,"yt-scroll-to-engagement-panel-command",[N])};
_.v.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.T("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.$h(Error("Al"))};
eK.prototype.dataChanged=eK.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],eK.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],eK.prototype,"componentBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],eK.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eK.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],eK.prototype,"player",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eK.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],eK);
_.X(eK,"ytd-ads-engagement-panel-content-renderer",function(){if(zNE!==void 0)return zNE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return zNE=N},{mode:1});var YtE;var $C=function(){var N=_.z.apply(this,arguments)||this;N.player=null;N.JSC$20574_playerEvents=new Map;N.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return N};
_.F($C,_.z);_.v=$C.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.v.created=function(){this.player=null;this.JSC$20574_playerEvents=new Map;this.JSC$20574_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20574_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20574_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20574_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.attached=function(){var N=this,b=_.qE();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(S){N.setPlayer(S);N.set("isPageLoad",!1)})};
_.v.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20574_playerEvents);this.set("player",N);N&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$20574_playerEvents),N.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.v.onLoopRangeChange=function(N){var b=_.aN().resolve(_.cq(_.$9));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var S;!N&&((S=this.data)==null?0:S.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.v.onVideoProgress=function(N){var b,S,P=((b=this.player)==null?void 0:(S=b.getPresentingPlayerType)==null?void 0:S.call(b))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P);var H;if(!P&&(H=this.player)!=null&&H.getLoopRange()){S=this.player.getLoopRange();b=S.startTimeMs;S=S.endTimeMs;P=this.player.getProgressState(1).seekableStart;var K;b<P*1E3&&((K=this.data)==null?0:K.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
N=S<N*1E3;var C;((C=this.player)==null?0:C.getLoopRange())&&N&&this.player.seekTo(b/1E3)}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onYtDeleteClipEngagementPanelCommand=function(N){_.t(N,s8E).command&&this.ytComponentBehavior.resolveCommand(_.t(N,s8E).command)};
_.d0.Object.defineProperties($C.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.gy("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],$C.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],$C.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],$C.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$C.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],$C.prototype,"isAdPlaying",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],$C.prototype,"isPageLoad",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],$C.prototype,"isDarkTheme",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$C.prototype,"voteCount",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],$C.prototype,"channelEndpoint",null);_.p([_.f("channelEndpoint"),_.y("design:type",Object),_.y("design:paramtypes",[])],$C.prototype,"channelHref",null);_.p([_.Uj({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],$C);
_.X($C,"ytd-clip-attribution-renderer",function(){if(YtE!==void 0)return YtE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return YtE=N},{mode:1});var yti;var ho=function(){var N=_.z.apply(this,arguments)||this;N.player=null;N.JSC$20579_playerEvents=new Map;return N};
_.F(ho,_.z);_.v=ho.prototype;_.v.created=function(){this.player=null;this.JSC$20579_playerEvents=new Map;this.JSC$20579_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20579_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20579_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.v.attached=function(){var N=this,b=_.qE();b&&b.getPlayerPromise().then(function(S){N.setPlayer(S);N.set("isPageLoad",!1)})};
_.v.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20579_playerEvents);this.set("player",N);if(N){this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$20579_playerEvents);var b;(N==null?void 0:(b=N.getPresentingPlayerType)==null?void 0:b.call(N))===2&&this.playerAdStartHandler()}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onVideoProgress=function(){var N,b,S=((N=this.player)==null?void 0:(b=N.getPresentingPlayerType)==null?void 0:b.call(N))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],ho.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ho.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],ho.prototype,"isAdPlaying",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],ho.prototype,"isPageLoad",void 0);_.p([_.Uj({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],ho);
_.X(ho,"ytd-clip-section-footer-renderer",function(){if(yti!==void 0)return yti;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return yti=N},{mode:1});var Ivi;var DQw;var VYL=function(){return _.z.apply(this,arguments)||this};
_.F(VYL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VYL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VYL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],VYL);
_.X(VYL,"ytd-clip-ad-state-renderer",function(){if(DQw!==void 0)return DQw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return DQw=N},{mode:1});var gzw;var qA=function(){var N=_.z.apply(this,arguments)||this;N.value="";N.valid=!1;N.userChangedValue=!1;N.disabled=!1;N.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return N};
_.F(qA,_.z);_.v=qA.prototype;_.v.detached=function(){this.userChangedValue=!1};
_.v.handleKeyDown=function(N){if(_.B_)var b=13;else _.BIz&&_.FG?b=13:b=13;N.keyCode===b&&N.preventDefault()};
_.v.handleInput=function(){var N=_.H4(this.hostElement).querySelector("#title");if(N){var b=(N.value||"").replace(/\r|\n/g," ");this.set("value",b);N.value=b;this.valid=N.validate();this.userChangedValue=!0}};
_.v.handleBlur=function(){this.valid=_.H4(this.hostElement).querySelector("#title").validate()};
_.v.onValueChanged=function(){_.bC(this.hostElement,"title-changed",{title:this.value})};
_.v.onValidChanged=function(){_.bC(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.v.setInput=function(N,b){var S=_.H4(this.hostElement).querySelector("#title");S&&(S.value=N,this.handleInput(),b&&(S.invalid=!1,this.valid=!0))};
_.v.onClipCreationDisable=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable=function(){this.set("disabled",!1)};
_.v.onClipCreationVisibilityChange=function(N){var b=this;N.visible?requestAnimationFrame(function(){var S;((S=_.H4(b.hostElement).querySelector("#title"))==null?void 0:S.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
qA.prototype.onValidChanged=qA.prototype.onValidChanged;qA.prototype.onValueChanged=qA.prototype.onValueChanged;qA.prototype.handleBlur=qA.prototype.handleBlur;qA.prototype.handleInput=qA.prototype.handleInput;qA.prototype.handleKeyDown=qA.prototype.handleKeyDown;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],qA.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],qA.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],qA.prototype,"value",void 0);_.p([_.U(),_.y("design:type",Object)],qA.prototype,"valid",void 0);_.p([_.U(),_.y("design:type",Object)],qA.prototype,"userChangedValue",void 0);_.p([_.U(),_.y("design:type",Object)],qA.prototype,"disabled",void 0);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],qA.prototype,"handleKeyDown",null);
_.p([_.RA("input"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qA.prototype,"handleInput",null);_.p([_.RA("blur"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qA.prototype,"handleBlur",null);_.p([_.W4("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qA.prototype,"onValueChanged",null);
_.p([_.W4("valid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qA.prototype,"onValidChanged",null);_.p([_.Uj({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],qA);
_.X(qA,"ytd-clip-creation-text-input-renderer",function(){if(gzw!==void 0)return gzw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gzw=N},{mode:1});var eNq;var $QL;var hNq;var qtE;var wTL;var wW=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};N.pendingStoryboardImages_={};N.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];N.tickLabelInterval=30;N.mediumTickInterval=5;N.largeTickInterval=15;N.aboveRulerHeight=32;N.rulerHeight=50;N.smallTickHeight=4;N.mediumTickHeight=8;N.largeTickHeight=16;N.mediaListeners_=
{};return N};
_.F(wW,_.z);_.v=wW.prototype;_.v.attached=function(){var N=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(b){b=_.O(["screen and (min-resolution: "+b+")","screen and (max-resolution: "+b+")"]);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=window.matchMedia(S);P&&(N.mediaListeners_[S]=N.updatePixelRatio_.bind(N),P.addEventListener?P.addEventListener("change",N.mediaListeners_[S]):P.addListener?P.addListener(N.mediaListeners_[S]):delete N.mediaListeners_[S])}})};
_.v.detached=function(){this.setPlayer(null);for(var N=_.O(Object.keys(this.mediaListeners_)),b=N.next();!b.done;b=N.next()){var S=b.value;b=this.mediaListeners_[S];(S=window.matchMedia(S))&&(S.removeEventListener?S.removeEventListener("change",b):S.removeListener&&S.removeListener(b))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.v.onVisibilityChangedAction_=function(N){var b=this;N.visible&&!this.player_&&(N=_.qE())&&N.getPlayerPromise().then(function(S){b.setPlayer(S)})};
_.v.setPlayer=function(N){N&&this.set("player_",N)};
_.v.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.v.setUpCanvas_=function(){var N=this.rulerWidth,b=this.devicePixelRatio_,S=this.visible;this.set("canvasReady_",!1);if(S&&b!==0){S=this.aboveRulerHeight+this.rulerHeight;var P=_.H4(this.hostElement).querySelector("#ticks");P.width=N*b;P.height=S*b;P.style.width=N+"px";P.style.height=S+"px";P.getContext("2d").scale(b,b);this.set("canvasReady_",!0)}};
_.v.drawRuler_=function(N,b,S,P,H,K,C,G,a,R,n,d){N&&S&&b&&(N=_.H4(this.hostElement).querySelector("#ticks"),b=N.getContext("2d"),b.clearRect(0,0,N.width,N.height),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.lineWidth=2,b.beginPath(),b.moveTo(0,this.aboveRulerHeight),b.lineTo(N.width,this.aboveRulerHeight),b.moveTo(0,N.height),b.lineTo(N.width,N.height),b.stroke(),this.drawRulerTicks_(N,K,H,P),this.drawStoryboardImages_(N,S,K,H,P),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
b.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(C-K,P,!1),this.rulerHeight),S=this.timeToPixels_(G-K,P,!1),b.fillRect(S,this.aboveRulerHeight,N.width-S,this.rulerHeight),this.drawSpeedLines_(N,K,d))};
_.v.drawRulerTicks_=function(N,b,S,P){var H=N.getContext("2d");H.save();H.lineWidth=1;for(var K=Math.floor(Math.max(0,b-this.tickLabelInterval));K<b+S;K++){H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var C=(K-b)*P;H.beginPath();H.moveTo(C,N.height);var G=this.smallTickHeight;K%this.largeTickInterval===0?G=this.largeTickHeight:K%this.mediumTickInterval===0&&(G=this.mediumTickHeight);H.lineTo(C,N.height-G);H.stroke();K%this.tickLabelInterval===0&&(H.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),H.fillText(DX(K),C+4,12),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.moveTo(C,0),H.lineTo(C,this.aboveRulerHeight),H.stroke())}H.restore()};
_.v.percentToHex_=function(N){N=Math.round(N*255).toString(16);N.length<2&&(N="0"+N);return N};
_.v.drawSpeedLines_=function(N,b,S){var P=N.getContext("2d");P.save();var H=Math.min(25,Math.abs(S)-15)/25,K=N.width*.3*H,C=N.width*-.3,G=N.width*1.3,a=this.aboveRulerHeight;N=N.height;var R=Math.round(4*H),n=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");n.length<7&&(n="#"+n.substring(1,4).repeat(2));var d=this.percentToHex_(.5+H/2);d=n+d;n+="00";if(H>0)for(H=0;H<R;H++){var m=C+Math.random()*(G-C),k=a+Math.random()*(N-a),M=K+b%K,l=P.createLinearGradient(m,k,m+M,k);
S<0?(l.addColorStop(0,d),l.addColorStop(.4,d),l.addColorStop(.9,n)):(l.addColorStop(.1,n),l.addColorStop(.6,d),l.addColorStop(1,d));P.strokeStyle=l;P.lineWidth=1;P.beginPath();P.moveTo(m,k);P.lineTo(m+M,k);P.stroke()}P.restore()};
_.v.getStoryboardForTime_=function(N,b,S){S===void 0&&(S=b.getNumberOfStoryboardLevels()-1);N=b.getStoryboardFrameIndex(N,S);return b.getStoryboardFrame(N,S)};
_.v.drawStoryboardImages_=function(N,b,S,P,H){if(!this.disabled){N=N.getContext("2d");var K=this.getStoryboardForTime_(0,b);if(K){var C=K.width/K.columns;K=K.height/K.rows;var G=C/K,a=this.rulerHeight*G;a=this.tickLabelInterval*(G<this.tickLabelInterval*H/this.rulerHeight?1/Math.floor(this.tickLabelInterval*H/a):Math.round(a/(this.tickLabelInterval*H)));var R=a*H,n=this.rulerHeight,d=R/this.rulerHeight,m=Math.floor(Math.max(0,S-a));for(m-=m%a;m<S+P;m+=a){var k=this.getStoryboardForTime_(m,b),M=this.getPreloadedStoryboard_(k.url);
if(M){var l=(m-S)*H,u=this.aboveRulerHeight,J=k.column*C,Z=k.row*K;if(G<d){var D=n/(R/G);k=C;D*=K;Z+=(K-D)/2}else k=R/(n*G)*C,D=K,J+=(C-k)/2;N.drawImage(M,J,Z,k,D,l,u,R,n)}else this.fetchStoryboardImage_(k)}}}};
_.v.getPreloadedStoryboard_=function(N){return this.storyboardImages_.find(function(b){if(b.src==N)return!0;var S=b.src.indexOf(N);return S!=-1&&S==b.src.length-N.length})};
_.v.fetchStoryboardImage_=function(N){var b=this,S=this.getPreloadedStoryboard_(N.url),P=this.pendingStoryboardImages_[N.url];S||P!==void 0||(S=new Promise(function(H){var K=new Image(N.width,N.height);K.src=N.url;K.onload=function(){H(K)};
K.onerror=function(){H(null)}}),this.pendingStoryboardImages_[N.url]=S,S.then(function(H){H&&b.push("storyboardImages_",H);
return H}).finally(function(){delete b.pendingStoryboardImages_[N.url]}))};
_.v.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.v.timeToPixels_=function(N,b,S){N*=b;return S===void 0||S?N+"px":N};
_.v.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
wW.prototype.drawRuler_=wW.prototype.drawRuler_;wW.prototype.setUpCanvas_=wW.prototype.setUpCanvas_;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],wW.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],wW.prototype,"start",void 0);_.p([_.U({value:30}),_.y("design:type",Number)],wW.prototype,"end",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],wW.prototype,"visible",void 0);_.p([_.U(),_.y("design:type",Object)],wW.prototype,"player_",void 0);_.p([_.U(),_.y("design:type",Number)],wW.prototype,"tickSpacing",void 0);_.p([_.U(),_.y("design:type",Number)],wW.prototype,"windowSizeSec",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],wW.prototype,"rulerWidth",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],wW.prototype,"rulerShift",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],wW.prototype,"canvasReady_",void 0);_.p([_.U({value:function(){return[]}}),
_.y("design:type",Array)],wW.prototype,"storyboardImages_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],wW.prototype,"disabled",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],wW.prototype,"forceRender_",void 0);_.p([_.U({value:1}),_.y("design:type",Number)],wW.prototype,"devicePixelRatio_",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],wW.prototype,"windowSpeed",void 0);
_.p([_.W4("visible","devicePixelRatio_","rulerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wW.prototype,"setUpCanvas_",null);
_.p([_.W4("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.y("design:returntype")],wW.prototype,"drawRuler_",null);_.p([_.J_({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],wW);
_.X(wW,"yt-clip-creation-scrubber-canvas",function(){if(wTL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);wTL=N}N=wTL;return N},
{mode:2});var Nwt;var bK5;var N3=function(){var N=_.z.apply(this,arguments)||this;N.start=0;N.end=30;N.visible=!1;N.draggingLeft_=!1;N.draggingRight_=!1;N.draggingRuler_=!1;N.draggingWindow_=!1;N.seekableStart=0;N.seekableEnd=0;N.rulerWidth_=0;N.rulerShift_=0;N.windowSlideSpeed=0;N.disabled=!1;N.initialized=!1;N.durationAccessibilityLabel="";N.activeLoopRange_=!1;N.rulerDragMouseStart_=0;N.rulerDragRulerStart_=0;N.rulerDragStartTime_=0;N.rulerDragEndTime_=0;N.dragMouseLastX_=0;N.scrollInterval_=null;N.scrubberVe_=null;N.boundHandlers_=
{};N.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return N};
_.F(N3,_.z);_.v=N3.prototype;
_.v.created=function(){var N=this;this.JSC$20593_playerEvents=new Map;this.JSC$20593_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20593_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20593_playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(S){N.boundHandlers_[S]=b[S].bind(N)})};
_.v.attached=function(){this.activeLoopRange_=!1;_.H4(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.H4(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.OW(156731)};
_.v.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.H4(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.H4(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.v.onVisibilityChangedAction_=function(N){var b=this;N.visible&&!this.player_&&(N=_.qE())&&N.getPlayerPromise().then(function(S){b.setPlayer(S)})};
_.v.setPlayer=function(N){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20593_playerEvents);N&&(this.set("player_",N),this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$20593_playerEvents))};
_.v.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.beginHandleDrag_=function(N){this.disabled||(N.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=N.clientX,N.target===_.H4(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():N.target===_.H4(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.v.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.v.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.v.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.v.beginRulerDrag_=function(N){this.disabled||(N.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=N.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.v.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.v.beginWindowScroll_=function(){var N=this;this.scrollInterval_=setInterval(function(){var b=N.windowSlideSpeed;if(b=OOq(N.start,N.boundedRulerStartLimit_())?b-.1:OOq(N.end,N.boundedRulerEndLimit_())?b+.1:0){var S=N.capRulerOffset_(N.rulerShift_+b);S==N.rulerShift_?b=0:(N.set("rulerShift_",S),_.bC(N.hostElement,"set-fixed-length-range",{start:N.start+b,duration:N.end-N.start}))}N.set("windowSlideSpeed",b)},33)};
_.v.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.v.endDrag_=function(){this.logClick();var N=void 0;this.draggingRight_?N=this.end-1:this.draggingLeft_&&(N=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,N);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.v.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.v.updateRulerSize_=function(){this.set("rulerWidth_",_.H4(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.v.handleMouseDrag_=function(N){N.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(N):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(N):this.draggingWindow_&&this.handleWindowDrag_(N))};
_.v.handleRulerDrag_=function(N){N=this.pixelsToTime_(N.clientX-this.rulerDragMouseStart_);N=this.capRulerOffset_(this.rulerDragRulerStart_-N);this.set("rulerShift_",N);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-N);_.bC(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-N)-b})};
_.v.handleWindowDrag_=function(N){var b=N.clientX-this.dragMouseLastX_;this.dragMouseLastX_=N.clientX;N=this.pixelsToTime_(b);_.bC(this.hostElement,"set-fixed-length-range",{start:this.start+N,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.capRulerOffset_=function(N){var b=this.seekableStart-this.pixelsToTime_(16),S=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,N),S)};
_.v.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.v.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.v.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.v.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.v.handleWindowHandleDrag_=function(N){var b=N.clientX-this.dragMouseLastX_;this.dragMouseLastX_=N.clientX;N=this.pixelsToTime_(b);if(this.draggingLeft_){var S=this.start+N;var P=this.end}else this.draggingRight_&&(S=this.start,P=this.end+N);_.bC(this.hostElement,"set-range",{start:S,end:P,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.onVideoProgress_=function(N){this.disabled||(N=this.timeToPixels_(N-this.rulerShift_,this.tickSpacing_),_.H4(this.hostElement).querySelector("#playhead").style.transform="translateX("+N+")")};
_.v.onClipCreationDisable_=function(){this.endDrag_()};
_.v.timeToPixels_=function(N,b,S){N*=b;return S===void 0||S?N+"px":N};
_.v.pixelsToTime_=function(N){return N/this.tickSpacing_};
_.v.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.centerRuler_=function(N,b,S){this.set("rulerShift_",this.capRulerOffset_(N+(b-N)/2-S/2))};
_.v.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.v.updateLoopRange_=function(N,b,S,P,H,K,C){N&&(b&&P&&!S?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(N.pauseVideo(),N.seekTo(H,!1,void 0,void 0,50)):this.draggingRight_?(N.pauseVideo(),N.seekTo(K-.1,!1,void 0,void 0,50)):(C!==void 0?N.seekTo(C,!0,void 0,void 0,50):(b=N.getCurrentTime(),b<H||b>K?N.seekTo(H,!0,void 0,void 0,50):N.seekTo(b,!0,void 0,void 0,50)),N.playVideo()),N.setLoopRange({startTimeMs:H*1E3,endTimeMs:K*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(N.getCurrentTime())):
this.activeLoopRange_&&(N.setLoopRange(null),this.activeLoopRange_=!1))};
_.v.updateHandles_=function(){_.H4(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.H4(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.v.updateRuler_=function(){var N=this.end,b=this.start,S=this.draggableStartLimit_(),P=this.draggableEndLimit_();(b<S-.001||N>P+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.computeDurationLabel_=function(N,b){return N?N.replace("$clip_length",parseFloat(b).toFixed(1)):""};
_.v.computeDuration_=function(N,b){return this.isValidTime_(N)&&this.isValidTime_(b)&&N<b?b-N:0};
_.v.isValidTime_=function(N){return isNaN(parseFloat(N))||N<0?!1:this.player_?N>=this.seekableStart&&N<=this.seekableEnd:!0};
_.v.computeWindowSizeSec_=function(N,b,S){return Math.min((N||12E4)/1E3,S-b)};
_.v.computeTickSpacing_=function(N,b){return b?b/N:1};
_.v.onDragStateChanged_=function(){_.bC(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.v.centerRangeOnTime_=function(N){var b=this.duration;N=s7E(N-b/2,b,this.seekableStart,this.seekableEnd);_.bC(this.hostElement,"set-fixed-length-range",{start:N.start,duration:N.end-N.start})};
_.v.nearlyLessThan_=function(N,b,S){return N+(S===void 0?1E-6:S)<b};
_.v.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var N=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(N,this.start)||this.nearlyLessThan_(this.end,N))&&this.centerRangeOnTime_(N)}};
_.v.onStateChange_=function(N){this.visible&&!this.disabled&&N==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.v.computeDragState_=function(N,b,S,P){return N?"left":b?"right":S?"ruler":P?"window":"none"};
_.v.logClick=function(){var N=_.Qh(),b=_.uZ();N&&b&&this.scrubberVe_&&(_.T("combine_ve_grafts")?_.Ew(_.dG(),this.scrubberVe_,b):_.AZ(N,b,this.scrubberVe_),_.y3(N,this.scrubberVe_))};
N3.prototype.onDragStateChanged_=N3.prototype.onDragStateChanged_;N3.prototype.updateRuler_=N3.prototype.updateRuler_;N3.prototype.updateHandles_=N3.prototype.updateHandles_;N3.prototype.onUpdateLoopRange=N3.prototype.onUpdateLoopRange;N3.prototype.onInitializedChanged_=N3.prototype.onInitializedChanged_;N3.prototype.onVisibleChanged_=N3.prototype.onVisibleChanged_;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],N3.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",Object)],N3.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"start",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"end",void 0);_.p([_.U({computed:"computeDuration_(start, end)"}),_.y("design:type",Number)],N3.prototype,"duration",void 0);
_.p([_.U(),_.y("design:type",String)],N3.prototype,"lengthTemplate",void 0);_.p([_.U({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.y("design:type",String)],N3.prototype,"durationLabel",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"visible",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"player_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"draggingLeft_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"draggingRight_",void 0);
_.p([_.U(),_.y("design:type",Object)],N3.prototype,"draggingRuler_",void 0);_.p([_.U({value:!1}),_.y("design:type",Object)],N3.prototype,"draggingWindow_",void 0);_.p([_.U({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.y("design:type",Number)],N3.prototype,"tickSpacing_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"seekableStart",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"seekableEnd",void 0);
_.p([_.U(),_.y("design:type",Number)],N3.prototype,"windowSizeMs",void 0);_.p([_.U({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.y("design:type",Number)],N3.prototype,"windowSizeSec_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"rulerWidth_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"rulerShift_",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"windowSlideSpeed",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],N3.prototype,"disabled",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"initialized",void 0);_.p([_.U(),_.y("design:type",Object)],N3.prototype,"durationAccessibilityLabel",void 0);_.p([_.U({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.y("design:type",String)],N3.prototype,"dragState",void 0);
_.p([_.W4("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"onVisibleChanged_",null);_.p([_.W4("initialized"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"onInitializedChanged_",null);_.p([_.W4("player_","visible","disabled","initialized","start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"onUpdateLoopRange",null);
_.p([_.W4("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"updateHandles_",null);_.p([_.W4("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"updateRuler_",null);
_.p([_.W4("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],N3.prototype,"onDragStateChanged_",null);_.p([_.J_({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],N3);
_.X(N3,"yt-clip-creation-scrubber-view",function(){if(bK5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Nwt===void 0&&(Nwt=document.createElement("template"));var P=Nwt;S.call(b,P.content.cloneNode(!0),N.content.firstChild);bK5=N}N=bK5;return N},{mode:2});var bO=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};N.startHighlightTimeout=0;N.endHighlightTimeout=0;return N};
_.F(bO,_.z);_.v=bO.prototype;_.v.attached=function(){var N=this;this.startInput.addEventListener("input",function(b){return N.handleStartInput_(b)});
this.endInput.addEventListener("input",function(b){return N.handleEndInput_(b)});
this.startInput.addEventListener("focusout",function(b){return N.handleStartBlur_(b)});
this.endInput.addEventListener("focusout",function(b){return N.handleEndBlur_(b)})};
_.v.setPlayer=function(N){this.set("player_",N)};
_.v.onSetFixedLengthRange_=function(N){var b=N.detail;N=b.start;var S=b.duration,P=b.startLimit;b=b.endLimit;P||(P=this.seekableStart_);b||(b=this.seekableEnd_);N=s7E(N,S,P,b);this.start=N.start;this.end=N.end};
_.v.onSetRange_=function(N){var b=N.detail;N=b.start;var S=b.end,P=b.startLimit;b=b.endLimit;P||(P=this.seekableStart_);b||(b=this.seekableEnd_);if(N=KhQ(N,S,P,b,this.minLengthSec,this.maxLengthSec))this.start=N.start,this.end=N.end};
_.v.updateInputs_=function(){var N=this.end,b=this.start;this.startInput.focused||(this.startInput.value=DX(b,!0));this.endInput.focused||(this.endInput.value=DX(N,!0))};
_.v.handleStartInput_=function(N){N=HUO(N.target.value);if(N===null)this.set("startValid",!1);else{var b=this.end,S=KhQ(N,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("endWillUpdate",S.end!==b),this.set("startValid",S.start===N)):this.set("startValid",!1)}};
_.v.handleEndInput_=function(N){N=HUO(N.target.value);if(N===null)this.set("endValid",!1);else{var b=this.start,S=v9Q(this.start,N,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("startWillUpdate",S.start!==b),this.set("endValid",S.end===N)):this.set("endValid",!1)}};
_.v.handleStartBlur_=function(N){N=HUO(N.target.value);N===null?this.startInput.value=DX(this.start,!0):this.forceUpdateInputs_(KhQ(N,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.handleEndBlur_=function(N){N=HUO(N.target.value);N===null?this.endInput.value=DX(this.end,!0):this.forceUpdateInputs_(v9Q(this.start,N,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.forceUpdateInputs_=function(N){N&&(this.start=N.start,this.end=N.end);this.startInput.value=DX(this.start,!0);this.endInput.value=DX(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.v.initializeClipRange_=function(){var N=this.seekableEnd_,b=this.seekableStart_,S=this.visible_,P=this.player_;if(!P||!S||b===null||!N)this.set("initialized",!1);else if(!this.initialized){var H=P.getCurrentTime(),K=this.getDefaultLengthSec_();S=P.getVideoData();var C=P.getPlayerState()==1,G=S.isLive;K=Math.min(K,N-b);H=Math.max(0,H);N=G?v9Q(H-K,H,b,N,this.minLengthSec,this.maxLengthSec):C?s7E(H-K/2,K,b,N):s7E(H,K,b,N);this.start=N.start;this.end=N.end;this.set("initialized",!0);S.isLive&&P.seekTo(N.start);
this.startInput.value=DX(this.start,!0);this.endInput.value=DX(this.end,!0)}};
_.v.onStartChanged_=function(){var N=this;_.bC(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){N.set("highlightStart",!1);N.startHighlightTimeout=0;N.oldStart=N.start},3E3))};
_.v.onEndChanged_=function(){var N=this;_.bC(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){N.set("highlightEnd",!1);N.endHighlightTimeout=0;N.oldEnd=N.end},3E3))};
_.v.onVisibilityChangedAction_=function(N){var b=this;this.set("visible_",N.visible);this.visible_&&!this.player_&&(N=_.qE())&&N.getPlayerPromise().then(function(S){b.setPlayer(S)})};
_.v.computeMinLengthSec_=function(N){return N/1E3||5};
_.v.computeMaxLengthSec_=function(N){return N/1E3||60};
_.v.computeDefaultLengthSec_=function(N){return N/1E3};
_.v.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.v.computeSeekableStart_=function(N,b){return N&&b?N.getProgressState(1).seekableStart:0};
_.v.computeSeekableEnd_=function(N,b){return N&&b?N.getProgressState(1).seekableEnd:0};
_.v.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.v.onDragState_=function(N){this.set("highlightStart",N.detail.startChanging);this.set("highlightEnd",N.detail.endChanging)};
bO.prototype.onDragState_=bO.prototype.onDragState_;bO.prototype.onEndChanged_=bO.prototype.onEndChanged_;bO.prototype.onStartChanged_=bO.prototype.onStartChanged_;bO.prototype.initializeClipRange_=bO.prototype.initializeClipRange_;bO.prototype.updateInputs_=bO.prototype.updateInputs_;bO.prototype.onSetRange_=bO.prototype.onSetRange_;bO.prototype.onSetFixedLengthRange_=bO.prototype.onSetFixedLengthRange_;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],bO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bO.prototype,"data",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],bO.prototype,"start",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],bO.prototype,"startValid",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],bO.prototype,"startWillUpdate",void 0);_.p([_.U({value:30}),_.y("design:type",Number)],bO.prototype,"end",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],bO.prototype,"endValid",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],bO.prototype,"endWillUpdate",void 0);_.p([_.U({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.y("design:type",Number)],bO.prototype,"minLengthSec",void 0);
_.p([_.U({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.y("design:type",Number)],bO.prototype,"maxLengthSec",void 0);_.p([_.U({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.y("design:type",Number)],bO.prototype,"defaultLengthSec",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],bO.prototype,"visible_",void 0);_.p([_.U(),_.y("design:type",Object)],bO.prototype,"player_",void 0);
_.p([_.U({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.y("design:type",Number)],bO.prototype,"seekableStart_",void 0);_.p([_.U({computed:"computeSeekableEnd_(player_, visible_)"}),_.y("design:type",Number)],bO.prototype,"seekableEnd_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],bO.prototype,"initialized",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],bO.prototype,"disabled",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],bO.prototype,"highlightStart",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],bO.prototype,"highlightEnd",void 0);_.p([_.dq("#start"),_.y("design:type",HTMLInputElement)],bO.prototype,"startInput",void 0);_.p([_.dq("#end"),_.y("design:type",HTMLInputElement)],bO.prototype,"endInput",void 0);
_.p([_.RA("set-fixed-length-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],bO.prototype,"onSetFixedLengthRange_",null);_.p([_.RA("set-range"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],bO.prototype,"onSetRange_",null);_.p([_.W4("start","end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bO.prototype,"updateInputs_",null);
_.p([_.W4("player_","visible_","seekableStart_","seekableEnd_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bO.prototype,"initializeClipRange_",null);_.p([_.W4("start"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bO.prototype,"onStartChanged_",null);_.p([_.W4("end"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bO.prototype,"onEndChanged_",null);
_.p([_.RA("clips-drag-state"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],bO.prototype,"onDragState_",null);_.p([_.J_({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],bO);
_.X(bO,"yt-clip-creation-scrubber-renderer",function(){if(qtE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;hNq===void 0&&(hNq=document.createElement("template"));var P=hNq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qtE=N}N=qtE;return N},{mode:2});var Sb=function(){var N=_.z.apply(this,arguments)||this;N.player_=null;N.JSC$20607_playerEvents=new Map;N.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return N};
_.F(Sb,_.z);_.v=Sb.prototype;_.v.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.v.created=function(){this.JSC$20607_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20607_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20607_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20607_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.v.detached=function(){this.setPlayer(null)};
_.v.onVisibilityChangedAction_=function(N){var b=this,S;if((S=this.data)==null?0:S.externalVideoId){var P;this.videoId=(P=this.data)==null?void 0:P.externalVideoId}this.getPlayer().then(function(H){if(N.visible)b.returnTime=H.getCurrentTime(),b.isAtLiveHead=H.getProgressState().isAtLiveHead;else{var K=b.returnTime;b.isAtLiveHead&&(K=Number.POSITIVE_INFINITY);H.seekTo(K,void 0,void 0,void 0,51)}})};
_.v.getPlayer=function(){var N=this;if(!this.player_){var b=_.qE();if(b)return b.getPlayerPromise().then(function(S){N.setPlayer(S);return S})}return Promise.resolve(this.player_)};
_.v.setPlayer=function(N){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20607_playerEvents);if(N){this.player_=N;var b;((b=this.data)==null?0:b.externalVideoId)||this.set("videoId",N.getVideoData().video_id||"");var S;(N==null?void 0:(S=N.getPresentingPlayerType)==null?void 0:S.call(N))===2&&(this.set("isAdPlaying",!0),_.St(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$20607_playerEvents)}};
_.v.ready=function(){_.H4(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.v.onTitleChanged_=function(N){this.set("titleValue",N.detail.title)};
_.v.onStartChanged_=function(N){this.set("start",N.detail.start)};
_.v.onEndChanged_=function(N){this.set("end",N.detail.end)};
_.v.onTitleValidChanged_=function(N){this.set("titleValid",N.detail.valid)};
_.v.onStartValidChanged_=function(N){this.set("startValid",N.detail.valid)};
_.v.onEndValidChanged_=function(N){this.set("endValid",N.detail.valid)};
_.v.onVideoDataChange_=function(){var N;if((N=this.data)==null||!N.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}};
_.v.computeFormValid_=function(N,b,S,P){return!!(N&&b&&S&&P)};
_.v.computeCancelButton_=function(N,b,S){return N&&_.t(N,_.rU)?{buttonRenderer:Object.assign({},_.t(N,_.rU),{isDisabled:b||S})}:null};
_.v.computeSubmitButton_=function(N,b,S){return N&&_.t(N,_.rU)?{buttonRenderer:Object.assign({},_.t(N,_.rU),{command:void 0,isDisabled:!this.formValid||b||S})}:null};
_.v.computeSubmitCommand_=function(N){return N||null};
_.v.onSubmit_=function(N){var b=this;N.stopPropagation();N.preventDefault();this.submitCommand_&&(N={},N.comment_text=this.titleValue,N.clip_external_video_id=this.videoId,N.clip_offset_ms=parseInt(this.start*1E3,10),N.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.HN(this.hostElement,[this.submitCommand_,N]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))};
_.v.playerAdStartHandler_=function(){_.St(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler_=function(){_.St(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.v.onVideoProgress_=function(){var N=this;this.getPlayer().then(function(b){var S,P=(b==null?void 0:(S=b.getPresentingPlayerType)==null?void 0:S.call(b))===2;N.isAdPlaying!==P&&(P?N.playerAdStartHandler_():N.playerAdEndHandler_())})};
Sb.prototype.onEndValidChanged_=Sb.prototype.onEndValidChanged_;Sb.prototype.onStartValidChanged_=Sb.prototype.onStartValidChanged_;Sb.prototype.onTitleValidChanged_=Sb.prototype.onTitleValidChanged_;Sb.prototype.onEndChanged_=Sb.prototype.onEndChanged_;Sb.prototype.onStartChanged_=Sb.prototype.onStartChanged_;Sb.prototype.onTitleChanged_=Sb.prototype.onTitleChanged_;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",Object)],Sb.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Sb.prototype,"data",void 0);_.p([_.U({value:""}),_.y("design:type",String)],Sb.prototype,"titleValue",void 0);
_.p([_.U({value:!1}),_.y("design:type",Boolean)],Sb.prototype,"titleValid",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],Sb.prototype,"start",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Sb.prototype,"startValid",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],Sb.prototype,"end",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Sb.prototype,"endValid",void 0);_.p([_.U({value:""}),_.y("design:type",String)],Sb.prototype,"videoId",void 0);
_.p([_.U({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.y("design:type",Boolean)],Sb.prototype,"formValid",void 0);_.p([_.U({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.y("design:type",Object)],Sb.prototype,"submitButton_",void 0);_.p([_.U({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.y("design:type",Object)],Sb.prototype,"submitCommand_",void 0);
_.p([_.U({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.y("design:type",Object)],Sb.prototype,"cancelButton_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Sb.prototype,"isLoading_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Sb.prototype,"isAdPlaying",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],Sb.prototype,"returnTime",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Sb.prototype,"isAtLiveHead",void 0);
_.p([_.RA("title-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onTitleChanged_",null);_.p([_.RA("start-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onStartChanged_",null);_.p([_.RA("end-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onEndChanged_",null);
_.p([_.RA("title-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onTitleValidChanged_",null);_.p([_.RA("start-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onStartValidChanged_",null);_.p([_.RA("end-valid-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Sb.prototype,"onEndValidChanged_",null);
_.p([_.J_({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Sb);
_.X(Sb,"yt-clip-creation-renderer",function(){if($QL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;eNq===void 0&&(eNq=document.createElement("template"));var P=eNq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$QL=N}N=$QL;return N},{mode:2});var Pb=function(){return _.z.apply(this,arguments)||this};
_.F(Pb,_.z);Pb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{clipAttributionRenderer:"ytd-clip-attribution-renderer",clipCreationRenderer:"yt-clip-creation-renderer"}},"data.footer":{id:"footer",mapping:{clipSectionFooterRenderer:"ytd-clip-section-footer-renderer"}}}};
Pb.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(N){return N.hasOwnProperty("clipCreationRenderer")})&&_.St(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Pb.prototype.onPanelContentVisibleChanged=Pb.prototype.onPanelContentVisibleChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],Pb.prototype,"ytVisibilityBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Pb.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Pb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Pb.prototype,"panelContentVisible",void 0);_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pb.prototype,"onPanelContentVisibleChanged",null);_.p([_.Uj({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Pb);
_.X(Pb,"ytd-clip-section-renderer",function(){if(Ivi!==void 0)return Ivi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ivi=N},{mode:1});var S46;var PgL;var HKO;var s1E=function(){return _.z.apply(this,arguments)||this};
_.F(s1E,_.z);_.p([_.U(),_.y("design:type",Object)],s1E.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],s1E.prototype,"ytRendererBehavior",void 0);_.p([_.Uj({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],s1E);
_.X(s1E,"ytd-hashtag-grid-tile-renderer",function(){if(HKO!==void 0)return HKO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return HKO=N},{mode:1});var Hb=function(){return _.z.apply(this,arguments)||this};
_.F(Hb,_.z);Hb.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Hb.prototype.updateRichGridTrendingHashtagsVisibility=function(){var N,b;if(((N=this.data)==null||!N.isExpanded)&&(b=this.data)!=null&&b.tiles){N=this.data.tiles.length;b=N>this.richGridItemsPerRow?this.richGridItemsPerRow+1:N;var S=Math.ceil(N/b);this.fullyVisibleRows=N%b===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
Hb.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Hb.prototype.updateRichGridTrendingHashtagsVisibility=Hb.prototype.updateRichGridTrendingHashtagsVisibility;_.p([_.U(),_.y("design:type",Object)],Hb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],Hb.prototype,"fullyVisibleRows",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Hb.prototype,"isShowMoreVisible",void 0);_.p([_.U({selector:_.xG,value:0}),_.y("design:type",Number)],Hb.prototype,"richGridItemsPerRow",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Hb.prototype,"ytdReduxBehavior",void 0);_.p([_.W4("data","richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hb.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.p([_.Uj({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Hb);
_.X(Hb,"ytd-hashtag-grid-shelf-renderer",function(){if(PgL!==void 0)return PgL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PgL=N},{mode:1});var KFE;var viE;var OKq=0,sg=function(){var N=_.z.call(this)||this;N.selected=!1;N.isOverlay=!1;N.inputId="toggle-option-"+OKq;OKq++;return N};
_.F(sg,_.z);sg.prototype.onTap=function(){_.bC(this.hostElement,"ytd-toggle-option-clicked")};
_.p([_.U(),_.y("design:type",String)],sg.prototype,"label",void 0);_.p([_.U(),_.y("design:type",String)],sg.prototype,"inputId",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sg.prototype,"selected",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sg.prototype,"isOverlay",void 0);_.p([_.Uj({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.y("design:paramtypes",[])],sg);
_.X(sg,"ytd-toggle-option-renderer",function(){if(viE!==void 0)return viE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return viE=N},{mode:1});var KP=function(){var N=_.z.apply(this,arguments)||this;N.isToggleOption=!1;N.isOverlay=!1;return N};
_.F(KP,_.z);KP.prototype.onTap=function(N){N.preventDefault();this.data&&(N=!this.data.checked,this.set("data.checked",N),_.bC(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:N,value:this.data.value}))};
_.d0.Object.defineProperties(KP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
KP.prototype.onTap=KP.prototype.onTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KP.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],KP.prototype,"isToggleOption",void 0);_.p([_.U(),_.y("design:type",Object)],KP.prototype,"isOverlay",void 0);_.p([_.f("data.responseText"),_.y("design:type",String),_.y("design:paramtypes",[])],KP.prototype,"label",null);
_.p([_.RA("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],KP.prototype,"onTap",null);_.p([_.Uj({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],KP);
_.X(KP,"ytd-checkbox-survey-option-renderer",function(){if(KFE!==void 0)return KFE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KFE=N},{mode:1});var Cgq;var GCQ;var vb=function(){var N=_.z.apply(this,arguments)||this;N.checked=!1;N.isToggleOption=!1;return N};
_.F(vb,_.z);vb.prototype.onTap=function(){this.data&&(this.checked?_.St(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.St(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
vb.prototype.onTap=vb.prototype.onTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vb.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],vb.prototype,"checked",void 0);_.p([_.U(),_.y("design:type",Object)],vb.prototype,"isToggleOption",void 0);_.p([_.RA("ytd-toggle-option-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],vb.prototype,"onTap",null);
_.p([_.Uj({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],vb);
_.X(vb,"ytd-radio-button-survey-option-renderer",function(){if(GCQ!==void 0)return GCQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GCQ=N},{mode:1});var Og=function(){var N=_.z.apply(this,arguments)||this;N.disableAnimation=!1;N.isToggleOption=!0;N.followUpSurveyCommand=null;N.selectedRatingEndpoint=null;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;N.styleOverrideAttribute=!0;N.isDarkMode=!1;N.isSubmitted=!1;N.roundedContainer=!0;N.improveShortsResponseRate=_.T("web_improve_shorts_response_rate");N.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(Og,_.z);_.v=Og.prototype;
_.v.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.v.attached=function(){var N=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(S){var P;if((P=S[0])!=null&&P.isIntersecting){_.W7().reportShown(N.hostElement);var H;(H=N.intersectionObserver)==null||H.unobserve(N.hostElement)}},{rootMargin:"0px",
threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)};
_.v.onDarkModeToggledAction=function(N){this.isDarkMode=N};
_.v.dataChanged=function(){var N;if(((N=this.data)==null?void 0:N.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var S,P,H,K;this.darkColorPalette=(S=this.data)==null?void 0:(P=S.inlineContent)==null?void 0:(H=P.compactVideoRenderer)==null?void 0:(K=H.thumbnail)==null?
void 0:K.darkColorPalette;var C,G,a,R;this.lightColorPalette=(C=this.data)==null?void 0:(G=C.inlineContent)==null?void 0:(a=G.compactVideoRenderer)==null?void 0:(R=a.thumbnail)==null?void 0:R.lightColorPalette;var n,d;if(((n=this.data)==null?0:(d=n.inlineContent)==null?0:d.compactVideoRenderer)&&this.isShortsStyle){var m,k,M,l;N=_.NE((m=this.data)==null?void 0:(k=m.inlineContent)==null?void 0:(M=k.compactVideoRenderer)==null?void 0:(l=M.thumbnail)==null?void 0:l.thumbnails);_.rq(this.hostElement,
{"--yt-background-url":"url("+N+")"})}};
_.v.handleRequestCompletion=function(){this.hostElement.hidden&&_.bC(this.hostElement,"yt-dismissible-item-dismissed")};
_.v.onPopupClosed=function(N){var b;((b=N.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.St(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.v.handleInlineSurveyRatingSelect=function(N,b){var S=this;this.selectedRatingEndpoint=N;this.followUpSurveyCommand=b;this.expanded=!!N;this.getOptionRenderers().forEach(function(P,H){S.notifyPath("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked");S.set("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),N=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.St(this.hostElement,"yt-reel-non-video-content-dismissal-command",[N]))};
_.v.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.St(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var N,b=(N=this.data)==null?void 0:N.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.v.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.St(this.hostElement,"yt-close-popup-action"))};
_.v.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var N=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{N=this.getOptionRenderers().filter(function(P){return P.checked});
if(N.length===0)return;N=N.map(function(P){return P.responseEndpoint})}var b=[];
N.forEach(function(P,H){H!==0&&(P=_.t(P,_.ZM))&&P.feedbackToken&&b.push(P.feedbackToken)});
if(N=N[0]){var S={};b.length>0&&(S.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(N,{form:S})}}};
_.v.getOptionRenderers=function(){var N=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){N.isSingleSelect=!!_.t(b,$hi);return N.isSingleSelect?_.t(b,$hi):_.t(b,hyO)}):[]};
_.v.handleInlineSurveyOptionSelect=function(N){N=this.optionSelector.indexOf(N);N!==-1&&this.optionSelector.selectIndex(N)};
_.v.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.v.maybeGetBackgroundColor=function(N){return this.isDarkMode?N.section2Color:N.section3Color};
_.v.colorPaletteChanged=function(){var N=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;N=N&&this.maybeGetBackgroundColor(N);this.dismissibleEl.style.backgroundColor=!N||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.xn(N)};
_.d0.Object.defineProperties(Og.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Og.prototype.colorPaletteChanged=Og.prototype.colorPaletteChanged;Og.prototype.onPopupClosed=Og.prototype.onPopupClosed;Og.prototype.handleRequestCompletion=Og.prototype.handleRequestCompletion;Og.prototype.dataChanged=Og.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Og.prototype,"actionHandlerBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Og.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],Og.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.dq("#follow-up-survey-options"),_.y("design:type",Object)],Og.prototype,"optionSelector",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],Og.prototype,"disableAnimation",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"isToggleOption",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"followUpSurveyCommand",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"selectedRatingEndpoint",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Og.prototype,"expanded",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Og.prototype,"isSlimlineSurveyFollowUp",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Og.prototype,"isShortsStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Og.prototype,"styleOverrideAttribute",void 0);_.p([_.U(),_.y("design:type",Boolean)],Og.prototype,"isSingleSelect",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"isDarkMode",void 0);
_.p([_.U(),_.y("design:type",Object)],Og.prototype,"lightColorPalette",void 0);_.p([_.U(),_.y("design:type",Object)],Og.prototype,"darkColorPalette",void 0);_.p([_.f("selectedRatingEndpoint","isShortsStyle"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Og.prototype,"isOptionSelected",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Og.prototype,"roundedContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Og.prototype,"improveShortsResponseRate",void 0);_.p([_.dq("#dismissible"),_.y("design:type",HTMLElement)],Og.prototype,"dismissibleEl",void 0);_.p([_.dq("#dismiss-button yt-icon-button"),_.y("design:type",HTMLElement)],Og.prototype,"dismissButtonEl",void 0);_.p([_.dq("#inline-survey-header yt-icon-button"),_.y("design:type",HTMLElement)],Og.prototype,"inlineHeaderDismissButtonEl",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Og.prototype,"dataChanged",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Og.prototype,"handleRequestCompletion",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Og.prototype,"onPopupClosed",null);
_.p([_.W4("darkColorPalette","lightColorPalette","isDarkMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Og.prototype,"colorPaletteChanged",null);_.p([_.Uj({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Og);
_.X(Og,"ytd-inline-survey-renderer",function(){if(Cgq!==void 0)return Cgq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Cgq=N},{mode:1});var ry6;var cy5;var CP=function(){var N=_.z.apply(this,arguments)||this;N.visibleVideos=[];N.hiddenVideos=[];N.modern=_.T("web_modern_buttons");N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(CP,_.z);_.v=CP.prototype;_.v.attached=function(){var N=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.onDarkModeToggledAction(N)};
_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v.dataChanged=function(){var N=this;this.requestElementsPerRow();var b,S;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(S=this.data)==null?void 0:S.lightColorData;var P;if((P=this.currentColorPalette)==null?0:P.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.W_(this,function(){N.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.computeIsFirstFeedItem=function(N){return N};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N);this.data&&(this.currentColorPalette=N?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.v.getCurrentLogo=function(N,b){if(N)return b?N.darkLogoImage:N.lightLogoImage};
_.v.computeTitleStyle=function(N){var b;if((b=this.data)!=null&&b.title&&N&&N.textPrimary!==void 0)return"color:"+_.xn(N.textPrimary)+";"};
_.v.computeSubtitleStyle=function(N){var b;if((b=this.data)!=null&&b.subtitle&&N&&N.textSecondary!==void 0)return"color:"+_.xn(N.textSecondary)+";"};
_.v.computeDismissIconStyle=function(N){if(this.data&&this.data.dismissButton&&N&&N.textPrimary!==void 0)return"--yt-button-color:"+_.xn(N.textPrimary)+";"};
_.v.computeOverflowButtonStyle=function(N){if(this.data&&this.data.overflowButton&&N&&N.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.xn(N.textPrimary)+";--yt-spec-icon-active-other:"+_.xn(N.textPrimary)+";"};
_.v.computeBackgroundStyle=function(N){if(N&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.NE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&(b+='background-image:url("'+S+'");')}N.backgroundColor!==void 0&&(b+="background-color:"+_.o3(N.backgroundColor)+";");return b}};
_.v.computeButton=function(){var N,b=Object.assign({},_.t((N=this.data)==null?void 0:N.showMoreButton,_.rU));if(this.modern&&b){b.style="STYLE_MONO_OUTLINE";var S;if(N=(S=this.currentColorPalette)==null?void 0:S.textPrimary)b.colorData={basicColorPaletteData:{foregroundTitleColor:N,borderColor:N}}}return b};
_.v.shouldShowBottomButton=function(N,b){return!(N==null?0:N.header)&&!(N==null||!N.primaryButton)&&b<3};
_.v.checkExpanded=function(N){this.isExpanded=N&&N.content?this.hiddenVideos.length===0:!0};
_.v.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.v.getLogoHeight=function(N){return this.logoWithPadding(N)?"26":"20"};
_.v.getLogoImageId=function(N){return this.logoWithPadding(N)?"logo-image-with-padding":"logo-image"};
_.v.computeHasSectionHeader=function(N){return!!N.header};
_.v.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var N;if((N=this.data.primaryButton)==null?0:N.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var S,P;((S=this.data)==null?0:(P=S.primaryButton)==null?0:P.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.v.setVisibleVideos=function(N){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?N?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.v.setHasMovieRenderer=function(){var N;if((N=this.data)!=null&&N.content){var b;this.hasMovieRenderer=!!_.t((b=this.data)==null?void 0:b.content[0],_.m$c)}else this.hasMovieRenderer=!1};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var N=_.O(this.hiddenMediaRenderers),b=N.next();!b.done;b=N.next())b.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(N=_.H4(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&N.focus()}};
_.v.updateTitleSpec=function(){var N;(N=this.data)!=null&&N.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.v.logoWithPadding=function(N){var b,S,P;return(N=(b=this.getCurrentLogo(N,this.isDarkTheme))==null?void 0:(S=b.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&N%31===0?!0:!1};
_.v.onUpdateElementsPerRowAction=function(N,b,S){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N);S&&this.slimItemsPerRow!==S&&(this.slimItemsPerRow=S)};
CP.prototype.slimItemsPerRowChanged=CP.prototype.slimItemsPerRowChanged;CP.prototype.elementsPerRowChanged=CP.prototype.elementsPerRowChanged;CP.prototype.dataChanged=CP.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],CP.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],CP.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],CP.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CP.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],CP.prototype,"currentColorPalette",void 0);_.p([_.U(),_.y("design:type",Array)],CP.prototype,"visibleVideos",void 0);_.p([_.U(),_.y("design:type",Array)],CP.prototype,"hiddenVideos",void 0);
_.p([_.U(),_.y("design:type",Object)],CP.prototype,"primaryButton",void 0);_.p([_.U({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],CP.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],CP.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],CP.prototype,"isExpanded",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],CP.prototype,"largeTitle",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],CP.prototype,"hasMovieRenderer",void 0);_.p([_.U(),_.y("design:type",Number)],CP.prototype,"slimItemsPerRow",void 0);_.p([_.U(),_.y("design:type",Boolean)],CP.prototype,"showLightVideoMetadata",void 0);_.p([_.U(),_.y("design:type",Boolean)],CP.prototype,"showDarkVideoMetadata",void 0);_.p([_.U(),_.y("design:type",Number)],CP.prototype,"videoMetadataColor",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],CP.prototype,"miniMode",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],CP.prototype,"isFirstFeedItem",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.y("design:type",Boolean)],CP.prototype,"hasSectionHeader",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],CP.prototype,"roundedContainer",void 0);_.p([_.md("#visible-video-container ytd-rich-grid-media"),_.y("design:type",Array)],CP.prototype,"visibleMediaRenderers",void 0);_.p([_.md("#hidden-video-container ytd-rich-grid-media"),_.y("design:type",Array)],CP.prototype,"hiddenMediaRenderers",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],CP.prototype,"modern",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CP.prototype,"dataChanged",null);_.p([_.W4("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CP.prototype,"elementsPerRowChanged",null);_.p([_.W4("slimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CP.prototype,"slimItemsPerRowChanged",null);
_.p([_.Uj({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],CP);
_.X(CP,"ytd-brand-video-shelf-renderer",function(){if(cy5!==void 0)return cy5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return cy5=N},{mode:1});var a8Q;var GV=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(GV,_.z);_.v=GV.prototype;_.v.attached=function(){var N=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.onDarkModeToggledAction(N)};
_.v.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.v.dataChanged=function(){this.requestElementsPerRow();var N,b;this.currentColorPalette=this.isDarkTheme?(N=this.data)==null?void 0:N.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.v.computeIsFirstFeedItem=function(N){return N};
_.v.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N);this.data&&(this.currentColorPalette=N?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(N),this.updateButtonPalette())};
_.v.shouldShowThumbnailInMetadata=function(N){return N<=1};
_.v.computeVideoMetadataColor=function(){if(this.data){var N;if((N=this.currentColorPalette)==null?0:N.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.v.computeTitleStyle=function(N){var b;if((b=this.data)!=null&&b.title&&N&&N.textPrimary!==void 0)return"color:"+_.xn(N.textPrimary)+";"};
_.v.computeSubtitleStyle=function(N){var b;if((b=this.data)!=null&&b.subtitle&&N&&N.textSecondary!==void 0)return"color:"+_.xn(N.textSecondary)+";"};
_.v.computeOverflowButtonStyle=function(N){if(this.data&&this.data.overflowButton&&N.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.xn(N.textPrimary)+";--yt-spec-icon-active-other:"+_.xn(N.textPrimary)+";"};
_.v.computeBackgroundStyle=function(N){if(N&&this.data){var b="";N.backgroundColor!==void 0&&(b+="background-color:"+_.o3(N.backgroundColor)+";");return b}};
_.v.computeHasOverflowButton=function(N){return!!N.overflowButton};
_.v.updateButtonPalette=function(){if(this.data){var N;if((N=this.data.primaryButton)==null?0:N.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var S;((S=this.currentColorPalette)==null?0:S.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
_.v.updateTitleSpec=function(){var N;(N=this.data)!=null&&N.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.v.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
GV.prototype.elementsPerRowChanged=GV.prototype.elementsPerRowChanged;GV.prototype.dataChanged=GV.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],GV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],GV.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],GV.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],GV.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],GV.prototype,"currentColorPalette",void 0);_.p([_.U(),_.y("design:type",Object)],GV.prototype,"primaryButton",void 0);
_.p([_.U({reflectToAttribute:!0,value:3}),_.y("design:type",Number)],GV.prototype,"elementsPerRow",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],GV.prototype,"isDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],GV.prototype,"titleSize",void 0);_.p([_.U(),_.y("design:type",Number)],GV.prototype,"videoMetadataColor",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],GV.prototype,"miniMode",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.y("design:type",Boolean)],GV.prototype,"isFirstFeedItem",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],GV.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Boolean)],GV.prototype,"hasOverflowButton",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GV.prototype,"dataChanged",null);_.p([_.W4("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],GV.prototype,"elementsPerRowChanged",null);_.p([_.Uj({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],GV);
_.X(GV,"ytd-brand-video-singleton-renderer",function(){if(a8Q!==void 0)return a8Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return a8Q=N},{mode:_.sZ("kevlar_poly_si_batch_j070")?1:2});var RBE;var WFJ=_.A(function(N){var b=N.data;return _.c(_.gG,{data:function(){return b().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(b().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var S=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":S=88;break a;default:S=88}return S},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Gh"),dx_=_.A(function(N){var b=N.metadataRow;
var S=N.delimiter;return _.c(_.zj,{each:function(){return b().textParts||[]},
keyBy:"INDEX"},function(P,H){return _.c(_.nM,null,_.c(_.mD,{text:P,noWrap:!0,userInput:!0}),_.c(niq,{delimiter:S,max:function(){return b().textParts.length},
index:H}))})},"Hh"),niq=_.A(function(N){var b=N.delimiter;
var S=N.max;var P=N.index;return _.c(_.W,{cond:function(){return(b==null?void 0:b())&&S()-1>P()},
then:function(){return _.c("span",null,b)}})},"Ih"),mxt=_.A(function(N){var b=N.data;
N={};return _.c("yt-profile-page-header-information-view-model",{class:_.KU("profilePageHeaderInformationViewModelHost",(N.profilePageHeaderInformationViewModelMobile=!1,N))},_.c(_.W,{cond:function(){return b().onTap},
then:function(){return _.c(_.xg,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.UZ(b().onTap)}},_.c(_.kY,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:WFJ}))},
else:function(){return _.c("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.c(_.kY,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:WFJ}))}}),_.c("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.c(_.W,{cond:function(){return b().onTap},
then:function(){return _.c(_.kY,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(S){var P=S.data;
return _.c(_.xg,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.UZ(P().onTap)}},_.c(_.mD,{text:function(){return P().title}}))}})},
else:function(){return _.c(_.kY,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(S){var P=S.data;
return _.c(_.mD,{text:function(){return P().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.c(_.kY,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(S){var P=S.data;
return _.c(_.W,{cond:function(){return P().metadataRows},
then:function(H){return _.c("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.c(_.zj,{each:H,keyBy:"INDEX"},function(K,C){return _.c(_.nM,null,_.c(dx_,{metadataRow:K,delimiter:" \u2022 "}),_.c(niq,{delimiter:" \u2022 ",max:function(){return H().length},
index:C}))}))}})}})))},"Jh");
mxt.idomCompat=!0;_.qu(mxt,"yt-profile-page-header-information-view-model",{props:{data:_.kg}});var rr=function(){return _.z.apply(this,arguments)||this};
_.F(rr,_.z);rr.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rr.prototype,"data",void 0);_.p([_.Uj({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],rr);
_.X(rr,"ytd-effect-pivot-header-view-model",function(){if(RBE!==void 0)return RBE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return RBE=
N},{mode:1});var kCL;var cb=function(){return _.z.apply(this,arguments)||this};
_.F(cb,_.z);cb.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cb.prototype,"data",void 0);_.p([_.Uj({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],cb);
_.X(cb,"ytd-source-pivot-header-renderer",function(){if(kCL!==void 0)return kCL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return kCL=N},{mode:1});var Tw_=_.A(function(N){var b=N.data;var S=function(){var P;return _.o2((P=b())==null?void 0:P.rendererContext)};
N={};return _.c("content-list-item-view-model",{el:_.VN(_.iK(function(){return b().rendererContext})),
class:_.KU("ytContentListItemViewModelHost",(N.ytContentListItemViewModelTappable=S,N)),role:function(){return S()?"listitem":void 0},
tabindex:function(){return S()?0:void 0}},_.c("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.c("div",{class:"ytContentListItemViewModelImageContainer"},_.c(_.W,{cond:function(){return b().image},
then:function(P){return _.c(_.gG,{data:P,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.c(_.kY,{data:function(){var P;
return(P=b())==null?void 0:P.avatar}},{avatarViewModel:_.CH})),_.c("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.c("div",{class:_.KU("ytContentListItemViewModelTitle",function(){a:{switch(b().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var P="ytContentListItemViewModelProminentTitle";
break a}P=void 0}return P})},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytContentListItemViewModelMetadata"},_.c(_.kY,{data:function(){return b().metadata}},{contentMetadataViewModel:function(P){return _.c(_.zg,{data:P.data,
layout:1})}})))),_.c("div",{class:"ytContentListItemViewModelActionButton"},_.c(_.kY,{data:function(){var P;
return(P=b())==null?void 0:P.actionButton}},{buttonViewModel:_.j$,
toggleButtonViewModel:_.Hc})))},"Kh");var tPn=_.A(function(N){var b=N.data,S=function(){var H;return(H=b())==null?void 0:H.description},P=function(){var H;
return(H=b())==null?void 0:H.title};
return _.c("ytfc-youth-basic-section-header-view-model",{class:_.KU("ytfcYouthBasicSectionHeaderViewModelHost",N.className)},_.c("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.c(_.kY,{data:function(){var H;return(H=b())==null?void 0:H.avatar}},{avatarViewModel:_.CH}),_.c(_.W,{cond:function(){var H;
return _.EW((H=b())==null?void 0:H.themedImage)},
then:function(H){return _.c(_.gG,{data:H,alt:function(){var K,C;return(C=(K=P())==null?void 0:K.content)!=null?C:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.c("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.c(_.W,{cond:P,
then:function(){return _.c(_.mD,{text:P,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.c("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.c(_.kY,{data:function(){var H;
return(H=b())==null?void 0:H.bottomBadge}},{badgeViewModel:function(H){return _.c("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.c(_.LH,{data:H.data}))}}),_.c(_.W,{cond:S,
then:function(){return _.c(_.mD,{text:S,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Lh");var MPa=_.A(function(N){var b=N.data;return _.c("ytfc-youth-section-body-view-model",{class:_.KU("ytfcYouthSectionBodyViewModelHost",N.className)},_.c(_.kY,{data:function(){var S;return(S=b())==null?void 0:S.topContent}},{avatarStackViewModel:function(S){return _.c(_.rZ,{data:S.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.c(_.mD,{text:function(){var S;
return(S=b())==null?void 0:S.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Mh");var FF_=_.A(function(N){var b=_.O(_.QF(!1,void 0,"SrK51e")),S=b.next().value,P=b.next().value,H=function(){return N.data().inlineExpansionEntityKey},K=_.nf(vRa,H),C=function(){if(N.isSelected!==void 0)return N.isSelected();
if(H()){var a;return(a=K())==null?void 0:a.expanded}return S()};
b={};var G={};return _.c("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Ob(function(){N.isSelected!==void 0||H()||P(!S())})},_.c("div",{class:"ytInlineExpanderViewModelHeader"},_.c(_.kY,{data:function(){return N.data().headerContent}},{youthBasicSectionHeaderViewModel:tPn}),_.c("div",{class:_.KU("ytInlineExpanderViewModelButton",(b.ytInlineExpanderViewModelButtonExpanded=C,b))},_.c(_.ZR,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:C(),accessibilityLabel:C()?_.cN("SHOW_LESS",void 0,"Show Less"):_.cN("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.c("div",{class:_.KU("ytInlineExpanderViewModelBody",(G.ytInlineExpanderViewModelBodyExpanded=C,G)),"aria-hidden":function(){return!C()}},_.c("div",{class:"ytInlineExpanderViewModelBodyContent"},_.c(_.kY,{data:function(){return N.data().bodyContent}},{youthSectionBodyViewModel:MPa}))))},"Nh");var Bw6=new _.nO("CONTENT_SECTION_VIEW_MODEL_TOKEN");var l8q=_.A(function(N){var b=function(){return N.data().background},S=function(){return N.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},P=function(){return N.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},H=_.aN().resolve(_.cq(Bw6)),K={};
return _.c("yt-card-view-model",{el:_.VN(_.iK(function(){return N.data().rendererContext})),
class:_.KU("ytCardViewModelHost",N.className,(K.ytCardViewModelClickable=function(){return _.xY(N.data().rendererContext)},K))},_.c(_.Ar,{contentId:function(){return N.data().contentId}},function(){var C={};
return _.c("div",{class:_.KU("ytCardViewModelCardViewModelInner",function(){var G;return OUi(N.data().cardStyle,(G=N.isSelected)==null?void 0:G.call(N))},function(){if(N.isSelected===void 0){var G;
a:{switch((G=N.data().cardState)==null?void 0:G.selectionState){case "CARD_SELECTION_STATE_SELECTED":G="ytCardViewModelSelected";break a}G=void 0}return G}})},_.c(_.kY,{data:b},{cinematicContainerViewModel:function(G){return _.c(_.p1S,{data:G.data})}}),_.c("div",{class:"ytCardViewModelContentWrapper"},_.c(_.W,{cond:function(){return!S()},
then:function(){var G={},a={};return _.c("div",{class:"ytCardViewModelTopContentContainer"},_.c("div",{class:_.KU("ytCardViewModelTopContent",(G.ytCardViewModelInnerPadding=function(){return!N.data().disableTopContentPadding&&N.data().topContent},G))},_.c(_.kY,{data:function(){return N.data().topContent}},{contentListItemViewModel:function(R){return _.c(Tw_,{data:R.data})},
basicContentViewModel:_.W3,linearLayoutViewModel:_.mX})),_.c("div",{class:_.KU("ytCardViewModelInlineTrailingAction",(a.ytCardViewModelInlineCenterTrailingAction=P,a.ytCardViewModelInlineTrailingActionMargin=function(){return N.data().trailingAction},a))},_.c(_.kY,{data:function(){return N.data().trailingAction}},{buttonViewModel:function(R){return _.c(_.j$,{data:R.data})}})))}}),_.c("div",{class:_.KU((C.ytCardViewModelInnerPadding=function(){return!N.data().disableBodyContentPadding&&N.data().bodyContent},
C))},_.c(_.kY,{data:function(){return N.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.uCJ,
contentListItemViewModel:Tw_,descriptionPreviewViewModel:_.Dr,inlineExpanderViewModel:function(G){return _.c(FF_,{data:G.data,isSelected:N.isSelected})},
linearLayoutViewModel:_.mX,listItemViewModel:_.di},H&&{contentSectionViewModel:H})))),_.c(_.W,{cond:function(){return S()},
then:function(){return _.c("div",{class:"ytCardViewModelOverlayTrailingAction"},_.c(_.kY,{data:function(){return N.data().trailingAction}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data})}}))}}))}))},"Oh");_.qu(l8q,"yt-card-view-model",{props:{data:_.kg,className:_.kg,isSelected:_.kg}});var LF_;var f86;var uYL=function(){return _.z.apply(this,arguments)||this};
_.F(uYL,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],uYL.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uYL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],uYL);
_.X(uYL,"ytd-channel-history-renderer",function(){if(f86!==void 0)return f86;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return f86=N},{mode:1});var Q1a;var xxt=function(){return _.z.apply(this,arguments)||this};
_.F(xxt,_.z);_.p([_.U(),_.y("design:type",Object)],xxt.prototype,"data",void 0);_.p([_.Uj({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],xxt);
_.X(xxt,"ytd-feature-enablement-info-renderer",function(){if(Q1a!==void 0)return Q1a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Q1a=N},{mode:1});var oiL;var iKn;var ak=function(){var N=_.z.apply(this,arguments)||this;N.textBoxMaxLength=_.T("enable_tvod_campaign_code_integration")?15:12;return N};
_.F(ak,_.z);_.v=ak.prototype;_.v.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.v.onSubmit=function(){var N=this.data.serviceEndpoint,b=_.t(N,_.gx);b&&N&&(b.couponCode=this.userInput,_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}}))};
_.v.validate=function(){var N=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=N&&!this.data.errorMessage;this.showErrorMessage=N&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.T("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.v.computeStyle=function(N){return N};
_.v.computeShowValidationBelowInput=function(N){return N!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.v.updateUserInputFromBinding=function(N){this.userInput=N.currentTarget.value};
_.v.updateShowErrorMessageFromBinding=function(N){this.showErrorMessage=N.detail.value};
_.d0.Object.defineProperties(ak.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
ak.prototype.dataChanged=ak.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ak.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],ak.prototype,"userInput",void 0);_.p([_.U(),_.y("design:type",Boolean)],ak.prototype,"disableApplyButton",void 0);_.p([_.U(),_.y("design:type",Boolean)],ak.prototype,"hideApplyButton",void 0);
_.p([_.U(),_.y("design:type",Boolean)],ak.prototype,"hideErrorMessage",void 0);_.p([_.U(),_.y("design:type",Boolean)],ak.prototype,"showTick",void 0);_.p([_.U(),_.y("design:type",Boolean)],ak.prototype,"showErrorMessage",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],ak.prototype,"couponStyle",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.y("design:type",Boolean)],ak.prototype,"showValidationBelowInput",void 0);_.p([_.U(),_.y("design:type",Object)],ak.prototype,"textBoxMaxLength",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ak.prototype,"dataChanged",null);
_.p([_.f("showTick","showErrorMessage","userInput"),_.y("design:type",String),_.y("design:paramtypes",[])],ak.prototype,"validationState",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],ak);
_.X(ak,"ytd-ypc-coupon-renderer",function(){if(iKn!==void 0)return iKn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return iKn=N},{mode:1});var Rk=function(){return _.z.apply(this,arguments)||this};
_.F(Rk,_.z);Rk.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}};
Rk.prototype.computeStyle=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],Rk.prototype,"buttonStyle",void 0);_.p([_.Uj({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Rk);
_.X(Rk,"ytd-flow-bottom-bar-renderer",function(){if(oiL!==void 0)return oiL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return oiL=N},{mode:1});var Jy_;var Uxt;var Wb=function(){return _.z.apply(this,arguments)||this};
_.F(Wb,_.z);Wb.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Wb.prototype.focus=function(N){this.title&&_.Ov(this.title,N)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Wb.prototype,"data",void 0);_.p([_.dq("#title"),_.y("design:type",HTMLElement)],Wb.prototype,"title",void 0);_.p([_.Uj({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Wb);
_.X(Wb,"ytd-flow-top-bar-renderer",function(){if(Uxt!==void 0)return Uxt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Uxt=N},{mode:1});var ZK5;var j1O;var zBq;var nP=function(){return _.z.apply(this,arguments)||this};
_.F(nP,_.z);nP.prototype.freeTextValueChanged=function(){_.St(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
nP.prototype.updateFreeTextValueFromBinding=function(N){this.freeTextValue=N.detail.value};
_.d0.Object.defineProperties(nP.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(b=(N=this.data)==null?void 0:N.responseMaxLength)!=null?b:500,P;return((P=this.freeTextValue)!=null?P:"").length>=S?"maxed-out":""}}});
nP.prototype.freeTextValueChanged=nP.prototype.freeTextValueChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nP.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],nP.prototype,"freeTextValue",void 0);_.p([_.dq("#user-input"),_.y("design:type",HTMLTextAreaElement)],nP.prototype,"input",void 0);
_.p([_.f("freeTextValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],nP.prototype,"characterLimitClass",null);_.p([_.W4("freeTextValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nP.prototype,"freeTextValueChanged",null);_.p([_.J_({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],nP);
_.X(nP,"yt-free-text-input-flow-step-renderer",function(){if(zBq===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;j1O===void 0&&(j1O=document.createElement("template"));var P=j1O;S.call(b,P.content.cloneNode(!0),N.content.firstChild);zBq=N}N=zBq;return N},{mode:2});var dr=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return N};
_.F(dr,_.z);dr.prototype.handleFreeTextFlowStepInputChanged=function(N){_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:N}}])};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dr.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],dr);
_.X(dr,"ytd-free-text-input-flow-step-renderer",function(){if(ZK5!==void 0)return ZK5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ZK5=N},{mode:1});var Ay5;var X6w;var Ei5;var p6w=function(){return _.z.apply(this,arguments)||this};
_.F(p6w,_.z);_.p([_.U(),_.y("design:type",Object)],p6w.prototype,"data",void 0);_.p([_.J_({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],p6w);
_.X(p6w,"yt-survey-answer-card-renderer",function(){if(Ei5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;X6w===void 0&&(X6w=document.createElement("template"));var P=X6w;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Ei5=N}N=Ei5;return N},{mode:2});var Y46;var yyL;var mu=function(){return _.z.apply(this,arguments)||this};
_.F(mu,_.z);_.v=mu.prototype;_.v.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.v.selectedItemChanged=function(N){_.St(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[N.feedbackToken||""]}])};
_.v.surveyAnswerCardRendererClicked=function(N){if(N.target&&_.t(N.model.item,rpq)){var b=N.target;N=_.t(N.model.item,rpq);N.onTapCommand?_.sR(b,[N.onTapCommand],b):this.data.onTapCommand&&_.sR(b,[this.data.onTapCommand],b);this.selectedItemChanged(N)}};
_.v.checkIsCancellationStyle=function(N){return N==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.v.updateSelectedItemFromBinding=function(N){this.selectedItem=N.detail.value};
mu.prototype.onSelectedItemChanged=mu.prototype.onSelectedItemChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mu.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],mu.prototype,"selectedItem",void 0);_.p([_.U({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],mu.prototype,"isCancellationStyle",void 0);
_.p([_.W4("selectedItem"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mu.prototype,"onSelectedItemChanged",null);_.p([_.J_({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],mu);
_.X(mu,"yt-survey-flow-step-renderer",function(){if(yyL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Y46===void 0&&(Y46=document.createElement("template"));var P=Y46;S.call(b,P.content.cloneNode(!0),N.content.firstChild);yyL=N}N=yyL;return N},{mode:2});var kK=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return N};
_.F(kK,_.z);kK.prototype.handleSurveyFlowStepOptionChanged=function(N){this.ytdReduxBehavior.dispatch(_.HU({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:N}));_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:N}}])};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],kK.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],kK.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kK.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],kK);
_.X(kK,"ytd-survey-flow-step-renderer",function(){if(Ay5!==void 0)return Ay5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ay5=N},{mode:1});var I8t;var DxJ;var VPn=function(){return _.z.apply(this,arguments)||this};
_.F(VPn,_.z);_.p([_.U(),_.y("design:type",Object)],VPn.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],VPn);
_.X(VPn,"ytd-metadata-line-renderer",function(){if(DxJ!==void 0)return DxJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return DxJ=N},{mode:1});var TV=function(){return _.z.apply(this,arguments)||this};
_.F(TV,_.z);TV.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],TV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],TV.prototype,"isMasthead",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],TV);
_.X(TV,"ytd-media-product-renderer",function(){if(I8t!==void 0)return I8t;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return I8t=N},{mode:1});var giq;var t9=function(){return _.z.apply(this,arguments)||this};
_.F(t9,_.z);t9.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
t9.prototype.onBillboardImageLoaded=function(){_.bC(this.hostElement,"yt-refit")};
t9.prototype.onBillboardImageLoaded=t9.prototype.onBillboardImageLoaded;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],t9.prototype,"data",void 0);_.p([_.dq("#billboardImage"),_.y("design:type",Object)],t9.prototype,"billboardImage",void 0);_.p([_.RA("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],t9.prototype,"onBillboardImageLoaded",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],t9);
_.X(t9,"ytd-billboard-masthead-renderer",function(){if(giq!==void 0)return giq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return giq=N},{mode:1});var eBq;var M3=function(){var N=_.z.apply(this,arguments)||this;N.smallSize=!1;return N};
_.F(M3,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],M3.prototype,"ytComponentBehaviorType",void 0);_.p([_.U(),_.y("design:type",Object)],M3.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],M3.prototype,"smallSize",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],M3);
_.X(M3,"ytd-bullet-formatted-string",function(){if(eBq!==void 0)return eBq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return eBq=N},{mode:1});var $xi;var FD=function(){return _.z.apply(this,arguments)||this};
_.F(FD,_.z);FD.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FD.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],FD);
_.X(FD,"ytd-offer-detail-renderer",function(){if($xi!==void 0)return $xi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $xi=N},{mode:1});var hBJ;var Bb=function(){return _.z.apply(this,arguments)||this};
_.F(Bb,_.z);Bb.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Bb.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Bb);
_.X(Bb,"ytd-offer-detail-step-renderer",function(){if(hBJ!==void 0)return hBJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return hBJ=N},{mode:1});var q4E;var lO=function(){var N=_.z.apply(this,arguments)||this;N.isInOfferModule=!1;return N};
_.F(lO,_.z);_.v=lO.prototype;_.v.computeHasEndpoint=function(){var N;return!((N=this.data)==null||!N.onClickCommand)};
_.v.dataChanged=function(){var N;if((N=this.data)==null?0:N.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.v.detached=function(){var N;if((N=this.data)==null?0:N.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.v.handleClickEvent=function(){var N;if((N=this.data)==null?0:N.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.v.onContentKeyDown=function(N){N.key==="Enter"?this.handleClickEvent(N):N.key===" "&&N.preventDefault()};
_.v.onContentKeyUp=function(N){N.key===" "&&this.handleClickEvent(N)};
lO.prototype.dataChanged=lO.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],lO.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lO.prototype,"data",void 0);_.p([_.U({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],lO.prototype,"hasEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],lO.prototype,"isInOfferModule",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lO.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],lO);
_.X(lO,"ytd-channel-masthead-renderer",function(){if(q4E!==void 0)return q4E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return q4E=N},{mode:1});var w6q;var LP=function(){var N=_.z.apply(this,arguments)||this;N.thumbnailObjectFit="CONTAIN";N.thumbnailObjectPosition="LEFT";N.isExpanded=!1;return N};
_.F(LP,_.z);_.v=LP.prototype;_.v.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.v.dataChanged=function(){this.resetStates()};
_.v.computeisTapOnOfferInfoContainerEnabled=function(){var N;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.v.onExpandBtnClick=function(){var N,b=_.t((N=this.data)==null?void 0:N.showMoreButtonRenderer,arL);b&&_.yj(_.dG(),b.trackingParams);this.isExpanded=!this.isExpanded};
_.v.onOfferInfoClick=function(N){this.isTapOnOfferInfoContainerEnabled&&(_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.ea(_.V7(N)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.v.onBottomBarClick=function(){this.executeTapCommand()};
_.v.executeTapCommand=function(){var N,b=(N=this.data)==null?void 0:N.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.v.resetStates=function(){this.isExpanded=!1};
_.d0.Object.defineProperties(LP.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var N=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),b,S,P;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&N&&!!((S=this.data)==null?0:(P=S.benefits)==null?0:P.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((b=_.t((N=this.data)==null?void 0:N.showMoreButtonRenderer,arL))==null?void 0:b.showMoreButtonTitle)||((S=this.data)==null?void 0:S.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((b=_.t((N=this.data)==null?void 0:N.showMoreButtonRenderer,arL))==null?void 0:b.showLessButtonTitle)||((S=this.data)==null?void 0:S.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var N;return(N=this.showLessButtonTitle)!=null?N:""}var b;return(b=this.showMoreButtonTitle)!=null?b:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((S=this.data)==null?0:S.footerSubtitle))}}});
LP.prototype.dataChanged=LP.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],LP.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",String)],LP.prototype,"thumbnailObjectFit",void 0);
_.p([_.U(),_.y("design:type",String)],LP.prototype,"thumbnailObjectPosition",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.y("design:type",Boolean)],LP.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.p([_.U(),_.y("design:type",Object)],LP.prototype,"isExpanded",void 0);_.p([_.U(),_.y("design:type",Object)],LP.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.footerIcon)"}),_.y("design:type",String)],LP.prototype,"icon",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LP.prototype,"dataChanged",null);_.p([_.f("data.thumbnail"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LP.prototype,"hasThumbnail",null);_.p([_.f("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LP.prototype,"enableExpandButton",null);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LP.prototype,"enableOfferContentIcon",null);_.p([_.f("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],LP.prototype,"showMoreButtonTitle",null);_.p([_.f("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.y("design:type",Object),_.y("design:paramtypes",[])],LP.prototype,"showLessButtonTitle",null);
_.p([_.f("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.y("design:type",String),_.y("design:paramtypes",[])],LP.prototype,"expandedBtnText",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],LP.prototype,"enableBottomBar",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],LP);
_.X(LP,"ytd-offer-card-renderer",function(){if(w6q!==void 0)return w6q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return w6q=N},{mode:1});var NFn;var fP=function(){return _.z.apply(this,arguments)||this};
_.F(fP,_.z);fP.prototype.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]"}}}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fP.prototype.onClick=function(N){if(!_.VC(N.composedPath()||[],this.hostElement,["A".toString()])){var b,S;if((N=(S=_.t((b=this.data)==null?void 0:b.actionButton,_.rU))==null?void 0:S.command)&&!this.ytComponentBehavior.resolveCommand(N)){var P;(P=_.dG())==null||P.clickCommand(N);_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})}}};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fP.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],fP);
_.X(fP,"ytd-offer-content-renderer",function(){if(NFn!==void 0)return NFn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return NFn=N},{mode:1});var by5;var uO=function(){return _.z.apply(this,arguments)||this};
_.F(uO,_.z);uO.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.d0.Object.defineProperties(uO.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.title)||!((b=this.data)==null||!b.description)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uO.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],uO.prototype,"hasHeaderData",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],uO);
_.X(uO,"ytd-offer-section-renderer",function(){if(by5!==void 0)return by5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return by5=N},{mode:1});var S6n;var Ql=function(){return _.z.apply(this,arguments)||this};
_.F(Ql,_.z);
Ql.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ql.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Ql);
_.X(Ql,"ytd-offer-selection-step-renderer",function(){if(S6n!==void 0)return S6n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return S6n=N},{mode:1});var Pd5;var xK=function(){return _.z.apply(this,arguments)||this};
_.F(xK,_.z);xK.prototype.computeStyle=function(N){return N};
xK.prototype.computeImageWidth=function(N){return N==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.p([_.U({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],xK.prototype,"containerStyle",void 0);_.p([_.U({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.y("design:type",String)],xK.prototype,"imageWidth",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xK.prototype,"data",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],xK);
_.X(xK,"ytd-confirmation-masthead-renderer",function(){if(Pd5!==void 0)return Pd5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Pd5=N},{mode:1});var Hyn;var ok=function(){return _.z.apply(this,arguments)||this};
_.F(ok,_.z);ok.prototype.computeStyle=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ok.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.y("design:type",String)],ok.prototype,"containerStyle",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ok);
_.X(ok,"ytd-purchase-complete-detail-renderer",function(){if(Hyn!==void 0)return Hyn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Hyn=N},{mode:1});var sV5;var iO=function(){var N=_.z.apply(this,arguments)||this;N.scriptsAppended=!1;return N};
_.F(iO,_.z);iO.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{confirmationMastheadRenderer:"ytd-confirmation-masthead-renderer"}},"data.body":{id:"body",mapping:{purchaseCompleteDetailRenderer:"ytd-purchase-complete-detail-renderer"}}}};
iO.prototype.onDataChanged=function(){var N=this.get("data.gtmId");N&&(_.wt(N,_.Vg("GL","")),this.setupConversionTracking())};
iO.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var N=document.createElement("noscript");N.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(N);this.scriptsAppended=!0}};
iO.prototype.onDataChanged=iO.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],iO.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],iO.prototype,"scriptsAppended",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iO.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],iO);
_.X(iO,"ytd-purchase-complete-step-renderer",function(){if(sV5!==void 0)return sV5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sV5=N},{mode:1});var KU6;var J9=function(){return _.z.apply(this,arguments)||this};
_.F(J9,_.z);J9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],J9.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],J9);
_.X(J9,"ytd-ypc-transaction-error-message-renderer",function(){if(KU6!==void 0)return KU6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KU6=N},{mode:1});var vfq;var Oy5;var Ug=function(){var N=_.z.apply(this,arguments)||this;N.handlePhoneVerificationSuccess=function(b){if(N.isValidPhoneVerificationCompletionMessageEvent(b)){var S;((S=N.data)==null?0:S.nextStepCommand)&&N.ytComponentBehavior.resolveCommand(N.data.nextStepCommand)}};
return N};
_.F(Ug,_.z);Ug.prototype.isValidPhoneVerificationCompletionMessageEvent=function(N){if(N.data!=="yt-phone-verification-complete")return!1;N=_.Ol(N.origin);return N!==null&&N.includes("youtube.com")};
Ug.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Ug.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ug.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ug.prototype,"data",void 0);_.p([_.J_({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ug);
_.X(Ug,"yt-feature-enablement-soft-entry-renderer",function(){if(Oy5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vfq===void 0&&(vfq=document.createElement("template"));var P=vfq;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Oy5=N}N=Oy5;return N},{mode:1});var Cdt;var G2o;var rUL;var cUE;var aX6=function(){return _.z.apply(this,arguments)||this};
_.F(aX6,_.z);_.p([_.U(),_.y("design:type",Object)],aX6.prototype,"data",void 0);_.p([_.J_({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],aX6);
_.X(aX6,"yt-benefits-item-renderer",function(){if(cUE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;rUL===void 0&&(rUL=document.createElement("template"));var P=rUL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);cUE=N}N=cUE;return N},{mode:2});var RQn;var WU5;var ZO=function(){return _.z.apply(this,arguments)||this};
_.F(ZO,_.z);ZO.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
ZO.prototype.computeisWithoutPadding=function(){var N;return((N=this.data)==null?void 0:N.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ZO.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.y("design:type",Boolean)],ZO.prototype,"isWithoutPadding",void 0);_.p([_.J_({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],ZO);
_.X(ZO,"yt-benefits-section-renderer",function(){if(WU5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;RQn===void 0&&(RQn=document.createElement("template"));var P=RQn;S.call(b,P.content.cloneNode(!0),N.content.firstChild);WU5=N}N=WU5;return N},{mode:2});var jb=function(){return _.z.apply(this,arguments)||this};
_.F(jb,_.z);jb.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
jb.prototype.computeisUsingLargeWidth=function(){var N;return((N=this.data)==null?void 0:N.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.y("design:type",Boolean)],jb.prototype,"isUsingLargeWidth",void 0);_.p([_.J_({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],jb);
_.X(jb,"yt-benefits-flow-step-renderer",function(){if(G2o===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;Cdt===void 0&&(Cdt=document.createElement("template"));var P=Cdt;S.call(b,P.content.cloneNode(!0),N.content.firstChild);G2o=N}N=G2o;return N},{mode:2});var nfL;var dC6;var zV=function(){return _.z.apply(this,arguments)||this};
_.F(zV,_.z);zV.prototype.checkIsUsingLargeWidth=function(){var N;return((N=this.data)==null?void 0:N.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.p([_.U(),_.y("design:type",Object)],zV.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.y("design:type",Boolean)],zV.prototype,"isUsingLargeWidth",void 0);_.p([_.J_({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],zV);
_.X(zV,"yt-confirmation-flow-step-renderer",function(){if(dC6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;nfL===void 0&&(nfL=document.createElement("template"));var P=nfL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);dC6=N}N=dC6;return N},{mode:2});var mC_;var k2a;var TFE=function(){return _.z.apply(this,arguments)||this};
_.F(TFE,_.z);_.p([_.U(),_.y("design:type",Object)],TFE.prototype,"data",void 0);_.p([_.J_({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],TFE);
_.X(TFE,"yt-info-flow-step-renderer",function(){if(k2a===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;mC_===void 0&&(mC_=document.createElement("template"));var P=mC_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);k2a=N}N=k2a;return N},{mode:2});var t5_;var M5_;var FUt=function(){return _.z.apply(this,arguments)||this};
_.F(FUt,_.z);_.p([_.U(),_.y("design:type",Object)],FUt.prototype,"data",void 0);_.p([_.J_({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],FUt);
_.X(FUt,"yt-info-list-flow-step-renderer",function(){if(M5_===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;t5_===void 0&&(t5_=document.createElement("template"));var P=t5_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);M5_=N}N=M5_;return N},{mode:2});var BFq=_.A(function(N){var b=N.data;return _.c("styled-text-view-model",{class:_.KU("ytStyledTextViewModelHost",function(){return ta6(b().fontAttributes)},function(){return T5t(b().color)})},_.c(_.mD,{text:function(){return b().text},
ariaLabel:function(){var S,P,H;return(H=(S=b().accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)!=null?H:""}}))},"Ph");
BFq.idomCompat=!0;var lXE=_.A(function(N){var b=function(){var H,K,C,G;return(G=(C=(H=N.alt)==null?void 0:H.call(N))!=null?C:(K=N.data().accessibilityData)==null?void 0:K.label)!=null?G:""},S=function(){return N.data().imageWidth},P=function(){return N.data().imageHeight};
return _.c("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.c(_.W,{cond:function(){var H=N.data();if(H){var K,C,G;var a=((K=_.aN().resolve(_.cq(_.T8)))==null?0:K())?(C=H.imageDark)!=null?C:H.imageLight:(G=H.imageLight)!=null?G:H.imageDark}else a=void 0;return a},
then:function(H){return _.c(_.gG,Object.assign({},N,{data:H,alt:b,targetWidth:S,targetHeight:P,preserveHeight:!0,preserveWidth:!0}))}}))},"Qh");
lXE.idomCompat=!0;var A9=_.A(function(N){var b=N.data;N=_.$q(function(){return b().slots},[]);
var S=_.$q(function(){return b().layoutProperties},{}),P=_.aN().resolve(_.YY);
return _.c("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Wh5(S,P)},_.c(_.zj,{each:N,keyBy:"INDEX"},function(H){return _.c("div",{class:"ytContainerLayoutViewModelSlot",style:Wh5(function(){return H().layoutProperties},P)},_.c(_.kY,{data:function(){return H().contents}},{containerLayoutViewModel:A9,
badgeViewModel:_.LH,buttonViewModel:_.j$,styledTextViewModel:BFq,contentPreviewImageViewModel:function(K){return _.c(_.ZU,{data:K.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(K){return _.c(lXE,{data:K.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Rh");
A9.idomCompat=!0;var LUE=_.A(function(N){var b=N.data;var S=N.stateFns;var P=function(){var R=b(),n=R.productId;return!(!R.clearGroupId&&!n)},H=function(){var R=b(),n=R.clearGroupId;
return(R=R.productId)?S().isProductSelected(R):n?S().getSelectedProductByGroupId(n)==null:!1},K=function(R){var n=b(),d=n.clearGroupId;
if(n=n.productId)S().onProductSelected(n),R==null||R.forEach(function(m){_.AM(m)});
else if(d)S().onClearGroupSelected(d)},C=function(){var R=b(),n=R.clearGroupId;
if(R=R.productId){var d;return"group:"+(((d=S().getProductById(R))==null?void 0:d.groupId)||"")}return n?"group:"+n:""},G=_.$q(function(){return b().header},[]),a=_.$q(function(){return b().body},[]);
return _.c("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.c(_.W,{cond:function(){return G().length>0||P()},
then:function(){return _.c("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.c("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.c(_.kY,{data:G},{containerLayoutViewModel:function(R){return _.c("div",{class:"ytPdpCardSectionViewModelContentItem"},_.c(A9,{data:R.data}))},
styledTextViewModel:function(R){return _.c("div",{class:"ytPdpCardSectionViewModelContentItem"},_.c(BFq,{data:R.data}))}})),_.c(_.W,{cond:P,
then:function(){return _.c("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.c(_.nj,{checked:H,name:C,onChange:function(){K(b().onSelect)}}))}}))}}),_.c(_.W,{cond:function(){return a().length>0},
then:function(){return _.c("div",null,_.c(_.kY,{data:a},{containerLayoutViewModel:function(R){return _.c("div",{class:"ytPdpCardSectionViewModelContentItem"},_.c(A9,{data:R.data}))}}))}}))},"Sh");
LUE.idomCompat=!0;var fXQ=_.A(function(N){var b=N.data;var S=N.stateFns;return _.c("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.c(_.W,{cond:function(){return b().banner},
then:function(P){return _.c("div",{class:"ytPdpCardViewModelBanner"},_.c(_.mD,{text:P}))}}),_.c(_.kY,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(P){P=P.data;
var H={};return _.c("div",{class:_.KU("ytPdpCardViewModelSectionContainer",(H.ytPdpCardViewModelShowDividers=function(){return b().showDividers},H))},_.c(LUE,{data:P,
stateFns:S}))}}))},"Th");
fXQ.idomCompat=!0;var usJ=_.A(function(N){var b=N.data;var S=N.isOverlay;N={};return _.c("pdp-masthead-view-model",{class:_.KU("ytPdpMastheadViewModelHost",(N.ytPdpMastheadViewModelIsOverlay=S,N))},_.c(_.kY,{data:function(){return b().image}},{contentPreviewImageViewModel:_.ZU,
themedImageViewModel:function(P){return _.c(lXE,{data:P.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.c(_.W,{cond:function(){return b().title},
then:function(P){return _.c("h1",{class:"ytPdpMastheadViewModelHeading"},_.c(_.mD,{text:P,isOverlay:S}))}}),_.c(_.zj,{each:function(){var P;
return(P=b().finePrint)!=null?P:[]}},function(P){return _.c("div",{class:"ytPdpMastheadViewModelFinePrint"},_.c(_.mD,{text:P,
isOverlay:S}))}))},"Uh");
usJ.idomCompat=!0;var QVi=_.A(function(N){var b=N.data;var S=N.stateFns;var P=function(){return"pdp-pricing-group-selector-"+b().pricingGroupAttributeIds},H=_.$q(function(){return b().pricingGroupSelectorSectionHeader});
return _.c("pdp-pricing-group-selector-view-model",null,_.c(_.W,{cond:function(){return!!H()},
then:function(){return _.c(_.kY,{data:H},{sectionHeaderViewModel:function(K){K=K.data;var C={};return _.c("div",{class:_.KU("ytPdpPricingGroupSelectorViewModelSectionHeader",(C.ytPdpPricingGroupSelectorViewModelFullBleed=!0,C.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,C))},_.c(_.V5,{data:K}))}})}}),_.c("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.c(_.zj,{each:function(){var K=S().getSelectedProductByGroupId(b().groupId);
if(!K)return _.ed(Error("Cl`"+b().groupId)),[];var C,G=(C=b().pricingGroupAttributeIds)!=null?C:[],a;if((a=K.pricingGroups)==null||!a.length||!G.length)return[];C=K.pricingGroups.filter(function(m){return G.length?m.pricingGroupAttributes.every(function(k){return G.includes(k)}):!1});
K=[];if(G.length>0){C=[].concat(_.IX(C));a=_.O(G);for(var R=a.next(),n={};!R.done;n={targetAttrId:void 0},R=a.next())n.targetAttrId=R.value,R=C.findIndex(function(m){return function(k){return k.pricingGroupAttributes.includes(m.targetAttrId)}}(n)),R!==-1&&(K.push(C[R]),C.splice(R,1))}var d=S().getSelectedPricingGroupAttributesByGroupId(b().groupId);
return K.map(function(m){var k=!1;d&&m.pricingGroupAttributes&&(k=hU(m.pricingGroupAttributes,d));return{pricingGroup:m,isSelected:k}})},
keyBy:function(K){return K.pricingGroup.pricingGroupId}},function(K){return _.c("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.c("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.c(_.kY,{data:function(){return K().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:A9})),_.c("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.c(_.nj,{checked:function(){return K().isSelected},
name:P,onClick:function(){var C=K().pricingGroup;S().onPricingGroupSelected(C.pricingGroupId);if(C=_.UZ(C.onSelectPricingGroup)){var G;(G=_.aN().resolve(_.Wq))==null||G.resolveCommand(C)}}})))})))},"Vh");
QVi.idomCompat=!0;var xCL=_.A(function(N){var b=N.data;var S=N.stateFns;var P=function(){var C=S().getSelectedPricingOptions().map(function(R){return R.pricingOptionId}),G=S().getSelectedProductByGroupId(b().groupId);
if(!G)return _.ed(Error("Dl`"+b().groupId)),[];var a=S().getSelectedPricingGroupAttributesByGroupId(b().groupId);return Lhq(G.pricingOptions,a,C)},H=_.$q(function(){return b().pricingOptionSelectorSectionHeader}),K=function(){return P().length>1};
return _.c("pdp-pricing-option-selector-view-model",null,_.c(_.W,{cond:function(){return!!H()&&K()},
then:function(){return _.c(_.kY,{data:H},{sectionHeaderViewModel:function(C){C=C.data;var G={};return _.c("div",{class:_.KU("ytPdpPricingOptionSelectorViewModelSectionHeader",(G.ytPdpPricingOptionSelectorViewModelFullBleed=!0,G.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,G))},_.c(_.V5,{data:C}))}})}}),_.c(_.W,{cond:K,
then:function(){return _.c("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.c(_.zj,{each:P,keyBy:"INDEX"},function(C){return _.c("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.c("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.c(_.kY,{data:function(){return C().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:A9})),_.c("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.c(_.nj,{checked:function(){return C().isSelected},
onClick:function(){S().onPricingOptionSelected(C().pricingOption.pricingOptionId);var G=C().pricingOption.onSelectPricingOption;if(G=_.UZ(G)){var a;(a=_.aN().resolve(_.Wq))==null||a.resolveCommand(G)}}})))}))}}))},"Wh");
xCL.idomCompat=!0;var ofJ=_.A(function(N){var b=N.data;var S=N.stateFns;return _.c("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.c(_.kY,{data:function(){var P,H;return(H=(P=S().getSelectedPricingOptions()[0])==null?void 0:P.primaryButton)!=null?H:b().emptyStateButton}},{buttonViewModel:_.j$}))},"Xh");
ofJ.idomCompat=!0;var iy_=_.A(function(N){var b=N.stateFns;return _.c("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.c(_.kY,{data:function(){return b().getSelectedPricingOptions().flatMap(function(S){return S.summaryLines}).filter(function(S){return!!S})}},{containerLayoutViewModel:function(S){return _.c("div",{class:"ytPdpSummaryViewModelLineItem"},_.c(A9,{data:S.data}))}}))},"Yh");
iy_.idomCompat=!0;var JUw=_.A(function(N){function b(M){var l=C();_.e7(_.oJ("pdpStateEntity",l,{key:l,selectedPricingOptions:M}))}
var S=N.data;var P=N.internalScrolling;var H=N.stateFnsForTesting;var K=_.$q(function(){return S().allProducts},[]),C=_.$q(function(){return S().pdpStateEntityKey},""),G=_.nf(fGJ,C),a=_.UB(function(){_.he(!0);
var M;return(M=H==null?void 0:H())!=null?M:Q7Q(G,K,b)},void 0,"Pzdsic"),R=_.$q(function(){return S().body},[]),n=_.$q(function(){return S().columnBreakHints},[]),d=function(){return S().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},m=function(){return d()||S().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},k=_.UB(function(){var M=_.EW(S().background),l;
if(M==null?0:(l=M.sources)==null?0:l.length){var u=u===void 0?!0:u;M=_.$Rb(void 0,M.sources,void 0,u,u?1E3:void 0,u?void 0:1E3)}else M=null;return M},void 0,"RDPOae");
_.YU(function(){var M=S().onStartCommand;if(M&&(M=_.UZ(M))){var l;(l=_.aN().resolve(_.Wq))==null||l.resolveCommand(M)}});
N={};return _.c("pdp-view-model",{class:_.KU("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return m()||!!k()},N.ytPdpViewModelHasDarkBackground=m,N.ytPdpViewModelHasScrim=d,N.ytPdpViewModelInternalScrolling=P,N.ytPdpViewModelForceSingleColumn=function(){return n().length===0},N)),
style:_.r5({"--pdp-view-model-background":function(){return k()?"url("+k()+")":void 0}})},_.c("div",{class:"ytPdpViewModelColumnContainer"},_.c(_.zj,{each:function(){return xEa(R(),n())},
keyBy:"INDEX"},function(M){return _.c("div",{class:"ytPdpViewModelColumn"},_.c(_.kY,{data:M},{containerLayoutViewModel:function(l){return _.c(XD,null,_.c(A9,{data:l.data}))},
dividerViewModel:function(l){return _.c(XD,{fullBleed:!0},_.c(_.VXZ,{data:l.data}))},
pdpCardViewModel:function(l){return _.c(XD,null,_.c(fXQ,{data:l.data,stateFns:a}))},
pdpMastheadViewModel:function(l){return _.c(XD,null,_.c(usJ,{data:l.data,isOverlay:m}))},
pdpPricingGroupSelectorViewModel:function(l){return _.c(XD,null,_.c(QVi,{data:l.data,stateFns:a}))},
pdpPricingOptionSelectorViewModel:function(l){return _.c(XD,null,_.c(xCL,{data:l.data,stateFns:a}))},
pdpPrimaryButtonViewModel:function(l){return _.c(XD,null,_.c(ofJ,{data:l.data,stateFns:a}))},
pdpSummaryViewModel:function(l){return _.c(XD,null,_.c(iy_,{data:l.data,stateFns:a}))},
sectionHeaderViewModel:function(l){return _.c(XD,{fullBleed:!0,noVerticalPadding:!0},_.c(_.V5,{data:l.data}))}}))})))},"Zh");
JUw.idomCompat=!0;var XD=_.A(function(N){var b={};return _.c("div",{class:_.KU("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=N.fullBleed,b.ytPdpViewModelNoVerticalPadding=N.noVerticalPadding,b))},N.children)},"$h");_.qu(JUw,"pdp-view-model",{props:{data:_.kg,stateFnsForTesting:_.er,internalScrolling:_.er}});var UCq=_.A(function(N){var b=N.data;var S=N.className;var P=_.nf(_.hI,function(){return b().flowStateEntityKey});
return _.c("ytm-premium-purchase-button-renderer",{class:_.KU("ytPremiumPurchaseButtonRendererHost",S)},_.c(_.kY,{data:function(){var H;return(H=_.t(P(),iUq))==null?void 0:H.primaryButtonOverride}},{buttonRenderer:function(H){return _.c(_.lu,{data:H.data,
className:S})},
buttonViewModel:function(H){return _.c(_.j$,{data:H.data,className:S})}}))},"ai");
UCq.idomCompat=!0;var ZyJ=_.A(function(N){var b=N.data;N=N.className;var S=function(){return o9t(b().style)},P=_.KU("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S),H=_.KU("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S);
return _.c("yt-flow-bottom-bar-renderer",{class:_.KU("yt-flow-bottom-bar-renderer",N,S)},_.c(_.kY,{data:function(){return b().secondaryButton}},{buttonRenderer:function(K){return _.c(_.lu,{data:K.data,
className:H})},
buttonViewModel:function(K){return _.c(_.j$,{data:K.data,className:H})},
premiumPurchaseButtonRenderer:function(K){return _.c(UCq,{data:K.data,className:H})}}),_.c(_.kY,{data:function(){return b().primaryButton}},{buttonRenderer:function(K){return _.c(_.lu,{data:K.data,
className:P})},
buttonViewModel:function(K){return _.c(_.j$,{data:K.data,className:P})},
premiumPurchaseButtonRenderer:function(K){return _.c(UCq,{data:K.data,className:P})}}))},"bi");
ZyJ.idomCompat=!0;_.qu(ZyJ,"yt-flow-bottom-bar-renderer",{props:{data:_.kg,className:_.kg}});var jVo=_.A(function(N){var b=_.KU(N.className,"ytOfferSummaryRendererHost");return _.c("yt-offer-summary-renderer",{class:b},_.c("div",{class:"ytOfferSummaryRendererTextContainer"},_.c("div",{class:"ytOfferSummaryRendererEyebrowText"},_.c(_.mD,{text:function(){return N.data().eyebrowText}})),_.c("div",{class:"ytOfferSummaryRendererTitle"},_.c(_.mD,{text:function(){return N.data().title}})),_.c("div",{class:"ytOfferSummaryRendererSubtitle"},_.c(_.mD,{text:function(){return N.data().subtitle}})),_.c("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.c(_.zj,{each:function(){var S;
return(S=N.data().featureListData)!=null?S:[]}},function(S){var P;
return _.c("div",{class:"ytOfferSummaryRendererFeatureList"},_.c(_.cX,{icon:(P=S.icon)==null?void 0:P.iconType,active:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(S.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.c("div",{class:"ytOfferSummaryRendererFeatureListText"},_.c(_.mD,{text:S.text,
className:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.c("div",{class:"ytOfferSummaryRendererDescription"},_.c(_.mD,{text:function(){return N.data().description}}))))},"ci");_.qu(_.A(function(N){var b={};b=_.KU("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=N.shouldDisableHeaderTopMargin,b));return _.c("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},_.c("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.c("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.c(_.mD,{text:function(){return N.data().header}})),_.c("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.c(_.mD,{text:function(){return N.data().subtitle}}))),_.c("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.c(_.kY,{data:function(){return N.data().offerSummary}},{offerSummaryRenderer:function(S){return _.c(jVo,{data:S.data,
className:N.flowClassName})}})))},"di"),"yt-offer-summary-flow-step-renderer",{props:{data:_.er,
flowClassName:_.er,flowStateEntityKey:_.er,shouldDisableHeaderTopMargin:_.er}});var zQJ=_.A(function(N){var b=N.data;var S=N.className;var P=N.flowStateEntityKey;var H=N.selectionStepStyle;N=_.Ob(function(a){var R=b(),n=P==null?void 0:P();a.target&&(a.stopPropagation(),a=n||"",n=_.hI(_.gq().getState(),a),R=Object.assign({},n,{premiumPurchaseFlowState:{selectedOptionId:R.optionId,primaryButtonOverride:R.primaryButtonOverride}}),_.gq().dispatch(_.t5("flowStateEntity",a,R)));return!1});
var K=function(){return(P==null?void 0:P())||""},C=_.nf(_.hI,K);
_.YU(function(){var a=b(),R=K(),n=C();a.defaultSelected&&R!==""&&a.primaryButtonOverride&&J8t(a.optionId||"",R,a.primaryButtonOverride,n)});
var G={};return _.c("ytm-option-item-renderer",{"on:click":N,class:_.KU(S,"ytm-option-item-renderer",(G["ytm-option-item-renderer--lp2-style"]=function(){return(H==null?void 0:H())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},G))},_.c("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.c("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var a=b(),R=K(),n=C();n=_.t(n,iUq);return(n?(n==null?void 0:n.selectedOptionId)||"":a.defaultSelected&&R!==""?(a==null?void 0:a.optionId)||"":"")===b().optionId},
name:("input"+_.ey(_.c3)).toString()})),_.c("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.c(_.kY,{data:function(){return b().titleBadge}},{badgeViewModel:function(a){return _.c(_.LH,{data:a.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.c(_.W,{cond:function(){return b().eyebrowText},
then:function(){return _.c("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.c(_.mD,{text:function(){return b().eyebrowText}}))}}),_.c("div",{class:"ytm-option-item-renderer__option-item-title"},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.c(_.mD,{text:function(){return b().subtitle}})),_.c(_.W,{cond:function(){return b().featureListData},
then:function(){return _.c("div",{class:"ytm-option-item-renderer__feature-list-data"},_.c(_.zj,{each:function(){return b().featureListData||[]}},function(a){var R,n=(R=a.icon)==null?void 0:R.iconType;
a:switch(a.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":R="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":R="ytm-option-item-renderer__feature-list-icon-small";break a;default:R="ytm-option-item-renderer__feature-list-icon-default"}return _.c("div",{class:"ytm-option-item-renderer__feature-list"},_.c(_.cX,{icon:n,className:R,active:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.c("div",{class:"ytm-option-item-renderer__feature-list-text"},_.c(_.mD,{text:a.text,
className:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.c("div",{class:"ytm-option-item-renderer__option-item-description"},_.c(_.mD,{text:function(){return b().description}}))))},"ei");var AUQ=_.A(function(N){var b=N.data;var S=N.flowClassName;var P=N.flowStateEntityKey;var H=N.selectionStepStyle;return _.c("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.c("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.c("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.c(_.mD,{text:function(){return b().title}}),_.c(_.kY,{data:function(){return b().titleBadge}},{badgeViewModel:function(K){return _.c(_.LH,{data:K.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.c(_.W,{cond:function(){return b().subtitle},
then:function(){return _.c("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.c(_.mD,{text:function(){return b().subtitle}}))}}),_.c(_.W,{cond:function(){return b().featureListData},
then:function(K){return _.c("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.c(_.zj,{each:K},function(C){var G;return _.c("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.c(_.cX,{icon:(G=C.icon)==null?void 0:G.iconType,active:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(C.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.c("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.c(_.mD,{text:C.text,
className:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.c(_.W,{cond:function(){return b().secondaryTitle},
then:function(){return _.c("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.c(_.mD,{text:function(){return b().secondaryTitle}}))}}),_.c(_.zj,{each:function(){return b().sectionDisclaimers||[]}},function(K){return _.c("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.c(_.mD,{text:K}))})),_.c(_.kY,{data:function(){return b().optionItems}},{optionItemRenderer:function(K){return _.c("div",{class:"ytOptionSectionRendererOptionItem"},_.c(zQJ,{data:K.data,
className:S,flowStateEntityKey:P,selectionStepStyle:H}))}}),_.c(_.W,{cond:function(){return b().offerText},
then:function(){return _.c("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.c(_.mD,{text:function(){return b().offerText}}))}}))},"fi");
AUQ.idomCompat=!0;var XJO=_.A(function(N){var b=N.data;var S=N.flowClassName;var P=N.flowStateEntityKey;N=N.isDesktop;var H=_.Ct("div"),K=function(){var n;return(n=b().flowStateEntityKey)!=null?n:P==null?void 0:P()},C=function(){return(K==null?void 0:K())||""},G=function(){return b().style},a=_.nf(_.hI,C);
_.YU(function(){UEa(b(),C(),a());setTimeout(function(){var n;(n=H.value)==null||n.focus()})});
var R={};return _.c("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.KU("ytm-option-selection-flow-step-renderer",(R["ytm-option-selection-flow-step-renderer--desktop"]=N,R["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},R))},_.c("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.c("div",{el:H,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.c(_.mD,{text:function(){return b().header}})),_.c("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.c(_.mD,{text:function(){return b().subtitle}}))),_.c(_.kY,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(n){return _.c("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.c(zQJ,{data:n.data,
className:S,flowStateEntityKey:K,selectionStepStyle:G}))},
optionSectionRenderer:function(n){return _.c("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.c(AUQ,{data:n.data,flowClassName:S,flowStateEntityKey:K,selectionStepStyle:G}))}}))},"gi");
XJO.idomCompat=!0;_.qu(XJO,"yt-option-selection-flow-step-renderer",{props:{data:_.kg,flowClassName:_.kg,flowStateEntityKey:_.kg,isDesktop:_.kg}});var Eg=_.A(function(N){var b=_.h_(N,{type:1,disablePadding:!1,disablePrimaryButton:!1}),S=b.data,P=b.type;N=b.disablePadding;var H=b.disablePrimaryButton,K=b.onClickPrimaryButton,C=function(){return S().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},G=function(){return{disabled:H(),
state:H()?"disabled":"active"}},a=function(){return S().leadingLabel||S().trailingLabel};
b={};return _.c("yt-panel-footer-view-model",{class:_.KU("yt-panel-footer-view-model",(b["yt-panel-footer-view-model--hide-divider"]=function(){return S().shouldHideDivider},b["yt-panel-footer-view-model--disable-padding"]=N,b))},_.c(_.W,{cond:a,
then:function(){var R={},n={};return _.c("div",{class:_.KU("yt-panel-footer-view-model__text-row",(R["yt-panel-footer-view-model--row-bottom-padding"]=function(){var d=S();return!(!d.leadingLabel&&!d.trailingLabel||!d.primaryButton&&!d.secondaryButton)},R))},_.c(_.mD,{text:function(){return S().leadingLabel},
className:_.KU((n["yt-panel-footer-view-model--text-padding"]=a,n))}),_.c(_.mD,{text:function(){return S().trailingLabel}}))}}),_.c(_.W,{cond:C,
then:function(){var R={};return _.c("div",{class:"yt-panel-footer-view-model__button-stack"},_.c("div",{class:_.KU("yt-panel-footer-view-model__primary-button",(R["yt-panel-footer-view-model__button-stack--top-button"]=function(){return S().secondaryButton},R))},_.c(_.kY,{data:function(){return S().primaryButton}},{buttonViewModel:function(n){return _.c(_.j$,{data:n.data,
buttonOverrides:G,onClick:K})}})),_.c(_.kY,{data:function(){return S().secondaryButton}},{buttonViewModel:_.j$}))}}),_.c(_.W,{cond:function(){return!C()},
then:function(){var R={},n={},d={};return _.c("div",{class:_.KU("yt-panel-footer-view-model__button-row",(R["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===P()},R))},_.c("div",{class:_.KU("yt-panel-footer-view-model__button-row--left-button",(n["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===P()},n["yt-panel-footer-view-model__button-row--hidden"]=function(){return!S().secondaryButton||0===P()},n["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===P()},n))},_.c(_.kY,{data:function(){return S().secondaryButton}},{buttonViewModel:_.j$})),_.c("div",{class:_.KU("yt-panel-footer-view-model__primary-button",(d["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===P()||1===P()},d["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===P()},d))},_.c(_.kY,{data:function(){return S().primaryButton}},{buttonViewModel:function(m){return _.c(_.j$,{data:m.data,
buttonOverrides:G,onClick:K})}})))}}))},"hi");
Eg.idomCompat=!0;var Efa=_.A(function(N){N=_.h_(N,{disablePadding:!1});var b=N.data,S=N.disablePadding;N=_.eQu(function(){return b().formId},void 0,function(){return b().onSubmitSuccess});
var P=N.submitForm,H=N.isValid,K=N.isSubmitting;return _.c("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.c(_.kY,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(C){return _.c(Eg,{data:C.data,
onClickPrimaryButton:function(){P()},
disablePrimaryButton:function(){return!H()||K()},
disablePadding:S})}}))},"ii");_.qu(Efa,"yt-form-footer-view-model",{props:{data:_.kg,disablePadding:_.kg}});var pJE=_.A(function(N){var b=_.T("enable_user_rating_web");return _.c("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.c("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.c(_.W,{cond:function(){var S;return(S=N.data())==null?void 0:S.image},
then:function(S){return _.c(_.gG,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.c("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.c(_.mD,{text:function(){var S;
return(S=N.data())==null?void 0:S.title}})),_.c("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.c(_.mD,{text:function(){var S;
return(S=N.data())==null?void 0:S.subtitle}})),_.c(_.W,{cond:function(){return!b},
then:function(){return _.c(_.kY,{data:function(){var S;return(S=N.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ji");_.qu(pJE,"yt-contributor-zero-state-view-model",{props:{data:_.kg}});var Y6Q=_.A(function(N){var b=function(){var S;return(S=N.data())==null?void 0:S.image};
return _.c("yt-featured-content-item-view-model",{class:_.KU("ytFeaturedContentItemViewModelHost")},_.c("div",{class:_.KU(function(){return b()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.c("div",{class:function(){return b()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"ytFeaturedContentItemViewModelImage"},_.c(_.kY,{data:function(){return N.data().image}},{themedImageViewModel:function(S){return _.c(lXE,{data:S.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.c(_.W,{cond:function(){var S;
return!b()&&((S=N.data())==null?void 0:S.iconName)},
then:function(){return _.c("div",{class:"ytFeaturedContentItemViewModelIcon"},_.c(_.cX,{icon:function(){return N.data().iconName}}))}}),_.c("div",{class:"ytFeaturedContentItemViewModelContent"},_.c(_.W,{cond:function(){var S;
return(S=N.data())==null?void 0:S.title},
then:function(){return _.c("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.c(_.mD,{text:function(){return N.data().title}}))}}),_.c(_.W,{cond:function(){var S;
return(S=N.data())==null?void 0:S.body},
then:function(){return _.c("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.c(_.mD,{text:function(){return N.data().body}}))}})))))},"ki");var yUE=_.A(function(N){var b=function(){var H;return ZUE((H=N.data())==null?void 0:H.titleFontSize)},S=function(){var H;
return j7t((H=N.data())==null?void 0:H.descriptionFontSize)},P=function(){var H;
return((H=N.data())==null?void 0:H.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.c("yt-landing-page-view-model",{class:_.KU("ytLandingPageViewModelHost",N.className)},_.c("div",{class:"ytLandingPageViewModelHeader"},_.c(_.W,{cond:function(){var H;return(H=N.data())==null?void 0:H.bannerImage},
then:function(H){return _.c("div",{class:"ytLandingPageViewModelHeaderImage"},_.c(_.kY,{data:function(){return H()}},{imageBannerViewModel:function(K){return _.c(_.tc,{data:K.data,
isPositionRelative:!0})}}))}}),_.c(_.W,{cond:function(){var H;
return(H=N.data())==null?void 0:H.bannerAnimation},
then:function(H){return _.c(_.Yg,{data:function(){var K=H();if(K==null?0:K.url){var C;K={path:(C=K==null?void 0:K.url)!=null?C:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(K==null?0:K.payload){var G;K={animationData:JSON.parse((G=K==null?void 0:K.payload)!=null?G:""),autoplay:!0,loop:!0,renderer:"svg"}}else K=void 0;return{animationConfig:K}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.c("div",{class:"ytLandingPageViewModelHeaderTitle"},_.c(_.W,{cond:function(){var H;
return(H=N.data())==null?void 0:H.title},
then:function(H){return _.c("div",{class:_.KU("ytLandingPageViewModelHeaderTitleContent",b)},_.c(_.mD,{text:function(){return H()}}))}}),_.c(_.W,{cond:function(){var H;
return(H=N.data())==null?void 0:H.description},
then:function(H){var K={};return _.c(_.mD,{className:_.KU("ytLandingPageViewModelHeaderTitleDescription",S,(K.ytLandingPageViewModelHeaderTitleDescriptionMargin=P,K)),text:function(){return H()}})}}))),_.c(_.W,{cond:function(){var H,K;
return(H=N.data())==null?void 0:(K=H.featuredContentList)==null?void 0:K.length},
then:function(){return _.c("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.c(_.kY,{data:function(){return N.data().featuredContentList}},{featuredContentItemViewModel:function(H){return _.c(Y6Q,{data:H.data})}}))}}),_.c(_.W,{cond:function(){var H,K;
return(H=N.data())==null?void 0:(K=H.expandableContentList)==null?void 0:K.length},
then:function(){return _.c("div",{class:"ytLandingPageViewModelFaqSection"},_.c(_.kY,{data:function(){return N.data().expandableContentList}},{faqEntryViewModel:function(H){return _.c("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.c(_.QM9,{data:H.data}))}}))}}),_.c("div",{class:"ytLandingPageViewModelFooter"},_.c(_.W,{cond:function(){var H;
return(H=N.data())==null?void 0:H.legalCopy},
then:function(H){return _.c("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.c(_.mD,{text:function(){return H()}}))}}),_.c(_.W,{cond:function(){var H;
return(H=N.data())==null?void 0:H.actions},
then:function(H){return _.c("div",null,_.c(_.kY,{data:function(){return H()}},{flexibleActionsViewModel:function(K){return _.c(_.r4,{data:K.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"li");_.qu(_.A(function(N){return _.c("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.c("div",{class:"ytLpSectionGroupViewModelContainer"},_.c(_.kY,{data:function(){return N.data().sections}},{landingPageViewModel:function(b){return _.c(yUE,{data:b.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"mi"),"yt-lp-section-group-view-model",{props:{data:_.kg}});var IXo=_.A(function(N){var b=N.data;var S=N.selectedKey;var P=N.onSelected;var H=N.groupName;var K=function(){return b().text},C=function(){return b().attributedText},G=function(){return b().subtext},a=function(){return b().attributedSubtext},R=_.c("div",{class:"ytRadioButtonItemViewModelLabel"},_.c(_.W,{cond:K,
then:function(){return _.c("div",null,K)}}),_.c(_.W,{cond:C,
then:function(){return _.c(_.mD,{text:C})}}),_.c(_.W,{cond:G,
then:function(){return _.c("div",{class:"ytRadioButtonItemViewModelSubText"},G)}}),_.c(_.W,{cond:a,
then:function(){return _.c("div",{class:"ytRadioButtonItemViewModelSubText"},_.c(_.mD,{text:a}))}})),n=function(){if(C()){var m;
return(m=C())==null?void 0:m.content}return K()},d=function(){if(a()){var m;
return(m=a())==null?void 0:m.content}return G()};
N={};return _.c("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.c(_.nj,{name:H,checked:function(){return!(S==null||!S()||b().key!==(S==null?void 0:S()))},
onChange:function(m){P==null||P(m.target,b(),H==null?void 0:H())},
labelRenderable:function(){return R},
ariaLabel:function(){return d()?n()+", "+d():n()},
className:_.KU((N.ytRadioButtonItemViewModelSubTitle=function(){return!!b().subtext},N))}))},"ni");var DCi=_.A(function(N){var b=N.data,S=N.onSelected,P=N.selectedKey,H=N.groupName;N=N.className;var K=_.O(_.QF(!1,void 0,"mDtSad")),C=K.next().value,G=K.next().value,a=function(){if(P!==void 0){var R=P();return!(!R||b().key!==R)}return C()};
K=_.Ob(function(R){S?S(R.currentTarget,b(),H==null?void 0:H()):G(!C())});
return _.c("yt-selectable-item-view-model",{class:_.KU("ytSelectableItemViewModelHost",N,"ytSelectableItemViewModelContainer"),"on:click":K,"prop:checked":a},_.c(_.kY,{data:function(){return b().content}},{cardViewModel:function(R){return _.c(l8q,{data:R.data,
isSelected:a})}}))},"oi");var V5i=_.A(function(N){var b=N.data;var S=N.onSelected;var P=N.selectedKey;var H=N.groupName;var K=function(){return(H==null?void 0:H())||b().key};
return _.c("yt-radio-button-group-view-model",{class:_.KU("ytRadioButtonGroupViewModelHost",N.className)},_.c("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.c(_.kY,{data:function(){return b().radioButtons}},{radioButtonItemViewModel:function(C){return _.c(IXo,{data:C.data,
onSelected:S,selectedKey:P,groupName:K})},
selectableItemViewModel:function(C){return _.c(DCi,{data:C.data,onSelected:S,selectedKey:P,groupName:K})}})))},"pi");var gf5=_.A(function(N){_.YU(function(){if(N.controlledMode()&&N.data().defaultSelected)_.ge(Error("El"));else{var K;!N.controlledMode()&&((K=N.selected)==null?0:K.call(N))&&_.ge(Error("Fl"))}});
var b=_.O(_.qI(function(){if(!N.controlledMode())return N.data().defaultSelected})),S=b.next().value,P=b.next().value,H=function(){if(!N.controlledMode())return S();
var K;return(K=N.selected)==null?void 0:K.call(N)};
return _.c("yt-checkbox-item-view-model",{class:_.KU("ytCheckboxItemViewModelHost",N.className)},_.c(_.di,{data:function(){var K=N.data(),C=H();return{title:K.text,subtitle:K.subtext,superlabel:K.superlabel,isSelected:!!C,isDisabled:K.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!N.controlledMode()&&P(!S());var K,C;(C=N.onTap)==null||C.call(N,!!H(),N.data(),(K=N.groupName)==null?void 0:K.call(N))},
isCompact:N.isCompact,disableHorizontalPadding:N.disableHorizontalPadding}))},"qi");var eQt=_.A(function(N){var b=N.data;var S=N.controlledMode;var P=N.selectedKeys;var H=N.onItemTap;var K=N.groupName;var C=N.disableHorizontalPadding;var G=function(){return(K==null?void 0:K())||b().key};
_.YU(function(){S()&&b().defaultSelectedKeys?_.ge(Error("Gl")):!S()&&(P==null?0:P())&&_.ge(Error("Hl"))});
N=_.O(_.qI(function(){if(!S())return b().defaultSelectedKeys}));
var a=N.next().value,R=N.next().value,n=function(d,m,k){d=[];!S()&&m.key&&(d=zJE(m.key,a()||[]),R(d));H==null||H(m,d,k)};
return _.c("yt-checkbox-group-view-model",{class:_.KU("ytCheckboxGroupViewModelHost")},_.c("fieldset",{class:_.KU("ytCheckboxGroupViewModelFieldset")},_.c("div",{role:"list"},_.c(_.kY,{data:function(){return b().checkboxes}},{checkboxItemViewModel:function(d){var m=d.data;
return _.c(gf5,{data:m,controlledMode:!0,selected:function(){var k=S()?(P==null?void 0:P())||[]:a()||[],M=m().key;return M?k.includes(M):!1},
onTap:n,groupName:G,disableHorizontalPadding:C})}}))))},"ri");var pP=_.A(function(N){var b=_.nf(A8n,_.$q(function(){var G;return(G=N.data())==null?void 0:G.noteFeedEntityKey},"")),S=_.nf(lpQ,_.$q(function(){var G;
return(G=N.data())==null?void 0:G.userRatingEntityKey},"")),P=_.T("enable_user_rating_web"),H=function(){var G,a,R;
return((G=b())==null?0:G.contributorNote)?(a=b())==null?void 0:a.contributorNote:(R=N.data())==null?void 0:R.existingNote},K=function(){var G,a;
return!!S()&&!!XXi((G=S())==null?void 0:G.helpfulnessValue,(a=N.data())==null?void 0:a.noteData)};
if(P){var C={};return _.c("yt-note-view-model",{class:_.KU("ytNoteViewModelHostUserRating",(C.ytNoteViewModelHostUserRatingPublishedNote=function(){var G,a,R,n;return((G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.isPublished)&&!((R=N.data())==null?0:(n=R.noteData)==null?0:n.isUserRatingForm)},C))},_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.c(_.W,{cond:function(){var G,a;
return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.isPinned},
then:function(){return _.c(_.cX,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.c(_.W,{cond:function(){var G,a;return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.isPublished},
then:function(){return _.c(_.cX,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.c(_.kY,{data:function(){var G;
return(G=N.data())==null?void 0:G.metadata}},{contentMetadataViewModel:_.zg}),_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var G,a;
return(a=_.t((G=N.data())==null?void 0:G.metadata,_.P8d))==null?void 0:a.delimiter}),_.c(_.mD,{text:function(){var G;
return(G=H())==null?void 0:G.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.c(_.W,{cond:function(){var G,a;return!((G=N.data())==null?0:(a=G.noteData)==null?0:a.isUserRatingForm)},
then:function(){return _.c(_.kY,{data:function(){var G,a,R,n,d,m,k,M=!!((G=N.data())==null?0:(a=G.noteData)==null?0:a.isPinned);G=K();a=(R=N.data())==null?void 0:R.noteData;R=(n=b())==null?void 0:(d=n.contributorNote)==null?void 0:d.deleteAction;n=(m=N.data())==null?void 0:m.overflowButtonNoteWithRatingOnTapOverride;m=(k=N.data())==null?void 0:k.overflowButton;var l;k=(l=_.t(m,_.WC))==null?void 0:l.accessibilityText;return M?E9E(a,R,k):G?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:n,accessibilityText:k}}:m}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.c("div",{class:"ytNoteViewModelNoteContent"},_.c(_.mD,{text:function(){var G;
return(G=H())==null?void 0:G.text}})),_.c(_.W,{cond:function(){var G,a,R,n;
return!((G=N.data())==null?0:(a=G.noteData)==null?0:a.isPinned)&&!((R=N.data())==null?0:(n=R.noteData)==null?0:n.isUserRatingForm)},
then:function(){return _.c(_.W,{cond:K,then:function(){return _.c("div",{class:"ytNoteViewModelUserRatingContainer"},_.c(_.mD,{text:function(){var G,a;return XXi((G=S())==null?void 0:G.helpfulnessValue,(a=N.data())==null?void 0:a.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.c(_.kY,{data:function(){var G;return(G=N.data())==null?void 0:G.userRatingButton}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.c(_.W,{cond:function(){var G,a,R,n;
return!((G=N.data())==null?0:(a=G.noteData)==null?0:a.ignoreDivider)&&!((R=N.data())==null?0:(n=R.noteData)==null?0:n.isUserRatingForm)},
then:function(){return _.c("div",{class:"ytNoteViewModelDivider"},_.c(_.kY,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(G){return _.c(_.VXZ,{data:G.data})}}))}}))}return _.c("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.c(_.W,{cond:function(){var G,a;return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.isPinned},
then:function(){return _.c(_.cX,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.c(_.W,{cond:function(){var G,a;return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.isPublished},
then:function(){return _.c(_.cX,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.c(_.W,{cond:function(){return P},
then:function(){return _.c(_.kY,{data:function(){var G;return(G=N.data())==null?void 0:G.metadata}},{contentMetadataViewModel:function(G){return _.c(_.zg,{data:G.data})}})}}),_.c(_.mD,{text:function(){var G,a;
return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.headerText}}),_.c("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.c(_.mD,{text:function(){var G,a;
return(G=N.data())==null?void 0:(a=G.noteData)==null?void 0:a.delimiter}})),_.c(_.mD,{text:function(){var G,a;
return(G=b())==null?void 0:(a=G.contributorNote)==null?void 0:a.publishedTimeText}})),_.c(_.kY,{data:function(){var G,a,R;
return E9E((G=N.data())==null?void 0:G.noteData,(a=b())==null?void 0:(R=a.contributorNote)==null?void 0:R.deleteAction)}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.c("div",{class:"ytNoteViewModelNoteContent"},_.c(_.mD,{text:function(){var G,a;
return(G=b())==null?void 0:(a=G.contributorNote)==null?void 0:a.text}})))},"si");
pP.idomCompat=!0;_.qu(_.A(function(N){var b=_.$q(function(){var Z;return(Z=N.data())==null?void 0:Z.flowStateEntityKey},""),S=_.nf(_.hI,b),P=_.nf(A8n,_.$q(function(){var Z;
return(Z=N.data())==null?void 0:Z.noteFeedEntityKey},"")),H=_.O(_.qI(function(){var Z;
return(Z=_.t(N.data().helpfulnessValue,Ym6))==null?void 0:Z.defaultSelectedKey})),K=H.next().value,C=H.next().value;
H=_.O(_.qI(function(){var Z,D,Y;return(Y=_.t((Z=_.t(N.data().helpfulnessValue,Ym6))==null?void 0:(D=Z.radioButtons)==null?void 0:D.find(function(V){var g;return((g=_.t(V,ynE))==null?void 0:g.key)===K()}),ynE))==null?void 0:Y.value}));
var G=H.next().value,a=H.next().value;H=_.O(_.qI(function(){var Z;return(Z=_.t(N.data().helpfulReasons,pZa))==null?void 0:Z.defaultSelectedKeys}));
var R=H.next().value,n=H.next().value;H=_.O(_.qI(function(){var Z;return(Z=_.t(N.data().notHelpfulReasons,pZa))==null?void 0:Z.defaultSelectedKeys}));
var d=H.next().value,m=H.next().value,k=function(Z,D){C(D.key);a(D.value);n([]);m([])},M=function(){var Z,D;
return((Z=G())==null?void 0:Z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((D=G())==null?void 0:D.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},l=function(){var Z,D;
return((Z=G())==null?void 0:Z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((D=G())==null?void 0:D.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},u=function(Z){pXE(Z.key,R,n)},J=function(Z){pXE(Z.key,d,m)};
_.YU(function(){var Z,D,Y;Mto((Z=N.data())==null?void 0:(D=Z.userRatingFormSchema)==null?void 0:D.id,{isValid:function(){return!!K()},
formData:function(){var V=G(),g=y8a(R(),_.t(N.data().helpfulReasons,pZa)),e=y8a(d(),_.t(N.data().notHelpfulReasons,pZa));V={helpfulnessValue:V==null?void 0:V.noteHelpfulnessValue};if(g){V.helpfulReasons=[];g=_.O(g);for(var se=g.next();!se.done;se=g.next()){se=se.value;var Ca=void 0;if((Ca=se)==null?0:Ca.noteHelpfulReason)Ca=void 0,V.helpfulReasons.push((Ca=se)==null?void 0:Ca.noteHelpfulReason)}}if(e)for(V.notHelpfulReasons=[],e=_.O(e),g=e.next();!g.done;g=e.next())if(g=g.value,se=void 0,(se=g)==
null?0:se.noteNotHelpfulReason)se=void 0,V.notHelpfulReasons.push((se=g)==null?void 0:se.noteNotHelpfulReason);return{userRatingFormData:V}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(Y=_.t(S(),aun))==null?void 0:Y.submitFormParams},onSubmitResult:function(){var V,g=(V=_.t(S(),aun))==null?void 0:V.userRatingEntityKey,e;V={key:g,helpfulnessValue:(e=G())==null?void 0:e.noteHelpfulnessValue};g&&_.e7(_.t5("contextNoteUserRatingEntityPayload",g,V));var se;g=(se=N.data())==null?void 0:se.viewNoteFlowStepId;var Ca;if((Ca=P())==null||!Ca.contributorNote){var ML;g=(ML=N.data())==null?void 0:ML.zeroStateFlowStepId}(se=
Object.assign({},S()))&&g&&(se.currentStepId=g,se.stepIdStack=[g],_.e7(_.t5("flowStateEntity",b(),se)));var na;(se=(na=N.data())==null?void 0:na.ratingSubmittedSnackbarCommand)&&_.AM(se)},
disableDuringSubmission:!0})});
return _.c("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.c(_.kY,{data:function(){var Z=_.t(S(),aun);if(Z){var D;var Y={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:Z==null?void 0:(D=Z.note)==null?void 0:D.headerText}]}],delimiter:"\u2022"}},existingNote:Z.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Y=void 0;return Y}},{noteViewModel:function(Z){return _.c("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.c(pP,{data:Z.data}))}}),_.c(_.kY,{data:function(){var Z;
return(Z=N.data())==null?void 0:Z.helpfulnessValue}},{radioButtonGroupViewModel:function(Z){return _.c("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.c(V5i,{data:Z.data,
onSelected:k,selectedKey:K}))}}),_.c(_.W,{cond:M,
then:function(){return _.c("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.c("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.c(_.mD,{text:function(){var Z;return(Z=N.data())==null?void 0:Z.helpfulReasonQuestion}})),_.c(_.kY,{data:function(){var Z;
return(Z=N.data())==null?void 0:Z.helpfulReasons}},{checkboxGroupViewModel:function(Z){return _.c(eQt,{data:Z.data,
onItemTap:u,selectedKeys:R,controlledMode:!0})}}))}}),_.c(_.W,{cond:l,
then:function(){return _.c("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.c("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.c(_.mD,{text:function(){var Z;return(Z=N.data())==null?void 0:Z.notHelpfulReasonQuestion}})),_.c(_.kY,{data:function(){var Z;
return(Z=N.data())==null?void 0:Z.notHelpfulReasons}},{checkboxGroupViewModel:function(Z){return _.c(eQt,{data:Z.data,
onItemTap:J,selectedKeys:d,controlledMode:!0})}}))}}),_.c(_.W,{cond:function(){return!M()&&!l()},
then:function(){return _.c(_.kY,{data:function(){var Z;return(Z=N.data())==null?void 0:Z.helpfulNoteFeatures}},{alertBannerViewModel:function(Z){return _.c("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.c(_.wQ9,{data:Z.data}))}})}}))},"ti"),"yt-note-user-rating-view-model",{props:{data:_.kg}});_.qu(pP,"yt-note-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=_.nf(A8n,_.$q(function(){var S;return(S=N.data())==null?void 0:S.noteFeedEntityKey},""));
return _.c("yt-notes-wrapper-view-model",{class:_.KU("ytNotesWrapperViewModelHost")},_.c(_.W,{cond:function(){var S,P,H;return!((S=N.data())==null||!S.existingNotes)||!((P=N.data())==null||!P.currentNote)&&!((H=b())==null||!H.contributorNote)},
then:function(){return _.c(_.nM,null,_.c(_.kY,{data:function(){var S,P,H,K;return((P=_.t((S=N.data())==null?void 0:S.currentNote,RyO))==null?0:(H=P.noteData)==null?0:H.isPublished)?(K=N.data())==null?void 0:K.currentNote:void 0}},{noteViewModel:function(S){return _.c(pP,{data:S.data})}}),_.c(_.kY,{data:function(){var S;
return(S=N.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var P=S.data;
return _.c(_.W,{cond:function(){var H,K;return(H=P())==null?void 0:(K=H.noteData)==null?void 0:K.isPublished},
then:function(){return _.c(pP,{data:P})}})}}),_.c(_.kY,{data:function(){var S,P,H,K,C;
return((P=_.t((S=N.data())==null?void 0:S.currentNote,RyO))==null?0:(H=P.noteData)==null?0:H.isPublished)||(K=b())==null||!K.contributorNote?void 0:(C=N.data())==null?void 0:C.currentNote}},{noteViewModel:function(S){return _.c(pP,{data:S.data})}}),_.c(_.kY,{data:function(){var S;
return(S=N.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var P=S.data;
return _.c(_.W,{cond:function(){var H,K;return!((H=P())==null?0:(K=H.noteData)==null?0:K.isPublished)},
then:function(){return _.c(pP,{data:P})}})}}))},
else:function(){return _.c(_.kY,{data:function(){var S;return(S=N.data())==null?void 0:S.zeroStateData}},{contributorZeroStateViewModel:pJE})}}))},"ui"),"yt-notes-wrapper-view-model",{props:{data:_.kg}});var hQL=_.A(function(N){var b=_.h_(N,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,ariaLabel:void 0,timePickerData:void 0,hasError:!1}),S=b.label,P=b.text,H=b.placeholder,K=b.hint;N=b.rows;var C=b.overflowStyle,G=b.outline,a=b.disabled,R=b.disableNewLines,n=b.characterLimit,d=b.validation,m=b.onInput,k=b.ariaLabel,M=b.timePickerData,l=b.hasError,u=_.Ct("textarea");b=_.O(_.qI(function(){return P()}));
var J=b.next().value,Z=b.next().value;b=_.O(_.QF(!1,void 0,"Z8Zese"));var D=b.next().value,Y=b.next().value,V=function(){Y(!0)},g=function(){Y(!1)};
_.YU(function(){var S9=u.value,Vu=C(),n9=J();Vu==="expand-vertically"&&n9&&IGa(S9);u.value.addEventListener("focusin",V);u.value.addEventListener("focusout",g)});
_.ej(function(){u.value.removeEventListener("focusin",V);u.value.removeEventListener("focusout",g)});
var e=function(){var S9;return(S9=d())==null?void 0:S9.validate(J())},se=function(){return n()&&!e()&&J().length>n().maxChars},Ca=function(){return!!e()||se()||l()};
b=_.Ob(function(S9){if(!S9.currentTarget)return!1;S9=S9.currentTarget;Z(S9.value);C()==="expand-vertically"&&IGa(S9);m==null||m(S9.value);return!0});
var ML=_.Ob(function(S9){R()&&S9.key==="Enter"&&S9.preventDefault();return!1}),na=_.Ob(function(){u.value.focus()}),To=function(){return H()||S()},jp={},Xf={},YO={},Wk={};
return _.c("textarea-shape",{class:_.KU("ytStandardsTextareaShapeHost",(jp.ytStandardsTextareaShapeTimePicker=function(){var S9;return(S9=M())==null?void 0:S9.useTimePickerStyles},jp))},_.c("div",{class:_.KU("ytStandardsTextareaShapeTextareaContainer",(Xf.ytStandardsTextareaShapeTextareaContainerOutline=G,Xf.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=a,Xf.ytStandardsTextareaShapeTextareaContainerOutlineError=Ca,Xf)),
"on:click":na},_.c("label",{class:_.KU("ytStandardsTextareaShapeLabel",(YO.ytStandardsTextareaShapeLabelFocused=D,YO.ytStandardsTextareaShapeLabelDisabled=a,YO.ytStandardsTextareaShapeLabelError=function(){return Ca()&&!a()},YO.ytStandardsTextareaShapeLabelHidden=function(){return!D()&&!J()&&!!To()},YO))},S),_.c("div",{class:_.KU("ytStandardsTextareaShapePlaceholder",(Wk.ytStandardsTextareaShapePlaceholderVisible=function(){return!D()&&!J()},Wk)),
"aria-hidden":"true"},To),_.c("textarea",{el:u,"aria-label":k,class:"ytStandardsTextareaShapeTextarea",rows:N,disabled:a,placeholder:To,"prop:value":J,"on:input":b,"on:keydown":ML})),_.c(_.W,{cond:function(){return K()&&!Ca()},
then:function(){var S9={};return _.c("div",{class:_.KU("ytStandardsTextareaShapeHint",(S9.ytStandardsTextareaShapeHintDisabled=a,S9))},_.c("div",{class:"ytStandardsTextareaShapeHintHintMessage"},K))}}),_.c(_.W,{cond:e,
then:function(){return _.c($CO,{disabled:a},_.c("div",{class:"ytStandardsTextareaShapeErrorMessage"},e))}}),_.c(_.W,{cond:n,
then:function(S9){return _.c(_.W,{cond:se,then:function(){return _.c($CO,{disabled:a},_.c("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return S9().errorMessage}),_.c("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return J().length+"/"+S9().maxChars}))}})}}))},"vi");
hQL.idomCompat={callbacks:{onInput:!0}};var $CO=_.A(function(N){var b={};return _.c("div",{class:_.KU("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=N.disabled,b)),role:"alert"},_.c(_.cX,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),N.children)},"wi");var q6L=_.A(function(N){var b=N.data;return _.c("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.c(hQL,{text:N.text,label:function(){var S;return(S=b().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=b().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=b().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=b().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=b().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:N.disabled,disableNewLines:function(){var S;return(S=b().displayProperties)==null?void 0:S.disableNewLines},
onInput:N.onInput,characterLimit:N.characterLimit,validation:N.validation,rows:function(){var S;return(S=b().displayProperties)==null?void 0:S.rows}}))},"xi");var wJL=_.A(function(N){var b=N.data;return _.c("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.c(hQL,{text:N.text,label:function(){var S;return(S=b().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=b().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=b().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=b().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=b().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var S;return(S=b().displayProperties)==null?void 0:S.disableNewLines},
onInput:N.onInput,characterLimit:N.characterLimit,validation:N.validation,rows:function(){var S;return(S=b().displayProperties)==null?void 0:S.rows}}))},"yi");var NdJ=_.A(function(N){var b=_.O(_.qI(function(){var Ca,ML;return((Ca=N.data().structuredContextNoteFormSchema)==null?0:(ML=Ca.initialValues)==null?0:ML.noteBody)?N.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),S=b.next().value,P=b.next().value;
b=_.O(_.qI(function(){N.data();return!1}));
var H=b.next().value,K=b.next().value;b=_.O(_.qI(function(){N.data();return!1}));
var C=b.next().value,G=b.next().value;b=_.O(_.qI(function(){var Ca,ML;return((Ca=N.data().structuredContextNoteFormSchema)==null?0:(ML=Ca.initialValues)==null?0:ML.timestamp)?N.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var a=b.next().value,R=b.next().value;b=_.O(_.qI(function(){N.data();return!1}));
var n=b.next().value,d=b.next().value;b=_.O(_.qI(function(){var Ca,ML;return((Ca=N.data().structuredContextNoteFormSchema)==null?0:(ML=Ca.initialValues)==null?0:ML.sources)?[N.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var m=b.next().value,k=b.next().value;b=_.O(_.qI(function(){N.data();return!1}));
var M=b.next().value,l=b.next().value;b=_.O(_.qI(function(){return!1}));
var u=b.next().value,J=b.next().value;_.YU(function(){var Ca;Fn5((Ca=N.data().structuredContextNoteFormSchema)==null?void 0:Ca.id,{isSubmitting:u,onSubmit:function(){J(!0);var ML=NxL(S(),a(),m(),N.data()),na=_.aN().resolve(_.Wq);ML&&na&&na.resolveCommand(ML,{commandController:{onSuccess:function(){J(!1)}}})},
isValid:function(){return H()&&!C()&&!n()&&!M()}})});
var Z=function(Ca){if(Ca!==void 0&&(P(Ca),!H()&&Ca.length>0&&K(!0),H())){var ML=g9O(N.data());if(ML){var na=ML.minLength;ML=ML.maxLength;na&&Ca.length<na?G(!0):ML&&Ca.length>ML?G(!0):G(!1)}}},D=function(Ca){if(Ca!==void 0){R(Ca);
if(Ca.length>0){var ML,na,To,jp,Xf=$Eq((ML=N.data())==null?void 0:(na=ML.structuredContextNoteFormSchema)==null?void 0:(To=na.fieldSchemas)==null?void 0:(jp=To.timestamp)==null?void 0:jp.validationSchema);if(Xf&&(ML=Xf.regex)&&!(new RegExp(ML)).test(Ca)){d(!0);return}}d(!1)}},Y=function(Ca){if(Ca!==void 0){var ML=Ca.split(/[ \n]/).map(function(na){return na.trim()});
k(ML);if(Ca.length>0)for(Ca=_.O(ML),ML=Ca.next();!ML.done;ML=Ca.next())if(!wXw(ML.value)){l(!0);return}l(!1)}},V=function(){return{validate:function(Ca){if(H()){var ML=g9O(N.data());
if(ML){var na=ML.minLength;ML=ML.translations;if(na&&Ca.length<na)return ML==null?void 0:ML.minLengthErrorMessage}}}}},g=function(){var Ca=g9O(N.data()),ML=Ca==null?void 0:Ca.maxLength,na;
Ca=Ca==null?void 0:(na=Ca.translations)==null?void 0:na.maxLengthErrorMessage;if(ML&&Ca)return{maxChars:ML,errorMessage:Ca}},e=function(){return{validate:function(Ca){if(Ca){var ML,na,To,jp,Xf=$Eq((ML=N.data())==null?void 0:(na=ML.structuredContextNoteFormSchema)==null?void 0:(To=na.fieldSchemas)==null?void 0:(jp=To.timestamp)==null?void 0:jp.validationSchema);
if(Xf&&(ML=Xf.regex,Xf=Xf.translations,ML&&!(new RegExp(ML)).test(Ca)))return Xf==null?void 0:Xf.regexErrorMessage}}}},se=function(){return{validate:function(Ca){if(Ca){var ML,na,To,jp,Xf=qb6((ML=N.data())==null?void 0:(na=ML.structuredContextNoteFormSchema)==null?void 0:(To=na.fieldSchemas)==null?void 0:(jp=To.sources)==null?void 0:jp.validationSchema);
if(Xf&&(ML=Xf.translations,ML==null?0:ML.selectedErrorMessage))for(Ca=Ca.split(/[ \n]/).map(function(YO){return YO.trim()}),Ca=_.O(Ca),na=Ca.next();!na.done;na=Ca.next())if(!wXw(na.value))return Ca=void 0,(Ca=ML)==null?void 0:Ca.selectedErrorMessage}}}};
return _.c("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.c("div",{class:"ytStructuredContextNoteViewModelTextField"},_.c(_.kY,{data:function(){var Ca;return(Ca=N.data())==null?void 0:Ca.noteContents}},{textFormFieldViewModel:function(Ca){return _.c(wJL,{data:Ca.data,
onInput:Z,validation:V,characterLimit:g})},
textFieldViewModel:function(Ca){return _.c(q6L,{data:Ca.data,onInput:Z,validation:V,characterLimit:g})}})),_.c("div",{class:"ytStructuredContextNoteViewModelTextField"},_.c(_.kY,{data:function(){var Ca;
return(Ca=N.data())==null?void 0:Ca.noteTimestamp}},{textFormFieldViewModel:function(Ca){return _.c(wJL,{data:Ca.data,
onInput:D,validation:e})},
textFieldViewModel:function(Ca){return _.c(q6L,{data:Ca.data,onInput:D,validation:e})}})),_.c("div",{class:"ytStructuredContextNoteViewModelTextField"},_.c(_.kY,{data:function(){var Ca;
return(Ca=N.data())==null?void 0:Ca.noteSources}},{textFormFieldViewModel:function(Ca){return _.c(wJL,{data:Ca.data,
onInput:Y,validation:se})},
textFieldViewModel:function(Ca){return _.c(q6L,{data:Ca.data,onInput:Y,validation:se})}})))},"zi");
NdJ.idomCompat=!0;_.qu(NdJ,"yt-structured-context-note-view-model",{props:{data:_.kg}});var bsq=_.A(function(N){var b=_.O(_.qI(function(){var K;if((K=N.controlled)==null?0:K.call(N))return[];var C;return(((C=N.data())==null?void 0:C.chips)||[]).map(function(G){G=_.t(G,_.nc);if(G==null?0:G.selected)return bfL(G.chipValue)}).filter(function(G){return G!==void 0})})),S=b.next().value,P=b.next().value,H=function(K){var C=bfL(K.chipValue);
if(C!==void 0){var G;if((G=N.controlled)==null?0:G.call(N))return void N.controlled().onTap(C);K=S().includes(C)?[].concat(_.IX(S().filter(function(R){return R!==C}))):[].concat(_.IX(S()),[C]);
P(K);var a;if((a=N.uncontrolled)==null?0:a.call(N))N.uncontrolled().onUpdate(K)}};
return _.c("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.c(_.zj,{each:function(){return N.data().chips||[]}},function(K){return _.c("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.c(_.mdd,{data:function(){return _.t(K,_.nc)},
selected:function(){var C;if(C=_.t(K,_.nc)){var G=bfL(C.chipValue);if(G!==void 0){var a;C=((a=N.controlled)==null?0:a.call(N))?N.controlled().selectedValues.includes(G):S().includes(G)}else C=void 0}else C=!1;return C},
callback:H}))}))},"Ai");var SAo=_.A(function(N){var b=N.data;var S=function(){var G;return((G=b())==null?void 0:G.flowStateKey)||""},P=_.nf(_.hI,S),H=function(){var G;
return(G=_.t(P(),NZO))==null?void 0:G.chips},K=function(G){if(G!==void 0){var a=H()||[];
a=a.find(function(R){return R===G})?a.filter(function(R){return R!==G}):[].concat(_.IX(a),[G]);
a=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.t(P(),NZO),{chips:a})});_.e7(_.t5("flowStateEntity",S(),a))}},C=function(){var G;
return _.t((G=b())==null?void 0:G.inputBox,bHO)};
N=_.oS(function(G){var a=C();a=!(a==null?0:a.maxChars)||G.length<=a.maxChars;G=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.t(P(),NZO),{detail:G}),abuseReportFlowState:Object.assign({},_.t(P(),tQ),{navigationEnabled:a})});_.e7(_.t5("flowStateEntity",S(),G))},150);
return _.c("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.c("div",{class:"ytFeedbackFormViewModelChips"},_.c(_.kY,{data:function(){var G;return(G=b())==null?void 0:G.chipSelection}},{chipSelectionFormFieldViewModel:function(G){return _.c(bsq,{data:G.data,
controlled:function(){return{selectedValues:H()||[],onTap:K}}})}})),_.c("div",{class:"ytFeedbackFormViewModelInputBox"},_.c(hQL,{text:function(){var G;
return(G=_.t(P(),NZO))==null?void 0:G.detail},
placeholder:function(){var G;return((G=C())==null?void 0:G.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var G=C();if(G&&G.maxChars)return{maxChars:G.maxChars,errorMessage:G.maxCharsExceededErrorMessage||""}},
onInput:N})),_.c("div",{class:"ytFeedbackFormViewModelFooterText"},_.c(_.mD,{text:function(){return b().footerText}})))},"Bi");
SAo.idomCompat=!0;_.qu(SAo,"yt-feedback-form-view-model",{props:{data:_.kg}});var P9n=_.A(function(N){var b=N.data;var S=_.nf(d7L,function(){return b().flowStateKey||""}),P=function(){var H;
_.AM((H=_.t(S(),tQ))==null?void 0:H.navigationCommand)};
return _.c("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.c("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.c(_.kY,{data:function(){return b().cancelButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}}),_.c(_.kY,{data:function(){var H;
if(b().navButton){var K=Object;var C=K.assign,G=_.t(b().navButton,_.WC),a=((H=_.t(S(),tQ))==null?0:H.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",R,n;H=_.t((R=_.t(S(),tQ))==null?void 0:R.navigationCommand,_.JM);R=(n=_.t(H,_.Hz))==null?void 0:n.url;K={buttonViewModel:C.call(K,{},G,{state:a,iconName:R?"OPEN_IN_NEW":""})}}else K=void 0;return K}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}})))},"Ci");
P9n.idomCompat=!0;_.qu(P9n,"yt-report-form-bottom-bar-view-model",{props:{data:_.kg}});var Hsi=_.A(function(N){var b=N.nextStep;return _.c("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.c("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.c(_.cX,{icon:function(){return b().iconName||""}})),_.c("div",null,_.c(_.mD,{text:function(){return b().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Di"),sFw=_.A(function(N){var b=N.data;
var S,P=(S=_.aN().resolve(_.cq(_.T8)))==null?void 0:S(),H=_.nf(_.hI,function(){return b().flowStateKey||""});
return _.c("yt-report-form-confirmation-page-view-model",{class:function(){var K;return((K=_.t(H(),tQ))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.c("div",{class:function(){var K;
return((K=_.t(H(),tQ))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.c(_.gG,{data:function(){return P&&b().imageDark?b().imageDark:b().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.c("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.c("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),_.c("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.c(_.mD,{text:function(){return b().confirmationText}})),_.c("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.c(_.mD,{text:function(){return b().lawEnforcementText}})),
_.c("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),_.c(_.W,{cond:function(){return b().nextSteps},
then:function(K){return _.c("div",null,_.c(_.zj,{each:K},function(C){return _.c(Hsi,{nextStep:C})}))}}),_.c(_.W,{cond:function(){return b().legalReportText},
then:function(K){return _.c("div",null,_.c(_.mD,{text:K,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ei");
sFw.idomCompat=!0;_.qu(sFw,"yt-report-form-confirmation-page-view-model",{props:{data:_.kg}});var KBw=_.A(function(N){var b=N.data;var S=function(){var K;return((K=_.t(b().inputBox,bHO))==null?void 0:K.maxChars)||500},P=function(){return b().flowStateKey||""},H=_.nf(_.hI,P);
N=_.oS(function(K){K=Object.assign({},H(),{flowFormState:{isValid:K.length<=S()},abuseReportFlowState:{userComments:K,navigationEnabled:!(K.length>S()),isReportFormDirty:!0}});_.gq().dispatch(_.oJ("flowStateEntity",P(),K))},150);
_.YU(function(){var K=Object.assign({},H(),{flowFormState:{isValid:!0}});_.gq().dispatch(_.oJ("flowStateEntity",P(),K))});
return _.c("yt-report-form-details-page-view-model",{class:function(){var K;return((K=_.t(H(),tQ))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.c("h1",{class:function(){var K;
return((K=_.t(H(),tQ))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),_.c("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.c(_.mD,{text:function(){return b().bodyText}})),_.c("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.c(hQL,{label:function(){var K;
return((K=_.t(b().inputBox,bHO))==null?void 0:K.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var K;return{errorMessage:((K=_.t(b().inputBox,bHO))==null?void 0:K.maxCharsExceededErrorMessage)||"",maxChars:S()}},
onInput:N})))},"Fi");
KBw.idomCompat=!0;_.qu(KBw,"yt-report-form-details-page-view-model",{props:{data:_.kg}});var vBQ=_.A(function(N){var b=N.data;var S=function(){return b().flowStateKey||""},P=_.nf(_.hI,S),H=function(){return _.t(P(),tQ)};
return _.c("yt-report-form-reason-select-page-view-model",{class:function(){var K;return((K=H())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.c("h1",{class:function(){var K;
return((K=H())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),_.c("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.c(_.mD,{text:function(){return b().bodyText}})),_.c("div",{class:function(){var K;
return((K=H())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.c(V5i,{data:function(){return _.t(b().radioButtonGroup,Ym6)},
onSelected:function(K,C){K=Object.assign({},P(),{abuseReportFlowState:Object.assign({},H(),{reasonKey:C.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:C.command})});_.e7(_.t5("flowStateEntity",S(),K))},
selectedKey:function(){var K;return(K=H())==null?void 0:K.reasonKey},
groupName:"report-form-reason-select-page"})))},"Gi");
vBQ.idomCompat=!0;_.qu(vBQ,"yt-report-form-reason-select-page-view-model",{props:{data:_.kg}});var OsO=_.A(function(N){var b=N.data;var S,P=(S=_.aN().resolve(_.cq(_.T8)))==null?void 0:S();return _.c("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.c("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.c(_.gG,{data:function(){return P&&b().imageDark?b().imageDark:b().image},
alt:""})),_.c("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.c("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return b().header}),_.c(_.mD,{text:function(){return b().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Hi");
OsO.idomCompat=!0;_.qu(OsO,"yt-report-form-sign-in-page-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=_.nU(_.FsN.talkToRecsStateSelector),P=function(){return b().titleSuperscript},H=function(){return b().answersShelf},K=function(){return b().videoShelf},C=function(){var e;
return(e=b().textInputPlaceholder)==null?void 0:e.content},G=function(){return b().showOpenTextInput},a=function(){var e;
return(e=b().textInputValue)==null?void 0:e.content},R=function(){return b().isMultiTurnFlow?b().resetButtonViewModel:void 0},n="",d=function(){return b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
N=_.O(_.QF("",void 0,"GjDBze"));var m=N.next().value,k=N.next().value;N=_.O(_.QF(!1,void 0,"cHfsvd"));var M=N.next().value,l=N.next().value,u=function(){return{state:M()||m()?"active":"disabled",disabled:!(M()||m())}};
_.pM(function(){if(G()){a()&&k(a());var e;if(!R()&&((e=S())==null?0:e.stepStates)){var se;e=Object.keys((se=S())==null?void 0:se.stepStates);se=e[e.length-1];var Ca,ML;se=(Ca=S().stepStates[se])==null?void 0:(ML=Ca.userQuery)==null?void 0:ML.userQuery;_.e7(iOo());se&&J(se)}}});
var J=function(e){var se=b().onUpdateText;se&&_.AM(se,{form:{userQuery:e}});k(e)},Z=_.oS(function(e){J(e.target.value.trim())},150),D=_.Ob(function(e){var se;
n=(se=e.target.value)==null?void 0:se.trim();Z(e);return!1}),Y=_.Ob(function(e){e.key==="Enter"&&(M()||m())&&(J(e.target.value.trim()),g());
return!1}),V=function(e,se){l(se);
if(se){if(b().isMultiTurnFlow&&!n){var Ca;J((Ca=e==null?void 0:e.text)!=null?Ca:"")}b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&g()}else k(n)},g=function(){var e=_.t(b().nextButtonViewModel,_.WC);
if(e==null?0:e.trackingParams){e=_.FA(e.trackingParams);var se=_.Qh();se&&e&&_.Im(se,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(e=b().onNextStepCommand)&&_.AM(e)};
N={};return _.c("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.c("div",{class:"ytwTalkToRecsTopCornerButton"},_.c(_.kY,{data:function(){return b().topCornerButton}},{buttonViewModel:_.j$})),_.c("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.c("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.c(_.mD,{text:function(){return b().title}}),_.c(_.W,{cond:P,
then:function(){return _.c("sup",{class:"ytwTalkToRecsSuperScript"},_.c(_.mD,{text:P}))}})),_.c("div",{class:"ytwTalkToRecsSubtitle"},_.c(_.mD,{text:function(){return b().subtitle}})),_.c("div",{class:"ytwTalkToRecsResultsShelf"},_.c(_.W,{cond:H,
then:function(){return _.c(_.kY,{data:H},{chipsShelfViewModel:function(e){return _.c("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.c(_.gH,{data:e.data,callback:V,selectionBehavior:d}))}})}}),_.c(_.W,{cond:K,
then:function(){return _.c(_.kY,{data:K},{horizontalShelfViewModel:function(e){return _.c("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.c(_.TU,{data:e.data,thumbnailAspectRatio:0}))}})}})),_.c("div",{class:_.KU("ytwTalkToRecsRefinementContainer",(N.ytwTalkToRecsBottomMargin=function(){return b().isMultiTurnFlow},N))},_.c(_.W,{cond:G,
then:function(){return _.c("div",{class:"ytwTalkToRecsUserInputBox"},_.c("input",{type:"text",class:"ytwTalkToRecsTextInput",title:C,placeholder:C,value:m,"on:input":D,"on:keyup":Y,maxlength:200}))}}),_.c(_.kY,{data:function(){return b().isMultiTurnFlow?b().nextButtonViewModel:void 0}},{buttonViewModel:function(e){return _.c("div",{class:"ytwTalkToRecsFlowControlButtons"},_.c(_.j$,{data:e.data,
buttonOverrides:u}))}}),_.c(_.kY,{data:R},{buttonViewModel:function(e){return _.c("div",{class:"ytwTalkToRecsFlowControlButtons"},_.c(_.j$,{data:e.data,
onClick:function(){var se=_.t(b().resetButtonViewModel,_.WC);J(m());(se=se==null?void 0:se.onTap)&&_.AM(se)}}))}}))))},"Ji"),"yt-talk-to-recs-view-model",{props:{data:_.kg}});var SWi={sources:[{clientResource:{imageName:"CHECK"}}]};var C9L=_.A(function(N){var b=_.Ct("div");N=_.h_(N,{error:void 0});var S=N.data,P=N.error,H=N.onSelected;N=N.className;var K=_.O(_.qI(function(){return s2a(S())})),C=K.next().value,G=K.next().value;
CKn(S,function(k){G(k);var M,l,u=HfL((M=S().options)==null?void 0:(l=M[k])==null?void 0:l.value,S().type);H==null||H(u);b.value.focus()});
K=_.Ob(function(){if(!S().disabled){var k=S(),M=C(),l=b.value;k.options&&(k=PKQ(k.options,M,k.label),_.aN().resolve(_.sD).openSheet({viewModel:k},l))}});
var a=_.l$p(),R=function(){return!!P()},n=function(){return!!S().disabled},d={},m={};
return _.c("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.c("div",{class:_.KU("ytDropdownViewModelDropdownContainer",N,(d.ytDropdownViewModelDropdownContainerErrorBorder=R,d.ytDropdownViewModelDropdownContainerDisabled=n,d)),"on:click":K,el:b,role:"combobox",tabindex:0,"on:keydown":a,"aria-invalid":R,"aria-disabled":n,"aria-describedby":function(){return R()?"dropdown-view-model-error":void 0}},_.c("div",{class:"ytDropdownViewModelText"},KHJ(S,R,C),vYt(S,C)),_.c("div",{class:_.KU("ytDropdownViewModelChevronDown",
(m.ytDropdownViewModelChevronDownDisabled=n,m))},_.c(_.cX,{icon:"CHEVRON_DOWN"}))),Ofq(S,P))},"Ki");_.qu(_.A(function(N){var b=N.data;var S=function(H){var K=r5L(b());K.videoMetadata||(K.videoMetadata={});K.videoMetadata.sponsorshipsMetadata||(K.videoMetadata.sponsorshipsMetadata={});K.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(H)},P=function(H){var K=r5L(b());
K.scheduledRedirectMetadata||(K.scheduledRedirectMetadata={});K.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(H)};
return _.c("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.c("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.c("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.c(_.mD,{text:function(){return b().title}}),_.c(_.cX,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.c(_.mD,{text:function(){return b().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.c(_.kY,{data:function(){return b().tierChoices}},{dropdownViewModel:function(H){return _.c("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.c(C9L,{data:H.data,
onSelected:S}))}}),_.c(_.kY,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(H){return _.c("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.c(C9L,{data:H.data,
onSelected:P}))}}),_.c(_.mD,{text:function(){return b().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.c("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.c(_.kY,{data:function(){return b().scheduleButton}},{panelFooterViewModel:Eg})))},"Li"),"ytfz-schedule-fanzone-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;N=N.className===void 0?"":N.className;var S=_.nf(d7L,function(){return b().flowStateEntityKey||""}),P={};
P=_.KU("ytFlowBottomBarViewModelFlowBottomBarButtons",(P.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},P));
var H={},K=_.KU("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",P,(H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},H));
H={};var C=_.KU("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",P,(H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},H));
P={};P=_.KU("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
P));
N=_.KU("ytFlowBottomBarViewModelHost",N);return _.c("yt-flow-bottom-bar-view-model",{class:N},_.c(_.W,{cond:function(){var G;return(G=b())==null?void 0:G.textSection},
then:function(G){return _.c("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.c(_.mD,{text:G}))}}),_.c("div",{class:P},_.c(_.kY,{data:function(){return b().secondaryButton}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
className:C})}}),_.c(_.kY,{data:function(){return b().primaryButton}},{buttonViewModel:function(G){return _.c(_.j$,{data:G.data,
className:K,buttonOverrides:function(){var a;return{disabled:!((a=S())==null||!a.primaryButtonDisabled)}}})}})))},"Mi"),"yt-flow-bottom-bar-view-model",{props:{data:_.kg,
className:_.er}});var GPw="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),YK=function(){var N=_.z.apply(this,arguments)||this;N.enableScrollingFix=!0;N.bottomBar=!1;N.fitContent=!1;return N};
_.F(YK,_.z);_.v=YK.prototype;_.v.ready=function(){_.T("enable_pdp_icon_prefetch")&&X0q(_.aN().resolve(_.LK),0,GPw)};
_.v.focus=function(N){this.topBar?_.Ov(this.topBar,N):this.paperDialog.focus(N)};
_.v.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20903_scroller&&(this.JSC$20903_scroller.dialogElement=this.paperDialog,this.JSC$20903_scroller.attached&&typeof this.JSC$20903_scroller.attached==="function"&&this.JSC$20903_scroller.attached())};
_.v.onDataChanged=function(){var N;this.fitContent=!((N=this.data)==null||!N.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar)};
_.v.onProgressChanged=function(){var N,b,S=((b=(N=this.data)==null?void 0:N.progress)!=null?b:0)*100;this.progressElement.style.width=S+"%"};
_.v.isProgressHidden=function(){var N;return!((N=this.data)==null?0:N.progress)};
_.v.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(N){return N&&!N.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
YK.prototype.onProgressChanged=YK.prototype.onProgressChanged;YK.prototype.onDataChanged=YK.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YK.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],YK.prototype,"enableScrollingFix",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],YK.prototype,"bottomBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],YK.prototype,"fitContent",void 0);_.p([_.dq("#progress"),_.y("design:type",HTMLElement)],YK.prototype,"progressElement",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],YK.prototype,"JSC$20903_scroller",void 0);_.p([_.dq("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],YK.prototype,"topBar",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YK.prototype,"onDataChanged",null);_.p([_.W4("data.progress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YK.prototype,"onProgressChanged",null);_.p([_.Uj({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],YK);
_.X(YK,"ytd-flow-step-renderer",function(){if(Jy_!==void 0)return Jy_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Jy_=N},{mode:1});var yl=function(N){this.resolveCommand=N;this.steps={}},rfL=function(N,b){b=_.O(b||[]);
for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=Object.values(S)[0],H=void 0;if((H=P)==null?0:H.stepId)N.steps[P.stepId]=S}},amE=function(N,b){var S,P,H,K,C;
return _.r(function(G){if((S=N.state)==null||!S.currentStepId)return G.return(void 0);P=N.getCurrentStep();if(!P)return G.return(cf6(N));if(H=_.t(P,_.hj))N.logVEScreen(H),((K=H)==null?0:K.onStepStartCommand)&&N.resolveCommand((C=H)==null?void 0:C.onStepStartCommand,{});H&&b&&(N.logFlowEvent(H,b),b.steps&&!b.steps.includes(P)&&b.steps.push(P));return G.return(P)})};
yl.prototype.back=function(){var N;(N=this.state)!=null&&N.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
yl.prototype.handleUpdateFlowCommand=function(N){N.steps&&rfL(this,N.steps);N.entityUpdateCommand&&this.resolveCommand(N.entityUpdateCommand,{});N.flowContinuationCommand&&(N=N.flowContinuationCommand)&&(this.getFlowContinuationCommand=N);this.awaitFlowContinuation&&(N=this.getCurrentStep(),this.awaitFlowContinuation(N),this.awaitFlowContinuation=void 0)};
yl.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var cf6=function(N){return _.r(function(b){return N.getFlowContinuationCommand?b.return(new Promise(function(S){N.awaitFlowContinuation=S;N.getFlowContinuationCommand&&N.resolveCommand(N.getFlowContinuationCommand,{flow_state:N.state})})):b.return(Promise.resolve(void 0))})};
yl.prototype.getCurrentStep=function(){var N;if((N=this.state)!=null&&N.currentStepId)return this.steps[this.state.currentStepId]};
yl.prototype.logVEScreen=function(N){var b;((b=N.screenLoggingData)==null?0:b.screenVeType)&&_.Xy(_.dG(),N.screenLoggingData.screenVeType)};
yl.prototype.logFlowEvent=function(N,b){var S,P,H,K;((S=b.flowLoggingData)==null?0:S.eventNamespace)&&((P=N.flowEventData)==null?0:P.eventType)&&((H=N.flowEventData)==null?0:H.eventMetadata)&&((K=b.flowLoggingData)==null?0:K.flowType)&&(N=_.rQ(b.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.cd().logFlowEvent(N,b.flowLoggingData.flowType))};
_.d0.Object.defineProperties(yl.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.state)==null?void 0:N.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.state)!=null&&N.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(b,S){S.key&&S.value&&(b[S.key]=S.value);return b},{})}}});var Ik=function(){var N=_.z.apply(this,arguments)||this;N.flowState=_.T("web_use_flow_state_manager")?void 0:new yl(function(b,S){S=S===void 0?{}:S;_.rG.instance.resolveCommand(b,{form:{form:S,element:N.hostElement}})});
N.JSC$20914_flowStateManager=_.T("web_use_flow_state_manager")?_.aN().resolve(_.VO):void 0;N.currentTargetId="";N.initialState=!0;N.isLoading=!1;N.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};N.containsTalkToRecs=!1;return N};
_.F(Ik,_.z);_.v=Ik.prototype;_.v.onPopupClosed=function(N){if(!N||this.hostElement===N.detail.popupRenderer){if(this.JSC$20914_flowStateManager){var b;((b=this.data)==null?0:b.flowStateEntityKey)&&this.JSC$20914_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.v.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.v.focus=function(N){var b=this;_.p3(function(){var S=_.H4(b.hostElement).querySelector("ytd-flow-step-renderer");(S==null?0:S.topBar)?S.focus(N):b.topBar&&_.Ov(b.topBar,N)},1)};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.v.computeTopBarHidden=function(N){var b;return!((b=_.t(N,_.hj))==null||!b.topBarOverride)};
_.v.onCurrentFlowChange=function(){if(this.JSC$20914_flowStateManager&&this.data&&this.flow){var N=DO_(this.JSC$20914_flowStateManager,this.data),b;if(N&&((b=this.flow)==null?0:b.currentStepId)){N=e56(N,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var S;!N&&((S=this.data)==null?0:S.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.v.observeData=function(){var N=this;if(this.JSC$20914_flowStateManager){var b=this.currentTargetId,S,P,H=(P=(S=this.data)==null?void 0:S.targetId)!=null?P:"";b!==H&&b&&VAJ(this.JSC$20914_flowStateManager,b);this.currentTargetId=H;this.data&&gjo(DO_(this.JSC$20914_flowStateManager,this.data),function(K){K&&(N.initialState=!1,N.currentFlowStep={flowStepRenderer:K},N.isLoading=!N.currentFlowStep,N.autofocusAndRefit(),N.updateContainsTalkToRecs(),N.logVEScreen(),N.logFlowEvent())})}};
_.v.dataChanged=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1){if(!N.flowState)return P.return();((b=N.data)==null?0:b.steps)&&rfL(N.flowState,N.data.steps);if((S=N.data)==null?0:S.flowContinuationCommand){var H=N.flowState,K=N.data.flowContinuationCommand;K&&(H.getFlowContinuationCommand=K)}return P.yield(amE(N.flowState,N.data),2)}N.currentFlowStep=P.yieldResult;_.Zd(P)})};
_.v.flowChanged=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1){if(!N.flowState||!N.flow)return S.return();N.flowState.state=N.flow;N.isLoading=!0;return S.yield(amE(N.flowState,N.data),2)}b=S.yieldResult;if(!b||N.flow.isLoading)return S.return();N.currentFlowStep=b;N.initialState=!1;N.isLoading=!1;N.autofocusAndRefit();N.updateContainsTalkToRecs();_.Zd(S)})};
_.v.logVEScreen=function(){var N,b,S=(N=_.t(this.currentFlowStep,_.hj))==null?void 0:(b=N.screenLoggingData)==null?void 0:b.screenVeType;S&&_.Xy(_.aN().resolve(_.Sz),S)};
_.v.logFlowEvent=function(){var N=_.t(this.currentFlowStep,_.hj),b,S,P,H,K,C;(this==null?0:(b=this.data)==null?0:(S=b.flowLoggingData)==null?0:S.eventNamespace)&&(this==null?0:(P=this.data)==null?0:(H=P.flowLoggingData)==null?0:H.flowType)&&(N==null?0:(K=N.flowEventData)==null?0:K.eventType)&&(N==null?0:(C=N.flowEventData)==null?0:C.eventMetadata)&&(N=_.rQ(this.data.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.cd().logFlowEvent(N,this.data.flowLoggingData.flowType))};
_.v.updateContainsTalkToRecs=function(){var N,b=(N=_.t(this.currentFlowStep,_.hj))==null?void 0:N.content;this.containsTalkToRecs=!!b&&!!_.t(b,HYL)};
_.v.autofocusAndRefit=function(){var N=this,b=_.aN().resolve(_.cq(_.QJ)),S=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),P=document.querySelector("yt-report-form-confirmation-page-view-model"),H=document.querySelector("yt-report-form-details-page-view-model"),K=document.querySelector("yt-report-form-reason-select-page-view-model"),C=document.querySelector("yt-contributor-zero-state-view-model"),
G=document.querySelector("yt-structured-context-note-view-model"),a=document.querySelector("yt-note-view-model");(!S&&b&&b.isKeyBoardInUse()||P||!S&&H||!S&&K||!S&&(C||G||a))&&_.Cv(this.hostElement);_.W_(this,function(){_.bC(N.hostElement,"yt-refit")})};
_.v.handleUpdateFlowCommand=function(N){this.flowState?this.data&&(N=_.t(N,_.V2E),N.targetId===this.data.targetId&&(N.flowContinuationCommand&&(this.data.flowContinuationCommand=N.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(N),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(N)};
_.v.handleFlowNextStepCommand=function(N){this.JSC$20914_flowStateManager?this.ytComponentBehavior.resolveCommand(N):this.data&&this.flow&&this.flow.key&&(N=_.t(N,_.Ypd),N.targetId===this.data.targetId&&(N=N.stepId||"",this.ytdReduxBehavior.dispatch(_.oJ("flowStateEntity",this.flow.key,{currentStepId:N,stepIdStack:(this.flow.stepIdStack||[]).concat(N)}))))};
_.v.handleFlowPrevStepCommand=function(N){if(this.JSC$20914_flowStateManager)this.ytComponentBehavior.resolveCommand(N);else if(this.data&&this.flow&&this.flow.key&&(N=_.t(N,_.yH9),N.targetId===this.data.targetId)){var b=[].concat(_.IX(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(_.oJ("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):N.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(N.onFirstStepCommand)}};
_.v.handleYpcCancelRecurrenceCommand=function(N){if(this.data&&this.flow&&this.flow.key&&(N=_.t(N,OwE),N.targetId===this.data.targetId&&N.endpointCommand)){var b=_.t(this.flow,CBJ);b&&_.t(N.endpointCommand,_.SDc)&&(_.t(N.endpointCommand,_.SDc).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(N.endpointCommand)}};
_.v.handlePartialUpdateFlowStateEntity=function(N){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.oJ("flowStateEntity",this.flow.key,N,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Ik.prototype.flowChanged=Ik.prototype.flowChanged;Ik.prototype.dataChanged=Ik.prototype.dataChanged;Ik.prototype.observeData=Ik.prototype.observeData;Ik.prototype.onCurrentFlowChange=Ik.prototype.onCurrentFlowChange;Ik.prototype.onPopupClosed=Ik.prototype.onPopupClosed;_.p([_.L(_.Gr),_.y("design:type",Object)],Ik.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ik.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ik.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ik.prototype,"initialState",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ik.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Object)],Ik.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ik.prototype,"currentFlowStep",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ik.prototype,"onPopupClosed",null);
_.p([_.U({selectorArgs:["data.flowStateEntityKey"],selector:d7L}),_.y("design:type",Object)],Ik.prototype,"flow",void 0);_.p([_.dq("ytd-flow-top-bar-renderer"),_.y("design:type",HTMLElement)],Ik.prototype,"topBar",void 0);_.p([_.W4("data","flow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ik.prototype,"onCurrentFlowChange",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ik.prototype,"observeData",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Ik.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ik.prototype,"containsTalkToRecs",void 0);_.p([_.t_("flow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Ik.prototype,"flowChanged",null);_.p([_.Uj({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Ik);
var R4_=_.H7()(Ik,"ytd-flow-root-renderer",function(){if(LF_!==void 0)return LF_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return LF_=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var dbJ=_.FsN.talkToRecsStateSelector;_.qu(_.A(function(N){var b=function(){return _.t(N.data().flowRoot,S$i)};
_.YU(function(){var S=b(),P=function(){},H=function(){};
if(S){var K,C,G,a=((G=_.t((K=b())==null?void 0:(C=K.steps)==null?void 0:C[0],_.hj))==null?void 0:G.stepId)||"";R9q(S,a);P=nY6(S);H=mbw(S)}_.ej(function(){var R=b();R&&_.h0().dispatch(_.t5("flowStateEntity",R.flowStateEntityKey));P();P=function(){};
H();H=function(){};
_.e7(iOo())})});
return _.c("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.c(_.Ar,{contentId:function(){return N.data().contentId}},function(){return _.c("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.c(_.W,{cond:b,
then:function(S){return _.c(R4_,{data:S})}}))}))},"Ni"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.kg}});_.WBt=_.A(function(N){var b=_.h_(N,{numberOfChips:5}).numberOfChips;return _.c("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.c(_.zj,{each:function(){return Array(b==null?void 0:b())}},function(){return _.c("div",{class:"ytGhostChipShelfChip"})}))},"Oi");_.qu(_.A(function(){return _.c("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.c("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.c("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.c(_.WBt,null)),_.c(_.jZz,{data:{rows:1},isExploreHub:!0}))},"Pi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.qu(_.A(function(N){var b=N.data;var S=N.standardUnitMinWidth;N=_.O((0,_.E29)(b));var P=N.next().value,H=N.next().value,K=function(){var G,a=(G=P())==null?void 0:G.contents;return a==null||a.length===0},C=function(){H(Object.assign({},P(),{contents:[]}))};
return _.c("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.VN(_.nt({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var G=_.t(b().chipsShelf,kgE);if(G!=null&&G!=null&&G.autoselectChipOnVisible){var a,R,n=_.t(G==null?void 0:(a=G.contents)==null?void 0:a[(R=G.autoselectedChipIndex)!=null?R:0],_.nc);n&&n.tapCommand&&_.AM(n.tapCommand)}}}))},_.c(_.Ar,{contentId:function(){return b().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.c("div",null,_.c("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.c(_.kY,{data:function(){return b().header}},{sectionHeaderViewModel:function(G){return _.c(_.V5,{data:G.data,
disableHorizontalPadding:!0})}})),_.c("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.c(_.kY,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(G){return _.c(_.gH,{data:G.data,
callback:C,selectionBehavior:1})}})),_.c("div",null,_.c(_.W,{cond:K,
then:function(){return _.c("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.c(_.jZz,{data:{rows:1},isExploreHub:!0}))}}),_.c(_.kY,{data:function(){var G;
return(G=P())==null?void 0:G.contents}},{richShelfRenderer:function(G){return _.c(_.qk9,{data:G.data,
isInnerShelf:!0,standardUnitMinWidth:S})}})))}))},"Qi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.kg,
standardUnitMinWidth:_.kg}});var DO=function(){return _.z.apply(this,arguments)||this};
_.F(DO,_.z);
DO.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
DO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.p([_.L(_.Gr),_.y("design:type",Object)],DO.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],DO.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],DO.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Number)],DO.prototype,"standardUnitMinWidth",void 0);_.p([_.Uj({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],DO);
_.X(DO,"ytd-rich-section-renderer",function(){if(ry6!==void 0)return ry6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ry6=N},{mode:_.sZ("kevlar_poly_si_batch_j029")?
1:2});var nB6;var lzE=null;_.qu(_.A(function(N){return _.c("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.c("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.c(_.mD,{text:function(){return N.data().text}}),_.c("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ri"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.kg}});var dl5=_.A(function(N){var b=N.playerControlsProps;var S=N.isShortsPage;return _.c("yt-bigboard",null,_.c(_.W,{cond:function(){return b().isDragging},
then:function(){return _.c("div",{class:"ytBigboardStoryboardHost"},_.c(_.A2E,{progressBarProps:b,isShortsPage:S}))}}))},"Si");
dl5.idomCompat=!0;var Vl={ACCOUNT_LABEL:wF("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:wF("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:wF("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:wF("AD_BADGE_HINT"),AD_BADGE_TEXT:wF("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:wF("ALL_CHANNELS_LABEL"),AMBIENT_MODE:wF("AMBIENT_MODE"),AMBIENT_MODE_OFF:wF("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:wF("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:wF("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:wF("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:wF("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:wF("APP_UPSELL_TITLE"),AUDIO_TRACK:wF("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:wF("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:wF("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:wF("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:wF("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:wF("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:wF("AUTO_ZOOM","Auto zoom"),BACK:wF("BACK"),CANCEL:wF("CANCEL"),CHANNEL_SWITCHER_LABEL:wF("CHANNEL_SWITCHER_LABEL"),CLOSE:wF("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:wF("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:wF("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:wF("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:wF("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:wF("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:wF("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:wF("COMMENT_MODAL_CONTENT"),CONFIRM_OK:wF("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:wF("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:wF("COPIED_TO_CLIPBOARD"),COPY:wF("COPY"),COPY_DEBUG_INFO:wF("COPY_DEBUG_INFO"),COPY_EMBED_CODE:wF("COPY_EMBED_CODE"),
COPY_LINK_LABEL:wF("COPY_LINK_LABEL"),COPY_VIDEO_URL:wF("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:wF("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:wF("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:wF("DELETE_FROM_DOWNLOADS"),DIALOG:wF("DIALOG"),DONE:wF("DONE"),DOWNLOAD:wF("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:wF("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:wF("FLAG_CONFIRM"),FLAG_CONTENT:wF("FLAG_CONTENT"),FLAG_LABEL:wF("FLAG_LABEL"),FLAG_TITLE:wF("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:wF("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:wF("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:wF("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:wF("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:wF("HIDE_SEARCH_FILTERS_LABEL"),HOME:wF("HOME","Home"),INVALID_RESPONSE_RECEIVED:wF("INVALID_RESPONSE_RECEIVED"),LIBRARY:wF("LIBRARY","Library"),LISTENING:wF("LISTENING"),LOADING:wF("LOADING"),LONG_PRESS_MIC_TO_SPEAK:wF("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:wF("LOOP"),MENU_DESKTOP:wF("MENU_DESKTOP"),
MENU_EXIT:wF("MENU_EXIT"),MENU_FEEDBACK:wF("MENU_FEEDBACK"),MENU_HELP:wF("MENU_HELP"),MENU_IMPRESSUM:wF("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:wF("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:wF("MENU_SETTINGS"),MENU_SIGN_IN:wF("MENU_SIGN_IN"),MENU_TITLE:wF("MENU_TITLE"),MENU_YOUR_DATA:wF("MENU_YOUR_DATA"),MORE_INFO:wF("MORE_INFO"),MORE_OPTIONS:wF("MORE_OPTIONS"),MUTE_VOLUME:wF("MUTE_VOLUME"),NEW_PLAYLIST:wF("NEW_PLAYLIST"),NEXT_VIDEO:wF("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:wF("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:wF("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:wF("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:wF("NOT_FOUND_TITLE"),NO_DOWNLOADS:wF("NO_DOWNLOADS"),NO_MIC_INPUT:wF("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:wF("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:wF("OOPS_MESSAGE"),OPEN_APP:wF("OPEN_APP"),OPEN_YOUTUBE:wF("OPEN_YOUTUBE"),PAUSE:wF("PAUSE"),PLAY:wF("PLAY"),PLAYER_CAPTION:wF("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:wF("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:wF("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:wF("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:wF("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:wF("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:wF("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:wF("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:wF("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:wF("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:wF("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:wF("PLAYER_MINIMIZE"),PLAYER_NEXT:wF("PLAYER_NEXT"),PLAYER_PAUSE:wF("PLAYER_PAUSE"),PLAYER_PLAY:wF("PLAYER_PLAY"),
PLAYER_PREVIOUS:wF("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:wF("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:wF("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:wF("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:wF("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:wF("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:wF("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:wF("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:wF("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:wF("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:wF("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:wF("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:wF("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:wF("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:wF("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:wF("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:wF("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:wF("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:wF("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:wF("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:wF("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:wF("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:wF("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:wF("PLAY_ALL"),PLEASE_FIX_ERRORS:wF("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:wF("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:wF("PREVIOUS_VIDEO"),PRIVACY_POLICY:wF("PRIVACY_POLICY"),RELOAD:wF("RELOAD"),REQUIRED_LABEL:wF("REQUIRED_LABEL"),SAVE_PLAYLIST:wF("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:wF("SCRUB_SLIDE_USER_EDU"),SEARCH:wF("SEARCH","Search"),
SEARCH_APPEND_LABEL:wF("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:wF("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:wF("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:wF("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:wF("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:wF("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:wF("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:wF("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:wF("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:wF("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:wF("SEEK_SLIDER"),SETTINGS_LABEL:wF("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:wF("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:wF("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:wF("SHOW_LESS"),SHOW_MORE:wF("SHOW_MORE"),SHOW_PLAYER_CONTROLS:wF("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:wF("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:wF("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:wF("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:wF("SIGN_IN_ON_WEB"),STABLE_VOLUME:wF("STABLE_VOLUME"),STABLE_VOLUME_OFF:wF("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:wF("STABLE_VOLUME_ON"),STATS_FOR_NERDS:wF("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:wF("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:wF("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:wF("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:wF("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:wF("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:wF("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:wF("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:wF("TIMESTAMP_SECONDS"),TOGGLE_OFF:wF("TOGGLE_OFF"),TOGGLE_ON:wF("TOGGLE_ON"),TRENDING:wF("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:wF("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:wF("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:wF("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:wF("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:wF("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:wF("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:wF("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:wF("VIDEO_LINK_LABEL")};var ml_=_.A(function(N){var b=N.playerApi;N=_.Ct("button",function(P){vJ(P,36843)});
var S=wF("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.c("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.c("button",{el:N,class:"ytPlayerControlsJumpForwardButtonButton",title:S,"aria-label":S,"on:click":_.Ob(function(){O6(36843);b&&b().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.c("span",null,_.c(_.cX,{icon:"FAST_FORWARD"}))))},"Ti");var kPE=_.A(function(N){var b=N.appApi;N=_.Ct("button",function(P){vJ(P,62946)});
var S=wF("OPEN_IN_MINIPLAYER");return _.c("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.c("button",{el:N,class:"ytMiniplayerButtonButton",title:S,"aria-label":S,"on:click":_.Ob(function(){O6(62946);var P,H;(H=(P=b()).openInMiniplayer)==null||H.call(P);return!1})},_.c(_.cX,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ui");var Tdt=_.A(function(N){var b=N.playerApi;N=_.Ct("button",function(K){vJ(K,142812)});
var S=_.O(_.QF(!1,void 0,"eOMRAb")),P=S.next().value,H=S.next().value;S=function(){return wF("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(P()?1:2)})};
return _.c("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.c("button",{el:N,class:"ytPlaybackSpeedButtonButton",title:S,"aria-label":S,"on:click":_.Ob(function(){O6(142812);if(b){var K=b(),C=P();K.setPlaybackRate(C?1:2);H(!P())}return!1})},_.c("span",null,_.c(_.cX,{icon:function(){return P()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Vi");var tww=_.A(function(N){var b=N.title;var S=N.ariaLabel;var P=N.icon;var H=N.command;var K=N.visualElementId;N=_.Ct("button",function(C){K&&vJ(C,K())});
return _.c("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.c("button",{el:N,class:"ytdThumbnailOverlayButtonButton",title:b,"aria-label":S,"on:click":_.Ob(function(){K&&O6(K());H&&_.aN().resolve(_.Wq).resolveCommand(H())})},_.c(_.cX,{icon:P})))},"Wi");var Mwi=["en-CA","en","es-MX","fr-CA"];var FBn=_.A(function(N){var b=_.h_(N,{isOverlay:!1,isModern:!1}),S=b.captionIconType,P=b.onClick;N=b.ariaLabel;var H=b.ariaPressed,K=b.isOverlay,C=b.isModern;b=_.Ct("button",function(R){vJ(R,127299)});
var G=_.Ob(function(R){O6(127299);P==null||P(R);return!1}),a={};
return _.c("ytm-closed-captioning-button",{class:_.KU("ytmClosedCaptioningButtonHost",(a.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return S()===-1&&K()},a.ytmClosedCaptioningButtonIconDisabled=function(){return S()===-1&&!K()},a))},_.c("button",{el:b,
class:"ytmClosedCaptioningButtonButton",title:N,"aria-label":N,"aria-pressed":H,"on:click":G},_.c(_.cX,{icon:function(){var R="",n=C();var d=n?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";n=n?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var m=_.WN().get("hl");d=!m||Mwi.includes(m)?d:n;n=S();switch(n){case -1:case 0:R=d;break;case 1:R=d+"_FILLED";break;default:_.$Z(n)}return R}})))},"Xi");
FBn.idomCompat={callbacks:{onClick:!0}};var Ky="";var Bdq=_.A(function(N){var b=N.playerControlsProps,S=N.onClickFn;N=_.UB(function(){var K=b(),C=-1;K.captionsAvailable&&(C=K.captionsEnabled?1:0);return C},void 0,"MZ0Wqe");
var P=_.UB(function(){var K=b();return K.captionsAvailable?_.cN(K.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.cN("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),H=_.UB(function(){var K=b();
K=K.captionsAvailable?K.captionsEnabled:void 0;return K},void 0,"fhuQRe");
return _.c("yt-closed-captions-toggle-button",null,_.c(FBn,{captionIconType:N,ariaLabel:P,ariaPressed:H,onClick:function(K){var C=b();if(C.captionsAvailable){var G=C.playerApi;if(G){var a=C.playerApi;if(a){var R=Ky;if(R){a=a.getOption("captions","track");var n;Ky=(n=a?a.displayName:null)!=null?n:R}else XNO(a)?(R=_.OVY(a),Ky=R.length?(n=pNq(R))?n.displayName:R[0].displayName:""):Ky=""}YRa(G);_.T("mweb_disable_set_state_captions_killswitch")&&C.setState({captionsEnabled:!C.captionsEnabled})}}var d,
m;(m=(d=C.appApi).showCaptionsToggleToast)==null||m.call(d,C);S==null||S(K)},
isOverlay:!0}))},"Yi");var lmn=_.A(function(N){var b=N.data;return _.c("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.c(_.Wn,{data:function(){return{type:17,text:_.d3u(b().label)}}}))},"Zi");var LBn=_.A(function(N){var b=_.KU("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return N.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return N.size()==="small"?N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.c("animated-seek-arrows",{class:_.KU("ytPlayerControlsAnimatedSeekArrowsHost")},_.c("span",{class:b}),_.c("span",{class:b}),_.c("span",{class:b}))},"$i");
LBn.idomCompat=!0;var fmL=_.A(function(){var N=_.cN("PLAYER_SECONDS",{seconds_placeholder:"30"}),b=_.O(_.QF(!1,void 0,"iRJu8c")),S=b.next().value,P=b.next().value,H=_.O(_.QF(!1,void 0,"MPnizf"));b=H.next().value;var K=H.next().value;H={};var C=_.KU("jumpForwardOverlayOverlay",(H.jumpForwardOverlayOverlayHidden=b,H));_.YU(function(){var G=null,a=null,R=function(){G!==null&&_.oT().cancelJob(G);a!==null&&_.oT().cancelJob(a);K(!0);P(!0);_.PX(_.oT(),function(){K(!1)});
G=_.PX(_.oT(),function(){K(!0);a=_.PX(_.oT(),function(){P(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",R);_.ej(function(){window.removeEventListener("jump-forward-clicked",R)})});
return _.c("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.c(_.W,{cond:S,then:function(){return _.c("div",{class:C},_.c(LBn,{direction:1,size:"large"}),_.c("div",null,N))}}))},"aj");var u7q=Vl.MUTE_VOLUME,QFa=Vl.UNMUTE_VOLUME,xlw=_.A(function(N){var b=N.muteIconType;var S=N.onClick;var P=N.useOutlineIcon;var H=N.useDelhiIcons;N=_.Ct("button",function(G){vJ(G,28662)});
var K=function(){var G=b(),a=P==null?void 0:P(),R=H==null?void 0:H(),n="",d="";switch(G){case -1:case 0:n=a?"VOLUME_OFF":R?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";d=QFa;break;case 1:n=a?"VOLUME_UP_OUTLINE":R?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";d=u7q;break;case 2:n=a?"VOLUME_DOWN_OUTLINE":R?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";d=u7q;break;default:_.$Z(G)}return{iconName:n,ariaLabel:d}},C=function(){return K().ariaLabel};
return _.c("ytm-mute-button",{class:"ytmMuteButtonHost"},_.c("button",{el:N,class:"ytmMuteButtonButton",title:C,"aria-label":C,"on:click":_.Ob(function(G){O6(28662);S==null||S(G);return!1})},_.c("span",null,_.c(_.cX,{icon:function(){return K().iconName}}))))},"bj");var oBE=_.A(function(N){var b=N.volumeProps;var S=N.onClickFn;var P=N.useOutlineIcon;var H=N.useDelhiIcons;return _.c("yt-mute-toggle-button",null,_.c(xlw,{muteIconType:function(){var K=b();return K.volumeMuted||K.volume===0?0:K.volume>50?1:2},
onClick:function(K){var C=b().playerApi;C&&(C.isMuted()?C.unMute():C.mute(!1));S==null||S(K)},
useOutlineIcon:function(){return!(P==null||!P())},
useDelhiIcons:function(){return!(H==null||!H())}}))},"cj");
oBE.idomCompat=!0;var is5=_.A(function(N){var b=N.data;var S=_.Ct("ytm-paid-content-overlay-renderer");return _.c("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:S,"on:animationend":_.Ob(function(){S.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.c(_.xg,{command:function(){return b().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.c(_.W,{cond:function(){var P;return(P=b().icon)==null?void 0:P.iconType},
then:function(){return _.c("span",null,_.c(_.cX,{icon:function(){var P;return(P=b().icon)==null?void 0:P.iconType}}))}}),_.c("div",{class:"ytmPaidContentOverlayText"},_.c(_.mD,{text:function(){return b().text}})),_.c(_.W,{cond:function(){return b().navigationEndpoint},
then:function(){return _.c(_.cX,{icon:"CHEVRON_RIGHT"})}})))},"dj");
is5.idomCompat=!0;var NKL=[].concat(_.IX([{register:function(N){var b=IzE(N),S;(S=N().playerApi)==null||S.addEventListener("onVolumeChange",b);return function(){}}},
{register:function(N){var b=Dbt(N);N=N().playerApi;N==null||N.addEventListener("captionschanged",b);N==null||N.addEventListener("captionssettingschanged",b);N==null||N.addEventListener("onCaptionsTrackListChanged",b);return function(){}}}]),[{register:function(N){var b=EYo(N),S;
(S=N().playerApi)==null||S.addEventListener("onStateChange",b);return function(){}}},
{register:function(N){var b=pmi(N),S;(S=N().playerApi)==null||S.addEventListener("onPlaybackRateChange",b);return function(){}}},
{register:function(N){var b=YW6(N),S;(S=N().playerApi)==null||S.addEventListener("onVideoDataChange",b);return function(){}}},
{register:function(N){var b=y5q(N),S,P;(S=N())==null||(P=S.playerApi)==null||P.addEventListener("onVideoProgress",b);return function(){}}}]);var JfE=_.A(function(N){var b=N.data;var S=function(){return _.cN("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+b().playbackRate})};
return _.c(_.W,{cond:function(){return b().playbackRate&&b().playbackRate!==1},
then:function(){return _.c("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.c("div",{class:"ytPlaybackRateOverlayOverlay"},_.c(LBn,{direction:1,size:"small"}),_.c("div",{class:"ytPlaybackRateOverlayLabel"},S)))}})},"fj");var Ul6=_.A(function(N){var b=N.data;return _.c("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.c(_.W,{cond:function(){var S,P=(S=b())==null?void 0:S.playerResponse,H;return P==null?void 0:(H=P.paidContentOverlay)==null?void 0:H.paidContentOverlayRenderer},
then:function(S){return _.c(is5,{data:S})}}))},"hj"),ZsE=_.A(function(N){var b=N.props;
var S=N.data;var P=N.options;var H=function(){var R,n,d,m;return(R=S())==null?void 0:(n=R.playerResponse)==null?void 0:(d=n.playerConfig)==null?void 0:(m=d.inlinePlaybackConfig)==null?void 0:m.showAudioControls},K=function(){var R,n;
if(H()&&((R=P())==null?void 0:(n=R.additionalButton)==null?void 0:n.button)!==void 0){var d,m,k;R=(d=S())==null?void 0:(m=d.playerApi)==null?void 0:(k=m.getSize())==null?void 0:k.height;if(!(R===void 0||R<180)){var M,l;return(M=P())==null?void 0:(l=M.additionalButton)==null?void 0:l.button}}},C=function(){var R,n;
return(R=P())==null?void 0:(n=R.additionalButton)==null?void 0:n.thumbnailOverlayButtonRenderers},G=function(){var R,n;
return(R=P())==null?void 0:(n=R.additionalButton)==null?void 0:n.thumbnailOverlayButtonViewModels},a=function(){var R=[_.c(oBE,{volumeProps:b})],n;
((n=P())==null?0:n.hideCaptionsToggleButton)||R.push(_.c(Bdq,{playerControlsProps:b}));K()===1&&R.push(_.c(ml_,{playerApi:function(){return b().playerApi}}));
K()===2&&R.push(_.c(kPE,{appApi:function(){return b().appApi}}));
K()===3&&R.push(_.c(Tdt,{playerApi:function(){return b().playerApi}}));
n=C();if(K()===4&&n){n=_.O(n);for(var d=n.next(),m={};!d.done;m={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$628:void 0},d=n.next()){d=d.value;m.tooltip$jscomp$3=d.tooltip;var k=void 0,M=void 0;m.ariaLabel$jscomp$20=((k=d.accessibility)==null?void 0:(M=k.accessibilityData)==null?void 0:M.label)||m.tooltip$jscomp$3;k=void 0;m.icon$jscomp$54=(k=d.icon)==null?void 0:k.iconType;m.command$jscomp$628=d.command;m.tooltip$jscomp$3&&m.ariaLabel$jscomp$20&&m.icon$jscomp$54&&
R.push(_.c(tww,{title:function(l){return function(){return l.tooltip$jscomp$3}}(m),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$20}}(m),
icon:function(l){return function(){return l.icon$jscomp$54}}(m),
command:function(l){return function(){return l.command$jscomp$628}}(m)}))}}n=G();
if(K()===4&&n)for(n=_.O(n),d=n.next(),m={};!d.done;m={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$629:void 0,trackingParamsVeType:void 0},d=n.next())d=d.value,m.tooltip$jscomp$4=d.title,m.ariaLabel$jscomp$21=d.accessibilityText||m.tooltip$jscomp$4,m.icon$jscomp$55=d.iconName,m.command$jscomp$629=_.UZ(d.onTap),M=k=void 0,m.trackingParamsVeType=((k=d.loggingDirectives)==null?0:k.trackingParams)?(M=aUw(_.qL(d.loggingDirectives.trackingParams)))==null?void 0:
_.tg(M,2):void 0,m.tooltip$jscomp$4&&m.ariaLabel$jscomp$21&&m.icon$jscomp$55&&R.push(_.c(tww,{title:function(l){return function(){return l.tooltip$jscomp$4}}(m),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$21}}(m),
icon:function(l){return function(){return l.icon$jscomp$55}}(m),
command:function(l){return function(){return l.command$jscomp$629}}(m),
visualElementId:function(l){return function(){return l.trackingParamsVeType}}(m)}));
return R};
return _.c(_.W,{cond:H,then:function(){return _.c("div",{class:"ytInlinePlayerControlsTopRightControls"},_.c(_.zj,{each:a},function(R){return _.c("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.c("div",{class:"ytInlinePlayerControlsButtonIcon"},R))}))}})},"ij"),AfJ=_.A(function(N){var b=N.props;
var S=N.data;var P=N.options;N={};N=_.KU("ytInlinePlayerControlsBottomRightControls",(N.ytInlinePlayerControlsBottomRightControlsHidden=function(){var H;return gY5(S(),P())&&((H=P())==null?void 0:H.insetProgressBar)&&(b().isHovering||b().isDragging)},N));
return _.c("div",{class:N},_.c(jFw,{data:S}),_.c(_.W,{cond:function(){var H;return!((H=P())==null?0:H.hideTimeDisplay)},
then:function(){return _.c(z4a,{props:b,data:S})}}))},"jj"),jFw=_.A(function(N){var b=N.data;
return _.c(_.kY,{data:function(){var S;return J5E((S=b())==null?void 0:S.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:lmn})},"kj"),z4a=_.A(function(N){var b=N.props;
var S=N.data;return _.c(_.W,{cond:function(){return b().isLive},
then:function(){return _.c(XHa,{props:b,data:S})},
else:function(){return _.c(EB6,{props:b,data:S})}})},"lj"),EB6=_.A(function(N){var b=N.props;
var S=N.data;var P=_.UB(function(){var H;return UbJ((H=S())==null?void 0:H.thumbnailOverlays)},void 0,"Pf9uIe");
return _.c("div",{class:_.KU("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return Vl.PLAYER_TIME_ELAPSED+" "+_.U99(b().playedTime)}},_.c(_.Wn,{data:function(){var H=_.U99(b().videoDuration-b().playedTime);
return Object.assign({},{type:17,text:H},P())}}))},"mj"),pHE=_.A(function(N){N=N.badgeShapeData;
return _.c("div",{class:_.KU("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.c(_.Wn,{data:N}))},"nj"),XHa=_.A(function(N){var b=N.data;
N=_.UB(function(){if(_.T("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var P,H=_.O(((P=b())==null?void 0:P.thumbnailOverlays)||[]);for(P=H.next();!P.done;P=H.next()){P=P.value;if(P.thumbnailOverlayTimeStatusRenderer||P.thumbnailOverlayBadgeViewModel)return P;var K=void 0;if((K=P.thumbnailBottomOverlayViewModel)==null?0:K.badges)if(P=P.thumbnailBottomOverlayViewModel.badges.find(function(C){return _.t(C,oYw)}))return P}}},void 0,"GPGpgc");
var S=_.UB(function(){var P,H,K,C,G,a;return _.MQe((P=b())==null?void 0:(H=P.playerApi)==null?void 0:(K=H.getSize())==null?void 0:K.width,(C=b())==null?void 0:(G=C.playerApi)==null?void 0:(a=G.getSize())==null?void 0:a.height)},void 0,"OeIVKe");
return _.c(_.W,{cond:N,then:function(P){return _.c(_.kY,{data:P},{thumbnailOverlayTimeStatusRenderer:function(H){var K=H.data;H=_.UB(function(){return _.cQf(K(),0)},void 0,"skoDC");
return _.c(pHE,{badgeShapeData:H})},
thumbnailBadgeViewModel:function(H){return _.c(_.CXN,{data:H.data,class:_.KU("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(H){return _.c(_.WCl,{data:H.data,thumbnailSize:S})}})},
else:function(){var P={type:18,text:Vl.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.c(pHE,{badgeShapeData:function(){return P}})}})},"oj"),YAo=_.A(function(N){var b=N.props;
var S=N.data;var P=N.options;return _.c(_.IjO,{progressBarProps:b,config:function(){var H,K=_.t((H=S())==null?void 0:H.multiMarkersPlayerBar,_.fc9),C;H=((C=P())==null?0:C.insetProgressBar)?2:1;var G;C=(G=P())==null?void 0:G.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:H,chapterData:K,isInlinePlayback:!0,doSeekOnClick:C,playheadDotBehavior:C?1:0}}})},"pj");_.qu(_.A(function(N){var b=N.data;var S=N.appApi;var P=N.options;var H=Xmq(b,VFJ(S));N={};S={};return _.c("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.c("div",{class:_.KU("ytInlinePlayerControlsDarkenedOverlay",(N.ytInlinePlayerControlsDarkenedOverlayShow=function(){return H().isHovering},N))}),_.c(fmL,null),_.c(JfE,{data:H}),_.c(Ul6,{data:b}),_.c(dl5,{playerControlsProps:H,
isShortsPage:!1}),_.c("div",{class:_.KU((S.ytInlinePlayerControlsControlsHidden=function(){return H().isDragging},S))},_.c(ZsE,{props:H,
data:b,options:P}),_.c(AfJ,{props:H,data:b,options:P})),_.c(_.W,{cond:function(){return gY5(b(),P())},
then:function(){return _.c(YAo,{props:H,data:b,options:P})}}))},"gj"),"yt-inline-player-controls",{props:{data:_.kg,
appApi:_.er,options:_.kg}});var gr=function(){var N=_.z.apply(this,arguments)||this;N.opts=null;N.playerControlsData=null;N.playerControlsAppApi={openInMiniplayer:function(){N.openInMiniplayer()}};
N.playerControlsOptions={};N.noAnimation=!1;N.playbackIntentTriggered=!1;N.positionData=null;N.hidden=!0;N.active=!1;N.playing=!1;N.persistentPanelVisible=!1;N.videoPreviewDataIndex=0;N.JSC$20971_playerPromise=null;N.player=null;N.enableAudioControls=!1;N.hasBeenUnmuted=!1;N.captionsHaveBeenTurnedOff=!1;N.JSC$20971_playerEvents=new Map;N.videoPreviewFetchRequest=null;N.scheduledPreviewEndJobId=null;N.JSC$20971_preventProgressSaveTimer=null;N.watchEndpointStartTimeUpdaterInterval=null;N.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};N.windowOnBlurFn=function(){N.deactivate()};
return N};
_.F(gr,_.z);_.v=gr.prototype;
_.v.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.v.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$20971_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$20971_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$20971_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$20971_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.aA(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.aA(this,this.onScroll))};
_.v.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.aA(this,this.onScroll))};
_.v.onPageTypeChange=function(){this.deactivate()};
_.v.onWindowResized=function(){this.deactivate()};
_.v.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.v.onCaptionsChanged=function(N){N=!!N.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!N);this.setCaptionSize()};
_.v.setCaptionSize=function(){var N;if(this.active&&!this.captionsHaveBeenTurnedOff&&((N=this.player)==null?0:N.getCaptionWindowContainerId())){var b;(b=this.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.v.currentPageAllowed=function(){return!this.isWatchPage};
_.v.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.T("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var N=this.positionData,b=N.initialTopPosition,S=N.initialHorizontalPosition;_.rq(this.hostElement,{"--ytd-video-preview-translate-left":N.finalHorizontalPosition-S+"px","--ytd-video-preview-translate-top":N.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+
"px","--ytd-video-preview-original-horizontal-position":S+"px","--ytd-video-preview-initial-scale":"scale("+N.initialScale+")","--ytd-video-preview-width":N.videoPreviewWidth+"px","--ytd-video-preview-height":N.videoPreviewHeight+"px"});return!0};
_.v.isOutOfBounds=function(N){var b=N.initialHorizontalPosition+12;N=b+N.videoPreviewWidth>window.innerWidth;return b<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&b<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&b<72||N};
_.v.handleOpenVideoPreviewAction=function(N){var b=this,S;return _.r(function(P){if(!b.currentPageAllowed())return P.return(0);b.opts=N;return(S=b.alignVideoPreviewForAnimation(N.thumbnail))?P.return(b.activate()):P.return(0)})};
_.v.onMouseLeave=function(N){var b,S;(b=this.opts)==null||(S=b.mouseleaveCallback)==null||S.call(b);this.shouldDeactivateOnMouseLeave(N)&&this.deactivate()};
_.v.onScroll=function(){var N,b;((N=this.opts)==null?0:N.isAutoplay)&&((b=this.opts)==null?0:b.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.v.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Dj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.v.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.v.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",gr.JSC$20970_DEFAULT_CLICK_LOCATION_BEHAVIOR,gr.JSC$20970_CLICK_LOCATION_ID_MAP)};
_.v.shouldDeactivateOnMouseLeave=function(N){N=N.relatedTarget;if(!N)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!_.sj(this.opts.mediaRenderer).contains(N):!0};
_.v.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.v.onPlaybackStart=function(){var N=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$20971_preventProgressSaveTimer=
_.PX(_.Dj,function(){N.resetPreventProgressSaveTimer()},1E4);
var b;if((b=this.opts)==null?0:b.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.PX(_.Dj,function(){N.hasMultipleVideoPreviews()?N.startPlaybackForNextVideo():N.deactivate()},this.opts.videoPreviewDurationMs);
var S;this.player.setGlobalCrop(((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.v.getRoundedCornersSize=function(){var N;if((N=this.opts)==null?0:N.roundedCornersSize){var b;return(b=this.opts)==null?void 0:b.roundedCornersSize}var S;if((S=this.opts)==null?0:S.enableRounding){var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="small")return 1;var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="medium")return 2;var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="large")return 3}return _.T("web_imp_inset_progress_bar")?3:0};
_.v.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.v.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.v.onMediaContainerClick=function(N){this.isShortcutClick(N)||(this.navigateToWatch(N),N.preventDefault(),N.stopPropagation())};
_.v.activate=function(){var N=this,b,S,P,H,K,C,G,a,R;return _.r(function(n){switch(n.nextAddress){case 1:if(!N.currentPageAllowed())return n.return(0);S=(b=N.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint;P=_.XM.instance;if(!S||!P)return n.return(0);N.playbackIntentTriggered=!0;((H=N.opts)==null?0:H.mediaRenderer)&&((K=N.opts)==null||!K.isAutoplay)&&Q2O(N.opts.mediaRenderer,function(){N.deactivate()});
_.W_(N,function(){N.revealPreviewUi()});
C={};_.T("enable_unknown_lact_fix_on_html5")&&(_.aN().resolve(_.mh),C.lact=_.nv());N.videoPreviewFetchRequest=MFL(P,N.getInlinePlaybackRequestData(N.videoPreviewData),C);_.u4(n,2);return n.yield(N.videoPreviewFetchRequest,4);case 4:G=n.yieldResult;if(((a=G)==null?void 0:(R=a.playabilityStatus)==null?void 0:R.status)==="OK")return n.return(N.handlePlayerResponse(G));throw Error("Jl");case 2:_.UE(n),N.deactivate();case 3:return n.return(1)}})};
_.v.getInlinePlaybackRequestData=function(N){var b,S=_.T("web_imp_player_mute_params")?((b=this.opts)==null?void 0:b.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:N.inlinePlaybackEndpoint,startPlaybackInMutedState:S}};
_.v.handlePlayerResponse=function(N){var b=this,S,P,H,K,C,G,a,R,n,d,m,k,M,l;return _.r(function(u){if(u.nextAddress==1){S=b.getInlinePlaybackVideoId();if(!(((P=N)==null?0:(H=P.videoDetails)==null?0:H.videoId)&&b.currentPageAllowed()&&b.playbackIntentTriggered&&b.opts&&S))return b.deactivate(),u.return(0);if(N.videoDetails.videoId!==S)return u.return(0);b.enableAudioControls=!!((K=N.playerConfig)==null?0:(C=K.inlinePlaybackConfig)==null?0:C.showAudioControls);N.trackingParams=b.getInlinePlaybackTrackingParams();
if(!b.inlinePlayer)return u.return(0);G={};if(R=_.t((a=b.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.Iv))G.watch_endpoint=R;if(b.videoPreviewData){var J,Z=(J=_.t(b.videoPreviewData.inlinePlaybackEndpoint,_.Iv))==null?void 0:J.startTimeSeconds;Z!==void 0&&(N.playerConfig||(N.playerConfig={}),N.playerConfig.playbackStartConfig||(N.playerConfig.playbackStartConfig={}),N.playerConfig.playbackStartConfig.startPosition||(N.playerConfig.playbackStartConfig.startPosition={}),N.playerConfig.playbackStartConfig.startSeconds=
Z,N.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Z*1E3))}b.inlinePlayer.loadVideoWithPlayerResponse(N,G);if(b.JSC$20971_playerPromise)return u.jumpTo(2);b.JSC$20971_playerPromise=b.inlinePlayer.getPlayerPromise();return u.yield(b.JSC$20971_playerPromise,3)}u.nextAddress!=2&&(n=u.yieldResult,n.setInlinePreview(!0),d=!_.T("web_imp_theater_bugfix"),n.setSizeStyle(!1,d),b.ytPlayerListenerBehavior.listenToPlayerEvents(n,b.JSC$20971_playerEvents),b.player=n,_.bC(b.hostElement,
"player-api-ready"));((m=b.opts)==null?0:m.showPlayerControls)&&b.videoPreviewData&&b.player&&(b.playerControlsData={playerResponse:N,isInlinePlayback:!0,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,playerApi:b.player},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!b.unroundCornersForPlayback,additionalButton:b.getAdditionalButtonType(b.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(k=b.opts)==null?void 0:k.hideTimeDisplay,hideScrubbingControls:(M=b.opts)==
null?void 0:M.hideScrubber,hideCaptionsToggleButton:(l=b.opts)==null?void 0:l.hideCaptionsToggleButton});return u.return(2)})};
_.v.revealPreviewUi=function(){var N=this;this.playbackIntentTriggered&&_.Lws(this,function(){N.hasThumbnailPositionChangedSinceTriggered()||(N.updateActiveState(!0),N.noAnimation=!1)})};
_.v.hasThumbnailPositionChangedSinceTriggered=function(){var N=this.positionData,b=this.getThumbnailPositionData();return(N==null?void 0:N.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(N==null?void 0:N.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)};
_.v.getThumbnailPositionData=function(){var N,b;if((b=this.opts)==null||!b.thumbnail)return null;b=this.opts.thumbnail;var S=((N=this.opts)==null?0:N.cropPlayerToFillThumbnailHorizontally)?!1:!0;var P=b.getBoundingClientRect();N=P.width;b=P.height;var H=P.top+window.scrollY;P=P.left+window.scrollX;var K=S?Math.ceil(N):N;S=S?Math.ceil(b):b;var C=N/K;N={initialScale:C,initialTopPosition:H-12*C,finalTopPosition:H-12-(S-b)/2,initialHorizontalPosition:P-(12+(K-N)/2),finalHorizontalPosition:P-12-(K-N)/
2,videoPreviewWidth:K,videoPreviewHeight:S};return N};
_.v.updateActiveState=function(N){this.active=N;this.ytdReduxBehavior.dispatch(_.HU({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:N}))};
_.v.stopPlayer=function(N){N=N.resetWatchEndpointStartTime===void 0?!1:N.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(N)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Dj.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.v.deactivate=function(N){N=N===void 0?{}:N;N=N.resetWatchEndpointStartTime===void 0?!1:N.resetWatchEndpointStartTime;lzE&&(lzE.disconnect(),lzE=null);this.stopPlayer({resetWatchEndpointStartTime:N});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.v.isValidThumbnailOverlayButton=function(N,b){N=N.thumbnailOverlayButtonRenderer;var S;return!!N&&!!N.tooltip&&!((S=N.icon)==null||!S.iconType)&&b.includes(N.icon.iconType)};
_.v.isValidThumbnailOverlayButtonViewModel=function(N,b){var S;N=_.t((S=N.thumbnailOverlayButtonViewModel)==null?void 0:S.overlayButton,_.WC);return!!N&&!!N.title&&!!N.iconName&&b.includes(N.iconName)};
_.v.getAdditionalButtonType=function(N){var b=this;if(_.T("web_imp_fastforward_button"))return{button:1};if(_.T("web_imp_miniplayer_button"))return{button:2};if(_.T("web_imp_playback_speed_button"))return{button:3};var S=["BOX_STACK_3"],P=(N||[]).filter(function(K){return b.isValidThumbnailOverlayButton(K,S)}).map(function(K){return K.thumbnailOverlayButtonRenderer});
if(P.length)return{button:4,thumbnailOverlayButtonRenderers:P};var H=["BOX_STACK_3"];N=(N||[]).filter(function(K){return b.isValidThumbnailOverlayButtonViewModel(K,H)}).map(function(K){return _.t(K.thumbnailOverlayButtonViewModel.overlayButton,_.WC)});
if(N.length)return{button:4,thumbnailOverlayButtonViewModels:N}};
_.v.allowCaptions=function(){var N;return!((N=this.opts)==null?0:N.forceCaptionsOff)};
_.v.allowUnmuting=function(){var N;return this.enableAudioControls&&!((N=this.opts)==null?0:N.forceMutedVolume)};
_.v.beginStartTimeUpdater=function(){var N=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.MX(function(){N.updateWatchEndpointStartTime()},1E3)};
_.v.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.v.resetPreventProgressSaveTimer=function(){this.JSC$20971_preventProgressSaveTimer!==null&&(_.Dj.cancelJob(this.JSC$20971_preventProgressSaveTimer),this.JSC$20971_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.v.updateWatchEndpointStartTime=function(N){var b=this.videoPreviewData;if(this.player&&b!=null&&b.inlinePlaybackEndpoint&&!this.JSC$20971_preventProgressSaveTimer){N=N?0:Math.floor(this.player.getCurrentTime());var S=_.t(b.navigationEndpoint,_.Iv);S&&(S.startTimeSeconds=N);if(b=_.t(b.inlinePlaybackEndpoint,_.Iv))b.startTimeSeconds=N}};
_.v.isShortcutClick=function(N){return!!N&&(N.ctrlKey||N.shiftKey||N.metaKey)};
_.v.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.v.openInMiniplayer=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1){S=(b=N.videoPreviewData)==null?void 0:b.navigationEndpoint;if(!S)return P.return();_.gU().lockupActivation=!0;return P.yield(_.Z_b(_.aN().resolve(_.E_),S),2)}_.gU().userActivation=!0;_.Zd(P)})};
_.v.navigateToWatch=function(N){var b,S=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(S){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(S,N,!0);else{var P;_.T("web_thumbnail_to_watch_transition")&&((P=this.opts)==null?0:P.thumbnail)&&_.iBc(_.aN().resolve(_.wH),this.opts.thumbnail);_.bC(this.hostElement,"yt-navigate",{endpoint:S})}this.deactivate()}};
_.v.getInlinePlaybackVideoId=function(){var N,b;return(b=_.t((N=this.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint,_.Iv))==null?void 0:b.videoId};
_.v.getInlinePlaybackTrackingParams=function(){var N,b;return(N=this.videoPreviewData)==null?void 0:(b=N.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams};
_.v.hasMultipleVideoPreviews=function(){var N;return!!(((N=this.opts)==null?0:N.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.v.startPlaybackForNextVideo=function(){var N;(N=this.opts)!=null&&N.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.d0.Object.defineProperties(gr.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.opts)==null?0:N.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.opts)==null||!N.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var N;if(Array.isArray((N=this.opts)==null?void 0:N.videoPreviewData)){var b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var S;return(S=this.opts)==null?void 0:S.videoPreviewData}}});
gr.prototype.onIsAdsVideoChange=gr.prototype.onIsAdsVideoChange;gr.prototype.onInlinePreviewIsEnabledChange=gr.prototype.onInlinePreviewIsEnabledChange;gr.prototype.optsChanged=gr.prototype.optsChanged;gr.prototype.onMouseLeave=gr.prototype.onMouseLeave;gr.prototype.onPersistentPanelVisibleChange=gr.prototype.onPersistentPanelVisibleChange;gr.JSC$20970_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
gr.JSC$20970_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],gr.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],gr.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],gr.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gr.prototype,"componentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Qr.YtSparklesClickLocationBehavior),_.y("design:type",Object)],gr.prototype,"ytSparklesClickLocationBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gr.prototype,"opts",void 0);_.p([_.U(),_.y("design:type",Object)],gr.prototype,"playerControlsData",void 0);_.p([_.U(),_.y("design:type",Object)],gr.prototype,"playerControlsAppApi",void 0);
_.p([_.U(),_.y("design:type",Object)],gr.prototype,"playerControlsOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gr.prototype,"noAnimation",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gr.prototype,"hidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gr.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gr.prototype,"playing",void 0);
_.p([_.U({selector:_.ptO}),_.y("design:type",Boolean)],gr.prototype,"inlinePreviewIsEnabled",void 0);_.p([_.U(),_.y("design:type",String)],gr.prototype,"pagePath",void 0);_.p([_.U({selector:_.ADU}),_.y("design:type",Boolean)],gr.prototype,"isWatchPage",void 0);_.p([_.U({selector:_.pf.persistentPanelVisibleSelector}),_.y("design:type",Object)],gr.prototype,"persistentPanelVisible",void 0);
_.p([_.f("videoPreviewData"),_.y("design:type",Object),_.y("design:paramtypes",[])],gr.prototype,"thumbnailData",null);_.p([_.f("opts","active"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"hidePlayerControls",null);_.p([_.f("opts"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"isAdsVideo",null);
_.p([_.f("opts"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"roundedCornersSmall",null);_.p([_.f("opts"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"roundedCornersMedium",null);_.p([_.f("opts"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"roundedCornersLarge",null);
_.p([_.f("opts"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gr.prototype,"unroundCornersForPlayback",null);_.p([_.f("opts","videoPreviewDataIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],gr.prototype,"videoPreviewData",null);_.p([_.U(),_.y("design:type",Object)],gr.prototype,"videoPreviewDataIndex",void 0);_.p([_.dq("#inline-player"),_.y("design:type",Object)],gr.prototype,"inlinePlayer",void 0);
_.p([_.W4("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gr.prototype,"onPersistentPanelVisibleChange",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],gr.prototype,"onMouseLeave",null);_.p([_.t_("opts"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gr.prototype,"optsChanged",null);
_.p([_.t_("inlinePreviewIsEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gr.prototype,"onInlinePreviewIsEnabledChange",null);_.p([_.W4("isAdsVideo"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gr.prototype,"onIsAdsVideoChange",null);_.p([_.Uj({is:"ytd-video-preview",disableElementRegistration:!0})],gr);
_.X(gr,"ytd-video-preview",function(){if(nB6!==void 0)return nB6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return nB6=N},{mode:2});var yfq;var eb=function(){var N=_.z.apply(this,arguments)||this;N.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};N.forceDarkTheme=!1;N.forceLightTheme=!1;N.dynamicTextHeight=94;N.hasOverflowButton=!1;N.isInfeedModernization=!1;return N};
_.F(eb,_.z);_.v=eb.prototype;_.v.computeUrlImg=function(N){if(N)return _.NE(N.thumbnails)};
_.v.getLogoHeight=function(N){return this.logoWithPadding(N)?"31":"24"};
_.v.getLogoClassName=function(N){return this.logoWithPadding(N)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.v.logoWithPadding=function(N){var b,S;return(N=(b=N.thumbnails)==null?void 0:(S=b[0])==null?void 0:S.height)&&N%31===0?!0:!1};
_.v.sendImpressionEndpoints=function(N){N.impressionEndpoints&&_.HN(this.hostElement,N.impressionEndpoints)};
_.v.observeBasicPalette=function(){var N,b,S=(N=this.data)==null?void 0:(b=N.colorData)==null?void 0:b.basicColorPaletteData;S?_.FM(this.hostElement,S):_.FM(this.hostElement,{})};
_.v.observeDataChanged=function(){var N;this.dynamicTextHeight=((N=this.data)==null?0:N.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);var S,P,H,K;N=(S=this.data)==null?void 0:(P=S.actionButton)==null?void 0:(H=P.buttonRenderer)==null?void 0:(K=H.colorData)==null?void 0:K.basicColorPaletteData;var C,G,a;if(!((C=this.data)==null?0:(G=C.actionButton)==null?0:(a=G.buttonRenderer)==null?0:a.style)&&N){this.computeIsInfeedModernization(this.data)||(N.borderColor=
N.foregroundTitleColor);var R,n;this.set("data.actionButton.buttonRenderer",_.Vm.unsafeClone((R=this.data)==null?void 0:(n=R.actionButton)==null?void 0:n.buttonRenderer))}};
_.v.observeDataForCounterfactual=function(){if(_.T("kevlar_banner_cf_extra_logging")){var N;((N=this.data)==null?0:N.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.v.computeSupplementalStyle=function(){var N;if((N=this.data)!=null&&N.supplementalText){var b,S,P;if((b=this.data)==null?0:(S=b.colorData)==null?0:(P=S.basicColorPaletteData)==null?0:P.foregroundActivatedColor)return N=_.xn(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+N+"; --yt-endpoint-hover-color:"+N+"; --yt-endpoint-visited-color:"+N+"; --yt-formatted-string-bold-font-weight:700;"}};
_.v.computeForcedDarkTheme=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.actionButton)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.style,H,K,C;N=myw(((H=this.data)==null?void 0:(K=H.colorData)==null?void 0:(C=K.basicColorPaletteData)==null?void 0:C.backgroundColor)||0);return P&&N};
_.v.computeForcedLightTheme=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.actionButton)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.style,H,K,C;N=!myw(((H=this.data)==null?void 0:(K=H.colorData)==null?void 0:(C=K.basicColorPaletteData)==null?void 0:C.backgroundColor)||0);return P&&N};
_.v.computeHasOverflowButton=function(N){return!!N.overflowButton};
_.v.computeHasTitle=function(N){return!!N.title};
_.v.computeTitleMaxFontSize=function(N){return this.computeHasOverflowButton(N)?28:64};
_.v.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.v.computeIsInfeedModernization=function(){var N,b,S,P,H=(N=this.data)==null?void 0:(b=N.actionButton)==null?void 0:(S=b.buttonRenderer)==null?void 0:(P=S.colorData)==null?void 0:P.basicColorPaletteData;return(H==null?void 0:H.backgroundColor)===452984831||(H==null?void 0:H.backgroundColor)===218103808};
eb.prototype.observeDataForCounterfactual=eb.prototype.observeDataForCounterfactual;eb.prototype.observeDataChanged=eb.prototype.observeDataChanged;eb.prototype.observeBasicPalette=eb.prototype.observeBasicPalette;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],eb.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],eb.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eb.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],eb.prototype,"hasSupplementalText",void 0);_.p([_.U(),_.y("design:type",Object)],eb.prototype,"dismissButtonOverrides",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.y("design:type",Boolean)],eb.prototype,"hasTitle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.y("design:type",Object)],eb.prototype,"forceDarkTheme",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.y("design:type",Object)],eb.prototype,"forceLightTheme",void 0);_.p([_.U(),_.y("design:type",Object)],eb.prototype,"dynamicTextHeight",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.y("design:type",Object)],eb.prototype,"hasOverflowButton",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.y("design:type",Object)],eb.prototype,"isInfeedModernization",void 0);_.p([_.W4("data.colorData.basicColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eb.prototype,"observeBasicPalette",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eb.prototype,"observeDataChanged",null);_.p([_.W4("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eb.prototype,"observeDataForCounterfactual",null);_.p([_.Uj({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],eb);
_.X(eb,"ytd-banner-promo-renderer",function(){if(yfq!==void 0)return yfq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yfq=N},{mode:1});var gBE=_.A(function(N){var b=N.data;var S=N.hideDivider;var P=N.isChannelInfoCard;N={};return _.c("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.c("div",{class:_.KU("yt-profile-identity-info-view-model__frame",(N["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!b().channelBanner},N))},_.c(Im_,{profileIdentityInfoData:b}),_.c("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.c("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH})),_.c(Dln,{profileIdentityInfoData:b})),_.c(_.W,{cond:function(){return b().channelDescription},
then:function(H){var K={};return _.c("div",{class:_.KU((K["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(P==null||!P())},K["yt-profile-identity-info-view-model__channel-description"]=function(){return!(P==null?0:P())},K))},H)}}),_.c(Vww,{profileIdentityInfoData:b}),_.c(_.W,{cond:function(){return!(S==null?0:S())},
then:function(){return _.c("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"qj");
gBE.idomCompat=!0;var Vww=_.A(function(N){var b=N.profileIdentityInfoData;return _.c("div",{class:"yt-profile-identity-info-view-model__buttons"},_.c(_.zj,{each:function(){return b().subscribeButton?[b().subscribeButton,b().channelAccess]:[b().channelAccess]}},function(S){return _.c("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.c("div",{class:"yt-profile-identity-info-view-model--button"},_.c(_.kY,{data:function(){return S}},{buttonViewModel:_.j$,
subscribeButtonViewModel:_.CW})))}))},"rj"),Dln=_.A(function(N){var b=N.profileIdentityInfoData;
return _.c("div",{class:"yt-profile-identity-info-view-model__trio"},_.c("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.c(e4a,{profileIdentityInfoData:b}),_.c(_.kY,{data:function(){return b().threeDotMenu}},{buttonViewModel:_.j$})),_.c($lt,{profileIdentityInfoData:b}))},"sj"),e4a=_.A(function(N){var b=N.profileIdentityInfoData;
return _.c("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.c("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return b().channelDisplayName}),_.c(_.W,{cond:function(){return b().verifiedOrOacBadge},
then:function(S){return _.c("div",{class:"yt-profile-identity-info-view-model__badge"},_.c(_.gG,{data:function(){return{thumbnails:[{url:S().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"tj"),Im_=_.A(function(N){var b=N.profileIdentityInfoData;
return _.c("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.c(_.kY,{data:function(){var S=b().channelBanner;if(S)return{imageBannerViewModel:{image:S.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(S){return _.c("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.c(_.tc,{data:S.data,
isPositionRelative:!0}))}}))},"uj"),$lt=_.A(function(N){var b=N.profileIdentityInfoData;
return _.c("div",{class:"yt-profile-identity-info-view-model__metadata"},_.c("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.c("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return b().channelHandle}),_.c(_.W,{cond:function(){return b().channelPronouns&&b().channelHandle},
then:function(){return _.c("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.c("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return b().channelPronouns})),_.c("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.c("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return b().leftOfBulletInfo}),_.c(_.W,{cond:function(){return b().leftOfBulletInfo&&b().rightOfBulletInfo},
then:function(){return _.c("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.c("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return b().rightOfBulletInfo})))},"vj");_.qu(gBE,"yt-profile-identity-info-view-model",{props:{data:_.kg,hideDivider:_.kg,isChannelInfoCard:_.kg}});_.qu(_.$04,"yt-page-header-view-model",{props:{data:_.kg,noPadding:_.kg,enableBanner:_.kg,cinematicContainerTopbarOffset:_.kg,allowCinematicContainerOverflow:_.kg,displayAsSidebar:_.kg,displayAsPanel:_.kg,alwaysUseMediumTextDescription:_.kg}});var h4t=_.A(function(){return _.c("div",{class:_.KU("ytdGhostGridViewModelGhostCard")},_.c("div",{class:_.KU("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.c("div",{class:_.KU("ytdGhostGridViewModelDetails")},_.c("div",{class:_.KU("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.c("div",{class:_.KU("ytdGhostGridViewModelDetailsTextShell")},_.c("div",{class:_.KU("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.c("div",{class:_.KU("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"xj");_.qu(_.A(function(N){var b=N.data;var S=_.nU(_.xG);return _.c("ytd-ghost-grid-view-model",{class:_.KU("ytdGhostGridViewModelHost")},_.c(_.zj,{each:function(){var P=Array,H;var K=((H=b().numRows)!=null?H:0)*S();return P(K)},
keyBy:"INDEX"},function(){return _.c(h4t,null)}))},"wj"),"ytd-ghost-grid-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=function(){var H;return(H=b().numColumns)!=null?H:2},P=function(){return S()>1?3:2};
N={};return _.c("ytd-rich-grid-group",{class:_.KU("ytdRichGridGroupHost",(N.ytdRichGridGroupHostFirstColumn=function(){return b().colIndex===0},N)),
style:_.r5({"--ytd-rich-grid-group-num-columns":S,"--ytd-rich-grid-items-per-group":P})},_.c("div",{class:"ytdRichGridGroupContents"},_.c(_.kY,{data:function(){var H;return(H=b().contents)==null?void 0:H.slice(0,P())}},{richItemRenderer:function(H){return _.c(_.$dZ,{data:H.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"yj"),"ytd-rich-grid-group",{props:{data:_.kg}});var $K=function(){var N=_.z.apply(this,arguments)||this;N.resizeOnObserverInit=!1;N.isInlinePreviewDisabled=_.T("web_disable_inline_preview");N.disableStickyFilterBar=!1;N.transparentBackgroundChipsBar=!1;N.hideChipsBar=!1;N.isScrolled=!1;N.isWatchDefaultLayout=!0;N.continuationShowButton=!1;N.rowReducedHorizontalMargin=!1;N.useCompactList=!1;N.manualDownloadsPresent=!1;N.smartDownloadsPresent=!1;N.isOnline=!1;N.shouldRenderDownloadsBanner=!1;N.shouldRenderDownloadsBannerUpsell=!1;N.hasOptedIntoSmartDownloads=
!1;N.elementsPerRow=4;N.typographyBump=!1;N.slimItemsPerRow=1;N.pageLoadingFromNavigation=!1;N.resizeObserver=null;N.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};N.rendererToTagNameMap=new Map(Object.entries(N.contentMapping()).map(function(b){var S=
_.O(b);b=S.next().value;S=S.next().value;return[b,S.component]}));
N.insertedContent=new Map;return N};
_.F($K,_.z);_.v=$K.prototype;_.v.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var N=_.O(_.H4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=N.next();!b.done;b=N.next())b.value.useCompactList=this.useCompactList};
_.v.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var N=_.O(_.H4(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=N.next();!b.done;b=N.next())b=b.value,b.sizing=this.sizing,b.typographyBump=this.typographyBump};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.aA(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.aA(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21000_throttledOnResize=new _.GR(this.resizeObserved,_.d7("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.aA(this,this.onScroll))};
_.v.detached=function(){var N;(N=this.resizeObserver)==null||N.disconnect();document.removeEventListener("yt-page-type-changed",_.aA(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.aA(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.aA(this,this.onScroll))};
_.v.insertRichSection=function(N){var b=N.richItemTargetId;N=N.richSectionRendererToInsert;b&&N&&(this.insertedContent.set(b,{content:N,timestamp:Date.now()}),this.reflowContent())};
_.v.computeIsInlinePreviewEnabled=function(N,b,S){return _.T("web_disable_inline_preview")?!1:!S&&e9q({miniplayerIsActive:N,miniplayerPlaybackState:b})};
_.v.computeSizing=function(){var N=_.kAI(this.data);if(N||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return N?this.useCompactList?"COMPACT":N:this.miniMode?"COMPACT":"STANDARD"};
_.v.updateItemMinAndMaxWidth=function(){var N=_.d7("rich_grid_max_item_width",500);N>0&&_.rq(this.hostElement,{"--ytd-rich-grid-item-max-width":N+"px"});var b;N=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);N>0&&_.rq(this.hostElement,{"--ytd-rich-grid-item-min-width":N+"px"})};
_.v.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.v.resizeObserved=function(){_.PN(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.v.onPageChange=function(){var N=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.PN(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Dj.addJob(function(){N.pageLoadingFromNavigation=!1;N.setMasthead();N.maybeSetBigYoodle();N.forceRefreshAndLog();N.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.v.dataChanged=function(){var N=this;_.PN(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.W_(this,function(){N.updateRichItemGridPositions();N.contentsElement&&_.rq(N.hostElement,{"--ytd-rich-grid-content-offset-top":N.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.v.initResizeObserver=function(){var N=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var S=!1;this.resizeObserver=new ResizeObserver(function(){if(S){var P;(P=N.resizeObserver)==null||P.disconnect();var H;(H=N.JSC$21000_throttledOnResize)==null||H.fire();requestAnimationFrame(function(){var C;(C=N.JSC$21000_throttledOnResize)==null||C.fire();N.initResizeObserver()})}else if(S=!0,N.resizeOnObserverInit){var K;
(K=N.JSC$21000_throttledOnResize)==null||K.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.v.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.PN(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.updateElementsPerRow=function(){_.PN(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.HU({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.HU({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.v.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.v.onRichShelfRendererCollapse=function(N){if(this.shownItems){var b=N.detail;N=this.shownItems.findIndex(function(P){var H,K;return((K=_.t(P==null?void 0:(H=P.richSectionRenderer)==null?void 0:H.content,_.CG4))==null?void 0:K.trackingParams)===b});
var S=N+1;N<0||S>=this.contentsElement.children.length||!this.shownItems[S].richItemRenderer||this.contentsElement.children[S].scrollIntoView({behavior:"smooth",block:"start"})}};
_.v.onSoftReloadPage=function(){this.scrollUpToTop()};
_.v.handleRerenderDownloadsData=function(){_.T("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.v.handlePlaylistRemoveVideosAction=function(N){var b;if(((b=_.t(N,_.LvO))==null?0:b.setVideoIds)&&this.data&&this.data.contents){N=_.t(N,_.LvO).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var S=_.t(this.data.contents[b],_.$6);(S=S&&_.t(S.content,_.Cc))&&S.setVideoId&&N.includes(S.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var N=0;N<this.data.contents.length;N++)this.set("data.contents."+N+".richItemRenderer.index",_.gy(String(N+1)))};
_.v.hasTopRowInlinePlayableVideoWithEndorsement=function(N){var b;return!((b=N.slice(0,this.getItemsPerRow()))==null||!b.some(function(S){var P;S=_.t(S==null?void 0:(P=S.richItemRenderer)==null?void 0:P.content,_.ar);var H;return(S==null?void 0:S.inlinePlaybackEndpoint)&&(S==null?void 0:(H=S.thumbnailOverlays)==null?void 0:H.some(function(K){return K.thumbnailOverlayEndorsementRenderer}))}))};
_.v.refreshGridLayoutNew=function(N,b,S,P){var H=P.postsPerRow;var K=P.slimItemsPerRow;var C=P.gameCardsPerRow;P=P.miniGameCardsPerRow;var G;if((G=this.data)==null||!G.contents||!this.containerWidth)return!1;var a;if((a=this.data.responsiveContainerConfiguration)==null?0:a.responsiveSize){var R=_.Nh_(this.data.responsiveContainerConfiguration,this.containerWidth,2),n;G=_.A5(Object.assign({},R,{standardUnitMinWidth:(n=this.data)==null?void 0:n.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&R.isCompactList)}else G=_.A5({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(R=this.data)==null?void 0:R.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=G.typographyBump;n=!1;if(N||this.elementsPerRow!==G.numItems||this.postsPerRow!==H||this.slimItemsPerRow!==K||this.gameCardsPerRow!==
C||this.miniGameCardsPerRow!==P||this.gutter!==G.gutter)n=this.elementsPerRow!==G.numItems,this.elementsPerRow=G.numItems,this.postsPerRow=H,this.slimItemsPerRow=K,this.gameCardsPerRow=C,this.miniGameCardsPerRow=P,this.gutter=G.gutter,this.itemWidth=G.itemWidth,this.reflowContent(b),_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(S);this.ytdReduxBehavior.dispatch(_.HU({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:G.maxContainerWidth}));return n};
_.v.refreshGridLayout=function(N,b){var S,P=(S=this.hostElement)==null?void 0:S.clientWidth;this.containerWidth=this.adjustRichGridWidth(P,!0);var H;if((H=this.data)==null||!H.contents||!this.containerWidth)return N&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(N=!0,this.pendingForceReflow=!1);S=this.getRichItemMinWidth(P);var K=this.isShortsPanel?146:194,C=this.getMiniGameCardMinWidth(),G=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.d7("rich_grid_default_max_items_per_row",
6);P=S=this.calcElementsPerRow(S,G);(H=S<=3&&this.miniModeAllowed())&&(S=this.calcElementsPerRow(240,4));var a=this.calcMaxSlimElementsPerRow(S,G,this.isDefaultGrid);G=this.calcElementsPerRow(K,a);var R=this.calcElementsPerRow(this.isCompactGrid?K:154,a);K=this.calcElementsPerRow(this.isCompactGrid?K:C,a);C=!1;if(this.sizing)return this.refreshGridLayoutNew(N,b,H,{postsPerRow:P,slimItemsPerRow:G,gameCardsPerRow:R,miniGameCardsPerRow:K});if(N||this.elementsPerRow!==S||this.postsPerRow!==P||this.slimItemsPerRow!==
G||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==K)C=this.elementsPerRow!==S,this.elementsPerRow=S,this.postsPerRow=P,this.slimItemsPerRow=G,this.gameCardsPerRow=R,this.miniGameCardsPerRow=K,this.reflowContent(b),this.updateElementsPerRow(),_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+
this.miniGameCardsPerRow}),(this.isShortsGridSlim||this.isShortsPanel)&&_.rq(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(H);_.PN(this.hostElement,"yt-rich-grid-layout-refreshed");return C};
_.v.getRichItemMinWidth=function(N){var b=_.d7("rich_grid_min_item_width",310);if(!_.T("kevlar_disable_min_width_override")){var S,P;b=(P=(S=this.data)==null?void 0:S.minItemWidth)!=null?P:b}return b+_.a0e(N)};
_.v.calcMaxSlimElementsPerRow=function(N,b,S){return(S===void 0?0:S)?N===1?2:N%2===0?N/2*3:N+2:b*2};
_.v.adjustRichGridWidth=function(N,b){var S=_.T("disable_rich_grid_guide_compensation");if(!this.isWatch&&!S){S=_.aN().resolve(_.cq(_.WO));var P=S==null?void 0:S.guideElement;if(!(!S||S.getData()||P!=null&&P.opened||S.getMiniGuideVisible()))if(S.canFitPersistentGuide(N)&&S.getGuideExpandsAutomatically()){var H,K,C=Number((H=window.getComputedStyle(this.hostElement))==null?void 0:(K=H.getPropertyValue("--app-drawer-width"))==null?void 0:K.replace("px",""));N-=C||0}else if(S.canFitMiniGuide(N)){var G;
H=Number((C=window.getComputedStyle(this.hostElement))==null?void 0:(G=C.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:G.replace("px",""));N-=H||0}}N>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(N-=b?32:48));return N};
_.v.calcElementsPerRow=function(N,b){var S=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),P=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((S+P)/(N+P))||1,b)};
_.v.reflowContent=function(N){var b=this;if(!this.isReflowing){this.isReflowing=!0;var S,P,H=!!((S=this.data)==null?0:(P=S.contents)==null?0:P.some(function(G){return _.t(G,_.wO)}));
S=this.getItemsPerRow();var K;P=(K=this.data)==null?void 0:K.reflowOptions;N&&(_.uC("rgr_s"),_.W_(this,function(){_.uC("rgr_nrf")}));
N={};(K=_.H4(this.hostElement).querySelector("#contents"))&&(N={contentElement:K,rendererToTagNameMap:this.rendererToTagNameMap});K=(K=this.data.contents)?K.slice():[];H=oRq(K,S,H,P,this.getRichGridStyle(),N,this.insertedContent);var C=H.orderedContent;if(H=H.pinnedContentNotShownTargetIds)for(H=_.O(H),S=H.next();!S.done;S=H.next())this.insertedContent.delete(S.value);H=function(){b.shownItems=C;b.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(C),_.W_(this,H)):H()}};
_.v.getFirstRowItems=function(N){for(var b=[],S=0;S<N.length;S++){var P=void 0,H=void 0,K=void 0,C=void 0,G=void 0,a=void 0;if(((P=N[S])==null?void 0:(H=P.richItemRenderer)==null?void 0:H.rowIndex)===0||((K=N[S])==null?void 0:(C=K.richGroupRenderer)==null?void 0:C.rowIndex)===0||((G=N[S])==null?void 0:(a=G.richSectionRenderer)==null?void 0:a.rowIndex)===0)b.push(N[S]);else break}return b};
_.v.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.v.resetInsertedContentIfNeeded=function(){(_.T("web_explore_hub_on_hover")||_.T("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.v.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.v.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.v.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.v.terminateVideoPreview=function(){_.PN(this.hostElement,"yt-terminate-video-preview-action")};
_.v.updateRichItemGridPositions=function(){var N={gridData:{gridColumnCount:this.elementsPerRow}},b;((b=this.data)==null?0:b.trackingParams)&&(b=_.Qh())&&_.Dp(b,_.FA(this.data.trackingParams),N);_.PN(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.miniModeAllowed=function(){return this.isChannelPage};
_.v.getMiniGameCardMinWidth=function(){return 154};
_.v.updateMiniMode=function(N){this.miniMode=this.miniModeAllowed()&&N;this.ytdReduxBehavior.dispatch(_.HU({type:"SET_RICH_GRID_MINI_MODE",payload:N}))};
_.v.isCurrentPage=function(){return location.pathname===this.pagePath};
_.v.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var N=_.aN().resolve(_.$9).getCurrentPage();N&&N.setScrollTop(0)}};
_.v.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.v.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.v.maybeSetBigYoodle=function(){var N,b=(N=this.data)==null?void 0:N.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)};
_.v.setMasthead=function(){var N;((N=this.data)==null?0:N.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.v.getRichGridStyle=function(){var N,b;return(b=(N=this.data)==null?void 0:N.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"};
_.v.onIsShortsGridChange=function(){var N=this.ytdReduxBehavior,b=N.dispatch,S=this.getRichGridStyle();b.call(N,_.HU({type:"SET_RICH_GRID_STYLE",payload:S}))};
_.v.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.v.onScroll=function(){this.isScrolled=window.scrollY>0};
_.d0.Object.defineProperties($K.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.T("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.ytContinuationHandlerBehavior)==null?void 0:N.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var N=_.aN().resolve(_.$9).getCurrentPage(),b,S,P;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||_.T("web_enable_channel_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_channel_pivot"||_.T("web_enable_effect_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_effect_pivot")&&(N==null?void 0:N.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.T("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.aN().resolve(_.$9).getCurrentPage())==null?void 0:N.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.aN().resolve(_.$9).getCurrentPage())==null?void 0:N.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?0:N.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(S=b.responsiveContainerConfiguration)==null?0:S.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.d7("web_continuation_handler_margin",0):0}}});
$K.prototype.onIsShortsGridChange=$K.prototype.onIsShortsGridChange;$K.prototype.onReloadContinuationFinish=$K.prototype.onReloadContinuationFinish;$K.prototype.reflowContent=$K.prototype.reflowContent;$K.prototype.handleRerenderDownloadsData=$K.prototype.handleRerenderDownloadsData;$K.prototype.onRichShelfRendererCollapse=$K.prototype.onRichShelfRendererCollapse;$K.prototype.onRequestElementsPerRow=$K.prototype.onRequestElementsPerRow;$K.prototype.contentLengthChanged=$K.prototype.contentLengthChanged;
$K.prototype.dataChanged=$K.prototype.dataChanged;$K.prototype.onSizingChange=$K.prototype.onSizingChange;$K.prototype.onUseCompactListChange=$K.prototype.onUseCompactListChange;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],$K.prototype,"ironResizableBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],$K.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],$K.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],$K.prototype,"componentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],$K.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$K.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],$K.prototype,"miniMode",void 0);_.p([_.U({value:[]}),_.y("design:type",Array)],$K.prototype,"shownItems",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],$K.prototype,"isReflowing",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],$K.prototype,"isFilteredFeed",void 0);_.p([_.U({selector:_.jfe}),_.y("design:type",Boolean)],$K.prototype,"guideIsExpanded",void 0);
_.p([_.U({selectorArgs:["entitySelectorType"],selector:function(N,b){if(_.T("kevlar_modern_downloads_page")&&b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":b=N.entities;var S=_.Lu(b),P=_.fu(b),H=_.bNp(N),K=_.ND9(N),C=_.SM9(N),G=_.LDs(b),a=_.TL(S),R=_.uV(b);return _.Vbf(S,P,G,_.xZu(b),H,K,a,R,C,_.HNs(N),_.J0(N));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return N=_.Lu(N.entities),_.eIa(N);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return N=
_.FDo(N.entities),_.$3Y(N);default:_.$h(new _.jU("Error: entitySelectorType defined but not matched in selector.",N,b))}}}),
_.y("design:type",Object)],$K.prototype,"entityDrivenRichGridData",void 0);_.p([_.U(),_.y("design:type",Object)],$K.prototype,"resizeOnObserverInit",void 0);_.p([_.U(),_.y("design:type",Object)],$K.prototype,"bigYoodleData",void 0);_.p([_.U(),_.y("design:type",Object)],$K.prototype,"mastheadData",void 0);_.p([_.U(),_.y("design:type",Boolean)],$K.prototype,"isInlinePreviewDisabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"disableStickyFilterBar",void 0);
_.p([_.U(),_.y("design:type",Object)],$K.prototype,"transparentBackgroundChipsBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"hideChipsBar",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("isHomePage","isFilteredFeed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"showChipsOnScroll",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"isScrolled",void 0);
_.p([_.U(),_.y("design:type",Object)],$K.prototype,"isWatchDefaultLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"continuationShowButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"rowReducedHorizontalMargin",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"useCompactList",void 0);_.p([_.U({selector:function(N){return _.fu(N.entities).length>0}}),
_.y("design:type",Object)],$K.prototype,"manualDownloadsPresent",void 0);_.p([_.U({selector:function(N){return _.Lu(N.entities).length>0}}),
_.y("design:type",Object)],$K.prototype,"smartDownloadsPresent",void 0);_.p([_.U({selector:_.J0}),_.y("design:type",Object)],$K.prototype,"isOnline",void 0);_.p([_.U({selector:_.ND9}),_.y("design:type",Object)],$K.prototype,"shouldRenderDownloadsBanner",void 0);_.p([_.U({selector:_.HNs}),_.y("design:type",Object)],$K.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.p([_.U({selector:_.bNp}),_.y("design:type",Object)],$K.prototype,"hasOptedIntoSmartDownloads",void 0);
_.p([_.W4("useCompactList"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"onUseCompactListChange",null);_.p([_.W4("sizing","typographyBump"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"onSizingChange",null);_.p([_.U({selector:_.YQu}),_.y("design:type",Number)],$K.prototype,"miniplayerPlaybackState",void 0);_.p([_.U({selector:_.op}),_.y("design:type",Boolean)],$K.prototype,"miniplayerIsActive",void 0);
_.p([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],$K.prototype,"isInlinePreviewEnabled",void 0);_.p([_.U({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.y("design:type",String)],$K.prototype,"sizing",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$K.prototype,"elementsPerRow",void 0);
_.p([_.U(),_.y("design:type",Object)],$K.prototype,"typographyBump",void 0);_.p([_.U(),_.y("design:type",Number)],$K.prototype,"itemWidth",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],$K.prototype,"headerElement",void 0);_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],$K.prototype,"contentsElement",void 0);_.p([_.f("reloadUiContent"),_.y("design:type",Object),_.y("design:paramtypes",[])],$K.prototype,"loadingContentRenderer",null);
_.p([_.f("reloadUiContent"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"hasLoadingContent",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"dataChanged",null);_.p([_.t_("data.contents.length"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"contentLengthChanged",null);
_.p([_.RA("yt-request-elements-per-row"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"onRequestElementsPerRow",null);_.p([_.RA("yt-rich-shelf-renderer-collapse"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],$K.prototype,"onRichShelfRendererCollapse",null);
_.p([_.t_("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"handleRerenderDownloadsData",null);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],$K.prototype,"entitySelectorType",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isSub",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isWatch",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isShortsPanel",null);
_.p([_.U({reflectToAttribute:!0}),_.f("isWatch"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"reducedTopMargin",null);_.p([_.U({reflectToAttribute:!0}),_.f("data","isWatch","isWatchDefaultLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"noTopMargin",null);_.p([_.U({reflectToAttribute:!0}),_.f("isInlinePreviewEnabled","shownItems"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"topRowEndorsement",null);
_.p([_.f("data.header"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"hideHeader",null);_.p([_.RA("yt-rich-grid-reflow"),_.y("design:type",Function),_.y("design:paramtypes",[Boolean]),_.y("design:returntype")],$K.prototype,"reflowContent",null);_.p([_.RA("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"onReloadContinuationFinish",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isSlimGrid",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isShortsGrid",null);_.p([_.f("data","isSlimGrid","isShortsGrid"),_.U(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"noRichItemGutterMargins",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isShortsGridSlim",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isCompactGrid",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"isDefaultGrid",null);
_.p([_.f("data.targetId"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"hideChipsBarOnWatch",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$K.prototype,"onIsShortsGridChange",null);_.p([_.f("data.enableContentSpecificAspectRatio"),_.U(),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$K.prototype,"force16By9ThumbnailAspectRatio",null);
_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],$K.prototype,"continuationTriggerOffset",null);_.p([_.Uj({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],$K);
_.X($K,"ytd-rich-grid-renderer",function(){if(S46!==void 0)return S46;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return S46=N},{mode:2});var qAq;var h9=function(){return _.z.apply(this,arguments)||this};
_.F(h9,_.z);_.v=h9.prototype;
_.v.onKeyDown=function(N){if(this.snippetElements.length!==0&&(N=N.keyCode,N===38||N===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);N===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.j3(this.highlightedIndex,-1,this.snippetElements.length);N=this.snippetElements.length;var b=this.highlightedIndex%N;this.highlightedIndex=b*N<0?b+N:b;N=this.snippetElements[this.highlightedIndex];this.highlightSnippet(N);this.ensureVisible(N)}};
_.v.onKeyUp=function(N){var b=this;MVi(N)&&(N.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Dj.cancelJob(this.inputTimerId),this.inputTimerId=_.Dj.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))};
_.v.onClick=function(N){(N=_.dzV(N.target,null,"snippet-item"))&&this.selectSnippet(N)};
_.v.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.v.ready=function(){var N=this;this.inputElement.addEventListener("focus",function(){N.snippetsWrapper.style.removeProperty("display")})};
_.v.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.v.getSourceTimelines=function(){if(!this.data)return[];var N=[];if(this.data.searchInVideoSources)for(var b=_.O(this.data.searchInVideoSources),S=b.next();!S.done;S=b.next())S=S.value,S==="SEARCH_IN_VIDEO_SOURCE_ASR"?N.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):S==="SEARCH_IN_VIDEO_SOURCE_OCR"&&N.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return N};
_.v.fetchSnippets=function(N){var b=_.St(this.hostElement,"yt-get-current-video-id-action")[0],S=this.getSourceTimelines();N={getSearchInVideoCommand:{externalVideoId:b,query:N!=null?N:"",sourceTimelines:S},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})};
_.v.filterSnippets=function(N,b){var S=this;if(b){this.filteredSnippets=(0,_.Vm.unsafeClone)(N);var P=RegExp(_.Aq_(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(C){return P.test(S.ytRendererBehavior.getSimpleString(C.snippet))});
N=_.O(this.filteredSnippets);for(var H=N.next();!H.done;H=N.next()){H=H.value;var K=this.ytRendererBehavior.getSimpleString(H.snippet);H.snippet={runs:[{text:K.substring(0,K.toLowerCase().indexOf(b))},{text:K.substring(K.toLowerCase().indexOf(b),K.toLowerCase().indexOf(b)+b.length),bold:!0},{text:K.substring(K.toLowerCase().indexOf(b)+b.length,K.length)}]}}}else this.filteredSnippets=N};
_.v.onUpdateSearchInVideoResults=function(N){if(!(this.snippets.length>0)){var b,S,P;if((P=(b=_.t(N,QDJ))==null?void 0:(S=b.results)==null?void 0:S.length)!=null&&P){var H;this.filteredSnippets=this.snippets=((H=_.t(N,QDJ))==null?void 0:H.results).map(function(K){var C,G,a;return{startMs:K==null?void 0:(C=K.searchInVideoResultRenderer)==null?void 0:C.startMs,startTimeText:K==null?void 0:(G=K.searchInVideoResultRenderer)==null?void 0:G.startTimeText,snippet:K==null?void 0:(a=K.searchInVideoResultRenderer)==
null?void 0:a.snippet}})}}};
_.v.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.v.highlightSnippet=function(N){N.classList.add("highlighted")};
_.v.removeSnippetHighlight=function(N){N.classList.remove("highlighted")};
_.v.selectSnippet=function(N){this.typedValue=String(N.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(N);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.v.ensureVisible=function(N){var b=this.snippetsWrapper.scrollTop,S=b+this.snippetsWrapper.clientHeight,P=N.offsetTop-this.snippetsWrapper.offsetTop;N=P+N.clientHeight;P<b?this.snippetsWrapper.scrollTop-=b-P:N>S&&(this.snippetsWrapper.scrollTop+=N-S)};
_.v.seekPlayer=function(N){var b,S;return _.r(function(P){if(P.nextAddress==1){if(!N)return P.jumpTo(0);b=Number(N.dataset.startOffset);return P.yield(_.w5().getPlayerPromise(),3)}S=P.yieldResult;S.seekTo(b/1E3,!0);S.wakeUpControls();_.Zd(P)})};
_.v.logInputGesture=function(N){var b=_.Qh();b&&(N==null?0:N.trackingParams)&&_.Im(b,_.FA(N.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.v.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("typed-value-changed",this.typedValue))};
_.v.updateTypedValueFromBinding=function(N){this.typedValue=N.currentTarget.value};
h9.prototype.typedValueChangedForBinding=h9.prototype.typedValueChangedForBinding;h9.prototype.dataChanged=h9.prototype.dataChanged;h9.prototype.panelContentVisibleChanged=h9.prototype.panelContentVisibleChanged;h9.prototype.onClick=h9.prototype.onClick;h9.prototype.onKeyUp=h9.prototype.onKeyUp;h9.prototype.onKeyDown=h9.prototype.onKeyDown;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],h9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],h9.prototype,"data",void 0);_.p([_.U({value:[]}),_.y("design:type",Array)],h9.prototype,"snippets",void 0);_.p([_.U({value:[]}),_.y("design:type",Array)],h9.prototype,"filteredSnippets",void 0);_.p([_.U({value:[]}),_.y("design:type",Array)],h9.prototype,"snippetElements",void 0);
_.p([_.dq("#siv-input"),_.y("design:type",HTMLElement)],h9.prototype,"inputElement",void 0);_.p([_.dq("#siv-snippets-wrapper"),_.y("design:type",HTMLElement)],h9.prototype,"snippetsWrapper",void 0);_.p([_.U(),_.y("design:type",String)],h9.prototype,"typedValue",void 0);_.p([_.U({value:-1}),_.y("design:type",Number)],h9.prototype,"highlightedIndex",void 0);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[_.Qy]),_.y("design:returntype")],h9.prototype,"onKeyDown",null);
_.p([_.RA("keyup"),_.y("design:type",Function),_.y("design:paramtypes",[_.Qy]),_.y("design:returntype")],h9.prototype,"onKeyUp",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],h9.prototype,"onClick",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],h9.prototype,"panelContentVisible",void 0);
_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],h9.prototype,"panelContentVisibleChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],h9.prototype,"dataChanged",null);_.p([_.W4("typedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],h9.prototype,"typedValueChangedForBinding",null);
_.p([_.Uj({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],h9);
_.X(h9,"ytd-search-in-video-renderer",function(){if(qAq!==void 0)return qAq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qAq=N},{mode:1});var wH6;var q3=function(){return _.z.apply(this,arguments)||this};
_.F(q3,_.z);q3.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
q3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.viewButton":{id:"view-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
q3.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var N,b,S,P,H=(b=_.t((N=this.data)==null?void 0:N.onClickCommand,_.cqE))==null?void 0:(S=b.item)==null?void 0:(P=S.notificationTextRenderer)==null?void 0:P.successResponseText;H&&_.$KO(this.hostElement,H)}};
_.d0.Object.defineProperties(q3.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return this.isProductPlaceholder&&((N=this.data)==null?void 0:(b=N.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((S=this.data)==null?0:(P=S.hiddenProductOptions)==null?0:P.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var N;return!this.isProductPlaceholder&&!((N=this.data)==null?0:N.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null?0:N.priceReplacementText)&&!((b=this.data)==null||!b.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],q3.prototype,"componentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],q3.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"useCenterLayoutContainer",null);_.p([_.U({computed:"computeButtonOverride(data)"}),_.y("design:type",Object)],q3.prototype,"buttonOverride",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"isProductPlaceholder",null);
_.p([_.f("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"showDropCountdown",null);_.p([_.f("isProductPlaceholder","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"showBrandName",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"showPriceReplacementText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"showPrice",null);
_.p([_.f("isProductPlaceholder"),_.y("design:type",Object),_.y("design:paramtypes",[])],q3.prototype,"showMetadata",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],q3);
_.X(q3,"ytd-product-list-item-renderer",function(){if(wH6!==void 0)return wH6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wH6=N},{mode:1});var NNa;var wr=function(){return _.z.apply(this,arguments)||this};
_.F(wr,_.z);wr.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
wr.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
wr.prototype.panelContentVisibleChanged=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return N.playerApi?S.jumpTo(2):S.yield(_.w5().getPlayerPromise(),3);S.nextAddress!=2&&(N.playerApi=S.yieldResult);(b=N.playerApi)==null||b.productsInVideoVisibilityUpdated(!!N.panelContentVisible);_.Zd(S)})};
wr.prototype.panelContentVisibleChanged=wr.prototype.panelContentVisibleChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],wr.prototype,"panelContentVisible",void 0);_.p([_.U(),_.y("design:type",Object)],wr.prototype,"data",void 0);
_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],wr.prototype,"panelContentVisibleChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],wr);
_.X(wr,"ytd-product-list-renderer",function(){if(NNa!==void 0)return NNa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return NNa=N},{mode:1});var b0L;var Ng=function(){var N=_.z.apply(this,arguments)||this;N.hideTimestamps=!!_.l1("hide-transcript-timestamps");N.currentCueIndex=-1;N.flatCues=[];N.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};N.TEST_ONLY={getFlatCues:function(){return N.flatCues}};
return N};
_.F(Ng,_.z);_.v=Ng.prototype;_.v.hideTimestampsChanged=function(){_.Bd("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.dataChanged=function(){var N;if((N=this.data)!=null&&N.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;N=_.O(this.data.cueGroups);for(var b=N.next();!b.done;b=N.next()){b=_.O(_.t(b.value,yJJ).cues);for(var S=b.next();!S.done;S=b.next())this.flatCues.push(Number(_.t(S.value,Iu6).startOffsetMs))}}};
_.v.onYtPlayerTimeChanged=function(N){if(!(N<0)){for(var b=this.currentCueIndex,S=b;;){var P=S>=0?this.flatCues[S]/1E3:-1;if(N+.5<P)--S;else if(P=S+1<this.flatCues.length?this.flatCues[S+1]/1E3:Infinity,N+.5>P)S+=1;else break}S!==b&&(b>=0&&((N=this.getCueElement(b))&&N.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(S))&&b.classList.add("active"),(b=this.getCueGroupElement(S))&&b.classList.add("active"),this.currentCueIndex=S,this.isHovered||
this.scrollElementToTop(S))}};
_.v.scrollElementToTop=function(N){N=this.getCueElement(N>=3?N-3:0);this.hostElement.scrollTop=Math.min(N.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.getCueElement=function(N){return _.H4(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[N]+'"]')};
_.v.getCueGroupElement=function(N){return(N=this.getCueElement(N))&&N.parentElement?N.parentElement.parentElement:null};
_.v.onTap=function(N){var b=_.gQ(N);N.target.classList.contains("cue")&&this.seekCueElement(b)};
_.v.onKeyPress=function(N){N.keyCode==13&&(N=_.dzV(N.target,null,"cue"))&&this.seekCueElement(N)};
_.v.seekCueElement=function(N){N=Number(N.getAttribute("start-offset"));_.St(this.hostElement,"yt-transcript-player-seek",[N/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
Ng.prototype.onMouseLeave=Ng.prototype.onMouseLeave;Ng.prototype.onMouseEnter=Ng.prototype.onMouseEnter;Ng.prototype.onKeyPress=Ng.prototype.onKeyPress;Ng.prototype.onTap=Ng.prototype.onTap;Ng.prototype.dataChanged=Ng.prototype.dataChanged;Ng.prototype.hideTimestampsChanged=Ng.prototype.hideTimestampsChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ng.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ng.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ng.prototype,"hideTimestamps",void 0);_.p([_.U(),_.y("design:type",Boolean)],Ng.prototype,"isHovered",void 0);_.p([_.W4("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ng.prototype,"hideTimestampsChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ng.prototype,"dataChanged",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Ng.prototype,"onTap",null);_.p([_.RA("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Ng.prototype,"onKeyPress",null);
_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ng.prototype,"onMouseEnter",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ng.prototype,"onMouseLeave",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Ng);
_.X(Ng,"ytd-transcript-body-renderer",function(){if(b0L!==void 0)return b0L;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return b0L=N},{mode:1});var SCn;var bl=function(){var N=_.z.apply(this,arguments)||this;N.darkerPanels=_.T("web_watch_darker_panels");return N};
_.F(bl,_.z);bl.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bl.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bl.prototype,"darkerPanels",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],bl);
_.X(bl,"ytd-transcript-footer-renderer",function(){if(SCn!==void 0)return SCn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return SCn=N},{mode:1});var PcE;var H0O;var SB=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.showClearButton=!1;return N};
_.F(SB,_.z);_.v=SB.prototype;_.v.handleInput=function(N){var b=this;N.target.value.length?_.Yq(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(N)},500):(_.BfO(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=N.target.value.length>0};
_.v.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.v.handleClick=function(){var N,b=(N=this.data)==null?void 0:N.trackingParams;b&&_.yj(_.dG(),b)};
_.v.handleClear=function(){_.BfO(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var N,b,S=(b=_.t((N=this.data)==null?void 0:N.clearButton,_.rU))==null?void 0:b.trackingParams;S&&_.yj(_.dG(),S);this.clear()};
_.v.emitSearchEvent=function(N){_.bC(this.hostElement,"yt-transcript-search-box-search",{query:N.target.value});var b,S;(N=(S=_.t((b=this.data)==null?void 0:b.searchButton,_.rU))==null?void 0:S.trackingParams)&&_.yj(_.dG(),N)};
_.v.emitClearEvent=function(){_.bC(this.hostElement,"yt-transcript-search-box-clear")};
_.d0.Object.defineProperties(SB.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.H4(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SB.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],SB.prototype,"systemIcons",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],SB);
_.X(SB,"ytd-transcript-search-box-renderer",function(){if(H0O!==void 0)return H0O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return H0O=N},{mode:1});var szJ;var K2n;var Pj=function(){return _.z.apply(this,arguments)||this};
_.F(Pj,_.z);Pj.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var N,b;this.sectionHeaderAriaLabel=(N=this.data)==null?void 0:(b=N.accessibility)==null?void 0:b.accessibilityData.label}};
Pj.prototype.fireSelectedEvent=function(N){_.bC(this.hostElement,"ytd-transcript-section-header",{startMs:N})};
Pj.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Pj.prototype.handleKeyPress=function(N){this.data&&N.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.d0.Object.defineProperties(Pj.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.data)==null?void 0:N.enableTappableTranscriptHeader)!=null?b:!1}}});
Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],Pj.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],Pj.prototype,"sectionHeaderAriaLabel",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pj.prototype,"enableTappableTranscriptHeader",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pj.prototype,"dataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Pj);
_.X(Pj,"ytd-transcript-section-header-renderer",function(){if(K2n!==void 0)return K2n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return K2n=N},{mode:1});var v_o;var O0O;var Hj=function(){var N=_.z.apply(this,arguments)||this;N.isEditMode=!1;N.touchCaptionsEnabled=!1;N.deleteCaptionCorrectionPopupCommand=null;N.voteCaptionCorrectionPopupCommand=null;N.roundedContainer=!0;N.mouseOver=!1;N.textChanged=!1;N.messages={suggest_correction:_.cN("suggest_correction",void 0,"Edit caption"),suggested_caption:_.cN("suggested_caption",void 0,"Suggested caption"),submit_correction:_.cN("submit_correction",void 0,"Submit for review"),cancel_correction:_.cN("cancel_correction",
void 0,"Cancel"),replay_segment:_.cN("replay_segment",void 0,"Re-play segment"),delete_correction:_.cN("delete_correction",void 0,"Delete correction")};N.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return N};
_.F(Hj,_.z);_.v=Hj.prototype;_.v.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.v.handleDelete=function(N){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);N.stopPropagation()}};
_.v.handleSubmit=function(N){if(this.data&&this.data.submitCaptionCorrectionCommand&&(N.stopPropagation(),this.textChanged)){var b;N=(b=_.t(this.data.submitCaptionCorrectionCommand,_.dTE))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:N,correctionText:String(this.ironTextAreaElement.value),originalText:_.es(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}};
_.v.handleUpdateSegmentText=function(N){(N=_.t(N,Vmq))&&N.targetId&&this.data&&N.targetId===this.data.targetId&&(N.userCorrection&&(this.editedText=N.userCorrection),N.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.es(this.data.snippet)),N.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=N.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=N.voteCaptionCorrectionPopupCommand?
N.voteCaptionCorrectionPopupCommand:null,N.accessibility&&(this.segmentAriaLabel=N.accessibility.accessibilityData.label))};
_.v.handleCancel=function(N){this.isEditMode=!1;N.stopPropagation();this.logClientVe(159409)};
_.v.handleEditSegmentCommand=function(N){(N=_.t(N,DFL))&&N.targetId&&this.data&&N.targetId===this.data.targetId&&this.handleEdit()};
_.v.handleEditButtonClick=function(N){this.data&&(this.handleEdit(),N.stopPropagation())};
_.v.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var N;(N=this.ironTextAreaElement.textarea)==null||N.focus();this.logClientVe(159407)}};
_.v.handleMouseEnter=function(){this.mouseOver=!0};
_.v.handleMouseLeave=function(){this.mouseOver=!1};
_.v.handleReplay=function(N){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),N.stopPropagation(),this.logClientVe(159408))};
_.v.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.v.handleKeypress=function(N){this.data&&(this.isEditMode?N.stopPropagation():this.isEnterPress(N)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(N)&&this.logClientVe(138758))};
_.v.handleTextboxClick=function(N){N.stopPropagation()};
_.v.handleTextboxKeydown=function(N){this.isControlEnterPress(N)?this.handleSubmit(N):N.key==="Escape"&&this.handleCancel(N)};
_.v.handleTextboxKeyup=function(){this.textChanged=_.es(this.latestText)!==String(this.ironTextAreaElement.value)};
_.v.fireSelectedEvent=function(N){_.bC(this.hostElement,"yt-transcript-segment-selected",{startMs:N})};
_.v.fireReplayEvent=function(N,b){_.bC(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(N-100,0),endMs:b})};
_.v.fireEditEvent=function(N,b){_.bC(this.hostElement,"yt-transcript-segment-edit",{startMs:N,endMs:b})};
_.v.isEnterPress=function(N){return N.key==="Enter"||N.code==="Enter"||N.code==="NumpadEnter"||N.keyCode===13?!0:!1};
_.v.isControlEnterPress=function(N){var b=N.key==="Enter"||N.code==="Enter"||N.code==="NumpadEnter"||N.keyCode===13;return(N.ctrlKey||N.metaKey)&&b};
_.v.isCopyPress=function(N){var b=N.ctrlKey;return N.key==="c"&&b};
_.v.logClick=function(){var N,b=(N=this.data)==null?void 0:N.trackingParams;b&&_.yj(_.dG(),b)};
_.v.logClientVe=function(N){_.YD(_.dG(),_.OW(N))};
_.d0.Object.defineProperties(Hj.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
Hj.prototype.handleMouseLeave=Hj.prototype.handleMouseLeave;Hj.prototype.handleMouseEnter=Hj.prototype.handleMouseEnter;Hj.prototype.dataChanged=Hj.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Hj.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],Hj.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Hj.prototype,"isEditMode",void 0);_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"touchCaptionsEnabled",void 0);_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"editedText",void 0);_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.p([_.U(),_.y("design:type",String)],Hj.prototype,"segmentAriaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Hj.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Hj.prototype,"mouseOver",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Hj.prototype,"textChanged",void 0);_.p([_.U(),_.y("design:type",Object)],Hj.prototype,"messages",void 0);
_.p([_.dq("#suggestion"),_.y("design:type",Object)],Hj.prototype,"ironTextAreaElement",void 0);_.p([_.f("data","editedText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hj.prototype,"latestText",null);_.p([_.f("touchCaptionsEnabled","isEditMode"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hj.prototype,"enableEditButton",null);
_.p([_.f("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Hj.prototype,"enableUndoButton",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hj.prototype,"dataChanged",null);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hj.prototype,"handleMouseEnter",null);
_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hj.prototype,"handleMouseLeave",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Hj);
_.X(Hj,"ytd-transcript-segment-renderer",function(){if(O0O!==void 0)return O0O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return O0O=N},{mode:1});var sO=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};N.isError=!1;N.darkerPanels=_.T("web_watch_darker_panels");N.useParentMaxHeight=_.T("web_watch_transscript_use_parent_max_height");N.segmentOffsets=[];N.segmentIndex=-1;return N};
_.F(sO,_.z);_.v=sO.prototype;_.v.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.v.segmentsChanged=function(){this.updateOffsets()};
_.v.onYtPlayerTimeChanged=function(N){for(var b=this.segmentIndex,S=b;;){if(S>=0){var P=this.segmentOffsets[S].start;var H=this.segmentOffsets[S].isAutoScrollable}else P=-1,H=!0;var K=N+.5;if(!H){P=S+1<this.segmentOffsets.length?this.segmentOffsets[S+1].start:Infinity;if(K>=P){S+=1;continue}S=-1;break}if(K<P)P=S-1>=0&&this.segmentOffsets[S-1].isAutoScrollable,H=S===0||P?1:2,S-=H;else if(H=S+1<this.segmentOffsets.length&&this.segmentOffsets[S+1].isAutoScrollable?1:2,P=S+H<this.segmentOffsets.length?
this.segmentOffsets[S+H].start:Infinity,K>P)S+=H;else{if(S<0)break;S<this.segmentOffsets.length&&K>this.segmentOffsets[S].end&&(S=-1);break}}if(b!==S){if(b>=0){var C;(C=this.getSegmentElement(b))==null||C.classList.remove("active")}this.segmentIndex=S;if(!(S<0)){var G;(G=this.getSegmentElement(S))==null||G.classList.add("active");this.isHovered||this.scrollElementToTop(S)}}};
_.v.handleSegmentEdit=function(N){N.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=N.target,_.St(this.hostElement,"yt-transcript-player-edit",[N.detail.startMs/1E3,N.detail.endMs/1E3]))};
_.v.handleSegmentSelected=function(N){_.St(this.hostElement,"yt-transcript-player-seek",[N.detail.startMs/1E3])};
_.v.handleSegmentReplay=function(N){_.St(this.hostElement,"yt-transcript-player-replay",[N.detail.startMs/1E3,N.detail.endMs/1E3])};
_.v.handleSectionHeaderSelected=function(N){_.St(this.hostElement,"yt-transcript-player-seek",[N.detail.startMs/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.onRetryButtonClick=function(){_.bC(this.hostElement,"transcript-retry-button-click")};
_.v.getSegmentElement=function(N){return _.H4(this.hostElement).querySelector(":nth-child("+(N+1)+")")};
_.v.scrollElementToTop=function(N){N=this.getSegmentElement(N>=2?N-2:0);this.hostElement.scrollTop=Math.min(N.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(N){var b,S=(b=N.transcriptSegmentRenderer)!=null?b:N.transcriptSectionHeaderRenderer;return{start:Number(S.startMs)/1E3,end:Number(S.endMs)/1E3,isAutoScrollable:N.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.v.clearHighlightedSegments=function(){var N=_.H4(this.hostElement);N=_.O(N.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=N.next();!b.done;b=N.next())b.value.classList.remove("active")};
_.d0.Object.defineProperties(sO.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
sO.prototype.onMouseLeave=sO.prototype.onMouseLeave;sO.prototype.onMouseEnter=sO.prototype.onMouseEnter;sO.prototype.handleSectionHeaderSelected=sO.prototype.handleSectionHeaderSelected;sO.prototype.handleSegmentReplay=sO.prototype.handleSegmentReplay;sO.prototype.handleSegmentSelected=sO.prototype.handleSegmentSelected;sO.prototype.handleSegmentEdit=sO.prototype.handleSegmentEdit;sO.prototype.segmentsChanged=sO.prototype.segmentsChanged;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sO.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],sO.prototype,"isError",void 0);
_.p([_.U(),_.y("design:type",Object)],sO.prototype,"noResultLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sO.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sO.prototype,"useParentMaxHeight",void 0);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],sO.prototype,"segments",null);
_.p([_.f("segments","noResultLabel"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],sO.prototype,"displayNoResults",null);_.p([_.W4("segments"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sO.prototype,"segmentsChanged",null);_.p([_.RA("yt-transcript-segment-edit"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sO.prototype,"handleSegmentEdit",null);
_.p([_.RA("yt-transcript-segment-selected"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sO.prototype,"handleSegmentSelected",null);_.p([_.RA("yt-transcript-segment-replay"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sO.prototype,"handleSegmentReplay",null);
_.p([_.RA("ytd-transcript-section-header"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],sO.prototype,"handleSectionHeaderSelected",null);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sO.prototype,"onMouseEnter",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sO.prototype,"onMouseLeave",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],sO);
_.X(sO,"ytd-transcript-segment-list-renderer",function(){if(v_o!==void 0)return v_o;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return v_o=N},{mode:1});var K4=function(){var N=_.z.apply(this,arguments)||this;N.hideTimestamps=!!_.l1("hide-transcript-timestamps");N.isLoadingTranscripts=!1;N.darkerPanels=_.T("web_watch_darker_panels");N.isError=!1;N.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return N};
_.F(K4,_.z);_.v=K4.prototype;_.v.headerChanged=function(){var N,b;this.baseGetTranscriptsCommand=(b=_.t((N=this.data)==null?void 0:N.header,g$J))==null?void 0:b.onTextChangeCommand};
_.v.bodyChanged=function(){var N=this.getBodyRenderer();N&&(N.initialSegments&&(this.initialTranscriptsRenderer=N),N.noResultLabel&&(this.noResultLabel=N.noResultLabel),N.retryLabel&&(this.retryLabel=N.retryLabel))};
_.v.detached=function(){this.clearSearchBoxText()};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.v.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.v.fireSearch=function(N){var b=this;if(N){var S=N.detail.query;if(this.baseGetTranscriptsCommand){var P;N=(P=_.t(this.baseGetTranscriptsCommand,_.nMd))==null?void 0:P.params;var H;P=_.t((H=this.data)==null?void 0:H.footer,DhL);var K;if((H=(K=_.t(P==null?void 0:P.languageMenu,JnJ))==null?void 0:K.subMenuItems)&&H.length>0&&(K=H.find(function(a){return a.selected}))){var C,G;
N=(C=K.continuation)==null?void 0:(G=C.reloadContinuationData)==null?void 0:G.continuation}C=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:N,searchQuery:S}});this.ytComponentBehavior.resolveCommand(C,{commandController:{onServerError:function(){b.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});YrE(this.ytContinuationHandlerBehavior,function(){return S===b.getCurrentSearchBoxText()})}}};
_.v.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.v.onRetryButtonClick=function(){this.isError=!1;var N={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:N}))};
_.v.hideTimestampsChanged=function(){_.Bd("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.handleSignalActionCopyTranscript=function(){var N=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(S){return _.t(S,$FQ)}).filter(function(S){return!!S}).map(function(S){return{snippet:S.snippet||{runs:[{text:""}]},
startTimeText:S.startTimeText||{simpleText:""}}}).map(function(S){var P=(S.snippet.runs||[]).reduce(function(H,K){return H+K.text},"");
return N.hideTimestamps?P:S.startTimeText.simpleText+" "+P}).join("\n"),this.copyToClipboard(b))};
_.v.copyToClipboard=function(N){navigator.clipboard&&navigator.clipboard.writeText(N)};
_.v.getCurrentSearchBoxText=function(){var N;return(N=this.searchBox)==null?void 0:N.value};
_.v.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.v.getBodyRenderer=function(){var N;return _.t((N=this.data)==null?void 0:N.body,eTi)};
_.v.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.d0.Object.defineProperties(K4.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.H4(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
K4.prototype.hideTimestampsChanged=K4.prototype.hideTimestampsChanged;K4.prototype.searchCleared=K4.prototype.searchCleared;K4.prototype.fireSearch=K4.prototype.fireSearch;K4.prototype.onReloadContinuationFinish=K4.prototype.onReloadContinuationFinish;K4.prototype.bodyChanged=K4.prototype.bodyChanged;K4.prototype.headerChanged=K4.prototype.headerChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],K4.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],K4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],K4.prototype,"hideTimestamps",void 0);
_.p([_.U(),_.y("design:type",Object)],K4.prototype,"isLoadingTranscripts",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],K4.prototype,"darkerPanels",void 0);_.p([_.U(),_.y("design:type",Object)],K4.prototype,"isError",void 0);_.p([_.W4("data.header"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K4.prototype,"headerChanged",null);
_.p([_.t_("data.body"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K4.prototype,"bodyChanged",null);_.p([_.RA("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K4.prototype,"onReloadContinuationFinish",null);_.p([_.RA("yt-transcript-search-box-search"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],K4.prototype,"fireSearch",null);
_.p([_.RA("yt-transcript-search-box-clear"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K4.prototype,"searchCleared",null);_.p([_.W4("hideTimestamps"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K4.prototype,"hideTimestampsChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],K4);
_.X(K4,"ytd-transcript-search-panel-renderer",function(){if(szJ!==void 0)return szJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return szJ=N},{mode:1});var vj=function(){var N=_.z.apply(this,arguments)||this;N.player=null;N.playerPollJobId=0;return N};
_.F(vj,_.z);_.v=vj.prototype;_.v.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.v.onLoadReloadContinuation=function(N){_.T("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:N.target.data.continuation}}):(N={clickTrackingParams:N.target.data.clickTrackingParams,getTranscriptEndpoint:{params:N.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}}))};
_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.v.attached=function(){this.updatePlayerListening()};
_.v.detached=function(){this.updatePlayerListening()};
_.v.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.v.startPlayerListening=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return(b=_.qE())?S.yield(b.getPlayerPromise(),2):S.return();N.player=S.yieldResult;N.playerPollJobId=_.Dj.addLowPriorityJob(function(){N.getPlayerVideoProgress()},1E3);
N.player.addEventListener("onCueRangeEnter",function(P){N.onCueRangeEnter(P)});
N.player.addEventListener("onCueRangeExit",function(P){N.onCueRangeExit(P)});
N.player.addEventListener("onStateChange",function(P){N.onPlayerStateChange(P)});
N.player.addEventListener("SEEK_TO",function(P){N.onPlayerSeek(P)});
_.Zd(S)})};
_.v.getPlayerVideoProgress=function(){var N=this;_.Dj.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();_.St(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=_.Dj.addLowPriorityJob(function(){N.getPlayerVideoProgress()},1E3)};
_.v.stopPlayerListening=function(){this.player=null;_.Dj.cancelJob(this.playerPollJobId)};
_.v.onPlayerStateChange=function(N){N===2&&this.removePendingCue()};
_.v.onPlayerSeek=function(N){var b;if(b=this.pendingReplayCueId)b=this.pendingReplayCueId,b=N===(_.T("web_transcript_cue_id_killswitch")?Number(b):Number(b.split("_")[1]));b||this.removePendingCue()};
_.v.onCueRangeEnter=function(N){h9Q(N)&&(this.pendingReplayCueId=N)};
_.v.onCueRangeExit=function(N){h9Q(N)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.v.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.v.onYtTranscriptPlayerSeek=function(N){this.player&&this.player.seekTo(N,!0)};
_.v.onYtTranscriptPlayerReplay=function(N,b){this.player&&(this.player.addCueRange($b5(N),N,b),this.player.seekTo(N,!0),this.player.playVideo())};
_.v.onYtTranscriptPlayerEdit=function(N,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange($b5(N),N,b),this.player.seekTo(N,!0))};
vj.prototype.onLoadReloadContinuation=vj.prototype.onLoadReloadContinuation;vj.prototype.panelContentVisibleChanged=vj.prototype.panelContentVisibleChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],vj.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vj.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],vj.prototype,"panelContentVisible",void 0);_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vj.prototype,"panelContentVisibleChanged",null);
_.p([_.RA("yt-load-reload-continuation"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],vj.prototype,"onLoadReloadContinuation",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],vj);
_.X(vj,"ytd-transcript-renderer",function(){if(PcE!==void 0)return PcE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PcE=N},{mode:1});var Cci;var GGL;var OO=function(){return _.z.apply(this,arguments)||this};
_.F(OO,_.z);OO.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.sR(this.hostElement,[this.data.clickCommand],this.hostElement))};
OO.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(py()+Yf)+"px)"};
OO.prototype.updateShouldHideFromBinding=function(N){this.shouldHide=N.detail.value};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OO.prototype,"rendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],OO.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],OO.prototype,"shouldHide",void 0);_.p([_.Uj({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],OO);
_.X(OO,"ytd-ad-engagement-panel-banner-renderer",function(){if(GGL!==void 0)return GGL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GGL=N},{mode:_.sZ("kevlar_poly_si_batch_j070")?1:2});var rQn;var C4=function(){var N=_.z.apply(this,arguments)||this;N.buttonUpdate=_.T("web_modern_buttons");N.adsSemanticText=_.T("enable_ads_web_ep_buenos_aires_and_padding_fix");return N};
_.F(C4,_.z);C4.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.p([_.U(),_.y("design:type",Object)],C4.prototype,"data",void 0);_.p([_.U({computed:"computeHideDefaultAdBadge(data)"}),_.y("design:type",Boolean)],C4.prototype,"hideDefaultAdBadge",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],C4.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],C4.prototype,"adsSemanticText",void 0);_.p([_.Uj({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],C4);
_.X(C4,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(rQn!==void 0)return rQn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return rQn=N},{mode:1});var cQi;var Gh=function(){var N=_.z.apply(this,arguments)||this;N.darkerPanels=_.T("web_watch_darker_panels");N.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");N.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");N.headerClickListener=function(b){N.onHeaderClick(b)};
N.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return N};
_.F(Gh,_.z);_.v=Gh.prototype;_.v.computeAdsInfoButton=function(){if(_.T("web_modern_buttons")){var N,b;return(b=_.t((N=this.data)==null?void 0:N.subtitleComplex,VEQ))==null?void 0:b.adInfoRenderer}};
_.v.updateHeaderClickListener=function(){var N,b,S;((N=this.data)==null?0:N.navigationEndpoint)||((b=this.data)==null?0:b.onClickCommand)||_.t((S=this.data)==null?void 0:S.visibilityButton,_.cC)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.v.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.v.collapsedChanged=function(){var N;(N=this.data)!=null&&N.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.T("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.v.focus=function(N){var b=this;this.titleElement&&_.Dj.addJob(function(){_.Ov(b.titleElement,N)},0,500)};
_.v.computeTitleAriaLabel=function(N){var b=[];if(N.title){var S,P;b.push(this.ytRendererBehavior.getSimpleString(N.title)||((S=N.title.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label))}N.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(N.contextualInfo));return b.join(" ")};
_.v.onHeaderClick=function(N){this.shouldTriggerHeaderClick(N)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.sR(this.hostElement,[this.data.onClickCommand],this.hostElement)):(N=this.getVisibilityToggleButton())&&N.click())};
_.v.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var N=_.t(this.data.visibilityButton,_.rU)||_.t(this.data.visibilityButton,_.cC);N&&this.ytRendererBehavior.logExplicitClick(N)}};
_.v.getVisibilityToggleButton=function(){var N=_.H4(this.hostElement).querySelector("#visibility-button").firstElementChild;return(N==null?void 0:N.is)==="ytd-toggle-button-renderer"?N:null};
_.v.shouldTriggerHeaderClick=function(N){return!_.VC(_.V7(N),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.v.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(N){N=_.t(N,dh5);this.targetId&&(N==null?void 0:N.targetId)===this.targetId&&(N=N.navigationButton)&&this.set("data.navigationButton",N)};
_.d0.Object.defineProperties(Gh.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!!(((N=this.entity)==null?0:N.isActionButtonHidden)||this.hideActionButton)}}});
Gh.prototype.collapsedChanged=Gh.prototype.collapsedChanged;Gh.prototype.updateHeaderClickListener=Gh.prototype.updateHeaderClickListener;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Gh.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],Gh.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Gh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],Gh.prototype,"targetId",void 0);_.p([_.U(),_.y("design:type",Boolean)],Gh.prototype,"collapsed",void 0);_.p([_.U(),_.y("design:type",Boolean)],Gh.prototype,"hideActionButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gh.prototype,"shortsPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gh.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Gh.prototype,"learningChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Gh.prototype,"darkerPanels",void 0);_.p([_.dq("#title"),_.y("design:type",HTMLElement)],Gh.prototype,"titleElement",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],Gh.prototype,"headerElement",void 0);
_.p([_.U({computed:"computeAdsInfoButton(data)"}),_.y("design:type",Object)],Gh.prototype,"adsInfoButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Gh.prototype,"enableSqueezebackPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Gh.prototype,"enableAnchoredPanel",void 0);_.p([_.U({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(N,b){return _.GL(N.entities,"engagementPanelTitleHeaderEntity",b)}}),
_.y("design:type",Object)],Gh.prototype,"entity",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("targetId"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gh.prototype,"adsSemanticText",null);_.p([_.W4("data","data.navigationEndpoint","data.onClickCommand"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gh.prototype,"updateHeaderClickListener",null);
_.p([_.t_("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gh.prototype,"collapsedChanged",null);_.p([_.f("entity","hideActionButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gh.prototype,"isActionButtonHidden",null);_.p([_.Uj({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Gh);
_.X(Gh,"ytd-engagement-panel-title-header-renderer",function(){if(cQi!==void 0)return cQi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return cQi=N},{mode:1});var a$_;var rh=function(){return _.z.apply(this,arguments)||this};
_.F(rh,_.z);rh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rh.prototype,"data",void 0);_.p([_.Uj({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],rh);
_.X(rh,"ytd-macro-markers-info-item-renderer",function(){if(a$_!==void 0)return a$_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return a$_=N},{mode:1});var RnO;var cj=function(N,b,S,P,H,K){_.E5.call(this);var C=this;this.JSC$21102_containerElement=N;this.hostElement=b;this.supportedSyncItems=S;this.syncEntityKey=P;this.options=H;this.renderLazyListItems=K;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;W2a(this);n_t(this);this.JSC$21102_scrollAnimation=new _.lf(function(G){N.scrollTop=G});
_.QS(this,this.JSC$21102_scrollAnimation);this.addOnDisposeCallback(function(){dst(C,!1);C.activeItem&&C.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.F(cj,_.E5);var W2a=function(N){var b=_.hT(_.aN().resolve(_.OQ),function(S){return S.entities.markersEngagementPanelSyncEntity||{}},function(S,P){var H;
if(S[N.syncEntityKey]!==P[N.syncEntityKey]&&((H=S[N.syncEntityKey])==null?void 0:H.activeItemIndex)!==void 0)if(P=S[N.syncEntityKey].activeItemIndex,S=N.getItemByIndex(P)){if(ms5(N,S),N.contentVisible)if(N.browsingMode){var K;((K=N.options)==null?void 0:K.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K=kGi(N),S.offsetTop<N.JSC$21102_containerElement.clientHeight+N.JSC$21102_containerElement.scrollTop&&K&&!N.activeItemBelowSyncPosition&&dst(N,!1));TN6(N)}else N.scrollToItem(S)}else _.$h(new _.jU("Could not find "+
N.supportedSyncItems+" sync child to set active.",P,N.JSC$21102_containerElement.querySelectorAll(N.supportedSyncItems).length))});
N.unsubscribeFromTimedMarkersListSyncEntity=b;N.addOnDisposeCallback(b);tiJ(N)},tiJ=function(N){var b=_.aN().resolve(_.OQ);
b=_.wxs(b.getState(),N.syncEntityKey);(b==null?void 0:b.activeItemIndex)!==void 0&&(b=N.getItemByIndex(b.activeItemIndex))&&ms5(N,b)},n_t=function(N){var b=new _.GR(N.onScroll,50,N);
_.QS(N,b);var S=function(){b.fire()};
N.JSC$21102_containerElement.addEventListener("scroll",S);N.addOnDisposeCallback(function(){N.JSC$21102_containerElement.removeEventListener("scroll",S)})};
cj.prototype.getItemByIndex=function(N){var b;(b=this.renderLazyListItems)==null||b.call(this,N);b=this.JSC$21102_containerElement.querySelectorAll(this.supportedSyncItems);if(b.length>N)return b[N]};
var ms5=function(N,b){N.activeItem&&N.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));b.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));N.activeItem=b};
cj.prototype.scrollToItem=function(N){N=this.getScrollPositionForItem(N);this.JSC$21102_containerElement.scrollTop!==N&&this.JSC$21102_scrollAnimation.start(this.JSC$21102_containerElement.scrollTop,N,300)};
cj.prototype.getScrollPositionForItem=function(N){if(this.JSC$21102_containerElement.querySelectorAll(this.supportedSyncItems)[0]===N)return 0;var b,S=((b=this.options)==null?0:b.percentOffset)?this.JSC$21102_containerElement.clientHeight*this.options.percentOffset:0;N=_.qz(N).y+this.JSC$21102_containerElement.scrollTop-(_.qz(this.JSC$21102_containerElement).y+S);return Math.max(0,Math.min(N,this.JSC$21102_containerElement.scrollHeight-this.JSC$21102_containerElement.offsetHeight))};
cj.prototype.onScroll=function(){this.activeItemBelowSyncPosition=kGi(this);if(this.activeItem&&!this.JSC$21102_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21102_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var N;switch((N=this.options)==null?void 0:N.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":Mi_(this,!F25(this));TN6(this);break;default:Mi_(this,!0)}}};
var Mi_=function(N,b){var S,P;_.r(function(H){if(H.nextAddress==1){if(N.browsingMode)return H.return();N.browsingMode=!0;b&&N.hostElement.classList.add("browsing-mode");N.playerExitBrowsingModeListener=function(){dst(N,!1)};
return H.yield(_.Cf(),2)}S=H.yieldResult;(P=S)==null||P.addEventListener("SEEK_TO",N.playerExitBrowsingModeListener);_.Zd(H)})},dst=function(N,b){b=b===void 0?!0:b;
N.browsingMode&&(N.browsingMode=!1,N.hostElement.classList.remove("browsing-mode"),b&&N.scrollToItem(N.activeItem),BNE(N))},BNE=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return N.playerExitBrowsingModeListener?P.yield(_.Cf(),3):P.jumpTo(0);b=P.yieldResult;(S=b)==null||S.removeEventListener("SEEK_TO",N.playerExitBrowsingModeListener);N.playerExitBrowsingModeListener=void 0;_.Zd(P)})},TN6=function(N){var b;
((b=N.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(F25(N)?N.hostElement.classList.remove("browsing-mode"):N.activeItem&&N.hostElement.classList.add("browsing-mode"))},kGi=function(N){if(!N.activeItem)return!1;
var b,S=((b=N.options)==null?0:b.percentOffset)?N.JSC$21102_containerElement.clientHeight*N.options.percentOffset:0;return N.activeItem.offsetTop>=N.JSC$21102_containerElement.scrollTop+S},F25=function(N){if(!N.activeItem)return!1;
var b=N.activeItem.offsetTop+14<=N.JSC$21102_containerElement.scrollTop+N.JSC$21102_containerElement.clientHeight;return N.activeItem.offsetTop+N.activeItem.clientHeight-14>=N.JSC$21102_containerElement.scrollTop&&b};
cj.prototype.panelContentVisibleChanged=function(N){(this.contentVisible=N)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var l$n=function(N,b){N.syncEntityKey=b;var S;(S=N.unsubscribeFromTimedMarkersListSyncEntity)==null||S.call(N);W2a(N)},L2w=function(N,b){N.options=b};var aZ=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return N};
_.F(aZ,_.z);_.v=aZ.prototype;_.v.detached=function(){var N;(N=this.scrollController)==null||N.dispose();this.scrollController=void 0};
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.v.dataChanged=function(){var N=this;_.W_(this,function(){if(N.scrollController){var b;(b=N.scrollController)==null||dst(b,!1);var S,P,H;(P=N.scrollController)==null||l$n(P,(H=(S=N.data)==null?void 0:S.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key");var K,C,G;(G=N.scrollController)==null||L2w(G,{percentOffset:(K=N.data)==null?void 0:K.selectedItemAlignmentPercentOffset,floatingPillType:(C=N.data)==null?void 0:C.floatingPillType})}else{var a,R,n,d;N.scrollController=
new cj(N.contents,N.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(d=(a=N.data)==null?void 0:a.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key",{percentOffset:(R=N.data)==null?void 0:R.selectedItemAlignmentPercentOffset,floatingPillType:(n=N.data)==null?void 0:n.floatingPillType},function(m){N.renderLazyListItems(m)})}N.scrollController.panelContentVisibleChanged(!!N.panelContentVisible)})};
_.v.computeButtonShape=function(){var N=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){N.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.v.renderLazyListItems=function(N){for(var b=this.contents.children,S=0,P=0;P<b.length;P++){var H=void 0;(H=b[P].ytLazyListBehavior)==null||H.fillRemainingListItems();var K=void 0,C=void 0;H=_.t((K=this.data)==null?void 0:(C=K.contents)==null?void 0:C[P],_.bN9);C=K=void 0;if((K=H)==null?0:(C=K.contents)==null?0:C.length)S+=H.contents.length;if(S>=N)break}};
_.v.handleSetActivePanelItemAction=function(N){if((N=_.t(N,Lq6))&&this.panelTargetId===N.panelTargetId){N=N.itemIndex;var b,S,P=(S=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",H;((H=this.syncEntity)==null?void 0:H.activeItemIndex)!==N&&this.ytdReduxBehavior.dispatch(_.t5("markersEngagementPanelSyncEntity",P,{key:P,activeItemIndex:N}))}};
_.v.onSyncClick=function(){var N;(N=this.scrollController)==null||dst(N)};
_.v.panelContentVisibleChanged=function(){var N;(N=this.scrollController)==null||N.panelContentVisibleChanged(!!this.panelContentVisible)};
aZ.prototype.panelContentVisibleChanged=aZ.prototype.panelContentVisibleChanged;aZ.prototype.dataChanged=aZ.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],aZ.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],aZ.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aZ.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],aZ.prototype,"useCustomColors",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],aZ.prototype,"panelTargetId",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],aZ.prototype,"panelContentVisible",void 0);
_.p([_.dq("#contents"),_.y("design:type",HTMLElement)],aZ.prototype,"contents",void 0);_.p([_.U({selectorArgs:["data.syncModelEntityKey"],selector:_.wxs}),_.y("design:type",Object)],aZ.prototype,"syncEntity",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aZ.prototype,"dataChanged",null);
_.p([_.W4("panelContentVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aZ.prototype,"panelContentVisibleChanged",null);_.p([_.Uj({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],aZ);
_.X(aZ,"ytd-macro-markers-list-renderer",function(){if(RnO!==void 0)return RnO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return RnO=N},{mode:1});var f$E;var ud5;var RZ=function(){return _.z.apply(this,arguments)||this};
_.F(RZ,_.z);RZ.prototype.computeAriaLabel=function(N){var b,S;return(N==null?void 0:(b=N.accessibility)==null?void 0:(S=b.accessibilityData)==null?void 0:S.label)||_.cN("LOADING",void 0,"Loading")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RZ.prototype,"data",void 0);_.p([_.U({computed:"computeAriaLabel(data)"}),_.y("design:type",String)],RZ.prototype,"ariaLabel",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],RZ);
_.X(RZ,"yt-content-loading-renderer",function(){if(ud5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;f$E===void 0&&(f$E=document.createElement("template"));var P=f$E;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ud5=N}N=ud5;return N},{mode:1});_.qu(_.A(function(N){var b=_.O(_.QF(!1,void 0,"OZMtVb")),S=b.next().value,P=b.next().value;b=_.O(_.QF(!1,void 0,"qWERsf"));var H=b.next().value,K=b.next().value;_.YU(function(){var a=_.t(N.data().collaboratePlaylistCollaborationSetting,IFa);a&&P(a.switchedOnByDefault);var R=_.t(N.data().allowNewCollaboratorsPlaylistCollaborationSetting,IFa);R&&K(R.switchedOnByDefault);if(!a&&!R||!a&&N.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")P(!0),K(!0)});
var C=function(a){P(a);K(a);var R=N.data().playlistCollaborationEntityKey||"";var n=_.gq().getState();(n=_.GL(n.entities,"playlistCollaborationEntity",R))&&(n==null?void 0:n.isCollaborative)===a||_.gq().dispatch(_.t5("playlistCollaborationEntity",R,Object.assign({},n,{isCollaborative:a})))},G=function(a){K(a)};
return _.c("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.c("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.c(_.kY,{data:function(){return N.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(a){return _.c(_.GTc,{data:a.data,
onSwitch:C})}})),_.c(_.W,{cond:S,
then:function(){return _.c(_.nM,null,_.c("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.c(_.kY,{data:function(){return N.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(a){return _.c(_.GTc,{data:a.data,
onSwitch:G,overrideDisabled:!1})}})),_.c(_.W,{cond:H,
then:function(){return _.c("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.c(_.kY,{data:function(){return N.data().copyLinkButton}},{buttonViewModel:_.j$}))}}),_.c("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.c(_.kY,{data:function(){return N.data().playlistCollaborators}},{contentListItemViewModel:Tw_})))}}))},"zj"),"playlist-collaboration-view-model",{props:{data:_.kg}});var Qzo=_.A(function(N){var b=N.data;var S=N.customCommandResolver;return _.c(_.nM,null,_.c("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.c(_.kY,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(P){return _.c(_.J94,{data:P.data,
customCommandResolver:S})}})),_.c("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.c(_.W,{cond:function(){return b().headline},
then:function(P){return _.c(_.mD,{text:P,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.c("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.c(_.kY,{data:function(){return b().adBadge}},{adBadgeViewModel:function(P){return _.c(_.Xl,{data:P.data,
hasDot:function(){return b().primaryDetailsLine!==void 0},
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.c(_.kY,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(P){return _.c(_.E$,{data:P.data,
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Aj"),xsi=_.A(function(N){var b=N.data;
var S=N.customCommandResolver;return _.c("ad-avatar-lockup-view-model",{class:function(){var P;return((P=b().interaction)==null?0:P.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.VN(_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu}),_.z8(function(){return b().interaction},S)),
"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c(_.Al,null,_.c(_.ZH,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.c(Qzo,{data:b,
customCommandResolver:S})}),_.c(_.j_,null,function(){return null})))},"Bj");_.qu(_.A(function(N){var b=N.data;var S=N.panelContentVisibility;N=_.nt({visibilityCallback:function(K){var C,G=(C=b().interaction)==null?void 0:C.onFirstVisible;K&&G&&_.AM(G)},
showOption:_.iu});var P=_.z8(function(){return b().interaction},qWn);
_.VF(function(){var K,C;if(C=_.hl("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var G;C=(G=C())==null?void 0:G.onLayoutVisibleCallback}else C=null;(K=C)==null||K()},"Cj");
var H=function(){return S()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.c("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.VN(N,P)},_.c("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.c("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.c(_.W,{cond:_.SV_("(min-width: "+(py()+Yf)+"px) or (max-width: 600px)"),then:function(){return _.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(K){return _.c(_.eq,{data:K.data,
targetHeight:80,customCommandResolver:qWn})}})}})),_.c("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.c("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.c(_.kY,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(K){return _.c(xsi,{data:K.data,
customCommandResolver:qWn})}})),_.c(_.W,{cond:H,
then:function(){return _.c(_.kY,{data:function(){return b().adButton}},{adButtonViewModel:function(K){return _.c(_.U$,{data:K.data,
customCommandResolver:qWn})}})},
else:function(){return _.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:_.j$})}}),_.c("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.c(_.kY,{data:function(){var K=_.t(b().toggleButton,_.dU);
return{toggleButtonViewModel:Object.assign({},K,{isTogglingDisabled:!0,isToggled:H()})}}},{toggleButtonViewModel:_.Hc})))))},"Dj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.kg,
panelContentVisibility:_.kg}});var o_i=_.A(function(N){return _.c("yt-feedback-prompt-view-model",{class:_.KU("ytFeedbackPromptViewModelHost",N.className)},_.c(_.W,{cond:function(){return N.data().text},
then:function(b){return _.c(_.mD,{text:b,className:"ytFeedbackPromptViewModelPrompt"})}}),_.c(_.kY,{data:function(){return N.data().likeButton}},{likeButtonViewModel:function(b){return _.c(_.aD,{data:b.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.c(_.kY,{data:function(){return N.data().dislikeButton}},{dislikeButtonViewModel:_.cn}))},"Ej");var i0E=_.A(function(N){var b=void 0,S=function(){return N.data()},P=function(){return!!_.Lo(_.BP(S())).optionColor},H=_.O(_.QF(-1,void 0,"m6Iyqc")),K=H.next().value,C=H.next().value,G=function(m){return K()===m},a=function(m){return S().correctAnswerIndex===m},R=function(){return K()!==-1};
H=_.O(_.QF("",void 0,"jvMkLd"));var n=H.next().value,d=H.next().value;return _.c("yoututor-quiz-view-model",{class:_.KU("learningQuizComponentHost","learningYoututorQuizHost",N.className),style:_.r5({background:function(){return _.Lo(_.BP(S())).backgroundColor}})},_.c("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},n),_.c("div",{class:"learningQuizComponentQuizContainer"},_.c("div",{class:"learningQuizComponentQuiz"},_.c("div",{class:"learningQuizComponentQuizContent"},_.c(_.W,{cond:function(){return!!S().aiGeneratedQuizLabel},
then:function(){return _.c("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.c(_.mD,{text:function(){return S().aiGeneratedQuizLabel}}))}}),_.c("div",{class:"learningQuizComponentQuizHeader"},_.c("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.c("div",{class:"learningYoututorQuizText",
style:_.r5({color:function(){return _.Lo(_.BP(S())).primaryTextColor}})},_.c(_.mD,{text:function(){return S().questionHeaderText}}))))),_.c("div",{role:"group",
class:_.KU("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.c(_.zj,{each:function(){return S().optionsData||[]}},function(m,k){var M={};
return _.c("button",{class:_.KU("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(M.learningQuizComponentQuizHover=function(){return!R()},M.learningQuizComponentQuizOptionWithCustomColor=P,M.learningYoututorQuizOptionSelectedCorrectOutline=function(){return R()&&a(k())},M.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return K()!==S().correctAnswerIndex&&G(k())},M.learningQuizComponentQuizIncorrectShake=function(){return K()!==
S().correctAnswerIndex&&G(k())},M)),
"on:click":_.Ob(function(){_.A8(_.dG(),{data:m});if(R())return!1;C(k());d(a(k())?S().correctAnswerAriaLabel||"":S().incorrectAnswerAriaLabel||"");return!1}),
style:_.r5({background:"transparent"}),"aria-description":function(){return R()?a(k())?S().correctAnswerAriaLabel:S().incorrectAnswerAriaLabel:""},
"aria-disabled":R,el:_.VN(function(l){_.fo(271905,l,b,function(u){b=u})}),
"client-ve-type":271905},_.c("div",{class:"learningQuizComponentQuizOptionContainer"},_.c(_.mD,{text:m.optionText}),_.c(_.W,{cond:function(){var l=k();return R()&&(G(l)||a(l))},
then:function(){var l={};return _.c(_.cX,{className:_.KU("learningYoututorQuizOptionIcon",(l.learningQuizComponentQuizPulse=function(){return K()===S().correctAnswerIndex&&a(k())},l)),
size:24,icon:function(){return a(k())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.c(_.W,{cond:R,
then:function(){return _.c("div",{class:"learningYoututorQuizExplanationContainer"},_.c("div",{class:"learningYoututorQuizExplanationText"},_.c(_.mD,{text:function(){return S().explanationHeaderText}})),_.c(_.mD,{text:function(){return S().optionsData[K()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Fj");
i0E.idomCompat=!0;var JQo=_.A(function(N){var b=N.thumbsUp,S=N.thumbsDown,P=N.rightAlignThumbs;N=_.O(_.QF(!1,void 0,"OxPsH"));var H=N.next().value,K=N.next().value;N=_.O(_.QF(!1,void 0,"V5vWne"));var C=N.next().value,G=N.next().value;N={};return _.c("div",{class:_.KU("ytwThumbsUpDownThumbs",(N.ytwThumbsUpDownRightAlign=function(){return P==null?void 0:P()},N))},_.c(_.Hc,{data:b,
onToggle:function(a){K(a);C()&&G(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}),_.c(_.Hc,{data:S,
onToggle:function(a){G(a);H()&&K(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}))},"Gj");
JQo.idomCompat=!0;var Z0a=_.A(function(N){var b=function(){return N.data().pendingStateEntityKey||""},S=_.nf(NOQ,b),P=function(){var G;
if(!(G=N.disabled())){var a;G=!((a=S())==null||!a.isPendingResponse)}return G},H=_.O(_.QF(BQa(""),void 0,"Q6q6y")),K=H.next().value,C=H.next().value;
_.pM(function(){requestAnimationFrame(function(){var G=N.data().onShowAnimationMs||0;G=G>0?BQa("--chip-animation-duration: "+G+"ms;"):BQa("");C(G)})});
return _.c("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:K},_.c(_.zj,{each:function(){return N.data().chipData||[]},
keyBy:"REFERENCE"},function(G){return _.c(UsJ,{data:G,disabled:P,pendingStateKey:b,onError:N.onError})}))},"Ij"),UsJ=_.A(function(N){var b=_.GQ("button"),S=_.O(_.QF(!0,void 0,"baSFEf")),P=S.next().value,H=S.next().value,K=function(){return N.data().text.content},C=function(){return N.data().transparentWhenLoading},G=_.nU(_.pf.currentPageSubTypeSelector),a=function(){var n;
return(n=_.aN().resolve(_.cq(_.Kd)))==null?void 0:_.yvJ(n,G())},R=_.Ob(function(n){var d,m,k,M,l,u,J,Z;
return _.r(function(D){switch(D.nextAddress){case 1:n.stopPropagation();if(N.disabled())return D.return();m=String(Math.floor(((d=_.G8())==null?void 0:d.getCurrentTime())||0)*1E3);k="youchat-"+Date.now();M=function(){_.ZN(N.data().onClick||{});var Y=HuE(N.data().continuation),V=Vi({clientMessageId:k,playerOffsetMs:m,pageContext:a()});return new Promise(function(g,e){_.ZN(Y,{form:{formData:V},commandController:{onSuccess:function(se,Ca){g(Ca)},
onServerError:function(se,Ca){e(Ca.error)}}})})};
l=boi(N.pendingStateKey());l(!0);ux6("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");H(!1);_.u4(D,2);return D.yield(M(),4);case 4:_.su(D,3);break;case 2:u=_.UE(D),(Z=(J=N).onError)==null||Z.call(J,u);case 3:l(!1),_.Zd(D)}})});
return _.c(_.W,{cond:P,then:function(){return _.c("div",{class:"ytwYouChatChipsDataChipWrapper"},_.c("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":N.disabled,"data-transparent-loading":C,"on:click":R,tabindex:0},K))}})},"Jj");var jz5=_.A(function(N){var b=N.data;var S=N.initiallyExpanded;var P=function(){var R;return(R=b().conversationResourceData)==null?void 0:R.learningGuideData};
N=_.O(_.qI(function(){var R;return(R=S==null?void 0:S())!=null?R:!1}));
var H=N.next().value,K=N.next().value,C=function(){var R,n=_.t((R=P())==null?void 0:R.expandButton,_.WC);n&&_.A8(_.dG(),{data:n});K(!0)},G=_.UB(function(){var R,n;
return(n=(R=P())==null?void 0:R.sections)!=null?n:[]},void 0,"V7sYqc"),a=_.UB(function(){return G().length>4},void 0,"GFFPnd");
N=_.UB(function(){var R;return!H()&&a()&&(R=P())!=null&&R.expandButton?G().slice(0,4):G()},void 0,"Rbi7Ke");
return _.c("yt-conversation-resource-view-model",{class:_.KU("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.c(_.kY,{data:N},{expandableMetadataViewModel:_.hoE}),_.c(_.W,{cond:function(){return a()&&!H()},
then:function(){return _.c("div",{id:"showMoreButton"},_.c(_.kY,{data:function(){var R;return(R=P())==null?void 0:R.expandButton}},{buttonViewModel:function(R){return _.c(_.j$,{data:R.data,
onClick:C})}}))}}))},"Kj");_.znq=_.A(function(N){var b=function(){var Z;return(Z=N.data().text)==null?void 0:Z.content},S=function(){var Z,D;
return(Z=N.data().webData)==null?void 0:(D=Z.textResult)==null?void 0:D.content},P=_.aN().resolve(_.YY),H=_.rx(),K=function(){return N.data().chatResponseStyle},C=function(){return!N.data().transparentBackground},G=function(){return N.data().rightAlignThumbs},a=function(){return N.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||N.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},R=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:a()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:N.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},n=function(){var Z;
return N.data().webData||((Z=N.data().text)==null?void 0:Z.content)||N.data().videoResultsData||N.data().conversationResourceViewModel||N.data().quiz||N.data().yoututorQuiz||N.data().richContent},d=function(){return!!N.data().sectionHeader||n()},m=function(){var Z;
return(Z=N.data().videoResultsData)==null?void 0:Z.videoShelf},k=function(){var Z;
return(Z=N.data().webData)==null?void 0:Z.sourcesShelf},M=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:N.data().thumbsDownViewModel&&N.data().thumbsUpViewModel},l=function(){return _.t(N.data().thumbsUpViewModel,_.dU)},u=function(){return _.t(N.data().thumbsDownViewModel,_.dU)};
_.pM(function(){requestAnimationFrame(function(){var Z;(Z=N.shouldAnimateIcon)!=null&&Z.call(N)&&HoJ(H.lottieEl)})});
var J={};return _.c("you-chat-item-view-model",{class:_.KU("ytwYouChatItemViewModelYouChatItemViewModel",(J.ytwYouChatItemViewModelColumnLayout=function(){return a()},J)),
style:_.r5({"min-height":function(){var Z,D;return wmE((Z=N.containerHeight)==null?void 0:Z.call(N),(D=N.isLastItem)==null?void 0:D.call(N))}}),
"data-target-id":function(){return N.data().id||""}},_.c(_.W,{cond:function(){return N.data().removeIcon?!1:d()},
then:function(){var Z={};return _.c("div",{"aria-hidden":"true"},_.c(_.Yg,{className:_.KU("ytwYouChatItemViewModelIcon",(Z.ytwYouChatItemViewModelRtl=P==="rtl",Z.ytwYouChatItemViewModelHidden=function(){return!(N.data().hideIcon||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||K()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:d())},Z)),
animationName:"YOUCHAT_ICON",data:R,animationRef:H}))}}),_.c(_.W,{cond:d,
then:function(){var Z={};return _.c("div",{class:_.KU("ytwYouChatItemViewModelHost",(Z.ytwYouChatItemViewModelHostNoPadding=function(){return!!N.data().sectionHeader&&!n()},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return K()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
Z.ytwYouChatItemViewModelGradientBackground=C,Z.ytwYouChatItemViewModelHostAlignStart=function(){return!a()},Z.ytwYouChatItemViewModelHostDefaultFlex=function(){return!a()},Z)),
role:"alert"},_.c(_.W,{cond:b,then:function(D){return _.c(_.M2,{text:D,wrapCodeBlocks:!0})}}),_.c(_.kY,{data:function(){return N.data().sectionHeader}},{sectionHeaderViewModel:function(D){var Y={};
return _.c(_.V5,{data:D.data,className:_.KU("ytwYouChatItemViewModelSectionHeader",(Y.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!N.data().sectionHeader&&!n()},Y)),
forceSmallLayout:!0})}}),_.c(_.W,{cond:S,
then:function(D){return _.c(_.M2,{text:D,wrapCodeBlocks:!0})}}),_.c(_.W,{cond:m,
then:function(){return _.c("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.c(_.kY,{data:function(){var D;return(D=N.data().videoResultsData)==null?void 0:D.videoShelf}},{horizontalShelfViewModel:function(D){return _.c(_.TU,{data:D.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.c(_.W,{cond:k,
then:function(){return _.c("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.c(_.kY,{data:function(){var D;return(D=N.data().webData)==null?void 0:D.sourcesShelf}},{horizontalShelfViewModel:function(D){return _.c(_.TU,{data:D.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.c(_.kY,{data:function(){return N.data().conversationResourceViewModel}},{conversationResourceViewModel:jz5}),_.c(_.kY,{data:function(){return N.data().quiz}},{learningJourneyQuizViewModel:_.f1c}),_.c(_.kY,{data:function(){return N.data().yoututorQuiz}},{yoututorQuizViewModel:i0E}),_.c(_.kY,{data:function(){return N.data().richContent}},{cardViewModel:l8q,
linearLayoutViewModel:_.mX}),_.c(_.W,{cond:M,then:function(){return _.c(JQo,{thumbsUp:l,thumbsDown:u,rightAlignThumbs:G})}}))}}),_.c(_.W,{cond:function(){return N.data().chipsData},
then:function(Z){return _.c(Z0a,{data:Z,disabled:N.pending,onError:N.onError})}}))},"Mj");
_.znq.idomCompat={callbacks:{onError:!0,onSend:!0}};_.AQO=_.A(function(N){var b=function(){var C;return((C=N.data)==null?void 0:C.call(N).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},S=_.rx(),P=_.aN().resolve(_.YY);
_.pM(function(){requestAnimationFrame(function(){var C;(C=S.lottieEl)==null||C.addEventListener("DOMLoaded",function(){var G;(G=N.onLottieLoaded)==null||G.call(N)})})});
var H=function(){var C;return(C=N.data)==null?void 0:C.call(N).loadingAnimationA11yLabel},K={};
return _.c("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var C;return((C=N.data)==null?void 0:C.call(N).targetId)||""},
"aria-label":function(){return H()||""},
role:function(){return H()?"progressbar":void 0},
style:_.r5({"min-height":function(){var C,G;return wmE((C=N.containerHeight)==null?void 0:C.call(N),(G=N.isLastItem)==null?void 0:G.call(N))}})},_.c(_.Yg,{"aria-hidden":"true",
className:_.KU((K.ytChatLoadingViewModelRtl=P==="rtl",K)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:b()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||b()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:b()}}},
animationRef:S}))},"Oj");_.XBa=_.A(function(N){var b=function(){return N.data().choiceSelectedText};
return _.c("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.r5({"min-height":function(){var S,P;return wmE((S=N.containerHeight)==null?void 0:S.call(N),(P=N.isLastItem)==null?void 0:P.call(N))}}),
"data-target-id":function(){var S;return(S=N.data().itemTargetId)!=null?S:""}},_.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"ytYouChatUserTurnChoiceSelected"},_.c(_.mD,{text:b}))}}),_.c("div",{class:_.KU("ytYouChatUserTurnUserMessage",function(){return sJi(N.data())})},function(){return N.data().text}))},"Pj");var E_n=_.A(function(N){var b=_.O((0,_.yWO)(N.data)).next().value,S=function(){var P,H;return(H=(P=b().contents)==null?void 0:P.length)!=null?H:0};
return _.c("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return N.data().targetId||""},
"aria-busy":function(){var P,H;return(H=(P=b().contents)==null?void 0:P.some(function(K){return!!K.chatLoadingViewModel}))!=null?H:!1}},_.c(_.kY,{data:function(){return N.data().header}},{chipBarViewModel:_.D9d,
sectionHeaderViewModel:_.V5}),_.c(_.kY,{data:function(){return b().contents}},{accordionViewModel:_.odk,
alertBannerViewModel:_.wQ9,chatLoadingViewModel:function(P,H){return _.c(_.AQO,{data:P.data,containerHeight:N.containerHeight,isLastItem:function(){return H()===S()-1}})},
chatUserTurnViewModel:function(P,H){return _.c(_.XBa,{data:P.data,containerHeight:N.containerHeight,isLastItem:function(){return H()===S()-1}})},
feedbackPromptViewModel:o_i,gridShelfViewModel:function(P){return _.c(_.Ri,{data:P.data,shouldUseOwnContainerSize:!0,marginSettings:N.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.FZl,linearLayoutViewModel:_.mX,lockupViewModel:function(P){return _.c(_.Y3,{data:P.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:N.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.V5,videoOverviewViewModel:_.EdV,youChatItemViewModel:function(P,H){return _.c(_.znq,{data:P.data,pending:!1,containerHeight:N.containerHeight,isLastItem:function(){return H()===S()-1}})}}))},"Qj");_.qu(_.A(function(N){var b=_.O((0,_.yWO)(N.data)).next().value,S=_.O(_.tI()),P=S.next().value;S=S.next().value;var H=_.VN(S);S=_.O(_.QF(void 0,void 0,"fqbUqd"));var K=S.next().value,C=S.next().value,G=function(){var a;return _.t((a=N.data().sectionListLayoutConfiguration)==null?void 0:a.layoutConfiguration,iY5)};
_.YU(function(){var a,R=(a=H.value)==null?void 0:a.clientWidth;a=G()?_.Z4Y(R,G()):void 0;C(a)});
S={};return _.c("yt-section-list-renderer",{class:_.KU("ytSectionListRendererHost",N.className,(S.ytSectionListRendererHostOverscrollContain=function(){var a;return(a=N.overscrollContain)==null?void 0:a.call(N)},S)),
el:H,"data-target-id":function(){return N.data().targetId||""}},_.c(_.kY,{data:function(){return b().contents}},{itemSectionRenderer:function(a){return _.c(E_n,{data:a.data,
containerLayoutConfig:K,marginSettings:N.marginSettings,containerHeight:function(){return P.height()}})}}))},"Rj"),"yt-section-list-renderer",{props:{data:_.kg,
className:_.er,marginSettings:_.kg,overscrollContain:_.kg}});_.qu(_.A(function(N){var b=function(){return _.t(N.data().inputComposerViewModel,Oo6)},S=_.nU(_.pf.currentPageSubTypeSelector),P=_.nU(_.pf.persistentPanelVisibleSelector),H=_.O(_.QF(!1,void 0,"RXGzYc")),K=H.next().value,C=H.next().value;
H=_.O(_.QF(!1,void 0,"oyonKd"));var G=H.next().value,a=H.next().value,R=function(){l(!0);var To;_.AM(((To=b())==null?void 0:To.onSubmitCommand)||{})},n=function(){if(P()&&!G()){var To;
(To=_.G8())==null||To.removeCueRange("aic-proactive");C(!1);a(!0);R();_.ZN(HuE(b().endOfVideoContinuation),{form:{formData:Vi({clientMessageId:"youchat-"+Date.now(),pageContext:ML()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.ZN(SI5(D()));l(!1)}}})}},d=function(){var To=_.G8();
if(To&&!K()&&!G()){var jp=To.getDuration();jp>60&&(To.addCueRange("aic-proactive",jp-60,jp-20),C(!0))}},m=function(){var To;
return((To=b())==null?void 0:To.youchatPendingResponseEntityKey)||""},k=_.nf(NOQ,m),M=function(){var To;
return!((To=k())==null||!To.isPendingResponse)},l=function(To){boi(m())(To)};
H=_.O(_.QF(!0,void 0,"umCoCf"));var u=H.next().value,J=H.next().value,Z=function(){var To,jp;var Xf=_.t((jp=b())==null?void 0:jp.inputFormField,cJ5);return Xf==null?void 0:(To=Xf.contentProperties)==null?void 0:To.placeholderText},D=function(){return b().sectionTargetId||"youchat_messages_section"};
H=_.GQ("yt-chat-input-view-model");var Y=_.Ct("textarea"),V=_.nf(Sx_,"chat_input_view_model_state"),g=PFi(),e=function(){var To;return!((To=V())==null||!To.value)},se=function(){return N.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Ca=function(){var To;
(To=_.G8())==null||To.removeCueRange("aic-proactive");C(!1);a(!1);var jp;_.T("enable_navigational_proactive_messages_on_ai_companion")&&((jp=b())==null?0:jp.navigationContinuation)&&P()&&(R(),_.ZN(HuE(b().navigationContinuation),{form:{formData:Vi({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ve_(),pageContext:ML()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.ZN(SI5(D()));l(!1)}}}))},ML=function(){var To;
return(To=_.aN().resolve(_.cq(_.Kd)))==null?void 0:_.yvJ(To,S())};
_.YU(function(){if(_.NI("enable_ai_chat_controller")){var To;(To=_.aN().resolve(_.cq(_.Kd)))==null||To.init(N.data().environment)}else if(To=CF5(N.data()),!e()&&To){var jp;((jp=b())==null?0:jp.setPendingResponseOnWelcome)&&l(!0);_.ZN(To,{form:{formData:Vi({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:ve_(),pageContext:ML()})}});g(!0)}var Xf=D(),YO=_.aN().resolve(_.cq(_.pi)),Wk=function(){_.mH.remove(Xf);if(_.NI("enable_ai_chat_controller")){var Vu;(Vu=_.aN().resolve(_.cq(_.Kd)))!=null&&Vu.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(Vu.lastWelcomeContinuationSent=void 0)}else g(!1)},S9=function(){_.fQ(function(){if(se()&&(Ca(Xf),S()==="watch")){var Vu=_.G8();
Vu&&(Vu.addEventListener("onStateChange",d),Vu.addEventListener("onCueRangeEnter",n))}})};
jp=_.T("enable_ai_companion")?!se():!0;YO==null||YO.addEventListener("yt-navigate-start",Wk,{once:jp});YO==null||YO.addEventListener("yt-navigate-finish",S9,{once:jp});_.ej(function(){YO==null||YO.removeEventListener("yt-navigate-start",Wk);YO==null||YO.removeEventListener("yt-navigate-finish",S9);var Vu=_.G8();Vu&&(Vu.removeEventListener("onCueRangeEnter",n),Vu.removeEventListener("onStateChange",d),Vu.removeCueRange("aic-proactive"))})});
_.gA(function(){if(_.NI("enable_ai_chat_controller")){var To=CF5(N.data());if(To){var jp,Xf=((jp=b())==null?0:jp.setPendingResponseOnWelcome)?l:void 0,YO;(YO=_.aN().resolve(_.cq(_.Kd)))==null||Nu6(YO,{command:To,setPending:Xf})}}},"SXTMBe");
var na=function(){var To=Y.value.value;Y.value.value="";K8a(Y.value);var jp,Xf=((jp=b())==null?void 0:jp.enableGradientColorBg)||!1;jp=PVa(D(),To,Xf);_.ZN(jp);R();var YO,Wk,S9;jp=(S9=_.UZ((YO=N.data())==null?void 0:YO.sendUserQueryCommand))!=null?S9:HuE((Wk=b())==null?void 0:Wk.continuation);_.ZN(jp,{form:{formData:Vi({clientMessageId:"youchat-"+Date.now(),userInputText:To,playerOffsetMs:ve_(),pageContext:ML()})},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){_.ZN(SI5(D()));l(!1)}}})};
return _.c("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:H},_.c("div",{class:"chatInputViewModelChatInputWrapper"},_.c("form",{class:"chatInputViewModelChatInputForm"},_.c("textarea",{class:"chatInputViewModelChatInput",el:Y,"on:keydown":_.Ob(function(To){var jp=M()||!1;K8a(Y.value);jp||To.key!=="Enter"||To.shiftKey||(To.preventDefault(),na());return!1}),
"on:keyup":_.Ob(function(){J(Y.value.value.length===0);return!1}),
"aria-label":function(){return M()?N.data().loadingAnimationA11yLabel||"":Z()},
placeholder:Z,rows:1}),_.c(_.j$,{data:function(){return _.t(N.data().sendButton,_.WC)},
onClick:function(To){To.preventDefault();na();J(Y.value.value.length===0)},
buttonOverrides:function(){return{disabled:u()||M()}}})),_.c(_.mD,{className:"chatInputViewModelChatDisclaimer",
text:function(){var To;return N.data().disclaimerText||((To=_.t(N.data().disclaimer,_.SMc))==null?void 0:To.text)}})))},"Tj"),"yt-chat-input-view-model",{props:{data:_.kg}});var pBL=["engagement-panel-clip-create","engagement-panel-clip-view"],YCa=0,Wj=function(){var N=_.z.apply(this,arguments)||this;var b;N.headerData=(b=N.data)==null?void 0:b.header;N.darkerPanels=_.T("web_watch_darker_panels");N.matchContentTheme=_.T("web_watch_panel_content_match_theme");N.disableAutoFill=!1;N.isFullscreen=!1;N.isTheaterMode=!1;N.liveChatReplyPanel=!1;N.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");N.disableBackdropFilter=_.T("web_disable_backdrop_filter");N.isPersistentPanel=
!1;N.trackEngagementPanelVisibility=_.T("web_watch_track_engagement_panel_visibility");N.overscrollContain=!1;N.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return N};
_.F(Wj,_.z);_.v=Wj.prototype;
_.v.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(N){var b;return(N==null?void 0:(b=N.webComponentHint)==null?void 0:b.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.v.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var N;if((N=this.hostElement.parentElement)==null?0:N.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.v.detached=function(){this.updateTheaterDisablement()};
_.v.showPanel=function(){var N=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Dj.addJob(function(){N.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.v.maybeScrollToItemSection=function(N){var b=this,S,P=N==null?void 0:(S=N.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;P&&_.Dj.addJob(function(){var H;(H=b.sectionListRendererElement)==null||H.scrollToItemSection(P)},8)};
_.v.hidePanel=function(){var N=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Dj.addJob(function(){N.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.v.updatePanel=function(N,b,S,P){var H=this;if((N=N==null?void 0:N.engagementPanelSectionListRenderer)||P){if(N){P=N.header;var K=N.content,C=N.footer;(N=N.targetId)&&this.set("data.targetId",N);P&&this.set("data.header",P);K&&this.set("data.content",K);C&&this.set("data.footer",C)}else P&&(N=P.content,K=P.secondaryHeaderContent,C=P.targetId,P=P.loggingDirectives,C&&this.set("data.targetId",C),N&&this.set("data.content",N),P&&_.T("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
P),K&&(this.secondaryHeaderData=K));this.updateChildVisibilityProperties();if(b){var G;_.T("kevlar_update_panel_focus_scroll_killswitch")||(G={preventScroll:!0});this.focus(G)}_.W_(this,function(){_.bC(H.hostElement,"yt-refit");H.maybeScrollToItemSection(S)})}};
_.v.computeHeaderData=function(){var N,b=(0,_.Vm.unsafeClone)((N=this.data)==null?void 0:N.header);if(b){N=new _.WF(Object.keys(b)[0]);var S=_.t(b,N),P=_.t(this.secondaryHeaderData,N);P&&_.QN(b,N,Object.assign({},P,S))}return b};
_.v.getReloadContinuation=function(){var N,b,S,P=_.O(((N=this.data)==null?void 0:(b=N.content)==null?void 0:(S=b.sectionListRenderer)==null?void 0:S.continuations)||[]);for(N=P.next();!N.done;N=P.next())if(N=N.value,N.reloadContinuationData)return N.reloadContinuationData.continuation};
_.v.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var N;((N=this.data)==null?0:N.targetId)&&(N=this.contentElement.firstElementChild)&&N.setAttribute("panel-target-id",this.data.targetId)};
_.v.forwardPopupClosedToFlowRootRenderer=function(){var N=_.H4(this.hostElement).querySelector("ytd-flow-root-renderer");if(N&&this.hostElement.closest("ytd-popup-container"))N.onPopupClosed()};
_.v.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var N;if(!pBL.includes((N=this.theaterDisablementPanelIdentifier)!=null?N:""))if(N=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode,N=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||N,_.T("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||N){var b;this.visibility=(b=this.data)==null?void 0:b.visibility;var S;this.trackEngagementPanelVisibility&&((S=this.data)==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var P,H,K,C;this.contentEmpty=!!(((P=this.data)==null?0:(H=P.content)==null?0:H.structuredDescriptionContentRenderer)&&Object.keys((K=this.data)==null?void 0:(C=K.content)==null?void 0:
C.structuredDescriptionContentRenderer).length===0);(b=_.aN().resolve(_.Hn))&&b.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.v.isTheaterModeChanged=function(){_.T("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.v.isFullscreenChanged=function(){_.T("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.v.focus=function(N){if(this.header)this.header.focus(N);else{var b;(b=_.H4(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(N)}};
_.v.visibilityChanged=function(){if(!_.T("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var N=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=P||!this.lastVisibility,K,C,G,a=((K=this.data)==null?void 0:(C=K.identifier)==null?void 0:
C.tag)||((G=this.data)==null?void 0:G.panelIdentifier);if(N&&H){var R;((R=this.data)==null?0:R.onShowCommands)&&_.sR(this.hostElement,this.data.onShowCommands,this.hostElement);a&&_.h0().dispatch(_.HU({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:a}}))}else if(b&&S){var n;((n=this.data)==null?0:n.onHideCommands)&&_.sR(this.hostElement,this.data.onHideCommands,this.hostElement);a&&_.h0().dispatch(_.HU({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:a}}))}N&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*YCa++));_.T("kevlar_watch_focus_on_engagement_panels")&&N&&P&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.v.notifyVisibilityChanged=function(N){var b;_.PN(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,N,(b=this.data)==null?void 0:b.targetId]);if(_.T("autonav_pause_for_comments_ep")){var S;_.bC(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:N==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(S=this.data)==null?void 0:S.targetId})}};
_.v.updateTheaterDisablement=function(){if(!_.T("kevlar_watch_theater_disablement_killswitch")){var N=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&pBL.includes(N)&&!_.T("watch_next_grid_ignore_disallowed_panels")){var b=_.QC(_.h0().getState()),S=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";N!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():S?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier=
N),b&&_.St(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.v.clearTheaterDisablement=function(){_.St(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.v.updateChildVisibilityProperties=function(){this.hostElement||_.T("kevlar_panel_property_init_killswitch")||this._enableProperties();var N=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=N);var b,S=(b=this.headerElement)==null?void 0:b.firstElementChild;if(S&&!this.adHeaderImageLockupViewModel){b=N==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";S.collapsed=b;S=_.H4(S).querySelector("#visibility-button");if(!S)return;(S=S.firstElementChild)&&
S.polymerController.is==="ytd-toggle-button-renderer"&&S.polymerController.data.isToggled!==b&&S.polymerController.set("data.isToggled",b)}var P;if(b=(P=this.contentElement)==null?void 0:P.firstElementChild)if(N&&N!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var H;(H=b.markDirty)==null||H.call(b)}};
_.v.onYtChangeEngagementPanelVisibilityAction=function(N){var b=this,S,P=(S=this.data)==null?void 0:S.targetId,H,K,C;S=((H=this.data)==null?void 0:(K=H.identifier)==null?void 0:K.tag)||((C=this.data)==null?void 0:C.panelIdentifier);var G=_.t(N,_.Me9),a;N=P&&(G==null?void 0:G.targetId)===P||S&&(G==null?void 0:(a=G.panelIdentifier)==null?void 0:a.tag)===S;this.dialog&&N&&(G==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(P==="engagement-panel-comments-section"?_.St(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.St(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",S]));!_.T("kevlar_use_engagement_panel_management_component")&&N&&(P=G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!P?_.Dj.addJob(function(){b.visibility=G.visibility},2,this.hideDelayMs):this.visibility=G.visibility,G.visibility&&this.notifyVisibilityChanged(G.visibility))};
_.v.onYtScrollToEngagementPanelCommand=function(N){var b,S=(b=this.data)==null?void 0:b.targetId,P,H,K;b=((P=this.data)==null?void 0:(H=P.identifier)==null?void 0:H.tag)||((K=this.data)==null?void 0:K.panelIdentifier);N=_.t(N,_.U4E);var C;(S&&(N==null?void 0:N.targetId)===S||b&&(N==null?void 0:(C=N.panelIdentifier)==null?void 0:C.tag)===b)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.St(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.v.attachVEs=function(N){var b,S;(N==null?0:(b=N.content)==null?0:(S=b.productListRenderer)==null?0:S.trackingParams)&&_.dG().graftServerVe(N.content.productListRenderer.trackingParams);var P,H;(N==null?0:(P=N.content)==null?0:(H=P.transcriptRenderer)==null?0:H.trackingParams)&&_.dG().graftServerVe(N.content.transcriptRenderer.trackingParams)};
_.v.onYtUpdateEngagementPanelAction=function(N){var b,S=(b=this.data)==null?void 0:b.targetId;N=_.t(N,u_q);S&&(N==null?void 0:N.targetId)===S&&(this.updatePanel({engagementPanelSectionListRenderer:{header:N==null?void 0:N.header,content:N==null?void 0:N.content}},!1),this.attachVEs(N))};
_.v.onYtShowEngagementPanelScrimAction=function(N){var b,S=(b=this.data)==null?void 0:b.targetId;N=_.t(N,fuQ);S&&(N==null?void 0:N.engagementPanelTargetId)===S&&(this.scrimmed=!0)};
_.v.onYtHideEngagementPanelScrimAction=function(N){var b,S=(b=this.data)==null?void 0:b.targetId;N=_.t(N,tEL);S&&(N==null?void 0:N.engagementPanelTargetId)===S&&(this.scrimmed=!1)};
_.v.getIdentifier=function(){var N,b,S;return((N=this.data)==null?void 0:N.panelIdentifier)||((b=this.data)==null?void 0:(S=b.identifier)==null?void 0:S.tag)};
_.v.getSurface=function(){var N,b;return(N=this.data)==null?void 0:(b=N.identifier)==null?void 0:b.surface};
_.d0.Object.defineProperties(Wj.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var N=this.getIdentifier();return N==="engagement-panel-youchat"||N==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Wj.prototype.visibilityChanged=Wj.prototype.visibilityChanged;Wj.prototype.isFullscreenChanged=Wj.prototype.isFullscreenChanged;Wj.prototype.isTheaterModeChanged=Wj.prototype.isTheaterModeChanged;Wj.prototype.dataChanged=Wj.prototype.dataChanged;Wj.prototype.forwardPopupClosedToFlowRootRenderer=Wj.prototype.forwardPopupClosedToFlowRootRenderer;Wj.prototype.onYtRendererstamperFinished=Wj.prototype.onYtRendererstamperFinished;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Wj.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Wj.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Wj.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"data",void 0);
_.p([_.U({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.y("design:type",Object)],Wj.prototype,"headerData",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"secondaryHeaderData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"visibility",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"contentEmpty",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"scrimmed",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"dialog",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"dropdown",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"matchContentTheme",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"disableAutoFill",void 0);
_.p([_.U({reflectToAttribute:!0,value:_.T("optimal_reading_width_comments_ep")}),_.y("design:type",Boolean)],Wj.prototype,"optimalReadingWidthComments",void 0);_.p([_.U(),_.y("design:type",Number)],Wj.prototype,"hideDelayMs",void 0);_.p([_.U({selector:_.x9,reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.QC,reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"isTheaterMode",void 0);
_.p([_.U(),_.y("design:type",Number)],Wj.prototype,"showDelayMs",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.targetId"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wj.prototype,"targetId",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wj.prototype,"webSize",null);_.p([_.U(),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wj.prototype,"hideFooterBorder",null);
_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"isWatch",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"originalTheaterState",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"theaterDisablementPanelIdentifier",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"isWatchWhilePanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"shortsPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"liveChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Wj.prototype,"learningChatEngagementPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"liveChatReplyPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"enableAnchoredPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"disableBackdropFilter",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Wj.prototype,"isPersistentPanel",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"trackEngagementPanelVisibility",void 0);_.p([_.U(),_.y("design:type",Object)],Wj.prototype,"overscrollContain",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Wj.prototype,"isAiCompanionPanel",null);
_.p([_.dq("#header"),_.y("design:type",HTMLElement)],Wj.prototype,"headerElement",void 0);_.p([_.dq("#header > *"),_.y("design:type",HTMLElement)],Wj.prototype,"header",void 0);_.p([_.dq("ytd-section-list-renderer"),_.y("design:type",Object)],Wj.prototype,"sectionListRendererElement",void 0);_.p([_.dq("panel-ad-header-image-lockup-view-model"),_.y("design:type",HTMLElement)],Wj.prototype,"adHeaderImageLockupViewModel",void 0);
_.p([_.dq("#content"),_.y("design:type",HTMLElement)],Wj.prototype,"contentElement",void 0);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"onYtRendererstamperFinished",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.p([_.t_("data","isFullscreen","isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"dataChanged",null);_.p([_.W4("isTheaterMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"isTheaterModeChanged",null);_.p([_.W4("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"isFullscreenChanged",null);
_.p([_.W4("visibility"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wj.prototype,"visibilityChanged",null);_.p([_.Uj({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Wj);
_.X(Wj,"ytd-engagement-panel-section-list-renderer",function(){if(Cci!==void 0)return Cci;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Cci=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var yQo;var n4=function(){return _.z.apply(this,arguments)||this};
_.F(n4,_.z);n4.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
n4.prototype.activate=function(N){N.appendTo(this.player);N.getPlayerPromise().then(function(b){b.setMinimized(!0)});
this.active=!0};
n4.prototype.deactivate=function(){var N=this.player.firstElementChild;N.getPlayerPromise().then(function(b){b.setMinimized(!1)});
this.active=!1;return N};
n4.prototype.onScrollUpTap=function(){var N=_.aN().resolve(_.$9).getCurrentPage();N&&N.setScrollTop(0)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],n4.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],n4.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],n4.prototype,"active",void 0);
_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.y("design:type",Boolean)],n4.prototype,"darkLaunch",void 0);_.p([_.dq("#player"),_.y("design:type",HTMLDivElement)],n4.prototype,"player",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],n4);
_.X(n4,"ytd-miniplayer-bar-renderer",function(){if(yQo!==void 0)return yQo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yQo=N},{mode:1});var I$a;var dh=function(){return _.z.apply(this,arguments)||this};
_.F(dh,_.z);dh.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.aX(_.H4(this.hostElement).querySelector("#text"),_.Jvk(_.jXb,this.data.companionLegalText))};
dh.prototype.computeAutoScrollEnabled=function(N,b){return N&&!b};
dh.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
dh.prototype.onToggleTap=function(){this.expanded=!this.expanded};
dh.prototype.expandedChanged=dh.prototype.expandedChanged;dh.prototype.dataChanged=dh.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.p([_.L(t4w),_.y("design:type",Object)],dh.prototype,"ytdAutoScrollBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],dh.prototype,"expanded",void 0);
_.p([_.U({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.y("design:type",Boolean)],dh.prototype,"autoScrollEnabled",void 0);_.p([_.U(),_.y("design:type",String)],dh.prototype,"expanderIcon",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dh.prototype,"dataChanged",null);
_.p([_.W4("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dh.prototype,"expandedChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],dh);
_.X(dh,"ytd-companion-legal-text-renderer",function(){if(I$a!==void 0)return I$a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return I$a=N},{mode:1});var Dst;var mE=function(){var N=_.z.apply(this,arguments)||this;N.buttonUpdate=_.T("web_modern_buttons");N.kevlarWatchGrid=_.T("kevlar_watch_grid");N.centerAlignDescription=_.T("action_companion_center_align_description");N.truncateDomain=_.T("action_companion_truncate_domain");N.enableMonoStyle=_.T("enable_default_mono_cta_migration_web_client");return N};
_.F(mE,_.z);_.v=mE.prototype;_.v.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.v.getOnLayoutVisibleCallback=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.v.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",mE.JSC$21185_DEFAULT_AD_BADGE_RENDERER);var N=this.getOnLayoutVisibleCallback();N&&N()}};
_.v.getButtonRenderer=function(N){return N.actionButton&&_.t(N.actionButton,_.rU)?(delete _.t(N.actionButton,_.rU).navigationEndpoint,_.t(N.actionButton,_.rU)):{}};
_.v.onClick=function(N){var b=this;if((!_.T("web_modern_buttons")||!_.VC(_.V7(N),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){N=_.qE();var S=this.getLayoutId();N&&S&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(P){(new _.sU(P)).executeCommand(b.data.navigationEndpoint,S)}):_.T("kevlar_companion_resolve_command_killswitch")?_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.St(this.hostElement,"yt-companion-ad-clicked",["action-companion",S])}};
_.d0.Object.defineProperties(mE.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?0:(b=N.detailsLine)==null?0:(S=b.adRating)==null?0:S.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return((N=this.data)==null?0:(b=N.detailsLine)==null?0:(S=b.adRating)==null?0:(P=S.ratingIcon)==null?0:P.iconType)?_.C7(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return((N=this.data)==null?0:(b=N.detailsLine)==null?0:(S=b.texts)==null?0:(P=S[0])==null?0:P.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?0:(b=N.description)==null?0:b.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var N=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return N?N.indexOf("/default_banner")!==-1:!0}}});
mE.prototype.onClick=mE.prototype.onClick;mE.prototype.dataChanged=mE.prototype.dataChanged;mE.JSC$21185_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.cN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mE.prototype,"rendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mE.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mE.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mE.prototype,"kevlarWatchGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mE.prototype,"centerAlignDescription",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mE.prototype,"truncateDomain",void 0);
_.p([_.U({computed:"computeButtonOverride(buttonUpdate)"}),_.y("design:type",Object)],mE.prototype,"buttonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],mE.prototype,"enableMonoStyle",void 0);_.p([_.f("data.detailsLine.adRating.ratingText"),_.y("design:type",Object),_.y("design:paramtypes",[])],mE.prototype,"getRating",null);_.p([_.f("getRating"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mE.prototype,"computeRatingHidden",null);
_.p([_.f("data.detailsLine.adRating.ratingIcon.iconType"),_.y("design:type",Object),_.y("design:paramtypes",[])],mE.prototype,"iconType",null);_.p([_.f("data.detailsLine.texts.0.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],mE.prototype,"getDetailsLine",null);_.p([_.f("getDetailsLine"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mE.prototype,"computeDetailsLineHidden",null);
_.p([_.f("data.description.text"),_.y("design:type",Object),_.y("design:paramtypes",[])],mE.prototype,"getDescriptionText",null);_.p([_.f("getDescriptionText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mE.prototype,"computeDescriptionTextHidden",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],mE.prototype,"interactionLoggingClientData",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],mE.prototype,"hideBanner",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mE.prototype,"dataChanged",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],mE.prototype,"onClick",null);_.p([_.Uj({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],mE);
_.X(mE,"ytd-action-companion-ad-renderer",function(){if(Dst!==void 0)return Dst;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Dst=N},{mode:_.sZ("kevlar_poly_si_batch_j067")?1:2});var ViE;var g_i;var k2=function(){var N=_.z.apply(this,arguments)||this;N.buttonUpdate=_.T("web_modern_buttons");N.hideLegacyBanner=_.T("enable_dsa_one_click_ata_translators_infeed_elements");N.adInfoButtonStyle="mono";N.adInfoButtonType="text";N.noDotAdBadge=!0;return N};
_.F(k2,_.z);_.v=k2.prototype;_.v.getOnLayoutVisibleCallback=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.v.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var N=this.data.image.thumbnail.thumbnails[0];this.imageSrc=N.url?_.VK(N.url):void 0;this.imageWidth=N.width||0;this.imageHeight=N.height||0}this.data.clickthroughEndpoint&&_.t(this.data.clickthroughEndpoint,_.Hz)&&(N=_.t(this.data.clickthroughEndpoint,_.Hz).url,_.T("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
N||"":N?(N=_.VK(N),this.clickThroughUrl=_.YI(N)):this.clickThroughUrl=void 0);(N=this.getOnLayoutVisibleCallback())&&N()}};
_.v.onClick=function(N){_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(N)};
_.v.handleClick=function(){var N=this;this.data&&this.data.clickthroughEndpoint&&(_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(b){N.macroReplacementBehavior.sendServiceRequestAction([b])}),_.St(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.v.onLoad=function(){_.PN(this.hostElement,"yt-refit-popups-action")};
_.d0.Object.defineProperties(k2.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}}});
k2.prototype.onLoad=k2.prototype.onLoad;k2.prototype.onClick=k2.prototype.onClick;k2.prototype.dataChanged=k2.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k2.prototype,"rendererBehavior",void 0);_.p([_.L(ilO.YtMacroReplacementBehavior),_.y("design:type",Object)],k2.prototype,"macroReplacementBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k2.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],k2.prototype,"buttonUpdate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],k2.prototype,"hideLegacyBanner",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],k2.prototype,"adInfoButtonStyle",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],k2.prototype,"adInfoButtonType",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k2.prototype,"macros",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],k2.prototype,"interactionLoggingClientData",null);_.p([_.U(),_.y("design:type",String)],k2.prototype,"clickThroughUrl",void 0);_.p([_.U(),_.y("design:type",_.AS)],k2.prototype,"imageSrc",void 0);_.p([_.U(),_.y("design:type",Number)],k2.prototype,"imageWidth",void 0);_.p([_.U(),_.y("design:type",Number)],k2.prototype,"imageHeight",void 0);_.p([_.U(),_.y("design:type",Object)],k2.prototype,"noDotAdBadge",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k2.prototype,"dataChanged",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],k2.prototype,"onClick",null);_.p([_.RA("load"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k2.prototype,"onLoad",null);_.p([_.Uj({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],k2);
_.X(k2,"ytd-image-companion-renderer",function(){if(g_i!==void 0)return g_i;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return g_i=N},{mode:_.sZ("kevlar_poly_si_batch_j067")?1:2});var enO;var Th=function(){return _.z.apply(this,arguments)||this};
_.F(Th,_.z);_.v=Th.prototype;_.v.dataChanged=function(){this.set("data.adBadge",Th.JSC$21194_DEFAULT_AD_BADGE_RENDERER);if(this.data){var N=this.getOnLayoutVisibleCallback();N&&N()}};
_.v.getOnLayoutVisibleCallback=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.v.onCompanionClicked=function(N){this.data&&(N.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.St(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.v.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var N=_.qE(),b=this.getLayoutId(),S=this.data.clickToAdvSiteEndpoint;N&&b&&_.T("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(P){(new _.sU(P)).executeCommand(S,b)}):_.bC(this.hostElement,"yt-navigate",{endpoint:S})}};
_.v.sendTrackingPings=function(N){if(N&&N.length!==0&&N[0].loggingUrls&&(N=N[0].loggingUrls.map(this.getBaseUrl)))for(var b=0;b<N.length;b++)_.Pl(N[b])};
_.v.getBaseUrl=function(N){return N.baseUrl||""};
_.d0.Object.defineProperties(Th.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.hl("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}}});
Th.prototype.onCompanionClicked=Th.prototype.onCompanionClicked;Th.prototype.dataChanged=Th.prototype.dataChanged;Th.JSC$21194_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.cN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Th.prototype,"data",void 0);_.p([_.dq("#title"),_.y("design:type",HTMLElement)],Th.prototype,"shopTitle",void 0);
_.p([_.t_("data.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Th.prototype,"dataChanged",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Th.prototype,"interactionLoggingClientData",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Th.prototype,"onCompanionClicked",null);
_.p([_.Uj({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Th);
_.X(Th,"ytd-shopping-companion-renderer",function(){if(enO!==void 0)return enO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return enO=N},{mode:1});_.qu(_.A(function(N){var b=N.data;N=_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu});var S=_.z8(function(){return b().interaction},GMq);
_.VF(function(){var P,H;H=(H=_.hl("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(P=H)==null||P()},"Uj");
return _.c("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ob(function(P){_.PN(P.currentTarget,"yt-refit-popups-action")}),
el:_.VN(N,S),"aria-label":function(){var P,H;return(P=b().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.c("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(P){return _.c(_.eq,{data:P.data,
targetHeight:80,customCommandResolver:GMq})}})),_.c("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.c("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.c(_.kY,{data:function(){return b().adBadge}},{adBadgeViewModel:function(P){return _.c(_.Xl,{data:P.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.c("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:_.j$}))))},"Vj"),"banner-image-layout-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;N=_.nt({visibilityCallback:function(P){var H,K=(H=b().interaction)==null?void 0:H.onFirstVisible;P&&K&&_.AM(K)},
showOption:_.iu});var S=_.z8(function(){return b().interaction},rIo);
_.VF(function(){var P,H;H=(H=_.hl("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(P=H)==null||P()},"Wj");
return _.c("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.VN(N,S)},_.c("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.c(_.kY,{data:function(){return b().adImage}},{adImageViewModel:function(P){return _.c(_.eq,{data:P.data,
targetHeight:80,customCommandResolver:rIo})}})),_.c("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.c("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.c(_.kY,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(P){return _.c(xsi,{data:P.data,
customCommandResolver:rIo})}})),_.c(_.kY,{data:function(){return b().adButton}},{adButtonViewModel:function(P){return _.c(_.U$,{data:P.data,
customCommandResolver:rIo})}}),_.c("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.c(_.kY,{data:function(){return b().menu}},{buttonViewModel:_.j$}))))},"Xj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.kg}});var $s6={shoppingCompanionCarouselRenderer:"ytd-shopping-companion-renderer",imageCompanionAdRenderer:"ytd-image-companion-renderer",actionCompanionAdRenderer:"ytd-action-companion-ad-renderer",bannerImageLayoutViewModel:"banner-image-layout-view-model",topBannerImageTextIconButtonedLayoutViewModel:"top-banner-image-text-icon-buttoned-layout-view-model"},tW=function(){var N=_.z.apply(this,arguments)||this;N.updateCompanionDataJobId=0;N.contentVideoId=null;N.player=null;N.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return N};
_.F(tW,_.z);_.v=tW.prototype;_.v.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:$s6}}};
_.v.attached=function(){var N=this,b=_.qE();b&&b.getPlayerPromise().then(function(S){N.getCachedDataAndListen(S)})};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.v.updateRendererStamper=function(){var N={};if(this.data)for(var b in $s6)if(this.data[b]){N[b]=this.data[b];break}if(this.oneofRenderer!=void 0||Object.keys(N).length)this.oneofRenderer=N};
_.v.getCachedDataAndListen=function(N){var b=this.retrieveCachedCompanionData();b&&Object.keys(b).length&&this.receiveCompanionData(b);this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=N};
_.v.retrieveCachedCompanionData=function(){return _.Ps.yt&&_.Ps.yt.www&&_.Ps.yt.www.ads&&_.Ps.yt.www.ads.eventcache&&_.Ps.yt.www.ads.eventcache.getLastCompanionData?_.Ps.yt.www.ads.eventcache.getLastCompanionData():null};
_.v.receiveCompanionData=function(N){N&&Object.keys(N).length?(this.contentVideoId=N.contentVideoId,this.setCompanionData(N)):this.setCompanionData(N)};
_.v.setCompanionData=function(N){this.cancelPendingCompanionAdJobs();if(N){this.updateCompanionDataJobId=0;for(var b in $s6)$s6.hasOwnProperty(b)&&(this.data[b]=void 0);N.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",N.shoppingCompanionCarouselRenderer):N.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",N.imageCompanionAdRenderer):N.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",N.actionCompanionAdRenderer),_.PN(this.hostElement,
"yt-hide-unlimited-offer-module"),_.PN(this.hostElement,"yt-hide-tvfilm-offer-module")):N.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",N.bannerImageLayoutViewModel):N.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",N.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.v.dataChanged=function(){var N=this,b=_.qE();b?b.getPlayerPromise().then(function(S){N.contentVideoId&&S.getVideoUrl().includes("v="+N.contentVideoId)||(N.cancelPendingCompanionAdJobs(),N.updateRendererStamper())}):_.qB(Error("Kl"))};
_.v.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Dj.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.v.handleCompanionAdClicked=function(N,b){this.player.onAdUxClicked(N,b);this.player.pauseVideo()};
tW.prototype.dataChanged=tW.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],tW.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],tW.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tW.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],tW.prototype,"oneofRenderer",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tW.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],tW);
_.X(tW,"ytd-companion-slot-renderer",function(){if(ViE!==void 0)return ViE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ViE=N},{mode:_.sZ("kevlar_poly_si_batch_j067")?
1:2});var hnn;var Mg=function(){return _.z.apply(this,arguments)||this};
_.F(Mg,_.z);Mg.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Mg.prototype.dataChanged=Mg.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mg.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Mg.prototype,"companionSlotData",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mg.prototype,"dataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Mg);
_.X(Mg,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(hnn!==void 0)return hnn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return hnn=N},{mode:1});var qCE;var Fa=function(){var N=_.z.apply(this,arguments)||this;N.skinnyMode=!1;N.COMPACT_EVENT_COUNT=4;N.onShelfToggleButtonTap=function(){N.logTap(N.data);N.showingMore=!N.showingMore};
N.onShelfToggleButtonFocus=function(){N.showingMore||(N.logTap(N.data),N.showingMore=!0,_.W_(N,function(){var b=N.COMPACT_EVENT_COUNT-1,S;(S=_.H4(N.hostElement).querySelector("#event-"+b))==null||S.focus()}))};
return N};
_.F(Fa,_.z);_.v=Fa.prototype;_.v.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.v.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.v.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.aA(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.aA(this.infoTooltip,this.infoTooltip.hide))};
_.v.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.aA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.aA(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.aA(this.infoTooltip,this.infoTooltip.hide))};
_.v.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.v.onShowingMoreChanged=function(){var N;this.showingMoreChanged((N=this.showingMore)!=null?N:!1)};
_.v.showingMoreChanged=function(N){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,N?b.length:this.COMPACT_EVENT_COUNT).map(function(S){return S.ticketEventRenderer}));
b.slice(0,N?b.length:this.COMPACT_EVENT_COUNT).forEach(function(S){var P=_.Qh();S=S.ticketEventRenderer.trackingParams;_.uZ()&&P&&S&&(S=_.FA(S),P&&_.ER(P,S))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.v.computeAriaLabel=function(N){return N.subtitle1+", "+N.subtitle2};
_.v.logTap=function(N){_.uZ()&&this.ytRendererBehavior.logExplicitClick(N)};
_.v.isKeyboardAction=function(N){return this.get("detail.x",N)===0&&this.get("detail.y",N)===0};
_.v.onFirstEventTap=function(N){N.target&&this.handleTap(N.target,this.firstEvent,this.isKeyboardAction(N))};
_.v.onTicketLinkTap=function(N){N.target&&this.handleTap(N.target,N.model.item,this.isKeyboardAction(N))};
_.v.handleTap=function(N,b,S){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(_.t(b.buttonCommand,_.VD),{properties:{source:S?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=N,_.sR(this.hostElement,[b.buttonCommand],this.hostElement);else{var P;if((P=_.t(b.buttonCommand,_.Hz))==null?0:P.url)this.logTap(b),_.Kg(window,_.t(b.buttonCommand,_.Hz).url)}};
Fa.prototype.onShowingMoreChanged=Fa.prototype.onShowingMoreChanged;Fa.prototype.dataChanged=Fa.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fa.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Fa.prototype,"firstEvent",void 0);_.p([_.U(),_.y("design:type",Object)],Fa.prototype,"restEvents",void 0);_.p([_.U(),_.y("design:type",String)],Fa.prototype,"imageUrl",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fa.prototype,"showingMore",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fa.prototype,"canShowMore",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Fa.prototype,"skinnyMode",void 0);_.p([_.U(),_.y("design:type",HTMLElement)],Fa.prototype,"popupPositionTarget",void 0);_.p([_.dq("#banner-info-tooltip"),_.y("design:type",Object)],Fa.prototype,"infoTooltip",void 0);
_.p([_.dq("#info-container"),_.y("design:type",HTMLElement)],Fa.prototype,"infoContainer",void 0);_.p([_.dq("#shelf-toggler"),_.y("design:type",HTMLElement)],Fa.prototype,"shelfToggleButton",void 0);_.p([_.dq("#separator"),_.y("design:type",HTMLDivElement)],Fa.prototype,"separator",void 0);_.p([_.U(),_.y("design:type",String)],Fa.prototype,"shelfTogglerLabelText",void 0);_.p([_.U(),_.y("design:type",String)],Fa.prototype,"shelfTogglerIcon",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fa.prototype,"dataChanged",null);_.p([_.t_("showingMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fa.prototype,"onShowingMoreChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Fa);
_.X(Fa,"ytd-ticket-shelf-renderer",function(){if(qCE!==void 0)return qCE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qCE=N},{mode:1});var wBL={};wBL.YtVisibilityRootBehavior=[_.KPd.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Wv(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Vg("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var N=_.Vg("INNERTUBE_CLIENT_NAME")!=="WEB";_.T("kevlar_use_vimio_behavior")&&N&&_.ujE()}}];var Bj={};Bj.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(N){N.detail.contextProvider=this;N.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
wBL.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Y9();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(N){var b=this;this.pageCount+=1;_.T("kevlar_use_vimio_behavior")&&(_.Vg("INNERTUBE_CLIENT_NAME")==="WEB"?_.Dj.addJob(function(){b.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(N)},
loadPage_:function(N){this.data=N},
ytPageBehaviorActiveObserver_:function(N){var b=this;_.T("kevlar_use_vimio_behavior")&&(N?_.Vg("INNERTUBE_CLIENT_NAME")==="WEB"?_.Dj.addJob(function(){b.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(N){if(!this.setScrollTopJobId_){var b=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){b.setScrollTopJobId_=0;var S=_.aN().resolve(_.cq(_.mh));S&&_.u8(S);this.getPageScrollingElement().scrollTop=N}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.jO(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var NsE;var bpw;var STE=function(){return _.z.apply(this,arguments)||this};
_.F(STE,_.z);_.p([_.U(),_.y("design:type",Object)],STE.prototype,"data",void 0);_.p([_.J_({is:"yt-alert-renderer",disableElementRegistration:!0})],STE);
_.X(STE,"yt-alert-renderer",function(){if(bpw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;NsE===void 0&&(NsE=document.createElement("template"));var P=NsE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);bpw=N}N=bpw;return N},{mode:2});var GAJ=function(N){_.E5.call(this);this.JSC$21227_watchApi=N;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Pht(this);HpO(this);sxE(this);KSo(this);v4L(this);Op_(this);Cho(this)};
_.F(GAJ,_.E5);var sxE=function(N){var b=function(){_.T("kevlar_is_pupi_enabled")||ll(N)};
N.JSC$21227_watchApi.getRoot().addEventListener("yt-player-updated",b);N.addOnDisposeCallback(function(){N.JSC$21227_watchApi.getRoot().removeEventListener("yt-player-updated",b)})},v4L=function(N){if(_.T("kevlar_endscreen_auto_theater_mode")){var b=N.JSC$21227_watchApi.subscribeToActiveChanged(function(){rKE(N)},!1);
N.addOnDisposeCallback(b)}},Pht=function(N){var b,S,P,H,K;
_.r(function(C){if(C.nextAddress==1)return C.yield(N.JSC$21227_watchApi.playerApi,2);b=C.yieldResult;S=function(G){G=!!G;cKw(N)&&(G=G?2:1,_.ut.getInstance().setState(G,!0,!1))};
P=function(G){G&&Wna(_.h0().getState())&&(_.St(N.JSC$21227_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),N.temporaryTheaterMode=!0)};
H=function(G){_.T("kevlar_player_update_autonav_on_new_data")&&G.type==="newdata"&&(_.T("kevlar_is_pupi_enabled")||ll(N))};
K=function(G){N.onPlayerStateChange(G)};
_.T("kevlar_endscreen_auto_theater_mode")&&b.addEventListener("onAutonavCancelled",P);b.addEventListener("onAutonavChangeRequest",S);b.addEventListener("onVideoDataChange",H);b.addEventListener("onStateChange",K);N.addOnDisposeCallback(function(){b.removeEventListener("onAutonavChangeRequest",S);b.removeEventListener("onVideoDataChange",H);b.removeEventListener("onStateChange",K);_.T("kevlar_endscreen_auto_theater_mode")&&b.removeEventListener("onAutonavCancelled",P)});
_.Zd(C)})},HpO=function(N){N.JSC$21227_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){N.autonavCancelledBySignal=!0;
_.T("kevlar_is_pupi_enabled")||ll(N)});
N.JSC$21227_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(b,S,P){S&&ll(N,P)});
N.JSC$21227_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){cKw(N)&&_.ut.getInstance().setState(2,!0,!0)});
N.JSC$21227_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){cKw(N)&&_.ut.getInstance().setState(1,!0,!0)});
N.addOnDisposeCallback(function(){N.JSC$21227_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");N.JSC$21227_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");N.JSC$21227_watchApi.unregisterActionHandler("yt-enable-autoplay-command");N.JSC$21227_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},KSo=function(N){var b=N.JSC$21227_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Cho(N)}),S=N.JSC$21227_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Op_(N)});
N.addOnDisposeCallback(function(){N.JSC$21227_watchApi.unsubscribeByKey(b);N.JSC$21227_watchApi.unsubscribeByKey(S)})},Cho=function(N){N.autonavCancelledBySignal=!1;
_.T("kevlar_is_pupi_enabled")||ll(N)},Op_=function(N){var b=N.JSC$21227_watchApi.getWatchNextResponse(),S,P;
var H=(b=(P=_.t(b==null?void 0:(H=b.playerOverlays)==null?void 0:(S=H.playerOverlayRenderer)==null?void 0:S.autonavToggle,_.LT4))==null?void 0:P.enabled)?2:1;_.T("kevlar_is_pupi_enabled")?_.ut.getInstance().setState(H,!1,!1):ll(N);_.T("web_persist_server_autonav_state_on_client")&&typeof b==="boolean"&&_.tDE(H===2)},cKw=function(N){if(N.autonavCancelledBySignal)return!1;
var b,S,P,H;return!!((b=N.JSC$21227_watchApi.getWatchNextResponse())==null?0:(S=b.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:(H=P.autoplay)==null?0:H.autoplay)};
GAJ.prototype.onPlayerStateChange=function(N){if(N===0){N=!_.ut.getInstance().isAutoplaySetExplicitly();var b=this.JSC$21227_watchApi.getWatchNextResponse(),S,P,H,K;b=_.t(b==null?void 0:(S=b.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(H=P.autoplay)==null?void 0:(K=H.autoplay)==null?void 0:K.autoplayExplicitChoiceDialogRenderer,_.DZb);cKw(this)&&N&&b&&_.rG.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:b},popupType:"DIALOG"}})}else rKE(this)};
var rKE=function(N){N.temporaryTheaterMode&&(N.temporaryTheaterMode=!1,_.St(N.JSC$21227_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},ll=function(N,b){b=b===void 0?!1:b;
var S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21227_watchApi.playerApi,2);S=P.yieldResult;cKw(N)?S.setAutonavState(_.ut.getInstance().getState(),b):S.setAutonavState(1,b);_.Zd(P)})};var a0a={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};var WS6=function(N){_.E5.call(this);var b=this;this.JSC$21232_watchApi=N;var S=this.JSC$21232_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){R_w(b)});
this.addOnDisposeCallback(function(){b.JSC$21232_watchApi.unsubscribeByKey(S)});
R_w(this)};
_.F(WS6,_.E5);var R_w=function(N){var b=N.JSC$21232_watchApi.getPlayerResponse(),S=N.JSC$21232_watchApi.getWatchNextResponse();if(!_.l5p(b==null?void 0:b.playabilityStatus,S==null?void 0:S.playerOverlays)){var P;var H=b==null?void 0:(P=b.playabilityStatus)==null?void 0:P.errorScreen}N.JSC$21232_watchApi.provideRenderingData("ERROR_SCREEN",H)};var n4q=_.A(function(N){return _.c("yt-player-grid-renderer",{class:_.KU("ytPlayerGridRendererHost",N.className)},_.c(_.kY,{data:N.data},{lockupViewModel:function(b){return _.c(_.Y3,{data:b.data,useOverlayStyling:!0})}}))},"Yj");var dKE=_.A(function(N){var b=N.data;N=_.T("web_watch_video_details_hide_subtitle");var S=_.T("web_watch_video_details_single_line_title"),P=_.Ob(function(){var G=b().onTap;G&&_.aN().resolve(_.Wq).resolveCommand(G)}),H={},K={},C={};
return _.c("yt-player-overlay-video-details-renderer",{class:_.KU("ytPlayerOverlayVideoDetailsRendererHost",(H.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.T("web_watch_video_details_transparent_background"),H)),"on:click":P,role:"button"},_.c("h2",{class:_.KU("ytPlayerOverlayVideoDetailsRendererTitle",(K.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return S},K))},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:_.KU("ytPlayerOverlayVideoDetailsRendererSubtitle",
(C.ytPlayerOverlayVideoDetailsRendererHideSubtitle=N,C))},_.c(_.mD,{text:function(){return b().subtitle}})))},"Zj");var L4={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},mKw=_.A(function(N){var b=N.data;var S=_.nU(_.x9),P=_.T("web_watch_action_bar_resize_buttons"),H=_.T("web_watch_video_action_dsdvb"),K=_.T("delhi_modern_web_player_icons")&&!_.T("enable_web_delhi_icons");N=_.T("delhi_modern_web_player_disable_frosted_glass");var C=_.T("delhi_modern_web_player_compact_video_actions_controls"),
G=_.T("web_player_quick_action_buttons_icon_only"),a=function(){var n=P&&!S(),d={};C?d.size="S":n&&(d.size="M");G&&(d.iconPosition="icon-only");if(Object.keys(d).length!==0)return d},R={};
return _.c("yt-player-quick-action-buttons",{class:_.KU("ytPlayerQuickActionButtonsHost",(R.ytPlayerQuickActionButtonsHostCompactControls=function(){return!S()||C},R.ytPlayerQuickActionButtonsHostDisableBackdropFilter=N,R))},_.c(_.zj,{each:function(){var n=b();
if(K){n=JSON.parse(JSON.stringify(n));for(var d=_.O(n),m=d.next();!m.done;m=d.next()){var k=m.value,M=void 0;m=_.t((M=_.t(k,_.pS))==null?void 0:M.toggleButtonViewModel,_.dU);var l=void 0;M=_.t((l=_.t(k,_.YE))==null?void 0:l.toggleButtonViewModel,_.dU);l=_.t(k,_.WC);k=_.t(k,_.dU);if(m)M=_.t(m.defaultButtonViewModel,_.WC),m=_.t(m.toggledButtonViewModel,_.WC),M&&M.iconName&&(M.iconName=L4[M.iconName]),m&&m.iconName&&(m.iconName=L4[m.iconName]);else if(M)m=_.t(M.defaultButtonViewModel,_.WC),M=_.t(M.toggledButtonViewModel,
_.WC),m&&m.iconName&&(m.iconName=L4[m.iconName]),M&&M.iconName&&(M.iconName=L4[M.iconName]);else if(l)l.iconName&&(l.iconName=L4[l.iconName]);else if(k){m=_.t(k.defaultButtonViewModel,_.WC);M=_.t(k.toggledButtonViewModel,_.WC);k=void 0;if((k=m)==null?0:k.iconName)m.iconName=L4[m.iconName];m=void 0;if((m=M)==null?0:m.iconName)M.iconName=L4[M.iconName]}}}H&&(n=cIt(n));return n}},function(n){return _.c(_.kY,{data:function(){return n}},{buttonViewModel:function(d){return _.c(_.j$,{data:d.data,
buttonOverrides:a})},
likeButtonViewModel:function(d){return _.c(_.aD,{data:d.data,buttonShapeOverrideables:a})},
dislikeButtonViewModel:function(d){return _.c(_.cn,{data:d.data,buttonShapeOverrideables:a})},
toggleButtonViewModel:function(d){return _.c(_.Hc,{data:d.data,buttonShapeOverrides:a})}})}))},"$j");var Tsq=function(N){_.E5.call(this);var b=this;this.JSC$21240_watchApi=N;N=_.O(_.QF({},void 0,"OB6c5e"));this.quickActionsViewModel=N.next().value;this.setQuickActionsViewModel=N.next().value;N=_.O(_.QF({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=N.next().value;this.setPlayerOverlayVideoDetailsRenderer=N.next().value;N=_.O(_.QF([],void 0,"A7tRk"));this.lockupViewModels=N.next().value;this.setLockupViewModels=N.next().value;var S=this.JSC$21240_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){kAE(b)});
this.addOnDisposeCallback(function(){b.JSC$21240_watchApi.unsubscribeByKey(S)});
kAE(this)};
_.F(Tsq,_.E5);
var kAE=function(N){var b,S,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J;_.r(function(Z){if(Z.nextAddress==1)return Z.yield(N.JSC$21240_watchApi.playerApi,2);b=Z.yieldResult;S=N.JSC$21240_watchApi.getWatchNextResponse();K=(P=S)==null?void 0:(H=P.playerOverlays)==null?void 0:H.playerOverlayRenderer;G=_.t((C=K)==null?void 0:C.fullscreenQuickActionsBar,_.LDk);(R=(a=N).setQuickActionsViewModel)==null||R.call(a,G||{});G&&tuo(N,b);m=(n=K)==null?void 0:(d=n.videoDetails)==null?void 0:d.playerOverlayVideoDetailsRenderer;(M=
(k=N).setPlayerOverlayVideoDetailsRenderer)==null||M.call(k,m||{});m&&Mu6(N,b);if(_.T("web_player_use_external_grid_component")){var D=[],Y,V,g,e,se=S==null?void 0:(Y=S.contents)==null?void 0:(V=Y.twoColumnWatchNextResults)==null?void 0:(g=V.secondaryResults)==null?void 0:(e=g.secondaryResults)==null?void 0:e.results;if(se)for(Y=_.O(se),V=Y.next();!V.done;V=Y.next())if(V=V.value,V.lockupViewModel)D.push(V);else if(g=void 0,(g=V.itemSectionRenderer)==null?0:g.contents)for(V=_.O(V.itemSectionRenderer.contents),
g=V.next();!g.done;g=V.next())g=g.value,g.lockupViewModel&&D.push(g);l=D;(J=(u=N).setLockupViewModels)==null||J.call(u,l||[]);FSQ(N,b)}_.Zd(Z)})},tuo=function(N,b){if(!N.quickActionButtonsContainer)if(b.setFullscreenQuickActions){N.quickActionButtonsContainer=document.createElement("div");
b.setFullscreenQuickActions(N.quickActionButtonsContainer);var S=function(){return N.quickActionsViewModel().quickActionButtons||[]},P=_.E2(N.quickActionButtonsContainer,function(){return _.c(mKw,{data:S})},"ak");
N.addOnDisposeCallback(function(){b.setFullscreenQuickActions(void 0);P()})}else _.$h(new _.jU("setFullscreenQuickActions not defined",{playerApi:Object.keys(b),
isReady:b.isReady(),appState:b.getAppState()}))},Mu6=function(N,b){if(!N.playerOverlayVideoDetailsRendererContainer)if(b.setPlayerOverlayVideoDetailsRenderer){N.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
b.setPlayerOverlayVideoDetailsRenderer(N.playerOverlayVideoDetailsRendererContainer);var S=_.E2(N.playerOverlayVideoDetailsRendererContainer,function(){return _.c(dKE,{data:N.playerOverlayVideoDetailsRenderer})},"bk");
N.addOnDisposeCallback(function(){b.setPlayerOverlayVideoDetailsRenderer(void 0);S()})}else _.$h(new _.jU("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(b),
isReady:b.isReady(),appState:b.getAppState()}))},FSQ=function(N,b){if(!N.gridRendererContainer)if(b.setFullscreenGrid){N.gridRendererContainer=document.createElement("div");
b.setFullscreenGrid(N.gridRendererContainer);var S=_.E2(N.gridRendererContainer,function(){return _.c(n4q,{data:N.lockupViewModels})},"ck");
N.addOnDisposeCallback(function(){b.setFullscreenGrid(void 0);S()})}else _.$h(new _.jU("setFullscreenGrid not defined",{playerApi:Object.keys(b),
isReady:b.isReady(),appState:b.getAppState()}))};var f4=function(N){_.E5.call(this);var b=this;this.JSC$21246_watchApi=N;this.JSC$21246_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;N=_.hT(_.h0(),_.x9,function(S){b.onFullscreenChanged(S)});
this.addOnDisposeCallback(N);N=_.hT(_.h0(),s6,function(S){b.onWatchScroll(S)});
this.addOnDisposeCallback(N);_.T("kevlar_watch_while_v2")&&(N=_.hT(_.h0(),_.op,function(S){Bsq(b,S)}),this.addOnDisposeCallback(N));
l0i(this);LSo(this);f0w();this.onWatchScroll(s6(_.h0().getState()));_.g8("START_IN_FULL_WINDOW_MODE")&&this.JSC$21246_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.F(f4,_.E5);var l0i=function(N){N.JSC$21246_watchApi.registerActionHandler("yt-fullscreen-change-action",function(b){var S=N.JSC$21246_watchApi.isActive();b&&!S||_.h0().dispatch(_.HU({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!b}}))});
N.addOnDisposeCallback(function(){N.JSC$21246_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},LSo=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21246_watchApi.playerApi,2);b=P.yieldResult;S=function(){N.onFullerscreenEduClicked()};
b.addEventListener("onFullerscreenEduClicked",S);N.addOnDisposeCallback(function(){b.removeEventListener("onFullerscreenEduClicked",S)});
_.Zd(P)})};
f4.prototype.onFullscreenChanged=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return b.isFullscreen=!!_.hw(),P.yield(b.JSC$21246_watchApi.playerApi,2);S=P.yieldResult;b.JSC$21246_miniplayerActive||S.setFauxFullscreen(b.isFullscreen);if(N&&(b.JSC$21246_watchApi.focusOnPlayer(),!b.fullerscreenEduButtonShownThisPlayback)){b.fullerscreenEduButtonShownThisPlayback=!0;var H=_.l1("yt-fullerscreen-edu-button-shown-count")||0;_.Bd("yt-fullerscreen-edu-button-shown-count",H+1,31536E3);
b.updateFullerscreenEduButtonSubtleModeState()}_.Zd(P)})};
var Bsq=function(N,b){var S;_.r(function(P){if(P.nextAddress==1)return N.JSC$21246_miniplayerActive=b,P.yield(N.JSC$21246_watchApi.playerApi,2);S=P.yieldResult;S.setFauxFullscreen(!N.JSC$21246_miniplayerActive&&N.isFullscreen);_.Zd(P)})};
f4.prototype.onWatchScroll=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return _.T("external_fullscreen_with_edu")?H.yield(b.JSC$21246_watchApi.playerApi,2):H.return();S=H.yieldResult;P=N<=0;b.shouldShowFullerscreenEdu!==P&&(b.shouldShowFullerscreenEdu=P,S.updateFullerscreenEduButtonVisibility(!b.shouldShowFullerscreenEdu));_.Zd(H)})};
f4.prototype.onFullerscreenEduClicked=function(){this.JSC$21246_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var N=_.l1("yt-fullerscreen-edu-button-click-count")||0;_.Bd("yt-fullerscreen-edu-button-click-count",N+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
f4.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var N=this,b,S,P,H,K,C;return _.r(function(G){if(G.nextAddress==1)return b=_.l1("yt-fullerscreen-edu-button-click-count")||0,S=_.l1("yt-fullerscreen-edu-button-shown-count")||0,P=_.d7("external_fullscreen_button_click_threshold"),H=_.d7("external_fullscreen_button_shown_threshold"),K=b>=P||S>=H,G.yield(N.JSC$21246_watchApi.playerApi,2);C=G.yieldResult;C.updateFullerscreenEduButtonSubtleModeState(K);_.Zd(G)})};
f4.prototype.disposeInternal=function(){_.E5.prototype.disposeInternal.call(this);var N=_.hw();_.T("kevlar_exit_fullscreen_leaving_watch")&&N&&_.qy(N)};
var f0w=function(){if(_.T("web_watch_add_viewport_meta_tag")){var N=document.querySelector("meta[name=viewport]"),b=document.head;b&&!N&&(N=document.createElement("meta"),N.name="viewport",N.content="width=device-width, initial-scale=1.0, viewport-fit=cover",b.appendChild(N))}};var Qxw=function(N){_.E5.call(this);var b=this;this.JSC$21249_watchApi=N;this.jobId=0;this.pendingRequestId=void 0;var S=this.JSC$21249_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uPE(b)});
this.addOnDisposeCallback(function(){b.JSC$21249_watchApi.unsubscribeByKey(S)});
uPE(this)};
_.F(Qxw,_.E5);var xKo=function(N){_.Dj.cancelJob(N.jobId);N.pendingRequestId=void 0},uPE=function(N){xKo(N);
var b=aWE(N.JSC$21249_watchApi.getWatchNextResponse());if(b){var S=250,P,H=(P=_.t(b,_.lik))==null?void 0:P.initialDelayMs;_.T("web_watch_updated_metadata_server_initial_delay")&&H&&(S=H);N.jobId=_.Dj.addLowPriorityJob(function(){return N.fetchUpdatedMetadata(b)},S)}};
Qxw.prototype.fetchUpdatedMetadata=function(N,b){var S=this,P,H,K,C,G,a,R,n,d,m,k,M,l,u,J;return _.r(function(Z){switch(Z.nextAddress){case 1:b&&(P={continuation:b});if(!_.T("web_get_updated_metadata_fantasy_panel_continuation_params")){Z.jumpTo(2);break}H=_.aN().resolve(_.Hn);K="PAsports_fantasy";return Z.yield(H.isVisible(K,!0),3);case 3:Z.yieldResult&&(R=(G=(C=H).getUpdatePanelContinuationData)==null?void 0:(a=G.call(C,K))==null?void 0:a.updatePanelContinuationRequest)&&(P||(P={}),P.clientParams=
{panelContinuationParams:{panelContinuation:R}});case 2:n=_.aN().resolve(_.Mn);if(!n)return _.ge(Error("Ll")),Z.return();d={};S.pendingRequestId=d;return Z.yield(_.pU(n,N,P),4);case 4:m=Z.yieldResult;if(d!==S.pendingRequestId)return Z.return();l=(k=m)==null?void 0:(M=k.continuation)==null?void 0:M.timedContinuationData;((u=l)==null?0:u.continuation)&&((J=l)==null?0:J.timeoutMs)&&(S.jobId=_.Dj.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(N,l.continuation)},l.timeoutMs));
_.Zd(Z)}})};
Qxw.prototype.disposeInternal=function(){_.E5.prototype.disposeInternal.call(this);xKo(this)};var o4J=_.A(function(N){var b=_.Ob(function(){var P=N.data().videoId;if(N.active())P=_.N6(P),_.aN().resolve(_.Wq).resolveCommand(P);else{var H=N.playerApi(),K=H.getAvailableAudioTracks(),C,G,a=(C=N.sourceVideoConfig().audioTracks)==null?void 0:(G=C.find(function(R){return R.isDefaultForSource}))==null?void 0:G.id;
if(K=K.find(function(R){return R.getLanguageInfo().getId()===a}))H.setAudioTrack(K,!0),H.setCompositeParam({activeVideoId:P}),N.setActiveSourceId(P)}}),S={};
return _.c("ytw-composite-source-video-overlay",{class:_.KU("ytwCompositeSourceVideoOverlayHost",(S.ytwCompositeSourceVideoOverlayActive=N.active,S.ytwCompositeSourceVideoOverlayInteracting=N.interacting,S)),style:_.r5({left:function(){var P;return((P=N.data().topLeftCornerX)!=null?P:0)*100+"%"},
top:function(){var P;return((P=N.data().topLeftCornerY)!=null?P:0)*100+"%"},
width:function(){var P;return((P=N.data().width)!=null?P:0)*100+"%"},
height:function(){var P;return((P=N.data().height)!=null?P:0)*100+"%"}}),
"on:click":b},_.c("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"dk");var ipE=_.A(function(N){var b=_.O(_.qI(function(){var C,G=(C=N.data().sources)==null?void 0:C.find(function(a){return a.isActive});
if(G)return G.videoId})),S=b.next().value,P=b.next().value;
b=_.O(_.QF(!1,void 0,"rmRJ8d"));var H=b.next().value,K=b.next().value;return _.c("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ob(function(){K(!0)}),
"on:mouseout":_.Ob(function(){K(!1)})},_.c(_.W,{cond:function(){return N.data().sources},
then:function(C){return _.c(_.zj,{each:C},function(G){return _.c(o4J,{data:G,active:function(){return G.videoId===S()},
setActiveSourceId:P,interacting:H,playerApi:N.playerApi,sourceVideoConfig:function(){return RS6(N.compositeVideoConfig(),G.videoId)}})})}}))},"ek");var Zpq=function(N){_.E5.call(this);this.JSC$21264_watchApi=N;N=_.O(_.QF({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=N.next().value;this.setCompositeVideoOverlayRenderer=N.next().value;N=_.O(_.QF({},void 0,"OlaJpc"));this.compositeVideoConfig=N.next().value;this.setCompositeVideoConfig=N.next().value;JKt(this);UKL(this)};
_.F(Zpq,_.E5);var JKt=function(N){var b=N.JSC$21264_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){UKL(N)});
N.addOnDisposeCallback(function(){N.JSC$21264_watchApi.unsubscribeByKey(b)})},jxJ=function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21264_watchApi.playerApi,2);b=S.yieldResult;b.setCompositeVideoOverlayRendererComponent(N.container);_.Zd(S)})},z_q=function(N){var b;
return _.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21264_watchApi.playerApi,2);b=S.yieldResult;b.setCompositeVideoOverlayRendererComponent(void 0);_.Zd(S)})},AKE=function(N){var b,S;
return _.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21264_watchApi.playerApi,2);b=P.yieldResult;N.container=document.createElement("div");S=_.E2(N.container,function(){return _.c(ipE,{data:N.compositeVideoOverlayRenderer,compositeVideoConfig:N.compositeVideoConfig,playerApi:b})},"fk");
N.addOnDisposeCallback(S);_.Zd(P)})},UKL=function(N){var b,S,P,H,K,C,G,a;
_.r(function(R){return R.nextAddress==1?(b=N.JSC$21264_watchApi.getPlayerResponse(),K=_.t((S=b)==null?void 0:(P=S.overlay)==null?void 0:(H=P.playerControlsOverlayRenderer)==null?void 0:H.compositeVideoOverlay,L7O),a=(C=b)==null?void 0:(G=C.playerConfig)==null?void 0:G.compositeVideoConfig,K&&N.setCompositeVideoOverlayRenderer(K),a&&N.setCompositeVideoConfig(a),K&&a?N.container?R.jumpTo(6):R.yield(AKE(N),6):X9n(N)?R.yield(z_q(N),0):R.jumpTo(0)):X9n(N)?R.jumpTo(0):R.yield(jxJ(N),0)})},X9n=function(N){var b;
return!((b=N.container)==null||!b.parentElement)};
Zpq.prototype.disposeInternal=function(){X9n(this)&&z_q(this);_.E5.prototype.disposeInternal.call(this)};var I0n=function(N){_.E5.call(this);var b=this;this.JSC$21270_watchApi=N;var S=this.JSC$21270_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var P=b.JSC$21270_watchApi.getPlayerResponse();if(P){var H,K;if(P=_.t((H=P.endscreen)==null?void 0:(K=H.endscreenRenderer)==null?void 0:K.hideButton,_.dU)){var C;(C=b.setEndscreenHideButton)==null||C.call(b,P);E4E(b)}}});
this.addOnDisposeCallback(function(){b.JSC$21270_watchApi.unsubscribeByKey(S)});
N=_.O(_.QF({},void 0,"ER3tqb"));this.endscreenHideButton=N.next().value;this.setEndscreenHideButton=N.next().value;p9L(this);YTn(this);yK6(this)};
_.F(I0n,_.E5);var E4E=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return N.creatorEndscreenHideButtonContainer?P.return():P.yield(N.JSC$21270_watchApi.playerApi,2);b=P.yieldResult;N.creatorEndscreenHideButtonContainer=document.createElement("div");_.OB(N.creatorEndscreenHideButtonContainer,!1);b.setCreatorEndscreenHideButton(N.creatorEndscreenHideButtonContainer);S=_.E2(N.creatorEndscreenHideButtonContainer,function(){return _.c(_.Hc,{data:N.endscreenHideButton,useOutlinedIcon:!0})},"gk");
N.addOnDisposeCallback(function(){S();var H;(H=b)==null||H.setCreatorEndscreenHideButton(void 0)});
_.Zd(P)})},p9L=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21270_watchApi.playerApi,2);b=P.yieldResult;S=function(){N.creatorEndscreenHideButtonContainer&&_.OB(N.creatorEndscreenHideButtonContainer,!0)};
b.addEventListener("endscreenelementshown",S);N.addOnDisposeCallback(function(){var H;(H=b)==null||H.removeEventListener("endscreenelementshown",S)});
_.Zd(P)})},YTn=function(N){var b=function(){N.creatorEndscreenHideButtonContainer&&_.OB(N.creatorEndscreenHideButtonContainer,!1)},S=N.JSC$21270_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",b),P=N.JSC$21270_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",b);
N.addOnDisposeCallback(function(){N.JSC$21270_watchApi.unsubscribeByKey(S);N.JSC$21270_watchApi.unsubscribeByKey(P)})},yK6=function(N){N.JSC$21270_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(b){var S=_.t(b,WM5);
N.JSC$21270_watchApi.playerApi.then(function(P){P==null||P.setCreatorEndscreenVisibility(!!S.hide)})});
N.addOnDisposeCallback(function(){N.JSC$21270_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var VuE=function(N){_.E5.call(this);this.JSC$21276_watchApi=N;DKt(this)};
_.F(VuE,_.E5);var DKt=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21276_watchApi.playerApi,2);b=P.yieldResult;S=function(H){_.h0().dispatch(_.HU({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:H}}))};
b.addEventListener("onRetroModeChanged",S);N.addOnDisposeCallback(function(){b.removeEventListener("onRetroModeChanged",S)});
_.Zd(P)})};var M8a=0,Nl=0,BOE=0;var g4t=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),ul=function(N){_.E5.call(this);this.JSC$21293_watchApi=N;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;e_a(this)};
_.F(ul,_.E5);
var e_a=function(N){var b,S,P;_.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$21293_watchApi.playerApi,2);b=H.yieldResult;if(N.isDisposed())return H.return();N.sessionStorage=_.hbt("yt-sleep-timer");N.sessionStorage||_.$h(new _.jU("SessionStorage for Sleep Timer is undefined."));((S=N.sessionStorage)==null?void 0:S.get("yt-sleep-timer"))==="true"&&(fWw(),(P=N.sessionStorage)==null||P.remove("yt-sleep-timer"),b.syncVolume());$KQ(N,b);h_L(N,b);qTJ(N,b);_.Zd(H)})},$KQ=function(N,b){var S=function(R){N.onSleepTimerSettingsChanged(R,
b)},P=function(R){N.onPlayerStateChange(R,b)},H=function(){N.onLoopChange(b)},K=function(){N.onCloseMiniplayer(b)},C=function(){t8i(b,(0,_.nh)(),uvw(b),N.selectedOption==="End of video",b.getPlayerState()!==1)},G=function(){N.onSeekComplete(b)},a=function(){_.Dj.cancelJob(Nl);
var R=b.getCurrentTime()>=b.getDuration(),n=N.selectedOption==="End of video"||N.selectedOption==="End of playlist"&&!mvt(N.playlistId);R&&n&&w9t(N,b)};
b.addEventListener("onSleepTimerSettingsChanged",S);b.addEventListener("onLoopChange",H);b.addEventListener("onLoopRangeChange",H);b.addEventListener("onStateChange",P);b.addEventListener("onCloseMiniplayer",K);b.addEventListener("onSleepTimerFeatureAvailable",C);b.addEventListener("SEEK_COMPLETE",G);b.addEventListener("onAdStart",a);N.addOnDisposeCallback(function(){b.removeEventListener("onSleepTimerSettingsChanged",S);b.removeEventListener("onLoopChange",H);b.removeEventListener("onLoopRangeChange",
H);b.removeEventListener("onStateChange",P);b.removeEventListener("onCloseMiniplayer",K);b.removeEventListener("onSleepTimerFeatureAvailable",C);b.removeEventListener("SEEK_COMPLETE",G);b.removeEventListener("onAdStart",a)})},h_L=function(N,b){var S=N.JSC$21293_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var P=b.getVideoData().video_id,H,K=(H=neJ(N.JSC$21293_watchApi))==null?void 0:H.playlistId;
N.pauseAutonavPlayback&&(b.pauseVideo(),b.syncVolume(),N.pauseAutonavPlayback=!1);if(N.selectedOption==="End of video"&&P!==N.videoId)QX(N,b);else{if(N.selectedOption==="End of playlist"){H=mvt(N.playlistId);if(K!==N.playlistId){QX(N,b);break a}H?H&&NWi(N,b):brw(N,b)}N.videoId=P;N.playlistId=K}}});
N.addOnDisposeCallback(function(){N.JSC$21293_watchApi.unsubscribeByKey(S)})},qTJ=function(N,b){var S=_.aN().resolve(_.OQ),P=_.hT(S,_.Xtp,function(K){K&&N.selectedOption!=="Off"&&QX(N,b)}),H=N.JSC$21293_watchApi.subscribeToActiveChanged(function(K){var C,G;
return _.r(function(a){if(a.nextAddress==1)return a.yield(_.gU().navigationFinishPromise,2);C=!_.DiE();G=_.aN().resolve(_.E_).isMiniplayerActive();K||!W8E(N.selectedOption)||G||C||QX(N,b);_.Zd(a)})},!1);
S=_.hT(S,function(K){return K.entities.playlistLoopStateEntity||{}},function(K){K=K===void 0?{}:K;
var C=dv_(N.JSC$21293_watchApi);if(C){var G;((G=K[C])==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ALL"&&W8E(N.selectedOption)&&QX(N,b)}});
N.addOnDisposeCallback(P);N.addOnDisposeCallback(S);N.addOnDisposeCallback(H)};
ul.prototype.onSleepTimerSettingsChanged=function(N,b){switch(N){case "Off":this.selectedOption!=="Off"&&QX(this,b);break;case "End of video":case "End of playlist":S3o(this,N,b);break;default:S3o(this,N,b,g4t.get(N))}};
ul.prototype.onLoopChange=function(N){(N.getLoopVideo()||N.getLoopRange())&&W8E(this.selectedOption)&&QX(this,N)};
ul.prototype.onCloseMiniplayer=function(N){W8E(this.selectedOption)&&QX(this,N)};
var S3o=function(N,b,S,P){PXa(N,S);N.selectedOption=b;N.videoId=S.getVideoData().video_id;N.playlistId="";var H;(H=N.sessionStorage)==null||H.set("yt-sleep-timer","true");N.adjustmentsCount++;t8i(S,(0,_.nh)(),uvw(S),N.selectedOption==="End of video");if(N.selectedOption==="End of video")brw(N,S),Hrt(N,S);else if(N.selectedOption==="End of playlist"){Hrt(N,S);var K,C;N.playlistId=(C=(K=neJ(N.JSC$21293_watchApi))==null?void 0:K.playlistId)!=null?C:"";mvt(N.playlistId)||brw(N,S)}else P&&(N.presetFadeSchedulerId=
_.Bm(_.Dj,function(){lWq(S,15E3)},P-15E3),N.presetPauseSchedulerId=_.Bm(_.Dj,function(){w9t(N,S)},P),F8n(S,(0,_.nh)(),P))},w9t=function(N,b){if(N.JSC$21293_watchApi.isActive()){var S={dismissDialogEndpoint:{}};
var P={commandExecutorCommand:{commands:[S,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};S={buttonViewModel:{title:_.cN("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:S}}};P={buttonViewModel:{title:_.cN("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:P}}};var H={dialogHeaderViewModel:{headline:{content:_.cN("SLEEP_TIMER_ENDED_TITLE")}}},
K={basicContentViewModel:{paragraphs:[{text:{content:_.cN("SLEEP_TIMER_ENDED_TEXT")}}]}};S={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:H,content:K,footer:{panelFooterViewModel:{primaryButton:S,secondaryButton:P,shouldHideDivider:!0}}}}}}};_.aN().resolve(_.Wq).resolveCommand(S,{form:{element:N}})}else fWw();sWE(N,!1);KCo(N,b);b.pauseVideo();_.ut.getInstance().getState()===2&&b.getPlayerState()===5&&(N.pauseAutonavPlayback=!0)},QX=function(N,b){sWE(N,!0);
KCo(N,b);fWw()},KCo=function(N,b){PXa(N,b);
N.selectedOption="Off";N.videoId="";N.playlistId="";N.adjustmentsCount=0;var S;(S=N.sessionStorage)==null||S.remove("yt-sleep-timer");_.Dj.cancelJob(M8a);b.resetSleepTimerMenuSettings()},sWE=function(N,b){b={timer_length_adjustment_times_during_session:N.adjustmentsCount-1,
is_session_cancelled:b};switch(N.selectedOption){case "Off":b.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:b.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",b.option_duration_in_minutes=g4t.get(N.selectedOption)/6E4}_.Dn("sleepTimerSessionFinishEvent",b)};
ul.prototype.onPlayerStateChange=function(N,b){N===1?t8i(b,(0,_.nh)(),uvw(b),this.selectedOption==="End of video"):N===0?(_.Dj.cancelJob(Nl),b.setVideoTimeLeft(TOa(0,0))):N===2&&_.Dj.cancelJob(Nl);this.selectedOption==="End of video"?N===0?w9t(this,b):N===2&&L8Q(b):this.selectedOption!=="End of playlist"||mvt(this.playlistId)||(N===0?w9t(this,b):N===2&&L8Q(b))};
ul.prototype.onSeekComplete=function(N){N.getPlayerState()===2&&t8i(N,(0,_.nh)(),uvw(N),this.selectedOption==="End of video",!0)};
ul.prototype.onCueRangeEnter=function(N,b){N==="sleep-timer-fade-audio"&&lWq(b,(b.getDuration()-b.getProgressState().current)*1E3)};
ul.prototype.onCueRangeExit=function(N,b){N==="sleep-timer-fade-audio"&&b.getPlayerState()!==0&&L8Q(b,!0)};
var brw=function(N,b){b.addCueRange("sleep-timer-fade-audio",b.getDuration()-15,b.getDuration());b.addEventListener("onCueRangeEnter",function(S){N.onCueRangeEnter(S,b)});
b.addEventListener("onCueRangeExit",function(S){N.onCueRangeExit(S,b)})},NWi=function(N,b){b.removeCueRange("sleep-timer-fade-audio");
b.removeEventListener("onCueRangeEnter",function(S){N.onCueRangeEnter(S,b)});
b.removeEventListener("onCueRangeExit",function(S){N.onCueRangeExit(S,b)})},PXa=function(N,b){W8E(N.selectedOption)?NWi(N,b):(_.Dj.cancelJob(N.presetPauseSchedulerId),_.Dj.cancelJob(N.presetFadeSchedulerId),N.presetPauseSchedulerId=0,N.presetFadeSchedulerId=0);
L8Q(b,!0)},Hrt=function(N,b){b.setLoop(!1);
b.setLoopVideo(!1);b.setLoopRange(null);(N=dv_(N.JSC$21293_watchApi))&&_.aN().resolve(_.OQ).dispatch(_.t5("playlistLoopStateEntity",N,{key:N,state:"PLAYLIST_LOOP_STATE_NONE"}))};var roE=function(N){_.E5.call(this);var b=this;this.JSC$21296_watchApi=N;_.T("web_watch_force_start_in_theater_mode")&&vCJ(this,!0,!1);OrL(this);CXi(this);Gc6(this);var S=this.JSC$21296_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.d7("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.xb.get("wide",void 0)==="1"&&_.iQ("wide","1",_.d7("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){b.JSC$21296_watchApi.unsubscribeByKey(S)});
N=N.getRoot();if(N.is==="ytd-watch-flexy"||N.is==="ytd-watch-grid")N.onTheaterReduxValueUpdate(this.getState());this.getState()&&Ln_();_.T("web_watch_log_theater_mode_cookie_state")&&_.xb.get("wide","0")==="1"&&_.rQp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.F(roE,_.E5);var OrL=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21296_watchApi.playerApi,2);b=P.yieldResult;S=function(H){vCJ(N,!!H)};
b.addEventListener("SIZE_CLICKED",S);N.addOnDisposeCallback(function(){b.removeEventListener("SIZE_CLICKED",S)});
_.Zd(P)})},CXi=function(N){N.JSC$21296_watchApi.registerActionHandler("yt-toggle-theater-mode",function(b,S){vCJ(N,b,S===void 0?!0:S)});
N.addOnDisposeCallback(function(){N.JSC$21296_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
roE.prototype.getState=function(){return _.QC(_.h0().getState())};
var vCJ=function(N,b,S){S=S===void 0?!0:S;var P,H,K,C=_.T("enable_player_resize_transition")&&!!N.JSC$21296_watchApi.getWatchNextResponse()&&!((P=N.JSC$21296_watchApi.getWatchNextResponse())==null?0:(H=P.contents)==null?0:(K=H.twoColumnWatchNextResults)==null?0:K.conversationBar);Weo(function(){_.h0().dispatch(_.HU({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:b}}));_.T("theater_mode_scroll_to_top_killswitch")||N.JSC$21296_watchApi.scrollWatchTo(0,!1);_.hw()&&_.T("external_fullscreen")&&_.qy(document.documentElement);
Gc6(N);S&&_.iQ("wide",b?"1":"0",_.d7("theater_mode_cookie_max_age_seconds",-1));_.St(N.JSC$21296_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);N.JSC$21296_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:b});b&&Ln_()},{shouldWrap:C})},Gc6=function(N){var b;
_.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21296_watchApi.playerApi,2);b=S.yieldResult;b.setSizeStyle(!0,N.getState());_.Zd(S)})};var RXE=function(N){_.E5.call(this);var b=this;this.playerApi=N;this.timeToPanelSyncKeyMap={};var S;if(N==null?0:(S=N.isReady)==null?0:S.call(N)){S=_.hT(_.aN().resolve(_.OQ),function(H){return H.entities.timedMarkersListSyncEntity||{}},function(H,K){H=H===void 0?{}:H;
K=K===void 0?{}:K;for(var C=_.O(Object.keys(K)),G=C.next();!G.done;G=C.next())G=G.value,H[G]!==K[G]&&co5(b,K[G]);K=_.O(Object.keys(H));for(C=K.next();!C.done;C=K.next())C=C.value,G=H[C],b.timeToPanelSyncKeyMap[C]&&aei(b,G)});
this.addOnDisposeCallback(S);var P=function(H){b.onCueRangeEnter(H)};
N.addEventListener("onCueRangeEnter",P);this.addOnDisposeCallback(function(){var H;(H=N.removeEventListener)==null||H.call(N,"onCueRangeEnter",P)})}};
_.F(RXE,_.E5);
var aei=function(N,b){var S,P;if((S=N.playerApi)==null?0:(P=S.isReady)==null?0:P.call(S)){var H;if((S=b==null?void 0:(H=b.timedListData)==null?void 0:H.sections)&&b!=null&&b.key)for(H=_.O(S),S=H.next();!S.done;S=H.next())if(S=S.value,S.timedSyncDataList&&S.sectionId)for(P=0;P<S.timedSyncDataList.length;P++){var K=S.timedSyncDataList[P];K.syncItemId&&N.playerApi.addCueRange(S.sectionId+"_"+b.key+"_"+K.syncItemId,Number(K.videoTimeMs)/1E3,P===S.timedSyncDataList.length-1?0x8000000000000:Number(S.timedSyncDataList[P+
1].videoTimeMs)/1E3)}}},co5=function(N,b){var S,P;
if((S=N.playerApi)==null?0:(P=S.isReady)==null?0:P.call(S)){var H;if((S=b==null?void 0:(H=b.timedListData)==null?void 0:H.sections)&&b!=null&&b.key)for(H=_.O(S),S=H.next();!S.done;S=H.next())if(S=S.value,S.timedSyncDataList&&S.sectionId){P=_.O(S.timedSyncDataList);for(var K=P.next();!K.done;K=P.next())K=K.value,K.syncItemId&&N.playerApi.removeCueRange(S.sectionId+"_"+b.key+"_"+K.syncItemId)}}};
RXE.prototype.onCueRangeEnter=function(N){for(var b=_.O(Object.keys(this.timeToPanelSyncKeyMap)),S=b.next();!S.done;S=b.next()){S=S.value;var P=_.O(N.split("_"+S+"_")),H=P.next().value;P=P.next().value;if(H&&P){N=_.aN().resolve(_.OQ);b=this.timeToPanelSyncKeyMap[S];var K=_.wxs(N.getState(),b);S=WCo(S,H,P);if(S===-1)break;S={activeSyncId:P,activeItemIndex:S,activeSectionInfo:{sectionIdentifier:H}};K?N.dispatch(_.oJ("markersEngagementPanelSyncEntity",b,S)):N.dispatch(_.t5("markersEngagementPanelSyncEntity",
b,Object.assign({},{key:b},S)));break}}};
var WCo=function(N,b,S){var P=_.aN().resolve(_.OQ),H,K;N=(H=OAt(P.getState(),N))==null?void 0:(K=H.timedListData)==null?void 0:K.sections;if(!N)return-1;H=0;K=_.O(N);for(N=K.next();!N.done;N=K.next()){N=N.value;P=N.timedSyncDataList||[];if(N.sectionId===b)return b=P.findIndex(function(C){return C.syncItemId===S}),b===-1?b:H+b;
H+=P.length}return-1};var mAJ=function(N){_.E5.call(this);var b=this;this.JSC$21310_watchApi=N;this.unresolvedCommands=[];this.JSC$21310_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(S){nCa(b,S)});
this.addOnDisposeCallback(function(){b.JSC$21310_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
dAi(this)};
_.F(mAJ,_.E5);var dAi=function(N){var b;_.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21310_watchApi.playerApi,2);b=S.yieldResult;if(N.isDisposed())return S.return();N.timedSyncObserver=new RXE(b);N.unresolvedCommands.length&&(N.unresolvedCommands.forEach(function(P){return nCa(N,P)}),N.unresolvedCommands=[]);
_.QS(N,N.timedSyncObserver);_.Zd(S)})},nCa=function(N,b){if(N.timedSyncObserver){var S=_.t(b,TZt);
if(S&&S.timedSyncEntityKey&&S.panelSyncEntityKey){N=N.timedSyncObserver;b=S.timedSyncEntityKey;var P=S.panelSyncEntityKey;S=!!S.isEnabled;S=S===void 0?!0:S;var H=_.aN().resolve(_.OQ);H=OAt(H.getState(),b);S?N.timeToPanelSyncKeyMap[b]||(N.timeToPanelSyncKeyMap[b]=P,aei(N,H)):(delete N.timeToPanelSyncKeyMap[b],co5(N,H))}}else N.unresolvedCommands.push(b)};var kci=_.A(function(N){var b=N.data,S=N.maybeLogSmartSkipClientData,P=null,H=null,K=_.T("web_enable_auto_focus_for_timely_action_button"),C=function(){P=document.activeElement},G=function(){b().smartSkipMetadata&&(P=document.activeElement,ux6(function(){return H}))},a=function(n){if(b().smartSkipMetadata&&(!n||n.key!=="Enter")){P&&P.isConnected&&(ux6(function(){return P}),P=null);
var d;(d=H)==null||d.blur()}};
N=_.Ob(function(){S==null||S(!0,b());return!1});
var R=_.VN(_.iK(function(){return b().rendererContext},{onTap:function(n,d){d({disableClickTracking:!0})}}),_.nt({visibilityCallback:function(n){if(K)n?H&&b().smartSkipMetadata&&(G(),document.addEventListener("focusin",C)):(document.removeEventListener("focusin",C),a());
else if(n){n=_.xY(b().rendererContext);var d=Number(b().maxVisibleDurationMilliseconds),m,k=(m=_.t(b().rendererContext,_.Mv))==null?void 0:m.label;n&&d&&k&&(m={label:k,command:n,durationMs:d},_.aN().resolve(_.fK).enqueue(m))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.pM(function(){if(K){var n;if((H=(n=R.value)==null?void 0:n.querySelector("button"))&&b().smartSkipMetadata){var d;(d=R.value)==null||d.addEventListener("keydown",a)}}});
_.ej(function(){K&&(H&&b().smartSkipMetadata&&H.removeEventListener("keydown",a),document.removeEventListener("focusin",C),a())});
return _.c("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:R,"on:click":N},_.c(_.kY,{data:function(){return b().content}},{buttonViewModel:_.j$}))},"ik");var TWQ=_.A(function(N){var b=N.data,S=N.playerApi,P=_.aN().resolve(_.dzO);N=_.O(_.qI(function(){b()}));
var H=N.next().value,K=N.next().value,C=function(){return oeq(b(),H())},G=function(R,n){var d,m,k=(d=_.t(n==null?void 0:n.rendererContext,_.mt))==null?void 0:(m=d.loggingDirectives)==null?void 0:m.trackingParams;
if((n=n==null?void 0:n.smartSkipMetadata)&&n.loggingData&&(m=n.loggingData,n=m.algorithmId,d=m.startMilliseconds,m=m.endMilliseconds,n&&d!==void 0&&m!==void 0)){var M,l;R={smartSkipData:Object.assign({},{versionName:n,startMediaTimeMs:d,endMediaTimeMs:m},R&&{userInteractionMediaTimeMs:(Math.floor(((M=_.qE())==null?void 0:(l=M.getPlayer())==null?void 0:l.getCurrentTime())||0)*1E3).toString()})};M=_.Qh();var u;k&&(u=_.FA(k));M&&u&&_.Dp(M,u,R)}},a=function(R,n){var d=oeq(b(),R);
if(d){var m=_.t(d,xvn),k;if(k=n)k=S(),d=_.t(d,xvn),k=d!=null&&d.smartSkipMetadata?!(k==null?0:k.isSameMarkerTypeVisible((d==null?void 0:d.smartSkipMetadata.markerKey)||"")):!0;if(k){var M,l;(m==null?0:(M=m.smartSkipMetadata)==null?0:(l=M.loggingData)==null?0:l.isCounterfactual)||(G(!1,m),K(R))}else n||H()!==R||K(void 0)}};
_.gA(function(){var R=b().timelyActions;if(R){R=_.O(R);for(var n=R.next();!n.done;n=R.next()){n=_.t(n.value,xvn);var d=void 0;(d=n)!=null&&d.cueRangeId&&P.timelyActionsMap.set(n.cueRangeId,a)}_.ej(function(){P.timelyActionsMap.clear()})}},"l2RtC");
return _.c("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.c(_.kY,{data:C},{timelyActionViewModel:function(R){return _.c(kci,{data:R.data,maybeLogSmartSkipClientData:function(){G(!0,_.t(C(),xvn))}})}}))},"kk");var MKt=function(N){_.E5.call(this);this.JSC$21323_watchApi=N;N=_.O(_.QF({},void 0,"UN7k5e"));this.timelyActionsOverlay=N.next().value;this.setTimelyActionsOverlay=N.next().value;tKw(this)};
_.F(MKt,_.E5);var tKw=function(N){var b,S,P,H;_.r(function(K){if(K.nextAddress==1)return FC_(N),BWt(N),N.timelyActionsContainer=document.createElement("div"),K.yield(N.JSC$21323_watchApi.playerApi,2);b=K.yieldResult;(P=(S=b).insertTimelyActionUi)==null||P.call(S,N.timelyActionsContainer);H=_.E2(N.timelyActionsContainer,function(){return _.c(TWQ,{data:N.timelyActionsOverlay,playerApi:b})},"lk");
N.addOnDisposeCallback(H);_.Zd(K)})},BWt=function(N){var b=N.JSC$21323_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FC_(N)});
N.addOnDisposeCallback(function(){N.JSC$21323_watchApi.unsubscribeByKey(b)})},FC_=function(N){var b=N.JSC$21323_watchApi.getWatchNextResponse();
if(b){var S,P;if(b=_.t((S=b.playerOverlays)==null?void 0:(P=S.playerOverlayRenderer)==null?void 0:P.timelyActionsOverlayViewModel,ss6)){var H;(H=N.setTimelyActionsOverlay)==null||H.call(N,b)}}};var LCa=function(N){_.E5.call(this);this.JSC$21327_watchApi=N;leJ(this)};
_.F(LCa,_.E5);var leJ=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21327_watchApi.playerApi,2);b=P.yieldResult;S=function(H){_.rG.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.t(H,W7n)},popupType:"TOAST"}})};
b.addEventListener("onYtShowToast",S);N.addOnDisposeCallback(function(){b.removeEventListener("onYtShowToast",S)});
_.Zd(P)})};var feE=function(N){var b=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.GB;this.element.addEventListener("load",function(){b.loaded=!0;b.resolver.resolve(b.element)});
this.element.addEventListener("error",function(){b.failed=!0});
this.element.src=N};var uqq=function(N,b){this.image=N;this.frame=b};
uqq.prototype.drawToCanvas=function(N,b){var S=this.frame.width/this.frame.columns,P=this.frame.height/this.frame.rows,H=b.offsetX,K=b.offsetY;iow(b)?(N.fillStyle=b.fullscreen?"#000":"#0f0f0f",N.fillRect(H,K,(b==null?void 0:b.width)||S,(b==null?void 0:b.height)||P)):N.drawImage(this.image,this.frame.column*S,this.frame.row*P,S,P,H,K,(b==null?void 0:b.width)||S,(b==null?void 0:b.height)||P)};
var QWw=function(N){this.color=N};
QWw.prototype.drawToCanvas=function(N,b){var S=b.offsetX,P=b.offsetY,H=b.width,K=b.height;N.fillStyle=iow(b)?b.fullscreen?"#000":"#0f0f0f":this.color;N.fillRect(S,P,H,K)};var x2=function(N,b){ld.call(this);this.playerApi=b;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Jh(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();xAO(this,N);oCQ(this);this.update()};
_.F(x2,ld);x2.prototype.addEventListeners=function(){var N=this,b=function(){N.update()},S=function(H){N.paused||(H.type==="newdata"&&(N.mosaics.clear(),irn(N),oZ(N)),oCQ(N),N.update())},P=function(){N.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",b);this.playerApi.addEventListener("onVideoDataChange",S);this.playerApi.addEventListener("onStateChange",P);this.addOnDisposeCallback(function(){N.playerApi.removeEventListener("onVideoProgress",b);N.playerApi.removeEventListener("onVideoDataChange",S);N.playerApi.removeEventListener("onStateChange",P)})};
var xAO=function(N,b){N.cinematicContainerRenderer!==b&&(N.cinematicContainerRenderer=b,irn(N),oZ(N),N.colorStoreUpdateJobId=_.Dj.addLowPriorityJob(function(){var S;if((S=N.cinematicContainerRenderer.colorStore)!=null&&S.sampledColors){S=Infinity;for(var P=_.O(N.cinematicContainerRenderer.colorStore.sampledColors),H=P.next();!H.done;H=P.next()){H=H.value;var K=Number(H.key);K!==0&&K<S&&(S=K);K=_.o3(H.value);N.colorStore.set(H.key,K)}N.colorStoreTimeInterval=S}}))},irn=function(N){N.colorStoreUpdateJobId&&
(_.Dj.cancelJob(N.colorStoreUpdateJobId),N.colorStoreUpdateJobId=void 0);
N.colorStore.clear();N.currentStoryboardColor=void 0},Joo=function(N,b){var S;
return(S=N.getStoryboardFrame(b))==null?void 0:S.url};
x2.prototype.onPlayerStateChange=function(){this.update()};
x2.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var oCQ=function(N){var b=N.getStoryboardFrame(0);b&&(b=new _.Jh(b.width/b.columns,b.height/b.rows),C3E(N.currentStoryboardSize,b)||(N.currentStoryboardSize=b,N.publish("STORYBOARD_SIZE_CHANGED",N.currentStoryboardSize)))},UAi=function(N,b){N.currentStoryboardIndex=b;
N.pendingStoryboardIndex=NaN;b=N.getStoryboardFrame(N.currentStoryboardIndex);N.currentStoryboard=new uqq(N.mosaics.get(b.url).element,b);N.publish("STORYBOARD_CHANGED",N.currentStoryboard);N.lastUpdateTime=(0,_.nh)()};
x2.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var oZ=function(N){N.currentStoryboardIndex=NaN;N.pendingStoryboardIndex=NaN;N.currentStoryboard&&(N.currentStoryboard=void 0,N.publish("STORYBOARD_CHANGED",void 0));N.lastUpdateTime=NaN};
x2.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)oZ(this);else{var N=this.playerApi.getPlayerState(1);if(N===-1||N===5||N===0)oZ(this);else if(isNaN(this.lastUpdateTime)||!((0,_.nh)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(N=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){N=""+Math.round(N*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var b=this.colorStore.get(N);b?b!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=b,this.currentStoryboard=new QWw(b),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.nh)()):(_.$h(new _.jU("Could not find color for timestamp: "+N,this.cinematicContainerRenderer)),oZ(this))}else oZ(this);else ZrJ(this,N)}};
var ZrJ=function(N,b){var S=N.getStoryboardFrameIndex(b);if(S!==N.currentStoryboardIndex&&S!==N.pendingStoryboardIndex){b=Joo(N,S);var P=N.mosaics.get(b);P?P.loaded&&UAi(N,S):(N.pendingStoryboardIndex=S,S=new feE(b),N.mosaics.set(b,S),S.resolver.promise.then(function(){if(!N.isDisposed()&&!N.paused&&!isNaN(N.pendingStoryboardIndex)){var H=Joo(N,N.pendingStoryboardIndex);if(H){var K;(K=N.mosaics.get(H))!=null&&K.loaded&&UAi(N,N.pendingStoryboardIndex)}else oZ(N)}}))}};
x2.prototype.getStoryboardFrameIndex=function(N){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(N,b)};
x2.prototype.getStoryboardFrame=function(N){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,S,P;return((P=(S=this.playerApi).getStoryboardFrame)==null?void 0:P.call(S,N,b))||null};
x2.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var JW=function(N,b,S,P){P=P===void 0?!1:P;_.E5.call(this);this.cinematicContainerRenderer=b;this.playerApi=S;this.theater=this.fullscreen=!1;var H;this.ambientLightThemeEnabled=!P&&!!(b==null?0:(H=b.config)==null?0:H.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=P)&&!0;this.container=document.createElement("div");N.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);jWJ(this);this.backCanvas=
JIE();this.frontCanvas=JIE();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new x2(b,this.playerApi);_.QS(this,this.storyboardManager);this.addEventListeners();zXi(this)?Aoq(this,100+il(this)*3*2,100+il(this)*3*2):XEE(this);ECL(this,this.storyboardManager.currentStoryboard)};
_.F(JW,_.E5);
var jWJ=function(N){var b=N.playerApi.getVideoAspectRatio();_.Vo(N.container,{"aspect-ratio":""+b,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var S;var P;if((N.fullscreen||N.theater)&&((S=N.cinematicContainerRenderer.config)==null?0:(P=S.watchFullscreenConfig)==null?0:P.colorSourceWidthMultiplier))S=N.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var H;S=(H=
N.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?H:N.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var K,C;if((N.fullscreen||N.theater)&&((K=N.cinematicContainerRenderer.config)==null?0:(C=K.watchFullscreenConfig)==null?0:C.colorSourceHeightMultiplier))H=N.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var G;H=(G=N.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?G:N.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Vo(N.innerContainer,
{"aspect-ratio":""+b,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+S+", "+H+")"});UvQ()&&_.Vo(N.innerContainer,"filter","blur("+_.d7("cinematic_watch_css_filter_blur_strength",40)+"px)")};
JW.prototype.setFullscreen=function(N,b){this.fullscreen=N;this.theater=!!b;jWJ(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),N=this.storyboardManager.currentStoryboard,pE6(this),N&&Y36(this,N)};
JW.prototype.addEventListeners=function(){var N=this,b=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(H){ECL(N,H)}),S=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){XEE(N)});
this.addOnDisposeCallback(function(){N.storyboardManager.unsubscribeByKey(b);N.storyboardManager.unsubscribeByKey(S)});
var P=function(){jWJ(N)};
this.playerApi.addEventListener("onVideoDataChange",P);this.addOnDisposeCallback(function(){N.playerApi.removeEventListener("onVideoDataChange",P)})};
var XEE=function(N){if(!zXi(N)){var b=N.storyboardManager.currentStoryboardSize;isNaN(b.width)||isNaN(b.height)||Aoq(N,Number(b.width)+il(N)*3*2,Number(b.height)+il(N)*3*2)}},Aoq=function(N,b,S){N.backCanvas.element.width=b;
N.backCanvas.element.height=S;N.frontCanvas.element.width=b;N.frontCanvas.element.height=S},zXi=function(N){return N.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},ECL=function(N,b,S){S=S===void 0?!1:S;
var P=N.frontCanvas.element.getAnimations()[0];P?(P.pause(),N.backCanvas.context.globalAlpha=Number(getComputedStyle(N.frontCanvas.element).opacity),N.frontCanvas.element.style.opacity="0",P.finish()):N.backCanvas.context.globalAlpha=1;N.backCanvas.context.drawImage(N.frontCanvas.element,0,0,N.backCanvas.element.width,N.backCanvas.element.height);pE6(N);b&&Y36(N,b);b=b?N.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.d7("cinematic_watch_fade_out_duration",500);P=_.d7("cinematic_watch_transition_frame_rate")/
1E3;var H={};P&&(H={easing:"steps("+Math.round(b*P)+")"});(S===void 0?0:S)||N.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:b,iterations:1},H));N.frontCanvas.element.style.opacity="1"},pE6=function(N){var b=N.ambientLightThemeEnabled||N.ambientTheaterModeEnabled,S=N.ambientLightThemeEnabled||N.ambientFullscreenEnabled;
N.frontCanvas.context.fillStyle=N.theater&&b||N.fullscreen&&S?"#000":"#0f0f0f";UvQ()||(N.frontCanvas.context.filter="blur(0)");N.frontCanvas.context.fillRect(0,0,N.frontCanvas.element.width,N.frontCanvas.element.height)},Y36=function(N,b){UvQ()||(N.frontCanvas.context.filter="blur("+il(N)+"px)");
N.frontCanvas.context.globalAlpha=N.fullscreen&&N.ambientFullscreenEnabled||N.theater&&N.ambientTheaterModeEnabled?_.d7("cinematic_watch_effect_letterbox_opacity",.4):_.d7("cinematic_watch_effect_opacity",.4);var S={offsetX:il(N)*3,offsetY:il(N)*3,theater:N.theater,fullscreen:N.fullscreen};zXi(N)&&(S.width=100,S.height=100);b.drawToCanvas(N.frontCanvas.context,S);N.frontCanvas.context.globalAlpha=1},il=function(N){var b;
return(b=N.cinematicContainerRenderer.config.blurStrength)!=null?b:5};
JW.prototype.disposeInternal=function(){_.E5.prototype.disposeInternal.call(this);this.container.remove()};
JW.prototype.clear=function(){ECL(this,void 0,!0)};
JW.prototype.pause=function(){this.storyboardManager.pause()};var yoq=_.xv(function(){var N,b,S=!((b=(N=document.createElement("canvas")).getContext)==null||!b.call(N,"2d")),P;N=!((P=CSS)==null||!P.supports("filter: blur(0)"));P=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var H;return S&&N&&P&&!((H=CSS)==null||!H.supports("aspect-ratio: 1 / 1"))}),UO=function(N,b){ld.call(this);
this.container=N;this.playerApi=b;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Iea(this);this.update()};
_.F(UO,ld);var DAo=function(N){var b=document.documentElement.hasAttribute("dark");N.isDarkModeEnabled=b;N.update()},VKE=function(N,b){N.settingEnabled=b;
N.update()};
UO.prototype.setFullscreen=function(N,b){this.fullscreen=N;this.theater=!!b;this.update()};
var gCO=function(N,b){N.cinematicContainerRenderer=b;N.cinematicContainerRenderer&&(N.cinematicsVe=_.OW(N.isShorts()?227858:159022),_.Ew(_.dG(),N.cinematicsVe),N.loggingClientData={watchCinematicContainerData:{presentationStyle:N.cinematicContainerRenderer.presentationStyle}});N.update()};
UO.prototype.isShorts=function(){var N,b;return((N=this.cinematicContainerRenderer)==null?void 0:(b=N.config)==null?void 0:b.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
UO.prototype.isAllowed=function(){var N;if(N=yoq()){var b,S,P;N=((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((P=this.cinematicContainerRenderer)==null||!P.colorStore)||((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(N)if(_.T("web_cinematics_pausing")){var H,K;N=this.isDarkModeEnabled||!!((H=this.cinematicContainerRenderer)==
null?0:(K=H.config)==null?0:K.enableInLightTheme)}else{var C,G;H=!!((C=this.cinematicContainerRenderer)==null?0:(G=C.config)==null?0:G.enableInLightTheme)&&(_.Vg("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);N=this.isDarkModeEnabled||H}if(C=N){var a,R;C=!((R=(a=this.prefersReducedMotionQuery)==null?void 0:a.matches)!=null&&R)}return C};
var eX5=function(N){var b;(b=N.currentCinematicEffect)==null||b.clear()},$Aq=function(N){var b;
(b=N.currentCinematicEffect)==null||b.pause()},hXa=function(N){(N=N.currentCinematicEffect)!=null&&(N=N.storyboardManager,N.paused=!1,oCQ(N),N.update())};
UO.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Iea=function(N){if(!_.T("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),S=function(){N.update()};
b.addListener(S);N.addOnDisposeCallback(function(){b.removeListener(S)});
return b}};
UO.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var N=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new JW(this.container,N,this.playerApi,this.isDarkModeEnabled),_.QS(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var b=this.currentCinematicEffect;b.cinematicContainerRenderer!==
N&&(b.cinematicContainerRenderer=N,xAO(b.storyboardManager,N),jWJ(b));N=_.WN();_.nA(0,194,!0);N.save();N=_.Qh();this.cinematicsVe&&N&&_.pA(N,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(N=_.Qh(),this.cinematicsVe&&N&&_.YR(N,[this.cinematicsVe],!1,this.loggingClientData),_.Wv(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.d0.Object.defineProperties(UO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var q35=!1,SgQ=function(N){_.E5.call(this);this.JSC$21360_watchApi=N;this.fullscreen=this.theater=!1;wEw(this);Nri(this);bPJ(this)};
_.F(SgQ,_.E5);var bPJ=function(N){var b,S,P;_.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$21360_watchApi.playerApi,2);b=H.yieldResult;if(N.isDisposed())return H.return();S=N.JSC$21360_watchApi.getElement("CINEMATICS");if(!S)return H.return();N.JSC$21360_cinematicController=new UO(S,b);_.QS(N,N.JSC$21360_cinematicController);DAo(N.JSC$21360_cinematicController);POq(N,_.zvO());P=N.JSC$21360_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(K){HPE(N,K)});
N.addOnDisposeCallback(function(){N.JSC$21360_watchApi.unsubscribeByKey(P)});
ska(N);HPE(N,N.JSC$21360_cinematicController.isAllowed());Kut(N);vKE(N);_.Zd(H)})},Kut=function(N){N.fullscreen=_.x9(_.h0().getState());
N.theater=_.QC(_.h0().getState());OPQ(N,N.fullscreen,N.theater);var b=_.hT(_.h0(),_.x9,function(P){N.fullscreen=P;OPQ(N,N.fullscreen,N.theater)}),S=_.hT(_.h0(),_.QC,function(P){N.theater=P;
OPQ(N,N.fullscreen,N.theater)});
N.addOnDisposeCallback(b);N.addOnDisposeCallback(S)},wEw=function(N){var b=N.JSC$21360_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ska(N)});
N.addOnDisposeCallback(function(){N.JSC$21360_watchApi.unsubscribeByKey(b)})},Nri=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21360_watchApi.playerApi,2);b=P.yieldResult;S=function(H){POq(N,H)};
b.addEventListener("cinematicSettingsToggleChange",S);N.addOnDisposeCallback(function(){b.removeEventListener("cinematicSettingsToggleChange",S)});
_.Zd(P)})},ska=function(N){var b=N.JSC$21360_watchApi.getWatchNextResponse(),S;
b=_.t(b==null?void 0:(S=b.pageVisualEffects)==null?void 0:S[0],Ms);var P;(P=N.JSC$21360_cinematicController)==null||gCO(P,b)},POq=function(N,b){var S;
(S=N.JSC$21360_cinematicController)==null||VKE(S,b);COt(N)},HPE=function(N,b){var S;
_.r(function(P){if(P.nextAddress==1)return _.T("kevlar_watch_cinematics_invisible")&&(b=!1),P.yield(N.JSC$21360_watchApi.playerApi,2);S=P.yieldResult;S.updateCinematicSettings(b);COt(N);_.Zd(P)})},vKE=function(N){var b=_.WN();
if(_.T("kevlar_measure_ambient_mode_idle")&&!b.getFlag(192)&&!q35){q35=!0;var S=_.XC(_.Dj,function(){_.aN().resolve(_.ebE).start(1E4)},5E3);
N.addOnDisposeCallback(function(){_.Dj.cancelJob(S);_.aN().resolve(_.ebE).stop()})}},OPQ=function(N,b,S){N.fullscreen=b;
N.theater=S;var P;(P=N.JSC$21360_cinematicController)==null||P.setFullscreen(N.fullscreen,N.theater);if(_.T("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(N.theater||N.fullscreen){var H;(H=N.JSC$21360_cinematicController)==null||hXa(H)}else{var K;(K=N.JSC$21360_cinematicController)==null||$Aq(K)}},COt=function(N){var b;
N.JSC$21360_watchApi.getRoot().toggleCinematicsActive(!((b=N.JSC$21360_cinematicController)==null||!b.isEnabled()))};var aOo=function(N){_.E5.call(this);var b=this;this.JSC$21363_watchApi=N;this.commentsReady=!1;this.setCommentsJobId=0;N=_.hT(_.h0(),s6,function(){GV_(b)});
this.addOnDisposeCallback(N);var S=this.JSC$21363_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r9J(b)}),P=this.JSC$21363_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){r9J(b)});
this.addOnDisposeCallback(function(){b.JSC$21363_watchApi.unsubscribeByKey(S);b.JSC$21363_watchApi.unsubscribeByKey(P)});
var H=function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&c9w(b,"false")};
this.JSC$21363_watchApi.getRoot().addEventListener("yt-page-data-will-update",H);this.addOnDisposeCallback(function(){b.JSC$21363_watchApi.getRoot().removeEventListener("yt-page-data-will-update",H)});
r9J(this)};
_.F(aOo,_.E5);var r9J=function(N){N.commentsReady=!1;_.Dj.cancelJob(N.setCommentsJobId);N.setCommentsJobId=_.XC(_.Dj,function(){GV_(N)},1E3)},GV_=function(N){if(!N.commentsReady){_.uC("cmi");
_.Dj.cancelJob(N.setCommentsJobId);var b,S,P,H,K=(b=N.JSC$21363_watchApi.getWatchNextResponse())==null?void 0:(S=b.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(H=P.results)==null?void 0:H.results.contents;b=void 0;if(K&&K.length)for(K=_.O(K),S=K.next();!S.done;S=K.next())if(S=S.value,H=P=void 0,((P=S)==null?void 0:(H=P.itemSectionRenderer)==null?void 0:H.sectionIdentifier)==="comment-item-section"){_.T("web_watch_provide_undefined_comments")?b=S.itemSectionRenderer:N.JSC$21363_watchApi.provideRenderingData("COMMENTS",
S.itemSectionRenderer);c9w(N,"true");break}_.T("web_watch_provide_undefined_comments")&&N.JSC$21363_watchApi.provideRenderingData("COMMENTS",b);N.commentsReady=!0;N.JSC$21363_watchApi.dispatchEvent("yt-watch-comments-ready")}},c9w=function(N,b){var S;
(S=N.JSC$21363_watchApi.getElement("COMMENTS"))==null||S.setAttribute("canScheduleJobs",b)};var RIw=["engagement-panel-ads"],kVi=function(N){_.E5.call(this);var b=this;this.JSC$21366_watchApi=N;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.T("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.T("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.T("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.d7("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)Wu5(this);else{var S=this.JSC$21366_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nK_(b);Zk(b)}),P=this.JSC$21366_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jB(b);
Zk(b)});
this.JSC$21366_watchApi.getRoot().is==="ytd-watch-grid"&&_.T("swatcheroo_pbs_load_grid")&&(d3t(this),m3a(this));this.addOnDisposeCallback(function(){b.JSC$21366_watchApi.unsubscribeByKey(S);b.JSC$21366_watchApi.unsubscribeByKey(P);_.Dj.cancelJob(b.provideRichGridJobId)});
nK_(this);jB(this)}};
_.F(kVi,_.E5);var Wu5=function(N){var b=N.JSC$21366_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){N.providePlayerJobId=_.ml(_.Dj,function(){nK_(N);Zk(N)},N.provideAllDataDelayMs)}),S=N.JSC$21366_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){N.provideWatchNextJobId=_.ml(_.Dj,function(){jB(N);
Zk(N)},N.provideAllDataDelayMs)}),P=N.JSC$21366_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){N.provideWatchNextJobId=_.ml(_.Dj,function(){jB(N);
Zk(N)},N.provideAllDataDelayMs)});
N.JSC$21366_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.XC(_.Dj,function(){nK_(N);jB(N);Zk(N)},100)});
N.JSC$21366_watchApi.addPageDisposeJob(function(){_.Dj.cancelJob(N.provideWatchNextJobId);_.Dj.cancelJob(N.providePlayerJobId)});
N.addOnDisposeCallback(function(){N.JSC$21366_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");N.JSC$21366_watchApi.unsubscribeByKey(b);N.JSC$21366_watchApi.unsubscribeByKey(S);N.JSC$21366_watchApi.unsubscribeByKey(P);_.Dj.cancelJob(N.providePlayerJobId);_.Dj.cancelJob(N.provideWatchNextJobId)});
nK_(N);jB(N)},nK_=function(N){var b=N.JSC$21366_watchApi.getPlayerResponse(),S,P,H=(P=b==null?void 0:(S=b.playabilityStatus)==null?void 0:S.messageRenderers)!=null?P:[],K,C;
b=(C=b==null?void 0:(K=b.playabilityStatus)==null?void 0:K.messages)!=null?C:[];K=_.O(b);for(C=K.next();!C.done;C=K.next())H.push({alertRenderer:{text:_.gy(C.value),type:"WARNING"}});N.JSC$21366_watchApi.provideRenderingData("ALERTS",H)},jB=function(N){var b=[],S,P,H,K=N.JSC$21366_watchApi.getWatchNextResponse(),C,G,a,R,n=K==null?void 0:(C=K.contents)==null?void 0:(G=C.twoColumnWatchNextResults)==null?void 0:(a=G.results)==null?void 0:(R=a.results)==null?void 0:R.contents;
if(n)for(C=_.O(n),G=C.next();!G.done;G=C.next())if(G=G.value,G.videoPrimaryInfoRenderer)var d=G;else if(G.videoSecondaryInfoRenderer){var m=G;R=a=void 0;G=Object.assign({},(a=G.videoSecondaryInfoRenderer)==null?void 0:(R=a.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer);if(G.rows&&G.collapsedItemCount!==void 0){G.rows=G.rows.slice(0,G.collapsedItemCount).filter(function(ob){return!!ob.richMetadataRowRenderer});
G.collapsedItemCount=G.rows.length;var k={metadataRowContainerRenderer:G}}}else if(G.merchandiseShelfRenderer)var M=G;else if(G.ticketShelfRenderer)var l=G;else if(G.expandableMetadataRenderer)var u=G;else if(G.itemSectionRenderer)if(a=G.itemSectionRenderer.contents,R=void 0,N.directlyProvideComments&&((R=G.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section")_.uC("cmi"),N.JSC$21366_watchApi.provideRenderingData("COMMENTS",G.itemSectionRenderer);else if(a)for(G=_.O(a),a=
G.next();!a.done;a=G.next())if(a=a.value,a.commentsEntryPointHeaderRenderer)var J=a;else if(a.clarificationRenderer||a.infoPanelContainerRenderer||a.infoPanelContentRenderer||a.emergencyOneboxRenderer){b.push(a);var Z=Z||!!m}else a.limitedStateMessageRenderer?P=a:a.videoMetadataCarouselViewModel&&(H=a);if(_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&M&&l){var D=M;M=void 0}if(N.provideWatchNextSecondaryResults){var Y,V,g;N.JSC$21366_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
K==null?void 0:(Y=K.contents)==null?void 0:(V=Y.twoColumnWatchNextResults)==null?void 0:(g=V.secondaryResults)==null?void 0:g.secondaryResults)}if(N.JSC$21366_watchApi.getRoot().is==="ytd-watch-grid"){var e,se;N.JSC$21366_watchApi.provideRenderingData("LIVE_CHAT",K==null?void 0:(e=K.contents)==null?void 0:(se=e.twoColumnWatchNextResults)==null?void 0:se.conversationBar)}var Ca,ML,na,To;(Y=K==null?void 0:(Ca=K.contents)==null?void 0:(ML=Ca.twoColumnWatchNextResults)==null?void 0:(na=ML.secondaryResults)==
null?void 0:(To=na.secondaryResults)==null?void 0:To.offerModule)&&(Y.donationShelfRenderer||Y.donationUnavailableRenderer)&&N.JSC$21366_watchApi.getRoot().is!=="ytd-watch-grid"&&(S=Y);Ca=N.JSC$21366_watchApi.getPlayerResponse();if(!Ca||!_.l5p(Ca.playabilityStatus,K==null?void 0:K.playerOverlays)){var jp;if(K==null?0:(jp=K.contents)==null?0:jp.singleColumnWatchNextResults){var Xf,YO;var Wk=K==null?void 0:(Xf=K.contents.singleColumnWatchNextResults.results)==null?void 0:(YO=Xf.results)==null?void 0:
YO.contents}else{var S9,Vu,n9,mc;jp=!!(n==null?0:(S9=n[0])==null?0:(Vu=S9.itemSectionRenderer)==null?0:(n9=Vu.contents)==null?0:(mc=n9[0])==null?0:mc.backgroundPromoRenderer);var f9,mJ;S9=!!(K==null?0:(f9=K.contents)==null?0:(mJ=f9.twoColumnWatchNextResults)==null?0:mJ.secondaryResults);jp&&!S9&&(Wk=n)}}n=b[0];f9=b[1];Z&&b.length===1&&(f9=n,n=void 0);N.JSC$21366_watchApi.provideRenderingData("PRIMARY_INFO",d);N.JSC$21366_watchApi.provideRenderingData("SECONDARY_INFO",m);N.JSC$21366_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
J);N.JSC$21366_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",H);N.JSC$21366_watchApi.provideRenderingData("CLARIFICATION",n);N.JSC$21366_watchApi.provideRenderingData("RICH_METADATA",k);N.JSC$21366_watchApi.provideRenderingData("MERCH_SHELF",M);_.T("web_watch_merch_in_sd_when_ticket_shelf_present")&&N.JSC$21366_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",D);N.JSC$21366_watchApi.provideRenderingData("TICKET_SHELF",l);N.JSC$21366_watchApi.provideRenderingData("LIMITED_STATE",P);N.JSC$21366_watchApi.getRoot().is!==
"ytd-watch-grid"&&N.JSC$21366_watchApi.provideRenderingData("DONATION_SHELF",S);N.JSC$21366_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Wk);N.JSC$21366_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",f9);N.JSC$21366_watchApi.provideRenderingData("EXPANDABLE_METADATA",u);if(N.swatcherooProvideAllDataOnScheduledJob){var Bk,RU,Ab,kZ,Ib,Ud;d=K==null?void 0:(Bk=K.contents)==null?void 0:(RU=Bk.twoColumnWatchNextResults)==null?void 0:(Ab=RU.secondaryResults)==null?void 0:(kZ=Ab.secondaryResults)==
null?void 0:(Ib=kZ.results)==null?void 0:(Ud=Ib[0])==null?void 0:Ud.richGridRenderer;N.JSC$21366_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)}};
kVi.prototype.hasCompanionAds=function(N){var b,S;return(S=N==null?void 0:(b=N.adPlacements)==null?void 0:b.some(function(P){var H,K,C,G;return(P==null?void 0:(H=P.adPlacementRenderer)==null?void 0:(K=H.renderer)==null?void 0:K.actionCompanionAdRenderer)||(P==null?void 0:(C=P.adPlacementRenderer)==null?void 0:(G=C.renderer)==null?void 0:G.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?S:!1};
var Zk=function(N){if(!_.T("swaterdoo_ps_wn_handle_ks")){N.swatcherooProvideAllDataOnScheduledJob||m3a(N,3E3);var b=N.JSC$21366_watchApi.getPlayerResponse(),S,P,H,K,C,G=(S=N.JSC$21366_watchApi.getWatchNextResponse())==null?void 0:(P=S.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(K=H.secondaryResults)==null?void 0:(C=K.secondaryResults)==null?void 0:C.offerModule;b=N.hasCompanionAds(b);var a,R;S=(G==null?void 0:(a=G.tvfilmOfferModuleRenderer)==null?void 0:a.clientShouldSuppressIfCompanionAdDisplayed)||
(G==null?void 0:(R=G.unlimitedOfferModuleRenderer)==null?void 0:R.suppressIfCompanionAds);a=b&&S;N.JSC$21366_watchApi.getRoot().is==="ytd-watch-grid"&&N.JSC$21366_watchApi.provideRenderingData("OFFER_MODULE",a?void 0:G)}},m3a=function(N,b){_.T("swatcheroo_pbs_load_grid")&&(N.provideRichGridJobId&&_.Dj.cancelJob(N.provideRichGridJobId),N.provideRichGridJobId=_.ml(_.Dj,function(){N.provideRichGridJobId=0;
var S,P,H,K,C,G,a,R=(S=N.JSC$21366_watchApi.getWatchNextResponse())==null?void 0:(P=S.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(K=H.secondaryResults)==null?void 0:(C=K.secondaryResults)==null?void 0:(G=C.results)==null?void 0:(a=G[0])==null?void 0:a.richGridRenderer;R&&N.JSC$21366_watchApi.provideRenderingData("RICH_GRID_RENDERER",R)},b))},d3t=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21366_watchApi.playerApi,2);b=P.yieldResult;S=function(){N.onPlaybackStart()};
b.addEventListener("onPlaybackStartExternal",S);N.addOnDisposeCallback(function(){b.removeEventListener("onPlaybackStartExternal",S)});
_.Zd(P)})};
kVi.prototype.onPlaybackStart=function(){m3a(this)};var Tra=_.OW(115994),tb5=_.OW(115993),zh=function(N,b,S){var P=this;var H=S.dragDownAction;this.layer=0;this.JSC$21381_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$21381_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var K=_.dG();_.pc(K,Tra,this.layer);_.pc(K,tb5,this.layer);this.dragDownAction=function(){H();_.A8(K,{visualElement:P.fullscreen?Tra:tb5})};
this.gesture=new gN(N,b,this.getConfig(!1),"pandown");this.attach()};
zh.prototype.attach=function(){this.gesture.attach()};
zh.prototype.detach=function(){this.gesture.detach()};
zh.prototype.update=function(N){this.fullscreen=N;var b=this.gesture;N=this.getConfig(N);b.config=N};
zh.prototype.getConfig=function(N){return N?this.JSC$21381_watchFullScreenConfig:this.JSC$21381_watchConfig};var Fuw=function(N){_.E5.call(this);var b=this;this.JSC$21384_watchApi=N;N.playerApi.then(function(S){b.player=S});
this.gestures=new zh(this.JSC$21384_watchApi.getRoot(),N.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(cZJ(_.h0().getState())&&s6(_.h0().getState())<=0)if(_.x9(_.h0().getState())){var S;(S=b.player)==null||S.toggleFullscreen()}else _.St(b.JSC$21384_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Mbn(this)};
_.F(Fuw,_.E5);var Mbn=function(N){var b=_.hT(_.h0(),_.x9,function(S){N.onFullscreenChanged(S)});
N.addOnDisposeCallback(b);b=_.hT(_.h0(),s6,function(S){N.gestures&&(S>0?N.gestures.detach():N.gestures.attach())});
N.addOnDisposeCallback(b)};
Fuw.prototype.onFullscreenChanged=function(N){this.gestures&&this.gestures.update(N)};var Bri=["PLAYLIST"],Luo=function(N){_.E5.call(this);var b=this;this.JSC$21387_watchApi=N;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(N.subscribeToActiveChanged(function(S){b.onActiveChanged(S)}));
lOw(this)};
_.F(Luo,_.E5);var fOQ=function(N){N.pageDisposalDataTypes=Object.values(a0a).filter(function(b){return!Bri.includes(b)})},lOw=function(N){if(_.T("swatcheroo_enable_ghost_cards")||_.T("web_watch_clear_data_on_page_dispose"))fOQ(N),N.JSC$21387_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Dj.cancelJob(N.clearDataJobId);
N.clearDataJobId=0}),N.runPageDisposeJob=function(){var b=_.aN().resolve(_.$9).getDestinationPageType()==="watch";
N.clearDataJobId=_.ml(_.Dj,N.runClearDataJob,b?0:_.d7("web_watch_delay_page_dispose_ms",1E4))},N.runClearDataJob=function(){uDL(N)},N.runOnYtNavigateAwayFinish=function(){N.clearDataJobId&&(_.Dj.cancelJob(N.clearDataJobId),N.clearDataJobId=0,uDL(N))},document.addEventListener("yt-navigate-finish",N.runOnYtNavigateAwayFinish),N.JSC$21387_watchApi.addPageDisposeJob(N.runPageDisposeJob),N.addOnDisposeCallback(function(){N.JSC$21387_watchApi.removePageDisposeJob(N.runPageDisposeJob);
N.JSC$21387_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",N.runOnYtNavigateAwayFinish)})},uDL=function(N){N.pageDisposalDataTypes.forEach(function(b){N.JSC$21387_watchApi.provideRenderingData(b,void 0)});
N.clearDataJobId=0};
Luo.prototype.onActiveChanged=function(N){N&&((N=document.querySelector("#watch-page-skeleton"))&&_.Zg(N),QkE(this),document.body.removeAttribute("no-y-overflow"),_.g8("IS_SHELL_LOAD")&&ZAi())};
var QkE=function(N){_.r(function(b){if(b.nextAddress==1)return b.yield(N.JSC$21387_watchApi.playerApi,2);_.Ex();_.Zd(b)})};var x3E=_.T("kevlar_watch_while_counterfactual")?0:.25,U3q=function(N){_.E5.call(this);this.JSC$21390_watchApi=N;this.JSC$21390_watchWhileEnabled=_.T("kevlar_watch_while_v2");this.JSC$21390_watchPipEnabled=_.T("web_watch_pip");oK_(this);iPJ(this);J9E(this)};
_.F(U3q,_.E5);var oK_=function(N){N.JSC$21390_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){ZPt(N)});
N.addOnDisposeCallback(function(){N.JSC$21390_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},iPJ=function(N){var b,S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21390_watchApi.playerApi,2);b=P.yieldResult;S=function(H){H&&N.JSC$21390_watchPipEnabled?(H=_.aN().resolve(_.$9),_.gU().watchPipActivation=!0,_.Sv5(_.aN().resolve(_.E_),H.data)):ZPt(N)};
b.addEventListener("onCollapseMiniplayer",S);N.addOnDisposeCallback(function(){b.removeEventListener("onCollapseMiniplayer",S)});
_.Zd(P)})},J9E=function(N){var b=N.JSC$21390_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&b&&N.JSC$21390_watchWhileEnabled&&(N.playerIntersectionObserver=new IntersectionObserver(function(S){N.handleIntersect(S)},{threshold:[x3E]}),N.playerIntersectionObserver.observe(b),N.addOnDisposeCallback(function(){var S;
(S=N.playerIntersectionObserver)==null||S.disconnect()}))},ZPt=function(N){var b,S,P;
_.r(function(H){if(H.nextAddress==1)return b=_.aN().resolve(_.$9),S=b.data,P=_.K_O(S.response,S.playerResponse),_.gU().miniplayerButtonActivation=!0,_.aN().resolve(_.E_).collapse(),H.yield(_.gU().navigationFinishPromise,2);if(H.nextAddress!=3)return _.gU().currentEndpoint=P.watchEndpoint||null,H.yield(_.aN().resolve(_.E_).activate(N.JSC$21390_watchApi.getElement("PLAYER"),P,S),3);_.gU().userActivation=!0;_.Zd(H)})};
U3q.prototype.handleIntersect=function(N){jki(this,N[N.length-1])};
var jki=function(N,b){N.watchWhileJobId&&_.Dj.cancelJob(N.watchWhileJobId);N.watchWhileJobId=_.Dj.addLowPriorityJob(function(){var S,P;return _.r(function(H){if(H.nextAddress==1)return N.watchWhileJobId=void 0,S=_.aN().resolve(_.E_),b.intersectionRatio>x3E?S.isMiniplayerActive()?H.yield(S.deactivate(),0):H.jumpTo(0):(P=!S.isMiniplayerActive())?H.yield(zI_(N),5):H.jumpTo(4);H.nextAddress!=4&&(P=H.yieldResult);if(!P)return H.jumpTo(0);_.gU().watchWhileActivation=!0;return H.yield(A9J(N),0)})},100)},
zI_=function(N){return _.r(function(b){return b.nextAddress==1?_.T("kevlar_watch_while_paused")?b.return(!0):b.yield(N.isPlayerPlaying(),2):b.return(b.yieldResult)})};
U3q.prototype.isPlayerPlaying=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21390_watchApi.playerApi,2);b=S.yieldResult;return S.return(b.getPlayerStateObject().isPlaying)})};
var A9J=function(N){var b,S;return _.r(function(P){b=_.aN().resolve(_.$9).data;S=_.K_O(b.response,b.playerResponse);_.gU().currentEndpoint=S.watchEndpoint||null;return P.yield(_.aN().resolve(_.E_).activate(N.JSC$21390_watchApi.getElement("PLAYER"),S,b),0)})};var pbw=function(N){_.E5.call(this);this.JSC$21394_watchApi=N;Xbi(this);EK6(this)};
_.F(pbw,_.E5);var EK6=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21394_watchApi.playerApi,2);b=P.yieldResult;S=function(H){var K;H.sessionData&&H.sessionData.itct&&(K=H.sessionData.itct);var C=H.watchEndpoint;if(C&&H.sessionData&&H.sessionData.autonav)C=_.BwU(C,K);else{var G;C=_.N6(H.videoId,(G=H.listId)!=null?G:void 0,K)}K={endpoint:C};H.sessionData&&(K.tempData=H.sessionData);N.JSC$21394_watchApi.dispatchEvent("yt-navigate",K)};
b.addEventListener("onPlayVideo",S);N.addOnDisposeCallback(function(){b.removeEventListener("onPlayVideo",S)});
_.Zd(P)})},Xbi=function(N){var b=function(S){N.onYtNavigate(S)};
N.JSC$21394_watchApi.getRoot().addEventListener("yt-navigate",b);N.addOnDisposeCallback(function(){N.JSC$21394_watchApi.getRoot().removeEventListener("yt-navigate",b)})};
pbw.prototype.onYtNavigate=function(N){var b=this,S,P,H,K,C,G,a,R,n;return _.r(function(d){if(d.nextAddress==1){if(!((S=N.detail)==null?0:(P=S.endpoint)==null?0:P.watchEndpoint))return d.return();H=N.detail.endpoint.watchEndpoint;K=b.JSC$21394_watchApi.getWatchNextResponse();G=_.t((C=K)==null?void 0:C.currentVideoEndpoint,_.Iv);if(!G)return d.return();if(H.videoId!==G.videoId||H.playlistId&&H.playlistId!==G.playlistId||typeof H.startTimeSeconds!=="number")return d.jumpTo(0);N.stopPropagation();(a=
_.T("kevlar_watch_while_v2")&&!_.T("kevlar_watch_while_counterfactual"))&&_.aN().resolve(_.E_).isMiniplayerActive()||b.JSC$21394_watchApi.scrollWatchTo(0,!0);return d.yield(b.JSC$21394_watchApi.playerApi,3)}R=d.yieldResult;n=H.startTimeSeconds;R.seekTo(n,void 0,void 0,void 0,84);R.wakeUpControls();n<R.getDuration()&&R.playVideo();_.Zd(d)})};var y9q=function(N){_.E5.call(this);var b=this;this.JSC$21397_watchApi=N;var S=this.JSC$21397_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ygt(b)});
this.addOnDisposeCallback(function(){b.JSC$21397_watchApi.unsubscribeByKey(S)});
Ygt(this);_.T("enable_ai_companion")&&(N=this.JSC$21397_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&Frw(N,"WATCH")};
_.F(y9q,_.E5);var Ygt=function(N){var b=N.JSC$21397_watchApi.getWatchNextResponse();if(b){var S,P=[].concat(_.IX((S=b==null?void 0:b.engagementPanels)!=null?S:[]));_.T("web_watch_comments_visible_by_default")&&(S=P.find(function(H){var K;return((K=H.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-comments-section"}),S==null?0:S.engagementPanelSectionListRenderer)&&(S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
P.unshift.apply(P,_.IX(IOa(b)));N.JSC$21397_watchApi.provideRenderingData("ENGAGEMENT_PANELS",P)}},Vbi=function(N){var b,S,P,H=(b=N.engagementPanels)==null?void 0:(S=b.find(function(k){var M;
return((M=k.engagementPanelSectionListRenderer)==null?void 0:M.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(P=S.engagementPanelSectionListRenderer.content)==null?void 0:P.structuredDescriptionContentRenderer,K;
if(_.t(H==null?void 0:(K=H.items)==null?void 0:K.find(function(k){return!!_.t(k,sYn)}),sYn))return!0;
var C,G,a,R;if(N=(((C=N.contents)==null?void 0:(G=C.twoColumnWatchNextResults)==null?void 0:(a=G.results)==null?void 0:(R=a.results)==null?void 0:R.contents)||[]).find(function(k){return k.videoPrimaryInfoRenderer})){var n,d,m;
return(((n=N.videoPrimaryInfoRenderer)==null?void 0:(d=n.videoActions)==null?void 0:(m=d.menuRenderer)==null?void 0:m.flexibleItems)||[]).some(function(k){k=_.t(k,_.ggl);if(!k)return!1;var M,l;k=(M=k.topLevelButton)==null?void 0:(l=M.buttonViewModel)==null?void 0:l.onTap;if(!k)return!1;M=_.UZ(k);if(!M)return!1;if(D3o(M))return!0;if(_.T("enable_creator_chatbot")){M=_.t(M,_.vN);if(!M)return!1;var u;return(u=M.commands)==null?void 0:u.some(function(J){return D3o(J)})}return!1})}return!1},D3o=function(N){var b;
return((b=_.t(N,_.U_))==null?void 0:b.panelIdentifier)==="PAyouchat"},IOa=function(N){var b=[];
if(!_.T("web_watch_inject_placeholder_fantasy_panel_killswitch")){var S,P,H,K=(S=N.engagementPanels)==null?void 0:(P=S.find(function(G){var a;return((a=G.engagementPanelSectionListRenderer)==null?void 0:a.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=P.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,C;
_.t(K==null?void 0:(C=K.items)==null?void 0:C.find(function(G){return!!_.t(G,gtt)}),gtt)&&(S=_.sKb("PAsports_fantasy"),S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(S))}Vbi(N)&&(N=_.sKb("PAyouchat"),N.engagementPanelSectionListRenderer.targetId="PAyouchat",N.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(N));
return b};var eIq=function(N){_.E5.call(this);this.JSC$21400_watchApi=N;gKq(this)};
_.F(eIq,_.E5);var gKq=function(N){N.JSC$21400_watchApi.registerActionHandler("yt-loop-command",function(b){$3L(N,b)});
N.JSC$21400_watchApi.registerActionHandler("yt-repeat-chapter-command",function(b){hIL(N,b)});
N.addOnDisposeCallback(function(){N.JSC$21400_watchApi.unregisterActionHandler("yt-loop-command");N.JSC$21400_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},$3L=function(N,b){var S;
_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21400_watchApi.playerApi,2);S=P.yieldResult;_.t(b,v3O).loop?(S.setLoopRange({startTimeMs:Number(_.t(b,v3O).startTimeMs),endTimeMs:Number(_.t(b,v3O).endTimeMs),postId:_.t(b,v3O).postId,type:"clips"}),S.playVideo()):S.setLoopRange(null);_.Zd(P)})},hIL=function(N,b){var S,P;
_.r(function(H){if(H.nextAddress==1)return H.yield(N.JSC$21400_watchApi.playerApi,2);S=H.yieldResult;P=_.t(b,BHi).repeat;P==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(S.setLoopRange({startTimeMs:Number(_.t(b,BHi).startTimeMs),endTimeMs:Number(_.t(b,BHi).endTimeMs),type:"repeatChapter"}),S.playVideo()):P==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&S.setLoopRange(null);_.Zd(H)})};var wbJ=function(N){_.E5.call(this);this.JSC$21405_watchApi=N;qga(this)};
_.F(wbJ,_.E5);var qga=function(N){N.JSC$21405_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(b){Nho(N,b)});
N.addOnDisposeCallback(function(){N.JSC$21405_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Nho=function(N,b){var S,P,H,K,C,G,a,R,n,d,m;
_.r(function(k){if(k.nextAddress==1)return k.yield(N.JSC$21405_watchApi.playerApi,2);S=k.yieldResult;if(K=(H=(P=_.t(b,lFt))==null?void 0:P.highlightedMenuItemKey)!=null?H:"")(G=(C=S).highlightSettingsMenuItem)==null||G.call(C,K);if(n=(R=(a=_.t(b,lFt))==null?void 0:a.openMenuItemKey)!=null?R:"")(m=(d=S).openSettingsMenuItem)==null||m.call(d,n);_.Zd(k)})};var b4q=_.Cu("/youtube/app/watch/player_state","playerStateEntity");var AW=function(N){_.E5.call(this);this.JSC$21408_watchApi=N;SOQ(this)};
_.F(AW,_.E5);var PlE=function(N){switch(N){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},SOQ=function(N){var b,S,P,H,K;
_.r(function(C){if(C.nextAddress==1)return C.yield(N.JSC$21408_watchApi.playerApi,2);b=C.yieldResult;if(N.isDisposed())return C.return();S=function(G){N.onPlayerStateChange(G)};
P=function(G){N.onAdStateChange(G)};
H=function(){N.onAdSkip()};
K=function(G){N.onVideoDataChange(G)};
b.addEventListener("onStateChange",S);b.addEventListener("onAdStateChange",P);b.addEventListener("onAdSkip",H);b.addEventListener("onVideoDataChange",K);N.addOnDisposeCallback(function(){b.removeEventListener("onStateChange",S);b.removeEventListener("onAdStateChange",P);b.removeEventListener("onAdSkip",H);b.removeEventListener("onVideoDataChange",K)});
_.Zd(C)})},H4q=function(N){var b=_.gq(),S=b.dispatch;
a:switch(N.adsState){case -1:case 0:var P="ADS_STATE_NONE";break a;case 1:case 2:case 3:P="ADS_STATE_PLAYING";break a;default:P="ADS_STATE_UNKNOWN"}S.call(b,_.t5("playerStateEntity",b4q,{key:b4q,playerState:PlE(N.playerState),adsState:P,videoId:N.videoId}))};
AW.prototype.onPlayerStateChange=function(N){var b=this,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(b.JSC$21408_watchApi.playerApi,2);S=P.yieldResult;if(b.isDisposed())return P.return();b.playerState=N;b.videoId=S.getVideoData().video_id;H4q(b);_.Zd(P)})};
AW.prototype.onAdStateChange=function(N){this.adsState=N;H4q(this)};
AW.prototype.onAdSkip=function(){this.adsState=0;H4q(this)};
AW.prototype.onVideoDataChange=function(N){N.type==="newdata"&&(this.adsState=-1,H4q(this))};var KEi=function(N){_.E5.call(this);var b=this;this.JSC$21412_watchApi=N;this.enableExternalPlaylistPanelInPlayer=_.T("delhi_web_player_use_external_playlist_panel");_.aN().resolve(_.dt).setPlayer(this.JSC$21412_watchApi.getElement("PLAYER"));N=this.JSC$21412_watchApi.subscribeToActiveChanged(function(S){b.onActiveChanged(S)});
this.addOnDisposeCallback(N);sZL(this)};
_.F(KEi,_.E5);var sZL=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return N.enableExternalPlaylistPanelInPlayer?P.yield(N.JSC$21412_watchApi.playerApi,2):P.return();b=P.yieldResult;S=function(){if(N.playlistPanelElement)N.playlistPanelElement.onToggleExpanded()};
b.addEventListener("onToggleExternalPlaylistPanel",S);N.addOnDisposeCallback(function(){b.removeEventListener("onToggleExternalPlaylistPanel",S)});
_.Zd(P)})};
KEi.prototype.onActiveChanged=function(N){var b=this,S=_.aN().resolve(_.dt),P=function(){v26(b)};
N?(this.playlistPanelElement=this.JSC$21412_watchApi.getElement("PLAYLIST_PANEL"))?(S.setPlaylistComponent(this.playlistPanelElement),S.addEventListener("yt-playlist-data-updated",P),this.addOnDisposeCallback(function(){S.removeEventListener("yt-playlist-data-updated",P)}),v26(this)):_.qB(Error("Nl")):(S.removeEventListener("yt-playlist-data-updated",P),S.cancelVideoSkip())};
var v26=function(N){var b=_.aN().resolve(_.dt);N.JSC$21412_watchApi.provideRenderingData("PLAYLIST",b.getPlaylistData())};var Xa=function(N){_.E5.call(this);var b=this;this.JSC$21415_watchApi=N;this.onPageScroll=function(){b.scrollThrottle.fire();b.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.GR(this.onThrottledScroll,200,this);_.QS(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.GR(this.onMastheadThrottledScroll,50,this);_.QS(this,this.mastheadScrollThrottle);this.animation=new _.lf(function(S){b.JSC$21415_watchApi.getRoot().setScrollTop(S)});
N=_.hT(_.h0(),_.x9,function(){b.onFullscreenChanged()});
this.addOnDisposeCallback(N);O46(this);Clo(this);this.onThrottledScroll()};
_.F(Xa,_.E5);
Xa.prototype.onFullscreenChanged=function(){var N=this,b=this.JSC$21415_watchApi.getRoot();!this.pageScrollElement&&b.pageScrollElement?(this.pageScrollElement=b.pageScrollElement,b.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){N.pageScrollElement&&N.pageScrollElement.removeEventListener("scroll",N.onPageScroll)})):this.pageScrollElement&&!b.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var O46=function(N){window.addEventListener("scroll",N.onPageScroll);N.addOnDisposeCallback(function(){window.removeEventListener("scroll",N.onPageScroll)})},Clo=function(N){N.JSC$21415_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(b){a:{var S;
if(S=N.JSC$21415_watchApi.getRoot().contains(b)&&!N.animation.isAnimating()){S=b.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var P,H,K=(b==null?void 0:(P=b.parentElement)==null?void 0:(H=P.parentElement)==null?void 0:H.id)==="fixed-secondary";S=!(S&&K)}if(S){if(_.T("kevlar_watch_scroll_manager_absolute_offset_killswitch"))P=b.offsetTop;else for(P=0,H=b;H!==null;)P+=H.offsetTop,P-=H.scrollTop,H=H.offsetParent;H=P;P=H-24;b=H+b.offsetHeight+24;H=N.JSC$21415_watchApi.getRoot().getPageScrollingElement();
S=N.JSC$21415_watchApi.getRoot().getScrollTop();K=S+H.clientHeight-56;if(P<S+56)b=P-56;else if(b>K)b-=H.clientHeight;else break a;N.scrollWatchTo(Math.max(0,b),!0)}}});
N.addOnDisposeCallback(function(){N.JSC$21415_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
Xa.prototype.onThrottledScroll=function(){var N=_.h0(),b=N.dispatch,S=this.JSC$21415_watchApi.getRoot().getScrollTop();b.call(N,_.HU({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:S}}))};
Xa.prototype.onMastheadThrottledScroll=function(){this.JSC$21415_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21415_watchApi.getRoot().getScrollTop())};
Xa.prototype.scrollWatchTo=function(N,b){(b===void 0?0:b)?this.animation.start(this.JSC$21415_watchApi.getRoot().getScrollTop(),Math.max(0,N),500):this.JSC$21415_watchApi.getRoot().setScrollTop(N)};var cWt=function(N){_.E5.call(this);var b=this;this.JSC$21418_watchApi=N;var S=this.JSC$21418_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Gh_(b)}),P=this.JSC$21418_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rWJ(b)});
this.addOnDisposeCallback(function(){b.JSC$21418_watchApi.unsubscribeByKey(S);b.JSC$21418_watchApi.unsubscribeByKey(P)});
Gh_(this);rWJ(this)};
_.F(cWt,_.E5);
var Gh_=function(N){var b,S,P,H=(P=(b=N.JSC$21418_watchApi.getPlayerResponse())==null?void 0:(S=b.videoDetails)==null?void 0:S.title)!=null?P:"";N.JSC$21418_watchApi.dispatchEvent("yt-update-title",H)},rWJ=function(N){var b,S,P,H,K,C,G,a=(G=((C=(b=N.JSC$21418_watchApi.getWatchNextResponse())==null?void 0:(S=b.contents)==null?void 0:(P=S.twoColumnWatchNextResults)==null?void 0:(H=P.results)==null?void 0:(K=H.results)==null?void 0:K.contents)!=null?C:[]).find(function(R){return!!R.videoPrimaryInfoRenderer}))==null?
void 0:G.videoPrimaryInfoRenderer;
(b=_.es(a==null?void 0:a.title))&&N.JSC$21418_watchApi.dispatchEvent("yt-update-title",b)};var RHO=function(N){_.E5.call(this);this.JSC$21421_watchApi=N;akE(this)};
_.F(RHO,_.E5);var akE=function(N){var b,S;_.r(function(P){if(P.nextAddress==1)return P.yield(N.JSC$21421_watchApi.playerApi,2);b=P.yieldResult;S=function(){N.onYpcContentRequest()};
b.addEventListener("onYpcContentRequest",S);N.addOnDisposeCallback(function(){b.removeEventListener("onYpcContentRequest",S)});
_.Zd(P)})};
RHO.prototype.onYpcContentRequest=function(){var N,b,S,P,H,K=(N=this.JSC$21421_watchApi.getWatchNextResponse())==null?void 0:(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.secondaryResults)==null?void 0:(H=P.secondaryResults)==null?void 0:H.offerModule,C,G,a,R;N=(R=(a=(G=(C=K==null?void 0:K.episodeOfferModuleRenderer)!=null?C:K==null?void 0:K.movieOfferModuleRenderer)!=null?G:K==null?void 0:K.unlimitedOfferModuleRenderer)!=null?a:K==null?void 0:K.liveOfferModuleRenderer)!=
null?R:K==null?void 0:K.tvfilmOfferModuleRenderer;var n,d,m;K=(m=K==null?void 0:(n=K.tvfilmOfferModuleRenderer)==null?void 0:(d=n.actionButtons)==null?void 0:d.length)!=null?m:0;d=Math.max(K-1,0);var k,M,l;n=(l=N==null?void 0:(k=N.offerButton)==null?void 0:k.buttonRenderer)!=null?l:N==null?void 0:(M=N.actionButtons)==null?void 0:M[d].buttonRenderer;var u,J;(k=(J=(u=n==null?void 0:n.navigationEndpoint)!=null?u:n==null?void 0:n.serviceEndpoint)!=null?J:n==null?void 0:n.command)&&_.rG.instance.resolveCommand(k)};var WE_=function(N){ld.call(this);var b=this;this.rootElement=N;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){b.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.F(WE_,ld);_.v=WE_.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(N){return this.rootElement.getElement(N)};
_.v.setPlayerResponse=function(N){this.playerResponse=N;this.publish("PLAYER_RESPONSE_UPDATED",N)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(N){this.watchNextResponse===N?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=N,this.publish("WATCH_NEXT_RESPONSE_UPDATED",N))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(N,b){var S=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.Kt(_.sX.getInstance(),(P[N]=b,P),this.getRoot())}else this.actionHandlers.has(N)||(this.actionHandlers.set(N,[]),P={},_.Kt(_.sX.getInstance(),(P[N]=function(){var H=_.$I.apply(0,arguments);return(S.actionHandlers.get(N)||[]).map(function(K){return K.apply(null,_.IX(H))})},P),this.getRoot())),this.actionHandlers.get(N).push(b)};
_.v.unregisterActionHandler=function(N){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.vz(_.sX.getInstance(),(b[N]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(N))?(b.pop(),b.length===0&&(b={},_.vz(_.sX.getInstance(),(b[N]=!0,b),this.getRoot()),this.actionHandlers.delete(N))):_.$h(new _.jU("Attempted to unregister an action handler which is not registered.",N))};
_.v.addPageDisposeJob=function(N){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.QUs(this.rootElement.pageDisposeJobs,N)};
_.v.removePageDisposeJob=function(N){this.rootElement.pageDisposeJobs&&_.zo(this.rootElement.pageDisposeJobs,N)};
_.v.dispatchEvent=function(N,b){_.bC(this.rootElement,N,b)};
_.v.provideRenderingData=function(N,b){this.rootElement.provideRenderingData(N,b)};
_.v.scrollWatchTo=function(N,b){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(N,b)};
_.v.focusOnPlayer=function(){var N=this.getElement("PLAYER");_.W_(N,function(){if(N&&N.firstElementChild){var b=N.querySelector(".html5-video-player");b&&(_.u8(_.aN().resolve(_.mh)),b.focus())}else _.$h(Error("Ol"))})};
var n2a=function(N){var b=!!N.rootElement.theater,S=!!N.rootElement.fullscreen,P;(P=N.watchCinematicManager)==null||OPQ(P,S,b)};
_.v=WE_.prototype;_.v.subscribeToActiveChanged=function(N,b){b=b===void 0?!0:b;var S=_.hT(_.h0(),apL,function(P){N(P)});
b&&N(apL(_.h0().getState()));return S};
_.v.isActive=function(){return apL(_.h0().getState())};
_.v.onAttached=function(){var N=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(N=_.aN().resolve(_.Qut).retriever.getFlag(_.CSz));(N||_.g8("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.v.initPersistentModules=function(){if(_.T("kevlar_watch_flexy_theater_manager")){var N=new roE(this);_.QS(this,N)}N=new Luo(this);_.QS(this,N);N=new f4(this);_.QS(this,N);N=new kVi(this);_.QS(this,N);N=new AW(this);_.QS(this,N);N=new ul(this);_.QS(this,N);_.T("kevlar_watch_flexy_playlist_manager")&&(N=new KEi(this),_.QS(this,N))};
_.v.initOrDisposeActiveModules=function(N){N?(this.watchScrollManager=new Xa(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new pbw(this)),this.activeModules.push(new GAJ(this)),this.activeModules.push(new cWt(this)),this.activeModules.push(new U3q(this)),_.T("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new WS6(this)),this.activeModules.push(new eIq(this)),_.T("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new RHO(this)),_.T("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new LCa(this)),_.NI("kevlar_watch_cinematics")&&(this.watchCinematicManager=new SgQ(this),this.activeModules.push(this.watchCinematicManager),n2a(this)),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new wbJ(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new Fuw(this)),N=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!N&&this.activeModules.push(new aOo(this)),
_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Qxw(this)),this.activeModules.push(new mAJ(this)),this.activeModules.push(new y9q(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new MKt(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new I0n(this)),_.T("web_watch_enable_multiview_manager")&&this.activeModules.push(new Zpq(this)),_.T("web_fullscreen_components")&&this.activeModules.push(new Tsq(this)),_.T("web_player_rtr_ctrls")&&
this.activeModules.push(new VuE(this))):(_.nT(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.v.disposeInternal=function(){ld.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.d0.Object.defineProperties(WE_.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.qu(_.A(function(N){var b=_.Ct("script");_.gA(function(){var S;if(S=JSON)S=zSQ(N.data()),S=_.Cg(JSON.stringify(S).replace(/</g,"\\u003C"));var P=N.data(),H=_.es(P.title).trim().length===0,K=!P.publishDate||P.publishDate.trim().length===0,C,G,a,R,n=!((C=P.thumbnail)==null?0:(G=C.thumbnails)==null?0:G.length)||!((a=P.thumbnail)==null?0:a.thumbnails[0].url)||((R=P.thumbnail)==null?void 0:R.thumbnails[0].url.trim().length)===0;b.value&&S&&!(H||K||n)&&_.r$(b.value,S)},"Vy9K7b");
return _.c("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.c("script",{el:b,type:"application/ld+json"}))},"nk"),"player-microformat-renderer",{props:{data:_.er}});var dga={},mgi=["learning-journey-engagement-panel","PAlearning_chat"];
dga.YtdLearningJourneyWatchBehavior=[_.h.YtRendererBehavior,_.tC.YtPlayerListenerBehavior,_.un.YtRendererstamperBehavior,_.pG.YtActionHandlerBehavior,Bj.YtPageBehavior,_.EQ.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.g8("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.T("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.d7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.d7("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.NI("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_rounded_player_large")||_.T("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var N=this;this.watchController=void 0;this.pageDisposeJobs=[function(){N.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||N.clearComments_()},
function(){N.clearPlayerAds_()},
function(){N.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new jlq(function(){return _.h8(N)},
this.hostElement);
this.pageDisposeJobs.push(function(){N.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){N.resetFullerscreenEduButtonForNewPlayback_()}));
_.T("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.f1;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.T("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.T("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.aA(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(N){N&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:N}),N.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(N){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=N,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(N){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||N||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(N){this.active!==void 0&&(this.fullscreen=N,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(N){this.active!==void 0&&(_.bC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(N>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(N){this.initCsi_();this.updatePageData_(N)},
updatePageData_:function(N){var b=this;if(N)if(this.data===N){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=N;this.playlist&&_.lC({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.uC("nw");this.loading=!1;_.XC(_.Dj,function(){b.initDclkstatus_();var P,H=((P=b.player)==null?void 0:P.getVideoData().cpn)||"";Ysw(function(K,C){IYO(K,C,H)})})},
onPageLoadWithSameData_:function(){_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var N=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!N);this.set("loadingData.playlistLoading",N&&N!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),N=this.watchNextSkeletonEl_.firstElementChild;N;)N.classList.remove("hidden"),N=N.nextElementSibling;var b,S,P;N=(b=this.loadingData)==null?void 0:(S=b.endpoint)==null?void 0:(P=S.watchEndpoint)==null?void 0:P.videoId;var H;N&&(H="https://i.ytimg.com/vi/"+N+"/frame0.jpg");_.H4(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var N=_.H4(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&N&&(N.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,S;(S=(b=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(b);var P,H;(H=(P=this.watchMetadata).resize)==null||H.call(P)}_.H4(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(N){var b=_.H4(this.hostElement).querySelector(N);b?_.wp(b,!1):_.$h(new _.jU("Overscroll monitor not found for component: ",N))},
removeSplitScrollMouseTrap:function(N){var b=_.H4(this.hostElement).querySelector(N);b?_.N7(b):_.$h(new _.jU("Disposal component for  overscroll monitoring not found: ",N))},
onLoadingChanged_:function(N){N?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(N){var b=this;N?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Dj.addLowPriorityJob(function(){b.onWindowResized_(_.my(!0))})},
updateTheaterModeState_:function(N){if(!_.T("kevlar_watch_flexy_theater_manager")){N=N||this.fullWindowMode_;if(this.theater!==void 0||N)this.theater=N;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();N&&Ln_()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var N=this.theater;_.T("external_fullscreen")&&this.fullscreen&&(N=!0);N=N?_.H4(this.hostElement).querySelector("#player-full-bleed-container"):_.H4(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),S=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");b.parentElement!==N&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.h8(this).appendTo(N,b),N.appendChild(_.H4(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var N=this;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.aN().resolve(_.E_).deactivate(),2);N.updatePlayerLocation();_.Zd(b)})},
updateCinematicsLocation:function(){var N=this.getElement("CINEMATICS");if(N){var b=this.getCinematicsLocationContainer();N.parentElement!==b&&b.appendChild(N);var S;(S=this.watchController)==null||n2a(S)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.H4(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.H4(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(N,b){var S=document.documentElement.hasAttribute("dark"),P=!S&&this.cinematicLightTheme;return N&&S||b&&S||(b||N)&&P},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.aN().resolve(_.dt).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var b,
S,P;if((b=this.data)==null?0:(S=b.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:P.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var H,K;((H=this.data)==null?0:(K=H.contents)==null?0:K.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(N){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);N&&N.playabilityStatus&&(b=this.isVideoPlayable_(N.playabilityStatus,this.getPlayerOverlays_(this.data)),N=this.isLiveStreamOffline_(N.playabilityStatus),b&&!N||_.W_(this,function(){_.uC("pbu")}));
this.setPlayerAds_();_.PN(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(N){_.h0().dispatch(_.HU({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));N?this.activate_():this.deactivate_()},
attached:function(){var N=this;this.watchController=new WE_(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.h8(this);_.T("kevlar_disable_prepare_player")||b.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.aN().resolve(_.dt).setPlayer(b);this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":py()+
"px"};!_.d7("kv_pl_mx_sz_ks")&&_.d7("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=JMQ+"px");_.d7("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=Z7n+"px");this.safeUpdateStyles(b);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new fPw(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return N.onPlayerTouchPanDown_()}}));
_.T("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.H4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var N=py(),b=Yf+N,S=b;this.fixedPanels&&(b+=oH5);var P=657+N;N=1327+N;_.H4(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.H4(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(N+"px)");_.H4(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(N+"px)");_.H4(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+S+"px)"},
calculateCurrentPlayerSize_:function(){var N=_.H4(this.hostElement).querySelector("#miniplayer-bar").firstChild;return N&&N.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Jh(NaN,NaN):jq5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return jq5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Wv(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var N=this;this.onWindowResized_(_.my());_.T("browse_skeleton_removal_on_watch_killswitch")||_.g8("IS_SHELL_LOAD")&&ZAi();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.h8(this);b.addEventListener("yt-player-updated",_.aA(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(S){N.playerApiReady_(S)});
_.T("kevlar_watch_flexy_playlist_manager")||(b=_.aN().resolve(_.dt),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.aA(this,this.onYtNavigate_)),b.setPlaylistComponent(_.H4(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.aA(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Dj.addLowPriorityJob(function(){_.bC(N.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.h8(this).removeEventListener("yt-player-updated",_.aA(this,this.onPlayerUpdated_));if(!_.T("kevlar_watch_flexy_playlist_manager")){var N=_.aN().resolve(_.dt);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&N.removeEventListener("yt-navigate",_.aA(this,this.onYtNavigate_));N.cancelVideoSkip();N.removeEventListener("yt-playlist-data-updated",_.aA(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bC(this.hostElement,"yt-autonav-pause-player",!1);N=_.hw();_.T("kevlar_exit_fullscreen_leaving_watch")&&N&&_.qy(N)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(N){this.player&&this.player.updateVideoData({rvs:N.rvs})},
getPageContents:function(N){return N&&N.contents&&N.contents.twoColumnWatchNextResults&&N.contents.twoColumnWatchNextResults.results&&N.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(N){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N)},
onRetrieveLocation_:function(N,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);N.stopPropagation()},
onSubscriptionChanged_:function(N,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){lYi("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.H4(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.H4(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(N){this.player=N;this.setPlayerState(N.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.Ex()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(N,b){b=b===void 0?!0:b;_.hw()&&_.T("external_fullscreen")&&_.qy(document.documentElement);this.theaterRequested_=N;b&&_.iQ("wide",N?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bC(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(N){_.hd(N,typeof this.player),this.player&&_.hd(N,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var N;((N=this.player)==null?0:N.isFullscreen())?this.player.toggleFullscreen():_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(N,b){return this.loading?b:!!Object.keys(N).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(N){if(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next())b=b.value,b.youThereRenderer&&XD_(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(N){return N||{}},
userEngagementConfigDataChanged_:function(N){if(N)if(N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.nv()<N.lowEngagementThresholdMs||yiq(b,!0)}else N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.St(this.hostElement,"yt-autonav-pause-user-engagement",[N])},
isPlayerUnavailable_:function(N,b,S){return!!N&&!this.isVideoPlayable_(N,S)&&!b},
getPlayerOverlays_:function(N){return(N==null?void 0:N.playerOverlays)||null},
isVideoPlayable_:function(N,b){if(!N)return!1;var S=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",N)||this.get("errorScreen.ypcTrailerRenderer",N);N=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",N);var H;b=b==null?void 0:(H=b.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!S||!!P||!!N||!!b},
hasWatchNextResponseErrorRenderer:function(N){var b=this.getPageContents(N),S,P,H,K,C;return!(N==null?0:(S=N.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((H=b[0])==null?0:(K=H.itemSectionRenderer)==null?0:(C=K.contents[0])==null?0:C.backgroundPromoRenderer)},
isLiveStreamOffline_:function(N){return N?N.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(N,b,S){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.T("web_no_skip_video_on_verification_checks")?(N==null?void 0:N.status)&&H.includes(N.status):N&&N.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",N);K==void 0&&(K=!0);!S||this.isVideoPlayable_(N,this.getPlayerOverlays_(b))||
P||H||!K||_.aN().resolve(_.dt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();hsa()},
onPlayerFeedbackStartRequest_:function(N){_.St(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:N}])},
onPlayerFeedbackArticleRequest_:function(N){_.St(this.hostElement,"yt-help-dialog-requested",[N])},
onPlayerYpcContentRequest_:function(){var N,b,S,P,H,K,C,G,a=((N=this.data)==null?NaN:(b=N.contents)==null?NaN:(S=b.twoColumnWatchNextResults)==null?NaN:(P=S.secondaryResults)==null?NaN:(H=P.secondaryResults)==null?NaN:(K=H.offerModule)==null?NaN:(C=K.tvfilmOfferModuleRenderer)==null?NaN:(G=C.actionButtons)==null?NaN:G.length)-1;N=[".offerButton.buttonRenderer.",".actionButtons."+(a>=0?a:0)+".buttonRenderer."];b=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=b.next();!S.done;S=b.next())for(S=S.value,P=_.O(N),H=P.next();!H.done;H=P.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.c7(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(N){_.bC(this.hostElement,"yt-autonav-pause-player",N)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(N){N()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bC(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(N)},
setPlayerState:function(N){_.h0().dispatch(_.Vm9(N))},
onPlayerSubscribe_:function(N){_.St(this.hostElement,"yt-player-subscribe",[N])},
onPlayerUnsubscribe_:function(N){_.St(this.hostElement,"yt-player-unsubscribe",[N])},
onPlayerAdYtShowToast_:function(N){_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:N.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(N){if(N)return N},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(N){return!_.NI("web_watch_move_summary_to_sd")&&!!N},
computeWatchMetadataRefresh:function(){return _.T("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var N,b,S,P;this.watchNextSecondaryResults=(N=this.data)==null?void 0:(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.secondaryResults)==null?void 0:P.secondaryResults}},
setRichGridRendererData:function(N){this.richGridRendererData=N},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var N,b=(N=this.data)==null?void 0:N.engagementPanels;if(b==null?0:b.length){N=null;b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;if(((P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){N=S;break}}var H,K,C;N=(H=N)==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:(C=K.content)==null?void 0:C.structuredDescriptionContentRenderer;if(N==null?0:N.items){H=
[];K=_.O(N.items);for(C=K.next();!C.done;C=K.next()){C=C.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var G=P=S=b=N=void 0,a=void 0,R=(N=C.horizontalCardListRenderer)==null?void 0:(b=N.header)==null?void 0:(S=b.richListHeaderRenderer)==null?void 0:(P=S.navigationButton)==null?void 0:(G=P.buttonRenderer)==null?void 0:(a=G.command)==null?void 0:a.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(n){return!_.t(n,dh5)}))}C.expandableVideoDescriptionBodyRenderer||
C.videoDescriptionHeaderRenderer||H.push(C)}return{items:H}}}},
constructWarning_:function(N){return{text:_.gy(N),type:"WARNING"}},
isPlaShelfEnabled_:function(N){if((this.get("adPlacements",N)||[]).length)return!0;N=this.get("playerAds",N)||[];return!(!N.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",N[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var N=this;_.bC(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.h8(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(N.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bC(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var N=this;this.commentsReady=!1;_.Dj.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.XC(_.Dj,function(){N.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.uC("cmi");_.Dj.cancelJob(this.setCommentsJobId_);var N=this.getPageContents(this.data);if(N&&N.length){N=_.O(N);for(var b=N.next();!b.done;b=N.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.uC("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Dj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Dj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(N,b){var S=_.t(b.endpoint,_.Iv);S&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==b.videoId||S.playlistId&&S.playlistId!==b.playlistId||S.index!==void 0&&S.index!==b.index||typeof S.startTimeSeconds!=="number"||(N.stopPropagation(),this.setScrollTop(0),_.h8(this).getPlayerPromise().then(function(P){var H=S.startTimeSeconds;P.seekTo(H);P.wakeUpControls();H<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var N=Zt5();"t"in N&&(N=VrJ(N.t),this.player.seekTo(N,!0))},
updateTitleFromWatchNext:function(N){N=this.getPageContents(N);var b,S;(N=_.es(N==null?void 0:(b=N[0])==null?void 0:(S=b.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.bC(this.hostElement,"yt-update-title",N)},
updateTitle_:function(N){N=this.get("videoDetails.title",N)||"";_.bC(this.hostElement,"yt-update-title",N)},
syncWithRemoteVideo_:function(N,b,S){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===S&&(S=P.list,_.T("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),P.video_id!==N||S!=b)){var H;_.T("kevlar_player_watch_endpoint_navigation")?H=_.BwU(kYt(N,b)):H=this.buildWatchEndpoint_(N,b);_.bC(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(N,b,S){return _.N6(N,b,S)},
initDclkstatus_:function(){AZ5()},
attachWatchPageSkeleton_:function(){var N=document.querySelector("#watch-page-skeleton");if(N){var b=N.querySelector("#primary-info"),S=N.querySelector("#secondary-info"),P=N.querySelector("#related");b&&_.H4(this.hostElement).querySelector("#info-skeleton").appendChild(b);S&&_.H4(this.hostElement).querySelector("#meta-skeleton").appendChild(S);P&&(_.H4(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.Zg(N)}},
handlePlayerUpdated_:function(){_.h8(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(N,b){if(this.watchNextSkeletonEl_&&typeof b!=="undefined"){var S=this.watchNextSkeletonEl_.children,P=N&&N.indexSplices.length?N.indexSplices[0].index:0;N=Math.min(this.watchNextShownItems.length,S.length);b||(P=0,N=S.length);for(b=P;b<N;b++)S[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(N){_.T("external_fullscreen")||_.St(this.hostElement,"yt-player-fullscreen",[N.fullscreen])},
onFullscreenChange_:function(N){this.fullscreen=N;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.h8(this);b.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.hw())});
this.updateFullBleedElementLocations();N&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(N,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(N){return N},
computeShouldShowMerchShelf:function(N,b){return b&&!!N},
computeResponseHasComments:function(N){var b,S,P,H,K;return!!(N==null?0:(b=N.contents)==null?0:(S=b.twoColumnWatchNextResults)==null?0:(P=S.results)==null?0:(H=P.results)==null?0:(K=H.contents)==null?0:K.some(function(C){var G;return(C==null?void 0:(G=C.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(N,b){this.responseHasComments=this.computeResponseHasComments(this.data);return!!N&&!!Object.keys(N).length&&!b},
identity:_.iY,onWindowResized_:function(N){this.windowSize_=N;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(N){var b=this;N&&N.type!=="dataloaded"&&N.type!=="dataupdated"||_.h8(this).getPlayerPromise().then(function(S){var P=S.getPlayerState();P!==5&&P!==0&&(S=1/S.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==S&&(b.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(N){var b=this,S=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),P=function(){if(b.watchMetadata){var H,K;(K=(H=b.watchMetadata).resize)==null||K.call(H)}_.h8(b).getPlayerPromise().then(function(C){if(_.NI("kevlar_set_internal_player_size")){if(!S||!b.isMiniplayerActive()){var G=b.calculateCurrentPlayerSize_();C.setInternalSize(G.width,G.height)}}else C.setSize(NaN,NaN);_.T("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
N?P():_.ml(_.Dj,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(N){this.set("data.survey",N.detail)},
onYtShowSurveyCommand_:function(N){this.set("data.survey",_.t(N,qDJ).survey)},
onDownloadedVideoDeleted:function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1){if(!b.active||(S=b.playerData)==null||!S.offlineState||b.videoId!==N)return H.return();(P=b.player)==null||P.stopVideo();_.gU().navigatingAwayFromWatchDeletedVideo=!0;_.c7(_.oKL,b.hostElement);return H.yield(_.gU().navigationFinishPromise,2)}_.gU().navigatingAwayFromWatchDeletedVideo=!1;_.Zd(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var N;this.theater?N=_.j3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):N=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==N&&(this.watchWhileScrollThreshold_=N,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var N=_.H4(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&N){var b=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!N.active&&b&&S>=this.watchWhileScrollThreshold_?(N.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):N.active&&(!b||S<this.watchWhileScrollThreshold_&&!_.hw())&&(N.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(N,b){if(N!==!0||b!==void 0){N=!_.T("live_chat_over_engagement_panels");b=_.H4(this.hostElement).querySelector("#chat-container");var S=_.H4(this.hostElement).querySelector("#plj-sidebar"),P=_.H4(this.hostElement).querySelector("#panels"),H=_.H4(this.hostElement).querySelector("#plj-panels"),K=_.H4(this.hostElement).querySelector("#plj-playlist"),C=_.H4(this.hostElement).querySelector("#alerts"),G=_.H4(this.hostElement).querySelector("#playlist"),a=_.H4(this.hostElement).querySelector("#related"),
R=_.H4(this.hostElement).querySelector("#donation-shelf"),n=_.H4(this.hostElement).querySelector("#comments");this.isTwoColumns_?(C=_.H4(this.hostElement).querySelector("#secondary-inner"),C.appendChild(S),S.appendChild(K),K.appendChild(G),S.appendChild(H),N&&C.appendChild(P),_.T("web_watch_theater_chat")||C.appendChild(b),N||C.appendChild(P),C.appendChild(R),C.appendChild(a)):(N&&_.pL(P,C),_.pL(G,C),_.T("web_watch_theater_chat")||_.pL(b,C),N||_.pL(P,C),_.pL(R,C),n&&(H&&_.pL(H,n),_.pL(a,n)));_.T("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.T("web_watch_theater_chat")){var N=_.H4(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.T("web_watch_theater_chat_beside_player")?(b=_.H4(this.hostElement).querySelector("#panels-full-bleed-container"),(N==null?void 0:N.parentElement)!==b&&b.append(N),this.panelsBesidePlayer=!0):_.T("web_watch_theater_fixed_chat")&&
(b=_.H4(this.hostElement).querySelector("#columns"),(N==null?void 0:N.parentElement)!==b&&b.append(N),this.fixedPanels=!0):(_.T("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.T("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.H4(this.hostElement).querySelector("#playlist"),N&&b?_.Yv(N,b):_.$h(new _.jU("Missing element when updating chat location",{"chatContainer defined":!!N,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(N,b){return _.T("sw_metadata_vis_toggle_ks")?!0:!!N||!!b},
computeForceDarkPanelTheme:function(N){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&N:!1},
safeUpdateStyles:function(N){try{_.rq(this.hostElement,N)}catch(b){_.$h(b)}},
videoHeightToWidthRatioChanged_:function(N,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.T("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(N){this.videoHeightToWidthRatio_=1/N},
computeIsVerticalVideo_:function(N){return N>=1},
computeIsFourThreeToSixteenNineVideo_:function(N){return N<=.7501&&N>=.5624},
computeIsExtraWideVideo_:function(N){return N<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.h8(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.h8(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){I4J(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(N){var b=_.l1(N)||0;_.Bd(N,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var N=_.l1("yt-fullerscreen-edu-button-click-count")||0,b=_.l1("yt-fullerscreen-edu-button-shown-count")||0,S=_.d7("external_fullscreen_button_shown_threshold"),P=N>=_.d7("external_fullscreen_button_click_threshold")||b>=S;_.h8(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(N,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.aN().resolve(_.dt).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var N=this;this.panelMaxHeightUpdateJob_&&_.Dj.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Dj.addLowPriorityJob(function(){N.panelMaxHeightUpdateJob_=0;var b;!N.isTwoColumns_||N.theater||N.fullscreen?b=460:b=N.calculateNormalPlayerSize_().height;var S=b+"px";_.T("live_chat_taller_height")&&!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.T("live_chat_medium_height")&&
!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");N.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})})},
onYtShowEngagementPanelScrimAction_:function(N){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",N)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.sR(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(N){var b=_.H4(this.hostElement).querySelector("#engagement-panel-scrim");N?b.addEventListener("tap",_.aA(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.aA(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(N){if(this.hostElement.contains(N)&&!this.scrollToAnimation_.isAnimating()){var b=N.offsetTop-24;N=N.offsetTop+N.offsetHeight+24;var S=this.getPageScrollingElement(),P=this.getScrollTop(),H=P+S.clientHeight-56;if(b<P+56)b-=56;else if(N>H)b=N-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var N=this.hostElement.querySelector("#comments");if(N&&!this.scrollToAnimation_.isAnimating()){N=N.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(N-=_.Z2().height/3,N<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtEngagementPanelVisibleChanged:function(N,b,S){this.active&&this.trackEngagementPanelVisibility&&!RIw.includes(S)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(S),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(N){return N?"":"watch-active-metadata"},
computeNewMetadataClass:function(N){return N?"watch-active-metadata":""},
computeFullBleedPlayer:function(N,b){return N||b},
computeDefaultLayout:function(N){return!N},
computeDefaultTwoColumnLayout:function(N,b){return!N&&b},
computeWatchWhilePanelsActive:function(N,b){return N||b},
computeNoBorderOnChat:function(N){return _.T("web_watch_theater_chat_no_border")&&N},
computeLiveChatPresentAndExpanded:function(N,b){return N&&!b},
computePanelExpanded:function(N,b,S){return N||b||S},
onChangeMarkersVisibility:function(N){_.h8(this).getPlayerPromise().then(function(b){var S;(S=b.changeMarkerVisibility)==null||S.call(b,_.t(N,Fd).isVisible||!1,_.t(N,Fd).entityKeys||[],_.t(N,Fd).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(N){this.liveChatCollapsed=N.detail;_.h0().dispatch(XFq(N.detail))},
provideRenderingData:function(N,b){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(N){this.cinematicsActive=N},
isMiniplayerActive:function(){return _.aN().resolve(_.E_).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(N){return mgi.map(function(b){return N.find(function(S){var P;return(S==null?void 0:(P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===b})}).filter(function(b){return b!==void 0})},
getNonLearningJourneyEngagementPanels:function(N){return N.filter(function(b){var S;return!mgi.includes((b==null?void 0:(S=b.engagementPanelSectionListRenderer)==null?void 0:S.targetId)||"")})}}];var EO=function(){return _.kq.apply(this,arguments)||this};
_.F(EO,_.kq);_.v=EO.prototype;_.v.activeChanged=function(){if(this.active){var N=_.H4(this.hostElement).querySelector("#header");N&&_.bC(N,"iron-resize");window.addEventListener("scroll",_.aA(this,this.onScroll))}else window.removeEventListener("scroll",_.aA(this,this.onScroll)),_.bC(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.v.guideVisibleChanged=function(){var N=_.H4(this.hostElement).querySelector("#header");N&&_.bC(N,"iron-resize")};
_.v.onScroll=function(){var N=this;_.Yq(this,"onScroll",function(){var b=_.H4(N.hostElement).querySelector("#header");b&&b.polymerController&&(b=b.polymerController.getScrollState().progress===1?"standard":"seamed",_.bC(N.hostElement,"yt-request-panel-mode-change",{mode:b}))},10)};
_.v.tabsChanged=function(){if(this.tabs){for(var N=null,b=0,S=this.tabs.length;b<S;++b){var P=this.tabs[b].tabRenderer;if(P&&P.selected){N=b;break}}this.selected=N}};
_.v.onTabsActivate=function(N){_.bC(this.hostElement,"yt-navigate",{endpoint:this.tabs[N.detail.selected].tabRenderer.endpoint})};
EO.prototype.tabsChanged=EO.prototype.tabsChanged;EO.prototype.guideVisibleChanged=EO.prototype.guideVisibleChanged;EO.prototype.activeChanged=EO.prototype.activeChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],EO.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.y("design:type",Array)],EO.prototype,"tabs",void 0);
_.p([_.U(),_.y("design:type",Object)],EO.prototype,"selected",void 0);_.p([_.U(),_.y("design:type",Boolean)],EO.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],EO.prototype,"disableHeaderFluidWidth",void 0);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EO.prototype,"activeChanged",null);
_.p([_.W4("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EO.prototype,"guideVisibleChanged",null);_.p([_.W4("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EO.prototype,"tabsChanged",null);_.p([_.Td()],EO);var khJ=[_.h.YtRendererBehavior,_.n5.YtdGuideStateAwareBehavior,EO.prototype];var tBE=function(N){_.E5.call(this);var b=this;this.JSC$21453_watchApi=N;this.observer=null;var S=this.JSC$21453_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ThO(b)});
this.addOnDisposeCallback(function(){b.JSC$21453_watchApi.unsubscribeByKey(S);b.observer&&(b.observer.disconnect(),b.observer=null)});
ThO(this)};
_.F(tBE,_.E5);var ThO=function(N){var b,S,P,H,K;_.r(function(C){if(C.nextAddress==1){N.observer&&(N.observer.disconnect(),N.observer=null);b=N.JSC$21453_watchApi.getWatchNextResponse();if(!b)return C.return();S=_.t(b,otq);return((P=S)==null?0:P.enableCreatorChatbot)&&S.creatorChannelId?_.T("enable_creator_chatbot_link_out")?C.yield((0,_.Mc)("NSzT5"),6):C.yield((0,_.Mc)("NSzT5"),5):C.jumpTo(0)}if(C.nextAddress!=6)return H=_.MBa,H(S.creatorChannelId),C.jumpTo(0);K=_.FE5;K(S.creatorChannelId);_.Zd(C)})};var p4=function(N){_.E5.call(this);this.JSC$21457_watchApi=N;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Bhi(this)};
_.F(p4,_.E5);var Bhi=function(N){_.r(function(b){if(b.nextAddress==1)return b.yield(lkQ(N),2);LEE(N);_.Zd(b)})},lkQ=function(N){var b,S,P,H,K,C,G,a,R;
return _.r(function(n){if(n.nextAddress==1)return n.yield(N.JSC$21457_watchApi.playerApi,2);b=n.yieldResult;N.JSC$21457_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){fka(N)});
N.JSC$21457_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){N.isShelfVisible?uan(N):Y2(N)});
S=_.h0().subscribe(function(){N.isTheaterMode=_.QC(_.h0().getState());N.isTheaterMode?Y2(N):QZi(N)});
P=N.JSC$21457_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LEE(N)});
H=function(d){N.onCueRangeEnter(d)};
b.addEventListener("onCueRangeEnter",H);K=function(d){N.onCueRangeExit(d)};
b.addEventListener("onCueRangeExit",K);C=function(){N.isSeeking=!0};
b.addEventListener("SEEK_TO",C);G=function(){N.onSeekComplete()};
b.addEventListener("SEEK_COMPLETE",G);a=function(){N.onAdStart()};
b.addEventListener("onAdStart",a);R=function(){N.onAdComplete()};
b.addEventListener("onAdComplete",R);N.addOnDisposeCallback(function(){S();N.JSC$21457_watchApi.unsubscribeByKey(P);b.removeEventListener("onCueRangeEnter",H);b.removeEventListener("onCueRangeExit",K);b.removeEventListener("SEEK_TO",C);b.removeEventListener("SEEK_COMPLETE",G);b.removeEventListener("onAdStart",a);b.removeEventListener("onAdComplete",R)});
_.Zd(n)})},xg5=function(N){var b,S,P,H,K,C,G,a,R;
return(K=(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.results)==null?void 0:(H=P.results)==null?void 0:H.contents)==null?void 0:(C=K.find(function(n){var d,m,k;return(d=n.itemSectionRenderer)==null?void 0:(m=d.contents)==null?void 0:(k=m[0])==null?void 0:k.shoppingTimelyShelfViewModel}))==null?void 0:(G=C.itemSectionRenderer)==null?void 0:(a=G.contents)==null?void 0:(R=a[0])==null?void 0:R.shoppingTimelyShelfViewModel},LEE=function(N){var b;
_.r(function(S){if(S.nextAddress==1)return(b=N.JSC$21457_watchApi.getWatchNextResponse())?S.yield(fka(N),2):S.return();N.shoppingTimelyShelfViewModel=xg5(b);o2t(N);i4n(N);_.Zd(S)})},o2t=function(N){var b,S=(b=N.shoppingTimelyShelfViewModel)==null?void 0:b.offerIdToVariants;
S&&(b=S.filter(function(P){return P.key&&P.value}).map(function(P){return[P.key,
P.value]}),N.variantsMap=new Map(b))},i4n=function(N){var b,S,P,H,K,C;
_.r(function(G){if(G.nextAddress==1)return(S=(b=N.shoppingTimelyShelfViewModel)==null?void 0:b.cueRanges)?G.yield(N.JSC$21457_watchApi.playerApi,2):G.return();P=G.yieldResult;N.cueRanges=S;H=_.O(S);for(K=H.next();!K.done;K=H.next())C=K.value,C.startTime!==void 0&&C.endTime!==void 0&&C.id!==void 0&&P.addCueRange("shopping_timely_shelf"+C.id,JW_(C.startTime),JW_(C.endTime));_.Zd(G)})},JW_=function(N){return Number(N.seconds||0)+(N.nanos||0)/1E9};
p4.prototype.onCueRangeEnter=function(N){if(N.startsWith("shopping_timely_shelf")&&(this.activeCueId=N,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){N=N.substring(21);var b,S,P=(b=this.variantsMap)==null?void 0:(S=b.get(N))==null?void 0:S.shelf;P&&(this.JSC$21457_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",P),uan(this))}};
p4.prototype.onCueRangeExit=function(N){N.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Y2(this))};
p4.prototype.onSeekComplete=function(){this.isSeeking=!1;QZi(this)};
var uan=function(N){N.shoppingTimelyShelfViewModel&&(N.isShelfVisible=!0,_.sX.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Y2=function(N){N.shoppingTimelyShelfViewModel&&N.isShelfVisible&&(N.isShelfVisible=!1,_.sX.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},fka=function(N){var b,S,P,H,K;
return _.r(function(C){if(C.nextAddress==1)return C.yield(N.JSC$21457_watchApi.playerApi,2);b=C.yieldResult;if(N.cueRanges)for(S=_.O(N.cueRanges),P=S.next();!P.done;P=S.next())H=P.value,H.id&&(K="shopping_timely_shelf"+H.id,b.removeCueRange(K));N.JSC$21457_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Y2(N);N.shoppingTimelyShelfViewModel=void 0;N.cueRanges=void 0;N.variantsMap=void 0;N.isSeeking=!1;N.activeCueId=void 0;_.Zd(C)})};
p4.prototype.onAdStart=function(){this.isAdPlaying=!0;Y2(this)};
p4.prototype.onAdComplete=function(){this.isAdPlaying=!1;QZi(this)};
var QZi=function(N){if(N.activeCueId)N.onCueRangeEnter(N.activeCueId);else Y2(N)};var AWi=function(N){_.E5.call(this);var b=this;this.JSC$21464_watchApi=N;N=_.hT(_.h0(),_.XTO,function(){UgQ(b)});
this.addOnDisposeCallback(N);N=_.hT(_.h0(),Rza,function(){UgQ(b)});
this.addOnDisposeCallback(N);Z4L(this);jZt(this);zHO()};
_.F(AWi,_.E5);var Z4L=function(N){var b=function(P){_.h0().dispatch(Aqo(P.matches))},S=window.matchMedia("(max-width: "+(999+py())+"px)");
S.addListener(b);N.addOnDisposeCallback(function(){S.removeListener(b)});
b(S)},jZt=function(N){N.JSC$21464_watchApi.registerActionHandler("yt-window-resized",function(){zHO()});
N.addOnDisposeCallback(function(){N.JSC$21464_watchApi.unregisterActionHandler("yt-window-resized")})},zHO=function(){var N=_.my();
_.h0().dispatch(_.HU({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:N.width,height:N.height}}}))},UgQ=function(N){var b;
_.r(function(S){if(S.nextAddress==1)return S.yield(N.JSC$21464_watchApi.playerApi,2);b=S.yieldResult;b.setSize(NaN,NaN);_.Zd(S)})};var XjL=function(N){_.E5.call(this);var b=_.aN().resolve(_.wH);IJn(b,N.getElement("PLAYER_CONTAINER"),N.getElement("BELOW_THE_PLAYER"),N.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var S=N.getElement("PLAYER_CONTAINER"),P=N.getElement("BELOW_THE_PLAYER"),H=N.getElement("SECONDARY");b.isLockupToWatchTransitionEnabled&&(S&&_.jF(b.viewTransitionCoordinator,S),P&&_.jF(b.viewTransitionCoordinator,P),H&&_.jF(b.viewTransitionCoordinator,H))})};
_.F(XjL,_.E5);var yX=function(N){ld.call(this);var b=this;this.rootElement=N;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){b.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.F(yX,ld);_.v=yX.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(N){return this.rootElement.getElement(N)};
_.v.setPlayerResponse=function(N){this.playerResponse=N;this.publish("PLAYER_RESPONSE_UPDATED",N)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(N){this.watchNextResponse===N?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=N,this.publish("WATCH_NEXT_RESPONSE_UPDATED",N))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(N,b){var S=this;if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.Kt(_.sX.getInstance(),(P[N]=b,P),this.getRoot())}else this.actionHandlers.has(N)||(this.actionHandlers.set(N,[]),P={},_.Kt(_.sX.getInstance(),(P[N]=function(){var H=_.$I.apply(0,arguments);return(S.actionHandlers.get(N)||[]).map(function(K){return K.apply(null,_.IX(H))})},P),this.getRoot())),this.actionHandlers.get(N).push(b)};
_.v.unregisterActionHandler=function(N){if(_.T("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.vz(_.sX.getInstance(),(b[N]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(N))?(b.pop(),b.length===0&&(b={},_.vz(_.sX.getInstance(),(b[N]=!0,b),this.getRoot()),this.actionHandlers.delete(N))):_.$h(new _.jU("Attempted to unregister an action handler which is not registered.",N))};
_.v.addPageDisposeJob=function(N){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.QUs(this.rootElement.pageDisposeJobs,N)};
_.v.removePageDisposeJob=function(N){this.rootElement.pageDisposeJobs&&_.zo(this.rootElement.pageDisposeJobs,N)};
_.v.dispatchEvent=function(N,b){_.bC(this.rootElement,N,b)};
_.v.provideRenderingData=function(N,b){this.rootElement.provideRenderingData(N,b)};
_.v.scrollWatchTo=function(N,b){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(N,b)};
_.v.focusOnPlayer=function(){var N=this.getElement("PLAYER");_.W_(N,function(){if(N&&N.firstElementChild){var b=N.querySelector(".html5-video-player");b&&(_.u8(_.aN().resolve(_.mh)),b.focus())}else _.$h(Error("Ol"))})};
_.v.subscribeToActiveChanged=function(N,b){b=b===void 0?!0:b;var S=_.hT(_.h0(),cZJ,function(P){N(P)});
b&&N(cZJ(_.h0().getState()));return S};
_.v.isActive=function(){return cZJ(_.h0().getState())};
_.v.onAttached=function(){var N=_.T("external_fullscreen");_.T("use_unified_flag_accessor")&&(N=_.aN().resolve(_.Qut).retriever.getFlag(_.CSz));(N||_.g8("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var E2n=function(N){return N.getRoot().is==="ytd-watch-flexy"||N.getRoot().is==="ytd-watch-grid"},IZ=function(N){return N.getRoot().is==="ytd-watch-fixie"};
yX.prototype.initPersistentModules=function(){if(IZ(this)||E2n(this)&&_.T("kevlar_watch_flexy_theater_manager")){var N=new roE(this);_.QS(this,N)}N=new Luo(this);_.QS(this,N);N=new f4(this);_.QS(this,N);N=new kVi(this);_.QS(this,N);N=new AW(this);_.QS(this,N);N=new ul(this);_.QS(this,N);if(IZ(this)||E2n(this)&&_.T("kevlar_watch_flexy_playlist_manager"))N=new KEi(this),_.QS(this,N);_.T("web_thumbnail_to_watch_transition")&&(N=new XjL(this),_.QS(this,N))};
yX.prototype.initOrDisposeActiveModules=function(N){N?(this.watchScrollManager=new Xa(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new pbw(this)),_.T("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new p4(this)),this.activeModules.push(new GAJ(this)),IZ(this)&&this.activeModules.push(new AWi(this)),this.activeModules.push(new cWt(this)),this.activeModules.push(new U3q(this)),(IZ(this)||_.T("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new WS6(this)),
this.activeModules.push(new eIq(this)),(IZ(this)||_.T("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new RHO(this)),(IZ(this)||_.T("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new LCa(this)),_.NI("kevlar_watch_cinematics")&&(this.watchCinematicManager=new SgQ(this),this.activeModules.push(this.watchCinematicManager)),_.T("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new wbJ(this)),_.T("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new Fuw(this)),
N=_.T("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.T("kevlar_watch_flexy_comments_manager")&&!N&&this.activeModules.push(new aOo(this)),_.T("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Qxw(this)),this.activeModules.push(new mAJ(this)),this.activeModules.push(new y9q(this)),_.T("web_enable_timely_actions")&&this.activeModules.push(new MKt(this)),_.T("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new I0n(this)),_.T("web_watch_enable_multiview_manager")&&
this.activeModules.push(new Zpq(this)),_.T("web_fullscreen_components")&&this.activeModules.push(new Tsq(this)),_.T("web_player_rtr_ctrls")&&this.activeModules.push(new VuE(this)),(_.T("enable_creator_chatbot")||_.T("enable_creator_chatbot_link_out"))&&this.activeModules.push(new tBE(this))):(_.nT(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
yX.prototype.disposeInternal=function(){ld.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.d0.Object.defineProperties(yX.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.qu(_.A(function(N){var b=N.data;N=_.O(_.QF(!1,void 0,"VotqNe"));var S=N.next().value,P=N.next().value;_.YU(function(){_.sX.getInstance().triggerAction("yt-request-timely-shelf-state")});
var H=_.UB(function(){var R,n,d=(R=_.t(b().rendererContext,_.mt))==null?void 0:(n=R.loggingDirectives)==null?void 0:n.trackingParams;if(d)return _.FA(d)},void 0,"AvMXxb");
_.Kt(_.sX.getInstance(),{"yt-hide-shopping-timely-shelf":function(){P(!1);var R=_.Qh(),n=H();R&&n&&_.YR(R,[n])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){P(!0);var R=_.Qh(),n=H();R&&n&&_.pA(R,[n])})}});
var K=function(){var R;return(R=b().image)==null?void 0:R.image},C=function(){var R,n;
return!!((R=K())==null?0:(n=R.sources)==null?0:n.some(function(d){var m;return!!(d==null?0:(m=d.clientResource)==null?0:m.imageName)}))},G=function(){var R;
return((R=b().image)==null?void 0:R.height)||40},a=function(){var R;
return(R=b().image)==null?void 0:R.backgroundColor};
N={};return _.c("yt-shopping-timely-shelf-content-view-model",{el:_.VN(_.iK(function(){return b().rendererContext})),
class:_.KU("ytShoppingTimelyShelfContentViewModelHost",(N.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(b().image||b().avatar||b().line1)&&S()},N)),
style:_.r5({"--shopping-timely-shelf-content-padding-top":function(){var R;return AIw((R=b().padding)==null?void 0:R.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var R;return AIw((R=b().padding)==null?void 0:R.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var R;return AIw((R=b().padding)==null?void 0:R.start)},
"--shopping-timely-shelf-content-padding-end":function(){var R;return AIw((R=b().padding)==null?void 0:R.end)},
"--yt-shopping-timely-shelf-background-color":function(){return b().backgroundColor!==void 0?_.o3(b().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var R,n;return((n=(R=b().image)==null?void 0:R.cornerRadius)!=null?n:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return a()!==void 0?_.o3(a()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var R;return(((R=b().image)==null?void 0:R.width)||40)+"px"}})},_.c(_.W,{cond:K,
then:function(R){var n={};return _.c(_.gG,{preserveHeight:!0,preserveWidth:!0,height:G,data:R,alt:"",className:_.KU("ytShoppingTimelyShelfContentViewModelImage",(n.ytShoppingTimelyShelfContentViewModelIcon=C,n))})}}),_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH}),_.c("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.c(_.kY,{data:function(){return b().line1}},{shoppingContentLineViewModel:function(R){return _.c(_.B3,{data:R.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.c(_.kY,{data:function(){return b().line2}},{shoppingContentLineViewModel:function(R){return _.c(_.B3,{data:R.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.c("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.c(_.kY,{data:function(){var R;
return(R=b().button)!=null?R:[]}},{buttonViewModel:function(R){var n=R.data;
return _.c(_.j$,{data:n,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(d){n().onTap&&d.stopPropagation()}})}})))},"ok"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.kg}});var pj5={};
pj5.YtdWatchBehavior=[_.h.YtRendererBehavior,_.tC.YtPlayerListenerBehavior,_.un.YtRendererstamperBehavior,_.pG.YtActionHandlerBehavior,Bj.YtPageBehavior,_.EQ.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.T("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.g8("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.T("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.d7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.d7("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.T("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.T("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.T("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.T("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("swatcheroo_enable_ghost_cards")||_.T("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.T("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.T("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(N,b,S){return N&&(b||!S)},
computeShowGhostRelated_:function(N,b,S){return N&&(b||!S)},
monitorScroll:!0,configureRendererStamper:function(){var N={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.T("swa_prov_panels_ks")?N.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(N.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},N.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return N},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var N=this;this.watchController=void 0;this.pageDisposeJobs=[function(){N.showMetadataPlaceholder_()},
function(){_.T("web_watch_dont_clear_comments")||N.clearComments_()},
function(){N.clearPlayerAds_()},
function(){N.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.T("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.T("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new jlq(function(){return _.h8(N)},this.hostElement);
this.pageDisposeJobs.push(function(){N.youThereManager_.reset()});
_.T("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){N.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.f1;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.T("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.T("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.aA(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(N){N&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:N}),N.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(N){_.T("kevlar_watch_flexy_theater_manager")&&(this.theater=N,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(N){!_.T("kevlar_watch_while_v2")&&!_.T("web_watch_pip")||N||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(N){this.active!==void 0&&(this.fullscreen=N,_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(N){this.active!==void 0&&(_.bC(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.T("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(N>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(N){this.initCsi_();this.updatePageData_(N)},
updatePageData_:function(N){var b=this;if(N)if(this.data===N){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=N;this.playlist&&_.lC({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.uC("nw");this.loading=!1;_.XC(_.Dj,function(){b.initDclkstatus_();var P,H=((P=b.player)==null?void 0:P.getVideoData().cpn)||"";Ysw(function(K,C){IYO(K,C,H)})})},
onPageLoadWithSameData_:function(){_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var N=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!N);this.set("loadingData.playlistLoading",N&&N!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),N=this.watchNextSkeletonEl_.firstElementChild;N;)N.classList.remove("hidden"),N=N.nextElementSibling;if(_.T("kevlar_watch_frame0_loading_state")){var b,S,P;N=(b=this.loadingData)==null?void 0:(S=b.endpoint)==null?void 0:(P=S.watchEndpoint)==null?void 0:P.videoId;var H;N&&(H="https://i.ytimg.com/vi/"+N+"/frame0.jpg");_.H4(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var N=_.H4(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&N&&(N.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,S;(S=(b=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(b);var P,H;(H=(P=this.watchMetadata).resize)==null||H.call(P)}_.T("kevlar_watch_frame0_loading_state")&&(_.H4(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(N){var b=_.H4(this.hostElement).querySelector(N);b?_.wp(b,!1):_.$h(new _.jU("Overscroll monitor not found for component: ",N))},
removeSplitScrollMouseTrap:function(N){var b=_.H4(this.hostElement).querySelector(N);b?_.N7(b):_.$h(new _.jU("Disposal component for  overscroll monitoring not found: ",N))},
onLoadingChanged_:function(N){N?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.T("web_thumbnail_to_watch_transition")&&!_.htO||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.T("web_thumbnail_to_watch_transition")&&!_.htO||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(N){var b=this;N?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Dj.addLowPriorityJob(function(){b.onWindowResized_(_.my(!0))})},
updateTheaterModeState_:function(N){if(!_.T("kevlar_watch_flexy_theater_manager")){N=N||this.fullWindowMode_;if(this.theater!==void 0||N)this.theater=N;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();N&&Ln_()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var N=this.fullBleedPlayer?_.H4(this.hostElement).querySelector("#player-full-bleed-container"):_.H4(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),S=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip");b.parentElement!==N&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.h8(this).appendTo(N,b))},
updateErrorScreenLocation:function(){var N=_.H4(this.hostElement).querySelector("#error-screen"),b=this.fullBleedPlayer?_.H4(this.hostElement).querySelector("#player-full-bleed-container"):_.H4(this.hostElement).querySelector("#player");N.parentElement!==b&&b.appendChild(N)},
deactivateMiniplayerAndResetPlayer:function(){var N=this;return _.r(function(b){if(b.nextAddress==1)return b.yield(_.aN().resolve(_.E_).deactivate(),2);N.updatePlayerLocation();_.Zd(b)})},
updateCinematicsLocation:function(){var N=this.getElement("CINEMATICS");if(N){var b=this.getCinematicsLocationContainer();N.parentElement!==b&&b.appendChild(N)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.H4(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.H4(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(N,b,S){var P=document.documentElement.hasAttribute("dark"),H=!P&&this.cinematicLightTheme;return S||N&&P||b&&P||(b||N)&&H},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var N=this,b;(b=this.watchController)==null||b.setWatchNextResponse(this.data);_.T("kevlar_watch_flexy_comments_manager")||this.initComments_();_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.aN().resolve(_.dt).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.T("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Dj.addLowPriorityJob(function(){_.PN(N.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.T("web_watch_start_chat_in_theater_mode")){var S,P,H;if((S=this.data)==null?0:(P=S.contents)==null?0:(H=P.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var K,C;((K=this.data)==null?0:(C=K.contents)==null?0:C.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(N){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);N&&N.playabilityStatus&&(b=this.isVideoPlayable_(N.playabilityStatus,this.getPlayerOverlays_(this.data)),N=this.isLiveStreamOffline_(N.playabilityStatus),b&&!N||_.W_(this,function(){_.uC("pbu")}));
this.setPlayerAds_();_.PN(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(N,b){if((_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"))&&this.playerData&&b)return this.playerData.videoDetails},
watchPageActiveChanged_:function(N){_.h0().dispatch(zdn(this.active));N?this.activate_():this.deactivate_()},
attached:function(){var N=this;this.watchController=new yX(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.T("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.h8(this);_.T("kevlar_disable_prepare_player")||
b.preparePlayer();_.T("kevlar_watch_flexy_playlist_manager")||_.aN().resolve(_.dt).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":py()+"px"};this.is==="ytd-watch-grid"&&(_.h0().dispatch(_.HU({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),b["--ytd-watch-flexy-sidebar-width"]=oH5+"px",b["--ytd-watch-grid-horizontal-page-margins"]=y$+"px",b["--ytd-watch-grid-columns-top-margins"]=Uui+"px",
b["--ytd-watch-grid-min-player-height-medium"]="360px");!_.d7("kv_pl_mx_sz_ks")&&_.d7("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=JMQ+"px");_.d7("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=Z7n+"px");this.safeUpdateStyles(b);_.T("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new zh(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return N.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.H4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var N=py(),b=Yf+N,S=b;this.fixedPanels&&(b+=oH5);var P=657+N;N=1327+N;_.H4(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.H4(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(N+"px)");_.H4(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(N+"px)");_.H4(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+S+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var N=_.H4(this.hostElement).querySelector("#miniplayer-bar").firstChild,b=this.squeezeback&&!_.T("web_watch_squeezeback_player_size_killswitch");return N&&N.active||this.theater||_.T("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||b||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Jh(NaN,NaN):jq5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return jq5(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Wv(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var N=this;this.onWindowResized_(_.my());_.T("browse_skeleton_removal_on_watch_killswitch")||_.g8("IS_SHELL_LOAD")&&ZAi();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.h8(this);b.addEventListener("yt-player-updated",_.aA(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(S){N.playerApiReady_(S)});
_.T("kevlar_watch_flexy_playlist_manager")||(b=_.aN().resolve(_.dt),_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.aA(this,this.onYtNavigate_)),b.setPlaylistComponent(_.H4(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.aA(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Dj.addLowPriorityJob(function(){_.bC(N.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.h8(this).removeEventListener("yt-player-updated",_.aA(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.T("kevlar_watch_flexy_playlist_manager")){var N=_.aN().resolve(_.dt);_.T("kevlar_watch_observe_playlist_navigations_killswitch")&&N.removeEventListener("yt-navigate",_.aA(this,this.onYtNavigate_));
N.cancelVideoSkip();N.removeEventListener("yt-playlist-data-updated",_.aA(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bC(this.hostElement,"yt-autonav-pause-player",!1);N=_.hw();_.T("kevlar_exit_fullscreen_leaving_watch")&&N&&_.qy(N)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(N){this.player&&this.player.updateVideoData({rvs:N.rvs})},
getPageContents:function(N){return N&&N.contents&&N.contents.twoColumnWatchNextResults&&N.contents.twoColumnWatchNextResults.results&&N.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(N){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N)},
onRetrieveLocation_:function(N,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);N.stopPropagation()},
onSubscriptionChanged_:function(N,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){lYi("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.H4(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.H4(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(N){this.player=N;this.setPlayerState(N.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.T("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.T("kevlar_unified_player")||_.T("kevlar_player_new_bootstrap_adoption"))&&_.Ex()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(N,b){b=b===void 0?!0:b;_.hw()&&_.T("external_fullscreen")&&_.qy(document.documentElement);this.theaterRequested_=N;b&&_.iQ("wide",N?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bC(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(N){_.hd(N,typeof this.player),this.player&&_.hd(N,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var N;((N=this.player)==null?0:N.isFullscreen())?this.player.toggleFullscreen():_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(N,b){return this.loading?b:!!Object.keys(N).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(N){if(N){N=_.O(N);for(var b=N.next();!b.done;b=N.next())b=b.value,b.youThereRenderer&&XD_(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(N){return N||{}},
userEngagementConfigDataChanged_:function(N){if(N)if(N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.nv()<N.lowEngagementThresholdMs||yiq(b,!0)}else N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.St(this.hostElement,"yt-autonav-pause-user-engagement",[N])},
isPlayerUnavailable_:function(N,b,S){return!!N&&!this.isVideoPlayable_(N,S)&&!b},
getPlayerOverlays_:function(N){return(N==null?void 0:N.playerOverlays)||null},
isVideoPlayable_:function(N,b){if(!N)return!1;var S=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",N)||this.get("errorScreen.ypcTrailerRenderer",N);N=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",N);var H;b=b==null?void 0:(H=b.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!S||!!P||!!N||!!b},
hasWatchNextResponseErrorRenderer:function(N){var b=this.getPageContents(N),S,P,H,K,C;return!(N==null?0:(S=N.contents)==null?0:(P=S.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((H=b[0])==null?0:(K=H.itemSectionRenderer)==null?0:(C=K.contents[0])==null?0:C.backgroundPromoRenderer)},
isLiveStreamOffline_:function(N){return N?N.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(N,b,S){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.T("web_no_skip_video_on_verification_checks")?(N==null?void 0:N.status)&&H.includes(N.status):N&&N.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",N);K==void 0&&(K=!0);!S||this.isVideoPlayable_(N,this.getPlayerOverlays_(b))||
P||H||!K||_.aN().resolve(_.dt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();hsa()},
onPlayerFeedbackStartRequest_:function(N){_.St(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:N}])},
onPlayerFeedbackArticleRequest_:function(N){_.St(this.hostElement,"yt-help-dialog-requested",[N])},
onPlayerYpcContentRequest_:function(){var N,b,S,P,H,K,C,G,a=((N=this.data)==null?NaN:(b=N.contents)==null?NaN:(S=b.twoColumnWatchNextResults)==null?NaN:(P=S.secondaryResults)==null?NaN:(H=P.secondaryResults)==null?NaN:(K=H.offerModule)==null?NaN:(C=K.tvfilmOfferModuleRenderer)==null?NaN:(G=C.actionButtons)==null?NaN:G.length)-1;N=[".offerButton.buttonRenderer.",".actionButtons."+(a>=0?a:0)+".buttonRenderer."];b=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=b.next();!S.done;S=b.next())for(S=S.value,P=_.O(N),H=P.next();!H.done;H=P.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.c7(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(N){_.bC(this.hostElement,"yt-autonav-pause-player",N)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(N){N()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bC(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(N)},
setPlayerState:function(N){_.h0().dispatch(_.Vm9(N))},
onPlayerSubscribe_:function(N){_.St(this.hostElement,"yt-player-subscribe",[N])},
onPlayerUnsubscribe_:function(N){_.St(this.hostElement,"yt-player-unsubscribe",[N])},
onPlayerAdYtShowToast_:function(N){_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:N.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(N){if(N)return N},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(N){return!_.NI("web_watch_move_summary_to_sd")&&!!N},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.T("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var N,b,S,P;this.watchNextSecondaryResults=(N=this.data)==null?void 0:(b=N.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(P=S.secondaryResults)==null?void 0:P.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var N,b=(N=this.data)==null?void 0:N.engagementPanels;if(b==null?0:b.length){N=null;b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0;if(((P=S.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){N=S;break}}var H,K,C;N=(H=N)==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:(C=K.content)==null?void 0:C.structuredDescriptionContentRenderer;if(N==null?0:N.items){H=
[];K=_.O(N.items);for(C=K.next();!C.done;C=K.next()){C=C.value;if(!_.T("sd_horizontal_list_show_nav_killswitch")){var G=P=S=b=N=void 0,a=void 0,R=(N=C.horizontalCardListRenderer)==null?void 0:(b=N.header)==null?void 0:(S=b.richListHeaderRenderer)==null?void 0:(P=S.navigationButton)==null?void 0:(G=P.buttonRenderer)==null?void 0:(a=G.command)==null?void 0:a.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(n){return!_.t(n,dh5)}))}(!C.expandableVideoDescriptionBodyRenderer&&
!C.videoDescriptionHeaderRenderer||_.T("web_delhi_colorful_sd"))&&H.push(C)}return{items:H}}}},
constructWarning_:function(N){return{text:_.gy(N),type:"WARNING"}},
isPlaShelfEnabled_:function(N){if((this.get("adPlacements",N)||[]).length)return!0;N=this.get("playerAds",N)||[];return!(!N.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",N[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var N=this;_.bC(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.T("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.h8(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(N.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bC(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var N=this;this.commentsReady=!1;_.Dj.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.XC(_.Dj,function(){N.setComments_()},1E3)},
setComments_:function(){if(!_.T("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.uC("cmi");_.Dj.cancelJob(this.setCommentsJobId_);var N=this.getPageContents(this.data);if(N&&N.length){N=_.O(N);for(var b=N.next();!b.done;b=N.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bC(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.T("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.T("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.uC("cmc")},
doRemoveComments_:function(){this.comments={};_.T("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Dj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Dj.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(N,b){var S=_.t(b.endpoint,_.Iv);S&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==b.videoId||S.playlistId&&S.playlistId!==b.playlistId||S.index!==void 0&&S.index!==b.index||typeof S.startTimeSeconds!=="number"||(N.stopPropagation(),this.setScrollTop(0),_.h8(this).getPlayerPromise().then(function(P){var H=S.startTimeSeconds;P.seekTo(H);P.wakeUpControls();H<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var N=Zt5();"t"in N&&(N=VrJ(N.t),this.player.seekTo(N,!0))},
updateTitleFromWatchNext:function(N){N=this.getPageContents(N);var b,S;(N=_.es(N==null?void 0:(b=N[0])==null?void 0:(S=b.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.bC(this.hostElement,"yt-update-title",N)},
updateTitle_:function(N){N=this.get("videoDetails.title",N)||"";_.bC(this.hostElement,"yt-update-title",N)},
syncWithRemoteVideo_:function(N,b,S){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===S&&(S=P.list,_.T("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),P.video_id!==N||S!=b)){var H;_.T("kevlar_player_watch_endpoint_navigation")?H=_.BwU(kYt(N,b)):H=this.buildWatchEndpoint_(N,b);_.bC(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(N,b,S){return _.N6(N,b,S)},
initDclkstatus_:function(){AZ5()},
attachWatchPageSkeleton_:function(){var N=document.querySelector("#watch-page-skeleton");if(N){var b=N.querySelector("#primary-info"),S=N.querySelector("#secondary-info"),P=N.querySelector("#related");b&&_.H4(this.hostElement).querySelector("#info-skeleton").appendChild(b);S&&_.H4(this.hostElement).querySelector("#meta-skeleton").appendChild(S);P&&(_.H4(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.Zg(N)}},
handlePlayerUpdated_:function(){_.h8(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(N,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var S=this.watchNextSkeletonEl_.children,P=N&&N.indexSplices.length?N.indexSplices[0].index:0;N=Math.min(this.watchNextShownItems.length,S.length);b||(P=0,N=S.length);if(!this.ghostCardsEnabled)for(b=P;b<N;b++)S[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(N){_.T("external_fullscreen")||_.St(this.hostElement,"yt-player-fullscreen",[N.fullscreen])},
onFullscreenChange_:function(N){this.fullscreen=N;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.h8(this);b.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.hw())});
this.updateFullBleedElementLocations();N&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(N,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(N){return N},
computeShouldShowMerchShelf:function(N,b){return b&&!!N},
computeResponseHasComments:function(N){var b,S,P,H,K;return!!(N==null?0:(b=N.contents)==null?0:(S=b.twoColumnWatchNextResults)==null?0:(P=S.results)==null?0:(H=P.results)==null?0:(K=H.contents)==null?0:K.some(function(C){var G;return(C==null?void 0:(G=C.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(N,b,S,P){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&P?!1:!!N&&!!Object.keys(N).length&&!b},
identity:_.iY,onWindowResized_:function(N){this.windowSize_=N;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.T("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(N){var b=this;N&&N.type!=="dataloaded"&&N.type!=="dataupdated"||_.h8(this).getPlayerPromise().then(function(S){var P=S.getPlayerState();P!==5&&P!==0&&(S=1/S.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==S&&(b.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(N){var b=this,S=_.T("kevlar_watch_while_v2")||_.T("web_watch_pip"),P=function(){if(b.watchMetadata){var H,K;(K=(H=b.watchMetadata).resize)==null||K.call(H)}_.h8(b).getPlayerPromise().then(function(C){if(_.NI("kevlar_set_internal_player_size")){if(!S||!b.isMiniplayerActive()){var G=b.calculateCurrentPlayerSize_();C.setInternalSize(G.width,G.height)}}else C.setSize(NaN,NaN);_.T("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
N?P():_.ml(_.Dj,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(N){this.set("data.survey",N.detail)},
onYtShowSurveyCommand_:function(N){this.set("data.survey",_.t(N,qDJ).survey)},
onDownloadedVideoDeleted:function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1){if(!b.active||(S=b.playerData)==null||!S.offlineState||b.videoId!==N)return H.return();(P=b.player)==null||P.stopVideo();_.gU().navigatingAwayFromWatchDeletedVideo=!0;_.c7(_.oKL,b.hostElement);return H.yield(_.gU().navigationFinishPromise,2)}_.gU().navigatingAwayFromWatchDeletedVideo=!1;_.Zd(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var N;this.theater?N=_.j3(.5625*this.windowSize_.width,480,this.windowSize_.height-185):N=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==N&&(this.watchWhileScrollThreshold_=N,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var N=_.H4(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&N){var b=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!N.active&&b&&S>=this.watchWhileScrollThreshold_?(N.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):N.active&&(!b||S<this.watchWhileScrollThreshold_&&!_.hw())&&(N.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var N=_.H4(this.hostElement).querySelector("#secondary-inner");if(N){var b=_.H4(this.hostElement).querySelector("#below"),S=_.H4(this.hostElement).querySelector("#secondary"),P=_.H4(this.hostElement).querySelector("#comments");P&&S&&b&&(this.defaultTwoColumnLayout?(N.appendChild(P),S.appendChild(N)):(b.appendChild(P),kB(b,N)))}}},
isTwoColumnsChanged_:function(N,b){if(N!==!0||b!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(N=_.H4(this.hostElement).querySelector("#secondary-inner"))){b=_.H4(this.hostElement).querySelector("#below");var S=_.H4(this.hostElement).querySelector("#secondary"),P=_.H4(this.hostElement).querySelector("#comments");P&&S&&b&&(this.isTwoColumns_?(N.appendChild(P),S.appendChild(N)):(b.appendChild(P),kB(b,N)))}}else{N=!_.T("web_watch_enable_fs_squeezeback_panels");
b=_.H4(this.hostElement).querySelector("#panels");var H=_.H4(this.hostElement).querySelector("#alerts"),K=_.H4(this.hostElement).querySelector("#shopping-timely-shelf");S=_.H4(this.hostElement).querySelector("#playlist");P=_.H4(this.hostElement).querySelector("#related");var C=_.H4(this.hostElement).querySelector("#donation-shelf"),G=_.H4(this.hostElement).querySelector("#comments"),a=_.H4(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(H=_.H4(this.hostElement).querySelector("#secondary-inner"),
N&&(H.appendChild(b),H.appendChild(S),this.aiCompanionEnabled&&a&&H.appendChild(a)),H.appendChild(C),H.appendChild(P)):(N&&(_.pL(b,H),_.pL(S,H),this.aiCompanionEnabled&&a&&_.pL(a,H),_.pL(K,S)),_.pL(C,H),G&&_.pL(P,G));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.T("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.T("web_watch_enable_fs_squeezeback_panels")&&_.T("web_watch_theater_chat")){var N=_.H4(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.T("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?(b=_.H4(this.hostElement).querySelector("#columns"),(N==null?void 0:N.parentElement)!==b&&b.append(N),this.fixedPanels=!0):(this.fixedPanels=
!1,b=_.H4(this.hostElement).querySelector("#playlist"),N&&b?_.Yv(N,b):_.$h(new _.jU("Missing element when updating chat location",{"chatContainer defined":!!N,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(N,b){return _.T("sw_metadata_vis_toggle_ks")?!0:!!N||!!b},
computeForceDarkPanelTheme:function(N){return _.T("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&N:!1},
safeUpdateStyles:function(N){try{_.rq(this.hostElement,N)}catch(b){_.$h(b)}},
videoHeightToWidthRatioChanged_:function(N,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(N){this.videoHeightToWidthRatio_=1/N},
computeIsVerticalVideo_:function(N){return N>=1},
computeIsFourThreeToSixteenNineVideo_:function(N){return N<=.7501&&N>=.5624},
computeIsExtraWideVideo_:function(N){return N<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.h8(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.h8(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){I4J(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(N){var b=_.l1(N)||0;_.Bd(N,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var N=_.l1("yt-fullerscreen-edu-button-click-count")||0,b=_.l1("yt-fullerscreen-edu-button-shown-count")||0,S=_.d7("external_fullscreen_button_shown_threshold"),P=N>=_.d7("external_fullscreen_button_click_threshold")||b>=S;_.h8(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(N,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.aN().resolve(_.dt).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var N=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Dj.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Dj.addLowPriorityJob(function(){N.fullHeightPanelPositionUpdateJobId=0;var b=_.H4(N.hostElement).querySelector("#secondary"),S=_.H4(N.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var P=b.width;N.swatcherooSqueezeback&&
(P+=y$);if(N.swatcherooSqueezeback){var H=_.H4(N.hostElement).querySelector("#squeezeback-constraining-container");H.style.width=P+"px";H.style.flex="0 0 "+P+"px"}S.style.width=P+"px";S.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var N=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Dj.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Dj.addLowPriorityJob(function(){N.panelMaxHeightUpdateJob_=0;var b;!N.isTwoColumns_||N.theater||N.fullscreen?b=460:b=N.calculateNormalPlayerSize_().height;var S=b+"px";_.T("live_chat_taller_height")&&!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.T("live_chat_medium_height")&&!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.T("live_chat_scaled_height")&&!N.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");N.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(N){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",N)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.sR(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(N){var b=_.H4(this.hostElement).querySelector("#engagement-panel-scrim");N?b.addEventListener("tap",_.aA(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.aA(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(N){if(this.hostElement.contains(N)&&!this.scrollToAnimation_.isAnimating()){var b=N.offsetTop-24;N=N.offsetTop+N.offsetHeight+24;var S=this.getPageScrollingElement(),P=this.getScrollTop(),H=P+S.clientHeight-56;if(b<P+56)b-=56;else if(N>H)b=N-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var N=this.hostElement.querySelector("#comments");if(N&&!this.scrollToAnimation_.isAnimating()){N=N.offsetTop-56-24;if(_.T("kevlar_comment_teaser_scroll_to_midpoint")&&(N-=_.Z2().height/3,N<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtEngagementPanelVisibleChanged:function(N,b,S){if(this.active&&this.trackEngagementPanelVisibility&&!RIw.includes(S)){if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.PN(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var P=_.aN().resolve(_.Hn);this.visiblePanelIdentifiers_.forEach(function(H){H!==S&&P.hidePanel({identifier:H})})}this.visiblePanelIdentifiers_.add(S)}b!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(N){return N?"":"watch-active-metadata"},
computeNewMetadataClass:function(N){return N?"watch-active-metadata":""},
computeIsSingleColumn:function(N,b){return b&&!N},
computeFullBleedPlayer:function(N,b,S){return _.T("external_fullscreen")&&N||b||S},
computeDefaultLayout:function(N){return!N},
computeDefaultTwoColumnLayout:function(N,b){return!N&&b},
updatePanelsLocation:function(){if(_.T("web_watch_enable_fs_squeezeback_panels")){var N=_.H4(this.hostElement).querySelector("#below"),b=_.H4(this.hostElement).querySelector("#panels"),S=_.H4(this.hostElement).querySelector("#playlist"),P=_.H4(this.hostElement).querySelector("#chat-container"),H=_.H4(this.hostElement).querySelector("#panels-full-bleed-container"),K=_.H4(this.hostElement).querySelector("#secondary-inner"),C=_.H4(this.hostElement).querySelector("#shopping-timely-shelf"),G=_.H4(this.hostElement).querySelector("#persistent-panel-container");
if(N&&b&&S&&P&&H&&K&&C&&(this.aiCompanionEnabled?G:1)){var a=this.fullscreen||this.theater&&this.iMaxTheaterMode,R=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;R?(R=_.H4(this.hostElement).querySelector("#columns"),(P==null?void 0:P.parentElement)!==R&&R.append(P),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):a?H.appendChild(P):this.isTwoColumns_?kB(K,P):kB(N,P);a?(H.appendChild(b),H.appendChild(S),
this.aiCompanionEnabled&&G&&H.appendChild(G)):(this.isTwoColumns_?(kB(K,b),kB(K,S),this.aiCompanionEnabled&&G&&kB(K,G)):(kB(N,b),kB(N,S),this.aiCompanionEnabled&&G&&kB(N,G)),kB(N,C))}}},
swatcherooUpdatePanelsLocation:function(N,b,S,P,H,K){if(this.is==="ytd-watch-grid"){b=N&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));S=_.H4(this.hostElement).querySelector("#panels");var C=_.H4(this.hostElement).querySelector("#playlist"),G=_.H4(this.hostElement).querySelector("#persistent-panel-container"),
a=_.H4(this.hostElement).querySelector("#fixed-secondary"),R=_.H4(this.hostElement).querySelector("#fixed-below"),n=_.H4(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.H4(this.hostElement).querySelector("#chat-container");K&&(N?(a.appendChild(S),this.aiCompanionEnabled&&G&&a.appendChild(G)):(R.appendChild(S),this.aiCompanionEnabled&&G&&R.appendChild(G)));H?N?a.appendChild(d):R.appendChild(d):_.Yv(d,n);P?N?a.appendChild(C):R.appendChild(C):_.Yv(C,
n);this.swatcherooSplitScroll&&(N=_.H4(this.hostElement).querySelector("#secondary"),P=_.H4(this.hostElement).querySelector("#columns"),H=_.H4(this.hostElement).querySelector("#fixed-columns-secondary"),b?H.appendChild(N):P.appendChild(N))}},
computeMetadataSkinnyMode:function(N,b,S){return this.is!=="ytd-watch-grid"?!1:N?S:b},
computeWatchWhilePanelsActive:function(N,b){return N||b},
computeNoBorderOnChat:function(N){return _.T("web_watch_theater_chat_no_border")&&N},
computeLiveChatPresentAndExpanded:function(N,b){return N&&!b},
computePanelExpanded:function(N,b,S){return N||b||S},
computeSqueezeback:function(N,b,S,P){if(_.T("web_watch_enable_fs_squeezeback_panels")){var H=this.iMaxTheaterMode&&this.theater,K=this.theater&&!this.iMaxTheaterMode;return(N||b||S)&&(H||P)||b&&K}},
computeSwatcherooSqueezeback:function(N,b,S){return this.is!=="ytd-watch-grid"||_.T("ww_squeezeback_killswitch")?!1:N&&b&&S},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(N){_.h8(this).getPlayerPromise().then(function(b){var S;(S=b.changeMarkerVisibility)==null||S.call(b,_.t(N,Fd).isVisible||!1,_.t(N,Fd).entityKeys||[],_.t(N,Fd).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(N){this.liveChatCollapsed=N.detail;_.h0().dispatch(XFq(N.detail));if(!this.liveChatCollapsed&&this.squeezeback){var b=_.aN().resolve(_.Hn);this.visiblePanelIdentifiers_.forEach(function(S){b.hidePanel({identifier:S})})}},
onSetPlaylistCollapsed:function(N){_.T("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!N)},
provideRenderingData:function(N,b){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.T("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=b;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=
b;break;case "DONATION_SHELF":this.donation=b;break;case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
b;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=b;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=b}},
toggleCinematicsActive:function(N){this.cinematicsActive=N},
isMiniplayerActive:function(){return _.aN().resolve(_.E_).isMiniplayerActive()}}];var YOL=function(N,b){var S;return((S=N.prefixMapping)==null?0:S[b])?N.prefixMapping[b]:N.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":N.prefix},Dk={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};Dk.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.T("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Dk.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Dk.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Dk.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Dk.MOLE={component:null,styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"}};
Dk.NOTIFICATION={component:null,styles:{position:"fixed",top:"0",left:"auto",right:"0",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},rtlStyles:{position:"fixed",top:"0",left:"0",right:"auto",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},preventAutonav:!0};
Dk.OVERLAY_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!1,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
Dk.RESPONSIVE_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},narrowProperties:{horizontalAlign:null,verticalAlign:null,dynamicAlign:!1,withBackdrop:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
Dk.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.T("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
Dk.SURVEY={component:"tp-yt-paper-dialog",properties:{withBackdrop:!1,noCancelOnOutsideClick:!0,noAutoFocus:!0},styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0"}};Dk.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Dk.TOAST={component:null,properties:{}};var yWw=new function(N,b,S){this.supportedPopups=N;this.navigationEndpointPopupMap=b;this.popupTypeMap=S;this.supportedPopups=N;this.navigationEndpointPopupMap=b;this.popupTypeMap=S}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.T("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),IkQ=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,
upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$21482_popupConfig=Dk;this.forwardedEvents="yt-action yt-navigate yt-popup-canceled yt-popup-closed yt-popup-opened yt-service-request-completed yt-service-request-error yt-service-request-sent yt-lockup-requested".split(" ");
this.forwardingEnabledPopups=new Set([])};var Dg6=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.C5.getInstance()},VX=function(N,b){var S=N.pageNameToElement.get(b);
if(!S){switch(b){case "watch":var P=_.T("web_watch_force_learning_journey_for_testing")?_.ln("ytd-watch-learning-journey"):_.T("kevlar_watch_fixie")?_.ln("ytd-watch-fixie"):_.T("kevlar_watch_grid")?_.ln("ytd-watch-grid"):_.ln("ytd-watch-flexy");break;case "learning_journey_watch":P=_.ln("ytd-watch-learning-journey");break;case "shorts":P=_.ln("ytd-shorts");break;case "search":P=_.ln("ytd-search");break;case "channel":P=_.ln("ytd-browse");P.pageSubtype="channels";break;case "trending":P=_.ln("ytd-browse");
P.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":P=
_.ln("ytd-browse");P.pageSubtype=b;break;case "browse":P=_.ln("ytd-browse");break;default:_.$h(new _.jU("Error getting page element for type",b))}S=P;N.pageNameToElement.set(b,S)}return S};
Dg6.prototype.preparePage=function(N,b,S){S&&(N=_.R3(S)||N);if(N!=="watch"&&N!=="learning_journey_watch"){var P=this.elementPoolPopulator,H=N;H!=P.targetPage_&&P.pendingPages_.indexOf(H)>-1&&(P.targetPage_&&(P.pendingPages_.unshift(P.targetPage_),P.abort()),Ej5(P,H),_.jVl(P,H))}if((P=VX(this,N))||!_.t(S,_.Hz)){P.isAttached||P===b||(P.hidden=!0);if(!P.data&&(N!=="watch"&&N!=="learning_journey_watch"||!_.T("swatcheroo_page_pool_dont_provide_filler_data"))){var K;if(N=(K=_.Vg("FILLER_DATA",{})[N])==
null?void 0:K.response)P.data=N}return P}};var VBt=function(N){this.JSC$33323_clientRoot=N;this.playlistHandlerActionMap={"yt-add-to-playlist-command":YxE,"yt-end-playlist-command":yIE,"yt-recover-playlist-command":DvO,"yt-refresh-playlist-command":eSt,"yt-playlist-remove-videos-action":V8J};_.Kt(_.sX.getInstance(),this.playlistHandlerActionMap,this.JSC$33323_clientRoot);H8E()},g2t;var gh=function(N,b,S){this.apiKey=N;this.endpoint=b;this.confidenceThreshold=S===void 0?.5:S;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=b==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
b==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new sHi};
_.v=gh.prototype;
_.v.start=function(N){if(this.state===0)if(this.isOnline()){N.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=N.supportsHttpHeadersOverwriteParam);N.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=N.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.fA("voice_assistant");_.Q3("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=N.languageCode||"en-US";this.supportsCrossDomainXhr=N.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=N.youtubeAssistantRequest||null;this.listeningHandler=N.listeningHandler||this.listeningHandler;this.audioDetectedHandler=N.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=N.stopHandler||this.stopHandler;this.completeHandler=N.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=N.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=N.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
N.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=N.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=N.accessToken;this.additionalHeaders=N.additionalHeaders||{};var b;this.prefetchResponseTimeoutMs=(b=N.prefetchResponseTimeoutMs)!=null?b:this.prefetchResponseTimeoutMs;eHi(this);this.startAudio();$g6(this)}else this.errorHandler("OFFLINE")};
_.v.stop=function(N){var b=N===void 0?{}:N;N=b.logCancel===void 0?!0:b.logCancel;var S=b.logMicClosed===void 0?!0:b.logMicClosed;var P=b.handleError===void 0?!0:b.handleError;b=b.handleStop===void 0?!0:b.handleStop;this.state!==0&&(N&&eB("voz_cx"),$2(this,{logMicClosed:S,handleStop:b}),P&&this.errorHandler("ABORTED"))};
_.v.getState=function(){return this.state};
_.v.isSupported=function(){return!0};
_.v.stopAudio=function(N){(N===void 0||N)&&eB("voz_mf")};
_.v.startAudio=function(){eB("voz_vp");return _.KA(null)};
var hHJ=function(N,b){N.channelOpen&&(N.state!==2&&(N.state=2,eB("voz_ss"),N.listeningHandler()),b=new Uint8Array(b),b='{ "audioIn": "'+_.iL(b)+'" }',N.channel.send(b))},$2=function(N,b){var S=b===void 0?{}:b;
b=S.logMicClosed===void 0?!0:S.logMicClosed;S=S.handleStop===void 0?!0:S.handleStop;N.vozEndOfDataTimeout>-1&&(clearTimeout(N.vozEndOfDataTimeout),N.vozEndOfDataTimeout=-1);qO_(N);N.stopAudio(b);N.channel&&(N.channelOpen=!1,N.manuallyClosedChannel=!0,N.channel.close(),N.channel=void 0);N.transcribedSpeechResults=[];N.state=0;S&&N.stopHandler()},eHi=function(N){var b={httpHeadersOverwriteParam:N.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},N.additionalHeaders,N.accessToken&&N.isUsingVoz?{Authorization:"Bearer "+N.accessToken}:{"x-goog-api-key":N.apiKey}),supportsCrossDomainXhr:N.supportsCrossDomainXhr};N.channel=new cB(N.endpoint,b);N.channel.open();_.lH(N.channel,"w",function(){var S=N.channel,P=S.send,H=N.isUsingVoz?"PLACEHOLDER":"example";H={config:{dialogStateIn:{languageCode:N.languageCode},deviceConfig:{deviceId:H,deviceModelId:H},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!N.isUsingVoz)H.config.requestType=4;else if(N.isUsingVoz&&N.youtubeAssistantRequest){var K=JSON.stringify(N.youtubeAssistantRequest);H.config.internalIn={youtubeAssistantS3InputJson:K}}P.call(S,H);N.channelOpen=!0;N.manuallyClosedChannel=!1});
_.lH(N.channel,"x",function(){N.manuallyClosedChannel||(N.channelOpen=!1,N.channel=void 0,$2(N))});
_.lH(N.channel,"z",function(S){if(S.data){qO_(N);for(var P=0;P<S.data.length;P++){var H=N,K=S.data[P],C=K.speechResults;if(C)a:{var G=[];K=[];var a=!1;C=_.O(C);for(var R=C.next();!R.done;R=C.next()){R=R.value;if(R.noSpeech){$2(H);H.errorHandler("NO_SPEECH");break a}R.transcript!==void 0&&R.stability!==void 0&&(R.stability<H.confidenceThreshold&&(a=!0),a?K.push(R.transcript):G.push(R.transcript))}if(G.length!==0||K.length!==0)G=G.join(" "),K=K.join(" "),H.receivedEndOfUtterance&&!H.isUsingVoz?H.isUsingVoz||
H.completeHandler([G,K]):(a=H,C=G,R=K,eB("voz_sf"),a.transcriptionUpdateHandler(C,R),a.transcribedSpeechResults=[C,R]),H.receivedEndOfUtterance&&(eB("voz_eou"),H.transcriptionCompleteHandler([G,K]),H.isUsingVoz&&(H.prefetchResponseTimeoutMs===0?$2(H,{logMicClosed:!1,handleStop:!0}):H.prefetchResponseTimeoutMs>0&&wjw(H)))}else H.isUsingVoz&&(K==null?0:K.internalOut)?(K=JSON.parse(K.internalOut.youtubeAssistantS3OutputJson),K.userHasOptedInToVaa||K.vaaConsent?H.vaaConsentUpdateHandler(!!K.userHasOptedInToVaa,
!!K.vaaConsent):(Nvo(H),K&&(G=H.transcribedSpeechResults,eB("voz_rqf"),H.completeHandler(G,K)))):K.eventType==="END_OF_UTTERANCE"?H.receivedEndOfUtterance=!0:(eB("voz_err"),H.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.$h(Error("Pl")))}}});
_.lH(N.channel,"y",function(S){$2(N);switch(S.status){case 1:S="WEBCHANNEL_NETWORK_ERROR";break;case 2:S="WEBCHANNEL_SERVER_ERROR";break;default:S="WEBCHANNEL_UNKNOWN_ERROR"}N.errorHandler(S);N.logError(Error(S))})};
gh.prototype.logError=function(N){_.ge(N)};
gh.prototype.isOnline=function(){return!0};
var wjw=function(N){Nvo(N);N.prefetchResponseSetTimeoutId=setTimeout(function(){$2(N,{logMicClosed:!1,handleStop:!0})},N.prefetchResponseTimeoutMs)},Nvo=function(N){N.prefetchResponseSetTimeoutId>-1&&(clearTimeout(N.prefetchResponseSetTimeoutId),N.prefetchResponseSetTimeoutId=-1)},$g6=function(N){qO_(N);
N.noResponseReceivedTimeout=window.setTimeout(function(){$2(N);N.errorHandler("NO_SPEECH")},11E3)},qO_=function(N){N.noResponseReceivedTimeout>-1&&(window.clearTimeout(N.noResponseReceivedTimeout),N.noResponseReceivedTimeout=-1)},eB=function(N){_.uC(N,void 0,"voice_assistant")};var hW=function(){gh.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.F(hW,gh);hW.prototype.isSupported=function(){return $vo()};
hW.prototype.startAudio=function(){var N=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.f7(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(P){bRa(N,P)};
this.processor.connect(this.audioContext.destination);var b=function(P){N.stream=P;if(!N.audioContext)return _.KA(null);P=N.audioContext.createMediaStreamSource(P);N.processor&&P.connect(N.processor);return _.KA(null)},S={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?b(this.stream):(S=navigator.mediaDevices.getUserMedia(S))?S.then(b).catch(function(P){$2(N);P.name&&P.name==="NotAllowedError"?N.errorHandler("NO_MICROPHONE_PERMISSION"):(N.errorHandler("AUDIO_ERROR"),N.logError(P));return _.f7(null)}):($2(this),this.errorHandler("AUDIO_ERROR"),_.$h(Error("Ql")));
return gh.prototype.startAudio.call(this)};
hW.prototype.stopAudio=function(N){N=N===void 0?!0:N;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(b){b.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;gh.prototype.stopAudio.call(this,N)};
hW.prototype.isOnline=function(){return navigator.onLine};
var bRa=function(N,b){if(N.audioContext)if(window.OfflineAudioContext){var S=N.audioContext.sampleRate,P=b.inputBuffer.getChannelData(0);b=new window.OfflineAudioContext(1,P.length,16E3);for(var H=b.createBuffer(1,P.length,S),K=H.getChannelData(0),C=0,G=0;G<P.length;G++)K[G]=P[G],C+=K[G]*K[G];!N.audioDetected&&Math.sqrt(C/P.length)>.01&&(N.audioDetected=!0,N.audioDetectedHandler());P=b.createBufferSource();P.buffer=H;P.connect(b.destination);P.start(0);b.oncomplete=function(a){a=a.renderedBuffer.getChannelData(0);
for(var R=Math.floor(16384E3/S),n=new Int16Array(R),d=0;d<R;++d)n[d]=Math.max(-1,Math.min(1,a[d]))*32767;hHJ(N,n.buffer)};
b.startRendering()}else SVo(N,b)},SVo=function(N,b){var S=N.audioContext.sampleRate,P=b.inputBuffer.getChannelData(0),H=Math.floor((S+8E3)/16E3);
S=P.length/H;b=new Float32Array(S);for(var K=0;K<S;++K)b[K]=P[K*H];P=new Int16Array(S);for(H=0;H<S;++H)P[H]=Math.max(-1,Math.min(1,b[H]))*32767;hHJ(N,P.buffer)};var Py6={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var HRE=function(){this.JSC$21547_audioEnabled=!0;this.audioFeedbackHolder={}};
HRE.prototype.isPlaying=function(N){return N.currentTime>0&&!N.paused&&!N.ended&&N.readyState>2};
var stL=function(N){for(var b=_.O(Object.values(Py6)),S=b.next();!S.done;S=b.next())S=S.value,N.audioFeedbackHolder[S]=new Audio,N.audioFeedbackHolder[S].src="/s/search/audio/"+S+".mp3",N.audioFeedbackHolder[S].load()},qg=function(N,b){if(N.JSC$21547_audioEnabled!==!1&&b in N.audioFeedbackHolder){for(var S=_.O(Object.values(N.audioFeedbackHolder)),P=S.next();!P.done;P=S.next())P=P.value,N.isPlaying(P)&&P.pause();
N.audioFeedbackHolder[b].currentTime=0;N.audioFeedbackHolder[b].play().catch(function(){})}};var Kz6=function(N,b){var S=this;this.store=N;this.service=b;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){S.setState("offline");S.stop()};
this.audioPlayer=new HRE;var P;(P=this.audioPlayer)==null||stL(P)};
_.v=Kz6.prototype;_.v.getService=function(){return this.service};
_.v.isEnabled=function(){return!!this.service};
_.v.isSupported=function(){var N;return(N=this.service)==null?void 0:N.isSupported()};
_.v.start=function(){var N=this,b,S,P,H,K,C,G,a,R,n,d,m,k;return _.r(function(M){switch(M.nextAddress){case 1:N.store.dispatch(ESt("",""));if(!navigator.onLine)return N.setState("offline"),M.return();window.addEventListener("offline",N.handleOfflineEvent);N.stream=null;if(!N.permissionsSupported){M.jumpTo(2);break}_.u4(M,3);return M.yield(vmO(N),5);case 5:b=M.yieldResult;if(!b)return(S=N.audioPlayer)==null||qg(S,"failure"),M.return();N.service.stream=N.stream;N.setState("listening");_.su(M,2);break;
case 3:_.UE(M),N.permissionsSupported=!1;case 2:P={context:_.$6f(_.mV())},P.youtubeAssistantParams={searchParams:{inlineSearchResponse:N.enableInlineSearchResponse}},H=function(l,u){N.store.dispatch(pFO("transcribing"));N.store.dispatch(ESt(l,u))},K=function(){var l;
(l=N.audioPlayer)==null||qg(l,"open");N.setState("listening")},C=function(){N.setState("transcribing")},G=function(l){N.setErrorState(l)},a=function(l,u){var J;
(J=N.audioPlayer)==null||qg(J,"success");u&&(_.T("kevlar_voice_search_inline_search")&&(N.responseProcessor=_.aN().resolve(_.Sif),N.responseProcessor&&(J=u.navigationAction,l=u.prefetchedSearchResponse,J&&l&&(J=(new _.agQ).JSC$14411_getStoreKey(J),_.IT(N.responseProcessor,l,J)))),N.JSC$21565_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",u))},R=function(){window.removeEventListener("offline",N.handleOfflineEvent)},n=_.s3a(!1),d=n.Authorization!=null,m=N.enableFirstPartyAuth||
N.enableFPAForSignedInUsers&&d?n:{"X-Goog-Visitor-Id":n["X-Goog-Visitor-Id"]},k={completeHandler:a,
errorHandler:G,listeningHandler:K,audioDetectedHandler:C,stopHandler:R,transcriptionUpdateHandler:H,youtubeAssistantRequest:P,languageCode:ORn(),additionalHeaders:m,supportsCrossDomainXhr:N.enableFirstPartyAuth||N.enableFPAForSignedInUsers&&d,supportsHttpHeadersOverwriteParam:!N.disableHttpHeadersOverwrite},N.service.start(k),_.Zd(M)}})};
_.v.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.v.reset=function(){this.store.dispatch(_.HU({type:"RESET_VOICE_SEARCH_STATE"}))};
_.v.setState=function(N){this.store.dispatch(pFO(N))};
_.v.setErrorState=function(N){switch(N){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var b;(b=this.audioPlayer)==null||qg(b,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)vmO(this);else{var S;(S=this.audioPlayer)==null||qg(S,"failure");this.setState("permission-denied")}break;case "ABORTED":var P;(P=this.audioPlayer)==null||qg(P,"no_input");break;default:var H;(H=this.audioPlayer)==
null||qg(H,"no_input");this.setState("timeout")}};
var vmO=function(N){var b,S;return _.r(function(P){switch(P.nextAddress){case 1:return P.yield(navigator.permissions.query({name:"microphone"}),2);case 2:b=P.yieldResult;if(b.state==="granted")return P.return(!0);if(b.state==="denied")return N.setState("permission-denied"),P.return(!1);N.setState("permission");S={audio:{sampleSize:16,channelCount:1},video:!1};_.u4(P,3);return P.yield(navigator.mediaDevices.getUserMedia(S),5);case 5:return N.stream=P.yieldResult,P.return(!0);case 3:return _.UE(P),
N.setState("permission-denied"),P.return(!1)}})},ORn=function(){var N=_.Vg("INNERTUBE_CONTEXT_HL"),b=_.Vg("INNERTUBE_CONTEXT_GL");
return N.indexOf("-")>-1?N:N+"-"+b};var Cy5=function(N,b,S){Kz6.call(this,b,S);this.JSC$21565_actionRouter=N;this.enableInlineSearchResponse=_.T("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.T("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.T("kevlar_voice_search_enable_fpa_signedin_users")},GZL;
_.F(Cy5,Kz6);
var ru_=function(){if(!GZL){var N="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.T("kevlar_voice_search_auth_enabled")||_.T("kevlar_voice_search_use_yt_endpoint")?N="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.T("kevlar_voice_search_use_fp_endpoint")&&(N="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");GZL=
new Cy5(_.sX.getInstance(),_.h0(),new hW(_.Vg("VOZ_API_KEY"),N,.5))}return GZL};var cuL=function(N){this.JSC$21569_clientRoot=N;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$21569_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));N=_.O(this.eventListeners);for(var b=N.next();!b.done;b=N.next()){var S=
_.O(b.value);b=S.next().value;S=S.next().value;S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;b.addEventListener(P,H)}}_.Kt(_.sX.getInstance(),this.autonavPauseActionMap,this.JSC$21569_clientRoot)},aDn,Rei=function(N){return _.T("kevlar_autonav_popup_filtering")?(N=_.gQ(N))?N.hasAttribute("prevent-autonav"):!0:!0};
_.v=cuL.prototype;_.v.onIronOverlayOpened=function(N){Rei(N)&&(this.autonavPauseReasons.overlayOpen=!0,wh(this))};
_.v.onIronOverlayClosed=function(N){Rei(N)&&(this.autonavPauseReasons.overlayOpen=!1,wh(this))};
_.v.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;wh(this)};
_.v.onYtAutonavPauseBlur=function(){var N=this;_.Dj.addJob(function(){WzE()||(N.autonavPauseReasons.inputBoxFocus=!1,wh(N))},8,0)};
_.v.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;wh(this)};
_.v.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;wh(this)};
_.v.onYtAutonavPauseScroll=function(){var N=_.aN().resolve(_.$9);N.isOnWatch()&&(N=N.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=N.getBoundingClientRect().top<-200,wh(this))};
_.v.onYtAutonavPauseUserEngagement=function(N){var b=this;if(_.T("user_engagement_enable_autoplay_pause_feature")){var S=Number(N.lowEngagementThresholdMs);isNaN(S)||S<=0||N.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.aN().resolve(_.mh),_.nv()<S?_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):yMJ()?(this.userEngagementCsn=_.Qh(),_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,wh(this)):IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Ofa(Error("Rl`"+JSON.stringify(N)))};
_.v.onYtAutonavPausePlayer=function(N){this.autonavPauseReasons.requestedByPlayer=!!N.detail;wh(this)};
_.v.onYtAutonavVisibilityChanged=function(){var N=this,b,S,P;return _.r(function(H){if(H.nextAddress==1)return(b=_.qE())?H.yield(b.getPlayerPromise(),2):H.return();S=H.yieldResult;P=S.isMuted()||S.getVolume()===0;N.autonavPauseReasons.backgroundAndMute=WzE()&&P;wh(N);_.Zd(H)})};
_.v.onYtAutonavPausePlayerEnded=function(){_.aN().resolve(_.mh);var N=144E5;_.T("user_engagement_enable_autoplay_pause_feature")||_.T("is_part_of_any_user_engagement_experiment")||(N=45E5);this.autonavPauseReasons.longIdle=_.nv()>N;nmi(this);wh(this)};
_.v.onYtUserActivity=function(){var N=this;this.autonavPauseReasons.userEngagement&&(_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",N.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,wh(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",N.userEngagementCsn);_.VE()}),this.autonavPauseReasons.youthereLactExperiment=!1,wh(this));
this.autonavPauseReasons.longIdle&&!_.T("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,wh(this))};
var WzE=function(){var N=window.document.visibilityState;return!(!N||N==="visible")},wh=function(N){for(var b=!1,S=_.O(Object.values(N.autonavPauseReasons)),P=S.next();!P.done;P=S.next())P=P.value,b=b||P;
b?_.ut.getInstance().pause(N.autonavPauseReasons):(N=_.ut.getInstance(),N.autonavState_==3?(N.setState(2,!1,!1),N.autonavPauseReason_=void 0):N.autonavState_==1&&(N.disabledAutonavPauseReason_=void 0))},nmi=function(N){var b=!1;
if(_.T("enable_autoplay_pause_by_lact")){_.aN().resolve(_.mh);b=_.d7("autoplay_pause_by_lact_sec")*1E3;var S=_.d7("autoplay_pause_by_lact_sampling_fraction");(b=_.nv()>=b&&Math.random()<S)&&!yMJ()&&(_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),b=!1)}b!==N.autonavPauseReasons.youthereLactExperiment&&(N.autonavPauseReasons.youthereLactExperiment=b)&&(N.userEngagementCsn=_.Qh(),_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",N.userEngagementCsn)}));
N.autonavPauseReasons.userEngagement&&_.XC(_.Dj,function(){IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",N.userEngagementCsn)})};
cuL.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(IV("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.VE(),this.autonavPauseReasons.youthereLactExperiment=!1,wh(this));this.autonavPauseReasons.userEngagement&&(IV("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,wh(this))};
cuL.prototype.onYtEngagementPanelVisibleChanged=function(N){N.detail&&N.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=N.detail.visible,wh(this))};
cuL.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var dUE=_.pf.persistentPanelVisibleSelector,NU=function(){var N=_.z.apply(this,arguments)||this;N.miniGuideVisible=!1;N.guideOpened=_.T("disable_initial_guide_state_fix")?!1:N.canFitPersistentGuide(N.initialBodyClientWidth);N.guideUserStateOpened=N.getInitialGuideUserStateOpened();N.isFullscreenShorts=!1;N.miniGuideWidthThreshold=_.d7("kevlar_mini_guide_width_threshold",791);N.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
N.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");N.persistentGuideBlockedPagePathRegex=new RegExp(N.persistentGuideBlockedPagesPatterns.join("|"));N.animationTransitionDuration=0;N.lateDataResolver=_.Y9();N.initialGuideDataFetchFailed=!1;N.initialLoad=!0;N.guideRenderers=new Set;N.isMouseOverGuide=!1;N.sessionUserManuallyExpandedGuideState=
!1;N.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return N};
_.F(NU,_.z);_.v=NU.prototype;_.v.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.v.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.v.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.v.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.v.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.v.ready=function(){_.aN().addProvider({provide:_.WO,useValue:this.hostElement})};
_.v.attached=function(){var N=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.aA(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.aA(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.aA(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.aA(this,this.onYtGuideShow));_.W_(this,function(){N.animationTransitionDuration=200})};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.aA(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.aA(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.aA(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.aA(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.aA(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.aA(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.aA(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.v.getData=function(){return this.data};
_.v.load=function(){var N=this,b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=N.lateDataResolver.resolve.bind(N),K.return(N.lateDataResolver.promise);if(window.ytInitialGuideData)return b=_.Y9(),b.resolve(window.ytInitialGuideData),K.return(b.promise);P=!1;_.u4(K,2);return K.yield(N.fetchGuideData(),4);case 4:S=K.yieldResult;_.su(K,3);break;case 2:H=_.UE(K),H.message==="Returned error"&&(P=
!0);case 3:if(S)return K.return(S);N.onYtGuideClose();P||(N.initialGuideDataFetchFailed=!0);return K.return(N.lateDataResolver.promise)}})};
_.v.fetchGuideData=function(){var N=this,b,S,P,H,K,C,G;return _.r(function(a){if(a.nextAddress==1)return b=_.aN(),N.guidePromise||(S=b.resolve(_.Mn),N.guidePromise=_.pU(S,G5i)),a.yield(N.guidePromise,2);if(a.nextAddress!=3)return P=a.yieldResult,H=b.resolve(_.KK),a.yield(H(),3);(K=a.yieldResult)&&((C=P)==null?void 0:(G=C.responseContext)==null?void 0:G.maxAgeSeconds)!==0&&K.put("service:guide:fallback",new _.p5({innertubeResponse:P}));return a.return(P)})};
_.v.initializeGuideDataIfEmpty=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1){if(!N.initialGuideDataFetchFailed||N.data)return P.return();_.u4(P,2);return P.yield(N.fetchGuideData(),4)}if(P.nextAddress!=2)return(b=P.yieldResult)&&N.lateDataResolver.resolve(b),_.su(P,0);S=_.UE(P);_.$h(S);_.Zd(P)})};
_.v.initializeGuideData=function(){var N=this,b,S;return _.r(function(P){switch(P.nextAddress){case 1:return _.Wp(wzE(),{mainAppWeb:_.Yn()}),_.u4(P,2),P.yield(N.load(),4);case 4:N.data=P.yieldResult;_.su(P,3);break;case 2:b=_.UE(P),_.nS(wzE(),"FAILURE"),_.$h(new _.jU("Guide data not present",{errorMessage:b.message}));case 3:S=N.data&&N.data.items&&N.data.items.length>0?"SUCCESS":"FAILURE",S==="FAILURE"&&_.$h(new _.jU("Guide data.items empty")),_.nS(wzE(),S),_.Zd(P)}})};
_.v.setGuideData=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1)return b.disabled?H.return():b.data?(N.data=b.data,b.guideRenderers.add(N),H.return()):H.yield(b.initializeGuideData(),2);b.graftGuideToPage();S=_.g8("IS_HOMEPAGE_COLD")?"eop":void 0;_.T("disable_element_pool_populator")?b.setGuideDataAfterInit(N):(P=new _.LG(1,S),_.fG(P,b.setGuideDataAfterInit.bind(b,N)));_.Zd(H)})};
_.v.setGuideDataAfterInit=function(N){N.data=this.data;N.markDirty();this.guideRenderers.add(N);_.p3(function(){_.uC("gle")});
_.W_(this,function(){_.uC("gpe")})};
_.v.graftGuideToPage=function(){if(this.data){var N=this.data&&this.data.trackingParams;N&&(N=_.FA(N),_.pc(_.dG(),N))}};
_.v.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.aA(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.v.onDrawerOpenedChanged=function(N,b){!b.value&&this.guideOpened&&(this.guideOpened=!1)};
_.v.onYtGuideToggle=function(N){var b=this.guideOpened;this.guideOpened=!b;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var S=_.WN();_.nA(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;S.save()}this.updateGuideDrawerElementState();if(this.guideElement){var P;this.guideOpened&&((P=N.detail)==null?0:P.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.aA(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.aA(this,this.onAppDrawerTransitioned))}b||this.initializeGuideDataIfEmpty()};
_.v.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.aA(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Cv(this.guideElement)};
_.v.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.aA(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Jq5(this.guideOpened))};
_.v.guidePersistentAndVisibleChanged=function(){_.PN(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.v.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.HU({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.v.miniGuideVisibleChanged=function(){_.PN(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.v.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Jq5(this.guideOpened)),this.initialLoad=!1);_.PN(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.v.activeEndpointChanged=function(){_.PN(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.v.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.v.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.v.cachedClientWidthChanged=function(){this.updateGuideState()};
_.v.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.v.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var N=this.canFitPersistentGuide(this.cachedClientWidth);N?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=N}this.updateGuideDrawerElementState()};
_.v.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.v.getGuideOpened=function(){return this.guideOpened};
_.v.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.v.getActiveEndpoint=function(){return this.activeEndpoint};
_.v.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.v.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.bC(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.v.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.T("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.v.handleGuideMouseLeave=function(){var N=this;!this.sessionUserManuallyExpandedGuideState&&_.T("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Yq(this,"handleGuideMouseLeave",function(){N.isMouseOverGuide||!N.guideOpened||N.miniGuideVisible||(N.guideOpened=!1,N.updateGuideDrawerElementState())},100))};
_.v.computeGuidePersistentAndVisible=function(){var N=this;_.Yq(this,"computeGuidePersistentAndVisible",function(){N.guidePersistentAndVisible=N.guideOpened&&N.guidePersistent;N.guideIsVisibleButNotPersistent=!(!N.guideOpened||N.guidePersistent)})};
_.v.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.v.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.v.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.v.startLoadingWatch=function(){this.closeGuide()};
_.v.startLoadingShorts=function(){_.T("web_hide_guide_on_shorts")&&this.closeGuide()};
_.v.onYtNavigateFinish=function(N,b){if(!_.rV||b){this.activeEndpoint=b.endpoint;this.pageType=b.pageType;this.pageUrl=b.response.url;var S,P;N=(P=_.t((S=b.endpoint)==null?void 0:S.commandMetadata,_.GY))==null?void 0:P.url;!this.pageUrl&&N&&(this.pageUrl=N);_.T("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.v.getVisibleGuideRenderer=function(){for(var N=_.O(this.guideRenderers),b=N.next();!b.done;b=N.next())if(b=b.value,this.miniGuideVisible&&b.is==="ytd-mini-guide-renderer"||this.guideOpened&&b.is==="ytd-guide-renderer")return b;return null};
_.v.markGuideRendererDirty=function(N){if(N){typeof N.markDirty==="function"&&N.markDirty();N=_.O([].concat(_.IX(_.H4(N).children)));for(var b=N.next();!b.done;b=N.next())this.markGuideRendererDirty(b.value)}};
_.v.persistentGuideEnabled=function(N,b){if(!b||N==="watch"||N==="settings"||N==="shorts"&&this.isFullscreenShorts||_.T("reels_web_disable_persistent_guide_shorts")&&N==="shorts")return!1;var S=_.Bq(b)||"";return _.T("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(P){return S===P}):!this.persistentGuideBlockedPagePathRegex.test(S)};
_.v.canFitPersistentGuide=function(N){var b=_.d7("kevlar_persistent_guide_width_threshold",1312);return b===-1||_.T("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:N>this.calculateGuideThreshold(b)};
_.v.calculateGuideThreshold=function(N){return _.T("enable_ai_companion")?N+(this.persistentPanelVisible?400:0):N};
_.v.canFitMiniGuide=function(N){return this.miniGuideWidthThreshold===-1?!1:N>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.v.onResize=function(){var N=this;_.Yq(this,"calculateGuideState",function(){N.onResizeDebounced()})};
_.v.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.v.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.v.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.v.getInitialGuideUserStateOpened=function(){return _.T("web_force_mini_guide_default")?!1:!_.WN().getFlag(109)};
_.d0.Object.defineProperties(NU.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Vg("initialBodyClientWidth")||window.innerWidth}}});
NU.prototype.onResize=NU.prototype.onResize;NU.prototype.observeForMiniGuideVisible=NU.prototype.observeForMiniGuideVisible;NU.prototype.computeGuidePersistentAndVisible=NU.prototype.computeGuidePersistentAndVisible;NU.prototype.persistentPanelVisibleChanged=NU.prototype.persistentPanelVisibleChanged;NU.prototype.cachedClientWidthChanged=NU.prototype.cachedClientWidthChanged;NU.prototype.resetGuide=NU.prototype.resetGuide;NU.prototype.activeEndpointChanged=NU.prototype.activeEndpointChanged;
NU.prototype.guideOpenedChanged=NU.prototype.guideOpenedChanged;NU.prototype.miniGuideVisibleChanged=NU.prototype.miniGuideVisibleChanged;NU.prototype.guideIsVisibleButNotPersistentChanged=NU.prototype.guideIsVisibleButNotPersistentChanged;NU.prototype.guidePersistentAndVisibleChanged=NU.prototype.guidePersistentAndVisibleChanged;NU.prototype.onGuideElementChanged=NU.prototype.onGuideElementChanged;NU.prototype.onGuidePersistentChanged=NU.prototype.onGuidePersistentChanged;
NU.prototype.onRenderGuideChanged=NU.prototype.onRenderGuideChanged;NU.prototype.onActiveEndpointChanged=NU.prototype.onActiveEndpointChanged;NU.prototype.onMiniGuideVisibleChanged=NU.prototype.onMiniGuideVisibleChanged;NU.prototype.onGuideIsVisibleButNotPersistentChanged=NU.prototype.onGuideIsVisibleButNotPersistentChanged;NU.prototype.onGuidePersistendAndVisibleChanged=NU.prototype.onGuidePersistendAndVisibleChanged;
_.p([_.L(_.$M),_.y("design:type",Object)],NU.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],NU.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],NU.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],NU.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],NU.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"disabled",void 0);_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"guidePersistentAndVisible",void 0);_.p([_.W4("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onGuidePersistendAndVisibleChanged",null);_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"guideIsVisibleButNotPersistent",void 0);
_.p([_.W4("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.p([_.U(),_.y("design:type",Object)],NU.prototype,"miniGuideVisible",void 0);_.p([_.W4("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onMiniGuideVisibleChanged",null);_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"forceMiniGuideClose",void 0);
_.p([_.U(),_.y("design:type",Object)],NU.prototype,"activeEndpoint",void 0);_.p([_.W4("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onActiveEndpointChanged",null);_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"renderGuide",void 0);_.p([_.W4("renderGuide"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onRenderGuideChanged",null);
_.p([_.U({selector:dUE}),_.y("design:type",Boolean)],NU.prototype,"persistentPanelVisible",void 0);_.p([_.U(),_.y("design:type",Object)],NU.prototype,"guideOpened",void 0);_.p([_.U(),_.y("design:type",Boolean)],NU.prototype,"guidePersistent",void 0);_.p([_.W4("guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onGuidePersistentChanged",null);_.p([_.U(),_.y("design:type",Object)],NU.prototype,"guideUserStateOpened",void 0);
_.p([_.U(),_.y("design:type",String)],NU.prototype,"pageUrl",void 0);_.p([_.U(),_.y("design:type",String)],NU.prototype,"pageType",void 0);_.p([_.U(),_.y("design:type",Number)],NU.prototype,"cachedClientWidth",void 0);_.p([_.U(),_.y("design:type",Object)],NU.prototype,"guideElement",void 0);_.p([_.U({selector:_.HP}),_.y("design:type",Object)],NU.prototype,"isFullscreenShorts",void 0);
_.p([_.W4("guideElement"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onGuideElementChanged",null);_.p([_.W4("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"guidePersistentAndVisibleChanged",null);
_.p([_.t_("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"guideIsVisibleButNotPersistentChanged",null);_.p([_.W4("miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"miniGuideVisibleChanged",null);_.p([_.t_("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"guideOpenedChanged",null);
_.p([_.W4("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"activeEndpointChanged",null);_.p([_.t_("pageUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"resetGuide",null);_.p([_.t_("cachedClientWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"cachedClientWidthChanged",null);
_.p([_.t_("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"persistentPanelVisibleChanged",null);_.p([_.W4("guideOpened","guidePersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"computeGuidePersistentAndVisible",null);
_.p([_.t_("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"observeForMiniGuideVisible",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NU.prototype,"onResize",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-guide-manager"})],NU);
var mUa=_.X(NU,"yt-guide-manager",void 0,{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var wPo=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],Sw=new Map;Sw.set(32,59972);Sw.set(27,50765);Sw.set(70,60102);Sw.set(76,60221);Sw.set(77,60222);Sw.set(74,60223);Sw.set(84,60224);Sw.set(38,61941);Sw.set(40,61942);Sw.set(73,62521);Sw.set(67,62522);Sw.set(80,63390);Sw.set(78,63397);Sw.set(75,59972);Sw.set(188,63385);Sw.set(190,63384);Sw.set(36,63387);Sw.set(35,63386);Sw.set(37,63388);
Sw.set(39,63389);Sw.set(79,63423);Sw.set(87,63424);Sw.set(107,63426);Sw.set(109,63425);Sw.set(65,63428);Sw.set(83,63430);Sw.set(68,63429);Sw.set(221,63431);Sw.set(219,63432);Sw.set(97,63439);Sw.set(98,63440);Sw.set(99,63441);Sw.set(100,63442);Sw.set(101,63443);Sw.set(102,63444);Sw.set(103,63445);Sw.set(104,63446);Sw.set(105,63447);var b9=new Map;b9.set(80,63390);b9.set(78,63397);b9.set(188,63400);b9.set(190,63401);b9.set(191,60765);b9.set(13,247917);var qxi=new Map,hSo=new Map;var by=function(){var N=_.z.apply(this,arguments)||this;N.JSC$21578_keyboardInUse=!1;N.boundHandleCapturedKeydownEvent=function(b){N.handleCapturedKeydownEvent(b)};
return N};
_.F(by,_.z);_.v=by.prototype;_.v.attached=function(){this.listenToDocument(document)};
_.v.listenToDocument=function(N){N.addEventListener("keydown",_.aA(this,this.onKeyDownEvent));N.addEventListener("keyup",_.aA(this,this.onKeyUpEvent));N.addEventListener("mousedown",_.aA(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||N.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);N.addEventListener("yt-page-data-updated",_.aA(this,this.onPageUpdate))};
_.v.detached=function(){this.unlistenFromDocument(document)};
_.v.unlistenFromDocument=function(N){N.removeEventListener("keydown",_.aA(this,this.onKeyDownEvent));N.removeEventListener("keyup",_.aA(this,this.onKeyUpEvent));N.removeEventListener("mousedown",_.aA(this,this.onMouseDownEvent));_.T("desktop_keyboard_capture_keydown_killswitch")||N.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);N.removeEventListener("yt-page-data-updated",_.aA(this,this.onPageUpdate))};
_.v.ready=function(){_.aN().addProvider({provide:_.QJ,useValue:this})};
_.v.isKeyBoardInUse=function(){return this.JSC$21578_keyboardInUse};
_.v.handleCapturedKeydownEvent=function(N){if(N.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(N)};
_.v.onMouseDownEvent=function(){this.JSC$21578_keyboardInUse=!1};
_.v.onPageUpdate=function(){if(_.T("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.T("web_shorts_keyboard_shortcut_usage_log")){qxi.clear();for(var N=_.O(Sw),b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;S=_.OW(S);qxi.set(b,S);_.AZ(_.Qh(),_.uZ(),S)}hSo.clear();N=_.O(b9);for(b=N.next();!b.done;b=N.next())S=_.O(b.value),b=S.next().value,S=S.next().value,S=_.OW(S),hSo.set(b,S),_.AZ(_.Qh(),_.uZ(),S);_.X8(_.Qh(),_.uZ(),[].concat(_.IX(hSo.values()),_.IX(qxi.values())));
_.pA(_.Qh(),[].concat(_.IX(hSo.values()),_.IX(qxi.values())))}};
_.v.onMiniplayerActiveChange=function(){var N;(N=_.aN().resolve(_.E_).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(N.document):this.unlistenFromDocument(N.document))};
_.v.ignoreKeyEvent=function(N){if(N.ctrlKey||N.altKey)if(_.T("kevlar_macro_markers_keyboard_shortcut")){if(N.keyCode!==37&&N.keyCode!==39)return!0}else return!0;var b=_.V7(N)||[];return N6a(b)?(_.T("web_button_or_anchor_list_item")&&bSJ(b,N)&&(this.JSC$21578_keyboardInUse=!0),!0):N.defaultPrevented?(PH(N.keyCode,N.shiftKey,this.isShortsPage),!0):N.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(N):!1};
_.v.isSpacebarClick=function(N){var b=N||window.event;var S;b.composedPath&&typeof b.composedPath==="function"?S=b.composedPath():S=b.path;S&&S.length?b=S[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b&&N.keyCode===32&&(N=b.tagName==="BUTTON"||b.tagName==="A"||b.tagName==="INPUT",b=(b=b.getAttribute("role"))&&(b==="option"||b==="button"||b.indexOf("menuitem")===0),N||b)?!0:!1};
_.v.onKeyDownEvent=function(N){if(!this.ignoreKeyEvent(N)&&(N.keyCode===191&&(N.shiftKey||N.metaKey?N.repeat!=null&&N.repeat||(this.openHotkeyDialog(),PH(N.keyCode,N.shiftKey,this.isShortsPage)):(this.focusSearchBox(),N.preventDefault())),!N.metaKey)){var b=_.aN().resolve(_.E_);switch(N.keyCode){case 9:this.JSC$21578_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(N);break;case 84:b.pipController.getWindow()&&window.focus();this.toggleTheaterMode(N.keyCode,N.shiftKey);break;case 73:b.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(N.keyCode,N.shiftKey);break;case 70:if(this.isShortsPage){uFQ();break}this.isMiniplayerActive()?b.pipController.getWindow()&&(b.close(!0),window.focus()):this.passEventToPlayer(N);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(N.keyCode,N.shiftKey):this.closeMiniplayer(N.keyCode,N.shiftKey)||this.passEventToPlayer(N);break;case 13:N.shiftKey&&_.aN().resolve(_.fK).activate(N);break;default:this.passEventToPlayer(N)}}};
_.v.onKeyUpEvent=function(N){if(!this.ignoreKeyEvent(N))if(_.T("web_speedmaster_spacebar_control")&&N.keyCode===32)this.handlePlayerSpaceKey(N,!0);else{var b=this.getPlayerManager();b&&(b=b.getPlayer())&&b.handleGlobalKeyUp(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code)}};
_.v.getPlayerManager=function(){var N=_.qE(),b=_.aN().resolve(_.cq(_.$9));return N&&b&&b.isOnWatch()?N:null};
_.v.passEventToPlayer=function(N,b){var S=this,P,H,K,C;return _.r(function(G){if(G.nextAddress==1){if(!_.T("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&S.isMiniplayerActive())P=_.aN().resolve(_.E_).getPlayerElement();else if(S.inlinePreviewIsActive){if(H=_.PN(S.hostElement,"yt-get-inline-preview-player-action"),(K=H)==null?0:K[0])P=H[0]}else P=_.qE();return P?G.yield(P.getPlayerPromise(),3):G.jumpTo(0)}C=G.yieldResult;b?C.handleGlobalKeyUp(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,
N.key,N.code):C.handleGlobalKeyDown(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code,N.repeat);N.keyCode!==38&&N.keyCode!==40&&PH(N.keyCode,N.shiftKey,S.isShortsPage);_.Zd(G)})};
_.v.focusSearchBox=function(){_.bC(this.hostElement,"yt-focus-searchbox")};
_.v.openHotkeyDialog=function(){_.bC(this.hostElement,"yt-open-hotkey-dialog")};
_.v.isMiniplayerActive=function(){return _.aN().resolve(_.E_).isMiniplayerActive()};
_.v.closeMiniplayer=function(N,b){return this.isMiniplayerActive()?(_.aN().resolve(_.E_).close(),PH(N,b,this.isShortsPage),!0):!1};
_.v.toggleTheaterMode=function(N,b){var S=_.QC(_.h0().getState()),P=this.getPlayerManager(),H=_.T("disable_theater_mode_keyboard")||_.g8("START_IN_FULL_WINDOW_MODE");P&&!H&&(S=!S,_.hw()&&_.T("external_fullscreen")&&(S=!0),_.St(this.hostElement,"yt-toggle-theater-mode",[S]),PH(N,b,this.isShortsPage))};
_.v.toggleMiniplayer=function(N,b){var S=this.getPlayerManager();if(this.isMiniplayerActive()){var P;((P=_.aN().resolve(_.cq(_.$9)))==null?0:P.isOnWatch())?_.aN().resolve(_.E_).close(!0):_.jP(_.aN().resolve(_.E_));PH(N,b,this.isShortsPage)}else S&&(_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action"),PH(N,b,this.isShortsPage))};
_.v.handlePlayerSpaceKey=function(N,b){var S=!!_.qE()||this.isMiniplayerActive();S=_.T("disable_space_scroll_fix")||S;_.T("global_spacebar_pause")&&!this.isKeyBoardInUse()&&S&&(N.preventDefault(),this.passEventToPlayer(N,b))};
_.v.isPresentingTheaterMode=function(){return _.T("web_watch_enable_tm_esc_key")?_.QC(_.h0().getState())&&!_.hw():!1};
by.prototype.onMiniplayerActiveChange=by.prototype.onMiniplayerActiveChange;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);_.p([_.U({selector:_.Ego}),_.y("design:type",Boolean)],by.prototype,"inlinePreviewIsActive",void 0);_.p([_.U({selector:_.LCe}),_.y("design:type",Boolean)],by.prototype,"isShortsPage",void 0);
_.p([_.U({selector:_.op}),_.y("design:type",Boolean)],by.prototype,"miniplayerIsActive",void 0);_.p([_.W4("miniplayerIsActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],by.prototype,"onMiniplayerActiveChange",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-hotkey-manager"})],by);_.X(by,"yt-hotkey-manager",void 0,{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var ST=function(){var N=_.z.apply(this,arguments)||this;N.loopStateEntityKey_=null;N.playlistLoopStateEntity_=null;N.isShuffleNextPlaylist=!1;N.PLAYER_EVENTS_=new Map;N.playerListenersSetup_=!1;N.videoSkipJob_=0;N.canAutoAdvance_=!1;N.playerManager_=null;N.TEST_ONLY={};return N};
_.F(ST,_.z);_.v=ST.prototype;_.v.ready=function(){_.aN().addProvider({provide:_.dt,useValue:this.hostElement})};
_.v.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.v.attached=function(){document.addEventListener("yt-navigate-start",_.aA(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.aA(this,this.onYtNavigateFinish_))};
_.v.detached=function(){document.removeEventListener("yt-navigate-start",_.aA(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.aA(this,this.onYtNavigateFinish_))};
_.v.updatePlaylistEventListeners=function(N,b){b&&!this.playerListenersSetup_?(this.playerManager_=N,this.registerPlaylistEventListeners_(N)):!b&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(N))};
_.v.setPlayer=function(N){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=N};
_.v.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.v.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.v.registerPlaylistEventListeners_=function(N){var b=this;N.getPlayerPromise().then(function(S){b.playerListenersSetup_||(b.ytPlayerListenerBehavior.listenToPlayerEvents(S,b.PLAYER_EVENTS_),b.playerListenersSetup_=!0)})};
_.v.removePlaylistEventListeners_=function(N){var b=this;N.getPlayerPromise().then(function(S){b.playerListenersSetup_&&(b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,b.PLAYER_EVENTS_),b.playerListenersSetup_=!1)})};
_.v.setPlaylistComponent=function(N){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.aA(this,this.onPlaylistYtNavigate_)),N&&(N.data&&this.playlistComponent.data&&N.data.playlistId==this.playlistComponent.data.playlistId?(N.loopOn=this.playlistComponent.loopOn,N.shuffleOn=this.playlistComponent.shuffleOn):(N.loopOn=!1,N.shuffleOn=!1),this.isShuffleNextPlaylist&&(N.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=N;this.playlistComponent.addEventListener("yt-navigate",
_.aA(this,this.onPlaylistYtNavigate_))};
_.v.setAutoplayRenderer=function(N){this.autoplayData=N};
_.v.setPlaylistData=function(N){this.currentPlaylistData_=N;_.bC(this.hostElement,"yt-playlist-data-updated");_.Vm.isEmpty(N)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(N)};
_.v.setPlayerPlaybackControlData=function(N){this.playerManager_&&this.playerManager_.updatePlayerComponents(N.playlistPanelRenderer)};
_.v.getPlaylistData=function(){return this.currentPlaylistData_};
_.v.getTempData_=function(N,b){if(this.playlistComponent==null)return null;N={};this.playlistComponent.shuffleOn&&(N.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(N.loop_on=this.playlistComponent.loopOn);b&&(N.autonav="1",_.aN().resolve(_.mh),b=_.nv(),b>0&&(N.lact=b),this.playerManager_&&(b=this.playerManager_.getPlayer())&&b.shouldSendVisibilityState()&&(b=b.getVisibilityState(),b!=0&&(N.vis=b)));_.T("enable_unknown_lact_fix_on_html5")&&(_.aN().resolve(_.mh),N.lact=
_.nv());return N};
_.v.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.v.setLoopStateEntityKey_=function(N){var b;this.loopStateEntityKey_=((b=this.getPlaylistLoopData_(N))==null?void 0:b.playlistLoopStateEntityKey)||null};
_.v.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.v.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.v.skipVideo=function(){var N=this,b=_.T("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||b)b=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Bm(_.Dj,function(){N.onPlaylistNext();N.videoSkipJob_=0},b)};
_.v.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Dj.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.v.isInBackground_=function(){var N=window.document.visibilityState;return!(!N||N=="visible")};
_.v.onPlaylistIndex_=function(N){this.playlistComponent&&(N=this.playlistComponent.data.contents[N].playlistPanelVideoRenderer.navigationEndpoint,_.bC(this.hostElement,"yt-navigate",{endpoint:N,tempData:this.getTempData_(N)}))};
_.v.onPlayerStateChange_=function(N){if(N=N==0&&this.playlistComponent&&this.canAutoAdvance_)N=_.ut.getInstance(),N=!(N.autonavState_===3?N.autonavPauseReason_&&N.autonavPauseReason_.inputBoxFocus===!0:N.autonavState_===1&&N.disabledAutonavPauseReason_&&N.disabledAutonavPauseReason_.inputBoxFocus===!0);N&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.v.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.v.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.v.navigateToAutoplayWatchEndpoint_=function(N,b,S){var P=this.playlistComponent.data.currentIndex,H=this.getNumPlayableVideos_();N=="NORMAL"&&b=="autoplayVideo"&&P+1>=H&&S||!(N=this.getVideoEndpoint_(N,b))||(S=this.getTempData_(N,S),_.bC(this.hostElement,"yt-navigate",{endpoint:N,tempData:S}))};
_.v.getNumPlayableVideos_=function(){for(var N=0,b=_.O(this.playlistComponent.data.contents||[]),S=b.next();!S.done;S=b.next())S.value.playlistPanelVideoRenderer&&(N+=1);return N};
_.v.getVideoEndpoint_=function(N,b){if(this.autoplayData&&this.autoplayData.sets)for(var S=0,P=this.autoplayData.sets.length;S<P;S++){var H=this.autoplayData.sets[S];if(H.mode==N){if(H[b])return H[b];break}}else N=new _.jU("AutoplayData is undefined in playlist manager","Mode: "+N+" endpoint: "+b),_.$h(N)};
_.v.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.v.onPlaylistYtNavigate_=function(N){if(N.detail.endpoint){N.stopPropagation();var b=N.detail;b.tempData=this.getTempData_(N.detail.endpoint);_.bC(this.hostElement,"yt-navigate",b)}};
_.v.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.v.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.v.playlistLoopStateEntityChanged_=function(N){var b=this,S,P,H;return _.r(function(K){if(K.nextAddress==1){if(!N)return K.return();S=N.state==="PLAYLIST_LOOP_STATE_ONE";return b.playerManager_?K.yield(b.playerManager_.getPlayerPromise(),3):K.jumpTo(2)}K.nextAddress!=2&&(P=K.yieldResult,P.setLoopVideo(S));H=N.state==="PLAYLIST_LOOP_STATE_ALL";b.playlistComponent&&(b.playlistComponent.loopOn=H);_.Zd(K)})};
_.v.getPlaylistLoopData_=function(N){var b,S;if(N=N==null?void 0:(b=N.playlistButtons)==null?void 0:(S=b.menuRenderer)==null?void 0:S.topLevelButtons)for(b=_.O(N),S=b.next();!S.done;S=b.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer};
_.v.getLoopStateCommand_=function(N){var b=this.getPlaylistData(),S;b=((S=this.getPlaylistLoopData_(b))==null?void 0:S.states)||[];var P;N=(P=_.t(b[N?1:2],_.cHz))==null?void 0:P.button;var H;return(H=_.t(N,_.rU))==null?void 0:H.command};
_.v.onPlayerLoopChange_=function(N){this.playlistLoopStateEntity_&&(N?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(N=this.getLoopStateCommand_(N))&&this.ytComponentBehavior.resolveCommand(N)};
_.v.onSleepTimerSettingsChanged_=function(N){this.canAutoAdvance_=N!=="End of video"};
ST.prototype.onPlaylistLoopStateEntityChanged=ST.prototype.onPlaylistLoopStateEntityChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],ST.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],ST.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ST.prototype,"loopStateEntityKey_",void 0);
_.p([_.U({selectorArgs:["loopStateEntityKey_"],selector:_.Pc.playlistLoopStateEntitySelector}),_.y("design:type",Object)],ST.prototype,"playlistLoopStateEntity_",void 0);_.p([_.W4("playlistLoopStateEntity_"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ST.prototype,"onPlaylistLoopStateEntityChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"yt-playlist-manager"})],ST);_.X(ST,"yt-playlist-manager",void 0,{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var kZt,TvL=function(){if(kZt!==void 0)return kZt;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return kZt=N};var PV=function(){var N=_.z.apply(this,arguments)||this;N.lastCallback=null;N.getAccountLinkPromises={};N.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);N.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return N};
_.F(PV,_.z);_.v=PV.prototype;_.v.getLocation=function(){return window.location.href};
_.v.getCompletionUrl=function(){return _.gp(this.getLocation())};
_.v.containsRedirectState=function(N){return(N=_.xE(_.q4I(N)))?(new URLSearchParams(N)).get("redirect_state")!==null:!1};
_.v.createGalConfig=function(N,b){var S=new TRq;N=S=b?this.getPopupOrRedirectSetting(S,_.Vg("LINK_API_KEY"),_.Vg("LINK_API_KEY_REDIRECT"),N):t2i(S,_.Vg("LINK_API_KEY"));N.authUser=_.Vg("SESSION_INDEX")||0;N.supportedFlows=new Set([4]);return N.build()};
_.v.getPopupOrRedirectSetting=function(N,b,S,P){this.isGalInteractionPopupMode(P)?(N.interactionMode=0,N=t2i(N,b)):(N.interactionMode=1,b=this.getCompletionUrl(),N.completionUrl=b,N=t2i(N,S));return N};
_.v.isGalInteractionPopupMode=function(N){if(this.redirectModeProviderAllowlist.has(N))switch(N){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.v.getStatusEntityKeyForProviderId=function(N){return _.Cu(N+":all","accountLinkStatusEntity")};
_.v.findNestedPropValue=function(N,b){var S=!1,P=null;JSON.stringify(N,function(H,K){S||H!==b||(S=!0,P=K);return S?null:K});
return P};
_.v.findAccountLinkButtonViewModel=function(N,b){var S=null,P=!1;JSON.stringify(N,function(H,K){P||K.accountLinkStatusEntityKey!==b||K.accountLinkStatusSecondaryEntityKey||(P=!0,S=K);return P?null:K});
return S};
_.v.executeLinkingSuccessOrFailureCommands=function(N,b,S){var P=null,H;(b==null?0:(H=b.url)==null?0:H.includes("account_sharing"))?P=b==null?void 0:b.response:P=b==null?void 0:b.response;(b=this.findAccountLinkButtonViewModel(P,N))?(N=S?this.findNestedPropValue(b,"onSuccessCommand"):this.findNestedPropValue(b,"onFailureCommand"))?_.OR([N],this.hostElement):_.qB(Error("Sl")):_.qB(Error("Tl`"+N))};
_.v.handleInitializeRequest=function(N,b){var S=this,P=wUw(this.createGalConfig(N,!0));this.containsRedirectState(this.getLocation())?gGE(N,P.config,P.galService).then(function(H){var K=S.getStatusEntityKeyForProviderId(N);if(H.statusCode===1)b&&S.executeLinkingSuccessOrFailureCommands(K,b,!0),H=S.getLocation().indexOf("#"),H!==-1&&window.history.pushState(null,"",S.getLocation().substring(0,H));else return b&&S.executeLinkingSuccessOrFailureCommands(K,b,!1),Promise.reject(Error(H.statusMessage))}).catch(function(H){_.$h(H);
_.Dn("gamingAccountLinkStatusChanged",{serviceId:N,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(H)}):this.getAccountLinkPromises[N]=P.startLinkingSession({serviceId:N})};
_.v.handleAccountLinkCommand=function(N){_.t(N,Pu6)&&this.handleLinkRequest(_.t(N,Pu6))};
_.v.handleLinkRequest=function(N){var b=this,S=N.thirdPartyId;if(S)if(this.isGalInteractionPopupMode(S)){var P=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",N.onFailureCommand)},H=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",N.onSuccessCommand)};
this.lastCallback=H;this.getAccountLinkPromises[S].then(function(K){Scq(K).then(function(C){C.statusCode===1?H():P()})}).catch(function(){P()})}else this.getAccountLinkPromises[S].then(function(K){Scq(K).then(function(C){if(C.statusCode!==1)return Promise.reject(Error(C.statusMessage))})}).catch(function(K){_.$h(K);
_.Dn("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(K)})};
_.v.closeAndFire=function(N,b){_.St(this.hostElement,"yt-close-popup-action",[N]);b&&_.OR([b],this.hostElement)};
_.v.handleAccountUnlinkCommand=function(N){_.t(N,HHE)&&this.handleUnlinkRequest(_.t(N,HHE))};
_.v.handleUnlinkRequest=function(N){var b=this,S=N.thirdPartyId;if(S){var P=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",N.onFailureCommand)},H=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",N.onSuccessCommand)};
this.lastCallback=H;var K=wUw(this.createGalConfig(S,!1));this.unlinkUserGal(K,S).then(function(C){C.statusCode===1?H():P()}).catch(function(){P()})}};
_.v.unlinkUserGal=function(N,b){return N.deleteLink(b)};
_.v.handleLogAccountLinkingEventCommand=function(N){_.T("enable_gel_log_commands")&&_.t(N,KMa)&&(N=_.t(N,KMa).event)&&_.Dn("gamingAccountLinkStatusChanged",N)};
_.d0.Object.defineProperties(PV,{template:{configurable:!0,enumerable:!0,get:function(){return TvL()}}});
_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],PV.prototype,"ytOpenPopupBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],PV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-third-party-manager"})],PV);_.X(PV,"ytd-third-party-manager",function(){return TvL()},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var tTa=2/3,MTL=_.OW(130749),FzE=function(N,b){var S=this;this.element=N;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){S.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:tTa,moveAction:function(P){S.moveAction(P)},
triggerAction:function(){S.element.isReloading=!0;_.A8(_.dG(),{visualElement:MTL});_.rG.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:S.element}})}}}};
_.pc(_.dG(),MTL,this.layer);this.gesture=new gN(N,b,this.refreshConfig,"pan-down");this.attach()};
_.v=FzE.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.reset=function(){this.element.close()};
_.v.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.v.moveAction=function(N){this.element.rotation=N*360};var Bvq=_.OW(130750),Lz_=function(N,b,S,P,H){var K=this;this.element=N;this.parent=S;this.channelHeader=P;this.ytdReduxDispatch=H;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){K.tabsStartAtInPx=K.channelHeader.clientHeight-48;var C;(C=K.selectedTab)!=null&&C.title&&(C=_.aN().resolve(_.cq(_.$9)))&&(C=C.getCurrentPage(),K.lastVisitedTabScrollPosition=C.getScrollTop(),K.previousTab&&
((K.lastVisitedTabScrollPosition===void 0?0:K.lastVisitedTabScrollPosition<K.channelHeader.clientHeight-48)?K.scrollPositionForTabs.has(K.selectedTab.title)&&K.scrollPositionForTabs.delete(K.selectedTab.title):K.scrollPositionForTabs.set(K.selectedTab.title,C.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:lDL(),triggerAction:function(){K.navigate(K.previousTab)},
moveAction:function(C,G){K.moveAction(C,G)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-lDL(),triggerAction:function(){K.navigate(K.nextTab)},
moveAction:function(C,G){K.moveAction(C,G)}}}};
_.pc(_.dG(),Bvq,this.layer);this.gesture=new gN(N,b,this.tabConfig);this.attach()};
_.v=Lz_.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.tabsChanged=function(N){if(N){var b=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;N=_.O(N);for(var S=N.next();!S.done;S=N.next()){S=S.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=S);var P=void 0;if((P=S)==null?0:P.selected)this.previousTab=b,this.selectedTab=S;b=S}b=this.gesture;N=this.getConfig();b.config=N;this.scrollPositionNeedsUpdate=!0}};
_.v.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.v.moveAction=function(N,b){if(!this.tabsElement){var S;this.tabsElement=(S=this.parent.header)==null?void 0:S.tabsElement;b==="right"&&this.previousTab?(S=this.previousTab.endpoint,_.Njq(_.aN().resolve(_.u0),S,{},"")):b==="left"&&this.nextTab&&(S=this.nextTab.endpoint,_.Njq(_.aN().resolve(_.u0),S,{},""));if(!this.tabsElement)return}S=this.tabsElement._pos;b==="right"&&(N*=-1);this.tabsElement._positionBar(S.width,S.left*1+S.width*N)};
var lDL=function(){var N,b;return(b=(N=_.aN().resolve(_.$9).getCurrentPage())==null?void 0:N.clientWidth)!=null?b:0};
Lz_.prototype.navigate=function(N){this.element.data=void 0;if(N=N==null?void 0:N.endpoint)this.ytdReduxDispatch(ZOo(!0)),_.A8(_.dG(),{visualElement:Bvq}),_.rG.instance.resolveCommand({navigateAction:{endpoint:N}},{form:{element:this.element}})};var fDa;var uRE;var HV=function(){return _.z.apply(this,arguments)||this};
_.F(HV,_.z);HV.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HV.prototype,"data",void 0);_.p([_.Uj({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],HV);
_.X(HV,"ytd-labs-edit-renderer",function(){if(uRE!==void 0)return uRE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return uRE=N},{mode:1});var QtE;var sV=function(){var N=_.z.apply(this,arguments)||this;N.dark=!1;N.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";N.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(sV,_.z);sV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sV.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.setBackgroundImage(N);this.dark=N};
sV.prototype.onDarkModeToggledAction=function(N){this.setBackgroundImage(N);this.dark=N};
sV.prototype.setBackgroundImage=function(N){_.rq(this.hostElement,{"--yt-labs-header-background":"url("+(N?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],sV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sV.prototype,"dark",void 0);
_.p([_.Uj({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],sV);
_.X(sV,"ytd-labs-header-renderer",function(){if(QtE!==void 0)return QtE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return QtE=N},{mode:1});var xUt;var KR=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return N};
_.F(KR,_.z);KR.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonSize:"size-large"}}}},"data.feedbackButton":{id:"feedback-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonSize:"size-large"}}}}}};
KR.prototype.onYtToggleButton=function(N){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",N.detail.toggled)};
KR.prototype.onManageLabsState=function(N){if(N=_.t(N,iWJ))N.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?N.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&N.labsItemId===this.data.labsItemId&&(N.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.St(this.hostElement,"yt-check-labs-opted-in-state").some(function(b){return b})&&this.data.confirmationDialogCommand?_.sR(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.aN().resolve(_.Wq).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&N.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.aN().resolve(_.Wq).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
KR.prototype.onCheckLabsOptedInState=function(){var N=this.get("data.primaryButton.toggleButtonRenderer");return N?N.isToggled:!1};
_.d0.Object.defineProperties(KR.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
KR.prototype.onYtToggleButton=KR.prototype.onYtToggleButton;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],KR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KR.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],KR.prototype,"itemStyle",null);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],KR.prototype,"onYtToggleButton",null);_.p([_.Uj({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],KR);
_.X(KR,"ytd-labs-item-renderer",function(){if(xUt!==void 0)return xUt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xUt=N},{mode:1});var omw;var iR5;var JuL=function(){return _.z.apply(this,arguments)||this};
_.F(JuL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JuL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JuL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],JuL);
_.X(JuL,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(iR5!==void 0)return iR5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return iR5=N},{mode:1});var UUE;var vV=function(){return _.z.apply(this,arguments)||this};
_.F(vV,_.z);vV.prototype.observeSuperchatChip=function(){if(this.data){var N={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.rq(this.hostElement,N)}};
vV.prototype.colorFromDecimal=function(N){return _.o3(Number(N||0))};
vV.prototype.observeSuperchatChip=vV.prototype.observeSuperchatChip;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vV.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vV.prototype,"observeSuperchatChip",null);_.p([_.Uj({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],vV);
_.X(vV,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(UUE!==void 0)return UUE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return UUE=N},{mode:1});var OV=function(){return _.z.apply(this,arguments)||this};
_.F(OV,_.z);OV.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.chip":{id:"chips",mapping:{liveChatHistorySuperChatChipRenderer:"ytd-live-chat-history-super-chat-chip-renderer",liveChatHistoryNewSponsorChipRenderer:"ytd-live-chat-history-new-sponsor-chip-renderer"}}}};
_.d0.Object.defineProperties(OV.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],OV.prototype,"ytdDismissibleItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],OV.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],OV.prototype,"hideMessageBlock",null);
_.p([_.Uj({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],OV);
_.X(OV,"ytd-live-chat-history-entry-renderer",function(){if(omw!==void 0)return omw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return omw=N},{mode:1});var ZRL;var CR=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return N};
_.F(CR,_.z);
CR.prototype.configureRendererStamper=function(){return{"data.connectButton":{id:"connect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer",accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{setMinWidth:!0}}}},"data.disconnectButton":{id:"disconnect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer"}}}};
CR.prototype.handleUpdateTextCommand=function(N){(N=_.t(N,_.hPz))&&this.data&&this.data.id===N.id&&this.set("data",N)};
CR.prototype.handleUpdateConnectedAppRendererCommand=function(N){if(_.t(N,_.NRl)&&this.data){var b,S;if(N=(b=_.t(N,_.NRl))==null?void 0:(S=b.newConnectedAppRenderer)==null?void 0:S.connectedAppRenderer)this.data=N}};
CR.prototype.computeConnectedAppStyle=function(N){return N.style?N.style.toLowerCase().replace(/_/g,"-"):""};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],CR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CR.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.y("design:type",String)],CR.prototype,"connectedAppStyle",void 0);_.p([_.Uj({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],CR);
_.X(CR,"ytd-connected-app-renderer",function(){if(ZRL!==void 0)return ZRL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ZRL=N},{mode:1});var jt_;var zeL=function(){return _.z.apply(this,arguments)||this};
_.F(zeL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zeL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zeL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],zeL);
_.X(zeL,"ytd-channel-options-renderer",function(){if(jt_!==void 0)return jt_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jt_=N},{mode:1});var AuJ;var GZ=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return N};
_.F(GZ,_.z);GZ.prototype.onCheckboxChange=function(N){this.data&&(N=(this.checked=_.gQ(N).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})};
GZ.prototype.handleUpdateCheckboxCommand=function(N){(N=_.t(N,_.$4S))&&this.data&&this.data.id===N.id&&(this.set("data.disabled",N.disabled),this.set("data.title",N.title))};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],GZ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],GZ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],GZ.prototype,"checked",void 0);_.p([_.Uj({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],GZ);
_.X(GZ,"ytd-settings-checkbox-renderer",function(){if(AuJ!==void 0)return AuJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return AuJ=N},{mode:1});var XVo;var rv=function(){return _.z.apply(this,arguments)||this};
_.F(rv,_.z);rv.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rv.prototype,"data",void 0);_.p([_.Uj({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],rv);
_.X(rv,"ytd-settings-email-item-renderer",function(){if(XVo!==void 0)return XVo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return XVo=N},{mode:1});var EmL;var cV=function(){return _.z.apply(this,arguments)||this};
_.F(cV,_.z);cV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{settingsEmailItemRenderer:{component:"ytd-settings-email-item-renderer",noInjection:!0}}},"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cV.prototype.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
cV.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.d0.Object.defineProperties(cV.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cV.prototype,"data",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],cV.prototype,"expanded",void 0);_.p([_.f("expanded"),_.y("design:type",String),_.y("design:paramtypes",[])],cV.prototype,"emailListExpanded",null);
_.p([_.dq("#options"),_.y("design:type",Object)],cV.prototype,"options",void 0);_.p([_.Uj({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],cV);
_.X(cV,"ytd-settings-email-list-renderer",function(){if(EmL!==void 0)return EmL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return EmL=N},{mode:1});var pVw;var YVJ;var yuO;var IDi;var DUO;var at=function(){return _.z.apply(this,arguments)||this};
_.F(at,_.z);_.v=at.prototype;_.v.computePreselectedOption=function(N,b){return b===this.itemSelected_?N:void 0};
_.v.dataChanged_=function(){var N=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&_.W_(this,function(){var S,P=Number((S=N.data)==null?void 0:S.key);!Number.isNaN(P)&&(N.itemSelected_=P,S=(S=(N.data.items||[])[P])&&S.optionSelectableItemRenderer&&S.optionSelectableItemRenderer.preselectedIndex)&&(N.preselectedSubreason=S)})};
_.v.isSubReasonHidden_=function(N,b){return N!=b};
_.v.onTopItemSelected_=function(N,b){for(var S=_.H4(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),P=0,H=S.length;P<H;P++)S[P].select(0);_.St(this.hostElement,"yt-report-form-update",[b.item.value]);N.stopPropagation()};
_.v.onItemSelected_=function(N,b){_.St(this.hostElement,"yt-report-form-update",[b.item.value]);N.stopPropagation()};
_.v.getItem_=function(N){return N.serviceItem?N.serviceItem:N.navigationItem?N.navigationItem:N.optionSelectableItemRenderer?N.optionSelectableItemRenderer:null};
_.v.computeText_=function(N){return(N=this.getItem_(N))?this.ytRendererBehavior.getSimpleString(N.text):null};
_.v.validate=function(){return this.itemSelected_!==-1};
_.v.computeAriaLabel_=function(N){var b=_.es(N.text);(N=N.accessibility&&N.accessibility.accessibilityData&&N.accessibility.accessibilityData.label)&&(b+=". "+N);return b};
_.v.computeItemSelected_=function(N){return N};
_.v.preventSelection_=function(N){N.stopPropagation();this.tooltipTapped=!0};
_.v.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.v.updateItemSelectedFromBinding=function(N){this.itemSelected_=N.detail.value};
_.v.save=function(){var N;this.validate()&&(N=this.data)!=null&&N.items&&(N=this.data.items[this.itemSelected_],N!=null&&N.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(N.optionSelectableItemRenderer.submitEndpoint)||_.HN(this.hostElement,[N.optionSelectableItemRenderer.submitEndpoint])))};
at.prototype.onPaperRippleTransitionEnd_=at.prototype.onPaperRippleTransitionEnd_;at.prototype.dataChanged_=at.prototype.dataChanged_;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],at.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],at.prototype,"data",void 0);_.p([_.U({value:-1}),_.y("design:type",Number)],at.prototype,"itemSelected_",void 0);
_.p([_.U({computed:"computeItemSelected_(itemSelected_)"}),_.y("design:type",Number)],at.prototype,"value",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],at.prototype,"restoreFocusOnClose",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],at.prototype,"tooltipTapped",void 0);_.p([_.U({value:-1}),_.y("design:type",Number)],at.prototype,"preselectedSubreason",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],at.prototype,"dataChanged_",null);_.p([_.RA("transitionend"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],at.prototype,"onPaperRippleTransitionEnd_",null);_.p([_.J_({is:"yt-options-renderer",disableElementRegistration:!0})],at);
_.X(at,"yt-options-renderer",function(){if(DUO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;IDi===void 0&&(IDi=document.createElement("template"));var P=IDi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);DUO=N}N=DUO;return N},{mode:2});var VT6;var gmQ;var ee6;var $Uw;var Rt=function(){return _.z.apply(this,arguments)||this};
_.F(Rt,_.z);Rt.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Rt.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Rt.prototype.onTap=function(N){if(this.hostElement.classList.contains("selected")||_.St(this.hostElement,"yt-share-panel-can-select-contact-action")[0])N&&N.detail&&(N.detail.x||N.detail.y)&&_.H4(this.hostElement).querySelector("#target").blur(),(N=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),N={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:N?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.St(this.hostElement,"yt-share-panel-select-contact-action",[N])};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.y("design:type",Object)],Rt.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],Rt.prototype,"componentTitle",void 0);_.p([_.dq("#thumbnail"),_.y("design:type",Object)],Rt.prototype,"thumbnail",void 0);_.p([_.J_({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Rt);
_.X(Rt,"yt-enrolled-contact-renderer",function(){if($Uw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;ee6===void 0&&(ee6=document.createElement("template"));var P=ee6;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$Uw=N}N=$Uw;return N},{mode:2});var he6;var qV5;var WV=function(){return _.z.apply(this,arguments)||this};
_.F(WV,_.z);WV.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
WV.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
WV.prototype.onTap=function(N){if(this.hostElement.classList.contains("selected")||_.St(this.hostElement,"yt-share-panel-can-select-contact-action")[0])N&&N.detail&&(N.detail.x||N.detail.y)&&_.H4(this.hostElement).querySelector("#target").blur(),(N=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),N={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:N?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.St(this.hostElement,"yt-share-panel-select-contact-action",[N])};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.y("design:type",Object)],WV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.y("design:type",String)],WV.prototype,"componentTitle",void 0);_.p([_.dq("#thumbnail"),_.y("design:type",Object)],WV.prototype,"thumbnail",void 0);_.p([_.J_({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],WV);
_.X(WV,"yt-suggested-contact-renderer",function(){if(qV5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;he6===void 0&&(he6=document.createElement("template"));var P=he6;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qV5=N}N=qV5;return N},{mode:2});var nR=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-share-panel-reset-action":"onReset"};return N};
_.F(nR,_.z);nR.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}};
nR.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.St(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
nR.prototype.onReset=function(){for(var N=_.H4(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=N.length-1;b>=0;b--)N[b].classList.toggle("selected")};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],nR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({observer:"onDataChanged"}),_.y("design:type",Object)],nR.prototype,"data",void 0);
_.p([_.J_({is:"yt-contact-section-renderer",disableElementRegistration:!0})],nR);
_.X(nR,"yt-contact-section-renderer",function(){if(gmQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;VT6===void 0&&(VT6=document.createElement("template"));var P=VT6;S.call(b,P.content.cloneNode(!0),N.content.firstChild);gmQ=N}N=gmQ;return N},{mode:2});var dv=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return N};
_.F(dv,_.z);_.v=dv.prototype;_.v.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.v.onYtRefreshFormCommand=function(N){var b;(N=_.t((b=_.t(N,_.i2N))==null?void 0:b.formRenderer,AJO))&&this.set("data",N)};
_.v.reset=function(){var N=_.H4(this.hostElement).querySelector("#fields").children;N=_.O(N);for(var b=N.next();!b.done;b=N.next())b=b.value,b.reset&&b.reset()};
_.v.getForm=function(){var N={},b=_.H4(this.hostElement).querySelector("#fields").children;b=_.O(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;if(!S.validate())return null;N[S.data.key]=S.value}return N};
_.v.submitFormFields=function(){if(this.fields)for(var N=_.O(this.fields),b=N.next();!b.done;b=N.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],dv.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dv.prototype,"data",void 0);_.p([_.md("#fields > *"),_.y("design:type",Array)],dv.prototype,"fields",void 0);
_.p([_.J_({is:"yt-form-renderer",disableElementRegistration:!0})],dv);
_.X(dv,"yt-form-renderer",function(){if(yuO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;YVJ===void 0&&(YVJ=document.createElement("template"));var P=YVJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);yuO=N}N=yuO;return N},{mode:2});var mz=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return N};
_.F(mz,_.z);mz.prototype.configureRendererStamper=function(){return{"data.form":{id:"username-password-form",mapping:{formRenderer:"yt-form-renderer"}},"data.claimButton":{id:"claim-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mz.prototype.handleSignalActionSubmitForm=function(){var N,b=(N=this.formRenderer)==null?void 0:N.getForm();b&&this.data.serviceEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})})};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],mz.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mz.prototype,"data",void 0);_.p([_.dq("yt-form-renderer"),_.y("design:type",Object)],mz.prototype,"formRenderer",void 0);
_.p([_.Uj({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],mz);
_.X(mz,"ytd-settings-gaia-link-renderer",function(){if(pVw!==void 0)return pVw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return pVw=N},{mode:1});var wV5;var Nmq;var km=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return N};
_.F(km,_.z);km.prototype.dataChanged=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return N.radio.removeAttribute("checked"),!N.data||!N.data.id||N.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||X7J()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(b=N.data&&N.data.id)?S.yield(p7Q(N.data.id),4):S.jumpTo(3):(N.set("data.hidden",!0),S.jumpTo(0));S.nextAddress!=3&&(b=S.yieldResult);b&&_.St(N.hostElement,"yt-select-settings-radio-option",[N.data.id]);_.Zd(S)})};
km.prototype.onButtonChanged=function(N){_.gQ(N).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
km.prototype.onSelectOption=function(N){this.data&&this.data.id&&(this.data.id===N?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
km.prototype.dataChanged=km.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],km.prototype,"ytActionHandlerBehavior",void 0);_.p([_.dq("#radio"),_.y("design:type",Object)],km.prototype,"radio",void 0);_.p([_.U(),_.y("design:type",Object)],km.prototype,"data",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],km.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],km);
_.X(km,"ytd-settings-radio-option-renderer",function(){if(Nmq!==void 0)return Nmq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Nmq=N},{mode:1});_.qu(_.W3,"basic-content-view-model",{props:{data:_.er,className:_.er}});var TZ=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return N};
_.F(TZ,_.z);TZ.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&X7J()&&this.set("data.hidden",!1)};
TZ.prototype.onSwitchReady=function(){var N=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.T("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){QvO().then(function(b){b&&(Notification.permission==="default"?N.set("data.hidden",!1):Notification.permission==="granted"&&NC("NotificationsDisabled").then(function(S){S||_.St(N.hostElement,"yt-toggle-settings-switch",[N.data.id,!S]);N.set("data.hidden",!1)}).catch(function(){}))})})};
TZ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
TZ.prototype.handleUpdateOptionsCommand=function(N){(N=_.t(N,_.qHl))&&this.data&&this.data.id===N.id&&(this.set("data.hidden",N.hidden),N.text!==void 0&&this.set("data.text",N.text),N.clearOptions&&this.set("data.options",[]))};
TZ.prototype.onSwitchReady=TZ.prototype.onSwitchReady;TZ.prototype.dataChanged=TZ.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],TZ.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],TZ.prototype,"data",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TZ.prototype,"dataChanged",null);_.p([_.RA("yt-settings-switch-ready"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],TZ.prototype,"onSwitchReady",null);_.p([_.Uj({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],TZ);
_.X(TZ,"ytd-settings-options-renderer",function(){if(wV5!==void 0)return wV5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wV5=N},{mode:1});var bkO;var tu=function(){return _.z.apply(this,arguments)||this};
_.F(tu,_.z);tu.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
tu.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
tu.prototype.onYtExpanderMoreTapped=tu.prototype.onYtExpanderMoreTapped;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],tu.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tu.prototype,"data",void 0);
_.p([_.RA("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tu.prototype,"onYtExpanderMoreTapped",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],tu);
_.X(tu,"ytd-product-details-description-renderer",function(){if(bkO!==void 0)return bkO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bkO=N},{mode:1});var SFo;var MU=function(){var N=_.z.apply(this,arguments)||this;N.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";N.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";N.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";N.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return N};
_.F(MU,_.z);MU.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d0.Object.defineProperties(MU.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:(b=N.offerData)==null?void 0:b.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?void 0:N.purchaseButtonRenderers)!==void 0&&((b=this.data)==null?void 0:b.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.formattedFromMerchantText)&&(!((b=this.data)==null||!b.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MU.prototype,"data",void 0);
_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],MU.prototype,"shippingIcon",void 0);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],MU.prototype,"shippingAddressIcon",void 0);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],MU.prototype,"googleGuaranteeIcon",void 0);
_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0}),_.y("design:type",Object)],MU.prototype,"returnPolicyIcon",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MU.prototype,"showAdditionalFees",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MU.prototype,"showMultiPurchaseButtons",null);
_.p([_.f("data","showMultiPurchaseButtons"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MU.prototype,"showPurchaseData",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],MU);
_.X(MU,"ytd-product-details-hero-offer-renderer",function(){if(SFo!==void 0)return SFo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return SFo=N},{mode:1});var PNn;var Hk6;var FR=function(){return _.z.apply(this,arguments)||this};
_.F(FR,_.z);_.v=FR.prototype;_.v.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.v.onKeyDown=function(N){N=N.keyCode;N!==13&&N!==32||this.handleSelection()};
_.v.onMouseEnterImage=function(){var N;((N=this.data)==null?void 0:N.thumbnailDetails)!==void 0&&_.PN(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.v.onMouseLeaveImage=function(){_.PN(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.v.handleSelection=function(){this.data&&_.bC(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.d0.Object.defineProperties(FR.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isSelected)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FR.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],FR.prototype,"isSelected",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],FR);
_.X(FR,"ytd-product-details-thumbnail-renderer",function(){if(Hk6!==void 0)return Hk6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Hk6=N},{mode:1});var BV=function(){var N=_.z.apply(this,arguments)||this;var b={};N.actionMap=(b["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",b["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",b);N.selectedThumbnailIndex=0;N.selectItem=function(S){S.target.onKeyDown(S)};
return N};
_.F(BV,_.z);_.v=BV.prototype;_.v.handlePreviewImageSelect=function(N){this.hoverThumbnail=N};
_.v.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.v.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.v.onThumbnailSelected=function(N,b){this.selectedThumbnailIndex=b};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.v.updateOffset=function(){var N=_.H4(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-N));this.ytdHorizontalListBehavior.reposition_()};
_.d0.Object.defineProperties(BV.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.imageRenderer){var b,S;return((b=this.data)==null?void 0:(S=b.imageRenderer)==null?void 0:S.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var N;if((N=this.data)==null?0:N.imageRenderer){var b;return(b=_.t(this.data.imageRenderer[this.selectedThumbnailIndex],C6n))==null?void 0:b.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S,P,H=(P=(b=this.data)==null?void 0:(S=b.imageRenderer)==null?void 0:S.map(function(K,C){return{productDetailsThumbnailRenderer:Object.assign({},_.t(K,C6n),{index:C,isSelected:C===N.selectedThumbnailIndex})}}))!=null?P:[];
return Object.assign({},this.data,{imageRenderer:H})}}});
BV.prototype.updateOffset=BV.prototype.updateOffset;BV.prototype.dataChanged=BV.prototype.dataChanged;BV.prototype.onThumbnailSelected=BV.prototype.onThumbnailSelected;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.on.YtdHorizontalListBehavior),_.y("design:type",Object)],BV.prototype,"ytdHorizontalListBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],BV.prototype,"componentBehavior",void 0);_.p([_.L([_.pG.YtActionHandlerBehavior]),_.y("design:type",Object)],BV.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BV.prototype,"data",void 0);_.p([_.U({value:"$.items.children"}),_.y("design:type",String)],BV.prototype,"itemsPath",void 0);_.p([_.U({value:3}),_.y("design:type",Number)],BV.prototype,"initialCount",void 0);
_.p([_.dq("#items"),_.y("design:type",Object)],BV.prototype,"items",void 0);_.p([_.U(),_.y("design:type",Object)],BV.prototype,"selectedThumbnailIndex",void 0);_.p([_.U(),_.y("design:type",Object)],BV.prototype,"hoverThumbnail",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],BV.prototype,"showThumbnails",null);
_.p([_.RA("ytd-product-details-thumbnail-renderer-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Number]),_.y("design:returntype")],BV.prototype,"onThumbnailSelected",null);_.p([_.f("data","selectedThumbnailIndex","hoverThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],BV.prototype,"thumbnailDetails",null);_.p([_.f("data","selectedThumbnailIndex"),_.y("design:type",Object),_.y("design:paramtypes",[])],BV.prototype,"populatedData",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BV.prototype,"dataChanged",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BV.prototype,"updateOffset",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],BV);
_.X(BV,"ytd-product-details-image-carousel-renderer",function(){if(PNn!==void 0)return PNn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return PNn=N},{mode:_.sZ("kevlar_poly_si_batch_j079")?1:2});var sh5;var ly=function(){return _.z.apply(this,arguments)||this};
_.F(ly,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ly.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ly.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],ly);
_.X(ly,"ytd-product-details-offer-renderer",function(){if(sh5!==void 0)return sh5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return sh5=N},{mode:1});var K5n;var LR=function(){var N=_.z.apply(this,arguments)||this;N.isOffersHidden=!0;return N};
_.F(LR,_.z);LR.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var N,b=_.t((N=this.data)==null?void 0:N.viewOffersButton,_.rU);b&&this.ytRendererBehavior.logExplicitClick(b)};
LR.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.d0.Object.defineProperties(LR.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return(S=_.t((N=this.data)==null?void 0:(b=N.offers)==null?void 0:b[0],aFE))==null?void 0:(P=S.offerData)==null?void 0:P.vendorLogoUrl}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],LR.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],LR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],LR.prototype,"isOffersHidden",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],LR.prototype,"firstOfferVendorLogoUrl",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],LR);
_.X(LR,"ytd-product-details-offers-container-renderer",function(){if(K5n!==void 0)return K5n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return K5n=N},{mode:1});var v5_;var Okn;var fR=function(){return _.z.apply(this,arguments)||this};
_.F(fR,_.z);fR.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
fR.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.PN(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
fR.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.PN(this,"ytd-product-details-variant-image-unselect")};
_.d0.Object.defineProperties(fR.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?void 0:N.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var N;if(((N=this.data)==null?void 0:N.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var N,b;return this.isUnavailable?(N=this.data)==null?void 0:N.variantOptionUnavailableAccessibilityLabel:(b=this.data)==null?void 0:b.variantOptionAccessibilityLabel}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],fR.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],fR.prototype,"displayType",void 0);
_.p([_.f("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fR.prototype,"isImageButton",null);_.p([_.f("displayType","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fR.prototype,"isPillButton",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fR.prototype,"isActive",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],fR.prototype,"isUnavailable",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fR.prototype,"thumbnailDetails",null);_.p([_.f("isUnavailable","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],fR.prototype,"accessibilityLabel",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],fR);
_.X(fR,"ytd-product-details-variant-option-renderer",function(){if(Okn!==void 0)return Okn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Okn=N},{mode:1});var CNL;var uy=function(){var N=_.z.apply(this,arguments)||this;N.variantsExpanded=!1;N.hideShowMoreLessVariantButton=!0;N.initialized=!1;N.computeVariantsDebouncer=null;N.computeVariants=function(b){b=b===void 0?!1:b;N.variantsExpanded||N.showOptions()||!b||(N.variantsExpanded=!0);if(N.variantsExpanded){b=_.O(N.items.children);for(var S=b.next();!S.done;S=b.next())S.value.hidden=!1}N.initialized=!0};
return N};
_.F(uy,_.z);_.v=uy.prototype;_.v.ready=function(){var N=this;setTimeout(function(){N.computeVariants(!0)})};
_.v.showOptions=function(){for(var N=_.O(this.items.children),b=N.next();!b.done;b=N.next())b.value.hidden=!0;var S=this.container.getBoundingClientRect().width,P=0,H=N=0;b=!1;for(var K=_.O(this.items.children),C=K.next();!C.done;C=K.next()){C=C.value;C.hidden=!1;var G=C.getBoundingClientRect().width;if(P+G<S)P+=G;else if(++H<2)P=G;else break;N+=1;C.hasAttribute("is-active")&&(b=!0)}for(S=N;S<this.items.children.length;S++)this.items.children[S].hidden=!0;this.hideShowMoreLessVariantButton=N===this.items.children.length;
return b};
_.v.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.L2(this.computeVariantsDebouncer,_.Ro.after(100),this.computeVariants)};
_.v.onShowMoreLessVariantsButtonClick=function(){var N;(N=this.data)!=null&&N.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.v.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.d0.Object.defineProperties(uy.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.variantOptionRenderers)==null?void 0:b.find(function(K){return _.t(K,rna).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),P,H;
return(H=(P=_.t(S,rna))==null?void 0:P.name)!=null?H:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
uy.prototype.debouncedComputeVariants=uy.prototype.debouncedComputeVariants;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],uy.prototype,"componentBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],uy.prototype,"ironResizableBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],uy.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],uy.prototype,"variantsExpanded",void 0);_.p([_.U(),_.y("design:type",Object)],uy.prototype,"hideShowMoreLessVariantButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],uy.prototype,"initialized",void 0);_.p([_.dq("#items"),_.y("design:type",HTMLDivElement)],uy.prototype,"items",void 0);_.p([_.dq("#container"),_.y("design:type",HTMLDivElement)],uy.prototype,"container",void 0);
_.p([_.dq("#more-variants-button"),_.y("design:type",HTMLElement)],uy.prototype,"moreVariantsButton",void 0);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],uy.prototype,"selectedOptionName",null);_.p([_.W4("data","variantsExpanded"),_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uy.prototype,"debouncedComputeVariants",null);
_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],uy.prototype,"displayType",null);_.p([_.f("displayType"),_.y("design:type",Object),_.y("design:paramtypes",[])],uy.prototype,"variantItemsClassname",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],uy);
_.X(uy,"ytd-product-details-variant-renderer",function(){if(CNL!==void 0)return CNL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return CNL=N},{mode:1});var QR=function(){return _.z.apply(this,arguments)||this};
_.F(QR,_.z);
QR.prototype.configureRendererStamper=function(){return{"data.imageCarouselRenderer":{id:"image-carousel-renderer",mapping:{productDetailsImageCarouselRenderer:"ytd-product-details-image-carousel-renderer"}},"data.heroOfferRenderer":{id:"hero-offer-renderer",mapping:{productDetailsHeroOfferRenderer:{component:"ytd-product-details-hero-offer-renderer"}}},"data.variants":{id:"variants",mapping:{productDetailsVariantRenderer:"ytd-product-details-variant-renderer"}},"data.offersContainerRenderer":{id:"offers",mapping:{productDetailsOffersContainerRenderer:"ytd-product-details-offers-container-renderer"}},
"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.shareButton":{id:"share-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.descriptionRenderer":{id:"description-renderer",mapping:{productDetailsDescriptionRenderer:"ytd-product-details-description-renderer"}}}};
_.d0.Object.defineProperties(QR.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(b=_.t((N=this.data)==null?void 0:N.offersContainerRenderer,cnQ))==null?void 0:b.offers;return S!==void 0&&(S==null?void 0:S.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((S=(N=this.data)==null?void 0:(b=N.variants)==null?void 0:b.map(function(P){var H,K;P=(K=(H=_.t(P,GOE))==null?void 0:H.variantOptionRenderers)==null?void 0:K.find(function(G){var a;return((a=_.t(G,rna))==null?void 0:a.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var C;return(C=_.t(P,rna))==null?void 0:C.name}).filter(function(P){return typeof P==="string"}))!=null?S:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P=(b=_.t((N=this.data)==null?void 0:N.shoppingFlaggingRenderer,RTi))==null?void 0:(S=b.reportButton)==null?void 0:S.buttonRenderer;if(P)return{text:P.text,command:P.command,icon:{iconType:"FLAG"},accessibilityData:P.accessibilityData,trackingParams:P.trackingParams,loggingDirectives:P.loggingDirectives}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],QR.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QR.prototype,"data",void 0);_.p([_.dq("#image-carousel-renderer"),_.y("design:type",Object)],QR.prototype,"imageCarouselRenderer",void 0);
_.p([_.dq("#hero-offer-renderer"),_.y("design:type",Object)],QR.prototype,"productDetailsHeroOfferRenderer",void 0);_.p([_.dq("#variants"),_.y("design:type",Object)],QR.prototype,"productDetailsVariantRenderer",void 0);_.p([_.dq("#offers"),_.y("design:type",Object)],QR.prototype,"productDetailsOffersContainerRenderer",void 0);_.p([_.dq("#description-renderer"),_.y("design:type",Object)],QR.prototype,"productDetailsDescriptionRenderer",void 0);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showPurchaseData",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showHeroOfferRenderer",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showBrandText",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showOffers",null);
_.p([_.f("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showBuySeparator",null);_.p([_.f("showOffers","showPurchaseData"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],QR.prototype,"showBuyCard",null);_.p([_.f("data"),_.y("design:type",String),_.y("design:paramtypes",[])],QR.prototype,"selectedVariantsText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],QR.prototype,"shoppingReportingButtonData",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],QR);
_.X(QR,"ytd-product-details-renderer",function(){if(v5_!==void 0)return v5_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return v5_=N},{mode:1});var Gwn;var rxQ;var cxw;var xm=function(){return _.z.apply(this,arguments)||this};
_.F(xm,_.z);xm.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.d0.Object.defineProperties(xm.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xm.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],xm.prototype,"formattedAmount",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],xm.prototype,"ariaLabel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],xm.prototype,"vcBalanceWidgetStyle",null);_.p([_.J_({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],xm);
_.X(xm,"yt-vc-balance-renderer",function(){if(cxw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;rxQ===void 0&&(rxQ=document.createElement("template"));var P=rxQ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);cxw=N}N=cxw;return N},{mode:2});_.lo("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ot=function(){return _.z.apply(this,arguments)||this};
_.F(ot,_.z);_.d0.Object.defineProperties(ot.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],ot.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ot.prototype,"data",void 0);_.p([_.U({selectorArgs:["data.vcBalanceEntityKey"],selector:function(N,b){return _.GL(N.entities,"vcBalanceEntity",b)}}),
_.y("design:type",Object)],ot.prototype,"vcBalanceEntity",void 0);_.p([_.f("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],ot.prototype,"formattedAmount",null);_.p([_.f("vcBalanceEntity"),_.y("design:type",String),_.y("design:paramtypes",[])],ot.prototype,"vcBalanceAriaLabel",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ot);
_.X(ot,"ytd-vc-balance-renderer",function(){if(Gwn!==void 0)return Gwn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Gwn=N},{mode:1});var afq;var iy=function(){var N=_.z.apply(this,arguments)||this;N.rotation=0;N.isReloading=!1;return N};
_.F(iy,_.z);iy.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
iy.prototype.reset=function(){this.hostElement.style.opacity=""};
iy.prototype.close=function(){var N=this;return _.r(function(b){if(b.nextAddress==1)return b.yield(N.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.hostElement.style.opacity="0";_.Zd(b)})};
iy.prototype.rotationChanged=iy.prototype.rotationChanged;_.p([_.U(),_.y("design:type",Object)],iy.prototype,"rotation",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],iy.prototype,"isReloading",void 0);_.p([_.dq("#icon"),_.y("design:type",HTMLElement)],iy.prototype,"icon",void 0);_.p([_.W4("rotation"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iy.prototype,"rotationChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-refresh"})],iy);
_.X(iy,"ytd-refresh",function(){if(afq!==void 0)return afq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return afq=N},{mode:1});var RWE;var Ju=function(){var N=_.z.apply(this,arguments)||this;N.useRaf=!_.T("web_use_raf_app_header_layout_killswitch");return N};
_.F(Ju,_.z);Ju.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
Ju.prototype.dataChanged=function(){if(this.data){var N=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var b=_.wG(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasBannerArt=!0,_.rq(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+b+")"}))}this.hasBannerArt!==N&&_.H4(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ju.prototype.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.p([_.L(khJ),_.y("design:type",Object)],Ju.prototype,"ytdTabbedHeaderBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Rn),_.y("design:type",Object)],Ju.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Ju.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ju.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ju.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],Ju.prototype,"selected",void 0);_.p([_.U(),_.y("design:type",Boolean)],Ju.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ju.prototype,"hasBannerArt",void 0);_.p([_.U(),_.y("design:type",Object)],Ju.prototype,"useRaf",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ju.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ju);
_.X(Ju,"ytd-interactive-tabbed-header-renderer",function(){if(RWE!==void 0)return RWE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return RWE=N},{mode:1});var W5o;var UV=function(){return _.z.apply(this,arguments)||this};
_.F(UV,_.z);UV.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
UV.prototype.computeActionsAlignment=function(N){return(N==null?void 0:N.actionsAlignment)||""};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UV.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.y("design:type",String)],UV.prototype,"actionsAlignment",void 0);
_.p([_.Uj({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],UV);
_.X(UV,"ytd-page-footer-renderer",function(){if(W5o!==void 0)return W5o;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return W5o=N},{mode:1});var n5t;var dwq;var ZD=function(){var N=_.z.apply(this,arguments)||this;N.isEditing=!1;N.useSlot=!1;N.isMultiline=!1;return N};
_.F(ZD,_.z);_.v=ZD.prototype;_.v.onKeydown=function(N){if(N.keyCode===13&&!this.isMultiline)this.onSave();else if(N.keyCode===27)this.onCancel()};
_.v.computeComponentStyle=function(N){return(N==null?0:N.style)?N.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.v.computeisMultiline=function(N){if(this.multilineOverride!==void 0)return this.multilineOverride;var b,S;return!!(N==null?0:(b=N.formField)==null?0:(S=b.textInputFormFieldRenderer)==null?0:S.isMultiline)};
_.v.computeTextDisplayed=function(N,b){if(N)return N;if(b)return b};
_.v.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.v.onSave=function(){if(this.textForm.validate()){this.textForm.save();var N=this.textForm.value;if(N)this.set("data.textDisplayed",_.gy(N));else{var b;((b=this.data)==null?0:b.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.MJ("inline-form-changed",this.data));this.isEditing=!1}};
_.v.onCancel=function(){var N=_.es(this.data.textDisplayed);N===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(N);this.isEditing=!1};
ZD.prototype.onKeydown=ZD.prototype.onKeydown;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],ZD.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ZD.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ZD.prototype,"isEditing",void 0);_.p([_.U(),_.y("design:type",Object)],ZD.prototype,"useSlot",void 0);_.p([_.U(),_.y("design:type",Boolean)],ZD.prototype,"multilineOverride",void 0);_.p([_.U(),_.y("design:type",Boolean)],ZD.prototype,"enableOverlayTheme",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.y("design:type",String)],ZD.prototype,"componentStyle",void 0);
_.p([_.U({computed:"computeisMultiline(data)"}),_.y("design:type",Object)],ZD.prototype,"isMultiline",void 0);_.p([_.dq("#text-form"),_.y("design:type",Object)],ZD.prototype,"textForm",void 0);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],ZD.prototype,"onKeydown",null);_.p([_.Uj({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],ZD);
_.X(ZD,"ytd-inline-form-renderer",function(){if(dwq!==void 0)return dwq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return dwq=N},{mode:1});var mwE;var jT=function(){var N=_.z.apply(this,arguments)||this;N.previousSelectValue=void 0;N.selectedItemMessage=void 0;return N};
_.F(jT,_.z);jT.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
jT.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var N,b,S,P,H=(N=this.data)==null?void 0:(b=N.dropdown)==null?void 0:(S=b.dropdownRenderer)==null?void 0:(P=S.entries)==null?void 0:P.map(function(G){return G.privacyDropdownItemRenderer});
N=_.O(H!=null?H:[]);for(b=N.next();!b.done;b=N.next())if((b=b.value)&&b.int32Value===this.selectedValue){this.selectedItemMessage=b.itemMessage;break}}else this.selectedItemMessage=void 0;var K;(K=this.onValueChanged)==null||K.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var C;(C=this.data)!=null&&C.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
jT.prototype.onValueChangedForSelectedValue=function(N){this.selectedValue=N.detail.value};
jT.prototype.selectedValueChanged=jT.prototype.selectedValueChanged;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],jT.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],jT.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jT.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],jT.prototype,"theme",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Number)],jT.prototype,"selectedValue",void 0);_.p([_.U(),_.y("design:type",Function)],jT.prototype,"onValueChanged",void 0);
_.p([_.t_("selectedValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jT.prototype,"selectedValueChanged",null);_.p([_.Uj({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],jT);
_.X(jT,"ytd-dropdown-form-field-renderer",function(){if(mwE!==void 0)return mwE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return mwE=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var kwa;var zZ=function(){return _.z.apply(this,arguments)||this};
_.F(zZ,_.z);_.d0.Object.defineProperties(zZ.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var N=[],b=_.O(this.data||[]),S=b.next();!S.done;S=b.next())(S=_.t(S.value,fF_))&&N.push(S);return N}}});
_.p([_.U(),_.y("design:type",Array)],zZ.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],zZ.prototype,"byline",null);_.p([_.Uj({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],zZ);
_.X(zZ,"ytd-playlist-byline-renderer",function(){if(kwa!==void 0)return kwa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return kwa=N},{mode:1});var TmE;var Au=function(){var N=_.z.apply(this,arguments)||this;N.rtlBullet=_.T("web_playlist_stats_rtl_bullet_icon_killswitch");N.modern=_.T("web_modern_buttons");N.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return N};
_.F(Au,_.z);_.v=Au.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.v.attached=function(){};
_.v.computeIsCustomThumbnail=function(N){return N?!!N.playlistCustomThumbnailRenderer:!1};
_.v.onYtNavigate=function(N,b){if(b&&b.actions&&b.actions.indexOf("shuffle")>-1){N=_.aN().resolve(_.dt);var S=b.tempData||{};S.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);b.tempData=S;N.isShuffleNextPlaylist=!0}};
_.v.onUpdatePlaylistAction=function(N){var b;N=(b=_.t(N,_.fT9))==null?void 0:b.updatedRenderer;if(b=_.t(N,YD5))this.data=b};
_.v.computeStyleType=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(N){return N==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.v.computeHideThumbnailAria=function(N){if(N==null?0:N.thumbnailOverlays)for(var b=0;b<N.thumbnailOverlays.length;b++){var S=void 0;if((S=N.thumbnailOverlays[b])==null?0:S.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Au.prototype.onYtNavigate=Au.prototype.onYtNavigate;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Au.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Au.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Au.prototype,"rtlBullet",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.y("design:type",String)],Au.prototype,"styleType",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.y("design:type",Number)],Au.prototype,"thumbnailWidth",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Au.prototype,"modern",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.y("design:type",Boolean)],Au.prototype,"isCustomThumbnail",void 0);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],Au.prototype,"onYtNavigate",null);_.p([_.Uj({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Au);
_.X(Au,"ytd-playlist-sidebar-primary-info-renderer",function(){if(TmE!==void 0)return TmE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return TmE=N},{mode:1});var tf_;var EV=function(){return _.z.apply(this,arguments)||this};
_.F(EV,_.z);EV.prototype.computeOwnerVisibility=function(N){return!(!N.videoOwner&&!N.button)};
EV.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],EV.prototype,"data",void 0);_.p([_.Uj({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],EV);
_.X(EV,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(tf_!==void 0)return tf_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return tf_=N},{mode:1});var Mf_;var pR=function(){var N=_.z.apply(this,arguments)||this;N.expanded=!1;N.isCompact=!1;return N};
_.F(pR,_.z);_.v=pR.prototype;_.v.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.v.dataChanged=function(){this.data&&_.aX(_.H4(this.text),_.Jvk(_.jXb,_.es(this.data.text||null)))};
_.v.computeAutoScrollEnabled=function(N,b){return N&&!b};
_.v.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.v.toggleOnTap=function(){this.expanded=!this.expanded};
pR.prototype.expandedChanged=pR.prototype.expandedChanged;pR.prototype.dataChanged=pR.prototype.dataChanged;_.p([_.L(t4w),_.y("design:type",Object)],pR.prototype,"ytdAutoScrollBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pR.prototype,"expanded",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pR.prototype,"isCompact",void 0);_.p([_.U({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.y("design:type",Boolean)],pR.prototype,"autoScrollEnabled",void 0);_.p([_.dq("#text"),_.y("design:type",Object)],pR.prototype,"text",void 0);_.p([_.dq("#expander-icon"),_.y("design:type",Object)],pR.prototype,"expanderIcon",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pR.prototype,"dataChanged",null);_.p([_.W4("expanded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pR.prototype,"expandedChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],pR);
_.X(pR,"ytd-channel-legal-info-renderer",function(){if(Mf_!==void 0)return Mf_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Mf_=N},{mode:1});var F5O;var Bmt=_.cN("DOWNLOAD",{},"Download"),lfQ=_.cN("DOWNLOADING",{},"Downloading"),L5J=_.cN("DOWNLOADED",{},"Downloaded"),Ym=function(){var N=_.z.apply(this,arguments)||this;N.downloadProgress=0;N.isDownloadComplete=!1;N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.F(Ym,_.z);_.v=Ym.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var N;(N=this.data)!=null&&N.tooltip||(N=_.Zb(_.h0().getState(),this.playlistId),this.updateButtonState(N))};
_.v.computePlaylistId=function(N){return N};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(N){if(this.data&&(this.data.tooltip!==lfQ||!_.kG(N))){this.isDownloadComplete=!1;switch(N){case "TRANSFER_STATE_UNKNOWN":N=Bmt;var b="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":N=L5J;b="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":N=lfQ;b="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";
break;default:N=Bmt,b="OFFLINE_DOWNLOAD",S="ACTION_ADD"}var P=Object.assign({},this.data);P.tooltip=N;P.accessibilityData={accessibilityData:{label:N}};P.icon={iconType:b};P.size="SIZE_DEFAULT";_.t(P.command,_.Wm)&&(_.t(P.command,_.Wm).action=S);this.set("data",P)}};
_.v.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var N="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?N="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?N="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?N="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?N="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?N="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(N="OFFLINE_PIN",this.isDownloadComplete=!0);var b;N!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.tooltip=lfQ,b.accessibilityData={accessibilityData:{label:lfQ}},b.icon={iconType:N},_.t(b.command,_.Wm)&&(_.t(b.command,_.Wm).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
Ym.prototype.updateProgress=Ym.prototype.updateProgress;Ym.prototype.onTransferStateChanged=Ym.prototype.onTransferStateChanged;Ym.prototype.dataChanged=Ym.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Ym.prototype,"ytdReduxBehavior",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"forceIconButton",void 0);
_.p([_.U({value:!0}),_.y("design:type",Boolean)],Ym.prototype,"forceIconOnly",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"overrides",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"styleActionButton",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"disableTextTransform",void 0);
_.p([_.U({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.y("design:type",String)],Ym.prototype,"playlistId",void 0);_.p([_.U(),_.y("design:type",Object)],Ym.prototype,"data",void 0);_.p([_.U({selector:_.$ZE,selectorArgs:["playlistId"]}),_.y("design:type",Object)],Ym.prototype,"downloadProgress",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ym.prototype,"isDownloadComplete",void 0);
_.p([_.U({selector:_.Zb,selectorArgs:["playlistId"]}),_.y("design:type",String)],Ym.prototype,"transferState",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Ym.prototype,"showTooltips",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Ym.prototype,"sendCommandWhenDisabled",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Ym.prototype,"disabled",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ym.prototype,"dataChanged",null);_.p([_.t_("transferState"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ym.prototype,"onTransferStateChanged",null);_.p([_.t_("downloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ym.prototype,"updateProgress",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Ym);
_.X(Ym,"ytd-download-playlist-button-renderer",function(){if(F5O!==void 0)return F5O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return F5O=N},{mode:1});var ffn;_.qu(_.r9c,"thumbnail-overlay-button-view-model",{props:{data:_.kg,lockupExperiments:_.kg}});var yR=function(){var N=_.z.apply(this,arguments)||this;N.isSquare=!1;N.isVertical=!1;return N};
_.F(yR,_.z);yR.prototype.computeIsSquare=function(N){return N!=null&&N.thumbnail?PCQ(N.thumbnail)==="SQUARE":!1};
yR.prototype.computeIsVertical=function(N){return N!=null&&N.thumbnail?PCQ(N.thumbnail)==="VERTICAL":!1};
yR.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.y("design:type",Object)],yR.prototype,"isSquare",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.y("design:type",Object)],yR.prototype,"isVertical",void 0);
_.p([_.U(),_.y("design:type",Object)],yR.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],yR);
_.X(yR,"ytd-hero-playlist-thumbnail-renderer",function(){if(ffn!==void 0)return ffn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ffn=N},{mode:1});var It=function(){var N=_.z.apply(this,arguments)||this;N.isDarkTheme=!1;N.isUltraWide=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return N};
_.F(It,_.z);_.v=It.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.aN();var N;(N=_.aN().resolve(_.cq(_.S4)))!=null&&(N.headerElement=this.hostElement)};
_.v.detached=function(){var N;(N=_.aN().resolve(_.cq(_.S4)))!=null&&(N.headerElement=void 0)};
_.v.onUpdateHeader=function(N){(N=N.detail)&&this.set("data",N)};
_.v.computeTextDisplayed=function(N){if(N)return N.textDisplayed?N.textDisplayed:N.placeholder};
_.v.gradientColorToLinearGradientStop=function(N){var b=this.isDarkTheme?N.darkThemeColor:N.lightThemeColor;return b?_.o3(b)+" "+((N==null?void 0:N.startLocation)||0)*100+"%":"transparent"};
_.v.onWindowResize=function(){var N;((N=this.data)==null?0:N.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.v.onIronResize=function(N){this.isUltraWide=!N.detail.value};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.onUpdatePlaylistName=function(N){var b=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},N.detail.value));_.W_(this,function(){var S;(S=b.editableTitle)==null||S.resize()})};
_.v.onUpdatePlaylistDescription=function(N){var b=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},N.detail.value));_.W_(this,function(){var S;(S=b.editableDescriptionInlineExpander)==null||S.resize()})};
_.v.getCinematicData=function(N){return _.t(N==null?void 0:N.cinematicContainer,Ms)};
_.d0.Object.defineProperties(It.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.getCinematicData(this.data))==null?void 0:N.config;return(N=this.isDarkTheme?b==null?void 0:b.darkThemeBackgroundColor:b==null?void 0:b.lightThemeBackgroundColor)?"background-color:"+_.xn(N)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var N;return _.t((N=this.data)==null?void 0:N.descriptionForm,Xn6)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S,P;return"background:linear-gradient(to bottom, "+(((P=(b=this.getCinematicData(this.data))==null?void 0:(S=b.gradientColorConfig)==null?void 0:S.map(function(H){return N.gradientColorToLinearGradientStop(H)}))==null?void 0:P.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var N;return _.es((N=this.data)==null?void 0:N.descriptionTapText)}}});
It.prototype.onUpdateHeader=It.prototype.onUpdateHeader;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],It.prototype,"actionHandlerBehavior",void 0);_.p([_.dq("#description-inline-expander"),_.y("design:type",Object)],It.prototype,"descriptionInlineExpander",void 0);
_.p([_.dq("#editable-description-inline-expander"),_.y("design:type",Object)],It.prototype,"editableDescriptionInlineExpander",void 0);_.p([_.U(),_.y("design:type",Object)],It.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],It.prototype,"isUltraWide",void 0);_.p([_.dq("#editable-title-display"),_.y("design:type",Object)],It.prototype,"editableTitle",void 0);_.p([_.f("isUltraWide"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"maxDescriptionLines",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"noCinematicData",null);_.p([_.RA("yt-new-playlist-header"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],It.prototype,"onUpdateHeader",null);_.p([_.f("data","isDarkTheme"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"backgroundStyle",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"descriptionFormData",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"getDropdownTheme",null);_.p([_.f("data","isDarkTheme"),_.y("design:type",String),_.y("design:paramtypes",[])],It.prototype,"gradientStyle",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],It.prototype,"descriptionTapText",null);
_.p([_.Uj({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],It);
_.X(It,"ytd-playlist-header-renderer",function(){if(n5t!==void 0)return n5t;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return n5t=N},{mode:_.sZ("kevlar_poly_si_batch_j078")?1:2});var uhi;var Qha;var DD=function(){return _.z.apply(this,arguments)||this};
_.F(DD,_.z);DD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],DD.prototype,"data",void 0);_.p([_.Uj({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],DD);
_.X(DD,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Qha!==void 0)return Qha;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Qha=N},{mode:1});var VR=function(){return _.z.apply(this,arguments)||this};
_.F(VR,_.z);
VR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{playlistSidebarPrimaryInfoRenderer:{component:"ytd-playlist-sidebar-primary-info-renderer",noInjection:!0},playlistSidebarSecondaryInfoRenderer:{component:"ytd-playlist-sidebar-secondary-info-renderer",noInjection:!0},playlistSidebarTertiaryInfoRenderer:{component:"ytd-playlist-sidebar-tertiary-info-renderer",noInjection:!0},channelLegalInfoRenderer:{component:"ytd-channel-legal-info-renderer",params:{isCompact:!0},noInjection:!0}}}}};
VR.prototype.computeUsePremiumShowStyle=function(N){if(!N||!N.items)return!1;for(var b=0;b<N.items.length;b++)if(_.t(N.items[b],YD5)){var S=void 0;return((S=_.t(N.items[b],YD5))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VR.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.y("design:type",Boolean)],VR.prototype,"usePremiumShowStyle",void 0);
_.p([_.Uj({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],VR);
_.X(VR,"ytd-playlist-sidebar-renderer",function(){if(uhi!==void 0)return uhi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return uhi=N},{mode:1});var xwQ;var o5a;var ik5=function(N,b,S,P,H,K,C,G){this.minWidth=N;this.minHeight=b;this.recommendedWidth=S;this.recommendedHeight=P;this.JSC$21773_maxFileSize=H;this.title=K;this.bannerGalleryTitle=C;this.channelId=G;this.picker_=null;N=_.WMs("yt-banner");b=N.addView;S=(new Mc6("youtubebanner")).addUploadMetadata("silo_id","19");S.opts.ytMaxFileSize=this.JSC$21773_maxFileSize;P=this.recommendedHeight;S.opts.ytRecWidth=this.recommendedWidth;S.opts.ytRecHeight=P;b.call(N,S);N.addView(new _.p8);b=N.addView;S=new _.p8;
S.opts.type="ytbanner";b.call(N,S.JSC$10307_setLabel(this.bannerGalleryTitle));b=N.setTitle(this.title).setSize(1E3);b.urlParamMap_.set("thumbs","orig");S=this.minWidth;P=this.minHeight;if(isNaN(S)||isNaN(P))throw Error("hb`"+S+"`"+P);b.urlParamMap_.set("minSize",S+"x"+P);b.urlParamMap_.set("cropMode","ytcb");this.builder_=N};
ik5.prototype.open=function(){var N=this;return new _.u5(function(b,S){_.MlN(N.builder_,function(P){P.action=="picked"?b(P):P.action=="cancel"&&S(Error("Ul"))});
N.picker_&&N.picker_.dispose();N.picker_=N.builder_.build();N.picker_.setVisible(!0)})};
ik5.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var JxE=function(N){this.channelId=N};
JxE.prototype.upload=function(N){var b="";N.viewToken&&(b=N.viewToken[2].type);var S=N.docs[0];N=S.crop;b={channel_id:this.channelId,fife_url:S.thumbnails[0].url,photo_id:S.id,is_gallery_image:b=="ytbanner"};N&&(b.crop_top=N.top,b.crop_right=N.right,b.crop_bottom=N.bottom,b.crop_left=N.left);return _.qVs("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:b})};var gv=function(){var N=_.z.apply(this,arguments)||this;N.ariaLabel=null;return N};
_.F(gv,_.z);_.v=gv.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){this.picker&&this.picker.dispose()};
_.v.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.v.computeAriaLabel=function(N){return N};
_.v.onTap=function(){var N=this,b;if((b=this.data)==null||!b.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new ik5(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var S;(S=this.picker)==null||S.open().then(function(P){N.handleBannerPicked(P)},function(){})}};
_.v.handleBannerPicked=function(N){var b=this;this.uploader||(this.uploader=new JxE(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(N).then(function(S){b.handleBannerUploadSucceeded(S)},function(S){b.handleBannerUploadFailed(S)})};
_.v.handleBannerUploadSucceeded=function(N){N&&N.errors?this.handleBannerUploadFailed(N):(_.bC(this.hostElement,"yt-banner-updated",N),this.message=null)};
_.v.handleBannerUploadFailed=function(N){this.message=N&&N.errors&&N.errors.length?N.errors[0]:null};
gv.prototype.dataChanged=gv.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gv.prototype,"componentBehavior",void 0);_.p([_.L(_.qP),_.y("design:type",Object)],gv.prototype,"ironButtonState",void 0);_.p([_.U(),_.y("design:type",Object)],gv.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.y("design:type",Object)],gv.prototype,"ariaLabel",void 0);
_.p([_.U(),_.y("design:type",Object)],gv.prototype,"message",void 0);_.p([_.U(),_.y("design:type",Object)],gv.prototype,"picker",void 0);_.p([_.U(),_.y("design:type",Object)],gv.prototype,"uploader",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gv.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],gv);
_.X(gv,"ytd-channel-banner-editor-renderer",function(){if(o5a!==void 0)return o5a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return o5a=N},{mode:1});var UwE;var ZkE=_.$E(["#"]),eT=function(){return _.z.apply(this,arguments)||this};
_.F(eT,_.z);eT.prototype.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N,!0)||_.R8U(ZkE)};
eT.prototype.dataChanged=function(){var N=this.data;N&&N.targetId&&_.Dy(_.VP(),N.targetId,this.moreIcon)};
eT.prototype.dataChanged=eT.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eT.prototype,"data",void 0);_.p([_.dq("#more-icon"),_.y("design:type",Object)],eT.prototype,"moreIcon",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eT.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],eT);
_.X(eT,"ytd-channel-tagline-renderer",function(){if(UwE!==void 0)return UwE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return UwE=N},{mode:1});var jhw;var $m=function(){return _.z.apply(this,arguments)||this};
_.F($m,_.z);_.v=$m.prototype;_.v.ready=function(){var N=this;_.H4(this.hostElement).querySelector("#form").addEventListener("submit",function(b){N.onSubmit(b)})};
_.v.onDataChanged=function(){var N;((N=this.data)==null?0:N.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.v.onIconButtonKeydown=function(N){N.keyCode===13&&this.iconButton.click()};
_.v.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.v.openOnClickHandler=function(){this.input.focus()};
_.v.onSubmit=function(N){N.preventDefault();return!1};
_.v.submitOnEnterKeyUp=function(N){var b;if(N.keyCode===13&&((b=this.data)==null?0:b.expandedText)){N=this.data.endpoint;b=_.Vm.unsafeClone(N);var S;((S=_.t(b==null?void 0:b.commandMetadata,_.GY))==null?0:S.url)?(_.t(b.commandMetadata,_.GY).url=_.Nc(_.t(b.commandMetadata,_.GY).url,"query",this.data.expandedText),_.t(b,_.Wd)&&(_.t(b,_.Wd).query=this.data.expandedText),_.bC(this.hostElement,"yt-navigate",{endpoint:b,tempData:{disableCache:!0}})):(S=new _.jU("Error: Trying to navigate to an endpoint without url",
N),_.ge(S))}};
_.v.updateDataExpandedTextFromBinding=function(N){this.set("data.expandedText",N.detail.value)};
_.d0.Object.defineProperties($m.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
$m.prototype.onDataChanged=$m.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.p([_.L(Fxo),_.y("design:type",Object)],$m.prototype,"ytdExpandableInputBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$m.prototype,"data",void 0);_.p([_.dq("#input"),_.y("design:type",Object)],$m.prototype,"input",void 0);_.p([_.dq("#icon-button"),_.y("design:type",HTMLElement)],$m.prototype,"iconButton",void 0);
_.p([_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],$m.prototype,"searchIcon",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$m.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],$m);
var S_5=_.H7()($m,"ytd-expandable-tab-renderer",function(){if(jhw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);jhw=N}N=jhw;return N},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var zWo;var hu=function(){var N=_.z.apply(this,arguments)||this;N.avatarSize=80;N.ariaLabel=_.cN("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return N};
_.F(hu,_.z);hu.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
hu.prototype.computeHref=function(N){var b;return((b=_.t(N,_.Hz))==null?0:b.url)?this.componentBehavior.computeHref_(N):null};
hu.prototype.onTap=function(){var N,b;(N=this.data)==null||!N.editAvatarServiceEndpoint||((b=_.t(this.data.editAvatarServiceEndpoint,_.Hz))==null?0:b.url)||_.aN().resolve(_.Wq).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.p([_.L(_.qP),_.y("design:type",Object)],hu.prototype,"ironButtonState",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hu.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hu.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],hu.prototype,"avatarSize",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],hu.prototype,"ariaLabel",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],hu);
_.X(hu,"ytd-channel-avatar-editor",function(){if(zWo!==void 0)return zWo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return zWo=N},{mode:1});var Axn=_.A(function(N){var b=N.data;var S=N.noPadding;var P=N.enableBanner;var H=N.cinematicContainerTopbarOffset;var K=N.allowCinematicContainerOverflow;var C=N.displayAsSidebar;N=N.className;_.gA(function(){b().tagManagerId&&(_.wt(b().tagManagerId,_.Vg("GL")),qyt(b().tagManagerId))},"vUc8md");
var G=_.nf(HS6,function(){return b().pageHeaderEntityKey});
return _.c("yt-page-header-renderer",{class:_.KU("pageHeaderRendererHost",N)},_.c(_.kY,{data:function(){var a;return((a=G())==null?0:a.header)?G().header:(C==null?0:C())&&b().sidebarContent?b().sidebarContent:b().content}},{pageHeaderViewModel:function(a){return _.c(_.$04,{data:a.data,
noPadding:S,enableBanner:P,cinematicContainerTopbarOffset:H,allowCinematicContainerOverflow:K,displayAsSidebar:function(){return(C==null?void 0:C())&&b().enableSidebarView}})}}))},"qk");
Axn.idomCompat=!0;_.qu(Axn,"yt-page-header-renderer",{props:{data:_.kg,noPadding:_.kg,enableBanner:_.kg,cinematicContainerTopbarOffset:_.kg,allowCinematicContainerOverflow:_.kg,displayAsSidebar:_.kg,className:_.kg}});_.qu(_.tc,"yt-image-banner-view-model",{props:{data:_.kg,isPositionRelative:_.kg}});_.qu(_.W95,"yt-tab-group-shape",{props:{shape:_.kg}});var XGn=_.pf.persistentPanelVisibleSelector,qU=function(){var N=_.z.apply(this,arguments)||this;N.expandableCustomTabRenderable=function(b){return P0q(b,function(){return void N.onSearchNavigate()})};
N.isRichGrid=!1;N.isConstrainedList=!1;N.richGridMiniMode=!1;N.richGridStyle="RICH_GRID_STYLE_UNKNOWN";N.isRichGridShorts=!1;N.responsiveSizing="COMPACT";N.disableGridStateAware=!1;N.useRaf=!_.T("web_use_raf_app_header_layout_killswitch");N.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return N};
_.F(qU,_.z);_.v=qU.prototype;_.v.computeHeaderDisabled=function(N,b){return b||!N||this.tabsHidden};
_.v.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.v.computeIsRichGridShorts=function(N){return N==="RICH_GRID_STYLE_SHORTS_GRID"||N==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.v.computeImageBannerViewModel=function(){var N,b;return _.t((b=_.t((N=this.data)==null?void 0:N.content,_.snb))==null?void 0:b.banner,_.qMO)};
_.v.computeHasCinematicContainer=function(){var N,b;return!((b=_.t((N=this.data)==null?void 0:N.content,_.snb))==null||!b.background)};
_.v.handleHeaderResize=function(){var N=_.H4(this.hostElement).querySelector("#header");N&&_.bC(N,"iron-resize")};
_.v.handleInsertTabCommand=function(N){var b=_.t(N,ZY6);b&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(S){return S.tabRenderer&&S.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.v.handleRefreshChannelTabAction=function(N){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===N&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.v.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.v.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.v.observerRichGridSlimItemsPerRow=function(){_.rq(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.v.updateCssVars=function(){this.richGridItemsPerRow&&_.rq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.d7("rich_grid_max_item_width",500))+16)-16+"px"})};
_.v.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.rq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.v.onDataChanged=function(){this.handleHeaderResize()};
_.v.onWindowResize=function(){this.handleHeaderResize()};
_.v.onFocusedChanged=function(N){(N=_.gQ(N))&&N.is==="tp-yt-paper-tab"&&N.hasRipple()&&(N.getRipple().holdDown=!N.pointerDown&&N.focused)};
_.v.updateSelectedFromBinding=function(N){this.ytdTabbedHeaderBehavior.selected=N.detail.value};
_.v.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.d0.Object.defineProperties(qU.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KlO(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.imageBannerViewModel)==null?void 0:N.style)==="IMAGE_BANNER_STYLE_INSET"}}});
qU.prototype.onDataChanged=qU.prototype.onDataChanged;qU.prototype.updateCssVarsForResponsiveGrid=qU.prototype.updateCssVarsForResponsiveGrid;qU.prototype.updateCssVars=qU.prototype.updateCssVars;qU.prototype.observerRichGridSlimItemsPerRow=qU.prototype.observerRichGridSlimItemsPerRow;qU.prototype.observerRichGridItemsPerRow=qU.prototype.observerRichGridItemsPerRow;qU.prototype.persistentPanelVisibleChanged=qU.prototype.persistentPanelVisibleChanged;
_.p([_.L(_.Rn),_.y("design:type",Object)],qU.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(khJ),_.y("design:type",Object)],qU.prototype,"ytdTabbedHeaderBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],qU.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],qU.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],qU.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("#tabs"),_.y("design:type",Object)],qU.prototype,"tabsElement",void 0);_.p([_.U(),_.y("design:type",Array)],qU.prototype,"tabs",void 0);_.p([_.U(),_.y("design:type",Object)],qU.prototype,"expandableCustomTabRenderable",void 0);
_.p([_.f("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],qU.prototype,"tabGroupShape",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qU.prototype,"isRichGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qU.prototype,"isConstrainedList",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Object)],qU.prototype,"richGridMiniMode",void 0);_.p([_.U({selector:function(N){return N.ui.richGridStyle}}),
_.y("design:type",Object)],qU.prototype,"richGridStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.y("design:type",Object)],qU.prototype,"isRichGridShorts",void 0);_.p([_.U({selector:_.xG}),_.y("design:type",Number)],qU.prototype,"richGridItemsPerRow",void 0);_.p([_.U({selector:function(N){return N.ui.richGridContainerWidth}}),
_.y("design:type",Number)],qU.prototype,"richGridContainerWidth",void 0);_.p([_.U({selector:_.ZGs}),_.y("design:type",Number)],qU.prototype,"richGridSlimItemsPerRow",void 0);_.p([_.U(),_.y("design:type",Object)],qU.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qU.prototype,"responsiveSizing",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qU.prototype,"disableGridStateAware",void 0);
_.p([_.U({computed:"computeImageBannerViewModel(data)"}),_.y("design:type",Object)],qU.prototype,"imageBannerViewModel",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.y("design:type",Boolean)],qU.prototype,"hasCinematicContainer",void 0);_.p([_.U({selector:uGE,reflectToAttribute:!0}),_.y("design:type",Boolean)],qU.prototype,"guideIsVisibleButNotPersistent",void 0);
_.p([_.U({selector:XGn}),_.y("design:type",Boolean)],qU.prototype,"persistentPanelVisible",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],qU.prototype,"hasBanner",null);_.p([_.U({reflectToAttribute:!0}),_.f("imageBannerViewModel"),_.y("design:type",Object),_.y("design:paramtypes",[])],qU.prototype,"hasInsetBanner",null);_.p([_.U(),_.y("design:type",Object)],qU.prototype,"useRaf",void 0);
_.p([_.U({computed:"computeTabsHidden(tabs)",value:!0}),_.y("design:type",Boolean)],qU.prototype,"tabsHidden",void 0);_.p([_.W4("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"persistentPanelVisibleChanged",null);_.p([_.W4("richGridItemsPerRow","isRichGrid"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"observerRichGridItemsPerRow",null);
_.p([_.W4("richGridSlimItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"observerRichGridSlimItemsPerRow",null);_.p([_.W4("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"updateCssVars",null);
_.p([_.W4("richGridContainerWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"updateCssVarsForResponsiveGrid",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qU.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],qU);
_.X(qU,"ytd-tabbed-page-header",function(){if(xwQ!==void 0)return xwQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return xwQ=N},{mode:1});var E5n;var wv=function(){return _.z.apply(this,arguments)||this};
_.F(wv,_.z);wv.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.d0.Object.defineProperties(wv.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var N,b;return this.componentBehavior.computeIcon_(((b=_.t((N=this.data)==null?void 0:N.badge,_.G$z))==null?void 0:b.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.badge,_.G$z))==null?void 0:b.label}}});
wv.prototype.observerRichGridItemsPerRow=wv.prototype.observerRichGridItemsPerRow;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],wv.prototype,"componentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],wv.prototype,"ytdReduxBehavior",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.Q4}),_.y("design:type",Boolean)],wv.prototype,"richGridMiniMode",void 0);
_.p([_.U({selector:_.xG}),_.y("design:type",Number)],wv.prototype,"richGridItemsPerRow",void 0);_.p([_.U(),_.y("design:type",Object)],wv.prototype,"data",void 0);_.p([_.W4("richGridItemsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wv.prototype,"observerRichGridItemsPerRow",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wv.prototype,"badgeIconName",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wv.prototype,"badgeLabel",null);_.p([_.Uj({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],wv);
_.X(wv,"ytd-member-hub-profile-renderer",function(){if(E5n!==void 0)return E5n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return E5n=N},{mode:1});var pGo;var Nw=function(){return _.z.apply(this,arguments)||this};
_.F(Nw,_.z);Nw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Nw.prototype,"data",void 0);_.p([_.Uj({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Nw);
_.X(Nw,"ytd-settings-sidebar-renderer",function(){if(pGo!==void 0)return pGo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return pGo=N},{mode:1});var YFn;var bN=function(){var N=_.z.apply(this,arguments)||this;N.expandableCustomTabRenderable=function(b){return P0q(b,function(){return void N.onSearchNavigate()})};
return N};
_.F(bN,_.z);bN.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
bN.prototype.onSearchNavigate=function(){this.selected=void 0};
bN.prototype.onTabsChange=function(){var N,b=(N=this.tabs)==null?void 0:N.findIndex(function(S){var P;return S==null?void 0:(P=S.tabRenderer)==null?void 0:P.selected});
b!==void 0&&(this.selected=b)};
bN.prototype.onTabsActive=function(N){if(this.tabs!==void 0){var b,S;(N=(b=this.tabs[N.detail.selected])==null?void 0:(S=b.tabRenderer)==null?void 0:S.endpoint)&&_.bC(this.hostElement,"yt-navigate",{endpoint:N})}};
_.d0.Object.defineProperties(bN.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KlO(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
bN.prototype.onTabsChange=bN.prototype.onTabsChange;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Rn),_.y("design:type",Object)],bN.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],bN.prototype,"ytdGuideStateAwareBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],bN.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],bN.prototype,"tabs",void 0);_.p([_.U(),_.y("design:type",Number)],bN.prototype,"selected",void 0);_.p([_.f("tabs.*"),_.y("design:type",Object),_.y("design:paramtypes",[])],bN.prototype,"tabGroupShape",null);_.p([_.U(),_.y("design:type",Object)],bN.prototype,"expandableCustomTabRenderable",void 0);
_.p([_.f("tabs"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],bN.prototype,"tabsEnabled",null);_.p([_.t_("tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bN.prototype,"onTabsChange",null);_.p([_.Uj({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],bN);
_.X(bN,"ytd-topic-channel-details-renderer",function(){if(YFn!==void 0)return YFn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return YFn=N},{mode:1});var yxi;var Sf=function(){var N=_.z.apply(this,arguments)||this;N.disableGridStateAware=!1;return N};
_.F(Sf,_.z);Sf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{topicChannelDetailsRenderer:{component:"ytd-topic-channel-details-renderer",properties:{disableGridStateAware:"[[disableGridStateAware]]",tabs:"[[tabs]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",attributes:{"has-animation":!0},properties:{disableGridStateAware:"[[disableGridStateAware]]"}}}}}};
Sf.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Sf.prototype.updateCssVars=function(){_.rq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.d7("rich_grid_max_item_width",500))+16)-16+"px"})};
Sf.prototype.updateCssVars=Sf.prototype.updateCssVars;Sf.prototype.activeChanged=Sf.prototype.activeChanged;_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Sf.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Sf.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],Sf.prototype,"tabs",void 0);_.p([_.U(),_.y("design:type",Boolean)],Sf.prototype,"active",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Sf.prototype,"disableGridStateAware",void 0);
_.p([_.U({selector:_.xG}),_.y("design:type",Number)],Sf.prototype,"richGridItemsPerRow",void 0);_.p([_.U({selector:_.Q4}),_.y("design:type",Boolean)],Sf.prototype,"richGridMiniMode",void 0);_.p([_.dq("ytd-carousel-item-renderer"),_.y("design:type",Object)],Sf.prototype,"carousel",void 0);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sf.prototype,"activeChanged",null);
_.p([_.W4("richGridItemsPerRow","richGridMiniMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Sf.prototype,"updateCssVars",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Sf);
_.X(Sf,"ytd-carousel-header-renderer",function(){if(yxi!==void 0)return yxi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return yxi=N},{mode:1});var Ifn;var Dwn=_.$E(["https://www.google-analytics.com/analytics.js"]),PG=function(){var N=_.z.apply(this,arguments)||this;N.scriptAnalyticsAdded=!1;return N};
_.F(PG,_.z);PG.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var N,b=(N=this.data)==null?void 0:N.tagManagerId;b&&(_.wt(b,_.Vg("GL")),qyt(b))};
PG.prototype.sendGoogleAnalyticsPageview=function(N){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var S=_.$I.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(S)};
var b=window.ga;b("set","page",window.location.pathname);b.l=+new Date;b("set","forceSSL",!0);b("create",N,"'auto'");b("send","pageview")};
PG.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var N=_.U5("SCRIPT");N.name="ga-analytics";var b=_.Mz(Dwn);_.cM(N,b);N.async=!0;_.H4(this.hostElement).appendChild(N)};
PG.prototype.dataChanged=PG.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],PG.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PG.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],PG);
_.X(PG,"ytd-channel-metadata-renderer",function(){if(Ifn!==void 0)return Ifn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Ifn=N},{mode:1});var VfO;var g5i;var eWa=function(){return _.z.apply(this,arguments)||this};
_.F(eWa,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eWa.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eWa.prototype,"data",void 0);_.p([_.Uj({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],eWa);
_.X(eWa,"ytd-sub-feed-option-renderer",function(){if(g5i!==void 0)return g5i;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return g5i=N},{mode:1});var $wt;var HG=function(){return _.z.apply(this,arguments)||this};
_.F(HG,_.z);HG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],HG.prototype,"ytRendererStamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HG.prototype,"data",void 0);_.p([_.Uj({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],HG);
_.X(HG,"ytd-sub-feed-selector-renderer",function(){if($wt!==void 0)return $wt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $wt=N},{mode:1});var sF=function(){return _.z.apply(this,arguments)||this};
_.F(sF,_.z);
sF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sF.prototype,"data",void 0);_.p([_.Uj({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],sF);
_.X(sF,"ytd-browse-feed-actions-renderer",function(){if(VfO!==void 0)return VfO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return VfO=N},{mode:1});var hWE;var qF_;var Kk=function(){return _.z.apply(this,arguments)||this};
_.F(Kk,_.z);Kk.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Kk.prototype,"data",void 0);_.p([_.Uj({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Kk);
_.X(Kk,"ytd-mini-channel-renderer",function(){if(qF_!==void 0)return qF_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qF_=N},{mode:1});var wGo;var vG=function(){return _.z.apply(this,arguments)||this};
_.F(vG,_.z);vG.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vG.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],vG);
_.X(vG,"ytd-vertical-channel-section-renderer",function(){if(wGo!==void 0)return wGo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wGo=N},{mode:1});var OF=function(){return _.z.apply(this,arguments)||this};
_.F(OF,_.z);OF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],OF.prototype,"data",void 0);_.p([_.Uj({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],OF);
_.X(OF,"ytd-browse-secondary-contents-renderer",function(){if(hWE!==void 0)return hWE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return hWE=N},{mode:1});var NzE;var Ck=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};N.notActive=!1;N.isConstrainedList=!1;N.marginSettings=0;return N};
_.F(Ck,_.z);_.v=Ck.prototype;
_.v.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(N){var b;return(N==null?void 0:(b=N.webComponentHint)==null?void 0:b.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.v.getPath=function(N,b){var S="data.tabs.#"+b+".";N.tabs[b].tabRenderer?S+="tabRenderer.":N.tabs[b].expandableTabRenderer&&(S+="expandableTabRenderer.");return S+"content.sectionListRenderer"};
_.v.computeDisplayedContent=function(N){this.unlinkPaths("content");if(N&&N.tabs)for(var b=N.tabs.length,S=0;S<b;S++){var P=N.tabs[S].tabRenderer||N.tabs[S].expandableTabRenderer;if(P.selected&&P.content)return this.linkPaths("content",this.getPath(N,S)),P.content}return null};
_.v.computeHasSecondaryColumnData=function(N){return!!N&&!!N.secondaryContents};
_.v.onRetrieveLocation=function(N,b){b.locationRetrieved(b.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);N.stopPropagation()};
_.v.onYtServiceRequestSent=function(N,b){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.v.onYtServiceRequestCompleted=function(N,b){_.T("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.v.onReplaceFeedContentAction=function(N){if(!_.T("replace_feed_content_action_killswitch")&&!this.notActive){var b;(N=(b=_.t(N,hmJ))==null?void 0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(N)}};
_.v.handleServiceRequestActions=function(N){if(N=N.actions){N=_.O(N);for(var b=N.next();!b.done;b=N.next()){b=b.value;var S=void 0;((S=_.t(b,hmJ))==null?0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.t(b,hmJ).items)}}};
Ck.prototype.onYtServiceRequestCompleted=Ck.prototype.onYtServiceRequestCompleted;Ck.prototype.onYtServiceRequestSent=Ck.prototype.onYtServiceRequestSent;Ck.prototype.onRetrieveLocation=Ck.prototype.onRetrieveLocation;_.p([_.L(_.Rn),_.y("design:type",Object)],Ck.prototype,"ytdGridStateAwareBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ck.prototype,"data",void 0);_.p([_.U({computed:"computeDisplayedContent(data)"}),_.y("design:type",Object)],Ck.prototype,"content",void 0);
_.p([_.U({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],Ck.prototype,"hasSecondaryColumnData",void 0);_.p([_.U({value:function(){return window.outerHeight>1024?3:2}}),
_.y("design:type",Number)],Ck.prototype,"initialCount",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],Ck.prototype,"pageSubtype",void 0);_.p([_.dq("ytd-section-list-renderer"),_.y("design:type",Object)],Ck.prototype,"listRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Ck.prototype,"notActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ck.prototype,"isConstrainedList",void 0);
_.p([_.U(),_.y("design:type",String)],Ck.prototype,"responsiveSizing",void 0);_.p([_.U(),_.y("design:type",Number)],Ck.prototype,"marginSettings",void 0);_.p([_.RA("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Ck.prototype,"onRetrieveLocation",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],Ck.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],Ck.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Ck);
_.X(Ck,"ytd-two-column-browse-results-renderer",function(){if(NzE!==void 0)return NzE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return NzE=N},{mode:2});var bV_;var S9E;var Gw=function(){var N=_.z.apply(this,arguments)||this;N.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);N.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return N};
_.F(Gw,_.z);_.v=Gw.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.v.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
_.v.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.computeAlertStyle_=function(N){return N};
_.v.observerElementsPerRow=function(){this.elementsPerRow&&_.rq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.v.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.v.requestElementsPerRow=function(){_.bC(this.hostElement,"yt-request-elements-per-row")};
Gw.prototype.onIsVisibleChanged_=Gw.prototype.onIsVisibleChanged_;Gw.prototype.observerElementsPerRow=Gw.prototype.observerElementsPerRow;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Gw.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Gw.prototype,"data",void 0);_.p([_.U({value:6,reflectToAttribute:!0}),_.y("design:type",Number)],Gw.prototype,"elementsPerRow",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Gw.prototype,"wrapButtons",void 0);_.p([_.U({value:_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],Gw.prototype,"isMusic",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.y("design:type",String)],Gw.prototype,"alertStyle",void 0);_.p([_.U({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.y("design:type",Function)],Gw.prototype,"dismissBoundButtonTap_",void 0);_.p([_.U({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.y("design:type",Function)],Gw.prototype,"acceptBoundButtonTap_",void 0);_.p([_.W4("elementsPerRow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gw.prototype,"observerElementsPerRow",null);_.p([_.W4("data.isVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gw.prototype,"onIsVisibleChanged_",null);_.p([_.J_({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Gw);
_.X(Gw,"yt-alert-with-actions-renderer",function(){if(S9E===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;bV_===void 0&&(bV_=document.createElement("template"));var P=bV_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);S9E=N}N=S9E;return N},{mode:2});var Pqi=_.A(function(N){var b={};return _.c(_.mD,{text:N.text,className:_.KU("ytPersonalGreetingViewModelHeadline",(b.ytPersonalGreetingViewModelHeadlineSmall=N.isSmallHeadline,b))})},"sk");_.qu(_.A(function(N){var b=_.iK(function(){var m;return(m=N.data())==null?void 0:m.rendererContext},void 0,void 0,void 0,!0),S=function(){return N.data().canvasPromoData},P=function(){var m;
return(m=N.data().bannerHeight)!=null?m:56},H=_.O(_.tI({throttleMs:100})),K=H.next().value;
H=H.next().value;var C=_.O(_.tI({throttleMs:100})),G=C.next().value;C=C.next().value;var a=_.O(_.tI({throttleMs:100})),R=a.next().value;a=a.next().value;var n=function(){return G.width()-K.width()>1},d=function(){return P()===48};
return _.c("yt-personal-greeting-view-model",{el:_.VN(b,H),"aria-hidden":n,class:_.KU(N.className,"ytPersonalGreetingViewModelHost"),style:_.r5({height:(0,_.ai)(function(){return n()?0:P()})})},_.c(_.W,{cond:function(){return N.data().avatar&&!(R.width()+(N.data().avatar?48:0)-K.width()>1)},
then:function(){return _.c(_.kY,{data:function(){return N.data().avatar}},{decoratedAvatarViewModel:function(m){return _.c(_.Gg,{data:m.data,
className:_.KU("ytPersonalGreetingViewModelAvatar")})}})}}),_.c("h1",null,_.c(Pqi,{text:function(){var m;
return(S==null?void 0:(m=S())==null?void 0:m.headline)||(R.width()+(N.data().avatar?48:0)-K.width()>1?N.data().shorterGreeting:N.data().greeting)},
isSmallHeadline:d})),_.c("span",{el:_.VN(a),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.c(Pqi,{text:function(){return N.data().greeting},
isSmallHeadline:d})),_.c("span",{el:_.VN(C),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.c(Pqi,{text:function(){return N.data().shorterGreeting},
isSmallHeadline:d})))},"rk"),"yt-personal-greeting-view-model",{props:{data:_.kg,
className:_.kg}});var rm=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;N.isConstrainedList=!1;N.responsiveSizing="COMPACT";N.attachedPlayers=_.T("kevlar_channel_trailer_multi_attach")?[]:void 0;N.player=null;N.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return N};
_.F(rm,_.z);_.v=rm.prototype;
_.v.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.v.created=function(){var N=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){N.disposeMastheadAd()}]};
_.v.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new FzE(this.refresh,this.contents))};
_.v.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.v.activeChanged=function(){var N=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=N)};
_.v.tabsChanged=function(){var N=this,b,S;if(this.pageSubtype==="channels"||_.T("kevlar_tab_gestures_for_tabbed_header_data")&&((b=this.data)==null?0:(S=b.header)==null?0:S.carouselHeaderRenderer))this.tabGestures=new Lz_(this.contents,this.contents,this.hostElement,this.header,function(C){N.ytdReduxBehavior.dispatch(C)});
var P,H,K;b=(P=this.data)==null?void 0:(H=P.contents)==null?void 0:(K=H.twoColumnBrowseResultsRenderer)==null?void 0:K.tabs;this.tabGestures&&this.tabGestures.tabsChanged(b)};
_.v.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.v.engagementPanelsChanged=function(){var N=_.aN().resolve(_.Hn);if(N){if(this.engagementPanels)for(var b=_.O(this.engagementPanels),S=b.next();!S.done;S=b.next()){var P=void 0;(S=(P=S.value.identifier)==null?void 0:P.tag)&&N.panelMap.delete(S)}this.engagementPanels=[];var H;b=_.O(((H=this.data)==null?void 0:H.panels)||[]);for(H=b.next();!H.done;H=b.next()){H=_.t(H.value,PBJ);var K=S=void 0,C=void 0,G=void 0;if(P=((S=H)==null?void 0:S.targetId)||((K=H)==null?void 0:K.panelIdentifier)||((C=H)==null?
void 0:(G=C.identifier)==null?void 0:G.tag))K=S=void 0,(K=(S=N).registerPanelContent)==null||K.call(S,P,{engagementPanelSectionListRenderer:H}),this.engagementPanels.push(H)}}};
_.v.onStampFinished=function(){var N=this;_.W_(this,function(){if(N.tabGestures){var b=N.tabGestures;if(b.scrollPositionNeedsUpdate){var S=_.aN().resolve(_.cq(_.$9)),P;if((P=b.selectedTab)!=null&&P.title&&S&&(P=S.getCurrentPage())){if(b.scrollPositionForTabs.has(b.selectedTab.title)){var H,K;S=(K=(H=S.getCurrentPage())==null?void 0:H.clientHeight)!=null?K:0;H=b.scrollPositionForTabs.get(b.selectedTab.title);P.setScrollTop(H);S>H+100&&(b.scrollPositionNeedsUpdate=!1)}else P.setScrollTop(Math.min(b.lastVisitedTabScrollPosition!==
void 0?b.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,b.tabsStartAtInPx)),b.scrollPositionNeedsUpdate=!1;b.ytdReduxDispatch(ZOo(!1))}}}})};
_.v.loadPage_=function(N){this.initCsi();N&&(this.data=N);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.v.getTitle=function(N){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",N))return this.get("microformat.microformatDataRenderer.title",N);if(this.get("header.feedTabbedHeaderRenderer.title",N))return _.es(this.get("header.feedTabbedHeaderRenderer.title",N));if(this.get("header.interactiveTabbedHeaderRenderer.title",N))return this.get("header.interactiveTabbedHeaderRenderer.title",N);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
N))return _.es(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",N));var b,S;return(N==null?0:(b=N.header)==null?0:(S=b.pageHeaderRenderer)==null?0:S.pageTitle)?N.header.pageHeaderRenderer.pageTitle:""};
_.v.updateTitle=function(N){_.bC(this.hostElement,"yt-update-title",this.getTitle(N))};
_.v.initCsi=function(){lYi(this.pageSubtype||"browse",["ol","cpt"])};
_.v.getPlayer=function(){if(_.T("kevlar_channel_trailer_multi_attach")){for(var N=_.O(this.attachedPlayers),b=N.next();!b.done;b=N.next())if(b=b.value,b.isConnected||_.Sj(this.hostElement,b))return b;return null}return this.player};
_.v.getPlayerContainer=function(){return null};
_.v.onPlayerAttached=function(N,b){_.T("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(b):this.player=b};
_.v.onPlayerDetached=function(N,b){_.T("kevlar_channel_trailer_multi_attach")?(N=this.attachedPlayers.indexOf(b),N<0||this.attachedPlayers.splice(N,1)):this.player=null};
_.v.getServiceTrackingParams=function(){var N,b;return((N=this.data)==null?void 0:(b=N.responseContext)==null?void 0:b.serviceTrackingParams)||[]};
_.v.setMastheadAd=function(N){N&&N.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=N&&N.mastheadAd};
_.v.dataChanged=function(){var N=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||ZAi();_.W_(this,function(){_.PN(N.hostElement,"ytd-update-grid-state-action")})};
_.v.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.v.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var N=this.data.alerts;return N&&N.find(function(b){return!!b.alertWithActionsRenderer})}};
_.v.computeGreetingData=function(){if(this.data&&this.data.alerts){var N=this.data.alerts;return N&&N.find(function(b){return!!b.personalGreetingViewModel})}};
_.v.computeHasMemberHubProfileRenderer=function(N){var b;return!!(N==null?0:(b=N.header)==null?0:b.memberHubProfileRenderer)};
_.v.handleAlertCommand=function(N){this.get("alertCommand.alert.alertWithActionsRenderer",N)&&(N=_.t(N,WqL),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",N.alert))};
_.v.handleYtPlaylistDeletionRedirect=function(N){N=this.get("playlistDeletionRedirectCommand.redirectEndpoint",N);_.bC(this.hostElement,"yt-navigate",{endpoint:N})};
_.v.computeFluidWidth=function(N,b,S){if(b==="mini_app"||S)return!0;var P,H,K;N=N==null?void 0:(P=N.contents)==null?void 0:(H=P.twoColumnBrowseResultsRenderer)==null?void 0:(K=H.tabs)==null?void 0:K.find(function(a){var R;return a==null?void 0:(R=a.tabRenderer)==null?void 0:R.selected});
if(!N)return!1;var C,G;return!!((C=N.tabRenderer)==null?0:(G=C.content)==null?0:G.richGridRenderer)&&!["channel","channels","playables"].includes(b)};
_.v.computeHeaderFluidWidth=function(N){return N==="hashtag-landing-page"};
_.v.computeHasSidebar=function(N){var b;return!!(N.sidebar||((b=N.header)==null?0:b.playlistHeaderRenderer))};
_.v.computeHasPageHeaderSidebar=function(N){var b,S;return!!((b=N.header)==null?0:(S=b.pageHeaderRenderer)==null?0:S.enableSidebarView)};
_.v.computeUseUnifiedShowPageLayout=function(N){if(!N||this.pageSubtype!=="show"||!N.sidebar||!N.sidebar.playlistSidebarRenderer)return!1;N=N.sidebar.playlistSidebarRenderer;if(!N.items)return!1;for(var b=0;b<N.items.length;b++)if(_.t(N.items[b],YD5)){var S=void 0;return((S=_.t(N.items[b],YD5))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.v.computeIsConstrainedList=function(N){return N==="subscriptions-channels"};
_.v.computeResponsiveSizing=function(N){return N==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.d0.Object.defineProperties(rm.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b;return((N=this.data)==null?0:(b=N.header)==null?0:b.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var N,b;if(!((N=this.data)==null?0:(b=N.sidebar)==null?0:b.playlistSidebarRenderer))return!1;var S;return(S=this.data)!=null&&S.header?!1:!0}}});
_.d0.Object.defineProperties(rm,{template:{configurable:!0,enumerable:!0,get:function(){if(fDa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);fDa=N}N=fDa;return N}}});
rm.prototype.dataChanged=rm.prototype.dataChanged;rm.prototype.onPlayerDetached=rm.prototype.onPlayerDetached;rm.prototype.onPlayerAttached=rm.prototype.onPlayerAttached;rm.prototype.onStampFinished=rm.prototype.onStampFinished;rm.prototype.engagementPanelsChanged=rm.prototype.engagementPanelsChanged;rm.prototype.scrollAtTopChanged=rm.prototype.scrollAtTopChanged;rm.prototype.tabsChanged=rm.prototype.tabsChanged;rm.prototype.activeChanged=rm.prototype.activeChanged;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],rm.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],rm.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],rm.prototype,"ytdReduxBehavior",void 0);_.p([_.L(Bj.YtPageBehavior),_.y("design:type",Object)],rm.prototype,"ytPageBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],rm.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],rm.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rm.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rm.prototype,"hidden",void 0);
_.p([_.U(),_.y("design:type",Object)],rm.prototype,"mastheadAdData",void 0);_.p([_.U({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.y("design:type",Object)],rm.prototype,"alertBannerData",void 0);_.p([_.U({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.y("design:type",Object)],rm.prototype,"greetingData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],rm.prototype,"pageSubtype",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.y("design:type",Boolean)],rm.prototype,"hasMemberHubProfileRenderer",void 0);_.p([_.U({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rm.prototype,"hasSidebar",void 0);_.p([_.U({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rm.prototype,"hasPageHeaderSidebar",void 0);
_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],rm.prototype,"roundedContainer",void 0);_.p([_.U({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],rm.prototype,"useUnifiedShowPageLayout",void 0);_.p([_.U({computed:"computeIsConstrainedList(pageSubtype)"}),_.y("design:type",Object)],rm.prototype,"isConstrainedList",void 0);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"usePlaylistHeaderRenderer",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],rm.prototype,"useOldPlaylistSidebarRenderer",null);_.p([_.U({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.y("design:type",Boolean)],rm.prototype,"fluidWidth",void 0);_.p([_.U({selector:Qe_}),_.y("design:type",Boolean)],rm.prototype,"scrollAtTop",void 0);
_.p([_.U({selector:xMn}),_.y("design:type",Boolean)],rm.prototype,"tabGesturesIsActive",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.y("design:type",Boolean)],rm.prototype,"disableHeaderFluidWidth",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.y("design:type",String)],rm.prototype,"responsiveSizing",void 0);
_.p([_.dq("ytd-two-column-browse-results-renderer"),_.y("design:type",HTMLElement)],rm.prototype,"contents",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],rm.prototype,"header",void 0);_.p([_.dq("ytd-refresh"),_.y("design:type",Object)],rm.prototype,"refresh",void 0);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"activeChanged",null);
_.p([_.W4("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"tabsChanged",null);_.p([_.W4("scrollAtTop"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"scrollAtTopChanged",null);_.p([_.U(),_.y("design:type",Object)],rm.prototype,"engagementPanels",void 0);
_.p([_.W4("data.panels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"engagementPanelsChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"onStampFinished",null);_.p([_.RA("yt-player-attached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],rm.prototype,"onPlayerAttached",null);
_.p([_.RA("yt-player-detached"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Element]),_.y("design:returntype")],rm.prototype,"onPlayerDetached",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rm.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-browse"})],rm);var HVL,sKO=function(){if(HVL!==void 0)return HVL;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return HVL=N};var Kfw=new _.nO("MODULE_REGISTRY_TOKEN");var cG=function(){var N=_.z.apply(this,arguments)||this;N.currentPage=void 0;N.renderLoadingStateJobId=0;N.updatePageDataJobId=0;N.pageDisposeJobsets=new WeakMap;N.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};N.shouldApplyLockupToWatchTransition=_.T("web_thumbnail_to_watch_transition");N.shouldApplySlideTransition=_.m6("web_page_transition_type")==="slide"||_.T("enable_plj_landing_page");N.shouldApplyLearningJourneyTransition=_.T("enable_plj_landing_page");N.TEST_ONLY=void 0;return N};
_.F(cG,_.z);_.v=cG.prototype;_.v.ready=function(){var N=_.aN();N.addProvider({provide:_.$9,useValue:this});N.addProvider({provide:_.D_a,useValue:this})};
_.v.created=function(){this.pagePool=new Dg6;this.contextSwitcher=new a4t};
_.v.attached=function(){_.bC(this.hostElement,"attached");var N=_.aN().resolve(_.cq(_.ts));N&&(this.contextSwitcher.JSC$20032_networkService_=N);this.viewTransitionManager=_.aN().resolve(_.wH)};
_.v.getPageOffset=function(N){return N.getScrollTop()};
_.v.setPageOffset=function(N,b){try{N.setScrollTop(b)}catch(S){}};
_.v.setPageOffsetForNavigation=function(N,b){_.bC(this.hostElement,"yt-navigate-set-page-offset",{page:N,offset:b===void 0?0:b})};
_.v.pauseActiveContext=function(){var N=this.contextSwitcher;N.activeContext_&&N.activeContext_.pause()};
_.v.getModuleNameForType=function(N){return N==="watch"?_.T("kevlar_watch_fixie")?"watchFixie":_.T("kevlar_watch_grid")?"watchGrid":"watchFlexy":N==="shorts"||N==="search"?N:"browse"};
_.v.attachPage=function(N){var b,S=!_.T("pc_is_attached_ks")&&(N==null?void 0:(b=N.polymerController)==null?void 0:b.isAttached);if(!N.isAttached&&!S)try{_.H4(this.hostElement).appendChild(N)}catch(H){var P;_.$h(new _.jU("Error attaching page element for component",{origin:(P=this.currentPage)==null?void 0:P.is,component:N.is}))}};
_.v.setActivePage=function(N,b){var S=this,P=!1,H=function(){var K=S.isOnWatch(),C=S.currentPage;if(N)if(N!==S.currentPage){C&&(C.hidden=!0,C.active=!1,C.removeAttribute("role"));S.currentPage=N;var G,a=b!=null?b:_.R3((G=S.data)==null?void 0:G.endpoint);C&&_.bC(S.hostElement,"yt-page-type-changed",{oldPageType:C.is,newPageType:N.is,newPageSubtype:a});_.gq().dispatch(_.HU({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:N.is}));_.gq().dispatch(_.HU({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:a||""}));
N.hidden=!1;S.attachPage(N);N.active=!0;N.setAttribute("role","main");C&&S.setPageOffsetForNavigation(N,0);_.T("kevlar_remove_page_dom_on_switch")&&!K&&C&&_.H4(S.hostElement).removeChild(C)}else P=!0;else S.handleMissingDestinationPage(C)};
this.shouldRunBrowseTransition(this.currentPage,N)?Dm6(this.viewTransitionManager,H):this.shouldRunLearningJourneyTransition(this.currentPage,N)?eR5(this.viewTransitionManager,H):H();return P};
_.v.handleMissingDestinationPage=function(N){if(this.isColdLoadForUnknownPage(N))_.$h(new _.jU("Cold load for unknown page"));else{var b;N=new _.jU("Unable to set active page",N?N.is:"unknown origin",(b=this.data)==null?void 0:b.endpoint);_.ge(N)}};
_.v.isColdLoadForUnknownPage=function(N){return!N&&D8(this.data)==="unknown"};
_.v.shouldRunBrowseTransition=function(N,b){return this.shouldApplySlideTransition&&(N==null?void 0:N.is)==="ytd-browse"&&(b==null?void 0:b.is)==="ytd-browse"&&N!==b};
_.v.shouldRunLearningJourneyTransition=function(N,b){return this.shouldApplyLearningJourneyTransition&&(N==null?void 0:N.is)==="ytd-browse"&&((b==null?void 0:b.is)==="ytd-watch-learning-journey"||(b==null?void 0:b.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.v.shouldRunWatchNextLoadedTransition=function(N,b){return this.viewTransitionManager&&N.is==="ytd-watch-flexy"&&b};
_.v.updatePageData=function(N){var b=this,S=this.data;this.updatePageDataJobId&&_.Dj.cancelJob(this.updatePageDataJobId);this.data=N;return new _.u5(function(P){var H=function(){N.filler?b.performDataUpdate(N,S):z5Q(function(){b.performDataUpdate(N,S)});
var a=_.kA();_.Ts(a,"cr")||a.processSignal("cr");P()},K=function(){N&&N.page==="watch"?b.updatePageDataJobId=_.Bm(_.Dj,H):H()};
if(_.T("kevlar_enable_mss_page_modules_client")&&N){var C=_.aN().resolve(Kfw),G=b.getModuleNameForType(N.page);(C=C.getFetching([G]))?C.then(K):K()}else K()})};
_.v.isDownloadsPage=function(N){var b,S;return(N==null?void 0:(b=N.endpoint)==null?void 0:(S=b.browseEndpoint)==null?void 0:S.browseId)==="FEdownloads"};
_.v.setPlayerSyncInterval=function(N){var b;return _.r(function(S){if(S.nextAddress==1)return S.yield(_.aN().resolve(_.Pm),2);b=S.yieldResult;b.setUpPositionSyncInterval(N);_.Zd(S)})};
_.v.performDataUpdate=function(N,b){_.T("kevlar_early_popup_close")||_.St(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var S=!N.filler;S&&(_.uC("lps"),_.T("config_age_report_killswitch")||nya());var P=D8(N),H,K=!1;if(_.T("kevlar_remove_page_dom_on_switch")){var C=b&&D8(b);P===C&&(H=this.getCurrentPage())}H||(H=VX(this.pagePool,P));S&&p$n(this.pagePool.elementPoolPopulator,P);S&&!this.renderLoadingStateJobId&&(K=this.setActivePage(H));if(H){C=P==="watch";var G=
P==="shorts",a=P==="learning_journey_watch";_.T("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(H);if(C||G||a)H.playerData=N.playerResponse;if(G){N.reelWatchSequenceResponse?H.reelWatchSequenceResponse=N.reelWatchSequenceResponse:H.cachedReelWatchSequenceResponse&&!H.reelWatchSequenceResponse&&(H.reelWatchSequenceResponse=H.cachedReelWatchSequenceResponse);N.reelWatchSequenceResponse&&(b==null?void 0:b.page)!=="shorts"&&(H.cachedReelWatchSequenceResponse=N.reelWatchSequenceResponse);
H.currentEndpoint=N.endpoint;var R;H.isPreviousPageShorts=!!(b==null?0:(R=b.endpoint)==null?0:R.reelWatchEndpoint)}R=this.isDownloadsPage(N);var n=this.isDownloadsPage(b);R&&!n?this.setPlayerSyncInterval(6E5):!R&&n&&this.setPlayerSyncInterval();_.T("block_all_player_prefetch_requests")||this.preparePrefetchRequest(N,H,S,C,G,a);$mo(_.aN().resolve(_.E_),b,N);if(_.T("enable_ai_companion")){var d;(d=_.aN().resolve(_.cq(_.vn)))==null||_.Mj5(d,this.getPersistentPanelSurface(P))}_.u8(_.aN().resolve(_.mh));
_.T("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(H);S?(S=typeof H.loadPage,S==="function"?(H.pageContext=Rhw(this.contextSwitcher,H,H.data!==N.response),S=function(){H.loadPage(N.response)},this.shouldApplySlideTransition&&H.is==="ytd-browse"&&K&&(P==="learning"||this.isDifferentBrowseId(N==null?void 0:N.endpoint,b==null?void 0:b.endpoint))?Dm6(this.viewTransitionManager,S):this.shouldRunWatchNextLoadedTransition(H,K)?gaQ(this.viewTransitionManager,S):S()):_.ed(new _.jU("b/38014653 ",
[P,
H.is,H.nodeName,S,H.isAttached,b&&D8(b),this.hostElement.children.length])),_.uC("pdl")):(H.hidden=!0,N.response.filler=!0,H.data=N.response,this.attachPage(H));_.bC(this.hostElement,"yt-page-data-updated",{pageType:P})}_.XC(_.Dj,function(){_.T("logging_avoid_blocking_during_navigation")&&_.ZUI().transition("none");var m=Qla(),k=H;if(N){var M=zso(N),l=AML(N),u;a:{if(N.playerResponse){var J=N.playerResponse,Z;if((u=J.auxiliaryUi)==null?0:(Z=u.messageRenderers)==null?0:Z.upsellDialogRenderer){u=J.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(N.response&&(u=N.response,(J=u.overlay)==null?0:J.upsellDialogRenderer)){u=u.overlay.upsellDialogRenderer;break a}u=void 0}var D;var Y;Z=(D=N.playerResponse)==null?void 0:(Y=D.auxiliaryUi)==null?void 0:Y.messageRenderers;D=(Z==null?void 0:Z.enforcementMessageViewModel)||(Z==null?void 0:Z.bkaEnforcementMessageViewModel);D=(D==null?void 0:D.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?D:void 0;var V;a:{if(N.response&&(Y=N.response,(V=Y.overlay)==null?0:V.commandWrapperPromoRenderer)){V=
Y.overlay.commandWrapperPromoRenderer;break a}V=void 0}uZE(m,M,l,u,D,V,k)}})};
_.v.preparePrefetchRequest=function(N,b,S,P,H,K){var C,G,a,R,n,d,m,k,M,l,u,J,Z,D,Y;return _.r(function(V){if(V.nextAddress==1)return!S||!(P||H||K)||_.T("kevlar_disable_background_prefetch")&&_.$U(s5n)()===0?V.return():(C=_.h8(b))?V.yield(C.getPlayerPromise(),2):V.return();G=V.yieldResult;a=_.aN().resolve(_.cq(_.ts));if(!a)return V.return();if(H)return R=_.b0(_.EP),S0a(R,(n=N.endpoint)==null?void 0:n.reelWatchEndpoint,b.reelWatchSequenceResponse,G,a),V.return();k=(d=N.response)==null?void 0:(m=d.responseContext)==
null?void 0:m.webResponseContextExtensionData;if(!k)return V.return();Z=(M=N.response)==null?void 0:(l=M.contents)==null?void 0:(u=l.twoColumnWatchNextResults)==null?void 0:(J=u.autoplay)==null?void 0:J.autoplay;D=_.aN().resolve(_.dt);Y=_.b0(_.EP);PAw(Y,k,G,a,D,Z);_.Zd(V)})};
_.v.movePlayerToWatch=function(N){var b=this,S,P;return _.r(function(H){S=VX(b.pagePool,"watch");P=S.getPlayerContainer();N.appendTo(P);_.Zd(H)})};
_.v.movePlayerToShorts=function(N){var b=this,S,P,H;return _.r(function(K){S=VX(b.pagePool,"shorts");P=S.getPlayerContainer();(H=N)==null||H.appendTo(P,void 0,!0);_.Zd(K)})};
_.v.getPlayerFromWatch=function(){var N=VX(this.pagePool,"watch");return _.h8(N)};
_.v.getPlayerFromShorts=function(){var N=VX(this.pagePool,"shorts");return _.h8(N)};
_.v.startLoadingWatch=function(){var N=this,b=VX(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Dj.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.T("web_watch_transition_enable_start_loading_watch_callsite")?Vyn(this.viewTransitionManager,function(){N.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(b,"watch");
if(_.T("enable_ai_companion")){var S;(S=_.aN().resolve(_.cq(_.vn)))==null||_.Mj5(S,this.getPersistentPanelSurface("watch"))}};
_.v.startLoadingShorts=function(){var N=VX(this.pagePool,"shorts");this.setActivePage(N,"shorts")};
_.v.startLoadingLearningJourney=function(){var N=VX(this.pagePool,"learning_journey_watch");this.setActivePage(N,"learning_journey_watch")};
_.v.getCurrentPage=function(){return this.currentPage};
_.v.getDestinationPageType=function(){return this.destinationPageType};
_.v.getCurrentData=function(){return this.data};
_.v.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.v.isOnShorts=function(){var N;return((N=this.currentPage)==null?void 0:N.is)==="ytd-shorts"};
_.v.isWatchPage=function(N){return!!N&&(N.is==="ytd-watch-flexy"||N.is==="ytd-watch-fixie"||N.is==="ytd-watch-grid")};
_.v.preparePage=function(N,b){var S=this,P=function(){var C=S.pagePool.preparePage(N,S.currentPage,b);C&&S.attachPage(C)},H=function(C){_.hd(C,b);
_.$h(C)};
if(_.T("kevlar_enable_mss_page_modules_client")){var K=this.getModuleNameForType(N);if(K=_.aN().resolve(Kfw).getFetching([K])){K.then(P.bind(this)).catch(H.bind(this));return}}try{P()}catch(C){H(C)}};
_.v.lazyPrepareCriticalPages=function(N,b){N=_.R3(b)||N;_.T("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(N).then(this.maybePrepareWatchPage.bind(this,N)):this.maybePrepareWatchPage(N)};
_.v.maybePrepareWatchPage=function(N){N==="watch"||N==="learning_journey_watch"&&_.T("web_watch_learning_journey_disable_lazy_pages")||_.XC(_.Dj,this.preparePage.bind(this,"watch"))};
_.v.downloadPageModules=function(N){N=this.getModuleNameForType(N);var b=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);b.delete(N);var S=_.aN().resolve(Kfw);S.JSC$33425_loadModules(N);return S.JSC$33425_loadModules.apply(S,_.IX(b))};
_.v.renderPageLoadingState=function(N,b){this.preparePage(N,b);var S=VX(this.pagePool,N);S.loadingData&&(S.loadingData.endpoint=b);S.loading=!0;this.setActivePage(S,N);N!=="watch"&&N!=="learning_journey_watch"||_.bC(this.hostElement,"yt-guide-close")};
_.v.prepareForNavigation=function(N,b){var S=this;if(this.currentPage&&this.data){var P=_.R3(b)||N;this.destinationPageType=P;D8(this.data)==P&&_.bC(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((N==="watch"||N==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Dj.cancelJob(this.renderLoadingStateJobId);_.aN().resolve(_.E_).deactivate(b);_.ml(_.Dj,function(){var K=S.viewTransitionManager,C=S.currentPage;
if(K.isLockupToWatchTransitionEnabled&&K.isLockupThumbnailRegistrationEnabled&&C)if(K.registeredLockupThumbnail)K.lockupThumbnailRegisteredFromWatchEndpoint&&_.$h(new _.jU("Lockup thumbnail already registered from watch endpoint."));else{a:{var G=_.t(b,_.Iv);if(G==null?0:G.videoId){var a="yt-lockup-view-model ."+_.ipI(G.videoId)+" yt-thumbnail-view-model";C=C.querySelectorAll(a);if(C.length===1){G=C[0];break a}C.length>1?_.$h(new _.jU("Multiple LockupViewModel thumbnails found for videoId: "+G.videoId+
". Selector: "+a)):_.T("web_thumbnail_to_watch_transition_debug")&&_.$h(new _.jU("No LockupViewModel thumbnail found for videoId: "+G.videoId+". Selector: "+a))}G=void 0}G&&(K.registeredLockupThumbnail=G,K.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.PSQ(K,G))}});
var H=this.data;this.renderLoadingStateJobId=_.ml(_.Dj,function(){Vyn(S.viewTransitionManager,function(){if(S.data!=H){var K=VX(S.pagePool,N);S.setActivePage(K)}else S.renderPageLoadingState(N,b);S.renderLoadingStateJobId=0})},150)}};
_.v.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var N=new _.LG(1);this.currentPage.pageDisposeJobs.forEach(function(b){_.fG(N,b)});
this.pageDisposeJobsets.set(this.currentPage,N)}};
_.v.flushPageDisposeJobset=function(N){var b=this.pageDisposeJobsets.get(N);b&&(b.flushJobs(),this.pageDisposeJobsets.delete(N))};
_.v.onYtStopOldPlayer=function(N,b){b=b===void 0?!1:b;var S,P=_.kb("kevlar_new_stop_old_player_logic_pages");if(_.T("kevlar_check_current_page_on_stop_old_player")&&(P.length===0||this.currentPage&&P.includes(this.currentPage.is)))if(this.data&&(S=D8(this.data)),D8(N)===S&&this.currentPage&&D8(this.currentPage.data)!==S)var H=_.h8(this.currentPage);else S=D8(this.data),H=VX(this.pagePool,S),H=_.h8(H);else this.data&&(S=D8(this.data),H=VX(this.pagePool,S),H=_.h8(H));if(H){P=D8(N);var K=VX(this.pagePool,
P);K=_.h8(K);if(H==K)b&&!_.T("kevlar_disable_preemptive_player_reset")&&H.resetForNewPlayback();else if(b=S==="watch"&&P!=="watch",!b||P==="shorts"||_.DiE()&&!n7J(this.data,N))N=_.aN().resolve(_.E_),b&&N.isMiniplayerActive()&&N.pipController.getWindow()||H.stop()}};
_.v.isDifferentBrowseId=function(N,b){N=_.t(N,_.Wd);b=_.t(b,_.Wd);return(N==null?void 0:N.browseId)!==(b==null?void 0:b.browseId)};
_.v.getPersistentPanelSurface=function(N){switch(N){case "watch":return"WATCH";default:return"APP"}};
_.d0.Object.defineProperties(cG,{template:{configurable:!0,enumerable:!0,get:function(){return sKO()}}});
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],cG.prototype,"ytActionHandlerBehavior",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-page-manager"})],cG);_.X(cG,"ytd-page-manager",function(){return sKO()},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var vVQ;var OVL;var ah=function(){return _.z.apply(this,arguments)||this};
_.F(ah,_.z);ah.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ah.prototype.computeBlueBottomLink=function(N){return N};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ah.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.bottomIcon)"}),_.y("design:type",String)],ah.prototype,"bottomIcon",void 0);
_.p([_.U({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ah.prototype,"enableBlueBottomLink",void 0);_.p([_.Uj({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],ah);
_.X(ah,"ytd-web-answer-renderer",function(){if(OVL!==void 0)return OVL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return OVL=N},{mode:_.sZ("kevlar_poly_si_batch_j035")?1:2});var Cqi;var Rh=function(){var N=_.z.apply(this,arguments)||this;N.hasChipBar=!1;return N};
_.F(Rh,_.z);Rh.prototype.configureRendererStamper=function(){return{"data.chipBar":{id:"chip-bar",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}},"data.searchFilterButton":{id:"filter-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1},"data.aboutTheseResultsButton":{id:"about-these-results",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1}}};
Rh.prototype.computeHasChipBar=function(N){return!(N==null||!N.chipBar)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.y("design:type",Object)],Rh.prototype,"hasChipBar",void 0);_.p([_.Uj({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Rh);
_.X(Rh,"ytd-search-header-renderer",function(){if(Cqi!==void 0)return Cqi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Cqi=N},{mode:1});var Gvn;var WG=function(){return _.z.apply(this,arguments)||this};
_.F(WG,_.z);WG.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WG.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-page-continuation"})],WG);
_.X(WG,"ytd-page-continuation",function(){if(Gvn!==void 0)return Gvn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Gvn=N},{mode:1});var rX6;var cX6;var aZL;var Rv5=function(){return _.z.apply(this,arguments)||this};
_.F(Rv5,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rv5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rv5.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Rv5);
_.X(Rv5,"ytd-watch-card-one-vs-one-event",function(){if(aZL!==void 0)return aZL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return aZL=N},{mode:1});var WfJ=function(){return _.z.apply(this,arguments)||this};
_.F(WfJ,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WfJ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WfJ.prototype,"data",void 0);_.p([_.Uj({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],WfJ);
_.X(WfJ,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(cX6!==void 0)return cX6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return cX6=N},{mode:1});var nVE;var dGq=function(){return _.z.apply(this,arguments)||this};
_.F(dGq,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dGq.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dGq.prototype,"data",void 0);_.p([_.Uj({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],dGq);
_.X(dGq,"ytd-banner-and-box-hero-image-renderer",function(){if(nVE!==void 0)return nVE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return nVE=N},{mode:1});var mG5;var nk=function(){var N=_.z.apply(this,arguments)||this;N.modern=_.T("web_modern_buttons");return N};
_.F(nk,_.z);nk.prototype.computeIcon=function(){var N,b,S=(N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType;if(S)return _.C7(S)};
nk.prototype.computeButtonShape=function(){var N;return{buttonText:_.es((N=this.data)==null?void 0:N.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.d0.Object.defineProperties(nk.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],nk.prototype,"modern",void 0);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.f("data.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],nk.prototype,"buttonColor",null);
_.p([_.Uj({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],nk);
_.X(nk,"ytd-call-to-action-button-renderer",function(){if(mG5!==void 0)return mG5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return mG5=N},{mode:1});var kvw;var dm=function(){return _.z.apply(this,arguments)||this};
_.F(dm,_.z);dm.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.H4(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.wG(this.data.leftThumbnail.thumbnails,216)+")")};
dm.prototype.onLeftThumbnailChanged=dm.prototype.onLeftThumbnailChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dm.prototype,"data",void 0);_.p([_.W4("data.leftThumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dm.prototype,"onLeftThumbnailChanged",null);_.p([_.Uj({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],dm);
_.X(dm,"ytd-collage-hero-image-renderer",function(){if(kvw!==void 0)return kvw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return kvw=N},{mode:1});var TzE;var m5=function(){return _.z.apply(this,arguments)||this};
_.F(m5,_.z);m5.prototype.computeStyle=function(N){return N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],m5.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.y("design:type",String)],m5.prototype,"componentStyle",void 0);_.p([_.Uj({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],m5);
_.X(m5,"ytd-single-hero-image-renderer",function(){if(TzE!==void 0)return TzE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return TzE=N},{mode:1});var tNt;var k5=function(){return _.z.apply(this,arguments)||this};
_.F(k5,_.z);_.v=k5.prototype;
_.v.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.T("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.v.computeSubtitle=function(N){if(this.data){var b;if(this.data.upcomingEventData){N=_.es(N.subtitle);var S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(b=_.gy(_.lK(N,S)))}else b=N.subtitle;return b}};
_.v.onHeroTap=function(N){N.preventDefault();var b=this.data&&this.data.navigationEndpoint;!b||!_.VC(_.V7(N),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.VC(_.V7(N),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.T("kevlar_watchcard_hero_video_renderer_killswitch")?_.bC(this.hostElement,"yt-navigate",{navigationEndpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.v.computeHeroTabIndex=function(N){return N&&N.simpleText?-1:0};
_.v.computeHeroRole=function(N){return N&&N.simpleText?"":"link"};
_.v.computeIsReminderButtonPresent=function(N){return!(!N||!N.reminderButton)};
_.v.computeHideBottomItems=function(N){return!(this.computeIsReminderButtonPresent(N)||N.subtitle)};
_.v.dataChanged=function(){var N=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;((b=_.t(N==null?void 0:N.commandMetadata,_.eD))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(N)};
k5.prototype.dataChanged=k5.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],k5.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k5.prototype,"data",void 0);
_.p([_.U({computed:"computeSubtitle(data)"}),_.y("design:type",String)],k5.prototype,"subtitle",void 0);_.p([_.U({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],k5.prototype,"isReminderButtonPresent",void 0);_.p([_.U({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],k5.prototype,"hideBottomItems",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k5.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],k5);
_.X(k5,"ytd-watch-card-hero-video-renderer",function(){if(tNt!==void 0)return tNt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return tNt=N},{mode:1});var MN_;var Tw=function(){return _.z.apply(this,arguments)||this};
_.F(Tw,_.z);_.v=Tw.prototype;_.v.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.v.computeTitleBadges=function(N){return N?[N]:[]};
_.v.computeHeaderStyle=function(N){return N?N.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.v.computeAvatarAriaLabel=function(N){if(N){var b,S,P,H;return(H=(b=N.avatar)==null?void 0:(S=b.accessibility)==null?void 0:(P=S.accessibilityData)==null?void 0:P.label)!=null?H:_.es(N==null?void 0:N.title)}};
_.v.computeAvatarHeight=function(N){return N==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.v.computeBadgeRowClass=function(N){return(N==null?0:N[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tw.prototype,"data",void 0);_.p([_.U({computed:"computeTitleBadges(data.titleBadge)"}),_.y("design:type",Array)],Tw.prototype,"titleBadges",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.y("design:type",String)],Tw.prototype,"headerStyle",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.y("design:type",String)],Tw.prototype,"badgeRowClass",void 0);_.p([_.Uj({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Tw);
_.X(Tw,"ytd-watch-card-rich-header-renderer",function(){if(MN_!==void 0)return MN_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return MN_=N},{mode:1});var Ff6;var BzO;var tx=function(){return _.z.apply(this,arguments)||this};
_.F(tx,_.z);tx.prototype.onMetadataTap=function(N){var b=this.data&&this.data.navigationEndpoint;b&&!_.VC(_.V7(N),this.hostElement,["A".toString()])&&_.bC(this.hostElement,"yt-navigate",{endpoint:b})};
_.d0.Object.defineProperties(tx.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N;if(this.data.upcomingEventData){var b=_.es(this.data.subtitle),S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(N=_.gy(_.lK(b,S)))}else N=this.data.subtitle;return N}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tx.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.style"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],tx.prototype,"isCondensed",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],tx.prototype,"subtitle",null);
_.p([_.Uj({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],tx);
_.X(tx,"ytd-watch-card-compact-video-renderer",function(){if(BzO!==void 0)return BzO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return BzO=N},{mode:1});var lZO;var LfL=function(){return _.z.apply(this,arguments)||this};
_.F(LfL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LfL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],LfL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],LfL);
_.X(LfL,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(lZO!==void 0)return lZO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return lZO=N},{mode:1});var Mw=function(){return _.z.apply(this,arguments)||this};
_.F(Mw,_.z);Mw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Mw.prototype,"ytRendererStamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mw.prototype,"data",void 0);_.p([_.Uj({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Mw);
_.X(Mw,"ytd-vertical-watch-card-list-renderer",function(){if(Ff6!==void 0)return Ff6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Ff6=N},{mode:1});var fZE;var Fh=function(){var N=_.z.apply(this,arguments)||this;N.ariaExpanded="false";return N};
_.F(Fh,_.z);_.v=Fh.prototype;_.v.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.v.dataChanged=function(){var N;this.currentSeasonIndex=((N=this.data)==null?void 0:N.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.v.computeEpisodesInfo=function(N,b,S){if(N!==void 0&&b.length===N.length)return N[S]};
_.v.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.v.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.v.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.v.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.v.getUppercaseSimpleString=function(N){return this.ytRendererBehavior.getSimpleString(N).toUpperCase()};
_.v.updateCurrentSeasonIndexFromBinding=function(N){this.currentSeasonIndex=N.detail.value};
Fh.prototype.onIronOverlayClosed=Fh.prototype.onIronOverlayClosed;Fh.prototype.currentSeasonIndexChanged=Fh.prototype.currentSeasonIndexChanged;Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fh.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",String)],Fh.prototype,"label",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],Fh.prototype,"currentSeasonIndex",void 0);_.p([_.U({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.y("design:type",Object)],Fh.prototype,"episodesInfo",void 0);_.p([_.U({value:"false"}),_.y("design:type",Object)],Fh.prototype,"ariaExpanded",void 0);_.p([_.dq("#lists"),_.y("design:type",Object)],Fh.prototype,"lists",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fh.prototype,"dataChanged",null);_.p([_.t_("currentSeasonIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fh.prototype,"currentSeasonIndexChanged",null);_.p([_.RA("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Fh.prototype,"onIronOverlayClosed",null);
_.p([_.Uj({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Fh);
_.X(Fh,"ytd-watch-card-section-dropdown-renderer",function(){if(fZE!==void 0)return fZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return fZE=N},{mode:1});var uWE;var BG=function(){var N=_.z.apply(this,arguments)||this;N.isSearch=!1;return N};
_.F(BG,_.z);BG.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BG.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],BG.prototype,"isSearch",void 0);_.p([_.Uj({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],BG);
_.X(BG,"ytd-watch-card-section-sequence-renderer",function(){if(uWE!==void 0)return uWE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return uWE=N},{mode:1});var QKL=_.A(function(N){return _.c("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.c(_.kY,{data:function(){return N.data().ctaButton}},{buttonViewModel:_.j$}),_.c(_.mD,{text:function(){return N.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"tk");
QKL.idomCompat=!0;_.qu(QKL,"ytd-button-banner-view-model",{props:{data:_.kg}});var lN=function(){var N=_.z.apply(this,arguments)||this;N.isSearch=!1;return N};
_.F(lN,_.z);
lN.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],lN.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!0}),_.y("design:type",Boolean)],lN.prototype,"rounded",void 0);_.p([_.U(),_.y("design:type",Object)],lN.prototype,"isSearch",void 0);
_.p([_.Uj({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],lN);
_.X(lN,"ytd-universal-watch-card-renderer",function(){if(rX6!==void 0)return rX6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return rX6=N},{mode:1});var xGt;_.qu(_.A(function(N){var b=N.data;var S;N=!((S=_.aN().resolve(_.cq(_.T8)))==null||!S());S={};return _.c("overview-message-view-model",{class:_.KU("ytwOverviewMessageViewModelHost",(S.ytwOverviewMessageViewModelDarkBackground=N,S.ytwOverviewMessageViewModelLightBackground=!N,S))},_.c(_.W,{cond:function(){return b().primaryImage},
then:function(P){return _.c(_.gG,{data:P,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.c(_.W,{cond:function(){return b().primaryText},
then:function(){return _.c("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.c(_.mD,{text:function(){return b().primaryText}}))}}),_.c(_.W,{cond:function(){return b().secondaryText},
then:function(){return _.c("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.c(_.mD,{text:function(){return b().secondaryText}}))}}))},"uk"),"overview-message-view-model",{props:{data:_.kg}});_.qu(_.Seo,"ytd-overview-answer-view-model",{props:{data:_.kg}});var Lk=function(){return _.z.apply(this,arguments)||this};
_.F(Lk,_.z);Lk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{universalWatchCardRenderer:{component:"ytd-universal-watch-card-renderer",properties:{isSearch:"[[isSearch]]"}},overviewAnswerViewModel:"ytd-overview-answer-view-model",overviewMessageViewModel:"overview-message-view-model"}}}};
Lk.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],Lk.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Lk.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Lk.prototype,"isSearch",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Lk);
_.X(Lk,"ytd-secondary-search-container-renderer",function(){if(xGt!==void 0)return xGt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return xGt=N},{mode:1});var oVQ;var fk=function(){var N=_.z.apply(this,arguments)||this;N.renderSecondarySearchContainer=!1;N.isSearch=!1;return N};
_.F(fk,_.z);_.v=fk.prototype;_.v.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.v.created=function(){var N=this;this.boundStampSecondarySearchContainerIfFits=function(){N.stampSecondarySearchContainerIfFits()};
_.DH("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.v.computeIsSearchFrictionPage=function(N){var b,S,P,H,K;N=N==null?void 0:(b=N.primaryContents)==null?void 0:(S=b.sectionListRenderer)==null?void 0:(P=S.contents)==null?void 0:(H=P[0])==null?void 0:(K=H.itemSectionRenderer)==null?void 0:K.contents;if(!N)return!1;b=_.O(N);for(S=b.next();!S.done;S=b.next())if(P=void 0,(P=S.value)==null?0:P.searchFrictionViewModel)return!0;return!1};
_.v.computeShowSecondaryColumn=function(N,b){return!!(b&&b.secondaryContents&&N)};
_.v.activeChanged=function(){var N=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.aA(this,this.debounceStampSecondarySearchContainerIfFits)),_.p3(function(){N.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.aA(this,this.debounceStampSecondarySearchContainerIfFits))};
_.v.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.v.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.v.debounceStampSecondarySearchContainerIfFits=function(){_.Yq(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.v.onRetrieveLocation=function(N,b){b.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);N.stopPropagation()};
_.v.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
fk.prototype.dataChanged=fk.prototype.dataChanged;fk.prototype.onRetrieveLocation=fk.prototype.onRetrieveLocation;fk.prototype.persistentGuideChanged=fk.prototype.persistentGuideChanged;fk.prototype.activeChanged=fk.prototype.activeChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],fk.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],fk.prototype,"ironResizableBehavior",void 0);_.p([_.U(),_.y("design:type",Boolean)],fk.prototype,"active",void 0);_.p([_.U(),_.y("design:type",Object)],fk.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.T("enable_desktop_search_bigger_thumbs")}}),
_.y("design:type",Boolean)],fk.prototype,"useBiggerThumbs",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.m6("desktop_search_bigger_thumbs_style")}}),
_.y("design:type",String)],fk.prototype,"biggerThumbsStyle",void 0);_.p([_.U(),_.y("design:type",Object)],fk.prototype,"renderSecondarySearchContainer",void 0);_.p([_.U({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.y("design:type",Boolean)],fk.prototype,"showSecondaryColumn",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.y("design:type",Boolean)],fk.prototype,"isSearchFrictionPage",void 0);
_.p([_.U(),_.y("design:type",Object)],fk.prototype,"isSearch",void 0);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fk.prototype,"activeChanged",null);_.p([_.W4("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fk.prototype,"persistentGuideChanged",null);
_.p([_.RA("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],fk.prototype,"onRetrieveLocation",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fk.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],fk);
_.X(fk,"ytd-two-column-search-results-renderer",function(){if(oVQ!==void 0)return oVQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return oVQ=N},{mode:1});var uN=function(){var N=_.z.apply(this,arguments)||this;N.hasSearchHeader=!1;N.hasSecondaryContent=!1;N.hasBiggerThumbs=_.T("enable_desktop_search_bigger_thumbs");N.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return N};
_.F(uN,_.z);_.v=uN.prototype;_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])}}};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.loadPage_=function(N){this.initCsi();N&&(this.data=N,_.DH("REFINEMENTS_TUPLE",["FromSearchResponse",N.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Cv(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.v.initCsi=function(){lYi("results",["ol","cpt"])};
_.v.updateTitle=function(){var N=_.PW(window.location.href,"q");N||(N=_.PW(window.location.href,"search_query"));_.bC(this.hostElement,"yt-update-title",N||"")};
_.v.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.v.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.T("web_srp_data_changed_terminate_imp_killswitch")||_.St(this.hostElement,"yt-terminate-video-preview-action")};
_.v.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.v.computeHasSearchHeader=function(N){var b;N=N==null?void 0:(b=N.header)==null?void 0:b.searchHeaderRenderer;return!!N&&(!!N.searchFilterButton||!!N.chipBar)};
_.v.computeHasSecondaryContent=function(N){var b,S;return!!(N==null?0:(b=N.contents)==null?0:(S=b.twoColumnSearchResultsRenderer)==null?0:S.secondaryContents)};
_.d0.Object.defineProperties(uN,{template:{configurable:!0,enumerable:!0,get:function(){if(vVQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);vVQ=N}N=vVQ;return N}}});
uN.prototype.onReloadContinuationFinish=uN.prototype.onReloadContinuationFinish;uN.prototype.dataChanged=uN.prototype.dataChanged;_.p([_.L(Bj.YtPageBehavior),_.y("design:type",Object)],uN.prototype,"ytPageBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],uN.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],uN.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],uN.prototype,"data",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],uN.prototype,"monitorScroll",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],uN.prototype,"hasSearchHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],uN.prototype,"hasSecondaryContent",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],uN.prototype,"hasBiggerThumbs",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uN.prototype,"dataChanged",null);
_.p([_.RA("yt-reload-continuation-finish"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uN.prototype,"onReloadContinuationFinish",null);_.p([_.Uj({is:"ytd-search"})],uN);var iVQ;var JXJ;var UG6;var QL=function(){var N=_.z.apply(this,arguments)||this;N.ctaVisualElement=null;N.currentCsn=null;return N};
_.F(QL,_.z);_.v=QL.prototype;_.v.onDataChanged=function(){this.maybeLogShows()};
_.v.computeButtonShape=function(){var N=this;if(this.data)return{buttonText:_.es(this.data.text),state:"active",onTap:function(){N.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.v.maybeCreateCtaVe=function(){var N;if((N=this.data)!=null&&N.badgeInteractionLogging){var b;if(N=(b=this.data.badgeInteractionLogging)==null?void 0:b.trackingParams)this.ctaVisualElement=_.FA(N)}};
_.v.maybeLogClicks=function(){this.currentCsn=_.Qh(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.y3(this.currentCsn,this.ctaVisualElement)};
_.v.maybeLogShows=function(){this.currentCsn=_.Qh(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.pA(this.currentCsn,[this.ctaVisualElement])};
_.v.onTap=function(){var N;if((N=this.data)!=null&&N.onClickCommand){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand);this.maybeLogClicks()}};
QL.prototype.onDataChanged=QL.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.p([_.U({}),_.y("design:type",Object)],QL.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QL.prototype,"onDataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],QL);
_.X(QL,"ytd-shopping-overlay-badge-renderer",function(){if(UG6!==void 0)return UG6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return UG6=N},{mode:1});var ZVO;var x5=function(){return _.z.apply(this,arguments)||this};
_.F(x5,_.z);x5.prototype.computeShouldButtonBeVertical=function(N,b){return N||b};
x5.prototype.onYtServiceRequestSent=function(N,b){(N=_.t(b.endpoint,_.Np))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.t5("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:N.status})):this.handleLikeEndpoint(N))};
x5.prototype.computelikeStatusEntityKey=function(N){return N==null?void 0:N.likeStatusEntityKey};
x5.prototype.handleLikeEndpoint=function(N){N.status==="LIKE"?this.JSC$21937_ytdDislikeToggleButtonRenderer.toggle(!1):N.status==="DISLIKE"?this.JSC$21937_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$21937_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$21937_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.d0.Object.defineProperties(x5.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var N;return C0L(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(N=this.likeStatusEntity)==null?void 0:N.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var N;if(this.data&&((N=this.data)==null||!N.hideDislikeButton)){var b;return C0L(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(b=this.likeStatusEntity)==null?void 0:b.likeStatus)}}}});
x5.prototype.onYtServiceRequestSent=x5.prototype.onYtServiceRequestSent;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],x5.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],x5.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],x5.prototype,"vertical",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],x5.prototype,"textTransform",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],x5.prototype,"useShortsIcon",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],x5.prototype,"underIconLabel",void 0);_.p([_.U({value:"left"}),_.y("design:type",String)],x5.prototype,"buttonTooltipPosition",void 0);_.p([_.U(),_.y("design:type",Object)],x5.prototype,"overrides",void 0);
_.p([_.dq("#like-button"),_.y("design:type",Object)],x5.prototype,"JSC$21937_ytdLikeToggleButtonRenderer",void 0);_.p([_.dq("#dislike-button"),_.y("design:type",Object)],x5.prototype,"JSC$21937_ytdDislikeToggleButtonRenderer",void 0);_.p([_.f("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],x5.prototype,"likeButton",null);
_.p([_.f("data","likeStatusEntity.likeStatus","useShortsIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],x5.prototype,"dislikeButton",null);_.p([_.U({computed:"computelikeStatusEntityKey(data)"}),_.y("design:type",String)],x5.prototype,"likeStatusEntityKey",void 0);_.p([_.U({selectorArgs:["likeStatusEntityKey"],selector:_.io}),_.y("design:type",Object)],x5.prototype,"likeStatusEntity",void 0);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],x5.prototype,"onYtServiceRequestSent",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],x5);
_.H7()(x5,"ytd-like-button-renderer",function(){if(ZVO===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);ZVO=N}N=ZVO;return N},{mode:1});_.qu(_.wWt,"reel-sound-metadata-view-model",{props:{data:_.er,overlayDensity:_.er}});_.qu(_.IoE,"player-disclosure-view-model",{props:{data:_.kg,extractOverlay:_.kg}});_.qu(_.XVl,"pivot-button-view-model",{props:{data:_.er,className:_.er}});_.qu(_.EmE,"reel-action-bar-view-model",{props:{data:_.kg,buttonShapeOverrideables:_.kg}});_.qu(_.wKt,"yt-reel-metapanel-view-model",{props:{data:_.kg,overlayDensity:_.kg,extractOverlay:_.kg}});var jKo=_.A(function(N){var b=N.children;var S=N.region;N=_.O(_.QF(void 0,void 0,"flxBBc"));var P=N.next().value,H=N.next().value;N=_.O(_.QF("0px",void 0,"IAR7k"));var K=N.next().value,C=N.next().value;N=_.O(_.QF("0px",void 0,"QV4iWb"));var G=N.next().value,a=N.next().value;N=_.O(_.QF(0,void 0,"Q2oK6b"));var R=N.next().value,n=N.next().value;N=_.O(_.QF(0,void 0,"hYKowe"));var d=N.next().value,m=N.next().value,k=function(){var D=P();if(D){var Y;if(((Y=_.G8())==null?void 0:Y.getPlayerState())!==-1){D.style.display=
"inherit";var V;(V=_.G8())==null||V.removeEventListener("onStateChange",k)}else D.style.display="none";l()}},M=function(){var D;
return(D=_.qE())==null?void 0:D.querySelector("video")},l=function(){var D=M();
if(D){n(D.getBoundingClientRect().width);m(D.getBoundingClientRect().height);var Y;C((D==null?void 0:(Y=D.style)==null?void 0:Y.left)||"0px");var V;a((D==null?void 0:(V=D.style)==null?void 0:V.top)||"0px")}};
_.gA(function(){var D=P();if(D){var Y,V,g;if(((Y=_.G8())==null?void 0:Y.getPlayerState())===-1&&Math.round(((g=(V=_.G8())==null?void 0:V.getVideoAspectRatio())!=null?g:0)*100)!==Math.round(R()/d()*100)){D.style.display="none";var e,se;m(R()/((se=(e=_.G8())==null?void 0:e.getVideoAspectRatio())!=null?se:1))}}},"N29KDe");
var u=function(){l()},J;
_.pM(function(){l();var D;if(!(S==null?0:(D=S())==null?0:D.transformationMatrix))throw Error("Yl");var Y;(Y=_.G8())==null||Y.addEventListener("onStateChange",k);if(window.ResizeObserver){if(D=M())J=new ResizeObserver(u),J.observe(D)}else window.addEventListener("resize",l);_.ej(function(){var V;(V=_.G8())==null||V.removeEventListener("onStateChange",k);J?J.disconnect():window.removeEventListener("resize",l)})});
var Z=function(){var D,Y,V=(Y=S==null?void 0:(D=S())==null?void 0:D.transformationMatrix)!=null?Y:[];D=R();Y=d();for(var g=[],e=0,se=-1;e<V.length;e++)e%3===0&&(se++,g[se]=[]),g[se].push(V[e]);V=new az(g);g=new az([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);g=V.multiply(g);V=new az([[0,0],[0,0],[0,0],[0,0]]);for(e=0;e<g.getSize().width;e++){se=Rz(g,0,e);var Ca=Rz(g,1,e);if(se===null||Ca===null)throw Error("Xl`"+(e+1).toString());aiw(V,e,0,se*D);aiw(V,e,1,Ca*Y)}D=Rz(V,0,0);e=Rz(V,1,0);Y=Rz(V,0,1);se=Rz(V,1,1);
if(D===null||e===null||Y===null||se===null)throw Error("Vl");g=GNi(D,e,Y,se);Ca=Rz(V,3,0);V=Rz(V,3,1);if(Ca===null||V===null)throw Error("Wl");V=GNi(D,Ca,Y,V);se=(Number((se*-1).toFixed(2))-Number((Y*-1).toFixed(2)))/(Number(e.toFixed(2))-Number(D.toFixed(2)));Ca=Math.atan(se)*180/Math.PI;e=se===Number.POSITIVE_INFINITY?-90:se===Number.NEGATIVE_INFINITY?90:Object.is(se,-0)?180:se===0?0:se>0?Ca*-1:D<e?Ca*-1:Math.abs(Ca)+180;return"left:calc("+D+"px + "+K()+"); top:calc("+(Y+"px + "+G()+"); width:")+
(g+"px; height:")+(V+"px; transform:rotate(")+(e+"deg);\n        --sticker-width:"+g+";")};
return _.c(TQw,{root:"#sticker-layer"},function(){return _.c("yt-overlay-sticker",{el:_.VN(H),style:Z,class:"ytOverlayStickerHost"},b)})},"xk");var zvQ=_.A(function(N){function b(){var k,M,l,u,J=(M=_.t((k=a())==null?void 0:k.command,_.cqE))==null?void 0:(l=M.item)==null?void 0:(u=l.notificationTextRenderer)==null?void 0:u.successResponseText;if(J)k=_.wy(J),_.St(P.value,"yt-open-popup-action",[k,P.value]);else if(R())cPE(R(),P.value);else{var Z;cPE((Z=a())==null?void 0:Z.command,P.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var S=N.data;var P=_.Ct("svg"),H=_.O(_.QF(!1,void 0,"e9onLe"));N=H.next().value;var K=H.next().value,C=_.O(_.QF(!1,void 0,"ptnIQd"));H=C.next().value;var G=C.next().value,a=function(){var k;return _.t((k=S())==null?void 0:k.popUp,hTJ)},R=function(){var k;
return(k=S())==null?void 0:k.command},n=function(){return _.t(R(),_.Mb)!==void 0};
C=_.Ob(function(){b();return!1});
var d={},m={};return _.c("svg",{"on:mouseover":_.Ob(function(){n()&&K(!0);G(!0);return!1}),
"on:mouseout":_.Ob(function(){K(!1);G(!1);return!1}),
"on:keydown":_.Ob(function(k){k.key==="Enter"&&b();return!1}),
"on:focus":_.Ob(function(){n()&&K(!0);return!1}),
"on:blur":_.Ob(function(){n()&&K(!1);return!1}),
el:P,tabindex:0,"aria-label":function(){var k;return(k=S())==null?void 0:k.a11yString},
id:"player-overlay-video-interaction-svg",class:_.KU("ytPlayerOverlayInteractionInteractionsSvg",(d.ytPlayerOverlayInteractionInteractionsSvgHover=N,d),(m.ytPlayerOverlayInteractionInteractionsSvgHideOutline=H,m)),role:"button","on:click":C})},"Ak");_.qu(_.A(function(N){var b=N.data;_.pM(function(){var S;if((S=b())==null?0:S.trackingParams){var P;_.dG().graftServerVe((P=b().trackingParams)!=null?P:"")}});
return _.c("yt-player-overlay-interaction",null,_.c(jKo,{region:function(){var S,P;return(S=b())==null?void 0:(P=S.regions)==null?void 0:P[0]}},_.c(zvQ,Object.assign({},N))))},"zk"),"yt-player-overlay-interaction",{props:{data:_.kg}});var AXL=_.A(function(N){var b=N.data;var S=N.index;var P=N.selectedChoice;var H=function(){var K;return _.t((K=b())==null?void 0:K.renderer,R3E)};
N={};return _.c("yt-overlay-poll-sticker-choice",{class:_.KU("ytOverlayPollStickerChoiceHost"),style:_.r5({"--displayed-percentage":function(){var K,C,G,a;return""+Math.ceil(Number((P==null?void 0:P())===S()?(K=H())==null?void 0:(C=K.selected)==null?void 0:C.progressBarWidth:(G=H())==null?void 0:(a=G.unselected)==null?void 0:a.progressBarWidth)*100)}})},_.c("div",{class:_.KU("ytOverlayPollStickerChoicePollChoice",(N.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(P==null?void 0:P())!==
void 0},N.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(P==null?void 0:P())===S()},N))},_.c("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var K;
return((K=H())==null?void 0:K.text)||""}),_.c("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(P==null?void 0:P())==="undefined")var K="";
else{var C,G,a,R;K=(P==null?void 0:P())===S()?(C=H())==null?void 0:(G=C.selected)==null?void 0:G.votePercentage:(a=H())==null?void 0:(R=a.unselected)==null?void 0:R.votePercentage}return K})))},"Bk");var XI5=_.A(function(N){var b=N.data;var S=N.enableDebuggingFeatures;var P=_.nU(function(K){var C,G=((C=b())==null?void 0:C.postPollStateEntityKey)||"";K=_.GL(K.entities,"postPollStateEntity",G);var a;return((a=b())==null?0:a.viewerIsOwner)?Object.assign({},K,{selectedOptionId:-1,voted:!0}):K}),H=_.aN().resolve(_.Wq);
N={};return _.c("yt-overlay-poll-sticker",null,_.c(jKo,{region:function(){var K,C;return(K=b())==null?void 0:(C=K.region)==null?void 0:C.interactionRegion}},_.c("div",{class:_.KU("ytOverlayPollStickerHost",(N.ytOverlayPollStickerDebugStyle=function(){return S==null?void 0:S()},N)),
style:_.r5({"--original-height":function(){var K;return""+(((K=b())==null?void 0:K.mainBodyHeight)||1)},
"--original-width":function(){var K;return""+(((K=b())==null?void 0:K.mainBodyWidth)||1)},
"--scaled-width":function(){var K;return""+(((K=b())==null?void 0:K.mainBodyWidth)||1)},
"--primary-surface":function(){var K,C;return rPi(((K=b())==null?void 0:(C=K.theme)==null?void 0:C.primarySurface)||0)},
"--raised-surface":function(){var K,C;return rPi(((K=b())==null?void 0:(C=K.theme)==null?void 0:C.raisedSurface)||0)},
"--secondary-surface":function(){var K,C;return rPi(((K=b())==null?void 0:(C=K.theme)==null?void 0:C.secondarySurface)||0)},
"--primary-text":function(){var K,C;return rPi(((K=b())==null?void 0:(C=K.theme)==null?void 0:C.primaryText)||0)},
"--secondary-text":function(){var K,C;return rPi(((K=b())==null?void 0:(C=K.theme)==null?void 0:C.secondaryText)||0)}})},_.c("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return b().questionText}," "),_.c(_.zj,{each:function(){return b().pollChoiceConfigs||[]}},function(K,C){return _.c("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Ob(function(){var G=C(),a;if((a=b())==null||!a.viewerIsOwner){var R,n;a=(R=b())==null?void 0:(n=R.pollChoiceConfigs)==null?void 0:n[G];if(n=(a==null?0:a.renderer)?_.t(a.renderer,R3E):void 0){var d;R=((d=P())==null?void 0:d.selectedOptionId)!==G;var m;if(d=(m=R?n.selectedPollCommand:n.deselectedPollCommand)==null?void 0:m.innertubeCommand){H.resolveCommand(d);var k,M;_.gq().dispatch(_.t5("postPollStateEntity",((k=P())==null?void 0:k.key)||"",{key:((M=P())==null?void 0:M.key)||"",selectedOptionId:R?
G:-1,voted:R}))}}}})},_.c(AXL,{data:K,
index:C,selectedChoice:function(){var G,a;return((G=P())==null?0:G.voted)?(a=P())==null?void 0:a.selectedOptionId:void 0}}))}),_.c("div",{class:"ytOverlayPollStickerVoteCount"},function(){var K,C;
return((K=P())==null?0:K.voted)&&((C=P())==null?void 0:C.selectedOptionId)!==-1?b().postVoteCountText:b().preVoteCountText}))))},"Ck");_.qu(_.A(function(N){var b=N.data;N=_.UB(function(){var S;return _.T("enable_shorts_poll_stickers_web")?(((S=b())==null?void 0:S.stickers)||[]).filter(function(P){return P.pollSticker}):[]},void 0,"Cflxwb");
return _.c("yt-stickers-layer",null,_.c(_.zj,{each:N},function(S){return _.c(XI5,{data:S.pollSticker,enableDebuggingFeatures:function(){var P;return(P=b())==null?void 0:P.enableDebuggingFeatures}})}))},"Dk"),"yt-stickers-layer",{props:{data:_.kg}});var oh=function(){var N=_.z.apply(this,arguments)||this;N.showScrubber=!1;N.isWatchWhileMode=!1;N.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");N.enablePollStickers=_.T("enable_shorts_poll_stickers_web");N.enableShortsModernControls=_.T("web_shorts_modern_controls");N.anchoredPanelActive=!1;N.enableLivingroomLayout=_.T("reels_enable_livingroom_layout");N.enablePlayerMetadataContainer=_.T("reels_web_enable_metadata_container");N.enableSqueezebackPanels=_.T("web_shorts_enable_squeezeback_panels");
N.useAspectRatio=_.T("web_use_aspect_ratio");N.isSqueezebackActive=!1;N.smallScreenSqueezeback=!1;N.isPlayerStarted=!1;N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;N.isOverlay=!1;N.isImmersive=!1;N.isImmersiveHorizontal=!1;N.isFullscreen=!1;N.onWindowResized=function(){var b;N.set("isImmersive",((b=window.getComputedStyle(N.hostElement))==null?void 0:b.getPropertyValue("--immersive-mode-on"))==="1");N.set("isImmersiveHorizontal",N.isImmersive&&N.enableLivingroomLayout&&!N.isWatchWhileMode)};
return N};
_.F(oh,_.z);_.v=oh.prototype;_.v.updateIsOverlay=function(N){this.isOverlay=N.detail.value};
_.v.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.v.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.v.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.v.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.v.onOverlayDensityChange=function(){var N=_.H4(this.hostElement).querySelector("ytd-info-panel-container-renderer");N&&(N.set("extractOverlay",this.extractOverlay),N.set("roundedContainer",this.extractOverlay))};
_.v.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.v.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.v.ready=function(){(_.T("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.T("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.m6("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.m6("reels_action_justified_content")||"flex-start")};
_.v.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0},"data.disclosure":{id:"disclosure",
mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0}}};
_.v.setFakeLoadingButtons=function(){_.T("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.cN("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.cN("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.cN("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.cN("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.cN("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.v.setEmptyOverlayMetadata=function(){_.T("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.d0.Object.defineProperties(oh.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.infoPanel)}}});
oh.prototype.onOverlayDensityChange=oh.prototype.onOverlayDensityChange;oh.prototype.onIsActiveChanged=oh.prototype.onIsActiveChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],oh.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],oh.prototype,"ytdReduxBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],oh.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],oh.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],oh.prototype,"hidden",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],oh.prototype,"useShortsIcon",void 0);
_.p([_.U({value:"left"}),_.y("design:type",String)],oh.prototype,"buttonTooltipPosition",void 0);_.p([_.U({value:_.T("reels_enable_livingroom_layout")?"top":"left"}),_.y("design:type",String)],oh.prototype,"likeButtonTooltipPosition",void 0);_.p([_.U({value:"none"}),_.y("design:type",String)],oh.prototype,"textTransform",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"showScrubber",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"isWatchWhileMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.infoPanel"),_.y("design:type",Object),_.y("design:paramtypes",[])],oh.prototype,"hasInfoPanel",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"enableAnchoredPanel",void 0);_.p([_.U(),_.y("design:type",Object)],oh.prototype,"enablePollStickers",void 0);
_.p([_.U(),_.y("design:type",Object)],oh.prototype,"enableShortsModernControls",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"anchoredPanelActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"enableLivingroomLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],oh.prototype,"enablePlayerMetadataContainer",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"enableSqueezebackPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"useAspectRatio",void 0);_.p([_.U({selector:_.feo,reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"isSqueezebackActive",void 0);_.p([_.U({selector:iAa,reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"smallScreenSqueezeback",void 0);
_.p([_.U({selector:JZE}),_.y("design:type",Object)],oh.prototype,"isPlayerStarted",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"overlayDensity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"extractActionBar",void 0);_.p([_.U(),_.y("design:type",Object)],oh.prototype,"isOverlay",void 0);
_.p([_.U(),_.y("design:type",Object)],oh.prototype,"isImmersive",void 0);_.p([_.U(),_.y("design:type",Object)],oh.prototype,"isImmersiveHorizontal",void 0);_.p([_.U({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.y("design:type",Boolean)],oh.prototype,"isShortsImmersive",void 0);_.p([_.U({computed:"computeButtonOverride(extractActionBar)"}),_.y("design:type",Object)],oh.prototype,"buttonOverride",void 0);
_.p([_.U({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.y("design:type",Object)],oh.prototype,"actionBarButtonOverride",void 0);_.p([_.U({selector:_.HP,reflectToAttribute:!0}),_.y("design:type",Object)],oh.prototype,"isFullscreen",void 0);_.p([_.W4("isActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oh.prototype,"onIsActiveChanged",null);
_.p([_.W4("extractOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oh.prototype,"onOverlayDensityChange",null);_.p([_.Uj({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],oh);
_.X(oh,"ytd-reel-player-overlay-renderer",function(){if(JXJ!==void 0)return JXJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JXJ=N},{mode:1});var EVE;var iN=function(){var N=_.z.apply(this,arguments)||this;N.videoDuration=0;N.playedTime=0;N.isActive=!1;N.JSC$21962_playerEvents=new Map;return N};
_.F(iN,_.z);_.v=iN.prototype;_.v.created=function(){this.JSC$21962_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$21962_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.v.attached=function(){this.getPlayerAndInitializeListeners()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$21962_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.aA(this,this.onPageChanged))};
_.v.getPlayerAndInitializeListeners=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return b=_.qE(),b?S.yield(b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.aA(N,N.onPageChanged)),S.jumpTo(0));N.player=S.yieldResult;N.initializePlayerListeners();_.Zd(S)})};
_.v.onPageChanged=function(N){var b=this;return _.r(function(S){if(S.nextAddress==1)return N.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.w5().getPlayerPromise(),2);b.player=S.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.aA(b,b.onPageChanged));_.Zd(S)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$21962_playerEvents)};
_.v.onVideoDataChange=function(N){var b=this;return _.r(function(S){if(!b.player||N.type!=="newdata")return S.return();b.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(N.playertype).seekableEnd:b.player.getDuration(N.playertype);b.playedTime=0;_.Zd(S)})};
_.v.onVideoProgress=function(N){var b=this,S,P;return _.r(function(H){if(!b.player)return H.return();S=b.player.getPresentingPlayerType();P=b.player.getPlayerState();b.videoDuration=_.T("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(S).seekableEnd:b.player.getDuration(S);b.playedTime=P===0?b.videoDuration:N;_.Zd(H)})};
_.v.getPercentPlayed=function(N,b){return N?_.j3(b/N,0,1):0};
_.d0.Object.defineProperties(iN.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var N="";return N=this.videoDuration&&this.playedTime?N+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):N+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],iN.prototype,"componentBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],iN.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],iN.prototype,"player",void 0);_.p([_.U(),_.y("design:type",Object)],iN.prototype,"videoDuration",void 0);_.p([_.U(),_.y("design:type",Object)],iN.prototype,"playedTime",void 0);_.p([_.U(),_.y("design:type",Object)],iN.prototype,"isActive",void 0);
_.p([_.f("videoDuration","playedTime"),_.y("design:type",Number),_.y("design:paramtypes",[])],iN.prototype,"percentPlayed",null);_.p([_.f("videoDuration","playedTime"),_.y("design:type",Object),_.y("design:paramtypes",[])],iN.prototype,"percentPlayedStyle",null);_.p([_.f("videoDuration","isActive"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],iN.prototype,"hideProgressBar",null);
_.X(iN,"ytd-progress-bar-line",function(){if(EVE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);EVE=N}N=EVE;return N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var pIQ;_.qu(FBn,"ytm-closed-captioning-button",{props:{captionIconType:_.kg,onClick:_.er,ariaLabel:_.kg,ariaPressed:_.kg,isOverlay:_.er,isModern:_.er}});_.qu(_.g0i,"desktop-shorts-volume-controls",{props:{orientation:_.kg}});var Jx=function(){var N=_.z.apply(this,arguments)||this;N.playerState=null;N.isMuted=!1;N.shortsModernControlsEnabled=_.T("web_shorts_modern_controls");N.volumeControlsOrientationState="horizontal_right";N.isOverlay=!0;N.isAdsOverlay=!1;N.captionIconType=-1;N.ariaLabel="";N.overlayDensity=0;N.JSC$21965_playerEvents=new Map;N.onClosedCaptionsButtonClick=function(){N.player&&XNO(N.player)&&(N.player.toggleSubtitles(),N.updateCaptionIconType())};
return N};
_.F(Jx,_.z);_.v=Jx.prototype;_.v.created=function(){this.JSC$21965_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21965_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$21965_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.v.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.OW(28662);this.playPauseButtonClientVE=_.OW(36842);this.fullscreenButtonToggleOffClientVE=_.OW(222256);this.fullscreenButtonToggleOnClientVE=_.OW(222257);var N=_.Qh(),b=_.uZ();N&&b&&(_.T("combine_ve_grafts")?(_.Ew(_.dG(),this.muteButtonClientVE,b),_.Ew(_.dG(),this.playPauseButtonClientVE,b)):_.X8(N,b,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$21965_playerEvents),this.player=null)};
_.v.updateCaptionIconType=function(){var N=-1,b=void 0,S=_.cN("CLOSED_CAPTIONS_DISABLED");this.player&&XNO(this.player)&&(ERJ(this.player)?(b=!0,S=_.cN("CLOSED_CAPTIONS_ON"),N=1):(b=!1,S=_.cN("CLOSED_CAPTIONS_OFF"),N=0));this.captionIconType=N;this.ariaPressedState=b;this.ariaLabel=S};
_.v.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.v.getPlayerAndInitializeListeners=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return b=_.qE(),b?S.yield(b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.aA(N,N.onPageChanged)),S.jumpTo(0));N.player=S.yieldResult;N.initializePlayerListeners();_.Zd(S)})};
_.v.onPageChanged=function(N){var b=this;return _.r(function(S){if(S.nextAddress==1)return N.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.w5().getPlayerPromise(),2);b.player=S.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.aA(b,b.onPageChanged));_.Zd(S)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$21965_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.v.onPlayerStateChange=function(N){this.playerState=N};
_.v.onPlayerVolumeChange=function(N){this.isMuted=N.muted};
_.v.onPlayPauseButtonClick=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.w5().getPlayerPromise(),2);b=P.yieldResult;(S=_.Qh())&&N.playPauseButtonClientVE&&_.y3(S,N.playPauseButtonClientVE);b.getPlayerState()!==1?b.playVideo():b.pauseVideo();_.Zd(P)})};
_.v.computePlayPauseIcon=function(N){return N===2||N===-1||N===5?_.T("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.T("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.T("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.v.computeFullscreenLabel=function(N){return N?_.cN("FULLSCREEN_EXIT_LABEL"):_.cN("FULLSCREEN_ENTER_LABEL")};
_.v.computePlayPauseLabel=function(N){return N===1||N===3?_.cN("PLAYER_LABEL_PAUSE"):_.cN("PLAYER_LABEL_PLAY")};
_.v.onMuteButtonClick=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(_.w5().getPlayerPromise(),2);b=P.yieldResult;(S=_.Qh())&&N.muteButtonClientVE&&_.y3(S,N.muteButtonClientVE);b.isMuted()?b.unMute(!0):b.mute(!0);_.Zd(P)})};
_.v.computeMuteIcon=function(N){return N?"miniplayer:volume-off":"miniplayer:volume-up"};
_.v.computeMuteLabel=function(N){return N?_.cN("PLAYER_LABEL_UNMUTE"):_.cN("PLAYER_LABEL_MUTE")};
_.v.onFullscreenButtonClick=function(){var N=_.Qh();N&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.y3(N,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.y3(N,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();uFQ()};
_.d0.Object.defineProperties(Jx.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var N=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){N.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.T("web_shorts_modern_controls")?"player_full_exit_alt":_.T("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.T("web_shorts_modern_controls")?"player_full_enter_alt":_.T("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Jx.prototype,"componentBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],Jx.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Jx.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"player",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"playerState",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"isMuted",void 0);
_.p([_.U({computed:"computePlayPauseIcon(playerState)"}),_.y("design:type",String)],Jx.prototype,"playPauseIcon",void 0);_.p([_.U({computed:"computeMuteIcon(isMuted)"}),_.y("design:type",String)],Jx.prototype,"muteIcon",void 0);_.p([_.U({selector:_.HP}),_.y("design:type",Boolean)],Jx.prototype,"isFullscreen",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Jx.prototype,"shortsModernControlsEnabled",void 0);
_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"volumeControlsOrientationState",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"isOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Jx.prototype,"isAdsOverlay",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"captionIconType",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"ariaLabel",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"ariaPressedState",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Jx.prototype,"overlayDensity",void 0);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"data",void 0);_.p([_.U({computed:"computeActionBarButtonOverride()"}),_.y("design:type",Object)],Jx.prototype,"actionBarButtonOverride",void 0);_.p([_.f("playerState"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jx.prototype,"playPauseButtonData",null);
_.p([_.f("isFullscreen"),_.y("design:type",Object),_.y("design:paramtypes",[])],Jx.prototype,"fullscreenButtonData",null);_.p([_.U(),_.y("design:type",Object)],Jx.prototype,"onClosedCaptionsButtonClick",void 0);_.p([_.f("isFullscreen"),_.y("design:type",String),_.y("design:paramtypes",[])],Jx.prototype,"fullscreenIcon",null);
_.X(Jx,"ytd-shorts-player-controls",function(){if(pIQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);pIQ=N}N=pIQ;return N},{mode:1});var Y9J;_.qu(_.ZDw,"yt-interstitial-view-model",{props:{data:_.kg}});var yXw=_.A(function(N){var b=N.data;return _.c("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.c("h1",{class:"reelWatchBreakViewModelHostTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c("h2",{class:"reelWatchBreakViewModelHostBody"},_.c(_.mD,{text:function(){return b().body},
isOverlay:!0})),_.c(_.kY,{data:function(){return b().buttons}},{buttonViewModel:function(S,P){return _.c("div",{class:function(){return P()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.c(_.j$,{data:S.data}))}}))},"Ek");
yXw.idomCompat=!0;_.qu(yXw,"reel-watch-break-view-model",{props:{data:_.kg}});var UF=function(){return _.z.apply(this,arguments)||this};
_.F(UF,_.z);UF.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"nvc-container",mapping:{reelWatchBreakViewModel:{component:"reel-watch-break-view-model"},inlineSurveyRenderer:{component:"ytd-inline-survey-renderer"},interstitialViewModel:{component:"yt-interstitial-view-model"}},renderPriority:0}}};
_.d0.Object.defineProperties(UF.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.t((N=this.data)==null?void 0:N.renderer,eyt)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.t((N=this.data)==null?void 0:N.renderer,R0_)}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],UF.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],UF.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UF.prototype,"isSurvey",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.renderer"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],UF.prototype,"isInterstitialViewModel",null);_.p([_.Uj({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],UF);
_.X(UF,"ytd-reel-non-video-content-renderer",function(){if(Y9J!==void 0)return Y9J;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return Y9J=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var IZE;_.qu(_.VHL,"desktop-shorts-player-controls",{});var Zf=function(){var N=_.z.apply(this,arguments)||this;N.isPlayerPaused=!1;N.isPlayerStarted=!1;N.showPlayerControls=!1;N.showScrubber=!1;N.autoHideJobId=0;N.overlayType=_.m6("web_shorts_expanded_overlay_type");N.panelData=void 0;N.isWatchWhileMode=!1;N.hasError=!1;N.panelShowDelayMs=1;N.scrubberComponent={};N.isFullscreen=!1;N.shouldHideOverlay=!1;N.enableAnchoredPanel=_.T("desktop_shorts_v2_anchored_panel");N.enablePersistentAnchoredPanel=_.T("desktop_shorts_v2_persistent_anchored_panel");N.hideWatchWhilePanel=
_.T("web_shorts_hide_watch_while_panel");N.useAspectRatio=_.T("web_use_aspect_ratio");N.enableShortsModernControls=_.T("web_shorts_modern_controls");N.isPersistentPanelActive=!1;N.anchoredPanelActive=!1;N.isShortsPipActive=!1;N.smallScreenSqueezeback=!1;N.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;N.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
N.onWindowResized=function(){_.Yq(N,"calculateOverlayDensity",function(){N.calculateOverlayDensity()},100)};
return N};
_.F(Zf,_.z);_.v=Zf.prototype;_.v.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.v.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.v.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var N=_.aN().resolve(_.Hn);this.isWatchWhileMode&&_.Dj.addJob(function(){N.showPanel({identifier:"shorts-comments-panel",target:null})},_.T("web_enable_shorts_no_idle_job")?1:0)}}else this.panelData=void 0};
_.v.handleShowReelsCommentsOverlayCommand=function(N){N=_.t(N,xFL);this.isActive&&(N==null?0:N.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.v.updateEngagementPanelVisibility=function(N,b){N&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:b?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:N}})};
_.v.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.v.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.aN().resolve(_.DP).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.v.handleWatchWhilePanelScrimClick=function(){var N=_.aN().resolve(_.Hn);this.activeWatchWhilePanel&&(N.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.v.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.v.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:_.T("web_enable_shorts_no_idle_job")?8:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",
isWatchWhileMode:"[[watchWhileOrPersistentActive]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0}}};
_.v.handlePlayerClick=function(N){var b=this,S,P;if((P=(S=window).matchMedia)!=null&&P.call(S,"(any-pointer: coarse)").matches||!N)this.showPlayerControls=!0,_.Dj.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Dj.addJob(function(){b.showPlayerControls=!1},_.T("web_enable_shorts_no_idle_job")?1:0,4E3)};
_.v.isFirstReel=function(){return this.index===0};
_.v.handleMouseenter=function(){_.Dj.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.v.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.v.handleScrubberEnter=function(){this.showScrubber=!0};
_.v.handleScrubberLeave=function(){this.showScrubber=!1};
_.v.maybeLogNonDefaultAspectRatio=function(){var N;(N=this.data)!=null&&N.thumbnail&&this.isActive&&.5625!==HAq(this.data.thumbnail)&&_.rQp("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.v.calculateOverlayDensity=function(){var N=document.querySelector("#shorts-container");if(N){var b=!1,S,P=this.playerContainer.offsetWidth,H=this.playerContainer.offsetHeight;N=N.offsetWidth/2-P/2;N>=368?(N=1,b=S=!0):N>=72?(N=0,S=!0):(N=2,S=!1);P>=600&&H>=840?N=1:window.innerWidth<=599&&(N=2,S=b=!1);this.isPersistentPanelActive&&(N=0,b=!1);this.extractActionBar=S;_.T("web_enable_flexible_overlay")&&(this.overlayDensity=N,this.extractOverlay=b);var K;(K=this.onOverlayDensityChanged)==null||K.call(this,
this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}};
_.v.onOverlayDensityChange=function(){var N;(N=this.onOverlayDensityChanged)==null||N.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(N=_.H4(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))N.set("overlayDensity",this.overlayDensity),N.set("extractOverlay",this.extractOverlay),N.set("extractActionBar",this.extractActionBar);if(N=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))N.overlayDensity=this.overlayDensity,N.extractOverlay=
this.extractOverlay,N.extractActionBar=this.extractActionBar};
_.v.isVideoContent=function(N){_.aN().resolve(_.DP);return!!_.t(N,_.kn)};
_.v.isNonVideoContent=function(N){_.aN().resolve(_.DP);return!!_.t(N,_.Ow)};
_.v.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.d0.Object.defineProperties(Zf.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.T("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var N;return!this.isActive||!this.isPlayerStarted||(N=this.data)!=null&&N.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?0:N.command)&&this.isVideoContent(this.data.command)){var b,S;if(((b=this.data)==null?0:b.adsOverlay)&&Object.keys((S=this.data)==null?void 0:S.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var P,H;if(((P=this.data)==null?0:P.reelPlayerOverlayRenderer)&&Object.keys((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Zf.prototype.onOverlayDensityChange=Zf.prototype.onOverlayDensityChange;Zf.prototype.calculateOverlayDensity=Zf.prototype.calculateOverlayDensity;Zf.prototype.maybeLogNonDefaultAspectRatio=Zf.prototype.maybeLogNonDefaultAspectRatio;Zf.prototype.onEngagementPanelsChanged=Zf.prototype.onEngagementPanelsChanged;Zf.prototype.onScrubberDataChange=Zf.prototype.onScrubberDataChange;Zf.prototype.updateShouldHideOverlay=Zf.prototype.updateShouldHideOverlay;
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Zf.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],Zf.prototype,"index",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Zf.prototype,"isActive",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Zf.prototype,"isHiddenInDom",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"isPlayerPaused",void 0);_.p([_.U({selector:JZE}),_.y("design:type",Object)],Zf.prototype,"isPlayerStarted",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"showPlayerControls",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"showScrubber",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"autoHideJobId",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"overlayType",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Zf.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Zf.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"watchWhileEngagementPanels",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"panelData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"isWatchWhileMode",void 0);_.p([_.U(),_.y("design:type",String)],Zf.prototype,"activeWatchWhilePanel",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"hasError",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"panelShowDelayMs",void 0);
_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"scrubberComponent",void 0);_.p([_.U({selector:_.HP,reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"isFullscreen",void 0);_.p([_.U(),_.y("design:type",Object)],Zf.prototype,"shouldHideOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"enableAnchoredPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"enablePersistentAnchoredPanel",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"hideWatchWhilePanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"useAspectRatio",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"enableShortsModernControls",void 0);_.p([_.U({selector:_.feo,reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"isPersistentPanelActive",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"anchoredPanelActive",void 0);_.p([_.U({selector:_.sx,reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"isShortsPipActive",void 0);_.p([_.U({selector:iAa,reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"smallScreenSqueezeback",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data.adsOverlay"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zf.prototype,"isAdsOverlay",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"enableFlexibleOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"overlayDensity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Zf.prototype,"extractActionBar",void 0);_.p([_.U(),_.y("design:type",Function)],Zf.prototype,"onOverlayDensityChanged",void 0);
_.p([_.U(),_.f("isActive","hasError","isPlayerStarted"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zf.prototype,"shouldRenderPlayerElements",null);_.p([_.U(),_.f("isActive","isWatchWhileMode"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zf.prototype,"watchWhileOrPersistentActive",null);_.p([_.W4("isActive","hasError","showingExpandedOverlay"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"updateShouldHideOverlay",null);
_.p([_.U({reflectToAttribute:!0}),_.f("isActive","isPlayerStarted","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zf.prototype,"shouldRenderScrubber",null);_.p([_.W4("shouldRenderScrubber"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"onScrubberDataChange",null);_.p([_.f("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],Zf.prototype,"overlayComponent",null);
_.p([_.W4("watchWhileEngagementPanels"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"onEngagementPanelsChanged",null);_.p([_.dq("#player-container"),_.y("design:type",HTMLElement)],Zf.prototype,"playerContainer",void 0);_.p([_.dq("#cinematic-container"),_.y("design:type",HTMLElement)],Zf.prototype,"cinematicContainer",void 0);
_.p([_.W4("isPersistentPanelActive","data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"maybeLogNonDefaultAspectRatio",null);_.p([_.W4("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"calculateOverlayDensity",null);
_.p([_.W4("overlayDensity","extractOverlay","extractActionBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Zf.prototype,"onOverlayDensityChange",null);_.p([_.Uj({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Zf);
_.X(Zf,"ytd-reel-video-renderer",function(){if(IZE!==void 0)return IZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return IZE=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var jf=function(){var N=_.z.apply(this,arguments)||this;N.isPreviousPageShorts=!1;N.index=0;N.delayedActiveIndex=0;N.playablePreviousIndex=null;N.isPlayerPaused=!1;N.isPlayerStarted=!1;N.intersectionObserverThreshold=.6;N.fitToVisibleBounds=!1;N.pageSubtype="shorts";N.enablePreviousContinuation=_.T("shorts_in_playlists_web");N.shortsPipEnabled=_.T("web_shorts_pip");N.isDark=document.documentElement.hasAttribute("dark");N.shortsViewTransitions=_.T("web_shorts_view_transitions");N.isFullscreen=!1;N.isShortsPipActive=
!1;N.buttonOverride={iconPosition:"icon-only",size:"XL"};N.anchoredPanelActive=!1;N.isActive=!1;N.smallScreenPersistentPanel=!1;N.isPersistentPanelActive=!1;N.smallScreenSqueezeBack=!1;N.enableScrollIntoViewCenter=_.T("web_scroll_into_view_center");N.enableFlexibleOverlay=_.T("web_enable_flexible_overlay");N.extractOverlay=!1;N.useAspectRatio=_.T("web_use_aspect_ratio");N.enableShortsSequenceRefactorUnify=_.T("web_enable_shorts_sequence_refactor_unify");N.continuationRequestPending=!1;N.carouselContainers=
[];N.isShortsInitialized=!1;N.shortsContentList=[];N.hasDataUpdated=!1;N.playerInPosition=!1;N.hidePreviousButtonImmediately=!1;N.showPreviousButtonImmediately=!1;N.endOfNextContinuation=!1;N.currentPlayerIndex=0;N.nextReelVe=_.OW(56921);N.prevReelVe=_.OW(56922);N.loopToggleOffVe=_.OW(198013);N.loopToggleOnVe=_.OW(198014);N.ambientModeToggleVe=_.OW(227860);N.reelPlayerPausedStateRendererVe=_.OW(141313);N.storedPlaybackSpeed=null;N.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction",
"yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};N.onOverlayDensityChanged=function(b,S,P,H){b=N.getActiveReelVideo(b);N.extractOverlay=!!P;b==null||b.setAttribute("overlay-density",String(S));P===void 0||b!=null&&b.toggleAttribute("extract-overlay",P);H===void 0||b!=null&&b.toggleAttribute("extract-action-bar",H)};
return N};
_.F(jf,_.z);_.v=jf.prototype;_.v.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.v.setShortsContentList=function(){var N=this;if(this.enableShortsSequenceRefactorUnify){var b=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.IX(this.shortsContentList)):[],S=this.firstShortsData;if(S){var P=this.reelWatchSequenceResponse;(S=this.shortsController==null?void 0:fJn(b,S,P!=null?P:null))&&S.newContentList&&(S=S.newContentList,S.length!==b.length&&(this.shortsContentList=S,_.W_(this,function(){N.observeShorts()})))}}};
_.v.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.v.onResize=function(){var N=_.h0(),b=N.dispatch,S=this.calculateIsSmallWidth();b.call(N,_.HU({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:S}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.v.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:_.T("web_enable_shorts_no_idle_job")?8:0}}};
_.v.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var N=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,b=N,S=0;N<250&&(b=N+this.shortsInnerContainer.clientWidth,S=24);_.rq(this.hostElement,{"--ytd-shorts-header-width":b+"px","--ytd-shorts-top-spacing":S+"px"})}};
_.v.isFirstShorts=function(N){return N&&!this.enableShortsSequenceRefactorUnify?this.index===-N.length:this.index===0};
_.v.isActiveReel=function(N,b,S){S&&(b=this.calculatePrevIndex(b,S));return N===b};
_.v.onFullscreenChange=function(){_.T("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.aN().resolve(_.E_).close(!0))};
_.v.engagementPanelsChanged=function(){var N;this.watchWhileEngagementPanels=(N=this.data)==null?void 0:N.engagementPanels};
_.v.unregisterPanels=function(){var N=_.aN().resolve(_.Hn);if(this.watchWhileEngagementPanels)for(var b=_.O(this.watchWhileEngagementPanels),S=b.next();!S.done;S=b.next()){var P=S.value,H=void 0,K=void 0;S=(H=P.engagementPanelSectionListRenderer)==null?void 0:(K=H.identifier)==null?void 0:K.tag;P=this.getPanelIdentifier(P.engagementPanelSectionListRenderer);N&&(S&&N.panelMap.delete(S),P&&_.T("web_shorts_panel_caching_bugfix")&&(H=S=void 0,(H=(S=N).unregisterPanelContent)==null||H.call(S,P)))}};
_.v.isVideoContent=function(N){return this.isVideoContentCommand(N==null?void 0:N.command)};
_.v.getActiveReelVideo=function(N){return _.H4(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+N+'"]')};
_.v.calculatePrevIndex=function(N,b){return b?N-((b==null?void 0:b.length)||0):-1};
_.v.onKeydown=function(N){var b=_.V7(N)||[];if(!N6a(b))if(N.code==="ArrowUp")N.preventDefault(),this.handlePrevButtonClick();else if(N.code==="ArrowDown")N.preventDefault(),this.handleNextButtonClick();else if(N.code==="KeyM")this.toggleMuteUnmuteVideo();else if(N.code==="KeyK"||N.code==="Space")this.togglePlayPauseVideo();else if((N.code==="KeyA"||N.code==="ArrowLeft")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")){var S;(S=this.player)==null||S.seekBy(-5)}else if((N.code==="KeyD"||N.code===
"ArrowRight")&&_.T("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var P;(P=this.player)==null||P.seekBy(5)}};
_.v.onServiceRequestCompleted=function(N,b){N=b.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,N.continuationEndpoint||N.prevContinuationEndpoint)this.reelWatchSequenceResponse=N}else N.continuationEndpoint&&N.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:N.entries,continuationEndpoint:N.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=N):N.prevContinuationEndpoint&&
N.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:N.prevEntries,prevContinuationEndpoint:N.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.v.handleEngagementPanelVisibilityChanged=function(N,b){var S=_.aN().resolve(_.Hn);if(N&&S){var P=this.getPanelIdentifier(N);if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==P){S.hidePanel({identifier:this.activePanel});var H;this.activePanel=((H=N.identifier)==null?void 0:H.tag)||N.panelIdentifier}else this.isPersistentPanelActive=!0,_.h0().dispatch(Qj5(!0)),this.anchoredPanelActive=!0,this.activePanel=P;else b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===P&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.h0().dispatch(Qj5(!1)))}};
_.v.handlePanelScrimClick=function(){var N=_.aN().resolve(_.Hn);this.activePanel&&(N.hidePanel({identifier:this.activePanel}),_.h0().dispatch(Qj5(!1)))};
_.v.getShortsLoopSetting=function(){var N,b,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return _.T("kevlar_shorts_auto_advance")?K.yield(_.Hy.getInstance(),2):K.return(!0);case 2:return(N=K.yieldResult)?K.yield(N.get("sfvles"),3):K.return(!0);case 3:return S=(b=K.yieldResult)!=null?b:!1,K.yield(N.get("sfvle"),4);case 4:return H=(P=K.yieldResult)!=null?P:!0,S?K.return(H):K.return(!0)}})};
_.v.handleSignalActionToggleLoopShortsOff=function(){var N=this,b,S,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!N.player)return H.return();N.player.setLoopVideo(!1);b=_.dG();_.YD(b,N.loopToggleOffVe);return H.yield(_.Hy.getInstance(),2);case 2:return(S=H.yieldResult)?H.yield(S.set("sfvle",!1),3):H.return();case 3:return H.yield(S.set("sfvles",!0),4);case 4:P=_.WN(),_.nA(0,203,!1),_.nA(0,204,!0),P.save(),_.Zd(H)}})};
_.v.handleSignalActionToggleLoopShortsOn=function(){var N=this,b,S,P;return _.r(function(H){switch(H.nextAddress){case 1:if(!N.player)return H.return();N.player.setLoopVideo(!0);b=_.dG();_.YD(b,N.loopToggleOnVe);return H.yield(_.Hy.getInstance(),2);case 2:return(S=H.yieldResult)?H.yield(S.set("sfvle",!0),3):H.return();case 3:return H.yield(S.set("sfvles",!0),4);case 4:P=_.WN(),_.nA(0,203,!0),_.nA(0,204,!0),P.save(),_.Zd(H)}})};
_.v.handleSignalActionToggleCinematicShortsOn=function(){D7_(!0);var N;(N=this.JSC$21990_cinematicController)==null||VKE(N,!0);_.YD(_.dG(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.v.handleSignalActionToggleCinematicShortsOff=function(){D7_(!1);var N;(N=this.JSC$21990_cinematicController)==null||VKE(N,!1);_.YD(_.dG(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.v.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.v.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.v.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var N=this.overlayContainer.querySelector("#experiment-overlay");N&&_.Dj.addLowPriorityJob(function(){N.style.display="unset"},100)}else if(this.overlayContainer){var b;
((b=this.playerElement.getPlayer())==null?void 0:b.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.v.getCurrentShort=function(){if(this.currentEndpoint){var N=this.currentEndpoint;if(this.isNonVideoContentCommand(N)){var b=_.t(N,_.Ow);return{reelNonVideoContentRenderer:_.t(b==null?void 0:b.renderer,_.GD),command:N}}if(this.data){var S;b=(S=_.t(this.currentEndpoint,_.kn))==null?void 0:S.thumbnail;var P;S=(P=this.data.overlay)==null?void 0:P.reelPlayerOverlayRenderer;_.aN().resolve(_.DP);N=this.data;var H,K;P=(H=N.overlay)==null?void 0:(K=H.shortsAdsRenderer)==null?void 0:K.adSlots;if(P!==void 0)P.length===
0?(_.yw("Shorts ads returned no ad slots."),N=void 0):(P.length>1&&_.yw("Shorts ads has more than one ad slots."),N=_.t(P[0],_.tVO));else{var C,G;N=_.t((C=N.overlay)==null?void 0:(G=C.shortsAdsRenderer)==null?void 0:G.overlay,_.tVO)}C=N;N=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.t(this.currentEndpoint,_.kn),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var a;return{reelPlayerOverlayRenderer:S,thumbnail:b,command:N,adsOverlay:C,
videoId:(a=_.t(this.currentEndpoint,_.kn))==null?void 0:a.videoId}}}};
_.v.created=function(){var N=this;this.scrollToVideoThrottle=new _.GR(function(b,S){S=S===void 0?"smooth":S;var P;(P=N.getActiveReelVideo(b))==null||P.scrollIntoView({behavior:S,block:"nearest",inline:N.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.aN().resolve(_.DP);this.maybeCreateIntersectionObserver()};
_.v.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.v.attached=function(){var N=this;_.aN().resolve(_.DP).registerRootElement(this);this.pageScrollElement=_.H4(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.aA(this,this.processResetAction));_.T("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){N.maybeCreateIntersectionObserver();N.scrollToVideoThrottle.fire(N.activeIndex,"instant");N.shortsContainer.style.overflowY=
"scroll"}))};
_.v.calculateSqueezebackPanelSize=function(){var N=this,b=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Dj.addLowPriorityJob(function(){b<360?(N.hostElement.style.setProperty("--anchored-panel-width","480px"),_.h0().dispatch(xkq(!0))):(N.hostElement.style.setProperty("--anchored-panel-width",Math.min(b,480)+"px"),_.h0().dispatch(xkq(!1)))})};
_.v.detached=function(){var N=_.aN().resolve(_.DP);N.rootElement=void 0;var b;(b=N.unsubscribeFromStore)==null||b.call(N);N.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.aA(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.v.onResizeFinished=function(N,b){var S=this,P=new ResizeObserver(function(){S.shortsContainer.style.overflowY="hidden";_.Dj.addLowPriorityJob(function(){b()},100)});
P.observe(N);return P};
_.v.resetDocumentScrollTop=function(){var N,b;if((N=document)==null?0:(b=N.scrollingElement)==null?0:b.scrollTop)document.scrollingElement.scrollTop=0};
_.v.loadPage_=function(N){var b=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),N){var S;if((S=_.t(this.currentEndpoint,_.kn))==null?0:S.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=N;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){b.isPlayerStarted&&
(b.handleOnPlaybackCommand(),b.afterPlayerStarted=function(){})};
this.registerPanel(N)}};
_.v.afterPlayerStarted=function(){};
_.v.handleOnPlaybackCommand=function(){if(_.T("web_shorts_comment_stickers")&&this.isPlayerStarted){var N,b=(N=_.t(this.currentEndpoint,_.kn))==null?void 0:N.onPlaybackCommand;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.v.maybeCreateIntersectionObserver=function(){var N=this,b=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==b){this.intersectionObserverThreshold=b;var S={rootMargin:"0px",threshold:b},P;(P=this.intersectionObserver)==null||P.disconnect();this.intersectionObserver=new IntersectionObserver(function(H){H=_.O(H);for(var K=H.next();!K.done;K=H.next())if(K=K.value,K.intersectionRatio>b){K=Number(K.target.id);if(isNaN(K))break;if(K===N.index)break;
_.NUp();N.loadVideo(K);_.xR("r_vtc")}},S);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.v.observeShorts=function(){var N,b,S,P=this.enableShortsSequenceRefactorUnify?((N=this.shortsContentList)==null?void 0:N.length)||0:(((b=this.shortsProcessedPrevSequence)==null?void 0:b.length)||0)+(((S=this.shortsProcessedSequence)==null?void 0:S.length)||0);if(this.carouselContainers.length<P&&(this.carouselContainers=[].concat(_.IX(_.H4(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(N=_.O(this.carouselContainers),b=N.next();!b.done;b=
N.next())b=b.value,S=void 0,(S=this.intersectionObserver)==null||S.observe(b);if(!this.enableShortsSequenceRefactorUnify)for(N=_.O(this.carouselContainers),b=N.next();!b.done;b=N.next())b=b.value,S=void 0,(S=this.intersectionObserver)==null||S.observe(b)};
_.v.initCsi=function(){lYi("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var N={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},b,S;if((b=this.playerData)==null?0:(S=b.cacheMetadata)==null?0:S.isCacheHit)N.isCacheHit=!0;var P;if(b=(P=_.t(this.currentEndpoint,_.kn))==null?void 0:
P.prefetchTaskId)N.prefetchInfo={taskId:b};_.lC(N)};
_.v.isAd=function(){var N,b;return!!((N=_.t(this.currentEndpoint,_.kn))==null?0:(b=N.adClientParams)==null?0:b.isAd)};
_.v.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.v.getPlayerContainer=function(){var N;return(N=_.H4(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:N.playerContainer};
_.v.onPlayerStateChange=function(N){var b=this;this.isPlayerPaused=N===2;N!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?N===1&&this.index===0&&(this.isPlayerStarted||_.h0().dispatch(oSi(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.h0().dispatch(oSi(!0)));this.player&&!this.player.getLoopVideo()&&_.Dj.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(S){var P;(P=b.player)==null||P.setLoopVideo(S)})});
this.isPlayerPaused&&_.T("web_shorts_paused_state_logging")&&_.pA(_.Qh(),[this.reelPlayerPausedStateRendererVe])};
_.v.isShortPlayable=function(){if(_.T("kevlar_playable_short_killswitch"))return!0;var N;return(N=this.playerData)!=null&&N.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.v.setNormalPlaybackSpeed=function(){var N=this,b,S;return _.r(function(P){if(P.nextAddress==1)return P.yield(N.getPlayer().getPlayerPromise(),2);b=P.yieldResult;S=b.getPlaybackRate();S!==1&&(N.storedPlaybackSpeed=S,b.setPlaybackRate(1));_.Zd(P)})};
_.v.restorePlaybackSpeed=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1)return N.storedPlaybackSpeed===null?S.jumpTo(0):S.yield(N.getPlayer().getPlayerPromise(),3);b=S.yieldResult;b.setPlaybackRate(N.storedPlaybackSpeed);N.storedPlaybackSpeed=null;_.Zd(S)})};
_.v.playerDataChanged=function(){var N=this,b,S,P,H,K,C,G,a,R;return _.r(function(n){if(n.nextAddress==1){b=N.getPlayer();N.enableShortsSequenceRefactorUnify||(S=N.intersectionObserver)==null||S.disconnect();if(N.playerData){if(((P=N.playerData.videoDetails)==null?void 0:P.videoId)!==((H=b.getPlayer())==null?void 0:H.getVideoData().video_id)){K={};if(C=_.t(N.currentEndpoint,_.kn))K.watch_endpoint=C,C.endTimeSeconds&&(K.end=C.endTimeSeconds);b.loadVideoWithPlayerResponse(N.playerData,K)}}else return n.return();
return N.player?n.jumpTo(2):n.yield(b.getPlayerPromise(),3)}n.nextAddress!=2&&(N.player=n.yieldResult,N.JSC$21990_playerStateChangeListener=N.onPlayerStateChange.bind(N),N.player.addEventListener("onStateChange",N.JSC$21990_playerStateChangeListener),_.T("kevlar_client_enable_shorts_player_bootstrap")&&_.Ex(),N.scrollToVideoThrottle.fire(N.index),N.movePlayerToVideo(N.index),_.Dj.addLowPriorityJob(function(){N.getShortsLoopSetting().then(function(d){var m;(m=N.player)==null||m.setLoopVideo(d)})}),
_.ZYb.resolve(N.player),N.player.syncVolume(),N.getPlayer().focusOnPlayer());
_.Dj.addLowPriorityJob(function(){N.observeShorts()},100);
G=N.player.getPlayerState(N.player.getPresentingPlayerType());G!==1||N.isPlayerStarted||_.h0().dispatch(oSi(!0));N.updateBackNavContainerWidth();a=_.t(N.currentEndpoint,_.kn);((R=a)==null?0:R.startTimeSeconds)&&N.player.seekTo(a.startTimeSeconds);if(N.JSC$21990_cinematicController||N.cinematicsInitializeJobId)return n.return();N.cinematicsInitializeJobId=_.Dj.addLowPriorityJob(function(){N.initCinematicController();N.cinematicsInitializeJobId=void 0});
_.Zd(n)})};
_.v.onShortUndoDismiss=function(){var N=this,b=lJQ().pop();b!==void 0&&(_.W_(this,function(){N.showCardWithIndex(b)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.v.onShortsDismiss=function(N){if(N=N.detail.reelDismissalActionRenderer)(N=_.t(N.onDismissalCompletionRenderer,W7n))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:N}}}),this.scrollAndDismissCard()};
_.v.processReelNonVideoContentDismissalCommand=function(N){var b=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);N=_.t(N,QsJ);this.activeDimissalTimeout=setTimeout(function(){b.scrollAndDismissCard()},Number(N==null?void 0:N.delayMs))};
_.v.scrollAndDismissCard=function(){var N=this,b=this.index;lJQ().push(b);_.W_(this,function(){var S=N.getPlayableNextIndex();S!==null&&(N.hideCardWithIndex(b),N.scrollToVideoThrottle.fire(S))})};
_.v.hideCardWithIndex=function(N){if(N=this.getActiveReelVideo(N))N.hidden=!0};
_.v.showCardWithIndex=function(N){if(N=this.getActiveReelVideo(N))N.hidden=!1};
_.v.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.v.activeChanged=function(N){_.h0().dispatch(_.HU({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:N}}));if(N)document.addEventListener("keydown",_.aA(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var b;(b=this.player)==null||b.sendAbandonmentPing()}var S;(S=this.player)==null||S.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.aA(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.v.graftClientVisualElements=function(){if(this.data){var N=_.dG();_.iZE(N,_.KA({response:this.reelWatchSequenceResponse}));_.Ew(N,this.nextReelVe);_.Ew(N,this.prevReelVe);_.T("kevlar_shorts_auto_advance")&&(_.Ew(N,this.loopToggleOffVe),_.Ew(N,this.loopToggleOnVe));_.Ew(N,this.ambientModeToggleVe);_.pA(_.Qh(),[this.nextReelVe,this.prevReelVe]);_.T("web_shorts_paused_state_logging")&&_.Ew(N,this.reelPlayerPausedStateRendererVe)}};
_.v.graftNvcRenderer=function(){var N,b,S,P,H,K,C=this.enableShortsSequenceRefactorUnify?(N=this.shortsContentList)==null?void 0:(b=N[this.index])==null?void 0:b.command:this.index<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(P=S[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:P.command:(H=this.shortsProcessedSequence)==null?void 0:(K=H[this.index])==null?void 0:K.command;if(C&&this.isNonVideoContentCommand(C)){N=_.t(C,_.Ow);var G,a;(N=(G=_.t(N==null?void 0:N.renderer,_.GD))==
null?void 0:(a=G.loggingDirectives)==null?void 0:a.trackingParams)&&_.dG().graftServerVe(N)}};
_.v.setActiveIndex=function(){_.aN().resolve(_.DP).setActiveIndex(this.index)};
_.v.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.v.lazyUpdateMiniplayerData=function(){var N=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Dj.addLowPriorityJob(function(){N.updateMiniplayerData();N.updateMiniplayerDataJobId=void 0}))};
_.v.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Dj.cancelJob(this.updateMiniplayerDataJobId)};
_.v.updateMiniplayerData=function(){var N,b,S,P=_.aN().resolve(_.E_),H={shortsData:this.getCurrentShort(),previousButtonDisabled:!((N=this.prevButtonData)==null||!N.isDisabled),nextButtonDisabled:!((b=this.nextButtonData)==null||!b.isDisabled),playabilityStatus:(S=this.playerData)==null?void 0:S.playabilityStatus};_.XY(P,H)};
_.v.resetPlayerLocation=function(){var N=this.getPlayer();this.initialPlayerContainer&&N.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.v.movePlayerToVideo=function(N,b){var S=this;b=b===void 0?!0:b;var P=this.getActiveReelVideo(N),H=this.getPlayer();if(P){this.overlayContainer?P.appendChild(this.overlayContainer):(this.overlayContainer=_.H4(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,P.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||H.appendTo(this.overlayContainer.playerContainer,void 0,!0));var K;(K=this.player)==null||K.setSize(NaN,NaN);this.isActive||_.Dj.addJob(function(){S.isActive=
!0},_.T("web_enable_shorts_no_idle_job")?1:0);
H.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.T("reels_web_disable_rtr_tick")||_.T("reels_web_use_pbs_first_shorts")&&N===0||_.uC("r_tr");this.currentPlayerIndex=N;P.appendChild(this.errorScreenContainer);var C;(C=this.JSC$21990_cinematicController)==null||hXa(C)}else b?_.Dj.addLowPriorityJob(function(){S.movePlayerToVideo(S.index,!1)}):Math.random()<=_.d7("web_shorts_error_logging_threshold")&&_.ed(new _.jU("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:b,
index:N}))};
_.v.getAspectRatio=function(N){return(N==null?0:N.thumbnail)&&HAq(N.thumbnail)?"--ytd-shorts-player-ratio: "+HAq(N.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.v.getBackgroundImage=function(N){if(N!=null&&N.thumbnail)return(N=_.NE(N.thumbnail.thumbnails))?'background-image:url("'+N+'");':"background-color:black;"};
_.v.onPersistentPanelActiveChanged=function(){var N=this.getCurrentShort();if(N&&(N==null?0:N.thumbnail)&&HAq(N.thumbnail)!==.5625){var b;(b=this.player)==null||b.setSize(NaN,NaN)}};
_.v.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.v.moveCinematicsToVideo=function(){var N=_.H4(this.hostElement).querySelector("ytd-reel-video-renderer");(N==null?0:N.cinematicContainer)&&N.cinematicContainer!==this.shortsCinematicContainer.parentElement&&N.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.v.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.v.updatePrevButtonData=function(){var N=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);N?this.prevButtonData=N=Object.assign({},N,{accessibility:{label:_.cN("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.cN("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=N=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.v.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.v.updateNextButtonData=function(){var N=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);N&&(this.nextButtonData=N=Object.assign({},N,{accessibility:{label:_.cN("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.cN("NEXT_VIDEO_LABEL")||""}))};
_.v.getPlayablePreviousIndex=function(){for(var N,b=this.index-1;b>=-(((N=this.prevShortsSequence)==null?void 0:N.length)||0);b--)if(!lJQ().includes(b))return b;return null};
_.v.getIndexInSequence=function(N,b){return N.findIndex(function(S){var P;return((P=_.t(S.command,_.kn))==null?void 0:P.videoId)===b})};
_.v.handlePrevButtonClick=function(N){var b=this,S,P;return _.r(function(H){S=b.getPlayablePreviousIndex();if(S===null)return H.return();b.gestureType=((P=N)==null?void 0:P.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S===0&&(b.hidePreviousButtonImmediately=!0);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.scrollToVideoThrottle.fire(S,"auto")}),H.return();
b.scrollToVideoThrottle.fire(S);_.Zd(H)})};
_.v.getPlayableNextIndex=function(){for(var N,b,S=this.index+1;S<(this.enableShortsSequenceRefactorUnify?(N=this.shortsContentList)==null?void 0:N.length:((b=this.shortsProcessedSequence)==null?void 0:b.length)||0);S++)if(!lJQ().includes(S))return S;return null};
_.v.handleNextButtonClick=function(N,b){var S=this,P,H;return _.r(function(K){P=S.getPlayableNextIndex();if(P===null)return K.return();P===1&&(S.showPreviousButtonImmediately=!0);S.gestureType=((H=N)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b&&(S.gestureType=b);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.scrollToVideoThrottle.fire(P,"auto")}),K.return();
S.scrollToVideoThrottle.fire(P);_.Zd(K)})};
_.v.handleReelNavigateCommand=function(N,b,S){(N=_.t(N,u4E))&&b&&N.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(S)};
_.v.loadVideo=function(N,b){var S=this;b=b===void 0?!1:b;if(N!==this.currentPlayerIndex){_.h0().dispatch(oSi(!1));if(this.isAd()&&!b){var P;(P=this.player)==null||P.notifyShortsAdSwipeEvent()}var H;(H=this.JSC$21990_cinematicController)==null||$Aq(H);var K;(K=this.JSC$21990_cinematicController)==null||eX5(K);P=N>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(P));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var C,G,a,R,n,d;b=this.enableShortsSequenceRefactorUnify?(C=this.shortsContentList)==null?void 0:(G=C[N])==null?void 0:G.command:N<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(R=a[this.shortsProcessedPrevSequence.length+N])==null?void 0:R.command:(n=this.shortsProcessedSequence)==null?void 0:(d=n[N])==null?void 0:d.command;this.index=N;this.gestureType||(this.gestureType=P?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");b&&this.isVideoContentCommand(b)&&(this.ytComponentBehavior.resolveCommand(b,{form:{createScreenConfig:{clickedVisualElement:P?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(b&&this.isNonVideoContentCommand(b)){this.currentEndpoint=b;this.data=void 0;C=_.dG();G=_.t(b,_.Ow);var m,k;(G=(m=_.t(G==null?void 0:G.renderer,_.GD))==null?void 0:(k=m.screenLoggingData)==null?void 0:k.screenVeType)&&_.Xy(C,G);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(m=this.getActiveReelVideo(N))&&m.appendChild(this.overlayContainer)}var M,l;m=this.enableShortsSequenceRefactorUnify?((M=this.shortsContentList)==null?NaN:M.length)-4<=N:((l=this.reelWatchSequenceResponse)==null?void 0:l.entries)&&N===this.reelWatchSequenceResponse.entries.length-1;var u;if(((u=this.reelWatchSequenceResponse)==null?0:u.continuationEndpoint)&&m){var J,Z,D={contentPlaybackContext:_.KS({},(Z=_.t((J=
this.currentEndpoint)==null?void 0:J.commandMetadata,_.GY))==null?void 0:Z.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.ml(_.Dj,function(){S.ytComponentBehavior.resolveCommand(S.reelWatchSequenceResponse.continuationEndpoint,{form:D})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:D})}var Y,V;
N=this.enableShortsSequenceRefactorUnify?!1:N===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(V=Y.prevEntries)==null?void 0:V.length)||0);var g,e;((g=this.reelWatchSequenceResponse)==null?0:g.prevContinuationEndpoint)&&((e=this.reelWatchSequenceResponse)==null?0:e.prevEntries)&&N&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.v.setMiniplayerPreview=function(N){N=(N===void 0?0:N)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var b,S,P,H,K=_.aN().resolve(_.E_),C={shortsData:void 0,shortsPreviewThumbnail:N?this.enableShortsSequenceRefactorUnify?(b=this.shortsContentList)==null?void 0:(S=b[N])==null?void 0:S.thumbnail:(P=this.shortsProcessedSequence)==null?void 0:(H=P[N])==null?void 0:H.thumbnail:void 0};_.XY(K,C)};
_.v.updateTitle=function(N){var b,S;N=(N==null?0:N.adSlots)?"":(S=N==null?void 0:(b=N.videoDetails)==null?void 0:b.title)!=null?S:"";_.bC(this.hostElement,"yt-update-title",N)};
_.v.registerPanel=function(N){var b=_.aN().resolve(_.Hn);if(b){N=_.O(N.engagementPanels||[]);for(var S=N.next();!S.done;S=N.next()){S=S.value;var P=this.getPanelIdentifier(S.engagementPanelSectionListRenderer),H=void 0,K=void 0;(K=(H=b).registerPanelContent)==null||K.call(H,P,S)}}};
_.v.getPanelIdentifier=function(N){var b;return(N==null?void 0:(b=N.identifier)==null?void 0:b.tag)||(N==null?void 0:N.panelIdentifier)||(N==null?void 0:N.targetId)};
_.v.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.h0().dispatch(oSi(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.h0().dispatch(Qj5(!1));var N;(N=this.shortsController)!=null&&(N.dismissedIndices=[]);var b;(b=this.shortsController)!=null&&b.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.aN().resolve(_.E_).close(!0)};
_.v.processAppendReelWatchSequenceContinuationEntriesAction=function(N){var b=this,S;(S=this.intersectionObserver)==null||S.disconnect();N=N.appendReelWatchSequenceContinuationEntriesAction;if(N==null?0:N.entries){var P;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.IX(((P=this.reelWatchSequenceResponse)==null?void 0:P.entries)||[]),_.IX(N.entries)),continuationEndpoint:N.continuationEndpoint})}else if(N==null?0:N.prevEntries){var H;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.IX(((H=this.reelWatchSequenceResponse)==null?void 0:H.prevEntries)||[]),_.IX(N.prevEntries)),prevContinuationEndpoint:N.prevContinuationEndpoint});_.Dj.addLowPriorityJob(function(){b.movePlayerToVideo(b.index);b.scrollToVideoThrottle.fire(b.index,"instant")})}else return;
_.Dj.addLowPriorityJob(function(){b.observeShorts()},100)};
_.v.processWatchSequence=function(N){var b=this;return N.map(function(S){S=S.command;if(b.isVideoContentCommand(S)){var P=_.t(S,_.kn);return{reelPlayerOverlayRenderer:_.t(P==null?void 0:P.overlay,_.Eg4),thumbnail:P.thumbnail,command:S}}return b.isNonVideoContentCommand(S)?(P=_.t(S,_.Ow),{reelNonVideoContentRenderer:_.t(P==null?void 0:P.renderer,_.GD),command:S}):{command:S}})};
_.v.calculateIntersectionObserverThreshold=function(){var N=_.H4(this.hostElement).querySelector("ytd-reel-video-renderer"),b=1;(N==null?0:N.offsetHeight)&&(N==null?0:N.offsetWidth)&&(b=Math.min(N.offsetHeight,this.shortsContainer.offsetHeight)/N.offsetHeight*(Math.min(N.offsetWidth,this.shortsContainer.offsetWidth)/N.offsetWidth));return Math.round(b*.6*10)/10};
_.v.isVideoContentCommand=function(N){_.aN().resolve(_.DP);return!!_.t(N,_.kn)};
_.v.isNonVideoContentCommand=function(N){_.aN().resolve(_.DP);return!!_.t(N,_.Ow)};
_.v.initCinematicController=function(){var N=this;if(this.player&&this.shortsCinematicContainer){this.JSC$21990_cinematicController=new UO(this.shortsCinematicContainer,this.player);var b,S=_.t((b=this.data)==null?void 0:b.background,Ms);gCO(this.JSC$21990_cinematicController,S);VKE(this.JSC$21990_cinematicController,Ip6(S));DAo(this.JSC$21990_cinematicController);_.Dj.addLowPriorityJob(function(){N.moveCinematicsToVideo()})}};
_.v.handleMiniplayerNavigateShorts=function(N){N==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():N==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.v.handleSignalActionToggleShortsPictureInPicture=function(){if(_.aN().resolve(_.E_).pictureInPictureSupported()){var N=_.aN().resolve(_.DP);if(_.T("web_shorts_pip")){var b=_.aN().resolve(_.E_);N.isShortsPipActive()?b.deactivate():b.isMiniplayerActive()||(_.gU().shortsPipActivation=!0,_.P5L(b))}}else(N=this.player)==null||N.togglePictureInPicture()};
_.d0.Object.defineProperties(jf.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.reelWatchSequenceResponse)!=null&&N.prevEntries)return this.processWatchSequence([].concat(_.IX(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.IX(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.reelWatchSequenceResponse)!=null&&N.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var N=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var b;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((b=this.shortsProcessedSequence)==null?void 0:b.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var S;b=_.t((S=this.firstShortsData)==null?void 0:S.command,_.kn);if(b==null||!b.videoId)return this.shortsProcessedSequence;S=this.getIndexInSequence(this.shortsSequence,
b.videoId);if(S!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=S,_.Dj.addLowPriorityJob(function(){N.scrollToVideoThrottle.fire(N.index,"auto");N.movePlayerToVideo(N.index)}));
return[].concat(_.IX(this.shortsSequence))}this.shortsProcessedPrevSequence||_.ml(_.Dj,function(){N.observeShorts()},100);
return[this.firstShortsData].concat(_.IX(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var N=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;N&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(N)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var N;return this.index===((N=this.shortsContentList)==null?NaN:N.length)-1}if(this.endOfNextContinuation){var b,S;return this.index===((b=this.reelWatchSequenceResponse)==null?void 0:(S=b.entries)==null?void 0:S.length)}var P;return!((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var N;(N=this.delayedActiveIndexUpdateDebouncer)==null||N.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return this.isShortPlayable()||((b=_.t((N=this.data)==null?void 0:N.watchStatus,_.$ZO))==null?void 0:(S=b.style)==null?void 0:S.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var N=this,b=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),S;if((this.data||b)&&(((S=this.data)==null?0:S.engagementPanels)||this.isAd()||b)){b=!1;this.activePanel="shorts-comments-panel";var P;S=_.O(((P=this.data)==null?void 0:P.engagementPanels)||[]);for(P=S.next();!P.done;P=S.next())if(this.getPanelIdentifier(P.value.engagementPanelSectionListRenderer)===this.activePanel){b=!0;break}if(this.isPersistentPanelActive){var H=
_.aN().resolve(_.Hn);_.Dj.addJob(function(){H.showPanel({identifier:N.activePanel,target:null})},_.T("web_enable_shorts_no_idle_job")?1:0,100)}var K;
P=[].concat(_.IX(Object.values(((K=this.data)==null?void 0:K.engagementPanels)||{})));K=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);S=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return K===void 0&&S===void 0||(K==null?0:K.isDisabled)||(S==null?void 0:S.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!b?(b=P==null?void 0:P.findIndex(function(C){var G,a;return((G=C.engagementPanelSectionListRenderer)==null?void 0:(a=G.identifier)==null?void 0:a.tag)==="shorts-comments-panel"}),b===-1||b===void 0||P!=null&&P.splice(b,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.cN("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.cN("CLOSE",void 0,"Close")}},command:{hideEngagementPanelEndpoint:{identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"}}}}}}},content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{messageRenderer:{style:{value:"RENDER_STYLE_PANEL"},text:{runs:[{text:_.cN("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.cN("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.IX(Object.values(P||
{})))):P}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S,P;if((b=this.playerData)==null?0:(S=b.playabilityStatus)==null?0:(P=S.errorScreen)==null?0:P.playerInterstitialRenderer)return _.Dj.addLowPriorityJob(function(){N.movePlayerToVideo(N.index)}),this.playerData.playabilityStatus.errorScreen;
var H,K;return((H=this.data)==null?void 0:H.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((K=this.data)==null?0:K.watchStatus)&&_.t(this.data.watchStatus,_.W3k)?(_.Dj.addLowPriorityJob(function(){N.movePlayerToVideo(N.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.d0.Object.defineProperties(jf,{template:{configurable:!0,enumerable:!0,get:function(){if(iVQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);iVQ=N}N=iVQ;return N}}});
jf.prototype.onNextButtonDataChange=jf.prototype.onNextButtonDataChange;jf.prototype.onPrevButtonDataChange=jf.prototype.onPrevButtonDataChange;jf.prototype.onPersistentPanelActiveChanged=jf.prototype.onPersistentPanelActiveChanged;jf.prototype.lazyUpdateMiniplayerData=jf.prototype.lazyUpdateMiniplayerData;jf.prototype.onShortsPipActiveChanged=jf.prototype.onShortsPipActiveChanged;jf.prototype.setActiveIndex=jf.prototype.setActiveIndex;jf.prototype.graftNvcRenderer=jf.prototype.graftNvcRenderer;
jf.prototype.graftClientVisualElements=jf.prototype.graftClientVisualElements;jf.prototype.onActiveChanged=jf.prototype.onActiveChanged;jf.prototype.onShortsDismiss=jf.prototype.onShortsDismiss;jf.prototype.onShortUndoDismiss=jf.prototype.onShortUndoDismiss;jf.prototype.playerDataChanged=jf.prototype.playerDataChanged;jf.prototype.afterPlayerStarted=jf.prototype.afterPlayerStarted;jf.prototype.unhideCurrentOverlay=jf.prototype.unhideCurrentOverlay;jf.prototype.onServiceRequestCompleted=jf.prototype.onServiceRequestCompleted;
jf.prototype.engagementPanelsChanged=jf.prototype.engagementPanelsChanged;jf.prototype.onFullscreenChange=jf.prototype.onFullscreenChange;jf.prototype.onResize=jf.prototype.onResize;jf.prototype.setShortsContentList=jf.prototype.setShortsContentList;jf.prototype.setFirstShortsData=jf.prototype.setFirstShortsData;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],jf.prototype,"ytComponentBehavior",void 0);
_.p([_.L(Bj.YtPageBehavior),_.y("design:type",Object)],jf.prototype,"ytPageBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],jf.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],jf.prototype,"ironResizableBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.cO),_.y("design:type",Object)],jf.prototype,"ytdDismissibleItemBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],jf.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],jf.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"playerData",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"reelWatchSequenceResponse",void 0);
_.p([_.U(),_.y("design:type",Object)],jf.prototype,"cachedReelWatchSequenceResponse",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"currentEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"nextButtonData",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"prevButtonData",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"isPreviousPageShorts",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"index",void 0);
_.p([_.U(),_.y("design:type",Object)],jf.prototype,"delayedActiveIndex",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"playablePreviousIndex",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"player",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"isPlayerPaused",void 0);_.p([_.U({selector:JZE}),_.y("design:type",Object)],jf.prototype,"isPlayerStarted",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"intersectionObserver",void 0);
_.p([_.U(),_.y("design:type",Number)],jf.prototype,"cinematicsInitializeJobId",void 0);_.p([_.U(),_.y("design:type",Number)],jf.prototype,"updateMiniplayerDataJobId",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"fitToVisibleBounds",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"pageSubtype",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],jf.prototype,"enablePreviousContinuation",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"shortsPipEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"isDark",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"shortsViewTransitions",void 0);_.p([_.U({selector:_.HP,reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"isFullscreen",void 0);
_.p([_.U({selector:_.sx,reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"isShortsPipActive",void 0);_.p([_.dq("#shorts-inner-container"),_.y("design:type",HTMLElement)],jf.prototype,"shortsInnerContainer",void 0);_.p([_.dq("#back-nav-button ytd-button-renderer"),_.y("design:type",_.xu)],jf.prototype,"backNavButton",void 0);_.p([_.dq("#shorts-container"),_.y("design:type",HTMLElement)],jf.prototype,"shortsContainer",void 0);
_.p([HJ("error-screen"),_.y("design:type",HTMLElement)],jf.prototype,"errorScreenContainer",void 0);_.p([HJ("player"),_.y("design:type",Object)],jf.prototype,"playerElement",void 0);_.p([HJ("shorts-cinematic-container"),_.y("design:type",HTMLElement)],jf.prototype,"shortsCinematicContainer",void 0);_.p([HJ("initial-player-container"),_.y("design:type",HTMLElement)],jf.prototype,"initialPlayerContainer",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"buttonOverride",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"anchoredPanelActive",void 0);_.p([_.U(),_.y("design:type",String)],jf.prototype,"activePanel",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"isActive",void 0);_.p([_.U({selector:iAa,reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"smallScreenPersistentPanel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"isPersistentPanelActive",void 0);
_.p([_.U(),_.y("design:type",Object)],jf.prototype,"smallScreenSqueezeBack",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"enableScrollIntoViewCenter",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"enableFlexibleOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"extractOverlay",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"useAspectRatio",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],jf.prototype,"enableShortsSequenceRefactorUnify",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"continuationRequestPending",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"shortsController",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"panelContainer",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"overlayContainer",void 0);
_.p([_.U(),_.y("design:type",Array)],jf.prototype,"carouselContainers",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"isShortsInitialized",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"firstShortsData",void 0);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"firstShortsDataModel",void 0);_.p([_.U(),_.y("design:type",Array)],jf.prototype,"shortsContentList",void 0);
_.p([_.f("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"prevShortsSequence",null);_.p([_.f("data","prevShortsSequence"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"shortsProcessedPrevSequence",null);_.p([_.f("reelWatchSequenceResponse"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"shortsSequence",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"setFirstShortsData",null);_.p([_.W4("reelWatchSequenceResponse","firstShortsData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"setShortsContentList",null);_.p([_.f("data","shortsSequence","firstShortsData"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"shortsProcessedSequence",null);
_.p([_.U({reflectToAttribute:!0}),_.f("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jf.prototype,"isUpArrowHidden",null);_.p([_.U({reflectToAttribute:!0}),_.f("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jf.prototype,"isDownArrowHidden",null);
_.p([_.U(),_.f("index"),_.y("design:type",Number),_.y("design:paramtypes",[])],jf.prototype,"activeIndex",null);_.p([_.f("isShortPlayable","data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jf.prototype,"shouldRenderOfflineContent",null);_.p([_.RA("iron-resize"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onResize",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"anchoredEngagementPanels",null);
_.p([_.U(),_.y("design:type",Object)],jf.prototype,"watchWhileEngagementPanels",void 0);_.p([_.W4("isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onFullscreenChange",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"engagementPanelsChanged",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],jf.prototype,"onServiceRequestCompleted",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"unhideCurrentOverlay",null);_.p([_.W4("isPlayerStarted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"afterPlayerStarted",null);
_.p([_.f("playerData","reelWatchSequenceResponse","data"),_.y("design:type",Object),_.y("design:paramtypes",[])],jf.prototype,"errorScreen",null);_.p([_.f("errorScreen"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],jf.prototype,"hasError",null);_.p([_.W4("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],jf.prototype,"playerDataChanged",null);
_.p([_.RA("yt-dismissible-item-undo-feedback"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onShortUndoDismiss",null);_.p([_.RA("yt-disable-lockup-interaction"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],jf.prototype,"onShortsDismiss",null);_.p([_.t_("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onActiveChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"graftClientVisualElements",null);_.p([_.W4("currentPlayerIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"graftNvcRenderer",null);_.p([_.W4("index"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"setActiveIndex",null);
_.p([_.W4("isShortsPipActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onShortsPipActiveChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"lazyUpdateMiniplayerData",null);_.p([_.U(),_.y("design:type",Object)],jf.prototype,"onOverlayDensityChanged",void 0);
_.p([_.W4("isPersistentPanelActive"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onPersistentPanelActiveChanged",null);_.p([_.W4("index","data","isUpArrowHidden"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onPrevButtonDataChange",null);_.p([_.W4("index","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jf.prototype,"onNextButtonDataChange",null);
_.p([_.Uj({is:"ytd-shorts"})],jf);var DGJ;var VN5;var gVi;var zw=function(){return _.z.apply(this,arguments)||this};
_.F(zw,_.z);zw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zw.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],zw);
_.X(zw,"ytd-compact-tvfilm-entry-point-renderer",function(){if(gVi!==void 0)return gVi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return gVi=N},{mode:1});var evq;var $Go;var hvE;var Ax=function(){return _.z.apply(this,arguments)||this};
_.F(Ax,_.z);Ax.prototype.ready=function(){this.initializeDefs()};
Ax.prototype.initializeDefs=function(){var N=this.meta.byKey("yt-icons"),b=_.H4(N).querySelector("#star"),S=_.H4(N).querySelector("#star_half");N=_.H4(N).querySelector("#star_border");b&&this.defs.appendChild(b.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0));N&&this.defs.appendChild(N.cloneNode(!0))};
Ax.prototype.percentChanged=function(){for(var N=this.rating;N.firstChild;)N.removeChild(N.firstChild);var b=Math.round(this.percent/10);N=Math.floor(b/2);b%=2;var S=5-N-b;this.appendStars("star",N,0);this.appendStars("star_half",b,N);this.appendStars("star_border",S,N+b)};
Ax.prototype.appendStars=function(N,b,S){for(var P=0;P<b;P++){var H=(18+this.spacing)*(P+S),K=document.createElementNS("http://www.w3.org/2000/svg","use");Len(K,"#"+N);K.setAttribute("x",""+H);K.setAttribute("y","0");this.rating.appendChild(K)}};
Ax.prototype.percentChanged=Ax.prototype.percentChanged;_.p([_.dq("#defs"),_.y("design:type",HTMLElement)],Ax.prototype,"defs",void 0);_.p([_.dq("#rating"),_.y("design:type",HTMLElement)],Ax.prototype,"rating",void 0);_.p([_.U(),_.y("design:type",Number)],Ax.prototype,"percent",void 0);_.p([_.U({value:6}),_.y("design:type",Number)],Ax.prototype,"spacing",void 0);_.p([_.U({value:_.p2.create("iron-meta",{type:"iconset"})}),_.y("design:type",_.Dt)],Ax.prototype,"meta",void 0);
_.p([_.W4("percent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ax.prototype,"percentChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ratings"})],Ax);
_.X(Ax,"ytd-ratings",function(){if(hvE!==void 0)return hvE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return hvE=N},{mode:1});var q9o=function(){return _.z.apply(this,arguments)||this};
_.F(q9o,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],q9o.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],q9o.prototype,"data",void 0);_.p([_.Uj({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],q9o);
_.X(q9o,"ytd-offer-review-renderer",function(){if($Go!==void 0)return $Go;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $Go=N},{mode:1});var Xh=function(){var N=_.z.apply(this,arguments)||this;N.badges=[{textBadge:{label:_.gy("CC")}}];return N};
_.F(Xh,_.z);_.v=Xh.prototype;_.v.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.v.dataChanged=function(){var N=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(N&&N.commandMetadata&&_.t(N.commandMetadata,_.eD)&&_.t(N.commandMetadata,_.eD).fireAutomatically)_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}});else{var b;N&&((b=_.t(N,_.eD))==null?0:b.fireAutomatically)&&_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})}};
_.v.isEmptyContent=function(N){return this.isStorefrontEntryPointEmpty(N)&&this.shouldHideOfferModule(N)};
_.v.isStorefrontEntryPointEmpty=function(N){return!N||!N.storefrontEntryPoint};
_.v.shouldHideOfferModule=function(N){return!!N.hideVideoDetails};
_.v.isOfferModuleNavigationInactive=function(N){return!N.navigationEndpoint&&!N.serviceEndpoint};
_.v.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Xh.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.y("design:type",Boolean)],Xh.prototype,"hidden",void 0);
_.p([_.U(),_.y("design:type",Object)],Xh.prototype,"badges",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xh.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Xh);
_.X(Xh,"ytd-movie-offer-module-renderer",function(){if(evq!==void 0)return evq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return evq=N},{mode:1});var wIo;var NMn=function(){return _.z.apply(this,arguments)||this};
_.F(NMn,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],NMn.prototype,"componentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],NMn.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],NMn);
_.X(NMn,"ytd-media-masthead-renderer",function(){if(wIo!==void 0)return wIo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wIo=N},{mode:1});var bBL;_.qu(_.D09,"course-metadata-view-model",{props:{data:_.er,isOverlay:_.er}});var EF=function(){var N=_.z.apply(this,arguments)||this;N.isMetadataVisible=!1;N.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return N};
_.F(EF,_.z);_.v=EF.prototype;
_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.v.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.v.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.v.expanderChanged=function(){var N;if((N=this.data)==null?0:N.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.v.isExpandButtonToggled=function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.expandMetadataButton,_.dU))==null?void 0:b.isToggled};
_.v.onVisibilityButtonClick=function(){var N;if((N=this.data)==null?0:N.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.v.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
EF.prototype.expanderChanged=EF.prototype.expanderChanged;EF.prototype.dataChanged=EF.prototype.dataChanged;EF.prototype.descriptionChanged=EF.prototype.descriptionChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L([_.pG.YtActionHandlerBehavior]),_.y("design:type",Object)],EF.prototype,"actionHandlerBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],EF.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],EF.prototype,"isMetadataVisible",void 0);_.p([_.dq("#expander"),_.y("design:type",Object)],EF.prototype,"expander",void 0);_.p([_.W4("data.description"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EF.prototype,"descriptionChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EF.prototype,"dataChanged",null);_.p([_.W4("isMetadataVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],EF.prototype,"expanderChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],EF);
_.X(EF,"ytd-tvfilm-offer-module-renderer",function(){if(bBL!==void 0)return bBL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bBL=N},{mode:2});var Skq;var pk=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return N};
_.F(pk,_.z);pk.prototype.dataChanged=function(){this.hostElement.hidden=!1};
pk.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
pk.prototype.onThumbnailTap=function(N){this.data&&this.data.serviceEndpoint&&(_.aN().resolve(_.Wq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),N.stopPropagation())};
pk.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
pk.prototype.dataChanged=pk.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pk.prototype,"rendererBehaviors",void 0);_.p([_.L([_.pG.YtActionHandlerBehavior]),_.y("design:type",Object)],pk.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pk.prototype,"data",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pk.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],pk);
_.X(pk,"ytd-unlimited-offer-module-renderer",function(){if(Skq!==void 0)return Skq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Skq=N},{mode:1});var PTL;var HBa;var Y5=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return N};
_.F(Y5,_.z);Y5.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Y5.prototype.handleRelatedChipCommand=function(N){N=_.t(N,bw6);var b=N.contents;b?_.PN(this.hostElement,"yt-item-section-replace-action",[b,N.targetSectionIdentifier]):_.PN(this.hostElement,"yt-item-section-continuation-action",[N.continuationData,N.targetSectionIdentifier])};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Y5.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Y5.prototype,"data",void 0);_.p([_.J_({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Y5);
_.X(Y5,"yt-related-chip-cloud-renderer",function(){if(HBa===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;PTL===void 0&&(PTL=document.createElement("template"));var P=PTL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);HBa=N}N=HBa;return N},{mode:2});var yL=function(){var N=_.z.apply(this,arguments)||this;N.isTwoColumns=!0;N.watchFeedBigThumbs=_.T("kevlar_watch_feed_big_thumbs");N.watchFeedBigThumbsOnLockup=_.T("web_watch_next_big_thumbs");N.watchFeedBigThumbsCompactLayout=_.T("web_watch_next_big_thumbs")&&_.T("web_watch_next_big_thumbs_compact_layout");N.watchFeedBigThumbsExpandedLayout=_.T("web_watch_next_big_thumbs")&&_.T("web_watch_next_big_thumbs_expanded_layout");N.watchNextGridHideChips=_.T("kevlar_watch_grid_hide_chips");N.eligibleToSwitchToGrid=
!0;N.disableShortsShelfHeightOverride=_.T("web_shorts_wn_shelf_ratio_tuning");N.isWatchNextGrid=!1;N.reuseComponents=!_.T("kevlar_watch_grid");N.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return N};
_.F(yL,_.z);_.v=yL.prototype;
_.v.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.T("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.v.getItemsPath=function(){return"data.results"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.v.created=function(){this.ytLazyListBehavior.initialCount=1};
_.v.ready=function(){_.rq(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.v.resultsChanged=function(){if(this.data&&this.data.results){for(var N=this.data.results,b=null,S=null,P=0;P<N.length;P++)N[P].relatedChipCloudRenderer?b=N[P].relatedChipCloudRenderer:N[P].itemSectionRenderer&&(S=N[P].itemSectionRenderer);if(b&&S)for(this.set("data.continuations",[]),N=_.t(b.content,_.hYk).chips,b=0;b<N.length;b++)if(P=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",N[b]),P.loadCached||!P.contents){P.contents=S.contents;break}}};
_.v.dataChanged=function(){var N=this,b;if((b=this.data)!=null&&b.results&&this.hasAllowedInstreamAd(this.playerData)){if(b=this.data.results.filter(function(G){return!!G.promotedSparklesWebRenderer})){for(var S=0;S<b.length;S++){var P=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",b[S]);
if(P)for(var H=0;H<P.length;H++)P[H]&&P[H].baseUrl&&_.Pl(P[H].baseUrl)}this.set("data.results",this.data.results.filter(function(G){return!G.promotedSparklesWebRenderer}))}if(b=this.data.results.filter(function(G){return!!N.getSparklesAd(G)})){b=_.O(b);
for(H=b.next();!H.done;H=b.next())if(P=S=void 0,H=(S=this.getSparklesAd(H.value))==null?void 0:(P=S.errorCommand)==null?void 0:P.loggingUrls)for(S=_.O(H),P=S.next();!P.done;P=S.next())(P=P.value)&&P.baseUrl&&_.Pl(P.baseUrl);var K,C;this.set("data.results",(K=this.data)==null?void 0:(C=K.results)==null?void 0:C.filter(function(G){return!G.adSlotRenderer}))}}};
_.v.getSparklesAd=function(N){var b,S;N=_.t((b=N.adSlotRenderer)==null?void 0:(S=b.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.kmz);return _.t(N==null?void 0:N.renderingContent,bW5)};
_.v.hasAllowedInstreamAd=function(N){N=this.get("adPlacements",N)||[];for(var b=0;b<N.length;b++){var S=this.get("adPlacementRenderer.config.adPlacementConfig",N[b]);if(S&&S.suppressDisplayAd)return!0}return!1};
_.v.computeHideUnlimitedOfferModule=function(N,b){return N&&N.offerModule&&b&&N.offerModule.unlimitedOfferModuleRenderer&&N.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(b)?!0:!1};
_.v.hideUnlimitedOfferModuleChanged=function(){var N=_.H4(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");N&&(N.hidden=this.hideUnlimitedOfferModule)};
_.v.updateLockupContainerTypes=function(N){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||b.forEach(function(S){S.containerType=N})}};
_.v.computeHideTvfilmOfferModule=function(N,b){var S,P;return!!((N==null?0:(S=N.offerModule)==null?0:(P=S.tvfilmOfferModuleRenderer)==null?0:P.clientShouldSuppressIfCompanionAdDisplayed)&&b&&this.hasCompanionAds(b))};
_.v.hideTvfilmOfferModuleChanged=function(){var N=_.H4(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");N&&(N.hidden=this.hideTvfilmOfferModule)};
_.v.hasCompanionAds=function(N){N=this.get("adPlacements",N)||[];for(var b=0;b<N.length;b++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",N[b]))return!0;var S=void 0,P=void 0,H=void 0;if(!_.T("web_watch_top_banner_companion_check_killswitch")&&((S=N[b])==null?0:(P=S.adPlacementRenderer)==null?0:(H=P.renderer)==null?0:H.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.v.hasSuppressedResults=function(N){return N==null?!0:N.filter(function(b){return!b.continuationItemRenderer&&!b.compactPromotedVideoRenderer&&!b.promotedSparklesWebRenderer}).length===0};
_.v.computeShowButton=function(N,b){return this.isWatchNextGrid?N:N||this.hasSuppressedResults(b)};
_.v.showButtonChanged=function(){if(this.isWatchNextGrid){var N=_.H4(this.hostElement).querySelector("ytd-rich-grid-renderer");N&&this.showButton!==null&&(N.continuationShowButton=this.showButton)}else{N=_.H4(this.hostElement).querySelector("yt-next-continuation");var b=_.H4(this.hostElement).querySelector("ytd-continuation-item-renderer"),S=_.H4(this.hostElement).querySelector("ytd-item-section-renderer");N&&(N.showButton=this.showButton);b&&(b.showButton=this.showButton);S&&(S.continuationShowButton=
this.showButton)}};
_.v.continuationTap=function(N){var b;if(((b=this.data)==null?void 0:b.continuations)!=null&&N.target.tagName==="TP-YT-PAPER-BUTTON")for(N=this.data.continuations,b=0;b<N.length;b++)N[b].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(N[b].nextContinuationData||{})};
_.v.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("shown-items-changed",this.shownItems))};
_.d0.Object.defineProperties(yL.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.shownItems)==null||!N.some(function(b){return!!b.lockupViewModel||b.compactVideoRenderer}))}}});
yL.prototype.shownItemsChangedForBinding=yL.prototype.shownItemsChangedForBinding;yL.prototype.showButtonChanged=yL.prototype.showButtonChanged;yL.prototype.hideTvfilmOfferModuleChanged=yL.prototype.hideTvfilmOfferModuleChanged;yL.prototype.updateLockupContainerTypes=yL.prototype.updateLockupContainerTypes;yL.prototype.hideUnlimitedOfferModuleChanged=yL.prototype.hideUnlimitedOfferModuleChanged;yL.prototype.dataChanged=yL.prototype.dataChanged;yL.prototype.resultsChanged=yL.prototype.resultsChanged;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],yL.prototype,"ytLazyListBehavior",void 0);_.p([_.L(_.B8.YtNextContinuationBehavior),_.y("design:type",Object)],yL.prototype,"ytNextContinuationBehavior",void 0);
_.p([_.L(_.F3),_.y("design:type",Object)],yL.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yL.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],yL.prototype,"playerData",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],yL.prototype,"autoFill",void 0);_.p([_.U({value:60}),_.y("design:type",Number)],yL.prototype,"targetFramerate",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"isTwoColumns",void 0);_.p([_.U(),_.y("design:type",Object)],yL.prototype,"shownItems",void 0);_.p([_.U({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.y("design:type",Boolean)],yL.prototype,"hideUnlimitedOfferModule",void 0);_.p([_.U({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.y("design:type",Boolean)],yL.prototype,"hideTvfilmOfferModule",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"watchFeedBigThumbs",void 0);_.p([_.U(),_.y("design:type",Object)],yL.prototype,"watchFeedBigThumbsOnLockup",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"watchFeedBigThumbsCompactLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"watchFeedBigThumbsExpandedLayout",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"watchNextGridHideChips",void 0);_.p([_.U(),_.y("design:type",Object)],yL.prototype,"eligibleToSwitchToGrid",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"disableShortsShelfHeightOverride",void 0);_.p([_.U({selector:_.o7,reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"isGridViewEnabled",void 0);
_.p([_.U({selector:_.AtE,reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"isSwatcherooActive",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],yL.prototype,"showMoreButton",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],yL.prototype,"isWatchNextGrid",void 0);_.p([_.U({computed:"computeShowButton(showMoreButton, data.results)"}),_.y("design:type",Boolean)],yL.prototype,"showButton",void 0);
_.p([_.t_("data.results.*"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"resultsChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"dataChanged",null);_.p([_.W4("hideUnlimitedOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"hideUnlimitedOfferModuleChanged",null);
_.p([_.f("isGridViewEnabled","containsLockups","data"),_.U({reflectToAttribute:!0}),_.y("design:type",Number),_.y("design:paramtypes",[])],yL.prototype,"lockupContainerType",null);_.p([_.W4("lockupContainerType","data"),_.y("design:type",Function),_.y("design:paramtypes",[Number]),_.y("design:returntype")],yL.prototype,"updateLockupContainerTypes",null);
_.p([_.W4("hideTvfilmOfferModule"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"hideTvfilmOfferModuleChanged",null);_.p([_.W4("showButton"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"showButtonChanged",null);_.p([_.W4("shownItems"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yL.prototype,"shownItemsChangedForBinding",null);
_.p([_.f("shownItems"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],yL.prototype,"containsLockups",null);
_.X(yL,"ytd-watch-next-secondary-results-renderer",function(){if(VN5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);VN5=N}N=VN5;return N},{mode:1});var sCi;var Ih=function(){var N=_.z.apply(this,arguments)||this;N.currentPageUrl="";N.baseUrl="";N.isHiddenByUser=null;N.hidden=!1;N.showAboveScrim=!1;N.watchNextGrid=_.T("kevlar_watch_grid");N.modernButtons=_.T("web_modern_buttons");N.roundedContainer=!0;N.noBorder=!1;N.roundBackground=!_.T("live_chat_round_background_killswitch");N.overflowHideChat=_.T("live_chat_overflow_hide_chat");N.forceDarkTheme=!1;N.theaterWatchWhile=!1;N.isListeningForPlayerProgress=!1;N.JSC$22043_playerEvents=new Map;N.isFrameReady=
!1;N.player=null;N.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return N};
_.F(Ih,_.z);_.v=Ih.prototype;_.v.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.PN(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.v.created=function(){var N=this;this.handleIframeEventListener=function(b){N.handleIframeEvent(b)};
this.handleKeyboardEventListener=function(b){N.handleKeyboardEvent(b)};
this.JSC$22043_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22043_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22043_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22043_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22043_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.v.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.v.computeBaseUrl=function(N){var b="/live_chat";this.isChatReplay()&&(b="/live_chat_replay");return _.TI(_.ka(_.mr(_.sB(N),b),null),"").toString()};
_.v.dataChanged=function(){_.T("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.v.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var N=this.url;if(this.isChatReplay()&&this.player){var b=Math.floor(this.player.getProgressState().current*1E3);N=_.vW(_.sB(N),"playerOffsetMs",b.toString()).toString()}b=this.chatframe;try{var S=N==="about:blank"?_.Lkb:_.VK(N),P=b.contentDocument.location,H=_.hS(S);H!==void 0&&P.replace(H)}catch(K){b.src=N}}};
_.v.collapsedChanged=function(){_.bC(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.v.handleIframeEvent=function(N){if(N&&this.baseUrl.startsWith(N.origin)&&N.source===this.chatframe.contentWindow&&_.D_(N.data))if(N.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(N);else if(N.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(N.data["yt-show-feedback-dialog"]){var b=_.aN().resolve(_.cq(_.uHw));if(b){var S=N.ports,P;S&&S.length&&(P=function(){S[0].postMessage({})});
N=N.data["yt-show-feedback-dialog"];b.showFeedbackDialog(N.customProductData,N.feedbackContent,P,N.bucket)}}else if(N.data["yt-show-survey"])_.bC(this.hostElement,"yt-show-survey",N.data["yt-show-survey"]);else if(N.data["yt-purchase-membership"])_.aN().resolve(_.Wq).resolveCommand(N.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(N.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(N.data["yt-tunnel-out-live-service-request"]);else if(N.data["yt-user-activity"])_.Wl();
else if(N.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(N.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(N.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(N.data["yt-open-popup"]);else if(N.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(N.data["yt-log-flow-logging-event-command"]);else if(N.data["yt-hide-live-chat"])this.onShowHideChat();else N.data["yt-report-moderation-state-log"]&&
this.player&&(b={cpn:this.player.getVideoData().cpn},_.Dn("liveChatBeingModerated",b))};
_.v.attachLiveChatResponseVeTrackingParams=function(N){N=_.FA(N);var b=_.Qh(),S=_.hl("liveChatRenderer.trackingParams",this.data);b&&S&&_.AZ(b,_.FA(S),N)};
_.v.handleBuyflowMessages=function(N){var b=N.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,S=N.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,P=N.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.FfU(_.b0(_.DK),b.replace(/-/g,"+").replace(/_/g,"/"),function(H){N.ports[0].postMessage({success:!0,buyFlowResponse:H})},void 0,function(H){N.ports[0].postMessage({success:!1,
error:H&&H.message||"Buyflow rejected without error."})},_.WN().get("hl"),void 0,function(){N.ports[0].postMessage({closed:!0})},S,P)};
_.v.setupPlayerProgressRelay=function(){var N=this;if(!this.isListeningForPlayerProgress){var b=_.w5();b!=null&&b.getPlayerPromise&&(b.getPlayerPromise().then(function(S){N.playerApiReady(S)}),this.isListeningForPlayerProgress=!0)}};
_.v.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.v.playerApiReady=function(N){this.setPlayer(N)};
_.v.playerProgressHandler=function(){if(this.player){var N=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":N.current})}};
_.v.playerAdStartHandler=function(N){this.postToContentWindow({"yt-player-ad-start":N})};
_.v.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.v.playerStateChangeHandler=function(N){this.postToContentWindow({"yt-player-state-change":N})};
_.v.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22043_playerEvents);N&&(this.player=N,this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$22043_playerEvents),_.bC(this.hostElement,"player-api-ready"))};
_.v.liveChatPageUrl=function(N,b,S,P){return!S||b?"about:blank":S.liveChatRenderer?(b=_.sB(this.currentPageUrl).JSC$10265_queryData_,q7E(b),N=_.sB(N),b.add("continuation",S.liveChatRenderer.continuations[0].reloadContinuationData.continuation),S=_.As()==="USER_INTERFACE_THEME_DARK",(P||S)&&b.add("dark_theme","true"),_.ka(N,b),P=_.sB(N.toString()),S=P.JSC$10265_queryData_,"SESSION_INDEX"in _.Iu&&(S.add("authuser",_.Vg("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Iu&&S.add("pageId",_.Vg("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Iu&&S.add("sdc",_.Vg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),P.toString()):""};
_.v.isCollapsed=function(N,b){return b!==null?b:this.isChatReplay()||N&&N.conversationBarRenderer&&N.conversationBarRenderer.availabilityMessage?!0:N?N.liveChatRenderer?N.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.T("live_chat_hide_premiere_replay_message")||N.conversationBarRenderer&&N.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.v.isHidden=function(N,b,S){var P=b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage,H=b&&b.liveChatRenderer&&b.liveChatRenderer.showHideButton,K=b&&b.liveChatRenderer&&b.liveChatRenderer.showButton;return S&&N&&!P&&!K||!S&&N&&!P&&!H?!0:b&&b.liveChatRenderer&&b.liveChatRenderer.initialDisplayState?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.v.computeButtonOverride=function(N,b){if(N&&b)return{type:"outline"}};
_.v.setCollapsedState=function(N){_.t(N,_.tDO)&&((this.isHiddenByUser=!!_.t(N,_.tDO).collapsed)||_.St(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.v.forwardReduxActionToIframe=function(N){this.postToContentWindow({"yt-live-chat-forward-redux-action":N})};
_.v.onLoopRangeChange=function(N){this.showAboveScrim=!(N==null||!N.postId)};
_.v.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.v.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.v.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.v.sendDarkThemePostMessage=function(N){this.postToContentWindow({"yt-live-chat-set-dark-theme":N})};
_.v.onLiveChatBuyFlowCallback=function(N){this.postToContentWindow({"yt-live-chat-buy-flow-callback":N})};
_.v.handleKeyboardEvent=function(N){(0,_.Vm.containsValue)(DeE,N.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:N.type,keyCode:N.keyCode}})};
_.v.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.v.postToContentWindow=function(N){if(this.isFrameReady)try{var b=window.location.protocol+"//"+window.location.host,S;(S=this.chatframe)!=null&&S.contentWindow?this.chatframe.contentWindow.postMessage(N,b):_.$h(new _.jU("Tried posting a message to an iframe with no content window",N))}catch(P){_.ge(P)}};
_.v.shouldHideChatFrame=function(N){return N&&_.T("hide_live_chat_button_when_collapsed")};
_.d0.Object.defineProperties(Ih.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.T("live_chat_overflow_hide_chat")||_.T("web_watch_chat_hide_button_killswitch"))return _.T("live_chat_overflow_hide_chat");var N,b,S,P;return!!((N=this.data)==null?0:(b=N.liveChatRenderer)==null?0:(S=b.header)==null?0:(P=S.liveChatHeaderRenderer)==null?0:P.collapseButton)}}});
Ih.prototype.collapsedChanged=Ih.prototype.collapsedChanged;Ih.prototype.urlChanged=Ih.prototype.urlChanged;Ih.prototype.dataChanged=Ih.prototype.dataChanged;Ih.prototype.onShowHideChat=Ih.prototype.onShowHideChat;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Ih.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ih.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.tC.YtPlayerListenerBehavior),_.y("design:type",_.MT)],Ih.prototype,"ytPlayerListenerBehavior",void 0);_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],Ih.prototype,"ytOpenPopupBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ih.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ih.prototype,"currentPageUrl",void 0);
_.p([_.U({computed:"computeBaseUrl(currentPageUrl,data)"}),_.y("design:type",Object)],Ih.prototype,"baseUrl",void 0);_.p([_.U({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.y("design:type",String)],Ih.prototype,"url",void 0);_.p([_.U(),_.y("design:type",Object)],Ih.prototype,"isHiddenByUser",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.y("design:type",Object)],Ih.prototype,"hidden",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.y("design:type",Boolean)],Ih.prototype,"collapsed",void 0);_.p([_.U({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.y("design:type",Boolean)],Ih.prototype,"hideChatFrame",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"showAboveScrim",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"watchNextGrid",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ih.prototype,"modernButtons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"roundedContainer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"noBorder",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ih.prototype,"roundBackground",void 0);
_.p([_.U({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.y("design:type",Object)],Ih.prototype,"toggleButtonOverride",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Ih.prototype,"overflowHideChat",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"forceDarkTheme",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Ih.prototype,"enableShowWithoutHideChatButton",null);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Ih.prototype,"theaterWatchWhile",void 0);_.p([_.dq("#chatframe"),_.y("design:type",HTMLIFrameElement)],Ih.prototype,"chatframe",void 0);_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ih.prototype,"onShowHideChat",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ih.prototype,"dataChanged",null);
_.p([_.W4("url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ih.prototype,"urlChanged",null);_.p([_.W4("collapsed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Ih.prototype,"collapsedChanged",null);_.p([_.Uj({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Ih);
_.X(Ih,"ytd-live-chat-frame",function(){if(sCi!==void 0)return sCi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return sCi=N},{mode:1});var KsE;var Df=function(){var N=_.z.apply(this,arguments)||this;N.lastRenderedPanelIds=new Set;N.visiblePanels=[];N.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return N};
_.F(Df,_.z);_.v=Df.prototype;_.v.dataChanged=function(){if(this.data){for(var N=[],b=_.O(this.data),S=b.next();!S.done;S=b.next()){S=S.value;var P=void 0,H=void 0,K=(P=S)==null?void 0:(H=P.engagementPanelSectionListRenderer)==null?void 0:H.visibility;H=P=void 0;((P=S)==null?0:(H=P.engagementPanelSectionListRenderer)==null?0:H.targetId)&&K!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&N.push(S)}this.visiblePanels=N}else this.visiblePanels=[]};
_.v.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.v.withoutVisiblePanelById=function(N){return this.visiblePanels.filter(function(b){var S;return((S=b.engagementPanelSectionListRenderer)==null?void 0:S.targetId)!==N})};
_.v.onYtChangeEngagementPanelVisibilityAction=function(N){var b=this,S=_.t(N,_.Me9);if(this.data&&(S==null?0:S.targetId)&&(S==null?0:S.visibility)){var P,H=(P=this.data.find(function(C){var G;return((G=C.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===S.targetId}))==null?void 0:P.engagementPanelSectionListRenderer;
if(H){var K=this.withoutVisiblePanelById(S.targetId);S.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(N=this.data.find(function(C){var G;return((G=C.engagementPanelSectionListRenderer)==null?void 0:G.targetId)===S.targetId}))&&(K=[N].concat(_.IX(K)));
this.hideDelayMs&&S.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&K.length===0?_.Dj.addJob(function(){H.visibility=S.visibility;b.visiblePanels=K},10,this.hideDelayMs):(H.visibility=S.visibility,this.visiblePanels=K);
_.PN(this.hostElement,"yt-engagement-panels-visible-changed",[K])}}};
_.v.onRendererstamperFinished=function(){var N=new Set(this.visiblePanels.map(function(b){var S;return(S=b.engagementPanelSectionListRenderer)==null?void 0:S.targetId}));
this.handlePanelVisibilityChange(N,this.lastRenderedPanelIds);this.lastRenderedPanelIds=N};
_.v.handlePanelVisibilityChange=function(N,b){N=N===void 0?new Set:N;b=b===void 0?new Set:b;if(this.data)for(var S=_.O(this.data),P=S.next();!P.done;P=S.next()){P=P.value;var H=void 0,K=void 0,C=(H=P)==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:K.targetId;if(C&&(H=b.has(C),K=N.has(C),C=void 0,!H&&K?(K=H=void 0,C=(H=P)==null?void 0:(K=H.engagementPanelSectionListRenderer)==null?void 0:K.onShowCommands):H&&!K&&(K=H=void 0,C=(H=P)==null?void 0:(K=H.engagementPanelSectionListRenderer)==
null?void 0:K.onHideCommands),C))for(P=_.O(C),C=P.next();!C.done;C=P.next())this.ytComponentBehavior.resolveCommand(C.value)}};
Df.prototype.onRendererstamperFinished=Df.prototype.onRendererstamperFinished;Df.prototype.dataChanged=Df.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Df.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Df.prototype,"lastRenderedPanelIds",void 0);_.p([_.U(),_.y("design:type",Number)],Df.prototype,"hideDelayMs",void 0);_.p([_.U(),_.y("design:type",Array)],Df.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],Df.prototype,"visiblePanels",void 0);_.p([_.U(),_.y("design:type",Boolean)],Df.prototype,"isWatchWhilePanel",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"dataChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Df.prototype,"onRendererstamperFinished",null);_.p([_.Uj({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Df);
_.X(Df,"ytd-watch-engagement-panels",function(){if(KsE!==void 0)return KsE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return KsE=N},{mode:1});var v1J;var OBw;var CTa=function(){return _.z.apply(this,arguments)||this};
_.F(CTa,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CTa.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CTa.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],CTa);
_.X(CTa,"ytd-comments-entry-point-message-renderer",function(){if(OBw!==void 0)return OBw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return OBw=N},{mode:1});var G_E;var VL=function(){return _.z.apply(this,arguments)||this};
_.F(VL,_.z);_.d0.Object.defineProperties(VL.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.teaserAvatar)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VL.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],VL.prototype,"hasAvatar",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],VL);
_.X(VL,"ytd-comments-entry-point-teaser-renderer",function(){if(G_E!==void 0)return G_E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return G_E=N},{mode:1});var rGQ;var cGw=function(){return _.z.apply(this,arguments)||this};
_.F(cGw,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cGw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cGw.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],cGw);
_.X(cGw,"ytd-comments-simplebox-renderer",function(){if(rGQ!==void 0)return rGQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return rGQ=N},{mode:1});var gm=function(){var N=_.z.apply(this,arguments)||this;N.fullHeight=!_.T("comment_teaser_full_height_kill_switch")&&_.T("kevlar_watch_grid");return N};
_.F(gm,_.z);gm.prototype.configureRendererStamper=function(){return{contentRenderer:{id:"content-renderer",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer",commentsSimpleboxRenderer:"ytd-comments-simplebox-renderer",commentsEntryPointMessageRenderer:"ytd-comments-entry-point-message-renderer"}},"data.contents":{id:"contents",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer"}}}};
gm.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
gm.prototype.onTap=function(){var N=this.tapCommand;N&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(N))};
gm.prototype.onKeyUp=function(N){if(N.keyCode===13)this.onTap()};
_.d0.Object.defineProperties(gm.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.onTap)return this.data.onTap;var b,S;if(((b=this.data)==null?0:b.teaserContent)||((S=this.data)==null?0:S.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)!=null&&N.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
gm.prototype.onKeyUp=gm.prototype.onKeyUp;gm.prototype.onTap=gm.prototype.onTap;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gm.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gm.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],gm.prototype,"fullHeight",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"tapCommand",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"simpleboxPlaceholder",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"hasSimpleboxPlaceholder",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"simpleboxAvatar",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"teaserContent",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"hasTeaserContent",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"teaserAvatar",null);
_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"hasTeaserAvatar",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"messageText",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],gm.prototype,"contentRenderer",null);_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"hasContents",null);
_.p([_.f("data"),_.U({reflectToAttribute:!0}),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gm.prototype,"hasContentRenderer",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gm.prototype,"onTap",null);_.p([_.RA("keypress"),_.y("design:type",Function),_.y("design:paramtypes",[_.Qy]),_.y("design:returntype")],gm.prototype,"onKeyUp",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],gm);
_.X(gm,"ytd-comments-entry-point-header-renderer",function(){if(v1J!==void 0)return v1J;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return v1J=N},{mode:1});var a5E;_.qu(_.QGk,"yt-animated-rolling-number",{props:{numberText:_.kg,numberValue:_.kg,heightPx:_.kg,fontSizeMultiplier:_.kg,shouldAnimate:_.kg,forceRollUp:_.kg}});var RDt=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),WsJ={numberText:"",heightPx:2*RDt,shouldAnimate:!1},ef=function(){var N=_.z.apply(this,arguments)||this;N.usingAnimatedComponents=!0;N.wasDetailed=!1;N.JSC$22073_browserSupportsAnimation=_.T("web_supports_animations_api");N.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};N.detailed=!1;N.shouldAnimate=!1;N.viewCountProps=WsJ;N.dateTextProps=
WsJ;N.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");return N};
_.F(ef,_.z);_.v=ef.prototype;_.v.attached=function(){var N=this;_.aN().resolve(_.ze).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(b){N.set("videoPrimaryInfoRenderer.subtitle",b)})};
_.v.detached=function(){_.aN().resolve(_.ze).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.v.resetAnimationState=function(){this.shouldAnimate=!1};
_.v.updateDynamicMetadata=function(){if(this.JSC$22073_browserSupportsAnimation){if(!this.detailed){var N,b,S,P;var H=(N=this.videoPrimaryInfoRenderer)==null?void 0:(b=N.viewCount)==null?void 0:(S=b.videoViewCountRenderer)==null?void 0:(P=S.extraShortViewCount)==null?void 0:P.simpleText;var K,C,G,a;var R=(K=this.videoPrimaryInfoRenderer)==null?void 0:(C=K.viewCount)==null?void 0:(G=C.videoViewCountRenderer)==null?void 0:(a=G.shortViewCount)==null?void 0:a.simpleText}if(!R){var n,d,m,k;H=(n=this.videoPrimaryInfoRenderer)==
null?void 0:(d=n.viewCount)==null?void 0:(m=d.videoViewCountRenderer)==null?void 0:(k=m.unlabeledViewCountValue)==null?void 0:k.simpleText;var M,l,u,J;R=(M=this.videoPrimaryInfoRenderer)==null?void 0:(l=M.viewCount)==null?void 0:(u=l.videoViewCountRenderer)==null?void 0:(J=u.viewCount)==null?void 0:J.simpleText}var Z,D,Y;N=Number((Z=this.videoPrimaryInfoRenderer)==null?void 0:(D=Z.viewCount)==null?void 0:(Y=D.videoViewCountRenderer)==null?void 0:Y.originalViewCount);var V,g;Z=(V=this.videoPrimaryInfoRenderer)==
null?void 0:(g=V.relativeDateText)==null?void 0:g.simpleText;var e;V=!((e=this.videoPrimaryInfoRenderer)==null||!e.relativeDateText);if(H&&R&&N&&(Z||!V)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;e=R.split(new RegExp("("+H+")"));H=_.gy(e[0]);var se;R={numberText:(se=e[1])!=null?se:"",numberValue:N,heightPx:2*RDt,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Ca;se=((Ca=e[2])!=null?Ca:"")+"  ";this.setViewCount(R,H,_.gy(se));if(!this.detailed&&
V){H=Z.split(/(\d+)/);Ca=_.gy(H[0]);var ML;se={numberText:(ML=H[1])!=null?ML:"",heightPx:2*RDt,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var na;ML=((na=H[2])!=null?na:"")+"  ";this.setDateText(se,Ca,_.gy(ML))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.v.setViewCount=function(N,b,S){_.es(b)!==_.es(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=b);this.viewCountProps.numberText!==(N==null?void 0:N.numberText)&&(this.viewCountProps=N||WsJ);_.es(S)!==_.es(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=S)};
_.v.setDateText=function(N,b,S){_.es(b)!==_.es(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=b);this.dateTextProps.numberText!==(N==null?void 0:N.numberText)&&(this.dateTextProps=N||WsJ);_.es(S)!==_.es(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=S)};
_.v.onYtUpdateViewershipAction=function(N){this.videoPrimaryInfoRenderer&&(_.t(N,NfO).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.t(N,NfO).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.t(N,NfO).viewCount)))};
_.v.onYtUpdateDateTextAction=function(N){if(this.videoPrimaryInfoRenderer){N=_.t(N,qmt).dateText;this.shouldAnimate=!0;var b;((b=this.videoPrimaryInfoRenderer)==null?0:b.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",N):this.set("videoPrimaryInfoRenderer.dateText",N)}};
_.d0.Object.defineProperties(ef.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return d5a(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.es(d5a(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.es(this.viewCountPreNumberText),this.viewCountProps.numberText,_.es(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.es(this.dateTextPreNumberText),this.dateTextProps.numberText,_.es(this.dateTextPostNumberText)].join("")}}});
ef.prototype.updateDynamicMetadata=ef.prototype.updateDynamicMetadata;ef.prototype.resetAnimationState=ef.prototype.resetAnimationState;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],ef.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ef.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"detailed",void 0);_.p([_.U(),_.y("design:type",Object)],ef.prototype,"shouldAnimate",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"viewCountPreNumberText",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"viewCountProps",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"viewCountPostNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"dateTextPreNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"dateTextProps",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"dateTextPostNumberText",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],ef.prototype,"metadataBadgesInDescription",void 0);_.p([_.f("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.y("design:type",Object),_.y("design:paramtypes",[])],ef.prototype,"infoText",null);
_.p([_.f("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.y("design:type",String),_.y("design:paramtypes",[])],ef.prototype,"descriptionInfoTooltipText",null);_.p([_.f("detailed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],ef.prototype,"showDescriptionInfoTooltip",null);
_.p([_.f("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],ef.prototype,"animatedViewCountAccessibilityLabel",null);_.p([_.f("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.y("design:type",String),_.y("design:paramtypes",[])],ef.prototype,"animatedDateTextAccessibilityLabel",null);
_.p([_.W4("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ef.prototype,"resetAnimationState",null);_.p([_.W4("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ef.prototype,"updateDynamicMetadata",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-watch-info-text"})],ef);
_.X(ef,"ytd-watch-info-text",function(){if(a5E!==void 0)return a5E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return a5E=N},{mode:1});var n15;var ddJ="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var mda=_.A(function(N){var b=N.data;var S=N.setTapCommand;_.gA(function(){var P=_.UZ(b().onTap);S(P)},"CLm0Xe");
return _.c("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH}),_.c("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.c("span",null,function(){return b().simpleboxText})))},"Gk");var k_O=_.A(function(N){return _.c("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.c(_.W,{cond:function(){return _.t(N.data().avatar,_.UW)},
then:function(b){return _.c(_.CH,{data:b,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.c("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.c(_.mD,{text:function(){return N.data().teaserText}})))},"Hk");var TM6=_.A(function(N){var b=N.data;var S=N.setTapCommand;_.gA(function(){var P=_.UZ(b().onTap);S(P)},"qxjCCd");
return _.c("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.c(_.kY,{data:function(){return b().teasers}},{commentsEntryPointTeaserViewModel:k_O}))},"Jk");var tLL=_.A(function(N){var b=N.data;var S=N.setTapCommand;_.gA(function(){var P=_.UZ(b().onTap);S(P)},"CRZByf");
return _.c("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.c(_.mD,{text:function(){return b().messageText}}))},"Lk");var MLE=_.A(function(N){var b=N.data;var S=N.setTapCommand;var P=N.isDisabled;_.gA(function(){var H=(P==null?0:P())?void 0:_.UZ(b().onTap);S(H)},"GZxRqd");
return _.c("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.c(_.cX,{icon:function(){return b().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.c(_.W,{cond:function(){return b().image},
then:function(H){return _.c(_.gG,{data:H,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.c(_.mD,{text:function(){return b().text},
className:function(){return b().image||b().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.c(_.kY,{data:function(){return b().button}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:P==null?void 0:P()}}})}}))},"Nk");var Fsi=_.A(function(N){var b=N.data;var S=N.itemIndex;var P=N.selectedIndex;var H=N.indexUpdatedCallback;var K=N.observer;N=N.title;var C=_.Ct("yt-carousel-item-view-model",function(d){K&&K().observe(d)}),G=function(d){S()===P()&&H(d)},a=_.nU(nRq),R=_.nU(_.pTf),n=function(){var d,m,k,M,l;
return((d=b())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!a()||((m=b())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((k=R())==null?void 0:k.includes("PAposts_by_host"))||((M=b())==null?void 0:M.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((l=R())==null?void 0:l.includes("PAyouchat"))};
return _.c("yt-carousel-item-view-model",{el:C,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":N},_.c(_.kY,{data:function(){var d,m;return(m=(d=_.t(b().carouselItem,Gqw))==null?void 0:d.textCarousel)!=null?m:b().carouselItem}},{textCarouselItemViewModel:function(d){return _.c(MLE,{data:d.data,
setTapCommand:G,isDisabled:n})},
commentTeaserCarouselItemViewModel:function(d){return _.c(TM6,{data:d.data,setTapCommand:G})},
commentInputBoxCarouselItemViewModel:function(d){return _.c(mda,{data:d.data,setTapCommand:G})},
commentsEntryPointMessageViewModel:function(d){return _.c(tLL,{data:d.data,setTapCommand:G})}}))},"Ok");var BM5=_.A(function(N){var b=N.numDots;var S=N.activeIndex;return _.c("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.c(_.zj,{each:function(){return Array.from({length:b()})},
keyBy:"INDEX"},function(P,H){return _.c("div",{class:function(){var K={};return _.ff("ytCarouselDotsShapeDot",(K.ytCarouselDotsShapeDotActive=H===S(),K))}})}))},"Pk");var l5n=_.A(function(N){var b=N.data;var S=N.handleCarouselNavigation;var P=N.numItems;var H=N.selectedIndex;var K=function(){return{disabled:H()===0}},C=function(){return{disabled:H()===P()-1}};
return _.c("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.c("div",null,_.c("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return b().title}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(G){return _.c("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return b().subtitleAccessibilityText}},G)}})),_.c(_.W,{cond:function(){return P()>1},
then:function(){return _.c("div",{class:"ytCarouselTitleViewModelNavigation"},_.c(BM5,{numDots:P,activeIndex:H}),_.c(_.W,{cond:function(){return b().previousButton},
then:function(G){return _.c(_.kY,{data:G},{buttonViewModel:function(a){return _.c(_.j$,{data:a.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(-1)},
buttonOverrides:K})}})}}),_.c(_.W,{cond:function(){return b().nextButton},
then:function(G){return _.c(_.kY,{data:G},{buttonViewModel:function(a){return _.c(_.j$,{data:a.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(1)},
buttonOverrides:C})}})}}))}}))},"Qk");_.qu(_.A(function(N){var b=N.data;var S,P=_.Ct("yt-video-metadata-carousel-view-model"),H=_.Ct("div",function(V){var g=function(){var e=V.offsetWidth*l(),se=24*(l()-1);m(e+se)};
g();window.ResizeObserver&&(S=new ResizeObserver(g),S.observe(V))}),K=_.Vg("HTML_DIR")==="rtl",C=!1,G=0,a=0;
N=_.O(_.QF(0,void 0,"M49TDf"));var R=N.next().value,n=N.next().value;N=_.O(_.QF(0,void 0,"zLIok"));var d=N.next().value,m=N.next().value;N=_.O(_.QF(!1,void 0,"bhelhc"));var k=N.next().value,M=N.next().value,l=function(){var V,g,e;return(e=(V=b())==null?void 0:(g=V.carouselTitles)==null?void 0:g.length)!=null?e:0},u=function(){H.value&&H.value.scrollLeft!==G&&n((K?H.value.scrollLeft<G:H.value.scrollLeft>G)?Math.min(R()+1,l()-1):Math.max(R()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(V){V=_.O(V);for(var g=V.next();!g.done;g=V.next())if(g.value.isIntersecting){if(C){C=!1;break}u()}else n(a)},{threshold:.2}));
_.gA(function(){if(H.value){var V=(K?-1:1)*(d()/l()+12)*(k()&&J?a:R());typeof H.value.scrollTo==="function"?H.value.scrollTo({left:V,behavior:"smooth"}):H.value.scrollLeft=V;G=V;a=k()&&J?a:R()}},"s9rbgc");
var Z,D=function(V){Z=V};
_.ej(function(){var V;(V=S)==null||V.disconnect();var g;(g=J)==null||g.disconnect()});
var Y=function(V){V=R()+V;V>=0&&V<l()&&(C=!0,n(V))};
return _.c("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:P,"on:click":_.Ob(function(V){if(_.Qw(_.uK(V),P.value,["BUTTON".toString()])||!Z)return!1;_.aN().resolve(_.Wq).resolveCommand(Z,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Ob(function(){M(!0);return!1}),
"on:touchend":_.Ob(function(){J||u();M(!1);return!1}),
hidden:function(){var V,g;return!((V=b())==null?0:(g=V.carouselItems)==null?0:g.length)}},_.c("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.c(_.W,{cond:function(){return b().carouselTitles},
then:function(V){return _.c(_.kY,{data:function(){return V()[k()&&J?a:R()]}},{carouselTitleViewModel:function(g){return _.c(l5n,{data:g.data,
handleCarouselNavigation:Y,numItems:l,selectedIndex:R})}})}})),_.c("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:H},_.c("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+d()+"px;"}},_.c(_.W,{cond:function(){return b().carouselItems},
then:function(V){return _.c(_.zj,{each:V},function(g,e){return _.c(_.kY,{data:function(){return g}},{carouselItemViewModel:function(se){return _.c(Fsi,{data:se.data,
itemIndex:e,selectedIndex:R,indexUpdatedCallback:D,observer:J,title:function(){a:{var Ca=e();var ML,na=(ML=b())==null?void 0:ML.carouselTitles;if(na&&(Ca=na[Ca])){var To;Ca=(To=_.t(Ca,CkL))==null?void 0:To.title;break a}Ca=void 0}return Ca}})}})})}}))))},"Sk"),"yt-video-metadata-carousel-view-model",{props:{data:_.kg}});var Lsi=_.T("web_action_buttons_update_owner_width")?32:12,$5=function(){var N=_.z.apply(this,arguments)||this;N.isHovering=!1;N.enableColorSampling=_.T("web_delhi_colorful_sd");N.metadataBadgesInDescription=_.T("web_metadata_badges_in_description");N.descriptionCollapsed=!0;N.useFadedScrimDescription=_.T("kevlar_enable_faded_scrim_on_description");N.skinnyMode=!1;N.playlist=!1;N.isDark=document.documentElement.hasAttribute("dark");N.disableVideoOwnerOnTap=_.T("swatchie_video_owner_on_tap_ks");N.swatcherooDelayLoad=
_.T("swatcheroo_enable_ghost_cards");N.primaryMenuWidth=0;N.videoId="";N.titleHeadlineXs=_.T("web_watch_typography_title_headline_xs");N.titleHeadlineS=_.T("web_watch_typography_title_headline_s");N.titleHeadlineM=_.T("web_watch_typography_title_headline_m");N.titleHashtagBlackLinkified=_.T("web_title_hashtag_black_linkified");N.titleHashtagGreyLinkified=_.T("web_title_hashtag_grey_linkified");N.actionButtonsUpdateOwnerWidth=_.T("web_action_buttons_update_owner_width");N.shouldForceIconOnly=!1;N.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};N.isFullscreen=!1;N.isTheaterMode=!1;return N};
_.F($5,_.z);_.v=$5.prototype;_.v.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.v.updateOwnerAndDescriptionPosition=function(){_.T("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),kB(this.bottomRowElement,this.ownerElement)):(kB(this.bottomRowElement,this.descriptionElement),kB(this.topRowElement,this.ownerElement)))};
_.v.titleOnTap=function(N){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||this.handleExpandDescriptionCommands()}};
_.v.videoOwnerOnTap=function(N){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.v.detached=function(){var N=this,b;return _.r(function(S){(b=N.resizeObserver)==null||b.disconnect();_.Zd(S)})};
_.v.maybeAttachResizeObserver=function(){var N=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.GR(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){N.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.v.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var N=this.hostElement.clientWidth,b=Math.max(this.largerItemWrap?400:350,N/2-Lsi);_.T("web_action_buttons_update_owner_width")&&(b=this.ownerElement.clientWidth+Lsi);this.actionsOnSeparateLine=this.primaryMenuWidth>N-b?!0:!1}};
_.v.stripAttributedDescription=function(N){return{content:N.content.replace(/[\r\n]{2,}/g,"\n")}};
_.v.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.T("web_modern_buttons"),forceIconButton:!_.T("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:!0},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},infoPanelBelowMetadata:{id:"middle-row",
mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.v.videoPrimaryInfoRendererChanged=function(){var N;if((N=this.videoPrimaryInfoRenderer)==null?0:N.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.v.videoSecondaryInfoRendererChanged=function(){var N,b;(N=this.descriptionInlineExpander)==null||(b=N.collapse)==null||b.call(N);this.descriptionExpandClientVe=_.OW(110509);this.descriptionCollapseClientVe=_.OW(110510);N=_.Qh();b=_.uZ();N&&b&&(_.T("combine_ve_grafts")?(_.Ew(_.dG(),this.descriptionExpandClientVe,b),_.Ew(_.dG(),this.descriptionCollapseClientVe,b)):_.X8(N,b,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.v.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.v.updateTopLevelIconsOnly=function(){var N=this;_.T("top_level_update_killswitch")||this.menu&&_.Dj.addLowPriorityJob(function(){N.menu.topLevelIconsOnly=N.skinnyMode},_.d7("swathceroo_delay_flexible_menu_update",100))};
_.v.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=!0};
_.v.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.v.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.v.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.v.onYtTextInlineExpanderExpandedChanged=function(){if(!_.T("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var N,b;(b=(N=this.structuredDescriptionContentRendererElement).resize)==null||b.call(N)}};
_.v.onRenderStamperFinished=function(N){(N==null?void 0:N.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.v.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.v.onYtExpanderLessTapped=function(){var N,b=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.showLessCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.v.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.v.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.v.onDescriptionClick=function(N){if(!_.VC(_.V7(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.T("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.v.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.v.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.v.logCollapseClick=function(){var N=_.Qh();N&&this.descriptionCollapseClientVe&&_.y3(N,this.descriptionCollapseClientVe)};
_.v.logExpandClick=function(){var N=_.Qh();N&&this.descriptionExpandClientVe&&_.y3(N,this.descriptionExpandClientVe)};
_.v.collapseDescription=function(){this.descriptionCollapsed=!0};
_.v.scrollToTopOfContainer=function(){_.St(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.v.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.v.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.v.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.v.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var N,b;(b=(N=this.descriptionInlineExpander).resize)==null||b.call(N)}else _.$h(new _.jU("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var S;(S=this.menu)==null||S.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.v.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var N,b,S,P,H=_.T("web_action_buttons_update_owner_width")?(S=(N=_.H4(this.menu).querySelector("#button-shape"))==null?void 0:N.clientWidth)!=null?S:0:(P=(b=_.H4(this.menu).querySelector("#button"))==null?void 0:b.clientWidth)!=null?P:0,K,C;N=((C=(K=_.H4(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:K.clientWidth)!=null?C:0)+8+H;var G,a;H=(a=(G=_.H4(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:G.children.length)!=null?a:2;N<=8*H||(this.primaryMenuWidth=N)}};
_.v.onYtUpdateTitleAction=function(N){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.t(N,wZ6).title)};
_.v.onYtUpdateDescriptionAction=function(N){if(N=_.t(N,_.M69)){var b,S=!((b=this.videoSecondaryInfoRenderer)==null||!b.attributedDescription);N.isEmpty||!N.description&&!N.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):N.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",N.attributedDescription):N.description&&(S?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.xH(N.description)):this.set("videoSecondaryInfoRenderer.description",N.description))}};
_.v.onYtDarkModeToggledAction=function(N){this.isDark=N};
_.v.registerPanel=function(){if(!_.T("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var N=_.T("web_watch_imax_theater_mode")&&this.isTheaterMode;N=_.T("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||N;var b=_.aN().resolve(_.Hn);b&&!N&&b.registerPanel("engagement-panel-structured-description",this)}};
_.v.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.v.parseColorSamplingData=function(){var N;if(_.T("web_delhi_colorful_sd")&&((N=this.structuredDescriptionContentRenderer)==null?0:N.items)&&(N=this.structuredDescriptionContentRenderer.items.find(function(H){return!!_.t(H,BB)}))){var b,S;
this.hoverColor={lightTheme:(b=_.t(N,BB))==null?void 0:b.lightThemeColorPalette,darkTheme:(S=_.t(N,BB))==null?void 0:S.darkThemeColorPalette};var P;this.hoverText=(P=_.t(N,BB))==null?void 0:P.colorSampledDescriptionBodyText}};
_.v.updateHoverColor=function(){if(_.T("web_delhi_colorful_sd")){var N=this.hoverColor,b={},S;N=(S=this.isDark?N==null?void 0:N.darkTheme:N==null?void 0:N.lightTheme)!=null?S:{};S=_.O(ddJ);for(var P=S.next();!P.done;P=S.next()){P=P.value;var H=N[P];b["--yt-saturated-"+_.ci(P)]=H?_.o3(H):"initial"}_.rq(this.hostElement,b)}};
_.v.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.v.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.v.showPanel=function(N){this.expandDescription();var b=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;b.resize();var S,P=N==null?void 0:(S=N.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;P?_.Dj.addJob(function(){b==null||b.scrollToSection(P)},8):this.scrollToTopOfContainer()};
_.v.isVisible=function(){return!this.descriptionCollapsed};
_.v.getReloadContinuation=function(){};
_.v.hidePanel=function(){};
_.v.updatePanel=function(){};
_.d0.Object.defineProperties($5.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var N;return _.T("web_delhi_colorful_sd")&&(N=this.structuredDescriptionContentRenderer)!=null&&N.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(b){return!_.t(b,BB)&&!_.t(b,HwE)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.structuredDescriptionContentRendererComputed)!=null&&N.items){var b;N=_.O((b=this.structuredDescriptionContentRendererComputed)==null?void 0:b.items);for(b=N.next();!b.done;b=N.next())if(b=_.t(b.value,_.WW9))return b}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoPrimaryInfoRenderer)==null?0:N.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!!((N=this.videoSecondaryInfoRenderer)==null?0:(b=N.owner)==null?0:(S=b.videoOwnerRenderer)==null?0:S.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var N,b;if((N=this.videoSecondaryInfoRenderer)==null?0:(b=N.attributedDescription)==null?0:b.content){var S,P;return(P=this.stripAttributedDescription((S=this.videoSecondaryInfoRenderer)==null?void 0:S.attributedDescription))!=null?P:{runs:[]}}}if(_.T("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var H,K,C,G;return(G=(C=(H=this.videoSecondaryInfoRenderer)==
null?void 0:H.description)!=null?C:(K=this.videoSecondaryInfoRenderer)==null?void 0:K.attributedDescription)!=null?G:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.headerRuns)!=null?b:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.commentsEntryPointHeaderRenderer)==null||!N.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoMetadataCarousel)==null||!N.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.d7("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var N,b,S=Object.assign({},(N=this.videoSecondaryInfoRenderer)==null?void 0:(b=N.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0&&!(S.rows.length<=S.collapsedItemCount))return S.rows=S.rows.slice(S.collapsedItemCount),S.collapsedItemCount=0,S}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var N,b,S=Object.assign({},(N=this.videoSecondaryInfoRenderer)==null?void 0:(b=N.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0)return S.rows=S.rows.slice(0,S.collapsedItemCount),S.collapsedItemCount=S.rows.length,S}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.structuredDescriptionContentRendererComputed)==null?0:(b=N.items)==null?0:b.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var N;return(N=this.videoSecondaryInfoRenderer)==null?void 0:N.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.videoSecondaryInfoRenderer)==null?0:(b=N.owner)==null?0:(S=b.videoOwnerRenderer)==null?0:S.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var N,b,S,P;return!!((N=this.videoPrimaryInfoRenderer)==null?0:(b=N.videoActions)==null?0:(S=b.menuRenderer)==null?0:(P=S.flexibleItems)==null?0:P.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.yN(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.yN(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var N=this;if(_.T("web_title_hashtag_grey_delinkified")){var b,S=_.Vm.unsafeClone((b=this.videoPrimaryInfoRenderer)==null?void 0:b.title);(b=S==null?void 0:S.runs)&&b.forEach(function(P){if(P==null?0:P.navigationEndpoint)P.textColor=4284506208,N.isDark&&(P.textColor=4289374890)});
return S}return(S=this.videoPrimaryInfoRenderer)==null?void 0:S.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.T("web_title_hashtag_black_delinkified")||_.T("web_title_hashtag_grey_delinkified")}}});
$5.prototype.updateHoverColor=$5.prototype.updateHoverColor;$5.prototype.parseColorSamplingData=$5.prototype.parseColorSamplingData;$5.prototype.resetDescriptionState=$5.prototype.resetDescriptionState;$5.prototype.registerPanel=$5.prototype.registerPanel;$5.prototype.onYtExpanderLessTapped=$5.prototype.onYtExpanderLessTapped;$5.prototype.onYtExpanderMoreTapped=$5.prototype.onYtExpanderMoreTapped;$5.prototype.onRenderStamperFinished=$5.prototype.onRenderStamperFinished;
$5.prototype.onYtTextInlineExpanderExpandedChanged=$5.prototype.onYtTextInlineExpanderExpandedChanged;$5.prototype.onYtTextInlineExpanderCollapseClicked=$5.prototype.onYtTextInlineExpanderCollapseClicked;$5.prototype.onYtTextInlineExpanderExpandClicked=$5.prototype.onYtTextInlineExpanderExpandClicked;$5.prototype.moveActionsElement=$5.prototype.moveActionsElement;$5.prototype.updateShouldForceIconOnly=$5.prototype.updateShouldForceIconOnly;$5.prototype.updateTopLevelIconsOnly=$5.prototype.updateTopLevelIconsOnly;
$5.prototype.structuredDescriptionContentRendererChanged=$5.prototype.structuredDescriptionContentRendererChanged;$5.prototype.videoSecondaryInfoRendererChanged=$5.prototype.videoSecondaryInfoRendererChanged;$5.prototype.videoPrimaryInfoRendererChanged=$5.prototype.videoPrimaryInfoRendererChanged;$5.prototype.maybeUpdateActionsOnSeparateLine=$5.prototype.maybeUpdateActionsOnSeparateLine;$5.prototype.updateOwnerAndDescriptionPosition=$5.prototype.updateOwnerAndDescriptionPosition;
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],$5.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],$5.prototype,"ytdReduxBehavior",void 0);_.p([_.dq("#above-the-fold"),_.y("design:type",HTMLElement)],$5.prototype,"aboveTheFoldContainer",void 0);_.p([_.dq("#menu ytd-menu-renderer"),_.y("design:type",Object)],$5.prototype,"menu",void 0);_.p([_.dq("#description-inline-expander"),_.y("design:type",Object)],$5.prototype,"descriptionInlineExpander",void 0);
_.p([_.dq("#faded-structured-description"),_.y("design:type",Object)],$5.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.p([_.dq("#structured-description"),_.y("design:type",Object)],$5.prototype,"structuredDescriptionContentRendererElement",void 0);_.p([_.dq("#title"),_.y("design:type",HTMLElement)],$5.prototype,"titleElement",void 0);_.p([_.dq("#description"),_.y("design:type",HTMLElement)],$5.prototype,"descriptionElement",void 0);
_.p([_.dq("#description-interaction"),_.y("design:type",Object)],$5.prototype,"descriptionInteraction",void 0);_.p([_.dq("#owner"),_.y("design:type",HTMLElement)],$5.prototype,"ownerElement",void 0);_.p([_.dq("#top-row"),_.y("design:type",HTMLElement)],$5.prototype,"topRowElement",void 0);_.p([_.dq("#bottom-row"),_.y("design:type",HTMLElement)],$5.prototype,"bottomRowElement",void 0);_.p([_.dq("#actions"),_.y("design:type",HTMLElement)],$5.prototype,"actionsElement",void 0);
_.p([_.dq("#bottom-actions"),_.y("design:type",HTMLElement)],$5.prototype,"bottomActionsElement",void 0);_.p([_.dq("#ytd-watch-info-text"),_.y("design:type",Object)],$5.prototype,"watchInfoTextElement",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"videoSecondaryInfoRenderer",void 0);
_.p([_.U(),_.y("design:type",Object)],$5.prototype,"commentsEntryPointHeaderRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"videoMetadataCarousel",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"structuredDescriptionContentRenderer",void 0);_.p([_.f("structuredDescriptionContentRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"structuredDescriptionContentRendererComputed",null);
_.p([_.U(),_.y("design:type",Object)],$5.prototype,"videoSummary",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"merchShelf",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"infoPanelBelowMetadata",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"hoverColor",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"hoverText",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"isHovering",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"enableColorSampling",void 0);_.p([_.f("structuredDescriptionContentRendererComputed"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"productShelf",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"metadataBadgesInDescription",void 0);_.p([_.f("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"shouldHideBadges",null);
_.p([_.f("productShelf","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"shouldShowProductShelf",null);_.p([_.U(),_.y("design:type",Boolean)],$5.prototype,"isWatchFlexy",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"descriptionCollapsed",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$5.prototype,"useFadedScrimDescription",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"skinnyMode",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"largerItemWrap",null);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"playlist",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"clarifyBox",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"playerAds",void 0);
_.p([_.U(),_.y("design:type",Boolean)],$5.prototype,"isDark",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],$5.prototype,"actionsOnSeparateLine",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"disableVideoOwnerOnTap",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"swatcherooDelayLoad",void 0);_.p([_.U(),_.y("design:type",Boolean)],$5.prototype,"suppressTopLevelMetadataRows",void 0);
_.p([_.U(),_.y("design:type",Object)],$5.prototype,"primaryMenuWidth",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"videoId",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"titleHeadlineXs",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"titleHeadlineS",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"titleHeadlineM",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"titleHashtagBlackLinkified",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"titleHashtagGreyLinkified",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.p([_.U(),_.y("design:type",Object)],$5.prototype,"shouldForceIconOnly",void 0);
_.p([_.t_("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"updateOwnerAndDescriptionPosition",null);_.p([_.t_("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.p([_.f("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"descriptionText",null);_.p([_.f("videoSecondaryInfoRenderer.headerRuns"),_.y("design:type",Array),_.y("design:paramtypes",[])],$5.prototype,"headerRuns",null);
_.p([_.U({value:!1}),_.f("commentsEntryPointHeaderRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"hasTeaser",null);_.p([_.U({value:!1,reflectToAttribute:!0}),_.f("videoMetadataCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"hasTeaserCarousel",null);_.p([_.U({value:3}),_.f("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"descriptionMaxLines",null);
_.p([_.f("videoSecondaryInfoRenderer.metadataRowContainer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"collapsibleMetadataRows",null);_.p([_.f("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"alwaysVisibleMetadataRows",null);
_.p([_.f("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"hasInlineStructuredDescription",null);_.p([_.f("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"showInlineStructuredDescription",null);
_.p([_.f("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"descriptionExpandCommand",null);_.p([_.f("videoSecondaryInfoRenderer.owner"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"videoOwnerCommand",null);_.p([_.U({reflectToAttribute:!0}),_.f("videoPrimaryInfoRenderer.videoActions"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"flexMenuEnabled",null);
_.p([_.U({selector:_.x9,reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"isFullscreen",void 0);_.p([_.U({selector:_.QC,reflectToAttribute:!0}),_.y("design:type",Object)],$5.prototype,"isTheaterMode",void 0);_.p([_.f("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"showAttributedStringDescription",null);
_.p([_.f("descriptionText","useFadedScrimDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"showFormattedStringDescription",null);_.p([_.f("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],$5.prototype,"showFadedStructuredDescription",null);
_.p([_.t_("videoPrimaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"videoPrimaryInfoRendererChanged",null);_.p([_.f("videoPrimaryInfoRenderer.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"videoTitle",null);_.p([_.f("videoPrimaryInfoRenderer"),_.y("design:type",Object),_.y("design:paramtypes",[])],$5.prototype,"noEndpoints",null);
_.p([_.t_("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"videoSecondaryInfoRendererChanged",null);_.p([_.W4("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"structuredDescriptionContentRendererChanged",null);
_.p([_.W4("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"updateTopLevelIconsOnly",null);_.p([_.W4("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"updateShouldForceIconOnly",null);_.p([_.W4("skinnyMode"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"moveActionsElement",null);
_.p([_.RA("yt-text-inline-expander-expand-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"onYtTextInlineExpanderExpandClicked",null);_.p([_.RA("yt-text-inline-expander-collapse-clicked"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.p([_.RA("yt-text-inline-expander-expanded-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],$5.prototype,"onRenderStamperFinished",null);
_.p([_.RA("yt-expander-more-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"onYtExpanderMoreTapped",null);_.p([_.RA("yt-expander-less-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"onYtExpanderLessTapped",null);
_.p([_.W4("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"registerPanel",null);_.p([_.W4("videoSecondaryInfoRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"resetDescriptionState",null);
_.p([_.W4("structuredDescriptionContentRenderer"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"parseColorSamplingData",null);_.p([_.W4("hoverColor","isDark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$5.prototype,"updateHoverColor",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-watch-metadata"})],$5);
_.X($5,"ytd-watch-metadata",function(){if(n15!==void 0)return n15;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return n15=N},{mode:2});var hx=function(){var N=_.z.apply(this,arguments)||this;N.hidden=!1;N.errorScreen=null;N.playlistData={};return N};
_.F(hx,_.z);_.v=hx.prototype;_.v.getPlayer=function(){return this.ytdPlayer};
_.v.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:GP(["aa","eocs"])}}};
_.v.onActiveChanged=function(){_.h0().dispatch(zdn(this.ytPageBehavior.active))};
_.v.playerDataChanged=function(){var N;(N=this.watchController)==null||N.setPlayerResponse(this.playerData)};
_.v.dataChanged=function(){var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)};
_.v.sizeChanged=function(){var N,b;(b=(N=this.metadata).resize)==null||b.call(N)};
_.v.attached=function(){this.watchController=new yX(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.v.detached=function(){_.Wv(this.watchController);this.watchController=void 0};
_.v.getPlayerContainer=function(){return this.playerContainer};
_.v.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.v.provideRenderingData=function(N,b){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=b;break;case "ERROR_SCREEN":this.errorScreen=b!=null?b:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=b;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=b;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=b;break;case "RICH_METADATA":this.richMetadataRowContainer=b;break;case "CLARIFICATION":this.clarificationData=b;break;case "PLAYLIST":this.playlistData=
b!=null?b:{};break;case "MERCH_SHELF":this.merchShelf=b;break;case "TICKET_SHELF":this.ticketShelf=b;break;case "LIMITED_STATE":this.limitedState=b;break;case "DONATION_SHELF":this.donationShelf=b;break;case "ALERTS":this.alerts=b}};
_.d0.Object.defineProperties(hx.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return!this.hidden&&!!((N=this.data)==null?0:(b=N.contents)==null?0:(S=b.twoColumnWatchNextResults)==null?0:S.conversationBar)}}});
hx.prototype.sizeChanged=hx.prototype.sizeChanged;hx.prototype.dataChanged=hx.prototype.dataChanged;hx.prototype.playerDataChanged=hx.prototype.playerDataChanged;hx.prototype.onActiveChanged=hx.prototype.onActiveChanged;_.p([_.L(Bj.YtPageBehavior),_.y("design:type",Object)],hx.prototype,"ytPageBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],hx.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"playerData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"hidden",void 0);_.p([_.dq("#ytd-player"),_.y("design:type",HTMLElement)],hx.prototype,"ytdPlayer",void 0);_.p([_.dq("#player-container"),_.y("design:type",HTMLElement)],hx.prototype,"playerContainer",void 0);_.p([_.dq("#metadata"),_.y("design:type",Object)],hx.prototype,"metadata",void 0);_.p([_.dq("#playlist"),_.y("design:type",HTMLElement)],hx.prototype,"playlistPanel",void 0);
_.p([_.U({selector:Wna,reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"fixie",void 0);_.p([_.U({selector:_.Ezb,reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"singleColumn",void 0);_.p([_.U({selector:function(N){return _.QC(N)&&!_.x9(N)},
reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"theater",void 0);_.p([_.U({selector:_.x9,reflectToAttribute:!0}),_.y("design:type",Object)],hx.prototype,"fullscreen",void 0);_.p([_.U({selector:Rza}),_.y("design:type",Object)],hx.prototype,"windowSize",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"singleColumnContents",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"errorScreen",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"playlistData",void 0);
_.p([_.U(),_.y("design:type",Object)],hx.prototype,"videoPrimaryInfoRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"videoSecondaryInfoRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"richMetadataRowContainer",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"clarificationData",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"commentsEntryPointHeaderRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"ticketShelf",void 0);
_.p([_.U(),_.y("design:type",Object)],hx.prototype,"merchShelf",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"donationShelf",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"limitedState",void 0);_.p([_.U(),_.y("design:type",Object)],hx.prototype,"alerts",void 0);_.p([_.f("playlistData"),_.y("design:type",Object),_.y("design:paramtypes",[])],hx.prototype,"hasPlaylistData",null);
_.p([_.f("data","hidden"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],hx.prototype,"hasChat",null);_.p([_.W4("active"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hx.prototype,"onActiveChanged",null);_.p([_.W4("playerData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hx.prototype,"playerDataChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hx.prototype,"dataChanged",null);_.p([_.W4("windowSize","singleColumn"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],hx.prototype,"sizeChanged",null);
_.X(hx,"ytd-watch-fixie",function(){if(DGJ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);DGJ=N}N=DGJ;return N},{mode:1});var f5L;var qw=function(){var N=_.z.apply(this,arguments)||this;N.viewTransitionEnabled=_.T("enable_player_resize_transition");N.smallerChatMinHeight=_.T("live_chat_smaller_min_height");N.isDarkTheme=document.documentElement.hasAttribute("dark");N.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");N.respectAspectRatio=_.T("web_enable_aspect_ratio_fix");N.retroModeReduxValue=!1;N.persistentPanelVisibleValue=!1;return N};
_.F(qw,_.z);_.v=qw.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateRetroModeReduxValue=function(){_.T("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.v.updatePersistentPanelVisibleValue=function(){_.T("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.v.ready=function(){var N=this,b=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(N){_.T("web_watch_update_narrow_width_killswitch")||_.h0().dispatch(Aqo(!N.detail.value));this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.v.updateShownItemsFromBinding=function(N){N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value};
_.v.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22096_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22096_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.d0.Object.defineProperties(qw.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(N=_.t(this.data.pageVisualEffects[b],Ms))return b=void 0,(b=N.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.d0.Object.defineProperties(qw,{template:{configurable:!0,enumerable:!0,get:function(){if(f5L===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);f5L=N}N=f5L;return N}}});
qw.prototype.updatePersistentPanelVisibleValue=qw.prototype.updatePersistentPanelVisibleValue;qw.prototype.updateRetroModeReduxValue=qw.prototype.updateRetroModeReduxValue;qw.prototype.updateScrollTopValue=qw.prototype.updateScrollTopValue;qw.prototype.updateFullscreenValue=qw.prototype.updateFullscreenValue;qw.prototype.updateTheaterValue=qw.prototype.updateTheaterValue;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.p([_.L(pj5.YtdWatchBehavior),_.y("design:type",Object)],qw.prototype,"ytdWatchBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],qw.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qw.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],qw.prototype,"playerData",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qw.prototype,"viewTransitionEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qw.prototype,"smallerChatMinHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qw.prototype,"isDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],qw.prototype,"defaultCollapsePlaylist",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qw.prototype,"respectAspectRatio",void 0);
_.p([_.U({selector:_.QC}),_.y("design:type",Object)],qw.prototype,"theaterValue",void 0);_.p([_.U({selector:_.x9}),_.y("design:type",Object)],qw.prototype,"fullscreenValue",void 0);_.p([_.U({selector:s6}),_.y("design:type",Object)],qw.prototype,"scrollTopValue",void 0);_.p([_.U({selector:_.op}),_.y("design:type",Object)],qw.prototype,"miniplayerIsActive",void 0);_.p([_.U({selector:function(N){return N.watch.isWatchRetroMode}}),
_.y("design:type",Object)],qw.prototype,"retroModeReduxValue",void 0);_.p([_.U({selector:_.pf.persistentPanelVisibleSelector}),_.y("design:type",Object)],qw.prototype,"persistentPanelVisibleValue",void 0);_.p([HJ("ytd-player"),_.y("design:type",HTMLElement)],qw.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.y("design:type",HTMLElement)],qw.prototype,"JSC$22096_ytdPlaylistPanelRenderer",void 0);_.p([HJ("ytd-comments"),_.y("design:type",HTMLElement)],qw.prototype,"ytdComments",void 0);
_.p([_.dq("#primary"),_.y("design:type",HTMLElement)],qw.prototype,"primary",void 0);_.p([_.dq("#secondary"),_.y("design:type",HTMLElement)],qw.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.y("design:type",HTMLElement)],qw.prototype,"playerContainer",void 0);_.p([_.dq("#below"),_.y("design:type",HTMLElement)],qw.prototype,"below",void 0);_.p([_.dq("#cinematics"),_.y("design:type",HTMLElement)],qw.prototype,"JSC$22096_cinematics",void 0);
_.p([_.dq("#persistent-panel-container"),_.y("design:type",HTMLElement)],qw.prototype,"persistentPanelContainer",void 0);_.p([_.W4("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qw.prototype,"updateTheaterValue",null);_.p([_.W4("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qw.prototype,"updateFullscreenValue",null);
_.p([_.W4("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qw.prototype,"updateScrollTopValue",null);_.p([_.W4("retroModeReduxValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qw.prototype,"updateRetroModeReduxValue",null);_.p([_.W4("persistentPanelVisibleValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qw.prototype,"updatePersistentPanelVisibleValue",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qw.prototype,"cinematicLightTheme",null);_.p([_.Uj({is:"ytd-watch-flexy"})],qw);var upQ;var QC_;var xdi=function(){return _.z.apply(this,arguments)||this};
_.F(xdi,_.z);_.p([_.Uj({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],xdi);
_.X(xdi,"ytd-ghost-comments-renderer",function(){if(QC_===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);QC_=N}N=QC_;return N},{mode:1});var o1t;var iBJ=function(){return _.z.apply(this,arguments)||this};
_.F(iBJ,_.z);_.p([_.Uj({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],iBJ);
_.X(iBJ,"ytd-ghost-watch-metadata-renderer",function(){if(o1t===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);o1t=N}N=o1t;return N},{mode:1});var wm=function(){var N=_.z.apply(this,arguments)||this;N.ghostGridRenderer={rows:6};N.smallerChatMinHeight=_.T("live_chat_smaller_min_height");N.darkerPanels=_.T("web_watch_darker_panels");N.isDarkTheme=document.documentElement.hasAttribute("dark");return N};
_.F(wm,_.z);_.v=wm.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var N=this,b=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(N){this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.v.updateShownItemsFromBinding=function(N){_.T("swatcheroo_direct_use_rich_grid")||(N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value)};
_.v.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22101_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22101_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.d0.Object.defineProperties(wm.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(N=_.t(this.data.pageVisualEffects[b],Ms))return b=void 0,(b=N.config)==null?void 0:b.enableInLightTheme;return!1}}});
wm.prototype.updateMiniplayerIsActiveValue=wm.prototype.updateMiniplayerIsActiveValue;wm.prototype.updateScrollTopValue=wm.prototype.updateScrollTopValue;wm.prototype.updateFullscreenValue=wm.prototype.updateFullscreenValue;wm.prototype.updateTheaterValue=wm.prototype.updateTheaterValue;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);
_.p([_.L(pj5.YtdWatchBehavior),_.y("design:type",Object)],wm.prototype,"ytdWatchBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],wm.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wm.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],wm.prototype,"ghostGridRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],wm.prototype,"playerData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],wm.prototype,"smallerChatMinHeight",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],wm.prototype,"darkerPanels",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],wm.prototype,"isDarkTheme",void 0);_.p([_.U({selector:_.QC}),_.y("design:type",Object)],wm.prototype,"theaterValue",void 0);_.p([_.U({selector:_.x9}),_.y("design:type",Object)],wm.prototype,"fullscreenValue",void 0);_.p([_.U({selector:s6}),_.y("design:type",Object)],wm.prototype,"scrollTopValue",void 0);
_.p([_.U({selector:_.op}),_.y("design:type",Object)],wm.prototype,"miniplayerIsActiveValue",void 0);_.p([_.dq("#ytd-player"),_.y("design:type",HTMLElement)],wm.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.y("design:type",HTMLElement)],wm.prototype,"JSC$22101_ytdPlaylistPanelRenderer",void 0);_.p([_.dq("#ytd-comments"),_.y("design:type",HTMLElement)],wm.prototype,"ytdComments",void 0);_.p([_.dq("#primary"),_.y("design:type",HTMLElement)],wm.prototype,"primary",void 0);
_.p([_.dq("#secondary"),_.y("design:type",HTMLElement)],wm.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.y("design:type",HTMLElement)],wm.prototype,"playerContainer",void 0);_.p([_.dq("#cinematics"),_.y("design:type",HTMLElement)],wm.prototype,"JSC$22101_cinematics",void 0);_.p([_.W4("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wm.prototype,"updateTheaterValue",null);
_.p([_.W4("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wm.prototype,"updateFullscreenValue",null);_.p([_.W4("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wm.prototype,"updateScrollTopValue",null);_.p([_.W4("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wm.prototype,"updateMiniplayerIsActiveValue",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],wm.prototype,"cinematicLightTheme",null);
_.X(wm,"ytd-watch-grid",function(){if(upQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);upQ=N}N=upQ;return N},{mode:2});var JGL;var NG=function(){var N=_.z.apply(this,arguments)||this;N.flexy=!0;N.learningJourney=!0;N.viewTransitionEnabled=_.T("enable_player_resize_transition");N.smallerChatMinHeight=_.T("live_chat_smaller_min_height");N.isDarkTheme=document.documentElement.hasAttribute("dark");N.theaterLargerPlayer=_.T("web_watch_theater_larger_player");N.defaultCollapsePlaylist=_.T("web_watch_default_collapse_playlist");N.enableCanvasLayout=_.T("web_enable_canvas_on_learning_journey");return N};
_.F(NG,_.z);_.v=NG.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var N=this,b=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(N){_.T("web_watch_update_narrow_width_killswitch")||_.h0().dispatch(Aqo(!N.detail.value));this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.v.updateShownItemsFromBinding=function(N){N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value};
_.v.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22104_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22104_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.d0.Object.defineProperties(NG.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(N=_.t(this.data.pageVisualEffects[b],Ms))return b=void 0,(b=N.config)==null?void 0:b.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.learningJourneyEngagementPanels)==null?void 0:N.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.learningJourneyEngagementPanels)==null?void 0:N.find(function(m){var k;return(m==null?void 0:(k=m.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="learning-journey-engagement-panel"});
if(b){var S,P,H,K,C,G,a,R,n;if(N=(R=((a=(C=((K=b==null?void 0:(S=b.engagementPanelSectionListRenderer)==null?void 0:(P=S.content)==null?void 0:(H=P.sectionListRenderer)==null?void 0:H.contents)!=null?K:[])[0])==null?void 0:(G=C.itemSectionRenderer)==null?void 0:G.contents)!=null?a:[])[0])==null?void 0:(n=R.accordionViewModel)==null?void 0:n.onTitleTap){var d=_.UZ(N);if(d)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.rG.instance.resolveCommand(d)}}}}}}});
_.d0.Object.defineProperties(NG,{template:{configurable:!0,enumerable:!0,get:function(){if(JGL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);JGL=N}N=JGL;return N}}});
NG.prototype.updateMiniplayerIsActiveValue=NG.prototype.updateMiniplayerIsActiveValue;NG.prototype.updateScrollTopValue=NG.prototype.updateScrollTopValue;NG.prototype.updateFullscreenValue=NG.prototype.updateFullscreenValue;NG.prototype.updateTheaterValue=NG.prototype.updateTheaterValue;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);
_.p([_.L(dga.YtdLearningJourneyWatchBehavior),_.y("design:type",Object)],NG.prototype,"ytdWatchBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],NG.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],NG.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],NG.prototype,"playerData",void 0);_.p([_.U(),_.y("design:type",Object)],NG.prototype,"browseData",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"flexy",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"learningJourney",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"viewTransitionEnabled",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"smallerChatMinHeight",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"isDarkTheme",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],NG.prototype,"theaterLargerPlayer",void 0);_.p([_.U(),_.y("design:type",Object)],NG.prototype,"defaultCollapsePlaylist",void 0);_.p([_.U(),_.y("design:type",Object)],NG.prototype,"enableCanvasLayout",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("playerData","browseData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NG.prototype,"showBrowseResponse",null);
_.p([_.U({reflectToAttribute:!0}),_.f("playerData","enableCanvasLayout"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],NG.prototype,"showWatchResponse",null);_.p([_.U({selector:_.QC}),_.y("design:type",Object)],NG.prototype,"theaterValue",void 0);_.p([_.U({selector:_.x9}),_.y("design:type",Object)],NG.prototype,"fullscreenValue",void 0);_.p([_.U({selector:s6}),_.y("design:type",Object)],NG.prototype,"scrollTopValue",void 0);
_.p([_.U({selector:_.op}),_.y("design:type",Object)],NG.prototype,"miniplayerIsActiveValue",void 0);_.p([_.dq("#ytd-plj-player"),_.y("design:type",HTMLElement)],NG.prototype,"ytdPlayer",void 0);_.p([_.dq("#playlist"),_.y("design:type",HTMLElement)],NG.prototype,"JSC$22104_ytdPlaylistPanelRenderer",void 0);_.p([HJ("ytd-comments"),_.y("design:type",HTMLElement)],NG.prototype,"ytdComments",void 0);_.p([_.dq("#primary"),_.y("design:type",HTMLElement)],NG.prototype,"primary",void 0);
_.p([_.dq("#secondary"),_.y("design:type",HTMLElement)],NG.prototype,"secondary",void 0);_.p([_.dq("#player-container"),_.y("design:type",HTMLElement)],NG.prototype,"playerContainer",void 0);_.p([_.dq("#cinematics"),_.y("design:type",HTMLElement)],NG.prototype,"JSC$22104_cinematics",void 0);_.p([_.W4("theaterValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NG.prototype,"updateTheaterValue",null);
_.p([_.W4("fullscreenValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NG.prototype,"updateFullscreenValue",null);_.p([_.W4("scrollTopValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NG.prototype,"updateScrollTopValue",null);_.p([_.W4("miniplayerIsActiveValue"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],NG.prototype,"updateMiniplayerIsActiveValue",null);
_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],NG.prototype,"cinematicLightTheme",null);_.p([_.U({reflectToAttribute:!0}),_.f("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],NG.prototype,"hasLearningJourneyPanels",null);_.p([_.f("learningJourneyEngagementPanels"),_.y("design:type",Object),_.y("design:paramtypes",[])],NG.prototype,"backButtonData",null);_.p([_.Uj({is:"ytd-watch-learning-journey"})],NG);var Ud6;var bq=function(){var N=_.z.apply(this,arguments)||this;N.useListItemStyles=_.T("web_list_item_style_for_menu_items");N.systemIcons=_.T("kevlar_system_icons");return N};
_.F(bq,_.z);_.v=bq.prototype;_.v.ready=function(){this.hostElement.addEventListener("tap",_.aA(this,this.onEndpointTapExtra))};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var N;(N=_.H4(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.v.onEndpointTapExtra=function(N){_.bC(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&_.t(b,_.OlE)&&(N.stopPropagation(),_.sR(this.hostElement,[b],this.hostElement))};
_.v.computeIcon=function(N){return N&&N.iconType?_.C7(N.iconType):""};
_.v.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.rq(this.hostElement)};
bq.prototype.forceUpdateStylesOnLegacyBrowsers=bq.prototype.forceUpdateStylesOnLegacyBrowsers;bq.prototype.onFocus=bq.prototype.onFocus;_.p([_.L(_.u$),_.y("design:type",Object)],bq.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.djE.YtConditionalRendererBehavior),_.y("design:type",Object)],bq.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],bq.prototype,"ytEndpointBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],bq.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],bq.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],bq.prototype,"useIcons",void 0);_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],bq.prototype,"hasSeparator",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bq.prototype,"useListItemStyles",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],bq.prototype,"systemIcons",void 0);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bq.prototype,"onFocus",null);_.p([_.W4("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bq.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(bq,"ytd-menu-navigation-item-renderer",function(){if(Ud6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);Ud6=N}N=Ud6;return N},{mode:1});var ZBt;var jCi=_.gy(_.cN("DOWNLOAD",{},"Download")),zD5=_.gy(_.cN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),AGi=_.gy(_.cN("RETRY",{},"Retry")),Xgi=_.gy(_.cN("PAUSE_DOWNLOADING",{},"Pause downloading")),E1t=_.gy(_.cN("RESUME_DOWNLOAD",{},"Resume download")),SN=function(){var N=_.z.apply(this,arguments)||this;N.primaryText=jCi;N.primaryIconType="OFFLINE_DOWNLOAD";N.hasSecondaryContent=!1;N.hasSeparator=!1;N.transferState="TRANSFER_STATE_UNKNOWN";N.isVideoDeletedByUser=!1;N.isHidden=!1;N.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return N};
_.F(SN,_.z);_.v=SN.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){this.primaryEntry.focus()};
_.v.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.v.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.v.getRemoveAction=function(){return"ACTION_REMOVE"};
_.v.sendOfflineAction=function(N){var b=this.data.serviceEndpoint;if(b){var S=_.t(b,_.a2);S&&N&&(S.action=N);this.ytComponentBehavior.resolveCommand(b)}};
_.v.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=jCi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=jCi;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=AGi;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=zD5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=E1t;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=zD5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Xgi;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=zD5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=zD5;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=jCi,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.v.showHideButton=function(){var N;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((N=this.playerStateEntity)==null?void 0:N.adsState)==="ADS_STATE_PLAYING"};
_.v.isSecondaryEntryHidden=function(N,b){return N?!0:!b};
_.v.computeHasSeparator=function(){var N;return!((N=this.data)==null||!N.hasSeparator)};
_.v.computePlayerStateEntityKey=function(N){return N};
SN.prototype.showHideButton=SN.prototype.showHideButton;SN.prototype.onTransferStateChange=SN.prototype.onTransferStateChange;SN.prototype.onFocus=SN.prototype.onFocus;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],SN.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],SN.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],SN.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],SN.prototype,"primaryText",void 0);_.p([_.U(),_.y("design:type",String)],SN.prototype,"primaryIconType",void 0);_.p([_.U(),_.y("design:type",String)],SN.prototype,"primaryAction",void 0);_.p([_.U(),_.y("design:type",Object)],SN.prototype,"secondaryText",void 0);_.p([_.U(),_.y("design:type",String)],SN.prototype,"secondaryIconType",void 0);
_.p([_.U(),_.y("design:type",String)],SN.prototype,"secondaryAction",void 0);_.p([_.U(),_.y("design:type",Object)],SN.prototype,"hasSecondaryContent",void 0);_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Object)],SN.prototype,"hasSeparator",void 0);_.p([_.U({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.y("design:type",String)],SN.prototype,"playerStateEntityKey",void 0);
_.p([_.U({selector:_.vX,selectorArgs:["playerStateEntityKey"]}),_.y("design:type",Object)],SN.prototype,"playerStateEntity",void 0);_.p([_.U({selector:_.UI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",String)],SN.prototype,"transferState",void 0);_.p([_.U({selector:_.sHf,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],SN.prototype,"isVideoDeletedByUser",void 0);
_.p([_.U(),_.y("design:type",Object)],SN.prototype,"isHidden",void 0);_.p([_.U({selector:_.qQu,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.y("design:type",Object)],SN.prototype,"offlineabilityState",void 0);_.p([_.dq("#primary-entry"),_.y("design:type",Object)],SN.prototype,"primaryEntry",void 0);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SN.prototype,"onFocus",null);
_.p([_.t_("transferState","isVideoDeletedByUser"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SN.prototype,"onTransferStateChange",null);_.p([_.t_("offlineabilityState","playerStateEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],SN.prototype,"showHideButton",null);
_.X(SN,"ytd-menu-service-item-download-renderer",function(){if(ZBt===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);ZBt=N}N=ZBt;return N},{mode:1});var pg6;var PI=function(){var N=_.z.apply(this,arguments)||this;N.useIcons=!1;N.systemIcons=_.T("kevlar_system_icons");N.useListItemStyles=_.T("web_list_item_style_for_menu_items");return N};
_.F(PI,_.z);_.v=PI.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var N;(N=_.H4(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.v.onTap=function(){_.PN(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var N=this.data.serviceEndpoint,b=this.data.command;if(N){var S,P=(S=this.data)==null?void 0:S.trackingParams;S=!!_.t(N,_.qPS);P&&S&&_.h0().dispatch(_.HU({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:P}}));this.ytComponentBehavior.resolveCommand(N)||_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}})}b&&(this.ytComponentBehavior.resolveCommand(b)||_.sR(this.hostElement,
[b],this.hostElement))};
_.v.computeIcon=function(N){return N&&N.iconType?_.C7(N.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.computeHasSeparator=function(){var N;return!((N=this.data)==null||!N.hasSeparator)};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.T("kevlar_legacy_browsers")&&_.rq(this.hostElement)};
_.v.computeIsSelected=function(){var N;return!((N=this.data)==null||!N.isSelected)};
PI.prototype.forceUpdateStylesOnLegacyBrowsers=PI.prototype.forceUpdateStylesOnLegacyBrowsers;PI.prototype.onTap=PI.prototype.onTap;PI.prototype.onFocus=PI.prototype.onFocus;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],PI.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.djE.YtConditionalRendererBehavior),_.y("design:type",Object)],PI.prototype,"ytConditionalRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],PI.prototype,"data",void 0);_.p([_.U({computed:"computeIcon(data.icon)",value:""}),_.y("design:type",String)],PI.prototype,"icon",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PI.prototype,"useIcons",void 0);
_.p([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.y("design:type",Boolean)],PI.prototype,"hasSeparator",void 0);_.p([_.U({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.y("design:type",Boolean)],PI.prototype,"isSelected",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PI.prototype,"systemIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],PI.prototype,"useListItemStyles",void 0);
_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PI.prototype,"onFocus",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],PI.prototype,"onTap",null);_.p([_.W4("useIcons","hasSeparator"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PI.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(PI,"ytd-menu-service-item-renderer",function(){if(pg6===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);pg6=N}N=pg6;return N},{mode:2});var YkJ;var HI=function(){return _.z.apply(this,arguments)||this};
_.F(HI,_.z);_.v=HI.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var N=this;_.W_(this,function(){N.postbox.openDialog();N.focus();_.bC(N.hostElement,"yt-refit")})};
_.v.focus=function(){this.postbox.focus()};
_.v.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.v.onYtCommentboxDismiss=function(){this.closePopup()};
HI.prototype.onYtCommentboxDismiss=HI.prototype.onYtCommentboxDismiss;HI.prototype.onDataChanged=HI.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],HI.prototype,"data",void 0);_.p([_.U({value:function(){return _.cN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],HI.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("#postbox"),_.y("design:type",Object)],HI.prototype,"postbox",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HI.prototype,"onDataChanged",null);_.p([_.RA("yt-commentbox-dismiss"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],HI.prototype,"onYtCommentboxDismiss",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],HI);
_.X(HI,"ytd-backstage-post-dialog-popup-renderer",function(){if(YkJ!==void 0)return YkJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return YkJ=N},{mode:1});var yG6;var s9=function(){var N=_.z.apply(this,arguments)||this;N.modernModal=!0;return N};
_.F(s9,_.z);s9.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
s9.prototype.computeShouldHideOldButtons=function(){var N;return!((N=this.data)==null?0:N.button)};
_.d0.Object.defineProperties(s9.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var N,b;return(N=this.data)==null?void 0:(b=N.button)==null?void 0:b.buttonRenderer}}});
_.p([_.U(),_.y("design:type",Object)],s9.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],s9.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],s9.prototype,"modernModal",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],s9.prototype,"buttonRendererData",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],s9);
_.X(s9,"ytd-modal-with-title-and-button-renderer",function(){if(yG6!==void 0)return yG6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yG6=N},{mode:1});var I5Q;var KV=function(){return _.z.apply(this,arguments)||this};
_.F(KV,_.z);KV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("page-changed",this.page))};
KV.prototype.pageChangedForBinding=KV.prototype.pageChangedForBinding;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KV.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],KV.prototype,"page",void 0);_.p([_.W4("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],KV.prototype,"pageChangedForBinding",null);
_.p([_.Uj({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],KV);
_.X(KV,"ytd-account-item-section-header-renderer",function(){if(I5Q!==void 0)return I5Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return I5Q=N},{mode:1});var DdJ;var vI=function(){return _.z.apply(this,arguments)||this};
_.F(vI,_.z);vI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItem:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},accountItemRenderer:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},compactLinkRenderer:"ytd-compact-link-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0}}}},"data.header":{id:"header",mapping:{accountItemSectionHeaderRenderer:"ytd-account-item-section-header-renderer"}}}};
vI.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],vI.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vI.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Function)],vI.prototype,"onAccountItemTap",void 0);
_.p([_.Uj({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],vI);
_.X(vI,"ytd-account-item-section-renderer",function(){if(DdJ!==void 0)return DdJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return DdJ=N},{mode:1});var VLw;var g1o;var eDE=function(){return _.z.apply(this,arguments)||this};
_.F(eDE,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eDE.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eDE.prototype,"data",void 0);_.p([_.Uj({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],eDE);
_.X(eDE,"ytd-accounts-dialog-header-renderer",function(){if(g1o!==void 0)return g1o;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return g1o=N},{mode:1});var $dQ;var O9=function(){return _.z.apply(this,arguments)||this};
_.F(O9,_.z);O9.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],O9.prototype,"data",void 0);_.p([_.Uj({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],O9);
_.X(O9,"ytd-google-account-header-renderer",function(){if($dQ!==void 0)return $dQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $dQ=N},{mode:1});var CV=function(){return _.z.apply(this,arguments)||this};
_.F(CV,_.z);CV.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItemSectionRenderer:"ytd-account-item-section-renderer",compactLinkRenderer:"ytd-compact-link-renderer"}},"data.header":{id:"header",mapping:{googleAccountHeaderRenderer:"ytd-google-account-header-renderer",accountsDialogHeaderRenderer:"ytd-accounts-dialog-header-renderer"}}}};
CV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("page-changed",this.page))};
CV.prototype.pageChangedForBinding=CV.prototype.pageChangedForBinding;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CV.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],CV.prototype,"page",void 0);
_.p([_.W4("page"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],CV.prototype,"pageChangedForBinding",null);_.p([_.Uj({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],CV);
_.H7()(CV,"ytd-account-section-list-renderer",function(){if(VLw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);VLw=N}N=VLw;return N},{allowedProps:["data"],
mode:1});var hDo;var Gv=function(){var N=_.z.apply(this,arguments)||this;N.enableHandlesAccountMenuSwitcher=_.T("enable_handles_account_menu_switcher");return N};
_.F(Gv,_.z);Gv.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Gv.prototype.dataChanged=Gv.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Gv.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Gv.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.p([_.dq("#avatar"),_.y("design:type",Object)],Gv.prototype,"avatar",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gv.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Gv);
_.H7()(Gv,"ytd-active-account-header-renderer",function(){if(hDo===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);hDo=N}N=hDo;return N},{allowedProps:["data"],
mode:1});var qkE;var wgw;var rz=function(){return _.z.apply(this,arguments)||this};
_.F(rz,_.z);rz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rz.prototype.onBackTap=function(){_.bC(this.hostElement,"yt-menu-back-tapped")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rz.prototype,"data",void 0);_.p([_.Uj({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],rz);
_.H7()(rz,"ytd-simple-menu-header-renderer",function(){if(wgw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);wgw=N}N=wgw;return N},{allowedProps:["data"],
mode:2});var NJO;var b_6=function(){return _.z.apply(this,arguments)||this};
_.F(b_6,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],b_6.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],b_6.prototype,"data",void 0);_.p([_.Uj({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],b_6);
_.X(b_6,"ytd-comment-video-thumbnail-header-renderer",function(){if(NJO!==void 0)return NJO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return NJO=N},{mode:1});var Shn;var P_O=function(){return _.z.apply(this,arguments)||this};
_.F(P_O,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],P_O.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],P_O.prototype,"data",void 0);_.p([_.Uj({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],P_O);
_.X(P_O,"ytd-abuse-type-selector-renderer",function(){if(Shn!==void 0)return Shn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Shn=N},{mode:1});var H_n;var sRn=(0,_.ML4)(_.tLE.reportChannelAbuse,{isVideoIdSelectedSelector:function(N,b){return b in N.selectedVideoIds},
additionalContextSelector:function(N){return N.additionalContext},
impersonatedChannelUrlSelector:function(N){return N.impersonatedChannelUrl},
reportChannelAbuseSelector:function(N){return N}});var cI=function(){return _.z.apply(this,arguments)||this};
_.F(cI,_.z);cI.prototype.attached=function(){var N=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){N.additionalContextInput.focusTextInput()})};
cI.prototype.handleAdditionalContextChanged=function(){var N=this;_.Yq(this,"ytd-report-channel-additional-context-update",function(){N.ytdReduxBehavior.dispatch(_.HU({type:"ADDITIONAL_CONTEXT_UPDATED",payload:N.additionalContext}))},300)};
cI.prototype.updateAdditionalContextFromBinding=function(N){this.additionalContext=N.detail.value};
cI.prototype.handleAdditionalContextChanged=cI.prototype.handleAdditionalContextChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",String)],cI.prototype,"additionalContext",void 0);_.p([_.U({selector:sRn.additionalContextSelector}),_.y("design:type",String)],cI.prototype,"additionalContextRedux",void 0);_.p([_.U(),_.y("design:type",Object)],cI.prototype,"data",void 0);
_.p([_.dq("yt-text-input-form-field-renderer"),_.y("design:type",Object)],cI.prototype,"additionalContextInput",void 0);_.p([_.W4("additionalContext"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cI.prototype,"handleAdditionalContextChanged",null);_.p([_.Uj({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],cI);
_.X(cI,"ytd-report-channel-modal-additional-context-renderer",function(){if(H_n!==void 0)return H_n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return H_n=N},{mode:1});var KgL;var aK=function(){var N=_.z.apply(this,arguments)||this;N.nextButtonDisabled=null;N.submitEndpoint=null;N.navigationEndpoint=null;N.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return N};
_.F(aK,_.z);_.v=aK.prototype;_.v.computeNextButtonData=function(N,b,S){var P={};b&&(P.navigationEndpoint=b);S&&(P.serviceEndpoint=S);N&&N.buttonRenderer&&_.Vm.extend(P,N.buttonRenderer);return P};
_.v.handleReportChannelModalDisableNextButtonAction=function(N){this.setNextButtonIsDisabled(N)};
_.v.handleReportFormEndpointUpdateAction=function(N){this.setNextButtonIsDisabled(!!N.disableSubmitButton);this.resetEndpointData();N.submitEndpoint?this.submitEndpoint=N.submitEndpoint:N.submitNavigationEndpoint&&(this.navigationEndpoint=N.submitNavigationEndpoint)};
_.v.handleSignalActionSubmitForm=function(){var N,b=Object.keys(((N=this.reportChannelAbuseForm)==null?void 0:N.selectedVideoIds)||{}),S;N=((S=this.reportChannelAbuseForm)==null?void 0:S.additionalContext)||"";var P;S=((P=this.reportChannelAbuseForm)==null?void 0:P.impersonatedChannelUrl)||"";var H;if((H=this.data)==null?0:H.submitEndpoint){b={impersonated_channel_url:S,text:N,video_ids:b};var K;_.aN().resolve(_.Wq).resolveCommand((K=this.data)==null?void 0:K.submitEndpoint,{form:Object.assign({},
b,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.v.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.v.onYtServiceRequestError=function(N){this.setNextButtonIsDisabled(!1);_.I2(this.hostElement,N.detail.error.message)};
_.v.setNextButtonIsDisabled=function(N){this.set("data.nextButton.buttonRenderer.isDisabled",N)};
_.v.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
aK.prototype.onYtServiceRequestError=aK.prototype.onYtServiceRequestError;aK.prototype.onYtServiceRequestCompleted=aK.prototype.onYtServiceRequestCompleted;_.p([_.U(),_.y("design:type",Object)],aK.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],aK.prototype,"nextButtonDisabled",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],aK.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],aK.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aK.prototype,"submitEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],aK.prototype,"navigationEndpoint",void 0);_.p([_.U({selector:sRn.reportChannelAbuseSelector}),_.y("design:type",Object)],aK.prototype,"reportChannelAbuseForm",void 0);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],aK.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],aK.prototype,"onYtServiceRequestError",null);_.p([_.Uj({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],aK);
_.X(aK,"ytd-report-channel-modal-footer-renderer",function(){if(KgL!==void 0)return KgL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return KgL=N},{mode:1});var vxL;var RK=function(){var N=_.z.apply(this,arguments)||this;N.boundOnTapDismissButton=function(){N.closePopup()};
return N};
_.F(RK,_.z);RK.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
RK.prototype.handleDataChanged=function(){_.Ov(this.hostElement)};
RK.prototype.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
RK.prototype.handleDataChanged=RK.prototype.handleDataChanged;_.p([_.U(),_.y("design:type",Object)],RK.prototype,"boundOnTapDismissButton",void 0);_.p([_.U(),_.y("design:type",Object)],RK.prototype,"data",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RK.prototype,"handleDataChanged",null);_.p([_.Uj({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],RK);
_.X(RK,"ytd-report-channel-modal-header-renderer",function(){if(vxL!==void 0)return vxL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return vxL=N},{mode:1});var O_E;var WI=function(){var N=_.z.apply(this,arguments)||this;N.autoValidate=!1;N.invalid=!1;N.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return N};
_.F(WI,_.z);_.v=WI.prototype;_.v.attached=function(){var N=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){N.channelUrlInput.focusTextInput()})};
_.v.disableNextButton=function(N){_.St(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[N])};
_.v.handleImpersonatedChannelUrlChanged=function(){var N=this;this.disableNextButton(!0);this.invalid=!1;_.Yq(this,"ytd-report-channel-impersonated-channel-update",function(){var b=N.impersonatedChannelUrl.trim();N.ytdReduxBehavior.dispatch(_.HU({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:b}));var S;((S=N.data)==null?0:S.submitEndpoint)&&b&&_.aN().resolve(_.Wq).resolveCommand(N.data.submitEndpoint,{form:{impersonated_channel_url:b,element:N.hostElement}})},500)};
_.v.handleModifyReportFormCommand=function(N){this.invalid=this.get("modifyReportFormCommand.action",N)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.v.updateInvalidFromBinding=function(N){this.invalid=N.detail.value};
_.v.updateImpersonatedChannelUrlFromBinding=function(N){this.impersonatedChannelUrl=N.detail.value};
WI.prototype.handleImpersonatedChannelUrlChanged=WI.prototype.handleImpersonatedChannelUrlChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WI.prototype,"autoValidate",void 0);_.p([_.U(),_.y("design:type",Object)],WI.prototype,"invalid",void 0);
_.p([_.U(),_.y("design:type",String)],WI.prototype,"impersonatedChannelUrl",void 0);_.p([_.U({selector:sRn.impersonatedChannelUrlSelector}),_.y("design:type",String)],WI.prototype,"impersonatedChannelUrlRedux",void 0);_.p([_.U(),_.y("design:type",Object)],WI.prototype,"data",void 0);_.p([_.dq("#text-input"),_.y("design:type",Object)],WI.prototype,"channelUrlInput",void 0);
_.p([_.W4("impersonatedChannelUrl"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],WI.prototype,"handleImpersonatedChannelUrlChanged",null);_.p([_.Uj({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],WI);
_.X(WI,"ytd-report-channel-modal-impersonation-renderer",function(){if(O_E!==void 0)return O_E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return O_E=N},{mode:1});var C_o;var GpE;var nV=function(){return _.z.apply(this,arguments)||this};
_.F(nV,_.z);nV.prototype.onCheckboxToggled=function(N){var b,S,P=(S=_.t((b=this.data)==null?void 0:b.video,_.ar))==null?void 0:S.videoId;P&&this.ytdReduxBehavior.dispatch(N.target.checked?_.HU({type:"VIDEO_SELECTED",payload:P}):_.HU({type:"VIDEO_UNSELECTED",payload:P}))};
nV.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.d0.Object.defineProperties(nV.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.data)==null?void 0:N.video;if(!b)return{};var S;N=(S=_.t(b,_.ar))==null?void 0:S.navigationEndpoint;if(!N)return b;_.t(N==null?void 0:N.commandMetadata,_.GY)&&(_.t(N.commandMetadata,_.GY).ignoreNavigation=!0);return b}}});
_.p([_.U({reflectToAttribute:!0,selector:sRn.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.y("design:type",Boolean)],nV.prototype,"checked",void 0);_.p([_.U(),_.y("design:type",Object)],nV.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],nV.prototype,"video",null);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],nV.prototype,"ytdReduxBehavior",void 0);_.p([_.Uj({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],nV);
_.X(nV,"ytd-selectable-video-renderer",function(){if(GpE!==void 0)return GpE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GpE=N},{mode:1});var dz=function(){var N=_.z.apply(this,arguments)||this;N.monitorScroll=!0;return N};
_.F(dz,_.z);dz.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dz.prototype,"data",void 0);_.p([_.Uj({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],dz);
_.X(dz,"ytd-selectable-video-list-renderer",function(){if(C_o!==void 0)return C_o;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return C_o=N},{mode:1});var r4Q;_.lo("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var mf=function(){return _.z.apply(this,arguments)||this};
_.F(mf,_.z);mf.prototype.onChange=function(N){if(N=_.gQ(N).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.T("kevlar_command_handler_migration_killswitch"))_.sR(this.hostElement,N,this.hostElement);else{N=_.O(N);for(var b=N.next();!b.done;b=N.next())this.ytComponentBehavior.resolveCommand(b.value)}};
mf.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
mf.prototype.updateDataToggledFromBinding=function(N){this.set("data.toggled",N.detail.value)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],mf.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],mf.prototype,"data",void 0);_.p([_.U({computed:"isEnabled(data)"}),_.y("design:type",Boolean)],mf.prototype,"enabled",void 0);_.p([_.Uj({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],mf);
_.X(mf,"ytd-toggle-item-renderer",function(){if(r4Q!==void 0)return r4Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return r4Q=N},{mode:1});var c4n;var a3a;var RZi;var kV=function(){var N=_.z.apply(this,arguments)||this;N.setVisible=!1;N.boundOnSubmitButtonClick=function(){N.onSubmitButtonClick()};
N.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return N};
_.F(kV,_.z);kV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnSubmitButtonClick]]"},params:{noink:!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
kV.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
kV.prototype.onSubmitButtonClick=function(){var N;((N=this.data)==null?0:N.submitEndpoint)&&!_.T("enable_ytc_refunds_submit_form_signal_action")&&_.HN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
kV.prototype.handleSignalActionSubmitForm=function(){var N;((N=this.data)==null?0:N.submitEndpoint)&&_.HN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.d0.Object.defineProperties(kV.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.hiddenByDefault)&&!this.setVisible}}});
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],kV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kV.prototype,"setVisible",void 0);_.p([_.U(),_.y("design:type",Object)],kV.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],kV.prototype,"surveyFeedbackData",void 0);_.p([_.U(),_.y("design:type",Object)],kV.prototype,"boundOnSubmitButtonClick",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data","setVisible"),_.y("design:type",Object),_.y("design:paramtypes",[])],kV.prototype,"visibilityHidden",null);_.p([_.J_({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],kV);
_.X(kV,"yt-flow-footer-renderer",function(){if(RZi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;a3a===void 0&&(a3a=document.createElement("template"));var P=a3a;S.call(b,P.content.cloneNode(!0),N.content.firstChild);RZi=N}N=RZi;return N},{mode:2});var WgQ=(0,_.ML4)(_.tLE.ypc,{surveyFeedbackDataSelector:function(N){return N.surveyFeedbackData}});var Tv=function(){return _.z.apply(this,arguments)||this};
_.F(Tv,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tv.prototype,"data",void 0);_.p([_.U({selector:WgQ.surveyFeedbackDataSelector}),_.y("design:type",Object)],Tv.prototype,"surveyFeedbackData",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Tv);
_.X(Tv,"ytd-flow-footer-renderer",function(){if(c4n!==void 0)return c4n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return c4n=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var nx_;var drw;var tX=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return N};
_.F(tX,_.z);_.v=tX.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.LU("multiPageMenuSectionItems")}}};
_.v.handleHideEnclosingAction_=function(N){if(this.data&&this.data.items)for(var b=0;b<this.data.items.length;b++){var S=this.data.items[b].notificationRenderer;if(S&&S.notificationId==N.hideEnclosingAction.notificationId){this.splice("data.items",b,1);_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.v.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.C3(this.hostElement,"hidden",!0)};
_.v.updateMenu_=function(N){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&N&&!N.doNotRefreshInbox){N=this.data.continuations;for(var b=0;b<N.length;b++)if(N[b].invalidationContinuationData){var S=void 0;var P=(S=N[b].invalidationContinuationData)==null?void 0:S.continuation;break}N=_.Vm.clone(this.data.continuationUpdateEndpoint||null);N.continuation=P;N.click_tracking_params=this.data.trackingParams;_.HN(this.hostElement,[N])}};
_.v.onServiceRequestCompleted_=function(N,b){if(this.data&&(N=b.actions)){b=0;for(var S=N.length;b<S;b++){var P=_.t(N[b],_.tek);if(!P)break;if((P.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||P.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&P.continuationItems&&this.data.items){var H=this.data.items.length-1;this.data.items[H].continuationItemRenderer&&(P=["data.items",H,1].concat(P.continuationItems),this.splice.apply(this,P))}}}};
tX.prototype.onServiceRequestCompleted_=tX.prototype.onServiceRequestCompleted_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],tX.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tX.prototype,"data",void 0);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],tX.prototype,"onServiceRequestCompleted_",null);_.p([_.J_({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],tX);
_.H7()(tX,"yt-multi-page-menu-section-renderer",function(){if(drw===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;nx_===void 0&&(nx_=document.createElement("template"));var P=nx_;S.call(b,P.content.cloneNode(!0),N.content.firstChild);drw=N}N=drw;return N},{allowedProps:["data"],
mode:2});var mrt;var kp_;var MG=function(){return _.z.apply(this,arguments)||this};
_.F(MG,_.z);MG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.d0.Object.defineProperties(MG.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.progress)==null?0:this.data.progress*100}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],MG.prototype,"data",void 0);_.p([_.f("data.progress"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],MG.prototype,"showProgressBar",null);
_.p([_.f("data.progress"),_.y("design:type",Number),_.y("design:paramtypes",[])],MG.prototype,"progress",null);_.p([_.J_({is:"yt-flow-header-renderer",disableElementRegistration:!0})],MG);
_.X(MG,"yt-flow-header-renderer",function(){if(kp_===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;mrt===void 0&&(mrt=document.createElement("template"));var P=mrt;S.call(b,P.content.cloneNode(!0),N.content.firstChild);kp_=N}N=kp_;return N},{mode:2});var TJE;var txt;var FW=function(){return _.z.apply(this,arguments)||this};
_.F(FW,_.z);FW.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FW.prototype,"data",void 0);_.p([_.J_({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],FW);
_.X(FW,"yt-post-confirmation-flow-step-renderer",function(){if(txt===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;TJE===void 0&&(TJE=document.createElement("template"));var P=TJE;S.call(b,P.content.cloneNode(!0),N.content.firstChild);txt=N}N=txt;return N},{mode:2});var MxJ;var FgE;var E9=function(){return _.z.apply(this,arguments)||this};
_.F(E9,_.z);
E9.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],E9.prototype,"data",void 0);_.p([_.J_({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],E9);
_.X(E9,"yt-refund-confirmation-flow-step-renderer",function(){if(FgE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;MxJ===void 0&&(MxJ=document.createElement("template"));var P=MxJ;S.call(b,P.content.cloneNode(!0),N.content.firstChild);FgE=N}N=FgE;return N},{mode:2});var BJq=_.A(function(N){var b=N.data;return _.c("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.c("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.c(_.gG,{data:function(){return{thumbnails:[{url:b().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.c("div",{class:"profileBadgeViewModelContent"},_.c("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return b().badgeDesc}),_.c(_.W,{cond:function(){return b().badgeSubtitle},
then:function(){return _.c("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return b().badgeSubtitle})}})))},"Tk");
BJq.idomCompat=!0;var l3Q=_.A(function(N){var b=N.data;return _.c("yt-comment-interaction-view-model",{el:_.VN(_.iK(function(){return b().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.c("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return b().onTapA11yLabel},
"on:keydown":_.BNo(),tabindex:0},_.c("div",{class:"ytCommentInteractionViewModelHeader"},_.c("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return b().headerPrefix},' "',function(){return b().videoTitle}),_.c("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.c("div",{class:"ytCommentInteractionViewModelContent"},_.c("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return b().commentContent}),_.c("div",{class:"ytCommentInteractionViewModelChevron"},
_.c(_.gG,{data:function(){return{thumbnails:[{url:b().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Uk");
l3Q.idomCompat=!0;var Lga=_.A(function(N){var b=N.data;return _.c("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH}),_.c("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return b().channelName}))},"Vk");
Lga.idomCompat=!0;var oxi=_.A(function(N){var b=N.data;N={};return _.c("yt-profile-info-view-model",{class:_.KU("ytProfileInfoViewModelHost",(N.ytProfileInfoViewModelWithVideoShelf=function(){return b().videosHorizontalShelf},N))},_.c(f3a,{profileInfo:b}),_.c(_.kY,{data:function(){return b().videosHorizontalShelf}},{horizontalShelfViewModel:function(S){return _.c("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.c(_.TU,{data:S.data}))}}),_.c(_.W,{cond:function(){return b().comments},
then:function(){return _.c(umq,{profileInfo:b})}}),_.c(_.W,{cond:function(){return b().sharedSubscriptionsTitle},
then:function(){return _.c(_.W,{cond:function(){return b().subscriptionsAccessButtonCommand},
then:function(){return _.c(QRw,{profileInfo:b})},
else:function(){return _.c(xrq,{profileInfo:b})}})}}))},"Wk");
oxi.idomCompat=!0;var umq=_.A(function(N){var b=N.profileInfo;return _.c("div",{class:"ytProfileInfoViewModelActivity"},_.c("div",{class:"ytProfileInfoViewModelHeader"},_.c("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return b().commentsInteractionTitle})),_.c(_.kY,{data:function(){return b().comments}},{commentInteractionViewModel:function(S){return _.c("div",{class:"ytProfileInfoViewModelActivity"},_.c(l3Q,{data:S.data}))}}))},"Xk"),QRw=_.A(function(N){var b=N.profileInfo;
return _.c("div",{class:"ytProfileInfoViewModelSubSection"},_.c("div",{class:"ytProfileInfoViewModelSubHeader"},_.c(_.xg,{command:function(){return b().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.c("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return b().sharedSubscriptionsTitle}),_.c("div",null,_.c(_.kY,{data:function(){return b().subscriptionsAccessButton}},{buttonViewModel:_.j$})))),_.c(i_E,{sharedSubscriptions:function(){var S;
return((S=b().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"Yk"),xrq=_.A(function(N){var b=N.profileInfo;
return _.c("div",{class:"ytProfileInfoViewModelSubSection"},_.c("div",{class:"ytProfileInfoViewModelSubHeader"},_.c("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return b().sharedSubscriptionsTitle})),_.c(i_E,{sharedSubscriptions:function(){var S;
return((S=b().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"Zk"),i_E=_.A(function(N){return _.c("div",{class:"ytProfileInfoViewModelSubs"},_.c(_.kY,{data:N.sharedSubscriptions},{sharedSubscriptionViewModel:function(b){return _.c("div",{class:"ytProfileInfoViewModelSub"},_.c(Lga,{data:b.data}))}}))},"$k"),f3a=_.A(function(N){var b=N.profileInfo;
return _.c("div",{class:"ytProfileInfoViewModelActivity"},_.c(_.zj,{each:function(){return[b().profileBadgeInfoYtWide,b().profileBadgeInfoChannelWide].filter(function(S){return!!S})},
keyBy:"INDEX"},function(S){return _.c(_.nM,null,_.c("div",{class:"ytProfileInfoViewModelHeader"},_.c("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return S().profileSectionTitle}),_.c("div",{class:"ytProfileInfoViewModelSectionDesc"},_.c("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var P;
return(P=S().commentBadge)==null?void 0:P.commentDesc}),_.c(_.W,{cond:function(){var P;
return(P=S().commentBadge)==null?void 0:P.blackHeartDesc},
then:function(){return _.c("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.c("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.c(_.gG,{data:function(){var P;
return{thumbnails:[{url:(P=S().commentBadge)==null?void 0:P.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.c("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var P;return(P=S().commentBadge)==null?void 0:P.blackHeartDesc}))),_.c("div",{class:"ytProfileInfoViewModelBadge"},_.c(_.zj,{each:function(){return S().badges||[]}},function(P){return _.c(BJq,{data:P})})))}))},"al");var J4E=_.A(function(N){var b=N.data;var S=function(){return b().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.c("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.c(_.kY,{data:function(){return b().profileIdentityInfo}},{profileIdentityInfoViewModel:function(P){return _.c(gBE,{data:P.data,
hideDivider:S,isChannelInfoCard:S})},
profileInfoViewModel:oxi}),_.c(_.kY,{data:function(){return b().profileInfo}},{profileIdentityInfoViewModel:gBE,
profileInfoViewModel:oxi}))},"bl");
J4E.idomCompat=!0;_.qu(J4E,"yt-profile-card-view-model",{props:{data:_.kg}});var pV=function(){var N=_.z.apply(this,arguments)||this;N.enableFocusFix=_.T("music_web_enable_focus_on_setting_menu_fix")&&_.g8("IS_MOBILE_WEB",!1);N.covered=!1;N.hideMenu=!1;N.isCommentNotificationOnProfileCard=!1;N.scrolledByTouch=!1;N.disableBackdropFilter=_.T("web_disable_backdrop_filter");N.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return N};
_.F(pV,_.z);_.v=pV.prototype;
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.v.ready=function(){var N=this;this.JSC$22211_containerElement.addEventListener("scroll",function(){N.ytRendererBehavior.markDirty()})};
_.v.attributeChanged=function(N,b){N==="menu-style"&&_.St(this.hostElement,"yt-multi-page-menu-closed-action",[b])};
_.v.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.aA(this,this.focusOnStampFinished))};
_.v.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.aA(this,this.focusOnStampFinished))};
_.v.reset=function(){this.closeJobId&&(_.Dj.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.v.focusOnStampFinished=function(N){N.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.aA(this,this.focusOnStampFinished)),this.doFocus())};
_.v.doFocus=function(){var N=_.FGE(this.sectionsElement);N.length&&N[0].focus()};
_.v.computeMenuStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.v.computeIsCommentNotificationOnProfileCard=function(N){return _.T("enable_profile_cards_on_comments")&&N.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.v.computeHideMenu=function(N,b){return N||!(!b||!b.showLoadingSpinner)};
_.v.onPopupClosed=function(){this.isPopUpOpen=!1;_.St(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.v.onPopupOpened=function(N,b){this.isPopUpOpen=!0;b.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.bC(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.HU({type:"CHANNEL_REPORT_RESET"})))};
_.v.onYtNavigate=function(N,b){this.shouldCloseOnNavigateEvent(b.endpoint)&&_.St(this.hostElement,"yt-close-all-popups-action")};
_.v.handleEndpoint=function(N){N=_.t(N,_.Kc);!this.isCommentNotificationOnProfileCard&&N&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22211_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.v.handleActions=function(N){for(var b=0,S=N.length;b<S;b++){var P=_.t(N[b],mha);P&&this.handleGetMultiPageMenuAction(P);(P=_.t(N[b],_.tek))&&this.handleAppendContinuationItemsAction(P)}};
_.v.onServiceRequestSentOrCompleted=function(N,b){N.detail&&N.detail.endpoint&&this.handleEndpoint(N.detail.endpoint);b.actions&&this.handleActions(b.actions)};
_.v.handleGetMultiPageMenuAction=function(N){var b=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.H4(this.submenuElement).appendChild(b);(N=N.menu.multiPageMenuRenderer)&&this.logSubmenu(N);b.data=N;b.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.v.handleAppendContinuationItemsAction=function(N){if(this.data&&N.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&N.continuationItems&&this.data.sections){var b=this.data.sections.length-1;this.data.sections[b].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),b--);if(this.data.sections[b].multiPageMenuNotificationSectionRenderer&&N.continuationItems){N=_.O(N==null?void 0:N.continuationItems);for(var S=N.next();!S.done;S=N.next())if(S=S.value,_.t(S,n$w)){var P=
void 0,H=void 0,K=void 0,C=void 0,G=void 0;((P=this)==null?0:(H=P.data)==null?0:(K=H.sections)==null?0:(C=K[b])==null?0:(G=C.multiPageMenuNotificationSectionRenderer)==null?0:G.items)&&this.push("data.sections."+b+".multiPageMenuNotificationSectionRenderer.items",S)}else if(_.t(S,_.rHV)||_.t(S,_.wO))this.push("data.sections",S),b++}}};
_.v.logSubmenu=function(N){if(!_.T("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var b=this.ytRendererBehavior.getScreenLayer(),S=_.Qh(b),P=_.uZ(b);if((N=N.trackingParams)&&S&&P){var H=_.FA(N);_.T("combine_ve_grafts")?_.dG().graftServerVe(N,P,b):_.AZ(S,P,H)}}};
_.v.emptySubmenuContainer=function(){for(var N=_.H4(this.submenuElement);N.firstChild;)N.removeChild(N.firstChild)};
_.v.onMenuBackTap=function(N){_.bC(this.hostElement,"yt-submenu-closed");N.stopPropagation()};
_.v.onSubmenuClosed=function(N){_.gQ(N)!==this.hostElement&&(this.covered=!1,_.bC(this.hostElement,"yt-refit"),N.stopPropagation())};
_.v.onRetrieveLocation=function(N,b){b.hasComments&&(b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),N.stopPropagation())};
_.v.shouldCloseOnNavigateEvent=function(N){if(!N)return!0;if(_.t(N,_.Iyd)||_.t(N,_.D$9)||_.t(N,_.yN9)||_.t(N,_.Hz))return!1;var b;return((b=_.t(N==null?void 0:N.commandMetadata,_.GY))==null?0:b.ignoreNavigation)?!1:!0};
_.v.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.v.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.v.refitAfterRender=function(){var N=this;_.W_(this,function(){_.bC(N.hostElement,"yt-refit")})};
pV.prototype.refitAfterRender=pV.prototype.refitAfterRender;pV.prototype.onRetrieveLocation=pV.prototype.onRetrieveLocation;pV.prototype.onSubmenuClosed=pV.prototype.onSubmenuClosed;pV.prototype.onMenuBackTap=pV.prototype.onMenuBackTap;pV.prototype.onServiceRequestSentOrCompleted=pV.prototype.onServiceRequestSentOrCompleted;pV.prototype.onYtNavigate=pV.prototype.onYtNavigate;pV.prototype.onPopupOpened=pV.prototype.onPopupOpened;pV.prototype.onPopupClosed=pV.prototype.onPopupClosed;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],pV.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],pV.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pV.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],pV.prototype,"enableFocusFix",void 0);_.p([_.U(),_.y("design:type",Object)],pV.prototype,"covered",void 0);_.p([_.U({computed:"computeHideMenu(covered, data)"}),_.y("design:type",Object)],pV.prototype,"hideMenu",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.y("design:type",String)],pV.prototype,"menuStyle",void 0);
_.p([_.U({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.y("design:type",Object)],pV.prototype,"isCommentNotificationOnProfileCard",void 0);_.p([_.U(),_.y("design:type",Boolean)],pV.prototype,"isPopUpOpen",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pV.prototype,"scrolledByTouch",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],pV.prototype,"disableBackdropFilter",void 0);
_.p([_.dq("#sections"),_.y("design:type",HTMLElement)],pV.prototype,"sectionsElement",void 0);_.p([_.dq("#spinner"),_.y("design:type",HTMLElement)],pV.prototype,"spinnerElement",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],pV.prototype,"headerElement",void 0);_.p([_.dq("#container"),_.y("design:type",HTMLElement)],pV.prototype,"JSC$22211_containerElement",void 0);_.p([_.dq("#submenu"),_.y("design:type",HTMLElement)],pV.prototype,"submenuElement",void 0);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pV.prototype,"onPopupClosed",null);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],pV.prototype,"onPopupOpened",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],pV.prototype,"onYtNavigate",null);
_.p([_.RA("yt-service-request-completed"),_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],pV.prototype,"onServiceRequestSentOrCompleted",null);_.p([_.RA("yt-menu-back-tapped"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],pV.prototype,"onMenuBackTap",null);
_.p([_.RA("yt-submenu-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],pV.prototype,"onSubmenuClosed",null);_.p([_.RA("yt-retrieve-location"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],pV.prototype,"onRetrieveLocation",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],pV.prototype,"refitAfterRender",null);
_.p([_.Uj({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],pV);
_.X(pV,"ytd-multi-page-menu-renderer",function(){if(qkE!==void 0)return qkE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qkE=N},{mode:1});var Ura;var YV=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return N};
_.F(YV,_.z);_.v=YV.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.computeAccessibility_=function(N){return this.get("accessibility.accessibilityData",N)||null};
_.v.onTap=function(){var N=_.PN(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(N&&N.length===1&&N[0])_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var b;if((b=this.data)==null?0:b.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var S;((S=this.data)==null?0:S.menuRequest)&&_.HN(this.hostElement,[this.data.menuRequest])}}};
_.v.handleTopbarMenuClosedAction=function(N){var b,S;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(N)===((b=this.data)==null?void 0:(S=b.icon)==null?void 0:S.iconType)&&this.toggleIconState(!1)};
_.v.toggleIconState=function(N){_.T("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=N)};
_.v.handleUpdateTopbarAvatarAction=function(N){var b;N=(b=_.t(N,HWq))==null?void 0:b.avatarUrl;var S,P;b=(S=this.data)==null?void 0:(P=S.avatar)==null?void 0:P.thumbnails;N&&b&&(S={thumbnails:[Object.assign({},b[0],{url:N})]},this.set("data.avatar",S))};
_.d0.Object.defineProperties(YV.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.H4(this.hostElement).querySelector("#button")}}});
YV.prototype.onTap=YV.prototype.onTap;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],YV.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],YV.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.cE9.YtButtonBehavior),_.y("design:type",Object)],YV.prototype,"ytButtonBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],YV.prototype,"data",void 0);
_.p([_.dq("yt-icon-button#button"),_.y("design:type",Object)],YV.prototype,"iconButton",void 0);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],YV.prototype,"onTap",null);_.p([_.Uj({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],YV);
_.H7()(YV,"ytd-topbar-menu-button-renderer",function(){if(Ura===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);Ura=N}N=Ura;return N},{allowedProps:["data"],
mode:1});var Z_6;var yI=function(){return _.z.apply(this,arguments)||this};
_.F(yI,_.z);yI.prototype.getSelected=function(){return this.reasons.selected};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yI.prototype,"data",void 0);_.p([_.dq("#reasons"),_.y("design:type",Object)],yI.prototype,"reasons",void 0);_.p([_.Uj({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],yI);
_.X(yI,"ytd-ad-feedback-content",function(){if(Z_6!==void 0)return Z_6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Z_6=N},{mode:1});var jR5;var IK=function(){return _.z.apply(this,arguments)||this};
_.F(IK,_.z);_.v=IK.prototype;_.v.onPopupOpened=function(){_.St(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.v.computeConfirmButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.confirmLabel}};
_.v.computeCancelButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.cancelLabel}};
_.v.onConfirmTap=function(){var N=this.content.getSelected();N!==void 0&&(N=this.data.reasons[N].endpoint)&&(_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.v.sendFeedbackSubmitToastAction=function(){var N;(N=this.data)!=null&&N.completionMessage&&(N=_.wy(this.data.completionMessage),_.St(this.hostElement,"yt-open-popup-action",[N,this]))};
_.v.onCancelTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
IK.prototype.onPopupOpened=IK.prototype.onPopupOpened;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],IK.prototype,"data",void 0);_.p([_.dq("#content"),_.y("design:type",Object)],IK.prototype,"content",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],IK.prototype,"onPopupOpened",null);
_.p([_.Uj({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],IK);
_.X(IK,"ytd-ad-feedback-renderer",function(){if(jR5!==void 0)return jR5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jR5=N},{mode:1});var zZt;var A4L=function(){return _.z.apply(this,arguments)||this};
_.F(A4L,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],A4L.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],A4L.prototype,"data",void 0);_.p([_.Uj({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],A4L);
_.X(A4L,"ytd-ad-info-dialog-content",function(){if(zZt!==void 0)return zZt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return zZt=N},{mode:1});var Xwn;var DZ=function(){return _.z.apply(this,arguments)||this};
_.F(DZ,_.z);DZ.prototype.computeConfirmButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.confirmLabel}};
DZ.prototype.onConfirmTap=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
DZ.prototype.computeShouldShowTitle=function(){var N;return!((N=this.data)==null||!N.title)};
DZ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
DZ.prototype.onPopupClosed=DZ.prototype.onPopupClosed;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],DZ.prototype,"data",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],DZ.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],DZ);
_.X(DZ,"ytd-ad-info-dialog-renderer",function(){if(Xwn!==void 0)return Xwn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Xwn=N},{mode:1});var ExO;var VI=function(){var N=_.z.apply(this,arguments)||this;N.actionButtonClass="action-button";N.dismissButtonId="dismiss-button";N.dialogDismiss=!0;return N};
_.F(VI,_.z);_.v=VI.prototype;_.v.computeInPlayer=function(N){return(N==null?void 0:N.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.v.computedLogo=function(){var N,b;return this.isDarkTheme()?(N=this.data)==null?void 0:N.logoDark:(b=this.data)==null?void 0:b.logo};
_.v.computedHeaderImage=function(){var N,b;return this.isDarkTheme()?(N=this.data)==null?void 0:N.headerImageDark:(b=this.data)==null?void 0:b.headerImage};
_.v.computeLogoIconId=function(){var N,b,S,P=(N=this.computedLogo())==null?void 0:(b=N.sources)==null?void 0:(S=b[0])==null?void 0:S.height;return P&&P%31===0?"logo-icon-with-padding":"logo-icon"};
_.v.computeLogoIconHeight=function(){var N,b,S,P=(N=this.computedLogo())==null?void 0:(b=N.sources)==null?void 0:(S=b[0])==null?void 0:S.height;return P&&P%31===0?"31":"24"};
_.v.onPopupClosed=function(){_.aN().resolve(_.HY).dispose()};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.v.onShow=function(){this.inPlayer&&_.a3(6);this.titleElement.focus()};
_.v.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var N=0;N<this.data.impressionEndpoints.length;N++){var b=_.t(this.data.impressionEndpoints[N],_.JM);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.v.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.St(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.d0.Object.defineProperties(VI.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var N,b;return!((N=this.data)==null||!N.headerImageDark)&&!((b=this.data)==null||!b.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.secondaryButton)}}});
VI.prototype.onPopupClosed=VI.prototype.onPopupClosed;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],VI.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Rf.YtVisibilityBehavior),_.y("design:type",Object)],VI.prototype,"ytVisibilityBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VI.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],VI.prototype,"actionButtonClass",void 0);_.p([_.U(),_.y("design:type",Object)],VI.prototype,"dismissButtonId",void 0);_.p([_.U(),_.y("design:type",Object)],VI.prototype,"dialogDismiss",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],VI.prototype,"hasHeaderImage",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],VI.prototype,"hasPremiumButton",null);
_.p([_.U({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.y("design:type",Boolean)],VI.prototype,"inPlayer",void 0);_.p([_.dq("#dismiss-button"),_.y("design:type",HTMLElement)],VI.prototype,"dismissButton",void 0);_.p([_.dq("#title"),_.y("design:type",HTMLElement)],VI.prototype,"titleElement",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],VI.prototype,"onPopupClosed",null);
_.p([_.Uj({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],VI);
_.X(VI,"ytd-enforcement-message-view-model",function(){if(ExO!==void 0)return ExO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ExO=N},{mode:1});var pw6;var Yh_;var gz=function(){var N=_.z.apply(this,arguments)||this;N.TEST_ONLY={immediateValidation:function(){N.immediateValidation()},
onValidationResponse:function(b){N.onValidationResponse(b)},
onGenerateHandleFromNameResponse:function(b){N.onGenerateHandleFromNameResponse(b)}};
return N};
_.F(gz,_.z);_.v=gz.prototype;_.v.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.v.validate=function(){this.immediateValidation()};
_.v.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.v.setHandleInputValue=function(N){this.handleDir=this.getHandleDir(N);this.handleInput.value=N;this.validationState={status:"PENDING"};this.immediateValidation()};
_.v.getHandleDir=function(N){var b=N===""&&!1;return(b=_.pik.test.call(_.pik,N))?"rtl":"ltr"};
_.v.onDataChanged=function(){var N,b;this.handleDir=this.getHandleDir((b=(N=this.data)==null?void 0:N.handle)!=null?b:"");var S;this.validationState=((S=this.data)==null?0:S.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var P;((P=this.data)==null?0:P.validateOnInit)&&this.immediateValidation()};
_.v.stopPropagation=function(N){N.stopPropagation()};
_.v.onInput=function(){var N;this.handleDir=this.getHandleDir((N=this.handleInput.value)!=null?N:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.v.onFocusout=function(N){this.handleInput.contains(N.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.v.delayedValidation=function(){var N,b;this.debouncedValidation((b=(N=this.data)==null?void 0:N.validationDelayMs)!=null?b:1E3)};
_.v.immediateValidation=function(){this.debouncedValidation(0)};
_.v.debouncedValidation=function(N){var b=this;_.Yq(this,"debouncedValidation",function(){var S,P=b.staticValidation((S=b.handleInput.value)!=null?S:"");if(P!==void 0)b.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:P};else{var H;if((H=b.data)!=null&&H.validateChannelHandleCommand){b.validationState={status:"LOADING"};var K;b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{handle:(K=b.handleInput.value)!=null?K:""},commandController:{onSuccess:function(C,
G){b.onValidationResponse(G)},
onServerError:function(C,G){b.onValidationServerError(G)}}})}else b.handleUnexpectedValidationError(new _.jU("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",b.data))}},N)};
_.v.staticValidation=function(N){var b;if(((b=this.data)==null?void 0:b.channelHandleStaticValidationParams)!==void 0){b=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(N)&&b.validValueRegexpErrorMessage!==void 0)return b.validValueRegexpErrorMessage;if(b.minLength!==void 0&&N.length<b.minLength&&b.minLengthErrorMessage!==void 0)return b.minLengthErrorMessage;if(b.maxLength!==void 0&&N.length>b.maxLength&&b.maxLengthErrorMessage!==void 0)return b.maxLengthErrorMessage}};
_.v.onValidationResponse=function(N){var b=_.t(N.result,sDO);b===void 0?this.handleUnexpectedValidationError(new _.jU("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",N)):this.handleValidationResultRenderer(b)};
_.v.onValidationServerError=function(N){this.handleUnexpectedValidationError(new _.jU("ValidateChannelHandle request failed.",N))};
_.v.handleValidationResultRenderer=function(N){if(N.handle===void 0)this.handleUnexpectedValidationError(new _.jU("ChannelHandleValidationResultRenderer does not contain handle.",N));else if(N.handle===this.handleInput.value)switch(N.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:N.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:N.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.jU("Unrecognized ChannelHandleValidationResult",N));break;default:_.$Z(N.result)}};
_.v.handleUnexpectedValidationError=function(N){var b;this.validationState={status:"UNKNOWN",handle:(b=this.handleInput.value)!=null?b:""};_.$h(N)};
_.v.stopEventPropagation=function(N){N.stopPropagation()};
_.v.updateHandleOnChannelNameInputChange=function(N){if(!this.wasEdited){var b,S;this.debouncedGenerateHandleFromName(N,(S=(b=this.data)==null?void 0:b.validationDelayMs)!=null?S:1E3)}};
_.v.debouncedGenerateHandleFromName=function(N,b){var S=this;_.Yq(this,"debouncedGenerateHandleFromName",function(){var P;(P=S.data)!=null&&P.validateChannelHandleCommand?S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{name:N},commandController:{onSuccess:function(H,K){S.onGenerateHandleFromNameResponse(K)},
onServerError:function(H,K){_.$h(new _.jU("Error calling GenerateHandleFromName",K))}}}):_.$h(new _.jU("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",S.data))},b)};
_.v.onGenerateHandleFromNameResponse=function(N){this.wasEdited||((N=_.t(N.result,KqE))?this.setHandleInputValue(N.handle):_.$h(new _.jU("Invalid results when generate handle from name")))};
_.d0.Object.defineProperties(gz.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var N;if(N=this.validationState)N=this.validationState,N=N.status==="OK"||N.status==="UNKNOWN";if(N)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.validationState)==null?void 0:N.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var N,b=(N=this.channelHandleEntity)==null?void 0:N.handleEdit;this.handleDir=this.getHandleDir(b!=null?b:"");return b}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var N,b;if(((N=this.data)==null?void 0:(b=N.channelHandleStaticValidationParams)==null?void 0:b.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
gz.prototype.stopEventPropagation=gz.prototype.stopEventPropagation;gz.prototype.onDataChanged=gz.prototype.onDataChanged;gz.prototype.applyHandleEdit=gz.prototype.applyHandleEdit;gz.prototype.onValueChanged=gz.prototype.onValueChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],gz.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],gz.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gz.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],gz.prototype,"wasEdited",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],gz.prototype,"handleDir",void 0);_.p([_.dq("#handle-input"),_.y("design:type",Object)],gz.prototype,"handleInput",void 0);_.p([_.U(),_.f("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],gz.prototype,"value",null);
_.p([_.W4("value"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gz.prototype,"onValueChanged",null);_.p([_.f("validationState"),_.y("design:type",Object),_.y("design:paramtypes",[])],gz.prototype,"errorIndicator",null);_.p([_.U({reflectToAttribute:!0}),_.f("errorIndicator"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],gz.prototype,"borderErrorIndicator",null);
_.p([_.U({selectorArgs:["data.channelHandleEntityKey"],selector:function(N,b){return _.GL(N.entities,"channelHandle",b)}}),
_.y("design:type",Object)],gz.prototype,"channelHandleEntity",void 0);_.p([_.f("channelHandleEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],gz.prototype,"handleEdit",null);_.p([_.W4("handleEdit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gz.prototype,"applyHandleEdit",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gz.prototype,"onDataChanged",null);
_.p([_.f("data.channelHandleStaticValidationParams.validValueRegexp"),_.y("design:type",Object),_.y("design:paramtypes",[])],gz.prototype,"validValueRegexp",null);_.p([_.RA("yt-service-request-sent"),_.RA("yt-service-request-completed"),_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],gz.prototype,"stopEventPropagation",null);_.p([_.Uj({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],gz);
_.X(gz,"ytd-channel-handle-input-renderer",function(){if(Yh_!==void 0)return Yh_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Yh_=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var eN=function(){var N=_.z.apply(this,arguments)||this;N.data=null;N.errorMessage=null;N.isLoading=!0;N.hideContainer=!1;N.enableNewChannelCreationOnIdForAll=_.T("enable_new_channel_creation_for_id4all");N.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};N.testOnly={setErrorMessage:function(b){N.resetErrorState();
N.setErrorState(b)}};
return N};
_.F(eN,_.z);_.v=eN.prototype;_.v.created=function(){this.logScreenVe()};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var N;((N=this.zeroStepErrorMessageEntity)==null?0:N.value)&&this.set("errorMessage",_.gy(this.zeroStepErrorMessageEntity.value))};
_.v.onCreateTap=function(){var N=this;if(this.data&&this.data.channelCreationEndpoint){var b,S;if(!((b=this.data.createChannelButton)==null?0:(S=b.buttonRenderer)==null?0:S.isDisabled)){var P;if((P=this.nameInput)!=null&&P.value){this.setLoadingState();var H,K;b=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(H=this.handleInput)==null?void 0:H.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((K=this.handleInput)==null?void 0:K.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:b,commandController:{onSuccess:function(C,G){N.onChannelCreationEndpointSuccess(G);N.obakeImageSource&&_.Dn("channelCreatedWithObakeImage",{imageSourceType:N.obakeImageSource})},
onServerError:function(){N.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.v.endpointRequiresServiceRequestAction=function(N){return!!_.t(N,_.U_)||!!_.t(N,HWq)};
_.v.isNavigateAction=function(N){var b;return!!_.t(N,$TE)||!!_.t((b=_.t(N,rJE))==null?void 0:b.command,$TE)};
_.v.isPlaylistAction=function(N){return!!_.t(N,_.vC)||!!_.t(N,_.Rr)};
_.v.onChannelCreationEndpointSuccess=function(N){if(N.createChannelError){var b;this.setErrorState((b=N.createChannelError)==null?void 0:b.errorMessage);this.handleInput&&this.handleInput.validate()}else{N.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(N.navigationEndpoint);if(N.actions){b=_.O(N.actions);for(var S=b.next();!S.done;S=b.next())if(S=S.value,this.endpointRequiresServiceRequestAction(S)&&this.ytComponentBehavior.resolveCommand(S),this.isNavigateAction(S)){var P=void 0;S=_.t((P=
_.t(S,rJE))==null?void 0:P.command,$TE);P=void 0;this.isPlaylistAction((P=S)==null?void 0:P.endpoint)&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),P=void 0,this.ytComponentBehavior.resolveCommand((P=S)==null?void 0:P.endpoint))}}N.actions&&N.actions.some(function(H){var K;return _.t(H,$TE)||_.t((K=_.t(H,rJE))==null?void 0:K.command,$TE)})||_.St(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.v.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.v.onCancelTap=function(){var N,b,S;if(!((N=this.data)==null?0:(b=N.cancelButton)==null?0:(S=b.buttonRenderer)==null?0:S.isDisabled)){var P,H,K;N=(P=this.data)==null?void 0:(H=P.cancelButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.command;if(!N||!_.t(N,_.viI)){var C;this.nameInput&&((C=this.data)==null?0:C.name)&&(this.nameInput.value=this.data.name);var G;this.handleInput&&((G=this.data)==null?0:G.channelHandleInput)&&(this.handleInput.data=_.t(this.data.channelHandleInput,vt6));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.v.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.v.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.v.onClearProfilePhotoTap=function(){var N,b,S;((N=this.data)==null?0:(b=N.clearProfilePhotoButton)==null?0:(S=b.buttonRenderer)==null?0:S.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.v.onEditAvatarTap=function(){var N,b,S;((N=this.data)==null?0:(b=N.editAvatarButton)==null?0:(S=b.buttonRenderer)==null?0:S.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.v.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.v.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var N;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((N=this.data)==null?0:N.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.v.setErrorState=function(N){this.resetErrorState();if(N)this.set("errorMessage",N);else{var b;if((b=this.zeroStepErrorMessageEntity)==null?0:b.value)this.set("errorMessage",_.gy(this.zeroStepErrorMessageEntity.value));else{var S;((S=this.data)==null?0:S.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.v.fetchImageBlobWithAlr=function(N,b){b=b===void 0?5:b;var S=this,P,H,K,C,G;return _.r(function(a){switch(a.nextAddress){case 1:return a.yield(fetch(N,{method:"GET",mode:"cors"}),2);case 2:P=a.yieldResult;if(P.ok){a.jumpTo(3);break}if(b===0)throw Error();H=S.addJitter(Math.pow(2,5-b));return a.yield(new Promise(function(R){setTimeout(R,H*1E3)}),4);
case 4:return a.return(S.fetchImageBlobWithAlr(N,b-1));case 3:if(!P.headers.get("content-type").split(";").some(function(R){return R.trim()==="text/plain"})){a.jumpTo(5);
break}K=S;C=K.fetchImageBlobWithAlr;return a.yield(P.text(),6);case 6:return a.return(C.call(K,a.yieldResult,b-1));case 5:return a.yield(P.blob(),7);case 7:return G=a.yieldResult,a.return(G)}})};
_.v.addJitter=function(N){var b=N*.3*Math.random();Math.random()>.5&&(b*=-1);return N+b};
_.v.openProfilePicturePicker=function(){var N=this,b,S,P,H,K,C;return _.r(function(G){if(G.nextAddress==1){b=N.data.scottyUploadUrl;if(!b)return G.return();S=document.documentElement.hasAttribute("dark");P=document.body.style.colorScheme;S&&(document.body.style.colorScheme="dark");H=qwq(wCO(hlO(yTQ(S?"dark":"light")),function(a){var R,n,d,m,k;return _.r(function(M){if(M.nextAddress==1)return R=_.wP(nAL(new nno(a.photoUrl,!1)).build(),"alr","yes"),N.obakeImageSource=N.pictureChangeSourceToObakeImageSourceType(a.photoSource),
_.u4(M,2),N.setLoadingState(),M.yield(N.fetchImageBlobWithAlr(R),4);if(M.nextAddress!=2)return n=M.yieldResult,d=new FileReader,d.addEventListener("load",function(){var l,u,J,Z,D,Y;return _.r(function(V){if(V.nextAddress==1){if(n.size>15728640)return N.setErrorState((l=N.data)==null?void 0:l.imageSizeErrorMessage),_.$h(Error("bm")),V.return();if(!d.result)return N.setErrorState((u=N.data)==null?void 0:u.genericImageLoadErrorMessage),_.$h(Error("cm")),V.return();J=d.result;_.u4(V,2);return V.yield(m5t(n,
b),4)}if(V.nextAddress!=2)return Z=V.yieldResult,N.handleImageUpdatedAction(J,Z),N.resetErrorState(),_.su(V,0);D=_.UE(V);N.setErrorState((Y=N.data)==null?void 0:Y.uploadErrorMessage);if(D instanceof Error)_.ge(D);else{var g=new _.jU(JSON.stringify(D));_.ge(g)}_.Zd(V)})}),d.readAsDataURL(n),_.su(M,0);
m=_.UE(M);N.setErrorState((k=N.data)==null?void 0:k.genericImageLoadErrorMessage);m instanceof Error?_.ge(m):_.ed(new _.jU(JSON.stringify(m)));_.Zd(M)})}),function(){N.hideContainer=!1;
document.body.style.colorScheme=P});
_.u4(G,2);return((K=N.data)==null?0:K.shouldViewChannelCreationFormForSupex)?G.yield(H.openPicker("profile-picture/art-selection"),5):G.yield(H.openPicker(),5)}if(G.nextAddress!=2)return _.su(G,0);_.UE(G);N.setErrorState((C=N.data)==null?void 0:C.selectImageErrorMessage);_.Zd(G)})};
_.v.pictureChangeSourceToObakeImageSourceType=function(N){switch(N){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.v.logScreenVe=function(){_.Xy(_.dG(),124448)};
_.v.graftServerVe=function(){var N=_.uZ(),b,S,P=(b=this.data)==null?void 0:(S=b.loggingDirectives)==null?void 0:S.trackingParams;P&&N&&(this.channelCreationFormVe=_.dG().graftServerVe(P,N),N={visualElement:this.channelCreationFormVe},_.W7().reportShown(N))};
_.v.isNameChanged=function(N){var b;return((b=this.data)==null?void 0:b.name)!==N};
_.v.isHandleChanged=function(N){var b,S=_.t((b=this.data)==null?void 0:b.channelHandleInput,vt6);return S&&N?S.handle!==N:!1};
_.v.handleImageUpdatedAction=function(N,b){this.hideContainer=!1;this.previewDataUrl=N;this.encryptedBlobId=b};
_.v.handleImageSelectionErrorAction=function(N){this.hideContainer=!1;this.setErrorState(N)};
_.v.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.v.showContainer=function(){this.hideContainer=!1};
_.v.maybeWipeZeroStepErrorMessage=function(){var N,b=(N=this.data)==null?void 0:N.zeroStepErrorMessageEntityKey,S;b&&((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.ytdReduxBehavior.dispatch(_.t5("stringEntity",b,{key:b,value:""}))};
_.d0.Object.defineProperties(eN.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var N;return((N=this.photoThumbnail)==null?0:N.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.descriptionInfo}}});
eN.prototype.dataChanged=eN.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],eN.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],eN.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eN.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],eN.prototype,"errorMessage",void 0);
_.p([_.U(),_.y("design:type",Object)],eN.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",String)],eN.prototype,"previewDataUrl",void 0);_.p([_.U(),_.y("design:type",Number)],eN.prototype,"obakeImageSource",void 0);_.p([_.U(),_.y("design:type",Object)],eN.prototype,"hideContainer",void 0);_.p([_.dq("#title-input"),_.y("design:type",Object)],eN.prototype,"nameInput",void 0);_.p([_.dq("#handle-input"),_.y("design:type",Object)],eN.prototype,"handleInput",void 0);
_.p([_.U(),_.y("design:type",Boolean)],eN.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.p([_.U({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.ytf}),_.y("design:type",Object)],eN.prototype,"zeroStepErrorMessageEntity",void 0);_.p([_.f("data","data.isDefaultProfilePhoto","previewDataUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],eN.prototype,"photoThumbnail",null);
_.p([_.f("data","data.isDefaultProfilePhoto","photoThumbnail"),_.y("design:type",Object),_.y("design:paramtypes",[])],eN.prototype,"userSetPhotoThumbnailUrl",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eN.prototype,"hideProfilePhotoButtonLayer",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],eN.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.p([_.t_("data","zeroStepErrorMessageEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],eN.prototype,"dataChanged",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.descriptionInfo","zeroStepErrorMessageEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],eN.prototype,"description",null);_.p([_.Uj({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],eN);
_.X(eN,"ytd-channel-creation-dialog-renderer",function(){if(pw6!==void 0)return pw6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return pw6=N},{mode:1});var y4Q;var $V=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;N.isDisabled=!1;return N};
_.F($V,_.z);$V.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
$V.prototype.updateDisabled=function(){var N;this.isDisabled=this.isLoading||((N=this.handleInput)==null?void 0:N.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
$V.prototype.onSaveClick=function(){var N=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var b;((b=this.data)==null?void 0:b.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var S;if((S=N.data)==null?0:S.nextEndpoint){var P;N.ytComponentBehavior.resolveCommand((P=N.data)==null?void 0:P.nextEndpoint)}else N.isLoading=
!1,N.closeDialog()},
onServerError:function(){N.isLoading=!1;N.handleInput.validate();var S;N.errorMessage=(S=N.data)==null?void 0:S.errorMessage}}}))}};
$V.prototype.closeDialog=function(){_.St(this.hostElement,"yt-close-popup-action",[this.is])};
$V.prototype.updateDisabled=$V.prototype.updateDisabled;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],$V.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$V.prototype,"data",void 0);_.p([_.dq("#handle-input"),_.y("design:type",Object)],$V.prototype,"handleInput",void 0);_.p([_.W4("isLoading"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$V.prototype,"updateDisabled",null);
_.p([_.Uj({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],$V);
_.X($V,"ytd-channel-handle-edit-dialog-renderer",function(){if(y4Q!==void 0)return y4Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return y4Q=N},{mode:1});var I3E;var hX=function(){return _.z.apply(this,arguments)||this};
_.F(hX,_.z);hX.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hX.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],hX);
_.X(hX,"ytd-channel-switcher-footer-renderer",function(){if(I3E!==void 0)return I3E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return I3E=N},{mode:1});var Dr5;var VxE;var qG=function(){return _.z.apply(this,arguments)||this};
_.F(qG,_.z);qG.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
qG.prototype.onIronChange=qG.prototype.onIronChange;_.p([_.U(),_.y("design:type",Object)],qG.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Function)],qG.prototype,"onDontAskAgainChanged",void 0);_.p([_.dq("#checkbox"),_.y("design:type",Object)],qG.prototype,"checkbox",void 0);_.p([_.RA("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qG.prototype,"onIronChange",null);
_.p([_.Uj({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],qG);
_.X(qG,"ytd-identity-prompt-footer-renderer",function(){if(VxE!==void 0)return VxE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return VxE=N},{mode:1});var wz=function(){var N=_.z.apply(this,arguments)||this;N.dontAskAgain=!1;N.showPopup=!1;N.boundDontAskAgainChanged=function(b){N.dontAskAgainChanged(b)};
N.boundOnAccountItemTap=function(b){N.onAccountItemTap(b)};
return N};
_.F(wz,_.z);_.v=wz.prototype;
_.v.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.v.ready=function(){var N=this;_.H4(this.hostElement).querySelector("#container").addEventListener("scroll",function(){N.ytRendererBehavior.markDirty()})};
_.v.dontAskAgainChanged=function(N){this.dontAskAgain=N};
_.v.onAccountItemTap=function(N){if(N){var b={};this.dontAskAgain&&(b={dont_ask_again:this.dontAskAgain});_.jZ(N,b)}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.v.redirectOnlyAccount=function(N){N.sections&&N.sections.length>0&&(N=_.t(N.sections[0],_.vS9),(N==null?0:N.contents)&&(N==null?void 0:N.contents.length)<=1?(N=_.SU(window.location.href),(N==null?0:N.next)&&_.PCO(N.next)?_.jZ(N.next):_.jZ("/")):this.showPopup=!0)};
wz.prototype.dataChanged=wz.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wz.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Object)],wz.prototype,"dontAskAgain",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],wz.prototype,"showPopup",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Object)],wz.prototype,"boundDontAskAgainChanged",void 0);_.p([_.U({reflectToAttribute:!1}),_.y("design:type",Object)],wz.prototype,"boundOnAccountItemTap",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],wz.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],wz);
_.X(wz,"ytd-channel-switcher-renderer",function(){if(Dr5!==void 0)return Dr5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Dr5=N},{mode:1});var gxq;var Nd=function(){return _.z.apply(this,arguments)||this};
_.F(Nd,_.z);_.d0.Object.defineProperties(Nd.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.p([_.U(),_.y("design:type",Object)],Nd.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],Nd.prototype,"steps",null);_.p([_.Uj({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Nd);
_.X(Nd,"ytd-channel-transfer-stepper-renderer",function(){if(gxq!==void 0)return gxq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gxq=N},{mode:1});var eZq;var bT=function(){var N=_.z.apply(this,arguments)||this;N.data=null;N.isError=!1;N.isLoading=!1;return N};
_.F(bT,_.z);_.v=bT.prototype;_.v.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.v.computeProfileName=function(N){return N?N.givenNameValue+" "+N.familyNameValue:""};
_.v.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.v.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
bT.prototype.onYtServiceRequestError=bT.prototype.onYtServiceRequestError;bT.prototype.onYtServiceRequestSent=bT.prototype.onYtServiceRequestSent;bT.prototype.dataChanged=bT.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],bT.prototype,"data",void 0);
_.p([_.U({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.y("design:type",String)],bT.prototype,"profileName",void 0);_.p([_.U(),_.y("design:type",Object)],bT.prototype,"isError",void 0);_.p([_.U(),_.y("design:type",Object)],bT.prototype,"isLoading",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],bT.prototype,"dataChanged",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],bT.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],bT.prototype,"onYtServiceRequestError",null);_.p([_.Uj({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],bT);
_.X(bT,"ytd-channel-warm-welcome-cont-renderer",function(){if(eZq!==void 0)return eZq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return eZq=N},{mode:1});var $rw;var SL=function(){var N=_.z.apply(this,arguments)||this;N.data=null;return N};
_.F(SL,_.z);SL.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
SL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],SL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],SL);
_.X(SL,"ytd-channel-warm-welcome-renderer",function(){if($rw!==void 0)return $rw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return $rw=N},{mode:1});var hZE;var Pg=function(){return _.z.apply(this,arguments)||this};
_.F(Pg,_.z);_.d0.Object.defineProperties(Pg.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.authorThumbnail)||{}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Pg.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pg.prototype,"thumbnailDetails",null);_.p([_.Uj({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Pg);
_.X(Pg,"ytd-comment-preview-renderer",function(){if(hZE!==void 0)return hZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return hZE=N},{mode:1});var qhJ;var Hg=function(){return _.z.apply(this,arguments)||this};
_.F(Hg,_.z);Hg.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d0.Object.defineProperties(Hg.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.submitButton}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Hg.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hg.prototype,"submitButton",null);_.p([_.Uj({is:"ytd-notice-renderer",disableElementRegistration:!0})],Hg);
_.X(Hg,"ytd-notice-renderer",function(){if(qhJ!==void 0)return qhJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return qhJ=N},{mode:1});var wwJ;var sk=function(){return _.z.apply(this,arguments)||this};
_.F(sk,_.z);sk.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],sk.prototype,"data",void 0);_.p([_.Uj({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],sk);
_.X(sk,"ytd-preview-comment-dialog-content",function(){if(wwJ!==void 0)return wwJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return wwJ=N},{mode:1});var NLq;var KB=function(){return _.z.apply(this,arguments)||this};
_.F(KB,_.z);KB.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
KB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],KB.prototype,"data",void 0);_.p([_.Uj({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],KB);
_.X(KB,"ytd-preview-comment-dialog-renderer",function(){if(NLq!==void 0)return NLq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return NLq=N},{mode:1});var bb5;var SoJ=_.T("web_button_rework")&&_.g8("BUTTON_REWORK")||_.T("web_button_rework_with_live"),vg=function(){var N=_.z.apply(this,arguments)||this;N.closeLabel=_.cN("CLOSE");N.selectedAmountIndex=1;N.privacyCheckboxValue=!1;N.useAmsterdamStyle=SoJ;N.amountPlaceholderIndex=-1;return N};
_.F(vg,_.z);_.v=vg.prototype;_.v.onAmountClick=function(N){this.selectedAmountIndex=_.H4(this.hostElement).querySelector("#amounts").indexForElement(N.currentTarget)};
_.v.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.St(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.v.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.St(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.St(this.hostElement,"yt-close-popup-action",[this.is]);var N;(N=_.qE())==null||N.getPlayerPromise().then(function(b){b.pauseVideo()})}};
_.v.donationCallback=function(N){N.success?(this.hostElement.hasAttribute("live-chat")&&N.response&&N.response.data&&N.response.data.actions&&_.St(this.hostElement,"yt-live-chat-open-popup",[N.response.data.actions[0]]),_.St(this.hostElement,"yt-close-popup-action",[this.is]),_.St(this.hostElement,"yt-live-chat-close-buy-flow")):N.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(N.errorMessageRenderer)};
_.v.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.H4(this.hostElement).querySelector("#custom-amount-input").focus()};
_.v.updateConfirmationDialogTextWithAmount=function(N){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(N))};
_.v.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.v.getAmountPlaceholderIndex=function(N){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=N.findIndex(function(b){return b.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.v.getFormattedAmount=function(N){var b;return(new _.YG(4,((b=this.data)==null?void 0:b.currencyCode)||"")).format(N)};
_.v.isAmountValid=function(N){if(N==="")return!1;N=Number(N)*1E6;var b=this.get("minAmountMicros",this.data),S=this.get("maxAmountMicros",this.data);return b&&N<b||S&&N>S?!1:!0};
_.v.setInputError=function(){this.shouldShowValidationError?_.H4(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.H4(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.v.setInitialCheckboxValue=function(){var N;this.privacyCheckboxValue=!((N=this.data)==null||!N.privacyCheckboxInitialState)};
_.v.updateCustomAmountInputFromBinding=function(N){this.customAmountInput=N.detail.value};
_.v.updatePrivacyCheckboxValueFromBinding=function(N){this.privacyCheckboxValue=N.detail.value};
_.d0.Object.defineProperties(vg.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var N=this,b,S;return((b=this.data)==null?void 0:(S=b.suggestedAmounts)==null?void 0:S.map(function(P,H){return{buttonRenderer:{style:N.selectedAmountIndex===H?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:P.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var N=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(N&&this.amountMicros!==null)return Object.assign({},N,{ypcGetCartEndpoint:Object.assign({},N.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var N=this.get("confirmLargeAmount",this.data);if(N&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),N}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N=this.get("donateButton.buttonRenderer",this.data);if(N)return Object.assign({},N,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
vg.prototype.setInitialCheckboxValue=vg.prototype.setInitialCheckboxValue;vg.prototype.setInputError=vg.prototype.setInputError;vg.prototype.setFocusOnCustomAmountInput=vg.prototype.setFocusOnCustomAmountInput;_.p([_.L(Vvq),_.y("design:type",Object)],vg.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vg.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],vg.prototype,"closeLabel",void 0);_.p([_.U(),_.y("design:type",Object)],vg.prototype,"selectedAmountIndex",void 0);_.p([_.U(),_.y("design:type",String)],vg.prototype,"customAmountInput",void 0);_.p([_.U(),_.y("design:type",Object)],vg.prototype,"privacyCheckboxValue",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],vg.prototype,"useAmsterdamStyle",void 0);_.p([_.W4("customAmount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vg.prototype,"setFocusOnCustomAmountInput",null);_.p([_.f("data","selectedAmountIndex"),_.y("design:type",Array),_.y("design:paramtypes",[])],vg.prototype,"suggestedAmountButtons",null);
_.p([_.f("data","selectedAmountIndex"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vg.prototype,"isCustomAmountSelected",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vg.prototype,"showPrivacyCheckbox",null);_.p([_.f("data","selectedAmountIndex","customAmount"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"amountMicros",null);
_.p([_.f("isCustomAmountSelected","customAmountInput"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"customAmount",null);_.p([_.f("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vg.prototype,"shouldShowValidationError",null);_.p([_.f("customAmount"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],vg.prototype,"isDonateButtonEnabled",null);
_.p([_.f("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"donateCommand",null);_.p([_.f("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"donateCommandWithConfirmation",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"largeDonationThreshold",null);
_.p([_.f("customAmount","donateCommand","amountMicros"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"confirmLargeAmountCommand",null);_.p([_.f("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.y("design:type",Object),_.y("design:paramtypes",[])],vg.prototype,"donateButtonRenderer",null);_.p([_.W4("shouldShowValidationError"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vg.prototype,"setInputError",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vg.prototype,"setInitialCheckboxValue",null);_.p([_.Uj({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],vg);
_.X(vg,"ytd-donation-amount-picker-renderer",function(){if(bb5!==void 0)return bb5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return bb5=N},{mode:1});var P7a;var HbJ=function(){return _.z.apply(this,arguments)||this};
_.F(HbJ,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],HbJ.prototype,"ytComponentBehavior",void 0);_.p([_.U({}),_.y("design:type",Object)],HbJ.prototype,"data",void 0);_.p([_.Uj({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],HbJ);
_.X(HbJ,"ytd-donation-post-transaction-content",function(){if(P7a!==void 0)return P7a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return P7a=N},{mode:1});var sMQ;var Ok=function(){return _.z.apply(this,arguments)||this};
_.F(Ok,_.z);Ok.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.y("design:type",Object)],Ok.prototype,"data",void 0);_.p([_.Uj({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Ok);
_.X(Ok,"ytd-donation-post-transaction-renderer",function(){if(sMQ!==void 0)return sMQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return sMQ=N},{mode:1});var K_Q;var vrJ;var CB=function(){return _.z.apply(this,arguments)||this};
_.F(CB,_.z);CB.prototype.computeIsStreamingProvider=function(N){return!!N.isStreamingShelf};
CB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],CB.prototype,"data",void 0);_.p([_.U({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],CB.prototype,"isStreamingProvider",void 0);
_.p([_.Uj({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],CB);
_.X(CB,"ytd-media-provider-renderer",function(){if(vrJ!==void 0)return vrJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return vrJ=N},{mode:1});var Obo;var G_=function(){return _.z.apply(this,arguments)||this};
_.F(G_,_.z);G_.prototype.observeLightsourcePalette=function(){var N,b=(N=this.data)==null?void 0:N.vibrantsourceColorPaletteData;b&&_.FM(this.hostElement,b)};
G_.prototype.observeLightsourcePalette=G_.prototype.observeLightsourcePalette;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],G_.prototype,"data",void 0);
_.p([_.W4("data.vibrantsourceColorPaletteData"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G_.prototype,"observeLightsourcePalette",null);_.p([_.Uj({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],G_);
_.X(G_,"ytd-streaming-pop-up-dialog",function(){if(Obo!==void 0)return Obo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Obo=N},{mode:1});var rM=function(){return _.z.apply(this,arguments)||this};
_.F(rM,_.z);rM.prototype.onPopupOpened_=function(){var N;((N=this.data)==null?0:N.serviceEndpoint)&&_.aN().resolve(_.Wq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
rM.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
rM.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
rM.prototype.onPopupOpened_=rM.prototype.onPopupOpened_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.F3),_.y("design:type",Object)],rM.prototype,"ytContinuationHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rM.prototype,"data",void 0);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rM.prototype,"onPopupOpened_",null);_.p([_.Uj({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],rM);
_.X(rM,"ytd-brandconnect-popup-renderer",function(){if(K_Q!==void 0)return K_Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return K_Q=N},{mode:1});var C7w;var cg=function(){return _.z.apply(this,arguments)||this};
_.F(cg,_.z);_.v=cg.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){for(var N=0;N<this.getOptionRenderers().length;N++)this.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+N+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.v.updateSubmitButton=function(N){this.set("data.submitButton.buttonRenderer.isDisabled",!N)};
_.v.computeAlt=function(N){return _.es(N)};
_.v.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.getOptionRenderers=function(N){return(N=N||this.data)&&N.options?N.options.reduce(function(b,S){S.checkboxSurveyOptionRenderer&&b.push(S.checkboxSurveyOptionRenderer);return b},[]):[]};
_.v.onOptionChange=function(N){var b=this,S=!1;if(N.detail.checked)for(var P=this.getOptionRenderers().find(function(G){return G.value===N.detail.value}),H=this.getOptionRenderers(),K=0;K<H.length;K++){var C=H[K];
this.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked");C.checked&&((P==null?0:P.isExclusiveOption)?!C.isExclusiveOption:C.isExclusiveOption)?this.set("data.options."+K+".checkboxSurveyOptionRenderer.checked",!1):C.checked&&(S=!0)}else S=this.getOptionRenderers().some(function(G,a){b.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked");return G.checked});
this.updateSubmitButton(S)};
_.v.onSubmitTap=function(){var N=this.getOptionRenderers().filter(function(K){return K.checked});
if(N.length!==0){var b=N.map(function(K){return K.responseEndpoint});
N=[];for(var S=1;S<b.length;S++){var P=void 0,H=(P=_.t(b[S],_.ZM))==null?void 0:P.feedbackToken;H&&N.push(H)}b=[b[0]];N.length&&b.push({extra_feedback_tokens:N});_.HN(this.hostElement,b);_.St(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);N=this.data&&this.data.submitActions||[];if(_.T("kevlar_command_handler_migration_killswitch"))_.sR(this.hostElement,N,this.hostElement);else for(N=_.O(N),b=N.next();!b.done;b=N.next())this.ytComponentBehavior.resolveCommand(b.value)}};
cg.prototype.onOptionChange=cg.prototype.onOptionChange;cg.prototype.dataChanged=cg.prototype.dataChanged;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],cg.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.p([_.L(BgE),_.y("design:type",Object)],cg.prototype,"ytdHatsSurveyBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cg.prototype,"data",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cg.prototype,"dataChanged",null);
_.p([_.RA("ytd-checkbox-survey-option-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],cg.prototype,"onOptionChange",null);_.p([_.Uj({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],cg);
_.X(cg,"ytd-checkbox-survey-renderer",function(){if(C7w!==void 0)return C7w;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return C7w=N},{mode:1});var G1J;var rYE;var aC=function(){return _.z.apply(this,arguments)||this};
_.F(aC,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.p([_.L(M4J),_.y("design:type",Object)],aC.prototype,"ytdDismissalReasonBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],aC);
_.X(aC,"ytd-dismissal-reason-text-renderer",function(){if(rYE!==void 0)return rYE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return rYE=N},{mode:1});var cY_;var RC=function(){return _.z.apply(this,arguments)||this};
_.F(RC,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.p([_.L(M4J),_.y("design:type",Object)],RC.prototype,"ytdDismissalReasonBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],RC);
_.X(RC,"ytd-dismissal-reason-video-renderer",function(){if(cY_!==void 0)return cY_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return cY_=N},{mode:1});var Wg=function(){return _.z.apply(this,arguments)||this};
_.F(Wg,_.z);_.v=Wg.prototype;_.v.created=function(){this.selectedFeedbackTokens=new k_};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.v.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.v.onDismissalReasonSelected=function(N,b){_.bC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(b);this.hasReasonsSelected=!0};
_.v.onDismissalReasonDeselected=function(N,b){_.bC(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(b);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.v.onCancelTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.v.onSubmitTap=function(){var N=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(N={feedback_tokens:N},_.aN().resolve(_.Wq).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},N,{element:this.hostElement})}));_.St(this.hostElement,"yt-close-popup-action")};
Wg.prototype.onDismissalReasonDeselected=Wg.prototype.onDismissalReasonDeselected;Wg.prototype.onDismissalReasonSelected=Wg.prototype.onDismissalReasonSelected;Wg.prototype.dataChanged=Wg.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Wg.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],Wg.prototype,"hasReasonsSelected",void 0);_.p([_.U(),_.y("design:type",k_)],Wg.prototype,"selectedFeedbackTokens",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Wg.prototype,"dataChanged",null);_.p([_.RA("yt-dismissal-reason-selected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Wg.prototype,"onDismissalReasonSelected",null);
_.p([_.RA("yt-dismissal-reason-deselected"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,String]),_.y("design:returntype")],Wg.prototype,"onDismissalReasonDeselected",null);_.p([_.Uj({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Wg);
_.X(Wg,"ytd-dismissal-follow-up-renderer",function(){if(G1J!==void 0)return G1J;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return G1J=N},{mode:1});var aQJ;var nB=function(){return _.z.apply(this,arguments)||this};
_.F(nB,_.z);_.v=nB.prototype;_.v.onCheckedChange=function(){this.multiselect||_.bC(this.hostElement,"yt-feedback-single-select-changed");_.H4(this.hostElement).querySelector("#freeform").focus();_.bC(this.hostElement,"yt-refit")};
_.v.showTextBox=function(N,b){return N&&b};
_.v.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.v.updateDataCheckedFromBinding=function(N){this.set("data.checked",N.detail.value)};
_.v.updateDataResultTextFromBinding=function(N){this.set("data.resultText",N.detail.value)};
nB.prototype.dataChanged=nB.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nB.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],nB.prototype,"multiselect",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],nB.prototype,"dataChanged",null);
_.p([_.Uj({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],nB);
_.X(nB,"ytd-feedback-option-renderer",function(){if(aQJ!==void 0)return aQJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return aQJ=N},{mode:1});var RGn;var dM=function(){return _.z.apply(this,arguments)||this};
_.F(dM,_.z);dM.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
dM.prototype.onSingleSelectCheckedChanged=function(N){N=_.gQ(N);for(var b=0;b<this.data.options.length;b++)if(N.data!==_.t(this.data.options[b],zTt)){var S="data.options."+b+".feedbackOptionRenderer.checked";this.notifyPath(S);this.set(S,!1)}};
dM.prototype.onSingleSelectCheckedChanged=dM.prototype.onSingleSelectCheckedChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dM.prototype,"data",void 0);
_.p([_.RA("yt-feedback-single-select-changed"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],dM.prototype,"onSingleSelectCheckedChanged",null);_.p([_.Uj({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],dM);
_.X(dM,"ytd-feedback-question-renderer",function(){if(RGn!==void 0)return RGn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return RGn=N},{mode:1});var W_6;var ms=function(){return _.z.apply(this,arguments)||this};
_.F(ms,_.z);ms.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
ms.prototype.getSelectedFeedbackResults=function(){for(var N={},b=0;b<this.data.questions.length;b++)for(var S=_.t(this.data.questions[b],js5),P=0;P<S.options.length;P++){var H=_.t(S.options[P],zTt);H&&H.checked&&(N[H.optionKey]=H.resultText)}return N};
ms.prototype.onKeyUp=function(){var N=this;_.PX(_.Dj,function(){_.bC(N.hostElement,"yt-refit")});
_.Dj.start()};
ms.prototype.submitSurvey=function(){var N=this.getSelectedFeedbackResults();Object.keys(N).length>0&&this.data.submitFeedbackEndpoint&&(N={survey_results:N,is_feedback_token_unencrypted:!0},_.aN().resolve(_.Wq).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},N,{element:this.hostElement})}))};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],ms.prototype,"data",void 0);_.p([_.Uj({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],ms);
_.X(ms,"ytd-feedback-survey-renderer",function(){if(W_6!==void 0)return W_6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return W_6=N},{mode:1});var nr6;var d9q;var k1=function(){return _.z.apply(this,arguments)||this};
_.F(k1,_.z);k1.prototype.computeAlt=function(N){return _.es(N)};
k1.prototype.submitResponse=function(){var N,b;(N=this.data)!=null&&N.feedbackToken&&((b=this.data)==null?void 0:b.nextStageIndex)!==void 0&&(_.PN(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.PN(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
k1.prototype.onClick=function(){this.submitResponse()};
k1.prototype.onClick=k1.prototype.onClick;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],k1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],k1.prototype,"vertical",void 0);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],k1.prototype,"onClick",null);
_.p([_.Uj({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],k1);
_.X(k1,"ytd-single-select-answer-option-renderer",function(){if(d9q!==void 0)return d9q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return d9q=N},{mode:1});var m9L;var T_=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return N};
_.F(T_,_.z);T_.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
T_.prototype.dataChanged=function(){var N,b;this.vertical=((b=(N=this.data)==null?void 0:N.answerOrientation)!=null?b:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
T_.prototype.submitFeedback=function(N){var b;((b=this.data)==null?0:b.responseEndpoint)&&N&&_.HN(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[N]}])};
T_.prototype.dataChanged=T_.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],T_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],T_.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],T_.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],T_.prototype,"vertical",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],T_.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],T_);
_.X(T_,"ytd-single-select-question-renderer",function(){if(m9L!==void 0)return m9L;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return m9L=N},{mode:1});var tG=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return N};
_.F(tG,_.z);_.v=tG.prototype;_.v.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.v.dataChanged=function(){this.jumpToStage(0)};
_.v.jumpToStage=function(N){var b,S;if((b=this.data)==null?0:(S=b.stages)==null?0:S[N])this.currentStage=this.data.stages[N],this.refitAfterRender()};
_.v.computeAlt=function(N){return _.es(N)};
_.v.computeSimpleMessage=function(N){var b;return(b=_.t(N,E$w))==null?void 0:b.messageText};
_.v.computeHideDismiss=function(N){var b;return(b=_.t(N,zyo))==null?void 0:b.hideParentDismissButton};
_.v.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");_.t(this.currentStage,E$w)||this.data.dismissalEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.refitAfterRender=function(){var N=this;_.W_(this,function(){_.bC(N.hostElement,"yt-refit")})};
tG.prototype.dataChanged=tG.prototype.dataChanged;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],tG.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],tG.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L(BgE),_.y("design:type",Object)],tG.prototype,"ytdHatsSurveyBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tG.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],tG.prototype,"currentStage",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tG.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],tG);
_.X(tG,"ytd-multi-stage-survey-renderer",function(){if(nr6!==void 0)return nr6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return nr6=N},{mode:1});var k1O;var Md=function(){return _.z.apply(this,arguments)||this};
_.F(Md,_.z);Md.prototype.computeAlt=function(N){return _.es(N)};
Md.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.aN().resolve(_.Wq).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(UkE(!1)))};
Md.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Md.prototype.onTap=Md.prototype.onTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Md.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Md.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Md.prototype,"vertical",void 0);
_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Md.prototype,"onTap",null);_.p([_.Uj({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Md);
_.X(Md,"ytd-single-option-survey-option-renderer",function(){if(k1O!==void 0)return k1O;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return k1O=N},{mode:1});var TLa;var Fp=function(){return _.z.apply(this,arguments)||this};
_.F(Fp,_.z);_.v=Fp.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){var N,b;this.vertical=(((N=this.data)==null?void 0:(b=N.surveyOrientation)==null?void 0:b.type)||"HORIZONTAL")==="VERTICAL"};
_.v.computeAlt=function(N){return _.es(N)};
_.v.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.aN().resolve(_.Wq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(UkE(!1))};
Fp.prototype.dataChanged=Fp.prototype.dataChanged;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Fp.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(BgE),_.y("design:type",Object)],Fp.prototype,"ytdHatsSurveyBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],Fp.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fp.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Fp.prototype,"vertical",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Fp.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Fp);
_.X(Fp,"ytd-single-option-survey-renderer",function(){if(TLa!==void 0)return TLa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return TLa=N},{mode:1});var tXn;var Bg=function(){return _.z.apply(this,arguments)||this};
_.F(Bg,_.z);Bg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bg.prototype.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
Bg.prototype.onNavigate=function(){_.St(this.hostElement,"yt-close-popup-action")};
Bg.prototype.onNavigate=Bg.prototype.onNavigate;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Bg.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Bg.prototype,"data",void 0);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Bg.prototype,"onNavigate",null);
_.p([_.Uj({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Bg);
_.X(Bg,"ytd-survey-follow-up-renderer",function(){if(tXn!==void 0)return tXn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return tXn=N},{mode:1});var MXJ;var F_n;var BL5;var lT=function(){var N=_.z.apply(this,arguments)||this;N.polymer2="Element"in Polymer;return N};
_.F(lT,_.z);_.v=lT.prototype;_.v.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.v.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.v.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.v.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("minutes-changed",this.minutes))};
_.v.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("seconds-changed",this.seconds))};
_.v.updateMinutesFromBinding=function(N){this.minutes=N.detail.value};
_.v.updateSecondsFromBinding=function(N){this.seconds=N.detail.value};
lT.prototype.secondsChangedForBinding=lT.prototype.secondsChangedForBinding;lT.prototype.minutesChangedForBinding=lT.prototype.minutesChangedForBinding;lT.prototype.secondsChanged=lT.prototype.secondsChanged;_.p([_.U(),_.y("design:type",String)],lT.prototype,"minutes",void 0);_.p([_.U(),_.y("design:type",String)],lT.prototype,"seconds",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],lT.prototype,"polymer2",void 0);
_.p([_.dq("#seconds"),_.y("design:type",Object)],lT.prototype,"secondsEl",void 0);_.p([_.W4("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lT.prototype,"secondsChanged",null);_.p([_.W4("minutes"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lT.prototype,"minutesChangedForBinding",null);
_.p([_.W4("seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],lT.prototype,"secondsChangedForBinding",null);_.p([_.J_({is:"yt-timestamp-input",disableElementRegistration:!0})],lT);
_.X(lT,"yt-timestamp-input",function(){if(BL5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;F_n===void 0&&(F_n=document.createElement("template"));var P=F_n;S.call(b,P.content.cloneNode(!0),N.content.firstChild);BL5=N}N=BL5;return N},{mode:2});var LB=function(){return _.z.apply(this,arguments)||this};
_.F(LB,_.z);_.v=LB.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22383_scroller.dialogElement=this.hostElement.parentNode};
_.v.dataChanged=function(){var N=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.w5().getPlayerPromise().then(function(b){b=b.getCurrentTime();N.minutes=Math.floor(b/60).toString();N.seconds=(Math.floor(b)%60).toString()})};
_.v.onTapSubmit=function(N){N.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(N={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(N.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(N.minutes=this.minutes,N.seconds=this.seconds),_.aN().resolve(_.Wq).resolveCommand(this.serviceEndpoint,{form:Object.assign({},N,{element:this.hostElement})}))};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.v.onYtServiceRequestCompleted=function(N,b){b=b.actions;if(Array.isArray(b))for(var S=0,P=b.length;S<P;S++)_.t(b[S],_.VD)&&(N.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(b[S]))};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.v.toggleSubmitButton=function(N){this.set("submitButton.isDisabled",!N)};
_.v.handleInput=function(){var N=this.issueType,b=this.affiliation,S=this.minutes,P=this.seconds;S=!this.showTimestamp||!!S&&!!P;this.toggleSubmitButton(!!this.descriptionText&&!!N&&!!b&&S)};
_.v.computeServiceEndpoint=function(N){return this.get("submitButton.buttonRenderer.serviceEndpoint",N)};
_.v.computeSubmitButton=function(N){(N=this.get("submitButton.buttonRenderer",N))&&(N=Object.assign({},N,{serviceEndpoint:void 0}));return N};
_.v.computeShowTimestamp=function(N){return!!N};
_.v.onValueChangedForIssueType=function(N){this.issueType=N.detail.value};
_.v.onValueChangedForAffiliation=function(N){this.affiliation=N.detail.value};
_.v.updateDescriptionTextFromBinding=function(N){this.descriptionText=N.detail.value};
_.v.updateFullNameTextFromBinding=function(N){this.fullNameText=N.detail.value};
_.v.updateMinutesFromBinding=function(N){this.minutes=N.detail.value};
_.v.updateSecondsFromBinding=function(N){this.seconds=N.detail.value};
LB.prototype.handleInput=LB.prototype.handleInput;LB.prototype.onYtServiceRequestError=LB.prototype.onYtServiceRequestError;LB.prototype.onYtServiceRequestCompleted=LB.prototype.onYtServiceRequestCompleted;LB.prototype.onYtServiceRequestSent=LB.prototype.onYtServiceRequestSent;LB.prototype.dataChanged=LB.prototype.dataChanged;_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],LB.prototype,"ytOpenPopupBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],LB.prototype,"JSC$22383_scroller",void 0);_.p([_.dq("#description"),_.y("design:type",HTMLInputElement)],LB.prototype,"description",void 0);_.p([_.dq("#full-name"),_.y("design:type",Object)],LB.prototype,"fullName",void 0);_.p([_.U(),_.y("design:type",Object)],LB.prototype,"data",void 0);
_.p([_.U({computed:"computeShowTimestamp(data.timestampLabel)"}),_.y("design:type",Boolean)],LB.prototype,"showTimestamp",void 0);_.p([_.U({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.y("design:type",Object)],LB.prototype,"serviceEndpoint",void 0);_.p([_.U({computed:"computeSubmitButton(data)"}),_.y("design:type",Object)],LB.prototype,"submitButton",void 0);_.p([_.U(),_.y("design:type",String)],LB.prototype,"descriptionText",void 0);
_.p([_.U(),_.y("design:type",Number)],LB.prototype,"issueType",void 0);_.p([_.U(),_.y("design:type",Number)],LB.prototype,"affiliation",void 0);_.p([_.U(),_.y("design:type",String)],LB.prototype,"fullNameText",void 0);_.p([_.U(),_.y("design:type",String)],LB.prototype,"minutes",void 0);_.p([_.U(),_.y("design:type",String)],LB.prototype,"seconds",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LB.prototype,"dataChanged",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],LB.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],LB.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],LB.prototype,"onYtServiceRequestError",null);_.p([_.W4("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],LB.prototype,"handleInput",null);_.p([_.Uj({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],LB);
_.X(LB,"ytd-legal-report-details-form-renderer",function(){if(MXJ!==void 0)return MXJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return MXJ=N},{mode:1});var lQi;var fB=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return N};
_.F(fB,_.z);fB.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
fB.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var N=this.formRenderer.getForm();N&&this.data.submitEndpoint&&(_.aN().resolve(_.Wq).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},N,{element:this.hostElement})}),_.St(this.hostElement,"yt-close-popup-action"))}};
fB.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.St(this.hostElement,"yt-close-popup-action"))};
fB.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
fB.prototype.onPopupClosed=fB.prototype.onPopupClosed;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],fB.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);
_.p([_.dq("yt-form-renderer"),_.y("design:type",Object)],fB.prototype,"formRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],fB.prototype,"data",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],fB.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-form-popup-content",disableElementRegistration:!0})],fB);
_.X(fB,"ytd-form-popup-content",function(){if(lQi!==void 0)return lQi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return lQi=N},{mode:1});var L__;var uT=function(){return _.z.apply(this,arguments)||this};
_.F(uT,_.z);uT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uT.prototype.onPopupOpened=function(){_.bC(this.hostElement,"yt-invalidate-popup-tabbables")};
uT.prototype.onYtServiceRequestCompleted=function(N,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.bC(this.hostElement,"yt-invalidate-popup-tabbables"))};
uT.prototype.onYtServiceRequestCompleted=uT.prototype.onYtServiceRequestCompleted;uT.prototype.onPopupOpened=uT.prototype.onPopupOpened;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],uT.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],uT.prototype,"data",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],uT.prototype,"onPopupOpened",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],uT.prototype,"onYtServiceRequestCompleted",null);_.p([_.Uj({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],uT);
_.X(uT,"ytd-form-popup-renderer",function(){if(L__!==void 0)return L__;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return L__=N},{mode:1});var fQi;var QQ=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;return N};
_.F(QQ,_.z);_.v=QQ.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");dMq(this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.isLoading=!0};
_.v.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.v.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.sR(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.v.closePopupHandler=function(){this.fireOnCloseActions()};
_.v.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var N=this.get("data.headerImage.thumbnails");N&&(N=_.wG(N,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+N+")")}};
_.v.onYtNavigate=function(N){(N=_.gQ(N))&&N.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
QQ.prototype.onYtNavigate=QQ.prototype.onYtNavigate;QQ.prototype.onHeaderImageChanged=QQ.prototype.onHeaderImageChanged;QQ.prototype.closePopupHandler=QQ.prototype.closePopupHandler;QQ.prototype.onYtServiceRequestCompleted=QQ.prototype.onYtServiceRequestCompleted;QQ.prototype.onYtServiceRequestSent=QQ.prototype.onYtServiceRequestSent;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],QQ.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],QQ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],QQ.prototype,"isLoading",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLDivElement)],QQ.prototype,"header",void 0);_.p([_.dq("#confirm-button"),_.y("design:type",_.w2)],QQ.prototype,"confirmButton",void 0);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],QQ.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],QQ.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],QQ.prototype,"closePopupHandler",null);_.p([_.W4("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],QQ.prototype,"onHeaderImageChanged",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],QQ.prototype,"onYtNavigate",null);
_.p([_.Uj({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],QQ);
_.X(QQ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(fQi!==void 0)return fQi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return fQi=N},{mode:1});var uU_;var x1=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;return N};
_.F(x1,_.z);_.v=x1.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);dMq(this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.v.onYtServiceRequestError=function(N){_.I2(this.hostElement,N.detail.error.message)};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.St(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.v.onDataChanged=function(){this.isLoading=!1;var N=this.get("data.headerImage.thumbnails");N&&(N=_.wG(N,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+N+")");N=_.Qh();var b=_.uZ(),S=this.get("data.trackingParams");S&&b&&N&&_.AZ(N,b,_.FA(S))};
_.d0.Object.defineProperties(x1.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
x1.prototype.onDataChanged=x1.prototype.onDataChanged;x1.prototype.onDomChange=x1.prototype.onDomChange;x1.prototype.onYtServiceRequestError=x1.prototype.onYtServiceRequestError;x1.prototype.onYtServiceRequestCompleted=x1.prototype.onYtServiceRequestCompleted;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],x1.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],x1.prototype,"isLoading",void 0);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],x1.prototype,"hasDescription",null);_.p([_.dq("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],x1.prototype,"scrollable",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLElement)],x1.prototype,"header",void 0);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],x1.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],x1.prototype,"onYtServiceRequestError",null);
_.p([_.RA("dom-change"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],x1.prototype,"onDomChange",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],x1.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],x1);
_.X(x1,"ytd-gaming-account-link-setting-renderer",function(){if(uU_!==void 0)return uU_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return uU_=N},{mode:1});var QMn;var x9t;var oC=function(){var N=_.z.apply(this,arguments)||this;N.isHeader=!1;N.getEndpointForm=function(){return B6i(N.data)};
return N};
_.F(oC,_.z);_.v=oC.prototype;_.v.triggerHintActions=function(){var N=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var b=_.PN(N.hostElement,"yt-get-opened-popups-action");!(b&&b.length===1?b[0]:[]).some(function(S){S=S.openPopupAction.popupType;return S==="SURVEY"||S==="MEALBAR"||S==="HINT"})&&N.data.hintActions&&N.guideOpened&&(_.sR(N.hostElement,N.data.hintActions,N.hostElement),N.data.hintActions=void 0)})};
_.v.getBadgeIconType=function(N){return N&&N.liveBroadcasting?"live":null};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(N){if(this.data.serviceEndpoint){var b;_.T("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.t(this.data.serviceEndpoint,_.kn))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):FlL(this.data.serviceEndpoint,this);N.preventDefault()}else this.data.navigationEndpoint&&!_.VC(_.V7(N),this.hostElement,["A".toString()])&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.v.computeActive=function(N,b){if(!N)return!1;var S=N.navigationEndpoint;N=N.serviceEndpoint;if(!S&&!N||!b)return!1;if(S){N=(N=_.R3(b))&&["subscriptions","filteredsubscriptions"].includes(N);if(_.t(S,_.Wd)&&_.t(b,_.Wd)&&!N){var P=_.t(S,_.Wd).browseId;b=_.t(b,_.Wd).browseId;return P!==void 0&&b!==void 0&&(P===b||P==="VLWL"&&b==="FEwatch_later"||P==="FEwatch_later"&&b==="VLWL")}var H;S=(H=_.t(S.commandMetadata,_.GY))==null?void 0:H.url;b=(P=_.t(b.commandMetadata,_.GY))==null?void 0:P.url;return!(!S||
!b||S!==b&&S!==_.Bq(b))}return this.isActiveShortsTab(N,b)};
_.v.isActiveShortsTab=function(N,b){b=!!_.t(b,_.kn)||!!_.t(b,_.Ow);return(!!_.t(N,_.kn)||!!_.t(N,_.Ow))&&b};
_.v.computeIsPrimary=function(N){return!!N};
_.d0.Object.defineProperties(oC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&N)return N}}});
oC.prototype.onTap=oC.prototype.onTap;oC.prototype.onUp=oC.prototype.onUp;oC.prototype.onDown=oC.prototype.onDown;oC.prototype.triggerHintActions=oC.prototype.triggerHintActions;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],oC.prototype,"componentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oC.prototype,"rendererBehavior",void 0);_.p([_.L(_.Bt.YtTaskEmitterBehavior),_.y("design:type",Object)],oC.prototype,"taskEmitterBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],oC.prototype,"activeEndpoint",void 0);_.p([_.U(),_.y("design:type",Object)],oC.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],oC.prototype,"guideOpened",void 0);_.p([_.U(),_.y("design:type",String)],oC.prototype,"type",void 0);_.p([_.dq("yt-interaction"),_.y("design:type",Object)],oC.prototype,"interaction",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oC.prototype,"isHeader",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data","activeEndpoint"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oC.prototype,"active",null);_.p([_.U({reflectToAttribute:!0}),_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],oC.prototype,"isPrimary",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.count","data.presentationStyle","data.badges.*"),_.y("design:type",String),_.y("design:paramtypes",[])],oC.prototype,"lineEndStyle",null);
_.p([_.f("lineEndStyle"),_.y("design:type",Object),_.y("design:paramtypes",[])],oC.prototype,"ariaLabel",null);_.p([_.W4("data.hintActions","guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oC.prototype,"triggerHintActions",null);_.p([_.RA("down"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oC.prototype,"onDown",null);
_.p([_.RA("up"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oC.prototype,"onUp",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oC.prototype,"onTap",null);_.p([_.Uj({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],oC);
_.X(oC,"ytd-guide-entry-renderer",function(){if(x9t!==void 0)return x9t;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return x9t=N},{mode:1});var iT=function(){var N=_.z.apply(this,arguments)||this;N.userToggled=!1;return N};
_.F(iT,_.z);_.v=iT.prototype;_.v.getItemsPath=function(){return"data.expandableItems"};
_.v.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.v.onExpanderItemTapped=function(N){var b=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.T("kevlar_guide_expandable_items_killswitch")&&_.W_(this,function(){_.Cv(b.expandableItems)});
N.preventDefault()};
_.v.onCollapserItemTapped=function(N){var b=this;this._setExpanded(!1);this.userToggled=!0;N.preventDefault();this.expandableItems&&!_.T("kevlar_guide_collapsible_items_killswitch")&&_.W_(this,function(){_.Ov(b.hostElement)})};
_.v.observeActiveEndpoint=function(){for(var N=this.activeEndpoint,b=this.data,S=this.expandableItems.children,P=0,H=S.length;P<H;P++)S[P].activeEndpoint=N;b&&b.autoExpandCommand&&N&&!this.userToggled&&(S=this.data.autoExpandCommand,b=!(!_.t(S,_.Wd)||!_.t(N,_.Wd)||_.t(S,_.Wd).browseId!==_.t(N,_.Wd).browseId),N=this.get("commandMetadata.webCommandMetadata.url",N),S=this.get("commandMetadata.webCommandMetadata.url",S),b=b||!!(N&&S&&N.includes(S)),this._setExpanded(b),b&&this.ytLazyListBehavior.fillRemainingListItems())};
iT.prototype.observeActiveEndpoint=iT.prototype.observeActiveEndpoint;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],iT.prototype,"ytLazyListBehavior",void 0);_.p([_.dq("#expandable-items"),_.y("design:type",HTMLElement)],iT.prototype,"expandableItems",void 0);
_.p([_.U(),_.y("design:type",Object)],iT.prototype,"data",void 0);_.p([_.U({readOnly:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],iT.prototype,"expanded",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],iT.prototype,"initialCount",void 0);_.p([_.U(),_.y("design:type",Object)],iT.prototype,"activeEndpoint",void 0);_.p([_.W4("data","activeEndpoint","canShowMore"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],iT.prototype,"observeActiveEndpoint",null);
_.p([_.Uj({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],iT);
_.X(iT,"ytd-guide-collapsible-entry-renderer",function(){if(QMn!==void 0)return QMn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return QMn=N},{mode:_.sZ("kevlar_poly_si_batch_j079")?1:2});var orE;var ibn;var JG=function(){var N=_.z.apply(this,arguments)||this;N.allVideosCount=0;N.renderGuideEntry=!1;return N};
_.F(JG,_.z);JG.prototype.observeRenderEntry=function(){var N;this.renderGuideEntry=!((N=this.data)==null||!N.alwaysShow)||!!this.allVideosCount};
JG.prototype.observeRenderEntry=JG.prototype.observeRenderEntry;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],JG.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JG.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],JG.prototype,"activeEndpoint",void 0);_.p([_.U({selector:_.V$u}),_.y("design:type",Object)],JG.prototype,"allVideosCount",void 0);
_.p([_.U(),_.y("design:type",Object)],JG.prototype,"renderGuideEntry",void 0);_.p([_.t_("allVideosCount","data.alwaysShow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],JG.prototype,"observeRenderEntry",null);_.p([_.Uj({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],JG);
_.X(JG,"ytd-guide-downloads-entry-renderer",function(){if(ibn===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);ibn=N}N=ibn;return N},{mode:1});var Uk=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return N};
_.F(Uk,_.z);_.v=Uk.prototype;_.v.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.v.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var N=this.sectionItems.children,b=0,S=N.length;b<S;b++)N[b].activeEndpoint=this.activeEndpoint}};
_.v.handleAddToGuideSectionAction=function(N){var b=_.t(N,kqw);if(b&&this.data&&(N=b.items,b=b.handlerData,N&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1)){b=0;for(var S=N.length;b<S;b++)N[b].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,N[b])}};
_.v.handleRemoveFromGuideSectionAction=function(N){var b=_.t(N,T4Q);b&&this.data&&(N=b.guideEntryId,b=b.handlerData,N&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(N,this.data.sectionItems),this.removeFromCollapsedSection(N,this.data.sectionItems)))};
_.v.removeFromExpandedSection=function(N,b){N=this.getEntryIndexMatchingId(N,b);N!==-1&&this.splice("data.sectionItems",N,1)};
_.v.removeFromCollapsedSection=function(N,b){var S=b.findIndex(function(P){return!!_.t(P,LlQ)});
S&&S!==-1&&b[S]&&_.t(b[S],LlQ)&&(b=_.t(b[S],LlQ).expandableItems)&&(N=this.getEntryIndexMatchingId(N,b),N!==-1&&this.splice("data.sectionItems."+S+".guideCollapsibleEntryRenderer.expandableItems",N,1))};
_.v.getEntryIndexMatchingId=function(N,b){var S=this;return b.findIndex(function(P){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===N})};
Uk.prototype.activeEndpointChanged=Uk.prototype.activeEndpointChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Uk.prototype,"actionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#section-items"),_.y("design:type",HTMLDivElement)],Uk.prototype,"sectionItems",void 0);
_.p([_.dq("#header-entry"),_.y("design:type",Object)],Uk.prototype,"headerEntry",void 0);_.p([_.U(),_.y("design:type",Object)],Uk.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Uk.prototype,"activeEndpoint",void 0);_.p([_.W4("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uk.prototype,"activeEndpointChanged",null);_.p([_.Uj({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Uk);
_.X(Uk,"ytd-guide-collapsible-section-entry-renderer",function(){if(orE===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);orE=N}N=orE;return N},{mode:1});var JYE;var U9J;var Z5=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return N};
_.F(Z5,_.z);_.v=Z5.prototype;
_.v.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.v.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var N=_.PN(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);N&&N.length===1&&N[0]&&_.PN(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.v.handleResetChannelUnreadCountCommand=function(N){var b;(N=(b=_.t(N,Fqw))==null?void 0:b.channelId)&&this.data&&this.data.items&&(b=this.getPathToEntryMatchingId(N))&&(this.set(b+".guideEntryRenderer.count",0),this.set(b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.handleResetSubscriptionsUnreadDotCommand=function(N){var b,S=(b=_.t(N,B4n))==null?void 0:b.targetId,P;S&&(P=this.data)!=null&&P.items&&(N=this.data.items.findIndex(function(H){var K;return((K=H.guideEntryRenderer)==null?void 0:K.targetId)===S}),N<0||this.set("data.items."+N+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.getPathToEntryMatchingId=function(N){if(this.data&&this.data.items){var b=this.getEntryIndexMatchingId(N,this.data.items);if(b>-1)return"data.items."+b;for(var S=0;S<this.data.items.length;S++)if(b=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[S]))if(b=this.getEntryIndexMatchingId(N,b),b>-1)return"data.items."+S+".guideCollapsibleEntryRenderer.expandableItems."+b}};
_.v.handleAddToGuideSectionAction=function(N){var b=this;if(_.t(N,kqw)){var S=_.t(N,kqw).items;N=_.t(N,kqw).handlerData;var P,H;if(S&&N&&((P=this.data)==null?void 0:(H=P.handlerDatas)==null?void 0:H.indexOf(N))>-1){S=S.filter(function(C){return(C=b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C))&&!b.isGuideItemPresent(C)});
var K;if(N==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((K=this.data)==null?0:K.items)&&(P=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),P>-1)){this.splice.apply(this,["data.items",P+1,0].concat(_.IX(S)));return}this.unshift.apply(this,["data.items"].concat(_.IX(S)))}}};
_.v.isGuideItemPresent=function(N){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(N,this.data.items)!==-1)return!0;var b=this.data.items.find(function(S){return!!S.guideCollapsibleEntryRenderer});
if((b==null?0:b.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(N,b.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.v.getEntryIndexMatchingId=function(N,b){var S=this;return b.findIndex(function(P){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===N})};
_.v.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(N,b){var S=this;return b.findIndex(function(P){return S.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===N})};
_.v.handleRemoveFromGuideSectionAction=function(N){if(_.t(N,T4Q)){var b=_.t(N,T4Q).guideEntryId;N=_.t(N,T4Q).handlerData;var S,P;b&&N&&((S=this.data)==null?void 0:(P=S.handlerDatas)==null?void 0:P.indexOf(N))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(b,this.data.items),this.removeFromCollapsedSection(b,this.data.items))}};
_.v.removeFromExpandedSection=function(N,b){N=this.getEntryIndexMatchingId(N,b);N!==-1&&this.splice("data.items",N,1)};
_.v.removeFromCollapsedSection=function(N,b){var S=b.findIndex(function(P){return!!P.guideCollapsibleEntryRenderer});
S!==-1&&(b=b[S].guideCollapsibleEntryRenderer.expandableItems)&&(N=this.getEntryIndexMatchingId(N,b),N!==-1&&this.splice("data.items."+S+".guideCollapsibleEntryRenderer.expandableItems",N,1))};
_.v.activeEndpointChanged=function(){for(var N=_.H4(this.hostElement).querySelector("#items").children,b=0,S=N.length;b<S;b++)N[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.guideOpenedChanged=function(){for(var N=_.H4(this.hostElement).querySelector("#items").children,b=0,S=N.length;b<S;b++)N[b].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Z5.prototype.guideOpenedChanged=Z5.prototype.guideOpenedChanged;Z5.prototype.activeEndpointChanged=Z5.prototype.activeEndpointChanged;Z5.prototype.persistentGuideChanged=Z5.prototype.persistentGuideChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],Z5.prototype,"ytLazyListBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Z5.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Z5.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",String)],Z5.prototype,"type",void 0);_.p([_.U({value:20}),_.y("design:type",Number)],Z5.prototype,"initialCount",void 0);_.p([_.U({value:10}),_.y("design:type",Number)],Z5.prototype,"targetFramerate",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],Z5.prototype,"autoFill",void 0);_.p([_.U({value:50}),_.y("design:type",Number)],Z5.prototype,"renderDelay",void 0);
_.p([_.W4("guidePersistentAndVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z5.prototype,"persistentGuideChanged",null);_.p([_.t_("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z5.prototype,"activeEndpointChanged",null);_.p([_.t_("guideOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z5.prototype,"guideOpenedChanged",null);
_.p([_.Uj({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Z5);
_.X(Z5,"ytd-guide-section-renderer",function(){if(U9J!==void 0)return U9J;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return U9J=N},{mode:_.sZ("kevlar_poly_si_batch_j073")?1:2});var Zbi;var jL=function(){return _.z.apply(this,arguments)||this};
_.F(jL,_.z);_.d0.Object.defineProperties(jL.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],jL.prototype,"rendererBehaviors",void 0);_.p([_.U(),_.y("design:type",Object)],jL.prototype,"data",void 0);_.p([_.U(),_.f("data.signInButton.buttonRenderer.style"),_.y("design:type",Object),_.y("design:paramtypes",[])],jL.prototype,"alignByText",null);_.p([_.Uj({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],jL);
_.X(jL,"ytd-guide-signin-promo-renderer",function(){if(Zbi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);Zbi=N}N=Zbi;return N},{mode:1});var z_=function(){var N=_.z.apply(this,arguments)||this;N.showFooter=!1;return N};
_.F(z_,_.z);z_.prototype.configureRendererStamper=function(){return{shownItems:{id:"sections",mapping:{guideSectionRenderer:{component:"ytd-guide-section-renderer",noInjection:!0},guideSigninPromoRenderer:{component:"ytd-guide-signin-promo-renderer",noInjection:!0},guideSubscriptionsSectionRenderer:{component:"ytd-guide-section-renderer",params:{type:"subscriptions"},noInjection:!0}}}}};
z_.prototype.attached=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1){b=_.aN().resolve(_.cq(_.WO));if(!b)return S.jumpTo(0);b.setGuideData(N.hostElement);return S.yield(0,3)}N.ytLazyListBehavior.initialCount=2;return S.return()})};
z_.prototype.onMouseExit=function(){_.T("web_guide_hover_expansion")&&_.PN(this.hostElement,"yt-guide-mouseleaved",[])};
z_.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
z_.prototype.dataChanged=z_.prototype.dataChanged;z_.prototype.onMouseExit=z_.prototype.onMouseExit;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],z_.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.xJ.YtLazyListBehavior),_.y("design:type",Object)],z_.prototype,"ytLazyListBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],z_.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],z_.prototype,"showFooter",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],z_.prototype,"autoFill",void 0);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z_.prototype,"onMouseExit",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],z_.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-guide-renderer",disableElementRegistration:!0})],z_);
_.X(z_,"ytd-guide-renderer",function(){if(JYE!==void 0)return JYE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return JYE=N},{mode:_.sZ("kevlar_poly_si_batch_j073")?1:2});var jMi;var AG=function(){var N=_.z.apply(this,arguments)||this;N.systemIcons=_.T("kevlar_system_icons");N.frostedGlass=_.T("web_frosted_glass");N.onAllyMenuButtonClick=function(){var b=N.getShowSheetCommand();b&&N.ytComponentBehavior.resolveCommand(b)};
N.getEndpointForm=function(){return B6i(N.data)};
return N};
_.F(AG,_.z);_.v=AG.prototype;_.v.attached=function(){this.JSC$22436_sheetController=_.aN().resolve(_.sD)};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var N;(N=this.JSC$22436_sheetController)==null||B_6(N,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.v.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.v.isSeedlessReelCommand=function(N){var b;return!!N&&((b=_.t(N,_.kn))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.v.isShowSheetCommand=function(N){return!!N&&!!_.t(N,_.Mb)};
_.v.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.v.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.v.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(N){if(this.data.serviceEndpoint){if(_.T("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var b;(b=this.JSC$22436_sheetController)==null||B_6(b,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));N.preventDefault();
return}FlL(this.data.serviceEndpoint,this)}N.preventDefault()}else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.VC(_.V7(N),this.hostElement,["A".toString()])&&_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.v.computeActive=function(N,b){if(!N)return!1;var S=N.navigationEndpoint;N=N.serviceEndpoint;if(!S&&!N||!b)return!1;if(S){N=_.t(S,_.Wd);var P=_.t(b,_.Wd);if(N&&P)return N.browseId===P.browseId&&N.params===P.params;var H;S=(H=_.t(S.commandMetadata,_.GY))==null?void 0:H.url;var K;b=(K=_.t(b.commandMetadata,_.GY))==null?void 0:K.url;return!(!S||!b||S!==b&&S!==_.Bq(b))}return this.isActiveShortsTab(N,b)};
_.v.isActiveShortsTab=function(N,b){b=!!_.t(b,_.kn)||!!_.t(b,_.Ow);return(!!_.t(N,_.kn)||!!_.t(N,_.Ow))&&b};
_.v.computeTitle=function(N,b){return b?"":_.es(N)};
_.v.computeEndpoint=function(N){return this.isSeedlessReelCommand(N.serviceEndpoint)?N.serviceEndpoint:N.navigationEndpoint};
_.v.computeAriaLabelTitle=function(N){return _.es(N)};
_.v.computeAllyShowMenuOnTap=function(N){return this.isShowSheetCommand(N.mouseEnterEndpoint)||this.isShowSheetCommand(N.serviceEndpoint)};
_.d0.Object.defineProperties(AG.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
AG.prototype.onMouseLeave=AG.prototype.onMouseLeave;AG.prototype.onMouseEnter=AG.prototype.onMouseEnter;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],AG.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.qP),_.y("design:type",Object)],AG.prototype,"ironButtonState",void 0);_.p([_.U(),_.y("design:type",Object)],AG.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],AG.prototype,"activeEndpoint",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],AG.prototype,"noLabels",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.y("design:type",Boolean)],AG.prototype,"isActive",void 0);_.p([_.U({computed:"computeEndpoint(data)"}),_.y("design:type",Object)],AG.prototype,"computedEndpoint",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],AG.prototype,"systemIcons",void 0);_.p([_.dq("yt-interaction"),_.y("design:type",Object)],AG.prototype,"interaction",void 0);_.p([_.f("isActive"),_.y("design:type",Object),_.y("design:paramtypes",[])],AG.prototype,"ariaSelected",null);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],AG.prototype,"frostedGlass",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.y("design:type",Boolean)],AG.prototype,"allyShowMenuOnTap",void 0);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],AG.prototype,"onMouseEnter",null);_.p([_.RA("mouseleave"),_.y("design:type",Function),_.y("design:paramtypes",[MouseEvent]),_.y("design:returntype")],AG.prototype,"onMouseLeave",null);
_.p([_.Uj({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],AG);
_.X(AG,"ytd-mini-guide-entry-renderer",function(){if(jMi!==void 0)return jMi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return jMi=N},{mode:_.sZ("kevlar_poly_si_batch_j063")?1:2});var zG5;var Xp=function(){var N=_.z.apply(this,arguments)||this;N.allVideosCount=0;N.noLabels=_.T("kevlar_mini_guide_no_labels");N.frostedGlass=_.T("web_frosted_glass");return N};
_.F(Xp,_.z);_.v=Xp.prototype;_.v.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.v.onMouseEnter=function(){_.T("web_guide_hover_expansion")&&_.PN(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.v.visibleChanged=function(){if(this.visible&&!this.data){var N=_.aN().resolve(_.cq(_.WO));N&&N.setGuideData(this.hostElement);_.Ew(_.dG(),this.miniGuideVe);(N=_.Qh())&&this.miniGuideVe&&_.ER(N,this.miniGuideVe)}};
_.v.dataChanged=function(){var N=_.T("kevlar_guide_menu_on_hover")&&_.T("kevlar_modern_mini_guide"),b=_.T("kevlar_guide_menu_on_click")&&_.T("kevlar_modern_mini_guide"),S;var P=(S=this.data)==null?void 0:S.items;S=this.allVideosCount;var H=[];N=N?0:b?1:void 0;b=N!==void 0;if(P){for(var K=[],C=_.O(P),G=C.next();!G.done;G=C.next())if(G=G.value,G.guideSubscriptionsSectionRenderer){var a=void 0;K=((a=G.guideSubscriptionsSectionRenderer)==null?void 0:a.items)||[]}P=_.O(P);for(C=P.next();!C.done;C=P.next())if(C=
C.value,G=void 0,(G=C.guideSectionRenderer)==null?0:G.items)for(G=void 0,C=_.O((G=C.guideSectionRenderer)==null?void 0:G.items),G=C.next();!G.done;G=C.next()){G=G.value;var R=void 0,n=void 0;a=G.guideEntryRenderer||_.t((R=G)==null?void 0:(n=R.guideCollapsibleSectionEntryRenderer)==null?void 0:n.headerEntry,lMn);R=[];n=[];var d=void 0;if(((d=a)==null?void 0:d.targetId)==="subscriptions-guide-item")R=K;else{var m=d=void 0;if((d=G)==null?0:(m=d.guideCollapsibleSectionEntryRenderer)==null?0:m.sectionItems)n=
R=G.guideCollapsibleSectionEntryRenderer.sectionItems}u0q(H,a,b?R:[],N);if(n.length>0)for(G=_.O(n),a=G.next();!a.done;a=G.next())a=a.value,n=_.t(a,OHa),R=void 0,n=n&&(n.alwaysShow||S)?_.t((R=n)==null?void 0:R.entryRenderer,lMn):_.t(a,lMn),u0q(H,n,[])}}this.miniGuideItems=H};
_.v.activeEndpointChanged=function(){for(var N=this.items.children,b=0;b<N.length;b++)N[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.registerWithViewTransitionManager=function(){var N=this;_.XC(_.Dj,function(){var b=_.aN().resolve(_.cq(_.wH));if(b&&b.isAnyTransitionEnabled){var S={};b.viewTransitionCoordinator.registerElement(N.hostElement,(S.slide="mini-guide-page-transition",S))}})};
Xp.prototype.activeEndpointChanged=Xp.prototype.activeEndpointChanged;Xp.prototype.dataChanged=Xp.prototype.dataChanged;Xp.prototype.visibleChanged=Xp.prototype.visibleChanged;Xp.prototype.onMouseEnter=Xp.prototype.onMouseEnter;_.p([_.L(_.Gr),_.y("design:type",Object)],Xp.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],Xp.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Xp.prototype,"ytComponentBehavior",void 0);_.p([_.dq("#items"),_.y("design:type",Object)],Xp.prototype,"items",void 0);_.p([_.U(),_.y("design:type",Object)],Xp.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Boolean)],Xp.prototype,"visible",void 0);_.p([_.U(),_.y("design:type",Object)],Xp.prototype,"miniGuideItems",void 0);_.p([_.U({selector:_.V$u}),_.y("design:type",Object)],Xp.prototype,"allVideosCount",void 0);_.p([_.U({value:_.OW(283834)}),_.y("design:type",_.f6)],Xp.prototype,"miniGuideVe",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"noLabels",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Xp.prototype,"frostedGlass",void 0);_.p([_.RA("mouseenter"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"onMouseEnter",null);_.p([_.t_("visible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"visibleChanged",null);
_.p([_.t_("data","allVideosCount"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"dataChanged",null);_.p([_.t_("activeEndpoint"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xp.prototype,"activeEndpointChanged",null);_.p([_.Uj({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Xp);
_.X(Xp,"ytd-mini-guide-renderer",function(){if(zG5===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);zG5=N}N=zG5;return N},{mode:1});var AYL;var XQL=/^[\x00-\x7F]+$/,Ek=function(){return _.z.apply(this,arguments)||this};
_.F(Ek,_.z);_.d0.Object.defineProperties(Ek.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var N,b=_.es((N=this.data)==null?void 0:N.handle);if(b)return _.gy("@"+b)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var N=_.es(this.displayHandle),b,S=_.es((b=this.data)==null?void 0:b.handleUrl);if(N&&S)return _.gy(S+N)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var N=_.es(this.displayHandle);if(N&&!XQL.test(N)){var b;return(b=this.data)==null?void 0:b.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var N=_.es(this.displayHandleUrl),b,S=_.es((b=this.data)==null?void 0:b.urlInfoText);if(N&&S)return _.gy(S+" "+N)}}});
_.p([_.U(),_.y("design:type",Object)],Ek.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ek.prototype,"displayHandle",null);_.p([_.f("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ek.prototype,"displayHandleUrl",null);_.p([_.f("displayHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ek.prototype,"warningText",null);
_.p([_.f("displayHandleUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Ek.prototype,"urlInfoTextWithUrl",null);_.p([_.Uj({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ek);
_.X(Ek,"ytd-handles-claiming-confirm-dialog-content",function(){if(AYL!==void 0)return AYL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return AYL=N},{mode:1});var ErO;var pB=function(){var N=_.z.apply(this,arguments)||this;N.okButtonOverride={style:"mono",type:"outline",size:"M"};return N};
_.F(pB,_.z);pB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pB.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],pB.prototype,"okButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],pB.prototype,"data",void 0);_.p([_.Uj({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],pB);
_.X(pB,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(ErO!==void 0)return ErO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ErO=N},{mode:1});var pQt;var Yo6=/^[\x00-\x7F]+$/,Y1=function(){var N=_.z.apply(this,arguments)||this;N.isLoading=!1;return N};
_.F(Y1,_.z);Y1.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var N;this.selectedHandle=(N=this.handleInput)==null?void 0:N.value;this.onSelectedHandleChanged(this.selectedHandle);_.PN(this.hostElement,"yt-refit-popups-action")}};
_.d0.Object.defineProperties(Y1.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.gy("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.gy(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Yo6.test(this.selectedHandle)){var N;return(N=this.data)==null?void 0:N.warningText}}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Y1.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Y1.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],Y1.prototype,"selectedHandle",void 0);_.p([_.U(),_.y("design:type",Object)],Y1.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Function)],Y1.prototype,"onSelectedHandleChanged",void 0);_.p([_.dq("#channel-handle-input"),_.y("design:type",Object)],Y1.prototype,"handleInput",void 0);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Y1.prototype,"handleUrlPrefix",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Y1.prototype,"displayHandle",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Y1.prototype,"displayHandleUrl",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],Y1.prototype,"warningText",null);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.p([_.Uj({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Y1);
_.X(Y1,"ytd-handles-claiming-edit-dialog-content",function(){if(pQt!==void 0)return pQt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return pQt=N},{mode:1});var yYo;var yQ=function(){var N=_.z.apply(this,arguments)||this;N.actionButtonOverride={style:"mono",type:"filled",size:"M"};N.cancelButtonOverride={style:"mono",type:"text",size:"M"};N.selectButtonDisabled=!1;N.isLoading=!1;N.hasSelectedHandleEventListener=!1;N.selectedHandleChanged=function(b){N.selectedHandle=b};
return N};
_.F(yQ,_.z);_.v=yQ.prototype;_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.v.onDataChanged=function(){var N,b;this.selectedHandle=(b=_.t((N=this.data)==null?void 0:N.inputField,vt6))==null?void 0:b.handle};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.selectedHandle="";_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var N=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.I2(N.hostElement,_.es(P.newHandleUpdateStatus.errorMessage)),
N.isLoading=!1;else{var H;if((H=N.data)==null?0:H.onChannelUpdateSuccess){S=N.data.onChannelUpdateSuccess;var K,C;if(P=(K=_.t(S,_.VD))==null?void 0:(C=K.popup)==null?void 0:C.handlesClaimingConfirmDialogRenderer)P.handle=_.gy(N.selectedHandle);N.ytComponentBehavior.resolveCommand(S);_.St(N.hostElement,"yt-close-popup-action",[N.is])}else N.isLoading=!1}},
onServerError:function(){var S;N.content&&((S=N.content)==null?0:S.handleInput)&&N.content.handleInput.validate();N.isLoading=!1;_.I2(N.hostElement,_.cN("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
yQ.prototype.onDataChanged=yQ.prototype.onDataChanged;yQ.prototype.onSelectedHandleChanged=yQ.prototype.onSelectedHandleChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],yQ.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"actionButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"cancelButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",String)],yQ.prototype,"selectedHandle",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"selectButtonDisabled",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"hasSelectedHandleEventListener",void 0);_.p([_.U(),_.y("design:type",Object)],yQ.prototype,"handleInput",void 0);
_.p([_.W4("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yQ.prototype,"onSelectedHandleChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yQ.prototype,"onDataChanged",null);_.p([_.dq("ytd-handles-claiming-edit-dialog-content"),_.y("design:type",Object)],yQ.prototype,"content",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.Uj({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],yQ);
_.X(yQ,"ytd-handles-claiming-edit-dialog-renderer",function(){if(yYo!==void 0)return yYo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return yYo=N},{mode:1});var IQo;var IC=function(){return _.z.apply(this,arguments)||this};
_.F(IC,_.z);_.d0.Object.defineProperties(IC.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.handle){var b;return _.gy("@"+_.es((b=this.data)==null?void 0:b.handle))}}}});
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],IC.prototype,"formattedHandle",null);_.p([_.U(),_.y("design:type",Object)],IC.prototype,"data",void 0);_.p([_.Uj({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],IC);
_.X(IC,"ytd-handles-claiming-radio-option-renderer",function(){if(IQo!==void 0)return IQo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return IQo=N},{mode:1});var D9a;var VXQ=/^[\x00-\x7F]+$/,D5=function(){var N=_.z.apply(this,arguments)||this;N.initialRadioIndex="-1";N.isLoading=!1;N.maybeSubmitFeedback=function(){N.feedbackSurveyRenderer.submitSurvey()};
return N};
_.F(D5,_.z);D5.prototype.updateSelectedHandleIndexFromBinding=function(N){this.selectedRadioIndex=+N.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(N)};
D5.prototype.selectedHandleChanged=function(N){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(N)}};
_.d0.Object.defineProperties(D5.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var N;return this.ytRendererBehavior.getSimpleString((N=this.data)==null?void 0:N.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.gy("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.gy(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!VXQ.test(this.selectedHandle)){var N;return(N=this.data)==null?void 0:N.warningText}}}});
_.p([_.U(),_.y("design:type",Object)],D5.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],D5.prototype,"initialRadioIndex",void 0);_.p([_.U(),_.y("design:type",Number)],D5.prototype,"selectedRadioIndex",void 0);_.p([_.U(),_.y("design:type",String)],D5.prototype,"selectedHandle",void 0);_.p([_.U(),_.y("design:type",Object)],D5.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Function)],D5.prototype,"onSelectedHandleChanged",void 0);
_.p([_.U(),_.y("design:type",Function)],D5.prototype,"onSelectedRadioIndexChanged",void 0);_.p([_.dq("#channel-handle-input"),_.y("design:type",Object)],D5.prototype,"handleInput",void 0);_.p([_.dq("ytd-feedback-survey-renderer"),_.y("design:type",Object)],D5.prototype,"feedbackSurveyRenderer",void 0);_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],D5.prototype,"radioButtonLength",null);
_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],D5.prototype,"handleUrlPrefix",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],D5.prototype,"displayHandle",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],D5.prototype,"displayHandleUrl",null);_.p([_.f("selectedHandle"),_.y("design:type",Object),_.y("design:paramtypes",[])],D5.prototype,"warningText",null);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.p([_.Uj({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],D5);
_.X(D5,"ytd-handles-claiming-select-dialog-content",function(){if(D9a!==void 0)return D9a;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return D9a=N},{mode:1});var gr6;var VQ=function(){var N=_.z.apply(this,arguments)||this;N.actionButtonOverride={style:"mono",type:"filled",size:"M"};N.cancelButtonOverride={style:"mono",type:"text",size:"M"};N.initialRadioIndex="-1";N.selectButtonDisabled=!1;N.isLoading=!1;N.selectedRadioIndexChanged=function(b){N.selectedRadioIndex=Number(b.detail.value)};
N.selectedHandleChanged=function(b){N.selectedHandle=b.detail.value};
return N};
_.F(VQ,_.z);_.v=VQ.prototype;_.v.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.v.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.PN(this.hostElement,"yt-refit-popups-action")};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var N=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.I2(N.hostElement,_.es(P.newHandleUpdateStatus.errorMessage)),
N.isLoading=!1;else{var H;if((H=N.data)==null?0:H.onChannelUpdateSuccess){S=N.data.onChannelUpdateSuccess;P=_.t(S,_.VD);var K;if(P==null?0:(K=P.popup)==null?0:K.handlesClaimingConfirmDialogRenderer)P.popup.handlesClaimingConfirmDialogRenderer.handle=_.gy(N.selectedHandle);N.ytComponentBehavior.resolveCommand(S);_.St(N.hostElement,"yt-close-popup-action",[N.is])}else N.isLoading=!1}},
onServerError:function(){if(N.selectedRadioIndex===N.radioButtonLength){var S;N.content&&((S=N.content)==null?0:S.handleInput)&&N.content.handleInput.validate()}N.isLoading=!1;_.I2(N.hostElement,_.cN("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var N,b;this.selectedHandle=(N=this.content)==null?void 0:(b=N.handleInput)==null?void 0:b.value}else this.selectedRadioIndex>=0&&((N=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(N==null?void 0:N.handle):this.selectedHandle=void 0)};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.v.getRadioItem=function(N){if(this.radioButtonLength>N&&N>=0)return _.t(this.data.radioButton[N],Ett)};
_.d0.Object.defineProperties(VQ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.radioButton)||[]).length}}});
VQ.prototype.onSelectedHandleChanged=VQ.prototype.onSelectedHandleChanged;VQ.prototype.onSelectedHandleIndexChanged=VQ.prototype.onSelectedHandleIndexChanged;VQ.prototype.onDataChanged=VQ.prototype.onDataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],VQ.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"actionButtonOverride",void 0);_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"cancelButtonOverride",void 0);
_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"initialRadioIndex",void 0);_.p([_.U(),_.y("design:type",Number)],VQ.prototype,"selectedRadioIndex",void 0);_.p([_.U(),_.y("design:type",String)],VQ.prototype,"selectedHandle",void 0);_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"selectButtonDisabled",void 0);_.p([_.U(),_.y("design:type",Object)],VQ.prototype,"isLoading",void 0);
_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],VQ.prototype,"radioButtonLength",null);_.p([_.dq("ytd-handles-claiming-select-dialog-content"),_.y("design:type",Object)],VQ.prototype,"content",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VQ.prototype,"onDataChanged",null);
_.p([_.W4("selectedRadioIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VQ.prototype,"onSelectedHandleIndexChanged",null);_.p([_.W4("selectedHandle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],VQ.prototype,"onSelectedHandleChanged",null);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.Uj({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],VQ);
_.X(VQ,"ytd-handles-claiming-select-dialog-renderer",function(){if(gr6!==void 0)return gr6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return gr6=N},{mode:1});var eGL;var $9t;var gM=function(){return _.z.apply(this,arguments)||this};
_.F(gM,_.z);gM.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gM.prototype,"data",void 0);_.p([_.Uj({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],gM);
_.X(gM,"ytd-hotkey-dialog-section-option-renderer",function(){if($9t!==void 0)return $9t;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return $9t=N},{mode:1});var hGa;var eL=function(){return _.z.apply(this,arguments)||this};
_.F(eL,_.z);eL.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],eL.prototype,"data",void 0);_.p([_.Uj({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],eL);
_.X(eL,"ytd-hotkey-dialog-section-renderer",function(){if(hGa!==void 0)return hGa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return hGa=N},{mode:1});var $1=function(){return _.z.apply(this,arguments)||this};
_.F($1,_.z);$1.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$1.prototype,"data",void 0);_.p([_.Uj({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],$1);
_.X($1,"ytd-hotkey-dialog-content",function(){if(eGL!==void 0)return eGL;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return eGL=N},{mode:1});var qoQ;var hG=function(){return _.z.apply(this,arguments)||this};
_.F(hG,_.z);hG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var N=document.querySelector("ytd-hotkey-dialog-content #scrollable");N&&(N.dialogElement=this.hostElement.parentElement)};
hG.prototype.onCloseTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],hG.prototype,"data",void 0);_.p([_.Uj({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],hG);
_.X(hG,"ytd-hotkey-dialog-renderer",function(){if(qoQ!==void 0)return qoQ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qoQ=N},{mode:1});var wQE;var qd=function(){return _.z.apply(this,arguments)||this};
_.F(qd,_.z);qd.prototype.onYtServiceRequestError=function(){if(this.blocked){var N;var b=(N=this.data)==null?void 0:N.defaultServiceEndpoint}else{var S;b=(S=this.data)==null?void 0:S.toggledServiceEndpoint}var P;(b=(P=_.t(b,_.dD4))==null?void 0:P.onFailureAction)&&this.ytComponentBehavior.resolveCommand(b);this.updateBlockState(!this.blocked)};
qd.prototype.onYtToggleButton=function(N){this.updateBlockState(N.detail.toggled)};
qd.prototype.updateBlockState=function(N){if(N!==this.blocked){var b=this.blockedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.t5("blockStateEntity",b,{key:b,blocked:N}));this.set("data.isToggled",N)}};
_.d0.Object.defineProperties(qd.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
qd.prototype.onYtToggleButton=qd.prototype.onYtToggleButton;qd.prototype.onYtServiceRequestError=qd.prototype.onYtServiceRequestError;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],qd.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],qd.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qd.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],qd.prototype,"blockedEntityKey",void 0);
_.p([_.U({selectorArgs:["blockedEntityKey"],selector:function(N,b){return _.GL(N.entities,"blockStateEntity",b)}}),
_.y("design:type",Object)],qd.prototype,"blockStateEntity",void 0);_.p([_.f("data","blockStateEntity"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qd.prototype,"blocked",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],qd.prototype,"onYtServiceRequestError",null);
_.p([_.RA("yt-toggle-button"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],qd.prototype,"onYtToggleButton",null);_.p([_.Uj({is:"ytd-block-button",disableElementRegistration:!0})],qd);
_.X(qd,"ytd-block-button",function(){if(wQE!==void 0)return wQE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wQE=N},
{mode:1});var No6;var bIn;var wM=function(){return _.z.apply(this,arguments)||this};
_.F(wM,_.z);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],wM.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],wM.prototype,"data",void 0);_.p([_.Uj({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],wM);
_.X(wM,"ytd-kids-blocklist-picker-item-renderer",function(){if(bIn!==void 0)return bIn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return bIn=N},{mode:1});var Nr=function(){return _.z.apply(this,arguments)||this};
_.F(Nr,_.z);Nr.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Nr.prototype,"data",void 0);_.p([_.Uj({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Nr);
_.X(Nr,"ytd-kids-blocklist-picker-content",function(){if(No6!==void 0)return No6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return No6=
N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var Sii;var b_=function(){var N=_.z.apply(this,arguments)||this;N.hasAnyRequestSucceeded=!1;N.hasAnyRequestFailed=!1;N.numPendingRequests=0;return N};
_.F(b_,_.z);_.v=b_.prototype;_.v.attached=function(){this.hostElement.setAttribute("dialog","")};
_.v.onDoneButtonTap=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.v.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.v.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.v.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.v.onPopupClosed=function(N){var b,S;if(((b=N.detail)==null?void 0:(S=b.popup)==null?void 0:S.is)==="tp-yt-paper-dialog"){var P;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((P=this.data)==null?0:P.successfulToastActionMessage)&&(N=_.wy(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(N));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
b_.prototype.onPopupClosed=b_.prototype.onPopupClosed;b_.prototype.onYtServiceRequestError=b_.prototype.onYtServiceRequestError;b_.prototype.onYtServiceRequestCompleted=b_.prototype.onYtServiceRequestCompleted;b_.prototype.onYtServiceRequestSent=b_.prototype.onYtServiceRequestSent;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],b_.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],b_.prototype,"data",void 0);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b_.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b_.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b_.prototype,"onYtServiceRequestError",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],b_.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],b_);
_.X(b_,"ytd-kids-blocklist-picker-renderer",function(){if(Sii!==void 0)return Sii;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Sii=N},{mode:1});var PRE;var HIJ;var Sx=function(){return _.z.apply(this,arguments)||this};
_.F(Sx,_.z);Sx.prototype.setTip=function(N){var b=this;this.data&&(this.tip=cin(G9a.getInstance(),N,this.data),_.W_(this,function(){_.bC(b.hostElement,"yt-refit")}))};
Sx.prototype.clearTip=function(){this.tip=void 0};
Sx.prototype.computeHidden=function(N){return!N};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Sx.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.y("design:type",Boolean)],Sx.prototype,"hidden",void 0);_.p([_.U(),_.y("design:type",Object)],Sx.prototype,"tip",void 0);_.p([_.Uj({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Sx);
_.X(Sx,"ytd-menu-popup-tip-renderer",function(){if(HIJ!==void 0)return HIJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);
return HIJ=N},{mode:1});var s4q;var Pw=function(){var N=_.z.apply(this,arguments)||this;N.useIcons=!1;N.role="menuitem";N.systemIcons=_.T("kevlar_system_icons");return N};
_.F(Pw,_.z);_.v=Pw.prototype;_.v.onFocus=function(){var N;(N=_.H4(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.v.onTap=function(){var N=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(N&&_.t(N,_.vN))this.componentBehavior.resolveCommand(N),this.updateToggledStateInEntity();else if(N){this.componentBehavior.resolveCommand(N)||_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}});var b;((b=_.t(N,_.CA))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.v.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.v.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.v.updateToggledStateInEntity=function(){var N=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;N&&this.ytdReduxBehavior.dispatch(_.t5("toggleMenuServiceItemEntity",N,{key:N,isToggled:b}))};
_.v.computeIcon=function(N,b,S){return(N=N?S:b)&&N.iconType?_.C7(N.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.isIconActive=function(N){return!_.T("toggle_menu_active_icon_killswitch")&&N};
_.d0.Object.defineProperties(Pw.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?0:N.isToggled)?(b=this.data)==null?void 0:b.toggledText:(S=this.data)==null?void 0:S.defaultText}}});
Pw.prototype.toggledStateEntityChanged=Pw.prototype.toggledStateEntityChanged;Pw.prototype.onYtServiceRequestCompleted=Pw.prototype.onYtServiceRequestCompleted;Pw.prototype.onTap=Pw.prototype.onTap;Pw.prototype.onFocus=Pw.prototype.onFocus;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Pw.prototype,"componentBehavior",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],Pw.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Pw.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Pw.prototype,"useIcons",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Pw.prototype,"role",void 0);_.p([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.y("design:type",String)],Pw.prototype,"icon",void 0);
_.p([_.U({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.Pc.toggleMenuServiceItemEntitySelector}),_.y("design:type",Object)],Pw.prototype,"toggleMenuServiceItemEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Pw.prototype,"systemIcons",void 0);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onFocus",null);
_.p([_.f("data.isToggled"),_.y("design:type",Object),_.y("design:paramtypes",[])],Pw.prototype,"toggleButtonText",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onTap",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"onYtServiceRequestCompleted",null);
_.p([_.W4("toggleMenuServiceItemEntity.isToggled","data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Pw.prototype,"toggledStateEntityChanged",null);_.p([_.Uj({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Pw);
_.X(Pw,"ytd-toggle-menu-service-item-renderer",function(){if(s4q!==void 0)return s4q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return s4q=N},{mode:1});var KZa;var Hw=function(){return _.z.apply(this,arguments)||this};
_.F(Hw,_.z);Hw.prototype.onFocus=function(){var N;(N=_.H4(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.d0.Object.defineProperties(Hw.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.VK(this.data.iconUrl)}}});
Hw.prototype.onFocus=Hw.prototype.onFocus;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Hw.prototype,"rendererBehavior",void 0);_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],Hw.prototype,"ytEndpointBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Hw.prototype,"data",void 0);_.p([_.RA("focus"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Hw.prototype,"onFocus",null);
_.p([_.f("data.iconUrl"),_.y("design:type",Object),_.y("design:paramtypes",[])],Hw.prototype,"imageSource",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Hw);
_.X(Hw,"ytd-menu-custom-icon-item-renderer",function(){if(KZa!==void 0)return KZa;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return KZa=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});_.qu(_.di,"yt-list-item-view-model",{props:{data:_.kg,isMenuItem:_.kg,isCompact:_.kg,onTap:_.er,trailingAccessory:_.er,hideSelectionTextChevron:_.kg,disabled:_.kg,inPopup:_.kg,disableHorizontalPadding:_.kg,isOverlay:_.kg,isToggled:_.kg,ariaLabel:_.kg,ariaPressed:_.kg,shouldNotFillIcon:_.kg}});var sh=function(){var N=_.z.apply(this,arguments)||this;N.disableBackdropFilter=_.T("web_disable_backdrop_filter");return N};
_.F(sh,_.z);_.v=sh.prototype;
_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.v.computeAriaLabel=function(N){return N};
_.v.onPopupOpened=function(){this.items.selected=0;for(var N=_.O(_.H4(this.items).children),b=N.next();!b.done;b=N.next())b.value.popupPositionTarget=this.positionTarget;if(N=this.popupTip||void 0)N.setTip(this.source||""),this.source=void 0;this.veData&&(N=_.Qh())&&_.pA(N,[this.veData])};
_.v.onPopupClosed=function(){var N=this.popupTip||void 0;N&&N.clearTip()};
_.v.onIronActivate=function(N){this.shouldPersist(N)||_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(N=_.Qh())&&_.y3(N,this.veData)};
_.v.shouldPersist=function(N){var b,S;if(((b=N.detail)==null?void 0:b.selected)===void 0||(S=this.data)==null||!S.items)return!1;var P,H;return!((H=(P=this.data.items[N.detail.selected])==null?void 0:P.toggleMenuServiceItemRenderer)==null||!H.persistentOnMenuPopup)};
_.v.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(N){return N.menuNavigationItemRenderer?!!N.menuNavigationItemRenderer.icon:N.menuServiceItemRenderer?!!N.menuServiceItemRenderer.icon:N.menuConditionalServiceItemRenderer?!!N.menuConditionalServiceItemRenderer.icon:N.menuConditionalNavigationItemRenderer?!!N.menuConditionalNavigationItemRenderer.icon:N.toggleMenuServiceItemRenderer?!!N.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
sh.prototype.onPopupClosed=sh.prototype.onPopupClosed;sh.prototype.onPopupOpened=sh.prototype.onPopupOpened;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],sh.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],sh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],sh.prototype,"veData",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.y("design:type",String)],sh.prototype,"ariaLabel",void 0);_.p([_.U({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],sh.prototype,"useIcons",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],sh.prototype,"disableBackdropFilter",void 0);_.p([_.dq("#items"),_.y("design:type",Object)],sh.prototype,"items",void 0);_.p([_.dq("ytd-menu-popup-tip-renderer"),_.y("design:type",Object)],sh.prototype,"popupTip",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sh.prototype,"onPopupOpened",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],sh.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],sh);
_.X(sh,"ytd-menu-popup-renderer",function(){if(PRE!==void 0)return PRE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return PRE=N},{mode:1});var vdE;var OIt=_.A(function(N){N=_.h_(N,{icon:void 0});var b=N.data;N=N.icon;var S=function(){return b().iconBadgeText},P={},H=_.KU("yt-spec-icon-badge-shape",function(){a:switch(b().iconBadgeType){case "notification":var K="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":K="yt-spec-icon-badge-shape--type-cart";break a;default:K=""}return K},function(){a:switch(b().iconBadgeStyle){case "overlay":var K="yt-spec-icon-badge-shape--style-overlay";
break a;default:K=""}return K},(P["yt-spec-icon-badge-shape--text-size-small"]=function(){var K=S();
return!!((K==null?0:K.length)&&K.length>2)},P));
return _.c("yt-icon-badge-shape",null,_.c(_.W,{cond:N,then:function(K){return _.c("div",{class:H},_.c("div",{class:"yt-spec-icon-badge-shape__icon"},_.c(_.cX,{icon:K})),_.c(_.W,{cond:S,then:function(C){return _.c("div",{class:"yt-spec-icon-badge-shape__badge"},C)}}))}}))},"cl");
OIt.idomCompat=!0;_.qu(OIt,"yt-icon-badge-shape",{props:{data:_.kg,icon:_.kg}});var K_=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};N.unseenCount=0;N.isOverlay=!1;return N};
_.F(K_,_.z);_.v=K_.prototype;_.v.attached=function(){var N=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(b){N.onServiceWorkerMessage(b)})};
_.v.onDataChanged=function(){this.isAttached&&!this.JSC$22523_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22523_lastData=this.data};
_.v.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.computeIcon=function(){var N,b;return(N=this.data)==null?void 0:(b=N.icon)==null?void 0:b.iconType};
_.v.onServiceWorkerMessage=function(N){N.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.v.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.t(this.data.updateUnseenCountEndpoint,_.CA)&&_.t(this.data.updateUnseenCountEndpoint,_.CA).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.v.handleUpdateNotificationsUnseenCountAction=function(N){var b=this;N=_.t(N,MEa);N!=null&&N.unseenCount&&N.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(N.unseenCount),_.Dj.addLowPriorityJob(function(){b.data.updateUnseenCountEndpoint&&b.ytComponentBehavior.resolveCommand(b.data.updateUnseenCountEndpoint)},N.timeoutMs))};
_.v.onClick=function(){_.bC(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var N=_.PN(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),b=this.data.menuRequest;N&&N.length===1&&N[0]?_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):b&&this.ytComponentBehavior.resolveCommand(b)};
_.v.handleTopbarMenuClosedAction=function(N){N==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.v.toggleIconState=function(N){this.iconButton&&(this.iconButton.pressed=N)};
_.v.sendUnseenCountRequest=function(N){var b=this;_.XC(_.Dj,function(){b.ytComponentBehavior.resolveCommand(N)})};
_.v.updateCountUI=function(N){this.set("unseenCount",N<9?N:"9+")};
_.d0.Object.defineProperties(K_.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
K_.prototype.handleUpdateNotificationsUnseenCountAction=K_.prototype.handleUpdateNotificationsUnseenCountAction;K_.prototype.onDataChanged=K_.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.u$),_.y("design:type",Object)],K_.prototype,"ytdOpenPopupBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],K_.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],K_.prototype,"unseenCount",void 0);_.p([_.U(),_.y("design:type",Object)],K_.prototype,"isOverlay",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],K_.prototype,"showTooltips",void 0);_.p([_.dq("yt-icon-button"),_.y("design:type",Object)],K_.prototype,"iconButton",void 0);
_.p([_.f("unseenCount"),_.y("design:type",Object),_.y("design:paramtypes",[])],K_.prototype,"showNotificationCount",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],K_.prototype,"onDataChanged",null);_.p([_.RA("yt-update-notifications-unseen-count-action"),_.y("design:type",Function),_.y("design:paramtypes",[Object]),_.y("design:returntype")],K_.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.p([_.Uj({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],K_);
_.X(K_,"ytd-notification-topbar-button-renderer",function(){if(vdE!==void 0)return vdE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return vdE=N},{mode:_.sZ("kevlar_poly_si_batch_j025")?1:2});var CRO;var vw=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return N};
_.F(vw,_.z);vw.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
vw.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
vw.prototype.onDarkModeToggled=function(N){this.dark=N};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],vw.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],vw.prototype,"data",void 0);_.p([_.U({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],vw.prototype,"dark",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],vw);
_.X(vw,"yt-pdg-buy-flow-header-renderer",function(){if(CRO!==void 0)return CRO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return CRO=N},{mode:1});var GTJ;var rkt;var Oh=function(){var N=_.z.apply(this,arguments)||this;N.immediateValue=0;N.isDarkTheme=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(Oh,_.z);_.v=Oh.prototype;_.v.created=function(){_.vS.requestAvailability()};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.dataChanged=function(){var N=_.H4(this.hostElement).querySelector("#color-slider");N.immediateValue&&this.updateSliderKnobAndGradientStyles(N.immediateValue);this.data.notches[0].knobColorArgb&&_.rq(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.o3(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Vg("HTML_DIR")==="rtl"&&_.H4(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.v.onSliderImmediateChange=function(){var N=_.H4(this.hostElement).querySelector("#color-slider");N.dragging&&(N.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(N.immediateValue),this.updateSliderKnobAndGradientStyles(N.immediateValue)),this.updateSliderAria())};
_.v.onSliderChange=function(){var N=_.H4(this.hostElement).querySelector("#color-slider");N.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(N.immediateValue),this.updateSliderKnobAndGradientStyles(N.immediateValue));this.updateSliderAria()};
_.v.updateSliderAria=function(){var N=_.H4(this.hostElement).querySelector("#color-slider"),b=_.H4(this.hostElement).querySelector("#color-slider");b=_.es(this.data.notches[b.immediateValue].tierValue);_.mLO()&&_.bC(this.hostElement,"iron-announce",{text:b});N.setAttribute("aria-valuetext",b)};
_.v.updateSuperThanksSelectedTierEntity=function(N){if(N!==this.immediateValue){var b,S,P=this==null?void 0:(b=this.data)==null?void 0:(S=b.superThanksSelectedTierEntity)==null?void 0:S.key;P&&P.length>0&&this.ytdReduxBehavior.dispatch(_.t5("superThanksSelectedTierEntity",P,{key:P,index:N}))}};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.updateSliderKnobAndGradientStyles=function(N){this.immediateValue=N;N=this.data.notches[N];if(N==null?0:N.knobColorArgb)var b={"--ytd-pdg-color-slider-knob-color":_.o3(N.knobColorArgb)};(N==null?0:N.linearGradientCssStyle)&&b!==null&&(b=Object.assign({},b,{"--ytd-pdg-color-slider-active-color":N==null?void 0:N.linearGradientCssStyle}));b!==null&&_.rq(this.hostElement,b)};
Oh.prototype.onSliderChange=Oh.prototype.onSliderChange;Oh.prototype.onSliderImmediateChange=Oh.prototype.onSliderImmediateChange;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],Oh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Oh.prototype,"immediateValue",void 0);_.p([_.U(),_.y("design:type",Number)],Oh.prototype,"maxMarkers",void 0);
_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:BXq}),_.y("design:type",Object)],Oh.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Oh.prototype,"isDarkTheme",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oh.prototype,"dataChanged",null);
_.p([_.RA("immediate-value-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oh.prototype,"onSliderImmediateChange",null);_.p([_.RA("change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Oh.prototype,"onSliderChange",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Oh);
_.X(Oh,"ytd-pdg-color-slider-renderer",function(){if(rkt!==void 0)return rkt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return rkt=N},{mode:1});var ckt;var a1n;var C_=null;
_.uI({is:"ytd-comment-input",_template:function(){if(a1n!==void 0)return a1n;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return a1n=N},
behaviors:[_.P69.YtHostElementBehavior,_.XX,_.r2.YtComponentBehavior,_.un.YtRendererstamperBehavior,_.V5N.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{editableText:{type:Object,observer:"textDataChanged_"},placeholderText:{type:Object,observer:"textDataChanged_"},
commentChip:{type:Object,observer:"commentChipChanged_"},hideUnderline:{type:Boolean,value:!1,reflectToAttribute:!0},hasCommentChip:{type:Boolean,value:!1,reflectToAttribute:!0},receivedFocusPreviously_:{type:Boolean,value:!1},previousText_:String,isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},emojiManager:{type:Object,readOnly:!0,value:function(){return _.mL}},
isEmojiButtonDisplayed:{type:Boolean,value:!1},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},charCount:{type:Number,value:0},charLimit:{type:Number,value:null},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object},listeners:{"yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","yt-mention-inserted":"onInsertMention_"},
ready:function(){document.addEventListener("tap",_.aA(this,this.onTap_));this.emojiInput=this.$.emoji},
commentChipChanged_:function(){this.hasCommentChip=this.computeHasCommentChip_()},
textDataChanged_:function(){this.clear()},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.oo();this.focus()},
detached:function(){document.removeEventListener("tap",_.aA(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(N){N=N.detail;N=N.isCustomEmoji?N.shortcuts[0]:N.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,N);this.maybeUpdateTextDirection_();_.bC(this.hostElement,"input")},
getInputRange_:function(){var N=_.Co();if(N){N=N.getBrowserRangeObject();for(var b=N.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return N;b=b.parentNode}}N=this.getEditableTextArea_();N=_.NP(N,N.childNodes.length);N.select();return N.getBrowserRangeObject()},
insertTextWithEmojis_:function(N,b,S){(b=this.emojiManager.createDocumentFragment(b,!0,!1,S===void 0?!0:S))&&b.childNodes.length!==0&&(N.collapsed||N.deleteContents(),S=b.lastChild,N.insertNode(b),_.w79(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var N=_.Co();if(N){var b=N.JSC$11580_getStartNode(),S=N.JSC$11580_getEndNode();if(QTi(b)&&QTi(S)){var P=N.JSC$11580_getStartOffset(),H;if(_.a9&&b.nodeType===Node.ELEMENT_NODE&&(H=_.gw9(b)))_.NP(H,0).select();else{H=HH(b)?b:_.wY(b,HH);var K=HH(S)?S:_.wY(S,HH);if(H||K)if(N.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){N=!0;P===b.length&&(N=!1);if(C_==="end"||C_==="right")N=!1;b=b.parentNode;N=[].concat(_.IX(b.parentNode.childNodes)).indexOf(b)+(N?0:1);_.NP(b.parentNode,
N).select()}}else H?H.previousSibling&&H.previousSibling.length>0?_.bG(S,N.JSC$11580_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),H.parentNode.insertBefore(b,H),_.bG(S,N.JSC$11580_getEndOffset(),b,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.bG(b,N.JSC$11580_getStartOffset(),K.nextSibling,1).select():(S=document.createTextNode("\u200b"),K.parentNode.insertBefore(S,K.nextSibling),_.bG(b,N.JSC$11580_getStartOffset(),S,S.length).select()));
C_=null}}else C_=null}else C_=null},
leftKeyPressed_:function(){C_="left"},
rightKeyPressed_:function(){C_="right"},
endKeyPressed_:function(){C_="end"},
maybeDeleteChip_:function(){var N=jTJ(!0);if(N){var b=_.Co(),S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();_.ee(S,b,N,N.childNodes.length).select()}},
maybeBackspaceChip_:function(){var N=jTJ(!1);if(N){var b=_.Co(),S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();_.ee(S,b,N,0).select()}},
maybeBackspaceChipWordMode_:function(N){var b=_.Co();if(b.isCollapsed()){var S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();var P=zri(S,b,!0);P&&(_.ee(S,b,P,0).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(N){var b=_.Co();if(b.isCollapsed()){var S=b.JSC$11580_getStartNode();b=b.JSC$11580_getStartOffset();var P=zri(S,b,!1);P&&(_.ee(S,b,P,P.childNodes.length).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
onContentClick:function(N){N.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(N){N.defaultPrevented||N.currentTarget.tagName==="YTD-COMMENT-INPUT"&&HH(N.target)&&N.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.H4(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.H4(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(N,b){N=oEO(N,this.emojiManager,b).cloneNode(!0);for(b=N.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var S=_.A6();_.Snz(S,b);b=S.nextSibling;break;case "DIV":(S=b.lastChild)&&b.nextSibling&&_.Yv(_.A6(),S);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.pL(_.A6(),b);S&&S.nodeName==="BR"&&_.Zg(S);S=b;b.hasChildNodes()?(b=b.firstChild,
_.Pzc(S)):(b=b.nextSibling,_.Zg(S));break;default:b=b.nextSibling}return APQ(N)},
setTextAreaValue:function(N){N||(N="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof N==="string"&&(N={runs:[{text:N}]});b.text=N},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();C_=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var N=this.getEditableTextArea_();N&&(_.NP(N,N.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Vg("HTML_DIR")==="rtl"){var N=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";N.setAttribute("dir",b)}},
handleInputEvent_:function(){var N=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(N=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(N,!0);this.updateCharCount_();N=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=N.scrollHeight>N.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var N=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:N})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(N){this.isEmojiButtonDisplayed&&(N.preventDefault(),N.stopImmediatePropagation(),N=N.clipboardData.getData("text/plain"),this.insertText_(N,!1,!1),_.bC(this.hostElement,"input"))},
insertText_:function(N,b,S){b=b===void 0?!1:b;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&N){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(b&&this.emojiInput.offsetStartOfRangeBy(P,N.length),this.insertTextWithEmojis_(P,N,S),x5E(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,N),this.updateSuggestionOffset_(P)))}},
getSimpleString:_.es,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(N){return N?"focused":"not-focused"},
computePlaceholderText_:function(N){return this.getSimpleString(N)},
computeEditableText_:function(N){return this.getSimpleString(N)},
onPrefilledContentDismissed_:function(N){N.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(N,b){N?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(N){var b=this.getEditableTextArea_();[].concat(_.IX(N.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(P){b.appendChild(document.createTextNode(P))})});
N.preventDefault()},
preventDefault_:function(N){N.preventDefault()},
onSuggestionInsert_:function(N){this.insertTextWithEmojis_(N.detail.range,N.detail.text)},
onEmojiSuggestionClick_:function(N){this.emojiInput.insertSuggestion(N.detail)},
updateSuggestionOffset_:function(N){if(this.emojiInput&&_.H4(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,S=N.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-S)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;N=N.getBoundingClientRect().left-b;_.H4(this.emojiInput).querySelector("#dropdown").style.marginLeft=N+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.h2("yt-post"));return this.localStorage}});var Gp=function(){var N=_.z.apply(this,arguments)||this;N.currentCommentOptionIndex=0;N.isEmojiPickerDisplayed=!1;N.emojiManager=_.mL;N.isUgcEmpty=!1;N.userGeneratedCommentChangedHandler=function(){_.bC(N.hostElement,"ytd-pdg-user-generated-comment-changed");N.isEmojiYtdCommentInputEnabled&&(N.isUgcEmpty=!N.ytdCommentInputEl.getTextAreaValue())};
N.pasteHandler=function(b){b.preventDefault();b.stopImmediatePropagation();var S;if(b=(S=b.clipboardData)==null?void 0:S.getData("text/plain"))S=document.getSelection().getRangeAt(0),S.collapsed||S.deleteContents(),b=document.createTextNode(b),S.insertNode(b),S.selectNodeContents(b),S.collapse(!1),b=window.getSelection(),b.removeAllRanges(),b.addRange(S)};
N.onDocumentClick=function(b){if(N.isEmojiPickerDisplayed){var S,P,H;!(b.target instanceof Node)||(S=b.composedPath())!=null&&S.includes(N.editableTextEl)||(P=b.composedPath())!=null&&P.includes(N.emojiButtonEl)||(H=b.composedPath())!=null&&H.includes(N.emojiPickerEl)||(N.isEmojiPickerDisplayed=!1)}};
return N};
_.F(Gp,_.z);_.v=Gp.prototype;_.v.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.v.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.v.detached=function(){var N;(N=this.contentEl)==null||N.removeEventListener("input",this.userGeneratedCommentChangedHandler);var b;(b=this.contentEl)==null||b.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.v.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.v.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var N;this.contentEl.textContent=this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.v.reloadEmojis=function(){this.emojiPickerEl&&_.t(this.emojiPicker,_.qc9)&&this.emojiPickerEl.updateEmojiCategories()};
_.v.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.rq(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.v.handleBackgroundColorStyling=function(){var N;if((N=this.currentCommentOption)==null?0:N.commentBackgroundColorArgb){var b;_.rq(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.o3((b=this.currentCommentOption)==null?void 0:b.commentBackgroundColorArgb)})}else _.rq(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.v.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var N;(N=this.contentEl)==null||N.focus()}};
_.v.onEditButtonClick=function(N){var b=document.getSelection();b&&this.contentEl&&(N.stopPropagation(),N.preventDefault(),b.selectAllChildren(this.contentEl),b.collapseToEnd())};
_.v.onContentDrop=function(N){var b=this;if(N.dataTransfer){N=_.O(N.dataTransfer.items);for(var S=N.next();!S.done;S=N.next())S=S.value,S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(P){var H;(H=b.contentEl)==null||H.appendChild(document.createTextNode(P))})}};
_.v.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.v.getUserGeneratedCommentText=function(){var N,b=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(N=this.contentEl)==null?void 0:N.textContent;return b?b.trim():""};
_.v.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.v.onEmojiSelect=function(N){this.ytdCommentInputEl.onEmojiSelect(N)};
_.d0.Object.defineProperties(Gp.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.currentCommentOption)==null||!N.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if(_.t((N=this.currentCommentOption)==null?void 0:N.chipRenderer,_.T29)){var b;return _.t((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.T29)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var N,b;return((N=this.data)==null?0:N.commentOptionRenderers)?_.t((b=this.data)==null?void 0:b.commentOptionRenderers[this.superThanksSelectedTierEntity.index],kO_):void 0}var S,P;return((S=this.data)==null?0:S.commentOptionRenderers)?_.t((P=this.data)==null?void 0:P.commentOptionRenderers[this.currentCommentOptionIndex],kO_):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var N;return this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var N;return this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.commentDialog,_.RPV))==null?void 0:b.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.commentDialog,_.RPV))==null?void 0:b.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=_.t((N=this.data)==null?void 0:N.commentDialog,_.RPV))==null?void 0:b.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(b=_.t((N=this.data)==null?void 0:N.commentDialog,_.RPV))==null?void 0:b.emojiPicker;if(!_.t(S,_.qc9)||!_.t(S,_.qc9).categories)return!1;N=function(K){return K.emojiPickerCategoryRenderer?K.emojiPickerCategoryRenderer.emojiIds&&K.emojiPickerCategoryRenderer.emojiIds.length>0:K.emojiPickerUpsellCategoryRenderer?K.emojiPickerUpsellCategoryRenderer.emojis&&K.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var P,H;return((P=_.t(S,_.qc9))==null?0:(H=P.categories)==null?0:H.find(N))?!0:!1}}});
Gp.prototype.onEmojiSelect=Gp.prototype.onEmojiSelect;Gp.prototype.dataChanged=Gp.prototype.dataChanged;Gp.prototype.currentCommentOptionChanged=Gp.prototype.currentCommentOptionChanged;_.p([_.L(_.Gr),_.y("design:type",Object)],Gp.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Gp.prototype,"rendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.dq("#content-dom-if"),_.y("design:type",_.xq)],Gp.prototype,"contentDomIfEl",void 0);_.p([_.dq("#content-no-emojis"),_.y("design:type",HTMLElement)],Gp.prototype,"contentEl",void 0);_.p([_.dq("#container"),_.y("design:type",HTMLElement)],Gp.prototype,"containerEl",void 0);_.p([_.dq("#comment-chip-container"),_.y("design:type",HTMLElement)],Gp.prototype,"paidCommentChipContainerEl",void 0);_.p([_.dq("#text-input"),_.y("design:type",HTMLElement)],Gp.prototype,"editableTextEl",void 0);
_.p([_.dq("#emoji-button"),_.y("design:type",HTMLElement)],Gp.prototype,"emojiButtonEl",void 0);_.p([_.dq("#emoji-picker > yt-emoji-picker-renderer"),_.y("design:type",Object)],Gp.prototype,"emojiPickerEl",void 0);_.p([_.dq("#text-input > ytd-comment-input"),_.y("design:type",Object)],Gp.prototype,"ytdCommentInputEl",void 0);_.p([_.U(),_.y("design:type",Object)],Gp.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Gp.prototype,"currentCommentOptionIndex",void 0);
_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:BXq}),_.y("design:type",Object)],Gp.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.U(),_.y("design:type",Object)],Gp.prototype,"isEmojiPickerDisplayed",void 0);_.p([_.U(),_.y("design:type",Object)],Gp.prototype,"emojiManager",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Gp.prototype,"isUgcEmpty",void 0);
_.p([_.W4("currentCommentOption"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gp.prototype,"currentCommentOptionChanged",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Gp.prototype,"dataChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gp.prototype,"isEmojiYtdCommentInputEnabled",null);
_.p([_.f("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"title",null);_.p([_.f("data.authorText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"channelName",null);_.p([_.f("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gp.prototype,"shouldShowPaidCommentChipRenderer",null);
_.p([_.f("data.commentOptionRenderers","currentCommentOption"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"paidCommentChipRenderer",null);_.p([_.f("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"currentCommentOption",null);
_.p([_.f("data.defaultCommentText","superThanksSelectedTierEntity"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"commentText",null);_.p([_.f("data.placeholderText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"placeholderText",null);_.p([_.f("data.commentDialog.commentDialogRenderer.editableText"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"editableText",null);
_.p([_.f("data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"emojiButton",null);_.p([_.f("data.commentDialog.commentDialogRenderer.emojiPicker"),_.y("design:type",Object),_.y("design:paramtypes",[])],Gp.prototype,"emojiPicker",null);
_.p([_.f("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Gp.prototype,"isEmojiButtonDisplayed",null);_.p([_.RA("yt-emoji-select"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Gp.prototype,"onEmojiSelect",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Gp);
_.X(Gp,"ytd-pdg-comment-preview-renderer",function(){if(ckt!==void 0)return ckt;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ckt=N},{mode:2});var Rjn;var rJ=function(){var N=_.z.apply(this,arguments)||this;N.selected=!1;return N};
_.F(rJ,_.z);_.v=rJ.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.v.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.v.dataChanged=function(){this.data&&(_.sj(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.rq(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.o3(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.o3(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.v.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.v.onClick=function(){this.logClick()};
_.v.onKeyboardSelect=function(){_.bC(this.hostElement,"tap");this.onClick()};
_.v.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rJ.prototype.onClick=rJ.prototype.onClick;rJ.prototype.selectedChanged=rJ.prototype.selectedChanged;rJ.prototype.dataChanged=rJ.prototype.dataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],rJ.prototype,"componentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.XX),_.y("design:type",Object)],rJ.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.L(_.IA),_.y("design:type",Object)],rJ.prototype,"ironSelectableBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],rJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],rJ.prototype,"shownThumbnail",void 0);_.p([_.U(),_.y("design:type",Object)],rJ.prototype,"basePriceText",void 0);_.p([_.U(),_.y("design:type",Object)],rJ.prototype,"purchaseCommand",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],rJ.prototype,"selected",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rJ.prototype,"dataChanged",null);_.p([_.W4("selected"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rJ.prototype,"selectedChanged",null);_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rJ.prototype,"onClick",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],rJ);
_.X(rJ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Rjn!==void 0)return Rjn;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Rjn=N},{mode:1});var cw=function(){var N=_.z.apply(this,arguments)||this;N.selectedItemIndex=0;N.buyButtonDisabled=!1;return N};
_.F(cw,_.z);_.v=cw.prototype;
_.v.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.v.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var N;var b=(N=_.t(this.data.colorSlider,mFE))==null?void 0:N.notches[this.selectedItemIndex].purchaseCommand}else{var S;b=(S=_.t(this.data.selectableItemButtons[this.selectedItemIndex],tmw))==null?void 0:S.purchaseCommand}if(b){N=_.t(b,_.HW9);N.productData||(N.productData={});var P;N.productData={pdgData:{commentMessageText:(P=this.commentPreviewRenderer)==null?void 0:P.getUserGeneratedCommentText()}};
_.bC(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(b)}}};
_.v.dataChanged=function(){if(this.data){_.mL.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.F44(_.mL,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.mL.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var N;this.buyButtonDisabled=!((N=_.t(this.data.commentPreview,THo))==null||!N.placeholderText);this.updatePriceSelectorStatus();var b;if((b=this.data)==null?0:b.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;N=[];this.data.preloadImages&&(N=this.data.preloadImages);
N=N.map(function(S){return _.wG(S.thumbnails,1920)});
N=_.O(N);for(b=N.next();!b.done;b=N.next())(b=b.value)&&_.mxu(b).thenCatch(function(){_.$h(Error("dm"))})}};
_.v.superThanksSelectedTierEntityChanged=function(){var N;(this==null?void 0:(N=this.superThanksSelectedTierEntity)==null?void 0:N.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.v.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.v.updatePriceSelectorStatus=function(){this.isColorSlider?(_.H4(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.H4(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.H4(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.H4(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.v.closeBuyFlow=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.v.onUserGeneratedContentChanged=function(){var N;this.buyButtonDisabled=!((N=this.commentPreviewRenderer)==null?0:N.getUserGeneratedCommentText())};
_.v.updateSelectedItemIndexFromBinding=function(N){this.selectedItemIndex=N.detail.value};
_.d0.Object.defineProperties(cw.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.disclaimerText)}}});
cw.prototype.onUserGeneratedContentChanged=cw.prototype.onUserGeneratedContentChanged;cw.prototype.closeBuyFlow=cw.prototype.closeBuyFlow;cw.prototype.selectedItemIndexChanged=cw.prototype.selectedItemIndexChanged;cw.prototype.superThanksSelectedTierEntityChanged=cw.prototype.superThanksSelectedTierEntityChanged;cw.prototype.dataChanged=cw.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],cw.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cw.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],cw.prototype,"selectedItemIndex",void 0);_.p([_.U(),_.y("design:type",Boolean)],cw.prototype,"isColorSlider",void 0);
_.p([_.U(),_.y("design:type",Object)],cw.prototype,"buyButtonDisabled",void 0);_.p([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:BXq}),_.y("design:type",Object)],cw.prototype,"superThanksSelectedTierEntity",void 0);_.p([_.dq("ytd-pdg-comment-preview-renderer"),_.y("design:type",Object)],cw.prototype,"commentPreviewRenderer",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],cw.prototype,"ytdReduxBehavior",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cw.prototype,"dataChanged",null);_.p([_.W4("superThanksSelectedTierEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cw.prototype,"superThanksSelectedTierEntityChanged",null);_.p([_.W4("selectedItemIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cw.prototype,"selectedItemIndexChanged",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cw.prototype,"closeBuyFlow",null);_.p([_.RA("ytd-pdg-user-generated-comment-changed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cw.prototype,"onUserGeneratedContentChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],cw.prototype,"isDisclaimerTextShown",null);
_.p([_.Uj({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],cw);
_.X(cw,"yt-super-vod-buy-flow-content-renderer",function(){if(GTJ!==void 0)return GTJ;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return GTJ=N},{mode:1});var WZw;var aR=function(){var N=_.z.apply(this,arguments)||this;N.lottieAnimationRef={};return N};
_.F(aR,_.z);_.v=aR.prototype;_.v.created=function(){_.vS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.aA(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.v.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.bC(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.v.detached=function(){this.autoCloseJobId&&_.Dj.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.aA(this,this.onPopupIronOverlayOpened))};
_.v.dataChanged=function(){var N=this;this.data&&this.data.autoCloseDelay&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.PX(_.Dj,function(){N.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.rq(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.v.onDOMLoadedLottie=function(){var N=this,b,S,P=Number((b=this.data)==null?void 0:(S=b.autoCloseDelay)==null?void 0:S.seconds)||0;this.fadeOutJobId=_.PX(_.Dj,function(){N.lottiePlayerEl.classList.add("fadeout")},(P-.25)*1E3);
this.autoCloseJobId=_.PX(_.Dj,function(){N.closePopup()},P*1E3)};
_.v.openPopup=function(){this.ironOverlayBehavior.open()};
_.v.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.sR(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.aN().resolve(_.Wq).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Dj.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Dj.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.v.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var N,b;(N=this.lottieAnimationRef)==null||(b=N.lottieEl)==null||b.destroy();N=this.data.lottie;var S,P;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:N.url+"_"+Math.random(),path:N.url,autoplay:!0,loop:(P=(S=N.settings)==null?void 0:S.loop)!=null?P:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.d0.Object.defineProperties(aR.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var N,b;return!!((N=this.data)==null?0:(b=N.lottie)==null?0:b.url)}}});
aR.prototype.maybeInitializeLottie=aR.prototype.maybeInitializeLottie;aR.prototype.dataChanged=aR.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aR.prototype,"rendererBehavior",void 0);_.p([_.L(_.cS),_.y("design:type",Object)],aR.prototype,"ironOverlayBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],aR.prototype,"lottiePlayerProps",void 0);
_.p([_.U(),_.y("design:type",Object)],aR.prototype,"lottieAnimationRef",void 0);_.p([_.dq("ytd-lottie-player"),_.y("design:type",HTMLElement)],aR.prototype,"lottiePlayerEl",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aR.prototype,"dataChanged",null);_.p([_.f("data"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],aR.prototype,"hasLottieAnimation",null);
_.p([_.W4("data.lottie.url"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],aR.prototype,"maybeInitializeLottie",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],aR);
_.X(aR,"ytd-desktop-image-overlay-renderer",function(){if(WZw!==void 0)return WZw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return WZw=N},{mode:1});var ndw;var RR=function(){return _.z.apply(this,arguments)||this};
_.F(RR,_.z);_.v=RR.prototype;_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.aA(this,this.closePopup))};
_.v.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.aA(this,this.closePopup))};
_.v.dataChanged=function(){_.PN(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.t(this.data.header,dFt)&&(this.hasBackgroundBanner=!!_.t(this.data.header,dFt).backgroundBanner)};
_.v.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.aA(this,this.closePopup))};
_.v.closePopup=function(){this.data&&this.data.onCloseCommand&&_.HN(this.hostElement,[this.data.onCloseCommand])};
RR.prototype.handleBuyflowSelectionSubmitted=RR.prototype.handleBuyflowSelectionSubmitted;RR.prototype.dataChanged=RR.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RR.prototype,"data",void 0);
_.p([_.U({value:!0,reflectToAttribute:!0}),_.y("design:type",Boolean)],RR.prototype,"hasBackgroundBanner",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RR.prototype,"dataChanged",null);_.p([_.RA("yt-pdg-buy-flow-selection-submitted"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RR.prototype,"handleBuyflowSelectionSubmitted",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],RR);
_.X(RR,"ytd-pdg-buy-flow-renderer",function(){if(ndw!==void 0)return ndw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ndw=N},{mode:1});var d0E;var Ww=function(){var N=_.z.apply(this,arguments)||this;N.isOpen=!1;N.isPlaylistCreated=!1;return N};
_.F(Ww,_.z);_.v=Ww.prototype;_.v.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.v.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.bC(this.hostElement,"yt-refit")};
_.v.onCreateTap=function(){var N=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.HN(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(b,S){if(!_.T("killswitch_ep_in_create_playlist_response")&&(S==null?0:S.actions))for(b=_.O(S.actions),S=b.next();!S.done;S=b.next())S=S.value,_.t(S,_.U_)&&N.ytComponentBehavior.resolveCommand(S)}}]),this.isPlaylistCreated=!0)};
_.v.onKeydown=function(N){if(N.keyCode===13)this.onCreateTap()};
_.v.onServiceRequestCompleted=function(N){N.stopPropagation();_.St(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.v.computePrivacyBadge=function(N){return N?[{metadataBadgeRenderer:N}]:[]};
Ww.prototype.onServiceRequestCompleted=Ww.prototype.onServiceRequestCompleted;Ww.prototype.onKeydown=Ww.prototype.onKeydown;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Ww.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Ww.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Ww.prototype,"isOpen",void 0);
_.p([_.U(),_.y("design:type",Object)],Ww.prototype,"isPlaylistCreated",void 0);_.p([_.U({value:{REQUIRED_LABEL:_.cN("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.cN("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],Ww.prototype,"addToStrings",void 0);_.p([_.U({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.y("design:type",Array)],Ww.prototype,"privacyBadge",void 0);
_.p([_.dq("#privacy-input"),_.y("design:type",Object)],Ww.prototype,"privacyInput",void 0);_.p([_.dq("#name-input"),_.y("design:type",Object)],Ww.prototype,"nameInput",void 0);_.p([_.RA("keydown"),_.y("design:type",Function),_.y("design:paramtypes",[KeyboardEvent]),_.y("design:returntype")],Ww.prototype,"onKeydown",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Ww.prototype,"onServiceRequestCompleted",null);
_.p([_.Uj({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Ww);
_.X(Ww,"ytd-add-to-playlist-create-renderer",function(){if(d0E!==void 0)return d0E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return d0E=N},{mode:1});var m0w;var kTE;var n_=function(){var N=_.z.apply(this,arguments)||this;N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.F(n_,_.z);n_.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
n_.prototype.onCheckboxChange=function(N){var b=this;this.data&&_.Yq(this,"yt-playlist-checkbox-changed",function(){var S=_.gQ(N).checked?b.data.addToPlaylistServiceEndpoint:b.data.removeFromPlaylistServiceEndpoint;S&&_.aN().resolve(_.Wq).resolveCommand(S,{form:{element:b.hostElement}});_.T("dl_playlist_killswitch")||b.transferState!=="TRANSFER_STATE_UNKNOWN"&&b.transferState!=="TRANSFER_STATE_FAILED"&&b.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:b.data.playlistId,action:"ACTION_SYNC"}})},
100)};
n_.prototype.computeIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
n_.prototype.dataChanged=n_.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],n_.prototype,"data",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],n_.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.p([_.dq("#checkbox"),_.y("design:type",HTMLInputElement)],n_.prototype,"checkbox",void 0);
_.p([_.U({selector:_.Zb,selectorArgs:["data.playlistId"]}),_.y("design:type",String)],n_.prototype,"transferState",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],n_.prototype,"dataChanged",null);_.p([_.Uj({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],n_);
_.X(n_,"ytd-playlist-add-to-option-renderer",function(){if(kTE!==void 0)return kTE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return kTE=N},{mode:1});var ToO=_.A(function(N){var b=N.data;return _.c("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.c("div",null,_.c(_.mD,{text:function(){return b().title}})),_.c(_.W,{cond:function(){return b().subtitle},
then:function(S){return _.c("div",{class:"ytdMenuTitleRendererSubtitle"},_.c(_.mD,{text:S}))}}))},"dl");
ToO.idomCompat=!0;_.qu(ToO,"ytd-menu-title-renderer",{props:{data:_.kg}});var dJ=function(){var N=_.z.apply(this,arguments)||this;N.addToStrings={ADD_TO_DROPDOWN_LABEL:_.cN("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};N.closeButtonAriaLabel=_.cN("SBOX_INAPPROPRIATE_CANCEL");N.dialog=_.T("desktop_add_to_playlist_renderer_dialog_popup");return N};
_.F(dJ,_.z);_.v=dJ.prototype;_.v.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.v.onPopupOpened=function(){_.K3(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.v.onPopupClosed=function(){_.K3(this.playlists,"scrollable",!1)};
_.v.computeAriaLabel=function(){var N;if(this==null?0:(N=this.data)==null?0:N.actions){N=_.O(this.data.actions);for(var b=N.next();!b.done;b=N.next())if(b=b.value,b.menuTitleRenderer)return _.es(b.menuTitleRenderer.title)}};
_.v.onTapClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.d0.Object.defineProperties(dJ.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if(this==null?0:(N=this.data)==null?0:N.actions){N=_.O(this.data.actions);for(var b=N.next();!b.done;b=N.next())if(b=b.value,b.menuTitleRenderer)return b.menuTitleRenderer}return!1}}});
dJ.prototype.onPopupClosed=dJ.prototype.onPopupClosed;dJ.prototype.onPopupOpened=dJ.prototype.onPopupOpened;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],dJ.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dJ.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],dJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],dJ.prototype,"addToStrings",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],dJ.prototype,"ariaLabel",void 0);_.p([_.U(),_.y("design:type",String)],dJ.prototype,"closeButtonAriaLabel",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],dJ.prototype,"dialog",void 0);
_.p([_.dq("#playlists"),_.y("design:type",HTMLElement)],dJ.prototype,"playlists",void 0);_.p([_.dq("ytd-add-to-playlist-create-renderer"),_.y("design:type",Object)],dJ.prototype,"createRenderer",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],dJ.prototype,"menuTitleRenderer",null);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dJ.prototype,"onPopupOpened",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],dJ.prototype,"onPopupClosed",null);_.p([_.Uj({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],dJ);
_.X(dJ,"ytd-add-to-playlist-renderer",function(){if(m0w!==void 0)return m0w;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return m0w=N},{mode:1});var tSQ;var mg=function(){var N=_.z.apply(this,arguments)||this;N.isPlaylistEditComplete=!1;N.isCollabEngagementDisabled=!1;N.closeButtonAriaLabel=_.cN("SBOX_INAPPROPRIATE_CANCEL");N.saveButton={title:_.cN("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};N.onValueChanged=function(){N.updateSaveButtonState();N.computeCollabEngagementDisabled()};
return N};
_.F(mg,_.z);_.v=mg.prototype;_.v.attached=function(){this.JSC$22577_scroller&&(this.JSC$22577_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22577_scroller.attached&&typeof this.JSC$22577_scroller.attached==="function"&&this.JSC$22577_scroller.attached())};
_.v.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.v.onPopupClosed=function(){this.reset()};
_.v.close=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.v.onClickSave=function(){var N=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var b=[];this.nameInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var S=Number(this.privacyInput.value);isNaN(S)||b.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:S})}this.votingInput.value!==null&&(S=this.votingInput.value)&&b.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:S});if(b.length>0){var P;_.t((P=this.data)==null?void 0:P.updateSettingsEndpoint,_.vC).actions=b;var H;if((H=this.data)==null?0:H.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){N.close()}}}),this.isPlaylistEditComplete=!0}}};
_.v.computePrivacyBadge=function(N){return N?[{metadataBadgeRenderer:N}]:[]};
_.v.computeEditorData=function(N){var b,S;return N==null?void 0:(b=N.sections)==null?void 0:(S=b[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer};
_.v.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.v.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.v.computeAriaLabel=function(){var N,b,S,P=(N=this.data)==null?void 0:(b=N.sections)==null?void 0:(S=b[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer;return _.es(P==null?void 0:P.title)};
_.v.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.v.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.v.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.v.isNameChanged=function(){var N,b,S;return(((N=this.editorData)==null?void 0:(b=N.name)==null?void 0:(S=b.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.nameInput.value||"")};
_.v.isDescriptionChanged=function(){var N,b,S;return(((N=this.editorData)==null?void 0:(b=N.description)==null?void 0:(S=b.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.descriptionInput.value||"")};
_.v.isPrivacyChanged=function(){var N,b,S,P,H,K,C,G;return((C=(N=this.editorData)==null?void 0:(b=N.privacy)==null?void 0:(S=b.dropdownFormFieldRenderer)==null?void 0:(P=S.dropdown)==null?void 0:(H=P.dropdownRenderer)==null?void 0:(K=H.entries)==null?void 0:K.find(function(a){var R;return a==null?void 0:(R=a.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(G=C.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.privacyInput.value};
_.v.isVotingChanged=function(){var N,b,S,P,H,K,C,G;return((C=(N=this.editorData)==null?void 0:(b=N.voting)==null?void 0:(S=b.dropdownFormFieldRenderer)==null?void 0:(P=S.dropdown)==null?void 0:(H=P.dropdownRenderer)==null?void 0:(K=H.entries)==null?void 0:K.find(function(a){var R;return a==null?void 0:(R=a.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(G=C.privacyDropdownItemRenderer)==null?void 0:G.int32Value)!==this.votingInput.value};
mg.prototype.onPopupClosed=mg.prototype.onPopupClosed;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],mg.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],mg.prototype,"ytRendererStamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],mg.prototype,"data",void 0);_.p([_.U({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.y("design:type",Array)],mg.prototype,"privacyBadge",void 0);_.p([_.U({computed:"computeEditorData(data)"}),_.y("design:type",Object)],mg.prototype,"editorData",void 0);_.p([_.U(),_.y("design:type",Object)],mg.prototype,"isPlaylistEditComplete",void 0);_.p([_.U(),_.y("design:type",Object)],mg.prototype,"isCollabEngagementDisabled",void 0);
_.p([_.U({value:{REQUIRED_LABEL:_.cN("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.cN("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.y("design:type",Object)],mg.prototype,"addToStrings",void 0);_.p([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.y("design:type",String)],mg.prototype,"ariaLabel",void 0);_.p([_.U(),_.y("design:type",String)],mg.prototype,"closeButtonAriaLabel",void 0);
_.p([_.U(),_.y("design:type",Object)],mg.prototype,"saveButton",void 0);_.p([_.dq("#name-input"),_.y("design:type",Object)],mg.prototype,"nameInput",void 0);_.p([_.dq("#description-input"),_.y("design:type",Object)],mg.prototype,"descriptionInput",void 0);_.p([_.dq("#privacy-input"),_.y("design:type",Object)],mg.prototype,"privacyInput",void 0);_.p([_.dq("#voting-input"),_.y("design:type",Object)],mg.prototype,"votingInput",void 0);
_.p([_.dq("#scroller"),_.y("design:type",Object)],mg.prototype,"JSC$22577_scroller",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],mg.prototype,"onPopupClosed",null);_.p([_.U(),_.y("design:type",Object)],mg.prototype,"onValueChanged",void 0);_.p([_.Uj({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],mg);
_.X(mg,"ytd-playlist-settings-editor-renderer",function(){if(tSQ===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);tSQ=N}N=tSQ;return N},{mode:1});var MSw;_.lo("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var kx=function(){return _.z.apply(this,arguments)||this};
_.F(kx,_.z);_.v=kx.prototype;_.v.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var N=this.get("data.nextButton.buttonRenderer.navigationEndpoint");N&&(this.nextNavigationEndpoint=N,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.v.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var N={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",N)}}};
_.v.onPopupOpened=function(N){N.detail!==this&&N.detail!==this.hostElement||!_.T("enable_premium_voluntary_pause")||_.St(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.v.onNextButtonTap=function(){var N=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);N&&this.ytdOpenPopupBehavior.openPopup(N)};
_.v.updateSelectedResponseIndexFromBinding=function(N){this.selectedResponseIndex=N.detail.value};
kx.prototype.onPopupOpened=kx.prototype.onPopupOpened;kx.prototype.onSelectedResponseIndexChange=kx.prototype.onSelectedResponseIndexChange;kx.prototype.dataChanged=kx.prototype.dataChanged;_.p([_.L(_.u$),_.y("design:type",Object)],kx.prototype,"ytdOpenPopupBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],kx.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],kx.prototype,"selectedResponseIndex",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kx.prototype,"dataChanged",null);_.p([_.W4("selectedResponseIndex"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kx.prototype,"onSelectedResponseIndexChange",null);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],kx.prototype,"onPopupOpened",null);_.p([_.Uj({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],kx);
_.X(kx,"ytd-red-cancel-survey-renderer",function(){if(MSw!==void 0)return MSw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return MSw=N},{mode:1});var FZo;var Tp=function(){var N=_.z.apply(this,arguments)||this;N.closeButtonAriaLabel=_.cN("SBOX_INAPPROPRIATE_CANCEL");return N};
_.F(Tp,_.z);Tp.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Tp.prototype.onClickClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Tp.prototype,"rendererStamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Tp.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],Tp.prototype,"closeButtonAriaLabel",void 0);_.p([_.Uj({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Tp);
_.X(Tp,"ytd-search-filter-options-dialog-renderer",function(){if(FZo!==void 0)return FZo;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return FZo=N},{mode:1});var Boq;var ppJ=function(){return function(N){N=N.availabilityType;return N===void 0||N==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||N==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var t4=function(){var N=_.z.apply(this,arguments)||this;N.qualityOptions=[];N.upsellOptions=[];N.showUpsellSection=!1;N.rememberSettingsChecked=!1;return N};
_.F(t4,_.z);_.v=t4.prototype;_.v.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.v.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.v.updateQualityOptions=function(){if(this.formats===void 0)_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var N=[],b=[];this.showUpsellSection=!1;for(var S=_.O(this.formats),P=S.next();!P.done;P=S.next())(P=P.value)&&(P.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?b.push(P):N.push(P));N.length&&(this.qualityOptions=EE5(N));b.length&&(this.showUpsellSection=!0,this.upsellOptions=EE5(b))}};
_.v.updateRememberString=function(){if(this.downloadQualityPickerEntity)var N=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var b;N=(b=this.data)==null?void 0:b.premiumRememberSettingString}else{var S;N=(S=this.data)==null?void 0:S.rememberSettingString}N=N===void 0?_.cN("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):N;this.rememberSettingsCheckboxRenderer={title:_.bV(N),disabled:!1}};
_.v.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.d0.Object.defineProperties(t4.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var N;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(N=this.data)==null?void 0:N.qualityFormats}}});
t4.prototype.updateRememberString=t4.prototype.updateRememberString;t4.prototype.updateQualityOptions=t4.prototype.updateQualityOptions;t4.prototype.dataChanged=t4.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],t4.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],t4.prototype,"data",void 0);
_.p([_.L(_.Gr),_.y("design:type",Object)],t4.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Boolean)],t4.prototype,"selectedUpsellQuality",void 0);_.p([_.U({computed:"computeIcon_(data.premiumIcon)",value:""}),_.y("design:type",String)],t4.prototype,"premiumIcon",void 0);_.p([_.U({selector:ixE,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],t4.prototype,"downloadQualityPickerEntity",void 0);
_.p([_.U(),_.y("design:type",Array)],t4.prototype,"qualityOptions",void 0);_.p([_.U(),_.y("design:type",Array)],t4.prototype,"upsellOptions",void 0);_.p([_.U(),_.y("design:type",Object)],t4.prototype,"showUpsellSection",void 0);_.p([_.U(),_.y("design:type",Object)],t4.prototype,"rememberSettingsCheckboxRenderer",void 0);_.p([_.dq("#remember-settings"),_.y("design:type",HTMLInputElement)],t4.prototype,"rememberSettingsCheckbox",void 0);
_.p([_.U(),_.y("design:type",Object)],t4.prototype,"rememberSettingsChecked",void 0);_.p([_.U(),_.y("design:type",Function)],t4.prototype,"onRememberSettingsCheckedChanged",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],t4.prototype,"dataChanged",null);_.p([_.W4("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],t4.prototype,"updateQualityOptions",null);
_.p([_.W4("selectedUpsellQuality"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],t4.prototype,"updateRememberString",null);_.p([_.Uj({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],t4);
_.X(t4,"ytd-download-quality-selector-content",function(){if(Boq!==void 0)return Boq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Boq=N},{mode:1});var l1Q;var Mr=function(){var N=_.z.apply(this,arguments)||this;N.selectedUpsellQuality=!1;N.qualityOptions=[];N.useUpsellDismissAlternate=_.T("use_not_now_dl_upsell_dismiss_cta");N.shouldShowAlternateUpsellDimiss=!1;N.rememberSettings=!1;N.rememberSettingsChecked=!1;N.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};N.rememberSettingsCheckedChanged=function(b){N.rememberSettingsChecked=b};
return N};
_.F(Mr,_.z);_.v=Mr.prototype;
_.v.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bV(_.cN("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.v.updateQualityOptions=function(){this.formats===void 0?_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=EE5(this.formats)};
_.v.onQualityOptionsSelect=function(N){if(this.qualityOptions&&N){N!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var b=_.O(this.qualityOptions.entries()),S=b.next();!S.done;S=
b.next()){S=_.O(S.value);var P=S.next().value;S=S.next().value;var H=void 0,K=void 0;if(((H=S)==null?void 0:(K=H.settingsRadioOptionRenderer)==null?void 0:K.id)===N){this.selectedQualityIndex=P;N=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((N=this.formats[P])==null?void 0:N.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.v.onClickSubmit=function(){var N;if((N=this.downloadButtonRenderer)==null||!N.isDisabled){var b,S;N=(S=(b=this.data)==null?void 0:b.onSubmitEndpoint)!=null?S:{};var P,H;if(this.formats&&(((P=_.t(N,_.a2))==null?0:P.videoId)||((H=_.t(N,_.Wm))==null?0:H.playlistId))){var K,C,G,a,R,n;b={formatType:(a=(K=this.formats)==null?void 0:(C=K[(G=this.selectedQualityIndex)!=null?G:0])==null?void 0:C.format)!=null?a:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(R=this.getOfflineEndpoint(N))==null?void 0:(n=R.actionParams)==null?void 0:n.settingsAction)};this.getOfflineEndpoint(N).actionParams=b;this.ytComponentBehavior.resolveCommand(N)}_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.v.onClickUpsell=function(){var N;if((N=this.upsellButtonRenderer)==null||!N.isDisabled){var b,S;N=(S=(b=this.data)==null?void 0:b.upsellEndpoint)!=null?S:{};this.ytComponentBehavior.resolveCommand(N);_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);b="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var P,H,K,C;b=(C=(P=this.formats)==null?void 0:(H=P[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:H.format)!=null?C:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:b}})}};
_.v.onClickClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.v.getOfflineSettingsAction=function(N,b){return N?b===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":b:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.v.getOfflineEndpoint=function(N){return _.t(N,_.a2)?_.t(N,_.a2):_.t(N,_.Wm)};
_.d0.Object.defineProperties(Mr.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.bV(_.cN("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var N;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(N=this.data)==null?void 0:N.qualityFormats}}});
Mr.prototype.updateQualityOptions=Mr.prototype.updateQualityOptions;Mr.prototype.dataChanged=Mr.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Mr.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Mr.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Number)],Mr.prototype,"selectedQualityIndex",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"selectedUpsellQuality",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Mr.prototype,"ytdReduxBehavior",void 0);
_.p([_.U({selector:ixE,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.y("design:type",Object)],Mr.prototype,"downloadQualityPickerEntity",void 0);_.p([_.U(),_.y("design:type",Array)],Mr.prototype,"qualityOptions",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Mr.prototype,"useUpsellDismissAlternate",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"downloadButtonRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"upsellButtonRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"cancelButtonRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"upsellCancelButtonRenderer",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"rememberSettings",void 0);_.p([_.U(),_.y("design:type",Object)],Mr.prototype,"rememberSettingsChecked",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mr.prototype,"dataChanged",null);_.p([_.W4("downloadQualityPickerEntity"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Mr.prototype,"updateQualityOptions",null);_.p([_.Uj({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Mr);
_.X(Mr,"ytd-download-quality-selector-renderer",function(){if(l1Q!==void 0)return l1Q;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return l1Q=N},{mode:1});var LZE;var Fm=function(){return _.z.apply(this,arguments)||this};
_.F(Fm,_.z);Fm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fm.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Fm.prototype,"data",void 0);_.p([_.U({computed:"computeIcon_(data.infoIcon)"}),_.y("design:type",Object)],Fm.prototype,"infoIcon",void 0);
_.p([_.U({computed:"computeIcon_(data.warningIcon)"}),_.y("design:type",Object)],Fm.prototype,"warningIcon",void 0);_.p([_.Uj({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Fm);
_.X(Fm,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(LZE!==void 0)return LZE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return LZE=N},{mode:1});var f1J;var Bw=function(){return _.z.apply(this,arguments)||this};
_.F(Bw,_.z);Bw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bw.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Bw.prototype,"data",void 0);_.p([_.Uj({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Bw);
_.X(Bw,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(f1J!==void 0)return f1J;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return f1J=N},{mode:1});var uTO;var l_=function(){return _.z.apply(this,arguments)||this};
_.F(l_,_.z);l_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
l_.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
l_.prototype.onServiceRequestSentOrCompleted=function(N,b){b&&b.actions&&b.actions.length>0&&_.St(this.hostElement,"yt-close-popup-action",[this.is])};
l_.prototype.onServiceRequestSentOrCompleted=l_.prototype.onServiceRequestSentOrCompleted;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],l_.prototype,"data",void 0);
_.p([_.RA("yt-service-request-completed"),_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],l_.prototype,"onServiceRequestSentOrCompleted",null);_.p([_.Uj({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],l_);
_.X(l_,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(uTO!==void 0)return uTO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return uTO=N},{mode:1});var Q4E;var L_=function(){var N=_.z.apply(this,arguments)||this;N.submitButtonDisabled=!0;return N};
_.F(L_,_.z);_.v=L_.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.v.onDataChanged=function(){var N,b,S;if(((N=this.data)==null?void 0:(b=N.confirmButton)==null?void 0:(S=b.buttonRenderer)==null?void 0:S.isDisabled)!==void 0){var P,H,K;this.submitButtonDisabled=(P=this.data)==null?void 0:(H=P.confirmButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.isDisabled}};
_.v.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.v.updateSubmitButtonDisabledFromBinding=function(N){this.submitButtonDisabled=N.detail.value};
_.v.updateSubmitButtonDisabledFromConfirmCheckbox=function(N){this.submitButtonDisabled=!N.detail.value};
L_.prototype.onDataChanged=L_.prototype.onDataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],L_.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],L_.prototype,"submitButtonDisabled",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],L_.prototype,"onDataChanged",null);_.p([_.Uj({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],L_);
_.X(L_,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Q4E!==void 0)return Q4E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Q4E=N},{mode:1});var x06;var f_=function(){return _.z.apply(this,arguments)||this};
_.F(f_,_.z);_.d0.Object.defineProperties(f_.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N,b,S;return((N=this.data)==null?void 0:N.title)+" "+((b=this.data)==null?void 0:b.metadataPrimary)+" "+((S=this.data)==null?void 0:S.metadataSecondary)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],f_.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],f_.prototype,"data",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],f_.prototype,"ariaLabel",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],f_);
_.X(f_,"ytd-compact-product-list-item-renderer",function(){if(x06!==void 0)return x06;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return x06=N},{mode:1});var od5;var u_=function(){return _.z.apply(this,arguments)||this};
_.F(u_,_.z);u_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactProductListItemRenderer:"ytd-compact-product-list-item-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.d0.Object.defineProperties(u_.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],u_.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],u_.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],u_);
_.X(u_,"ytd-compact-product-list-renderer",function(){if(od5!==void 0)return od5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return od5=N},{mode:1});var iIq;var Qx=function(){return _.z.apply(this,arguments)||this};
_.F(Qx,_.z);_.v=Qx.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.getBackgroundUrl=function(){var N=this.get("data.headerImage.thumbnails");return N?"url("+_.wG(N,this.hostElement.clientWidth)+")":""};
_.v.onDataChanged=function(){var N=this.getBackgroundUrl();N&&(this.header.style.backgroundImage=N);N=_.Qh();var b=_.uZ(),S=this.get("data.trackingParams");S&&b&&N&&_.AZ(N,b,_.FA(S));N=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=N.next();!b.done;b=N.next())b.value.onShow()};
_.v.onPopupClosed=function(N){_.gQ(N).localName==="ytd-membership-post-cancel-renderer"&&_.St(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Qx.prototype.onPopupClosed=Qx.prototype.onPopupClosed;Qx.prototype.onDataChanged=Qx.prototype.onDataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Qx.prototype,"data",void 0);_.p([_.dq("#header"),_.y("design:type",HTMLDivElement)],Qx.prototype,"header",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Qx.prototype,"onDataChanged",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Qx.prototype,"onPopupClosed",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Qx);
_.X(Qx,"ytd-membership-post-cancel-renderer",function(){if(iIq!==void 0)return iIq;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return iIq=N},{mode:1});var Jk6;var xx=function(){return _.z.apply(this,arguments)||this};
_.F(xx,_.z);xx.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
xx.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],xx.prototype,"data",void 0);_.p([_.dq("ytd-feedback-survey-renderer"),_.y("design:type",Object)],xx.prototype,"feedbackSurveyRenderer",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],xx);
_.X(xx,"ytd-sponsorship-confirm-cancel-content",function(){if(Jk6!==void 0)return Jk6;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Jk6=N},{mode:1});var U05;var oR=function(){var N=_.z.apply(this,arguments)||this;N.maybeSubmitFeedback=function(){N.content&&N.content.maybeSubmitFeedback()};
return N};
_.F(oR,_.z);_.v=oR.prototype;_.v.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.v.onYtPopupOpened=function(N,b){b===this&&this.data&&this.data.onOpenCommands&&_.sR(this.hostElement,this.data.onOpenCommands,this.hostElement);_.St(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.v.onYtPopupClosed=function(N,b){(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.sR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.v.onYtServiceRequestError=function(N){_.I2(this.hostElement,N.detail.error.message)};
_.v.onDataChanged=function(){if(this.isAttached){var N=this.backgroundUrl;N&&(_.H4(this.hostElement).querySelector("#header").style.backgroundImage=N)}};
_.d0.Object.defineProperties(oR.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return N?"url("+_.wG(N,this.hostElement.clientWidth)+")":""}}});
oR.prototype.onDataChanged=oR.prototype.onDataChanged;oR.prototype.onYtServiceRequestError=oR.prototype.onYtServiceRequestError;oR.prototype.onYtServiceRequestCompleted=oR.prototype.onYtServiceRequestCompleted;oR.prototype.onYtPopupClosed=oR.prototype.onYtPopupClosed;oR.prototype.onYtPopupOpened=oR.prototype.onYtPopupOpened;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oR.prototype,"data",void 0);_.p([_.U({value:function(){return _.cN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],oR.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("#scrollable"),_.y("design:type",Object)],oR.prototype,"scrollable",void 0);_.p([_.dq("ytd-sponsorship-confirm-cancel-content"),_.y("design:type",Object)],oR.prototype,"content",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],oR.prototype,"onYtPopupOpened",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],oR.prototype,"onYtPopupClosed",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oR.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],oR.prototype,"onYtServiceRequestError",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],oR.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],oR);
_.X(oR,"ytd-sponsorship-confirm-cancel-renderer",function(){if(U05!==void 0)return U05;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return U05=N},{mode:_.sZ("kevlar_poly_si_batch_j081")?1:2});var ZI5;var i_=function(){return _.z.apply(this,arguments)||this};
_.F(i_,_.z);i_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],i_.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],i_.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],i_);
_.X(i_,"ytd-sponsorships-celebration-content",function(){if(ZI5!==void 0)return ZI5;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ZI5=
N},{mode:1});var j45;var zjo=_.$E(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),J4=function(){var N=_.z.apply(this,arguments)||this;N.scriptsAppended=!1;N.useFullWidthPrimaryButton=!1;N.buttonOverrides={type:"tonal",style:"overlay-dark"};return N};
_.F(J4,_.z);_.v=J4.prototype;_.v.dataChanged=function(){var N;this.useFullWidthPrimaryButton=!((N=this.data)==null||!N.useFullWidthPrimaryButton)};
_.v.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.T("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var N;(N=this.header)==null||N.style.setProperty("background-color",this.backgroundColor);if(N=this.headerImageUrl){var b;(b=this.header)==null||b.style.setProperty("background-image",N)}b=_.Qh(4);N=_.uZ(4);var S=this.get("data.trackingParams");if(S&&N&&b){var P=_.FA(S);_.AZ(b,N,P);_.T("combine_ve_grafts")?_.dG().graftServerVe(S,N,4):_.AZ(b,N,P)}b=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(N=b.next();!N.done;N=b.next())N.value.onShow();if(b=this.get("data.gtmId"))_.wt(b,
_.Vg("GL","")),this.setupConversionTracking()};
_.v.setupConversionTracking=function(){if(!this.scriptsAppended){var N=document.createElement("script");_.r$(N,_.Cg(zjo.join("")));document.head.appendChild(N);N=document.createElement("noscript");N.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(N);this.scriptsAppended=!0}};
_.v.onPopupClosed=function(N){if(_.gQ(N).localName==="ytd-sponsorships-celebration-renderer"){_.St(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var b;this.data&&((b=this.data)==null?0:b.dismissCommand)&&_.rG.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.d0.Object.defineProperties(J4.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.o3(N)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return N?"url("+_.wG(N,this.hostElement.getBoundingClientRect().width)+")":""}}});
J4.prototype.onPopupClosed=J4.prototype.onPopupClosed;J4.prototype.onDataChanged=J4.prototype.onDataChanged;J4.prototype.dataChanged=J4.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],J4.prototype,"data",void 0);
_.p([_.dq("#header"),_.y("design:type",HTMLElement)],J4.prototype,"header",void 0);_.p([_.U(),_.y("design:type",Object)],J4.prototype,"scriptsAppended",void 0);_.p([_.U({type:Boolean,reflectToAttribute:!0}),_.y("design:type",Object)],J4.prototype,"useFullWidthPrimaryButton",void 0);_.p([_.U(),_.y("design:type",Object)],J4.prototype,"buttonOverrides",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],J4.prototype,"dataChanged",null);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],J4.prototype,"onDataChanged",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],J4.prototype,"onPopupClosed",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],J4);
_.X(J4,"ytd-sponsorships-celebration-renderer",function(){if(j45!==void 0)return j45;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return j45=N},{mode:1});var Akw;var Uh=function(){var N=_.z.apply(this,arguments)||this;N.isToggleChecked=!1;return N};
_.F(Uh,_.z);Uh.prototype.onDataChanged=function(){var N;this.isToggleChecked=((N=this.data)==null?void 0:N.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Uh.prototype.close=function(){var N;((N=this.data)==null?0:N.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Uh.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var N,b=_.t((N=this.data)==null?void 0:N.switchButton,o$n);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))};
Uh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Uh.prototype.onDataChanged=Uh.prototype.onDataChanged;_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Uh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Uh.prototype,"isToggleChecked",void 0);_.p([_.U({value:_.cN("CLOSE")}),_.y("design:type",String)],Uh.prototype,"closeButtonAriaLabel",void 0);
_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uh.prototype,"onDataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Uh);
_.X(Uh,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Akw!==void 0)return Akw;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Akw=N},{mode:1});var X1_;var Z3=function(){return _.z.apply(this,arguments)||this};
_.F(Z3,_.z);_.v=Z3.prototype;_.v.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.playerElement.stop()};
_.v.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.v.onYtServiceRequestError=function(N){_.I2(this.hostElement,N.detail.error.message)};
_.v.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.v.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.v.getTier=function(N,b){return!N||!N.tiers||b<0?null:_.t(N.tiers[b],Ant)};
_.v.moreThanOne=function(N){return!!(N&&N.length>1)};
_.v.tierOverviewTap=function(N){var b=this;this.selectedTier=N.model.index;_.W_(this,function(){_.bC(b.hostElement,"yt-refit")})};
_.v.computeSelectedClass=function(N,b){return this.isSelected(N,b)?"selected":""};
_.v.computeButtonAriaPressed=function(N,b){return this.isSelected(N,b)?"true":"false"};
_.v.isSelected=function(N,b){return N===b};
_.v.onDataChanged=function(){_.H4(this.hostElement).querySelector("#header-overlay").style.visibility="";_.H4(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var N=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),
b=N.next();!b.done;b=N.next())b.value.onShow();var S;this.set("selectedTier",(S=this.get("data.targetTierIndex"))!=null?S:0);var P;(N=(P=this.data)==null?void 0:P.onVisible)&&this.ytComponentBehavior.resolveCommand(N)};
_.v.initializeVe=function(N){var b=_.Qh(),S=_.uZ(),P=this.get("data.trackingParams");S&&b&&(this.screenLayer=4,b=_.$U(_.cTO)(void 0,69877,{clientScreenNonce:b,visualElement:S},void 0,void 0,void 0),_.iZ(b,69877,4),S=_.uZ(4),P&&S&&(P=_.FA(P),_.AZ(b,S,P),N&&(this.offerVideoVe=_.OW(74659),_.AZ(b,P,this.offerVideoVe))))};
_.v.setHeaderBackground=function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.H4(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.o3(N);if(N=this.getHeaderImage())N=_.wG(N,screen.width),_.H4(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+N+")"};
_.v.getHeaderImage=function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&N?N:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setupVideoPlayer=function(N){var b=this,S,P,H,K;return _.r(function(C){if(C.nextAddress==1)return S=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),P=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.T("kevlar_player_update_killswitch")?b.playerElement.update({args:{autoplay:S,video_id:N,player_params:P}}):b.playerElement.loadVideoWithPlayerVars({autoplay:S,video_id:N,player_params:P}),
C.yield(b.playerElement.getPlayerPromise(),2);H=C.yieldResult;H.addEventListener("onStateChange",function(G){b.onPlayerStateChange(G)});
H.setScreenLayer(b.screenLayer);(K=_.Qh(4))&&b.offerVideoVe&&_.ER(K,b.offerVideoVe);S&&(b.pauseOtherPlayers(),b.playerElement.focusOnPlayer(),b.playerElement.getPlayer().hideControls(),_.XC(_.Dj,function(){b.fadeOutHeaderOverlay()},4E3));
_.Zd(C)})};
_.v.onPlayerStateChange=function(N){N===1?this.backgroundPlayerElement&&(N=this.backgroundPlayerElement.player_.getPlayerState(),N!==1&&N!==3||this.backgroundPlayerElement.pause()):N===0&&(_.H4(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.H4(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.v.fadeOutHeaderOverlay=function(){_.H4(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.v.onHeaderTap=function(){if(this.offerVideo){_.H4(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var N;((N=this.playerElement.player_)==null?void 0:N.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(N=_.Qh(4))&&this.offerVideoVe&&_.y3(N,this.offerVideoVe)}};
_.v.getBackgroundImageLayerClass=function(N){return N?"background-image-layer-with-video":""};
_.v.getHeaderClass=function(N){return N?"header-with-video":""};
_.v.getHeaderOverlayClass=function(N){return N?"header-overlay-with-video":""};
_.v.getTitleContainerClass=function(N,b){return N?"title-container-with-video":b?"title-container-without-video-flexible":"title-container-without-video"};
_.v.tierTitleDisplayStatus=function(N){return this.moreThanOne(N)?"hide":"show"};
_.v.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.aN().resolve(_.E_).getPlayerElement():this.backgroundPlayerElement=_.qE();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var N=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=N===1||N===3;this.backgroundPlayerElement.pause()}};
_.v.isMiniplayerActive=function(){return _.aN().resolve(_.E_).isMiniplayerActive()};
_.v.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("selected-tier-changed",this.selectedTier))};
Z3.prototype.selectedTierChangedForBinding=Z3.prototype.selectedTierChangedForBinding;Z3.prototype.onDataChanged=Z3.prototype.onDataChanged;Z3.prototype.onYtPopupClosed=Z3.prototype.onYtPopupClosed;Z3.prototype.onYtPopupOpened=Z3.prototype.onYtPopupOpened;Z3.prototype.onYtServiceRequestError=Z3.prototype.onYtServiceRequestError;Z3.prototype.onYtServiceRequestCompleted=Z3.prototype.onYtServiceRequestCompleted;
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Z3.prototype,"data",void 0);_.p([_.U({value:0}),_.y("design:type",Number)],Z3.prototype,"selectedTier",void 0);
_.p([_.U({value:""}),_.y("design:type",String)],Z3.prototype,"offerVideo",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Z3.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.p([_.U({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.gI(this)}}),
_.y("design:type",String)],Z3.prototype,"playerId",void 0);_.p([_.dq("tp-yt-paper-dialog-scrollable"),_.y("design:type",Object)],Z3.prototype,"scrollable",void 0);_.p([_.dq("ytd-sponsorships-tier-renderer"),_.y("design:type",Object)],Z3.prototype,"tierRenderer",void 0);_.p([_.dq("#player"),_.y("design:type",Object)],Z3.prototype,"playerElement",void 0);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Z3.prototype,"onYtServiceRequestCompleted",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Z3.prototype,"onYtServiceRequestError",null);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z3.prototype,"onYtPopupOpened",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z3.prototype,"onYtPopupClosed",null);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z3.prototype,"onDataChanged",null);
_.p([_.W4("selectedTier"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Z3.prototype,"selectedTierChangedForBinding",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Z3);
_.X(Z3,"ytd-sponsorships-offer-renderer",function(){if(X1_!==void 0)return X1_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return X1_=N},{mode:_.sZ("kevlar_poly_si_batch_j077")?1:2});var EdO;var jx=function(){var N=_.z.apply(this,arguments)||this;N.buttonOverrides={type:"filled",style:"mono"};return N};
_.F(jx,_.z);jx.prototype.configureRendererStamper=function(){return{"data.content.sponsorshipsPromotionChannelRenderer.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"}}}},"data.header.sponsorshipsPromotionHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
jx.prototype.backgroundColorChanged=function(){var N,b,S,P=(b=_.t((N=this.data)==null?void 0:N.content,XZL))==null?void 0:(S=b.backgroundColor)==null?void 0:S.backgroundColor;P&&(N=_.xn(P),_.H4(this.hostElement).querySelector("#banner").style.backgroundColor=N,_.H4(this.hostElement).querySelector("#abstract-art").style.backgroundColor=N)};
jx.prototype.attached=function(){this.JSC$22660_scroller&&(this.JSC$22660_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22660_scroller.attached&&typeof this.JSC$22660_scroller.attached==="function"&&this.JSC$22660_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jx.prototype.backgroundColorChanged=jx.prototype.backgroundColorChanged;_.p([_.U(),_.y("design:type",Object)],jx.prototype,"data",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],jx.prototype,"JSC$22660_scroller",void 0);_.p([_.U(),_.y("design:type",Object)],jx.prototype,"buttonOverrides",void 0);
_.p([_.W4("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],jx.prototype,"backgroundColorChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],jx);
_.X(jx,"ytd-sponsorships-promotion-celebration-renderer",function(){if(EdO!==void 0)return EdO;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return EdO=N},{mode:_.sZ("kevlar_poly_si_batch_j077")?1:2});var p1_;var Yit;var zp=function(){return _.z.apply(this,arguments)||this};
_.F(zp,_.z);zp.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
zp.prototype.computeIsInitiallyChecked=function(N){return N===1};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],zp.prototype,"data",void 0);_.p([_.dq("#checkbox"),_.y("design:type",Object)],zp.prototype,"checkbox",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],zp);
_.X(zp,"ytd-subscription-toggle-option-renderer",function(){if(Yit!==void 0)return Yit;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return Yit=N},{mode:1});var A4=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return N};
_.F(A4,_.z);A4.prototype.configureRendererStamper=function(){return{"data.secondaryOptions":{id:"secondary-options",mapping:{subscriptionToggleOptionRenderer:"ytd-subscription-toggle-option-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
A4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A4.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var N=_.H4(this.hostElement).querySelector("#options").selected;N=this.data.options[N].subscriptionRadioOptionRenderer.serviceEndpoint;var b=_.H4(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");b&&N&&N.modifyChannelNotificationPreferenceEndpoint&&(b=b.getValue())&&(N.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[b]);_.aN().resolve(_.Wq).resolveCommand(N,{form:{element:this.hostElement}});
_.St(this.hostElement,"yt-close-popup-action")};
_.d0.Object.defineProperties(A4.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var N=this.data.options,b=0;b<N.length;b++){var S=N[b].subscriptionRadioOptionRenderer;if(S&&S.selected)return b}return null}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],A4.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],A4.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],A4.prototype,"data",void 0);_.p([_.f("data.options"),_.y("design:type",Object),_.y("design:paramtypes",[])],A4.prototype,"initialIndex",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],A4);
_.X(A4,"ytd-subscription-notification-options-renderer",function(){if(p1_!==void 0)return p1_;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return p1_=N},{mode:1});var ykE;var I1O=function(){return _.z.apply(this,arguments)||this};
_.F(I1O,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],I1O.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],I1O.prototype,"data",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],I1O);
_.X(I1O,"ytd-tvfilm-offer-groups-renderer",function(){if(ykE!==void 0)return ykE;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return ykE=N},{mode:1});var D0E;var Xm=function(){return _.z.apply(this,arguments)||this};
_.F(Xm,_.z);_.v=Xm.prototype;_.v.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.v.computeThumbnailClass=function(N){return N.thumbnailOverlays?N.isShow?"thumbnail-show":"thumbnail-movie":N.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.v.computeCommerceSectionClass=function(N){return N.offers&&N.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.v.computeTitleClass=function(N){return N.offers&&N.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.v.onDataChanged=function(){[].concat(_.IX(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(N){N.onShow()})};
Xm.prototype.onDataChanged=Xm.prototype.onDataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Xm.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Xm.prototype,"onDataChanged",null);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Xm);
_.X(Xm,"ytd-ypc-offers-overlay-renderer",function(){if(D0E!==void 0)return D0E;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return D0E=N},{mode:_.sZ("kevlar_poly_si_batch_j028")?1:2});var VSi;var gdq=function(){this.usedMethods=new Set};
gdq.prototype.add=function(N){this.usedMethods.add(N)};
gdq.prototype.reset=function(){this.usedMethods.clear()};var eja,$0E;
_.hjq=function(N,b){this.query=N;this.previousSearchQuery=b;this.id=eja++;if(!$0E){b=_.Vg("SBOX_SETTINGS");N="https://"+((b==null?void 0:b.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var S=b==null?void 0:b.REQUEST_LANGUAGE;S&&(N+="&hl="+S);(S=b==null?void 0:b.REQUEST_DOMAIN)&&(N+="&gl="+S);N+="&client=youtube&gs_ri=youtube";(S=b==null?void 0:b.SUGG_EXP_ID)&&(N+="&sugexp="+encodeURIComponent(S));(S=b==null?void 0:b.PSUGGEST_TOKEN)&&(N+="&tok="+S);(b=b==
null?void 0:b.SESSION_INDEX)&&(N+="&authuser="+b);_.T("desktop_enable_visual_suggest")&&(N+="&h=180&w=320&ytvs=1");$0E=N}};
_.qiL=function(N){var b="q="+encodeURIComponent(N.query);N.previousSearchQuery&&(b+="&pq="+encodeURIComponent(N.previousSearchQuery));return b};
_.w1J=function(){var N=_.Vg("SBOX_SETTINGS"),b={};if(N==null?0:N.SEND_VISITOR_DATA)b["X-Goog-Visitor-Id"]=N==null?void 0:N.VISITOR_DATA;return b};
_.NIK=function(N){var b=$0E;b+="&gs_id="+N.id.toString(36);b+="&q="+encodeURIComponent(N.query);b+="&cp="+N.query.length;N.previousSearchQuery&&(b+="&pq="+encodeURIComponent(N.previousSearchQuery));(N=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(b+="&video_id="+N);return b};
eja=0;$0E="";var bak=Vl.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,SeB=Vl.SEARCH_ENTITY_SUGGESTION_MOVIE,PYo=Vl.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Hai=Vl.SEARCH_ENTITY_SUGGESTION_TV_SHOW,sUk=function(N,b){this.text=N;this.bold=b},K9c=function(N,b,S){this.input=b;
this.index=S;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=N[0];this.type=N[1];this.subtypes=N[2];var P;this.displayText=yPt((P=N[3])==null?void 0:P.b);var H;this.ignoredPrefix=yPt((H=N[3])==null?void 0:H.a);var K,C;this.hasNewVideo=((K=N[3])==null?void 0:(C=K.zam)==null?void 0:C.toString())==="true"?!0:!1;var G;this.visualSuggestUrl=(G=N[3])==null?void 0:G.zai;var a;this.entityType=yPt((a=N[3])==null?void 0:a.zap);var R;this.entityName=yPt((R=N[3])==null?void 0:R.zao);var n;b=
yPt((n=N[3])==null?void 0:n.zaf);var d;this.entityMid=(d=N[3])==null?void 0:d.zae;n=IMQ(this.subtypes,this.entityMid);if(b&&n){if(b){d="";switch(n){case "YOUTUBE_ENTITY_TYPE_SONG":d=PYo;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":d=bak;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":d=Hai;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":d=SeB}n=n==="YOUTUBE_ENTITY_TYPE_SONG"||n==="YOUTUBE_ENTITY_TYPE_ALBUM"?d+" \u2022  \u2022 "+b:b}else n="";this.entitySubtitle=n}var m;this.externalChannelId=(m=N[3])==null?void 0:m.zav;
var k;this.entityThumbnailAttributionUrl=(k=N[3])==null?void 0:k.zaq},OaD=function(N,b){var S=[],P,H=(P=N.displayText)!=null?P:N.text;
(b==null?0:b.useEntityName)&&vOI(N)&&N.entityName&&(H=N.entityName);if(N.type===33)return S.push(new sUk(H,!1)),S;if(H.length>=N.input.length&&H.substring(0,N.input.length)===N.input)S.push(new sUk(N.input,!1)),S.push(new sUk(H.substring(N.input.length),!0));else{var K=new Set(N.input.split(/\s/)),C=H.split(/\s/);S=C.map(function(G,a){return new sUk(G.trim()+(a===C.length-1?"":" "),!K.has(G))})}return S},vOI=function(N){var b=!!IMQ(N.subtypes);
N=!!N.entityMid;return b||N};_.CYS=function(N){this.rawResponse=["",[],{}];this.suggestions=[];try{var b=JSON.parse(D5n(N));if(typeof b==="object"&&b!==null)this.rawResponse=b;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(P){console.log("Suggest: Failed to parse SuggestResponse!");return}var S=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(P,H){return new K9c(P,S,H)})};var Goi=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new gdq;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22697_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},rbj,cbh=function(){rbj||(rbj=new Goi);
return rbj};
Goi.prototype.updateSuggestions=function(N){var b=this;this.availableSuggestions.forEach(function(S){b.previousSuggestions[S]=!0});
this.availableSuggestions=N.map(function(S){var P=S.type.toString();S.subtypes.length>0&&(P+="i"+S.subtypes.join("i"),P+="k"+S.suggestionSources.COMPLETE_SERVER.toString());return P})};
var a_K=function(N,b){var S=Date.now();N.firstEditTime<0&&(N.firstEditTime=S);b&&(N.lastQueryBuildTime=S);N.lastEditTime=S};
Goi.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22697_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var RES=function(N){var b="";N.availableSuggestions.forEach(function(H){delete N.previousSuggestions[H]});
for(var S=_.O(Object.keys(N.previousSuggestions)),P=S.next();!P.done;P=S.next())P=P.value,N.previousSuggestions[P]&&(b+=(b?"j":"")+P);return b},W9h=function(N,b){var S=[];
b&&(S[1]=b.toString());S[0]="youtube";S[7]=Date.now()-N.startTime;S[6]=N.sessionNumber;N.zeroPrefixSuggestionCount>=0&&(S[33]=N.zeroPrefixSuggestionCount);S[13]=N.outOfSyncResponseCount;if(N.availableSuggestions.length>0){for(var P=b="",H=0,K=_.O(N.availableSuggestions),C=K.next();!C.done;C=K.next())C=C.value,C!==P&&(H>1&&(b+="l"+H),b+=(P?"j":"")+C,H=0,P=C),H+=1;H>1&&(b+="l"+H);S[3]=b}S[35]=RES(N);N.selectedSuggestionIndex>=0&&(S[2]=N.selectedSuggestionIndex);var G;if(b=(G=_.Vg("SBOX_SETTINGS"))==
null?void 0:G.SUGG_EXP_ID)S[19]=N.normalize(b),G=0,N.experimentTriggeredBeforeFinal&&(G|=1),N.experimentTriggeredFinal&&(G|=2),S[20]=G;S[26]=Array.from(N.inputMethodsTracker.usedMethods).join("j");if(N.JSC$22697_totalRoundTripTime>0){S[15]=N.JSC$22697_totalRoundTripTime;S[14]=N.maxRoundTripTime;G=[];for(H=b=0;H<10;H++)P=N.roundTripTimeHistogram[H],P===0?b++:(b>1?G.push(H+"-"+P):b===1?G.push("0j"+P):G.push(P.toString()),b=0);G=G.join("j");S[16]=G}N.zeroPrefixRoundTripTime>0&&(S[36]=N.zeroPrefixRoundTripTime);
N.lastQueryBuildTime>0&&(S[18]=N.lastQueryBuildTime-N.startTime);N.firstEditTime>0&&(S[4]=N.firstEditTime-N.startTime);N.lastEditTime>0&&(S[5]=N.lastEditTime-N.startTime);return S.join(".")};
Goi.prototype.normalize=function(N){return N.replaceAll(".","-")};
var nOi=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Eh=function(){var N=_.z.apply(this,arguments)||this;N.microphoneSpinnerActive=!1;N.noAnimations=!1;N.boundExitClick=function(){N.onExitButtonClick()};
N.speechOverlayClassName="";N.isLevelAnimating=!1;N.playCloseDialogAudioFeedback=!0;N.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return N};
_.F(Eh,_.z);_.v=Eh.prototype;_.v.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=ru_()};
_.v.dataChanged=function(){this.logDialog()};
_.v.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var N;(N=this.manager.audioPlayer)!=null&&(N.JSC$21547_audioEnabled=!1)}this.manager.stop();(N=this.manager.audioPlayer)!=null&&(N.JSC$21547_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.v.handleSpeechQueryCompleteAction=function(N){var b=N.navigationAction;b&&(N.trackingParams&&_.dG().graftServerVe(N.trackingParams,this.dialogVe,5),_.bC(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getNavigationParams(b),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.v.onExitButtonClick=function(){this.closeDialog()};
_.v.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var N;if((N=this.manager)!=null){var b;(b=N.audioPlayer)==null||qg(b,"failure");N.setState("microphone-off");N.stop()}}else(N=this.manager)==null||N.start()};
_.v.transcriptionChanged=function(){var N,b;(((N=this.transcription)==null?0:N.low)||((b=this.transcription)==null?0:b.high))&&this.setState("transcribing",this.transcription)};
_.v.stateChanged=function(){this.setState(this.state,this.transcription)};
_.v.logDialog=function(){var N;(N=this.data)!=null&&N.trackingParams&&(N=_.dG(),_.Xy(N,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=N.graftServerVe(this.data.trackingParams,void 0,5))};
_.v.getNavigationParams=function(N){var b={};if(_.T("web_yt_searchbox")){var S=cbh();S.inputMethodsTracker.add(6);S=W9h(S,15);b.gs_l=S;var P;b.oq=((P=_.t(N,_.nX))==null?void 0:P.query)||""}else if(N=window.ytvoicesearchloggingparams){if(N=N())b.oq=N.oq,b.gs_l=N.gs_l}else _.qB(Error("em"));return b};
_.v.closeDialog=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.v.setState=function(N,b){if(this.data){var S=this.data,P={};switch(N){case "listening":P={headerText:S.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "timeout":P={headerText:S.promptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,microphoneAriaLabel:S.promptMicrophoneLabel};break;case "microphone-off":P={headerText:S.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,
microphoneAriaLabel:S.promptMicrophoneLabel};break;case "transcribing":(b==null?0:b.low)||(b==null?0:b.high)?P={transcriptionLow:b==null?void 0:b.low,transcriptionHigh:b==null?void 0:b.high,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel}:P={headerText:S.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "processing":P={headerText:S.loadingHeader,microphoneState:"processing",microphoneAriaLabel:S.microphoneButtonAriaLabel};
break;case "offline":P={headerText:S.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:S.connectionErrorMicrophoneLabel,microphoneAriaLabel:S.connectionErrorMicrophoneLabel};break;case "permission":P={headerText:S.permissionsHeader,bodyLine1:S.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:S.permissionsSubtext};break;case "permission-denied":P={headerText:S.disabledHeader,bodyLine1:S.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:S.disabledSubtext}}P.className=
N;this.speechOverlayState=P;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.v.setMicrophoneState=function(N){var b=this.isLevelAnimating;this.isLevelAnimating=N==="speaking";!b&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=N==="processing"&&!this.noAnimations};
_.v.setClass=function(N){this.speechOverlayClassName&&_.K3(this.hostElement,this.speechOverlayClassName,!1);N&&(this.speechOverlayClassName=N,_.K3(this.hostElement,N,!0))};
_.v.runLevelAnimation=function(){var N=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var b=1+Math.random()*.75,S=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+S/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+b+")");_.Dj.addJob(function(){N.runLevelAnimation()},3,S)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Eh.prototype.stateChanged=Eh.prototype.stateChanged;Eh.prototype.transcriptionChanged=Eh.prototype.transcriptionChanged;Eh.prototype.onPopupClosed=Eh.prototype.onPopupClosed;Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Eh.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Eh.prototype,"rendererStamperBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Eh.prototype,"eventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Eh.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Eh.prototype,"speechOverlayState",void 0);
_.p([_.U(),_.y("design:type",Object)],Eh.prototype,"microphoneSpinnerActive",void 0);_.p([_.U({type:_.T("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.y("design:type",Object)],Eh.prototype,"noAnimations",void 0);_.p([_.U({selector:function(N){var b;return(b=N.voiceSearch)==null?void 0:b.transcription}}),
_.y("design:type",Object)],Eh.prototype,"transcription",void 0);_.p([_.U({selector:function(N){var b;return(b=N.voiceSearch)==null?void 0:b.overlay}}),
_.y("design:type",String)],Eh.prototype,"state",void 0);_.p([_.U(),_.y("design:type",Object)],Eh.prototype,"boundExitClick",void 0);_.p([_.dq("#microphone-levels"),_.y("design:type",HTMLElement)],Eh.prototype,"level",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eh.prototype,"dataChanged",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eh.prototype,"onPopupClosed",null);
_.p([_.t_("transcription"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eh.prototype,"transcriptionChanged",null);_.p([_.t_("state"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eh.prototype,"stateChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Eh);
_.X(Eh,"ytd-voice-search-dialog-renderer",function(){if(VSi!==void 0)return VSi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return VSi=N},{mode:1});var dLS;var p_=function(){var N=_.z.apply(this,arguments)||this;N.isOverlay=!1;N.hidden=!1;return N};
_.F(p_,_.z);_.v=p_.prototype;_.v.onPopupClosed=function(){this.toggleIconState(!1)};
_.v.computeIcon=function(){var N,b,S;return(b=_.t((N=this.data)==null?void 0:N.icon,cpq))==null?void 0:(S=b.icon)==null?void 0:S.iconType};
_.v.computeIconBadgeShape=function(){var N;return{iconBadgeType:"cart",iconBadgeText:(N=this.iconBadgeEntity)==null?void 0:N.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.onClick=function(){var N;(N=this.data)!=null&&N.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.v.computeHidden=function(N){return!N};
_.v.toggleIconState=function(N){this.iconButton&&(this.iconButton.pressed=N)};
p_.prototype.onPopupClosed=p_.prototype.onPopupClosed;_.p([_.L(_.Gr),_.y("design:type",Object)],p_.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],p_.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],p_.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],p_.prototype,"isOverlay",void 0);
_.p([_.U({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.y("design:type",Object)],p_.prototype,"hidden",void 0);_.p([_.U({selectorArgs:["data.iconBadgeEntityKey"],selector:function(N,b){return _.GL(N.entities,"iconBadgeEntity",b)}}),
_.y("design:type",Object)],p_.prototype,"iconBadgeEntity",void 0);_.p([_.dq("yt-icon-button"),_.y("design:type",HTMLButtonElement)],p_.prototype,"iconButton",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],p_.prototype,"onPopupClosed",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],p_);
_.X(p_,"ytd-icon-badge-topbar-button-renderer",function(){if(dLS!==void 0)return dLS;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return dLS=N},{mode:1});var mLI;var Yx=function(){var N=_.z.apply(this,arguments)||this;N.premiumOptions=[];return N};
_.F(Yx,_.z);Yx.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.d0.Object.defineProperties(Yx.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Yx.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Array)],Yx.prototype,"premiumOptions",void 0);_.p([_.f("premiumOptions"),_.y("design:type",Object),_.y("design:paramtypes",[])],Yx.prototype,"hasPremiumOptions",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Yx);
_.X(Yx,"ytd-offline-promo-content",function(){if(mLI!==void 0)return mLI;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return mLI=N},{mode:1});var koc;var yx=function(){var N=_.z.apply(this,arguments)||this;N.premiumOptions=[];return N};
_.F(yx,_.z);yx.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var N;this.premiumOptions=Y_E((N=this.data)==null?void 0:N.formats)};
yx.prototype.onClickSubmit=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var N;(N=_.qE())==null||N.pause()};
yx.prototype.attached=function(){this.JSC$22717_scroller&&(this.JSC$22717_scroller.dialogElement=this.hostElement.parentNode)};
_.d0.Object.defineProperties(yx.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
yx.prototype.dataChanged=yx.prototype.dataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],yx.prototype,"data",void 0);
_.p([_.U({computed:"computeIcon_(data.headersIcon)",value:""}),_.y("design:type",String)],yx.prototype,"headersIcon",void 0);_.p([_.U(),_.y("design:type",Array)],yx.prototype,"premiumOptions",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],yx.prototype,"JSC$22717_scroller",void 0);_.p([_.f("headersIcon"),_.y("design:type",Object),_.y("design:paramtypes",[])],yx.prototype,"showIcon",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],yx.prototype,"dataChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],yx);
_.X(yx,"ytd-offline-promo-renderer",function(){if(koc!==void 0)return koc;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return koc=N},{mode:1});var TIH;var IR=function(){var N=_.z.apply(this,arguments)||this;N.playbackPauseInterval=NaN;N.isLoading=!1;N.hasError=!1;N.dialogClass="";N.youtubeLabel=_.cN("LOGO_ALT_LABEL",{},"YouTube Home");N.logoName="yt-logos-ext:yt-logo-updated";N.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return N};
_.F(IR,_.z);_.v=IR.prototype;_.v.onDataChange=function(){var N;if(this.showEOMV1Text=!((N=this.data)==null||!N.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.v.attached=function(){this.pausePlayer()};
_.v.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.v.handleLangSelect=function(N){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[N.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.v.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.v.handleSaveConsent=function(N){var b=this;this.showLoadingSpinner();this.showLoadingSpinner();seo(_.t(N,emJ)).catch(function(S){_.$h(new _.jU("Something went wrong when save consent "+(S.message?S.message:S)+"."));b.hideLoadingSpinner();b.showErrorMessage()})};
_.v.handleDisablePersonalization=function(N){var b=this;this.showLoadingSpinner();KNq(_.t(N,gJo)).then(function(){b.dialog.close();b.resumePlayer()}).catch(function(S){_.$h(new _.jU("Something went wrong when disable personalization "+(S.message?S.message:S)+"."));
b.hideLoadingSpinner();b.showErrorMessage()})};
_.v.showLoadingSpinner=function(){var N=this;this.showSpinnerJobId=_.Dj.addLowPriorityJob(function(){N.isLoading=!0},500)};
_.v.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Dj.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.v.showErrorMessage=function(){var N=this;this.hasError=!0;_.Dj.addLowPriorityJob(function(){N.hasError=!1},2E3)};
_.v.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.MX(function(){try{var N=_.qE();N&&N.pause()}catch(b){}},100))};
_.v.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var N=_.qE();N&&N.play()}catch(b){}};
_.d0.Object.defineProperties(IR.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.eomV1Text)return[];N=[];for(var b=["SHIELD","WARNING","BAR_CHART"],S=this.data.eomV1Text.essentialCookieMsg.items,P=0;P<b.length&&P<S.length;P++)N.push({icon:b[P],text:S[P]});return N}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.eomV1Text)return[];N=[];for(var b=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],S=this.data.eomV1Text.nonEssentialCookieMsg.items,P=0;P<b.length&&P<S.length;P++)N.push({icon:b[P],text:S[P]});return N}}});
IR.prototype.onDataChange=IR.prototype.onDataChange;_.p([_.U(),_.y("design:type",Object)],IR.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],IR.prototype,"showEOMV1Text",void 0);_.p([_.U(),_.y("design:type",Object)],IR.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Object)],IR.prototype,"hasError",void 0);_.p([_.U(),_.y("design:type",Number)],IR.prototype,"showSpinnerJobId",void 0);_.p([_.U(),_.y("design:type",Object)],IR.prototype,"dialogClass",void 0);
_.p([_.dq("#dialog"),_.y("design:type",Object)],IR.prototype,"dialog",void 0);_.p([_.dq("#cb-header"),_.y("design:type",HTMLElement)],IR.prototype,"header",void 0);_.p([_.dq("#lang-select"),_.y("design:type",HTMLElement)],IR.prototype,"langSelect",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],IR.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],IR.prototype,"ytComponentBehavior",void 0);
_.p([_.U(),_.y("design:type",String)],IR.prototype,"youtubeLabel",void 0);_.p([_.U(),_.y("design:type",Object)],IR.prototype,"logoName",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],IR.prototype,"onDataChange",null);_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],IR.prototype,"eomEssentialCookieMsgItems",null);
_.p([_.f("data"),_.y("design:type",Array),_.y("design:paramtypes",[])],IR.prototype,"eomNonEssentialCookieMsgItems",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],IR);
_.X(IR,"ytd-consent-bump-v2-lightbox",function(){if(TIH!==void 0)return TIH;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return TIH=N},{mode:1});var tp7;var D3=function(){return _.z.apply(this,arguments)||this};
_.F(D3,_.z);D3.prototype.ready=function(){if(!_.Jz()||faO)var N=!0;else faO=!0,N=!1;N||(N=document.querySelector("ytd-app"),N||(N=document.body),this.internalLightBox=_.H4(N).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.p([_.U(),_.y("design:type",Object)],D3.prototype,"data",void 0);_.p([_.dq("#lightbox"),_.y("design:type",Object)],D3.prototype,"lightBox",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],D3);
_.X(D3,"ytd-consent-bump-v2-renderer",function(){if(tp7!==void 0)return tp7;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return tp7=N},{mode:1});var Mp$;var F9o;var BIK;var Vx=function(){return _.z.apply(this,arguments)||this};
_.F(Vx,_.z);_.v=Vx.prototype;_.v.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&QEa(this.toastManager,this.toastType)};
_.v.open=function(N){this.toast&&(this.ephemeralAction&&_.aN().resolve(_.fK).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=N!=null?N:0,this.toastManager.enqueue(this.toast,N)):this.toast.open())};
_.v.close=function(N){var b;(b=this.toast)==null||b.close();this.toastManager&&N===1&&QEa(this.toastManager,N)};
_.v.refit=function(){var N;(N=this.toast)==null||N.refit()};
_.v.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var N;(N=this.toast)==null||N.close()}};
_.v.setVerticalOffset=function(N){this.toast&&(this.toast.verticalOffset=N,this.toast.fit())};
_.v.computeButtonClass_=function(N){return N?"toast-button":""};
_.v.computeText_=function(N){return _.es(N)};
_.v.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.MJ("toast-opened-changed",this.toastOpened))};
_.v.updateToastOpenedFromBinding=function(N){this.toastOpened=N.detail.value};
_.d0.Object.defineProperties(Vx.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var N,b,S=(N=this.data)==null?void 0:(b=N.actionButton)==null?void 0:b.buttonRenderer;return(S==null?void 0:S.command)||(S==null?void 0:S.serviceEndpoint)||(S==null?void 0:S.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var N=[],b;((b=this.data)==null?0:b.responseText)&&N.push(_.es(this.data.responseText));var S;((S=this.data)==null?0:S.subText)&&N.push(_.es(this.data.subText));var P,H;if((P=this.data)==null?0:(H=P.actionButton)==null?0:H.buttonRenderer){var K,C;N.push(((K=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(C=K.accessibilityData)==null?void 0:C.label)||_.es(this.data.actionButton.buttonRenderer.text))}return N.filter(function(G){return G}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var N,b;return(b=(N=this.toast)==null?void 0:N.opened)!=null?b:!1}}});
Vx.prototype.toastOpenedChangedForBinding=Vx.prototype.toastOpenedChangedForBinding;Vx.prototype.toastOpenedChanged=Vx.prototype.toastOpenedChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Vx.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Vx.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Vx.prototype,"duration",void 0);
_.p([_.U(),_.y("design:type",Number)],Vx.prototype,"toastType",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Vx.prototype,"useCloseButton",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],Vx.prototype,"closeToastOnActionButtonClick",void 0);_.p([_.U({value:function(){return _.cN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.y("design:type",String)],Vx.prototype,"closeButtonAriaLabel",void 0);_.p([_.U(),_.y("design:type",Boolean)],Vx.prototype,"toastOpened",void 0);_.p([_.U(),_.y("design:type",Boolean)],Vx.prototype,"hasOpened",void 0);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"command",null);_.p([_.f("labelText","command","duration"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"ephemeralAction",null);
_.p([_.f("ephemeralAction"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Vx.prototype,"hasEphemeralAction",null);_.p([_.dq("#toast"),_.y("design:type",Object)],Vx.prototype,"toast",void 0);_.p([_.U({value:function(){return{style:"call-to-action-inverse"}}}),
_.y("design:type",Object)],Vx.prototype,"buttonOverrides",void 0);_.p([_.U({value:{style:"mono-inverse"}}),_.y("design:type",Object)],Vx.prototype,"closeButtonOverrides",void 0);_.p([_.U({value:function(){return _.aN().resolve(_.cq(_.FY))}}),
_.y("design:type",Object)],Vx.prototype,"toastManager",void 0);_.p([_.f("data.responseText","data.subText","data.actionButton"),_.y("design:type",Object),_.y("design:paramtypes",[])],Vx.prototype,"labelText",null);_.p([_.W4("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vx.prototype,"toastOpenedChanged",null);
_.p([_.W4("toastOpened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Vx.prototype,"toastOpenedChangedForBinding",null);_.p([_.J_({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Vx);
_.X(Vx,"yt-notification-action-renderer",function(){if(BIK===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;F9o===void 0&&(F9o=document.createElement("template"));var P=F9o;S.call(b,P.content.cloneNode(!0),N.content.firstChild);BIK=N}N=BIK;return N},{mode:2});var gJ=function(){var N=_.z.apply(this,arguments)||this;N.duration=4E3;N.downloadingCount=0;N.downloadedCount=0;N.downloadingOnlySmartDownloads=!1;N.sessionTotalDownloads=0;N.sessionDownloaded=0;N.previousSessionsDownloaded=0;N.totalDownloadPercentage=0;N.currentDownloadProgress=0;N.currentDownloadPercentage=0;N.isLeaderTab=!0;N.isFullScreen=!1;N.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};N.boundBeforeUnload=function(b){N.isLeaderTab&&N.downloadingCount>0&&(b.preventDefault(),
b.returnValue=!0)};
return N};
_.F(gJ,_.z);_.v=gJ.prototype;
_.v.open=function(){this.updateDownloadState();if(this.data){var N=this.sessionDownloaded+1,b=this.sessionTotalDownloads>1?_.cN("VIDEOS_DOWNLOADING_RATIO",{downloaded:N.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+N+"/"+this.sessionTotalDownloads):_.cN("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(b=this.sessionTotalDownloads>1?_.cN("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:N.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
N+"/"+this.sessionTotalDownloads):_.cN("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));N=this.isLeaderTab?_.cN("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.es(this.data.responseText)!==b||_.es(this.data.subText)!==N)this.set("data.responseText",_.gy(b)),this.set("data.subText",_.gy(N)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.v.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.v.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.v.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.v.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var N=this.downloadedCount-this.previousSessionsDownloaded;N<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-N);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.v.handleFullscreenChange=function(N){(this.isFullScreen=N)||this.updatePopup()};
gJ.prototype.updateCurrentDownloadProgress=gJ.prototype.updateCurrentDownloadProgress;gJ.prototype.updatePopup=gJ.prototype.updatePopup;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],gJ.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],gJ.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],gJ.prototype,"actionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"duration",void 0);_.p([_.U({selector:function(N){return _.D$I(N.entities).length}}),
_.y("design:type",Object)],gJ.prototype,"downloadingCount",void 0);_.p([_.U({selector:oXi}),_.y("design:type",Object)],gJ.prototype,"downloadedCount",void 0);_.p([_.U({selector:function(N){var b=_.D$I(N.entities);return fYi(N.entities,b)}}),
_.y("design:type",Object)],gJ.prototype,"downloadingOnlySmartDownloads",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"sessionTotalDownloads",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"sessionDownloaded",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"previousSessionsDownloaded",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"totalDownloadPercentage",void 0);
_.p([_.U({selector:function(N){var b;N=(b=_.D$I(N.entities))!=null?b:[];return N.length>0?_.U$p(N.slice(-1)):0}}),
_.y("design:type",Object)],gJ.prototype,"currentDownloadProgress",void 0);_.p([_.U(),_.y("design:type",Object)],gJ.prototype,"currentDownloadPercentage",void 0);_.p([_.U({selector:_.hYs}),_.y("design:type",Object)],gJ.prototype,"isLeaderTab",void 0);_.p([_.dq("yt-notification-action-renderer"),_.y("design:type",Object)],gJ.prototype,"notificationActionRenderer",void 0);
_.p([_.t_("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gJ.prototype,"updatePopup",null);_.p([_.t_("currentDownloadProgress"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],gJ.prototype,"updateCurrentDownloadProgress",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],gJ);
_.X(gJ,"ytd-video-download-toast-renderer",function(){if(Mp$!==void 0)return Mp$;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return Mp$=N},{mode:1});var l_h;var L9i;var ex=function(){return _.z.apply(this,arguments)||this};
_.F(ex,_.z);ex.prototype.computeIsRedLogo=function(N,b){!N&&b&&(N=b);return N==="YOUTUBE_RED_LOGO"||N==="YOUTUBE_PREMIUM_LOGO"};
ex.prototype.computeLogoName=function(N){N=this.componentBehavior.computeIcon_(N);return N===""?"yt-logos-ext:yt-logo-updated":N};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],ex.prototype,"componentBehavior",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.y("design:type",Boolean)],ex.prototype,"isRedLogo",void 0);_.p([_.U({computed:"computeLogoName(data)"}),_.y("design:type",String)],ex.prototype,"logoName",void 0);_.p([_.U({value:{}}),_.y("design:type",Object)],ex.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],ex.prototype,"logoType",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-logo"})],ex);
_.X(ex,"ytd-logo",function(){if(L9i!==void 0)return L9i;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return L9i=N},{mode:_.sZ("kevlar_poly_si_batch_j074")?1:2});var $x=function(){var N=_.z.apply(this,arguments)||this;N.animationRef={};return N};
_.F($x,_.z);_.v=$x.prototype;_.v.attached=function(){document.addEventListener("yt-navigate-finish",_.aA(this,this.logYoodle))};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.aA(this,this.logYoodle))};
_.v.logYoodle=function(){var N,b;if((N=this.data)==null?0:(b=N.loggingDirectives)==null?0:b.trackingParams)this.ytRendererBehavior.markDirty(),_.dG().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.v.computeHideImg=function(N,b){return!!N||!!b};
_.v.computeHideYtdLogo=function(N,b){return!N||!!b};
_.v.computeHideLottie=function(N){return!N};
_.v.computeIsRedLogo=function(N){return N==="YOUTUBE_RED_LOGO"||N==="YOUTUBE_PREMIUM_LOGO"};
_.v.renderLogoEntity=function(){var N=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getLogoTitleText(this.data),P=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==N&&(this.url=N);this.animatedUrl!==b&&(this.animatedUrl=b);this.logoTitleText!==S&&(this.logoTitleText=S);this.lottieUrl!==P&&(this.lottieUrl=P,this.lottiePlayerProps=this.computeLottiePlayerProps(P))};
_.v.getSanitizedThumbnail=function(N){return N&&N.thumbnails?_.fPE(N.thumbnails,122)||"":""};
_.v.getThumbnailUrl=function(N,b){if(!b)return"";var S,P;N=N?(S=b.darkThemeLogo)==null?void 0:S.thumbnail:(P=b.lightThemeLogo)==null?void 0:P.thumbnail;return this.getSanitizedThumbnail(N)};
_.v.getAnimatedThumbnailUrl=function(N,b){return b?this.getSanitizedThumbnail(N?b.darkThemeAnimatedLogo:b.lightThemeAnimatedLogo):""};
_.v.getLogoTitleText=function(N){if(N)return _.es(N.tooltipText)};
_.v.computeLogoIcon=function(N,b){if(b){var S,P;return N?(S=b.darkThemeLogo)==null?void 0:S.icon:(P=b.lightThemeLogo)==null?void 0:P.icon}};
_.v.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.v.getLottieUrl=function(N,b){var S,P,H,K;return N?b==null?void 0:(S=b.darkThemeLogo)==null?void 0:(P=S.lottieAnimation)==null?void 0:P.url:b==null?void 0:(H=b.lightThemeLogo)==null?void 0:(K=H.lottieAnimation)==null?void 0:K.url};
_.v.computeLottiePlayerProps=function(N){if(N){var b;if((b=this.animationRef)==null?0:b.lottieEl){var S;(S=this.animationRef)==null||S.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:N,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.v.onLottieError=function(){this.data&&this.lottieUrl&&_.bC(this.hostElement,"yoodle-error")};
_.v.onImgError=function(){this.data&&!this.lottieUrl&&_.bC(this.hostElement,"yoodle-error")};
$x.prototype.playAnimation=$x.prototype.playAnimation;$x.prototype.renderLogoEntity=$x.prototype.renderLogoEntity;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],$x.prototype,"data",void 0);_.p([_.U({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],$x.prototype,"hideImg",void 0);
_.p([_.U({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.y("design:type",Boolean)],$x.prototype,"hideYtdLogo",void 0);_.p([_.U({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.y("design:type",Boolean)],$x.prototype,"hideLottie",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.y("design:type",Boolean)],$x.prototype,"isRedLogo",void 0);
_.p([_.U(),_.y("design:type",Boolean)],$x.prototype,"useDarkThemeYoodle",void 0);_.p([_.U(),_.y("design:type",String)],$x.prototype,"url",void 0);_.p([_.U(),_.y("design:type",String)],$x.prototype,"animatedUrl",void 0);_.p([_.U(),_.y("design:type",String)],$x.prototype,"logoTitleText",void 0);_.p([_.U({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.y("design:type",Object)],$x.prototype,"logoIcon",void 0);_.p([_.U(),_.y("design:type",Object)],$x.prototype,"logoType",void 0);
_.p([_.U(),_.y("design:type",String)],$x.prototype,"lottieUrl",void 0);_.p([_.U(),_.y("design:type",Object)],$x.prototype,"lottiePlayerProps",void 0);_.p([_.U(),_.y("design:type",Object)],$x.prototype,"animationRef",void 0);_.p([_.W4("data"),_.W4("useDarkThemeYoodle"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],$x.prototype,"renderLogoEntity",null);
_.p([_.RA("click"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],$x.prototype,"playAnimation",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],$x);
_.X($x,"ytd-yoodle-renderer",function(){if(l_h!==void 0)return l_h;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return l_h=N},{mode:_.sZ("kevlar_poly_si_batch_j074")?1:2});var f_i;var ufi;var QUh=_.pf.currentPageTypeSelector,xLD=_.pf.currentPageSubTypeSelector,h4=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return N};
_.F(h4,_.z);_.v=h4.prototype;_.v.onYoodleError=function(){_.T("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.v.computeLogoName=function(N){N=this.componentBehavior.computeIcon_(N);return N===""?"yt-logos-ext:yt-logo-updated":N};
_.v.computeTitle=function(N,b,S){return S&&(b==null?0:b.tooltipText)?_.es(b.tooltipText):_.es(N)};
_.v.computeAriaLabel=function(N,b,S){return S&&(b==null?0:b.tooltipText)?_.es(N):""};
_.v.computeShowYoodle=function(N,b,S){return!N||!b&&!!S&&!_.Vm.isEmpty(S)};
_.v.onNavigateHomeAction=function(){if(_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var N;(N=_.H4(this.hostElement).querySelector(".yt-simple-endpoint"))==null||N.click()}};
_.v.computeLogoHref=function(N,b,S){var P;(S==null?0:S.onTapCommand)?P=this.componentBehavior.computeHref_(S.onTapCommand):N&&(P=this.componentBehavior.computeHref_(N));return P?P:b};
_.v.computeCommand=function(N,b){return(b==null?void 0:b.onTapCommand)||N};
_.v.getEndpointForm=function(){if(_.T("kevlar_topbar_disable_cache_only_home")){var N=_.aN().resolve(_.OQ),b=QUh(N.getState())||"";N=xLD(N.getState())||"";return{disableCache:b==="ytd-browse"&&N==="home"}}return{disableCache:!0}};
h4.prototype.onYoodleError=h4.prototype.onYoodleError;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],h4.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],h4.prototype,"componentBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],h4.prototype,"ytdReduxBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],h4.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],h4.prototype,"countryCode",void 0);_.p([_.U({selectorArgs:["data.overrideEntityKey"],selector:function(N,b){return _.GL(N.entities,"logoEntity",b)}}),
_.y("design:type",Object)],h4.prototype,"logoEntity",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.y("design:type",Boolean)],h4.prototype,"showYoodle",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],h4.prototype,"yoodleError",void 0);_.p([_.U({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],h4.prototype,"titleText",void 0);
_.p([_.U({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.y("design:type",String)],h4.prototype,"ariaLabelText",void 0);_.p([_.U({value:"/"}),_.y("design:type",String)],h4.prototype,"defaultEndpointUrl",void 0);_.p([_.U({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.y("design:type",String)],h4.prototype,"endpointUrl",void 0);
_.p([_.U({computed:"computeCommand(data.endpoint, logoEntity)"}),_.y("design:type",String)],h4.prototype,"command",void 0);_.p([_.U(),_.y("design:type",Object)],h4.prototype,"logoType",void 0);_.p([_.U({}),_.y("design:type",Boolean)],h4.prototype,"useDarkThemeYoodle",void 0);_.p([_.RA("yoodle-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],h4.prototype,"onYoodleError",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],h4);
_.X(h4,"ytd-topbar-logo-renderer",function(){if(ufi!==void 0)return ufi;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return ufi=N},{mode:_.sZ("kevlar_poly_si_batch_j027")?1:2});var oOi=0;var iac=Vl.SEARCH_APPEND_LABEL,Jbi=Vl.SUGGESTION_NEW_VIDEOS_TEXT,ULI=Vl.SUGGESTION_THUMBNAIL_LABEL,Zac=Vl.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,jUo=_.A(function(N){function b(Nj){var nq,pq;return _.r(function(R_){if(R_.nextAddress==1)return nq=new Request(Nj),_.u4(R_,2),R_.yield(fetch(nq,{credentials:"include"}),4);if(R_.nextAddress!=2)return RU(!0),_.su(R_,0);pq=_.UE(R_);_.$h(pq);_.Zd(R_)})}
var S=N.isHighlighted;var P=N.suggestion;var H=N.onClickCallback;var K=N.onHoverUpdateCallback;var C=N.labels;var G=N.queryBuilderFunction;var a=N.onRemoveCallback;var R=N.suggestionIndex;var n=N.generateUniqueId;var d=N.highlightedId;var m=N.useScrollMargin;var k=N.isKeyboardMode;var M=null,l=null,u=null,J=_.Ct("div"),Z=_.Ct("span");N=_.O(_.QF(!1,void 0,"LafNkf"));var D=N.next().value,Y=N.next().value,V=_.GQ("a",function(Nj){Nj&&_.fo(237477,Nj,l,function(nq){l=nq})}),g=_.GQ("button",function(Nj){Nj&&
_.fo(237477,Nj,l,function(nq){l=nq})}),e=_.GQ("div",function(Nj){Nj&&_.fo(281939,Nj,u,function(nq){u=nq})}),se=_.Ob(function(Nj){if((Nj==null?void 0:Nj.button)===2)return Nj.preventDefault(),!1;
var nq=_.Qh();nq&&M&&_.Im(nq,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var pq;H(Nj,P().text,P().index,P().entityMid,Nj==null?void 0:(pq=Nj.detail)==null?void 0:pq.wasSelectedByKeyboard);return!1}),Ca=function(){return P().type===35},ML=function(){return _.T("desktop_enable_single_suggestion_highlight")},na=function(){return _.d7("desktop_suggestions_panel_row_height")||0},To=function(){var Nj;
return _.T("desktop_enable_new_video_metadata")&&((Nj=P())==null?void 0:Nj.hasNewVideo)===!0},jp=function(){return _.T("desktop_enable_visual_suggest")},Xf=function(){return _.T("desktop_enable_entity_suggest")&&vOI(P())},YO=function(){return P().entitySubtitle},Wk=function(){return ML()?(S==null?void 0:S())||Ib()&&!(k==null?0:k()):(S==null?void 0:S())||Ib()},S9=function(){var Nj=_.Vg("SBOX_SETTINGS");
return Ca()&&!(Nj==null?0:Nj.HIDE_REMOVE_LINK)},Vu=function(){return OaD(P(),{useEntityName:Xf()})},n9,mc=!((n9=_.aN().resolve(_.cq(_.T8)))==null||!n9()),f9=function(){return Ca()?_.T("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},mJ=function(){return C==null?void 0:C().SUGGESTION_DISMISS_LABEL},Bk=function(){return C==null?void 0:C().SUGGESTION_DISMISSED_LABEL};
N=_.O(_.QF(!1,void 0,"JyfUlf"));n9=N.next().value;var RU=N.next().value;N=_.O(_.QF(!1,void 0,"QKfAGe"));var Ab=N.next().value,kZ=N.next().value,Ib=Ab,Ud=_.Ob(function(){G(Z.value.innerText);return!1}),ob=_.Ob(function(Nj){Nj.preventDefault();
return!1}),PM=_.Ob(function(Nj){var nq=P().text,pq=_.Vg("SBOX_SETTINGS"),R_="https://"+(pq.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
R_+="&delq="+encodeURIComponent(nq);(nq=pq==null?void 0:pq.PSUGGEST_TOKEN)&&(R_+="&tok="+nq);(pq=pq==null?void 0:pq.SESSION_INDEX)&&(R_+="&authuser="+pq);b(R_);Nj.preventDefault();(Nj=_.Qh())&&l&&_.Im(Nj,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");a(R==null?void 0:R());return!1}),Vz=_.Ob(function(){if(ML()&&(k==null?0:k()))return!1;
kZ(!0);K(!0);return!1}),ck=_.Ob(function(){kZ(!1);
K(!1);return!1}),d9=_.Ob(function(){Y(!0);
return!1}),sa=_.Ob(function(){Y(!1);
return!1}),$O=_.Ob(function(Nj){Nj.preventDefault();
if(P().entityThumbnailAttributionUrl){u&&_.YD(_.dG(),u);var nq=P().entityThumbnailAttributionUrl;Nj=P().entityName;var pq={dismissDialogEndpoint:{}};nq={commandExecutorCommand:{commands:[pq,{urlEndpoint:{url:nq,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:nq}}}]}};pq={buttonViewModel:{title:_.cN("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:pq}}};nq={buttonViewModel:{title:_.cN("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:nq}}};Nj={dialogHeaderViewModel:{headline:{content:Nj!=null?Nj:_.cN("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var R_={basicContentViewModel:{paragraphs:[{text:{content:_.cN("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Nj={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Nj,footer:{panelFooterViewModel:{primaryButton:nq,
secondaryButton:pq,shouldHideDivider:!0}},content:R_}}}}};_.aN().resolve(_.Wq).resolveCommand(Nj)}return!1});
N=_.O(_.QF("",void 0,"MvIBn"));var qS=N.next().value,Do=N.next().value;_.pM(function(){S9()&&Do(n==null?void 0:n(R==null?void 0:R()));J.value&&_.fo(12453,J.value,M,function(Nj){M=Nj})});
return _.c(_.W,{cond:n9,then:function(){var Nj={};return _.c("div",{class:_.KU("ytSuggestionComponentRemovedText",(Nj.ytSuggestionComponentLargerRemovedText=function(){return jp()},Nj)),
style:function(){return na()>0?"height: "+na()+"px;":""},
role:"button"},Bk)},
else:function(){var Nj={},nq={};return _.c("div",{class:_.KU("ytSuggestionComponentSuggestion",(Nj.ytSuggestionComponentSuggestionHover=function(){return!ML()},Nj.ytSuggestionComponentHighlighted=Wk,Nj.ytSuggestionComponentPersonalizedSuggestion=Ca,Nj.ytSuggestionComponentMweb=!1,Nj.ytSuggestionComponentLargerSuggestion=function(){return To()||jp()},Nj.ytSuggestionComponentThumbnailSuggestion=function(){return jp()},Nj.ytSuggestionComponentRoundedSuggestion=function(){return _.T("desktop_enable_scrollable_suggestions_panel")&&
_.T("desktop_enable_suggestions_panel_padding")},Nj.ytSuggestionComponentThumbnailPadding=function(){return jp()&&!Ca()},Nj)),
style:function(){return na()>0?"height: "+na()+"px;":""},
role:"presentation","on:mousedown":se,"on:mouseover":Vz,"on:mouseout":ck,el:J},_.c("div",{class:_.KU("ytSuggestionComponentText",(nq.ytSuggestionComponentScrollMargin=m,nq)),"aria-label":function(){return To()?P().text+" "+Jbi:P().text},
id:function(){return n==null?void 0:n(R==null?void 0:R())},
"on:mousedown":se,role:"option"},_.c(_.W,{cond:function(){return P().type!==33},
then:function(){return _.c(_.cX,{icon:f9,className:"ytSuggestionComponentIcon"})}}),_.c("div",{class:"ytSuggestionComponentLeftContainer"},_.c("span",{el:Z,
role:"button",tabindex:0},_.c(_.zj,{each:Vu},function(pq){return pq.bold?_.c("span",{class:"ytSuggestionComponentBold"},pq.text):_.c("span",null,pq.text)})),_.c(_.W,{cond:function(){return Xf()&&!!P().entitySubtitle||To()},
then:function(){return _.c("div",{class:"ytSuggestionComponentMetadataContainer"},_.c(_.W,{cond:function(){return Xf()&&!!P().entitySubtitle},
then:function(){return _.c("div",{class:"ytSuggestionComponentEntitySubtitle"},YO)}}),_.c(_.W,{cond:function(){return To()},
then:function(){return _.c("div",{class:"ytSuggestionComponentNewVideoContainer"},_.c("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.c("div",{class:"ytSuggestionComponentNewVideoText"},Jbi))}}))}}))),_.c("div",{class:"ytSuggestionComponentRightContainer"},_.c(_.W,{cond:function(){return jp()&&P().visualSuggestUrl!==void 0},
then:function(){var pq={};return _.c("div",{class:"ytSuggestionComponentThumbnailContainer"},_.c("img",{"aria-label":ULI,class:_.KU("ytSuggestionComponentVisualSuggestThumbnail",(pq.ytSuggestionComponentCircularFrame=function(){return Xf()&&P().subtypes.includes(790)},pq.ytSuggestionComponentEntitySuggestThumbnail=function(){return Xf()},pq)),
src:function(){return P().visualSuggestUrl}}),_.c(_.W,{cond:function(){return Xf()&&!!P().entityThumbnailAttributionUrl},
then:function(){var R_={};return _.c("span",{title:Zac,role:"tooltip"},_.c("div",{el:e,"on:mouseover":d9,"on:mouseout":sa,"on:mousedown":$O,class:_.KU("ytSuggestionComponentThumbnailOverlay",(R_.ytSuggestionComponentThumbnailOverlayHidden=function(){return!D()},R_))},_.c(_.cX,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.c(_.Al,null,_.c(_.ZH,{when:function(){return jp()&&S9()}},function(){var pq={};
return _.c("button",{class:_.KU("ytSuggestionComponentRemoveLinkClearButton",(pq.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return qS()&&qS()===(d==null?void 0:d())},pq.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Wk()},pq)),
el:g,"on:mousedown":PM,"aria-label":mJ,id:function(){return qS()}},_.c(_.cX,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.c(_.ZH,{when:function(){return!(jp()&&P().visualSuggestUrl!==void 0)&&S9()}},function(){var pq={};
return _.c("a",{class:_.KU("ytSuggestionComponentRemoveLink",(pq.ytSuggestionComponentRemoveLinkDark=mc,pq.ytSuggestionComponentRemoveLinkSelected=function(){return qS()&&qS()===(d==null?void 0:d())},pq)),
el:V,"on:mousedown":PM,"aria-label":mJ,tabindex:0,role:"button",id:function(){return qS()}},mJ)}),_.c(_.ZH,{when:function(){return!1}},function(){return _.c("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Ud,"on:mousedown":ob,role:"button","aria-label":iac},_.c(_.cX,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"fl");var zE7=_.$E(["//www.google.com/textinputassistant/","/","_tia.js"]),Abk=_.A(function(){return _.c("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.c("button",{class:"ytdTextInputAssistantButton","on:click":_.Ob(function(){cbh().inputMethodsTracker.add(3);var N,b=(N=_.Vg("SBOX_SETTINGS"))==null?void 0:N.REQUEST_LANGUAGE;if(b)return _.zk(_.Mz(zE7,14,b)),!1})},_.c("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"gl");var EOH;_.Xsj=function(){this.cache=new Map};
EOH=function(N){for(var b=_.O(N.cache.entries()),S=b.next();!S.done;S=b.next()){var P=_.O(S.value);S=P.next().value;P=P.next().value;P.suggestions.some(function(H){return H.type===35})&&N.cache.delete(S)}};var psc=Vl.SEARCH,YeS=Vl.SEARCH_CLEAR_LABEL,ybL=new _.nO("FAKE_SUGGEST_RESPONSE"),I_L=_.A(function(N){function b(){Vz||(Vz=setTimeout(function(){d9()},1E3))}
function S(Qz,lE,YQ){if(Qz.trim()){PM=Qz;_.DH("REFINEMENTS_TUPLE",void 0);Ud=!0;var CD;lE=W9h(Bk,lE);var T4=(CD=N.searchEndpoint)==null?void 0:CD.call(N);_.gEa(Qz,lE,T4,n9.value.value,YQ);d9();n9.value.value=Qz;n9.value.blur();Bk.reset()}}
function P(Qz){return _.r(function(lE){return lE.return(new Promise(function(YQ){var CD=new XMLHttpRequest;CD.open("GET",_.NIK(Qz),!0);CD.withCredentials=!0;var T4=_.Vg("SBOX_SETTINGS");(T4==null?0:T4.SEND_VISITOR_DATA)&&CD.setRequestHeader("X-Goog-Visitor-Id",T4==null?void 0:T4.VISITOR_DATA);CD.onload=function(){YQ(CD.responseText)};
CD.onerror=function(){_.$h(Error("gm"));YQ(null)};
setTimeout(function(){CD.abort()},1E4);
CD.send(null)}))})}
function H(Qz){var lE,YQ,CD,T4;return _.r(function(Un){switch(Un.nextAddress){case 1:return lE={credentials:"include",headers:_.w1J()},window.AbortController&&(YQ=new AbortController,setTimeout(function(){YQ.abort("ytsbox-suggest-timeout")},1E4),lE.signal=YQ.signal),_.u4(Un,2),Un.yield(fetch(_.NIK(Qz),lE),4);
case 4:CD=Un.yieldResult.text();_.su(Un,3);break;case 2:return T4=_.UE(Un),T4!=="ytsbox-abort-last"&&T4!=="ytsbox-suggest-timeout"&&_.$h(T4),Un.return(null);case 3:return Un.return(CD)}})}
function K(Qz){var lE,YQ,CD;return _.r(function(T4){switch(T4.nextAddress){case 1:if(lE=_.aN().resolve(_.cq(ybL)))return T4.return(lE);YQ=Date.now();b();return _.T("yt_searchbox_xhr")?T4.yield(P(Qz),5):T4.yield(H(Qz),4);case 4:CD=T4.yieldResult;T4.jumpTo(3);break;case 5:CD=T4.yieldResult;case 3:if(CD){Vz&&(clearTimeout(Vz),Vz=null);var Un=Bk,F1=YQ,pD=Qz.query.length===0;F1=Date.now()-F1;pD?Un.zeroPrefixRoundTripTime=F1:(Un.JSC$22697_totalRoundTripTime+=F1,Un.maxRoundTripTime=Math.max(Un.maxRoundTripTime,
F1),pD=Math.floor(F1/100),pD>=nOi.length?++Un.roundTripTimeHistogram[9]:++Un.roundTripTimeHistogram[nOi[pD]])}return T4.return(CD)}})}
function C(Qz){var lE,YQ,CD;return _.r(function(T4){if(T4.nextAddress==1)return(lE=mJ.cache.get(_.qiL(Qz)))?T4.return(lE):T4.yield(K(Qz),2);YQ=T4.yieldResult;if(YQ===null)return T4.return(null);CD=new _.CYS(YQ);Qz.query.length===0&&CD.suggestions.length===0||mJ.cache.set(_.qiL(Qz),CD);return T4.return(CD)})}
function G(Qz){var lE,YQ;return _.r(function(CD){if(CD.nextAddress==1){ob=!1;var T4=PM;T4=_.eF()==="search"?(_.PW(location.href,"search_query")||_.PW(location.href,"q"))===T4:!1;lE=new _.hjq(Qz,T4?PM:null);return CD.yield(C(lE),2)}YQ=CD.yieldResult;if(YQ===null)return CD.return();lE.query.length===0&&(Bk.zeroPrefixSuggestionCount=YQ.suggestions.length);if(lE.id<=ck)return Bk.outOfSyncResponseCount++,CD.return();if(document.activeElement!==n9.value)return CD.return();ck=lE.id;var Un=Bk,F1=YQ.rawResponse[2]||
{};Un.experimentTriggeredBeforeFinal||(Un.experimentTriggeredBeforeFinal=Un.experimentTriggeredFinal);Un.experimentTriggeredFinal=!!F1.e;Bk.updateSuggestions(YQ.suggestions);u(-1);YO([]);YQ.suggestions!==k()&&lz(YQ.suggestions.length);M(YQ.suggestions);se(YQ.suggestions.length>0&&YQ.suggestions[0].type===33);f9&&(f9.hidden=YQ.suggestions.length===0,e()?(f9.style.minWidth="",Un=f9.style,F1=(T4=k()[0])==null?void 0:T4.ignoredPrefix,Un.marginLeft=(F1?Math.min(F1.length*6,mc.value.offsetWidth):0).toString()+
"px"):(f9.style.minWidth=mc.value.offsetWidth+"px",f9.style.marginLeft="0"),i4());_.Zd(CD)})}
function a(){if(!Ud)return!1;var Qz=_.Vg("REFINEMENTS_TUPLE");return Qz?(Qz=Qz[1].map(function(lE,YQ){return new K9c([lE,0,[71]],n9.value.value,YQ)}),k()!==Qz&&lz(Qz.length),YO([]),M(Qz),Bk.updateSuggestions(Qz),Ud=!1,f9.hidden=Qz.length===0,ob=Qz.length>0,!0):!1}
function R(){var Qz=n9.value.value;(typeof Qz==="string"||Qz instanceof String)&&Qz!==""?Y(!0):Y(!1)}
function n(){if(_.eF()==="search"){var Qz=window.location.href;try{var lE=_.PW(Qz,"search_query")||_.PW(Qz,"q")||""}catch(YQ){lE=""}lE&&(n9.value.value=lE,Y(!0))}}
var d=_.O(_.QF([],void 0,"OC8EPc")),m=d.next().value;d=d.next().value;var k=m,M=d;m=_.O(_.QF(-1,void 0,"t2tVQb"));var l=m.next().value,u=m.next().value;m=_.O(_.QF(-1,void 0,"v0RZCe"));var J=m.next().value,Z=m.next().value;m=_.O(_.QF(!1,void 0,"rjAnI"));var D=m.next().value,Y=m.next().value;m=_.O(_.QF(!1,void 0,"SyGLvb"));var V=m.next().value,g=m.next().value;d=_.O(_.QF(!1,void 0,"tL09Cb"));m=d.next().value;d=d.next().value;var e=m,se=d;d=_.O(_.QF(!1,void 0,"FlH7mc"));m=d.next().value;var Ca=d.next().value;
d=_.O(_.QF(!1,void 0,"ea3fwe"));var ML=d.next().value,na=d.next().value;d=_.O(_.QF(1,void 0,"vSK1xe"));var To=d.next().value,jp=d.next().value;d=_.O(_.QF([],void 0,"ijlw4b"));var Xf=d.next().value,YO=d.next().value;d=_.O(_.QF(!1,void 0,"HcRey"));var Wk=d.next().value,S9=d.next().value;d=_.T("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Vu=_.Ct("yt-searchbox"),n9=_.Ct("input"),mc=_.Ct("div"),f9,mJ=
new _.Xsj,Bk=cbh(),RU=_.aN().resolve(_.cq(_.T8)),Ab=function(){var Qz;return((Qz=N.forceDarkMode)==null?void 0:Qz.call(N))||!(RU==null||!RU())},kZ=function(){return _.T("desktop_enable_scrollable_suggestions_panel")},Ib="i"+oOi++,Ud=!1,ob=!1,PM="",Vz=null,ck=-1,d9=function(){YO([]);
M([]);se(!1);f9&&(f9.hidden=!0);Vz&&(clearTimeout(Vz),Vz=null);u(-1)},sa=function(Qz,lE){Qz.preventDefault();
S9(!0);f9&&(f9.hidden=!1);var YQ=l();Qz=k();var CD=Xf();lE=ero(lE);YQ+=lE;for(YQ>=Qz.length?YQ=-1:YQ<-1&&(YQ=Qz.length-1);YQ!==-1&&(CD.includes(YQ)||YQ>=Qz.length||YQ<0);)YQ+=lE,YQ>=Qz.length&&(YQ=-1);u(YQ);l()>=0&&(n9.value.value=k()[l()].text,Z(0),R(),Qz=l(),CD=J(),(CD=document.getElementById(Hv[Qz][CD]))&&kZ()&&(Qz===k().length-1?f9.scrollTop=f9.scrollHeight:CD.scrollIntoView({block:"nearest",inline:"start"})))},$O=_.Ob(function(Qz){if(!(Qz.relatedTarget instanceof Element&&Qz.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!0);
var lE;(lE=N.focusCallback)==null||lE.call(N,!0);a()||(ob?f9.hidden=!1:(_.bC(Vu.value,"yt-autonav-pause-focus",{}),G(Qz.target.value)))}}),qS=_.Ob(function(Qz){if(!(Qz.relatedTarget instanceof Element&&Qz.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!1);
var lE;(lE=N.focusCallback)==null||lE.call(N,!1);f9.scrollTop=0;f9.hidden=!0;_.bC(Vu.value,"yt-autonav-pause-blur",{})}}),Do=function(Qz){Qz=ero(Qz);
var lE;((lE=Hv[l()])==null?0:lE[J()+Qz])&&Z(J()+Qz)},Nj=_.Ob(function(Qz){var lE=Qz.keyCode,YQ=Qz.target;
S9(!0);switch(lE){case 13:Qz.preventDefault();var CD;if((CD=Hv[l()])==null?0:CD[J()]){var T4;(T4=document.getElementById(Hv[l()][J()]))==null||T4.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Qz=Qz.shiftKey?4:3;lE=Bk;CD=l();lE.selectedSuggestionIndex=CD;S(YQ.value,Qz);break;case 27:f9&&(f9.hidden=!0);break;case 40:sa(Qz,40);break;case 38:sa(Qz,38);break;case 39:Do(39);break;case 37:Do(37);break;case 229:Bk.inputMethodsTracker.add(4);break;default:Bk.inputMethodsTracker.add(1),
a_K(Bk)}return!1}),nq=_.Ob(function(Qz){G(Qz.target.value);
R();kZ()&&f9&&(f9.scrollTop=0);return!1}),pq=_.Ob(function(){Bk.inputMethodsTracker.add(2);
a_K(Bk);return!1});
_.pM(function(){if(f9){Bk.reset();if(window.ResizeObserver){var Qz=new ResizeObserver(function(){e()||(f9.style.minWidth=mc.value.offsetWidth+"px")});
Qz.observe(mc.value);(new ResizeObserver(function(){i4()})).observe(f9);
_.ej(function(){Qz.disconnect()})}n();
window.addEventListener("yt-navigate-finish",n);window.addEventListener("yt-focus-searchbox",function(){n9.value.focus()});
var lE;Ca((lE=_.Vg("SBOX_SETTINGS"))==null?void 0:lE.HAS_ON_SCREEN_KEYBOARD)}else _.ge(new _.jU("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var R_=_.Ob(function(Qz){Qz.preventDefault();S(n9.value.value,12);return!1}),Gn=_.Ob(function(Qz){Qz.preventDefault();
var lE,YQ;(lE=n9)==null||(YQ=lE.value)==null||YQ.focus();var CD,T4;((CD=n9)==null?void 0:(T4=CD.value)==null?void 0:T4.value)!==""&&(n9.value.value="",n9.value.dispatchEvent(new Event("input")));return!1}),g9=_.Ob(function(){var Qz=yZi(n9.value.value,k().filter(function(lE){return lE.type!==35}).map(function(lE){return{label:lE.text}}));
_.St(Vu.value,"yt-open-popup-action",[{openPopupAction:Qz},document.body]);return!1}),Lq=_.Ob(function(){n9.value.focus();
return!1}),Kq=function(Qz,lE,YQ,CD,T4){Bk.selectedSuggestionIndex=YQ;
S(lE,T4?3:1,CD)},Ah=function(Qz){n9.value.value=Qz;
n9.value.dispatchEvent(new Event("input"));Bk.inputMethodsTracker.add(5);a_K(Bk,!0)},Hv=[[]],XK=function(Qz){var lE="searchbox-suggestion"+_.ey(_.c3);
Hv[Qz].push(lE);return lE},lz=function(Qz){if(k()){Hv=[[]];
for(var lE=0;lE<Qz;lE++)Hv.push([])}},i4=function(){if(kZ()){var Qz=f9,lE=Qz.scrollTop;
Qz=Qz.scrollHeight-Qz.clientHeight;na(lE>=Qz);lE=Math.abs(Qz-lE);lE<=40?jp(1-(40-lE)/40):jp(1)}},fE=function(){return"opacity: "+To()*100+"%"},uY=_.Ob(function(){i4();
return!1}),Ee=_.Ob(function(){S9(!1);
return!1}),ep,MS={},tO={},LD={},fq={};
return _.c("yt-searchbox",{class:_.KU("ytSearchboxComponentHost",(MS.ytSearchboxComponentMweb=!1,MS.ytSearchboxComponentDesktop=!0,MS["yt-searchbox-filled-query"]=function(){return D()},MS["ytd-masthead"]=function(){return!V()},MS.ytSearchboxComponentHostDark=Ab,MS)),
role:"search",el:Vu,"client-ve-type":10349},_.c("div",{el:mc,"on:click":Lq,class:_.KU("ytSearchboxComponentInputBox",(tO.ytSearchboxComponentInputBoxDark=Ab,tO.ytSearchboxComponentInputBoxHasFocus=V,tO))},_.c("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":R_},_.c(_.W,{cond:V,then:function(){return _.c("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.c(_.cX,{icon:"SEARCH"}))}}),_.c("input",{el:n9,
class:_.KU("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ib,"aria-expanded":!((ep=f9)==null?0:ep.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":qS,"on:focus":$O,"on:input":nq,"on:keydown":Nj,"on:paste":pq,placeholder:N.placeholderText,"aria-activedescendant":function(){var Qz;return(Qz=Hv[l()])==null?void 0:Qz[J()]},
"aria-autocomplete":"list",role:"combobox"})),_.c(_.W,{cond:m,then:function(){return _.c("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.c(Abk,null))}}),_.c(_.W,{cond:D,
then:function(){return _.c("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.c("button",{class:"ytSearchboxComponentClearButton","on:click":Gn,"aria-label":N.clearButtonAriaLabel||YeS},_.c(_.cX,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.c(_.of,{model:{}})))}})),_.c("button",{class:_.KU("ytSearchboxComponentSearchButton",(LD.ytSearchboxComponentSearchButtonDark=Ab,LD)),
"on:click":R_,"aria-label":psc,title:N.placeholderText},_.c(_.cX,{icon:"SEARCH"})),_.c(_.W,{cond:function(){if($vo()&&_.T("mweb_voice_search")&&N.voiceSearchButton)return N.voiceSearchButton()},
then:function(Qz){var lE={};return _.c("div",{class:_.KU("ytSearchboxComponentVoiceSearchWrapper",(lE.ytSearchboxComponentHideVoiceSearchButton=function(){return D()},lE))},_.c(_.kY,{data:Qz},{buttonRenderer:function(YQ){return _.c(_.lu,{data:YQ.data,
onButtonClickCallback:function(){}})}}))}}),_.c("div",{el:_.VN(function(Qz){return void(f9=Qz)}),
id:Ib,class:_.KU("ytSearchboxComponentSuggestionsContainer",(fq.ytSearchboxComponentSuggestionsContainerDark=Ab,fq["yt-searchbox-suggestions-container"]=!1,fq.ytSearchboxComponentSuggestionsContainerScrollable=kZ(),fq.ytSearchboxComponentSuggestionsContainerAnimated=d,fq)),"on:scroll":uY,"on:mousemove":Ee,role:"listbox",hidden:!0},_.c(_.zj,{each:k},function(Qz,lE){return _.c(jUo,{suggestion:Qz,isHighlighted:function(){return lE()===l()},
onClickCallback:Kq,onHoverUpdateCallback:function(YQ){if(_.T("desktop_enable_single_suggestion_highlight")){var CD=lE();YQ&&(Z(0),u(CD))}},
onRemoveCallback:function(YQ){EOH(mJ);YQ===void 0||YQ<0||Xf().includes(YQ)||YO([].concat(_.IX(Xf()),[YQ]))},
labels:N.labels,queryBuilderFunction:Ah,suggestionIndex:lE,generateUniqueId:XK,highlightedId:function(){var YQ;return(YQ=Hv[l()])==null?void 0:YQ[J()]},
useScrollMargin:kZ(),isKeyboardMode:Wk})}),_.c(_.W,{cond:function(){return!e()&&k().find(function(Qz){return Qz.type!==35})&&_.T("searchbox_reporting")},
then:function(){return _.c("button",{class:"ytSearchboxComponentReportButton","on:mousedown":g9},_.cN("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.c(_.W,{cond:function(){return!ML()&&kZ()},
then:function(){return _.c("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.c("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:fE}))}})))},"il");
I_L.idomCompat={callbacks:{focusCallback:!0}};_.qu(I_L,"yt-searchbox",{props:{searchEndpoint:_.kg,placeholderText:_.kg,labels:_.kg,voiceSearchButton:_.kg,focusCallback:_.er,clearButtonAriaLabel:_.kg,forceDarkMode:_.kg}});var qr=function(){var N=_.z.apply(this,arguments)||this;N.menuButtonTargetId="topbar-guide-menu";N.narrow=!1;N.menuStrings={BACK_ALT_LABEL:_.cN("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.cN("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.cN("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.cN("SBOX_PLACEHOLDER",void 0,"Search")};N.pageDarkTheme=document.documentElement.hasAttribute("dark");N.watchPageScrollTop=0;N.theater=!1;N.fullscreen=!1;N.disableFrostedGlassDuringViewTransition=
!1;N.desktopUnifiedSearchPanelMode=_.T("desktop_enable_unified_search_panel");N.aiCompanionEnabled=_.T("enable_ai_companion");N.ytSearchboxFocused=!1;N.searchboxLabels=_.Vg("SBOX_LABELS");N.topbarIsAboveChipbar=!1;N.isDarkThemeForced=!1;N.areGhostCardsHidden=!1;N.guideKeyboardToggle=!1;N.voiceSearchManager=ru_();N.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};N.setYtSearchboxFocused=function(b){N.ytSearchboxFocused=b};
N.toggleFrostedGlassDuringViewTransition=function(b){N.disableFrostedGlassDuringViewTransition=b};
return N};
_.F(qr,_.z);_.v=qr.prototype;_.v.computeSimpleText=function(N){return _.es(N)};
_.v.onDarkChanged=function(){for(var N=_.O(this.buttons||[]),b=N.next();!b.done;b=N.next())b.value.isOverlay=!!this.dark;N=_.O(this.buttonRenderers||[]);for(b=N.next();!b.done;b=N.next())b.value.overrides=this.computeButtonOverride()};
_.v.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.v.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var N=_.Ts(_.kA(),"aa");_.K3(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||N||(this.isDarkThemeForced=this.dark=!0);this.logoType?(N=this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?N.setAttribute("slot","masthead-logo-old"):_.Zg(N)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.aA(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.aA(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.v.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.aA(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.aA(this,this.onSetTheaterModeEnabled))};
_.v.dataChanged=function(){var N=this.data;N&&(this.voiceEnabled=N.voiceSearchButton?ru_().isSupported():!1,_.Dy(_.VP(),this.menuButtonTargetId,this.guideButton),N.onReceivedActions&&N.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.sR(this.hostElement,N.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&N&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.K3(this.hostElement,"dark",!1),_.K3(this.hostElement,"theater",!1),(N=
this.hostElement.querySelector("#masthead-logo"))&&(_.T("polymer_on_demand_shady_dom")?N.setAttribute("slot","masthead-logo-old"):_.Zg(N))))};
_.v.computeCenterHidden=function(){var N;return this.data&&!((N=this.data.searchbox)==null?0:N.fusionSearchboxRenderer)};
_.v.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.K3(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.v.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.v.onWatchScroll=function(N){this.watchPageScrollTop=N.detail||0;this.updateMastheadBackgroundOpacity()};
_.v.onFullscreenChangeAction=function(N){N||(this.watchPageScrollTop=0);this.fullscreen=N;this.updateMastheadBackgroundOpacity()};
_.v.onSetTheaterModeEnabled=function(N){this.theater=N.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.v.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.v.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.v.setBackgroundOpacity=function(N){N=this.calculateBackgroundOpacity(N);this.background.style.opacity=""+N};
_.v.calculateBackgroundOpacity=function(N){var b=this.theater?.6:0,S=this.hostElement.clientHeight/2;return Math.min(Math.max(N,0),S)/S*(1-b)+b};
_.v.shouldShowCinematicMastHead=function(){var N=_.T("kevlar_watch_grid")&&!_.T("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(N||this.pageDarkTheme)};
_.v.focusGuide=function(){this.guideButton.focus()};
_.v.onGuideToggleTap=function(){_.bC(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.v.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.v.onGuideToggleHover=function(){_.bC(this.hostElement,"yt-guide-hover")};
_.v.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.v.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.v.closeOnOutsideClickCondition=function(N){for(N=_.V7(N);N[0];){var b=N.shift();if(b instanceof Element&&b.id==="kbd")return!1}return!0};
_.v.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.v.pausePlayer=function(){var N;(N=_.qE())==null||N.pause();this.pauseMiniplayer()};
_.v.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var N;(N=_.aN().resolve(_.E_).getPlayerElement())==null||N.pause()}};
_.v.isMiniplayerActive=function(){return _.aN().resolve(_.E_).isMiniplayerActive()};
_.v.updateNarrowFromBinding=function(N){this.narrow=N.detail.value};
_.v.onYtSendFeedbackAction=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.registerWithViewTransitionManager=function(){yBt(_.aN().resolve(_.wH),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.d0.Object.defineProperties(qr.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.T("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.aiCompanionEnabled&&((N=this.data)==null?0:N.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var N;return(N=this.data)==null?void 0:N.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
qr.prototype.narrowChanged=qr.prototype.narrowChanged;qr.prototype.onWatchPageChange=qr.prototype.onWatchPageChange;qr.prototype.onRendererStamperFinished=qr.prototype.onRendererStamperFinished;qr.prototype.dataChanged=qr.prototype.dataChanged;qr.prototype.onDarkChanged=qr.prototype.onDarkChanged;_.p([_.L(_.$M),_.y("design:type",Object)],qr.prototype,"ironResizableBehavior",void 0);_.p([_.L(Fxo),_.y("design:type",Object)],qr.prototype,"ytdExpandableInputBehavior",void 0);
_.p([_.L(_.n5.YtdGuideStateAwareBehavior),_.y("design:type",Object)],qr.prototype,"ytdGuideStateAwareBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],qr.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],qr.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Gr),_.y("design:type",Object)],qr.prototype,"ytdReduxBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"narrow",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"logoType",void 0);_.p([_.U(),_.y("design:type",Boolean)],qr.prototype,"voiceEnabled",void 0);
_.p([_.U(),_.y("design:type",Object)],qr.prototype,"menuStrings",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],qr.prototype,"dark",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qr.prototype,"pageDarkTheme",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"watchPageScrollTop",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.ADU}),_.y("design:type",Boolean)],qr.prototype,"isWatchPage",void 0);
_.p([_.U({reflectToAttribute:!0,selector:_.Xtp}),_.y("design:type",Boolean)],qr.prototype,"isShortsPage",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qr.prototype,"theater",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qr.prototype,"fullscreen",void 0);_.p([_.U({reflectToAttribute:!0,selector:_.yDa}),_.y("design:type",String)],qr.prototype,"frostedGlassMode",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qr.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],qr.prototype,"aiCompanionEnabled",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"ytSearchboxFocused",void 0);_.p([_.md("#buttons > *"),_.y("design:type",Array)],qr.prototype,"buttons",void 0);_.p([_.md("ytd-button-renderer"),_.y("design:type",Array)],qr.prototype,"buttonRenderers",void 0);
_.p([_.dq("#background"),_.y("design:type",HTMLDivElement)],qr.prototype,"background",void 0);_.p([_.dq("#guide-button"),_.y("design:type",Object)],qr.prototype,"guideButton",void 0);_.p([_.dq("#logo"),_.y("design:type",Object)],qr.prototype,"logo",void 0);_.p([_.U({computed:"computeButtonOverride(dark)"}),_.y("design:type",Object)],qr.prototype,"buttonOverrides",void 0);
_.p([_.t_("dark"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qr.prototype,"onDarkChanged",null);_.p([_.U({value:function(){return this.onVoiceTap.bind(this)}}),
_.y("design:type",Function)],qr.prototype,"boundOnTapVoiceButton",void 0);_.p([_.U(),_.y("design:type",Object)],qr.prototype,"topbarIsAboveChipbar",void 0);_.p([_.U(),_.y("design:type",String),_.y("design:paramtypes",[])],qr.prototype,"guideIcon",null);_.p([_.f("voiceEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qr.prototype,"shouldShowVoiceSearchButton",null);
_.p([_.f("data.aiCompanionButton","aiCompanionEnabled"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],qr.prototype,"shouldShowAiCompanionButton",null);_.p([_.f("data"),_.y("design:type",Object),_.y("design:paramtypes",[])],qr.prototype,"voiceSearchButton",null);_.p([_.f("aiCompanionEnabled"),_.y("design:type",String),_.y("design:paramtypes",[])],qr.prototype,"narrowQuery",null);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qr.prototype,"dataChanged",null);_.p([_.RA("yt-rendererstamper-finished"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qr.prototype,"onRendererStamperFinished",null);_.p([_.t_("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qr.prototype,"onWatchPageChange",null);
_.p([_.t_("narrow"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],qr.prototype,"narrowChanged",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-masthead"})],qr);
_.X(qr,"ytd-masthead",function(){if(f_i!==void 0)return f_i;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return f_i=N},{mode:_.sZ("kevlar_poly_si_batch_j036")?1:2});var DL7;var Vp$={},gO$={},eEj={},$L$={},hEk=($L$.OFFLINE=(Vp$["publicytnetworkstatus-online"]="BACK_ONLINE",Vp$),$L$.ONLINE=(gO$["publicytnetworkstatus-offline"]="OFFLINE",gO$),$L$.BACK_ONLINE=(eEj["publicytnetworkstatus-offline"]="OFFLINE",eEj.TIMER_TRIGGER="ONLINE",eEj),$L$),wJ=function(){var N=_.z.apply(this,arguments)||this;N.currentState="ONLINE";N.scheduledJobId=0;N.bannerString="";N.bannerVe=null;N.networkStatusManagerInstance=new _.sv;return N};
_.F(wJ,_.z);_.v=wJ.prototype;_.v.attached=function(){var N=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){N.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){N.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.detached=function(){var N=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){N.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){N.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.enterState=function(N){var b=this;this.scheduledJobId&&_.Dj.cancelJob(this.scheduledJobId);N==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):N==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.cN("NO_INTERNET_CONNECTION",void 0,"No internet connection")):N==="BACK_ONLINE"&&(this.bannerString=_.cN("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.XC(_.Dj,function(){b.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=N};
_.v.stateChangeHandler=function(N){(N=hEk[this.currentState][N])&&this.enterState(N)};
_.v.logVisibility=function(N){var b=_.Qh();this.createBannerVe(N);b&&this.bannerVe&&(N?_.pA(b,[this.bannerVe]):_.YR(b,[this.bannerVe]))};
_.v.createBannerVe=function(N){!this.bannerVe&&N&&(this.bannerVe=_.OW(37929),_.pc(_.dG(),this.bannerVe))};
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",String)],wJ.prototype,"currentState",void 0);_.p([_.U(),_.y("design:type",Object)],wJ.prototype,"scheduledJobId",void 0);_.p([_.U(),_.y("design:type",Object)],wJ.prototype,"bannerString",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-network-status-banner"})],wJ);
_.X(wJ,"ytd-network-status-banner",function(){if(DL7!==void 0)return DL7;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return DL7=
N},{mode:1});var qej;var N9=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};N.hidden=!0;N.frostedGlass=_.T("web_frosted_glass");return N};
_.F(N9,_.z);N9.prototype.computeHidden=function(N){return N&&N.status?!1:!0};
N9.prototype.handleUpdatePermissionRoleCommand=function(N){if(N=_.t(N,_.M$k))if(N=_.t(N.renderer,_.t$4))this.data=N};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],N9.prototype,"componentBehavior",void 0);_.p([_.U({value:!0,computed:"computeHidden(data)"}),_.y("design:type",Object)],N9.prototype,"hidden",void 0);_.p([_.U(),_.y("design:type",Object)],N9.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],N9.prototype,"frostedGlass",void 0);
_.p([_.Uj({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],N9);
_.X(N9,"ytd-permission-role-bottom-bar-renderer",function(){if(qej!==void 0)return qej;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);return qej=N},{mode:1});var wsS;var N9$;var $5E={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var b7=function(){return _.z.apply(this,arguments)||this};
_.F(b7,_.z);_.v=b7.prototype;_.v.attached=function(){this.JSC$22801_scroller&&(this.JSC$22801_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22801_scroller.attached&&typeof this.JSC$22801_scroller.attached==="function"&&this.JSC$22801_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(S){S.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var N=_.H4(this.hostElement);N.querySelector("tp-yt-paper-radio-group").selected="";var b=N.querySelector("#reason-text");b&&(b.value="");N.querySelector("#description-text").value=""}};
_.v.canSubmit=function(N,b){_.bC(this.hostElement,"yt-invalidate-popup-tabbables");return!(N&&b)};
_.v.onCancel=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.v.onSubmit=function(){var N=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(K){return K.active}).map(function(K){return K.innerText.trim()}),b=this.hostElement.querySelector("tp-yt-paper-radio-group"),S=b.selectedItem,P=S.name;
S=S.innerText.trim();var H=b.querySelector("#reason-text");b=void 0;H&&(b=H.value);(H=this.descriptionText.value)&&(H=H.trim());hrQ(this.data.searchQuery,N,P,S,H,b);_.St(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.v.sendFormSubmitToast=function(){var N=_.Nn(_.cN("SBOX_INAPPROPRIATE_TOAST"));_.St(this.hostElement,"yt-open-popup-action",[N,this])};
_.v.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(N){return N.active})};
_.v.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
b7.prototype.onIronSelect=b7.prototype.onIronSelect;b7.prototype.onIronChange=b7.prototype.onIronChange;b7.prototype.dataChanged=b7.prototype.dataChanged;_.p([_.U(),_.y("design:type",Object)],b7.prototype,"data",void 0);_.p([_.U({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.y("design:type",Boolean)],b7.prototype,"submitDisabled",void 0);_.p([_.U(),_.y("design:type",Boolean)],b7.prototype,"suggestionSelected",void 0);
_.p([_.U(),_.y("design:type",Boolean)],b7.prototype,"catagorySelected",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],b7.prototype,"JSC$22801_scroller",void 0);_.p([_.dq("#description-text"),_.y("design:type",Object)],b7.prototype,"descriptionText",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b7.prototype,"dataChanged",null);
_.p([_.RA("iron-change"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b7.prototype,"onIronChange",null);_.p([_.RA("iron-select"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],b7.prototype,"onIronSelect",null);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],b7);
_.X(b7,"ytd-search-suggestion-report-dialog",function(){if(N9$!==void 0)return N9$;var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return N9$=N},{mode:1});var SX=function(N){var b=N.openPopupAction;var S=N.target;var P=N.container;var H=N.popupContainerConfig;var K=N.getElement;N=N.removeWhenClosed===void 0?!1:N.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=b;this.target=S;this.container=P;this.popupContainerConfig=H;this.getElement=K;this.JSC$22807_popupConfig=this.popupContainerConfig.JSC$21482_popupConfig[this.openPopupAction.popupType];this.rendererName=(b=this.getName())?_.R9a(b,YOL(this.popupContainerConfig,
b)):"";_.T("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=N);this.createPopup()};
SX.prototype.updatePopup=function(N){this.openPopupAction=N;this.JSC$22807_popupConfig=this.popupContainerConfig.JSC$21482_popupConfig[this.openPopupAction.popupType];b9I(this);_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
SX.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var H9$=function(N,b,S){(b=b&&N.JSC$22807_popupConfig.narrowProperties?N.JSC$22807_popupConfig.narrowProperties:N.JSC$22807_popupConfig.properties)&&S!==void 0&&(b.isAriaModal=S);Sdc(N,b);N.isRtl()&&Sdc(N,N.JSC$22807_popupConfig.rtlProperties);PED(N)};
SX.prototype.createPopup=function(){var N=this.JSC$22807_popupConfig.component;if(this.popupContent=sbc(this,this.rendererName)){if(N){this.popup=sbc(this,N);var b=this.popupContent;_.T("web_enable_wrapper_for_cow_component_in_popup")&&(b=document.createElement("div"),b.appendChild(this.popupContent));_.T("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22807_popupConfig.slotName&&b.setAttribute("slot",this.JSC$22807_popupConfig.slotName);N=this.popup;var S=this.container.tagName.toLowerCase();
_.NI("desktop_web_boolean_flag_with_counterfactual_study");var P=_.$n(b);_.sab(_.qn(N),_.bI(b,S,P));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.T("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.H4(this.container).appendChild(this.popup)}};
var b9I=function(N){var b,S,P=(b=N.openPopupAction.accessibilityData)==null?void 0:(S=b.accessibilityData)==null?void 0:S.label;P&&(N.popup.ariaLabel=P);var H;((H=N.popupContent.polymerController)!=null?H:N.popupContent).data=(0,_.Vm.unsafeClone)(N.openPopupAction.popup[N.getName()]);N.popupContent.duration=KcH(N);N.popupContent.positionType=N.openPopupAction.position;var K=N.openPopupAction.properties;K&&Object.keys(K).forEach(function(C){N.popupContent[C]=K[C]})},Sdc=function(N,b){if(b)for(var S=
_.O(Object.keys(b)),P=S.next();!P.done;P=S.next())P=P.value,N.popup[P]=b[P]},PED=function(N){if(N.openPopupAction.position){var b=N.JSC$22807_popupConfig.positionalProperties&&N.JSC$22807_popupConfig.positionalProperties[N.openPopupAction.position],S=N.JSC$22807_popupConfig.rtlPositionalProperties&&N.JSC$22807_popupConfig.rtlPositionalProperties[N.openPopupAction.position];
b=N.isRtl()&&S?S:b;b.shiftedHorizontalOffset&&(S=N.popup.style.display,N.popup.style.display="block",N.popupContent&&N.popup.positionTarget&&N.popupContent.clientWidth>N.popup.positionTarget.clientWidth&&(b.horizontalOffset=N.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),N.popup.style.display=S);Sdc(N,b)}},vZi=function(N,b,S){if(b){for(var P=_.O(Object.keys(b)),H=P.next();!H.done;H=P.next())H=H.value,N.popup.style[H]=b[H];
if(S)for(b=_.O(Object.keys(S)),P=b.next();!P.done;P=b.next())P=P.value,N.popup.style[P]=S[P]}};
SX.prototype.getName=function(){return _.yg(this.openPopupAction.popup,"renderer")||_.yg(this.openPopupAction.popup,"dialog")||_.yg(this.openPopupAction.popup,"model")||void 0};
var KcH=function(N){N=N.openPopupAction.durationHintMs;return N===0?N:Math.max(4E3,N||4E3)};
SX.prototype.isRtl=function(){return _.Vg("HTML_DIR")==="rtl"};
var sbc=function(N,b){N=N.getElement(b,N.target);N==null&&_.$h(new _.jU("popup getElement returned null",b));return N};var O9K={};
O9K.YtPopupContainerBehavior=[_.r2.YtComponentBehavior,_.pG.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.wp(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.N7(this.hostElement)},
closePopup:function(N){var b=this.createCacheKey(void 0,N);this.popups_[b]&&this.handleClosePopupAction_(void 0,N)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Dj.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Dj.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(N){N.opened&&N.keepBelowPlayer&&this.ensurePopupBelowPlayer(N)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var N in this.popups_){var b=this.popups_[N];if(b.popup.scrollAction==="refit"){var S=b.popup.positionTarget.getBoundingClientRect(),P=b.popup;S=S.top;var H=b;if(!H.naturalHeight){H.popup.hidden=!1;H.popup.style.position="fixed";H.popup.style.top="0px";H.popup.style.left="0px";var K=H.popup.getBoundingClientRect();H.naturalHeight=K.bottom-K.top;H.popup.refit()}P.hidden=!(S>=H.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(N){this.popupContainerConfig=N},
handleOpenPopupAction:function(N,b,S){var P=N.openPopupAction,H=_.aN().resolve(_.cq(_.FY))&&P.popupType==="TOAST";H&&!P.uniqueId&&(P.uniqueId=$i());if(!_.T("popup_container_parent_target_killswitch")){var K;b=(K=this.getParentTarget(b))!=null?K:b}var C=this.ensurePopup_(P,b);return new _.u5(function(G){C.then(function(a){if(!a)return G();this.maybeCreateNarrowMediaQuery_();var R=this.createCacheKey(a.rendererName,a.openPopupAction.uniqueId);if(P.showOncePerUniqueId){if(this.shownPopupKeys_.has(R))return G();
this.shownPopupKeys_.add(R)}R=this.popups_[R];var n=!(!R||!R.openPopupAction.beReused);n=!!P.reusePopup||n;if(a.popup.opened&&!n){H&&!a.openPopupAction.replacePopup||this.handleClosePopupAction_(a.rendererName,a.openPopupAction.uniqueId);n=P.popupType==="DIALOG"&&!_.T("popup_container_dialog_reopen_killswitch");if(!H&&!n&&R&&R.target==b&&(_.T("popup_container_event_target_check_killswitch")||R.target==S)&&!a.openPopupAction.replacePopup)return G();_.W_(a.popup,function(){this.completeOpenPopupAction_(P,
b,a);G()}.bind(this))}else a.popup.opened?a.updatePopup(P):this.completeOpenPopupAction_(P,b,a),G()}.bind(this))}.bind(this))},
getParentTarget:function(N){if(N&&N instanceof HTMLElement)for(var b=_.O(Object.entries(this.popups_)),S=b.next();!S.done;S=b.next())if(S=_.O(S.value),S.next(),S=S.next().value,this.popupClosesOnClick(S)&&S.popup.contains(N))return S.target},
popupClosesOnClick:function(N){return N.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(N.rendererName.toUpperCase())},
completeOpenPopupAction_:function(N,b,S){S.updatePopup(N);var P=this.narrowMediaQuery_.queryMatches,H=this.isAriaModal;N=this.expandToFullWidth;S.target=b;var K;b=((K=S.target.polymerController)!=null?K:S.target).popupPositionTarget||S.target;S.JSC$22807_popupConfig.targetContainer&&(b=S.container);S.popup.positionTarget=b;S.popupContent.positionTarget=b;PED(S);S.JSC$22807_popupConfig.forceFocus&&(S.popupContent.style.outline="none");S.popupContent.tabIndex=-1;S.JSC$22807_popupConfig.narrowProperties&&
(S.popup.style.position="static");S.JSC$22807_popupConfig.preventAutonav&&S.popup.setAttribute("prevent-autonav",!0);S.JSC$22807_popupConfig.forceCloseOnOutsideClick&&S.popup.setAttribute("force-close-on-outside-click",!0);H9$(S,P,H);K={};K.width=N?"100%":"";vZi(S,S.JSC$22807_popupConfig.styles,K);S.isRtl()&&vZi(S,S.JSC$22807_popupConfig.rtlStyles,K);if(!S.openPopupAction.shouldStopParentSignal){var C;N=(C=S.target.polymerController)!=null?C:S.target;(S.popupContent.startForwardingEvents||S.popupContainerConfig.forwardingEnabledPopups.has(S.rendererName))&&
N.parentComponent!==S.popupContent&&S.popupContent!==S.target&&S.target!==document.body&&(S.popupContent.startForwardingEvents?S.popupContent.startForwardingEvents(S.popupContainerConfig.forwardedEvents,S.target):(S.JSC$22807_eventForwarder||(S.JSC$22807_eventForwarder=new _.CS(S.popupContent)),S.JSC$22807_eventForwarder.start(S.popupContainerConfig.forwardedEvents,S.target)))}S=S.popup;S.addEventListener("iron-overlay-opened",_.aA(this,this.onPopupIronOverlayOpened_));S.addEventListener("iron-overlay-closed",
_.aA(this,this.onPopupIronOverlayClosed_));S.addEventListener("iron-overlay-canceled",_.aA(this,this.onPopupIronOverlayCanceled_));S.addEventListener("yt-refit",_.aA(this,this.refitPopup_));S.addEventListener("yt-invalidate-popup-tabbables",_.aA(this,this.handleInvalidatePopupTabbables_));S.open()},
getPopupDurationMs_:function(N){return N.durationHintMs===0?N.durationHintMs:Math.max(4E3,N.durationHintMs||4E3)},
handleClosePopupAction_:function(N,b){var S=_.T("web_popup_cache_key_killswitch")||!!b;if(N||S){var P=this.createCacheKey(N,b);N=(N=this.popups_[P])&&N.popup}else N=_.LGl(_.Gy);if(N&&N.close){if(b=_.aN().resolve(_.cq(_.QJ)))N.restoreFocusOnClose=b.isKeyBoardInUse();if(N&&N.positionTarget&&!_.T("ytpopup_close_sibling_popups_killswitch")){b=_.O(Object.entries(this.popups_));for(S=b.next();!S.done;S=b.next()){var H=_.O(S.value);S=H.next().value;H=H.next().value;var K=void 0,C=void 0,G=void 0,a=void 0,
R=void 0,n=void 0;N.positionTarget==((K=H)==null?void 0:(C=K.popupContent)==null?void 0:C.positionTarget)&&H.popup&&(!((G=H.popup)==null?0:(a=G.style)==null?0:a.display)||((R=H.popup)==null?void 0:(n=R.style)==null?void 0:n.display)!=="none")&&(K=void 0,(K=H.popup)==null?0:K.close)&&(H.popup.close(),this.removePopup_(H.popup,S))}N&&this.popups_[P]&&(N.close(),this.removePopup_(N,P))}else N.close(),this.removePopup_(N,P)}},
handleClosePopupCommand_:function(N){N.closePopupCommand&&N.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,N.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(N){var b={},S;for(S in this.popups_)if(b={key$jscomp$1245:b.key$jscomp$1245},b.key$jscomp$1245=S,!N||!N.some(function(K){return function(C){return C==K.key$jscomp$1245}}(b))){var P=this.popups_[b.key$jscomp$1245],H=P.popup;
_.aN().resolve(_.cq(_.FY))&&P.openPopupAction.popupType==="TOAST"||(H&&H.close&&H.close(),this.removePopup_(H,b.key$jscomp$1245))}},
handleClosePopupsAction_:function(N){N.forEach(function(b){var S=this.popups_[b];S&&((S=S.popup)&&S.close&&S.close(),this.removePopup_(S,b))}.bind(this))},
handleGetPopupOpenedAction_:function(N,b){return(b=this.createCacheKey(N,b))&&this.popups_[b]?this.popups_[N].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var N=[],b;for(b in this.popups_){var S=this.popups_[b];S.popup.opened&&N.push(S)}return N},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(N,b){_.T("ytpopup_disable_default_html_caching")&&N&&N.removeWhenClosed&&(_.H4(this.hostElement).removeChild(N),b&&this.popups_[b]&&delete this.popups_[b])},
shouldReusePopup_:function(N){return!(!N||!N.reusePopup)||!(!N||!N.beReused)},
ensurePopup_:function(N,b){this.maybeCreateNarrowMediaQuery_();var S=_.yg(N.popup,"renderer")||_.yg(N.popup,"dialog")||_.yg(N.popup,"model");if(!S)return _.KA();S=_.R9a(S,YOL(this.popupContainerConfig,S));return _.KA(this.getAndMaybeCreatePopup_(N,S,b))},
getAndMaybeCreatePopup_:function(N,b,S){var P=this.createCacheKey(b,N.uniqueId);if(this.popups_[P])return this.popups_[P];N=new SX({openPopupAction:N,target:S,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[P]=N},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(N){return _.T("ytpopup_disable_default_html_caching")?_.T("ytpopup_disable_cache_allowlist")?N&&this.doNotCacheList_.includes(N):N&&N.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.aA(this,this.openPopupQueryMatchesChanged_)),_.H4(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(N){N=N.detail.value;for(var b in this.popups_)H9$(this.popups_[b],N)},
onPopupIronOverlayClosed_:function(N){var b=N.currentTarget,S=_.l9L(b);S=S.length>0?S[0]:b;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||N.target.is!=="tp-yt-iron-dropdown"){N.detail.popup=b;N.detail.popupRenderer=S;var P,H={context:{openingElement:((P=this.popups_[(S==null?void 0:S.is)||""])==null?void 0:P.target)||void 0}};Object.assign(H,N.detail);var K;_.bC((K=S.hostElement)!=null?K:S,"yt-popup-closed",H);b.removeEventListener("yt-refit",_.aA(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables",
_.aA(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",_.aA(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",_.aA(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}},
onPopupIronOverlayCanceled_:function(N,b){var S=N.currentTarget,P=_.l9L(S);P=P.length>0?P[0]:S;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||N.target.is!=="tp-yt-iron-dropdown"){var H;_.bC((H=P.hostElement)!=null?H:P,"yt-popup-canceled",N.detail);H=b?_.V7(b):null;(!b||["click","tap"].includes(b.type))&&!S.hasAttribute("force-close-on-outside-click")&&S.positionTarget&&H&&H.includes(S.positionTarget)&&N.preventDefault();S.restoreFocusOnClose=_.XX.keyboardEventMatchesKeys(b,"esc")}},
onPopupIronOverlayOpened_:function(N){N=N.currentTarget;var b=_.l9L(N);b=b.length>0?b[0]:N;var S,P;_.bC((S=b.hostElement)!=null?S:b,"yt-popup-opened",(P=b.hostElement)!=null?P:b);N.keepBelowPlayer&&(this.ensurePopupBelowPlayer(N,!0),this.dynamicallyPositionedElements_.add(N));S=_.aN().resolve(_.cq(_.QJ));P=!!b.querySelector("#toast");S&&S.isKeyBoardInUse()&&!P&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=_.FGE(N),b.length&&b[0].focus()));N.removeEventListener("iron-overlay-opened",
_.aA(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(N){N=N.currentTarget;N.refit&&N.refit()},
refitPopups_:function(){for(var N in this.popups_)this.popups_[N].refit()},
handleInvalidatePopupTabbables_:function(N){N=N.currentTarget;N.invalidateTabbables&&N.invalidateTabbables()},
createCacheKey:function(N,b){return _.T("web_popup_cache_key_killswitch")?b?N+"#"+b:N:b?"#"+b:N},
openSheet:function(N,b,S){var P=N==null?void 0:N.openPopupActionCommand;if(!P&&(N==null?0:N.viewModel)){if(N.sheetPosition)a:switch(N.sheetPosition){case "SHEET_POSITION_RIGHT":P="OPEN_POPUP_POSITION_RIGHT";break a;default:P="OPEN_POPUP_POSITION_UNKNOWN"}else P=void 0;P={openPopupAction:{popup:{sheetViewModel:N.viewModel},popupType:"CONTEXTUAL_SHEET",position:P}}}if(P){var H;this.expandToFullWidth=(H=N==null?void 0:N.expandToFullWidth)!=null?H:!1;this.handleOpenPopupAction(P,b,S===void 0?b:S)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var N=this;return _.r(function(b){return b.return(N.handleGetOpenedPopupsAction_().filter(function(S){var P;return((P=S.openPopupAction)==null?void 0:P.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(N,b,S){if(_.T("web_dialog_utils_killswitch")){var P=N==null?void 0:N.openPopupActionCommand,H=(S==null?0:S.ariaLabel)?{accessibilityData:{accessibilityData:{label:S.ariaLabel}}}:void 0;!P&&(N==null?0:N.viewModel)&&(P={openPopupAction:Object.assign({},{popup:{dialogViewModel:N.viewModel},popupType:(S==null?0:S.isModal)?"MODAL":"DIALOG"},H&&H)});P&&this.handleOpenPopupAction(P,b)}else{if(H=N==null?void 0:N.viewModel){var K=S=S===void 0?{}:S;S=K.ariaLabel;H={popup:{dialogViewModel:H},
popupType:K.isModal?"MODAL":"DIALOG"};K={accessibilityData:{label:S}};S&&(H.accessibilityData=K);H={openPopupAction:H}}else H=void 0;if(H=(P=H)!=null?P:N==null?void 0:N.openPopupActionCommand)this.isAriaModal=_.T("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(H,b)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var N=this;return _.r(function(b){return b.return(N.handleGetOpenedPopupsAction_().filter(function(S){var P;return((P=S.openPopupAction)==null?void 0:P.popupType)==="DIALOG"}).length>0)})}}];var CEi;var G4k;var rVL=_.$E(["about:blank"]),PQ=function(){var N=_.z.apply(this,arguments)||this;N.isMuted=!1;N.pageLoadTimeoutId=void 0;N.enableA11yFocusFix=_.T("enable_a11y_focus_fix_for_mac_panel_on_desktop");N.moveFocusToContent=function(){N.iframe.focus()};
return N};
_.F(PQ,_.z);_.v=PQ.prototype;_.v.dataChanged=function(){var N=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var b=this.data.url,S=_.Vb(b);_.T("enable_yt_ata_iframe_authuser")?(S=_.Vb(b),_.SW(this.iframe,q_Q(S))):_.SW(this.iframe,S);this.pageLoadTimeoutId=_.XC(_.oT(),function(){return void N.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.rP({destination:window,iframe:this.iframe,origin:_.pR9(S.toString()),channelName:"ataiframe",onMessage:_.ew9(qN5,function(P){wO5(P.data)?(P=_.$Q(P.data,1,_.v5,_.T6()),P.length!==1?_.$h(Error("hm")):(P=P[0],P===3?(N.isMuted=!0,N.logStateChanged({adMuteRequested:!0})):P===1&&N.close())):_.$h(Error("im"))}),
onEstablished:function(){N.cancelPageLoadTimeout();N.logStateChanged({pageLoadSucceeded:!0})}})}};
_.v.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.oT().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.v.logStateChanged=function(N){var b;if((b=this.data)==null?0:b.trackingParams)N={adsClientData:{aboutThisAdData:N}},_.dG().stateChanged(this.data.trackingParams,N)};
_.v.close=function(){_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.handlesPopupClosed=function(N,b){var S=this,P,H;return _.r(function(K){if(K.nextAddress==1)return _.Vg("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.St(S.hostElement,"on-about-this-ad-popup-closed",[S.isMuted,b]),K.jumpTo(0)):N&&wpo(N)?K.yield(NVo(N),4):(S.isMuted&&_.St(S.hostElement,"yt-mute-ad-action",[S.is,S]),K.jumpTo(0));if(P=K.yieldResult){var C=H=new _.sU(P),G=S.isMuted;C.getOptions().includes("onAboutThisAdPopupClosed")?_.v2b(C,"onAboutThisAdPopupClosed",{isMuted:G,layoutId:b}):_.yw("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Zd(K)})};
_.v.onPopupClosed=function(N){var b=this,S,P;return _.r(function(H){S=_.Mz(rVL);_.SW(b.iframe,S);b.cancelPageLoadTimeout();if(!b.data)return H.jumpTo(0);b.ytRendererBehavior.markDirty();P=N.detail.context.openingElement;return H.yield(b.handlesPopupClosed(P,b.data.layoutId),0)})};
_.v.detached=function(){this.cancelPageLoadTimeout()};
_.v.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PQ.prototype.onPopupClosed=PQ.prototype.onPopupClosed;PQ.prototype.dataChanged=PQ.prototype.dataChanged;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.p([_.dq("#iframe"),_.y("design:type",HTMLIFrameElement)],PQ.prototype,"iframe",void 0);_.p([_.U(),_.y("design:type",Object)],PQ.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],PQ.prototype,"dataChanged",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype",Promise)],PQ.prototype,"onPopupClosed",null);_.p([_.J_({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],PQ);
_.X(PQ,"yt-about-this-ad-renderer",function(){if(G4k===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;CEi===void 0&&(CEi=document.createElement("template"));var P=CEi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);G4k=N}N=G4k;return N},{mode:2});var cVc;var ali;var ROB=function(N){var b=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.maxFileSizeMB=N;Object.setPrototypeOf(this,ROB.prototype)};
_.F(ROB,Error);var Wcc=function(N,b){var S=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.minWidth=N;this.minHeight=b;Object.setPrototypeOf(this,Wcc.prototype)};
_.F(Wcc,Error);var nZH=function(N){this.requirements=N;this.JSC$22835_maxFileSize=N.maxFileSizeMB*1024*1024},dSD=function(N,b){if(b.size>N.JSC$22835_maxFileSize)throw new ROB(N.requirements.maxFileSizeMB);
};var mSj=function(N,b){this.canvas=N;this.imageEditorBuilder=b};
mSj.prototype.addEventListeners=function(N){var b=function(H){k4I(N,H)};
this.JSC$22841_mouseDownEvent=b;var S=function(H){T9L(N,H)};
this.JSC$22841_mouseMoveEvent=S;var P=function(){t9H(N)};
this.JSC$22841_mouseUpEvent=P;this.canvas.addEventListener("mousedown",b);this.canvas.addEventListener("mousemove",S);document.addEventListener("mouseup",P)};
mSj.prototype.removeEventListeners=function(){this.JSC$22841_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22841_mouseDownEvent);this.JSC$22841_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22841_mouseMoveEvent);this.JSC$22841_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22841_mouseUpEvent)};
var M97=function(N,b){N.removeEventListeners();return new Promise(function(S){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var H=N.imageEditorBuilder(N.canvas,P);N.addEventListeners(H);S(H)};
P.src=b})},HQ=function(N,b,S,P,H,K,C,G){this.canvas=N;
this.image=b;this.requiredRatio=S;this.minImageCropDimension=P;this.minOutputImageResolution=H;this.component=K;this.styleFocusedCorner=G===void 0?!0:G;this.action=2;this.focusedCorner=this.resizeCorner=0;N=this.canvas.getContext("2d");if(!N)throw Error("jm");this.ctx=N;this.canvasMargin=C!=null?C:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;C=this.image;N=this.canvasInnerWidth/C.width;C.height*N>912&&(N=C.width/C.height*912/C.width);C=N;this.scaledImageWidth=this.canvas.width%2?
SGo(this.image.width*C):bmi(this.image.width*C);this.scaledImageHeight=Math.round(this.image.height*C);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22844_overlayMarginBottom=this.JSC$22844_overlayMarginTop=this.canvasMargin;this.JSC$22844_overlayMarginRight=this.JSC$22844_overlayMarginLeft=this.horizontalMargin;this.JSC$22844_overlayWidth=this.scaledImageWidth;this.JSC$22844_overlayHeight=this.scaledImageHeight;
N=this.image.width/this.image.height;N>this.requiredRatio?(this.JSC$22844_overlayWidth=this.canvas.width%2?SGo(this.scaledImageHeight*this.requiredRatio):bmi(this.scaledImageHeight*this.requiredRatio),this.JSC$22844_overlayMarginRight=this.JSC$22844_overlayMarginLeft=(this.canvas.width-this.JSC$22844_overlayWidth)/2):N<this.requiredRatio&&(this.JSC$22844_overlayHeight=this.canvas.height%2?SGo(this.scaledImageWidth/this.requiredRatio):bmi(this.scaledImageWidth/this.requiredRatio),this.JSC$22844_overlayMarginBottom=
this.JSC$22844_overlayMarginTop=(this.canvas.height-this.JSC$22844_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*C,this.scaledImageWidth);Fc7(this)};
HQ.prototype.getContext=function(){return this.ctx};
var k4I=function(N,b){b={x:Math.round(b.pageX-N.canvas.getBoundingClientRect().left),y:Math.round(b.pageY-N.canvas.getBoundingClientRect().top)};N.dragStart=b;B97(N,b)!==0?(N.action=1,llc(N,b),N.resizeCorner=B97(N,b)):b.x>N.JSC$22844_overlayMarginLeft&&b.x<N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth&&b.y>N.JSC$22844_overlayMarginTop&&b.y<N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight&&(N.action=0)},LcD=function(N,b){switch(b){case 1:return{x:N.JSC$22844_overlayMarginLeft,
y:N.JSC$22844_overlayMarginTop};case 2:return{x:N.JSC$22844_overlayMarginLeft,y:N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight};case 3:return{x:N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth,y:N.JSC$22844_overlayMarginTop};case 4:return{x:N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth,y:N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight};default:throw Error("km");}},uN7=function(N,b){if(N.focusedCorner!==0){N.dragStart=LcD(N,N.focusedCorner);
N.action=1;N.resizeCorner=N.focusedCorner;var S=N.dragStart.x,P=N.dragStart.y;switch(b){case 0:N.focusedCorner===1||N.focusedCorner===4?(S-=10,P-=10):(S-=10,P+=10);break;case 1:N.focusedCorner===1||N.focusedCorner===4?(S+=10,P+=10):(S+=10,P-=10);break;case 2:S=N.focusedCorner===1||N.focusedCorner===4?S-10:S+10;P-=10;break;case 3:S=N.focusedCorner===1||N.focusedCorner===4?S+10:S-10;P+=10;break;default:throw Error("lm");}flK(N,{x:S,y:P});Fc7(N);N.action=2;N.dragStart=void 0}},T9L=function(N,b){b={x:Math.round(b.pageX-
N.canvas.getBoundingClientRect().left),
y:Math.round(b.pageY-N.canvas.getBoundingClientRect().top)};llc(N,b);switch(N.action){case 1:flK(N,b);break;case 0:N.dragStart&&(N.JSC$22844_overlayMarginLeft=Math.max(N.horizontalMargin,Math.min(N.JSC$22844_overlayMarginLeft-(N.dragStart.x-b.x),N.horizontalMargin+N.scaledImageWidth-N.JSC$22844_overlayWidth)),N.JSC$22844_overlayMarginRight=N.canvas.width-N.JSC$22844_overlayMarginLeft-N.JSC$22844_overlayWidth,N.JSC$22844_overlayMarginTop=Math.max(N.canvasMargin,Math.min(N.JSC$22844_overlayMarginTop-
(N.dragStart.y-b.y),N.scaledImageHeight-N.JSC$22844_overlayHeight+N.canvasMargin)),N.JSC$22844_overlayMarginBottom=N.canvas.height-(N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight));break;default:return}Fc7(N);N.dragStart=b},t9H=function(N){N.action=2;
N.dragStart=void 0;document.body.style.cursor="auto"},llc=function(N,b){switch(B97(N,b)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:N.action!==1&&(document.body.style.cursor="auto")}},B97=function(N,b){var S=N.JSC$22844_overlayMarginLeft-5,P=N.JSC$22844_overlayMarginTop-5,H=N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth-5;
N=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-5;return QbL(b,{x:S,y:P})?1:QbL(b,{x:H,y:P})?3:QbL(b,{x:S,y:N})?2:QbL(b,{x:H,y:N})?4:0},QbL=function(N,b){return N.x>=b.x&&N.x<=b.x+10&&N.y>=b.y&&N.y<=b.y+10},flK=function(N,b){if(N.dragStart)switch(N.resizeCorner){case 2:Math.abs((N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth-b.x)/(b.y-N.JSC$22844_overlayMarginTop))>=N.requiredRatio?xSo(N,b.x):oZH(N,b.y);
break;case 1:Math.abs((N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth-b.x)/(N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-b.y))>=N.requiredRatio?i9i(N,b.x):oZH(N,b.y);break;case 4:Math.abs((b.x-N.JSC$22844_overlayMarginLeft)/(b.y-N.JSC$22844_overlayMarginTop))>=N.requiredRatio?xSo(N,b.x):JVL(N,b.y);break;case 3:Math.abs((b.x-N.JSC$22844_overlayMarginLeft)/(N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-b.y))>=N.requiredRatio?i9i(N,b.x):JVL(N,b.y);break;default:throw Error("mm");
}},xSo=function(N,b){var S=N.JSC$22844_overlayMarginTop;
N.JSC$22844_overlayMarginBottom=USH(N,b);N.JSC$22844_overlayHeight=N.canvas.height-N.JSC$22844_overlayMarginBottom-S;N.JSC$22844_overlayWidth=Math.round(N.JSC$22844_overlayHeight*N.requiredRatio);Z9k(N)},i9i=function(N,b){var S=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight;
N.JSC$22844_overlayMarginTop=USH(N,b);N.JSC$22844_overlayHeight=S-N.JSC$22844_overlayMarginTop;N.JSC$22844_overlayWidth=Math.round(N.JSC$22844_overlayHeight*N.requiredRatio);Z9k(N)},Z9k=function(N){switch(N.resizeCorner){case 2:case 1:N.JSC$22844_overlayMarginLeft=N.canvas.width-N.JSC$22844_overlayMarginRight-N.JSC$22844_overlayWidth;
break;case 4:case 3:N.JSC$22844_overlayMarginRight=N.canvas.width-N.JSC$22844_overlayMarginLeft-N.JSC$22844_overlayWidth;break;default:throw Error("mm");}},oZH=function(N,b){var S=N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth;
N.JSC$22844_overlayMarginLeft=jbI(N,b);N.JSC$22844_overlayWidth=S-N.JSC$22844_overlayMarginLeft;N.JSC$22844_overlayHeight=Math.round(N.JSC$22844_overlayWidth/N.requiredRatio);zOL(N)},JVL=function(N,b){var S=N.JSC$22844_overlayMarginLeft;
N.JSC$22844_overlayMarginRight=jbI(N,b);N.JSC$22844_overlayWidth=N.canvas.width-N.JSC$22844_overlayMarginRight-S;N.JSC$22844_overlayHeight=Math.round(N.JSC$22844_overlayWidth/N.requiredRatio);zOL(N)},zOL=function(N){switch(N.resizeCorner){case 2:case 4:N.JSC$22844_overlayMarginBottom=N.canvas.height-N.JSC$22844_overlayMarginTop-N.JSC$22844_overlayHeight;
break;case 1:case 3:N.JSC$22844_overlayMarginTop=N.canvas.height-N.JSC$22844_overlayMarginBottom-N.JSC$22844_overlayHeight;break;default:throw Error("mm");}},USH=function(N,b){switch(N.resizeCorner){case 2:b=N.canvas.height-(N.JSC$22844_overlayMarginTop+AV7(N,b));
break;case 4:b=N.canvas.height-(N.JSC$22844_overlayMarginTop+Xk7(N,b));break;case 1:b=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-AV7(N,b);break;case 3:b=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-Xk7(N,b);break;default:throw Error("mm");}return Math.max(b,N.canvasMargin)},AV7=function(N,b){b=N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth-Math.max(b,N.horizontalMargin);
b=b<0?N.JSC$22844_overlayWidth:Math.max(b,N.minOverlayWidth);return Math.round(b/N.requiredRatio)},Xk7=function(N,b){b=N.canvas.width-Math.max(N.canvas.width-b,N.horizontalMargin)-N.JSC$22844_overlayMarginLeft;
b=b<0?N.JSC$22844_overlayWidth:Math.max(b,N.minOverlayWidth);return Math.round(b/N.requiredRatio)},jbI=function(N,b){switch(N.resizeCorner){case 2:b=N.canvas.width-N.JSC$22844_overlayMarginRight-EZK(N,b);
break;case 4:b=N.canvas.width-N.JSC$22844_overlayMarginLeft-EZK(N,b);break;case 1:b=N.canvas.width-N.JSC$22844_overlayMarginRight-pkH(N,b);break;case 3:b=N.canvas.width-N.JSC$22844_overlayMarginLeft-pkH(N,b);break;default:throw Error("mm");}return Math.max(b,N.horizontalMargin)},EZK=function(N,b){b=N.canvas.height-Math.max(N.canvas.height-b,N.canvasMargin)-N.JSC$22844_overlayMarginTop;
return b<0?N.JSC$22844_overlayWidth:Math.max(Math.round(b*N.requiredRatio),N.minOverlayWidth)},pkH=function(N,b){b=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-Math.max(b,N.canvasMargin);
return b<0?N.JSC$22844_overlayWidth:Math.max(Math.round(b*N.requiredRatio),N.minOverlayWidth)},Fc7=function(N){N.ctx.clearRect(0,0,N.canvas.width,N.canvas.height);
N.ctx.drawImage(N.image,0,0,N.image.width,N.image.height,N.horizontalMargin,N.canvasMargin,N.canvas.width-2*N.horizontalMargin,N.scaledImageHeight);N.ctx.fillStyle="rgba(0, 0, 0, 0.7)";N.ctx.fillRect(N.horizontalMargin,N.JSC$22844_overlayMarginTop,N.JSC$22844_overlayMarginLeft-N.horizontalMargin,N.JSC$22844_overlayHeight);N.ctx.fillRect(N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth,N.JSC$22844_overlayMarginTop,N.JSC$22844_overlayMarginRight-N.horizontalMargin,N.JSC$22844_overlayHeight);N.ctx.fillRect(N.horizontalMargin,
N.canvasMargin,N.scaledImageWidth,N.JSC$22844_overlayMarginTop-N.canvasMargin);N.ctx.fillRect(N.horizontalMargin,N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight,N.scaledImageWidth,N.JSC$22844_overlayMarginBottom-N.canvasMargin);N.drawOverlay();N.component&&_.bC(N.component,"image-updated")};
HQ.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22844_overlayMarginLeft,this.JSC$22844_overlayMarginTop,this.JSC$22844_overlayWidth,this.JSC$22844_overlayHeight);YdL(this)};
var YdL=function(N){var b=N.JSC$22844_overlayMarginLeft-5,S=N.JSC$22844_overlayMarginTop-5,P=N.JSC$22844_overlayMarginLeft+N.JSC$22844_overlayWidth-5,H=N.JSC$22844_overlayMarginTop+N.JSC$22844_overlayHeight-5;N.ctx.fillStyle="#FFF";N.ctx.fillRect(b,S,10,10);N.ctx.strokeRect(b,S,10,10);N.ctx.fillRect(P,S,10,10);N.ctx.strokeRect(P,S,10,10);N.ctx.fillRect(b,H,10,10);N.ctx.strokeRect(b,H,10,10);N.ctx.fillRect(P,H,10,10);N.ctx.strokeRect(P,H,10,10);if(N.focusedCorner!==0&&N.styleFocusedCorner){N.ctx.lineWidth=
4;N.ctx.strokeStyle="#3EA6FF";switch(N.focusedCorner){case 1:--b;--S;break;case 2:--b;S=H-1;break;case 3:b=P-1;--S;break;case 4:b=P-1;S=H-1;break;default:return}N.ctx.strokeRect(b,S,12,12)}};
HQ.prototype.crop=function(N,b){b=b===void 0?!0:b;var S=this.image.width/this.scaledImageWidth,P=document.createElement("canvas"),H=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],K=this.JSC$22844_overlayWidth*S,C=this.JSC$22844_overlayHeight*S;P.width=Math.max(K,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);P.height=Math.max(C,H);N&&(P.width=Math.min(P.width,P.height),P.height=Math.min(P.width,P.height));
N=P.getContext("2d");if(!N)throw Error("am");H=(this.JSC$22844_overlayMarginLeft-this.horizontalMargin)*S;S*=this.JSC$22844_overlayMarginTop-this.canvasMargin;b||(N.fillStyle="white",N.fillRect(0,0,P.width,P.height));N.drawImage(this.image,H,S,K,C,0,0,P.width,P.height);return P};var yVD=function(N,b,S,P,H){HQ.call(this,N,b,S,P,void 0,H,8,!1)};
_.F(yVD,HQ);yVD.prototype.drawOverlay=function(){var N=this.getContext(),b=this.JSC$22844_overlayWidth,S=this.JSC$22844_overlayHeight,P=this.JSC$22844_overlayMarginTop,H=this.JSC$22844_overlayMarginLeft;N.lineWidth=2;N.strokeStyle="#3EA6FF";N.beginPath();N.arc(H+b/2,P+S/2,b/2,0,2*Math.PI);N.stroke();N.strokeRect(H,P,b,S);YdL(this)};
var IlK={maxFileSizeMB:15,minWidth:98,minHeight:98},DSj=["image/png","image/jpeg","image/gif"],so=function(){var N=_.z.apply(this,arguments)||this;N.fileSelectorFocusListener=null;N.errorMessage=null;N.isLoading=!0;N.hideContainer=!0;N.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return N};
_.F(so,_.z);_.v=so.prototype;_.v.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.v.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.v.computePlaylistThumbnail=function(N){return N==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.v.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.St(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.v.setErrorState=function(N){this.resetErrorState();N&&(this.errorMessage=N)};
_.v.showPopup=function(){var N=this;this.hideContainer=!1;_.XC(_.Dj,function(){_.bC(N.hostElement,"yt-refit")});
this.isLoading=!1};
_.v.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.v.closePopup=function(){this.resetFileSelector();_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onCancelTap=function(){this.isPlaylistThumbnail||_.St(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.v.openFileSelector=function(){var N=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.XC(_.Dj,function(){setTimeout(function(){if(!N.fileSelector.files||N.fileSelector.files.length===0)N.onCancelTap();N.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(b){b instanceof Error?_.ge(b):_.ed(new _.jU(JSON.stringify(b)))}};
_.v.handleFileSelection=function(){var N=this,b,S,P,H,K,C;return _.r(function(G){switch(G.nextAddress){case 1:_.u4(G,2);if(!N.fileSelector.files||!N.imageEditorCanvas)return N.onCancelTap(),G.return();b=N.fileSelector.files[0];dSD(N.imageChecker,b);_.u4(G,4);return G.yield(T6o(b),6);case 6:N.mimeType=G.yieldResult;_.su(G,5,2);break;case 4:_.UE(G,2),_.St(N.hostElement,"yt-image-selection-error-action",[(S=N.data)==null?void 0:S.genericImageLoadErrorMessage]),N.onCancelTap();case 5:P=new FileReader;
P.addEventListener("load",function(){var a,R;return _.r(function(n){if(n.nextAddress==1){if(!P.result)return _.$h(Error("cm")),n.return();a=P.result;R=new Image;R.src=a;R.onload=function(){try{var d=N.imageChecker;if(R.width<d.requirements.minWidth||R.height<d.requirements.minHeight)throw new Wcc(d.requirements.minWidth,d.requirements.minHeight);}catch(k){if(k instanceof Wcc){var m;_.St(N.hostElement,"yt-image-selection-error-action",[(m=N.data)==null?void 0:m.imageDimensionErrorMessage]);N.logImageDimensionErrorVe()}else k instanceof
Error?_.ge(k):(d=new _.jU(JSON.stringify(k)),_.ge(d));N.onCancelTap()}N.showPopup()};
R.onerror=function(){var d;_.St(N.hostElement,"yt-image-selection-error-action",[(d=N.data)==null?void 0:d.genericImageLoadErrorMessage]);N.onCancelTap()};
return n.yield(M97(N.imageEditorCanvas,a),2)}N.imageEditor=n.yieldResult;N.updatePositionOfAllCorners();N.addEventListeners(N.imageEditor);_.Zd(n)})},!1);
P.readAsDataURL(b);_.su(G,0);break;case 2:H=_.UE(G),H instanceof ROB?_.St(N.hostElement,"yt-image-selection-error-action",[(K=N.data)==null?void 0:K.imageSizeErrorMessage]):(H instanceof Error?_.ge(H):_.ed(new _.jU(JSON.stringify(H))),_.St(N.hostElement,"yt-image-selection-error-action",[(C=N.data)==null?void 0:C.genericImageLoadErrorMessage])),N.onCancelTap(),_.Zd(G)}})};
_.v.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var N=_.n7(_.dG(),{veType:232707,visualElement:_.OW(232707)});N&&(N={visualElement:N},_.W7().reportShown(N))}};
_.v.handleImageSelectionErrorAction=function(N){this.isPlaylistThumbnail&&_.$KO(this.hostElement,N)};
_.v.convertToImageFormatBundle=function(N){var b=this,S,P,H;return _.r(function(K){switch(K.nextAddress){case 1:return S=N.toDataURL(b.outputMimeType,1),K.yield(t36(S),2);case 2:P=K.yieldResult;_.u4(K,3);dSD(b.imageChecker,P);_.su(K,4);break;case 3:H=_.UE(K);if(!(H instanceof ROB))throw H;_.$h(new _.jU("Output size is bigger than input size for image",b.mimeType,b.outputMimeType,P.size));S=N.toDataURL("image/jpeg",.95);return K.yield(t36(S),6);case 6:P=K.yieldResult;case 4:return K.return({dataUrl:S,
imageFile:P})}})};
_.v.handleUploadImageToScottyCommand=function(N){var b=this,S,P,H,K,C,G,a,R,n,d;return _.r(function(m){switch(m.nextAddress){case 1:if(!b.imageEditor||!_.t(N,xhE))return m.return();S=_.t(N,xhE).scottyUploadUrl;if(!S){var k=new _.jU("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.ge(k);return m.return()}_.u4(m,2);b.setLoadingState();P=b.imageEditor.crop(!1,!1);return m.yield(b.convertToImageFormatBundle(P),4);case 4:return H=m.yieldResult,m.yield(m5t(H.imageFile,S),5);
case 5:K=m.yieldResult;((C=b.data)==null?0:C.onUploadEndpoint)?(G=b.buildUploadServiceEndpoint(K),b.ytComponentBehavior.resolveCommand(G),a=_.t(G,_.vC),((R=a)==null?0:R.params)?b.closePopup():b.resetFileSelector()):(_.St(b.hostElement,"yt-image-updated-action",[H.dataUrl,K]),b.closePopup());_.su(m,0);break;case 2:n=_.UE(m),b.setErrorState((d=b.data)==null?void 0:d.uploadErrorMessage),n instanceof Error?_.ge(n):(k=new _.jU(JSON.stringify(n)),_.ge(k)),_.Zd(m)}})};
_.v.buildUploadServiceEndpoint=function(N){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",N),this.data.onUploadEndpoint):null};
_.v.dataChanged=function(){var N=this,b;return _.r(function(S){if(S.nextAddress==1){if(!N.data||!N.canvasElement)return S.return();N.data.imageRatio&&N.data.minImageCropWidth||_.ed(new _.jU("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));b=function(P,H){return N.data.imageType==="IMAGE_TYPE_AVATAR"?new yVD(P,H,N.data.imageRatio,[N.data.minImageCropWidth,N.data.minImageCropWidth/N.data.imageRatio],N.hostElement):new HQ(P,H,N.data.imageRatio,[N.data.minImageCropWidth,
N.data.minImageCropWidth/N.data.imageRatio],void 0,N.hostElement,8,!1)};
N.imageEditorCanvas=new mSj(N.canvasElement,b);return N.data.url?S.yield(M97(N.imageEditorCanvas,N.data.url),3):(N.hideContainer=!0,N.openFileSelector(),S.jumpTo(0))}N.imageEditor=S.yieldResult;N.showPopup();N.addEventListeners(N.imageEditor);_.Zd(S)})};
_.v.addEventListeners=function(N){this.removeEventListeners();var b=function(H){k4I(N,H)};
this.JSC$22852_mouseDownEvent=b;var S=function(H){T9L(N,H)};
this.JSC$22852_mouseMoveEvent=S;var P=function(){t9H(N)};
this.JSC$22852_mouseUpEvent=P;this.topLeftCorner.addEventListener("mousedown",b);this.topLeftCorner.addEventListener("mousemove",S);this.topLeftCorner.addEventListener("mouseup",P);this.topRightCorner.addEventListener("mousedown",b);this.topRightCorner.addEventListener("mousemove",S);this.topRightCorner.addEventListener("mouseup",P);this.bottomLeftCorner.addEventListener("mousedown",b);this.bottomLeftCorner.addEventListener("mousemove",S);this.bottomLeftCorner.addEventListener("mouseup",P);this.bottomRightCorner.addEventListener("mousedown",
b);this.bottomRightCorner.addEventListener("mousemove",S);this.bottomRightCorner.addEventListener("mouseup",P)};
_.v.removeEventListeners=function(){this.JSC$22852_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22852_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22852_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22852_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22852_mouseDownEvent));this.JSC$22852_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22852_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22852_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22852_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22852_mouseMoveEvent));this.JSC$22852_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22852_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22852_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22852_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22852_mouseUpEvent))};
_.v.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var N=document.activeElement;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;switch(N){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.v.updatePositionOfCorner=function(N,b){var S=N.y-b.offsetHeight/2+4;b.style.left=N.x-b.offsetWidth/2+16+"px";b.style.top=S+"px"};
_.v.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var N=_.O([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),b=N.next();!b.done;b=N.next()){b=b.value;var S=LcD(this.imageEditor,b.corner);this.updatePositionOfCorner(S,b.div)}};
_.v.onLeft=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(uN7(this.imageEditor,0),this.updatePositionOfAllCorners(),N.preventDefault())};
_.v.onRight=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(uN7(this.imageEditor,1),this.updatePositionOfAllCorners(),N.preventDefault())};
_.v.onUp=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(uN7(this.imageEditor,2),this.updatePositionOfAllCorners(),N.preventDefault())};
_.v.onDown=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(uN7(this.imageEditor,3),this.updatePositionOfAllCorners(),N.preventDefault())};
_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.d0.Object.defineProperties(so.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&DSj.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var N,b,S;((b=this.data)==null?0:b.imageRatio)&&((S=this.data)==null?0:S.minImageCropWidth)?N={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:N=IlK;return new nZH(N)}}});
so.prototype.updatePositionOfAllCorners=so.prototype.updatePositionOfAllCorners;so.prototype.dataChanged=so.prototype.dataChanged;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],so.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],so.prototype,"ytComponentBehavior",void 0);_.p([_.L(_.XX),_.y("design:type",Object)],so.prototype,"ironA11yKeysBehavior",void 0);
_.p([_.dq("#canvas"),_.y("design:type",HTMLCanvasElement)],so.prototype,"canvasElement",void 0);_.p([_.dq("#file-selector"),_.y("design:type",HTMLInputElement)],so.prototype,"fileSelector",void 0);_.p([_.dq("#top-left-corner"),_.y("design:type",HTMLDivElement)],so.prototype,"topLeftCorner",void 0);_.p([_.dq("#top-right-corner"),_.y("design:type",HTMLDivElement)],so.prototype,"topRightCorner",void 0);
_.p([_.dq("#bottom-left-corner"),_.y("design:type",HTMLDivElement)],so.prototype,"bottomLeftCorner",void 0);_.p([_.dq("#bottom-right-corner"),_.y("design:type",HTMLDivElement)],so.prototype,"bottomRightCorner",void 0);_.p([_.U(),_.y("design:type",Object)],so.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],so.prototype,"errorMessage",void 0);_.p([_.U(),_.y("design:type",Object)],so.prototype,"isLoading",void 0);_.p([_.U(),_.y("design:type",Object)],so.prototype,"hideContainer",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.y("design:type",Boolean)],so.prototype,"isPlaylistThumbnail",void 0);_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],so.prototype,"dataChanged",null);_.p([_.RA("image-updated"),_.RA("yt-refit"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],so.prototype,"updatePositionOfAllCorners",null);
_.p([_.J_({is:"yt-image-editor-renderer",disableElementRegistration:!0})],so);
_.X(so,"yt-image-editor-renderer",function(){if(ali===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;cVc===void 0&&(cVc=document.createElement("template"));var P=cVc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ali=N}N=ali;return N},{mode:2});var V9S;var gZc;var Kb=function(){return _.z.apply(this,arguments)||this};
_.F(Kb,_.z);Kb.prototype.updateMinutesFromBinding=function(N){this.handleMinutesChanged&&this.handleMinutesChanged(N)};
Kb.prototype.updateSecondsFromBinding=function(N){this.handleSecondsChanged&&this.handleSecondsChanged(N)};
Kb.prototype.updateDescriptionFromBinding=function(N){this.handleDescriptionChanged&&this.handleDescriptionChanged(N)};
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Kb.prototype,"data",void 0);_.p([_.U(),_.y("design:type",String)],Kb.prototype,"minutes",void 0);_.p([_.U(),_.y("design:type",String)],Kb.prototype,"seconds",void 0);_.p([_.U(),_.y("design:type",String)],Kb.prototype,"description",void 0);_.p([_.U(),_.y("design:type",Function)],Kb.prototype,"handleMinutesChanged",void 0);
_.p([_.U(),_.y("design:type",Function)],Kb.prototype,"handleSecondsChanged",void 0);_.p([_.U(),_.y("design:type",Function)],Kb.prototype,"handleDescriptionChanged",void 0);_.p([_.U(),_.y("design:type",Number)],Kb.prototype,"characterLimit",void 0);_.p([_.U(),_.y("design:type",Number)],Kb.prototype,"textNumRows",void 0);_.p([_.J_({is:"yt-report-details-form-content",disableElementRegistration:!0})],Kb);
_.X(Kb,"yt-report-details-form-content",function(){if(gZc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;V9S===void 0&&(V9S=document.createElement("template"));var P=V9S;S.call(b,P.content.cloneNode(!0),N.content.firstChild);gZc=N}N=gZc;return N},{mode:2});var eOc;var $S$;var vQ=function(){var N=_.z.apply(this,arguments)||this;N.updateMinutesFromBinding=function(b){N.minutes=b.detail.value};
N.updateSecondsFromBinding=function(b){N.seconds=b.detail.value};
N.updateDescriptionFromBinding=function(b){N.description=b.detail.value};
return N};
_.F(vQ,_.z);_.v=vQ.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.v.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.ready=function(){_.H4(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.v.onSubmitYtAction=function(N){var b=N.detail;b.actionName==="yt-service-request"&&(b=b.args[1],b.flagEndpoint&&(N.stopPropagation(),this.refireAction(b)))};
_.v.refireAction=function(N){var b={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(b.vss_id=this.vssId);_.HN(this.hostElement,[N,b]);this.submitDisabled=!0};
_.v.dataChanged=function(){var N=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var b=_.qE();b&&b.getPlayerPromise().then(function(S){var P=S.getOption("cc","track")||S.getOption("captions","track");P&&(N.vssId=P.vss_id);S=S.getCurrentTime();N.minutes=Math.floor(S/60).toString();N.seconds=(Math.floor(S)%60).toString()})};
_.v.updateSubmitButtonState=function(){var N;((N=this.data)==null?0:N.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.v.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.v.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.d0.Object.defineProperties(vQ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.textNumRows)||4}}});
vQ.prototype.onYtServiceRequestError=vQ.prototype.onYtServiceRequestError;vQ.prototype.onYtServiceRequestCompleted=vQ.prototype.onYtServiceRequestCompleted;vQ.prototype.updateSubmitButtonState=vQ.prototype.updateSubmitButtonState;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);
_.p([_.U({observer:"dataChanged"}),_.y("design:type",Object)],vQ.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Boolean)],vQ.prototype,"submitDisabled",void 0);_.p([_.U(),_.y("design:type",String)],vQ.prototype,"minutes",void 0);_.p([_.U(),_.y("design:type",String)],vQ.prototype,"seconds",void 0);_.p([_.U(),_.y("design:type",String)],vQ.prototype,"description",void 0);_.p([_.U(),_.y("design:type",String)],vQ.prototype,"vssId",void 0);
_.p([_.U({value:_.Vg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.y("design:type",Boolean)],vQ.prototype,"isMusic",void 0);_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],vQ.prototype,"characterLimit",null);_.p([_.f("data"),_.y("design:type",Number),_.y("design:paramtypes",[])],vQ.prototype,"textNumRows",null);
_.p([_.t_("minutes","seconds","description","submitDisabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vQ.prototype,"updateSubmitButtonState",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vQ.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],vQ.prototype,"onYtServiceRequestError",null);_.p([_.J_({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],vQ);
_.X(vQ,"yt-report-details-form-renderer",function(){if($S$===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;eOc===void 0&&(eOc=document.createElement("template"));var P=eOc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);$S$=N}N=$S$;return N});var hOD;var qd$;var wkD;var NEc;var Oo=function(){return _.z.apply(this,arguments)||this};
_.F(Oo,_.z);
Oo.prototype.onCheckedChanged_=function(){if(this.data){var N=_.H4(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.St(this.hostElement,"yt-additional-detail-checkbox-update",[N]):this.data.identifier==="yt-hide-user-checkbox"?_.St(this.hostElement,"yt-hide-user-checkbox-update",[N]):N&&this.data.enableCommand?_.St(this.hostElement,"yt-modify-report-form-command",[_.t(this.data.enableCommand,wnQ)]):!N&&this.data.disableCommand&&_.St(this.hostElement,
"yt-modify-report-form-command",[_.t(this.data.enableCommand,wnQ)])}};
Oo.prototype.onLabelTap_=function(N){N.target.tagName!="A"&&(_.H4(this.hostElement).querySelector("#checkbox").checked=!_.H4(this.hostElement).querySelector("#checkbox").checked)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Oo.prototype,"data",void 0);_.p([_.J_({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Oo);
_.X(Oo,"yt-boolean-form-field-v2-renderer",function(){if(NEc===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;wkD===void 0&&(wkD=document.createElement("template"));var P=wkD;S.call(b,P.content.cloneNode(!0),N.content.firstChild);NEc=N}N=NEc;return N});var Cb=function(){var N=_.z.apply(this,arguments)||this;N.canShowAdditionalDetailCheckbox=!1;N.canShowCheckbox=!1;N.keepDropdownFocusedAfterSelection=!0;return N};
_.F(Cb,_.z);Cb.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Cb.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Cb.prototype,"canShowAdditionalDetailCheckbox",void 0);_.p([_.U(),_.y("design:type",Object)],Cb.prototype,"canShowCheckbox",void 0);_.p([_.U(),_.y("design:type",Object)],Cb.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.p([_.J_({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Cb);
_.X(Cb,"yt-report-form-modal-content",function(){if(qd$===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;hOD===void 0&&(hOD=document.createElement("template"));var P=hOD;S.call(b,P.content.cloneNode(!0),N.content.firstChild);qd$=N}N=qd$;return N},{mode:2});var bqo;var Sai;var G1=function(){var N=_.z.apply(this,arguments)||this;N.submitting=!1;N.submitButtonDisabled=!0;N.command=null;N.canShowCheckbox=!1;N.canShowAdditionalDetailCheckbox=!1;N.canShowNextButton=!1;N.additionalDetailCheckboxChecked=!1;N.refitJob=0;N.keepDropdownFocusedAfterSelection=!0;N.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return N};
_.F(G1,_.z);_.v=G1.prototype;_.v.created=function(){this.refitJob=0};
_.v.attached=function(){this.JSC$22875_scroller&&(this.JSC$22875_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22875_scroller.attached&&typeof this.JSC$22875_scroller.attached==="function"&&this.JSC$22875_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(N){N&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,N.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),N.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.v.onYtPopupOpened=function(){var N=_.qE();N&&N.getPlayerPromise().then(function(b){b.pauseVideo()})};
_.v.onYtNavigate=function(N){_.t(N.detail.endpoint,_.YyS)&&(N.stopPropagation(),this.hideReportForm=!0)};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.v.onYtServiceRequestCompleted=function(N,b){var S=b.actions;if(S){if(S.length===1&&_.t(S[0],_.vN)){var P;S=((P=_.t(S[0],_.vN))==null?void 0:P.commands)||[]}P=0;for(var H=S.length;P<H;P++)_.t(S[P],_.VD)&&(N.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(S[P]))}if(b.data&&(N=this.get("feedbackResponses",b.data)))for(b=0;b<N.length;b++)if(N[b].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.v._onDescendantIronResize=function(N){N.stopPropagation();return!1};
_.v.handleReportFormEndpointUpdateAction=function(N){if(N.submitEndpoint){var b=this.command=N.submitEndpoint;b=_.t(b,_.EMO);if(b==null?0:b.additionalDetailCheckboxChecked)b.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else N.submitNavigationEndpoint?(this.command=N.submitNavigationEndpoint,this.toggleSubmitButton(!1)):N.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:N.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;N.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",N));this.refit()};
_.v.handleConfirmDialogCloseAction=function(N){N.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.v.submitButtonDisabledChanged=function(){var N=this.hostElement.parentElement;N&&N.invalidateTabbables&&N.invalidateTabbables()};
_.v.handleModifyReportFormCommand=function(N){N=this.get("action",N);N==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:N==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:N==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:N==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:N==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:N==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.v.updateDialogStyling=function(){var N,b,S,P,H,K=((H=(N=this.data)==null?void 0:(b=N.optionsSupportedRenderers)==null?void 0:(S=b.optionsRenderer)==null?void 0:(P=S.items)==null?void 0:P.length)!=null?H:0)<=2?0:240;_.rq(this.hostElement,{"--yt-report-form-modal-renderer-min-width":K+"px"})};
_.v.toggleSubmitButton=function(N){this.submitButtonDisabled=!N;this.submitButtonDisabled=N};
_.v.computeSubmitButtonData=function(N,b){var S={};_.t(b,_.YyS)?S.navigationEndpoint=b:S.command=b||void 0;N&&N.buttonRenderer&&_.Vm.extend(S,N.buttonRenderer);return S};
_.v.computeNextButtonData=function(N,b){var S={};if(!N||!N.buttonRenderer)return S;_.Vm.extend(S,N.buttonRenderer);if(!b)return S;if(_.t(b,_.YyS))S.navigationEndpoint=bO6(b);else if(S.command=bO6(b),N=_.t(S.command,_.EMO))N.legalCheckboxChecked=!0;return S};
_.v.computeShowNextButton=function(N,b,S){return!!N&&b&&S};
_.v.refit=function(){var N=this;this.refitJob||(this.refitJob=_.Dj.addLowPriorityJob(function(){_.bC(N.hostElement,"yt-refit");N.refitJob=0}))};
_.v.handleAdditionalDetailCheckboxUpdateAction=function(N){this.additionalDetailCheckboxChecked=N;_.t(this.command,_.EMO).additionalDetailCheckboxChecked=N};
_.d0.Object.defineProperties(G1,{template:{configurable:!0,enumerable:!0,get:function(){if(Sai===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;bqo===void 0&&(bqo=document.createElement("template"));var P=bqo;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Sai=N}N=Sai;return N}}});
G1.prototype.onYtServiceRequestError=G1.prototype.onYtServiceRequestError;G1.prototype.onYtServiceRequestCompleted=G1.prototype.onYtServiceRequestCompleted;G1.prototype.onYtServiceRequestSent=G1.prototype.onYtServiceRequestSent;G1.prototype.onYtNavigate=G1.prototype.onYtNavigate;G1.prototype.onYtPopupOpened=G1.prototype.onYtPopupOpened;_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],G1.prototype,"openPopupBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],G1.prototype,"eventForwardingBehavior",void 0);_.p([_.L(_.$M),_.y("design:type",Object)],G1.prototype,"ironResizableBehavior",void 0);_.p([_.U({observer:"dataChanged"}),_.y("design:type",Object)],G1.prototype,"data",void 0);
_.p([_.U(),_.y("design:type",Object)],G1.prototype,"submitting",void 0);_.p([_.U({observer:"submitButtonDisabledChanged"}),_.y("design:type",Object)],G1.prototype,"submitButtonDisabled",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"command",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],G1.prototype,"hideReportForm",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"canShowCheckbox",void 0);
_.p([_.U(),_.y("design:type",Object)],G1.prototype,"canShowAdditionalDetailCheckbox",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"canShowNextButton",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"additionalDetailCheckboxChecked",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"refitJob",void 0);_.p([_.U(),_.y("design:type",Object)],G1.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.p([_.dq("#scroller"),_.y("design:type",Object)],G1.prototype,"JSC$22875_scroller",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],G1.prototype,"onYtPopupOpened",null);_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],G1.prototype,"onYtNavigate",null);
_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],G1.prototype,"onYtServiceRequestSent",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],G1.prototype,"onYtServiceRequestCompleted",null);
_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],G1.prototype,"onYtServiceRequestError",null);_.p([_.J_({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],G1);var PLc;var HqH;var rL=function(){return _.z.apply(this,arguments)||this};
_.F(rL,_.z);_.v=rL.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.v.onVisible=function(){var N,b;(b=_.aN().resolve(_.cq(_.fK)))==null||b.enqueue({label:_.es((N=this.data)==null?void 0:N.messageTitle),elementToFocus:this.hostElement})};
_.v.onThumbnailLoaded=function(){_.bC(this.hostElement,"yt-refit")};
_.v.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.v.computeAlternateIcon=function(N){return N?N==="BACKSTAGE_ARTWORK"?"backstage:artwork":N:null};
_.v.computeFontFamily=function(N){return N==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.v.computeBackgroundStyle=function(N,b){if(N=this.computeBackgroundImage(N,b))if(N=_.NE(N.thumbnails))return'background-image: url("'+N+'");'};
_.v.computeHasFullHeightImage=function(N){return!(!(N&&N.thumbnails&&N.thumbnails.length>0)||this.modern)};
_.v.isModernStyle=function(N){return N.style==="STYLE_MODERN"};
_.v.computeIcon=function(N,b){if(N&&N.icon)return b?N.iconDark:N.icon};
_.v.computeBackgroundImage=function(N,b){if(N&&N.backgroundImage)return b?N.backgroundImageDark:N.backgroundImage};
_.v.computeLogo=function(N,b){if(N&&N.logo)return b?N.logoDark:N.logo};
_.v.computeShouldShowModernIcon=function(N,b){return N&&!!b};
_.v.getLogoContainerClassName=function(N){return this.logoWithPadding(N)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.v.getLogoImageId=function(N){return this.logoWithPadding(N)?"mealbar-logo-with-padding":"mealbar-logo"};
_.v.logoWithPadding=function(N){var b,S,P;return(N=(b=this.computeLogo(N,this.isDarkTheme))==null?void 0:(S=b.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&N%31===0?!0:!1};
rL.prototype.onThumbnailLoaded=rL.prototype.onThumbnailLoaded;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.p([_.U({}),_.y("design:type",Object)],rL.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.y("design:type",Boolean)],rL.prototype,"modern",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],rL.prototype,"isDarkTheme",void 0);
_.p([_.U({computed:"computeIcon(data, isDarkTheme)"}),_.y("design:type",Object)],rL.prototype,"icon",void 0);_.p([_.U({computed:"computeLogo(data, isDarkTheme)"}),_.y("design:type",Object)],rL.prototype,"logo",void 0);_.p([_.U({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.y("design:type",Object)],rL.prototype,"backgroundStyle",void 0);_.p([_.U({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.y("design:type",Object)],rL.prototype,"alternateIcon",void 0);
_.p([_.U({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.y("design:type",Boolean)],rL.prototype,"hasFullHeightImage",void 0);_.p([_.U({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.y("design:type",Boolean)],rL.prototype,"useYoutubeSans",void 0);_.p([_.U({computed:"computeShouldShowModernIcon(modern, icon)"}),_.y("design:type",Boolean)],rL.prototype,"shouldShowModernIcon",void 0);
_.p([_.RA("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],rL.prototype,"onThumbnailLoaded",null);_.p([_.J_({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],rL);
_.X(rL,"yt-mealbar-promo-renderer",function(){if(HqH===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;PLc===void 0&&(PLc=document.createElement("template"));var P=PLc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);HqH=N}N=HqH;return N},{mode:2});var s6I;var KJi;var cQ=function(){return _.z.apply(this,arguments)||this};
_.F(cQ,_.z);_.v=cQ.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.v.computeHasButtons_=function(N){return!(!N.dismissButton&&!N.acceptButton)};
_.v.computeStyle_=function(N){return N||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.v.observeImpressionEndpoints_=function(){var N=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.HN(N.hostElement,[b])})};
_.v.onTap_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
cQ.prototype.observeImpressionEndpoints_=cQ.prototype.observeImpressionEndpoints_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],cQ.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],cQ.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],cQ.prototype,"positionType",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],cQ.prototype,"hasButtons_",void 0);_.p([_.U({value:function(){return this.onTap_.bind(this)}}),
_.y("design:type",Function)],cQ.prototype,"boundOnTap_",void 0);_.p([_.U({value:{style:"mono-inverse"}}),_.y("design:type",Object)],cQ.prototype,"buttonOverride",void 0);_.p([_.W4("data.promoConfig.impressionEndpoints"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],cQ.prototype,"observeImpressionEndpoints_",null);_.p([_.J_({is:"yt-tooltip-renderer",disableElementRegistration:!0})],cQ);
_.X(cQ,"yt-tooltip-renderer",function(){if(KJi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;s6I===void 0&&(s6I=document.createElement("template"));var P=s6I;S.call(b,P.content.cloneNode(!0),N.content.firstChild);KJi=N}N=KJi;return N},{mode:2});var vQ$;var Oqi;var CLj;var GEI;var aM=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-open-popup-action":"onOpen"};return N};
_.F(aM,_.z);_.v=aM.prototype;_.v.attached=function(){this.onOpen()};
_.v.updateTimeSecs=function(N){this.currentTimeSecs=N};
_.v.computeTimeString=function(N){N=N.toString();var b=Math.floor(Number(N)/3600),S=Math.floor(Number(N)%3600%60);return(b>0?b+":":"")+_.RS(Math.floor(Number(N)%3600/60),b>0?2:1)+":"+_.RS(S,2)};
_.v.computeTimeStringA11y=function(N){return _.cRo({seconds:N})};
_.v.getTimeParam=function(){return PJw(this.timeString)};
_.v.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var N={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},b;_.yj(_.dG(),(b=this.data)==null?void 0:b.trackingParams,N,7)};
_.v.onChangeStartAtTimestamp=function(){for(var N=this.startAtTimestamp.value.split(":"),b=0,S=1,P=N.length-1;P>=0;P--)b+=Number(N[P])*S,S*=60;this.updateTimeSecs(b);this.setTimestamp()};
_.v.onOpen=function(){var N=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var b=_.qE();b?b.getPlayerPromise().then(function(S){S=S.getCurrentTime();N.updateTimeSecs(S)}):m76()&&this.updateTimeSecs(m76())};
_.v.setTimestamp=function(){var N=Math.floor(this.currentTimeSecs);_.St(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!N,timestamp:N||""}])};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],aM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],aM.prototype,"data",void 0);_.p([_.U({value:!1,notify:!0}),_.y("design:type",Boolean)],aM.prototype,"isStartAtChecked",void 0);_.p([_.U(),_.y("design:type",Number)],aM.prototype,"currentTimeSecs",void 0);
_.p([_.U({computed:"computeTimeString(currentTimeSecs)"}),_.y("design:type",String)],aM.prototype,"timeString",void 0);_.p([_.U({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.y("design:type",String)],aM.prototype,"timeStringA11y",void 0);_.p([_.dq("#start-at-timestamp"),_.y("design:type",Object)],aM.prototype,"startAtTimestamp",void 0);_.p([_.J_({is:"yt-start-at-renderer",disableElementRegistration:!0})],aM);
_.X(aM,"yt-start-at-renderer",function(){if(GEI===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;CLj===void 0&&(CLj=document.createElement("template"));var P=CLj;S.call(b,P.content.cloneNode(!0),N.content.firstChild);GEI=N}N=GEI;return N},{mode:2});var rOH={},cOL=(rOH.WEB_REMIX="music.youtube.com",rOH),RM=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return N};
_.F(RM,_.z);_.v=RM.prototype;_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.created=function(){this.embedHost_=cOL[_.Vg("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.v.ready=function(){_.H4(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.v.computeEmbedCode_=function(N,b,S,P,H){if(!N)return"";var K=N.videoId,C=N.fullListId,G=[];N.attributionId&&G.push("si="+N.attributionId);P||G.push("controls=0");S&&Number(b)>0&&G.push("start="+b);C&&(K="videoseries",G.push("list="+C));S="https://"+(H?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+K;N.clipId&&(G.push("clip="+N.clipId),G.push("clipt="+N.clipTiming));b=G.length>0?S+"?"+G.join("&amp;"):S;N.encryptedEmbedConfig&&G.push("embed_config="+JSON.stringify({enc:N.encryptedEmbedConfig}));
G=G.length>0?S+"?"+G.join("&amp;"):S;_.T("web_sharing_embed_preview_killswitch")?_.H4(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(G,N.previewWidth||854,N.previewHeight||480):(_.E7(this.videoPreviewContainer),_.H4(this.videoPreviewContainer).appendChild(this.buildIframeElement(G)));return this.getEmbedCode_(b,N.width||560,N.height||315)};
_.v.buildIframeElement=function(N){var b=document.createElement("iframe"),S,P;b.width=""+((P=(S=this.data)==null?void 0:S.previewWidth)!=null?P:854);var H,K;b.height=""+((K=(H=this.data)==null?void 0:H.previewHeight)!=null?K:480);_.HM(b,2,N);b.title="YouTube video player";b.frameBorder="0";b.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";b.referrerPolicy="strict-origin-when-cross-origin";b.allowFullscreen=!0;return b};
_.v.computeIsSquareAspectRatio_=function(N){return N.previewHeight&&N.previewWidth?N.previewHeight==N.previewWidth:!1};
_.v.computeShowEmbedOptions_=function(N){return!!N.enablePrivacyModeOptionLabel||!!N.showPlayerControlsOptionLabel};
_.v.getEmbedCode_=function(N,b,S){return'<iframe width="'+b+'" height="'+S+'" src="'+N+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.v.handleSignalActionCopyShareEmbedUrl_=function(){_.H4(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.v.handleSetTimestamp_=function(N){this.startAtTimeStamp_=(this.startAtChecked_=N.isSet)?N.timestamp:0};
_.v.closePanel_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.v.onEmbedCode_=function(){_.H4(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.v.onYtPopupClosed_=function(){_.E7(_.H4(this.hostElement).querySelector("#video-preview"))};
_.v.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.t(this.data.actionButtons[0],_.rU)&&this.ytRendererBehavior.logExplicitClick(_.t(this.data.actionButtons[0],_.rU))};
RM.prototype.onYtPopupClosed_=RM.prototype.onYtPopupClosed_;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],RM.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],RM.prototype,"data",void 0);
_.p([_.U({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.y("design:type",String)],RM.prototype,"embedCode_",void 0);_.p([_.U({value:!0}),_.y("design:type",Boolean)],RM.prototype,"isPlayerControlsOptionChecked_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],RM.prototype,"isPrivacyModeOptionChecked_",void 0);_.p([_.U({value:!1,notify:!0}),_.y("design:type",Boolean)],RM.prototype,"startAtChecked_",void 0);
_.p([_.U({value:0}),_.y("design:type",Number)],RM.prototype,"startAtTimeStamp_",void 0);_.p([_.U({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],RM.prototype,"isSquareAspectRatio_",void 0);_.p([_.dq("#video-preview"),_.y("design:type",HTMLElement)],RM.prototype,"videoPreviewContainer",void 0);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],RM.prototype,"onYtPopupClosed_",null);
_.p([_.J_({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],RM);
_.X(RM,"yt-sharing-embed-renderer",function(){if(Oqi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;vQ$===void 0&&(vQ$=document.createElement("template"));var P=vQ$;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Oqi=N}N=Oqi;return N},{mode:2});var aoo;var Rwj=function(){return _.z.apply(this,arguments)||this};
_.F(Rwj,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Rwj.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Rwj.prototype,"data",void 0);_.p([_.J_({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],Rwj);
_.X(Rwj,"yt-sender-id-section-renderer",function(){if(aoo===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);aoo=N}N=
aoo;return N},{mode:1});var WJk;var nQL;var WQ=function(){return _.z.apply(this,arguments)||this};
_.F(WQ,_.z);WQ.prototype.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],WQ.prototype,"data",void 0);_.p([_.J_({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],WQ);
_.X(WQ,"yt-community-post-section-renderer",function(){if(nQL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;WJk===void 0&&(WJk=document.createElement("template"));var P=WJk;S.call(b,P.content.cloneNode(!0),N.content.firstChild);nQL=N}N=nQL;return N},{mode:2});var d_i;var m_S;var kES;var TEI;var tnc;var MnH;var FJL=function(){return _.z.apply(this,arguments)||this};
_.F(FJL,_.z);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FJL.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FJL.prototype,"data",void 0);_.p([_.J_({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],FJL);
_.X(FJL,"yt-share-start-time-with-context-renderer",function(){if(MnH===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;tnc===void 0&&(tnc=document.createElement("template"));var P=tnc;S.call(b,P.content.cloneNode(!0),N.content.firstChild);MnH=N}N=MnH;return N},{mode:2});var nb=function(){return _.z.apply(this,arguments)||this};
_.F(nb,_.z);nb.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],nb.prototype,"data",void 0);_.p([_.J_({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],nb);
_.X(nb,"yt-share-panel-title-v15-renderer",function(){if(TEI===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;kES===void 0&&(kES=document.createElement("template"));var P=kES;S.call(b,P.content.cloneNode(!0),N.content.firstChild);TEI=N}N=TEI;return N},{mode:2});var dL=function(){return _.z.apply(this,arguments)||this};
_.F(dL,_.z);dL.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],dL.prototype,"data",void 0);_.p([_.J_({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],dL);
_.X(dL,"yt-share-panel-header-renderer",function(){if(m_S===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;d_i===void 0&&(d_i=document.createElement("template"));var P=d_i;S.call(b,P.content.cloneNode(!0),N.content.firstChild);m_S=N}N=m_S;return N},{mode:2});var BE7;var loK;var LJi={};LJi.YtBindingExpressionsBehavior={identity:_.iY,msg:function(N,b){b=b===void 0?{}:b;return _.cN(N,b,N)},
msgPlural:function(N,b){return _.am(N,b)},
getMusicIconFromType:function(N){return _.C7(N)}};var foS;var uiK;var Q6k;var x_$=document.head,oQI=x_$.appendChild,iqD;
if(Q6k===void 0){var JOL=document.createElement("template");_.B(JOL,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');Q6k=
JOL}iqD=Q6k;oQI.call(x_$,iqD.content);var m_=function(){var N=_.z.apply(this,arguments)||this;N.screenLayer=7;return N};
_.F(m_,_.z);m_.prototype.getScreenLayer=function(){return this.screenLayer};
m_.prototype.onTap=function(N){N&&N.detail&&(N.detail.x||N.detail.y)&&_.H4(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.HN(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(N=this.getScreenLayer(),_.bC(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:N}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.d0.Object.defineProperties(m_.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
m_.prototype.onTap=m_.prototype.onTap;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],m_.prototype,"ytComponentBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],m_.prototype,"data",void 0);_.p([_.f("data.title"),_.y("design:type",Object),_.y("design:paramtypes",[])],m_.prototype,"title",null);
_.p([_.f("data.serviceName"),_.y("design:type",String),_.y("design:paramtypes",[])],m_.prototype,"icon",null);_.p([_.RA("tap"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],m_.prototype,"onTap",null);_.p([_.J_({is:"yt-share-target-renderer",disableElementRegistration:!0})],m_);
_.X(m_,"yt-share-target-renderer",function(){if(uiK===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;foS===void 0&&(foS=document.createElement("template"));var P=foS;S.call(b,P.content.cloneNode(!0),N.content.firstChild);uiK=N}N=uiK;return N},{mode:2});var U_i;var Zqk;var kr=function(){var N=_.z.apply(this,arguments)||this;N.SHARE_TARGET_WIDTH=70;N.SHARE_TARGET_MARGIN_RIGHT=8;N.PAGE_SCROLL_SPEED=9;N.actionMap={"yt-share-panel-reset-action":"onReset_"};return N};
_.F(kr,_.z);_.v=kr.prototype;_.v.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.v.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.H4(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.H4(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.v.onReset_=function(){if(_.H4(this.hostElement).querySelector("#list")){var N=_.H4(this.hostElement).querySelector("#list");var b=_.H4(this.hostElement).querySelector("#list");var S=b.offsetLeft,P=b.offsetParent;P||_.TYV(b)!="fixed"||(P=_.hh(b).documentElement);if(P){if(_.B_&&!_.ce(58)){var H=_.uKV(P);S+=H.left}else Number(_.EON)>=8&&!(Number(_.EON)>=9)&&(H=_.uKV(P),S-=H.left);b=_.L0V(P)?P.clientWidth-(S+b.offsetWidth):S}else b=S;Tuo(N,b);this.updateScrollButtons_()}};
_.v.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.v.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.v.onScrollWheel_=function(N){N.stopPropagation();N.preventDefault();var b=kmt(_.H4(this.hostElement).querySelector("#list"));N=Math.abs(N.deltaX)>Math.abs(N.deltaY)?N.deltaX:N.deltaY;Tuo(_.H4(this.hostElement).querySelector("#list"),b+N);this.updateScrollButtons_()};
_.v.smoothScrollByOnePage_=function(N){var b=_.H4(this.hostElement).querySelector("#list"),S=(Math.floor(b.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,P=kmt(b),H=S*(N?1:-1),K=this.PAGE_SCROLL_SPEED,C=this.updateScrollButtons_.bind(this),G=0,a;(function n(){G+=K;a=G/S*2;Tuo(b,P+H*(a<1?a*a:-a*a+4*a-2));G<S?window.requestAnimationFrame(n):C()})()};
_.v.updateScrollButtons_=function(){var N=kmt(_.H4(this.hostElement).querySelector("#list")),b=_.H4(this.hostElement).querySelector("#list").scrollWidth-_.H4(this.hostElement).querySelector("#list").clientWidth;_.H4(this.hostElement).querySelector("#scroll-button-back").hidden=N<=0;_.H4(this.hostElement).querySelector("#scroll-button-forward").hidden=N>=b};
kr.prototype.onScrollWheel_=kr.prototype.onScrollWheel_;kr.prototype.onDataChanged_=kr.prototype.onDataChanged_;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],kr.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(LJi.YtBindingExpressionsBehavior),_.y("design:type",Object)],kr.prototype,"ytBindingExpressionsBehavior",void 0);
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],kr.prototype,"data",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],kr.prototype,"onDataChanged_",null);_.p([_.RA("wheel"),_.y("design:type",Function),_.y("design:paramtypes",[WheelEvent]),_.y("design:returntype")],kr.prototype,"onScrollWheel_",null);
_.p([_.J_({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],kr);
_.X(kr,"yt-third-party-share-target-section-renderer",function(){if(Zqk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;U_i===void 0&&(U_i=document.createElement("template"));var P=U_i;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Zqk=N}N=Zqk;return N},{mode:2});var T1=function(){return _.z.apply(this,arguments)||this};
_.F(T1,_.z);T1.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],T1.prototype,"data",void 0);_.p([_.J_({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],T1);
_.X(T1,"yt-third-party-network-section-renderer",function(){if(loK===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;BE7===void 0&&(BE7=document.createElement("template"));var P=BE7;S.call(b,P.content.cloneNode(!0),N.content.firstChild);loK=N}N=loK;return N},{mode:2});var j6i;_.qu(_.A(function(N){return _.c("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.c("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.c(_.kY,{data:function(){return N.data().firstPartyItems}},{listItemViewModel:_.di})))},"jl"),"first-party-network-section-view-model",{props:{data:_.kg}});var zwi=_.$E(["data:image/svg+xml;charset=UTF-8;base64,",""]),tY=function(){var N=_.z.apply(this,arguments)||this;N.screenLayer=7;N.qrCodeEnabled=_.T("web_enable_sharing_qr_code");N.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return N};
_.F(tY,_.z);_.v=tY.prototype;_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.v.attached=function(){this.JSC$22926_scroller&&(this.JSC$22926_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22926_scroller.attached&&typeof this.JSC$22926_scroller.attached==="function"&&this.JSC$22926_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.v.onDataChanged=function(){var N=this,b;(b=this.data)!=null&&b.contents&&(this.hostElement.setAttribute("links-only","true"),_.C3(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.W_(this,function(){_.bC(N.hostElement,"yt-refit");N.focusSharePanelHeader()}))};
_.v.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.v.handleSetTimestamp=function(N){var b=this.shortUrl();N.isSet&&(b=_.wP(b,"t",N.timestamp));this.maybeRenderQrCode(b)};
_.v.shortUrl=function(){var N,b=(N=this.data)==null?void 0:N.contents;if(b)for(N=0;N<b.length;N++){var S=void 0,P=void 0;if((S=b[N])==null?0:(P=S.thirdPartyNetworkSection)==null?0:P.copyLinkContainer){var H=P=S=void 0;return(H=_.t((S=b[N])==null?void 0:(P=S.thirdPartyNetworkSection)==null?void 0:P.copyLinkContainer,OWq))==null?void 0:H.shortUrl}}};
_.v.maybeRenderQrCode=function(N){var b=this,S,P,H,K,C,G,a,R,n;return _.r(function(d){if(d.nextAddress==1){S=_.H4(b.hostElement).querySelector("#qr-code");if(!b.qrCodeEnabled||!N)return S&&(S.style.display="none"),d.return();P=_.MYE(_.aN().resolve(_.GS),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});H=document.createElement("div");return typeof P==="function"?(P(H),d.jumpTo(2)):d.yield(P,3)}d.nextAddress!=2&&(K=d.yieldResult,K(H));a=(C=H)==null?void 0:(G=C.firstChild)==null?void 0:G.firstChild;
R=document.createElement("img");n=_.R8U(zwi,btoa(a.outerHTML));R.onload=function(){var m={canvas:S,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:R},k=new LyO;iXJ(k,N);Jst(k,!1,Uni(k));var M=k.modules,l=Object.assign({},D$E,m);M=structuredClone(M);m=M.length;var u,J=(u=l.canvas)!=null?u:document.createElement("canvas");u=l.cellSize;k=l.logo;var Z,D=(Z=l.logoSize)!=null?Z:Math.floor(m/4);m%2!==D%2&&D++;var Y=l.logoPadding,V=l.backgroundColor;Z=m*u;var g=
l.width,e=0;g&&(e=l.padding,e=Math.ceil(e*Z/(g-e*2)),J.style.width=g+"px",J.style.height=g+"px");J.width!==Z+e*2&&(J.width=Z+e*2);J.height!==Z+e*2&&(J.height=Z+e*2);Z=J.getContext("2d");l.autoClear&&Z.clearRect(0,0,J.width,J.height);Z.fillStyle=V;Z.beginPath();Z.roundRect(0,0,J.width,J.height,l.borderRadius);Z.fill();Z.save();Z.translate(e,e);if(k)for(J=Math.floor(m-D)/2-Y,Y=Math.floor(m+D)/2+Y,V=J;V<Y;V++)for(g=J;g<Y;g++)M[V][g]=!1;for(J=0;J<m;J++)for(Y=0;Y<m;Y++)(J<7&&Y<7||J<7&&Y>=m-7||J>=m-7&&
Y<7)&&(M[J][Y]=!1);var se;J=(se=l.markerColor)!=null?se:l.color;j3E(Z,0,0,u,J);j3E(Z,u*(m-7),0,u,J);j3E(Z,0,u*(m-7),u,J);switch(l.cellStyle){case 0:se=M;M=se.length;J=l.cellSize;Z.beginPath();for(Y=0;Y<M;Y++)for(V=0;V<M;V++)se[Y][V]&&Z.rect(Y*J,V*J,J,J);Z.fillStyle=l.color;Z.fill();break;case 1:se=M;M=se.length;J=l.cellSize;Y=J*l.relativeCircleSize;Z.fillStyle=l.color;Z.beginPath();for(l=0;l<M;l++)for(V=0;V<M;V++)se[l][V]&&(Z.beginPath(),Z.ellipse((l+.5)*J,(V+.5)*J,Y/2,Y/2,0,0,2*Math.PI),Z.fill());
Z.fill();break;case 2:se=M;M=se.length;J=l.cellSize;Z.fillStyle=l.color;l=[[1,1],[-1,1],[-1,-1],[1,-1]];Z.beginPath();for(Y=0;Y<M;Y++)for(V=0;V<M;V++)if(se[Y][V])Z.roundRect(Y*J,V*J,J,J,J/2),Y+1<M&&se[Y+1][V]&&Z.rect(Y*J+J/2,V*J,J,J),V+1<M&&se[Y][V+1]&&Z.rect(Y*J,V*J+J/2,J,J);else{g=Y*J+J/2;e=V*J+J/2;for(var Ca=0;Ca<4;Ca++){var ML=_.O(l[Ca]),na=ML.next().value;ML=ML.next().value;Y+na>=0&&Y+na<M&&V+ML>=0&&V+ML<M&&se[Y+na][V]&&se[Y][V+ML]&&se[Y+na][V+ML]&&(na=Ca*Math.PI/2,ML=J/2,Z.moveTo(g+ML*Math.cos(na),
e+ML*Math.sin(na)),Z.arc(g,e,J/2,na,na+Math.PI/2,!1),Z.lineTo(g+ML*(Math.cos(na)-Math.sin(na)),e+ML*(Math.cos(na)+Math.sin(na))),Z.lineTo(g+ML*Math.cos(na),e+ML*Math.sin(na)))}}Z.fill()}k&&Z.drawImage(k,(m-D)*u/2,(m-D)*u/2,D*u,D*u);Z.restore();S.style.removeProperty("display")};
R.src=_.YI(n);_.Zd(d)})};
_.v.hasCommunityPostRenderer=function(){var N,b,S,P;return!!((N=this.data)==null?0:(b=N.header)==null?0:(S=b.sharePanelHeaderRenderer)==null?0:(P=S.communityPost)==null?0:P.communityPostSectionRenderer)};
_.v.onTapClose=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.v.getScreenLayer=function(){return this.screenLayer};
tY.prototype.onDataChanged=tY.prototype.onDataChanged;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],tY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],tY.prototype,"data",void 0);
_.p([_.U({value:_.cN("SBOX_INAPPROPRIATE_CANCEL")}),_.y("design:type",String)],tY.prototype,"closeButtonAriaLabel",void 0);_.p([_.dq("yt-share-panel-header-renderer"),_.y("design:type",HTMLElement)],tY.prototype,"header",void 0);_.p([_.U(),_.y("design:type",Object)],tY.prototype,"qrCodeEnabled",void 0);_.p([_.dq("#scroller"),_.y("design:type",Object)],tY.prototype,"JSC$22926_scroller",void 0);
_.p([_.t_("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],tY.prototype,"onDataChanged",null);_.p([_.J_({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],tY);
_.X(tY,"yt-unified-share-panel-renderer",function(){if(j6i===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);j6i=N}N=j6i;return N},{mode:1});var AOi={};
AOi.YtUnlimitedFamilyInterstitialBehavior=[_.Xo.YtOpenPopupBehavior,_.pG.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(N){N=_.dzV(_.gQ(N),"yt-button-renderer");return N?N.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(N){this.dialogHistory_.push(N)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var N=this.popFromHistory();if(N){var b={openPopupAction:{popupType:"DIALOG",popup:{}}};b.openPopupAction.popup[N.renderer]=N.data;this.showingPreviousDialog_=!0;this.openPopup(b)}},
handleOpenPopupAction_:function(N){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var b=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(P){return!!N.openPopupAction.popup[P]}),S=this.getElementName_();
b&&this.data&&(this.pushToHistory({renderer:S,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(N){if(N=_.t(N,Gfn))this.loading=!0,_.St(this.hostElement,"yt-open-create-family-dialog",[N,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var N=this.hostElement.nodeName.split("-").slice(1).map(function(b){return""+b[0].toUpperCase()+b.slice(1).toLowerCase()}).join("");
return N[0].toLowerCase()+N.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var X5H;var EQi;var M9=function(){return _.z.apply(this,arguments)||this};
_.F(M9,_.z);_.v=M9.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.St(this.hostElement,"yt-register-create-family-dialog");_.H4(this.hostElement).querySelector("#thumbnail").onShow()};
_.v.fireOnCloseCommand_=function(){var N;((N=this.data)==null?0:N.onCloseCommand)&&_.sR(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.v.onYtServiceRequestSent_=function(N,b){b&&b.endpoint&&_.t(b.endpoint,_.CA)||(this.loading=!0)};
_.v.onYtServiceRequestCompleted_=function(){var N=this.hostElement.parentElement;N.close&&N.close();this.loading=!1};
_.v.openPopupHandler_=function(N){if(N.detail==this){var b;((b=this.data)==null?0:b.onOpenCommands)&&_.sR(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.v.closePopupHandler_=function(N,b){this.fireOnCloseCommand_();if(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1){var S;((S=this.data)==null?0:S.onDismissCommands)&&_.sR(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.v.dataChanged_=function(){this.loading=!1};
M9.prototype.dataChanged_=M9.prototype.dataChanged_;M9.prototype.closePopupHandler_=M9.prototype.closePopupHandler_;M9.prototype.openPopupHandler_=M9.prototype.openPopupHandler_;M9.prototype.onYtServiceRequestCompleted_=M9.prototype.onYtServiceRequestCompleted_;M9.prototype.onYtServiceRequestSent_=M9.prototype.onYtServiceRequestSent_;_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],M9.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(AOi.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],M9.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],M9.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],M9.prototype,"loading",void 0);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],M9.prototype,"onYtServiceRequestSent_",null);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],M9.prototype,"onYtServiceRequestCompleted_",null);
_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],M9.prototype,"openPopupHandler_",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],M9.prototype,"closePopupHandler_",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],M9.prototype,"dataChanged_",null);
_.p([_.J_({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],M9);
_.X(M9,"yt-unlimited-family-message-interstitial-renderer",function(){if(EQi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;X5H===void 0&&(X5H=document.createElement("template"));var P=X5H;S.call(b,P.content.cloneNode(!0),N.content.firstChild);EQi=N}N=EQi;return N},{mode:2});var p5L;var Yao;var FU=function(){return _.z.apply(this,arguments)||this};
_.F(FU,_.z);FU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0},properties:{"on-tap":"[[boundButtonTap_]]"}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}},"data.manageButton":{id:"manage-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
FU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.H4(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(N){N.onShow()});
_.H4(this.hostElement).querySelector("#main-thumbnail").onShow()};
FU.prototype.onButtonTap_=function(N){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(N)};
FU.prototype.computeMainThumbnailWidth_=function(N){return N&&N.length!==0?72:96};
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.p([_.L(AOi.YtUnlimitedFamilyInterstitialBehavior),_.y("design:type",Object)],FU.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],FU.prototype,"data",void 0);
_.p([_.U({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.y("design:type",Number)],FU.prototype,"mainThumbnailWidth_",void 0);_.p([_.U({value:function(){return this.onButtonTap_.bind(this)}}),
_.y("design:type",Function)],FU.prototype,"boundButtonTap_",void 0);_.p([_.J_({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],FU);
_.X(FU,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Yao===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;p5L===void 0&&(p5L=document.createElement("template"));var P=p5L;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Yao=N}N=Yao;return N},{mode:2});var yOh;var Io7;var BQ=function(){var N=_.z.apply(this,arguments)||this;N.sliderAriaValueText_=null;N.selectedIndex_=0;N.messages={PAUSE_SLIDER:_.cN("PAUSE_SLIDER",void 0,"Pause Duration")};return N};
_.F(BQ,_.z);_.v=BQ.prototype;_.v.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.v.onPopupOpened_=function(N){N.detail==this&&_.T("enable_premium_voluntary_pause")&&(_.St(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.setDialogData=function(N){this.data=N;this.resetSlider_()};
_.v.dataChanged_=function(){this.data&&this.resetSlider_()};
_.v.onSubmitTap_=function(){if(this.data.confirmCommand){var N=this.data.confirmCommand;_.t(N,_.YNk)&&_.HN(this.hostElement,[N,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.v.onExitButtonTap_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.v.closePopupHandler_=function(N,b){(b&&b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.handleOnDismissCommands_()};
_.v.onSliderChange_=function(){this.selectedIndex_=_.H4(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.v.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.v.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.v.resetSlider_=function(){if(this.data){var N=this.data.defaultEndOptionIndex||0,b=_.H4(this.hostElement).querySelector("#id-pause-slider");if(b.immediateValue<N)for(;b.immediateValue!=N;)b.increment();else if(N<b.immediateValue)for(;b.immediateValue!=N;)b.decrement();this.selectedIndex_=N;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.v.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.sR(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.sR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.loading=!0};
_.v.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
BQ.prototype.onYtServiceRequestCompleted=BQ.prototype.onYtServiceRequestCompleted;BQ.prototype.onYtServiceRequestSent=BQ.prototype.onYtServiceRequestSent;BQ.prototype.closePopupHandler_=BQ.prototype.closePopupHandler_;BQ.prototype.dataChanged_=BQ.prototype.dataChanged_;BQ.prototype.onPopupOpened_=BQ.prototype.onPopupOpened_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],BQ.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],BQ.prototype,"loading",void 0);_.p([_.U(),_.y("design:type",Number)],BQ.prototype,"selectIndexMax_",void 0);_.p([_.U(),_.y("design:type",Object)],BQ.prototype,"selectedData_",void 0);
_.p([_.U(),_.y("design:type",Object)],BQ.prototype,"sliderAriaValueText_",void 0);_.p([_.U({value:function(){return this.onSubmitTap_.bind(this)}}),
_.y("design:type",Function)],BQ.prototype,"onButtonTap_",void 0);_.p([_.U({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.y("design:type",Function)],BQ.prototype,"onSecondaryTap_",void 0);_.p([_.U(),_.y("design:type",Object)],BQ.prototype,"messages",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],BQ.prototype,"onPopupOpened_",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],BQ.prototype,"dataChanged_",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],BQ.prototype,"closePopupHandler_",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],BQ.prototype,"onYtServiceRequestSent",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],BQ.prototype,"onYtServiceRequestCompleted",null);_.p([_.J_({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],BQ);
_.X(BQ,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Io7===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;yOh===void 0&&(yOh=document.createElement("template"));var P=yOh;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Io7=N}N=Io7;return N},{mode:2});var D_L;var Vnj;var l7=function(){return _.z.apply(this,arguments)||this};
_.F(l7,_.z);l7.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.LU("vcBalanceRenderer")}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],l7.prototype,"data",void 0);_.p([_.J_({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],l7);
_.X(l7,"yt-vc-offer-layout-header-renderer",function(){if(Vnj===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;D_L===void 0&&(D_L=document.createElement("template"));var P=D_L;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Vnj=N}N=Vnj;return N},{mode:2});var gQL;var ewD;var $_i;var hwL;var Lb=function(){return _.z.apply(this,arguments)||this};
_.F(Lb,_.z);Lb.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.d0.Object.defineProperties(Lb.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.WcE.YtTappableItemBehavior),_.y("design:type",Object)],Lb.prototype,"ytTappableItemBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Lb.prototype,"data",void 0);
_.p([_.U({reflectToAttribute:!0}),_.f("data.accessibilityText"),_.y("design:type",String),_.y("design:paramtypes",[])],Lb.prototype,"ariaLabel",null);_.p([_.U({reflectToAttribute:!0}),_.f("data.style"),_.y("design:type",String),_.y("design:paramtypes",[])],Lb.prototype,"vcOfferStyle",null);_.p([_.f("data.style","data.titleText"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Lb.prototype,"showTitleText",null);_.p([_.J_({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Lb);
_.X(Lb,"yt-vc-offer-renderer",function(){if(hwL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;$_i===void 0&&($_i=document.createElement("template"));var P=$_i;S.call(b,P.content.cloneNode(!0),N.content.firstChild);hwL=N}N=hwL;return N},{mode:2});var fb=function(){return _.z.apply(this,arguments)||this};
_.F(fb,_.z);fb.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],fb.prototype,"data",void 0);_.p([_.J_({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],fb);
_.X(fb,"yt-vc-offer-layout-renderer",function(){if(ewD===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;gQL===void 0&&(gQL=document.createElement("template"));var P=gQL;S.call(b,P.content.cloneNode(!0),N.content.firstChild);ewD=N}N=ewD;return N},{mode:2});var qao;var w5k;var Nci;var bD$;var u7=function(){return _.z.apply(this,arguments)||this};
_.F(u7,_.z);u7.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],u7.prototype,"data",void 0);_.p([_.J_({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],u7);
_.X(u7,"yt-ypc-offers-modal-top-bar-renderer",function(){if(bD$===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;Nci===void 0&&(Nci=document.createElement("template"));var P=Nci;S.call(b,P.content.cloneNode(!0),N.content.firstChild);bD$=N}N=bD$;return N},{mode:2});var Qq=function(){return _.z.apply(this,arguments)||this};
_.F(Qq,_.z);Qq.prototype.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{ypcOffersModalTopBarRenderer:{component:"yt-ypc-offers-modal-top-bar-renderer"}}},"data.content":{id:"content",mapping:{vcOfferLayoutRenderer:{component:"yt-vc-offer-layout-renderer"}}}}};
Qq.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Qq.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var N=this.scrollable;N.attached&&typeof N.attached==="function"&&N.attached()};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.p([_.dq("#scrollable"),_.y("design:type",Object)],Qq.prototype,"scrollable",void 0);_.p([_.U(),_.y("design:type",Object)],Qq.prototype,"data",void 0);_.p([_.J_({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Qq);
_.X(Qq,"yt-ypc-offers-modal-renderer",function(){if(w5k===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;qao===void 0&&(qao=document.createElement("template"));var P=qao;S.call(b,P.content.cloneNode(!0),N.content.firstChild);w5k=N}N=w5k;return N},{mode:2});var SLK;var PiB;var xr=function(){return _.z.apply(this,arguments)||this};
_.F(xr,_.z);_.v=xr.prototype;_.v.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.H4(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.v.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.St(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.v.onYtPopupOpened_=function(N,b){(b==null?void 0:b.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.sR(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.onYtPopupClosed_=function(N,b){this.continueButtonTapped||b&&(b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.data.onDismissCommands&&_.sR(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestError_=function(N){this.set("showSpinner",!1);_.I2(this.hostElement,N.detail.error.message)};
_.v.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.T("enable_ypc_spinners")?_.St(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
xr.prototype.onYtServiceRequestError_=xr.prototype.onYtServiceRequestError_;xr.prototype.onYtPopupClosed_=xr.prototype.onYtPopupClosed_;xr.prototype.onYtPopupOpened_=xr.prototype.onYtPopupOpened_;xr.prototype.onYtServiceRequestCompleted_=xr.prototype.onYtServiceRequestCompleted_;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);
_.p([_.U(),_.y("design:type",Object)],xr.prototype,"data",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],xr.prototype,"showSpinner",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],xr.prototype,"continueButtonTapped",void 0);_.p([_.U({value:function(){return this.onContinueTapped_.bind(this)}}),
_.y("design:type",Function)],xr.prototype,"bindOnContinueTapped_",void 0);_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xr.prototype,"onYtServiceRequestCompleted_",null);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],xr.prototype,"onYtPopupOpened_",null);
_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],xr.prototype,"onYtPopupClosed_",null);_.p([_.RA("yt-service-request-error"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],xr.prototype,"onYtServiceRequestError_",null);_.p([_.J_({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],xr);
_.X(xr,"yt-ypc-upgrade-dialog-renderer",function(){if(PiB===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;SLK===void 0&&(SLK=document.createElement("template"));var P=SLK;S.call(b,P.content.cloneNode(!0),N.content.firstChild);PiB=N}N=PiB;return N},{mode:2});var HDH;var s$I;var oM=function(){return _.z.apply(this,arguments)||this};
_.F(oM,_.z);oM.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oM.prototype.computeHasButtons_=function(N){return!(!N.dismissButton&&!N.confirmButton)};
oM.prototype.computeStyle_=function(N){return N||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],oM.prototype,"ytEventForwardingBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],oM.prototype,"data",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],oM.prototype,"positionType",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.y("design:type",Boolean)],oM.prototype,"hasButtons_",void 0);_.p([_.U({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.y("design:type",Boolean)],oM.prototype,"style_",void 0);_.p([_.J_({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],oM);
_.X(oM,"yt-bubble-hint-renderer",function(){if(s$I===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;HDH===void 0&&(HDH=document.createElement("template"));var P=HDH;S.call(b,P.content.cloneNode(!0),N.content.firstChild);s$I=N}N=s$I;return N},{mode:2});var KkS;var vI7;var i7=function(){var N=_.mN.apply(this,arguments)||this;N.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return N};
_.F(i7,_.mN);_.v=i7.prototype;_.v.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.v.attached=function(){var N=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){N.$.thumbnail.onShow();N.$["header-image"].onShow()})};
_.v.handleCheckBoxUpdateAction_=function(N){this.canShowCheckboxEnabledConfirmButton=N};
_.v.computeUseOverlayForSpinner_=function(N,b){return!!N&&b};
_.v.computeShowSpinner_=function(N,b){return N||!!b};
_.v.fireOnCloseActions_=function(){var N,b=_.O(((N=this.data)==null?void 0:N.onClosedActions)||[]);for(N=b.next();!N.done;N=b.next())this.ytRendererBehavior.resolveCommand(N.value)};
_.v.fireOnOpenCommands_=function(N){var b,S=(b=this.data)==null?void 0:b.onOpenCommands;if(S)for(N.stopImmediatePropagation(),N=_.O(S),b=N.next();!b.done;b=N.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.v.fireOnDismissCommands_=function(N){var b,S=(b=this.data)==null?void 0:b.onDismissCommands;if(S)for(N.stopImmediatePropagation(),N=_.O(S),b=N.next();!b.done;b=N.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.v.openPopupHandler_=function(N){N.detail==this&&this.fireOnOpenCommands_(N)};
_.v.closePopupHandler_=function(N,b){_.PN(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(N)};
_.v.onHeaderImageChanged_=function(){var N;((N=this.data)==null?0:N.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.v.computeHasHeaderImageWidth_=function(N){return N!=void 0};
_.v.computeHasLoadingMessage=function(N){return!!N};
_.v.onHeaderImageWidthChanged_=function(){var N,b=(N=this.data)==null?void 0:N.headerImageWidth;if(b){if(N=1.25*b*2+b,this.$.main.style.width=N+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=N+"px"}else this.$.main.style.width="100%"};
_.v.onThumbnailChanged_=function(){var N;((N=this.data)==null?0:N.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.v.onYtNavigate_=function(N){N=_.gQ(N);N instanceof Node&&_.sj(this.$["confirm-button"]).contains(N)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.v.computePrimaryIsCancel_=function(N){return N};
_.v.computeIsCancelButtonHidden_=function(N){return N.skipCancelButton||!N.cancelButton};
_.v.computeIsCheckboxHidden_=function(N){return!N.checkbox};
_.v.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.v.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.v.onYtServiceRequestCompleted_=function(){var N;((N=this.data)==null?0:N.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.d0.Object.defineProperties(i7,{template:{configurable:!0,enumerable:!0,get:function(){if(vI7===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;KkS===void 0&&(KkS=document.createElement("template"));var P=KkS;S.call(b,P.content.cloneNode(!0),N.content.firstChild);vI7=N}N=vI7;return N}}});
i7.prototype.onYtServiceRequestCompleted_=i7.prototype.onYtServiceRequestCompleted_;i7.prototype.onYtServiceRequestSent_=i7.prototype.onYtServiceRequestSent_;i7.prototype.onThumbnailLoaded_=i7.prototype.onThumbnailLoaded_;i7.prototype.onYtNavigate_=i7.prototype.onYtNavigate_;i7.prototype.onThumbnailChanged_=i7.prototype.onThumbnailChanged_;i7.prototype.onHeaderImageWidthChanged_=i7.prototype.onHeaderImageWidthChanged_;i7.prototype.onHeaderImageChanged_=i7.prototype.onHeaderImageChanged_;
i7.prototype.closePopupHandler_=i7.prototype.closePopupHandler_;i7.prototype.openPopupHandler_=i7.prototype.openPopupHandler_;_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],i7.prototype,"ytActionHandlerBehavior",void 0);_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);
_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],i7.prototype,"ytEventForwardingBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],i7.prototype,"data",void 0);_.p([_.U({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.y("design:type",Boolean)],i7.prototype,"primaryIsCancel",void 0);_.p([_.U({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],i7.prototype,"isCancelButtonHidden",void 0);
_.p([_.U({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.y("design:type",Boolean)],i7.prototype,"isCheckboxHidden",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],i7.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.p([_.U({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.y("design:type",Boolean)],i7.prototype,"useOverlayForSpinner_",void 0);
_.p([_.U({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.y("design:type",Boolean)],i7.prototype,"showSpinner_",void 0);_.p([_.U({value:!1}),_.y("design:type",Boolean)],i7.prototype,"isActionInProgress_",void 0);_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.y("design:type",Boolean)],i7.prototype,"hasHeaderImageWidth_",void 0);
_.p([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.y("design:type",Boolean)],i7.prototype,"hasLoadingMessage",void 0);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],i7.prototype,"openPopupHandler_",null);_.p([_.RA("yt-popup-closed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],i7.prototype,"closePopupHandler_",null);
_.p([_.W4("data.headerImage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i7.prototype,"onHeaderImageChanged_",null);_.p([_.W4("data.headerImageWidth"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i7.prototype,"onHeaderImageWidthChanged_",null);_.p([_.W4("data.thumbnail"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i7.prototype,"onThumbnailChanged_",null);
_.p([_.RA("yt-navigate"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],i7.prototype,"onYtNavigate_",null);_.p([_.RA("yt-img-shadow-loaded"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],i7.prototype,"onThumbnailLoaded_",null);_.p([_.RA("yt-service-request-sent"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.zR]),_.y("design:returntype")],i7.prototype,"onYtServiceRequestSent_",null);
_.p([_.RA("yt-service-request-completed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,_.I7]),_.y("design:returntype")],i7.prototype,"onYtServiceRequestCompleted_",null);_.p([_.J_({is:"yt-confirm-dialog-renderer",noInjection:!0})],i7);var ODi;var Ci7;var JY=function(){return _.z.apply(this,arguments)||this};
_.F(JY,_.z);JY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.H4(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
JY.prototype.computeConfirmButton_=function(N){var b={text:N.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};N.confirmNavigationEndpoint?b.navigationEndpoint=N.confirmNavigationEndpoint:N.confirmServiceEndpoint&&(b.serviceEndpoint=N.confirmServiceEndpoint);return b};
JY.prototype.computeShowTitle_=function(N){return!(N==null||!N.title)};
_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],JY.prototype,"data",void 0);_.p([_.U({computed:"computeShowTitle_(data)"}),_.y("design:type",Boolean)],JY.prototype,"showTitle",void 0);_.p([_.J_({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],JY);
_.X(JY,"yt-fancy-dismissible-dialog-renderer",function(){if(Ci7===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;ODi===void 0&&(ODi=document.createElement("template"));var P=ODi;S.call(b,P.content.cloneNode(!0),N.content.firstChild);Ci7=N}N=Ci7;return N});var G7o;var rSH;var Uo=function(){var N=_.z.apply(this,arguments)||this;N.spinnerActive=!1;return N};
_.F(Uo,_.z);Uo.prototype.created=function(){bFt(2201)};
Uo.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Uo.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Uo.prototype.onIronOverlayClosed=Uo.prototype.onIronOverlayClosed;Uo.prototype.onIronOverlayOpened=Uo.prototype.onIronOverlayOpened;_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.cS),_.y("design:type",Object)],Uo.prototype,"tpYtIronOverlayBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],Uo.prototype,"data",void 0);_.p([_.U(),_.y("design:type",Object)],Uo.prototype,"spinnerActive",void 0);
_.p([_.RA("iron-overlay-opened"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uo.prototype,"onIronOverlayOpened",null);_.p([_.RA("iron-overlay-closed"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Uo.prototype,"onIronOverlayClosed",null);_.p([_.J_({is:"yt-loading-renderer",disableElementRegistration:!0})],Uo);
_.X(Uo,"yt-loading-renderer",function(){if(rSH===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;G7o===void 0&&(G7o=document.createElement("template"));var P=G7o;S.call(b,P.content.cloneNode(!0),N.content.firstChild);rSH=N}N=rSH;return N},{mode:2});var cSI;var aBk;var ZQ=function(){var N=_.z.apply(this,arguments)||this;N.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);N.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);N.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.F(ZQ,_.z);_.v=ZQ.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.v.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.v.openPopupHandler_=function(N){N.detail===this.hostElement&&this.hostElement.hidden&&_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.v.onDismissButtonTap_=function(){var N;this.closeOnDismissButton_.has(((N=this.data)==null?void 0:N.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.onAcceptButtonTap_=function(){var N;this.closeOnAcceptButton_.has(((N=this.data)==null?void 0:N.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.computeHasHeader_=function(N){return!!N.headerBackgroundImage};
_.v.computeLayoutStyle_=function(N){return N};
_.v.computePopupSize_=function(N){return N};
_.v.computeIconType_=function(N){return N.dialogIcon&&N.dialogIcon.iconType?N.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":N.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":N.dialogIcon.iconType:""};
_.v.computeIsLogo_=function(N){return!!N.dialogIcon&&!!N.dialogIcon.iconType&&(N.dialogIcon.iconType==="YOUTUBE_LOGO"||N.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||N.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.v.computeHasCustomLogo=function(N){return!(N==null||!N.headerForegroundImage)};
_.v.computeCustomLogo=function(N,b){if(N!=null&&N.headerForegroundImage)return N.headerForegroundImageDark?b?N.headerForegroundImageDark:N.headerForegroundImage:N.headerForegroundImage};
_.v.computeHeaderBackgroundImage=function(N,b){if(N!=null&&N.headerBackgroundImage)return b&&(N==null?0:N.headerBackgroundImageDark)?N.headerBackgroundImageDark:N.headerBackgroundImage};
_.v.shouldShowIconContainer=function(N,b){return N&&!b};
_.v.shouldShowNonYouTubeIcon=function(N,b){return!N&&!b};
_.v.getLogoImageId=function(N){var b,S,P;return(N=(b=this.computeCustomLogo(N,this.isDarkTheme))==null?void 0:(S=b.thumbnails)==null?void 0:(P=S[0])==null?void 0:P.height)&&N%31===0?"custom-logo-with-padding":"custom-logo"};
ZQ.prototype.openPopupHandler_=ZQ.prototype.openPopupHandler_;ZQ.prototype.dataChanged_=ZQ.prototype.dataChanged_;_.p([_.L(_.un.YtRendererstamperBehavior),_.y("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.p([_.U(),_.y("design:type",Boolean)],ZQ.prototype,"isDarkTheme",void 0);
_.p([_.U({computed:"computeCustomLogo(data, isDarkTheme)"}),_.y("design:type",Object)],ZQ.prototype,"customLogo",void 0);_.p([_.U({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.y("design:type",Object)],ZQ.prototype,"headerBackgroundImage",void 0);_.p([_.U(),_.y("design:type",Object)],ZQ.prototype,"data",void 0);_.p([_.U({computed:"computeHasHeader_(data)"}),_.y("design:type",Boolean)],ZQ.prototype,"hasHeader",void 0);
_.p([_.U({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.y("design:type",Object)],ZQ.prototype,"layoutStyle",void 0);_.p([_.U({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.y("design:type",Object)],ZQ.prototype,"popupSize",void 0);_.p([_.U({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ZQ.prototype,"hasLogo",void 0);
_.p([_.U({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.y("design:type",Boolean)],ZQ.prototype,"hasCustomLogo",void 0);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],ZQ.prototype,"dataChanged_",null);_.p([_.RA("yt-popup-opened"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],ZQ.prototype,"openPopupHandler_",null);
_.p([_.J_({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],ZQ);
_.X(ZQ,"yt-upsell-dialog-renderer",function(){if(aBk===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;cSI===void 0&&(cSI=document.createElement("template"));var P=cSI;S.call(b,P.content.cloneNode(!0),N.content.firstChild);aBk=N}N=aBk;return N},{mode:2});var Rio=_.A(function(N){return _.c("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.c(_.W,{cond:N.title,then:function(b){return _.c("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},b)}}))},"kl"),WkD=_.A(function(N){return _.c("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.c(_.kY,{data:N.closeButton},{buttonViewModel:function(b){return _.c("div",null,_.c(_.j$,{data:b.data}))}}))},"ll"),nIo=_.A(function(N){var b=N.data;
return _.c(_.nM,null,_.c("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.c("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.c(_.W,{cond:function(){return!!b().image&&!!b().title},
then:function(){return _.c(_.gG,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.c("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.c(_.W,{cond:function(){return b().title},
then:function(S){return _.c("h3",{class:"miniAppGameInfoDialogViewModelTitle"},S)}}),_.c(_.W,{cond:function(){return b().primaryGenre},
then:function(S){return _.c("span",{class:"miniAppGameInfoDialogViewModelGenre"},S)}}))),_.c(_.W,{cond:function(){var S=b().description;
return S&&S.length<=150},
then:function(){return _.c("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.c("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return b().description}))}}))},"ml"),djc=_.A(function(N){var b=N.ageRating;
return _.c("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.c(_.gG,{data:function(){return{sources:[{url:b().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.c("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.c(_.mD,{text:function(){return b().attributedLabel},
noPreWrap:!0})))},"nl"),mjD=_.A(function(N){N=N.infoRows;
var b=_.aN().resolve(_.L$),S=_.T("enable_displaying_ppn");return _.c("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.c(_.zj,{each:N},function(P){return _.c("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.c(_.W,{cond:function(){return P.label},
then:function(H){return _.c("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},H)}}),_.c(_.W,{cond:function(){return P.attributedLabel},
then:function(H){return _.c("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.c(_.mD,{text:H,noPreWrap:!0}))}}),_.c(_.W,{cond:function(){return P.value},
then:function(H){return _.c("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},H)}}),_.c(_.W,{cond:function(){return P.attributedValue},
then:function(H){return _.c("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.c(_.mD,{text:H,noPreWrap:!0}))}}),_.c(_.W,{cond:function(){return P.ageRating},
then:function(H){return _.c(djc,{ageRating:H})}}))}),_.c(_.W,{cond:function(){return S&&b.clientData.has("post_play_nonce")},
then:function(){return _.c("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.c("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.c("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},b.getData("post_play_nonce")))}}))},"ol"),k7c=_.A(function(N){var b=N.data;
return _.c("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.c(Rio,{title:function(){return b().dialogTitle}}),_.c(nIo,{data:b}),_.c(_.W,{cond:function(){return b().infoRow},
then:function(S){return _.c(mjD,{infoRows:S})}}),_.c(WkD,{closeButton:function(){return b().closeButton}}))},"pl");
k7c.idomCompat=!0;_.qu(k7c,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;return _.c("yt-gulp-triggering-dialog-view-model",{class:_.KU("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.c(_.gG,{data:function(){return b().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.c("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.c("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.c("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c(_.W,{cond:function(){return b().bodyText},
then:function(S){return _.c(_.zj,{each:S},function(P){return _.c("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.c(_.mD,{text:P}))})}})),_.c("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.c(_.kY,{data:function(){return b().dismissButton}},{buttonViewModel:function(S){return _.c("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.c(_.j$,{data:S.data}))}}),_.c(_.kY,{data:function(){return b().actionButton}},{buttonViewModel:function(S){return _.c("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.c(_.j$,{data:S.data}))}}))))},"ql"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.kg}});var TcS=_.A(function(N){var b=N.data;N=_.$q(function(){return b().agreements},[]);
return _.c("installment-agreements-view-model",{class:_.KU("ytInstallmentAgreementsViewModelHost")},_.c(_.zj,{each:N},function(S){return _.c("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.c("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.c(_.mD,{text:S.label})),_.c("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.c(_.kY,{data:function(){return S.openButton}},{buttonViewModel:_.j$})))}))},"rl");
TcS.idomCompat=!0;var toh=_.A(function(N){var b=_.O(_.qI(function(){var g,e;return((g=N.data().createPlaylistDialogFormSchema)==null?0:(e=g.initialValues)==null?0:e.title)?N.data().createPlaylistDialogFormSchema.initialValues.title:""})),S=b.next().value,P=b.next().value;
b=_.O(_.qI(function(){N.data();return!1}));
var H=b.next().value,K=b.next().value;b=_.O(_.qI(function(){N.data();return!1}));
var C=b.next().value,G=b.next().value;b=_.O(_.qI(function(){var g,e;return(g=N.data().createPlaylistDialogFormSchema)==null?void 0:(e=g.initialValues)==null?void 0:e.visibility}));
var a=b.next().value,R=b.next().value;b=_.O(_.qI(function(){N.data();return!1}));
var n=b.next().value,d=b.next().value;b=_.O(_.qI(function(){var g,e;return(g=N.data().createPlaylistDialogFormSchema)==null?void 0:(e=g.initialValues)==null?void 0:e.isCollaborative}));
var m=b.next().value,k=b.next().value,M=_.Ct("div");_.gA(function(){var g=M.value.querySelector("textarea");g&&(g.value=S())},"axFRaf");
_.YU(function(){var g;Fn5((g=N.data().createPlaylistDialogFormSchema)==null?void 0:g.id,{onSubmit:function(){var e=S();var se=a(),Ca=m(),ML=N.data();e={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:e,privacyStatus:se,videoIds:ML.videoIds,sourcePlaylistId:ML.sourcePlaylistId,params:Ca?ML.createPlaylistParamsCollaborationEnabled:ML.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.aN().resolve(_.Wq).resolveCommand(e)},
isValid:function(){return H()&&!C()&&!n()}})});
var l=function(g){if(g!==void 0&&(P(g),!H()&&g.length>0&&K(!0),H())){var e=HmJ(N.data());if(e){var se=e.minLength;e=e.maxLength;se&&g.length<se?G(!0):e&&g.length>e?G(!0):G(!1)}}},u=function(){var g=!(!m()||a()!=="PRIVATE");
d(g)},J=function(g){g!==void 0&&(R(g),u())},Z=function(){if(n())return Kwa(N.data())},D=function(){k(!m());
u()},Y=function(){return{validate:function(g){if(H()){var e=HmJ(N.data());
if(e){var se=e.minLength;e=e.translations;if(se&&g.length<se)return e==null?void 0:e.minLengthErrorMessage}}}}},V=function(){var g=HmJ(N.data()),e=g==null?void 0:g.maxLength,se;
g=g==null?void 0:(se=g.translations)==null?void 0:se.maxLengthErrorMessage;if(e&&g)return{maxChars:e,errorMessage:g}};
return _.c("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.c("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:M},_.c(_.kY,{data:function(){return N.data().playlistTitle}},{textFormFieldViewModel:function(g){return _.c(wJL,{data:g.data,
text:S,onInput:l,validation:Y,characterLimit:V})},
textFieldViewModel:function(g){return _.c(q6L,{data:g.data,text:S,onInput:l,validation:Y,characterLimit:V})}})),_.c("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.c(_.kY,{data:function(){return N.data().playlistVisibility}},{dropdownViewModel:function(g){return _.c(C9L,{data:g.data,
onSelected:J,error:Z})}})),_.c(_.W,{cond:function(){return!!N.data().playlistCollaborate},
then:function(){return _.c("div",null,_.c(_.kY,{data:function(){return N.data().playlistCollaborate}},{switchListItemViewModel:function(g){return _.c(_.GTc,{data:g.data,
onTap:D})}}))}}))},"tl");var Moi=_.A(function(N){var b=N.data;return _.c("upsell-offer-table-cell-content-view-model",null,_.c("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.c(_.Al,null,_.c(_.ZH,{when:function(){var S;return(S=b().icon)==null?void 0:S.iconType}},function(){return _.c("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.c(_.cX,{icon:function(){var S;
return(S=b().icon)==null?void 0:S.iconType.toString()}}))}),_.c(_.ZH,{when:function(){return b().title}},function(){return _.c(_.mD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return b().title}})}),_.c(_.ZH,{when:function(){return b().subtitle}},function(){return _.c(_.mD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return b().subtitle}})}),_.c(_.ZH,{when:function(){return b().infoText}},function(){return _.c(_.mD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return b().infoText}})}),_.c(_.ZH,{when:function(){return b().featureDescription}},function(){return _.c(_.mD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return b().featureDescription}})}),_.c(_.ZH,{when:function(){return b().note}},function(){return _.c(_.mD,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return b().note}})})),_.c(_.W,{cond:function(){var S;
return(S=b().icon)==null?void 0:S.iconAccessibilityText},
then:function(){return _.c("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var S;return(S=b().icon)==null?void 0:S.iconAccessibilityText})}})))},"ul");
Moi.idomCompat=!0;var FkK=_.A(function(N){var b=N.data;var S=N.cellIndex;var P=N.rowIndex;return _.c("upsell-offer-table-cell-view-model",null,_.c("div",{class:_.KU("ytUpsellOfferTableCellViewModelCellWrapper",function(){return b().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":b().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var H,K;return"cell-"+((H=P==null?void 0:P())!=null?H:0)+"-"+((K=S==null?void 0:S())!=null?K:0)},
role:function(){return b().isFirstRow?"columnHeader":b().isFirstColumn?"rowheader":"gridcell"}},_.c(_.kY,{data:function(){return b().contents}},{upsellOfferTableCellContentViewModel:Moi})))},"vl");
FkK.idomCompat=!0;var BcB=_.A(function(N){var b=N.data;var S=N.upsellTableIsFirstRow;var P=N.rowIndex;var H=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},K=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.c("ytm-upsell-offer-table-row-view-model",null,_.c("div",{class:function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(P==null?void 0:P())+"-1 cell-"+(P==null?void 0:P())+"-2"}},_.c(_.kY,{data:function(){return b().rowHeaderCell}},{upsellOfferTableCellViewModel:function(C){return _.c("div",{class:H},_.c(FkK,{data:C.data,
cellIndex:0,rowIndex:P}))}}),_.c("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.c(_.kY,{data:function(){return b().contentCells}},{upsellOfferTableCellViewModel:function(C,G){return _.c("div",{class:K},_.c(FkK,{data:C.data,
cellIndex:function(){return G()+1},
rowIndex:P}))}}))))},"wl");
BcB.idomCompat=!0;var lBc=_.A(function(N){var b=N.data;return _.c("ytm-upsell-offer-table-view-model",null,_.c("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.c("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.c(_.kY,{data:function(){return b().rows}},{upsellOfferTableRowViewModel:function(S,P){return _.c(BcB,{data:S.data,
upsellTableIsFirstRow:function(){return P()===0},
rowIndex:P})}}))))},"xl");
lBc.idomCompat=!0;var Lk$=_.A(function(N){var b=function(){return N.data()},S=_.$q(N.noPadding,!1),P=function(){var K,C;
return(C=(K=b().logo.accessibilityData)==null?void 0:K.label)!=null?C:""},H={};
return _.c("upsell-view-model",{class:_.KU("ytUpsellViewModelHost",(H.ytUpsellViewModelHostNoPadding=function(){return S()},H.ytUpsellViewModelHostWide=function(){return b().offerTable!==void 0},H))},_.c("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.c(_.W,{cond:function(){return _.EW(b().logo)},
then:function(K){return _.c(_.gG,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:P})}})),_.c("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.c(_.mD,{text:function(){return b().title}})),_.c("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.c(_.zj,{each:function(){var K;
return(K=b().subtitles)!=null?K:[]},
keyBy:"INDEX"},function(K){var C={};return _.c("div",{class:_.KU("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(C.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return b().offerTable!==void 0},C))},_.c(_.mD,{text:K}))})),_.c("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.c(_.zj,{each:function(){var K;
return(K=b().benefitInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){return _.c(_.W,{cond:function(){return K().info},
then:function(C){return _.c("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.c(_.cX,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.c(_.mD,{text:C}))}})})),_.c(_.W,{cond:function(){return b().offerTable!==void 0},
then:function(){return _.c("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.c(_.kY,{data:function(){return b().offerTable}},{upsellOfferTableViewModel:function(K){return _.c(lBc,{data:K.data})}}))}}),_.c("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.c(_.zj,{each:function(){var K;
return(K=b().legalInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){var C={};return _.c("div",{class:_.KU("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(C.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return b().offerTable!==void 0},C))},_.c(_.mD,{text:K}))})))},"yl");var fBo=_.A(function(N){var b=N.data;N={};N=(N.ytMiniAppScoreChallengeViewModelScoreRadial=!0,N.ytMiniAppScoreChallengeViewModelDarkScoreRadial=vpt(),N);return _.c("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.c("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),_.c("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),_.c("div",{class:_.ff(N)},_.c("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return b().score})),_.c("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))},"zl");var uHi=function(){this.store=_.gq();this.formId=""};
uHi.prototype.onInit=function(N){N.formId&&(this.formId=N.formId,this.store.dispatch(_.HU({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
uHi.prototype.cleanup=function(){this.store.dispatch(_.HU({type:"RESET_COMMAND_MAP"}))};var Q$I=_.A(function(N){function b(G){if(G&&(G=_.t(G,_.F$)))return Object.assign({},G,{isSelected:K()})}
var S=_.O(_.qI(function(){var G,a;return(a=(G=_.t(N.data().option,_.F$))==null?void 0:G.isSelected)!=null?a:!1})),P=S.next().value,H=S.next().value,K=P;
_.YU(function(){var G;Fn5((G=N.data().formSchema)==null?void 0:G.id,{onSubmit:function(){var a=_.aN().resolve(_.Wq),R=!!N.data().selectedCommand,n=!!N.data().unselectedCommand;if(K()){if(R)var d=N.data().selectedCommand}else n&&(d=N.data().unselectedCommand);d=_.UZ(d);b(N.data().option)&&!d?(a="",!R&&n?a="selected ":R&&!n&&(a="unselected "),R=new _.jU("No "+a+"command found for SelectionListItemFormViewModel"),_.ge(R)):d&&a.resolveCommand(d)},
isValid:function(){return!0}})});
var C=function(){H(!K())};
_.ej(function(){var G,a,R=(G=N.data())==null?void 0:(a=G.formSchema)==null?void 0:a.id;R&&_.dx()().delete(R)});
return _.c("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.c("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.c(_.mD,{text:function(){return N.data().paragraph}})),_.c(_.W,{cond:function(){return b(N.data().option)},
then:function(G){return _.c(_.di,{data:G,isCompact:!0,hideSelectionTextChevron:!0,onTap:C,disableHorizontalPadding:!0})}}))},"Al");var xjK=_.A(function(N){var b=N.data;var S=N.disablePadding;var P=N.className;var H=_.Ct("yt-dialog-header-view-model"),K=function(){var a=b().imageBanner;a:switch(b().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var R="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:R="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:a,style:R,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},C=function(){return b().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
G=function(){return b().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.YU(function(){var a=function(){_.St(H.value,"yt-refit-popups-action")},R;
(R=H.value)==null||R.addEventListener("image-loaded",a);_.ej(function(){var n;(n=H.value)==null||n.removeEventListener("image-loaded",a)})});
N={};return _.c("yt-dialog-header-view-model",{el:H,class:_.KU(P,(N.ytDialogHeaderViewModelHost=!0,N.ytDialogHeaderViewModelHostDisablePadding=S,N.ytDialogHeaderViewModelHostCentered=G,N))},_.c(_.W,{cond:function(){return b().imageBanner},
then:function(){var a={};return _.c("div",{class:_.KU(P,(a.ytDialogHeaderViewModelBanner=!0,a.ytDialogHeaderViewModelBannerFullBleed=C,a)),style:_.r5({"max-height":function(){return b().assetContainerMaxHeight!==void 0?b().assetContainerMaxHeight+"px":void 0}})},_.c(_.ZU,{data:K,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.c(_.W,{cond:function(){return b().headerBlock},
then:function(){var a={};return _.c("div",{class:_.KU("ytDialogHeaderViewModelHeaderBlock",(a.ytDialogHeaderViewModelHeaderBlockCentered=G,a))},_.c(_.kY,{data:function(){return b().headerBlock}},{contentPreviewImageViewModel:function(R){return _.c(_.ZU,{data:R.data,
notifyOnLoaded:!0})}}))}}),_.c(_.W,{cond:function(){return b().customBanner},
then:function(a){var R={};return _.c("div",{class:_.KU("ytDialogHeaderViewModelCustomAssetContainer",(R.ytDialogHeaderViewModelCustomAssetContainerCentered=G,R))},_.c(_.kY,{data:a},{avatarStackViewModel:_.rZ}))}}),_.c(_.W,{cond:function(){return b().headline},
then:function(a){return _.c("h2",null,_.c(_.mD,{text:a,className:"ytDialogHeaderViewModelText"}))}}))},"Bl");
xjK.idomCompat=!0;var oIi=_.A(function(N){var b=_.eQu(function(){return N.data().formId}),S=b.submitForm,P=b.isValid;
return _.c("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.c(_.kY,{data:function(){return N.data().panelFooter}},{panelFooterViewModel:function(H){return _.c(Eg,{data:H.data,
disablePadding:!0,disablePrimaryButton:function(){return!P()},
onClickPrimaryButton:function(){S()}})}}))},"Cl");var iDk=_.A(function(N){var b=function(){var S,P;return(P=(S=_.t(N.data().rendererContext,_.Mv))==null?void 0:S.label)!=null?P:""};
return _.c("yt-dialog-image-content-view-model",{class:_.KU("ytDialogImageContentViewModelHost",N.className)},_.c(_.W,{cond:function(){return _.EW(N.data().image)},
then:function(S){var P={};return _.c("div",{style:_.r5((P.width=(0,_.ai)(function(){var H;return(H=N.data().imageMaxWidth)!=null?H:""}),P)),
class:"ytDialogImageContentViewModelImage"},_.c(_.gG,{data:S,alt:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.c(_.mD,{text:function(){return N.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Dl");var ZDi=_.A(function(N){var b=_.h_(N,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),S=b.elRefCallback;N=b.Icon;var P=b.Asset,H=b.assetType,K=b.Title,C=b.LeadingActionHeader,G=b.TrailingActionHeader,a=b.headerPosition,R=b.Content,n=b.buttonLayout,d=b.buttonStyle,m=b.primaryButtonWiz,k=b.secondaryButtonWiz,M=b.contentAlignment,l=b.isFullscreen,u=b.width,J=b.maxHeight,Z=b.isHeaderWizDefined,D=b.Header,Y=b.isFooterWizDefined,
V=b.Footer;b=_.Ct("dialog-layout",function(jp){S==null||S(jp)});
var g=m?function(){var jp={};return m({buttonOverrides:function(){return{style:(d==null?void 0:d())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.KU((jp["yt-spec-dialog-layout__dialog-layout-button"]=!0,jp["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},jp))})}:void 0,e=k?function(){var jp={};
return k({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.KU((jp["yt-spec-dialog-layout__dialog-layout-button"]=!0,jp["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},jp))})}:void 0,se=function(){return(!!K||!!C||!!G)&&a()===0},Ca={},ML={},na={},To={};
return _.c("dialog-layout",{el:b,class:_.KU((Ca["yt-spec-dialog-layout"]=!0,Ca["yt-spec-dialog-layout--dialog-layout-fullscreen"]=l,Ca["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!l()},Ca["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return J()===1},Ca["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(H==null?void 0:H())===1},Ca)),
style:function(){return(u==null?void 0:u())!==void 0?"width: "+u()+"px;":""}},N?_.c("div",{class:_.KU((ML["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ML["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!P&&a()===1},ML["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return M()===1},ML))},_.c(N,null)):null,_.c(_.W,{cond:Z,
then:function(){return D?_.c("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.c(D,null)):null},
else:function(){return _.c(_.nM,null,_.c(_.W,{cond:se,then:function(){return _.c(JSc,{contentAlignment:M,LeadingActionHeader:C,TrailingActionHeader:G,Title:K,isAboveAsset:!!P})}}),P?_.c("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.c(P,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.c("div",{class:_.KU((na["yt-spec-dialog-layout__dialog-layout-container"]=!0,na["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(M==null?void 0:M())===1},
na["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!K&&!(D&&Z())||!!P&&(a==null?void 0:a())===0},na))},_.c(_.W,{cond:function(){return K&&!D&&(a==null?void 0:a())===1},
then:function(){return _.c(JSc,{contentAlignment:M,LeadingActionHeader:C,TrailingActionHeader:G,Title:K,isAboveAsset:!1})}}),R?_.c("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.c("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.c(R,null))):null,_.c(_.W,{cond:Y,
then:function(){return V?_.c("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.c(V,null)):null}}),g||e?_.c(UjL,{footerClasses:_.KU((To["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,To["yt-spec-dialog-layout__dialog-layout-footer"]=!0,To["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(n==null?void 0:n())===2},To["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(n==null?void 0:n())===1},To)),
PrimaryButton:g,SecondaryButton:e}):null))},"El"),JSc=_.A(function(N){var b=_.h_(N,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),S=b.contentAlignment,P=b.LeadingActionHeader;N=b.Title;var H=b.TrailingActionHeader,K=b.isAboveAsset,C=b.enableLeadingActionHeader;b={};return _.c("div",{class:_.KU((b["yt-spec-dialog-layout__dialog-header-container"]=!0,b["yt-spec-dialog-layout__dialog-header"]=!0,b["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=K,b["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(S==null?void 0:S())===1&&C()},b))},_.c(_.W,{cond:function(){return C()},
then:function(){return P?_.c("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.c(P,null)):null}}),N?_.c("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.c(N,null)):null,H?_.c("div",null,_.c(H,null)):null)},"Fl"),UjL=_.A(function(N){var b=N.footerClasses;
var S=N.PrimaryButton;N=N.SecondaryButton;return _.c("div",{class:b},N?_.c(N,null):null,S?_.c(S,null):null)},"Gl");var j$i=new _.nO("TIME_PICKER_VIEW_MODEL_TOKEN");var zi$=_.A(function(N){var b=N.data;return _.c("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.c("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.c(_.kY,{data:function(){return b().avatar}},{avatarViewModel:_.CH})),_.c("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c(_.mD,{text:function(){return b().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Hl");var ASi=_.A(function(N){return _.c("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.c(_.mD,{text:function(){return N.data().inviteMessage}})),_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.c(_.mD,{text:function(){return N.data().attributedAccountSectionHeaderText}})),_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.c(_.kY,{data:function(){return N.data().accountAvatar}},{avatarViewModel:_.CH}),_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.c(_.mD,{text:function(){return N.data().accountName}}),_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.c(_.mD,{text:function(){return N.data().handle}}))),_.c(_.kY,{data:function(){return N.data().trailingButton}},{buttonViewModel:_.j$})),_.c("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.c(_.mD,{text:function(){return N.data().termsOfService}})))},"Il");var Xhk=_.A(function(N){var b=N.data;return _.c("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.c("div",{class:"ytAccessConfirmationViewModelContent"},_.c(_.kY,{data:function(){var S;return(S=b().avatar)!=null?S:b().dualAvatar}},{dualAvatarViewModel:function(S){return _.c(_.Pio,{data:S.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(S){return _.c(_.Gg,{data:S.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.c("h2",{class:"ytAccessConfirmationViewModelTitle"},_.c(_.mD,{text:function(){return b().title}})),_.c(_.mD,{text:function(){return b().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Jl");var EIL=_.A(function(N){var b=_.O(_.qI(function(){var C,G;return(C=N.data().formSchema)==null?void 0:(G=C.initialValues)==null?void 0:G.selectedLanguages})),S=b.next().value,P=b.next().value,H={};
_.gA(function(){var C=N.data().formSchema,G=C==null?void 0:C.submitConfig;N.data()!==H&&(H=N.data(),C&&G&&Mto(C.id,{isValid:function(){var a;return((a=S())!=null?a:[]).length>0},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:S()||[]}}},
submitConfig:G}))},"XyMWJe");
var K=function(C){var G=C.key;if(G){var a;if(G&&((a=S())==null?0:a.includes(G))){var R;P((R=S())==null?void 0:R.filter(function(n){return n!==G}))}else P([].concat(_.IX(S()||[]),[G]))}};
return _.c("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.c(_.kY,{data:function(){return N.data().checkboxGroup}},{checkboxGroupViewModel:function(C){return _.c(eQt,{data:C.data,
onItemTap:K,selectedKeys:S,controlledMode:!0,disableHorizontalPadding:N.disableHorizontalPadding})}}))},"Ll");var phD=_.A(function(N){var b=N.data;var S=void 0;N=_.O(_.qI(function(){var n;return((n=_.t(b().content,Ym6))==null?void 0:n.defaultSelectedKey)||""}));
var P=N.next().value,H=N.next().value,K,C=function(){H("");var n;(n=S)==null||n.cleanup()};
_.YU(function(){S=new uHi;window.addEventListener("yt-popup-closed",C)});
_.gA(function(){if(S&&K!==b().formId&&(S.onInit(b()),(K=b().formId)&&P())){var n=S,d={key:P()};d.command&&n.store.dispatch(uIi(K,d.command))}},"bo7oA");
_.ej(function(){window.removeEventListener("yt-popup-closed",C)});
var G=function(n,d,m){d.key&&m&&d.key!==P()&&(H(d.key),S&&d.command&&S.store.dispatch(uIi(m,d.command)))},a=function(){if(_.t(b().content,Ym6))return!(P==null?0:P())},R=_.aN().resolve(_.cq(j$i));
return _.c("yt-dialog-view-model",{class:_.KU("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.c(ZDi,{Header:function(){return _.c(_.kY,{data:function(){return b().header}},{dialogHeaderViewModel:function(n){return _.c(xjK,{data:n.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!b().header},
Content:function(){return _.c(_.kY,{data:function(){return b().customContent?b().customContent:b().content}},Object.assign({},{basicContentViewModel:_.W3,
createPlaylistDialogFormViewModel:toh,collaborativePlaylistInviteMessageViewModel:ASi,preferredLanguageSettingsPanelViewModel:function(n){return _.c(EIL,{data:n.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:fBo,radioButtonGroupViewModel:function(n){var d=n.data;return _.c(V5i,{data:d,selectedKey:P,onSelected:G,groupName:function(){return d().formId}})},
selectionListItemFormViewModel:Q$I,upsellViewModel:function(n){return _.c(Lk$,{data:n.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:zi$,installmentAgreementsViewModel:TcS,accessConfirmationViewModel:Xhk,listViewModel:function(n){return _.c(_.m0O,{data:n.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:iDk},R&&{timePickerViewModel:R}))},
Footer:function(){return _.c(_.kY,{data:function(){return b().footer}},{panelFooterViewModel:function(n){return _.c(Eg,{data:n.data,
disablePadding:!0,disablePrimaryButton:a})},
formPanelFooterViewModel:oIi,formFooterViewModel:function(n){return _.c(Efa,{data:n.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!b().footer}}))},"Nl");
phD.idomCompat=!0;_.qu(phD,"yt-dialog-view-model",{props:{data:_.kg},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var YLK=_.A(function(N){var b=N.data;return _.c("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.c(_.W,{cond:function(){return b().title},
then:function(S){return _.c("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.c(_.mD,{text:S,className:"ytPanelHeaderViewModelTitle"}))}}),_.c(_.W,{cond:function(){return b().subtitle},
then:function(S){return _.c(_.mD,{text:S,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Ol"),ySH=_.A(function(N){var b=N.data;
var S=_.lkO(function(){return b().rendererContext});
N={};return _.c("yt-panel-header-view-model",{class:_.KU("ytPanelHeaderViewModelHost",(N.ytPanelHeaderViewModelHostHideDivider=function(){return!!b().shouldHideDivider},N.ytPanelHeaderViewModelHostCompact=function(){return!!b().subtitle},N)),
"aria-label":function(){var P;return(P=S())==null?void 0:P.label}},_.c(_.W,{cond:function(){return _.o2(b().rendererContext)},
then:function(){return _.c(_.bI9,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.xY(b().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.c(YLK,{data:b}))},
else:function(){return _.c(YLK,{data:b})}}),_.c("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.c(_.kY,{data:function(){return b().trailingButtons}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Pl");
ySH.idomCompat=!0;var IBj=_.A(function(N){var b=_.Ob(function(K){var C;if((C=N.skipContentClick)==null?0:C.call(N))return!1;N.onContentWrapperClick(K);return!0}),S,P,H;
return _.c("div",{class:_.KU("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return N.isAnimating()?"transform: translateY("+N.currentY()+"px);transition: 0.2s":""}},(S=N.header)==null?void 0:S.call(N),_.c("div",{id:N.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.r5({"max-height":(0,_.ai)(N.maxHeightForContentWrapper)}),"on:scroll":_.Ob(function(K){return N.onScroll(K),!1}),
"on:touchmove":_.Ob(function(K){return K.stopPropagation(),!1})},_.c("div",{el:_.VN(N.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":b},(P=N.body)==null?void 0:P.call(N))),(H=N.footer)==null?void 0:H.call(N))},"Ql");
IBj.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var DjI=_.A(function(N){var b=_.$q(N.leadingLabel),S=_.$q(N.trailingLabel),P=_.$q(N.footerButtonType),H=function(){return b()||S()||N.hasPrimaryButton()||N.hasSecondaryButton()},K={},C=_.KU("yt-spec-bottom-sheet-layout__primary-button",(K["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return P()===0&&N.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return P()===1&&N.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return P()===2&&N.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return P()===3&&N.hasPrimaryButton()},K));
K={};var G=_.KU("yt-spec-bottom-sheet-layout__secondary-button",(K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return P()===1&&N.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return P()===2&&N.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return P()===3&&N.hasPrimaryButton()},K));
return _.c(_.W,{cond:N.hasFooterOverride,then:function(){var a;return _.c(_.nM,null,(a=N.footerOverride)==null?void 0:a.call(N))},
else:function(){return _.c(_.W,{cond:H,then:function(){return _.c("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.c(_.W,{cond:function(){return b()||S()},
then:function(){var a={};return _.c("div",{class:_.KU("yt-spec-bottom-sheet-layout__footer-label-wrapper",(a["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!N.hasPrimaryButton()},a))},_.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},b)}}),_.c(_.W,{cond:S,
then:function(){return _.c("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},S)}}))}}),_.c(_.W,{cond:function(){return N.hasPrimaryButton()||N.hasSecondaryButton()},
then:function(){var a={};return _.c("div",{class:_.KU("yt-spec-bottom-sheet-layout__footer-button-wrapper",(a["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$RV,a))},_.c(_.W,{cond:function(){return N.hasSecondaryButton()&&P()!==0},
then:function(){var R;return _.c("div",{class:G},(R=N.secondaryButton)==null?void 0:R.call(N))}}),_.c(_.W,{cond:N.hasPrimaryButton,
then:function(){var R;return _.c("div",{class:C},(R=N.primaryButton)==null?void 0:R.call(N))}}))}}))}})}})},"Rl");
DjI.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Vok=_.A(function(N){var b=_.$q(N.title),S=_.$q(N.subtitle);return _.c("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:N.headerId,"on:touchstart":_.Ob(function(P){var H;(H=N.touchstart)==null||H.call(N,P);return!1}),
"on:touchmove":_.Ob(function(P){var H;(H=N.touchmove)==null||H.call(N,P);return!1}),
"on:touchend":_.Ob(function(P){var H;(H=N.touchend)==null||H.call(N,P);return!1})},_.c("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.c(_.W,{cond:N.hasHeaderOverride,
then:function(){var P;return _.c(_.nM,null,(P=N.headerOverride)==null?void 0:P.call(N))},
else:function(){var P={};return _.c("div",{class:_.KU((P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=b,P))},_.c("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.c(_.W,{cond:b,then:function(){return _.c(_.nM,null,_.c("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},b),_.c(_.W,{cond:S,then:function(){return _.c("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
S)}}))}})),_.c(_.W,{cond:function(){return b()&&N.hasActionHeader()},
then:function(){var H;return _.c("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(H=N.actionHeader)==null?void 0:H.call(N))}}))}}))},"Sl");
Vok.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.A(function(N){function b(se){if(!D&&typeof MutationObserver!=="undefined"){var Ca={childList:!0};"MutationObserver"in window&&(D=new MutationObserver(S.bind(void 0,se)),D.observe(se,Ca))}}
function S(se){typeof D!=="undefined"&&(Y["content-wrapper"]===void 0&&(Y["content-wrapper"]=se.children[0].clientHeight),l(Y["content-wrapper"]),M()>u()||J(M()))}
function P(){k(window.innerHeight);M()>u()||J(M());V.isFullScreen[0]()&&M()>u()?g().dispatch("Snap To Full Screen",{maxHeight:Z()}):g().dispatch("Snap To Neutral Position",{maxHeight:u()})}
function H(se){document.body.style.overscrollBehavior="none";se.preventDefault();g().dispatch("Touch Start",{event:se})}
function K(se){se.preventDefault();g().dispatch("Touch Move",{event:se,contentScrollable:M()>u(),fullContentWrapperHeight:Z(),contentWrapperHeight:u(),heightMap:Y,contentWrapperId:"content-wrapper",header:cmE(N),footer:cmE(N),headerDivHeight:Y["bottom-sheet-header"],footerDivHeight:Y["bottom-sheet-footer"]})}
function C(){document.body.style.overscrollBehavior="";V.isFullScreen[0]()?V.currentY[0]()>=60?g().dispatch("Snap To Neutral Position",{maxHeight:u()}):g().dispatch("Snap To Full Screen",{maxHeight:Z()}):V.currentY[0]()>=60?G():V.currentY[0]()<=-60&&M()>u()?g().dispatch("Snap To Full Screen",{maxHeight:Z()}):g().dispatch("Snap To Neutral Position",{maxHeight:u()})}
function G(){g().dispatch("Close Sheet",{clientHeight:m(),maxHeight:0});setTimeout(function(){rmw()},250)}
var a=_.Ct("div"),R=_.Ct("div"),n=_.O(_.QF(window.innerHeight,void 0,"CmOsU")),d=n.next().value;n=n.next().value;var m=d,k=n;n=_.O(_.QF(0,void 0,"p0Flhb"));d=n.next().value;n=n.next().value;var M=d,l=n;n=_.O(_.qI(function(){var se=cmE(N);return.6*m()-OmQ(se)-CJO(se)}));
d=n.next().value;n=n.next().value;var u=d,J=n,Z=function(){var se=cmE(N),Ca=m(),ML=Y["bottom-sheet-header"],na=Y["bottom-sheet-footer"];return Ca-(se.hasHeaderFn&&ML!==void 0?ML:OmQ(se))-(se.hasFooterFn&&na!==void 0?na:CJO(se))-24-24},D=null,Y={},V={initialY:_.QF(0,void 0,"sxdESd"),
currentY:_.QF(0,void 0,"GZzqeb"),isAnimating:_.QF(!1,void 0,"vJBupc"),isFullScreen:_.QF(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.qI(u)},g=function(){var se=null;return function(){if(!se){var Ca={initialY:V.initialY[0](),currentY:V.currentY[0](),isAnimating:V.isAnimating[0](),isFullScreen:V.isFullScreen[0](),maxHeightForContentWrapper:V.maxHeightForContentWrapper[0]()};se=Gu5(Ca)}return se}}();
_.YU(function(){window.addEventListener("resize",P);g().subscribe(function(se){V.initialY[1](se.initialY);V.currentY[1](se.currentY);V.isAnimating[1](se.isAnimating);V.isFullScreen[1](se.isFullScreen);V.maxHeightForContentWrapper[1](se.maxHeightForContentWrapper)});
requestAnimationFrame(function(){a.value&&(Y["bottom-sheet-header"]=a.value.clientHeight);R.value&&(Y["bottom-sheet-footer"]=R.value.clientHeight)})});
_.ej(function(){window.removeEventListener("resize",P);D&&(D.disconnect(),D=null)});
var e=_.KU({"bottom-sheet-content-without-icon":function(){var se;return!((se=N.shouldShowIcons)==null?0:se.call(N))}});
return _.c("bottom-sheet-layout",null,_.c(IBj,{contentWrapperId:"content-wrapper",isAnimating:function(){return V.isAnimating[0]()},
currentY:function(){return V.currentY[0]()},
maxHeightForContentWrapper:function(){return V.maxHeightForContentWrapper[0]()},
shouldShowIcons:N.shouldShowIcons,skipContentClick:N.skipContentClick,onScroll:function(){var se=document.getElementById("bottom-sheet-header"),Ca=document.getElementById("content-wrapper");if(se&&Ca){var ML={};ML=(ML["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,ML["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,ML);se.className=Ca.scrollTop>1?_.ff(ML):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:rmw,contentWrapperEl:function(se){b(se);requestAnimationFrame(function(){S(se)})},
header:function(){return _.c("div",{el:a},_.c(Vok,{touchstart:H,touchmove:K,touchend:C,title:N.headerTitle,subtitle:N.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:N.headerFn,hasHeaderOverride:N.hasHeaderFn,actionHeader:N.headerActionHeader,hasActionHeader:N.hasHeaderActionHeader}))},
footer:function(){return _.c("div",{el:R},_.c(DjI,{footerButtonType:N.footerButtonType,leadingLabel:N.footerLeadingLabel,trailingLabel:N.footerTrailingLabel,primaryButton:N.footerPrimaryButton,hasPrimaryButton:N.hasFooterPrimaryButton,secondaryButton:N.footerSecondaryButton,hasSecondaryButton:N.hasFooterSecondaryButton,footerOverride:N.footerFn,hasFooterOverride:N.hasFooterFn}))},
body:function(){return _.c(_.W,{cond:N.hasContentFn,then:function(){var se;return _.c("div",{class:e},(se=N.contentFn)==null?void 0:se.call(N))}})}}))},"Tl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var gII=_.A(function(N){var b=_.aN().resolve(_.sD);return _.c("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Ob(function(){return void b.closeSheet()})},_.c(_.W,{cond:function(){return!!N.header},
then:function(){return _.c("div",{class:"ytContextualSheetLayoutHeaderContainer"},N.header())}}),_.c(_.W,{cond:function(){return!!N.content},
then:function(){return _.c("div",{class:"ytContextualSheetLayoutContentContainer"},N.content())}}),_.c(_.W,{cond:function(){return!!N.footer},
then:function(){return _.c("div",{class:"ytContextualSheetLayoutFooterContainer"},N.footer())}}))},"Ul");
gII.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var eiD=_.A(function(N){var b=N.data;var S=_.aN().resolve(_.Wq),P=_.Ct("yt-sheet-view-model",function(H){if(_.T("web_focus_first_element_sheet")||!_.T("sheet_focus_first_killswitch"))return H.addEventListener("focus",function(){dcq(H)}),function(){H.removeEventListener("focus",function(){dcq(H)})}});
N={};return _.c("yt-sheet-view-model",{"on:mousedown":_.Ob(function(H){_.T("sheet_focus_first_killswitch")||H.currentTarget!==H.target&&H.preventDefault()}),
"on:focus":_.Ob(function(){_.T("sheet_focus_first_killswitch")||dcq(P.value)}),
"on:mouseleave":_.Ob(function(){var H,K=b==null?void 0:(H=b())==null?void 0:H.rendererContext,C;(H=(C=_.t(K,_.J5))==null?void 0:C.onHoverEnd)&&S.resolveCommand(H)}),
class:_.KU("ytSheetViewModelHost",(N.ytSheetViewModelContextual=!0,N.ytSheetViewModelDisableBackdropFilter=_.T("web_disable_backdrop_filter"),N)),el:P,tabindex:-1},_.c(_.W,{cond:b,then:function(H){return _.c(gII,{header:function(){return _.c(_.kY,{data:function(){return H().header}},{panelHeaderViewModel:ySH})},
content:function(){return _.c(_.kY,{data:function(){return H().content}},{listViewModel:function(K){return _.c(_.m0O,{data:K.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Lk$,miniAppScoreChallengeViewModel:fBo})},
footer:function(){return _.c(_.kY,{data:function(){return H().footer}},{panelFooterViewModel:Eg})}})}}))},"Vl");
eiD.idomCompat=!0;_.qu(eiD,"yt-sheet-view-model",{props:{data:_.kg}});var hic=_.A(function(N){var b=function(){var S;return(S=N.data().enableDebuggingFeatures)!=null?S:!1};
return _.c("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.c(_.zj,{each:function(){var S;return(S=N.data().stickers)!=null?S:[]}},function(S){return _.c($jh,{data:function(){return S},
debugMode:b})}))},"Wl"),$jh=_.A(function(N){var b=_.h_(N,{debugMode:!1}).debugMode,S=_.$q(function(){var a;
return(a=N.data().region)==null?void 0:a.w},0),P=_.$q(function(){var a;
return(a=N.data().region)==null?void 0:a.h},0),H=_.$q(function(){var a;
return(a=N.data().region)==null?void 0:a.x},0),K=_.$q(function(){var a;
return(a=N.data().region)==null?void 0:a.y},0),C=_.Ob(function(){var a=N.data().onTap;
a&&_.AM(a)}),G={};
return _.c("div",{class:_.KU("ytStoriesStickerLayerViewModelSticker",(G.ytStoriesStickerLayerViewModelDebugMode=b,G)),style:_.r5({width:function(){return 100*S()+"%"},
height:function(){return 100*P()+"%"},
left:function(){return 100*H()+"%"},
top:function(){return 100*K()+"%"},
"flex-direction":function(){return aCt(N.data().flexDirection)},
"justify-content":function(){return RqQ(N.data().justifyContent)},
"align-items":function(){return Wwo(N.data().alignItems)}}),
"on:click":C},_.c(_.kY,{data:function(){return N.data().button||N.data().toggleButton}},{buttonViewModel:function(a){return _.c(_.j$,{data:a.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(a){return _.c(_.Hc,{data:a.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Xl");var who=_.A(function(N){var b=function(){return N.data()},S={},P=_.O(_.QF(!1,void 0,"SegA3d")),H=P.next().value,K=P.next().value,C=_.$q(function(){return b().backgroundColor},0);
P=_.$q(function(){return b().actionButtons},[]);
var G=_.$q(function(){return b().stickerLayer},{}),a=function(){var n,d;
return{animationRef:S,animationConfig:{autoplay:!1,loop:!1,path:(d=(n=b().foregroundAnimation)==null?void 0:n.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){K(!0)},
complete:function(){N.navigateToNextItemOnLottieComplete()}}}},R=function(){var n,d,m,k,M,l,u,J;
return{animationConfig:{autoplay:(l=(n=b().backgroundAnimation)==null?void 0:(d=n.settings)==null?void 0:d.autoplay)!=null?l:!1,loop:(u=(m=b().backgroundAnimation)==null?void 0:(k=m.settings)==null?void 0:k.loop)!=null?u:!1,path:(J=(M=b().backgroundAnimation)==null?void 0:M.url)!=null?J:"",name:"stories_item_background_animation"}}};
_.gA(function(){if(N.isVisible()&&H()){var n;(n=S.lottieEl)==null||n.play();N.animationRef()&&(N.animationRef().lottieEl=S.lottieEl)}else{var d;(d=S.lottieEl)==null||d.stop()}},"MxM2wb");
return _.c("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.r5({"background-color":function(){return _.o3(C())+";"}})},_.c("div",{class:"ytStoriesItemViewModelAssetContent"},_.c(_.W,{cond:function(){return!!b().backgroundAnimation},
then:function(){return _.c(_.Yg,{data:R,animationName:function(){return R().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.c(_.W,{cond:function(){return!!b().backgroundImage},
then:function(){return _.c(_.gG,{data:function(){return b().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.c(_.W,{cond:function(){return!!b().foregroundAnimation},
then:function(){return _.c(_.Yg,{data:a,animationName:function(){return a().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.c(_.W,{cond:function(){return!!b().foregroundImage},
then:function(){return _.c(_.gG,{data:function(){return b().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.c("div",{class:"ytStoriesItemViewModelTopShadow"}),_.c(_.kY,{data:function(){return G()}},{storiesStickerLayerViewModel:hic})),_.c("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.r5({"background-color":function(){return _.o3(C())}})},_.c("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.c(_.zj,{each:P},function(n){return _.c(qLL,{data:function(){return n},
pauseAutoNavigation:N.pauseAutoNavigation})}))))},"Zl"),N$L={style:"overlay",
type:"outline"},qLL=_.A(function(N){var b={};return _.c("div",{class:_.KU("ytStoriesItemViewModelActionButton",(b.ytStoriesItemViewModelStretchedActionButton=function(){return N.data().size==="STORIES_BUTTON_SIZE_STRETCH"},b)),
"on:click":_.Ob(N.pauseAutoNavigation)},_.c(_.kY,{data:function(){return N.data().button}},{buttonViewModel:function(S){return _.c(_.j$,{data:S.data,
buttonOverrides:N$L})}}))},"$l");var bgj={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.qu(_.A(function(N){var b=function(){var na;return(na=N.data().startIndex)!=null?na:0},S=_.O(_.qI(b)),P=S.next().value,H=S.next().value;
S=_.O(_.QF(!1,void 0,"sjy7s"));var K=S.next().value,C=S.next().value,G=function(){var na;return(na=N.data().storyItems)!=null?na:[]},a={},R=_.Ct("yt-stories-viewer-view-model"),n=function(){return N.data().dismissButton},d=function(){var na;
return _.UZ((na=_.t(n(),_.WC))==null?void 0:na.onTap)},m=_.Ct("div"),k,M,l=!1,u=function(){var na;
(na=k)==null||na.cancel();k=J(P()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});k.onfinish=function(){var To=_.t(G()[P()],tJJ),jp,Xf;To!=null&&To.foregroundAnimation&&((To==null?0:(jp=To.foregroundAnimation)==null?0:jp.url)||(To==null?0:(Xf=To.foregroundAnimation)==null?0:Xf.payload))||(P()!==G().length-1?(H(P()+1),u()):d()&&_.ZN(d()))}},J=function(na){return m.value.children[na].children[0]},Z=function(){for(var na=0;na<P();na++)J(na).style.transform=
"scaleX(1)"},D=function(){l||(K()?C(!1):(P()===G().length-1&&d()&&_.ZN(d()),J(P()).style.transform="scaleX(1)",P()!==G().length-1&&(H(P()+1),u())))},Y=function(){l||(K()?C(!1):(J(P()).style.transform="scaleX(0)",P()!==0&&H(P()-1),u()))},V=function(){C(!0)},g=function(){J(P()).style.transform="scaleX(1)";
P()!==G().length-1?(H(P()+1),u()):d()&&_.ZN(d())};
S=function(){l=!1;M=setTimeout(function(){C(!0);l=!0},300)};
var e=function(){clearTimeout(M);l&&K()&&C(!1)};
_.gA(function(){if(K()){var na;(na=k)==null||na.pause();var To;(To=a.lottieEl)==null||To.pause()}else{var jp;(jp=k)==null||jp.play();var Xf;(Xf=a.lottieEl)==null||Xf.play()}},"vAvZob");
_.gA(function(){Z();P()===b()&&u()},"uSlfE");
var se=function(na){na.key==="ArrowLeft"?Y():na.key==="ArrowRight"&&D()},Ca=function(na){if(na.target===R.value){(na=d())&&_.ZN(na);
clearTimeout(M);var To;(To=k)==null||To.cancel();var jp;(jp=a.lottieEl)==null||jp.stop();window.removeEventListener("keydown",se);window.removeEventListener("yt-popup-closed",Ca)}},ML=function(na){if(na.target===R.value){var To;
(To=a.lottieEl)==null||To.play();window.addEventListener("keydown",se);window.addEventListener("yt-popup-closed",Ca)}};
_.YU(function(){Z();u();window.addEventListener("yt-popup-opened",ML)});
return _.c("yt-stories-viewer-view-model",{el:R,class:_.KU("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.c("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.c("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Ob(Y),"on:mousedown":_.Ob(S),"on:mouseup":_.Ob(e),"on:mouseleave":_.Ob(e)}),_.c("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Ob(D),"on:mousedown":_.Ob(S),"on:mouseup":_.Ob(e),"on:mouseleave":_.Ob(e)})),
_.c("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.c(_.kY,{data:G},{storiesItemViewModel:function(na,To){var jp=na.data;return _.c(_.W,{cond:function(){return Math.abs(To()-P())<=1},
then:function(){var Xf={};return _.c("div",{class:_.KU("ytStoriesViewerViewModelStoryItem",(Xf.ytStoriesViewerViewModelActiveStoryItem=function(){return To()===P()},Xf))},_.c(who,{data:jp,
pauseAutoNavigation:V,navigateToNextItemOnLottieComplete:g,isVisible:function(){return To()===P()},
animationRef:a}))}})}})),_.c("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:m},_.c(_.zj,{each:G},function(){return _.c("div",{class:"ytStoriesViewerViewModelProgressBar"},_.c("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.c("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.c(_.gG,{data:bgj,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.c("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.c(_.kY,{data:function(){return N.data().menuButton}},{buttonViewModel:function(na){return _.c(_.j$,{data:na.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.c(_.kY,{data:function(){return N.data().muteButton}},{toggleButtonViewModel:function(na){return _.c(_.Hc,{data:na.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.c(_.kY,{data:n},{buttonViewModel:function(na){return _.c(_.j$,{data:na.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"cm"),"yt-stories-viewer-view-model",{props:{data:_.kg}});_.qu(_.A(function(N){var b=N.data;var S=_.Ct("yt-gen-ai-feedback-form-view-model"),P=[];return _.c("yt-gen-ai-feedback-form-view-model",{el:S,class:"ytGenAiFeedbackFormViewModelHost"},_.c(_.mD,{text:function(){return b().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.c("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.c(_.kY,{data:function(){return b().feedbackChips}},{toggleButtonViewModel:function(H){var K=H.data;
return _.c(_.Hc,{data:K,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(C){var G=K();G=_.t(G,_.dU);G=_.t(G==null?void 0:G.defaultButtonViewModel,_.WC).trackingParams;C?P.push(G):(C=P.indexOf(G),C>-1&&P.splice(C,1))}})}})),_.c(_.mD,{text:function(){return b().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.c("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.c(_.kY,{data:function(){return b().submitButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){npQ(S.value,P,b().uniqueId)}})}}),_.c(_.kY,{data:function(){return b().moreFeedbackButton}},{buttonViewModel:function(H){return _.c(_.j$,{data:H.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"dm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.kg},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var jX=function(){return _.z.apply(this,arguments)||this};
_.F(jX,_.z);jX.prototype.created=function(){bFt(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(IkQ);var N=_.aN().resolve(_.m8q);N&&(N.container=this.ytPopupContainerBehavior);if(N=_.aN().resolve(_.sD))N.container=this.ytPopupContainerBehavior;if(N=_.aN().resolve(_.KW)){var b=this.ytPopupContainerBehavior;N.containerWasInjected?_.$h(Error("tj")):N.container=b}};
jX.prototype.ensurePopupBelowPlayer=function(N,b){var S=_.aN().resolve(_.cq(_.$9));if(!S||!S.isOnWatch()||!_.qE())return!1;S=S.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.my().height>S+this.getPopupHeight(N,b)?(N.style.top="auto",N.style.bottom="0px"):(N.style.top=S+"px",N.style.bottom="auto");return!0};
jX.prototype.getPopupHeight=function(N,b){b&&(N.cachedPopupHeight=0);if(!N.cachedPopupHeight){b=0;var S=N.clientHeight,P=window.getComputedStyle(N);b+=parseInt(P.marginTop,10);b+=parseInt(P.marginBottom,10);N.cachedPopupHeight=S+b}return N.cachedPopupHeight};
jX.prototype.getElement=function(N){return document.createElement(N)};
_.p([_.L(O9K.YtPopupContainerBehavior),_.y("design:type",Object)],jX.prototype,"ytPopupContainerBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],jX.prototype,"ytComponentBehavior",void 0);_.p([_.Uj({disableElementRegistration:!0,is:"ytd-popup-container"})],jX);
_.X(jX,"ytd-popup-container",function(){if(wsS!==void 0)return wsS;var N=document.createElement("template");_.B(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);return wsS=N},{mode:1});var SEL;var P4i={};P4i.YtLogYpcFlowCommandsBehavior=[_.pG.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(N){_.t(N,vPt)&&(N=_.t(N,vPt))&&(N.serializedTransactionFlowLoggingParams?_.MqE(N.serializedTransactionFlowLoggingParams):N.serializedYpcCancelFlowLoggingParams?(N=N.serializedYpcCancelFlowLoggingParams)&&PJ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",N):N.serializedYpcResumeFlowLoggingParams?(N=N.serializedYpcResumeFlowLoggingParams)&&PJ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",N):N.serializedYpcPauseFlowLoggingParams?(N=N.serializedYpcPauseFlowLoggingParams)&&
PJ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",N):N.serializedYpcRefundFlowLoggingParams?(N=N.serializedYpcRefundFlowLoggingParams)&&qYJ("YPC_EVENT_TYPE_START",N):N.serializedYpcDeactivateFlowLoggingParams?(N=N.serializedYpcDeactivateFlowLoggingParams)&&PJ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",N):N.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(N=N.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&PJ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",N))},
handleLogYpcFlowDismiss_:function(N){_.t(N,KYL)&&(N=_.t(N,KYL),N.serializedTransactionFlowLoggingParams?_.Fm9(N.serializedTransactionFlowLoggingParams):N.serializedYpcCancelFlowLoggingParams?(N=N.serializedYpcCancelFlowLoggingParams)&&PJ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",N):N.serializedYpcResumeFlowLoggingParams?(N=N.serializedYpcResumeFlowLoggingParams)&&PJ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",N):N.serializedYpcPauseFlowLoggingParams?(N=N.serializedYpcPauseFlowLoggingParams)&&
PJ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",N):N.serializedYpcRefundFlowLoggingParams&&(N=N.serializedYpcRefundFlowLoggingParams)&&qYJ("YPC_EVENT_TYPE_CANCEL",N))}}];var Hgh={};Hgh.YtCancelRecurrenceBehavior=[_.r2.YtComponentBehavior,_.IvN,{attached:function(){var N=this;X$Q(this,function(b,S){return N.ypcCancelRecurrenceHandler(b,S)})},
ypcCancelRecurrenceHandler:function(N,b){var S=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return _.e_(Error("nm")),!0;_.AI(this.hostElement);var P=_.XM.instance,H=_.aN().resolve(_.cq(_.ts));P&&_.Eb(P,b)?_.pU(P,b).then(function(K){S.ypcCancelRecurrenceSuccess_(N,b,{data:K})},function(K){S.ypcCancelRecurrenceFailure_(N,b,K)}).thenCatch(function(){_.e_(Error("om"))}):H?H.requestDataForServiceEndpoint(b).then(function(K){S.ypcCancelRecurrenceSuccess_(N,
b,K)},function(K){S.ypcCancelRecurrenceFailure_(N,b,K)}).thenCatch(function(){_.e_(Error("om"))}):_.e_(Error("pm"));
return!0},
ypcCancelRecurrenceSuccess_:function(N,b,S){_.Xv(this.hostElement);S.data||(S={data:S});S.data&&S.data.actions&&_.sR(this.hostElement,S.data.actions,this.hostElement);S.data.messageRenderer?SRq(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&PJ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);_.bC(N,"yt-service-request-completed",S)},
ypcCancelRecurrenceFailure_:function(N,b,S){_.Xv(this.hostElement);SRq(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.bC(N,"yt-service-request-error",{error:S,params:[N,b]})}}];var sXL=function(N,b){_.NL.call(this,b)};
_.F(sXL,wF5);var KR$={};KR$.YtCompleteTransactionBehavior=[_.r2.YtComponentBehavior,_.IvN,{attached:function(){var N=this;X$Q(this,function(b,S){return N.ypcCompleteTransactionHandler(b,S)})},
completeTransaction:function(N,b){var S=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:N.data.buybucketParams,offer_params:N.data.offerParams};var P=_.aN().resolve(_.ts),H=N.data.completeTransactionEndpoint,K=this.get("ypcCompleteTransactionEndpoint.actions",H);K&&_.sR(this.hostElement,K,this.hostElement);return(K=_.XM.instance)&&_.Eb(K,H)?_.pU(K,H,b).then(function(C){return!C||(C==null?0:C.error)?(C=S.get("data.serializedTransactionFlowLoggingParams",N),_.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
C))):{data:C}}).then(function(C){return S.handleCompleteTransactionSuccess_(C,N)},function(){return S.handleCompleteTransactionFailure_(N)}):P.requestDataForServiceEndpoint(H,b).then(function(C){return S.handleCompleteTransactionSuccess_(C,N)},function(){return S.handleCompleteTransactionFailure_(N)})},
handleCompleteTransactionSuccess_:function(N,b){N.data||(N={data:N});if(N.data.messageRenderer)return _.f7(new sXL(N.data.messageRenderer));if(N.data.trackingParams){var S=_.Qh(),P=_.uZ();S&&P&&_.AZ(S,P,_.FA(N.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);wiQ(b);return _.KA(N)},
handleCompleteTransactionFailure_:function(N){N=this.get("data.serializedTransactionFlowLoggingParams",N);_.I3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N);return _.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N))},
ypcCompleteTransactionHandler:function(N,b){var S=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return _.e_(Error("qm")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&_.NZ(b.ypcCompleteTransactionEndpoint.gtmData);var P=_.aN().resolve(_.cq(_.ts));if(P){_.AI(this.hostElement);var H=_.XM.instance;H&&_.Eb(H,b)?_.pU(H,b).then(function(K){return!K||(K==null?0:K.error)?(K=S.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
b),_.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K))):{data:K}}).then(function(K){_.bC(N,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(b,K)},function(){return S.ypcCompleteTransactionFailure_(b)}):P.requestDataForServiceEndpoint(b).then(function(K){_.bC(N,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(b,K)},function(){return S.ypcCompleteTransactionFailure_(b)})}return!0},
ypcCompleteTransactionSuccess_:function(N,b){_.Xv(this.hostElement);b.data||(b={data:b});_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(N):(_.NZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",N));b.data.actions&&(N=qZq(b.data.actions),b=w7E(b.data.actions),N.length&&_.HN(this.hostElement,
N),b.length&&_.sR(this.hostElement,b,this.hostElement))},
ypcCompleteTransactionFailure_:function(N){_.Xv(this.hostElement);_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",N,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(N,b,S){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},S&&(b.errorType=S),_.Dn(N,b),_.VE()}}];var vwi={};vwi.YtEndpointHandlerWithYpcBehavior=[_.IvN,_.pG.YtActionHandlerBehavior,[{openWalletDialog:function(N,b,S,P,H,K,C){var G=this,a=_.Y9();b=b.replace(/-/g,"+").replace(/_/g,"/");var R=_.WN().get("hl");_.FfU(_.b0(_.DK),b,a.resolve,H,function(n){K&&K();a.reject(n)},R,function(n){return G.onServerBackendAnalyticEvent_(N,S,n)},this.onDialogClose_.bind(this),P,C);
return a.promise},
openFixFlowDialog:function(N,b,S,P){N=N.replace(/-/g,"+").replace(/_/g,"/");_.b0(_.DK).openFixFlowDialog(N,b,S,P)},
onDialogClose_:function(){_.St(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(N,b,S){_.bC(N,"yt-commerce-action-init-done");b&&_.HN(this.hostElement,[b,{backend_analytics:S}])}}],
_.Xo.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(N,b){N=this.get("data.nativeFlowEndpoint",b);b=this.get("data.fallbackEndpoint",b);N?_.HN(this.hostElement,[N]):b&&_.bC(this.hostElement,"yt-navigate",{endpoint:b})}}],
Hgh.YtCancelRecurrenceBehavior,KR$.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var N=this;X$Q(this,function(b,S,P){return N.handleYPCEndpoint(b,S,P)});
this.ypcRegisterActionMapJobId_=_.XC(_.Dj,function(){N.registerActionMap(N.buyFlowActionMap_)})},
detached:function(){var N=this;_.Dj.cancelJob(this.ypcRegisterActionMapJobId_);_.XC(_.Dj,function(){N.unregisterActionMap(N.buyFlowActionMap_)})},
handleYPCEndpoint:function(N,b,S){var P=b.ypcGetCartEndpoint;if(P){_.fA("commerce_transaction");var H=P.gtmId;H&&_.wt(H);(P=P.gtmData)&&_.NZ(P)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",b)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(N,b),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",b)!=null?(this.handleYPCFixInstrumentEndpoint_(N,b),!0):b.ypcPauseSubscriptionCommand?(lCn(this.hostElement,N,b,S),
!0):b.ypcResumeSubscriptionCommand?(u5q(this.hostElement,N,b),!0):b.getPaymentInstrumentsParamsCommand?(MME(this.hostElement,N,b),!0):b.ypcHandleTransactionEndpoint?(TVi(this.hostElement,N,b,S),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(N,b){var S=this;_.uC("ttcr",void 0,"commerce_transaction");b=b.ypcGetCartEndpoint;var P=b.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,H=P.encryptedPurchaseParams,K=P.serializedTransactionFlowLoggingParams,C=P.serializedPaymentsClientParams,G=this.createGetCartResponseFromParams_(P,b.offerParams,K);this.changeButtonState(N,!0);_.z5(this.openWalletDialog(N,H,P.ypcLogWalletAnalyticDataEndpoint,K,function(){S.changeButtonState(N,!1)},function(){S.changeButtonState(N,
!1)},C).then(function(a){return S.handleBuyFlowCompleteCallback_(N,G,a)},function(){return S.handleOnLoadError(G)}).then(function(a){return void S.handlePostPurchaseSuccess_(N,G,a)},function(a){return void S.handlePostPurchaseError_(a)}),function(){S.changeButtonState(N,!1);
N instanceof Element&&_.bC(N,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(N,b,S){var P=N.completeTransactionEndpoint,H=N.handleTransactionEndpoint;b={data:{offerParams:window.btoa(b),serializedTransactionFlowLoggingParams:S}};H?b.data.handleTransactionEndpoint=H:b.data.completeTransactionEndpoint=P;N.onCartDismissCommand&&(b.data.onCartDismissCommand=N.onCartDismissCommand);return b},
onGetCartServiceRequestCompleted_:function(N,b){var S=this,P=N.target;if(b&&b.data&&b.data.messageRenderer)_.Xv(this.hostElement),this.handleMessageRenderer_(b.data.messageRenderer),this.changeButtonState(P,!1);else{var H=this.get("data.encryptedPurchaseParams",b),K=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",b),C=this.get("data.ypcLogWalletAnalyticDataEndpoint",b),G=this.get("data.serializedPaymentsClientParams",b),a=this.getLoggingParams_(b);if(a||H||K)N.stopPropagation(),_.uC("ttcr",
void 0,"commerce_transaction"),H||_.Xv(this.hostElement),this.changeButtonState(P,!1),K?_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Vg("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:K}}},this]):H&&(this.changeButtonState(P,!0),N=null,N=this.openWalletDialog(P,H,C,a,function(){_.Xv(S.hostElement);S.changeButtonState(P,!1)},function(){_.Xv(S.hostElement);
S.changeButtonState(P,!1)},G),_.z5(N.then(function(R){return S.handleBuyFlowCompleteCallback_(P,b,R)},function(){return S.handleOnLoadError(b)}).then(function(R){return S.handlePostPurchaseSuccess_(P,b,R)},function(R){return S.handlePostPurchaseError_(R)}),function(){S.changeButtonState(P,!1);
_.bC(P,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(N,b){b&&b.endpoint&&b.endpoint.ypcGetCartEndpoint&&!b.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)&&_.sR(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)],N.target),_.AI(this.hostElement),this.changeButtonState(N.target,!0))},
onServiceRequestError_:function(N,b){if(b&&b.params&&b.params.length){b=_.O(b.params);for(var S=b.next();!S.done;S=b.next())if((S=S.value)&&S.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)&&_.sR(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)],N.target);_.Xv(this.hostElement);this.changeButtonState(N.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(N,b,S){var P=S.integratorData;return P==null||P===""||S.error!=null?(P=this.getLoggingParams_(b),String(S.error)==="-1"?(b.data.onCartDismissCommand&&_.sR(this.hostElement,[b.data.onCartDismissCommand],N),_.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P,!0))):_.f7(new sA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P))):b.data.handleTransactionEndpoint?tMi(this.hostElement,b.data.handleTransactionEndpoint,{payments_payload:P,funds_guarantee_callback_client_data:S.integratorClientCallbackData}):
this.completeTransaction(b,S)},
handlePostPurchaseSuccess_:function(N,b,S){b=S.data;var P=!1,H,K;if(b&&((H=b.command)==null?0:(K=H.commandExecutorCommand)==null?0:K.commands)){var C,G;H=(C=b.command)==null?void 0:(G=C.commandExecutorCommand)==null?void 0:G.commands;for(C=0;C<H.length;C++)if(_.t(H[C],_.EJO)){P=!0;break}}P||(b&&b.gtmDatas&&b.gtmDatas.length?_.NZ(b.gtmDatas[0]):_.NZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));S.data&&S.data.actions&&(b=qZq(S.data.actions),S=w7E(S.data.actions),b.length&&
_.HN(this.hostElement,b),S.length&&_.sR(this.hostElement,S,N))},
handlePostPurchaseError_:function(N){N&&N.payload&&N.payload.isUserDismiss||_.ge(Error("sm"))},
handleOnLoadError:function(N){N=this.getLoggingParams_(N);return _.f7(new sA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N))},
getLoggingParams_:function(N){return this.get("data.serializedTransactionFlowLoggingParams",N)},
handleMessageRenderer_:function(N){var b=_.yg(N,"renderer"),S=_.Vg("openPopupConfig");b==="confirmDialogRenderer"&&S&&_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:S.popupTypeMap[b],popup:N}},this])},
handleYPCFixInstrumentEndpoint_:function(N,b){var S=this,P=b.ypcFixInstrumentEndpoint;b=P.encryptedFixInstrumentParameters;this.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(N,!0);this.openFixFlowDialog(b,function(H,K){S.onFixFlowCompleteCallback_(P,H,K)},function(){return S.changeButtonState(N,!1)},function(){S.changeButtonState(N,!1);
S.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(N,b,S){var P=_.hl("payments.business.integration.scenario.FixInstrument");if(b==P.IntegratorCallbackType.ON_COMPLETE){b="FIX_FOP_EVENT_TYPE_CANCEL";var H=null;S.error!=null?S.error!=P.OnCompleteCallbackError.USER_CANCELLED&&(_.sR(this.hostElement,[N.errorAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_FAILURE",H="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.sR(this.hostElement,[N.successAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_SUCCESS");_.sR(this.hostElement,[N.onFinishAction],
this.hostElement);this.logFixFopEvent_(N,b,H)}},
logFixFopEvent_:function(N,b,S){(N=N.serializedFixFopLoggingParams)?(b={eventType:b,serializedFixFopLoggingParams:N},S!=null&&(b.errorType=S),_.Dn("fixFopFlow",b),_.VE()):_.ge(Error("tm"))},
changeButtonState:function(N,b){_.T("enable_ypc_spinners")&&N&&(N.is==="yt-button-renderer"||N.is==="ytd-button-renderer")&&(N.disabled=b)}}];var OgI=function(N){this.JSC$33767_clientRoot=N;this.feedbackCollectorActionMap={"yt-help-dialog-requested":xW_,"yt-feedback-dialog-requested":Q9E,"yt-signal-action-help":opn,"yt-signal-action-send-feedback":imE,"yt-send-feedback-action":UWi,"yt-user-feedback-endpoint":Zmi};_.Kt(_.sX.getInstance(),this.feedbackCollectorActionMap,this.JSC$33767_clientRoot)},C4L;var GJj=function(N){this.JSC$33772_clientRoot=N;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":j96.bind(null,this.JSC$33772_clientRoot),"yt-signal-action-delete-all-downloads":Amq,"yt-signal-action-delete-download":Xet,"yt-signal-action-delete-playlist-download":pen,"yt-signal-action-install-pwa":gpa,"yt-signal-action-refresh-downloads":DWE,"yt-offline-video-endpoint":$Wo,"yt-offline-playlist-endpoint":qGn,"yt-update-local-app-setting-command":NPQ,"yt-offline-orchestration-action-command":S7t,
"yt-signal-action-undo-delete-download":ym_,"yt-local-watch-history-command":sSa,"yt-signal-action-mark-download-to-mobile-edu-shown":vvO};_.Kt(_.sX.getInstance(),this.downloadManagerActionMap,this.JSC$33772_clientRoot);_.EK.instance=new _.EK},rvH;var z1=function(){var N=_.z.apply(this,arguments)||this;N.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};N.remoteApi_=null;return N};
_.F(z1,_.z);_.v=z1.prototype;
_.v.ready=function(){_.T("polymer_enable_mdx")&&(RsL({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.T("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.T("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.T("enable_cast_short_lived_lounge_token")}),_.Tx("yt-remote-connection-change",this.handleConnectionChange_,this),_.Tx("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Mr_())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.v.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.v.handleConnectionChange_=function(N){(this.mdxConnected=N)?(N=duL(),!N&&hL5()&&qji()&&(N={key:"cast-selector-receiver",name:qji()}),N=N.name):N=null;this.receiverName=N;_.Wv(this.remoteApi_);(this.remoteApi_=Mr_())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.v.handleReceiverAvailabilityChange_=function(){var N=nHL();hL5()&&_.l1("yt-remote-cast-available")&&N.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=N.length>0};
_.v.handleRemoteQueueChange_=function(){var N=this.currentVideoId_,b=this.currentListId_,S=ji(this.remoteApi_);this.currentVideoId_=S.videoId;this.currentListId_=S.listId;this.currentVideoId_&&_.St(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.T("polymer_enable_mdx_queue")?this.currentListId_:null,N,b])};
_.v.handleAddToQueueAction_=function(N){N=_.t(N,K7_);this.remoteApi_&&(N.videoId?this.remoteApi_.addVideo(N.videoId):N.playlistId&&this.remoteApi_.addPlaylist(N.playlistId))};
_.v.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.v.handleInsertInQueueAction_=function(N){N=_.t(N,v$i);this.remoteApi_&&N.videoId&&this.remoteApi_.JSC$20015_insertVideo(N.videoId)};
_.v.handleRemoveFromQueueAction_=function(N){N=_.t(N,OYt);this.remoteApi_&&N.videoId&&this.remoteApi_.JSC$20015_removeVideo(N.videoId)};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U(),_.y("design:type",Object)],z1.prototype,"appId",void 0);_.p([_.U(),_.y("design:type",Boolean)],z1.prototype,"mdxConnected",void 0);_.p([_.U(),_.y("design:type",Boolean)],z1.prototype,"receiverAvailable",void 0);_.p([_.U(),_.y("design:type",Object)],z1.prototype,"receiverName",void 0);_.p([_.U(),_.y("design:type",Object)],z1.prototype,"currentVideoId_",void 0);
_.p([_.U(),_.y("design:type",Object)],z1.prototype,"currentListId_",void 0);_.p([_.J_({is:"yt-mdx-manager",disableElementRegistration:!0})],z1);_.X(z1,"yt-mdx-manager",void 0,{mode:2});var cvH;var adB;var AY=function(){var N=_.z.apply(this,arguments)||this;N.APP_IDS={ytr:3,ytm:5};N.JSC$23115_timeoutId_=0;N.actionMap={"yt-open-create-family-dialog":"open"};return N};
_.F(AY,_.z);_.v=AY.prototype;_.v.created=function(){bFt(2200)};
_.v.detached=function(){this.observer_&&this.observer_.disconnect()};
_.v.open=function(N,b){var S=this,P=N.serializedYpcFamilyCreateLoggingParams;this.JSC$23115_timeoutId_=setTimeout(this.abort_.bind(this,N.postFlowErrorEndpoint,P),3E4);b&&(this.onReadyCallback_=b);var H=_.H4(this.hostElement).querySelector("#unicorn-iframe");P&&P&&hM_("ypcFamilyCreateFlowStarted",P);_.W3s("family_creation",function(){var K=_.hl("gapi.family_creation.render");_.hl("gapi.config.update")("iframes/family_creation/url",S.getFamilyCreationUrlWithUnicornParams_());var C=3;N.appId&&N.appId in
S.APP_IDS&&(C=S.APP_IDS[N.appId]);C={authUser:_.Vg("SESSION_INDEX")||0,clientId:C,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Vg("HL"),initialflow:[4,5,6,7],m:S.isMobile?1:0,onFlowComplete:S.onUnicornFlowComplete_.bind(S,N.postFlowSuccessEndpoint,P),onError:S.onUnicornFlowError_.bind(S,N.postFlowErrorEndpoint,P),onReady:S.onUnicornFlowReady_.bind(S,N.referencePcidParams)};K(H,C)})};
_.v.close=function(){_.H4(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.v.onUnicornFlowComplete_=function(N,b){this.close();b&&b&&hM_("ypcFamilyCreateFlowSucceeded",b);_.bC(this.hostElement,"yt-navigate",{endpoint:N})};
_.v.onUnicornFlowError_=function(N,b){this.close();b&&hM_("ypcFamilyCreateFlowCancelled",b);_.bC(this.hostElement,"yt-navigate",{endpoint:N})};
_.v.onUnicornFlowReady_=function(N){var b=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();N&&_.hl("gapi.family_creation.setConfig")(0,N);this.observer_=new MutationObserver(function(){_.H4(b.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.H4(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.H4(this.hostElement).querySelector("#dialog").open()};
_.v.getFamilyCreationUrlWithUnicornParams_=function(){return _.Vg("YTR_FAMILY_CREATION_URL")};
_.v.getCurrentUrl_=function(){return document.location.href};
_.v.abort_=function(N,b){this.clearTimeout_();this.onUnicornFlowError_(N,b)};
_.v.clearTimeout_=function(){clearTimeout(this.JSC$23115_timeoutId_)};
_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],AY.prototype,"ytActionHandlerBehavior",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],AY.prototype,"isMobile",void 0);_.p([_.U(),_.y("design:type",Object)],AY.prototype,"onReadyCallback_",void 0);_.p([_.U(),_.y("design:type",Object)],AY.prototype,"observer_",void 0);_.p([_.J_({is:"yt-create-family-dialog",disableElementRegistration:!0})],AY);
_.X(AY,"yt-create-family-dialog",function(){if(adB===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);var b=N.content,S=b.insertBefore;cvH===void 0&&(cvH=document.createElement("template"));var P=cvH;S.call(b,P.content.cloneNode(!0),N.content.firstChild);adB=N}N=adB;return N},{mode:2});var R8$;var WRi;var XU=function(){var N=_.z.apply(this,arguments)||this;N.STEP=1;N.BLOCK_ON=80;N.MIN_PROGESS=0;N.MAX_PROGESS=100;return N};
_.F(XU,_.z);_.v=XU.prototype;_.v.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.v.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.aN().addProvider({provide:Cs6,useValue:this})};
_.v.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.v.finish=function(){var N=this;this.progress=this.MAX_PROGESS;OLq(function(){N.progress==N.MAX_PROGESS&&(N.hostElement.hidden=!0)})};
_.v.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.d0.Object.defineProperties(XU.prototype,{progress:{configurable:!0,enumerable:!0,set:function(N){this.progress_=N;var b="scaleX("+N/this.MAX_PROGESS+")",S=_.H4(this.hostElement).querySelector("#progress").style;S.transform=b;S.webkitTransform=b;this.hostElement.setAttribute("aria-valuenow",String(N))},
get:function(){return this.progress_}}});
_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],XU.prototype,"ytComponentBehavior",void 0);_.p([_.J_({is:"yt-page-navigation-progress",disableElementRegistration:!0})],XU);
_.X(XU,"yt-page-navigation-progress",function(){if(WRi===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');N.content.insertBefore(_.I().content.cloneNode(!0),
N.content.firstChild);var b=N.content,S=b.insertBefore;R8$===void 0&&(R8$=document.createElement("template"));var P=R8$;S.call(b,P.content.cloneNode(!0),N.content.firstChild);WRi=N}N=WRi;return N},{mode:2});var nwc={padding:"10px 16px","font-size":"32px","font-weight":"bold",background:"linear-gradient(135deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%)",color:"#fff","text-shadow":"1px 1px 3px rgba(255, 255, 255, 0.3)","border-radius":"15px"},dtB={"font-size":"12px","font-style":"italic"},mti={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.c65=function(){return _.r(function(N){_.Zd(N)})};var kJj=_.A(function(N){var b=function(){return N.data().subtext},S={};
return _.c("snackbar-view-model",{class:_.KU("snackbarViewModelHost",N.className)},_.c("div",{class:_.KU("snackbarViewModelEngagementBarWrapper",N.className)},_.c(_.W,{cond:function(){return N.data().image},
then:function(P){return _.c(_.gG,{data:P,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.c(_.W,{cond:function(){return N.data().imageContent},
then:function(){return _.c("div",{class:"snackbarViewModelAvatarContainer"},_.c(_.kY,{data:function(){return N.data().imageContent}},{decoratedAvatarViewModel:_.Gg}))}}),_.c("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.c("div",{class:_.KU((S.snackbarViewModelTitle=!0,S.snackbarViewModelTitleWithSubtext=b,S))},_.c(_.mD,{text:function(){return N.data().text}})),_.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"snackbarViewModelSubtext"},_.c(_.mD,{text:function(){return b()}}))}})),_.c(_.W,{cond:function(){return N.data().buttons},
then:function(){return _.c("div",{class:"snackbarViewModelButtonClassWrapper"},_.c(_.kY,{data:function(){return N.data().buttons}},{buttonViewModel:function(P){return _.c(_.j$,{data:P.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:N.target})}}))}})))},"em");_.qu(_.A(function(){function N(Z,D,Y){M(Z);u(Y);m("in");n(!0);b(Z,D);C=setTimeout(function(){S()},D)}
function b(Z,D){var Y,V=(Y=Z.text)==null?void 0:Y.content;Z=_.xY(Z.rendererContext);V&&(D={label:V,command:Z,durationMs:D},_.aN().resolve(_.fK).enqueue(D))}
function S(Z){m("out");Z&&clearTimeout(C)}
function P(){S(!0)}
function H(Z){if(Z){var D=Z.snackbarViewModel,Y=Z.durationMs,V=Z.target;Y||(Y=3E3);D&&(Z=_.aN().resolve(_.cq(_.FY)))&&Z.enqueue({isOpened:R,open:function(){N(D,Y,V)},
close:S},0)}}
var K=_.GQ("snackbar-container"),C=void 0,G=_.O(_.QF(!1,void 0,"mDc5N")),a=G.next().value;G=G.next().value;var R=a,n=G;a=_.O(_.QF("out",void 0,"FpOs5e"));var d=a.next().value,m=a.next().value;a=_.O(_.QF(void 0,void 0,"jIDRob"));var k=a.next().value,M=a.next().value;a=_.O(_.QF(void 0,void 0,"kOA3Mb"));var l=a.next().value,u=a.next().value,J=_.Ob(function(){if(d()==="out"){n(!1);M(void 0);u(void 0);var Z=_.aN().resolve(_.cq(_.FY));Z&&QEa(Z,0)}});
_.YU(function(){var Z=_.aN().resolve(_.cq(_.W0o));Z&&(Z.showSnackbarFn=H,Z.closeSnackbarFn=P)});
return _.c("snackbar-container",{class:"ytSnackbarContainerHost",el:K},_.c(_.W,{cond:function(){return R()&&!!k()},
then:function(){var Z={};return _.c("div",{class:_.KU("ytSnackbarContainerSnackbarContainer",(Z.ytSnackbarContainerMobile=!1,Z.ytSnackbarContainerPivotBar=function(){var D;return!((D=_.aN().resolve(_.cq(_.noE)))==null||!D())},Z.ytSnackbarContainerOpened=function(){return R()&&d()==="in"},Z.ytSnackbarContainerClosed=function(){return R()&&d()==="out"},Z)),
"on:animationend":J},_.c(kJj,{data:function(){return k()},
target:function(){return l()}}))}}))},"fm"),"snackbar-container");_.qu(_.pxS,"yt-tooltip");var T$7=_.bQ_.ephemeralActionSelector;_.qu(_.A(function(){var N=_.nU(T$7);return _.c("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var b;return(b=N())==null?void 0:b.announcement})},"gm"),"yt-ephemeral-actions");var iLL=new Map;var Xzi=function(N,b){var S=this;this.handleError=N;this.logEventInternal=b;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){S.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Xzi.prototype.logError=function(N){this.handleError(N)};
Xzi.prototype.logEvent=function(N,b){switch(N){case "IDB_DATA_CORRUPTED":_.T("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":_.T("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":tWL(this,b);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":N=Object.assign({},b,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",N)}};
var tWL=function(N,b){_.Qi.getInstance().estimate().then(function(S){S=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:UHw(S==null?void 0:S.usage),deviceStorageQuotaMbytes:UHw(S==null?void 0:S.quota)});N.logEventInternal("idbQuotaExceeded",S)})};var MWL=_.A(function(N){var b=_.Ct("yt-draggable"),S=N.onDrag,P=N.onDragStart,H=N.onDragEnd,K=_.h_(N,{allowClicks:!1,dragThreshold:5}),C=K.dragThreshold,G=K.allowClicks;N=K.children;K=K.className;var a=void 0,R=void 0,n=new _.ek(0,0),d=!1;_.YU(function(){a=new _.w_(b.value);R=new _.Tb(k);m(a,R);if(G()){_.mMV(a,C());var l;(l=b.value)==null||l.addEventListener("click",M,{capture:!0})}_.ej(function(){var u;(u=a)==null||u.dispose();if(G()){var J;(J=b.value)==null||J.removeEventListener("click",M,{capture:!0})}})});
var m=function(l,u){_.lH(l,"earlycancel",function(){G()&&(d=!1)});
_.lH(l,"start",function(J){P==null||P(J);J.defaultPrevented||G()&&(d=!0)});
_.lH(l,"beforedrag",function(J){a&&R&&(J.preventDefault(),n=new _.ek(J.clientX-a.startX,J.clientY-a.startY),R.start())});
_.lH(l,"end",function(){u.stop();H==null||H();n=new _.ek(0,0)})},k=function(){n&&S(n)},M=function(l){d&&(d=!1,l.stopPropagation(),l.preventDefault())};
return _.c("yt-draggable",{el:b,class:_.KU("ytDraggableComponentHost",K)},N)},"hm");var FRj=_.A(function(N){var b=_.O(_.QF(0,void 0,"Qf0tbc")),S=b.next().value,P=b.next().value;b=function(H){var K={},C={};return _.c(MWL,{className:_.KU("ytdMiniplayerComponentResizer",(K.ytdMiniplayerComponentResizerDisabled=function(){return H===N.horizontalAlignment()||H===N.verticalAlignment()},K.ytdMiniplayerComponentResizerNorth=H==="north",K.ytdMiniplayerComponentResizerEast=H==="east",K.ytdMiniplayerComponentResizerSouth=H==="south",K.ytdMiniplayerComponentResizerWest=H==="west",K)),
onDragStart:function(){P(N.currentMiniplayerSize());if(N.onResizeStart)N.onResizeStart()},
onDrag:function(G){H!=="north"&&H!=="west"||G.scale(-1);var a;G=(a=H==="north"||H==="south")?G.y:G.x;var R=N.currentAspectRatio();a&&R>=1?G*=R:!a&&R<1&&(G/=R);a=G;N.onResize(S()+a)}},_.c("div",{class:_.KU("ytdMiniplayerComponentResizerCorner",(C.ytdMiniplayerComponentResizerNorthCorner=H==="north",C.ytdMiniplayerComponentResizerEastCorner=H==="east",C.ytdMiniplayerComponentResizerSouthCorner=H==="south",C.ytdMiniplayerComponentResizerWestCorner=H==="west",C))}))};
return _.c("div",{class:"ytdMiniplayerComponentResizers"},b("north"),b("east"),b("south"),b("west"))},"im");var B$i=16/9;_.qu(_.A(function(){var N=_.Ct("ytd-miniplayer"),b=_.O(_.QF(new _.Jh(NaN,NaN),void 0,"NHaFyc")),S=b.next().value,P=b.next().value;b=_.O(_.QF(!1,void 0,"a0rwG"));var H=b.next().value,K=b.next().value;b=_.O(_.QF(!1,void 0,"f1jSeb"));var C=b.next().value,G=b.next().value;b=_.O(_.QF(!1,void 0,"JojXKc"));var a=b.next().value,R=b.next().value;b=_.O(_.QF(!1,void 0,"FjS8Db"));var n=b.next().value,d=b.next().value;b=_.O(_.QF(!1,void 0,"z5WG9e"));var m=b.next().value,k=b.next().value;b=_.O(_.QF(!1,void 0,"eUzZd"));
var M=b.next().value,l=b.next().value;b=_.O(_.QF(B$i,void 0,"XsBIy"));var u=b.next().value,J=b.next().value,Z=_.O(_.QF(!1,void 0,"FJSvse"));b=Z.next().value;var D=Z.next().value;Z=_.O(_.QF(!1,void 0,"VDUFL"));var Y=Z.next().value,V=Z.next().value;Z=_.O(_.QF(void 0,void 0,"nFeh4b"));var g=Z.next().value,e=Z.next().value;Z=_.O(_.QF(Cs()?"west":"east",void 0,"T7co7c"));var se=Z.next().value,Ca=Z.next().value;Z=_.O(_.QF("south",void 0,"QDUsLb"));var ML=Z.next().value,na=Z.next().value;Z=_.O(_.QF(400,
void 0,"F7Vdze"));var To=Z.next().value,jp=Z.next().value,Xf=_.aN().resolve(_.E_).miniplayerPropSignalMap[0],YO=Xf.data,Wk=Xf.externalPlaylistData;Z=Xf.toastData;var S9=Xf.playabilityStatus,Vu=Xf.isReadyToResume,n9=Xf.isDisabled,mc=Xf.watchWhile,f9=Xf.playerVe,mJ=Xf.expandVe,Bk=Xf.closeVe,RU=Xf.readyToResumeVe,Ab=Xf.readyToResumeCloseVe,kZ=Xf.repositionVe,Ib=Xf.resizeVe;Xf=_.O(_.qI(Vu));var Ud=Xf.next().value,ob=Xf.next().value,PM=_.nU(_.pf.persistentPanelVisibleSelector),Vz=!1,ck=!1,d9;_.YU(function(){P(_.my());
N.value.addEventListener("animationend",function(g9){g9.target===N.value&&(k(!1),l(!1))});
Ev6(N.value)});
_.OX("yt-window-resized",function(g9){g9&&P(g9)});
var sa=function(){d9&&J(d9.getVideoAspectRatio())},$O=function(){if(d9){var g9=d9.getPlayerState()===1;
Ud()&&g9&&ob(!1)}},qS=function(){var g9=mJ();
if(g9){var Lq=_.Qh(3);Lq&&_.y3(Lq,g9)}},Do=function(){var g9=Bk(),Lq=Ab();
g9&&_.y3(_.Qh(3),g9);Vu()&&Lq&&_.y3(_.Qh(3),Lq)};
_.OX("yt-activate-miniplayer",function(g9){var Lq;return _.r(function(Kq){if(Kq.nextAddress==1)return H()?Kq.return():Kq.yield((Lq=_.aN().resolve(_.E_).getPlayerElement())==null?void 0:Lq.getPlayerPromise(),2);d9=Kq.yieldResult;if(!d9)return Kq.return();!Y()&&_.T("kevlar_watch_while_v2")&&(na(g9&&!_.T("kevlar_watch_while_bottom_align")?"north":"south"),Ca(Cs()?"west":"east"));var Ah=d9;Ah.addEventListener("onVideoDataChange",sa);Ah.addEventListener("onStateChange",$O);Ah.addEventListener("onExpandMiniplayer",
qS);Ah.addEventListener("onCloseMiniplayer",Do);J(d9.getVideoAspectRatio());K(!0);Xr6()||k(!0);_.Zd(Kq)})});
_.OX("yt-deactivate-miniplayer",function(g9,Lq){return _.r(function(Kq){if(!H())return Kq.return();K(!1);ob(!1);l(g9);d(!1);G(!1);if(d9){var Ah=d9;Ah.removeEventListener("onVideoDataChange",sa);Ah.removeEventListener("onStateChange",$O);Ah.removeEventListener("onExpandMiniplayer",qS);Ah.removeEventListener("onCloseMiniplayer",Do)}Xr6()||Lq?Lq&&k(!1):k(!0);_.Zd(Kq)})});
var Nj=function(){return!(mc()&&_.T("kevlar_watch_while_modern"))},nq=function(){var g9;
return!((g9=Wk())==null||!g9.contents)},pq=function(){var g9=To();
var Lq=S();Lq=Math.min(Math.min(Lq.width,Lq.height)-32,720);var Kq=u(),Ah=Nj(),Hv=nq()&&C(),XK=Math.min(g9,Lq);g9=new _.Jh(192,Ah?116:192);Kq=new _.Jh(Hv?B$i:Kq,1);XK=new _.Jh(XK,Ah?XK-76:XK);XK=Kq.aspectRatio()>XK.aspectRatio()?XK.width/Kq.width:XK.height/Kq.height;Kq=Kq.scale(XK);g9.width<=Kq.width&&g9.height<=Kq.height||(g9=Kq.aspectRatio()<=g9.aspectRatio()?g9.width/Kq.width:g9.height/Kq.height,Kq.scale(g9),Kq.width=Math.min(Kq.width,Lq),Kq.height=Math.min(Kq.height,Lq));return new _.Jh(Kq.width,
_.j3(192,Kq.height+IAi(Ah,Hv),720))},R_=function(){var g9=pq(),Lq=Nj(),Kq=nq()&&C();
return new _.Jh(g9.width,g9.height-IAi(Lq,Kq))},Gn=function(){var g9=function(Lq){Lq.target===N.value&&n()&&(d(!1),N.value.removeEventListener("transitionend",g9))};
Xr6()||(N.value.addEventListener("transitionend",g9),d(!0));G(!C())};
_.gA(function(){var g9=f9(),Lq=_.Qh(3),Kq=_.uZ(3);if(Lq&&Kq&&g9){_.AZ(Lq,Kq,g9);Kq=kZ();var Ah=Ib(),Hv=mJ(),XK=Bk(),lz=Ab();Hv&&XK&&lz&&(_.X8(Lq,g9,[Hv,XK,lz]),_.pA(Lq,[Hv,XK]));Kq&&Ah&&_.X8(Lq,g9,[Kq,Ah])}},"UBpUDd");
_.gA(function(){var g9=RU();if(g9){var Lq=_.Qh(0),Kq=_.uZ(0);Lq&&Kq&&(_.AZ(Lq,Kq,g9),_.pA(Lq,[g9]))}},"fQpBzb");
Xf={};return _.c("ytd-miniplayer",{el:N,class:_.KU("ytdMiniplayerComponentHost",(Xf.ytdMiniplayerComponentVisible=function(){return(H()||m())&&!(mc()&&_.T("kevlar_watch_while_counterfactual"))},Xf.ytdMiniplayerComponentAnimatingSnap=a,Xf.ytdMiniplayerComponentAnimatingPlaylistExpand=n,Xf.ytdMiniplayerComponentAnimatingFade=m,Xf),function(){if(m()){var g9=ML();
var Lq=H(),Kq=M();g9=Lq?g9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Kq?g9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":g9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else g9="";return g9}),
style:_.r5({top:function(){return ML()==="north"?"16px":""},
right:function(){var g9=se(),Lq=PM();Lq=(Lq===void 0?0:Lq)&&!Cs()?400:0;return g9==="east"?16+Lq+"px":""},
bottom:function(){return ML()==="south"?"16px":""},
left:function(){var g9=se(),Lq=PM();Lq=(Lq===void 0?0:Lq)&&Cs()?400:0;return g9==="west"?16+Lq+"px":""},
width:function(){return pq().width+"px"},
height:function(){return pq().height+"px"},
transform:function(){var g9=g();return g9?"translate("+g9.x+"px, "+g9.y+"px)":""}})},_.c("div",{class:"ytdMiniplayerComponentContent"},_.c(MWL,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(g9){var Lq=y65(se(),ML(),S(),pq(),g()),Kq=R_();Math.abs(g9.clientY-(Lq.y+Kq.height))>15?(D(!0),g9=_.Qh(3),Lq=kZ(),Vz||(Vz=!0,g9&&Lq&&_.pA(g9,[Lq])),g9&&Lq&&_.y3(g9,Lq)):g9.preventDefault()},
onDrag:function(g9){e(g9)},
onDragEnd:function(){var g9=prn(y65(se(),ML(),S(),pq(),g()),S(),pq()),Lq=Y7_(se(),ML(),S(),pq(),PM()),Kq=Y7_(g9.horizontalAlignment,g9.verticalAlignment,S(),pq(),PM());Kq=new _.ek(Kq.x-Lq.x,Kq.y-Lq.y);var Ah;Lq=Lq.y+(((Ah=g())==null?void 0:Ah.y)||0)+pq().height/2;var Hv=function(){se()===g9.horizontalAlignment&&ML()===g9.verticalAlignment||V(!0);Ca(g9.horizontalAlignment);na(g9.verticalAlignment);e(void 0)},XK=function(lz){lz.target===N.value&&a()&&(R(!1),Hv(),N.value.removeEventListener("transitionend",
XK))};
D(!1);ML()==="south"&&Lq>S().height?(Hv(),_.aN().resolve(_.E_).close()):(N.value.addEventListener("transitionend",XK),R(!0),e(Kq))}},_.c(_.W,{cond:H,
then:function(){return _.c(_.v0o,{isDisabled:n9,playabilityStatus:S9,size:R_})}}),_.c(_.W,{cond:Nj,
then:function(){return _.c(_.sBL,{isReadyToResume:Ud,data:YO,expanded:C,onExpandClick:Gn,playlistData:Wk})}}),_.c(_.W,{cond:b,
then:function(){return _.c("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.c(_.W,{cond:function(){return nq()&&C()||n()},
then:function(){return _.c(_.nIn,{className:"ytdMiniplayerComponentPlaylistPanel",data:Wk,hideHeaderText:!0,withinMiniplayer:!0})}}),_.c("div",{class:"ytdMiniplayerComponentToast"},_.c(_.OhE,{toastData:Z}))),_.c(FRj,{onResize:function(g9){jp(_.j3(192,g9,720))},
onResizeStart:function(){var g9=_.Qh(3),Lq=Ib();ck||(ck=!0,g9&&Lq&&_.pA(g9,[Lq]));g9&&Lq&&_.y3(g9,Lq)},
currentAspectRatio:u,currentMiniplayerSize:To,horizontalAlignment:se,verticalAlignment:ML}))},"lm"),"ytd-miniplayer",{});var ld7=_.pf.persistentPanelVisibleSelector,Eo=function(){var N=_.z.apply(this,arguments)||this;N.tabGesturesIsActive=!1;N.persistentPanelEnabled=_.T("enable_ai_companion");N.hasDelegation=!1;N.isFrostedGlassInitialized=!1;N.frostedGlassExp=_.T("web_frosted_glass");N.hasPendingWatchNavigation=!1;N.mastheadHiddenFocusWithinKillswitch=_.T("web_masthead_hidden_focus_within_killswitch");N.clientOnlyWizTooltipsEnabled=_.T("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
N.scrollAtTopInternal=!0;N.guideScrollTop=0;N.isTheaterModeSession=_.g8("START_IN_THEATER_MODE");N.iMaxTheaterMode=_.T("web_watch_imax_theater_mode");N.isFullWindowSession=_.g8("START_IN_FULL_WINDOW_MODE");N.hasCreateFamilyDialog=!1;N.mastheadHeight=56;N.networkStatusManager=new _.sv;N.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};N.dynamicActionMap={"yt-run-attestation-command":function(b){var S=_.SEa.instance,P=_.t(b,_.P3l);return P?_.T("use_rta_manager_for_async")&&
(_.T("attmusi")&&_.T("attmusi_ue")?window.attmp:rAE())?w$E(S,P,b.clickTrackingParams):qra(S,P,b.clickTrackingParams):_.f7(Error("si"))}};
N.isFrostedGlassDisabled=!1;N.isChannelOrPlaylistPage=!1;return N};
_.F(Eo,_.z);_.v=Eo.prototype;_.v.created=function(){var N=_.aN();_.T("kevlar_clear_duplicate_pref_cookie")&&_.XC(_.Dj,function(){var b=_.xb.get("PREF");b&&!/f\d=/.test(b)&&(b=_.m6("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=b?"PREF=null;domain="+b+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.T("gzip_gel_with_worker")&&_.r_u();_.T("jspb_serialize_with_worker")&&$cL();_.T("web_worker_availability_check")&&J6E();_.T("nwl_init_killswitch")||g7L().then(function(){_.Dj.addLowPriorityJob(fNQ)});
this.pageManagerAttachedPromise=_.Y9();this.ytdAppBehavior.loadDepsPromise=_.jA([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.GR(this.onThrottledScroll,200,this);_.T("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);E76();hdo=!!_.hl("ytappsettings.initialized");xy6=_.hl("ytappsettings.previousValue");oyi=_.hl("ytappsettings.previousSnapshotTime");hdo||(hdo=!0,i6i());est();$ui();_.DH("DEFERRED_DETACH",
_.T("kevlar_tuner_should_defer_detach"));_.DH("REUSE_COMPONENTS",!0);_.DH("STAMPER_STABLE_LIST",!0);_.DH("SCHEDULED_LAZY_LIST",!0);_.DH("openPopupConfig",yWw);_.DH("useClickHandler",!0);_.T("kevlar_shell_cleanup")&&_.Dj.addLowPriorityJob(RME.bind(this,_.Ps.caches));_.g8("IS_SHELL_LOAD")&&_.lC({shellStartupDurationMs:Math.round((0,_.nh)()-hy())});nvQ(this.networkStatusManager);_.T("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",C2o(nwc)),console.log("%cYouTube.com is the second largest website in the world, with hundreds of\nmillions of users and watch-hours per day. It makes you laugh, learn, and leaves\nyou amazed. Are there things that you love about YouTube? Things that you don't?\nHelp us make it better!",
C2o(dtB)),console.log("%cVisit http://go/join-youtube-web to apply today.",C2o(mti)));X0q(N.resolve(_.LK),1E3)};
_.v.ready=function(){var N=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var b=nX6();b&&!_.T("external_fullscreen_killswitch")&&document.addEventListener(b,this.setFullscreen.bind(this));(b=window.matchMedia("(prefers-color-scheme: dark)"))&&b.addEventListener&&b.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(b=_.aN().resolve(_.cq(_.H0V)))b.subscribe("navigation-start",
function(S){S.destinationPageSubtype==="watch"&&(N.hasPendingWatchNavigation=!0)}),b.subscribe("navigation-end",function(S){S.destinationPageSubtype==="watch"&&(N.hasPendingWatchNavigation=!1)})};
_.v.attached=function(){var N=this;_.kA().processSignal("ci");_.T("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Ya9?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.nS(_.Z1u(),"SUCCESS");this.updateIconSet();_.wp(this.guideInnerContent,!1);_.VP().initVisibilityObserver();this.guideService.guideElement=this.guide;var b=document.createElement("ytd-miniplayer"),S=_.H4(this.hostElement).querySelector("#content");
_.H4(this.hostElement).insertBefore(b,S);_.kA().processSignal("ma");_.aN().resolve(_.E_).init(b);this.persistentPanelEnabled&&Frw(this.persistentPanelContainer,"APP");_.g8("IS_SHELL_LOAD")&&(S=document.createElement("ytd-network-status-banner"),_.H4(this.hostElement).insertBefore(S,b));_.T("kevlar_right_click_on_lockups")&&_.Gy._onCaptureClick&&document.addEventListener("contextmenu",_.Gy._onCaptureClick.bind(_.Gy),!0);var P=function(){var H=_.ln("yt-page-navigation-progress");_.H4(N.hostElement).appendChild(H)};
setTimeout(function(){_.kA().parkOrScheduleJob(P,0,"eocs",16)},0);
_.T("service_worker_push_enabled")&&_.XC(_.Dj,$yJ);_.Kt(_.sX.getInstance(),this.dynamicActionMap,this.hostElement);_.bC(this.hostElement,"ytd-app-attached");_.kA().processSignal("aa");b65(this.hostElement);_.aB("gapi.load",_.W3s);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.XC(_.Dj,
function(){var H=document.createElement("ytd-video-preview");_.H4(_.H4(N.hostElement).querySelector("#video-preview")).appendChild(H)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.XC(_.Dj,function(){aAa();N.registerWithViewTransitionManager()});
if(_.X6()&&this.isAppDarkTheme()!==_.zB())this.onDarkModeToggledAction();else b=_.As()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==b&&(_.T("enable_dark_theme_only_on_shorts")?_.jZ(_.T("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Pq(window.location.href,{theme:"dark"})):_.$h(new _.jU("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(g2t=new VBt(this.hostElement)),rvH=new GJj(this.hostElement),C4L=new OgI(this.hostElement),aDn=new cuL(this.hostElement)};
_.v.getThemeSettingsToLog=function(){var N=_.As()==="USER_INTERFACE_THEME_DARK";N=_.X6()?_.zB()?"os-dark":"os-light":N?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:N,cookiesEnabled:_.Jz()}};
_.v.detached=function(){_.N7(this.guideInnerContent);_.Dj.cancelJob(DME);DME=0;_.Dj.cancelJob($ME);$ME=0;_.BGE(Npt);Npt.length=0;hf6=_.crf=null;_.VP().dispose();_.T("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.vz(_.sX.getInstance(),g2t.playlistHandlerActionMap,g2t.JSC$33323_clientRoot);_.vz(_.sX.getInstance(),rvH.downloadManagerActionMap,rvH.JSC$33772_clientRoot);_.vz(_.sX.getInstance(),C4L.feedbackCollectorActionMap,C4L.JSC$33767_clientRoot);
for(var N=_.O(aDn.eventListeners),b=N.next();!b.done;b=N.next()){var S=_.O(b.value);b=S.next().value;S=S.next().value;S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var H=_.O(P.value);P=H.next().value;H=H.next().value;b.removeEventListener(P,H)}}_.vz(_.sX.getInstance(),aDn.autonavPauseActionMap,aDn.JSC$21569_clientRoot)};
_.v.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.WN().getFlag(186)};
_.v.computeIsInlinePreviewEnabled=function(N,b,S){return!S&&e9q({miniplayerIsActive:N,miniplayerPlaybackState:b})};
_.v.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.HU({type:"SET_FROSTED_GLASS_MODE",payload:!_.T("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.v.computeIsFrostedGlassDisabled=function(N,b,S,P){return N||b||S||P&&_.T("web_frosted_glass_disable_watch")};
_.v.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.T("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.v.computeIsHomePage=function(N,b){if(!N||b==null||!b.endpoint)return!1;var S;return((S=_.t(b.endpoint,_.Wd))==null?void 0:S.browseId)==="FEwhat_to_watch"};
_.v.updateIsChannelOrPlaylistPage=function(){if(_.T("web_frosted_glass")){var N,b,S=(b=(N=_.aN().resolve(_.cq(_.$9)))==null?void 0:N.getCurrentPage())==null?void 0:b.pageSubtype;this.isChannelOrPlaylistPage=S?["channel","channels","playlist"].includes(S):!1}};
_.v.scheduleFrostedGlassInitialization=function(){var N=this;_.T("web_frosted_glass")&&_.kA().parkOrScheduleJob(function(){N.isFrostedGlassInitialized=!0},0,GP(["eocs",
"cr"]),300)};
_.v.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.IFd(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.HU({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.HU({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.v.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jjL(!0))};
_.v.onYtSignalActionRequestPersistentStorage=function(){if(!_.T("request_persistent_storage_killswitch")){var N=_.aN().resolve(_.XWt);N.cachedPersistStatePromise||(N.cachedPersistStatePromise=Y0n())}};
_.v.handleYtChannelCreationFormEndpoints=function(N){N&&this.ytComponentBehavior.resolveCommand(N)};
_.v.handleShowEngagementPanelEndpoint=function(N){N&&this.ytComponentBehavior.resolveCommand(N)};
_.v.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jjL(!1))};
_.v.initIconDefs=function(N,b){var S=document.createElement("iron-iconset-svg");S.name=N;N=document.createElementNS("http://www.w3.org/2000/svg","svg");S.appendChild(N);N.appendChild(b);document.body.appendChild(S);return S};
_.v.onWindowResized=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var N=_.Zy.getInstance();N.documentWidth_=document.body.clientWidth;njo(N)};
_.v.onWindowScrolled=function(){var N=_.aN().resolve(_.$9).getCurrentPage();if(N!=null&&N.getScrollTop){var b=this.ytdReduxBehavior,S=b.dispatch;N=N.getScrollTop()<=0;S.call(b,_.HU({type:"SET_SCROLL_AT_TOP",payload:N}))}};
_.v.guideIsVisibleButNotPersistentSelectorChanged=function(){var N=_.aN().resolve(_.$9).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=N.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
N.setScrollTop(this.guideScrollTop));_.PN(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.v.getCurrentPageScrollableElementType=function(){var N=_.aN().resolve(_.$9).getCurrentPage();if(N&&N.getPageScrollingElement())return N.getPageScrollingElement().nodeName};
_.v.observeGuideVisibility=function(){var N=_.Zy.getInstance(),b=this.miniGuideVisible;N.guidePersistentAndVisible_=this.guidePersistentAndVisible;N.miniGuideVisible_=b;njo(N)};
_.v.observePersistentPanelVisibility=function(){var N=_.Zy.getInstance();N.persistentPanelVisible_=this.persistentPanelVisible;njo(N)};
_.v.handleEduDismissAction=function(N){N&&N.eduDismissAction&&(_.St(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.e39.getInstance(),_.JN.set(N.eduDismissAction.key+"-dismissed",!0))};
_.v.handleEduImpressionAction=function(N){if(N&&N.eduImpressionAction){var b=_.e39.getInstance();N=N.eduImpressionAction.key;b.JSC$13418_eduDisplayedThisLoad_[_.gPE[N].setKey||N]=!0;_.JN.set(N+"-impression",parseInt(_.JN.get(N+"-impression")||0,10)+1)}};
_.v.onYtSignalActionConfirmMentionsEdu=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.zs.getInstance();_.jc.set("edu-dismissed",!0)};
_.v.onYtSignalActionRecordMentionsEduImpression=function(){_.zs.getInstance();var N=_.jc.set,b=parseInt(_.jc.get("edu-impressions"),10);N.call(_.jc,"edu-impressions",(isFinite(b)?b:0)+1)};
_.v.onYtPageManagerAttached=function(N){var b;((b=_.gQ(N))==null?void 0:b.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.v.onInvokeInstrumentManagerAction=function(N,b){A6t(b,N)};
_.v.updateIconSet=function(){var N=this.hostElement.querySelector("#masthead");if(N){var b=_.sj(N),S=b.querySelector("g#yt-logo-updated");S&&(N=document.createElementNS("http://www.w3.org/2000/svg","defs"),N.appendChild(S.cloneNode(!0)),(b=b.querySelector("g#yt-logo-red-updated"))&&N.appendChild(b.cloneNode(!0)),this.initIconDefs("yt-logos-ext",N))}};
_.v.updateMastheadData=function(){var N=this,b,S,P,H,K;return _.r(function(C){if(C.nextAddress==1){b=N.data;S=N.hostElement.querySelector("#masthead");if(!S)return C.return();_.W_(N,function(){S.data=N.topbarData});
if(!N.get("response.topbar",b)||N.get("response.topbar.responseContext.maxAgeSeconds",b)===0)return C.jumpTo(0);if(P=_.aN().resolve(_.KK))return C.yield(P(),6);H=_.aN().resolve(_.EN);return C.yield(H.put("service:topbar:fallback",new _.p5({innertubeResponse:N.get("response.topbar",b)})),0)}return(K=C.yieldResult)?C.yield(K.put("service:topbar:fallback",new _.p5({innertubeResponse:N.get("response.topbar",b)})),0):C.jumpTo(0)})};
_.v.computeTopbarData=function(N){if(!N)return null;var b;return this.isShortsPage&&this.topbarData&&!_.t((b=N.response)==null?void 0:b.topbar,jDQ)?this.topbarData:N.response&&"topbar"in N.response?_.t(N.response.topbar,jDQ)||null:null};
_.v.onSetTheaterModeEnabled=function(N,b){this.isTheaterModeSession=b.enabled;this.setTheaterModeStyles(b.enabled)};
_.v.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.v.onDarkModeToggledAction=function(){var N=_.Bq(window.location.href);if(!_.caa(N)){(N=!!_.SU(window.location.href).themeRefresh)&&_.$h(new _.jU("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!N){i6i();N={themeRefresh:1};var b=_.aN().resolve(_.$9);if(b.isOnWatch()){var S,P;b=((S=b.getPlayerFromWatch())==null?void 0:(P=S.getPlayer())==null?void 0:P.getCurrentTime())||0;b>=1&&(N.time_continue=Math.floor(b))}_.Jz()||_.As()!=="USER_INTERFACE_THEME_DARK"||(N.theme="dark");_.jZ(_.Pq(window.location.href,
N))}_.T("web_appshell_refresh_trigger")&&_.Ps.caches&&this.refreshAppShellResponse();S=_.XV(window.location.href);_.In(_.aN().resolve(_.Dc),_.$y(S,"theme"))}};
_.v.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.v.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.v.onPlayerFullscreen=function(N){_.hw();this.playerFullscreen=N};
_.v.setRestrictedMode=function(N){var b=_.WN();_.nA(0,58,N);b.save();_.aN().resolve(_.pi).reload()};
_.v.onPageChanged=function(N){N.detail.newPageType==="ytd-watch-flexy"||N.detail.newPageType==="ytd-watch-fixie"||N.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.i0("WEB_PAGE_TYPE_WATCH")):N.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.i0("WEB_PAGE_TYPE_SHORTS")):N.detail.newPageType==="ytd-browse"&&N.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.i0("WEB_PAGE_TYPE_MINI_APP")):_.T("web_frosted_glass")&&N.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.i0("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.i0("WEB_PAGE_TYPE_UNKNOWN"));N.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.v.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.v.onGuideToggleTap=function(){_.bC(this.hostElement,"yt-guide-toggle")};
_.v.onGuideToggleHover=function(){_.bC(this.hostElement,"yt-guide-hover")};
_.v.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setMastheadTheme=function(){var N=_.sj(this.hostElement).querySelector("#masthead");N&&(N.dark=N.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),N.isDarkThemeForced=!1)};
_.v.onRequestPanelModeChange=function(N,b){this.hideHeaderShadow=b.mode!=="seamed"};
_.v.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.v.onDrawerIronSelect=function(N){_.gQ(N).id==="guide"&&this.processDrawerIronSelect()};
_.v.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var N="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(N="opened"));_.bC(this.hostElement,"yt-autonav-pause-guide-"+N)};
_.v.onAddElementToApp=function(N){_.H4(this.hostElement).appendChild(N.detail)};
_.v.onThrottledScroll=function(){var N=_.aN().resolve(_.$9).getCurrentPage();N&&(this.scrollAtTopInternal=N.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.v.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.v.setFullscreen=function(){if(_.T("external_fullscreen")||!this.isWatchPage){var N=_.T("kevlar_fullerscreen_root_only_killswitch")?!!_.hw():!!_.hw()&&_.hw()===document.documentElement;N=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(N||this.isFullWindowSession);this.fullscreen!==N&&((this.fullscreen=N)&&_.PN(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.h0().dispatch(_.iYk(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.St(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.v.setFullscreenLoggingForShorts=function(N){var b,S,P;return _.r(function(H){if(H.nextAddress==1)return H.yield((b=_.qE())==null?void 0:b.getPlayerPromise(),2);S=H.yieldResult;(P=S)==null||P.setAppFullscreen(N);_.Zd(H)})};
_.v.updateMastheadCssHeight=function(){var N=this.mastheadHeight;this.fullscreen&&(N=0);_.rq(this.hostElement,{"--ytd-masthead-height":N+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.v.updateNetworkStatusBannerDisplayStatus=function(){var N="unset";this.fullscreen&&(N="none");_.rq(this.hostElement,{"--ytd-network-status-banner-display":N})};
_.v.updateNetworkStatusBannerCssHeight=function(){var N="unset";this.fullscreen&&(N="0px");_.rq(this.hostElement,{"--ytd-network-status-banner-max-height":N})};
_.v.updateScrollAndMasthead=function(N,b,S,P){this.iMaxTheaterMode||(P=!1);var H=_.aN().resolve(_.$9).getCurrentPage();N||b||P?(document.body.classList.add("no-scroll"),H.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.aA(this,this.onScroll)),H.setScrollTop(0),_.rq(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":py()+"px"})):S?_.bC(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.bC(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
H.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.aA(this,this.onScroll)));this.mastheadHidden=N||b||S;this.updateMastheadCssHeight();_.T("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.v.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.v.onYtNavigateAction=function(N){N=this.get("navigateAction.endpoint",N);_.bC(this.hostElement,"yt-navigate",{endpoint:N})};
_.v.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var N=document.createElement("yt-create-family-dialog");_.H4(this.hostElement).appendChild(N);this.hasCreateFamilyDialog=!0}};
_.v.onSetPushNotificationsEnabledCommand=function(N){var b=this,S=_.t(N,Uht);S&&typeof S.enabled==="boolean"&&(Notification.permission!=="granted"?IVa().then(function(){Notification.permission==="granted"?(M0o(!S.enabled).then(Lin),S.successAction&&_.HN(b.hostElement,[S.successAction])):S.failureAction&&_.HN(b.hostElement,[S.failureAction])}):(M0o(!S.enabled).then(Lin),S.successAction&&_.HN(this.hostElement,[S.successAction])))};
_.v.onYtSignalActionEnableChromeNotifications=function(){DyO(!0)};
_.v.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.t(this.topbarData.hotkeyDialog,pnL)}}})};
_.v.onYtSignalActionShowKeyboardShortcutDialog=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.v.onYtEndpointChangeHandler=function(N,b){var S=_.b0(_.EP);S.pendingPrefetchJob_&&(b=!(!b||b.autonav!="1"),S.pendingPrefetchJob_.resolve(N&&_.aUE(N)?_.R0L(N,b):""),S.pendingPrefetchJob_=null);_.St(this.hostElement,"yt-pause-active-page-context");_.St(this.hostElement,"ytd-log-youthere-nav");_.St(this.hostElement,"yt-prepare-page-dispose")};
_.v.handleCommandWithCommandHandler=function(N,b){_.rG.instance.resolveCommand(N,{form:{element:b}})};
_.v.onYtTimedCommand=function(N){var b=this;N=_.t(N,rJE);var S=N.command;S&&_.ml(_.Dj,function(){var P=_.t(S,_.KLk);P?(_.rG.instance.resolveCommand(S),b.maybeLogGetAnswerRequestTick(P)):_.sR(b.hostElement,[S],b.hostElement)},N.timeoutMs||0)};
_.v.maybeLogGetAnswerRequestTick=function(N){N&&N.isFirstRequest&&(_.fA("search_overview_answer"),_.uC("so_rq",void 0,"search_overview_answer"))};
_.v.onYtSignalActionSkipNavigation=function(){var N=_.aN().resolve(_.$9).getCurrentPage();_.Cv(N)};
_.v.onYtSignalActionCopyDebugData=function(){tta()};
_.v.handleEntityUpdateCommand=function(N){_.WU(_.t(N,_.Lpz).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.v.logFlowLoggingEventCommand=function(N){if(N=_.t(N,_.Deo))if(N.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var b=N.flowEventNamespace,S=N.flowEventType,P=N.flowType;P&&b&&S&&_.s8I(_.rQ(b,S,N.flowEventMetadata),P)}else{b=_.cd();S=N.flowEventNamespace;P=N.flowEventType;var H=N.flowType;H&&S&&P&&b.logFlowEvent(_.rQ(S,P,N.flowEventMetadata),H,N.flowNonce)}};
_.v.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.v.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.v.onTouchStart=function(){var N=_.gt();_.Qh()&&_.A8(N.JSC$13540_screenManager,{visualElement:N.ve})};
_.v.handleSelectLanguageCommand=function(N){if(N=_.t(N,luo).hl){var b=_.WN();b.set("hl",N);b.save();_.aN().resolve(_.pi).reload()}};
_.v.handleConfirmDialogEndpoint=function(N){(N=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&this.ytOpenPopupBehavior.openPopup(N)};
_.v.handleOpenPopupNavigationEndpoints=function(N,b){(N=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&this.ytOpenPopupBehavior.openPopup(N,b)};
_.v.handleSaveCommandToSessionStorage=function(N){if(N=_.t(N,_.C39)){var b=N.key;b&&N.command&&window.sessionStorage.setItem(b,JSON.stringify(N.command))}};
_.v.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(N){N&&N.active&&N.active.postMessage({type:"refresh_shell"})}).catch(function(N){N.name!=="SecurityError"&&_.ge(N)})};
_.v.onDeviceThemeChanged=function(){var N=_.zB();_.nA(_.WN(),185,N);_.WN().save()};
_.v.handleYtRegisterPromoCommand=function(N){if(_.t(N,JJo)){var b=_.aN().resolve(_.$9).getCurrentPage()||this.hostElement;Qla().registerPromoCommand(_.t(N,JJo),b)}};
_.v.onYtNavigateHomeAction=function(){if(!_.T("kevlar_miniplayer_navigate_home_from_app_killswitch")){var N,b,S,P,H=(P=(N=this.topbarData)==null?void 0:(b=N.logo)==null?void 0:(S=b.topbarLogoRenderer)==null?void 0:S.endpoint)!=null?P:_.$D;this.ytComponentBehavior.resolveCommand(H)}};
_.v.onYtLocationCollectionCommand=function(N){r6a(_.t(N,mqQ))};
_.v.onYtGetLocationCommand=function(N){EeO(_.t(N,dqq),this)};
_.v.updateRenderGuideFromBinding=function(N){this.renderGuide=N.detail.value};
_.v.updateGuidePersistentAndVisibleFromBinding=function(N){this.guidePersistentAndVisible=N.detail.value};
_.v.updateMiniGuideVisibleFromBinding=function(N){this.miniGuideVisible=N.detail.value};
_.v.onThemeSelected=function(N,b){var S=_.WN(),P=N||b?N:_.zB(),H=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.caa(_.Bq(window.location.href));_.nA(0,165,N);_.nA(0,174,b);S.save();H&&_.St(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.getCurrentTheme=function(){return _.X6()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.As()};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.v.handleShowConsentPrimitive=function(N){var b=this,S,P;return _.r(function(H){if(H.nextAddress==1){try{S=(P=_.qE())==null?void 0:P.getPlayerPromise()}catch(K){}return H.yield(ovq(N,S),2)}_.St(b.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Zd(H)})};
_.v.handleSelectActiveIdentityEndpointInternal=function(N){_.UK();N=_.t(N,_.MzV);if(N!=null&&N.supportedTokens){N=_.O(N.supportedTokens);for(var b=N.next();!b.done;b=N.next())b=b.value,b.accountSigninToken&&_.jZ(b.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.v.handleUpdatePermissionRoleCommand=function(N){if(N=_.t(N,_.M$k)){var b;this.hasDelegation=!((b=_.t(N.renderer,_.t$4))==null||!b.status)}};
_.v.registerWithViewTransitionManager=function(){var N=_.aN().resolve(_.cq(_.wH));if(N){var b,S=(b=this.guide)==null?void 0:b.querySelector("#scrim"),P;b=(P=this.guide)==null?void 0:P.querySelector("#contentContainer");S&&b&&N.isAnyTransitionEnabled&&(P={},N.viewTransitionCoordinator.registerElement(S,(P.slide="app-drawer-scrim-page-transition",P["lockup-to-watch"]="app-drawer-scrim-page-transition",P["learning-journey"]="app-drawer-scrim-page-transition",P)),S={},N.viewTransitionCoordinator.registerElement(b,
(S.slide="app-drawer-container-page-transition",S["lockup-to-watch"]="app-drawer-container-page-transition",S["learning-journey"]="app-drawer-container-page-transition",S)))}};
_.d0.Object.defineProperties(Eo.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.T("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.T("kevlar_show_chips_on_scroll"))}}});
_.d0.Object.defineProperties(Eo,{template:{configurable:!0,enumerable:!0,get:function(){if(SEL===void 0){var N=document.createElement("template");_.B(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
N.content.insertBefore(_.I().content.cloneNode(!0),N.content.firstChild);SEL=N}N=SEL;return N}}});
Eo.prototype.onOpenHotkeyDialog=Eo.prototype.onOpenHotkeyDialog;Eo.prototype.setFullscreen=Eo.prototype.setFullscreen;Eo.prototype.onAddElementToApp=Eo.prototype.onAddElementToApp;Eo.prototype.onDrawerIronSelect=Eo.prototype.onDrawerIronSelect;Eo.prototype.onGuideOpenButtonHover=Eo.prototype.onGuideOpenButtonHover;Eo.prototype.onRequestPanelModeChange=Eo.prototype.onRequestPanelModeChange;Eo.prototype.onPageDataUpdated=Eo.prototype.onPageDataUpdated;Eo.prototype.onPageChanged=Eo.prototype.onPageChanged;
Eo.prototype.onSetTheaterModeEnabled=Eo.prototype.onSetTheaterModeEnabled;Eo.prototype.updateMastheadData=Eo.prototype.updateMastheadData;Eo.prototype.onYtPageManagerAttached=Eo.prototype.onYtPageManagerAttached;Eo.prototype.observePersistentPanelVisibility=Eo.prototype.observePersistentPanelVisibility;Eo.prototype.observeGuideVisibility=Eo.prototype.observeGuideVisibility;Eo.prototype.guideIsVisibleButNotPersistentSelectorChanged=Eo.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Eo.prototype.isInlinePreviewEnabledChanged=Eo.prototype.isInlinePreviewEnabledChanged;Eo.prototype.isWatchPageChanged=Eo.prototype.isWatchPageChanged;Eo.prototype.dispatchFrostedGlassMode=Eo.prototype.dispatchFrostedGlassMode;_.p([_.L(_.Gr),_.y("design:type",Object)],Eo.prototype,"ytdReduxBehavior",void 0);_.p([_.L(_.Nq.YtEventForwardingBehavior),_.y("design:type",Object)],Eo.prototype,"ytEventForwardingBehavior",void 0);
_.p([_.L(_.Xo.YtOpenPopupBehavior),_.y("design:type",Object)],Eo.prototype,"ytOpenPopupBehavior",void 0);_.p([_.L(_.pG.YtActionHandlerBehavior),_.y("design:type",Object)],Eo.prototype,"ytActionHandlerBehavior",void 0);
_.p([_.L({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.sX.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.T("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var N;((N=this.actionRouterNode.hostElement)!=null?N:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var N;((N=this.actionRouterNode.hostElement)!=null?N:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(N){this.actionRouter_.handleAction(N.detail)}}),
_.y("design:type",Object)],Eo.prototype,"ytActionRouterBehavior",void 0);_.p([_.L(GeQ.YtdAppBehavior),_.y("design:type",Object)],Eo.prototype,"ytdAppBehavior",void 0);_.p([_.L(_.EQ.YtEndpointBehavior),_.y("design:type",Object)],Eo.prototype,"ytEndpointBehavior",void 0);_.p([_.L(vwi.YtEndpointHandlerWithYpcBehavior),_.y("design:type",Object)],Eo.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.p([_.L(P4i.YtLogYpcFlowCommandsBehavior),_.y("design:type",Object)],Eo.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.p([_.L(_.h.YtRendererBehavior),_.y("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.p([_.L(_.r2.YtComponentBehavior),_.y("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.p([_.U({selector:xMn}),_.y("design:type",Object)],Eo.prototype,"tabGesturesIsActive",void 0);_.p([_.U(),_.y("design:type",Boolean)],Eo.prototype,"renderGuide",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"guidePersistentAndVisible",void 0);_.p([_.U({selector:uGE}),_.y("design:type",Boolean)],Eo.prototype,"guideIsVisibleButNotPersistent",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"standalone",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"miniGuideVisible",void 0);
_.p([_.U(),_.y("design:type",Object)],Eo.prototype,"persistentPanelEnabled",void 0);_.p([_.U({selector:ld7,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"persistentPanelVisible",void 0);_.p([_.U({selector:_.YQu}),_.y("design:type",Number)],Eo.prototype,"miniplayerPlaybackState",void 0);_.p([_.U({selector:_.op,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"miniplayerIsActive",void 0);
_.p([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.y("design:type",Boolean)],Eo.prototype,"isInlinePreviewEnabled",void 0);_.p([_.U(),_.y("design:type",Boolean)],Eo.prototype,"isInlinePreviewDisabled",void 0);_.p([_.U({reflectToAttribute:!0,value:function(){return _.g8("START_IN_FULL_WINDOW_MODE")}}),
_.y("design:type",Boolean)],Eo.prototype,"mastheadHidden",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"playerFullscreen",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"fullscreen",void 0);_.p([_.U({value:!1,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"hideHeaderShadow",void 0);
_.p([_.U({value:{GUIDE_ALT_LABEL:_.cN("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.y("design:type",Object)],Eo.prototype,"menuStrings",void 0);_.p([_.U({computed:"computeTopbarData(data)"}),_.y("design:type",Object)],Eo.prototype,"topbarData",void 0);_.p([_.U({selector:_.ADU,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"isWatchPage",void 0);_.p([_.U({selector:_.Xtp,reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"isShortsPage",void 0);
_.p([_.U({selector:function(N){return _.iV(N)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.y("design:type",Boolean)],Eo.prototype,"isMiniAppPage",void 0);_.p([_.U({selector:function(N){return _.iV(N)==="WEB_PAGE_TYPE_BROWSE"}}),
_.y("design:type",Boolean)],Eo.prototype,"isBrowsePage",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Boolean)],Eo.prototype,"scrolling",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Eo.prototype,"hasDelegation",void 0);_.p([_.U({reflectToAttribute:!0,value:!1}),_.y("design:type",Boolean)],Eo.prototype,"guideScrolledByTouch",void 0);_.p([_.U(),_.y("design:type",Object)],Eo.prototype,"isFrostedGlassInitialized",void 0);
_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Eo.prototype,"frostedGlassExp",void 0);_.p([_.U({selector:function(N){return N.ui.chipBarIsSticky}}),
_.y("design:type",Boolean)],Eo.prototype,"chipBarIsSticky",void 0);_.p([_.U({selector:Qe_}),_.y("design:type",Boolean)],Eo.prototype,"scrollAtTop",void 0);_.p([_.U({computed:"computeIsHomePage(isBrowsePage, data)"}),_.y("design:type",Boolean)],Eo.prototype,"isHomePage",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Eo.prototype,"hasPendingWatchNavigation",void 0);_.p([_.U({reflectToAttribute:!0}),_.y("design:type",Object)],Eo.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.p([_.U(),_.y("design:type",Object)],Eo.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.p([HJ("guide"),_.y("design:type",Object)],Eo.prototype,"guide",void 0);_.p([HJ("guide-service"),_.y("design:type",mUa)],Eo.prototype,"guideService",void 0);_.p([HJ("guide-inner-content"),_.y("design:type",HTMLDivElement)],Eo.prototype,"guideInnerContent",void 0);_.p([_.dq("#persistent-panel-container"),_.y("design:type",HTMLElement)],Eo.prototype,"persistentPanelContainer",void 0);
_.p([_.U({selector:_.yDa}),_.y("design:type",String)],Eo.prototype,"frostedGlassMode",void 0);_.p([_.W4("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"dispatchFrostedGlassMode",null);_.p([_.U({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.y("design:type",Object)],Eo.prototype,"isFrostedGlassDisabled",void 0);
_.p([_.W4("isWatchPage"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"isWatchPageChanged",null);_.p([_.f("isHomePage","chipBarIsSticky","scrollAtTop"),_.y("design:type",Boolean),_.y("design:paramtypes",[])],Eo.prototype,"applyFrostedGlassToChipBar",null);_.p([_.U(),_.y("design:type",Object)],Eo.prototype,"isChannelOrPlaylistPage",void 0);
_.p([_.t_("isInlinePreviewEnabled"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"isInlinePreviewEnabledChanged",null);_.p([_.W4("guideIsVisibleButNotPersistent"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.p([_.W4("guidePersistentAndVisible","miniGuideVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"observeGuideVisibility",null);_.p([_.W4("persistentPanelVisible"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"observePersistentPanelVisibility",null);
_.p([_.RA("attached"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Eo.prototype,"onYtPageManagerAttached",null);_.p([_.W4("data"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype",Promise)],Eo.prototype,"updateMastheadData",null);_.p([_.RA("yt-set-theater-mode-enabled"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent,Object]),_.y("design:returntype")],Eo.prototype,"onSetTheaterModeEnabled",null);
_.p([_.RA("yt-page-type-changed"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Eo.prototype,"onPageChanged",null);_.p([_.RA("yt-page-data-updated"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"onPageDataUpdated",null);_.p([_.RA("yt-request-panel-mode-change"),_.y("design:type",Function),_.y("design:paramtypes",[Event,Object]),_.y("design:returntype")],Eo.prototype,"onRequestPanelModeChange",null);
_.p([_.RA("yt-guide-hover"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"onGuideOpenButtonHover",null);_.p([_.RA("app-drawer-transitioned"),_.y("design:type",Function),_.y("design:paramtypes",[Event]),_.y("design:returntype")],Eo.prototype,"onDrawerIronSelect",null);_.p([_.RA("yt-add-element-to-app"),_.y("design:type",Function),_.y("design:paramtypes",[CustomEvent]),_.y("design:returntype")],Eo.prototype,"onAddElementToApp",null);
_.p([_.RA("yt-set-fullerscreen-styles"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"setFullscreen",null);_.p([_.RA("yt-open-hotkey-dialog"),_.y("design:type",Function),_.y("design:paramtypes",[]),_.y("design:returntype")],Eo.prototype,"onOpenHotkeyDialog",null);_.p([_.Uj({is:"ytd-app"})],Eo);_.kA().processSignal("eor");
_.VS&&_.VS.JSC$11291_setLoaded();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
